@atlas-viewer/atlas 2.3.6 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +25 -21
- package/dist/index.d.ts +25 -21
- package/dist/index.global.js +64 -40
- package/dist/index.js +9 -9
- package/package.json +13 -12
package/dist/index.global.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
"use strict";var AtlasViewer=(()=>{var nE=Object.create;var ks=Object.defineProperty;var rE=Object.getOwnPropertyDescriptor;var iE=Object.getOwnPropertyNames;var oE=Object.getPrototypeOf,sE=Object.prototype.hasOwnProperty;var lE=(e,t,n)=>t in e?ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),aE=(e,t)=>{for(var n in t)ks(e,n,{get:t[n],enumerable:!0})},Qg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of iE(t))!sE.call(e,s)&&s!==n&&ks(e,s,{get:()=>t[s],enumerable:!(r=rE(t,s))||r.enumerable});return e};var Y=(e,t,n)=>(n=e!=null?nE(oE(e)):{},Qg(t||!e||!e.__esModule?ks(n,"default",{value:e,enumerable:!0}):n,e)),uE=e=>Qg(ks({},"__esModule",{value:!0}),e);var v=(e,t,n)=>(lE(e,typeof t!="symbol"?t+"":t,n),n);var fv=gt((fT,hv)=>{"use strict";var lv=!1,zi,sh,lh,Va,Qa,av,Ga,ah,uh,ch,uv,dh,hh,cv,dv;function Dt(){if(!lv){lv=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(dh=/\b(iPhone|iP[ao]d)/.exec(e),hh=/\b(iP[ao]d)/.exec(e),ch=/Android/i.exec(e),cv=/FBAN\/\w+;/i.exec(e),dv=/Mobile/i.exec(e),uv=!!/Win64/.exec(e),t){zi=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,zi&&document&&document.documentMode&&(zi=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);av=r?parseFloat(r[1])+4:zi,sh=t[2]?parseFloat(t[2]):NaN,lh=t[3]?parseFloat(t[3]):NaN,Va=t[4]?parseFloat(t[4]):NaN,Va?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Qa=t&&t[1]?parseFloat(t[1]):NaN):Qa=NaN}else zi=sh=lh=Qa=Va=NaN;if(n){if(n[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ga=s?parseFloat(s[1].replace("_",".")):!0}else Ga=!1;ah=!!n[2],uh=!!n[3]}else Ga=ah=uh=!1}}var fh={ie:function(){return Dt()||zi},ieCompatibilityMode:function(){return Dt()||av>zi},ie64:function(){return fh.ie()&&uv},firefox:function(){return Dt()||sh},opera:function(){return Dt()||lh},webkit:function(){return Dt()||Va},safari:function(){return fh.webkit()},chrome:function(){return Dt()||Qa},windows:function(){return Dt()||ah},osx:function(){return Dt()||Ga},linux:function(){return Dt()||uh},iphone:function(){return Dt()||dh},mobile:function(){return Dt()||dh||hh||ch||dv},nativeApp:function(){return Dt()||cv},android:function(){return Dt()||ch},ipad:function(){return Dt()||hh}};hv.exports=fh});var mv=gt((pT,pv)=>{"use strict";var Xa=!!(typeof window<"u"&&window.document&&window.document.createElement),wE={canUseDOM:Xa,canUseWorkers:typeof Worker<"u",canUseEventListeners:Xa&&!!(window.addEventListener||window.attachEvent),canUseViewport:Xa&&!!window.screen,isInWorker:!Xa};pv.exports=wE});var wv=gt((mT,yv)=>{"use strict";var gv=mv(),vv;gv.canUseDOM&&(vv=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function SE(e,t){if(!gv.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var s=document.createElement("div");s.setAttribute(n,"return;"),r=typeof s[n]=="function"}return!r&&vv&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}yv.exports=SE});var kv=gt((gT,Pv)=>{"use strict";var xE=fv(),EE=wv(),Sv=10,xv=40,Ev=800;function _v(e){var t=0,n=0,r=0,s=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*Sv,s=n*Sv,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||s)&&e.deltaMode&&(e.deltaMode==1?(r*=xv,s*=xv):(r*=Ev,s*=Ev)),r&&!t&&(t=r<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:s}}_v.getEventType=function(){return xE.firefox()?"DOMMouseScroll":EE("wheel")?"wheel":"mousewheel"};Pv.exports=_v});var Tv=gt((vT,Cv)=>{"use strict";Cv.exports=kv()});var Uv=gt(oe=>{"use strict";var Fs=Symbol.for("react.element"),PE=Symbol.for("react.portal"),kE=Symbol.for("react.fragment"),CE=Symbol.for("react.strict_mode"),TE=Symbol.for("react.profiler"),RE=Symbol.for("react.provider"),zE=Symbol.for("react.context"),IE=Symbol.for("react.forward_ref"),LE=Symbol.for("react.suspense"),NE=Symbol.for("react.memo"),OE=Symbol.for("react.lazy"),Ov=Symbol.iterator;function FE(e){return e===null||typeof e!="object"?null:(e=Ov&&e[Ov]||e["@@iterator"],typeof e=="function"?e:null)}var Av={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dv=Object.assign,Wv={};function yo(e,t,n){this.props=e,this.context=t,this.refs=Wv,this.updater=n||Av}yo.prototype.isReactComponent={};yo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};yo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bv(){}Bv.prototype=yo.prototype;function mh(e,t,n){this.props=e,this.context=t,this.refs=Wv,this.updater=n||Av}var gh=mh.prototype=new Bv;gh.constructor=mh;Dv(gh,yo.prototype);gh.isPureReactComponent=!0;var Fv=Array.isArray,jv=Object.prototype.hasOwnProperty,vh={current:null},bv={key:!0,ref:!0,__self:!0,__source:!0};function Hv(e,t,n){var r,s={},l=null,u=null;if(t!=null)for(r in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(l=""+t.key),t)jv.call(t,r)&&!bv.hasOwnProperty(r)&&(s[r]=t[r]);var h=arguments.length-2;if(h===1)s.children=n;else if(1<h){for(var f=Array(h),g=0;g<h;g++)f[g]=arguments[g+2];s.children=f}if(e&&e.defaultProps)for(r in h=e.defaultProps,h)s[r]===void 0&&(s[r]=h[r]);return{$$typeof:Fs,type:e,key:l,ref:u,props:s,_owner:vh.current}}function ME(e,t){return{$$typeof:Fs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fs}function AE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Mv=/\/+/g;function ph(e,t){return typeof e=="object"&&e!==null&&e.key!=null?AE(""+e.key):t.toString(36)}function Za(e,t,n,r,s){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case Fs:case PE:u=!0}}if(u)return u=e,s=s(u),e=r===""?"."+ph(u,0):r,Fv(s)?(n="",e!=null&&(n=e.replace(Mv,"$&/")+"/"),Za(s,t,n,"",function(g){return g})):s!=null&&(yh(s)&&(s=ME(s,n+(!s.key||u&&u.key===s.key?"":(""+s.key).replace(Mv,"$&/")+"/")+e)),t.push(s)),1;if(u=0,r=r===""?".":r+":",Fv(e))for(var h=0;h<e.length;h++){l=e[h];var f=r+ph(l,h);u+=Za(l,t,n,f,s)}else if(f=FE(e),typeof f=="function")for(e=f.call(e),h=0;!(l=e.next()).done;)l=l.value,f=r+ph(l,h++),u+=Za(l,t,n,f,s);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function Ya(e,t,n){if(e==null)return e;var r=[],s=0;return Za(e,r,"","",function(l){return t.call(n,l,s++)}),r}function DE(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var kt={current:null},Ka={transition:null},WE={ReactCurrentDispatcher:kt,ReactCurrentBatchConfig:Ka,ReactCurrentOwner:vh};oe.Children={map:Ya,forEach:function(e,t,n){Ya(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ya(e,function(){t++}),t},toArray:function(e){return Ya(e,function(t){return t})||[]},only:function(e){if(!yh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oe.Component=yo;oe.Fragment=kE;oe.Profiler=TE;oe.PureComponent=mh;oe.StrictMode=CE;oe.Suspense=LE;oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=WE;oe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dv({},e.props),s=e.key,l=e.ref,u=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,u=vh.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var h=e.type.defaultProps;for(f in t)jv.call(t,f)&&!bv.hasOwnProperty(f)&&(r[f]=t[f]===void 0&&h!==void 0?h[f]:t[f])}var f=arguments.length-2;if(f===1)r.children=n;else if(1<f){h=Array(f);for(var g=0;g<f;g++)h[g]=arguments[g+2];r.children=h}return{$$typeof:Fs,type:e.type,key:s,ref:l,props:r,_owner:u}};oe.createContext=function(e){return e={$$typeof:zE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:RE,_context:e},e.Consumer=e};oe.createElement=Hv;oe.createFactory=function(e){var t=Hv.bind(null,e);return t.type=e,t};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:IE,render:e}};oe.isValidElement=yh;oe.lazy=function(e){return{$$typeof:OE,_payload:{_status:-1,_result:e},_init:DE}};oe.memo=function(e,t){return{$$typeof:NE,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=Ka.transition;Ka.transition={};try{e()}finally{Ka.transition=t}};oe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};oe.useCallback=function(e,t){return kt.current.useCallback(e,t)};oe.useContext=function(e){return kt.current.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e){return kt.current.useDeferredValue(e)};oe.useEffect=function(e,t){return kt.current.useEffect(e,t)};oe.useId=function(){return kt.current.useId()};oe.useImperativeHandle=function(e,t,n){return kt.current.useImperativeHandle(e,t,n)};oe.useInsertionEffect=function(e,t){return kt.current.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return kt.current.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return kt.current.useMemo(e,t)};oe.useReducer=function(e,t,n){return kt.current.useReducer(e,t,n)};oe.useRef=function(e){return kt.current.useRef(e)};oe.useState=function(e){return kt.current.useState(e)};oe.useSyncExternalStore=function(e,t,n){return kt.current.useSyncExternalStore(e,t,n)};oe.useTransition=function(){return kt.current.useTransition()};oe.version="18.2.0"});var le=gt((CT,Vv)=>{"use strict";Vv.exports=Uv()});var Gv=gt($a=>{"use strict";var BE=le(),jE=Symbol.for("react.element"),bE=Symbol.for("react.fragment"),HE=Object.prototype.hasOwnProperty,UE=BE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,VE={key:!0,ref:!0,__self:!0,__source:!0};function Qv(e,t,n){var r,s={},l=null,u=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(u=t.ref);for(r in t)HE.call(t,r)&&!VE.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:jE,type:e,key:l,ref:u,props:s,_owner:UE.current}}$a.Fragment=bE;$a.jsx=Qv;$a.jsxs=Qv});var Ie=gt((RT,Xv)=>{"use strict";Xv.exports=Gv()});var sy=gt(ge=>{"use strict";function _h(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,s=e[r];if(0<eu(s,t))e[r]=t,e[n]=s,n=r;else break e}}function In(e){return e.length===0?null:e[0]}function nu(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,s=e.length,l=s>>>1;r<l;){var u=2*(r+1)-1,h=e[u],f=u+1,g=e[f];if(0>eu(h,n))f<s&&0>eu(g,h)?(e[r]=g,e[f]=n,r=f):(e[r]=h,e[u]=n,r=u);else if(f<s&&0>eu(g,n))e[r]=g,e[f]=n,r=f;else break e}}return t}function eu(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?($v=performance,ge.unstable_now=function(){return $v.now()}):(Sh=Date,qv=Sh.now(),ge.unstable_now=function(){return Sh.now()-qv});var $v,Sh,qv,Jn=[],Xr=[],KE=1,fn=null,vt=3,ru=!1,Ii=!1,Ds=!1,ty=typeof setTimeout=="function"?setTimeout:null,ny=typeof clearTimeout=="function"?clearTimeout:null,Jv=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ph(e){for(var t=In(Xr);t!==null;){if(t.callback===null)nu(Xr);else if(t.startTime<=e)nu(Xr),t.sortIndex=t.expirationTime,_h(Jn,t);else break;t=In(Xr)}}function kh(e){if(Ds=!1,Ph(e),!Ii)if(In(Jn)!==null)Ii=!0,Th(Ch);else{var t=In(Xr);t!==null&&Rh(kh,t.startTime-e)}}function Ch(e,t){Ii=!1,Ds&&(Ds=!1,ny(Ws),Ws=-1),ru=!0;var n=vt;try{for(Ph(t),fn=In(Jn);fn!==null&&(!(fn.expirationTime>t)||e&&!oy());){var r=fn.callback;if(typeof r=="function"){fn.callback=null,vt=fn.priorityLevel;var s=r(fn.expirationTime<=t);t=ge.unstable_now(),typeof s=="function"?fn.callback=s:fn===In(Jn)&&nu(Jn),Ph(t)}else nu(Jn);fn=In(Jn)}if(fn!==null)var l=!0;else{var u=In(Xr);u!==null&&Rh(kh,u.startTime-t),l=!1}return l}finally{fn=null,vt=n,ru=!1}}var iu=!1,tu=null,Ws=-1,ry=5,iy=-1;function oy(){return!(ge.unstable_now()-iy<ry)}function xh(){if(tu!==null){var e=ge.unstable_now();iy=e;var t=!0;try{t=tu(!0,e)}finally{t?As():(iu=!1,tu=null)}}else iu=!1}var As;typeof Jv=="function"?As=function(){Jv(xh)}:typeof MessageChannel<"u"?(Eh=new MessageChannel,ey=Eh.port2,Eh.port1.onmessage=xh,As=function(){ey.postMessage(null)}):As=function(){ty(xh,0)};var Eh,ey;function Th(e){tu=e,iu||(iu=!0,As())}function Rh(e,t){Ws=ty(function(){e(ge.unstable_now())},t)}ge.unstable_IdlePriority=5;ge.unstable_ImmediatePriority=1;ge.unstable_LowPriority=4;ge.unstable_NormalPriority=3;ge.unstable_Profiling=null;ge.unstable_UserBlockingPriority=2;ge.unstable_cancelCallback=function(e){e.callback=null};ge.unstable_continueExecution=function(){Ii||ru||(Ii=!0,Th(Ch))};ge.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ry=0<e?Math.floor(1e3/e):5};ge.unstable_getCurrentPriorityLevel=function(){return vt};ge.unstable_getFirstCallbackNode=function(){return In(Jn)};ge.unstable_next=function(e){switch(vt){case 1:case 2:case 3:var t=3;break;default:t=vt}var n=vt;vt=t;try{return e()}finally{vt=n}};ge.unstable_pauseExecution=function(){};ge.unstable_requestPaint=function(){};ge.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=vt;vt=e;try{return t()}finally{vt=n}};ge.unstable_scheduleCallback=function(e,t,n){var r=ge.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=n+s,e={id:KE++,callback:t,priorityLevel:e,startTime:n,expirationTime:s,sortIndex:-1},n>r?(e.sortIndex=n,_h(Xr,e),In(Jn)===null&&e===In(Xr)&&(Ds?(ny(Ws),Ws=-1):Ds=!0,Rh(kh,n-r))):(e.sortIndex=s,_h(Jn,e),Ii||ru||(Ii=!0,Th(Ch))),e};ge.unstable_shouldYield=oy;ge.unstable_wrapCallback=function(e){var t=vt;return function(){var n=vt;vt=t;try{return e.apply(this,arguments)}finally{vt=n}}}});var zh=gt((FT,ly)=>{"use strict";ly.exports=sy()});var uy=gt((MT,ay)=>{"use strict";ay.exports=function(t){var n={},r=le(),s=zh(),l=Object.assign;function u(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,a=1;a<arguments.length;a++)o+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,f=Symbol.for("react.element"),g=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),k=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),_=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function z(i){return i===null||typeof i!="object"?null:(i=O&&i[O]||i["@@iterator"],typeof i=="function"?i:null)}function D(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case m:return"Fragment";case g:return"Portal";case E:return"Profiler";case S:return"StrictMode";case A:return"Suspense";case x:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case k:return(i.displayName||"Context")+".Consumer";case P:return(i._context.displayName||"Context")+".Provider";case R:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case w:return o=i.displayName||null,o!==null?o:D(i.type)||"Memo";case _:o=i._payload,i=i._init;try{return D(i(o))}catch{}}return null}function b(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D(o);case 8:return o===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function q(i){var o=i,a=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,o.flags&4098&&(a=o.return),i=o.return;while(i)}return o.tag===3?a:null}function M(i){if(q(i)!==i)throw Error(u(188))}function K(i){var o=i.alternate;if(!o){if(o=q(i),o===null)throw Error(u(188));return o!==i?null:i}for(var a=i,c=o;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(c=d.return,c!==null){a=c;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return M(d),i;if(p===c)return M(d),o;p=p.sibling}throw Error(u(188))}if(a.return!==c.return)a=d,c=p;else{for(var y=!1,C=d.child;C;){if(C===a){y=!0,a=d,c=p;break}if(C===c){y=!0,c=d,a=p;break}C=C.sibling}if(!y){for(C=p.child;C;){if(C===a){y=!0,a=p,c=d;break}if(C===c){y=!0,c=p,a=d;break}C=C.sibling}if(!y)throw Error(u(189))}}if(a.alternate!==c)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?i:o}function se(i){return i=K(i),i!==null?Wn(i):null}function Wn(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var o=Wn(i);if(o!==null)return o;i=i.sibling}return null}function fe(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){if(i.tag!==4){var o=fe(i);if(o!==null)return o}i=i.sibling}return null}var Et=Array.isArray,tn=t.getPublicInstance,Ir=t.getRootHostContext,Lr=t.getChildHostContext,j=t.prepareForCommit,Me=t.resetAfterCommit,qi=t.createInstance,es=t.appendInitialChild,ts=t.finalizeInitialChildren,ns=t.prepareUpdate,Ji=t.shouldSetTextContent,Dl=t.createTextInstance,Ac=t.scheduleTimeout,nm=t.cancelTimeout,rs=t.noTimeout,Nr=t.isPrimaryRenderer,ct=t.supportsMutation,$=t.supportsPersistence,J=t.supportsHydration,ye=t.getInstanceFromNode,rt=t.preparePortalMount,mi=t.getCurrentEventPriority,Bn=t.detachDeletedInstance,ur=t.supportsMicrotasks,ES=t.scheduleMicrotask,is=t.supportsTestSelectors,_S=t.findFiberRoot,PS=t.getBoundingRect,kS=t.getTextContent,os=t.isHiddenSubtree,CS=t.matchAccessibilityRole,TS=t.setFocusIfFocusable,RS=t.setupIntersectionObserver,zS=t.appendChild,IS=t.appendChildToContainer,LS=t.commitTextUpdate,NS=t.commitMount,OS=t.commitUpdate,FS=t.insertBefore,MS=t.insertInContainerBefore,AS=t.removeChild,DS=t.removeChildFromContainer,rm=t.resetTextContent,WS=t.hideInstance,BS=t.hideTextInstance,jS=t.unhideInstance,bS=t.unhideTextInstance,HS=t.clearContainer,US=t.cloneInstance,im=t.createContainerChildSet,om=t.appendChildToContainerChildSet,VS=t.finalizeContainerChildren,Dc=t.replaceContainerChildren,sm=t.cloneHiddenInstance,lm=t.cloneHiddenTextInstance,QS=t.canHydrateInstance,GS=t.canHydrateTextInstance,XS=t.canHydrateSuspenseInstance,am=t.isSuspenseInstancePending,Wc=t.isSuspenseInstanceFallback,YS=t.getSuspenseInstanceFallbackErrorDetails,ZS=t.registerSuspenseInstanceRetry,Wl=t.getNextHydratableSibling,KS=t.getFirstHydratableChild,$S=t.getFirstHydratableChildWithinContainer,qS=t.getFirstHydratableChildWithinSuspenseInstance,JS=t.hydrateInstance,ex=t.hydrateTextInstance,tx=t.hydrateSuspenseInstance,nx=t.getNextHydratableInstanceAfterSuspenseInstance,rx=t.commitHydratedContainer,ix=t.commitHydratedSuspenseInstance,ox=t.clearSuspenseBoundary,sx=t.clearSuspenseBoundaryFromContainer,lx=t.shouldDeleteUnhydratedTailInstances,ax=t.didNotMatchHydratedContainerTextInstance,ux=t.didNotMatchHydratedTextInstance,Bc;function ss(i){if(Bc===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);Bc=o&&o[1]||""}return`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
`),
|
|
5
|
-
`+d[y].replace(" at new "," at ");return i.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",i.displayName)),N}while(1<=y&&0<=C);break}}}finally{jc=!1,Error.prepareStackTrace=a}return(i=i?i.displayName||i.name:"")?ss(i):""}var cx=Object.prototype.hasOwnProperty,Hc=[],eo=-1;function Or(i){return{current:i}}function we(i){0>eo||(i.current=Hc[eo],Hc[eo]=null,eo--)}function me(i,o){eo++,Hc[eo]=i.current,i.current=o}var Fr={},dt=Or(Fr),It=Or(!1),gi=Fr;function to(i,o){var a=i.type.contextTypes;if(!a)return Fr;var c=i.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var d={},p;for(p in a)d[p]=o[p];return c&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=d),d}function Lt(i){return i=i.childContextTypes,i!=null}function Bl(){we(It),we(dt)}function um(i,o,a){if(dt.current!==Fr)throw Error(u(168));me(dt,o),me(It,a)}function cm(i,o,a){var c=i.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var d in c)if(!(d in o))throw Error(u(108,b(i)||"Unknown",d));return l({},a,c)}function jl(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Fr,gi=dt.current,me(dt,i),me(It,It.current),!0}function dm(i,o,a){var c=i.stateNode;if(!c)throw Error(u(169));a?(i=cm(i,o,gi),c.__reactInternalMemoizedMergedChildContext=i,we(It),we(dt),me(dt,i)):we(It),me(It,a)}var xn=Math.clz32?Math.clz32:fx,dx=Math.log,hx=Math.LN2;function fx(i){return i>>>=0,i===0?32:31-(dx(i)/hx|0)|0}var bl=64,Hl=4194304;function ls(i){switch(i&-i){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: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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Ul(i,o){var a=i.pendingLanes;if(a===0)return 0;var c=0,d=i.suspendedLanes,p=i.pingedLanes,y=a&268435455;if(y!==0){var C=y&~d;C!==0?c=ls(C):(p&=y,p!==0&&(c=ls(p)))}else y=a&~d,y!==0?c=ls(y):p!==0&&(c=ls(p));if(c===0)return 0;if(o!==0&&o!==c&&!(o&d)&&(d=c&-c,p=o&-o,d>=p||d===16&&(p&4194240)!==0))return o;if(c&4&&(c|=a&16),o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=c;0<o;)a=31-xn(o),d=1<<a,c|=i[a],o&=~d;return c}function px(i,o){switch(i){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64: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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mx(i,o){for(var a=i.suspendedLanes,c=i.pingedLanes,d=i.expirationTimes,p=i.pendingLanes;0<p;){var y=31-xn(p),C=1<<y,N=d[y];N===-1?(!(C&a)||C&c)&&(d[y]=px(C,o)):N<=o&&(i.expiredLanes|=C),p&=~C}}function Uc(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function hm(){var i=bl;return bl<<=1,!(bl&4194240)&&(bl=64),i}function Vc(i){for(var o=[],a=0;31>a;a++)o.push(i);return o}function as(i,o,a){i.pendingLanes|=o,o!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,o=31-xn(o),i[o]=a}function gx(i,o){var a=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o,o=i.entanglements;var c=i.eventTimes;for(i=i.expirationTimes;0<a;){var d=31-xn(a),p=1<<d;o[d]=0,c[d]=-1,i[d]=-1,a&=~p}}function Qc(i,o){var a=i.entangledLanes|=o;for(i=i.entanglements;a;){var c=31-xn(a),d=1<<c;d&o|i[c]&o&&(i[c]|=o),a&=~d}}var ue=0;function fm(i){return i&=-i,1<i?4<i?i&268435455?16:536870912:4:1}var Gc=s.unstable_scheduleCallback,pm=s.unstable_cancelCallback,vx=s.unstable_shouldYield,yx=s.unstable_requestPaint,$e=s.unstable_now,Xc=s.unstable_ImmediatePriority,wx=s.unstable_UserBlockingPriority,Yc=s.unstable_NormalPriority,Sx=s.unstable_IdlePriority,Vl=null,jn=null;function xx(i){if(jn&&typeof jn.onCommitFiberRoot=="function")try{jn.onCommitFiberRoot(Vl,i,void 0,(i.current.flags&128)===128)}catch{}}function Ex(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var En=typeof Object.is=="function"?Object.is:Ex,cr=null,Ql=!1,Zc=!1;function mm(i){cr===null?cr=[i]:cr.push(i)}function _x(i){Ql=!0,mm(i)}function bn(){if(!Zc&&cr!==null){Zc=!0;var i=0,o=ue;try{var a=cr;for(ue=1;i<a.length;i++){var c=a[i];do c=c(!0);while(c!==null)}cr=null,Ql=!1}catch(d){throw cr!==null&&(cr=cr.slice(i+1)),Gc(Xc,bn),d}finally{ue=o,Zc=!1}}return null}var no=[],ro=0,Gl=null,Xl=0,nn=[],rn=0,vi=null,dr=1,hr="";function yi(i,o){no[ro++]=Xl,no[ro++]=Gl,Gl=i,Xl=o}function gm(i,o,a){nn[rn++]=dr,nn[rn++]=hr,nn[rn++]=vi,vi=i;var c=dr;i=hr;var d=32-xn(c)-1;c&=~(1<<d),a+=1;var p=32-xn(o)+d;if(30<p){var y=d-d%5;p=(c&(1<<y)-1).toString(32),c>>=y,d-=y,dr=1<<32-xn(o)+d|a<<d|c,hr=p+i}else dr=1<<p|a<<d|c,hr=i}function Kc(i){i.return!==null&&(yi(i,1),gm(i,1,0))}function $c(i){for(;i===Gl;)Gl=no[--ro],no[ro]=null,Xl=no[--ro],no[ro]=null;for(;i===vi;)vi=nn[--rn],nn[rn]=null,hr=nn[--rn],nn[rn]=null,dr=nn[--rn],nn[rn]=null}var Ut=null,on=null,_e=!1,us=!1,_n=null;function vm(i,o){var a=cn(5,null,null,0);a.elementType="DELETED",a.stateNode=o,a.return=i,o=i.deletions,o===null?(i.deletions=[a],i.flags|=16):o.push(a)}function ym(i,o){switch(i.tag){case 5:return o=QS(o,i.type,i.pendingProps),o!==null?(i.stateNode=o,Ut=i,on=KS(o),!0):!1;case 6:return o=GS(o,i.pendingProps),o!==null?(i.stateNode=o,Ut=i,on=null,!0):!1;case 13:if(o=XS(o),o!==null){var a=vi!==null?{id:dr,overflow:hr}:null;return i.memoizedState={dehydrated:o,treeContext:a,retryLane:1073741824},a=cn(18,null,null,0),a.stateNode=o,a.return=i,i.child=a,Ut=i,on=null,!0}return!1;default:return!1}}function qc(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Jc(i){if(_e){var o=on;if(o){var a=o;if(!ym(i,o)){if(qc(i))throw Error(u(418));o=Wl(a);var c=Ut;o&&ym(i,o)?vm(c,a):(i.flags=i.flags&-4097|2,_e=!1,Ut=i)}}else{if(qc(i))throw Error(u(418));i.flags=i.flags&-4097|2,_e=!1,Ut=i}}}function wm(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Ut=i}function Yl(i){if(!J||i!==Ut)return!1;if(!_e)return wm(i),_e=!0,!1;if(i.tag!==3&&(i.tag!==5||lx(i.type)&&!Ji(i.type,i.memoizedProps))){var o=on;if(o){if(qc(i))throw Sm(),Error(u(418));for(;o;)vm(i,o),o=Wl(o)}}if(wm(i),i.tag===13){if(!J)throw Error(u(316));if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));on=nx(i)}else on=Ut?Wl(i.stateNode):null;return!0}function Sm(){for(var i=on;i;)i=Wl(i)}function io(){J&&(on=Ut=null,us=_e=!1)}function ed(i){_n===null?_n=[i]:_n.push(i)}var Px=h.ReactCurrentBatchConfig;function Zl(i,o){if(En(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var a=Object.keys(i),c=Object.keys(o);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var d=a[c];if(!cx.call(o,d)||!En(i[d],o[d]))return!1}return!0}function kx(i){switch(i.tag){case 5:return ss(i.type);case 16:return ss("Lazy");case 13:return ss("Suspense");case 19:return ss("SuspenseList");case 0:case 2:case 15:return i=bc(i.type,!1),i;case 11:return i=bc(i.type.render,!1),i;case 1:return i=bc(i.type,!0),i;default:return""}}function Pn(i,o){if(i&&i.defaultProps){o=l({},o),i=i.defaultProps;for(var a in i)o[a]===void 0&&(o[a]=i[a]);return o}return o}var Kl=Or(null),$l=null,oo=null,td=null;function nd(){td=oo=$l=null}function xm(i,o,a){Nr?(me(Kl,o._currentValue),o._currentValue=a):(me(Kl,o._currentValue2),o._currentValue2=a)}function rd(i){var o=Kl.current;we(Kl),Nr?i._currentValue=o:i._currentValue2=o}function id(i,o,a){for(;i!==null;){var c=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),i===a)break;i=i.return}}function so(i,o){$l=i,td=oo=null,i=i.dependencies,i!==null&&i.firstContext!==null&&(i.lanes&o&&(Nt=!0),i.firstContext=null)}function sn(i){var o=Nr?i._currentValue:i._currentValue2;if(td!==i)if(i={context:i,memoizedValue:o,next:null},oo===null){if($l===null)throw Error(u(308));oo=i,$l.dependencies={lanes:0,firstContext:i}}else oo=oo.next=i;return o}var wi=null;function od(i){wi===null?wi=[i]:wi.push(i)}function Em(i,o,a,c){var d=o.interleaved;return d===null?(a.next=a,od(o)):(a.next=d.next,d.next=a),o.interleaved=a,Hn(i,c)}function Hn(i,o){i.lanes|=o;var a=i.alternate;for(a!==null&&(a.lanes|=o),a=i,i=i.return;i!==null;)i.childLanes|=o,a=i.alternate,a!==null&&(a.childLanes|=o),a=i,i=i.return;return a.tag===3?a.stateNode:null}var Mr=!1;function sd(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _m(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function fr(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function Ar(i,o,a){var c=i.updateQueue;if(c===null)return null;if(c=c.shared,ie&2){var d=c.pending;return d===null?o.next=o:(o.next=d.next,d.next=o),c.pending=o,Hn(i,a)}return d=c.interleaved,d===null?(o.next=o,od(c)):(o.next=d.next,d.next=o),c.interleaved=o,Hn(i,a)}function ql(i,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194240)!==0)){var c=o.lanes;c&=i.pendingLanes,a|=c,o.lanes=a,Qc(i,a)}}function Pm(i,o){var a=i.updateQueue,c=i.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};p===null?d=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?d=p=o:p=p.next=o}else d=p=o;a={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:c.shared,effects:c.effects},i.updateQueue=a;return}i=a.lastBaseUpdate,i===null?a.firstBaseUpdate=o:i.next=o,a.lastBaseUpdate=o}function Jl(i,o,a,c){var d=i.updateQueue;Mr=!1;var p=d.firstBaseUpdate,y=d.lastBaseUpdate,C=d.shared.pending;if(C!==null){d.shared.pending=null;var N=C,B=N.next;N.next=null,y===null?p=B:y.next=B,y=N;var X=i.alternate;X!==null&&(X=X.updateQueue,C=X.lastBaseUpdate,C!==y&&(C===null?X.firstBaseUpdate=B:C.next=B,X.lastBaseUpdate=N))}if(p!==null){var te=d.baseState;y=0,X=B=N=null,C=p;do{var H=C.lane,Se=C.eventTime;if((c&H)===H){X!==null&&(X=X.next={eventTime:Se,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var pe=i,Mt=C;switch(H=o,Se=a,Mt.tag){case 1:if(pe=Mt.payload,typeof pe=="function"){te=pe.call(Se,te,H);break e}te=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Mt.payload,H=typeof pe=="function"?pe.call(Se,te,H):pe,H==null)break e;te=l({},te,H);break e;case 2:Mr=!0}}C.callback!==null&&C.lane!==0&&(i.flags|=64,H=d.effects,H===null?d.effects=[C]:H.push(C))}else Se={eventTime:Se,lane:H,tag:C.tag,payload:C.payload,callback:C.callback,next:null},X===null?(B=X=Se,N=te):X=X.next=Se,y|=H;if(C=C.next,C===null){if(C=d.shared.pending,C===null)break;H=C,C=H.next,H.next=null,d.lastBaseUpdate=H,d.shared.pending=null}}while(!0);if(X===null&&(N=te),d.baseState=N,d.firstBaseUpdate=B,d.lastBaseUpdate=X,o=d.shared.interleaved,o!==null){d=o;do y|=d.lane,d=d.next;while(d!==o)}else p===null&&(d.shared.lanes=0);xi|=y,i.lanes=y,i.memoizedState=te}}function km(i,o,a){if(i=o.effects,o.effects=null,i!==null)for(o=0;o<i.length;o++){var c=i[o],d=c.callback;if(d!==null){if(c.callback=null,c=a,typeof d!="function")throw Error(u(191,d));d.call(c)}}}var Cm=new r.Component().refs;function ld(i,o,a,c){o=i.memoizedState,a=a(c,o),a=a==null?o:l({},o,a),i.memoizedState=a,i.lanes===0&&(i.updateQueue.baseState=a)}var ea={isMounted:function(i){return(i=i._reactInternals)?q(i)===i:!1},enqueueSetState:function(i,o,a){i=i._reactInternals;var c=mt(),d=Br(i),p=fr(c,d);p.payload=o,a!=null&&(p.callback=a),o=Ar(i,p,d),o!==null&&(un(o,i,d,c),ql(o,i,d))},enqueueReplaceState:function(i,o,a){i=i._reactInternals;var c=mt(),d=Br(i),p=fr(c,d);p.tag=1,p.payload=o,a!=null&&(p.callback=a),o=Ar(i,p,d),o!==null&&(un(o,i,d,c),ql(o,i,d))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var a=mt(),c=Br(i),d=fr(a,c);d.tag=2,o!=null&&(d.callback=o),o=Ar(i,d,c),o!==null&&(un(o,i,c,a),ql(o,i,c))}};function Tm(i,o,a,c,d,p,y){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(c,p,y):o.prototype&&o.prototype.isPureReactComponent?!Zl(a,c)||!Zl(d,p):!0}function Rm(i,o,a){var c=!1,d=Fr,p=o.contextType;return typeof p=="object"&&p!==null?p=sn(p):(d=Lt(o)?gi:dt.current,c=o.contextTypes,p=(c=c!=null)?to(i,d):Fr),o=new o(a,p),i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=ea,i.stateNode=o,o._reactInternals=i,c&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=d,i.__reactInternalMemoizedMaskedChildContext=p),o}function zm(i,o,a,c){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(a,c),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(a,c),o.state!==i&&ea.enqueueReplaceState(o,o.state,null)}function ad(i,o,a,c){var d=i.stateNode;d.props=a,d.state=i.memoizedState,d.refs=Cm,sd(i);var p=o.contextType;typeof p=="object"&&p!==null?d.context=sn(p):(p=Lt(o)?gi:dt.current,d.context=to(i,p)),d.state=i.memoizedState,p=o.getDerivedStateFromProps,typeof p=="function"&&(ld(i,o,p,a),d.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(o=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),o!==d.state&&ea.enqueueReplaceState(d,d.state,null),Jl(i,a,d,c),d.state=i.memoizedState),typeof d.componentDidMount=="function"&&(i.flags|=4194308)}function cs(i,o,a){if(i=a.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(u(309));var c=a.stateNode}if(!c)throw Error(u(147,i));var d=c,p=""+i;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===p?o.ref:(o=function(y){var C=d.refs;C===Cm&&(C=d.refs={}),y===null?delete C[p]:C[p]=y},o._stringRef=p,o)}if(typeof i!="string")throw Error(u(284));if(!a._owner)throw Error(u(290,i))}return i}function ta(i,o){throw i=Object.prototype.toString.call(o),Error(u(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i))}function Im(i){var o=i._init;return o(i._payload)}function Lm(i){function o(I,T){if(i){var F=I.deletions;F===null?(I.deletions=[T],I.flags|=16):F.push(T)}}function a(I,T){if(!i)return null;for(;T!==null;)o(I,T),T=T.sibling;return null}function c(I,T){for(I=new Map;T!==null;)T.key!==null?I.set(T.key,T):I.set(T.index,T),T=T.sibling;return I}function d(I,T){return I=br(I,T),I.index=0,I.sibling=null,I}function p(I,T,F){return I.index=F,i?(F=I.alternate,F!==null?(F=F.index,F<T?(I.flags|=2,T):F):(I.flags|=2,T)):(I.flags|=1048576,T)}function y(I){return i&&I.alternate===null&&(I.flags|=2),I}function C(I,T,F,U){return T===null||T.tag!==6?(T=Zd(F,I.mode,U),T.return=I,T):(T=d(T,F),T.return=I,T)}function N(I,T,F,U){var Z=F.type;return Z===m?X(I,T,F.props.children,U,F.key):T!==null&&(T.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===_&&Im(Z)===T.type)?(U=d(T,F.props),U.ref=cs(I,T,F),U.return=I,U):(U=Ta(F.type,F.key,F.props,null,I.mode,U),U.ref=cs(I,T,F),U.return=I,U)}function B(I,T,F,U){return T===null||T.tag!==4||T.stateNode.containerInfo!==F.containerInfo||T.stateNode.implementation!==F.implementation?(T=Kd(F,I.mode,U),T.return=I,T):(T=d(T,F.children||[]),T.return=I,T)}function X(I,T,F,U,Z){return T===null||T.tag!==7?(T=ki(F,I.mode,U,Z),T.return=I,T):(T=d(T,F),T.return=I,T)}function te(I,T,F){if(typeof T=="string"&&T!==""||typeof T=="number")return T=Zd(""+T,I.mode,F),T.return=I,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case f:return F=Ta(T.type,T.key,T.props,null,I.mode,F),F.ref=cs(I,null,T),F.return=I,F;case g:return T=Kd(T,I.mode,F),T.return=I,T;case _:var U=T._init;return te(I,U(T._payload),F)}if(Et(T)||z(T))return T=ki(T,I.mode,F,null),T.return=I,T;ta(I,T)}return null}function H(I,T,F,U){var Z=T!==null?T.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return Z!==null?null:C(I,T,""+F,U);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case f:return F.key===Z?N(I,T,F,U):null;case g:return F.key===Z?B(I,T,F,U):null;case _:return Z=F._init,H(I,T,Z(F._payload),U)}if(Et(F)||z(F))return Z!==null?null:X(I,T,F,U,null);ta(I,F)}return null}function Se(I,T,F,U,Z){if(typeof U=="string"&&U!==""||typeof U=="number")return I=I.get(F)||null,C(T,I,""+U,Z);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case f:return I=I.get(U.key===null?F:U.key)||null,N(T,I,U,Z);case g:return I=I.get(U.key===null?F:U.key)||null,B(T,I,U,Z);case _:var re=U._init;return Se(I,T,F,re(U._payload),Z)}if(Et(U)||z(U))return I=I.get(F)||null,X(T,I,U,Z,null);ta(T,U)}return null}function pe(I,T,F,U){for(var Z=null,re=null,ne=T,ce=T=0,et=null;ne!==null&&ce<F.length;ce++){ne.index>ce?(et=ne,ne=null):et=ne.sibling;var de=H(I,ne,F[ce],U);if(de===null){ne===null&&(ne=et);break}i&&ne&&de.alternate===null&&o(I,ne),T=p(de,T,ce),re===null?Z=de:re.sibling=de,re=de,ne=et}if(ce===F.length)return a(I,ne),_e&&yi(I,ce),Z;if(ne===null){for(;ce<F.length;ce++)ne=te(I,F[ce],U),ne!==null&&(T=p(ne,T,ce),re===null?Z=ne:re.sibling=ne,re=ne);return _e&&yi(I,ce),Z}for(ne=c(I,ne);ce<F.length;ce++)et=Se(ne,I,ce,F[ce],U),et!==null&&(i&&et.alternate!==null&&ne.delete(et.key===null?ce:et.key),T=p(et,T,ce),re===null?Z=et:re.sibling=et,re=et);return i&&ne.forEach(function(Hr){return o(I,Hr)}),_e&&yi(I,ce),Z}function Mt(I,T,F,U){var Z=z(F);if(typeof Z!="function")throw Error(u(150));if(F=Z.call(F),F==null)throw Error(u(151));for(var re=Z=null,ne=T,ce=T=0,et=null,de=F.next();ne!==null&&!de.done;ce++,de=F.next()){ne.index>ce?(et=ne,ne=null):et=ne.sibling;var Hr=H(I,ne,de.value,U);if(Hr===null){ne===null&&(ne=et);break}i&&ne&&Hr.alternate===null&&o(I,ne),T=p(Hr,T,ce),re===null?Z=Hr:re.sibling=Hr,re=Hr,ne=et}if(de.done)return a(I,ne),_e&&yi(I,ce),Z;if(ne===null){for(;!de.done;ce++,de=F.next())de=te(I,de.value,U),de!==null&&(T=p(de,T,ce),re===null?Z=de:re.sibling=de,re=de);return _e&&yi(I,ce),Z}for(ne=c(I,ne);!de.done;ce++,de=F.next())de=Se(ne,I,ce,de.value,U),de!==null&&(i&&de.alternate!==null&&ne.delete(de.key===null?ce:de.key),T=p(de,T,ce),re===null?Z=de:re.sibling=de,re=de);return i&&ne.forEach(function(tE){return o(I,tE)}),_e&&yi(I,ce),Z}function gr(I,T,F,U){if(typeof F=="object"&&F!==null&&F.type===m&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case f:e:{for(var Z=F.key,re=T;re!==null;){if(re.key===Z){if(Z=F.type,Z===m){if(re.tag===7){a(I,re.sibling),T=d(re,F.props.children),T.return=I,I=T;break e}}else if(re.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===_&&Im(Z)===re.type){a(I,re.sibling),T=d(re,F.props),T.ref=cs(I,re,F),T.return=I,I=T;break e}a(I,re);break}else o(I,re);re=re.sibling}F.type===m?(T=ki(F.props.children,I.mode,U,F.key),T.return=I,I=T):(U=Ta(F.type,F.key,F.props,null,I.mode,U),U.ref=cs(I,T,F),U.return=I,I=U)}return y(I);case g:e:{for(re=F.key;T!==null;){if(T.key===re)if(T.tag===4&&T.stateNode.containerInfo===F.containerInfo&&T.stateNode.implementation===F.implementation){a(I,T.sibling),T=d(T,F.children||[]),T.return=I,I=T;break e}else{a(I,T);break}else o(I,T);T=T.sibling}T=Kd(F,I.mode,U),T.return=I,I=T}return y(I);case _:return re=F._init,gr(I,T,re(F._payload),U)}if(Et(F))return pe(I,T,F,U);if(z(F))return Mt(I,T,F,U);ta(I,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,T!==null&&T.tag===6?(a(I,T.sibling),T=d(T,F),T.return=I,I=T):(a(I,T),T=Zd(F,I.mode,U),T.return=I,I=T),y(I)):a(I,T)}return gr}var lo=Lm(!0),Nm=Lm(!1),ds={},ln=Or(ds),hs=Or(ds),ao=Or(ds);function Un(i){if(i===ds)throw Error(u(174));return i}function ud(i,o){me(ao,o),me(hs,i),me(ln,ds),i=Ir(o),we(ln),me(ln,i)}function uo(){we(ln),we(hs),we(ao)}function Om(i){var o=Un(ao.current),a=Un(ln.current);o=Lr(a,i.type,o),a!==o&&(me(hs,i),me(ln,o))}function cd(i){hs.current===i&&(we(ln),we(hs))}var Ce=Or(0);function na(i){for(var o=i;o!==null;){if(o.tag===13){var a=o.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||am(a)||Wc(a)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var dd=[];function hd(){for(var i=0;i<dd.length;i++){var o=dd[i];Nr?o._workInProgressVersionPrimary=null:o._workInProgressVersionSecondary=null}dd.length=0}var ra=h.ReactCurrentDispatcher,fd=h.ReactCurrentBatchConfig,Si=0,Te=null,Ve=null,qe=null,ia=!1,fs=!1,ps=0,Cx=0;function ht(){throw Error(u(321))}function pd(i,o){if(o===null)return!1;for(var a=0;a<o.length&&a<i.length;a++)if(!En(i[a],o[a]))return!1;return!0}function md(i,o,a,c,d,p){if(Si=p,Te=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,ra.current=i===null||i.memoizedState===null?Ix:Lx,i=a(c,d),fs){p=0;do{if(fs=!1,ps=0,25<=p)throw Error(u(301));p+=1,qe=Ve=null,o.updateQueue=null,ra.current=Nx,i=a(c,d)}while(fs)}if(ra.current=la,o=Ve!==null&&Ve.next!==null,Si=0,qe=Ve=Te=null,ia=!1,o)throw Error(u(300));return i}function gd(){var i=ps!==0;return ps=0,i}function Vn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?Te.memoizedState=qe=i:qe=qe.next=i,qe}function an(){if(Ve===null){var i=Te.alternate;i=i!==null?i.memoizedState:null}else i=Ve.next;var o=qe===null?Te.memoizedState:qe.next;if(o!==null)qe=o,Ve=i;else{if(i===null)throw Error(u(310));Ve=i,i={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},qe===null?Te.memoizedState=qe=i:qe=qe.next=i}return qe}function ms(i,o){return typeof o=="function"?o(i):o}function vd(i){var o=an(),a=o.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=i;var c=Ve,d=c.baseQueue,p=a.pending;if(p!==null){if(d!==null){var y=d.next;d.next=p.next,p.next=y}c.baseQueue=d=p,a.pending=null}if(d!==null){p=d.next,c=c.baseState;var C=y=null,N=null,B=p;do{var X=B.lane;if((Si&X)===X)N!==null&&(N=N.next={lane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),c=B.hasEagerState?B.eagerState:i(c,B.action);else{var te={lane:X,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null};N===null?(C=N=te,y=c):N=N.next=te,Te.lanes|=X,xi|=X}B=B.next}while(B!==null&&B!==p);N===null?y=c:N.next=C,En(c,o.memoizedState)||(Nt=!0),o.memoizedState=c,o.baseState=y,o.baseQueue=N,a.lastRenderedState=c}if(i=a.interleaved,i!==null){d=i;do p=d.lane,Te.lanes|=p,xi|=p,d=d.next;while(d!==i)}else d===null&&(a.lanes=0);return[o.memoizedState,a.dispatch]}function yd(i){var o=an(),a=o.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=i;var c=a.dispatch,d=a.pending,p=o.memoizedState;if(d!==null){a.pending=null;var y=d=d.next;do p=i(p,y.action),y=y.next;while(y!==d);En(p,o.memoizedState)||(Nt=!0),o.memoizedState=p,o.baseQueue===null&&(o.baseState=p),a.lastRenderedState=p}return[p,c]}function Fm(){}function Mm(i,o){var a=Te,c=an(),d=o(),p=!En(c.memoizedState,d);if(p&&(c.memoizedState=d,Nt=!0),c=c.queue,wd(Wm.bind(null,a,c,i),[i]),c.getSnapshot!==o||p||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,gs(9,Dm.bind(null,a,c,d,o),void 0,null),Je===null)throw Error(u(349));Si&30||Am(a,o,d)}return d}function Am(i,o,a){i.flags|=16384,i={getSnapshot:o,value:a},o=Te.updateQueue,o===null?(o={lastEffect:null,stores:null},Te.updateQueue=o,o.stores=[i]):(a=o.stores,a===null?o.stores=[i]:a.push(i))}function Dm(i,o,a,c){o.value=a,o.getSnapshot=c,Bm(o)&&jm(i)}function Wm(i,o,a){return a(function(){Bm(o)&&jm(i)})}function Bm(i){var o=i.getSnapshot;i=i.value;try{var a=o();return!En(i,a)}catch{return!0}}function jm(i){var o=Hn(i,1);o!==null&&un(o,i,1,-1)}function bm(i){var o=Vn();return typeof i=="function"&&(i=i()),o.memoizedState=o.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:i},o.queue=i,i=i.dispatch=zx.bind(null,Te,i),[o.memoizedState,i]}function gs(i,o,a,c){return i={tag:i,create:o,destroy:a,deps:c,next:null},o=Te.updateQueue,o===null?(o={lastEffect:null,stores:null},Te.updateQueue=o,o.lastEffect=i.next=i):(a=o.lastEffect,a===null?o.lastEffect=i.next=i:(c=a.next,a.next=i,i.next=c,o.lastEffect=i)),i}function Hm(){return an().memoizedState}function oa(i,o,a,c){var d=Vn();Te.flags|=i,d.memoizedState=gs(1|o,a,void 0,c===void 0?null:c)}function sa(i,o,a,c){var d=an();c=c===void 0?null:c;var p=void 0;if(Ve!==null){var y=Ve.memoizedState;if(p=y.destroy,c!==null&&pd(c,y.deps)){d.memoizedState=gs(o,a,p,c);return}}Te.flags|=i,d.memoizedState=gs(1|o,a,p,c)}function Um(i,o){return oa(8390656,8,i,o)}function wd(i,o){return sa(2048,8,i,o)}function Vm(i,o){return sa(4,2,i,o)}function Qm(i,o){return sa(4,4,i,o)}function Gm(i,o){if(typeof o=="function")return i=i(),o(i),function(){o(null)};if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function Xm(i,o,a){return a=a!=null?a.concat([i]):null,sa(4,4,Gm.bind(null,o,i),a)}function Sd(){}function Ym(i,o){var a=an();o=o===void 0?null:o;var c=a.memoizedState;return c!==null&&o!==null&&pd(o,c[1])?c[0]:(a.memoizedState=[i,o],i)}function Zm(i,o){var a=an();o=o===void 0?null:o;var c=a.memoizedState;return c!==null&&o!==null&&pd(o,c[1])?c[0]:(i=i(),a.memoizedState=[i,o],i)}function Km(i,o,a){return Si&21?(En(a,o)||(a=hm(),Te.lanes|=a,xi|=a,i.baseState=!0),o):(i.baseState&&(i.baseState=!1,Nt=!0),i.memoizedState=a)}function Tx(i,o){var a=ue;ue=a!==0&&4>a?a:4,i(!0);var c=fd.transition;fd.transition={};try{i(!1),o()}finally{ue=a,fd.transition=c}}function $m(){return an().memoizedState}function Rx(i,o,a){var c=Br(i);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},qm(i))Jm(o,a);else if(a=Em(i,o,a,c),a!==null){var d=mt();un(a,i,c,d),eg(a,o,c)}}function zx(i,o,a){var c=Br(i),d={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(qm(i))Jm(o,d);else{var p=i.alternate;if(i.lanes===0&&(p===null||p.lanes===0)&&(p=o.lastRenderedReducer,p!==null))try{var y=o.lastRenderedState,C=p(y,a);if(d.hasEagerState=!0,d.eagerState=C,En(C,y)){var N=o.interleaved;N===null?(d.next=d,od(o)):(d.next=N.next,N.next=d),o.interleaved=d;return}}catch{}finally{}a=Em(i,o,d,c),a!==null&&(d=mt(),un(a,i,c,d),eg(a,o,c))}}function qm(i){var o=i.alternate;return i===Te||o!==null&&o===Te}function Jm(i,o){fs=ia=!0;var a=i.pending;a===null?o.next=o:(o.next=a.next,a.next=o),i.pending=o}function eg(i,o,a){if(a&4194240){var c=o.lanes;c&=i.pendingLanes,a|=c,o.lanes=a,Qc(i,a)}}var la={readContext:sn,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useInsertionEffect:ht,useLayoutEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useMutableSource:ht,useSyncExternalStore:ht,useId:ht,unstable_isNewReconciler:!1},Ix={readContext:sn,useCallback:function(i,o){return Vn().memoizedState=[i,o===void 0?null:o],i},useContext:sn,useEffect:Um,useImperativeHandle:function(i,o,a){return a=a!=null?a.concat([i]):null,oa(4194308,4,Gm.bind(null,o,i),a)},useLayoutEffect:function(i,o){return oa(4194308,4,i,o)},useInsertionEffect:function(i,o){return oa(4,2,i,o)},useMemo:function(i,o){var a=Vn();return o=o===void 0?null:o,i=i(),a.memoizedState=[i,o],i},useReducer:function(i,o,a){var c=Vn();return o=a!==void 0?a(o):o,c.memoizedState=c.baseState=o,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:o},c.queue=i,i=i.dispatch=Rx.bind(null,Te,i),[c.memoizedState,i]},useRef:function(i){var o=Vn();return i={current:i},o.memoizedState=i},useState:bm,useDebugValue:Sd,useDeferredValue:function(i){return Vn().memoizedState=i},useTransition:function(){var i=bm(!1),o=i[0];return i=Tx.bind(null,i[1]),Vn().memoizedState=i,[o,i]},useMutableSource:function(){},useSyncExternalStore:function(i,o,a){var c=Te,d=Vn();if(_e){if(a===void 0)throw Error(u(407));a=a()}else{if(a=o(),Je===null)throw Error(u(349));Si&30||Am(c,o,a)}d.memoizedState=a;var p={value:a,getSnapshot:o};return d.queue=p,Um(Wm.bind(null,c,p,i),[i]),c.flags|=2048,gs(9,Dm.bind(null,c,p,a,o),void 0,null),a},useId:function(){var i=Vn(),o=Je.identifierPrefix;if(_e){var a=hr,c=dr;a=(c&~(1<<32-xn(c)-1)).toString(32)+a,o=":"+o+"R"+a,a=ps++,0<a&&(o+="H"+a.toString(32)),o+=":"}else a=Cx++,o=":"+o+"r"+a.toString(32)+":";return i.memoizedState=o},unstable_isNewReconciler:!1},Lx={readContext:sn,useCallback:Ym,useContext:sn,useEffect:wd,useImperativeHandle:Xm,useInsertionEffect:Vm,useLayoutEffect:Qm,useMemo:Zm,useReducer:vd,useRef:Hm,useState:function(){return vd(ms)},useDebugValue:Sd,useDeferredValue:function(i){var o=an();return Km(o,Ve.memoizedState,i)},useTransition:function(){var i=vd(ms)[0],o=an().memoizedState;return[i,o]},useMutableSource:Fm,useSyncExternalStore:Mm,useId:$m,unstable_isNewReconciler:!1},Nx={readContext:sn,useCallback:Ym,useContext:sn,useEffect:wd,useImperativeHandle:Xm,useInsertionEffect:Vm,useLayoutEffect:Qm,useMemo:Zm,useReducer:yd,useRef:Hm,useState:function(){return yd(ms)},useDebugValue:Sd,useDeferredValue:function(i){var o=an();return Ve===null?o.memoizedState=i:Km(o,Ve.memoizedState,i)},useTransition:function(){var i=yd(ms)[0],o=an().memoizedState;return[i,o]},useMutableSource:Fm,useSyncExternalStore:Mm,useId:$m,unstable_isNewReconciler:!1};function co(i,o){try{var a="",c=o;do a+=kx(c),c=c.return;while(c);var d=a}catch(p){d=`
|
|
6
|
-
Error
|
|
7
|
-
`+p.stack}return{value:i,source:o,stack:d,digest:null}}function xd(i,o,a){return{value:i,source:null,stack:a??null,digest:o??null}}function Ed(i,o){try{console.error(o.value)}catch(a){setTimeout(function(){throw a})}}var Ox=typeof WeakMap=="function"?WeakMap:Map;function tg(i,o,a){a=fr(-1,a),a.tag=3,a.payload={element:null};var c=o.value;return a.callback=function(){xa||(xa=!0,Hd=c),Ed(i,o)},a}function ng(i,o,a){a=fr(-1,a),a.tag=3;var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;a.payload=function(){return c(d)},a.callback=function(){Ed(i,o)}}var p=i.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(a.callback=function(){Ed(i,o),typeof c!="function"&&(Dr===null?Dr=new Set([this]):Dr.add(this));var y=o.stack;this.componentDidCatch(o.value,{componentStack:y!==null?y:""})}),a}function rg(i,o,a){var c=i.pingCache;if(c===null){c=i.pingCache=new Ox;var d=new Set;c.set(o,d)}else d=c.get(o),d===void 0&&(d=new Set,c.set(o,d));d.has(a)||(d.add(a),i=Xx.bind(null,i,o,a),o.then(i,i))}function ig(i){do{var o;if((o=i.tag===13)&&(o=i.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return i;i=i.return}while(i!==null);return null}function og(i,o,a,c,d){return i.mode&1?(i.flags|=65536,i.lanes=d,i):(i===o?i.flags|=65536:(i.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(o=fr(-1,1),o.tag=2,Ar(a,o,1))),a.lanes|=1),i)}var Fx=h.ReactCurrentOwner,Nt=!1;function _t(i,o,a,c){o.child=i===null?Nm(o,null,a,c):lo(o,i.child,a,c)}function sg(i,o,a,c,d){a=a.render;var p=o.ref;return so(o,d),c=md(i,o,a,c,p,d),a=gd(),i!==null&&!Nt?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~d,pr(i,o,d)):(_e&&a&&Kc(o),o.flags|=1,_t(i,o,c,d),o.child)}function lg(i,o,a,c,d){if(i===null){var p=a.type;return typeof p=="function"&&!Yd(p)&&p.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(o.tag=15,o.type=p,ag(i,o,p,c,d)):(i=Ta(a.type,null,c,o,o.mode,d),i.ref=o.ref,i.return=o,o.child=i)}if(p=i.child,!(i.lanes&d)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:Zl,a(y,c)&&i.ref===o.ref)return pr(i,o,d)}return o.flags|=1,i=br(p,c),i.ref=o.ref,i.return=o,o.child=i}function ag(i,o,a,c,d){if(i!==null){var p=i.memoizedProps;if(Zl(p,c)&&i.ref===o.ref)if(Nt=!1,o.pendingProps=c=p,(i.lanes&d)!==0)i.flags&131072&&(Nt=!0);else return o.lanes=i.lanes,pr(i,o,d)}return _d(i,o,a,c,d)}function ug(i,o,a){var c=o.pendingProps,d=c.children,p=i!==null?i.memoizedState:null;if(c.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(fo,Vt),Vt|=a;else{if(!(a&1073741824))return i=p!==null?p.baseLanes|a:a,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i,cachePool:null,transitions:null},o.updateQueue=null,me(fo,Vt),Vt|=i,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=p!==null?p.baseLanes:a,me(fo,Vt),Vt|=c}else p!==null?(c=p.baseLanes|a,o.memoizedState=null):c=a,me(fo,Vt),Vt|=c;return _t(i,o,d,a),o.child}function cg(i,o){var a=o.ref;(i===null&&a!==null||i!==null&&i.ref!==a)&&(o.flags|=512,o.flags|=2097152)}function _d(i,o,a,c,d){var p=Lt(a)?gi:dt.current;return p=to(o,p),so(o,d),a=md(i,o,a,c,p,d),c=gd(),i!==null&&!Nt?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~d,pr(i,o,d)):(_e&&c&&Kc(o),o.flags|=1,_t(i,o,a,d),o.child)}function dg(i,o,a,c,d){if(Lt(a)){var p=!0;jl(o)}else p=!1;if(so(o,d),o.stateNode===null)ua(i,o),Rm(o,a,c),ad(o,a,c,d),c=!0;else if(i===null){var y=o.stateNode,C=o.memoizedProps;y.props=C;var N=y.context,B=a.contextType;typeof B=="object"&&B!==null?B=sn(B):(B=Lt(a)?gi:dt.current,B=to(o,B));var X=a.getDerivedStateFromProps,te=typeof X=="function"||typeof y.getSnapshotBeforeUpdate=="function";te||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C!==c||N!==B)&&zm(o,y,c,B),Mr=!1;var H=o.memoizedState;y.state=H,Jl(o,c,y,d),N=o.memoizedState,C!==c||H!==N||It.current||Mr?(typeof X=="function"&&(ld(o,a,X,c),N=o.memoizedState),(C=Mr||Tm(o,a,C,c,H,N,B))?(te||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(o.flags|=4194308)):(typeof y.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=N),y.props=c,y.state=N,y.context=B,c=C):(typeof y.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{y=o.stateNode,_m(i,o),C=o.memoizedProps,B=o.type===o.elementType?C:Pn(o.type,C),y.props=B,te=o.pendingProps,H=y.context,N=a.contextType,typeof N=="object"&&N!==null?N=sn(N):(N=Lt(a)?gi:dt.current,N=to(o,N));var Se=a.getDerivedStateFromProps;(X=typeof Se=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C!==te||H!==N)&&zm(o,y,c,N),Mr=!1,H=o.memoizedState,y.state=H,Jl(o,c,y,d);var pe=o.memoizedState;C!==te||H!==pe||It.current||Mr?(typeof Se=="function"&&(ld(o,a,Se,c),pe=o.memoizedState),(B=Mr||Tm(o,a,B,c,H,pe,N)||!1)?(X||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,pe,N),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,pe,N)),typeof y.componentDidUpdate=="function"&&(o.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof y.componentDidUpdate!="function"||C===i.memoizedProps&&H===i.memoizedState||(o.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&H===i.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=pe),y.props=c,y.state=pe,y.context=N,c=B):(typeof y.componentDidUpdate!="function"||C===i.memoizedProps&&H===i.memoizedState||(o.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&H===i.memoizedState||(o.flags|=1024),c=!1)}return Pd(i,o,a,c,p,d)}function Pd(i,o,a,c,d,p){cg(i,o);var y=(o.flags&128)!==0;if(!c&&!y)return d&&dm(o,a,!1),pr(i,o,p);c=o.stateNode,Fx.current=o;var C=y&&typeof a.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,i!==null&&y?(o.child=lo(o,i.child,null,p),o.child=lo(o,null,C,p)):_t(i,o,C,p),o.memoizedState=c.state,d&&dm(o,a,!0),o.child}function hg(i){var o=i.stateNode;o.pendingContext?um(i,o.pendingContext,o.pendingContext!==o.context):o.context&&um(i,o.context,!1),ud(i,o.containerInfo)}function fg(i,o,a,c,d){return io(),ed(d),o.flags|=256,_t(i,o,a,c),o.child}var kd={dehydrated:null,treeContext:null,retryLane:0};function Cd(i){return{baseLanes:i,cachePool:null,transitions:null}}function pg(i,o,a){var c=o.pendingProps,d=Ce.current,p=!1,y=(o.flags&128)!==0,C;if((C=y)||(C=i!==null&&i.memoizedState===null?!1:(d&2)!==0),C?(p=!0,o.flags&=-129):(i===null||i.memoizedState!==null)&&(d|=1),me(Ce,d&1),i===null)return Jc(o),i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?(o.mode&1?Wc(i)?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(y=c.children,i=c.fallback,p?(c=o.mode,p=o.child,y={mode:"hidden",children:y},!(c&1)&&p!==null?(p.childLanes=0,p.pendingProps=y):p=Ra(y,c,0,null),i=ki(i,c,a,null),p.return=o,i.return=o,p.sibling=i,o.child=p,o.child.memoizedState=Cd(a),o.memoizedState=kd,i):Td(o,y));if(d=i.memoizedState,d!==null&&(C=d.dehydrated,C!==null))return Mx(i,o,y,c,C,d,a);if(p){p=c.fallback,y=o.mode,d=i.child,C=d.sibling;var N={mode:"hidden",children:c.children};return!(y&1)&&o.child!==d?(c=o.child,c.childLanes=0,c.pendingProps=N,o.deletions=null):(c=br(d,N),c.subtreeFlags=d.subtreeFlags&14680064),C!==null?p=br(C,p):(p=ki(p,y,a,null),p.flags|=2),p.return=o,c.return=o,c.sibling=p,o.child=c,c=p,p=o.child,y=i.child.memoizedState,y=y===null?Cd(a):{baseLanes:y.baseLanes|a,cachePool:null,transitions:y.transitions},p.memoizedState=y,p.childLanes=i.childLanes&~a,o.memoizedState=kd,c}return p=i.child,i=p.sibling,c=br(p,{mode:"visible",children:c.children}),!(o.mode&1)&&(c.lanes=a),c.return=o,c.sibling=null,i!==null&&(a=o.deletions,a===null?(o.deletions=[i],o.flags|=16):a.push(i)),o.child=c,o.memoizedState=null,c}function Td(i,o){return o=Ra({mode:"visible",children:o},i.mode,0,null),o.return=i,i.child=o}function aa(i,o,a,c){return c!==null&&ed(c),lo(o,i.child,null,a),i=Td(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function Mx(i,o,a,c,d,p,y){if(a)return o.flags&256?(o.flags&=-257,c=xd(Error(u(422))),aa(i,o,y,c)):o.memoizedState!==null?(o.child=i.child,o.flags|=128,null):(p=c.fallback,d=o.mode,c=Ra({mode:"visible",children:c.children},d,0,null),p=ki(p,d,y,null),p.flags|=2,c.return=o,p.return=o,c.sibling=p,o.child=c,o.mode&1&&lo(o,i.child,null,y),o.child.memoizedState=Cd(y),o.memoizedState=kd,p);if(!(o.mode&1))return aa(i,o,y,null);if(Wc(d))return c=YS(d).digest,p=Error(u(419)),c=xd(p,c,void 0),aa(i,o,y,c);if(a=(y&i.childLanes)!==0,Nt||a){if(c=Je,c!==null){switch(y&-y){case 4:d=2;break;case 16:d=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=d&(c.suspendedLanes|y)?0:d,d!==0&&d!==p.retryLane&&(p.retryLane=d,Hn(i,d),un(c,i,d,-1))}return Xd(),c=xd(Error(u(421))),aa(i,o,y,c)}return am(d)?(o.flags|=128,o.child=i.child,o=Yx.bind(null,i),ZS(d,o),null):(i=p.treeContext,J&&(on=qS(d),Ut=o,_e=!0,_n=null,us=!1,i!==null&&(nn[rn++]=dr,nn[rn++]=hr,nn[rn++]=vi,dr=i.id,hr=i.overflow,vi=o)),o=Td(o,c.children),o.flags|=4096,o)}function mg(i,o,a){i.lanes|=o;var c=i.alternate;c!==null&&(c.lanes|=o),id(i.return,o,a)}function Rd(i,o,a,c,d){var p=i.memoizedState;p===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:d}:(p.isBackwards=o,p.rendering=null,p.renderingStartTime=0,p.last=c,p.tail=a,p.tailMode=d)}function gg(i,o,a){var c=o.pendingProps,d=c.revealOrder,p=c.tail;if(_t(i,o,c.children,a),c=Ce.current,c&2)c=c&1|2,o.flags|=128;else{if(i!==null&&i.flags&128)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&mg(i,a,o);else if(i.tag===19)mg(i,a,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}c&=1}if(me(Ce,c),!(o.mode&1))o.memoizedState=null;else switch(d){case"forwards":for(a=o.child,d=null;a!==null;)i=a.alternate,i!==null&&na(i)===null&&(d=a),a=a.sibling;a=d,a===null?(d=o.child,o.child=null):(d=a.sibling,a.sibling=null),Rd(o,!1,d,a,p);break;case"backwards":for(a=null,d=o.child,o.child=null;d!==null;){if(i=d.alternate,i!==null&&na(i)===null){o.child=d;break}i=d.sibling,d.sibling=a,a=d,d=i}Rd(o,!0,a,null,p);break;case"together":Rd(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ua(i,o){!(o.mode&1)&&i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2)}function pr(i,o,a){if(i!==null&&(o.dependencies=i.dependencies),xi|=o.lanes,!(a&o.childLanes))return null;if(i!==null&&o.child!==i.child)throw Error(u(153));if(o.child!==null){for(i=o.child,a=br(i,i.pendingProps),o.child=a,a.return=o;i.sibling!==null;)i=i.sibling,a=a.sibling=br(i,i.pendingProps),a.return=o;a.sibling=null}return o.child}function Ax(i,o,a){switch(o.tag){case 3:hg(o),io();break;case 5:Om(o);break;case 1:Lt(o.type)&&jl(o);break;case 4:ud(o,o.stateNode.containerInfo);break;case 10:xm(o,o.type._context,o.memoizedProps.value);break;case 13:var c=o.memoizedState;if(c!==null)return c.dehydrated!==null?(me(Ce,Ce.current&1),o.flags|=128,null):a&o.child.childLanes?pg(i,o,a):(me(Ce,Ce.current&1),i=pr(i,o,a),i!==null?i.sibling:null);me(Ce,Ce.current&1);break;case 19:if(c=(a&o.childLanes)!==0,i.flags&128){if(c)return gg(i,o,a);o.flags|=128}var d=o.memoizedState;if(d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),me(Ce,Ce.current),c)break;return null;case 22:case 23:return o.lanes=0,ug(i,o,a)}return pr(i,o,a)}function Qn(i){i.flags|=4}function vg(i,o){if(i!==null&&i.child===o.child)return!0;if(o.flags&16)return!1;for(i=o.child;i!==null;){if(i.flags&12854||i.subtreeFlags&12854)return!1;i=i.sibling}return!0}var vs,ys,ca,da;if(ct)vs=function(i,o){for(var a=o.child;a!==null;){if(a.tag===5||a.tag===6)es(i,a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},ys=function(){},ca=function(i,o,a,c,d){if(i=i.memoizedProps,i!==c){var p=o.stateNode,y=Un(ln.current);a=ns(p,a,i,c,d,y),(o.updateQueue=a)&&Qn(o)}},da=function(i,o,a,c){a!==c&&Qn(o)};else if($){vs=function(i,o,a,c){for(var d=o.child;d!==null;){if(d.tag===5){var p=d.stateNode;a&&c&&(p=sm(p,d.type,d.memoizedProps,d)),es(i,p)}else if(d.tag===6)p=d.stateNode,a&&c&&(p=lm(p,d.memoizedProps,d)),es(i,p);else if(d.tag!==4){if(d.tag===22&&d.memoizedState!==null)p=d.child,p!==null&&(p.return=d),vs(i,d,!0,!0);else if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===o)break;for(;d.sibling===null;){if(d.return===null||d.return===o)return;d=d.return}d.sibling.return=d.return,d=d.sibling}};var yg=function(i,o,a,c){for(var d=o.child;d!==null;){if(d.tag===5){var p=d.stateNode;a&&c&&(p=sm(p,d.type,d.memoizedProps,d)),om(i,p)}else if(d.tag===6)p=d.stateNode,a&&c&&(p=lm(p,d.memoizedProps,d)),om(i,p);else if(d.tag!==4){if(d.tag===22&&d.memoizedState!==null)p=d.child,p!==null&&(p.return=d),yg(i,d,!0,!0);else if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===o)break;for(;d.sibling===null;){if(d.return===null||d.return===o)return;d=d.return}d.sibling.return=d.return,d=d.sibling}};ys=function(i,o){var a=o.stateNode;if(!vg(i,o)){i=a.containerInfo;var c=im(i);yg(c,o,!1,!1),a.pendingChildren=c,Qn(o),VS(i,c)}},ca=function(i,o,a,c,d){var p=i.stateNode,y=i.memoizedProps;if((i=vg(i,o))&&y===c)o.stateNode=p;else{var C=o.stateNode,N=Un(ln.current),B=null;y!==c&&(B=ns(C,a,y,c,d,N)),i&&B===null?o.stateNode=p:(p=US(p,B,a,y,c,o,i,C),ts(p,a,c,d,N)&&Qn(o),o.stateNode=p,i?Qn(o):vs(p,o,!1,!1))}},da=function(i,o,a,c){a!==c?(i=Un(ao.current),a=Un(ln.current),o.stateNode=Dl(c,i,a,o),Qn(o)):o.stateNode=i.stateNode}}else ys=function(){},ca=function(){},da=function(){};function ws(i,o){if(!_e)switch(i.tailMode){case"hidden":o=i.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?i.tail=null:a.sibling=null;break;case"collapsed":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:c.sibling=null}}function ft(i){var o=i.alternate!==null&&i.alternate.child===i.child,a=0,c=0;if(o)for(var d=i.child;d!==null;)a|=d.lanes|d.childLanes,c|=d.subtreeFlags&14680064,c|=d.flags&14680064,d.return=i,d=d.sibling;else for(d=i.child;d!==null;)a|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=i,d=d.sibling;return i.subtreeFlags|=c,i.childLanes=a,o}function Dx(i,o,a){var c=o.pendingProps;switch($c(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(o),null;case 1:return Lt(o.type)&&Bl(),ft(o),null;case 3:return a=o.stateNode,uo(),we(It),we(dt),hd(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(i===null||i.child===null)&&(Yl(o)?Qn(o):i===null||i.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,_n!==null&&(Qd(_n),_n=null))),ys(i,o),ft(o),null;case 5:cd(o),a=Un(ao.current);var d=o.type;if(i!==null&&o.stateNode!=null)ca(i,o,d,c,a),i.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(u(166));return ft(o),null}if(i=Un(ln.current),Yl(o)){if(!J)throw Error(u(175));i=JS(o.stateNode,o.type,o.memoizedProps,a,i,o,!us),o.updateQueue=i,i!==null&&Qn(o)}else{var p=qi(d,c,a,i,o);vs(p,o,!1,!1),o.stateNode=p,ts(p,d,c,a,i)&&Qn(o)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return ft(o),null;case 6:if(i&&o.stateNode!=null)da(i,o,i.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(u(166));if(i=Un(ao.current),a=Un(ln.current),Yl(o)){if(!J)throw Error(u(176));if(i=o.stateNode,a=o.memoizedProps,(c=ex(i,a,o,!us))&&(d=Ut,d!==null))switch(d.tag){case 3:ax(d.stateNode.containerInfo,i,a,(d.mode&1)!==0);break;case 5:ux(d.type,d.memoizedProps,d.stateNode,i,a,(d.mode&1)!==0)}c&&Qn(o)}else o.stateNode=Dl(c,i,a,o)}return ft(o),null;case 13:if(we(Ce),c=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(_e&&on!==null&&o.mode&1&&!(o.flags&128))Sm(),io(),o.flags|=98560,d=!1;else if(d=Yl(o),c!==null&&c.dehydrated!==null){if(i===null){if(!d)throw Error(u(318));if(!J)throw Error(u(344));if(d=o.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(u(317));tx(d,o)}else io(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;ft(o),d=!1}else _n!==null&&(Qd(_n),_n=null),d=!0;if(!d)return o.flags&65536?o:null}return o.flags&128?(o.lanes=a,o):(a=c!==null,a!==(i!==null&&i.memoizedState!==null)&&a&&(o.child.flags|=8192,o.mode&1&&(i===null||Ce.current&1?Qe===0&&(Qe=3):Xd())),o.updateQueue!==null&&(o.flags|=4),ft(o),null);case 4:return uo(),ys(i,o),i===null&&rt(o.stateNode.containerInfo),ft(o),null;case 10:return rd(o.type._context),ft(o),null;case 17:return Lt(o.type)&&Bl(),ft(o),null;case 19:if(we(Ce),d=o.memoizedState,d===null)return ft(o),null;if(c=(o.flags&128)!==0,p=d.rendering,p===null)if(c)ws(d,!1);else{if(Qe!==0||i!==null&&i.flags&128)for(i=o.child;i!==null;){if(p=na(i),p!==null){for(o.flags|=128,ws(d,!1),i=p.updateQueue,i!==null&&(o.updateQueue=i,o.flags|=4),o.subtreeFlags=0,i=a,a=o.child;a!==null;)c=a,d=i,c.flags&=14680066,p=c.alternate,p===null?(c.childLanes=0,c.lanes=d,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=p.childLanes,c.lanes=p.lanes,c.child=p.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=p.memoizedProps,c.memoizedState=p.memoizedState,c.updateQueue=p.updateQueue,c.type=p.type,d=p.dependencies,c.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext}),a=a.sibling;return me(Ce,Ce.current&1|2),o.child}i=i.sibling}d.tail!==null&&$e()>bd&&(o.flags|=128,c=!0,ws(d,!1),o.lanes=4194304)}else{if(!c)if(i=na(p),i!==null){if(o.flags|=128,c=!0,i=i.updateQueue,i!==null&&(o.updateQueue=i,o.flags|=4),ws(d,!0),d.tail===null&&d.tailMode==="hidden"&&!p.alternate&&!_e)return ft(o),null}else 2*$e()-d.renderingStartTime>bd&&a!==1073741824&&(o.flags|=128,c=!0,ws(d,!1),o.lanes=4194304);d.isBackwards?(p.sibling=o.child,o.child=p):(i=d.last,i!==null?i.sibling=p:o.child=p,d.last=p)}return d.tail!==null?(o=d.tail,d.rendering=o,d.tail=o.sibling,d.renderingStartTime=$e(),o.sibling=null,i=Ce.current,me(Ce,c?i&1|2:i&1),o):(ft(o),null);case 22:case 23:return Gd(),a=o.memoizedState!==null,i!==null&&i.memoizedState!==null!==a&&(o.flags|=8192),a&&o.mode&1?Vt&1073741824&&(ft(o),ct&&o.subtreeFlags&6&&(o.flags|=8192)):ft(o),null;case 24:return null;case 25:return null}throw Error(u(156,o.tag))}function Wx(i,o){switch($c(o),o.tag){case 1:return Lt(o.type)&&Bl(),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return uo(),we(It),we(dt),hd(),i=o.flags,i&65536&&!(i&128)?(o.flags=i&-65537|128,o):null;case 5:return cd(o),null;case 13:if(we(Ce),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(u(340));io()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return we(Ce),null;case 4:return uo(),null;case 10:return rd(o.type._context),null;case 22:case 23:return Gd(),null;case 24:return null;default:return null}}var ha=!1,pt=!1,Bx=typeof WeakSet=="function"?WeakSet:Set,Q=null;function ho(i,o){var a=i.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){Pe(i,o,c)}else a.current=null}function zd(i,o,a){try{a()}catch(c){Pe(i,o,c)}}var wg=!1;function jx(i,o){for(j(i.containerInfo),Q=o;Q!==null;)if(i=Q,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,Q=o;else for(;Q!==null;){i=Q;try{var a=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(a!==null){var c=a.memoizedProps,d=a.memoizedState,p=i.stateNode,y=p.getSnapshotBeforeUpdate(i.elementType===i.type?c:Pn(i.type,c),d);p.__reactInternalSnapshotBeforeUpdate=y}break;case 3:ct&&HS(i.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(u(163))}}catch(C){Pe(i,i.return,C)}if(o=i.sibling,o!==null){o.return=i.return,Q=o;break}Q=i.return}return a=wg,wg=!1,a}function Ss(i,o,a){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var d=c=c.next;do{if((d.tag&i)===i){var p=d.destroy;d.destroy=void 0,p!==void 0&&zd(o,a,p)}d=d.next}while(d!==c)}}function fa(i,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&i)===i){var c=a.create;a.destroy=c()}a=a.next}while(a!==o)}}function Id(i){var o=i.ref;if(o!==null){var a=i.stateNode;switch(i.tag){case 5:i=tn(a);break;default:i=a}typeof o=="function"?o(i):o.current=i}}function Sg(i){var o=i.alternate;o!==null&&(i.alternate=null,Sg(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&Bn(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function xg(i){return i.tag===5||i.tag===3||i.tag===4}function Eg(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||xg(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Ld(i,o,a){var c=i.tag;if(c===5||c===6)i=i.stateNode,o?MS(a,i,o):IS(a,i);else if(c!==4&&(i=i.child,i!==null))for(Ld(i,o,a),i=i.sibling;i!==null;)Ld(i,o,a),i=i.sibling}function Nd(i,o,a){var c=i.tag;if(c===5||c===6)i=i.stateNode,o?FS(a,i,o):zS(a,i);else if(c!==4&&(i=i.child,i!==null))for(Nd(i,o,a),i=i.sibling;i!==null;)Nd(i,o,a),i=i.sibling}var it=null,kn=!1;function Gn(i,o,a){for(a=a.child;a!==null;)Od(i,o,a),a=a.sibling}function Od(i,o,a){if(jn&&typeof jn.onCommitFiberUnmount=="function")try{jn.onCommitFiberUnmount(Vl,a)}catch{}switch(a.tag){case 5:pt||ho(a,o);case 6:if(ct){var c=it,d=kn;it=null,Gn(i,o,a),it=c,kn=d,it!==null&&(kn?DS(it,a.stateNode):AS(it,a.stateNode))}else Gn(i,o,a);break;case 18:ct&&it!==null&&(kn?sx(it,a.stateNode):ox(it,a.stateNode));break;case 4:ct?(c=it,d=kn,it=a.stateNode.containerInfo,kn=!0,Gn(i,o,a),it=c,kn=d):($&&(c=a.stateNode.containerInfo,d=im(c),Dc(c,d)),Gn(i,o,a));break;case 0:case 11:case 14:case 15:if(!pt&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var p=d,y=p.destroy;p=p.tag,y!==void 0&&(p&2||p&4)&&zd(a,o,y),d=d.next}while(d!==c)}Gn(i,o,a);break;case 1:if(!pt&&(ho(a,o),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(C){Pe(a,o,C)}Gn(i,o,a);break;case 21:Gn(i,o,a);break;case 22:a.mode&1?(pt=(c=pt)||a.memoizedState!==null,Gn(i,o,a),pt=c):Gn(i,o,a);break;default:Gn(i,o,a)}}function _g(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var a=i.stateNode;a===null&&(a=i.stateNode=new Bx),o.forEach(function(c){var d=Zx.bind(null,i,c);a.has(c)||(a.add(c),c.then(d,d))})}}function Cn(i,o){var a=o.deletions;if(a!==null)for(var c=0;c<a.length;c++){var d=a[c];try{var p=i,y=o;if(ct){var C=y;e:for(;C!==null;){switch(C.tag){case 5:it=C.stateNode,kn=!1;break e;case 3:it=C.stateNode.containerInfo,kn=!0;break e;case 4:it=C.stateNode.containerInfo,kn=!0;break e}C=C.return}if(it===null)throw Error(u(160));Od(p,y,d),it=null,kn=!1}else Od(p,y,d);var N=d.alternate;N!==null&&(N.return=null),d.return=null}catch(B){Pe(d,o,B)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Pg(o,i),o=o.sibling}function Pg(i,o){var a=i.alternate,c=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Cn(o,i),Xn(i),c&4){try{Ss(3,i,i.return),fa(3,i)}catch(H){Pe(i,i.return,H)}try{Ss(5,i,i.return)}catch(H){Pe(i,i.return,H)}}break;case 1:Cn(o,i),Xn(i),c&512&&a!==null&&ho(a,a.return);break;case 5:if(Cn(o,i),Xn(i),c&512&&a!==null&&ho(a,a.return),ct){if(i.flags&32){var d=i.stateNode;try{rm(d)}catch(H){Pe(i,i.return,H)}}if(c&4&&(d=i.stateNode,d!=null)){var p=i.memoizedProps;if(a=a!==null?a.memoizedProps:p,c=i.type,o=i.updateQueue,i.updateQueue=null,o!==null)try{OS(d,o,c,a,p,i)}catch(H){Pe(i,i.return,H)}}}break;case 6:if(Cn(o,i),Xn(i),c&4&&ct){if(i.stateNode===null)throw Error(u(162));d=i.stateNode,p=i.memoizedProps,a=a!==null?a.memoizedProps:p;try{LS(d,a,p)}catch(H){Pe(i,i.return,H)}}break;case 3:if(Cn(o,i),Xn(i),c&4){if(ct&&J&&a!==null&&a.memoizedState.isDehydrated)try{rx(o.containerInfo)}catch(H){Pe(i,i.return,H)}if($){d=o.containerInfo,p=o.pendingChildren;try{Dc(d,p)}catch(H){Pe(i,i.return,H)}}}break;case 4:if(Cn(o,i),Xn(i),c&4&&$){p=i.stateNode,d=p.containerInfo,p=p.pendingChildren;try{Dc(d,p)}catch(H){Pe(i,i.return,H)}}break;case 13:Cn(o,i),Xn(i),d=i.child,d.flags&8192&&(p=d.memoizedState!==null,d.stateNode.isHidden=p,!p||d.alternate!==null&&d.alternate.memoizedState!==null||(jd=$e())),c&4&&_g(i);break;case 22:var y=a!==null&&a.memoizedState!==null;if(i.mode&1?(pt=(a=pt)||y,Cn(o,i),pt=a):Cn(o,i),Xn(i),c&8192){if(a=i.memoizedState!==null,(i.stateNode.isHidden=a)&&!y&&i.mode&1)for(Q=i,c=i.child;c!==null;){for(o=Q=c;Q!==null;){y=Q;var C=y.child;switch(y.tag){case 0:case 11:case 14:case 15:Ss(4,y,y.return);break;case 1:ho(y,y.return);var N=y.stateNode;if(typeof N.componentWillUnmount=="function"){var B=y,X=y.return;try{var te=B;N.props=te.memoizedProps,N.state=te.memoizedState,N.componentWillUnmount()}catch(H){Pe(B,X,H)}}break;case 5:ho(y,y.return);break;case 22:if(y.memoizedState!==null){Tg(o);continue}}C!==null?(C.return=y,Q=C):Tg(o)}c=c.sibling}if(ct){e:if(c=null,ct)for(o=i;;){if(o.tag===5){if(c===null){c=o;try{d=o.stateNode,a?WS(d):jS(o.stateNode,o.memoizedProps)}catch(H){Pe(i,i.return,H)}}}else if(o.tag===6){if(c===null)try{p=o.stateNode,a?BS(p):bS(p,o.memoizedProps)}catch(H){Pe(i,i.return,H)}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}}}break;case 19:Cn(o,i),Xn(i),c&4&&_g(i);break;case 21:break;default:Cn(o,i),Xn(i)}}function Xn(i){var o=i.flags;if(o&2){try{if(ct){e:{for(var a=i.return;a!==null;){if(xg(a)){var c=a;break e}a=a.return}throw Error(u(160))}switch(c.tag){case 5:var d=c.stateNode;c.flags&32&&(rm(d),c.flags&=-33);var p=Eg(i);Nd(i,p,d);break;case 3:case 4:var y=c.stateNode.containerInfo,C=Eg(i);Ld(i,C,y);break;default:throw Error(u(161))}}}catch(N){Pe(i,i.return,N)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function bx(i,o,a){Q=i,kg(i,o,a)}function kg(i,o,a){for(var c=(i.mode&1)!==0;Q!==null;){var d=Q,p=d.child;if(d.tag===22&&c){var y=d.memoizedState!==null||ha;if(!y){var C=d.alternate,N=C!==null&&C.memoizedState!==null||pt;C=ha;var B=pt;if(ha=y,(pt=N)&&!B)for(Q=d;Q!==null;)y=Q,N=y.child,y.tag===22&&y.memoizedState!==null?Rg(d):N!==null?(N.return=y,Q=N):Rg(d);for(;p!==null;)Q=p,kg(p,o,a),p=p.sibling;Q=d,ha=C,pt=B}Cg(i,o,a)}else d.subtreeFlags&8772&&p!==null?(p.return=d,Q=p):Cg(i,o,a)}}function Cg(i){for(;Q!==null;){var o=Q;if(o.flags&8772){var a=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:pt||fa(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!pt)if(a===null)c.componentDidMount();else{var d=o.elementType===o.type?a.memoizedProps:Pn(o.type,a.memoizedProps);c.componentDidUpdate(d,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var p=o.updateQueue;p!==null&&km(o,p,c);break;case 3:var y=o.updateQueue;if(y!==null){if(a=null,o.child!==null)switch(o.child.tag){case 5:a=tn(o.child.stateNode);break;case 1:a=o.child.stateNode}km(o,y,a)}break;case 5:var C=o.stateNode;a===null&&o.flags&4&&NS(C,o.type,o.memoizedProps,o);break;case 6:break;case 4:break;case 12:break;case 13:if(J&&o.memoizedState===null){var N=o.alternate;if(N!==null){var B=N.memoizedState;if(B!==null){var X=B.dehydrated;X!==null&&ix(X)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(u(163))}pt||o.flags&512&&Id(o)}catch(te){Pe(o,o.return,te)}}if(o===i){Q=null;break}if(a=o.sibling,a!==null){a.return=o.return,Q=a;break}Q=o.return}}function Tg(i){for(;Q!==null;){var o=Q;if(o===i){Q=null;break}var a=o.sibling;if(a!==null){a.return=o.return,Q=a;break}Q=o.return}}function Rg(i){for(;Q!==null;){var o=Q;try{switch(o.tag){case 0:case 11:case 15:var a=o.return;try{fa(4,o)}catch(N){Pe(o,a,N)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var d=o.return;try{c.componentDidMount()}catch(N){Pe(o,d,N)}}var p=o.return;try{Id(o)}catch(N){Pe(o,p,N)}break;case 5:var y=o.return;try{Id(o)}catch(N){Pe(o,y,N)}}}catch(N){Pe(o,o.return,N)}if(o===i){Q=null;break}var C=o.sibling;if(C!==null){C.return=o.return,Q=C;break}Q=o.return}}var pa=0,ma=1,ga=2,va=3,ya=4;if(typeof Symbol=="function"&&Symbol.for){var xs=Symbol.for;pa=xs("selector.component"),ma=xs("selector.has_pseudo_class"),ga=xs("selector.role"),va=xs("selector.test_id"),ya=xs("selector.text")}function Fd(i){var o=ye(i);if(o!=null){if(typeof o.memoizedProps["data-testname"]!="string")throw Error(u(364));return o}if(i=_S(i),i===null)throw Error(u(362));return i.stateNode.current}function Md(i,o){switch(o.$$typeof){case pa:if(i.type===o.value)return!0;break;case ma:e:{o=o.value,i=[i,0];for(var a=0;a<i.length;){var c=i[a++],d=i[a++],p=o[d];if(c.tag!==5||!os(c)){for(;p!=null&&Md(c,p);)d++,p=o[d];if(d===o.length){o=!0;break e}else for(c=c.child;c!==null;)i.push(c,d),c=c.sibling}}o=!1}return o;case ga:if(i.tag===5&&CS(i.stateNode,o.value))return!0;break;case ya:if((i.tag===5||i.tag===6)&&(i=kS(i),i!==null&&0<=i.indexOf(o.value)))return!0;break;case va:if(i.tag===5&&(i=i.memoizedProps["data-testname"],typeof i=="string"&&i.toLowerCase()===o.value.toLowerCase()))return!0;break;default:throw Error(u(365))}return!1}function Ad(i){switch(i.$$typeof){case pa:return"<"+(D(i.value)||"Unknown")+">";case ma:return":has("+(Ad(i)||"")+")";case ga:return'[role="'+i.value+'"]';case ya:return'"'+i.value+'"';case va:return'[data-testname="'+i.value+'"]';default:throw Error(u(365))}}function zg(i,o){var a=[];i=[i,0];for(var c=0;c<i.length;){var d=i[c++],p=i[c++],y=o[p];if(d.tag!==5||!os(d)){for(;y!=null&&Md(d,y);)p++,y=o[p];if(p===o.length)a.push(d);else for(d=d.child;d!==null;)i.push(d,p),d=d.sibling}}return a}function Dd(i,o){if(!is)throw Error(u(363));i=Fd(i),i=zg(i,o),o=[],i=Array.from(i);for(var a=0;a<i.length;){var c=i[a++];if(c.tag===5)os(c)||o.push(c.stateNode);else for(c=c.child;c!==null;)i.push(c),c=c.sibling}return o}var Hx=Math.ceil,wa=h.ReactCurrentDispatcher,Wd=h.ReactCurrentOwner,Be=h.ReactCurrentBatchConfig,ie=0,Je=null,be=null,ot=0,Vt=0,fo=Or(0),Qe=0,Es=null,xi=0,Sa=0,Bd=0,_s=null,Ot=null,jd=0,bd=1/0,mr=null;function po(){bd=$e()+500}var xa=!1,Hd=null,Dr=null,Ea=!1,Wr=null,_a=0,Ps=0,Ud=null,Pa=-1,ka=0;function mt(){return ie&6?$e():Pa!==-1?Pa:Pa=$e()}function Br(i){return i.mode&1?ie&2&&ot!==0?ot&-ot:Px.transition!==null?(ka===0&&(ka=hm()),ka):(i=ue,i!==0?i:mi()):1}function un(i,o,a,c){if(50<Ps)throw Ps=0,Ud=null,Error(u(185));as(i,a,c),(!(ie&2)||i!==Je)&&(i===Je&&(!(ie&2)&&(Sa|=a),Qe===4&&jr(i,ot)),Ft(i,c),a===1&&ie===0&&!(o.mode&1)&&(po(),Ql&&bn()))}function Ft(i,o){var a=i.callbackNode;mx(i,o);var c=Ul(i,i===Je?ot:0);if(c===0)a!==null&&pm(a),i.callbackNode=null,i.callbackPriority=0;else if(o=c&-c,i.callbackPriority!==o){if(a!=null&&pm(a),o===1)i.tag===0?_x(Lg.bind(null,i)):mm(Lg.bind(null,i)),ur?ES(function(){!(ie&6)&&bn()}):Gc(Xc,bn),a=null;else{switch(fm(c)){case 1:a=Xc;break;case 4:a=wx;break;case 16:a=Yc;break;case 536870912:a=Sx;break;default:a=Yc}a=jg(a,Ig.bind(null,i))}i.callbackPriority=o,i.callbackNode=a}}function Ig(i,o){if(Pa=-1,ka=0,ie&6)throw Error(u(327));var a=i.callbackNode;if(Pi()&&i.callbackNode!==a)return null;var c=Ul(i,i===Je?ot:0);if(c===0)return null;if(c&30||c&i.expiredLanes||o)o=Ca(i,c);else{o=c;var d=ie;ie|=2;var p=Fg();(Je!==i||ot!==o)&&(mr=null,po(),Ei(i,o));do try{Qx();break}catch(C){Og(i,C)}while(!0);nd(),wa.current=p,ie=d,be!==null?o=0:(Je=null,ot=0,o=Qe)}if(o!==0){if(o===2&&(d=Uc(i),d!==0&&(c=d,o=Vd(i,d))),o===1)throw a=Es,Ei(i,0),jr(i,c),Ft(i,$e()),a;if(o===6)jr(i,c);else{if(d=i.current.alternate,!(c&30)&&!Ux(d)&&(o=Ca(i,c),o===2&&(p=Uc(i),p!==0&&(c=p,o=Vd(i,p))),o===1))throw a=Es,Ei(i,0),jr(i,c),Ft(i,$e()),a;switch(i.finishedWork=d,i.finishedLanes=c,o){case 0:case 1:throw Error(u(345));case 2:_i(i,Ot,mr);break;case 3:if(jr(i,c),(c&130023424)===c&&(o=jd+500-$e(),10<o)){if(Ul(i,0)!==0)break;if(d=i.suspendedLanes,(d&c)!==c){mt(),i.pingedLanes|=i.suspendedLanes&d;break}i.timeoutHandle=Ac(_i.bind(null,i,Ot,mr),o);break}_i(i,Ot,mr);break;case 4:if(jr(i,c),(c&4194240)===c)break;for(o=i.eventTimes,d=-1;0<c;){var y=31-xn(c);p=1<<y,y=o[y],y>d&&(d=y),c&=~p}if(c=d,c=$e()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*Hx(c/1960))-c,10<c){i.timeoutHandle=Ac(_i.bind(null,i,Ot,mr),c);break}_i(i,Ot,mr);break;case 5:_i(i,Ot,mr);break;default:throw Error(u(329))}}}return Ft(i,$e()),i.callbackNode===a?Ig.bind(null,i):null}function Vd(i,o){var a=_s;return i.current.memoizedState.isDehydrated&&(Ei(i,o).flags|=256),i=Ca(i,o),i!==2&&(o=Ot,Ot=a,o!==null&&Qd(o)),i}function Qd(i){Ot===null?Ot=i:Ot.push.apply(Ot,i)}function Ux(i){for(var o=i;;){if(o.flags&16384){var a=o.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var d=a[c],p=d.getSnapshot;d=d.value;try{if(!En(p(),d))return!1}catch{return!1}}}if(a=o.child,o.subtreeFlags&16384&&a!==null)a.return=o,o=a;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function jr(i,o){for(o&=~Bd,o&=~Sa,i.suspendedLanes|=o,i.pingedLanes&=~o,i=i.expirationTimes;0<o;){var a=31-xn(o),c=1<<a;i[a]=-1,o&=~c}}function Lg(i){if(ie&6)throw Error(u(327));Pi();var o=Ul(i,0);if(!(o&1))return Ft(i,$e()),null;var a=Ca(i,o);if(i.tag!==0&&a===2){var c=Uc(i);c!==0&&(o=c,a=Vd(i,c))}if(a===1)throw a=Es,Ei(i,0),jr(i,o),Ft(i,$e()),a;if(a===6)throw Error(u(345));return i.finishedWork=i.current.alternate,i.finishedLanes=o,_i(i,Ot,mr),Ft(i,$e()),null}function Ng(i){Wr!==null&&Wr.tag===0&&!(ie&6)&&Pi();var o=ie;ie|=1;var a=Be.transition,c=ue;try{if(Be.transition=null,ue=1,i)return i()}finally{ue=c,Be.transition=a,ie=o,!(ie&6)&&bn()}}function Gd(){Vt=fo.current,we(fo)}function Ei(i,o){i.finishedWork=null,i.finishedLanes=0;var a=i.timeoutHandle;if(a!==rs&&(i.timeoutHandle=rs,nm(a)),be!==null)for(a=be.return;a!==null;){var c=a;switch($c(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Bl();break;case 3:uo(),we(It),we(dt),hd();break;case 5:cd(c);break;case 4:uo();break;case 13:we(Ce);break;case 19:we(Ce);break;case 10:rd(c.type._context);break;case 22:case 23:Gd()}a=a.return}if(Je=i,be=i=br(i.current,null),ot=Vt=o,Qe=0,Es=null,Bd=Sa=xi=0,Ot=_s=null,wi!==null){for(o=0;o<wi.length;o++)if(a=wi[o],c=a.interleaved,c!==null){a.interleaved=null;var d=c.next,p=a.pending;if(p!==null){var y=p.next;p.next=d,c.next=y}a.pending=c}wi=null}return i}function Og(i,o){do{var a=be;try{if(nd(),ra.current=la,ia){for(var c=Te.memoizedState;c!==null;){var d=c.queue;d!==null&&(d.pending=null),c=c.next}ia=!1}if(Si=0,qe=Ve=Te=null,fs=!1,ps=0,Wd.current=null,a===null||a.return===null){Qe=1,Es=o,be=null;break}e:{var p=i,y=a.return,C=a,N=o;if(o=ot,C.flags|=32768,N!==null&&typeof N=="object"&&typeof N.then=="function"){var B=N,X=C,te=X.tag;if(!(X.mode&1)&&(te===0||te===11||te===15)){var H=X.alternate;H?(X.updateQueue=H.updateQueue,X.memoizedState=H.memoizedState,X.lanes=H.lanes):(X.updateQueue=null,X.memoizedState=null)}var Se=ig(y);if(Se!==null){Se.flags&=-257,og(Se,y,C,p,o),Se.mode&1&&rg(p,B,o),o=Se,N=B;var pe=o.updateQueue;if(pe===null){var Mt=new Set;Mt.add(N),o.updateQueue=Mt}else pe.add(N);break e}else{if(!(o&1)){rg(p,B,o),Xd();break e}N=Error(u(426))}}else if(_e&&C.mode&1){var gr=ig(y);if(gr!==null){!(gr.flags&65536)&&(gr.flags|=256),og(gr,y,C,p,o),ed(co(N,C));break e}}p=N=co(N,C),Qe!==4&&(Qe=2),_s===null?_s=[p]:_s.push(p),p=y;do{switch(p.tag){case 3:p.flags|=65536,o&=-o,p.lanes|=o;var I=tg(p,N,o);Pm(p,I);break e;case 1:C=N;var T=p.type,F=p.stateNode;if(!(p.flags&128)&&(typeof T.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(Dr===null||!Dr.has(F)))){p.flags|=65536,o&=-o,p.lanes|=o;var U=ng(p,C,o);Pm(p,U);break e}}p=p.return}while(p!==null)}Ag(a)}catch(Z){o=Z,be===a&&a!==null&&(be=a=a.return);continue}break}while(!0)}function Fg(){var i=wa.current;return wa.current=la,i===null?la:i}function Xd(){(Qe===0||Qe===3||Qe===2)&&(Qe=4),Je===null||!(xi&268435455)&&!(Sa&268435455)||jr(Je,ot)}function Ca(i,o){var a=ie;ie|=2;var c=Fg();(Je!==i||ot!==o)&&(mr=null,Ei(i,o));do try{Vx();break}catch(d){Og(i,d)}while(!0);if(nd(),ie=a,wa.current=c,be!==null)throw Error(u(261));return Je=null,ot=0,Qe}function Vx(){for(;be!==null;)Mg(be)}function Qx(){for(;be!==null&&!vx();)Mg(be)}function Mg(i){var o=Bg(i.alternate,i,Vt);i.memoizedProps=i.pendingProps,o===null?Ag(i):be=o,Wd.current=null}function Ag(i){var o=i;do{var a=o.alternate;if(i=o.return,o.flags&32768){if(a=Wx(a,o),a!==null){a.flags&=32767,be=a;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Qe=6,be=null;return}}else if(a=Dx(a,o,Vt),a!==null){be=a;return}if(o=o.sibling,o!==null){be=o;return}be=o=i}while(o!==null);Qe===0&&(Qe=5)}function _i(i,o,a){var c=ue,d=Be.transition;try{Be.transition=null,ue=1,Gx(i,o,a,c)}finally{Be.transition=d,ue=c}return null}function Gx(i,o,a,c){do Pi();while(Wr!==null);if(ie&6)throw Error(u(327));a=i.finishedWork;var d=i.finishedLanes;if(a===null)return null;if(i.finishedWork=null,i.finishedLanes=0,a===i.current)throw Error(u(177));i.callbackNode=null,i.callbackPriority=0;var p=a.lanes|a.childLanes;if(gx(i,p),i===Je&&(be=Je=null,ot=0),!(a.subtreeFlags&2064)&&!(a.flags&2064)||Ea||(Ea=!0,jg(Yc,function(){return Pi(),null})),p=(a.flags&15990)!==0,a.subtreeFlags&15990||p){p=Be.transition,Be.transition=null;var y=ue;ue=1;var C=ie;ie|=4,Wd.current=null,jx(i,a),Pg(a,i),Me(i.containerInfo),i.current=a,bx(a,i,d),yx(),ie=C,ue=y,Be.transition=p}else i.current=a;if(Ea&&(Ea=!1,Wr=i,_a=d),p=i.pendingLanes,p===0&&(Dr=null),xx(a.stateNode,c),Ft(i,$e()),o!==null)for(c=i.onRecoverableError,a=0;a<o.length;a++)d=o[a],c(d.value,{componentStack:d.stack,digest:d.digest});if(xa)throw xa=!1,i=Hd,Hd=null,i;return _a&1&&i.tag!==0&&Pi(),p=i.pendingLanes,p&1?i===Ud?Ps++:(Ps=0,Ud=i):Ps=0,bn(),null}function Pi(){if(Wr!==null){var i=fm(_a),o=Be.transition,a=ue;try{if(Be.transition=null,ue=16>i?16:i,Wr===null)var c=!1;else{if(i=Wr,Wr=null,_a=0,ie&6)throw Error(u(331));var d=ie;for(ie|=4,Q=i.current;Q!==null;){var p=Q,y=p.child;if(Q.flags&16){var C=p.deletions;if(C!==null){for(var N=0;N<C.length;N++){var B=C[N];for(Q=B;Q!==null;){var X=Q;switch(X.tag){case 0:case 11:case 15:Ss(8,X,p)}var te=X.child;if(te!==null)te.return=X,Q=te;else for(;Q!==null;){X=Q;var H=X.sibling,Se=X.return;if(Sg(X),X===B){Q=null;break}if(H!==null){H.return=Se,Q=H;break}Q=Se}}}var pe=p.alternate;if(pe!==null){var Mt=pe.child;if(Mt!==null){pe.child=null;do{var gr=Mt.sibling;Mt.sibling=null,Mt=gr}while(Mt!==null)}}Q=p}}if(p.subtreeFlags&2064&&y!==null)y.return=p,Q=y;else e:for(;Q!==null;){if(p=Q,p.flags&2048)switch(p.tag){case 0:case 11:case 15:Ss(9,p,p.return)}var I=p.sibling;if(I!==null){I.return=p.return,Q=I;break e}Q=p.return}}var T=i.current;for(Q=T;Q!==null;){y=Q;var F=y.child;if(y.subtreeFlags&2064&&F!==null)F.return=y,Q=F;else e:for(y=T;Q!==null;){if(C=Q,C.flags&2048)try{switch(C.tag){case 0:case 11:case 15:fa(9,C)}}catch(Z){Pe(C,C.return,Z)}if(C===y){Q=null;break e}var U=C.sibling;if(U!==null){U.return=C.return,Q=U;break e}Q=C.return}}if(ie=d,bn(),jn&&typeof jn.onPostCommitFiberRoot=="function")try{jn.onPostCommitFiberRoot(Vl,i)}catch{}c=!0}return c}finally{ue=a,Be.transition=o}}return!1}function Dg(i,o,a){o=co(a,o),o=tg(i,o,1),i=Ar(i,o,1),o=mt(),i!==null&&(as(i,1,o),Ft(i,o))}function Pe(i,o,a){if(i.tag===3)Dg(i,i,a);else for(;o!==null;){if(o.tag===3){Dg(o,i,a);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Dr===null||!Dr.has(c))){i=co(a,i),i=ng(o,i,1),o=Ar(o,i,1),i=mt(),o!==null&&(as(o,1,i),Ft(o,i));break}}o=o.return}}function Xx(i,o,a){var c=i.pingCache;c!==null&&c.delete(o),o=mt(),i.pingedLanes|=i.suspendedLanes&a,Je===i&&(ot&a)===a&&(Qe===4||Qe===3&&(ot&130023424)===ot&&500>$e()-jd?Ei(i,0):Bd|=a),Ft(i,o)}function Wg(i,o){o===0&&(i.mode&1?(o=Hl,Hl<<=1,!(Hl&130023424)&&(Hl=4194304)):o=1);var a=mt();i=Hn(i,o),i!==null&&(as(i,o,a),Ft(i,a))}function Yx(i){var o=i.memoizedState,a=0;o!==null&&(a=o.retryLane),Wg(i,a)}function Zx(i,o){var a=0;switch(i.tag){case 13:var c=i.stateNode,d=i.memoizedState;d!==null&&(a=d.retryLane);break;case 19:c=i.stateNode;break;default:throw Error(u(314))}c!==null&&c.delete(o),Wg(i,a)}var Bg;Bg=function(i,o,a){if(i!==null)if(i.memoizedProps!==o.pendingProps||It.current)Nt=!0;else{if(!(i.lanes&a)&&!(o.flags&128))return Nt=!1,Ax(i,o,a);Nt=!!(i.flags&131072)}else Nt=!1,_e&&o.flags&1048576&&gm(o,Xl,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;ua(i,o),i=o.pendingProps;var d=to(o,dt.current);so(o,a),d=md(null,o,c,i,d,a);var p=gd();return o.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Lt(c)?(p=!0,jl(o)):p=!1,o.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,sd(o),d.updater=ea,o.stateNode=d,d._reactInternals=o,ad(o,c,i,a),o=Pd(null,o,c,!0,p,a)):(o.tag=0,_e&&p&&Kc(o),_t(null,o,d,a),o=o.child),o;case 16:c=o.elementType;e:{switch(ua(i,o),i=o.pendingProps,d=c._init,c=d(c._payload),o.type=c,d=o.tag=$x(c),i=Pn(c,i),d){case 0:o=_d(null,o,c,i,a);break e;case 1:o=dg(null,o,c,i,a);break e;case 11:o=sg(null,o,c,i,a);break e;case 14:o=lg(null,o,c,Pn(c.type,i),a);break e}throw Error(u(306,c,""))}return o;case 0:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Pn(c,d),_d(i,o,c,d,a);case 1:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Pn(c,d),dg(i,o,c,d,a);case 3:e:{if(hg(o),i===null)throw Error(u(387));c=o.pendingProps,p=o.memoizedState,d=p.element,_m(i,o),Jl(o,c,null,a);var y=o.memoizedState;if(c=y.element,J&&p.isDehydrated)if(p={element:c,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},o.updateQueue.baseState=p,o.memoizedState=p,o.flags&256){d=co(Error(u(423)),o),o=fg(i,o,c,a,d);break e}else if(c!==d){d=co(Error(u(424)),o),o=fg(i,o,c,a,d);break e}else for(J&&(on=$S(o.stateNode.containerInfo),Ut=o,_e=!0,_n=null,us=!1),a=Nm(o,null,c,a),o.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(io(),c===d){o=pr(i,o,a);break e}_t(i,o,c,a)}o=o.child}return o;case 5:return Om(o),i===null&&Jc(o),c=o.type,d=o.pendingProps,p=i!==null?i.memoizedProps:null,y=d.children,Ji(c,d)?y=null:p!==null&&Ji(c,p)&&(o.flags|=32),cg(i,o),_t(i,o,y,a),o.child;case 6:return i===null&&Jc(o),null;case 13:return pg(i,o,a);case 4:return ud(o,o.stateNode.containerInfo),c=o.pendingProps,i===null?o.child=lo(o,null,c,a):_t(i,o,c,a),o.child;case 11:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Pn(c,d),sg(i,o,c,d,a);case 7:return _t(i,o,o.pendingProps,a),o.child;case 8:return _t(i,o,o.pendingProps.children,a),o.child;case 12:return _t(i,o,o.pendingProps.children,a),o.child;case 10:e:{if(c=o.type._context,d=o.pendingProps,p=o.memoizedProps,y=d.value,xm(o,c,y),p!==null)if(En(p.value,y)){if(p.children===d.children&&!It.current){o=pr(i,o,a);break e}}else for(p=o.child,p!==null&&(p.return=o);p!==null;){var C=p.dependencies;if(C!==null){y=p.child;for(var N=C.firstContext;N!==null;){if(N.context===c){if(p.tag===1){N=fr(-1,a&-a),N.tag=2;var B=p.updateQueue;if(B!==null){B=B.shared;var X=B.pending;X===null?N.next=N:(N.next=X.next,X.next=N),B.pending=N}}p.lanes|=a,N=p.alternate,N!==null&&(N.lanes|=a),id(p.return,a,o),C.lanes|=a;break}N=N.next}}else if(p.tag===10)y=p.type===o.type?null:p.child;else if(p.tag===18){if(y=p.return,y===null)throw Error(u(341));y.lanes|=a,C=y.alternate,C!==null&&(C.lanes|=a),id(y,a,o),y=p.sibling}else y=p.child;if(y!==null)y.return=p;else for(y=p;y!==null;){if(y===o){y=null;break}if(p=y.sibling,p!==null){p.return=y.return,y=p;break}y=y.return}p=y}_t(i,o,d.children,a),o=o.child}return o;case 9:return d=o.type,c=o.pendingProps.children,so(o,a),d=sn(d),c=c(d),o.flags|=1,_t(i,o,c,a),o.child;case 14:return c=o.type,d=Pn(c,o.pendingProps),d=Pn(c.type,d),lg(i,o,c,d,a);case 15:return ag(i,o,o.type,o.pendingProps,a);case 17:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Pn(c,d),ua(i,o),o.tag=1,Lt(c)?(i=!0,jl(o)):i=!1,so(o,a),Rm(o,c,d),ad(o,c,d,a),Pd(null,o,c,!0,i,a);case 19:return gg(i,o,a);case 22:return ug(i,o,a)}throw Error(u(156,o.tag))};function jg(i,o){return Gc(i,o)}function Kx(i,o,a,c){this.tag=i,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,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 cn(i,o,a,c){return new Kx(i,o,a,c)}function Yd(i){return i=i.prototype,!(!i||!i.isReactComponent)}function $x(i){if(typeof i=="function")return Yd(i)?1:0;if(i!=null){if(i=i.$$typeof,i===R)return 11;if(i===w)return 14}return 2}function br(i,o){var a=i.alternate;return a===null?(a=cn(i.tag,o,i.key,i.mode),a.elementType=i.elementType,a.type=i.type,a.stateNode=i.stateNode,a.alternate=i,i.alternate=a):(a.pendingProps=o,a.type=i.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=i.flags&14680064,a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,o=i.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},a.sibling=i.sibling,a.index=i.index,a.ref=i.ref,a}function Ta(i,o,a,c,d,p){var y=2;if(c=i,typeof i=="function")Yd(i)&&(y=1);else if(typeof i=="string")y=5;else e:switch(i){case m:return ki(a.children,d,p,o);case S:y=8,d|=8;break;case E:return i=cn(12,a,o,d|2),i.elementType=E,i.lanes=p,i;case A:return i=cn(13,a,o,d),i.elementType=A,i.lanes=p,i;case x:return i=cn(19,a,o,d),i.elementType=x,i.lanes=p,i;case L:return Ra(a,d,p,o);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case P:y=10;break e;case k:y=9;break e;case R:y=11;break e;case w:y=14;break e;case _:y=16,c=null;break e}throw Error(u(130,i==null?i:typeof i,""))}return o=cn(y,a,o,d),o.elementType=i,o.type=c,o.lanes=p,o}function ki(i,o,a,c){return i=cn(7,i,c,o),i.lanes=a,i}function Ra(i,o,a,c){return i=cn(22,i,c,o),i.elementType=L,i.lanes=a,i.stateNode={isHidden:!1},i}function Zd(i,o,a){return i=cn(6,i,null,o),i.lanes=a,i}function Kd(i,o,a){return o=cn(4,i.children!==null?i.children:[],i.key,o),o.lanes=a,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function qx(i,o,a,c,d){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=rs,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vc(0),this.expirationTimes=Vc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vc(0),this.identifierPrefix=c,this.onRecoverableError=d,J&&(this.mutableSourceEagerHydrationData=null)}function bg(i,o,a,c,d,p,y,C,N){return i=new qx(i,o,a,C,N),o===1?(o=1,p===!0&&(o|=8)):o=0,p=cn(3,null,null,o),i.current=p,p.stateNode=i,p.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},sd(p),i}function Hg(i){if(!i)return Fr;i=i._reactInternals;e:{if(q(i)!==i||i.tag!==1)throw Error(u(170));var o=i;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Lt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(u(171))}if(i.tag===1){var a=i.type;if(Lt(a))return cm(i,a,o)}return o}function Ug(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(u(188)):(i=Object.keys(i).join(","),Error(u(268,i)));return i=se(o),i===null?null:i.stateNode}function Vg(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var a=i.retryLane;i.retryLane=a!==0&&a<o?a:o}}function za(i,o){Vg(i,o),(i=i.alternate)&&Vg(i,o)}function Jx(i){return i=se(i),i===null?null:i.stateNode}function eE(){return null}return n.attemptContinuousHydration=function(i){if(i.tag===13){var o=Hn(i,134217728);if(o!==null){var a=mt();un(o,i,134217728,a)}za(i,134217728)}},n.attemptDiscreteHydration=function(i){if(i.tag===13){var o=Hn(i,1);if(o!==null){var a=mt();un(o,i,1,a)}za(i,1)}},n.attemptHydrationAtCurrentPriority=function(i){if(i.tag===13){var o=Br(i),a=Hn(i,o);if(a!==null){var c=mt();un(a,i,o,c)}za(i,o)}},n.attemptSynchronousHydration=function(i){switch(i.tag){case 3:var o=i.stateNode;if(o.current.memoizedState.isDehydrated){var a=ls(o.pendingLanes);a!==0&&(Qc(o,a|1),Ft(o,$e()),!(ie&6)&&(po(),bn()))}break;case 13:Ng(function(){var c=Hn(i,1);if(c!==null){var d=mt();un(c,i,1,d)}}),za(i,1)}},n.batchedUpdates=function(i,o){var a=ie;ie|=1;try{return i(o)}finally{ie=a,ie===0&&(po(),Ql&&bn())}},n.createComponentSelector=function(i){return{$$typeof:pa,value:i}},n.createContainer=function(i,o,a,c,d,p,y){return bg(i,o,!1,null,a,c,d,p,y)},n.createHasPseudoClassSelector=function(i){return{$$typeof:ma,value:i}},n.createHydrationContainer=function(i,o,a,c,d,p,y,C,N){return i=bg(a,c,!0,i,d,p,y,C,N),i.context=Hg(null),a=i.current,c=mt(),d=Br(a),p=fr(c,d),p.callback=o??null,Ar(a,p,d),i.current.lanes=d,as(i,d,c),Ft(i,c),i},n.createPortal=function(i,o,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:c==null?null:""+c,children:i,containerInfo:o,implementation:a}},n.createRoleSelector=function(i){return{$$typeof:ga,value:i}},n.createTestNameSelector=function(i){return{$$typeof:va,value:i}},n.createTextSelector=function(i){return{$$typeof:ya,value:i}},n.deferredUpdates=function(i){var o=ue,a=Be.transition;try{return Be.transition=null,ue=16,i()}finally{ue=o,Be.transition=a}},n.discreteUpdates=function(i,o,a,c,d){var p=ue,y=Be.transition;try{return Be.transition=null,ue=1,i(o,a,c,d)}finally{ue=p,Be.transition=y,ie===0&&po()}},n.findAllNodes=Dd,n.findBoundingRects=function(i,o){if(!is)throw Error(u(363));o=Dd(i,o),i=[];for(var a=0;a<o.length;a++)i.push(PS(o[a]));for(o=i.length-1;0<o;o--){a=i[o];for(var c=a.x,d=c+a.width,p=a.y,y=p+a.height,C=o-1;0<=C;C--)if(o!==C){var N=i[C],B=N.x,X=B+N.width,te=N.y,H=te+N.height;if(c>=B&&p>=te&&d<=X&&y<=H){i.splice(o,1);break}else if(c!==B||a.width!==N.width||H<p||te>y){if(!(p!==te||a.height!==N.height||X<c||B>d)){B>c&&(N.width+=B-c,N.x=c),X<d&&(N.width=d-B),i.splice(o,1);break}}else{te>p&&(N.height+=te-p,N.y=p),H<y&&(N.height=y-te),i.splice(o,1);break}}}return i},n.findHostInstance=Ug,n.findHostInstanceWithNoPortals=function(i){return i=K(i),i=i!==null?fe(i):null,i===null?null:i.stateNode},n.findHostInstanceWithWarning=function(i){return Ug(i)},n.flushControlled=function(i){var o=ie;ie|=1;var a=Be.transition,c=ue;try{Be.transition=null,ue=1,i()}finally{ue=c,Be.transition=a,ie=o,ie===0&&(po(),bn())}},n.flushPassiveEffects=Pi,n.flushSync=Ng,n.focusWithin=function(i,o){if(!is)throw Error(u(363));for(i=Fd(i),o=zg(i,o),o=Array.from(o),i=0;i<o.length;){var a=o[i++];if(!os(a)){if(a.tag===5&&TS(a.stateNode))return!0;for(a=a.child;a!==null;)o.push(a),a=a.sibling}}return!1},n.getCurrentUpdatePriority=function(){return ue},n.getFindAllNodesFailureDescription=function(i,o){if(!is)throw Error(u(363));var a=0,c=[];i=[Fd(i),0];for(var d=0;d<i.length;){var p=i[d++],y=i[d++],C=o[y];if((p.tag!==5||!os(p))&&(Md(p,C)&&(c.push(Ad(C)),y++,y>a&&(a=y)),y<o.length))for(p=p.child;p!==null;)i.push(p,y),p=p.sibling}if(a<o.length){for(i=[];a<o.length;a++)i.push(Ad(o[a]));return`findAllNodes was able to match part of the selector:
|
|
1
|
+
"use strict";var AtlasViewer=(()=>{var bA=Object.create;var Ao=Object.defineProperty;var EA=Object.getOwnPropertyDescriptor;var xA=Object.getOwnPropertyNames;var TA=Object.getPrototypeOf,zA=Object.prototype.hasOwnProperty;var _A=(t,e,i)=>e in t?Ao(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var pe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),AA=(t,e)=>{for(var i in e)Ao(t,i,{get:e[i],enumerable:!0})},fS=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of xA(e))!zA.call(t,u)&&u!==i&&Ao(t,u,{get:()=>e[u],enumerable:!(n=EA(e,u))||n.enumerable});return t};var F=(t,e,i)=>(i=t!=null?bA(TA(t)):{},fS(e||!t||!t.__esModule?Ao(i,"default",{value:t,enumerable:!0}):i,t)),OA=t=>fS(Ao({},"__esModule",{value:!0}),t);var b=(t,e,i)=>(_A(t,typeof e!="symbol"?e+"":e,i),i);var HS=pe((i6,DS)=>{"use strict";var OS=!1,Qa,tg,eg,cf,rf,MS,ff,ig,ng,lg,CS,ag,ug,RS,NS;function ai(){if(!OS){OS=!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(ag=/\b(iPhone|iP[ao]d)/.exec(t),ug=/\b(iP[ao]d)/.exec(t),lg=/Android/i.exec(t),RS=/FBAN\/\w+;/i.exec(t),NS=/Mobile/i.exec(t),CS=!!/Win64/.exec(t),e){Qa=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Qa&&document&&document.documentMode&&(Qa=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(t);MS=n?parseFloat(n[1])+4:Qa,tg=e[2]?parseFloat(e[2]):NaN,eg=e[3]?parseFloat(e[3]):NaN,cf=e[4]?parseFloat(e[4]):NaN,cf?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),rf=e&&e[1]?parseFloat(e[1]):NaN):rf=NaN}else Qa=tg=eg=rf=cf=NaN;if(i){if(i[1]){var u=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);ff=u?parseFloat(u[1].replace("_",".")):!0}else ff=!1;ig=!!i[2],ng=!!i[3]}else ff=ig=ng=!1}}var sg={ie:function(){return ai()||Qa},ieCompatibilityMode:function(){return ai()||MS>Qa},ie64:function(){return sg.ie()&&CS},firefox:function(){return ai()||tg},opera:function(){return ai()||eg},webkit:function(){return ai()||cf},safari:function(){return sg.webkit()},chrome:function(){return ai()||rf},windows:function(){return ai()||ig},osx:function(){return ai()||ff},linux:function(){return ai()||ng},iphone:function(){return ai()||ag},mobile:function(){return ai()||ag||ug||lg||NS},nativeApp:function(){return ai()||RS},android:function(){return ai()||lg},ipad:function(){return ai()||ug}};DS.exports=sg});var BS=pe((n6,US)=>{"use strict";var hf=!!(typeof window<"u"&&window.document&&window.document.createElement),jA={canUseDOM:hf,canUseWorkers:typeof Worker<"u",canUseEventListeners:hf&&!!(window.addEventListener||window.attachEvent),canUseViewport:hf&&!!window.screen,isInWorker:!hf};US.exports=jA});var qS=pe((l6,LS)=>{"use strict";var wS=BS(),jS;wS.canUseDOM&&(jS=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function LA(t,e){if(!wS.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&&jS&&t==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}LS.exports=LA});var ZS=pe((a6,VS)=>{"use strict";var qA=HS(),GA=qS(),GS=10,YS=40,QS=800;function XS(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*GS,u=i*GS,"deltaY"in t&&(u=t.deltaY),"deltaX"in t&&(n=t.deltaX),(n||u)&&t.deltaMode&&(t.deltaMode==1?(n*=YS,u*=YS):(n*=QS,u*=QS)),n&&!e&&(e=n<1?-1:1),u&&!i&&(i=u<1?-1:1),{spinX:e,spinY:i,pixelX:n,pixelY:u}}XS.getEventType=function(){return qA.firefox()?"DOMMouseScroll":GA("wheel")?"wheel":"mousewheel"};VS.exports=XS});var JS=pe((u6,KS)=>{"use strict";KS.exports=ZS()});var cb=pe(nt=>{"use strict";var rg=Symbol.for("react.transitional.element"),QA=Symbol.for("react.portal"),XA=Symbol.for("react.fragment"),VA=Symbol.for("react.strict_mode"),ZA=Symbol.for("react.profiler"),KA=Symbol.for("react.consumer"),JA=Symbol.for("react.context"),FA=Symbol.for("react.forward_ref"),WA=Symbol.for("react.suspense"),IA=Symbol.for("react.memo"),nb=Symbol.for("react.lazy"),PA=Symbol.for("react.activity"),$S=Symbol.iterator;function kA(t){return t===null||typeof t!="object"?null:(t=$S&&t[$S]||t["@@iterator"],typeof t=="function"?t:null)}var lb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ab=Object.assign,ub={};function Wu(t,e,i){this.props=t,this.context=e,this.refs=ub,this.updater=i||lb}Wu.prototype.isReactComponent={};Wu.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")};Wu.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function sb(){}sb.prototype=Wu.prototype;function fg(t,e,i){this.props=t,this.context=e,this.refs=ub,this.updater=i||lb}var hg=fg.prototype=new sb;hg.constructor=fg;ab(hg,Wu.prototype);hg.isPureReactComponent=!0;var tb=Array.isArray;function cg(){}var Bt={H:null,A:null,T:null,S:null},ob=Object.prototype.hasOwnProperty;function dg(t,e,i){var n=i.ref;return{$$typeof:rg,type:t,key:e,ref:n!==void 0?n:null,props:i}}function $A(t,e){return dg(t.type,e,t.props)}function mg(t){return typeof t=="object"&&t!==null&&t.$$typeof===rg}function t4(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(i){return e[i]})}var eb=/\/+/g;function og(t,e){return typeof t=="object"&&t!==null&&t.key!=null?t4(""+t.key):e.toString(36)}function e4(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(cg,cg):(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 Fu(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 rg:case QA:r=!0;break;case nb:return r=t._init,Fu(r(t._payload),e,i,n,u)}}if(r)return u=u(t),r=n===""?"."+og(t,0):n,tb(u)?(i="",r!=null&&(i=r.replace(eb,"$&/")+"/"),Fu(u,e,i,"",function(v){return v})):u!=null&&(mg(u)&&(u=$A(u,i+(u.key==null||t&&t.key===u.key?"":(""+u.key).replace(eb,"$&/")+"/")+r)),e.push(u)),1;r=0;var f=n===""?".":n+":";if(tb(t))for(var m=0;m<t.length;m++)n=t[m],s=f+og(n,m),r+=Fu(n,e,i,s,u);else if(m=kA(t),typeof m=="function")for(t=m.call(t),m=0;!(n=t.next()).done;)n=n.value,s=f+og(n,m++),r+=Fu(n,e,i,s,u);else if(s==="object"){if(typeof t.then=="function")return Fu(e4(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 df(t,e,i){if(t==null)return t;var n=[],u=0;return Fu(t,n,"","",function(s){return e.call(i,s,u++)}),n}function i4(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 ib=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)},n4={map:df,forEach:function(t,e,i){df(t,function(){e.apply(this,arguments)},i)},count:function(t){var e=0;return df(t,function(){e++}),e},toArray:function(t){return df(t,function(e){return e})||[]},only:function(t){if(!mg(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};nt.Activity=PA;nt.Children=n4;nt.Component=Wu;nt.Fragment=XA;nt.Profiler=ZA;nt.PureComponent=fg;nt.StrictMode=VA;nt.Suspense=WA;nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Bt;nt.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Bt.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=ab({},t.props),u=t.key;if(e!=null)for(s in e.key!==void 0&&(u=""+e.key),e)!ob.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 dg(t.type,u,n)};nt.createContext=function(t){return t={$$typeof:JA,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:KA,_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)ob.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 dg(t,s,u)};nt.createRef=function(){return{current:null}};nt.forwardRef=function(t){return{$$typeof:FA,render:t}};nt.isValidElement=mg;nt.lazy=function(t){return{$$typeof:nb,_payload:{_status:-1,_result:t},_init:i4}};nt.memo=function(t,e){return{$$typeof:IA,type:t,compare:e===void 0?null:e}};nt.startTransition=function(t){var e=Bt.T,i={};Bt.T=i;try{var n=t(),u=Bt.S;u!==null&&u(i,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(cg,ib)}catch(s){ib(s)}finally{e!==null&&i.types!==null&&(e.types=i.types),Bt.T=e}};nt.unstable_useCacheRefresh=function(){return Bt.H.useCacheRefresh()};nt.use=function(t){return Bt.H.use(t)};nt.useActionState=function(t,e,i){return Bt.H.useActionState(t,e,i)};nt.useCallback=function(t,e){return Bt.H.useCallback(t,e)};nt.useContext=function(t){return Bt.H.useContext(t)};nt.useDebugValue=function(){};nt.useDeferredValue=function(t,e){return Bt.H.useDeferredValue(t,e)};nt.useEffect=function(t,e){return Bt.H.useEffect(t,e)};nt.useEffectEvent=function(t){return Bt.H.useEffectEvent(t)};nt.useId=function(){return Bt.H.useId()};nt.useImperativeHandle=function(t,e,i){return Bt.H.useImperativeHandle(t,e,i)};nt.useInsertionEffect=function(t,e){return Bt.H.useInsertionEffect(t,e)};nt.useLayoutEffect=function(t,e){return Bt.H.useLayoutEffect(t,e)};nt.useMemo=function(t,e){return Bt.H.useMemo(t,e)};nt.useOptimistic=function(t,e){return Bt.H.useOptimistic(t,e)};nt.useReducer=function(t,e,i){return Bt.H.useReducer(t,e,i)};nt.useRef=function(t){return Bt.H.useRef(t)};nt.useState=function(t){return Bt.H.useState(t)};nt.useSyncExternalStore=function(t,e,i){return Bt.H.useSyncExternalStore(t,e,i)};nt.useTransition=function(){return Bt.H.useTransition()};nt.version="19.2.0"});var yt=pe((g6,rb)=>{"use strict";rb.exports=cb()});var hb=pe(mf=>{"use strict";var l4=Symbol.for("react.transitional.element"),a4=Symbol.for("react.fragment");function fb(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:l4,type:t,key:n,ref:e!==void 0?e:null,props:i}}mf.Fragment=a4;mf.jsx=fb;mf.jsxs=fb});var Ft=pe((y6,db)=>{"use strict";db.exports=hb()});var Ab=pe(Gt=>{"use strict";function Sg(t,e){var i=t.length;t.push(e);t:for(;0<i;){var n=i-1>>>1,u=t[n];if(0<yf(u,e))t[n]=e,t[i]=u,i=n;else break t}}function On(t){return t.length===0?null:t[0]}function Sf(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,v=t[m];if(0>yf(f,i))m<u&&0>yf(v,f)?(t[n]=v,t[m]=i,n=m):(t[n]=f,t[r]=i,n=r);else if(m<u&&0>yf(v,i))t[n]=v,t[m]=i,n=m;else break t}}return e}function yf(t,e){var i=t.sortIndex-e.sortIndex;return i!==0?i:t.id-e.id}Gt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(yb=performance,Gt.unstable_now=function(){return yb.now()}):(vg=Date,pb=vg.now(),Gt.unstable_now=function(){return vg.now()-pb});var yb,vg,pb,il=[],Zl=[],f4=1,Vi=null,Ve=3,bg=!1,wo=!1,jo=!1,Eg=!1,Eb=typeof setTimeout=="function"?setTimeout:null,xb=typeof clearTimeout=="function"?clearTimeout:null,Sb=typeof setImmediate<"u"?setImmediate:null;function pf(t){for(var e=On(Zl);e!==null;){if(e.callback===null)Sf(Zl);else if(e.startTime<=t)Sf(Zl),e.sortIndex=e.expirationTime,Sg(il,e);else break;e=On(Zl)}}function xg(t){if(jo=!1,pf(t),!wo)if(On(il)!==null)wo=!0,Pu||(Pu=!0,Iu());else{var e=On(Zl);e!==null&&Tg(xg,e.startTime-t)}}var Pu=!1,Lo=-1,Tb=5,zb=-1;function _b(){return Eg?!0:!(Gt.unstable_now()-zb<Tb)}function yg(){if(Eg=!1,Pu){var t=Gt.unstable_now();zb=t;var e=!0;try{t:{wo=!1,jo&&(jo=!1,xb(Lo),Lo=-1),bg=!0;var i=Ve;try{e:{for(pf(t),Vi=On(il);Vi!==null&&!(Vi.expirationTime>t&&_b());){var n=Vi.callback;if(typeof n=="function"){Vi.callback=null,Ve=Vi.priorityLevel;var u=n(Vi.expirationTime<=t);if(t=Gt.unstable_now(),typeof u=="function"){Vi.callback=u,pf(t),e=!0;break e}Vi===On(il)&&Sf(il),pf(t)}else Sf(il);Vi=On(il)}if(Vi!==null)e=!0;else{var s=On(Zl);s!==null&&Tg(xg,s.startTime-t),e=!1}}break t}finally{Vi=null,Ve=i,bg=!1}e=void 0}}finally{e?Iu():Pu=!1}}}var Iu;typeof Sb=="function"?Iu=function(){Sb(yg)}:typeof MessageChannel<"u"?(pg=new MessageChannel,bb=pg.port2,pg.port1.onmessage=yg,Iu=function(){bb.postMessage(null)}):Iu=function(){Eb(yg,0)};var pg,bb;function Tg(t,e){Lo=Eb(function(){t(Gt.unstable_now())},e)}Gt.unstable_IdlePriority=5;Gt.unstable_ImmediatePriority=1;Gt.unstable_LowPriority=4;Gt.unstable_NormalPriority=3;Gt.unstable_Profiling=null;Gt.unstable_UserBlockingPriority=2;Gt.unstable_cancelCallback=function(t){t.callback=null};Gt.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"):Tb=0<t?Math.floor(1e3/t):5};Gt.unstable_getCurrentPriorityLevel=function(){return Ve};Gt.unstable_next=function(t){switch(Ve){case 1:case 2:case 3:var e=3;break;default:e=Ve}var i=Ve;Ve=e;try{return t()}finally{Ve=i}};Gt.unstable_requestPaint=function(){Eg=!0};Gt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var i=Ve;Ve=t;try{return e()}finally{Ve=i}};Gt.unstable_scheduleCallback=function(t,e,i){var n=Gt.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:f4++,callback:e,priorityLevel:t,startTime:i,expirationTime:u,sortIndex:-1},i>n?(t.sortIndex=i,Sg(Zl,t),On(il)===null&&t===On(Zl)&&(jo?(xb(Lo),Lo=-1):jo=!0,Tg(xg,i-n))):(t.sortIndex=u,Sg(il,t),wo||bg||(wo=!0,Pu||(Pu=!0,Iu()))),t};Gt.unstable_shouldYield=_b;Gt.unstable_wrapCallback=function(t){var e=Ve;return function(){var i=Ve;Ve=e;try{return t.apply(this,arguments)}finally{Ve=i}}}});var zg=pe((T6,Ob)=>{"use strict";Ob.exports=Ab()});var Mb=pe((z6,qo)=>{"use strict";qo.exports=function(t){function e(l,a,o,c){return new __(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 y=!1,z=h.child;z;){if(z===o){y=!0,o=h,c=d;break}if(z===c){y=!0,c=h,o=d;break}z=z.sibling}if(!y){for(z=d.child;z;){if(z===o){y=!0,o=d,c=h;break}if(z===c){y=!0,c=d,o=h;break}z=z.sibling}if(!y)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 v(l){return l===null||typeof l!="object"?null:(l=R1&&l[R1]||l["@@iterator"],typeof l=="function"?l:null)}function g(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===R_?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case _u:return"Fragment";case fm:return"Profiler";case M1:return"StrictMode";case dm:return"Suspense";case mm:return"SuspenseList";case vm:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case zu:return"Portal";case Rl:return l.displayName||"Context";case C1:return(l._context.displayName||"Context")+".Consumer";case hm:var a=l.render;return l=l.displayName,l||(l=a.displayName||a.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case gm:return a=l.displayName||null,a!==null?a:g(l.type)||"Memo";case Nl:a=l._payload,l=l._init;try{return g(l(a))}catch{}}return null}function S(l){return{current:l}}function p(l){0>Mu||(l.current=xm[Mu],xm[Mu]=null,Mu--)}function x(l,a){Mu++,xm[Mu]=l.current,l.current=a}function A(l){return l>>>=0,l===0?32:31-(lA(l)/aA|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 j(l,a,o){var c=l.pendingLanes;if(c===0)return 0;var h=0,d=l.suspendedLanes,y=l.pingedLanes;l=l.warmLanes;var z=c&134217727;return z!==0?(c=z&~d,c!==0?h=R(c):(y&=z,y!==0?h=R(y):o||(o=z&~l,o!==0&&(h=R(o))))):(z=c&~d,z!==0?h=R(z):y!==0?h=R(y):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 _(){var l=Cr;return Cr<<=1,!(Cr&62914560)&&(Cr=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 U(l,a,o,c,h,d){var y=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 z=l.entanglements,D=l.expirationTimes,L=l.hiddenUpdates;for(o=y&~o;0<o;){var X=31-vi(o),Y=1<<X;z[X]=0,D[X]=-1;var K=L[X];if(K!==null)for(L[X]=null,X=0;X<K.length;X++){var it=K[X];it!==null&&(it.lane&=-536870913)}o&=~Y}c!==0&&q(l,c,0),d!==0&&h===0&&l.tag!==0&&(l.suspendedLanes|=d&~(y&~a))}function q(l,a,o){l.pendingLanes|=a,l.suspendedLanes&=~a;var c=31-vi(a);l.entangledLanes|=a,l.entanglements[c]=l.entanglements[c]|1073741824|o&261930}function Z(l,a){var o=l.entangledLanes|=a;for(l=l.entanglements;o;){var c=31-vi(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:w(o),o&(l.suspendedLanes|a)?0:o}function w(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 P(l){return l&=-l,2<l?8<l?l&134217727?32:268435456:8:2}function ut(l){if(typeof rA=="function"&&fA(l),yi&&typeof yi.setStrictMode=="function")try{yi.setStrictMode(mo,l)}catch{}}function Ln(l,a){return l===a&&(l!==0||1/l===1/a)||l!==l&&a!==a}function pt(l){if(_m===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);_m=a&&a[1]||"",iS=-1<o.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+_m+l+iS}function $e(l,a){if(!l||Am)return"";Am=!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(),y=d[0],z=d[1];if(y&&z){var D=y.split(`
|
|
4
|
+
`),L=z.split(`
|
|
5
|
+
`);for(h=c=0;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;for(;h<L.length&&!L[h].includes("DetermineComponentFrameRoot");)h++;if(c===D.length||h===L.length)for(c=D.length-1,h=L.length-1;1<=c&&0<=h&&D[c]!==L[h];)h--;for(;1<=c&&0<=h;c--,h--)if(D[c]!==L[h]){if(c!==1||h!==1)do if(c--,h--,0>h||D[c]!==L[h]){var X=`
|
|
6
|
+
`+D[c].replace(" at new "," at ");return l.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",l.displayName)),X}while(1<=c&&0<=h);break}}}finally{Am=!1,Error.prepareStackTrace=o}return(o=l?l.displayName||l.name:"")?pt(o):""}function gn(l,a){switch(l.tag){case 26:case 27:case 5:return pt(l.type);case 16:return pt("Lazy");case 13:return l.child!==a&&a!==null?pt("Suspense Fallback"):pt("Suspense");case 19:return pt("SuspenseList");case 0:case 15:return $e(l.type,!1);case 11:return $e(l.type.render,!1);case 1:return $e(l.type,!0);case 31:return pt("Activity");default:return""}}function qn(l){try{var a="",o=null;do a+=gn(l,o),o=l,l=l.return;while(l);return a}catch(c){return`
|
|
7
|
+
Error generating stack: `+c.message+`
|
|
8
|
+
`+c.stack}}function ge(l,a){if(typeof l=="object"&&l!==null){var o=nS.get(l);return o!==void 0?o:(a={value:l,source:a,stack:qn(a)},nS.set(l,a),a)}return{value:l,source:a,stack:qn(a)}}function G(l,a){Ru[Nu++]=go,Ru[Nu++]=Nr,Nr=l,go=a}function Qt(l,a,o){ji[Li++]=bn,ji[Li++]=En,ji[Li++]=Dl,Dl=l;var c=bn;l=En;var h=32-vi(c)-1;c&=~(1<<h),o+=1;var d=32-vi(a)+h;if(30<d){var y=h-h%5;d=(c&(1<<y)-1).toString(32),c>>=y,h-=y,bn=1<<32-vi(a)+h|o<<h|c,En=d+l}else bn=1<<d|o<<h|c,En=l}function Tl(l){l.return!==null&&(G(l,1),Qt(l,1,0))}function Ks(l){for(;l===Nr;)Nr=Ru[--Nu],Ru[Nu]=null,go=Ru[--Nu],Ru[Nu]=null;for(;l===Dl;)Dl=ji[--Li],ji[Li]=null,En=ji[--Li],ji[Li]=null,bn=ji[--Li],ji[Li]=null}function Js(l,a){ji[Li++]=bn,ji[Li++]=En,ji[Li++]=Dl,bn=a.id,En=a.overflow,Dl=l}function Ea(l,a){x(Hl,a),x(vo,l),x(De,null),l=H_(a),p(De),x(De,l)}function Gn(){p(De),p(vo),p(Hl)}function Fs(l){l.memoizedState!==null&&x(Dr,l);var a=De.current,o=U_(a,l.type);a!==o&&(x(vo,l),x(De,o))}function Ws(l){vo.current===l&&(p(De),p(vo)),Dr.current===l&&(p(Dr),Jn?Ra._currentValue=Au:Ra._currentValue2=Au)}function vn(l){var a=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zt(ge(a,l)),Om}function Fc(l,a){if(!Xe)throw Error(n(175));U3(l.stateNode,l.type,l.memoizedProps,a,l)||vn(l,!0)}function yu(l){for(He=l.return;He;)switch(He.tag){case 5:case 31:case 13:qi=!1;return;case 27:case 3:qi=!0;return;default:He=He.return}}function Yn(l){if(!Xe||l!==He)return!1;if(!gt)return yu(l),gt=!0,!1;var a=l.tag;if(ve?a!==3&&a!==27&&(a!==5||X1(l.type)&&!Ar(l.type,l.memoizedProps))&&Xt&&vn(l):a!==3&&(a!==5||X1(l.type)&&!Ar(l.type,l.memoizedProps))&&Xt&&vn(l),yu(l),a===13){if(!Xe)throw Error(n(316));if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));Xt=q3(l)}else if(a===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));Xt=L3(l)}else Xt=ve&&a===27?z3(l.type,Xt):He?Q1(l.stateNode):null;return!0}function k(){Xe&&(Xt=He=null,gt=!1)}function ht(){var l=Ul;return l!==null&&(ni===null?ni=l:ni.push.apply(ni,l),Ul=null),l}function zt(l){Ul===null?Ul=[l]:Ul.push(l)}function qt(l,a,o){Jn?(x(Hr,a._currentValue),a._currentValue=o):(x(Hr,a._currentValue2),a._currentValue2=o)}function Ze(l){var a=Hr.current;Jn?l._currentValue=a:l._currentValue2=a,p(Hr)}function wi(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 nn(l,a,o,c){var h=l.child;for(h!==null&&(h.return=l);h!==null;){var d=h.dependencies;if(d!==null){var y=h.child;d=d.firstContext;t:for(;d!==null;){var z=d;d=h;for(var D=0;D<a.length;D++)if(z.context===a[D]){d.lanes|=o,z=d.alternate,z!==null&&(z.lanes|=o),wi(d.return,o,l),c||(y=null);break t}d=z.next}}else if(h.tag===18){if(y=h.return,y===null)throw Error(n(341));y.lanes|=o,d=y.alternate,d!==null&&(d.lanes|=o),wi(y,o,l),y=null}else y=h.child;if(y!==null)y.return=h;else for(y=h;y!==null;){if(y===l){y=null;break}if(h=y.sibling,h!==null){h.return=y.return,y=h;break}y=y.return}h=y}}function pu(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 y=h.alternate;if(y===null)throw Error(n(387));if(y=y.memoizedProps,y!==null){var z=h.type;pi(h.pendingProps.value,y.value)||(l!==null?l.push(z):l=[z])}}else if(h===Dr.current){if(y=h.alternate,y===null)throw Error(n(387));y.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(l!==null?l.push(Ra):l=[Ra])}h=h.return}l!==null&&nn(a,l,o,c),a.flags|=262144}function Wc(l){for(l=l.firstContext;l!==null;){var a=l.context;if(!pi(Jn?a._currentValue:a._currentValue2,l.memoizedValue))return!0;l=l.next}return!1}function xa(l){Na=l,Wn=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Re(l){return vp(Na,l)}function Ic(l,a){return Na===null&&xa(l),vp(l,a)}function vp(l,a){var o=Jn?a._currentValue:a._currentValue2;if(a={context:a,memoizedValue:o,next:null},Wn===null){if(l===null)throw Error(n(308));Wn=a,l.dependencies={lanes:0,firstContext:a},l.flags|=524288}else Wn=Wn.next=a;return o}function rd(){return{controller:new dA,data:new Map,refCount:0}}function Is(l){l.refCount--,l.refCount===0&&mA(gA,function(){l.controller.abort()})}function Pc(){}function yn(l){l!==Du&&l.next===null&&(Du===null?Ur=Du=l:Du=Du.next=l),Br=!0,Mm||(Mm=!0,e_())}function Su(l,a){if(!Cm&&Br){Cm=!0;do for(var o=!1,c=Ur;c!==null;){if(!a)if(l!==0){var h=c.pendingLanes;if(h===0)var d=0;else{var y=c.suspendedLanes,z=c.pingedLanes;d=(1<<31-vi(42|l)+1)-1,d&=h&~(y&~z),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(o=!0,Ep(c,d))}else d=dt,d=j(c,c===Nt?d:0,c.cancelPendingCommit!==null||c.timeoutHandle!==Ca),!(d&3)||T(c,d)||(o=!0,Ep(c,d));c=c.next}while(o);Cm=!1}}function yp(){pp()}function pp(){Br=Mm=!1;var l=0;Da!==0&&X_()&&(l=Da);for(var a=ei(),o=null,c=Ur;c!==null;){var h=c.next,d=Sp(c,a);d===0?(c.next=null,o===null?Ur=h:o.next=h,h===null&&(Du=o)):(o=c,(l!==0||d&3)&&(Br=!0)),c=h}ye!==0&&ye!==5||Su(l,!1),Da!==0&&(Da=0)}function Sp(l,a){for(var o=l.suspendedLanes,c=l.pingedLanes,h=l.expirationTimes,d=l.pendingLanes&-62914561;0<d;){var y=31-vi(d),z=1<<y,D=h[y];D===-1?(!(z&o)||z&c)&&(h[y]=E(z,a)):D<=a&&(l.expiredLanes|=z),d&=~z}if(a=Nt,o=dt,o=j(l,l===a?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==Ca),c=l.callbackNode,o===0||l===a&&(_t===2||_t===9)||l.cancelPendingCommit!==null)return c!==null&&c!==null&&Tm(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&&Tm(c),P(o)){case 2:case 8:o=oA;break;case 32:o=zm;break;case 268435456:o=cA;break;default:o=zm}return c=bp.bind(null,l),o=Rr(o,c),l.callbackPriority=a,l.callbackNode=o,a}return c!==null&&c!==null&&Tm(c),l.callbackPriority=2,l.callbackNode=null,2}function bp(l,a){if(ye!==0&&ye!==5)return l.callbackNode=null,l.callbackPriority=0,null;var o=l.callbackNode;if(co()&&l.callbackNode!==o)return null;var c=dt;return c=j(l,l===Nt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==Ca),c===0?null:(n1(l,c,a),Sp(l,ei()),l.callbackNode!=null&&l.callbackNode===o?bp.bind(null,l):null)}function Ep(l,a){if(co())return null;n1(l,a,!0)}function e_(){I_?P_(function(){ot&6?Rr(tS,yp):pp()}):Rr(tS,yp)}function fd(){if(Da===0){var l=Hu;l===0&&(l=Or,Or<<=1,!(Or&261888)&&(Or=256)),Da=l}return Da}function i_(l,a){if(yo===null){var o=yo=[];Rm=0,Hu=fd(),Uu={status:"pending",value:void 0,then:function(c){o.push(c)}}}return Rm++,a.then(xp,xp),a}function xp(){if(--Rm===0&&yo!==null){Uu!==null&&(Uu.status="fulfilled");var l=yo;yo=null,Hu=0,Uu=null;for(var a=0;a<l.length;a++)(0,l[a])()}}function n_(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 hd(){var l=Ha.current;return l!==null?l:Nt.pooledCache}function kc(l,a){a===null?x(Ha,Ha.current):x(Ha,a.pool)}function Tp(){var l=hd();return l===null?null:{parent:Jn?Vt._currentValue:Vt._currentValue2,pool:l}}function $c(l,a){if(pi(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(!hA.call(a,h)||!pi(l[h],a[h]))return!1}return!0}function zp(l){return l=l.status,l==="fulfilled"||l==="rejected"}function _p(l,a,o){switch(o=l[o],o===void 0?l.push(a):o!==a&&(a.then(Pc,Pc),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw l=a.reason,Op(l),l;default:if(typeof a.status=="string")a.then(Pc,Pc);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,Op(l),l}throw Ua=a,Bu}}function Ta(l){try{var a=l._init;return a(l._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Ua=o,Bu):o}}function Ap(){if(Ua===null)throw Error(n(459));var l=Ua;return Ua=null,l}function Op(l){if(l===Bu||l===wr)throw Error(n(483))}function tr(l){var a=po;return po+=1,wu===null&&(wu=[]),_p(wu,l,a)}function Ps(l,a){a=a.props.ref,l.ref=a!==void 0?a:null}function er(l,a){throw a.$$typeof===M_?Error(n(525)):(l=Object.prototype.toString.call(a),Error(n(31,l==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":l)))}function Mp(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=Kn(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 y(C){return l&&C.alternate===null&&(C.flags|=67108866),C}function z(C,M,N,Q){return M===null||M.tag!==6?(M=sm(N,C.mode,Q),M.return=C,M):(M=h(M,N),M.return=C,M)}function D(C,M,N,Q){var I=N.type;return I===_u?X(C,M,N.props.children,Q,N.key):M!==null&&(M.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Nl&&Ta(I)===M.type)?(M=h(M,N.props),Ps(M,N),M.return=C,M):(M=Tr(N.type,N.key,N.props,null,C.mode,Q),Ps(M,N),M.return=C,M)}function L(C,M,N,Q){return M===null||M.tag!==4||M.stateNode.containerInfo!==N.containerInfo||M.stateNode.implementation!==N.implementation?(M=om(N,C.mode,Q),M.return=C,M):(M=h(M,N.children||[]),M.return=C,M)}function X(C,M,N,Q,I){return M===null||M.tag!==7?(M=Ma(N,C.mode,Q,I),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=sm(""+M,C.mode,N),M.return=C,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case zr:return N=Tr(M.type,M.key,M.props,null,C.mode,N),Ps(N,M),N.return=C,N;case zu:return M=om(M,C.mode,N),M.return=C,M;case Nl:return M=Ta(M),Y(C,M,N)}if(_r(M)||v(M))return M=Ma(M,C.mode,N,null),M.return=C,M;if(typeof M.then=="function")return Y(C,tr(M),N);if(M.$$typeof===Rl)return Y(C,Ic(C,M),N);er(C,M)}return null}function K(C,M,N,Q){var I=M!==null?M.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return I!==null?null:z(C,M,""+N,Q);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case zr:return N.key===I?D(C,M,N,Q):null;case zu:return N.key===I?L(C,M,N,Q):null;case Nl:return N=Ta(N),K(C,M,N,Q)}if(_r(N)||v(N))return I!==null?null:X(C,M,N,Q,null);if(typeof N.then=="function")return K(C,M,tr(N),Q);if(N.$$typeof===Rl)return K(C,M,Ic(C,N),Q);er(C,N)}return null}function it(C,M,N,Q,I){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return C=C.get(N)||null,z(M,C,""+Q,I);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case zr:return C=C.get(Q.key===null?N:Q.key)||null,D(M,C,Q,I);case zu:return C=C.get(Q.key===null?N:Q.key)||null,L(M,C,Q,I);case Nl:return Q=Ta(Q),it(C,M,N,Q,I)}if(_r(Q)||v(Q))return C=C.get(N)||null,X(M,C,Q,I,null);if(typeof Q.then=="function")return it(C,M,N,tr(Q),I);if(Q.$$typeof===Rl)return it(C,M,N,Ic(M,Q),I);er(M,Q)}return null}function Ue(C,M,N,Q){for(var I=null,Zt=null,$=M,bt=M=0,Ae=null;$!==null&&bt<N.length;bt++){$.index>bt?(Ae=$,$=null):Ae=$.sibling;var Et=K(C,$,N[bt],Q);if(Et===null){$===null&&($=Ae);break}l&&$&&Et.alternate===null&&a(C,$),M=d(Et,M,bt),Zt===null?I=Et:Zt.sibling=Et,Zt=Et,$=Ae}if(bt===N.length)return o(C,$),gt&&G(C,bt),I;if($===null){for(;bt<N.length;bt++)$=Y(C,N[bt],Q),$!==null&&(M=d($,M,bt),Zt===null?I=$:Zt.sibling=$,Zt=$);return gt&&G(C,bt),I}for($=c($);bt<N.length;bt++)Ae=it($,C,bt,N[bt],Q),Ae!==null&&(l&&Ae.alternate!==null&&$.delete(Ae.key===null?bt:Ae.key),M=d(Ae,M,bt),Zt===null?I=Ae:Zt.sibling=Ae,Zt=Ae);return l&&$.forEach(function(Gl){return a(C,Gl)}),gt&&G(C,bt),I}function _o(C,M,N,Q){if(N==null)throw Error(n(151));for(var I=null,Zt=null,$=M,bt=M=0,Ae=null,Et=N.next();$!==null&&!Et.done;bt++,Et=N.next()){$.index>bt?(Ae=$,$=null):Ae=$.sibling;var Gl=K(C,$,Et.value,Q);if(Gl===null){$===null&&($=Ae);break}l&&$&&Gl.alternate===null&&a(C,$),M=d(Gl,M,bt),Zt===null?I=Gl:Zt.sibling=Gl,Zt=Gl,$=Ae}if(Et.done)return o(C,$),gt&&G(C,bt),I;if($===null){for(;!Et.done;bt++,Et=N.next())Et=Y(C,Et.value,Q),Et!==null&&(M=d(Et,M,bt),Zt===null?I=Et:Zt.sibling=Et,Zt=Et);return gt&&G(C,bt),I}for($=c($);!Et.done;bt++,Et=N.next())Et=it($,C,bt,Et.value,Q),Et!==null&&(l&&Et.alternate!==null&&$.delete(Et.key===null?bt:Et.key),M=d(Et,M,bt),Zt===null?I=Et:Zt.sibling=Et,Zt=Et);return l&&$.forEach(function(SA){return a(C,SA)}),gt&&G(C,bt),I}function La(C,M,N,Q){if(typeof N=="object"&&N!==null&&N.type===_u&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case zr:t:{for(var I=N.key;M!==null;){if(M.key===I){if(I=N.type,I===_u){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===I||typeof I=="object"&&I!==null&&I.$$typeof===Nl&&Ta(I)===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===_u?(Q=Ma(N.props.children,C.mode,Q,N.key),Q.return=C,C=Q):(Q=Tr(N.type,N.key,N.props,null,C.mode,Q),Ps(Q,N),Q.return=C,C=Q)}return y(C);case zu:t:{for(I=N.key;M!==null;){if(M.key===I)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=om(N,C.mode,Q),Q.return=C,C=Q}return y(C);case Nl:return N=Ta(N),La(C,M,N,Q)}if(_r(N))return Ue(C,M,N,Q);if(v(N)){if(I=v(N),typeof I!="function")throw Error(n(150));return N=I.call(N),_o(C,M,N,Q)}if(typeof N.then=="function")return La(C,M,tr(N),Q);if(N.$$typeof===Rl)return La(C,M,Ic(C,N),Q);er(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=sm(N,C.mode,Q),Q.return=C,C=Q),y(C)):o(C,M)}return function(C,M,N,Q){try{po=0;var I=La(C,M,N,Q);return wu=null,I}catch($){if($===Bu||$===wr)throw $;var Zt=e(29,$,null,C.mode);return Zt.lanes=Q,Zt.return=C,Zt}finally{}}}function ir(){for(var l=ju,a=Dm=ju=0;a<l;){var o=Gi[a];Gi[a++]=null;var c=Gi[a];Gi[a++]=null;var h=Gi[a];Gi[a++]=null;var d=Gi[a];if(Gi[a++]=null,c!==null&&h!==null){var y=c.pending;y===null?h.next=h:(h.next=y.next,y.next=h),c.pending=h}d!==0&&Cp(o,h,d)}}function nr(l,a,o,c){Gi[ju++]=l,Gi[ju++]=a,Gi[ju++]=o,Gi[ju++]=c,Dm|=c,l.lanes|=c,l=l.alternate,l!==null&&(l.lanes|=c)}function dd(l,a,o,c){return nr(l,a,o,c),lr(l)}function za(l,a){return nr(l,null,null,a),lr(l)}function Cp(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-vi(o),l=d.hiddenUpdates,c=l[h],c===null?l[h]=[a]:c.push(a),a.lane=o|536870912),d):null}function lr(l){if(50<zo)throw zo=0,Vm=null,Error(n(185));for(var a=l.return;a!==null;)l=a,a=l.return;return l.tag===3?l.stateNode:null}function md(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gd(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 zl(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function _l(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=lr(l),Cp(l,null,o),a}return nr(l,c,a,o),lr(l)}function ks(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,Z(l,o)}}function vd(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 y={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};d===null?h=d=y:d=d.next=y,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 $s(){if(Hm){var l=Uu;if(l!==null)throw l}}function to(l,a,o,c){Hm=!1;var h=l.updateQueue;Bl=!1;var d=h.firstBaseUpdate,y=h.lastBaseUpdate,z=h.shared.pending;if(z!==null){h.shared.pending=null;var D=z,L=D.next;D.next=null,y===null?d=L:y.next=L,y=D;var X=l.alternate;X!==null&&(X=X.updateQueue,z=X.lastBaseUpdate,z!==y&&(z===null?X.firstBaseUpdate=L:z.next=L,X.lastBaseUpdate=D))}if(d!==null){var Y=h.baseState;y=0,X=L=D=null,z=d;do{var K=z.lane&-536870913,it=K!==z.lane;if(it?(dt&K)===K:(c&K)===K){K!==0&&K===Hu&&(Hm=!0),X!==null&&(X=X.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});t:{var Ue=l,_o=z;K=a;var La=o;switch(_o.tag){case 1:if(Ue=_o.payload,typeof Ue=="function"){Y=Ue.call(La,Y,K);break t}Y=Ue;break t;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=_o.payload,K=typeof Ue=="function"?Ue.call(La,Y,K):Ue,K==null)break t;Y=rm({},Y,K);break t;case 2:Bl=!0}}K=z.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:z.tag,payload:z.payload,callback:z.callback,next:null},X===null?(L=X=it,D=Y):X=X.next=it,y|=K;if(z=z.next,z===null){if(z=h.shared.pending,z===null)break;it=z,z=it.next,it.next=null,h.lastBaseUpdate=it,h.shared.pending=null}}while(!0);X===null&&(D=Y),h.baseState=D,h.firstBaseUpdate=L,h.lastBaseUpdate=X,d===null&&(h.shared.lanes=0),jl|=y,l.lanes=y,l.memoizedState=Y}}function Rp(l,a){if(typeof l!="function")throw Error(n(191,l));l.call(a)}function Np(l,a){var o=l.callbacks;if(o!==null)for(l.callbacks=null,l=0;l<o.length;l++)Rp(o[l],a)}function Dp(l,a){l=kn,x(Lr,l),x(Lu,a),kn=l|a.baseLanes}function yd(){x(Lr,kn),x(Lu,Lu.current)}function pd(){kn=Lr.current,p(Lu),p(Lr)}function Al(l){var a=l.alternate;x(ne,ne.current&1),x(Si,l),Yi===null&&(a===null||Lu.current!==null||a.memoizedState!==null)&&(Yi=l)}function Sd(l){x(ne,ne.current),x(Si,l),Yi===null&&(Yi=l)}function Hp(l){l.tag===22?(x(ne,ne.current),x(Si,l),Yi===null&&(Yi=l)):Ol(l)}function Ol(){x(ne,ne.current),x(Si,Si.current)}function di(l){p(Si),Yi===l&&(Yi=null),p(ne)}function ar(l){for(var a=l;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Sm(o)||bm(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 It(){throw Error(n(321))}function bd(l,a){if(a===null)return!1;for(var o=0;o<a.length&&o<l.length;o++)if(!pi(l[o],a[o]))return!1;return!0}function Ed(l,a,o,c,h,d){return In=d,lt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,W.H=l===null||l.memoizedState===null?uS:Um,wa=!1,d=o(c,h),wa=!1,qu&&(d=Bp(a,o,c,h)),Up(l),d}function Up(l){W.H=bo;var a=Mt!==null&&Mt.next!==null;if(In=0,ue=Mt=lt=null,qr=!1,So=0,Gu=null,a)throw Error(n(300));l===null||se||(l=l.dependencies,l!==null&&Wc(l)&&(se=!0))}function Bp(l,a,o,c){lt=l;var h=0;do{if(qu&&(Gu=null),So=0,qu=!1,25<=h)throw Error(n(301));if(h+=1,ue=Mt=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=sS,d=a(o,c)}while(qu);return d}function l_(){var l=W.H,a=l.useState()[0];return a=typeof a.then=="function"?eo(a):a,l=l.useState()[0],(Mt!==null?Mt.memoizedState:null)!==l&&(lt.flags|=1024),a}function xd(){var l=Gr!==0;return Gr=0,l}function Td(l,a,o){a.updateQueue=l.updateQueue,a.flags&=-2053,l.lanes&=~o}function zd(l){if(qr){for(l=l.memoizedState;l!==null;){var a=l.queue;a!==null&&(a.pending=null),l=l.next}qr=!1}In=0,ue=Mt=lt=null,qu=!1,So=Gr=0,Gu=null}function Ke(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?lt.memoizedState=ue=l:ue=ue.next=l,ue}function ie(){if(Mt===null){var l=lt.alternate;l=l!==null?l.memoizedState:null}else l=Mt.next;var a=ue===null?lt.memoizedState:ue.next;if(a!==null)ue=a,Mt=l;else{if(l===null)throw lt.alternate===null?Error(n(467)):Error(n(310));Mt=l,l={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},ue===null?lt.memoizedState=ue=l:ue=ue.next=l}return ue}function ur(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function eo(l){var a=So;return So+=1,Gu===null&&(Gu=[]),l=_p(Gu,l,a),a=lt,(ue===null?a.memoizedState:ue.next)===null&&(a=a.alternate,W.H=a===null||a.memoizedState===null?uS:Um),l}function sr(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return eo(l);if(l.$$typeof===Rl)return Re(l)}throw Error(n(438,String(l)))}function _d(l){var a=null,o=lt.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var c=lt.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=ur(),lt.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]=C_;return a.index++,o}function Qn(l,a){return typeof a=="function"?a(l):a}function or(l){var a=ie();return Ad(a,Mt,l)}function Ad(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 y=h.next;h.next=d.next,d.next=y}a.baseQueue=h=d,c.pending=null}if(d=l.baseState,h===null)l.memoizedState=d;else{a=h.next;var z=y=null,D=null,L=a,X=!1;do{var Y=L.lane&-536870913;if(Y!==L.lane?(dt&Y)===Y:(In&Y)===Y){var K=L.revertLane;if(K===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Y===Hu&&(X=!0);else if((In&K)===K){L=L.next,K===Hu&&(X=!0);continue}else Y={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},D===null?(z=D=Y,y=d):D=D.next=Y,lt.lanes|=K,jl|=K;Y=L.action,wa&&o(d,Y),d=L.hasEagerState?L.eagerState:o(d,Y)}else K={lane:Y,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},D===null?(z=D=K,y=d):D=D.next=K,lt.lanes|=Y,jl|=Y;L=L.next}while(L!==null&&L!==a);if(D===null?y=d:D.next=z,!pi(d,l.memoizedState)&&(se=!0,X&&(o=Uu,o!==null)))throw o;l.memoizedState=d,l.baseState=y,l.baseQueue=D,c.lastRenderedState=d}return h===null&&(c.lanes=0),[l.memoizedState,c.dispatch]}function Od(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 y=h=h.next;do d=l(d,y.action),y=y.next;while(y!==h);pi(d,a.memoizedState)||(se=!0),a.memoizedState=d,a.baseQueue===null&&(a.baseState=d),o.lastRenderedState=d}return[d,c]}function wp(l,a,o){var c=lt,h=ie(),d=gt;if(d){if(o===void 0)throw Error(n(407));o=o()}else o=a();var y=!pi((Mt||h).memoizedState,o);if(y&&(h.memoizedState=o,se=!0),h=h.queue,Rd(qp.bind(null,c,h,l),[l]),h.getSnapshot!==a||y||ue!==null&&ue.memoizedState.tag&1){if(c.flags|=2048,bu(9,{destroy:void 0},Lp.bind(null,c,h,o,a),null),Nt===null)throw Error(n(349));d||In&127||jp(c,a,o)}return o}function jp(l,a,o){l.flags|=16384,l={getSnapshot:a,value:o},a=lt.updateQueue,a===null?(a=ur(),lt.updateQueue=a,a.stores=[l]):(o=a.stores,o===null?a.stores=[l]:o.push(l))}function Lp(l,a,o,c){a.value=o,a.getSnapshot=c,Gp(a)&&Yp(l)}function qp(l,a,o){return o(function(){Gp(a)&&Yp(l)})}function Gp(l){var a=l.getSnapshot;l=l.value;try{var o=a();return!pi(l,o)}catch{return!0}}function Yp(l){var a=za(l,2);a!==null&&ti(a,l,2)}function Md(l){var a=Ke();if(typeof l=="function"){var o=l;if(l=o(),wa){ut(!0);try{o()}finally{ut(!1)}}}return a.memoizedState=a.baseState=l,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:l},a}function Qp(l,a,o,c){return l.baseState=o,Ad(l,Mt,typeof c=="function"?c:Qn)}function a_(l,a,o,c,h){if(fr(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(y){d.listeners.push(y)}};W.T!==null?o(!0):d.isTransition=!1,c(d),o=a.pending,o===null?(d.next=a.pending=d,Xp(a,d)):(d.next=o.next,a.pending=o.next=d)}}function Xp(l,a){var o=a.action,c=a.payload,h=l.state;if(a.isTransition){var d=W.T,y={};W.T=y;try{var z=o(h,c),D=W.S;D!==null&&D(y,z),Vp(l,a,z)}catch(L){Cd(l,a,L)}finally{d!==null&&y.types!==null&&(d.types=y.types),W.T=d}}else try{d=o(h,c),Vp(l,a,d)}catch(L){Cd(l,a,L)}}function Vp(l,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){Zp(l,a,c)},function(c){return Cd(l,a,c)}):Zp(l,a,o)}function Zp(l,a,o){a.status="fulfilled",a.value=o,Kp(a),l.state=o,a=l.pending,a!==null&&(o=a.next,o===a?l.pending=null:(o=o.next,a.next=o,Xp(l,o)))}function Cd(l,a,o){var c=l.pending;if(l.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=o,Kp(a),a=a.next;while(a!==c)}l.action=null}function Kp(l){l=l.listeners;for(var a=0;a<l.length;a++)(0,l[a])()}function Jp(l,a){return a}function Fp(l,a){if(gt){var o=Nt.formState;if(o!==null){t:{var c=lt;if(gt){if(Xt){var h=x3(Xt,qi);if(h){Xt=Q1(h),c=T3(h);break t}}vn(c)}c=!1}c&&(a=o[0])}}o=Ke(),o.memoizedState=o.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jp,lastRenderedState:a},o.queue=c,o=h0.bind(null,lt,c),c.dispatch=o,c=Md(!1);var d=Ud.bind(null,lt,!1,c.queue);return c=Ke(),h={state:a,dispatch:null,action:l,pending:null},c.queue=h,o=a_.bind(null,lt,h,d,o),h.dispatch=o,c.memoizedState=l,[a,o,!1]}function Wp(l){var a=ie();return Ip(a,Mt,l)}function Ip(l,a,o){if(a=Ad(l,a,Jp)[0],l=or(Qn)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=eo(a)}catch(y){throw y===Bu?wr:y}else c=a;a=ie();var h=a.queue,d=h.dispatch;return o!==a.memoizedState&&(lt.flags|=2048,bu(9,{destroy:void 0},u_.bind(null,h,o),null)),[c,d,l]}function u_(l,a){l.action=a}function Pp(l){var a=ie(),o=Mt;if(o!==null)return Ip(a,o,l);ie(),a=a.memoizedState,o=ie();var c=o.queue.dispatch;return o.memoizedState=l,[a,c,!1]}function bu(l,a,o,c){return l={tag:l,create:o,deps:c,inst:a,next:null},a=lt.updateQueue,a===null&&(a=ur(),lt.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 kp(){return ie().memoizedState}function cr(l,a,o,c){var h=Ke();lt.flags|=l,h.memoizedState=bu(1|a,{destroy:void 0},o,c===void 0?null:c)}function rr(l,a,o,c){var h=ie();c=c===void 0?null:c;var d=h.memoizedState.inst;Mt!==null&&c!==null&&bd(c,Mt.memoizedState.deps)?h.memoizedState=bu(a,d,o,c):(lt.flags|=l,h.memoizedState=bu(1|a,d,o,c))}function $p(l,a){cr(8390656,8,l,a)}function Rd(l,a){rr(2048,8,l,a)}function s_(l){lt.flags|=4;var a=lt.updateQueue;if(a===null)a=ur(),lt.updateQueue=a,a.events=[l];else{var o=a.events;o===null?a.events=[l]:o.push(l)}}function t0(l){var a=ie().memoizedState;return s_({ref:a,nextImpl:l}),function(){if(ot&2)throw Error(n(440));return a.impl.apply(void 0,arguments)}}function e0(l,a){return rr(4,2,l,a)}function i0(l,a){return rr(4,4,l,a)}function n0(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 l0(l,a,o){o=o!=null?o.concat([l]):null,rr(4,4,n0.bind(null,a,l),o)}function Nd(){}function a0(l,a){var o=ie();a=a===void 0?null:a;var c=o.memoizedState;return a!==null&&bd(a,c[1])?c[0]:(o.memoizedState=[l,a],l)}function u0(l,a){var o=ie();a=a===void 0?null:a;var c=o.memoizedState;if(a!==null&&bd(a,c[1]))return c[0];if(c=l(),wa){ut(!0);try{l()}finally{ut(!1)}}return o.memoizedState=[c,a],c}function Dd(l,a,o){return o===void 0||In&1073741824&&!(dt&261930)?l.memoizedState=a:(l.memoizedState=o,l=i1(),lt.lanes|=l,jl|=l,o)}function s0(l,a,o,c){return pi(o,a)?o:Lu.current!==null?(l=Dd(l,o,c),pi(l,a)||(se=!0),l):!(In&42)||In&1073741824&&!(dt&261930)?(se=!0,l.memoizedState=o):(l=i1(),lt.lanes|=l,jl|=l,a)}function o0(l,a,o,c,h){var d=Fn();ze(d!==0&&8>d?d:8);var y=W.T,z={};W.T=z,Ud(l,!1,a,o);try{var D=h(),L=W.S;if(L!==null&&L(z,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var X=n_(D,c);io(l,a,X,mi(l))}else io(l,a,c,mi(l))}catch(Y){io(l,a,{then:function(){},status:"rejected",reason:Y},mi())}finally{ze(d),y!==null&&z.types!==null&&(y.types=z.types),W.T=y}}function c0(l){var a=l.memoizedState;if(a!==null)return a;a={memoizedState:Au,baseState:Au,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:Au},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:o},next:null},l.memoizedState=a,l=l.alternate,l!==null&&(l.memoizedState=a),a}function Hd(){return Re(Ra)}function r0(){return ie().memoizedState}function f0(){return ie().memoizedState}function o_(l){for(var a=l.return;a!==null;){switch(a.tag){case 24:case 3:var o=mi();l=zl(o);var c=_l(a,l,o);c!==null&&(ti(c,a,o),ks(c,a,o)),a={cache:rd()},l.payload=a;return}a=a.return}}function c_(l,a,o){var c=mi();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},fr(l)?d0(a,o):(o=dd(l,a,o,c),o!==null&&(ti(o,l,c),m0(o,a,c)))}function h0(l,a,o){var c=mi();io(l,a,o,c)}function io(l,a,o,c){var h={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(fr(l))d0(a,h);else{var d=l.alternate;if(l.lanes===0&&(d===null||d.lanes===0)&&(d=a.lastRenderedReducer,d!==null))try{var y=a.lastRenderedState,z=d(y,o);if(h.hasEagerState=!0,h.eagerState=z,pi(z,y))return nr(l,a,h,0),Nt===null&&ir(),!1}catch{}finally{}if(o=dd(l,a,h,c),o!==null)return ti(o,l,c),m0(o,a,c),!0}return!1}function Ud(l,a,o,c){if(c={lane:2,revertLane:fd(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},fr(l)){if(a)throw Error(n(479))}else a=dd(l,o,c,2),a!==null&&ti(a,l,2)}function fr(l){var a=l.alternate;return l===lt||a!==null&&a===lt}function d0(l,a){qu=qr=!0;var o=l.pending;o===null?a.next=a:(a.next=o.next,o.next=a),l.pending=a}function m0(l,a,o){if(o&4194048){var c=a.lanes;c&=l.pendingLanes,o|=c,a.lanes=o,Z(l,o)}}function Bd(l,a,o,c){a=l.memoizedState,o=o(c,a),o=o==null?a:rm({},a,o),l.memoizedState=o,l.lanes===0&&(l.updateQueue.baseState=o)}function g0(l,a,o,c,h,d,y){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(c,d,y):a.prototype&&a.prototype.isPureReactComponent?!$c(o,c)||!$c(h,d):!0}function v0(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&&Bm.enqueueReplaceState(a,a.state,null)}function _a(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=rm({},o));for(var h in l)o[h]===void 0&&(o[h]=l[h])}return o}function hr(l,a){try{var o=l.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function y0(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 wd(l,a,o){return o=zl(o),o.tag=3,o.payload={element:null},o.callback=function(){hr(l,a)},o}function p0(l){return l=zl(l),l.tag=3,l}function S0(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(){y0(a,o,c)}}var y=o.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){y0(a,o,c),typeof h!="function"&&(Ll===null?Ll=new Set([this]):Ll.add(this));var z=c.stack;this.componentDidCatch(c.value,{componentStack:z!==null?z:""})})}function r_(l,a,o,c,h){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=o.alternate,a!==null&&pu(a,o,h,!0),o=Si.current,o!==null){switch(o.tag){case 31:case 13:return Yi===null?Er():o.alternate===null&&Pt===0&&(Pt=3),o.flags&=-257,o.flags|=65536,o.lanes=h,c===jr?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([c]):a.add(c),am(l,c,h)),!1;case 22:return o.flags|=65536,c===jr?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)),am(l,c,h)),!1}throw Error(n(435,o.tag))}return am(l,c,h),Er(),!1}if(gt)return a=Si.current,a!==null?(!(a.flags&65536)&&(a.flags|=256),a.flags|=65536,a.lanes=h,c!==Om&&(l=Error(n(422),{cause:c}),zt(ge(l,o)))):(c!==Om&&(a=Error(n(423),{cause:c}),zt(ge(a,o))),l=l.current.alternate,l.flags|=65536,h&=-h,l.lanes|=h,c=ge(c,o),h=wd(l.stateNode,c,h),vd(l,h),Pt!==4&&(Pt=2)),!1;var d=Error(n(520),{cause:c});if(d=ge(d,o),xo===null?xo=[d]:xo.push(d),Pt!==4&&(Pt=2),a===null)return!0;c=ge(c,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,l=h&-h,o.lanes|=l,l=wd(o.stateNode,c,l),vd(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"&&(Ll===null||!Ll.has(d))))return o.flags|=65536,h&=-h,o.lanes|=h,h=p0(h),S0(h,l,o,c),vd(o,h),!1}o=o.return}while(o!==null);return!1}function Ne(l,a,o,c){a.child=l===null?aS(a,null,o,c):Ba(a,l.child,o,c)}function b0(l,a,o,c,h){o=o.render;var d=a.ref;if("ref"in c){var y={};for(var z in c)z!=="ref"&&(y[z]=c[z])}else y=c;return xa(a),c=Ed(l,a,o,y,d,h),z=xd(),l!==null&&!se?(Td(l,a,h),Xn(l,a,h)):(gt&&z&&Tl(a),a.flags|=1,Ne(l,a,c,h),a.child)}function E0(l,a,o,c,h){if(l===null){var d=o.type;return typeof d=="function"&&!um(d)&&d.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=d,x0(l,a,d,c,h)):(l=Tr(o.type,null,c,a,a.mode,h),l.ref=a.ref,l.return=a,a.child=l)}if(d=l.child,!Xd(l,h)){var y=d.memoizedProps;if(o=o.compare,o=o!==null?o:$c,o(y,c)&&l.ref===a.ref)return Xn(l,a,h)}return a.flags|=1,l=Kn(d,c),l.ref=a.ref,l.return=a,a.child=l}function x0(l,a,o,c,h){if(l!==null){var d=l.memoizedProps;if($c(d,c)&&l.ref===a.ref)if(se=!1,a.pendingProps=c=d,Xd(l,h))l.flags&131072&&(se=!0);else return a.lanes=l.lanes,Xn(l,a,h)}return jd(l,a,o,c,h)}function T0(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 z0(l,a,d,o,c)}if(o&536870912)a.memoizedState={baseLanes:0,cachePool:null},l!==null&&kc(a,d!==null?d.cachePool:null),d!==null?Dp(a,d):yd(),Hp(a);else return c=a.lanes=536870912,z0(l,a,d!==null?d.baseLanes|o:o,o,c)}else d!==null?(kc(a,d.cachePool),Dp(a,d),Ol(a),a.memoizedState=null):(l!==null&&kc(a,null),yd(),Ol(a));return Ne(l,a,h,o),a.child}function no(l,a){return l!==null&&l.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function z0(l,a,o,c,h){var d=hd();return d=d===null?null:{parent:Jn?Vt._currentValue:Vt._currentValue2,pool:d},a.memoizedState={baseLanes:o,cachePool:d},l!==null&&kc(a,null),yd(),Hp(a),l!==null&&pu(l,a,c,!0),a.childLanes=h,null}function dr(l,a){return a=gr({mode:a.mode,children:a.children},l.mode),a.ref=l.ref,l.child=a,a.return=l,a}function _0(l,a,o){return Ba(a,l.child,null,o),l=dr(a,a.pendingProps),l.flags|=2,di(a),a.memoizedState=null,l}function f_(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=dr(a,c),a.lanes=536870912,no(null,l);if(Sd(a),(l=Xt)?(l=D3(l,qi),l!==null&&(a.memoizedState={dehydrated:l,treeContext:Dl!==null?{id:bn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},o=x1(l),o.return=a,a.child=o,He=a,Xt=null)):l=null,l===null)throw vn(a);return a.lanes=536870912,null}return dr(a,c)}var d=l.memoizedState;if(d!==null){var y=d.dehydrated;if(Sd(a),h)if(a.flags&256)a.flags&=-257,a=_0(l,a,o);else if(a.memoizedState!==null)a.child=l.child,a.flags|=128,a=null;else throw Error(n(558));else if(se||pu(l,a,o,!1),h=(o&l.childLanes)!==0,se||h){if(c=Nt,c!==null&&(y=J(c,o),y!==0&&y!==d.retryLane))throw d.retryLane=y,za(l,y),ti(c,l,y),wm;Er(),a=_0(l,a,o)}else l=d.treeContext,Xe&&(Xt=O3(y),He=a,gt=!0,Ul=null,qi=!1,l!==null&&Js(a,l)),a=dr(a,c),a.flags|=4096;return a}return l=Kn(l.child,{mode:c.mode,children:c.children}),l.ref=a.ref,a.child=l,l.return=a,l}function mr(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 jd(l,a,o,c,h){return xa(a),o=Ed(l,a,o,c,void 0,h),c=xd(),l!==null&&!se?(Td(l,a,h),Xn(l,a,h)):(gt&&c&&Tl(a),a.flags|=1,Ne(l,a,o,h),a.child)}function A0(l,a,o,c,h,d){return xa(a),a.updateQueue=null,o=Bp(a,c,o,h),Up(l),c=xd(),l!==null&&!se?(Td(l,a,d),Xn(l,a,d)):(gt&&c&&Tl(a),a.flags|=1,Ne(l,a,o,d),a.child)}function O0(l,a,o,c,h){if(xa(a),a.stateNode===null){var d=Cu,y=o.contextType;typeof y=="object"&&y!==null&&(d=Re(y)),d=new o(c,d),a.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Bm,a.stateNode=d,d._reactInternals=a,d=a.stateNode,d.props=c,d.state=a.memoizedState,d.refs={},md(a),y=o.contextType,d.context=typeof y=="object"&&y!==null?Re(y):Cu,d.state=a.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(Bd(a,o,y,c),d.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&Bm.enqueueReplaceState(d,d.state,null),to(a,c,d,h),$s(),d.state=a.memoizedState),typeof d.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(l===null){d=a.stateNode;var z=a.memoizedProps,D=_a(o,z);d.props=D;var L=d.context,X=o.contextType;y=Cu,typeof X=="object"&&X!==null&&(y=Re(X));var Y=o.getDerivedStateFromProps;X=typeof Y=="function"||typeof d.getSnapshotBeforeUpdate=="function",z=a.pendingProps!==z,X||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(z||L!==y)&&v0(a,d,c,y),Bl=!1;var K=a.memoizedState;d.state=K,to(a,c,d,h),$s(),L=a.memoizedState,z||K!==L||Bl?(typeof Y=="function"&&(Bd(a,o,Y,c),L=a.memoizedState),(D=Bl||g0(a,o,D,c,K,L,y))?(X||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=L),d.props=c,d.state=L,d.context=y,c=D):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{d=a.stateNode,gd(l,a),y=a.memoizedProps,X=_a(o,y),d.props=X,Y=a.pendingProps,K=d.context,L=o.contextType,D=Cu,typeof L=="object"&&L!==null&&(D=Re(L)),z=o.getDerivedStateFromProps,(L=typeof z=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==Y||K!==D)&&v0(a,d,c,D),Bl=!1,K=a.memoizedState,d.state=K,to(a,c,d,h),$s();var it=a.memoizedState;y!==Y||K!==it||Bl||l!==null&&l.dependencies!==null&&Wc(l.dependencies)?(typeof z=="function"&&(Bd(a,o,z,c),it=a.memoizedState),(X=Bl||g0(a,o,X,c,K,it,D)||l!==null&&l.dependencies!==null&&Wc(l.dependencies))?(L||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"||y===l.memoizedProps&&K===l.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===l.memoizedProps&&K===l.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=it),d.props=c,d.state=it,d.context=D,c=X):(typeof d.componentDidUpdate!="function"||y===l.memoizedProps&&K===l.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===l.memoizedProps&&K===l.memoizedState||(a.flags|=1024),c=!1)}return d=c,mr(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=Ba(a,l.child,null,h),a.child=Ba(a,null,o,h)):Ne(l,a,o,h),a.memoizedState=d.state,l=a.child):l=Xn(l,a,h),l}function M0(l,a,o,c){return k(),a.flags|=256,Ne(l,a,o,c),a.child}function Ld(l){return{baseLanes:l,cachePool:Tp()}}function qd(l,a,o){return l=l!==null?l.childLanes&~o:0,a&&(l|=Ei),l}function C0(l,a,o){var c=a.pendingProps,h=!1,d=(a.flags&128)!==0,y;if((y=d)||(y=l!==null&&l.memoizedState===null?!1:(ne.current&2)!==0),y&&(h=!0,a.flags&=-129),y=(a.flags&32)!==0,a.flags&=-33,l===null){if(gt){if(h?Al(a):Ol(a),(l=Xt)?(l=H3(l,qi),l!==null&&(a.memoizedState={dehydrated:l,treeContext:Dl!==null?{id:bn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},o=x1(l),o.return=a,a.child=o,He=a,Xt=null)):l=null,l===null)throw vn(a);return bm(l)?a.lanes=32:a.lanes=536870912,null}var z=c.children;return c=c.fallback,h?(Ol(a),h=a.mode,z=gr({mode:"hidden",children:z},h),c=Ma(c,h,o,null),z.return=a,c.return=a,z.sibling=c,a.child=z,c=a.child,c.memoizedState=Ld(o),c.childLanes=qd(l,y,o),a.memoizedState=jm,no(null,c)):(Al(a),Gd(a,z))}var D=l.memoizedState;if(D!==null&&(z=D.dehydrated,z!==null)){if(d)a.flags&256?(Al(a),a.flags&=-257,a=Yd(l,a,o)):a.memoizedState!==null?(Ol(a),a.child=l.child,a.flags|=128,a=null):(Ol(a),z=c.fallback,h=a.mode,c=gr({mode:"visible",children:c.children},h),z=Ma(z,h,o,null),z.flags|=2,c.return=a,z.return=a,c.sibling=z,a.child=c,Ba(a,l.child,null,o),c=a.child,c.memoizedState=Ld(o),c.childLanes=qd(l,y,o),a.memoizedState=jm,a=no(null,c));else if(Al(a),bm(z))y=b3(z).digest,c=Error(n(419)),c.stack="",c.digest=y,zt({value:c,source:null,stack:null}),a=Yd(l,a,o);else if(se||pu(l,a,o,!1),y=(o&l.childLanes)!==0,se||y){if(y=Nt,y!==null&&(c=J(y,o),c!==0&&c!==D.retryLane))throw D.retryLane=c,za(l,c),ti(y,l,c),wm;Sm(z)||Er(),a=Yd(l,a,o)}else Sm(z)?(a.flags|=192,a.child=l.child,a=null):(l=D.treeContext,Xe&&(Xt=M3(z),He=a,gt=!0,Ul=null,qi=!1,l!==null&&Js(a,l)),a=Gd(a,c.children),a.flags|=4096);return a}return h?(Ol(a),z=c.fallback,h=a.mode,D=l.child,d=D.sibling,c=Kn(D,{mode:"hidden",children:c.children}),c.subtreeFlags=D.subtreeFlags&65011712,d!==null?z=Kn(d,z):(z=Ma(z,h,o,null),z.flags|=2),z.return=a,c.return=a,c.sibling=z,a.child=c,no(null,c),c=a.child,z=l.child.memoizedState,z===null?z=Ld(o):(h=z.cachePool,h!==null?(D=Jn?Vt._currentValue:Vt._currentValue2,h=h.parent!==D?{parent:D,pool:D}:h):h=Tp(),z={baseLanes:z.baseLanes|o,cachePool:h}),c.memoizedState=z,c.childLanes=qd(l,y,o),a.memoizedState=jm,no(l.child,c)):(Al(a),o=l.child,l=o.sibling,o=Kn(o,{mode:"visible",children:c.children}),o.return=a,o.sibling=null,l!==null&&(y=a.deletions,y===null?(a.deletions=[l],a.flags|=16):y.push(l)),a.child=o,a.memoizedState=null,o)}function Gd(l,a){return a=gr({mode:"visible",children:a},l.mode),a.return=l,l.child=a}function gr(l,a){return l=e(22,l,null,a),l.lanes=0,l}function Yd(l,a,o){return Ba(a,l.child,null,o),l=Gd(a,a.pendingProps.children),l.flags|=2,a.memoizedState=null,l}function R0(l,a,o){l.lanes|=a;var c=l.alternate;c!==null&&(c.lanes|=a),wi(l.return,a,o)}function Qd(l,a,o,c,h,d){var y=l.memoizedState;y===null?l.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:h,treeForkCount:d}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=o,y.tailMode=h,y.treeForkCount=d)}function N0(l,a,o){var c=a.pendingProps,h=c.revealOrder,d=c.tail;c=c.children;var y=ne.current,z=(y&2)!==0;if(z?(y=y&1|2,a.flags|=128):y&=1,x(ne,y),Ne(l,a,c,o),c=gt?go:0,!z&&l!==null&&l.flags&128)t:for(l=a.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&R0(l,o,a);else if(l.tag===19)R0(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&&ar(l)===null&&(h=o),o=o.sibling;o=h,o===null?(h=a.child,a.child=null):(h=o.sibling,o.sibling=null),Qd(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&&ar(l)===null){a.child=h;break}l=h.sibling,h.sibling=o,o=h,h=l}Qd(a,!0,o,null,d,c);break;case"together":Qd(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Xn(l,a,o){if(l!==null&&(a.dependencies=l.dependencies),jl|=a.lanes,!(o&a.childLanes))if(l!==null){if(pu(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=Kn(l,l.pendingProps),a.child=o,o.return=a;l.sibling!==null;)l=l.sibling,o=o.sibling=Kn(l,l.pendingProps),o.return=a;o.sibling=null}return a.child}function Xd(l,a){return l.lanes&a?!0:(l=l.dependencies,!!(l!==null&&Wc(l)))}function h_(l,a,o){switch(a.tag){case 3:Ea(a,a.stateNode.containerInfo),qt(a,Vt,l.memoizedState.cache),k();break;case 27:case 5:Fs(a);break;case 4:Ea(a,a.stateNode.containerInfo);break;case 10:qt(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Sd(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Al(a),a.flags|=128,null):o&a.child.childLanes?C0(l,a,o):(Al(a),l=Xn(l,a,o),l!==null?l.sibling:null);Al(a);break;case 19:var h=(l.flags&128)!==0;if(c=(o&a.childLanes)!==0,c||(pu(l,a,o,!1),c=(o&a.childLanes)!==0),h){if(c)return N0(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,T0(l,a,o,a.pendingProps);case 24:qt(a,Vt,l.memoizedState.cache)}return Xn(l,a,o)}function D0(l,a,o){if(l!==null)if(l.memoizedProps!==a.pendingProps)se=!0;else{if(!Xd(l,o)&&!(a.flags&128))return se=!1,h_(l,a,o);se=!!(l.flags&131072)}else se=!1,gt&&a.flags&1048576&&Qt(a,go,a.index);switch(a.lanes=0,a.tag){case 16:t:{var c=a.pendingProps;if(l=Ta(a.elementType),a.type=l,typeof l=="function")um(l)?(c=_a(l,c),a.tag=1,a=O0(null,a,l,c,o)):(a.tag=0,a=jd(null,a,l,c,o));else{if(l!=null){var h=l.$$typeof;if(h===hm){a.tag=11,a=b0(null,a,l,c,o);break t}else if(h===gm){a.tag=14,a=E0(null,a,l,c,o);break t}}throw a=g(l)||l,Error(n(306,a,""))}}return a;case 0:return jd(l,a,a.type,a.pendingProps,o);case 1:return c=a.type,h=_a(c,a.pendingProps),O0(l,a,c,h,o);case 3:t:{if(Ea(a,a.stateNode.containerInfo),l===null)throw Error(n(387));var d=a.pendingProps;h=a.memoizedState,c=h.element,gd(l,a),to(a,d,null,o);var y=a.memoizedState;if(d=y.cache,qt(a,Vt,d),d!==h.cache&&nn(a,[Vt],o,!0),$s(),d=y.element,Xe&&h.isDehydrated)if(h={element:d,isDehydrated:!1,cache:y.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=M0(l,a,d,o);break t}else if(d!==c){c=ge(Error(n(424)),a),zt(c),a=M0(l,a,d,o);break t}else for(Xe&&(Xt=A3(a.stateNode.containerInfo),He=a,gt=!0,Ul=null,qi=!0),o=aS(a,null,d,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(k(),d===c){a=Xn(l,a,o);break t}Ne(l,a,d,o)}a=a.child}return a;case 26:if(sn)return mr(l,a),l===null?(o=Z1(a.type,null,a.pendingProps,null))?a.memoizedState=o:gt||(a.stateNode=$3(a.type,a.pendingProps,Hl.current,a)):a.memoizedState=Z1(a.type,l.memoizedProps,a.pendingProps,l.memoizedState),null;case 27:if(ve)return Fs(a),l===null&&ve&>&&(c=a.stateNode=P1(a.type,a.pendingProps,Hl.current,De.current,!1),He=a,qi=!0,Xt=C3(a.type,c,Xt)),Ne(l,a,a.pendingProps.children,o),mr(l,a),l===null&&(a.flags|=4194304),a.child;case 5:return l===null&>&&(I3(a.type,a.pendingProps,De.current),(h=c=Xt)&&(c=R3(c,a.type,a.pendingProps,qi),c!==null?(a.stateNode=c,He=a,Xt=_3(c),qi=!1,h=!0):h=!1),h||vn(a)),Fs(a),h=a.type,d=a.pendingProps,y=l!==null?l.memoizedProps:null,c=d.children,Ar(h,d)?c=null:y!==null&&Ar(h,y)&&(a.flags|=32),a.memoizedState!==null&&(h=Ed(l,a,l_,null,null,o),Jn?Ra._currentValue=h:Ra._currentValue2=h),mr(l,a),Ne(l,a,c,o),a.child;case 6:return l===null&>&&(P3(a.pendingProps,De.current),(l=o=Xt)&&(o=N3(o,a.pendingProps,qi),o!==null?(a.stateNode=o,He=a,Xt=null,l=!0):l=!1),l||vn(a)),null;case 13:return C0(l,a,o);case 4:return Ea(a,a.stateNode.containerInfo),c=a.pendingProps,l===null?a.child=Ba(a,null,c,o):Ne(l,a,c,o),a.child;case 11:return b0(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,qt(a,a.type,c.value),Ne(l,a,c.children,o),a.child;case 9:return h=a.type._context,c=a.pendingProps.children,xa(a),h=Re(h),c=c(h),a.flags|=1,Ne(l,a,c,o),a.child;case 14:return E0(l,a,a.type,a.pendingProps,o);case 15:return x0(l,a,a.type,a.pendingProps,o);case 19:return N0(l,a,o);case 31:return f_(l,a,o);case 22:return T0(l,a,o,a.pendingProps);case 24:return xa(a),c=Re(Vt),l===null?(h=hd(),h===null&&(h=Nt,d=rd(),h.pooledCache=d,d.refCount++,d!==null&&(h.pooledCacheLanes|=o),h=d),a.memoizedState={parent:c,cache:h},md(a),qt(a,Vt,h)):(l.lanes&o&&(gd(l,a),to(a,null,null,o),$s()),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),qt(a,Vt,c)):(c=d.cache,qt(a,Vt,c),c!==h.cache&&nn(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 ln(l){l.flags|=4}function vr(l){Sn&&(l.flags|=8)}function H0(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 Vd(l,a,o,c){if(Qe)for(o=a.child;o!==null;){if(o.tag===5||o.tag===6)ym(l,o.stateNode);else if(!(o.tag===4||ve&&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(Sn)for(var h=a.child;h!==null;){if(h.tag===5){var d=h.stateNode;o&&c&&(d=G1(d,h.type,h.memoizedProps)),ym(l,d)}else if(h.tag===6)d=h.stateNode,o&&c&&(d=Y1(d,h.memoizedProps)),ym(l,d);else if(h.tag!==4){if(h.tag===22&&h.memoizedState!==null)d=h.child,d!==null&&(d.return=h),Vd(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 U0(l,a,o,c){var h=!1;if(Sn)for(var d=a.child;d!==null;){if(d.tag===5){var y=d.stateNode;o&&c&&(y=G1(y,d.type,d.memoizedProps)),L1(l,y)}else if(d.tag===6)y=d.stateNode,o&&c&&(y=Y1(y,d.memoizedProps)),L1(l,y);else if(d.tag!==4){if(d.tag===22&&d.memoizedState!==null)h=d.child,h!==null&&(h.return=d),U0(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 B0(l,a){if(Sn&&H0(l,a)){l=a.stateNode;var o=l.containerInfo,c=j1();U0(c,a,!1,!1),l.pendingChildren=c,ln(a),S3(o,c)}}function Zd(l,a,o,c){if(Qe)l.memoizedProps!==c&&ln(a);else if(Sn){var h=l.stateNode,d=l.memoizedProps;if((l=H0(l,a))||d!==c){var y=De.current;d=p3(h,o,d,c,!l,null),d===h?a.stateNode=h:(vr(a),D1(d,o,c,y)&&ln(a),a.stateNode=d,l&&Vd(d,a,!1,!1))}else a.stateNode=h}}function Kd(l,a,o,c,h){if(l.mode&32&&(o===null?Z_(a,c):K_(a,o,c))){if(l.flags|=16777216,(h&335544128)===h||pm(a,c))if(U1(l.stateNode,a,c))l.flags|=8192;else if(s1())l.flags|=8192;else throw Ua=jr,Nm}else l.flags&=-16777217}function w0(l,a){if(eA(a)){if(l.flags|=16777216,!I1(a))if(s1())l.flags|=8192;else throw Ua=jr,Nm}else l.flags&=-16777217}function yr(l,a){a!==null&&(l.flags|=4),l.flags&16384&&(a=l.tag!==22?_():536870912,l.lanes|=a,Xu|=a)}function lo(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 Ut(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 d_(l,a,o){var c=a.pendingProps;switch(Ks(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(a),null;case 1:return Ut(a),null;case 3:return o=a.stateNode,c=null,l!==null&&(c=l.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Ze(Vt),Gn(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(l===null||l.child===null)&&(Yn(a)?ln(a):l===null||l.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,ht())),B0(l,a),Ut(a),null;case 26:if(sn){var h=a.type,d=a.memoizedState;return l===null?(ln(a),d!==null?(Ut(a),w0(a,d)):(Ut(a),Kd(a,h,null,c,o))):d?d!==l.memoizedState?(ln(a),Ut(a),w0(a,d)):(Ut(a),a.flags&=-16777217):(d=l.memoizedProps,Qe?d!==c&&ln(a):Zd(l,a,h,c),Ut(a),Kd(a,h,d,c,o)),null}case 27:if(ve){if(Ws(a),o=Hl.current,h=a.type,l!==null&&a.stateNode!=null)Qe?l.memoizedProps!==c&&ln(a):Zd(l,a,h,c);else{if(!c){if(a.stateNode===null)throw Error(n(166));return Ut(a),null}l=De.current,Yn(a)?Fc(a,l):(l=P1(h,c,o,l,!0),a.stateNode=l,ln(a))}return Ut(a),null}case 5:if(Ws(a),h=a.type,l!==null&&a.stateNode!=null)Zd(l,a,h,c);else{if(!c){if(a.stateNode===null)throw Error(n(166));return Ut(a),null}if(d=De.current,Yn(a))Fc(a,d),V3(a.stateNode,h,c,d)&&(a.flags|=64);else{var y=j_(h,c,Hl.current,d,a);vr(a),Vd(y,a,!1,!1),a.stateNode=y,D1(y,h,c,d)&&ln(a)}}return Ut(a),Kd(a,a.type,l===null?null:l.memoizedProps,a.pendingProps,o),null;case 6:if(l&&a.stateNode!=null)o=l.memoizedProps,Qe?o!==c&&ln(a):Sn&&(o!==c?(l=Hl.current,o=De.current,vr(a),a.stateNode=H1(c,l,o,a)):a.stateNode=l.stateNode);else{if(typeof c!="string"&&a.stateNode===null)throw Error(n(166));if(l=Hl.current,o=De.current,Yn(a)){if(!Xe)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}B3(l,o,a,c)||vn(a,!0)}else vr(a),a.stateNode=H1(c,l,o,a)}return Ut(a),null;case 31:if(o=a.memoizedState,l===null||l.memoizedState!==null){if(c=Yn(a),o!==null){if(l===null){if(!c)throw Error(n(318));if(!Xe)throw Error(n(556));if(l=a.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(557));w3(l,a)}else k(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Ut(a),l=!1}else o=ht(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=o),l=!0;if(!l)return a.flags&256?(di(a),a):(di(a),null);if(a.flags&128)throw Error(n(558))}return Ut(a),null;case 13:if(c=a.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(h=Yn(a),c!==null&&c.dehydrated!==null){if(l===null){if(!h)throw Error(n(318));if(!Xe)throw Error(n(344));if(h=a.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(317));j3(h,a)}else k(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Ut(a),h=!1}else h=ht(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=h),h=!0;if(!h)return a.flags&256?(di(a),a):(di(a),null)}return di(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),yr(a,a.updateQueue),Ut(a),null);case 4:return Gn(),B0(l,a),l===null&&Y_(a.stateNode.containerInfo),Ut(a),null;case 10:return Ze(a.type),Ut(a),null;case 19:if(p(ne),c=a.memoizedState,c===null)return Ut(a),null;if(h=(a.flags&128)!==0,d=c.rendering,d===null)if(h)lo(c,!1);else{if(Pt!==0||l!==null&&l.flags&128)for(l=a.child;l!==null;){if(d=ar(l),d!==null){for(a.flags|=128,lo(c,!1),l=d.updateQueue,a.updateQueue=l,yr(a,l),a.subtreeFlags=0,l=o,o=a.child;o!==null;)E1(o,l),o=o.sibling;return x(ne,ne.current&1|2),gt&&G(a,c.treeForkCount),a.child}l=l.sibling}c.tail!==null&&ei()>To&&(a.flags|=128,h=!0,lo(c,!1),a.lanes=4194304)}else{if(!h)if(l=ar(d),l!==null){if(a.flags|=128,h=!0,l=l.updateQueue,a.updateQueue=l,yr(a,l),lo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!gt)return Ut(a),null}else 2*ei()-c.renderingStartTime>To&&o!==536870912&&(a.flags|=128,h=!0,lo(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=ei(),l.sibling=null,o=ne.current,x(ne,h?o&1|2:o&1),gt&&G(a,c.treeForkCount),l):(Ut(a),null);case 22:case 23:return di(a),pd(),c=a.memoizedState!==null,l!==null?l.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?o&536870912&&!(a.flags&128)&&(Ut(a),a.subtreeFlags&6&&(a.flags|=8192)):Ut(a),o=a.updateQueue,o!==null&&yr(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(Ha),null;case 24:return o=null,l!==null&&(o=l.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Ze(Vt),Ut(a),null;case 25:return null;case 30:return null}throw Error(n(156,a.tag))}function m_(l,a){switch(Ks(a),a.tag){case 1:return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 3:return Ze(Vt),Gn(),l=a.flags,l&65536&&!(l&128)?(a.flags=l&-65537|128,a):null;case 26:case 27:case 5:return Ws(a),null;case 31:if(a.memoizedState!==null){if(di(a),a.alternate===null)throw Error(n(340));k()}return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 13:if(di(a),l=a.memoizedState,l!==null&&l.dehydrated!==null){if(a.alternate===null)throw Error(n(340));k()}return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 19:return p(ne),null;case 4:return Gn(),null;case 10:return Ze(a.type),null;case 22:case 23:return di(a),pd(),l!==null&&p(Ha),l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 24:return Ze(Vt),null;case 25:return null;default:return null}}function j0(l,a){switch(Ks(a),a.tag){case 3:Ze(Vt),Gn();break;case 26:case 27:case 5:Ws(a);break;case 4:Gn();break;case 31:a.memoizedState!==null&&di(a);break;case 13:di(a);break;case 19:p(ne);break;case 10:Ze(a.type);break;case 22:case 23:di(a),pd(),l!==null&&p(Ha);break;case 24:Ze(Vt)}}function ao(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,y=o.inst;c=d(),y.destroy=c}o=o.next}while(o!==h)}}catch(z){St(a,a.return,z)}}function Ml(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 y=c.inst,z=y.destroy;if(z!==void 0){y.destroy=void 0,h=a;var D=o,L=z;try{L()}catch(X){St(h,D,X)}}}c=c.next}while(c!==d)}}catch(X){St(a,a.return,X)}}function L0(l){var a=l.updateQueue;if(a!==null){var o=l.stateNode;try{Np(a,o)}catch(c){St(l,l.return,c)}}}function q0(l,a,o){o.props=_a(l.type,l.memoizedProps),o.state=l.memoizedState;try{o.componentWillUnmount()}catch(c){St(l,a,c)}}function uo(l,a){try{var o=l.ref;if(o!==null){switch(l.tag){case 26:case 27:case 5:var c=ro(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){St(l,a,h)}}function pn(l,a){var o=l.ref,c=l.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(h){St(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){St(l,a,h)}else o.current=null}function G0(l){var a=l.type,o=l.memoizedProps,c=l.stateNode;try{s3(c,a,o,l)}catch(h){St(l,l.return,h)}}function Jd(l,a,o){try{o3(l.stateNode,l.type,o,a,l)}catch(c){St(l,l.return,c)}}function Y0(l){return l.tag===5||l.tag===3||(sn?l.tag===26:!1)||(ve?l.tag===27&&Ou(l.type):!1)||l.tag===4}function Fd(l){t:for(;;){for(;l.sibling===null;){if(l.return===null||Y0(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(ve&&l.tag===27&&Ou(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 Wd(l,a,o){var c=l.tag;if(c===5||c===6)l=l.stateNode,a?r3(o,l,a):a3(o,l);else if(c!==4&&(ve&&c===27&&Ou(l.type)&&(o=l.stateNode,a=null),l=l.child,l!==null))for(Wd(l,a,o),l=l.sibling;l!==null;)Wd(l,a,o),l=l.sibling}function pr(l,a,o){var c=l.tag;if(c===5||c===6)l=l.stateNode,a?c3(o,l,a):l3(o,l);else if(c!==4&&(ve&&c===27&&Ou(l.type)&&(o=l.stateNode),l=l.child,l!==null))for(pr(l,a,o),l=l.sibling;l!==null;)pr(l,a,o),l=l.sibling}function Q0(l,a,o){l=l.containerInfo;try{q1(l,o)}catch(c){St(a,a.return,c)}}function X0(l){var a=l.stateNode,o=l.memoizedProps;try{nA(l.type,o,a,l)}catch(c){St(l,l.return,c)}}function g_(l,a){for(B_(l.containerInfo),_e=a;_e!==null;)if(l=_e,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,_e=a;else for(;_e!==null;){l=_e;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 y=_a(c.type,h);a=d.getSnapshotBeforeUpdate(y,o),d.__reactInternalSnapshotBeforeUpdate=a}catch(z){St(c,c.return,z)}}break;case 3:a&1024&&Qe&&y3(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,_e=a;break}_e=l.return}}function V0(l,a,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:Vn(l,o),c&4&&ao(5,o);break;case 1:if(Vn(l,o),c&4)if(l=o.stateNode,a===null)try{l.componentDidMount()}catch(y){St(o,o.return,y)}else{var h=_a(o.type,a.memoizedProps);a=a.memoizedState;try{l.componentDidUpdate(h,a,l.__reactInternalSnapshotBeforeUpdate)}catch(y){St(o,o.return,y)}}c&64&&L0(o),c&512&&uo(o,o.return);break;case 3:if(Vn(l,o),c&64&&(c=o.updateQueue,c!==null)){if(l=null,o.child!==null)switch(o.child.tag){case 27:case 5:l=ro(o.child.stateNode);break;case 1:l=o.child.stateNode}try{Np(c,l)}catch(y){St(o,o.return,y)}}break;case 27:ve&&a===null&&c&4&&X0(o);case 26:case 5:if(Vn(l,o),a===null){if(c&4)G0(o);else if(c&64){l=o.type,a=o.memoizedProps,h=o.stateNode;try{G3(h,l,a,o)}catch(y){St(o,o.return,y)}}}c&512&&uo(o,o.return);break;case 12:Vn(l,o);break;case 31:Vn(l,o),c&4&&K0(l,o);break;case 13:Vn(l,o),c&4&&J0(l,o),c&64&&(c=o.memoizedState,c!==null&&(c=c.dehydrated,c!==null&&(o=x_.bind(null,o),E3(c,o))));break;case 22:if(c=o.memoizedState!==null||Pn,!c){a=a!==null&&a.memoizedState!==null||oe,h=Pn;var d=oe;Pn=c,(oe=a)&&!d?Zn(l,o,(o.subtreeFlags&8772)!==0):Vn(l,o),Pn=h,oe=d}break;case 30:break;default:Vn(l,o)}}function Z0(l){var a=l.alternate;a!==null&&(l.alternate=null,Z0(a)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(a=l.stateNode,a!==null&&V_(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 an(l,a,o){for(o=o.child;o!==null;)Id(l,a,o),o=o.sibling}function Id(l,a,o){if(yi&&typeof yi.onCommitFiberUnmount=="function")try{yi.onCommitFiberUnmount(mo,o)}catch{}switch(o.tag){case 26:if(sn){oe||pn(o,a),an(l,a,o),o.memoizedState?J1(o.memoizedState):o.stateNode&&W1(o.stateNode);break}case 27:if(ve){oe||pn(o,a);var c=ce,h=ii;Ou(o.type)&&(ce=o.stateNode,ii=!1),an(l,a,o),k1(o.stateNode),ce=c,ii=h;break}case 5:oe||pn(o,a);case 6:if(Qe){if(c=ce,h=ii,ce=null,an(l,a,o),ce=c,ii=h,ce!==null)if(ii)try{h3(ce,o.stateNode)}catch(d){St(o,a,d)}else try{f3(ce,o.stateNode)}catch(d){St(o,a,d)}}else an(l,a,o);break;case 18:Qe&&ce!==null&&(ii?J3(ce,o.stateNode):K3(ce,o.stateNode));break;case 4:Qe?(c=ce,h=ii,ce=o.stateNode.containerInfo,ii=!0,an(l,a,o),ce=c,ii=h):(Sn&&Q0(o.stateNode,o,j1()),an(l,a,o));break;case 0:case 11:case 14:case 15:Ml(2,o,a),oe||Ml(4,o,a),an(l,a,o);break;case 1:oe||(pn(o,a),c=o.stateNode,typeof c.componentWillUnmount=="function"&&q0(o,a,c)),an(l,a,o);break;case 21:an(l,a,o);break;case 22:oe=(c=oe)||o.memoizedState!==null,an(l,a,o),oe=c;break;default:an(l,a,o)}}function K0(l,a){if(Xe&&a.memoizedState===null&&(l=a.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{Q3(l)}catch(o){St(a,a.return,o)}}}function J0(l,a){if(Xe&&a.memoizedState===null&&(l=a.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{X3(l)}catch(o){St(a,a.return,o)}}function v_(l){switch(l.tag){case 31:case 13:case 19:var a=l.stateNode;return a===null&&(a=l.stateNode=new oS),a;case 22:return l=l.stateNode,a=l._retryCache,a===null&&(a=l._retryCache=new oS),a;default:throw Error(n(435,l.tag))}}function Sr(l,a){var o=v_(l);a.forEach(function(c){if(!o.has(c)){o.add(c);var h=T_.bind(null,l,c);c.then(h,h)}})}function Ye(l,a){var o=a.deletions;if(o!==null)for(var c=0;c<o.length;c++){var h=o[c],d=l,y=a;if(Qe){var z=y;t:for(;z!==null;){switch(z.tag){case 27:if(ve){if(Ou(z.type)){ce=z.stateNode,ii=!1;break t}break}case 5:ce=z.stateNode,ii=!1;break t;case 3:case 4:ce=z.stateNode.containerInfo,ii=!0;break t}z=z.return}if(ce===null)throw Error(n(160));Id(d,y,h),ce=null,ii=!1}else Id(d,y,h);d=h.alternate,d!==null&&(d.return=null),h.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)F0(a,l),a=a.sibling}function F0(l,a){var o=l.alternate,c=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Ye(a,l),Je(l),c&4&&(Ml(3,l,l.return),ao(3,l),Ml(5,l,l.return));break;case 1:Ye(a,l),Je(l),c&512&&(oe||o===null||pn(o,o.return)),c&64&&Pn&&(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(sn){var h=on;if(Ye(a,l),Je(l),c&512&&(oe||o===null||pn(o,o.return)),c&4){c=o!==null?o.memoizedState:null;var d=l.memoizedState;o===null?d===null?l.stateNode===null?l.stateNode=k3(h,l.type,l.memoizedProps,l):F1(h,l.type,l.stateNode):l.stateNode=K1(h,d,l.memoizedProps):c!==d?(c===null?o.stateNode!==null&&W1(o.stateNode):J1(c),d===null?F1(h,l.type,l.stateNode):K1(h,d,l.memoizedProps)):d===null&&l.stateNode!==null&&Jd(l,l.memoizedProps,o.memoizedProps)}break}case 27:if(ve){Ye(a,l),Je(l),c&512&&(oe||o===null||pn(o,o.return)),o!==null&&c&4&&Jd(l,l.memoizedProps,o.memoizedProps);break}case 5:if(Ye(a,l),Je(l),c&512&&(oe||o===null||pn(o,o.return)),Qe){if(l.flags&32){h=l.stateNode;try{w1(h)}catch(Y){St(l,l.return,Y)}}c&4&&l.stateNode!=null&&(h=l.memoizedProps,Jd(l,h,o!==null?o.memoizedProps:h)),c&1024&&(Lm=!0)}else Sn&&l.alternate!==null&&(l.alternate.stateNode=l.stateNode);break;case 6:if(Ye(a,l),Je(l),c&4&&Qe){if(l.stateNode===null)throw Error(n(162));c=l.memoizedProps,o=o!==null?o.memoizedProps:c,h=l.stateNode;try{u3(h,o,c)}catch(Y){St(l,l.return,Y)}}break;case 3:if(sn?(tA(),h=on,on=Em(a.containerInfo),Ye(a,l),on=h):Ye(a,l),Je(l),c&4){if(Qe&&Xe&&o!==null&&o.memoizedState.isDehydrated)try{Y3(a.containerInfo)}catch(Y){St(l,l.return,Y)}if(Sn){c=a.containerInfo,o=a.pendingChildren;try{q1(c,o)}catch(Y){St(l,l.return,Y)}}}Lm&&(Lm=!1,W0(l));break;case 4:sn?(o=on,on=Em(l.stateNode.containerInfo),Ye(a,l),Je(l),on=o):(Ye(a,l),Je(l)),c&4&&Sn&&Q0(l.stateNode,l,l.stateNode.pendingChildren);break;case 12:Ye(a,l),Je(l);break;case 31:Ye(a,l),Je(l),c&4&&(c=l.updateQueue,c!==null&&(l.updateQueue=null,Sr(l,c)));break;case 13:Ye(a,l),Je(l),l.child.flags&8192&&l.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Kr=ei()),c&4&&(c=l.updateQueue,c!==null&&(l.updateQueue=null,Sr(l,c)));break;case 22:h=l.memoizedState!==null;var y=o!==null&&o.memoizedState!==null,z=Pn,D=oe;if(Pn=z||h,oe=D||y,Ye(a,l),oe=D,Pn=z,Je(l),c&8192&&(a=l.stateNode,a._visibility=h?a._visibility&-2:a._visibility|1,h&&(o===null||y||Pn||oe||Aa(l)),Qe)){t:if(o=null,Qe)for(a=l;;){if(a.tag===5||sn&&a.tag===26){if(o===null){y=o=a;try{d=y.stateNode,h?d3(d):g3(y.stateNode,y.memoizedProps)}catch(Y){St(y,y.return,Y)}}}else if(a.tag===6){if(o===null){y=a;try{var L=y.stateNode;h?m3(L):v3(L,y.memoizedProps)}catch(Y){St(y,y.return,Y)}}}else if(a.tag===18){if(o===null){y=a;try{var X=y.stateNode;h?F3(X):W3(y.stateNode)}catch(Y){St(y,y.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,Sr(l,o))));break;case 19:Ye(a,l),Je(l),c&4&&(c=l.updateQueue,c!==null&&(l.updateQueue=null,Sr(l,c)));break;case 30:break;case 21:break;default:Ye(a,l),Je(l)}}function Je(l){var a=l.flags;if(a&2){try{for(var o,c=l.return;c!==null;){if(Y0(c)){o=c;break}c=c.return}if(Qe){if(o==null)throw Error(n(160));switch(o.tag){case 27:if(ve){var h=o.stateNode,d=Fd(l);pr(l,d,h);break}case 5:var y=o.stateNode;o.flags&32&&(w1(y),o.flags&=-33);var z=Fd(l);pr(l,z,y);break;case 3:case 4:var D=o.stateNode.containerInfo,L=Fd(l);Wd(l,L,D);break;default:throw Error(n(161))}}}catch(X){St(l,l.return,X)}l.flags&=-3}a&4096&&(l.flags&=-4097)}function W0(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var a=l;W0(a),a.tag===5&&a.flags&1024&&W_(a.stateNode),l=l.sibling}}function Vn(l,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)V0(l,a.alternate,a),a=a.sibling}function Aa(l){for(l=l.child;l!==null;){var a=l;switch(a.tag){case 0:case 11:case 14:case 15:Ml(4,a,a.return),Aa(a);break;case 1:pn(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&q0(a,a.return,o),Aa(a);break;case 27:ve&&k1(a.stateNode);case 26:case 5:pn(a,a.return),Aa(a);break;case 22:a.memoizedState===null&&Aa(a);break;case 30:Aa(a);break;default:Aa(a)}l=l.sibling}}function Zn(l,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,h=l,d=a,y=d.flags;switch(d.tag){case 0:case 11:case 15:Zn(h,d,o),ao(4,d);break;case 1:if(Zn(h,d,o),c=d,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(L){St(c,c.return,L)}if(c=d,h=c.updateQueue,h!==null){var z=c.stateNode;try{var D=h.shared.hiddenCallbacks;if(D!==null)for(h.shared.hiddenCallbacks=null,h=0;h<D.length;h++)Rp(D[h],z)}catch(L){St(c,c.return,L)}}o&&y&64&&L0(d),uo(d,d.return);break;case 27:ve&&X0(d);case 26:case 5:Zn(h,d,o),o&&c===null&&y&4&&G0(d),uo(d,d.return);break;case 12:Zn(h,d,o);break;case 31:Zn(h,d,o),o&&y&4&&K0(h,d);break;case 13:Zn(h,d,o),o&&y&4&&J0(h,d);break;case 22:d.memoizedState===null&&Zn(h,d,o),uo(d,d.return);break;case 30:break;default:Zn(h,d,o)}a=a.sibling}}function Pd(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&&Is(o))}function kd(l,a){l=null,a.alternate!==null&&(l=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==l&&(a.refCount++,l!=null&&Is(l))}function un(l,a,o,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)I0(l,a,o,c),a=a.sibling}function I0(l,a,o,c){var h=a.flags;switch(a.tag){case 0:case 11:case 15:un(l,a,o,c),h&2048&&ao(9,a);break;case 1:un(l,a,o,c);break;case 3:un(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&&Is(l)));break;case 12:if(h&2048){un(l,a,o,c),l=a.stateNode;try{var d=a.memoizedProps,y=d.id,z=d.onPostCommit;typeof z=="function"&&z(y,a.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(D){St(a,a.return,D)}}else un(l,a,o,c);break;case 31:un(l,a,o,c);break;case 13:un(l,a,o,c);break;case 23:break;case 22:d=a.stateNode,y=a.alternate,a.memoizedState!==null?d._visibility&2?un(l,a,o,c):so(l,a):d._visibility&2?un(l,a,o,c):(d._visibility|=2,Eu(l,a,o,c,(a.subtreeFlags&10256)!==0||!1)),h&2048&&Pd(y,a);break;case 24:un(l,a,o,c),h&2048&&kd(a.alternate,a);break;default:un(l,a,o,c)}}function Eu(l,a,o,c,h){for(h=h&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var d=l,y=a,z=o,D=c,L=y.flags;switch(y.tag){case 0:case 11:case 15:Eu(d,y,z,D,h),ao(8,y);break;case 23:break;case 22:var X=y.stateNode;y.memoizedState!==null?X._visibility&2?Eu(d,y,z,D,h):so(d,y):(X._visibility|=2,Eu(d,y,z,D,h)),h&&L&2048&&Pd(y.alternate,y);break;case 24:Eu(d,y,z,D,h),h&&L&2048&&kd(y.alternate,y);break;default:Eu(d,y,z,D,h)}a=a.sibling}}function so(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:so(o,c),h&2048&&Pd(c.alternate,c);break;case 24:so(o,c),h&2048&&kd(c.alternate,c);break;default:so(o,c)}a=a.sibling}}function Oa(l,a,o){if(l.subtreeFlags&Yu)for(l=l.child;l!==null;)P0(l,a,o),l=l.sibling}function P0(l,a,o){switch(l.tag){case 26:if(Oa(l,a,o),l.flags&Yu)if(l.memoizedState!==null)iA(o,on,l.memoizedState,l.memoizedProps);else{var c=l.stateNode,h=l.type;l=l.memoizedProps,((a&335544128)===a||pm(h,l))&&B1(o,c,h,l)}break;case 5:Oa(l,a,o),l.flags&Yu&&(c=l.stateNode,h=l.type,l=l.memoizedProps,((a&335544128)===a||pm(h,l))&&B1(o,c,h,l));break;case 3:case 4:sn?(c=on,on=Em(l.stateNode.containerInfo),Oa(l,a,o),on=c):Oa(l,a,o);break;case 22:l.memoizedState===null&&(c=l.alternate,c!==null&&c.memoizedState!==null?(c=Yu,Yu=16777216,Oa(l,a,o),Yu=c):Oa(l,a,o));break;default:Oa(l,a,o)}}function k0(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 oo(l){var a=l.deletions;if(l.flags&16){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];_e=c,t1(c,l)}k0(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)$0(l),l=l.sibling}function $0(l){switch(l.tag){case 0:case 11:case 15:oo(l),l.flags&2048&&Ml(9,l,l.return);break;case 3:oo(l);break;case 12:oo(l);break;case 22:var a=l.stateNode;l.memoizedState!==null&&a._visibility&2&&(l.return===null||l.return.tag!==13)?(a._visibility&=-3,br(l)):oo(l);break;default:oo(l)}}function br(l){var a=l.deletions;if(l.flags&16){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];_e=c,t1(c,l)}k0(l)}for(l=l.child;l!==null;){switch(a=l,a.tag){case 0:case 11:case 15:Ml(8,a,a.return),br(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,br(a));break;default:br(a)}l=l.sibling}}function t1(l,a){for(;_e!==null;){var o=_e;switch(o.tag){case 0:case 11:case 15:Ml(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:Is(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,_e=c;else t:for(o=l;_e!==null;){c=_e;var h=c.sibling,d=c.return;if(Z0(c),c===o){_e=null;break t}if(h!==null){h.return=d,_e=h;break t}_e=d}}}function $d(l){var a=G_(l);if(a!=null){if(typeof a.memoizedProps["data-testname"]!="string")throw Error(n(364));return a}if(l=k_(l),l===null)throw Error(n(362));return l.stateNode.current}function tm(l,a){var o=l.tag;switch(a.$$typeof){case Yr:if(l.type===a.value)return!0;break;case Qr:t:{for(a=a.value,l=[l,0],o=0;o<l.length;){var c=l[o++],h=c.tag,d=l[o++],y=a[d];if(h!==5&&h!==26&&h!==27||!ho(c)){for(;y!=null&&tm(c,y);)d++,y=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 Xr:if((o===5||o===26||o===27)&&e3(l.stateNode,a.value))return!0;break;case Zr:if((o===5||o===6||o===26||o===27)&&(l=t3(l),l!==null&&0<=l.indexOf(a.value)))return!0;break;case Vr: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 em(l){switch(l.$$typeof){case Yr:return"<"+(g(l.value)||"Unknown")+">";case Qr:return":has("+(em(l)||"")+")";case Xr:return'[role="'+l.value+'"]';case Zr:return'"'+l.value+'"';case Vr:return'[data-testname="'+l.value+'"]';default:throw Error(n(365))}}function e1(l,a){var o=[];l=[l,0];for(var c=0;c<l.length;){var h=l[c++],d=h.tag,y=l[c++],z=a[y];if(d!==5&&d!==26&&d!==27||!ho(h)){for(;z!=null&&tm(h,z);)y++,z=a[y];if(y===a.length)o.push(h);else for(h=h.child;h!==null;)l.push(h,y),h=h.sibling}}return o}function im(l,a){if(!fo)throw Error(n(363));l=$d(l),l=e1(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)ho(c)||a.push(c.stateNode);else for(c=c.child;c!==null;)l.push(c),c=c.sibling}return a}function mi(){return ot&2&&dt!==0?dt&-dt:W.T!==null?fd():Q_()}function i1(){if(Ei===0)if(!(dt&536870912)||gt){var l=Mr;Mr<<=1,!(Mr&3932160)&&(Mr=262144),Ei=l}else Ei=536870912;return l=Si.current,l!==null&&(l.flags|=32),Ei}function ti(l,a,o){(l===Nt&&(_t===2||_t===9)||l.cancelPendingCommit!==null)&&(xu(l,0),Cl(l,dt,Ei,!1)),H(l,o),(!(ot&2)||l!==Nt)&&(l===Nt&&(!(ot&2)&&(ja|=o),Pt===4&&Cl(l,dt,Ei,!1)),yn(l))}function n1(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?S_(l,a):lm(l,a,!0),d=c;do{if(h===0){Qu&&!c&&Cl(l,a,0,!1);break}else{if(o=l.current.alternate,d&&!y_(o)){h=lm(l,a,!1),d=!1;continue}if(h===2){if(d=a,l.errorRecoveryDisabledLanes&d)var y=0;else y=l.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){a=y;t:{var z=l;h=xo;var D=Xe&&z.current.memoizedState.isDehydrated;if(D&&(xu(z,y).flags|=256),y=lm(z,y,!1),y!==2){if(qm&&!D){z.errorRecoveryDisabledLanes|=d,ja|=d,h=4;break t}d=ni,ni=h,d!==null&&(ni===null?ni=d:ni.push.apply(ni,d))}h=y}if(d=!1,h!==2)continue}}if(h===1){xu(l,0),Cl(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:Cl(c,a,Ei,!wl);break t;case 2:ni=null;break;case 3:case 5:break;default:throw Error(n(329))}if((a&62914560)===a&&(h=Kr+300-ei(),10<h)){if(Cl(c,a,Ei,!wl),j(c,0,!0)!==0)break t;$n=a,c.timeoutHandle=L_(l1.bind(null,c,o,ni,Jr,Ym,a,Ei,ja,Xu,wl,d,"Throttled",-0,0),h);break t}l1(c,o,ni,Jr,Ym,a,Ei,ja,Xu,wl,d,null,-0,0)}}break}while(!0);yn(l)}function l1(l,a,o,c,h,d,y,z,D,L,X,Y,K,it){if(l.timeoutHandle=Ca,Y=a.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y=J_(),P0(a,d,Y);var Ue=(d&62914560)===d?Kr-ei():(d&4194048)===d?cS-ei():0;if(Ue=F_(Y,Ue),Ue!==null){$n=d,l.cancelPendingCommit=Ue(d1.bind(null,l,a,d,o,c,h,y,z,D,X,Y,null,K,it)),Cl(l,d,y,!L);return}}d1(l,a,d,o,c,h,y,z,D)}function y_(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(!pi(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 Cl(l,a,o,c){a&=~Gm,a&=~ja,l.suspendedLanes|=a,l.pingedLanes&=~a,c&&(l.warmLanes|=a),c=l.expirationTimes;for(var h=a;0<h;){var d=31-vi(h),y=1<<d;c[d]=-1,h&=~y}o!==0&&q(l,o,a)}function a1(){return ot&6?!0:(Su(0,!1),!1)}function nm(){if(ct!==null){if(_t===0)var l=ct.return;else l=ct,Wn=Na=null,zd(l),wu=null,po=0,l=ct;for(;l!==null;)j0(l.alternate,l),l=l.return;ct=null}}function xu(l,a){var o=l.timeoutHandle;o!==Ca&&(l.timeoutHandle=Ca,q_(o)),o=l.cancelPendingCommit,o!==null&&(l.cancelPendingCommit=null,o()),$n=0,nm(),Nt=l,ct=o=Kn(l.current,null),dt=a,_t=0,bi=null,wl=!1,Qu=T(l,a),qm=!1,Xu=Ei=Gm=ja=jl=Pt=0,ni=xo=null,Ym=!1,a&8&&(a|=a&32);var c=l.entangledLanes;if(c!==0)for(l=l.entanglements,c&=a;0<c;){var h=31-vi(c),d=1<<h;a|=l[h],c&=~d}return kn=a,ir(),o}function u1(l,a){lt=null,W.H=bo,a===Bu||a===wr?(a=Ap(),_t=3):a===Nm?(a=Ap(),_t=4):_t=a===wm?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,bi=a,ct===null&&(Pt=1,hr(l,ge(a,l.current)))}function s1(){var l=Si.current;return l===null?!0:(dt&4194048)===dt?Yi===null:(dt&62914560)===dt||dt&536870912?l===Yi:!1}function o1(){var l=W.H;return W.H=bo,l===null?bo:l}function c1(){var l=W.A;return W.A=yA,l}function Er(){Pt=4,wl||(dt&4194048)!==dt&&Si.current!==null||(Qu=!0),!(jl&134217727)&&!(ja&134217727)||Nt===null||Cl(Nt,dt,Ei,!1)}function lm(l,a,o){var c=ot;ot|=2;var h=o1(),d=c1();(Nt!==l||dt!==a)&&(Jr=null,xu(l,a)),a=!1;var y=Pt;t:do try{if(_t!==0&&ct!==null){var z=ct,D=bi;switch(_t){case 8:nm(),y=6;break t;case 3:case 2:case 9:case 6:Si.current===null&&(a=!0);var L=_t;if(_t=0,bi=null,Tu(l,z,D,L),o&&Qu){y=0;break t}break;default:L=_t,_t=0,bi=null,Tu(l,z,D,L)}}p_(),y=Pt;break}catch(X){u1(l,X)}while(!0);return a&&l.shellSuspendCounter++,Wn=Na=null,ot=c,W.H=h,W.A=d,ct===null&&(Nt=null,dt=0,ir()),y}function p_(){for(;ct!==null;)r1(ct)}function S_(l,a){var o=ot;ot|=2;var c=o1(),h=c1();Nt!==l||dt!==a?(Jr=null,To=ei()+500,xu(l,a)):Qu=T(l,a);t:do try{if(_t!==0&&ct!==null){a=ct;var d=bi;e:switch(_t){case 1:_t=0,bi=null,Tu(l,a,d,1);break;case 2:case 9:if(zp(d)){_t=0,bi=null,f1(a);break}a=function(){_t!==2&&_t!==9||Nt!==l||(_t=7),yn(l)},d.then(a,a);break t;case 3:_t=7;break t;case 4:_t=5;break t;case 7:zp(d)?(_t=0,bi=null,f1(a)):(_t=0,bi=null,Tu(l,a,d,7));break;case 5:var y=null;switch(ct.tag){case 26:y=ct.memoizedState;case 5:case 27:var z=ct,D=z.type,L=z.pendingProps;if(y?I1(y):U1(z.stateNode,D,L)){_t=0,bi=null;var X=z.sibling;if(X!==null)ct=X;else{var Y=z.return;Y!==null?(ct=Y,xr(Y)):ct=null}break e}}_t=0,bi=null,Tu(l,a,d,5);break;case 6:_t=0,bi=null,Tu(l,a,d,6);break;case 8:nm(),Pt=6;break t;default:throw Error(n(462))}}b_();break}catch(K){u1(l,K)}while(!0);return Wn=Na=null,W.H=c,W.A=h,ot=o,ct!==null?0:(Nt=null,dt=0,ir(),Pt)}function b_(){for(;ct!==null&&!uA();)r1(ct)}function r1(l){var a=D0(l.alternate,l,kn);l.memoizedProps=l.pendingProps,a===null?xr(l):ct=a}function f1(l){var a=l,o=a.alternate;switch(a.tag){case 15:case 0:a=A0(o,a,a.pendingProps,a.type,void 0,dt);break;case 11:a=A0(o,a,a.pendingProps,a.type.render,a.ref,dt);break;case 5:zd(a);default:j0(o,a),a=ct=E1(a,kn),a=D0(o,a,kn)}l.memoizedProps=l.pendingProps,a===null?xr(l):ct=a}function Tu(l,a,o,c){Wn=Na=null,zd(a),wu=null,po=0;var h=a.return;try{if(r_(l,h,a,o,dt)){Pt=1,hr(l,ge(o,l.current)),ct=null;return}}catch(d){if(h!==null)throw ct=h,d;Pt=1,hr(l,ge(o,l.current)),ct=null;return}a.flags&32768?(gt||c===1?l=!0:Qu||dt&536870912?l=!1:(wl=l=!0,(c===2||c===9||c===3||c===6)&&(c=Si.current,c!==null&&c.tag===13&&(c.flags|=16384))),h1(a,l)):xr(a)}function xr(l){var a=l;do{if(a.flags&32768){h1(a,wl);return}l=a.return;var o=d_(a.alternate,a,kn);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 h1(l,a){do{var o=m_(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 d1(l,a,o,c,h,d,y,z,D){l.cancelPendingCommit=null;do co();while(ye!==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|=Dm,U(l,o,d,y,z,D),l===Nt&&(ct=Nt=null,dt=0),Vu=a,ql=l,$n=o,Qm=d,Xm=h,rS=c,a.subtreeFlags&10256||a.flags&10256?(l.callbackNode=null,l.callbackPriority=0,z_(zm,function(){return p1(),null})):(l.callbackNode=null,l.callbackPriority=0),c=(a.flags&13878)!==0,a.subtreeFlags&13878||c){c=W.T,W.T=null,h=Fn(),ze(2),y=ot,ot|=4;try{g_(l,a,o)}finally{ot=y,ze(h),W.T=c}}ye=1,m1(),g1(),v1()}}function m1(){if(ye===1){ye=0;var l=ql,a=Vu,o=(a.flags&13878)!==0;if(a.subtreeFlags&13878||o){o=W.T,W.T=null;var c=Fn();ze(2);var h=ot;ot|=4;try{F0(a,l),w_(l.containerInfo)}finally{ot=h,ze(c),W.T=o}}l.current=a,ye=2}}function g1(){if(ye===2){ye=0;var l=ql,a=Vu,o=(a.flags&8772)!==0;if(a.subtreeFlags&8772||o){o=W.T,W.T=null;var c=Fn();ze(2);var h=ot;ot|=4;try{V0(l,a.alternate,a)}finally{ot=h,ze(c),W.T=o}}ye=3}}function v1(){if(ye===4||ye===3){ye=0,sA();var l=ql,a=Vu,o=$n,c=rS;a.subtreeFlags&10256||a.flags&10256?ye=5:(ye=0,Vu=ql=null,y1(l,l.pendingLanes));var h=l.pendingLanes;if(h===0&&(Ll=null),P(o),a=a.stateNode,yi&&typeof yi.onCommitFiberRoot=="function")try{yi.onCommitFiberRoot(mo,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=W.T,h=Fn(),ze(2),W.T=null;try{for(var d=l.onRecoverableError,y=0;y<c.length;y++){var z=c[y];d(z.value,{componentStack:z.stack})}}finally{W.T=a,ze(h)}}$n&3&&co(),yn(l),h=l.pendingLanes,o&261930&&h&42?l===Vm?zo++:(zo=0,Vm=l):zo=0,Xe&&Z3(),Su(0,!1)}}function y1(l,a){(l.pooledCacheLanes&=a)===0&&(a=l.pooledCache,a!=null&&(l.pooledCache=null,Is(a)))}function co(){return m1(),g1(),v1(),p1()}function p1(){if(ye!==5)return!1;var l=ql,a=Qm;Qm=0;var o=P($n),c=32>o?32:o;o=W.T;var h=Fn();try{ze(c),W.T=null,c=Xm,Xm=null;var d=ql,y=$n;if(ye=0,Vu=ql=null,$n=0,ot&6)throw Error(n(331));var z=ot;if(ot|=4,$0(d.current),I0(d,d.current,y,c),ot=z,Su(0,!1),yi&&typeof yi.onPostCommitFiberRoot=="function")try{yi.onPostCommitFiberRoot(mo,d)}catch{}return!0}finally{ze(h),W.T=o,y1(l,a)}}function S1(l,a,o){a=ge(o,a),a=wd(l.stateNode,a,2),l=_l(l,a,2),l!==null&&(H(l,2),yn(l))}function St(l,a,o){if(l.tag===3)S1(l,l,o);else for(;a!==null;){if(a.tag===3){S1(a,l,o);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Ll===null||!Ll.has(c))){l=ge(o,l),o=p0(2),c=_l(a,o,2),c!==null&&(S0(o,c,a,l),H(c,2),yn(c));break}}a=a.return}}function am(l,a,o){var c=l.pingCache;if(c===null){c=l.pingCache=new pA;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)||(qm=!0,h.add(o),l=E_.bind(null,l,a,o),a.then(l,l))}function E_(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>ei()-Kr?!(ot&2)&&xu(l,0):Gm|=o,Xu===dt&&(Xu=0)),yn(l)}function b1(l,a){a===0&&(a=_()),l=za(l,a),l!==null&&(H(l,a),yn(l))}function x_(l){var a=l.memoizedState,o=0;a!==null&&(o=a.retryLane),b1(l,o)}function T_(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),b1(l,o)}function z_(l,a){return Rr(l,a)}function __(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 um(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Kn(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 E1(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 Tr(l,a,o,c,h,d){var y=0;if(c=l,typeof l=="function")um(l)&&(y=1);else if(typeof l=="string")y=sn&&ve?V1(l,o,De.current)?26:$1(l)?27:5:sn?V1(l,o,De.current)?26:5:ve&&$1(l)?27:5;else t:switch(l){case vm:return l=e(31,o,a,h),l.elementType=vm,l.lanes=d,l;case _u:return Ma(o.children,h,d,a);case M1:y=8,h|=24;break;case fm:return l=e(12,o,a,h|2),l.elementType=fm,l.lanes=d,l;case dm:return l=e(13,o,a,h),l.elementType=dm,l.lanes=d,l;case mm:return l=e(19,o,a,h),l.elementType=mm,l.lanes=d,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Rl:y=10;break t;case C1:y=9;break t;case hm:y=11;break t;case gm:y=14;break t;case Nl:y=16,c=null;break t}y=29,o=Error(n(130,l===null?"null":typeof l,"")),c=null}return a=e(y,o,a,h),a.elementType=l,a.type=c,a.lanes=d,a}function Ma(l,a,o,c){return l=e(7,l,c,a),l.lanes=o,l}function sm(l,a,o){return l=e(6,l,null,a),l.lanes=o,l}function x1(l){var a=e(18,null,null,0);return a.stateNode=l,a}function om(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 A_(l,a,o,c,h,d,y,z,D){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ca,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=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function T1(l,a,o,c,h,d,y,z,D,L,X,Y){return l=new A_(l,a,o,y,D,L,X,Y,z),a=1,d===!0&&(a|=24),d=e(3,null,null,a),l.current=d,d.stateNode=l,a=rd(),a.refCount++,l.pooledCache=a,a.refCount++,d.memoizedState={element:c,isDehydrated:o,cache:a},md(d),l}function z1(l){return l?(l=Cu,l):Cu}function _1(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:ro(l.stateNode)}function A1(l,a,o,c,h,d){h=z1(h),c.context===null?c.context=h:c.pendingContext=h,c=zl(a),c.payload={element:o},d=d===void 0?null:d,d!==null&&(c.callback=d),o=_l(l,c,a),o!==null&&(ti(o,l,a),ks(o,l,a))}function O1(l,a){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var o=l.retryLane;l.retryLane=o!==0&&o<a?o:a}}function cm(l,a){O1(l,a),(l=l.alternate)&&O1(l,a)}var st={},O_=yt(),gi=zg(),rm=Object.assign,M_=Symbol.for("react.element"),zr=Symbol.for("react.transitional.element"),zu=Symbol.for("react.portal"),_u=Symbol.for("react.fragment"),M1=Symbol.for("react.strict_mode"),fm=Symbol.for("react.profiler"),C1=Symbol.for("react.consumer"),Rl=Symbol.for("react.context"),hm=Symbol.for("react.forward_ref"),dm=Symbol.for("react.suspense"),mm=Symbol.for("react.suspense_list"),gm=Symbol.for("react.memo"),Nl=Symbol.for("react.lazy");Symbol.for("react.scope");var vm=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var C_=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var R1=Symbol.iterator,R_=Symbol.for("react.client.reference"),_r=Array.isArray,W=O_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N_=t.rendererVersion,D_=t.rendererPackageName,N1=t.extraDevToolsConfig,ro=t.getPublicInstance,H_=t.getRootHostContext,U_=t.getChildHostContext,B_=t.prepareForCommit,w_=t.resetAfterCommit,j_=t.createInstance;t.cloneMutableInstance;var ym=t.appendInitialChild,D1=t.finalizeInitialChildren,Ar=t.shouldSetTextContent,H1=t.createTextInstance;t.cloneMutableTextInstance;var L_=t.scheduleTimeout,q_=t.cancelTimeout,Ca=t.noTimeout,Jn=t.isPrimaryRenderer;t.warnsIfNotActing;var Qe=t.supportsMutation,Sn=t.supportsPersistence,Xe=t.supportsHydration,G_=t.getInstanceFromNode;t.beforeActiveInstanceBlur;var Y_=t.preparePortalMount;t.prepareScopeUpdate,t.getInstanceFromScope;var ze=t.setCurrentUpdatePriority,Fn=t.getCurrentUpdatePriority,Q_=t.resolveUpdatePriority;t.trackSchedulerEvent,t.resolveEventType,t.resolveEventTimeStamp;var X_=t.shouldAttemptEagerTransition,V_=t.detachDeletedInstance;t.requestPostPaintCallback;var Z_=t.maySuspendCommit,K_=t.maySuspendCommitOnUpdate,pm=t.maySuspendCommitInSyncRender,U1=t.preloadInstance,J_=t.startSuspendingCommit,B1=t.suspendInstance;t.suspendOnActiveViewTransition;var F_=t.waitForCommitToBeReady;t.getSuspendedCommitReason;var Au=t.NotPendingTransition,Ra=t.HostTransitionContext,W_=t.resetFormInstance;t.bindToConsole;var I_=t.supportsMicrotasks,P_=t.scheduleMicrotask,fo=t.supportsTestSelectors,k_=t.findFiberRoot,$_=t.getBoundingRect,t3=t.getTextContent,ho=t.isHiddenSubtree,e3=t.matchAccessibilityRole,i3=t.setFocusIfFocusable,n3=t.setupIntersectionObserver,l3=t.appendChild,a3=t.appendChildToContainer,u3=t.commitTextUpdate,s3=t.commitMount,o3=t.commitUpdate,c3=t.insertBefore,r3=t.insertInContainerBefore,f3=t.removeChild,h3=t.removeChildFromContainer,w1=t.resetTextContent,d3=t.hideInstance,m3=t.hideTextInstance,g3=t.unhideInstance,v3=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 y3=t.clearContainer;t.createFragmentInstance,t.updateFragmentInstanceFiber,t.commitNewChildToFragmentInstance,t.deleteChildFromFragmentInstance;var p3=t.cloneInstance,j1=t.createContainerChildSet,L1=t.appendChildToContainerChildSet,S3=t.finalizeContainerChildren,q1=t.replaceContainerChildren,G1=t.cloneHiddenInstance,Y1=t.cloneHiddenTextInstance,Sm=t.isSuspenseInstancePending,bm=t.isSuspenseInstanceFallback,b3=t.getSuspenseInstanceFallbackErrorDetails,E3=t.registerSuspenseInstanceRetry,x3=t.canHydrateFormStateMarker,T3=t.isFormStateMarkerMatching,Q1=t.getNextHydratableSibling,z3=t.getNextHydratableSiblingAfterSingleton,_3=t.getFirstHydratableChild,A3=t.getFirstHydratableChildWithinContainer,O3=t.getFirstHydratableChildWithinActivityInstance,M3=t.getFirstHydratableChildWithinSuspenseInstance,C3=t.getFirstHydratableChildWithinSingleton,R3=t.canHydrateInstance,N3=t.canHydrateTextInstance,D3=t.canHydrateActivityInstance,H3=t.canHydrateSuspenseInstance,U3=t.hydrateInstance,B3=t.hydrateTextInstance,w3=t.hydrateActivityInstance,j3=t.hydrateSuspenseInstance,L3=t.getNextHydratableInstanceAfterActivityInstance,q3=t.getNextHydratableInstanceAfterSuspenseInstance,G3=t.commitHydratedInstance,Y3=t.commitHydratedContainer,Q3=t.commitHydratedActivityInstance,X3=t.commitHydratedSuspenseInstance,V3=t.finalizeHydratedChildren,Z3=t.flushHydrationEvents;t.clearActivityBoundary;var K3=t.clearSuspenseBoundary;t.clearActivityBoundaryFromContainer;var J3=t.clearSuspenseBoundaryFromContainer,F3=t.hideDehydratedBoundary,W3=t.unhideDehydratedBoundary,X1=t.shouldDeleteUnhydratedTailInstances;t.diffHydratedPropsForDevWarnings,t.diffHydratedTextForDevWarnings,t.describeHydratableInstanceForDevWarnings;var I3=t.validateHydratableInstance,P3=t.validateHydratableTextInstance,sn=t.supportsResources,V1=t.isHostHoistableType,Em=t.getHoistableRoot,Z1=t.getResource,K1=t.acquireResource,J1=t.releaseResource,k3=t.hydrateHoistable,F1=t.mountHoistable,W1=t.unmountHoistable,$3=t.createHoistableInstance,tA=t.prepareToCommitHoistables,eA=t.mayResourceSuspendCommit,I1=t.preloadResource,iA=t.suspendResource,ve=t.supportsSingletons,P1=t.resolveSingletonInstance,nA=t.acquireSingletonInstance,k1=t.releaseSingletonInstance,$1=t.isHostSingletonType,Ou=t.isSingletonScope,xm=[],Mu=-1,Cu={},vi=Math.clz32?Math.clz32:A,lA=Math.log,aA=Math.LN2,Or=256,Mr=262144,Cr=4194304,Rr=gi.unstable_scheduleCallback,Tm=gi.unstable_cancelCallback,uA=gi.unstable_shouldYield,sA=gi.unstable_requestPaint,ei=gi.unstable_now,tS=gi.unstable_ImmediatePriority,oA=gi.unstable_UserBlockingPriority,zm=gi.unstable_NormalPriority,cA=gi.unstable_IdlePriority,rA=gi.log,fA=gi.unstable_setDisableYieldValue,mo=null,yi=null,pi=typeof Object.is=="function"?Object.is:Ln,eS=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)},hA=Object.prototype.hasOwnProperty,_m,iS,Am=!1,nS=new WeakMap,Ru=[],Nu=0,Nr=null,go=0,ji=[],Li=0,Dl=null,bn=1,En="",De=S(null),vo=S(null),Hl=S(null),Dr=S(null),He=null,Xt=null,gt=!1,Ul=null,qi=!1,Om=Error(n(519)),Hr=S(null),Na=null,Wn=null,dA=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()})}},mA=gi.unstable_scheduleCallback,gA=gi.unstable_NormalPriority,Vt={$$typeof:Rl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},Ur=null,Du=null,Mm=!1,Br=!1,Cm=!1,Da=0,yo=null,Rm=0,Hu=0,Uu=null,lS=W.S;W.S=function(l,a){cS=ei(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&i_(l,a),lS!==null&&lS(l,a)};var Ha=S(null),Bu=Error(n(460)),Nm=Error(n(474)),wr=Error(n(542)),jr={then:function(){}},Ua=null,wu=null,po=0,Ba=Mp(!0),aS=Mp(!1),Gi=[],ju=0,Dm=0,Bl=!1,Hm=!1,Lu=S(null),Lr=S(0),Si=S(null),Yi=null,ne=S(0),In=0,lt=null,Mt=null,ue=null,qr=!1,qu=!1,wa=!1,Gr=0,So=0,Gu=null,vA=0,bo={readContext:Re,use:sr,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useLayoutEffect:It,useInsertionEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useSyncExternalStore:It,useId:It,useHostTransitionStatus:It,useFormState:It,useActionState:It,useOptimistic:It,useMemoCache:It,useCacheRefresh:It};bo.useEffectEvent=It;var uS={readContext:Re,use:sr,useCallback:function(l,a){return Ke().memoizedState=[l,a===void 0?null:a],l},useContext:Re,useEffect:$p,useImperativeHandle:function(l,a,o){o=o!=null?o.concat([l]):null,cr(4194308,4,n0.bind(null,a,l),o)},useLayoutEffect:function(l,a){return cr(4194308,4,l,a)},useInsertionEffect:function(l,a){cr(4,2,l,a)},useMemo:function(l,a){var o=Ke();a=a===void 0?null:a;var c=l();if(wa){ut(!0);try{l()}finally{ut(!1)}}return o.memoizedState=[c,a],c},useReducer:function(l,a,o){var c=Ke();if(o!==void 0){var h=o(a);if(wa){ut(!0);try{o(a)}finally{ut(!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=c_.bind(null,lt,l),[c.memoizedState,l]},useRef:function(l){var a=Ke();return l={current:l},a.memoizedState=l},useState:function(l){l=Md(l);var a=l.queue,o=h0.bind(null,lt,a);return a.dispatch=o,[l.memoizedState,o]},useDebugValue:Nd,useDeferredValue:function(l,a){var o=Ke();return Dd(o,l,a)},useTransition:function(){var l=Md(!1);return l=o0.bind(null,lt,l.queue,!0,!1),Ke().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,a,o){var c=lt,h=Ke();if(gt){if(o===void 0)throw Error(n(407));o=o()}else{if(o=a(),Nt===null)throw Error(n(349));dt&127||jp(c,a,o)}h.memoizedState=o;var d={value:o,getSnapshot:a};return h.queue=d,$p(qp.bind(null,c,d,l),[l]),c.flags|=2048,bu(9,{destroy:void 0},Lp.bind(null,c,d,o,a),null),o},useId:function(){var l=Ke(),a=Nt.identifierPrefix;if(gt){var o=En,c=bn;o=(c&~(1<<32-vi(c)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Gr++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=vA++,a="_"+a+"r_"+o.toString(32)+"_";return l.memoizedState=a},useHostTransitionStatus:Hd,useFormState:Fp,useActionState:Fp,useOptimistic:function(l){var a=Ke();a.memoizedState=a.baseState=l;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Ud.bind(null,lt,!0,o),o.dispatch=a,[l,a]},useMemoCache:_d,useCacheRefresh:function(){return Ke().memoizedState=o_.bind(null,lt)},useEffectEvent:function(l){var a=Ke(),o={impl:l};return a.memoizedState=o,function(){if(ot&2)throw Error(n(440));return o.impl.apply(void 0,arguments)}}},Um={readContext:Re,use:sr,useCallback:a0,useContext:Re,useEffect:Rd,useImperativeHandle:l0,useInsertionEffect:e0,useLayoutEffect:i0,useMemo:u0,useReducer:or,useRef:kp,useState:function(){return or(Qn)},useDebugValue:Nd,useDeferredValue:function(l,a){var o=ie();return s0(o,Mt.memoizedState,l,a)},useTransition:function(){var l=or(Qn)[0],a=ie().memoizedState;return[typeof l=="boolean"?l:eo(l),a]},useSyncExternalStore:wp,useId:r0,useHostTransitionStatus:Hd,useFormState:Wp,useActionState:Wp,useOptimistic:function(l,a){var o=ie();return Qp(o,Mt,l,a)},useMemoCache:_d,useCacheRefresh:f0};Um.useEffectEvent=t0;var sS={readContext:Re,use:sr,useCallback:a0,useContext:Re,useEffect:Rd,useImperativeHandle:l0,useInsertionEffect:e0,useLayoutEffect:i0,useMemo:u0,useReducer:Od,useRef:kp,useState:function(){return Od(Qn)},useDebugValue:Nd,useDeferredValue:function(l,a){var o=ie();return Mt===null?Dd(o,l,a):s0(o,Mt.memoizedState,l,a)},useTransition:function(){var l=Od(Qn)[0],a=ie().memoizedState;return[typeof l=="boolean"?l:eo(l),a]},useSyncExternalStore:wp,useId:r0,useHostTransitionStatus:Hd,useFormState:Pp,useActionState:Pp,useOptimistic:function(l,a){var o=ie();return Mt!==null?Qp(o,Mt,l,a):(o.baseState=l,[l,o.queue.dispatch])},useMemoCache:_d,useCacheRefresh:f0};sS.useEffectEvent=t0;var Bm={enqueueSetState:function(l,a,o){l=l._reactInternals;var c=mi(),h=zl(c);h.payload=a,o!=null&&(h.callback=o),a=_l(l,h,c),a!==null&&(ti(a,l,c),ks(a,l,c))},enqueueReplaceState:function(l,a,o){l=l._reactInternals;var c=mi(),h=zl(c);h.tag=1,h.payload=a,o!=null&&(h.callback=o),a=_l(l,h,c),a!==null&&(ti(a,l,c),ks(a,l,c))},enqueueForceUpdate:function(l,a){l=l._reactInternals;var o=mi(),c=zl(o);c.tag=2,a!=null&&(c.callback=a),a=_l(l,c,o),a!==null&&(ti(a,l,o),ks(a,l,o))}},wm=Error(n(461)),se=!1,jm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Pn=!1,oe=!1,Lm=!1,oS=typeof WeakSet=="function"?WeakSet:Set,_e=null,ce=null,ii=!1,on=null,Yu=8192,yA={getCacheForType:function(l){var a=Re(Vt),o=a.data.get(l);return o===void 0&&(o=l(),a.data.set(l,o)),o},cacheSignal:function(){return Re(Vt).controller.signal}},Yr=0,Qr=1,Xr=2,Vr=3,Zr=4;if(typeof Symbol=="function"&&Symbol.for){var Eo=Symbol.for;Yr=Eo("selector.component"),Qr=Eo("selector.has_pseudo_class"),Xr=Eo("selector.role"),Vr=Eo("selector.test_id"),Zr=Eo("selector.text")}var pA=typeof WeakMap=="function"?WeakMap:Map,ot=0,Nt=null,ct=null,dt=0,_t=0,bi=null,wl=!1,Qu=!1,qm=!1,kn=0,Pt=0,jl=0,ja=0,Gm=0,Ei=0,Xu=0,xo=null,ni=null,Ym=!1,Kr=0,cS=0,To=1/0,Jr=null,Ll=null,ye=0,ql=null,Vu=null,$n=0,Qm=0,Xm=null,rS=null,zo=0,Vm=null;return st.attemptContinuousHydration=function(l){if(l.tag===13||l.tag===31){var a=za(l,67108864);a!==null&&ti(a,l,67108864),cm(l,67108864)}},st.attemptHydrationAtCurrentPriority=function(l){if(l.tag===13||l.tag===31){var a=mi();a=w(a);var o=za(l,a);o!==null&&ti(o,l,a),cm(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-vi(a);l.entanglements[1]|=o,a&=~o}yn(l),!(ot&6)&&(To=ei()+500,Su(0,!1))}}break;case 31:case 13:a=za(l,2),a!==null&&ti(a,l,2),a1(),cm(l,2)}},st.batchedUpdates=function(l,a){return l(a)},st.createComponentSelector=function(l){return{$$typeof:Yr,value:l}},st.createContainer=function(l,a,o,c,h,d,y,z,D,L){return T1(l,a,!1,null,o,c,d,null,y,z,D,L)},st.createHasPseudoClassSelector=function(l){return{$$typeof:Qr,value:l}},st.createHydrationContainer=function(l,a,o,c,h,d,y,z,D,L,X,Y,K,it){return l=T1(o,c,!0,l,h,d,z,it,D,L,X,Y),l.context=z1(null),o=l.current,c=mi(),c=w(c),h=zl(c),h.callback=a??null,_l(o,h,c),a=c,l.current.lanes=a,H(l,a),yn(l),l},st.createPortal=function(l,a,o){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zu,key:c==null?null:""+c,children:l,containerInfo:a,implementation:o}},st.createRoleSelector=function(l){return{$$typeof:Xr,value:l}},st.createTestNameSelector=function(l){return{$$typeof:Vr,value:l}},st.createTextSelector=function(l){return{$$typeof:Zr,value:l}},st.defaultOnCaughtError=function(l){console.error(l)},st.defaultOnRecoverableError=function(l){eS(l)},st.defaultOnUncaughtError=function(l){eS(l)},st.deferredUpdates=function(l){var a=W.T,o=Fn();try{return ze(32),W.T=null,l()}finally{ze(o),W.T=a}},st.discreteUpdates=function(l,a,o,c,h){var d=W.T,y=Fn();try{return ze(2),W.T=null,l(a,o,c,h)}finally{ze(y),W.T=d,ot===0&&(To=ei()+500)}},st.findAllNodes=im,st.findBoundingRects=function(l,a){if(!fo)throw Error(n(363));a=im(l,a),l=[];for(var o=0;o<a.length;o++)l.push($_(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,y=d+o.height,z=a-1;0<=z;z--)if(a!==z){var D=l[z],L=D.x,X=L+D.width,Y=D.y,K=Y+D.height;if(c>=L&&d>=Y&&h<=X&&y<=K){l.splice(a,1);break}else if(c!==L||o.width!==D.width||K<d||Y>y){if(!(d!==Y||o.height!==D.height||X<c||L>h)){L>c&&(D.width+=L-c,D.x=c),X<h&&(D.width=h-L),l.splice(a,1);break}}else{Y>d&&(D.height+=Y-d,D.y=d),K<y&&(D.height=y-Y),l.splice(a,1);break}}}return l},st.findHostInstance=_1,st.findHostInstanceWithNoPortals=function(l){return l=r(l),l=l!==null?m(l):null,l===null?null:ro(l.stateNode)},st.findHostInstanceWithWarning=function(l){return _1(l)},st.flushPassiveEffects=co,st.flushSyncFromReconciler=function(l){var a=ot;ot|=1;var o=W.T,c=Fn();try{if(ze(2),W.T=null,l)return l()}finally{ze(c),W.T=o,ot=a,!(ot&6)&&Su(0,!1)}},st.flushSyncWork=a1,st.focusWithin=function(l,a){if(!fo)throw Error(n(363));for(l=$d(l),a=e1(l,a),a=Array.from(a),l=0;l<a.length;){var o=a[l++],c=o.tag;if(!ho(o)){if((c===5||c===26||c===27)&&i3(o.stateNode))return!0;for(o=o.child;o!==null;)a.push(o),o=o.sibling}}return!1},st.getFindAllNodesFailureDescription=function(l,a){if(!fo)throw Error(n(363));var o=0,c=[];l=[$d(l),0];for(var h=0;h<l.length;){var d=l[h++],y=d.tag,z=l[h++],D=a[z];if((y!==5&&y!==26&&y!==27||!ho(d))&&(tm(d,D)&&(c.push(em(D)),z++,z>o&&(o=z)),z<a.length))for(d=d.child;d!==null;)l.push(d,z),d=d.sibling}if(o<a.length){for(l=[];o<a.length;o++)l.push(em(a[o]));return`findAllNodes was able to match part of the selector:
|
|
8
9
|
`+(c.join(" > ")+`
|
|
9
10
|
|
|
10
11
|
No matching component was found for:
|
|
11
|
-
`)+
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
`),
|
|
15
|
-
`+s[u].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=u&&0<=h);break}}}finally{Wh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tl(e):""}function c2(e){switch(e.tag){case 5:return tl(e.type);case 16:return tl("Lazy");case 13:return tl("Suspense");case 19:return tl("SuspenseList");case 0:case 2:case 15:return e=Bh(e.type,!1),e;case 11:return e=Bh(e.type.render,!1),e;case 1:return e=Bh(e.type,!0),e;default:return""}}function cf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case To:return"Fragment";case Co:return"Portal";case lf:return"Profiler";case tp:return"StrictMode";case af:return"Suspense";case uf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case W0:return(e.displayName||"Context")+".Consumer";case D0:return(e._context.displayName||"Context")+".Provider";case np:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rp:return t=e.displayName||null,t!==null?t:cf(e.type)||"Memo";case Kr:t=e._payload,e=e._init;try{return cf(e(t))}catch{}}return null}function d2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cf(t);case 8:return t===tp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ci(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function j0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h2(e){var t=j0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(u){r=""+u,l.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function du(e){e._valueTracker||(e._valueTracker=h2(e))}function b0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=j0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function df(e,t){var n=t.checked;return Fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ny(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ci(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function H0(e,t){t=t.checked,t!=null&&ep(e,"checked",t,!1)}function hf(e,t){H0(e,t);var n=ci(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ff(e,t.type,n):t.hasOwnProperty("defaultValue")&&ff(e,t.type,ci(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ff(e,t,n){(t!=="number"||Bu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nl=Array.isArray;function Wo(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ci(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function pf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return Fe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fy(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(W(92));if(nl(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ci(n)}}function U0(e,t){var n=ci(t.value),r=ci(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function My(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function V0(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?V0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hu,Q0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hu=hu||document.createElement("div"),hu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ml(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ol={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},f2=["Webkit","ms","Moz","O"];Object.keys(ol).forEach(function(e){f2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ol[t]=ol[e]})});function G0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ol.hasOwnProperty(e)&&ol[e]?(""+t).trim():t+"px"}function X0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=G0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var p2=Fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gf(e,t){if(t){if(p2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function vf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yf=null;function ip(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wf=null,Bo=null,jo=null;function Ay(e){if(e=Ol(e)){if(typeof wf!="function")throw Error(W(280));var t=e.stateNode;t&&(t=fc(t),wf(e.stateNode,e.type,t))}}function Y0(e){Bo?jo?jo.push(e):jo=[e]:Bo=e}function Z0(){if(Bo){var e=Bo,t=jo;if(jo=Bo=null,Ay(e),t)for(e=0;e<t.length;e++)Ay(t[e])}}function K0(e,t){return e(t)}function $0(){}var jh=!1;function q0(e,t,n){if(jh)return e(t,n);jh=!0;try{return K0(e,t,n)}finally{jh=!1,(Bo!==null||jo!==null)&&($0(),Z0())}}function gl(e,t){var n=e.stateNode;if(n===null)return null;var r=fc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(W(231,t,typeof n));return n}var Sf=!1;if(Pr)try{Po={},Object.defineProperty(Po,"passive",{get:function(){Sf=!0}}),window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch{Sf=!1}var Po;function m2(e,t,n,r,s,l,u,h,f){var g=Array.prototype.slice.call(arguments,3);try{t.apply(n,g)}catch(m){this.onError(m)}}var sl=!1,ju=null,bu=!1,xf=null,g2={onError:function(e){sl=!0,ju=e}};function v2(e,t,n,r,s,l,u,h,f){sl=!1,ju=null,m2.apply(g2,arguments)}function y2(e,t,n,r,s,l,u,h,f){if(v2.apply(this,arguments),sl){if(sl){var g=ju;sl=!1,ju=null}else throw Error(W(198));bu||(bu=!0,xf=g)}}function Yi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function J0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Dy(e){if(Yi(e)!==e)throw Error(W(188))}function w2(e){var t=e.alternate;if(!t){if(t=Yi(e),t===null)throw Error(W(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var l=s.alternate;if(l===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===n)return Dy(s),e;if(l===r)return Dy(s),t;l=l.sibling}throw Error(W(188))}if(n.return!==r.return)n=s,r=l;else{for(var u=!1,h=s.child;h;){if(h===n){u=!0,n=s,r=l;break}if(h===r){u=!0,r=s,n=l;break}h=h.sibling}if(!u){for(h=l.child;h;){if(h===n){u=!0,n=l,r=s;break}if(h===r){u=!0,r=l,n=s;break}h=h.sibling}if(!u)throw Error(W(189))}}if(n.alternate!==r)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?e:t}function e1(e){return e=w2(e),e!==null?t1(e):null}function t1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=t1(e);if(t!==null)return t;e=e.sibling}return null}var n1=qt.unstable_scheduleCallback,Wy=qt.unstable_cancelCallback,S2=qt.unstable_shouldYield,x2=qt.unstable_requestPaint,je=qt.unstable_now,E2=qt.unstable_getCurrentPriorityLevel,op=qt.unstable_ImmediatePriority,r1=qt.unstable_UserBlockingPriority,Hu=qt.unstable_NormalPriority,_2=qt.unstable_LowPriority,i1=qt.unstable_IdlePriority,uc=null,or=null;function P2(e){if(or&&typeof or.onCommitFiberRoot=="function")try{or.onCommitFiberRoot(uc,e,void 0,(e.current.flags&128)===128)}catch{}}var Mn=Math.clz32?Math.clz32:T2,k2=Math.log,C2=Math.LN2;function T2(e){return e>>>=0,e===0?32:31-(k2(e)/C2|0)|0}var fu=64,pu=4194304;function rl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Uu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,l=e.pingedLanes,u=n&268435455;if(u!==0){var h=u&~s;h!==0?r=rl(h):(l&=u,l!==0&&(r=rl(l)))}else u=n&~s,u!==0?r=rl(u):l!==0&&(r=rl(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,l=t&-t,s>=l||s===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mn(t),s=1<<n,r|=e[n],t&=~s;return r}function R2(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function z2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var u=31-Mn(l),h=1<<u,f=s[u];f===-1?(!(h&n)||h&r)&&(s[u]=R2(h,t)):f<=t&&(e.expiredLanes|=h),l&=~h}}function Ef(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function o1(){var e=fu;return fu<<=1,!(fu&4194240)&&(fu=64),e}function bh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ll(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mn(t),e[t]=n}function I2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Mn(n),l=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~l}}function sp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var he=0;function s1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var l1,lp,a1,u1,c1,_f=!1,mu=[],ni=null,ri=null,ii=null,vl=new Map,yl=new Map,qr=[],L2="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 submit".split(" ");function By(e,t){switch(e){case"focusin":case"focusout":ni=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":ii=null;break;case"pointerover":case"pointerout":vl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yl.delete(t.pointerId)}}function Ys(e,t,n,r,s,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[s]},t!==null&&(t=Ol(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function N2(e,t,n,r,s){switch(t){case"focusin":return ni=Ys(ni,e,t,n,r,s),!0;case"dragenter":return ri=Ys(ri,e,t,n,r,s),!0;case"mouseover":return ii=Ys(ii,e,t,n,r,s),!0;case"pointerover":var l=s.pointerId;return vl.set(l,Ys(vl.get(l)||null,e,t,n,r,s)),!0;case"gotpointercapture":return l=s.pointerId,yl.set(l,Ys(yl.get(l)||null,e,t,n,r,s)),!0}return!1}function d1(e){var t=Di(e.target);if(t!==null){var n=Yi(t);if(n!==null){if(t=n.tag,t===13){if(t=J0(n),t!==null){e.blockedOn=t,c1(e.priority,function(){a1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);yf=r,n.target.dispatchEvent(r),yf=null}else return t=Ol(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function jy(e,t,n){zu(e)&&n.delete(t)}function O2(){_f=!1,ni!==null&&zu(ni)&&(ni=null),ri!==null&&zu(ri)&&(ri=null),ii!==null&&zu(ii)&&(ii=null),vl.forEach(jy),yl.forEach(jy)}function Zs(e,t){e.blockedOn===t&&(e.blockedOn=null,_f||(_f=!0,qt.unstable_scheduleCallback(qt.unstable_NormalPriority,O2)))}function wl(e){function t(s){return Zs(s,e)}if(0<mu.length){Zs(mu[0],e);for(var n=1;n<mu.length;n++){var r=mu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ni!==null&&Zs(ni,e),ri!==null&&Zs(ri,e),ii!==null&&Zs(ii,e),vl.forEach(t),yl.forEach(t),n=0;n<qr.length;n++)r=qr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<qr.length&&(n=qr[0],n.blockedOn===null);)d1(n),n.blockedOn===null&&qr.shift()}var bo=Rr.ReactCurrentBatchConfig,Vu=!0;function F2(e,t,n,r){var s=he,l=bo.transition;bo.transition=null;try{he=1,ap(e,t,n,r)}finally{he=s,bo.transition=l}}function M2(e,t,n,r){var s=he,l=bo.transition;bo.transition=null;try{he=4,ap(e,t,n,r)}finally{he=s,bo.transition=l}}function ap(e,t,n,r){if(Vu){var s=Pf(e,t,n,r);if(s===null)Yh(e,t,r,Qu,n),By(e,r);else if(N2(s,e,t,n,r))r.stopPropagation();else if(By(e,r),t&4&&-1<L2.indexOf(e)){for(;s!==null;){var l=Ol(s);if(l!==null&&l1(l),l=Pf(e,t,n,r),l===null&&Yh(e,t,r,Qu,n),l===s)break;s=l}s!==null&&r.stopPropagation()}else Yh(e,t,r,null,n)}}var Qu=null;function Pf(e,t,n,r){if(Qu=null,e=ip(r),e=Di(e),e!==null)if(t=Yi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=J0(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qu=e,null}function h1(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(E2()){case op:return 1;case r1:return 4;case Hu:case _2:return 16;case i1:return 536870912;default:return 16}default:return 16}}var ei=null,up=null,Iu=null;function f1(){if(Iu)return Iu;var e,t=up,n=t.length,r,s="value"in ei?ei.value:ei.textContent,l=s.length;for(e=0;e<n&&t[e]===s[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===s[l-r];r++);return Iu=s.slice(e,1<r?1-r:void 0)}function Lu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gu(){return!0}function by(){return!1}function Jt(e){function t(n,r,s,l,u){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=l,this.target=u,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(n=e[h],this[h]=n?n(l):l[h]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?gu:by,this.isPropagationStopped=by,this}return Fe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gu)},persist:function(){},isPersistent:gu}),t}var $o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cp=Jt($o),Nl=Fe({},$o,{view:0,detail:0}),A2=Jt(Nl),Hh,Uh,Ks,cc=Fe({},Nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ks&&(Ks&&e.type==="mousemove"?(Hh=e.screenX-Ks.screenX,Uh=e.screenY-Ks.screenY):Uh=Hh=0,Ks=e),Hh)},movementY:function(e){return"movementY"in e?e.movementY:Uh}}),Hy=Jt(cc),D2=Fe({},cc,{dataTransfer:0}),W2=Jt(D2),B2=Fe({},Nl,{relatedTarget:0}),Vh=Jt(B2),j2=Fe({},$o,{animationName:0,elapsedTime:0,pseudoElement:0}),b2=Jt(j2),H2=Fe({},$o,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),U2=Jt(H2),V2=Fe({},$o,{data:0}),Uy=Jt(V2),Q2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},G2={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"},X2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Y2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=X2[e])?!!t[e]:!1}function dp(){return Y2}var Z2=Fe({},Nl,{key:function(e){if(e.key){var t=Q2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Lu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?G2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dp,charCode:function(e){return e.type==="keypress"?Lu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),K2=Jt(Z2),$2=Fe({},cc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vy=Jt($2),q2=Fe({},Nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dp}),J2=Jt(q2),e_=Fe({},$o,{propertyName:0,elapsedTime:0,pseudoElement:0}),t_=Jt(e_),n_=Fe({},cc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),r_=Jt(n_),i_=[9,13,27,32],hp=Pr&&"CompositionEvent"in window,ll=null;Pr&&"documentMode"in document&&(ll=document.documentMode);var o_=Pr&&"TextEvent"in window&&!ll,p1=Pr&&(!hp||ll&&8<ll&&11>=ll),Qy=" ",Gy=!1;function m1(e,t){switch(e){case"keyup":return i_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ro=!1;function s_(e,t){switch(e){case"compositionend":return g1(t);case"keypress":return t.which!==32?null:(Gy=!0,Qy);case"textInput":return e=t.data,e===Qy&&Gy?null:e;default:return null}}function l_(e,t){if(Ro)return e==="compositionend"||!hp&&m1(e,t)?(e=f1(),Iu=up=ei=null,Ro=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return p1&&t.locale!=="ko"?null:t.data;default:return null}}var a_={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 Xy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!a_[e.type]:t==="textarea"}function v1(e,t,n,r){Y0(r),t=Gu(t,"onChange"),0<t.length&&(n=new cp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var al=null,Sl=null;function u_(e){R1(e,0)}function dc(e){var t=Lo(e);if(b0(t))return e}function c_(e,t){if(e==="change")return t}var y1=!1;Pr&&(Pr?(yu="oninput"in document,yu||(Qh=document.createElement("div"),Qh.setAttribute("oninput","return;"),yu=typeof Qh.oninput=="function"),vu=yu):vu=!1,y1=vu&&(!document.documentMode||9<document.documentMode));var vu,yu,Qh;function Yy(){al&&(al.detachEvent("onpropertychange",w1),Sl=al=null)}function w1(e){if(e.propertyName==="value"&&dc(Sl)){var t=[];v1(t,Sl,e,ip(e)),q0(u_,t)}}function d_(e,t,n){e==="focusin"?(Yy(),al=t,Sl=n,al.attachEvent("onpropertychange",w1)):e==="focusout"&&Yy()}function h_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dc(Sl)}function f_(e,t){if(e==="click")return dc(t)}function p_(e,t){if(e==="input"||e==="change")return dc(t)}function m_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dn=typeof Object.is=="function"?Object.is:m_;function xl(e,t){if(Dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!sf.call(t,s)||!Dn(e[s],t[s]))return!1}return!0}function Zy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ky(e,t){var n=Zy(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Zy(n)}}function S1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?S1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function x1(){for(var e=window,t=Bu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bu(e.document)}return t}function fp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function g_(e){var t=x1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&S1(n.ownerDocument.documentElement,n)){if(r!==null&&fp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,l=Math.min(r.start,s);r=r.end===void 0?l:Math.min(r.end,s),!e.extend&&l>r&&(s=r,r=l,l=s),s=Ky(n,l);var u=Ky(n,r);s&&u&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var v_=Pr&&"documentMode"in document&&11>=document.documentMode,zo=null,kf=null,ul=null,Cf=!1;function $y(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cf||zo==null||zo!==Bu(r)||(r=zo,"selectionStart"in r&&fp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ul&&xl(ul,r)||(ul=r,r=Gu(kf,"onSelect"),0<r.length&&(t=new cp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=zo)))}function wu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Io={animationend:wu("Animation","AnimationEnd"),animationiteration:wu("Animation","AnimationIteration"),animationstart:wu("Animation","AnimationStart"),transitionend:wu("Transition","TransitionEnd")},Gh={},E1={};Pr&&(E1=document.createElement("div").style,"AnimationEvent"in window||(delete Io.animationend.animation,delete Io.animationiteration.animation,delete Io.animationstart.animation),"TransitionEvent"in window||delete Io.transitionend.transition);function hc(e){if(Gh[e])return Gh[e];if(!Io[e])return e;var t=Io[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in E1)return Gh[e]=t[n];return e}var _1=hc("animationend"),P1=hc("animationiteration"),k1=hc("animationstart"),C1=hc("transitionend"),T1=new Map,qy="abort auxClick 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(" ");function hi(e,t){T1.set(e,t),Xi(t,[e])}for(Su=0;Su<qy.length;Su++)xu=qy[Su],Jy=xu.toLowerCase(),e0=xu[0].toUpperCase()+xu.slice(1),hi(Jy,"on"+e0);var xu,Jy,e0,Su;hi(_1,"onAnimationEnd");hi(P1,"onAnimationIteration");hi(k1,"onAnimationStart");hi("dblclick","onDoubleClick");hi("focusin","onFocus");hi("focusout","onBlur");hi(C1,"onTransitionEnd");Vo("onMouseEnter",["mouseout","mouseover"]);Vo("onMouseLeave",["mouseout","mouseover"]);Vo("onPointerEnter",["pointerout","pointerover"]);Vo("onPointerLeave",["pointerout","pointerover"]);Xi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var il="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(" "),y_=new Set("cancel close invalid load scroll toggle".split(" ").concat(il));function t0(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,y2(r,t,void 0,e),e.currentTarget=null}function R1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var u=r.length-1;0<=u;u--){var h=r[u],f=h.instance,g=h.currentTarget;if(h=h.listener,f!==l&&s.isPropagationStopped())break e;t0(s,h,g),l=f}else for(u=0;u<r.length;u++){if(h=r[u],f=h.instance,g=h.currentTarget,h=h.listener,f!==l&&s.isPropagationStopped())break e;t0(s,h,g),l=f}}}if(bu)throw e=xf,bu=!1,xf=null,e}function xe(e,t){var n=t[Lf];n===void 0&&(n=t[Lf]=new Set);var r=e+"__bubble";n.has(r)||(z1(t,e,2,!1),n.add(r))}function Xh(e,t,n){var r=0;t&&(r|=4),z1(n,e,r,t)}var Eu="_reactListening"+Math.random().toString(36).slice(2);function El(e){if(!e[Eu]){e[Eu]=!0,A0.forEach(function(n){n!=="selectionchange"&&(y_.has(n)||Xh(n,!1,e),Xh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Eu]||(t[Eu]=!0,Xh("selectionchange",!1,t))}}function z1(e,t,n,r){switch(h1(t)){case 1:var s=F2;break;case 4:s=M2;break;default:s=ap}n=s.bind(null,t,n,e),s=void 0,!Sf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Yh(e,t,n,r,s){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var h=r.stateNode.containerInfo;if(h===s||h.nodeType===8&&h.parentNode===s)break;if(u===4)for(u=r.return;u!==null;){var f=u.tag;if((f===3||f===4)&&(f=u.stateNode.containerInfo,f===s||f.nodeType===8&&f.parentNode===s))return;u=u.return}for(;h!==null;){if(u=Di(h),u===null)return;if(f=u.tag,f===5||f===6){r=l=u;continue e}h=h.parentNode}}r=r.return}q0(function(){var g=l,m=ip(n),S=[];e:{var E=T1.get(e);if(E!==void 0){var P=cp,k=e;switch(e){case"keypress":if(Lu(n)===0)break e;case"keydown":case"keyup":P=K2;break;case"focusin":k="focus",P=Vh;break;case"focusout":k="blur",P=Vh;break;case"beforeblur":case"afterblur":P=Vh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=Hy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=W2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=J2;break;case _1:case P1:case k1:P=b2;break;case C1:P=t_;break;case"scroll":P=A2;break;case"wheel":P=r_;break;case"copy":case"cut":case"paste":P=U2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=Vy}var R=(t&4)!==0,A=!R&&e==="scroll",x=R?E!==null?E+"Capture":null:E;R=[];for(var w=g,_;w!==null;){_=w;var L=_.stateNode;if(_.tag===5&&L!==null&&(_=L,x!==null&&(L=gl(w,x),L!=null&&R.push(_l(w,L,_)))),A)break;w=w.return}0<R.length&&(E=new P(E,k,null,n,m),S.push({event:E,listeners:R}))}}if(!(t&7)){e:{if(E=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",E&&n!==yf&&(k=n.relatedTarget||n.fromElement)&&(Di(k)||k[kr]))break e;if((P||E)&&(E=m.window===m?m:(E=m.ownerDocument)?E.defaultView||E.parentWindow:window,P?(k=n.relatedTarget||n.toElement,P=g,k=k?Di(k):null,k!==null&&(A=Yi(k),k!==A||k.tag!==5&&k.tag!==6)&&(k=null)):(P=null,k=g),P!==k)){if(R=Hy,L="onMouseLeave",x="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(R=Vy,L="onPointerLeave",x="onPointerEnter",w="pointer"),A=P==null?E:Lo(P),_=k==null?E:Lo(k),E=new R(L,w+"leave",P,n,m),E.target=A,E.relatedTarget=_,L=null,Di(m)===g&&(R=new R(x,w+"enter",k,n,m),R.target=_,R.relatedTarget=A,L=R),A=L,P&&k)t:{for(R=P,x=k,w=0,_=R;_;_=ko(_))w++;for(_=0,L=x;L;L=ko(L))_++;for(;0<w-_;)R=ko(R),w--;for(;0<_-w;)x=ko(x),_--;for(;w--;){if(R===x||x!==null&&R===x.alternate)break t;R=ko(R),x=ko(x)}R=null}else R=null;P!==null&&n0(S,E,P,R,!1),k!==null&&A!==null&&n0(S,A,k,R,!0)}}e:{if(E=g?Lo(g):window,P=E.nodeName&&E.nodeName.toLowerCase(),P==="select"||P==="input"&&E.type==="file")var O=c_;else if(Xy(E))if(y1)O=p_;else{O=h_;var z=d_}else(P=E.nodeName)&&P.toLowerCase()==="input"&&(E.type==="checkbox"||E.type==="radio")&&(O=f_);if(O&&(O=O(e,g))){v1(S,O,n,m);break e}z&&z(e,E,g),e==="focusout"&&(z=E._wrapperState)&&z.controlled&&E.type==="number"&&ff(E,"number",E.value)}switch(z=g?Lo(g):window,e){case"focusin":(Xy(z)||z.contentEditable==="true")&&(zo=z,kf=g,ul=null);break;case"focusout":ul=kf=zo=null;break;case"mousedown":Cf=!0;break;case"contextmenu":case"mouseup":case"dragend":Cf=!1,$y(S,n,m);break;case"selectionchange":if(v_)break;case"keydown":case"keyup":$y(S,n,m)}var D;if(hp)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Ro?m1(e,n)&&(b="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(b="onCompositionStart");b&&(p1&&n.locale!=="ko"&&(Ro||b!=="onCompositionStart"?b==="onCompositionEnd"&&Ro&&(D=f1()):(ei=m,up="value"in ei?ei.value:ei.textContent,Ro=!0)),z=Gu(g,b),0<z.length&&(b=new Uy(b,e,null,n,m),S.push({event:b,listeners:z}),D?b.data=D:(D=g1(n),D!==null&&(b.data=D)))),(D=o_?s_(e,n):l_(e,n))&&(g=Gu(g,"onBeforeInput"),0<g.length&&(m=new Uy("onBeforeInput","beforeinput",null,n,m),S.push({event:m,listeners:g}),m.data=D))}R1(S,t)})}function _l(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gu(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=gl(e,n),l!=null&&r.unshift(_l(e,l,s)),l=gl(e,t),l!=null&&r.push(_l(e,l,s))),e=e.return}return r}function ko(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function n0(e,t,n,r,s){for(var l=t._reactName,u=[];n!==null&&n!==r;){var h=n,f=h.alternate,g=h.stateNode;if(f!==null&&f===r)break;h.tag===5&&g!==null&&(h=g,s?(f=gl(n,l),f!=null&&u.unshift(_l(n,f,h))):s||(f=gl(n,l),f!=null&&u.push(_l(n,f,h)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var w_=/\r\n?/g,S_=/\u0000|\uFFFD/g;function r0(e){return(typeof e=="string"?e:""+e).replace(w_,`
|
|
16
|
-
`).replace(S_,"")}function _u(e,t,n){if(t=r0(t),r0(e)!==t&&n)throw Error(W(425))}function Xu(){}var Tf=null,Rf=null;function zf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var If=typeof setTimeout=="function"?setTimeout:void 0,x_=typeof clearTimeout=="function"?clearTimeout:void 0,i0=typeof Promise=="function"?Promise:void 0,E_=typeof queueMicrotask=="function"?queueMicrotask:typeof i0<"u"?function(e){return i0.resolve(null).then(e).catch(__)}:If;function __(e){setTimeout(function(){throw e})}function Zh(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),wl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);wl(t)}function oi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function o0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var qo=Math.random().toString(36).slice(2),ir="__reactFiber$"+qo,Pl="__reactProps$"+qo,kr="__reactContainer$"+qo,Lf="__reactEvents$"+qo,P_="__reactListeners$"+qo,k_="__reactHandles$"+qo;function Di(e){var t=e[ir];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kr]||n[ir]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=o0(e);e!==null;){if(n=e[ir])return n;e=o0(e)}return t}e=n,n=e.parentNode}return null}function Ol(e){return e=e[ir]||e[kr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Lo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function fc(e){return e[Pl]||null}var Nf=[],No=-1;function fi(e){return{current:e}}function Ee(e){0>No||(e.current=Nf[No],Nf[No]=null,No--)}function ve(e,t){No++,Nf[No]=e.current,e.current=t}var di={},xt=fi(di),jt=fi(!1),Hi=di;function Qo(e,t){var n=e.type.contextTypes;if(!n)return di;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},l;for(l in n)s[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function bt(e){return e=e.childContextTypes,e!=null}function Yu(){Ee(jt),Ee(xt)}function s0(e,t,n){if(xt.current!==di)throw Error(W(168));ve(xt,t),ve(jt,n)}function I1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(W(108,d2(e)||"Unknown",s));return Fe({},n,r)}function Zu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,Hi=xt.current,ve(xt,e),ve(jt,jt.current),!0}function l0(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=I1(e,t,Hi),r.__reactInternalMemoizedMergedChildContext=e,Ee(jt),Ee(xt),ve(xt,e)):Ee(jt),ve(jt,n)}var Sr=null,pc=!1,Kh=!1;function L1(e){Sr===null?Sr=[e]:Sr.push(e)}function C_(e){pc=!0,L1(e)}function pi(){if(!Kh&&Sr!==null){Kh=!0;var e=0,t=he;try{var n=Sr;for(he=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Sr=null,pc=!1}catch(s){throw Sr!==null&&(Sr=Sr.slice(e+1)),n1(op,pi),s}finally{he=t,Kh=!1}}return null}var Oo=[],Fo=0,Ku=null,$u=0,mn=[],gn=0,Ui=null,xr=1,Er="";function Mi(e,t){Oo[Fo++]=$u,Oo[Fo++]=Ku,Ku=e,$u=t}function N1(e,t,n){mn[gn++]=xr,mn[gn++]=Er,mn[gn++]=Ui,Ui=e;var r=xr;e=Er;var s=32-Mn(r)-1;r&=~(1<<s),n+=1;var l=32-Mn(t)+s;if(30<l){var u=s-s%5;l=(r&(1<<u)-1).toString(32),r>>=u,s-=u,xr=1<<32-Mn(t)+s|n<<s|r,Er=l+e}else xr=1<<l|n<<s|r,Er=e}function pp(e){e.return!==null&&(Mi(e,1),N1(e,1,0))}function mp(e){for(;e===Ku;)Ku=Oo[--Fo],Oo[Fo]=null,$u=Oo[--Fo],Oo[Fo]=null;for(;e===Ui;)Ui=mn[--gn],mn[gn]=null,Er=mn[--gn],mn[gn]=null,xr=mn[--gn],mn[gn]=null}var $t=null,Kt=null,ke=!1,Fn=null;function O1(e,t){var n=vn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function a0(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,$t=e,Kt=oi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$t=e,Kt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ui!==null?{id:xr,overflow:Er}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,$t=e,Kt=null,!0):!1;default:return!1}}function Of(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ff(e){if(ke){var t=Kt;if(t){var n=t;if(!a0(e,t)){if(Of(e))throw Error(W(418));t=oi(n.nextSibling);var r=$t;t&&a0(e,t)?O1(r,n):(e.flags=e.flags&-4097|2,ke=!1,$t=e)}}else{if(Of(e))throw Error(W(418));e.flags=e.flags&-4097|2,ke=!1,$t=e}}}function u0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$t=e}function Pu(e){if(e!==$t)return!1;if(!ke)return u0(e),ke=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zf(e.type,e.memoizedProps)),t&&(t=Kt)){if(Of(e))throw F1(),Error(W(418));for(;t;)O1(e,t),t=oi(t.nextSibling)}if(u0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Kt=oi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Kt=null}}else Kt=$t?oi(e.stateNode.nextSibling):null;return!0}function F1(){for(var e=Kt;e;)e=oi(e.nextSibling)}function Go(){Kt=$t=null,ke=!1}function gp(e){Fn===null?Fn=[e]:Fn.push(e)}var T_=Rr.ReactCurrentBatchConfig;function Nn(e,t){if(e&&e.defaultProps){t=Fe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var qu=fi(null),Ju=null,Mo=null,vp=null;function yp(){vp=Mo=Ju=null}function wp(e){var t=qu.current;Ee(qu),e._currentValue=t}function Mf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ho(e,t){Ju=e,vp=Mo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Bt=!0),e.firstContext=null)}function wn(e){var t=e._currentValue;if(vp!==e)if(e={context:e,memoizedValue:t,next:null},Mo===null){if(Ju===null)throw Error(W(308));Mo=e,Ju.dependencies={lanes:0,firstContext:e}}else Mo=Mo.next=e;return t}var Wi=null;function Sp(e){Wi===null?Wi=[e]:Wi.push(e)}function M1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Sp(t)):(n.next=s.next,s.next=n),t.interleaved=n,Cr(e,r)}function Cr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $r=!1;function xp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function A1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _r(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function si(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ae&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Cr(e,n)}return s=r.interleaved,s===null?(t.next=t,Sp(r)):(t.next=s.next,s.next=t),r.interleaved=t,Cr(e,n)}function Nu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sp(e,n)}}function c0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?s=l=u:l=l.next=u,n=n.next}while(n!==null);l===null?s=l=t:l=l.next=t}else s=l=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ec(e,t,n,r){var s=e.updateQueue;$r=!1;var l=s.firstBaseUpdate,u=s.lastBaseUpdate,h=s.shared.pending;if(h!==null){s.shared.pending=null;var f=h,g=f.next;f.next=null,u===null?l=g:u.next=g,u=f;var m=e.alternate;m!==null&&(m=m.updateQueue,h=m.lastBaseUpdate,h!==u&&(h===null?m.firstBaseUpdate=g:h.next=g,m.lastBaseUpdate=f))}if(l!==null){var S=s.baseState;u=0,m=g=f=null,h=l;do{var E=h.lane,P=h.eventTime;if((r&E)===E){m!==null&&(m=m.next={eventTime:P,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var k=e,R=h;switch(E=t,P=n,R.tag){case 1:if(k=R.payload,typeof k=="function"){S=k.call(P,S,E);break e}S=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=R.payload,E=typeof k=="function"?k.call(P,S,E):k,E==null)break e;S=Fe({},S,E);break e;case 2:$r=!0}}h.callback!==null&&h.lane!==0&&(e.flags|=64,E=s.effects,E===null?s.effects=[h]:E.push(h))}else P={eventTime:P,lane:E,tag:h.tag,payload:h.payload,callback:h.callback,next:null},m===null?(g=m=P,f=S):m=m.next=P,u|=E;if(h=h.next,h===null){if(h=s.shared.pending,h===null)break;E=h,h=E.next,E.next=null,s.lastBaseUpdate=E,s.shared.pending=null}}while(!0);if(m===null&&(f=S),s.baseState=f,s.firstBaseUpdate=g,s.lastBaseUpdate=m,t=s.shared.interleaved,t!==null){s=t;do u|=s.lane,s=s.next;while(s!==t)}else l===null&&(s.shared.lanes=0);Qi|=u,e.lanes=u,e.memoizedState=S}}function d0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(W(191,s));s.call(r)}}}var D1=new M0.Component().refs;function Af(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Fe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var mc={isMounted:function(e){return(e=e._reactInternals)?Yi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Rt(),s=ai(e),l=_r(r,s);l.payload=t,n!=null&&(l.callback=n),t=si(e,l,s),t!==null&&(An(t,e,s,r),Nu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Rt(),s=ai(e),l=_r(r,s);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=si(e,l,s),t!==null&&(An(t,e,s,r),Nu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rt(),r=ai(e),s=_r(n,r);s.tag=2,t!=null&&(s.callback=t),t=si(e,s,r),t!==null&&(An(t,e,r,n),Nu(t,e,r))}};function h0(e,t,n,r,s,l,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,u):t.prototype&&t.prototype.isPureReactComponent?!xl(n,r)||!xl(s,l):!0}function W1(e,t,n){var r=!1,s=di,l=t.contextType;return typeof l=="object"&&l!==null?l=wn(l):(s=bt(t)?Hi:xt.current,r=t.contextTypes,l=(r=r!=null)?Qo(e,s):di),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=mc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function f0(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mc.enqueueReplaceState(t,t.state,null)}function Df(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=D1,xp(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=wn(l):(l=bt(t)?Hi:xt.current,s.context=Qo(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Af(e,t,l,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&mc.enqueueReplaceState(s,s.state,null),ec(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function $s(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(W(309));var r=n.stateNode}if(!r)throw Error(W(147,e));var s=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(u){var h=s.refs;h===D1&&(h=s.refs={}),u===null?delete h[l]:h[l]=u},t._stringRef=l,t)}if(typeof e!="string")throw Error(W(284));if(!n._owner)throw Error(W(290,e))}return e}function ku(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function p0(e){var t=e._init;return t(e._payload)}function B1(e){function t(x,w){if(e){var _=x.deletions;_===null?(x.deletions=[w],x.flags|=16):_.push(w)}}function n(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function r(x,w){for(x=new Map;w!==null;)w.key!==null?x.set(w.key,w):x.set(w.index,w),w=w.sibling;return x}function s(x,w){return x=ui(x,w),x.index=0,x.sibling=null,x}function l(x,w,_){return x.index=_,e?(_=x.alternate,_!==null?(_=_.index,_<w?(x.flags|=2,w):_):(x.flags|=2,w)):(x.flags|=1048576,w)}function u(x){return e&&x.alternate===null&&(x.flags|=2),x}function h(x,w,_,L){return w===null||w.tag!==6?(w=rf(_,x.mode,L),w.return=x,w):(w=s(w,_),w.return=x,w)}function f(x,w,_,L){var O=_.type;return O===To?m(x,w,_.props.children,L,_.key):w!==null&&(w.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Kr&&p0(O)===w.type)?(L=s(w,_.props),L.ref=$s(x,w,_),L.return=x,L):(L=Wu(_.type,_.key,_.props,null,x.mode,L),L.ref=$s(x,w,_),L.return=x,L)}function g(x,w,_,L){return w===null||w.tag!==4||w.stateNode.containerInfo!==_.containerInfo||w.stateNode.implementation!==_.implementation?(w=of(_,x.mode,L),w.return=x,w):(w=s(w,_.children||[]),w.return=x,w)}function m(x,w,_,L,O){return w===null||w.tag!==7?(w=bi(_,x.mode,L,O),w.return=x,w):(w=s(w,_),w.return=x,w)}function S(x,w,_){if(typeof w=="string"&&w!==""||typeof w=="number")return w=rf(""+w,x.mode,_),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case cu:return _=Wu(w.type,w.key,w.props,null,x.mode,_),_.ref=$s(x,null,w),_.return=x,_;case Co:return w=of(w,x.mode,_),w.return=x,w;case Kr:var L=w._init;return S(x,L(w._payload),_)}if(nl(w)||Xs(w))return w=bi(w,x.mode,_,null),w.return=x,w;ku(x,w)}return null}function E(x,w,_,L){var O=w!==null?w.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return O!==null?null:h(x,w,""+_,L);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case cu:return _.key===O?f(x,w,_,L):null;case Co:return _.key===O?g(x,w,_,L):null;case Kr:return O=_._init,E(x,w,O(_._payload),L)}if(nl(_)||Xs(_))return O!==null?null:m(x,w,_,L,null);ku(x,_)}return null}function P(x,w,_,L,O){if(typeof L=="string"&&L!==""||typeof L=="number")return x=x.get(_)||null,h(w,x,""+L,O);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case cu:return x=x.get(L.key===null?_:L.key)||null,f(w,x,L,O);case Co:return x=x.get(L.key===null?_:L.key)||null,g(w,x,L,O);case Kr:var z=L._init;return P(x,w,_,z(L._payload),O)}if(nl(L)||Xs(L))return x=x.get(_)||null,m(w,x,L,O,null);ku(w,L)}return null}function k(x,w,_,L){for(var O=null,z=null,D=w,b=w=0,q=null;D!==null&&b<_.length;b++){D.index>b?(q=D,D=null):q=D.sibling;var M=E(x,D,_[b],L);if(M===null){D===null&&(D=q);break}e&&D&&M.alternate===null&&t(x,D),w=l(M,w,b),z===null?O=M:z.sibling=M,z=M,D=q}if(b===_.length)return n(x,D),ke&&Mi(x,b),O;if(D===null){for(;b<_.length;b++)D=S(x,_[b],L),D!==null&&(w=l(D,w,b),z===null?O=D:z.sibling=D,z=D);return ke&&Mi(x,b),O}for(D=r(x,D);b<_.length;b++)q=P(D,x,b,_[b],L),q!==null&&(e&&q.alternate!==null&&D.delete(q.key===null?b:q.key),w=l(q,w,b),z===null?O=q:z.sibling=q,z=q);return e&&D.forEach(function(K){return t(x,K)}),ke&&Mi(x,b),O}function R(x,w,_,L){var O=Xs(_);if(typeof O!="function")throw Error(W(150));if(_=O.call(_),_==null)throw Error(W(151));for(var z=O=null,D=w,b=w=0,q=null,M=_.next();D!==null&&!M.done;b++,M=_.next()){D.index>b?(q=D,D=null):q=D.sibling;var K=E(x,D,M.value,L);if(K===null){D===null&&(D=q);break}e&&D&&K.alternate===null&&t(x,D),w=l(K,w,b),z===null?O=K:z.sibling=K,z=K,D=q}if(M.done)return n(x,D),ke&&Mi(x,b),O;if(D===null){for(;!M.done;b++,M=_.next())M=S(x,M.value,L),M!==null&&(w=l(M,w,b),z===null?O=M:z.sibling=M,z=M);return ke&&Mi(x,b),O}for(D=r(x,D);!M.done;b++,M=_.next())M=P(D,x,b,M.value,L),M!==null&&(e&&M.alternate!==null&&D.delete(M.key===null?b:M.key),w=l(M,w,b),z===null?O=M:z.sibling=M,z=M);return e&&D.forEach(function(se){return t(x,se)}),ke&&Mi(x,b),O}function A(x,w,_,L){if(typeof _=="object"&&_!==null&&_.type===To&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case cu:e:{for(var O=_.key,z=w;z!==null;){if(z.key===O){if(O=_.type,O===To){if(z.tag===7){n(x,z.sibling),w=s(z,_.props.children),w.return=x,x=w;break e}}else if(z.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Kr&&p0(O)===z.type){n(x,z.sibling),w=s(z,_.props),w.ref=$s(x,z,_),w.return=x,x=w;break e}n(x,z);break}else t(x,z);z=z.sibling}_.type===To?(w=bi(_.props.children,x.mode,L,_.key),w.return=x,x=w):(L=Wu(_.type,_.key,_.props,null,x.mode,L),L.ref=$s(x,w,_),L.return=x,x=L)}return u(x);case Co:e:{for(z=_.key;w!==null;){if(w.key===z)if(w.tag===4&&w.stateNode.containerInfo===_.containerInfo&&w.stateNode.implementation===_.implementation){n(x,w.sibling),w=s(w,_.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=of(_,x.mode,L),w.return=x,x=w}return u(x);case Kr:return z=_._init,A(x,w,z(_._payload),L)}if(nl(_))return k(x,w,_,L);if(Xs(_))return R(x,w,_,L);ku(x,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,w!==null&&w.tag===6?(n(x,w.sibling),w=s(w,_),w.return=x,x=w):(n(x,w),w=rf(_,x.mode,L),w.return=x,x=w),u(x)):n(x,w)}return A}var Xo=B1(!0),j1=B1(!1),Fl={},sr=fi(Fl),kl=fi(Fl),Cl=fi(Fl);function Bi(e){if(e===Fl)throw Error(W(174));return e}function Ep(e,t){switch(ve(Cl,t),ve(kl,e),ve(sr,Fl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mf(t,e)}Ee(sr),ve(sr,t)}function Yo(){Ee(sr),Ee(kl),Ee(Cl)}function b1(e){Bi(Cl.current);var t=Bi(sr.current),n=mf(t,e.type);t!==n&&(ve(kl,e),ve(sr,n))}function _p(e){kl.current===e&&(Ee(sr),Ee(kl))}var Ne=fi(0);function tc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $h=[];function Pp(){for(var e=0;e<$h.length;e++)$h[e]._workInProgressVersionPrimary=null;$h.length=0}var Ou=Rr.ReactCurrentDispatcher,qh=Rr.ReactCurrentBatchConfig,Vi=0,Oe=null,Xe=null,tt=null,nc=!1,cl=!1,Tl=0,R_=0;function yt(){throw Error(W(321))}function kp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dn(e[n],t[n]))return!1;return!0}function Cp(e,t,n,r,s,l){if(Vi=l,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ou.current=e===null||e.memoizedState===null?N_:O_,e=n(r,s),cl){l=0;do{if(cl=!1,Tl=0,25<=l)throw Error(W(301));l+=1,tt=Xe=null,t.updateQueue=null,Ou.current=F_,e=n(r,s)}while(cl)}if(Ou.current=rc,t=Xe!==null&&Xe.next!==null,Vi=0,tt=Xe=Oe=null,nc=!1,t)throw Error(W(300));return e}function Tp(){var e=Tl!==0;return Tl=0,e}function rr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?Oe.memoizedState=tt=e:tt=tt.next=e,tt}function Sn(){if(Xe===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=tt===null?Oe.memoizedState:tt.next;if(t!==null)tt=t,Xe=e;else{if(e===null)throw Error(W(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},tt===null?Oe.memoizedState=tt=e:tt=tt.next=e}return tt}function Rl(e,t){return typeof t=="function"?t(e):t}function Jh(e){var t=Sn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=Xe,s=r.baseQueue,l=n.pending;if(l!==null){if(s!==null){var u=s.next;s.next=l.next,l.next=u}r.baseQueue=s=l,n.pending=null}if(s!==null){l=s.next,r=r.baseState;var h=u=null,f=null,g=l;do{var m=g.lane;if((Vi&m)===m)f!==null&&(f=f.next={lane:0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),r=g.hasEagerState?g.eagerState:e(r,g.action);else{var S={lane:m,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};f===null?(h=f=S,u=r):f=f.next=S,Oe.lanes|=m,Qi|=m}g=g.next}while(g!==null&&g!==l);f===null?u=r:f.next=h,Dn(r,t.memoizedState)||(Bt=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=f,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do l=s.lane,Oe.lanes|=l,Qi|=l,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ef(e){var t=Sn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,l=t.memoizedState;if(s!==null){n.pending=null;var u=s=s.next;do l=e(l,u.action),u=u.next;while(u!==s);Dn(l,t.memoizedState)||(Bt=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function H1(){}function U1(e,t){var n=Oe,r=Sn(),s=t(),l=!Dn(r.memoizedState,s);if(l&&(r.memoizedState=s,Bt=!0),r=r.queue,Rp(G1.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||tt!==null&&tt.memoizedState.tag&1){if(n.flags|=2048,zl(9,Q1.bind(null,n,r,s,t),void 0,null),nt===null)throw Error(W(349));Vi&30||V1(n,t,s)}return s}function V1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Q1(e,t,n,r){t.value=n,t.getSnapshot=r,X1(t)&&Y1(e)}function G1(e,t,n){return n(function(){X1(t)&&Y1(e)})}function X1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dn(e,n)}catch{return!0}}function Y1(e){var t=Cr(e,1);t!==null&&An(t,e,1,-1)}function m0(e){var t=rr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:e},t.queue=e,e=e.dispatch=L_.bind(null,Oe,e),[t.memoizedState,e]}function zl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Z1(){return Sn().memoizedState}function Fu(e,t,n,r){var s=rr();Oe.flags|=e,s.memoizedState=zl(1|t,n,void 0,r===void 0?null:r)}function gc(e,t,n,r){var s=Sn();r=r===void 0?null:r;var l=void 0;if(Xe!==null){var u=Xe.memoizedState;if(l=u.destroy,r!==null&&kp(r,u.deps)){s.memoizedState=zl(t,n,l,r);return}}Oe.flags|=e,s.memoizedState=zl(1|t,n,l,r)}function g0(e,t){return Fu(8390656,8,e,t)}function Rp(e,t){return gc(2048,8,e,t)}function K1(e,t){return gc(4,2,e,t)}function $1(e,t){return gc(4,4,e,t)}function q1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function J1(e,t,n){return n=n!=null?n.concat([e]):null,gc(4,4,q1.bind(null,t,e),n)}function zp(){}function ew(e,t){var n=Sn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&kp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tw(e,t){var n=Sn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&kp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nw(e,t,n){return Vi&21?(Dn(n,t)||(n=o1(),Oe.lanes|=n,Qi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Bt=!0),e.memoizedState=n)}function z_(e,t){var n=he;he=n!==0&&4>n?n:4,e(!0);var r=qh.transition;qh.transition={};try{e(!1),t()}finally{he=n,qh.transition=r}}function rw(){return Sn().memoizedState}function I_(e,t,n){var r=ai(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},iw(e))ow(t,n);else if(n=M1(e,t,n,r),n!==null){var s=Rt();An(n,e,r,s),sw(n,t,r)}}function L_(e,t,n){var r=ai(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(iw(e))ow(t,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var u=t.lastRenderedState,h=l(u,n);if(s.hasEagerState=!0,s.eagerState=h,Dn(h,u)){var f=t.interleaved;f===null?(s.next=s,Sp(t)):(s.next=f.next,f.next=s),t.interleaved=s;return}}catch{}finally{}n=M1(e,t,s,r),n!==null&&(s=Rt(),An(n,e,r,s),sw(n,t,r))}}function iw(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function ow(e,t){cl=nc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sp(e,n)}}var rc={readContext:wn,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useInsertionEffect:yt,useLayoutEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useMutableSource:yt,useSyncExternalStore:yt,useId:yt,unstable_isNewReconciler:!1},N_={readContext:wn,useCallback:function(e,t){return rr().memoizedState=[e,t===void 0?null:t],e},useContext:wn,useEffect:g0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fu(4194308,4,q1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fu(4,2,e,t)},useMemo:function(e,t){var n=rr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=I_.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=rr();return e={current:e},t.memoizedState=e},useState:m0,useDebugValue:zp,useDeferredValue:function(e){return rr().memoizedState=e},useTransition:function(){var e=m0(!1),t=e[0];return e=z_.bind(null,e[1]),rr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,s=rr();if(ke){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),nt===null)throw Error(W(349));Vi&30||V1(r,t,n)}s.memoizedState=n;var l={value:n,getSnapshot:t};return s.queue=l,g0(G1.bind(null,r,l,e),[e]),r.flags|=2048,zl(9,Q1.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=rr(),t=nt.identifierPrefix;if(ke){var n=Er,r=xr;n=(r&~(1<<32-Mn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Tl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=R_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},O_={readContext:wn,useCallback:ew,useContext:wn,useEffect:Rp,useImperativeHandle:J1,useInsertionEffect:K1,useLayoutEffect:$1,useMemo:tw,useReducer:Jh,useRef:Z1,useState:function(){return Jh(Rl)},useDebugValue:zp,useDeferredValue:function(e){var t=Sn();return nw(t,Xe.memoizedState,e)},useTransition:function(){var e=Jh(Rl)[0],t=Sn().memoizedState;return[e,t]},useMutableSource:H1,useSyncExternalStore:U1,useId:rw,unstable_isNewReconciler:!1},F_={readContext:wn,useCallback:ew,useContext:wn,useEffect:Rp,useImperativeHandle:J1,useInsertionEffect:K1,useLayoutEffect:$1,useMemo:tw,useReducer:ef,useRef:Z1,useState:function(){return ef(Rl)},useDebugValue:zp,useDeferredValue:function(e){var t=Sn();return Xe===null?t.memoizedState=e:nw(t,Xe.memoizedState,e)},useTransition:function(){var e=ef(Rl)[0],t=Sn().memoizedState;return[e,t]},useMutableSource:H1,useSyncExternalStore:U1,useId:rw,unstable_isNewReconciler:!1};function Zo(e,t){try{var n="",r=t;do n+=c2(r),r=r.return;while(r);var s=n}catch(l){s=`
|
|
17
|
-
Error generating stack: `+
|
|
18
|
-
`+l.stack}return{value:e,source:t,stack:s,digest:null}}function tf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var M_=typeof WeakMap=="function"?WeakMap:Map;function lw(e,t,n){n=_r(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oc||(oc=!0,Yf=r),Wf(e,t)},n}function aw(e,t,n){n=_r(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Wf(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Wf(e,t),typeof r!="function"&&(li===null?li=new Set([this]):li.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function v0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new M_;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Z_.bind(null,e,t,n),t.then(e,e))}function y0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function w0(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_r(-1,1),t.tag=2,si(n,t,1))),n.lanes|=1),e)}var A_=Rr.ReactCurrentOwner,Bt=!1;function Tt(e,t,n,r){t.child=e===null?j1(t,null,n,r):Xo(t,e.child,n,r)}function S0(e,t,n,r,s){n=n.render;var l=t.ref;return Ho(t,s),r=Cp(e,t,n,r,l,s),n=Tp(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Tr(e,t,s)):(ke&&n&&pp(t),t.flags|=1,Tt(e,t,r,s),t.child)}function x0(e,t,n,r,s){if(e===null){var l=n.type;return typeof l=="function"&&!Dp(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,uw(e,t,l,r,s)):(e=Wu(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&s)){var u=l.memoizedProps;if(n=n.compare,n=n!==null?n:xl,n(u,r)&&e.ref===t.ref)return Tr(e,t,s)}return t.flags|=1,e=ui(l,r),e.ref=t.ref,e.return=t,t.child=e}function uw(e,t,n,r,s){if(e!==null){var l=e.memoizedProps;if(xl(l,r)&&e.ref===t.ref)if(Bt=!1,t.pendingProps=r=l,(e.lanes&s)!==0)e.flags&131072&&(Bt=!0);else return t.lanes=e.lanes,Tr(e,t,s)}return Bf(e,t,n,r,s)}function cw(e,t,n){var r=t.pendingProps,s=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(Do,Zt),Zt|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(Do,Zt),Zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,ve(Do,Zt),Zt|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,ve(Do,Zt),Zt|=r;return Tt(e,t,s,n),t.child}function dw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bf(e,t,n,r,s){var l=bt(n)?Hi:xt.current;return l=Qo(t,l),Ho(t,s),n=Cp(e,t,n,r,l,s),r=Tp(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Tr(e,t,s)):(ke&&r&&pp(t),t.flags|=1,Tt(e,t,n,s),t.child)}function E0(e,t,n,r,s){if(bt(n)){var l=!0;Zu(t)}else l=!1;if(Ho(t,s),t.stateNode===null)Mu(e,t),W1(t,n,r),Df(t,n,r,s),r=!0;else if(e===null){var u=t.stateNode,h=t.memoizedProps;u.props=h;var f=u.context,g=n.contextType;typeof g=="object"&&g!==null?g=wn(g):(g=bt(n)?Hi:xt.current,g=Qo(t,g));var m=n.getDerivedStateFromProps,S=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function";S||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==r||f!==g)&&f0(t,u,r,g),$r=!1;var E=t.memoizedState;u.state=E,ec(t,r,u,s),f=t.memoizedState,h!==r||E!==f||jt.current||$r?(typeof m=="function"&&(Af(t,n,m,r),f=t.memoizedState),(h=$r||h0(t,n,h,r,E,f,g))?(S||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=f),u.props=r,u.state=f,u.context=g,r=h):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,A1(e,t),h=t.memoizedProps,g=t.type===t.elementType?h:Nn(t.type,h),u.props=g,S=t.pendingProps,E=u.context,f=n.contextType,typeof f=="object"&&f!==null?f=wn(f):(f=bt(n)?Hi:xt.current,f=Qo(t,f));var P=n.getDerivedStateFromProps;(m=typeof P=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==S||E!==f)&&f0(t,u,r,f),$r=!1,E=t.memoizedState,u.state=E,ec(t,r,u,s);var k=t.memoizedState;h!==S||E!==k||jt.current||$r?(typeof P=="function"&&(Af(t,n,P,r),k=t.memoizedState),(g=$r||h0(t,n,g,r,E,k,f)||!1)?(m||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,k,f),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,k,f)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=k),u.props=r,u.state=k,u.context=f,r=g):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),r=!1)}return jf(e,t,n,r,l,s)}function jf(e,t,n,r,s,l){dw(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return s&&l0(t,n,!1),Tr(e,t,l);r=t.stateNode,A_.current=t;var h=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=Xo(t,e.child,null,l),t.child=Xo(t,null,h,l)):Tt(e,t,h,l),t.memoizedState=r.state,s&&l0(t,n,!0),t.child}function hw(e){var t=e.stateNode;t.pendingContext?s0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&s0(e,t.context,!1),Ep(e,t.containerInfo)}function _0(e,t,n,r,s){return Go(),gp(s),t.flags|=256,Tt(e,t,n,r),t.child}var bf={dehydrated:null,treeContext:null,retryLane:0};function Hf(e){return{baseLanes:e,cachePool:null,transitions:null}}function fw(e,t,n){var r=t.pendingProps,s=Ne.current,l=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(s&2)!==0),h?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ve(Ne,s&1),e===null)return Ff(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=r.children,e=r.fallback,l?(r=t.mode,l=t.child,u={mode:"hidden",children:u},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=u):l=wc(u,r,0,null),e=bi(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Hf(n),t.memoizedState=bf,e):Ip(t,u));if(s=e.memoizedState,s!==null&&(h=s.dehydrated,h!==null))return D_(e,t,u,r,h,s,n);if(l){l=r.fallback,u=t.mode,s=e.child,h=s.sibling;var f={mode:"hidden",children:r.children};return!(u&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=f,t.deletions=null):(r=ui(s,f),r.subtreeFlags=s.subtreeFlags&14680064),h!==null?l=ui(h,l):(l=bi(l,u,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,u=e.child.memoizedState,u=u===null?Hf(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=bf,r}return l=e.child,e=l.sibling,r=ui(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ip(e,t){return t=wc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Cu(e,t,n,r){return r!==null&&gp(r),Xo(t,e.child,null,n),e=Ip(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function D_(e,t,n,r,s,l,u){if(n)return t.flags&256?(t.flags&=-257,r=tf(Error(W(422))),Cu(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,s=t.mode,r=wc({mode:"visible",children:r.children},s,0,null),l=bi(l,s,u,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Xo(t,e.child,null,u),t.child.memoizedState=Hf(u),t.memoizedState=bf,l);if(!(t.mode&1))return Cu(e,t,u,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var h=r.dgst;return r=h,l=Error(W(419)),r=tf(l,r,void 0),Cu(e,t,u,r)}if(h=(u&e.childLanes)!==0,Bt||h){if(r=nt,r!==null){switch(u&-u){case 4:s=2;break;case 16:s=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|u)?0:s,s!==0&&s!==l.retryLane&&(l.retryLane=s,Cr(e,s),An(r,e,s,-1))}return Ap(),r=tf(Error(W(421))),Cu(e,t,u,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=K_.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,Kt=oi(s.nextSibling),$t=t,ke=!0,Fn=null,e!==null&&(mn[gn++]=xr,mn[gn++]=Er,mn[gn++]=Ui,xr=e.id,Er=e.overflow,Ui=t),t=Ip(t,r.children),t.flags|=4096,t)}function P0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Mf(e.return,t,n)}function nf(e,t,n,r,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=s)}function pw(e,t,n){var r=t.pendingProps,s=r.revealOrder,l=r.tail;if(Tt(e,t,r.children,n),r=Ne.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&P0(e,n,t);else if(e.tag===19)P0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ve(Ne,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&tc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),nf(t,!1,s,n,l);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&tc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}nf(t,!0,n,null,l);break;case"together":nf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Mu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Tr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function W_(e,t,n){switch(t.tag){case 3:hw(t),Go();break;case 5:b1(t);break;case 1:bt(t.type)&&Zu(t);break;case 4:Ep(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ve(qu,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve(Ne,Ne.current&1),t.flags|=128,null):n&t.child.childLanes?fw(e,t,n):(ve(Ne,Ne.current&1),e=Tr(e,t,n),e!==null?e.sibling:null);ve(Ne,Ne.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pw(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ve(Ne,Ne.current),r)break;return null;case 22:case 23:return t.lanes=0,cw(e,t,n)}return Tr(e,t,n)}var mw,Uf,gw,vw;mw=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Uf=function(){};gw=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Bi(sr.current);var l=null;switch(n){case"input":s=df(e,s),r=df(e,r),l=[];break;case"select":s=Fe({},s,{value:void 0}),r=Fe({},r,{value:void 0}),l=[];break;case"textarea":s=pf(e,s),r=pf(e,r),l=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xu)}gf(n,r);var u;n=null;for(g in s)if(!r.hasOwnProperty(g)&&s.hasOwnProperty(g)&&s[g]!=null)if(g==="style"){var h=s[g];for(u in h)h.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else g!=="dangerouslySetInnerHTML"&&g!=="children"&&g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(pl.hasOwnProperty(g)?l||(l=[]):(l=l||[]).push(g,null));for(g in r){var f=r[g];if(h=s?.[g],r.hasOwnProperty(g)&&f!==h&&(f!=null||h!=null))if(g==="style")if(h){for(u in h)!h.hasOwnProperty(u)||f&&f.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in f)f.hasOwnProperty(u)&&h[u]!==f[u]&&(n||(n={}),n[u]=f[u])}else n||(l||(l=[]),l.push(g,n)),n=f;else g==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,h=h?h.__html:void 0,f!=null&&h!==f&&(l=l||[]).push(g,f)):g==="children"?typeof f!="string"&&typeof f!="number"||(l=l||[]).push(g,""+f):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&(pl.hasOwnProperty(g)?(f!=null&&g==="onScroll"&&xe("scroll",e),l||h===f||(l=[])):(l=l||[]).push(g,f))}n&&(l=l||[]).push("style",n);var g=l;(t.updateQueue=g)&&(t.flags|=4)}};vw=function(e,t,n,r){n!==r&&(t.flags|=4)};function qs(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function wt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function B_(e,t,n){var r=t.pendingProps;switch(mp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(t),null;case 1:return bt(t.type)&&Yu(),wt(t),null;case 3:return r=t.stateNode,Yo(),Ee(jt),Ee(xt),Pp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Pu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fn!==null&&($f(Fn),Fn=null))),Uf(e,t),wt(t),null;case 5:_p(t);var s=Bi(Cl.current);if(n=t.type,e!==null&&t.stateNode!=null)gw(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return wt(t),null}if(e=Bi(sr.current),Pu(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ir]=t,r[Pl]=l,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(s=0;s<il.length;s++)xe(il[s],r);break;case"source":xe("error",r);break;case"img":case"image":case"link":xe("error",r),xe("load",r);break;case"details":xe("toggle",r);break;case"input":Ny(r,l),xe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},xe("invalid",r);break;case"textarea":Fy(r,l),xe("invalid",r)}gf(n,l),s=null;for(var u in l)if(l.hasOwnProperty(u)){var h=l[u];u==="children"?typeof h=="string"?r.textContent!==h&&(l.suppressHydrationWarning!==!0&&_u(r.textContent,h,e),s=["children",h]):typeof h=="number"&&r.textContent!==""+h&&(l.suppressHydrationWarning!==!0&&_u(r.textContent,h,e),s=["children",""+h]):pl.hasOwnProperty(u)&&h!=null&&u==="onScroll"&&xe("scroll",r)}switch(n){case"input":du(r),Oy(r,l,!0);break;case"textarea":du(r),My(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Xu)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=V0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[ir]=t,e[Pl]=r,mw(e,t,!1,!1),t.stateNode=e;e:{switch(u=vf(n,r),n){case"dialog":xe("cancel",e),xe("close",e),s=r;break;case"iframe":case"object":case"embed":xe("load",e),s=r;break;case"video":case"audio":for(s=0;s<il.length;s++)xe(il[s],e);s=r;break;case"source":xe("error",e),s=r;break;case"img":case"image":case"link":xe("error",e),xe("load",e),s=r;break;case"details":xe("toggle",e),s=r;break;case"input":Ny(e,r),s=df(e,r),xe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Fe({},r,{value:void 0}),xe("invalid",e);break;case"textarea":Fy(e,r),s=pf(e,r),xe("invalid",e);break;default:s=r}gf(n,s),h=s;for(l in h)if(h.hasOwnProperty(l)){var f=h[l];l==="style"?X0(e,f):l==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,f!=null&&Q0(e,f)):l==="children"?typeof f=="string"?(n!=="textarea"||f!=="")&&ml(e,f):typeof f=="number"&&ml(e,""+f):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(pl.hasOwnProperty(l)?f!=null&&l==="onScroll"&&xe("scroll",e):f!=null&&ep(e,l,f,u))}switch(n){case"input":du(e),Oy(e,r,!1);break;case"textarea":du(e),My(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ci(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Wo(e,!!r.multiple,l,!1):r.defaultValue!=null&&Wo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Xu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return wt(t),null;case 6:if(e&&t.stateNode!=null)vw(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(166));if(n=Bi(Cl.current),Bi(sr.current),Pu(t)){if(r=t.stateNode,n=t.memoizedProps,r[ir]=t,(l=r.nodeValue!==n)&&(e=$t,e!==null))switch(e.tag){case 3:_u(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_u(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ir]=t,t.stateNode=r}return wt(t),null;case 13:if(Ee(Ne),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ke&&Kt!==null&&t.mode&1&&!(t.flags&128))F1(),Go(),t.flags|=98560,l=!1;else if(l=Pu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(W(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(W(317));l[ir]=t}else Go(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;wt(t),l=!1}else Fn!==null&&($f(Fn),Fn=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ne.current&1?Ye===0&&(Ye=3):Ap())),t.updateQueue!==null&&(t.flags|=4),wt(t),null);case 4:return Yo(),Uf(e,t),e===null&&El(t.stateNode.containerInfo),wt(t),null;case 10:return wp(t.type._context),wt(t),null;case 17:return bt(t.type)&&Yu(),wt(t),null;case 19:if(Ee(Ne),l=t.memoizedState,l===null)return wt(t),null;if(r=(t.flags&128)!==0,u=l.rendering,u===null)if(r)qs(l,!1);else{if(Ye!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=tc(e),u!==null){for(t.flags|=128,qs(l,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,u=l.alternate,u===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ve(Ne,Ne.current&1|2),t.child}e=e.sibling}l.tail!==null&&je()>Ko&&(t.flags|=128,r=!0,qs(l,!1),t.lanes=4194304)}else{if(!r)if(e=tc(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!ke)return wt(t),null}else 2*je()-l.renderingStartTime>Ko&&n!==1073741824&&(t.flags|=128,r=!0,qs(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(n=l.last,n!==null?n.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=je(),t.sibling=null,n=Ne.current,ve(Ne,r?n&1|2:n&1),t):(wt(t),null);case 22:case 23:return Mp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Zt&1073741824&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function j_(e,t){switch(mp(t),t.tag){case 1:return bt(t.type)&&Yu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yo(),Ee(jt),Ee(xt),Pp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _p(t),null;case 13:if(Ee(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Ne),null;case 4:return Yo(),null;case 10:return wp(t.type._context),null;case 22:case 23:return Mp(),null;case 24:return null;default:return null}}var Tu=!1,St=!1,b_=typeof WeakSet=="function"?WeakSet:Set,G=null;function Ao(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function Vf(e,t,n){try{n()}catch(r){De(e,t,r)}}var k0=!1;function H_(e,t){if(Tf=Vu,e=x1(),fp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var u=0,h=-1,f=-1,g=0,m=0,S=e,E=null;t:for(;;){for(var P;S!==n||s!==0&&S.nodeType!==3||(h=u+s),S!==l||r!==0&&S.nodeType!==3||(f=u+r),S.nodeType===3&&(u+=S.nodeValue.length),(P=S.firstChild)!==null;)E=S,S=P;for(;;){if(S===e)break t;if(E===n&&++g===s&&(h=u),E===l&&++m===r&&(f=u),(P=S.nextSibling)!==null)break;S=E,E=S.parentNode}S=P}n=h===-1||f===-1?null:{start:h,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rf={focusedElem:e,selectionRange:n},Vu=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var R=k.memoizedProps,A=k.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?R:Nn(t.type,R),A);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(L){De(t,t.return,L)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return k=k0,k0=!1,k}function dl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,l!==void 0&&Vf(t,n,l)}s=s.next}while(s!==r)}}function vc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yw(e){var t=e.alternate;t!==null&&(e.alternate=null,yw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ir],delete t[Pl],delete t[Lf],delete t[P_],delete t[k_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ww(e){return e.tag===5||e.tag===3||e.tag===4}function C0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ww(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xu));else if(r!==4&&(e=e.child,e!==null))for(Gf(e,t,n),e=e.sibling;e!==null;)Gf(e,t,n),e=e.sibling}function Xf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xf(e,t,n),e=e.sibling;e!==null;)Xf(e,t,n),e=e.sibling}var lt=null,On=!1;function Zr(e,t,n){for(n=n.child;n!==null;)Sw(e,t,n),n=n.sibling}function Sw(e,t,n){if(or&&typeof or.onCommitFiberUnmount=="function")try{or.onCommitFiberUnmount(uc,n)}catch{}switch(n.tag){case 5:St||Ao(n,t);case 6:var r=lt,s=On;lt=null,Zr(e,t,n),lt=r,On=s,lt!==null&&(On?(e=lt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lt.removeChild(n.stateNode));break;case 18:lt!==null&&(On?(e=lt,n=n.stateNode,e.nodeType===8?Zh(e.parentNode,n):e.nodeType===1&&Zh(e,n),wl(e)):Zh(lt,n.stateNode));break;case 4:r=lt,s=On,lt=n.stateNode.containerInfo,On=!0,Zr(e,t,n),lt=r,On=s;break;case 0:case 11:case 14:case 15:if(!St&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var l=s,u=l.destroy;l=l.tag,u!==void 0&&(l&2||l&4)&&Vf(n,t,u),s=s.next}while(s!==r)}Zr(e,t,n);break;case 1:if(!St&&(Ao(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(h){De(n,t,h)}Zr(e,t,n);break;case 21:Zr(e,t,n);break;case 22:n.mode&1?(St=(r=St)||n.memoizedState!==null,Zr(e,t,n),St=r):Zr(e,t,n);break;default:Zr(e,t,n)}}function T0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new b_),t.forEach(function(r){var s=$_.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ln(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var l=e,u=t,h=u;e:for(;h!==null;){switch(h.tag){case 5:lt=h.stateNode,On=!1;break e;case 3:lt=h.stateNode.containerInfo,On=!0;break e;case 4:lt=h.stateNode.containerInfo,On=!0;break e}h=h.return}if(lt===null)throw Error(W(160));Sw(l,u,s),lt=null,On=!1;var f=s.alternate;f!==null&&(f.return=null),s.return=null}catch(g){De(s,t,g)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xw(t,e),t=t.sibling}function xw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ln(t,e),nr(e),r&4){try{dl(3,e,e.return),vc(3,e)}catch(R){De(e,e.return,R)}try{dl(5,e,e.return)}catch(R){De(e,e.return,R)}}break;case 1:Ln(t,e),nr(e),r&512&&n!==null&&Ao(n,n.return);break;case 5:if(Ln(t,e),nr(e),r&512&&n!==null&&Ao(n,n.return),e.flags&32){var s=e.stateNode;try{ml(s,"")}catch(R){De(e,e.return,R)}}if(r&4&&(s=e.stateNode,s!=null)){var l=e.memoizedProps,u=n!==null?n.memoizedProps:l,h=e.type,f=e.updateQueue;if(e.updateQueue=null,f!==null)try{h==="input"&&l.type==="radio"&&l.name!=null&&H0(s,l),vf(h,u);var g=vf(h,l);for(u=0;u<f.length;u+=2){var m=f[u],S=f[u+1];m==="style"?X0(s,S):m==="dangerouslySetInnerHTML"?Q0(s,S):m==="children"?ml(s,S):ep(s,m,S,g)}switch(h){case"input":hf(s,l);break;case"textarea":U0(s,l);break;case"select":var E=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var P=l.value;P!=null?Wo(s,!!l.multiple,P,!1):E!==!!l.multiple&&(l.defaultValue!=null?Wo(s,!!l.multiple,l.defaultValue,!0):Wo(s,!!l.multiple,l.multiple?[]:"",!1))}s[Pl]=l}catch(R){De(e,e.return,R)}}break;case 6:if(Ln(t,e),nr(e),r&4){if(e.stateNode===null)throw Error(W(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(R){De(e,e.return,R)}}break;case 3:if(Ln(t,e),nr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{wl(t.containerInfo)}catch(R){De(e,e.return,R)}break;case 4:Ln(t,e),nr(e);break;case 13:Ln(t,e),nr(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(Op=je())),r&4&&T0(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(St=(g=St)||m,Ln(t,e),St=g):Ln(t,e),nr(e),r&8192){if(g=e.memoizedState!==null,(e.stateNode.isHidden=g)&&!m&&e.mode&1)for(G=e,m=e.child;m!==null;){for(S=G=m;G!==null;){switch(E=G,P=E.child,E.tag){case 0:case 11:case 14:case 15:dl(4,E,E.return);break;case 1:Ao(E,E.return);var k=E.stateNode;if(typeof k.componentWillUnmount=="function"){r=E,n=E.return;try{t=r,k.props=t.memoizedProps,k.state=t.memoizedState,k.componentWillUnmount()}catch(R){De(r,n,R)}}break;case 5:Ao(E,E.return);break;case 22:if(E.memoizedState!==null){z0(S);continue}}P!==null?(P.return=E,G=P):z0(S)}m=m.sibling}e:for(m=null,S=e;;){if(S.tag===5){if(m===null){m=S;try{s=S.stateNode,g?(l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(h=S.stateNode,f=S.memoizedProps.style,u=f!=null&&f.hasOwnProperty("display")?f.display:null,h.style.display=G0("display",u))}catch(R){De(e,e.return,R)}}}else if(S.tag===6){if(m===null)try{S.stateNode.nodeValue=g?"":S.memoizedProps}catch(R){De(e,e.return,R)}}else if((S.tag!==22&&S.tag!==23||S.memoizedState===null||S===e)&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===e)break e;for(;S.sibling===null;){if(S.return===null||S.return===e)break e;m===S&&(m=null),S=S.return}m===S&&(m=null),S.sibling.return=S.return,S=S.sibling}}break;case 19:Ln(t,e),nr(e),r&4&&T0(e);break;case 21:break;default:Ln(t,e),nr(e)}}function nr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ww(n)){var r=n;break e}n=n.return}throw Error(W(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ml(s,""),r.flags&=-33);var l=C0(e);Xf(e,l,s);break;case 3:case 4:var u=r.stateNode.containerInfo,h=C0(e);Gf(e,h,u);break;default:throw Error(W(161))}}catch(f){De(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function U_(e,t,n){G=e,Ew(e,t,n)}function Ew(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var s=G,l=s.child;if(s.tag===22&&r){var u=s.memoizedState!==null||Tu;if(!u){var h=s.alternate,f=h!==null&&h.memoizedState!==null||St;h=Tu;var g=St;if(Tu=u,(St=f)&&!g)for(G=s;G!==null;)u=G,f=u.child,u.tag===22&&u.memoizedState!==null?I0(s):f!==null?(f.return=u,G=f):I0(s);for(;l!==null;)G=l,Ew(l,t,n),l=l.sibling;G=s,Tu=h,St=g}R0(e,t,n)}else s.subtreeFlags&8772&&l!==null?(l.return=s,G=l):R0(e,t,n)}}function R0(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:St||vc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!St)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Nn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&d0(t,l,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}d0(t,u,n)}break;case 5:var h=t.stateNode;if(n===null&&t.flags&4){n=h;var f=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":f.autoFocus&&n.focus();break;case"img":f.src&&(n.src=f.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var g=t.alternate;if(g!==null){var m=g.memoizedState;if(m!==null){var S=m.dehydrated;S!==null&&wl(S)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}St||t.flags&512&&Qf(t)}catch(E){De(t,t.return,E)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function z0(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function I0(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vc(4,t)}catch(f){De(t,n,f)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(f){De(t,s,f)}}var l=t.return;try{Qf(t)}catch(f){De(t,l,f)}break;case 5:var u=t.return;try{Qf(t)}catch(f){De(t,u,f)}}}catch(f){De(t,t.return,f)}if(t===e){G=null;break}var h=t.sibling;if(h!==null){h.return=t.return,G=h;break}G=t.return}}var V_=Math.ceil,ic=Rr.ReactCurrentDispatcher,Lp=Rr.ReactCurrentOwner,yn=Rr.ReactCurrentBatchConfig,ae=0,nt=null,He=null,at=0,Zt=0,Do=fi(0),Ye=0,Il=null,Qi=0,yc=0,Np=0,hl=null,Wt=null,Op=0,Ko=1/0,wr=null,oc=!1,Yf=null,li=null,Ru=!1,ti=null,sc=0,fl=0,Zf=null,Au=-1,Du=0;function Rt(){return ae&6?je():Au!==-1?Au:Au=je()}function ai(e){return e.mode&1?ae&2&&at!==0?at&-at:T_.transition!==null?(Du===0&&(Du=o1()),Du):(e=he,e!==0||(e=window.event,e=e===void 0?16:h1(e.type)),e):1}function An(e,t,n,r){if(50<fl)throw fl=0,Zf=null,Error(W(185));Ll(e,n,r),(!(ae&2)||e!==nt)&&(e===nt&&(!(ae&2)&&(yc|=n),Ye===4&&Jr(e,at)),Ht(e,r),n===1&&ae===0&&!(t.mode&1)&&(Ko=je()+500,pc&&pi()))}function Ht(e,t){var n=e.callbackNode;z2(e,t);var r=Uu(e,e===nt?at:0);if(r===0)n!==null&&Wy(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Wy(n),t===1)e.tag===0?C_(L0.bind(null,e)):L1(L0.bind(null,e)),E_(function(){!(ae&6)&&pi()}),n=null;else{switch(s1(r)){case 1:n=op;break;case 4:n=r1;break;case 16:n=Hu;break;case 536870912:n=i1;break;default:n=Hu}n=Iw(n,_w.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _w(e,t){if(Au=-1,Du=0,ae&6)throw Error(W(327));var n=e.callbackNode;if(Uo()&&e.callbackNode!==n)return null;var r=Uu(e,e===nt?at:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=lc(e,r);else{t=r;var s=ae;ae|=2;var l=kw();(nt!==e||at!==t)&&(wr=null,Ko=je()+500,ji(e,t));do try{X_();break}catch(h){Pw(e,h)}while(!0);yp(),ic.current=l,ae=s,He!==null?t=0:(nt=null,at=0,t=Ye)}if(t!==0){if(t===2&&(s=Ef(e),s!==0&&(r=s,t=Kf(e,s))),t===1)throw n=Il,ji(e,0),Jr(e,r),Ht(e,je()),n;if(t===6)Jr(e,r);else{if(s=e.current.alternate,!(r&30)&&!Q_(s)&&(t=lc(e,r),t===2&&(l=Ef(e),l!==0&&(r=l,t=Kf(e,l))),t===1))throw n=Il,ji(e,0),Jr(e,r),Ht(e,je()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(W(345));case 2:Ai(e,Wt,wr);break;case 3:if(Jr(e,r),(r&130023424)===r&&(t=Op+500-je(),10<t)){if(Uu(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Rt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=If(Ai.bind(null,e,Wt,wr),t);break}Ai(e,Wt,wr);break;case 4:if(Jr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var u=31-Mn(r);l=1<<u,u=t[u],u>s&&(s=u),r&=~l}if(r=s,r=je()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*V_(r/1960))-r,10<r){e.timeoutHandle=If(Ai.bind(null,e,Wt,wr),r);break}Ai(e,Wt,wr);break;case 5:Ai(e,Wt,wr);break;default:throw Error(W(329))}}}return Ht(e,je()),e.callbackNode===n?_w.bind(null,e):null}function Kf(e,t){var n=hl;return e.current.memoizedState.isDehydrated&&(ji(e,t).flags|=256),e=lc(e,t),e!==2&&(t=Wt,Wt=n,t!==null&&$f(t)),e}function $f(e){Wt===null?Wt=e:Wt.push.apply(Wt,e)}function Q_(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],l=s.getSnapshot;s=s.value;try{if(!Dn(l(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jr(e,t){for(t&=~Np,t&=~yc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mn(t),r=1<<n;e[n]=-1,t&=~r}}function L0(e){if(ae&6)throw Error(W(327));Uo();var t=Uu(e,0);if(!(t&1))return Ht(e,je()),null;var n=lc(e,t);if(e.tag!==0&&n===2){var r=Ef(e);r!==0&&(t=r,n=Kf(e,r))}if(n===1)throw n=Il,ji(e,0),Jr(e,t),Ht(e,je()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ai(e,Wt,wr),Ht(e,je()),null}function Fp(e,t){var n=ae;ae|=1;try{return e(t)}finally{ae=n,ae===0&&(Ko=je()+500,pc&&pi())}}function Gi(e){ti!==null&&ti.tag===0&&!(ae&6)&&Uo();var t=ae;ae|=1;var n=yn.transition,r=he;try{if(yn.transition=null,he=1,e)return e()}finally{he=r,yn.transition=n,ae=t,!(ae&6)&&pi()}}function Mp(){Zt=Do.current,Ee(Do)}function ji(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,x_(n)),He!==null)for(n=He.return;n!==null;){var r=n;switch(mp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yu();break;case 3:Yo(),Ee(jt),Ee(xt),Pp();break;case 5:_p(r);break;case 4:Yo();break;case 13:Ee(Ne);break;case 19:Ee(Ne);break;case 10:wp(r.type._context);break;case 22:case 23:Mp()}n=n.return}if(nt=e,He=e=ui(e.current,null),at=Zt=t,Ye=0,Il=null,Np=yc=Qi=0,Wt=hl=null,Wi!==null){for(t=0;t<Wi.length;t++)if(n=Wi[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,l=n.pending;if(l!==null){var u=l.next;l.next=s,r.next=u}n.pending=r}Wi=null}return e}function Pw(e,t){do{var n=He;try{if(yp(),Ou.current=rc,nc){for(var r=Oe.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}nc=!1}if(Vi=0,tt=Xe=Oe=null,cl=!1,Tl=0,Lp.current=null,n===null||n.return===null){Ye=1,Il=t,He=null;break}e:{var l=e,u=n.return,h=n,f=t;if(t=at,h.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){var g=f,m=h,S=m.tag;if(!(m.mode&1)&&(S===0||S===11||S===15)){var E=m.alternate;E?(m.updateQueue=E.updateQueue,m.memoizedState=E.memoizedState,m.lanes=E.lanes):(m.updateQueue=null,m.memoizedState=null)}var P=y0(u);if(P!==null){P.flags&=-257,w0(P,u,h,l,t),P.mode&1&&v0(l,g,t),t=P,f=g;var k=t.updateQueue;if(k===null){var R=new Set;R.add(f),t.updateQueue=R}else k.add(f);break e}else{if(!(t&1)){v0(l,g,t),Ap();break e}f=Error(W(426))}}else if(ke&&h.mode&1){var A=y0(u);if(A!==null){!(A.flags&65536)&&(A.flags|=256),w0(A,u,h,l,t),gp(Zo(f,h));break e}}l=f=Zo(f,h),Ye!==4&&(Ye=2),hl===null?hl=[l]:hl.push(l),l=u;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var x=lw(l,f,t);c0(l,x);break e;case 1:h=f;var w=l.type,_=l.stateNode;if(!(l.flags&128)&&(typeof w.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(li===null||!li.has(_)))){l.flags|=65536,t&=-t,l.lanes|=t;var L=aw(l,h,t);c0(l,L);break e}}l=l.return}while(l!==null)}Tw(n)}catch(O){t=O,He===n&&n!==null&&(He=n=n.return);continue}break}while(!0)}function kw(){var e=ic.current;return ic.current=rc,e===null?rc:e}function Ap(){(Ye===0||Ye===3||Ye===2)&&(Ye=4),nt===null||!(Qi&268435455)&&!(yc&268435455)||Jr(nt,at)}function lc(e,t){var n=ae;ae|=2;var r=kw();(nt!==e||at!==t)&&(wr=null,ji(e,t));do try{G_();break}catch(s){Pw(e,s)}while(!0);if(yp(),ae=n,ic.current=r,He!==null)throw Error(W(261));return nt=null,at=0,Ye}function G_(){for(;He!==null;)Cw(He)}function X_(){for(;He!==null&&!S2();)Cw(He)}function Cw(e){var t=zw(e.alternate,e,Zt);e.memoizedProps=e.pendingProps,t===null?Tw(e):He=t,Lp.current=null}function Tw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=j_(n,t),n!==null){n.flags&=32767,He=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ye=6,He=null;return}}else if(n=B_(n,t,Zt),n!==null){He=n;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);Ye===0&&(Ye=5)}function Ai(e,t,n){var r=he,s=yn.transition;try{yn.transition=null,he=1,Y_(e,t,n,r)}finally{yn.transition=s,he=r}return null}function Y_(e,t,n,r){do Uo();while(ti!==null);if(ae&6)throw Error(W(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(W(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(I2(e,l),e===nt&&(He=nt=null,at=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ru||(Ru=!0,Iw(Hu,function(){return Uo(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=yn.transition,yn.transition=null;var u=he;he=1;var h=ae;ae|=4,Lp.current=null,H_(e,n),xw(n,e),g_(Rf),Vu=!!Tf,Rf=Tf=null,e.current=n,U_(n,e,s),x2(),ae=h,he=u,yn.transition=l}else e.current=n;if(Ru&&(Ru=!1,ti=e,sc=s),l=e.pendingLanes,l===0&&(li=null),P2(n.stateNode,r),Ht(e,je()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(oc)throw oc=!1,e=Yf,Yf=null,e;return sc&1&&e.tag!==0&&Uo(),l=e.pendingLanes,l&1?e===Zf?fl++:(fl=0,Zf=e):fl=0,pi(),null}function Uo(){if(ti!==null){var e=s1(sc),t=yn.transition,n=he;try{if(yn.transition=null,he=16>e?16:e,ti===null)var r=!1;else{if(e=ti,ti=null,sc=0,ae&6)throw Error(W(331));var s=ae;for(ae|=4,G=e.current;G!==null;){var l=G,u=l.child;if(G.flags&16){var h=l.deletions;if(h!==null){for(var f=0;f<h.length;f++){var g=h[f];for(G=g;G!==null;){var m=G;switch(m.tag){case 0:case 11:case 15:dl(8,m,l)}var S=m.child;if(S!==null)S.return=m,G=S;else for(;G!==null;){m=G;var E=m.sibling,P=m.return;if(yw(m),m===g){G=null;break}if(E!==null){E.return=P,G=E;break}G=P}}}var k=l.alternate;if(k!==null){var R=k.child;if(R!==null){k.child=null;do{var A=R.sibling;R.sibling=null,R=A}while(R!==null)}}G=l}}if(l.subtreeFlags&2064&&u!==null)u.return=l,G=u;else e:for(;G!==null;){if(l=G,l.flags&2048)switch(l.tag){case 0:case 11:case 15:dl(9,l,l.return)}var x=l.sibling;if(x!==null){x.return=l.return,G=x;break e}G=l.return}}var w=e.current;for(G=w;G!==null;){u=G;var _=u.child;if(u.subtreeFlags&2064&&_!==null)_.return=u,G=_;else e:for(u=w;G!==null;){if(h=G,h.flags&2048)try{switch(h.tag){case 0:case 11:case 15:vc(9,h)}}catch(O){De(h,h.return,O)}if(h===u){G=null;break e}var L=h.sibling;if(L!==null){L.return=h.return,G=L;break e}G=h.return}}if(ae=s,pi(),or&&typeof or.onPostCommitFiberRoot=="function")try{or.onPostCommitFiberRoot(uc,e)}catch{}r=!0}return r}finally{he=n,yn.transition=t}}return!1}function N0(e,t,n){t=Zo(n,t),t=lw(e,t,1),e=si(e,t,1),t=Rt(),e!==null&&(Ll(e,1,t),Ht(e,t))}function De(e,t,n){if(e.tag===3)N0(e,e,n);else for(;t!==null;){if(t.tag===3){N0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(li===null||!li.has(r))){e=Zo(n,e),e=aw(t,e,1),t=si(t,e,1),e=Rt(),t!==null&&(Ll(t,1,e),Ht(t,e));break}}t=t.return}}function Z_(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Rt(),e.pingedLanes|=e.suspendedLanes&n,nt===e&&(at&n)===n&&(Ye===4||Ye===3&&(at&130023424)===at&&500>je()-Op?ji(e,0):Np|=n),Ht(e,t)}function Rw(e,t){t===0&&(e.mode&1?(t=pu,pu<<=1,!(pu&130023424)&&(pu=4194304)):t=1);var n=Rt();e=Cr(e,t),e!==null&&(Ll(e,t,n),Ht(e,n))}function K_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rw(e,n)}function $_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),Rw(e,n)}var zw;zw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jt.current)Bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Bt=!1,W_(e,t,n);Bt=!!(e.flags&131072)}else Bt=!1,ke&&t.flags&1048576&&N1(t,$u,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Mu(e,t),e=t.pendingProps;var s=Qo(t,xt.current);Ho(t,n),s=Cp(null,t,r,e,s,n);var l=Tp();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bt(r)?(l=!0,Zu(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,xp(t),s.updater=mc,t.stateNode=s,s._reactInternals=t,Df(t,r,e,n),t=jf(null,t,r,!0,l,n)):(t.tag=0,ke&&l&&pp(t),Tt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Mu(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=J_(r),e=Nn(r,e),s){case 0:t=Bf(null,t,r,e,n);break e;case 1:t=E0(null,t,r,e,n);break e;case 11:t=S0(null,t,r,e,n);break e;case 14:t=x0(null,t,r,Nn(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Nn(r,s),Bf(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Nn(r,s),E0(e,t,r,s,n);case 3:e:{if(hw(t),e===null)throw Error(W(387));r=t.pendingProps,l=t.memoizedState,s=l.element,A1(e,t),ec(t,r,null,n);var u=t.memoizedState;if(r=u.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){s=Zo(Error(W(423)),t),t=_0(e,t,r,n,s);break e}else if(r!==s){s=Zo(Error(W(424)),t),t=_0(e,t,r,n,s);break e}else for(Kt=oi(t.stateNode.containerInfo.firstChild),$t=t,ke=!0,Fn=null,n=j1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Go(),r===s){t=Tr(e,t,n);break e}Tt(e,t,r,n)}t=t.child}return t;case 5:return b1(t),e===null&&Ff(t),r=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,u=s.children,zf(r,s)?u=null:l!==null&&zf(r,l)&&(t.flags|=32),dw(e,t),Tt(e,t,u,n),t.child;case 6:return e===null&&Ff(t),null;case 13:return fw(e,t,n);case 4:return Ep(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xo(t,null,r,n):Tt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Nn(r,s),S0(e,t,r,s,n);case 7:return Tt(e,t,t.pendingProps,n),t.child;case 8:return Tt(e,t,t.pendingProps.children,n),t.child;case 12:return Tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,l=t.memoizedProps,u=s.value,ve(qu,r._currentValue),r._currentValue=u,l!==null)if(Dn(l.value,u)){if(l.children===s.children&&!jt.current){t=Tr(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var h=l.dependencies;if(h!==null){u=l.child;for(var f=h.firstContext;f!==null;){if(f.context===r){if(l.tag===1){f=_r(-1,n&-n),f.tag=2;var g=l.updateQueue;if(g!==null){g=g.shared;var m=g.pending;m===null?f.next=f:(f.next=m.next,m.next=f),g.pending=f}}l.lanes|=n,f=l.alternate,f!==null&&(f.lanes|=n),Mf(l.return,n,t),h.lanes|=n;break}f=f.next}}else if(l.tag===10)u=l.type===t.type?null:l.child;else if(l.tag===18){if(u=l.return,u===null)throw Error(W(341));u.lanes|=n,h=u.alternate,h!==null&&(h.lanes|=n),Mf(u,n,t),u=l.sibling}else u=l.child;if(u!==null)u.return=l;else for(u=l;u!==null;){if(u===t){u=null;break}if(l=u.sibling,l!==null){l.return=u.return,u=l;break}u=u.return}l=u}Tt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ho(t,n),s=wn(s),r=r(s),t.flags|=1,Tt(e,t,r,n),t.child;case 14:return r=t.type,s=Nn(r,t.pendingProps),s=Nn(r.type,s),x0(e,t,r,s,n);case 15:return uw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Nn(r,s),Mu(e,t),t.tag=1,bt(r)?(e=!0,Zu(t)):e=!1,Ho(t,n),W1(t,r,s),Df(t,r,s,n),jf(null,t,r,!0,e,n);case 19:return pw(e,t,n);case 22:return cw(e,t,n)}throw Error(W(156,t.tag))};function Iw(e,t){return n1(e,t)}function q_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vn(e,t,n,r){return new q_(e,t,n,r)}function Dp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function J_(e){if(typeof e=="function")return Dp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===np)return 11;if(e===rp)return 14}return 2}function ui(e,t){var n=e.alternate;return n===null?(n=vn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wu(e,t,n,r,s,l){var u=2;if(r=e,typeof e=="function")Dp(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case To:return bi(n.children,s,l,t);case tp:u=8,s|=8;break;case lf:return e=vn(12,n,t,s|2),e.elementType=lf,e.lanes=l,e;case af:return e=vn(13,n,t,s),e.elementType=af,e.lanes=l,e;case uf:return e=vn(19,n,t,s),e.elementType=uf,e.lanes=l,e;case B0:return wc(n,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D0:u=10;break e;case W0:u=9;break e;case np:u=11;break e;case rp:u=14;break e;case Kr:u=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=vn(u,n,t,s),t.elementType=e,t.type=r,t.lanes=l,t}function bi(e,t,n,r){return e=vn(7,e,r,t),e.lanes=n,e}function wc(e,t,n,r){return e=vn(22,e,r,t),e.elementType=B0,e.lanes=n,e.stateNode={isHidden:!1},e}function rf(e,t,n){return e=vn(6,e,null,t),e.lanes=n,e}function of(e,t,n){return t=vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eP(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bh(0),this.expirationTimes=bh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bh(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Wp(e,t,n,r,s,l,u,h,f){return e=new eP(e,t,n,h,f),t===1?(t=1,l===!0&&(t|=8)):t=0,l=vn(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xp(l),e}function tP(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Co,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Lw(e){if(!e)return di;e=e._reactInternals;e:{if(Yi(e)!==e||e.tag!==1)throw Error(W(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(bt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(W(171))}if(e.tag===1){var n=e.type;if(bt(n))return I1(e,n,t)}return t}function Nw(e,t,n,r,s,l,u,h,f){return e=Wp(n,r,!0,e,s,l,u,h,f),e.context=Lw(null),n=e.current,r=Rt(),s=ai(n),l=_r(r,s),l.callback=t??null,si(n,l,s),e.current.lanes=s,Ll(e,s,r),Ht(e,r),e}function Sc(e,t,n,r){var s=t.current,l=Rt(),u=ai(s);return n=Lw(n),t.context===null?t.context=n:t.pendingContext=n,t=_r(l,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=si(s,t,u),e!==null&&(An(e,s,u,l),Nu(e,s,u)),u}function ac(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function O0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bp(e,t){O0(e,t),(e=e.alternate)&&O0(e,t)}function nP(){return null}var Ow=typeof reportError=="function"?reportError:function(e){console.error(e)};function jp(e){this._internalRoot=e}xc.prototype.render=jp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));Sc(e,t,null,null)};xc.prototype.unmount=jp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gi(function(){Sc(null,e,null,null)}),t[kr]=null}};function xc(e){this._internalRoot=e}xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=u1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qr.length&&t!==0&&t<qr[n].priority;n++);qr.splice(n,0,e),n===0&&d1(e)}};function bp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ec(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function F0(){}function rP(e,t,n,r,s){if(s){if(typeof r=="function"){var l=r;r=function(){var g=ac(u);l.call(g)}}var u=Nw(t,r,e,0,null,!1,!1,"",F0);return e._reactRootContainer=u,e[kr]=u.current,El(e.nodeType===8?e.parentNode:e),Gi(),u}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var h=r;r=function(){var g=ac(f);h.call(g)}}var f=Wp(e,0,!1,null,null,!1,!1,"",F0);return e._reactRootContainer=f,e[kr]=f.current,El(e.nodeType===8?e.parentNode:e),Gi(function(){Sc(t,f,n,r)}),f}function _c(e,t,n,r,s){var l=n._reactRootContainer;if(l){var u=l;if(typeof s=="function"){var h=s;s=function(){var f=ac(u);h.call(f)}}Sc(t,u,e,s)}else u=rP(n,t,e,s,r);return ac(u)}l1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=rl(t.pendingLanes);n!==0&&(sp(t,n|1),Ht(t,je()),!(ae&6)&&(Ko=je()+500,pi()))}break;case 13:Gi(function(){var r=Cr(e,1);if(r!==null){var s=Rt();An(r,e,1,s)}}),Bp(e,1)}};lp=function(e){if(e.tag===13){var t=Cr(e,134217728);if(t!==null){var n=Rt();An(t,e,134217728,n)}Bp(e,134217728)}};a1=function(e){if(e.tag===13){var t=ai(e),n=Cr(e,t);if(n!==null){var r=Rt();An(n,e,t,r)}Bp(e,t)}};u1=function(){return he};c1=function(e,t){var n=he;try{return he=e,t()}finally{he=n}};wf=function(e,t,n){switch(t){case"input":if(hf(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=fc(r);if(!s)throw Error(W(90));b0(r),hf(r,s)}}}break;case"textarea":U0(e,n);break;case"select":t=n.value,t!=null&&Wo(e,!!n.multiple,t,!1)}};K0=Fp;$0=Gi;var iP={usingClientEntryPoint:!1,Events:[Ol,Lo,fc,Y0,Z0,Fp]},Js={findFiberByHostInstance:Di,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},oP={bundleType:Js.bundleType,version:Js.version,rendererPackageName:Js.rendererPackageName,rendererConfig:Js.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=e1(e),e===null?null:e.stateNode},findFiberByHostInstance:Js.findFiberByHostInstance||nP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(el=__REACT_DEVTOOLS_GLOBAL_HOOK__,!el.isDisabled&&el.supportsFiber))try{uc=el.inject(oP),or=el}catch{}var el;en.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iP;en.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bp(t))throw Error(W(200));return tP(e,t,null,n)};en.createRoot=function(e,t){if(!bp(e))throw Error(W(299));var n=!1,r="",s=Ow;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Wp(e,1,!1,null,null,n,!1,r,s),e[kr]=t.current,El(e.nodeType===8?e.parentNode:e),new jp(t)};en.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=e1(t),e=e===null?null:e.stateNode,e};en.flushSync=function(e){return Gi(e)};en.hydrate=function(e,t,n){if(!Ec(t))throw Error(W(200));return _c(null,e,t,!0,n)};en.hydrateRoot=function(e,t,n){if(!bp(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,s=!1,l="",u=Ow;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=Nw(t,null,e,1,n??null,s,!1,l,u),e[kr]=t.current,El(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new xc(t)};en.render=function(e,t,n){if(!Ec(t))throw Error(W(200));return _c(null,e,t,!1,n)};en.unmountComponentAtNode=function(e){if(!Ec(e))throw Error(W(40));return e._reactRootContainer?(Gi(function(){_c(null,null,e,!1,function(){e._reactRootContainer=null,e[kr]=null})}),!0):!1};en.unstable_batchedUpdates=Fp;en.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ec(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return _c(e,t,n,!1,r)};en.version="18.2.0-next-9e3b772b8-20220608"});var Hp=gt((qz,Aw)=>{"use strict";function Mw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mw)}catch(e){console.error(e)}}Mw(),Aw.exports=Fw()});var Ww=gt(Up=>{"use strict";var Dw=Hp();Up.createRoot=Dw.createRoot,Up.hydrateRoot=Dw.hydrateRoot;var Jz});var nk={};aE(nk,{Atlas:()=>Fh,AtlasAuto:()=>i2,AtlasContext:()=>qn,BoundsContext:()=>Gr,Box:()=>Rn,BrowserEventManager:()=>Ni,CanvasRenderer:()=>Ls,CompositeRenderer:()=>Ri,CompositeResource:()=>Cs,DebugRenderer:()=>Ns,DrawBox:()=>o2,Geometry:()=>Ti,GridBuilder:()=>oh,HTMLPortal:()=>Pc,ImageService:()=>ZP,ImageTexture:()=>Vr,ModeContext:()=>$n,ModeProvider:()=>QE,OverlayRenderer:()=>Li,ReactAtlas:()=>So,RegionHighlight:()=>sP,ResizeWorldItem:()=>Xp,Runtime:()=>Kn,SingleImage:()=>Ge,StaticRenderer:()=>Vs,Text:()=>yr,TileSet:()=>Zp,TiledImage:()=>dn,WebGLRenderer:()=>bs,World:()=>hn,WorldObject:()=>Zn,Zone:()=>Jd,activateEvents:()=>Lh,applyProps:()=>Ih,bounceOut:()=>Rs,canDrag:()=>ek,createDefaultEventMap:()=>$d,defaultConfig:()=>Nv,defaultPreset:()=>Us,easingFunctions:()=>zn,fromImage:()=>cE,getId:()=>Kp,getTileFromCanvas:()=>yS,getTileFromImageService:()=>Oc,getTiles:()=>YP,getTilesFromManifest:()=>wS,mergeStyles:()=>tk,popmotionController:()=>Os,presets:()=>Oh,staticPreset:()=>Nh,supportedEventAttributes:()=>mo,supportedEventMap:()=>Tn,unmountComponentAtNode:()=>wo,useAfterFrame:()=>Mh,useAfterPaint:()=>KP,useAtlas:()=>Gs,useAtlasImage:()=>$P,useBeforeFrame:()=>qP,useCanvas:()=>Ah,useControlledAnnotationList:()=>JP,useFrame:()=>Fi,useMode:()=>Ms,useResizeWorldItem:()=>Gp,useRuntime:()=>st,useWorldEvent:()=>kc});var mo=["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"];function $d(){return mo.reduce((e,t)=>(e[t]=[],e),{})}var Tn=mo.reduce((e,t)=>(e[t.slice(2).toLowerCase()]=t,e[t]=t,e),{});var Ur=(e,t,n)=>{let r=e.length,s=n||V(r);for(let l=0;l<r;l++)s[l]=l%5===0?e[l+1]<t[3]&&e[l+3]>t[1]&&e[l+2]<t[4]&&e[l+4]>t[2]?1:0:e[l];return s};function V(e,t,n){return new Float32Array(e,t,n)}var Gg=(e,t,n)=>{let r=e[1]<=t[3]&&e[3]>=t[1]&&e[2]<=t[4]&&e[4]>=t[2],s=n||V(5);return r?(s[0]=1,s[1]=Math.max(e[1],t[1]),s[2]=Math.max(e[2],t[2]),s[3]=Math.min(e[3],t[3]),s[4]=Math.min(e[4],t[4]),s):(s[0]=0,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s)},Xg=e=>e.length/5;var At=(e,t,n)=>{let r=n||V(9);return r[0]=e[0]*t[0]+e[1]*t[3]+e[2]*t[6],r[1]=e[0]*t[1]+e[1]*t[4]+e[2]*t[7],r[2]=e[0]*t[2]+e[1]*t[5]+e[2]*t[8],r[3]=e[3]*t[0]+e[4]*t[3]+e[5]*t[6],r[4]=e[3]*t[1]+e[4]*t[4]+e[5]*t[7],r[5]=e[3]*t[2]+e[4]*t[5]+e[5]*t[8],r[6]=e[6]*t[0]+e[7]*t[3]+e[8]*t[6],r[7]=e[6]*t[1]+e[7]*t[4]+e[8]*t[7],r[8]=e[6]*t[2]+e[7]*t[5]+e[8]*t[8],r},ee=class e{constructor(t){this.index=0,this.length=t,this.points=V(this.length)}static grid(t=1,n=1){return new e(5*t*n)}static point(t,n){let r=V(5);return r[0]=1,r[1]=t,r[2]=n,r[3]=t,r[4]=n,r}static positionPair(t){let n=V(5);return n[0]=1,n[1]=t.x1,n[2]=t.y1,n[3]=t.x2,n[4]=t.y2,n}static projection(t){return e.singleBox(t.width,t.height,t.x,t.y)}static singleBox(t,n,r=0,s=0){let l=V(5);return l[0]=1,l[1]=r,l[2]=s,l[3]=t+r,l[4]=n+s,l}row(t){return t(this)}addPoints(t,n,r,s){return this.points[this.index]=1,this.points[1+this.index]=t,this.points[2+this.index]=n,this.points[3+this.index]=r,this.points[4+this.index]=s,this.index+=5,this}addBox(t,n,r,s){return this.addPoints(t,n,t+r,n+s),this}build(){return this.points}};var Pt=(e,t)=>{let n=e.length;for(let r=0;r<n;r++)e[r]=r%5===0?t[6]*e[r+1]+t[7]*e[r+2]+t[8]*e[r]:r%5%2===1?t[0]*e[r]+t[1]*e[r+1]+t[2]:t[3]*e[r-1]+t[4]*e[r]+t[5];return e},Qt=e=>{let t=V(9);return t[0]=e,t[4]=e,t[8]=1,t},Re=(e,t)=>{let n=V(9);return n[0]=1,n[2]=e,n[4]=1,n[5]=t,n[8]=1,n},vr=(e,t,n)=>At(Re((1-e)*t,(1-e)*n),Qt(e)),Gt=(e,t,n)=>{let r=e.length,s=n&&n.length>=r?n.slice(0,r):V(r);for(let l=0;l<r;l++)s[l]=l%5===0?t[6]*e[l+1]+t[7]*e[l+2]+t[8]*e[l]:l%5%2===1?t[0]*e[l]+t[1]*e[l+1]+t[2]:t[3]*e[l-1]+t[4]*e[l]+t[5];return s};var Yg="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Yn=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+=Yg[n[e]&63];return t};var Ae=class{constructor(){v(this,"__id");v(this,"__revision",0);v(this,"__host");v(this,"__onCreate");v(this,"__parent");v(this,"__owner",{value:void 0});v(this,"__state",{});v(this,"eventHandlers");v(this,"scale",1);v(this,"layers",[]);v(this,"time",[]);v(this,"_crop");v(this,"cropData");v(this,"id");v(this,"addEventListener",(t,n,r)=>{let s=Tn[t];if(!this.eventHandlers[s])throw new Error(`Unknown event ${s}`);this.eventHandlers[s].indexOf(n)===-1&&this.eventHandlers[s].push(n)});v(this,"removeEventListener",(t,n)=>{let r=Tn[t];if(!this.eventHandlers[r]){console.warn(`Unknown event ${r}`);return}this.eventHandlers[r].indexOf(n)!==-1&&(this.eventHandlers[r]=this.eventHandlers[r].filter(s=>s!==n))});this.id=this.__id=Yn(),this.eventHandlers=$d()}get crop(){return this._crop}set crop(t){this._crop=t}getObjectsAt(t){return[]}getAllPointsAt(t,n,r){return[]}getScheduledUpdates(t,n){return[]}dispatchEvent(t,n){let r=this.eventHandlers[t],s=r?r.length:0,l=!1;if(s)for(let u=0;u<s;u++)try{r[u](n),l=!0}catch(h){console.error(t,h)}return l}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(t,n){Pt(this.points,Re(t,n))}atScale(t){Pt(this.points,vr(t,this.x,this.y)),this.scale*=t}transform(t){Pt(this.points,t)}applyProps(t){this.__revision++}appendChild(t){}removeChild(t){}insertBefore(t,n){}hideInstance(){}};var Ge=class e extends Ae{constructor(n){super();v(this,"type","spacial-content");v(this,"id");v(this,"uri");v(this,"display");v(this,"points");v(this,"priority");v(this,"style",{opacity:1});if(!n)this.id="",this.uri="",this.display={x:0,y:0,scale:1,width:0,height:0,points:V(5)},this.points=V(5);else{let r=n.scale||1;this.id=n.id||n.uri,this.uri=n.uri,this.points=ee.singleBox(n.width,n.height,n.x,n.y),this.display={x:0,y:0,scale:r,width:n.width/r,height:n.height/r,points:ee.singleBox(n.width/r,n.height/r),rotation:n?.rotation}}}applyProps(n){let r=n.display?n.display.width:n.target.width,s=n.target.width/r;if(this.id=n.id||n.uri,this.uri=n.uri,this.points.set(ee.singleBox(n.target.width,n.target.height,n.target.x,n.target.y)),n.style&&typeof n.style.opacity<"u"&&(this.style.opacity=n.style.opacity),n.crop){this.cropData=n.crop;let l=ee.singleBox(n.crop.width,n.crop.height,n.crop.x,n.crop.y);Pt(l,Re(-n.crop.x,-n.crop.y)),this.crop?this.crop.set(l):this.crop=V(l)}n.display?(this.display.scale=s,this.display.width=n.display.width,this.display.height=n.display.height,this.display.rotation=n.display.rotation,this.display.points=ee.singleBox(n.display.width,n.display.height)):(this.display.scale=s,this.display.width=n.target.width/s,this.display.height=n.target.height/s,this.display.points=ee.singleBox(n.target.width/s,n.target.height/s))}getAllPointsAt(n,r,s){return[[this,this.crop||this.points,r]]}static fromSvg(n,r,s,l){return e.fromImage("data:image/svg+xml;base64,"+btoa(n),r,s,l)}static fromImage(n,r,s,l){let u=new e;return u.applyProps({uri:n,id:l,display:s,target:r}),u}getImageUrl(){return this.uri}};var Vr=class extends Ae{constructor(n){super();v(this,"type","spacial-content");v(this,"id");v(this,"uri");v(this,"display");v(this,"points");v(this,"getTexture");if(this.getTexture=()=>({source:void 0,hash:-1}),!n)this.id="",this.uri="",this.display={x:0,y:0,scale:1,width:0,height:0,points:V(5)},this.points=V(5);else{let r=n.scale||1;this.id=n.id||n.uri,this.uri=n.uri,this.points=ee.singleBox(n.width,n.height),this.display={x:0,y:0,scale:r,width:n.width/r,height:n.height/r,points:r!==1?ee.singleBox(n.width/r,n.height/r):this.points}}}applyProps(n){let r=n.display?n.display.width:n.target.width,s=n.target.width/r;this.id=n.id,this.points.set(ee.singleBox(n.target.width,n.target.height)),this.display.scale=s,this.display.width=n.target.width/s,this.display.height=n.target.height/s,this.getTexture=n.getTexture,this.display.points=s!==1?ee.singleBox(n.target.width/s,n.target.height/s):this.points}getAllPointsAt(n,r,s){return[[this,this.points,r]]}};function Zg(e,t,n=1){let r=t.length;if(r===0)throw new Error("No resources passed in.");let s=0,l=1/0;for(let u=0;u<r&&!(!t[u]||!t[u].display);u++){let h=qd(t[u].display.scale,e/(n||1));h<l&&(l=h,s=u)}return s}function qd(e,t){return Math.abs(e-t)}function Ci(e,t){let n=qd(e.x,t.x),r=qd(e.y,t.y);return Math.sqrt(Math.pow(n,2)+Math.pow(r,2))}function Kg(e){let t=e.length;return e.indexOf("/info.json")===t-10?e.slice(0,-10):e}function Ia(e,t,n){return Math.min(Math.max(e,t),n)}var dn=class e extends Ae{constructor(n){super();v(this,"id");v(this,"type","spacial-content");v(this,"display");v(this,"tileWidth");v(this,"style",{opacity:1});v(this,"points");v(this,"service");v(this,"format","jpg");v(this,"crop2");v(this,"version3");v(this,"tileUrl");this.tileUrl=Kg(n.url),this.id=n.id||`${this.tileUrl}--${n.scaleFactor}`,this.points=n.displayPoints?n.displayPoints:Gt(n.points,Qt(n.scaleFactor)),this.tileWidth=n.tileWidth,this.version3=n.version3,this.display={x:0,y:0,width:n.width/n.scaleFactor,height:n.height/n.scaleFactor,points:n.points,scale:n.scaleFactor},n.format&&(this.format=n.format)}applyProps(n){if(n.style&&typeof n.style.opacity<"u"&&(this.style.opacity=n.style.opacity),n.service!==this.service&&(this.service=n.service),n.format?this.format=n.format:this.format="jpg",typeof n.version3<"u"&&(this.version3=n.version3),n.crop){this.cropData=n.crop;let r=V([...this.points]),s=r.length/5,l=n.crop.x||0,u=n.crop.y||0,h=n.crop.x+n.crop.width,f=n.crop.y+n.crop.height;for(let g=0;g<s;g++){let m=g*5;r[m+1]<h&&r[m+3]>l&&r[m+2]<f&&r[m+4]>u?(r[m+1]=Ia(r[m+1],l,h),r[m+3]=Ia(r[m+3],l,h),r[m+2]=Ia(r[m+2],u,f),r[m+4]=Ia(r[m+4],u,f)):r[m]=0}Pt(r,Re(-n.crop.x,-n.crop.y)),this.crop?this.crop.set(r):this.crop=r}}static fromTile(n,r,s,l,u,h,f,g){s.height=s.height?s.height:s.width;let m=f?Math.floor(r.width/l):Math.ceil(r.width/l),S=f?Math.floor(r.height/l):Math.ceil(r.height/l),E=Math.ceil(m/s.width),P=Math.ceil(S/s.height),k=ee.grid(E,P),R=ee.grid(E,P),A=u?u["@context"]?Array.isArray(u["@context"])?u["@context"]:[u["@context"]]:[]:[],x=typeof g<"u"?g:A.indexOf("http://iiif.io/api/image/3/context.json")!==-1;for(let _=0;_<P;_++)for(let L=0;L<E;L++){let O=L*s.width,z=_*s.height;R.addPoints(O*l,z*l,L===E-1?r.width:(O+s.width)*l,_===P-1?r.height:(z+s.height)*l),k.addPoints(O,z,L===E-1?m:O+s.width,_===P-1?S:z+s.height)}let w=new e({url:n,scaleFactor:l,points:k.build(),displayPoints:R.build(),width:r.width,height:r.height,tileWidth:s.width,format:h,version3:x});return w.applyProps({service:u}),w}getImageUrl(n){let r=this.points.slice(n*5,n*5+5),s=r[3]-r[1],l=r[4]-r[2],u=Math.ceil(s/this.display.scale),h=Math.ceil(l/this.display.scale),f=`${u>this.tileWidth?this.tileWidth:u},`;return this.version3&&(f+=`${h>this.tileWidth?this.tileWidth:h}`),`${this.tileUrl}/${r[1]},${r[2]},${s},${l}/${f}/0/default.${this.format||"jpg"}`}getAllPointsAt(n,r,s){let l=Ur(this.crop||this.points,n);return[[this,l,r]]}transform(n){Pt(this.points,n)}getScheduledUpdates(n,r){return[]}};var La=class extends Ae{constructor(){super(...arguments);v(this,"type","spacial-content")}getAllPointsAt(n,r,s){return[[this,this.points,r]]}};var Cs=class extends La{constructor(n){super();v(this,"id");v(this,"display");v(this,"points");v(this,"images",[]);v(this,"allImages",[]);v(this,"scaleFactors",[]);v(this,"aggregateBuffer",V(9));v(this,"lazyLoader");v(this,"isFullyLoaded",!1);v(this,"maxScaleFactor",0);v(this,"renderOptions");v(this,"_scheduleSortByScales",!1);v(this,"_sortByScales",()=>{this._scheduleSortByScales=!1,this.allImages.sort((r,s)=>s.display.width-r.display.width),this.images=[];let n=.1;for(let r of this.allImages){if(r.display.width<this.renderOptions.minSize&&r.display.height<this.renderOptions.minSize&&!r.priority||r instanceof Ge&&(r.display.width>this.renderOptions.maxImageSize||r.display.height>this.renderOptions.maxImageSize)&&!r.priority)continue;if(Math.abs(r.display.scale-n)<.25||r.priority){let l=this.images.pop();l&&(l instanceof Ge||l.priority)?(r.priority&&this.images.push(r),this.images.push(l)):r&&this.images.push(r)}else r&&this.images.push(r);n=r.display.scale}this.images.length===0&&(this.images=[...this.allImages]),this.scaleFactors=this.images.map(r=>r.display.scale),this.maxScaleFactor=Math.max(...this.scaleFactors)});v(this,"loadFullResource",async()=>{if(!this.isFullyLoaded&&this.lazyLoader){this.isFullyLoaded=!0;let n=await this.lazyLoader();this.addImages(n)}});v(this,"fallback",[this.loadFullResource]);this.id=n.id,this.points=ee.singleBox(n.width,n.height),this.lazyLoader=n.loadFullImages,n.loadFullImages||(this.isFullyLoaded=!0),this.display={x:0,y:0,points:ee.singleBox(n.width,n.height),height:n.height,width:n.width,scale:1},this.renderOptions={renderSmallestFallback:!0,renderLayers:3,minSize:255,maxImageSize:2048,quality:1.5,...n.renderOptions||{}},this.addImages(n.images)}applyProps(n){typeof n.renderSmallestFallback<"u"&&n.renderSmallestFallback!==this.renderOptions.renderSmallestFallback&&(this.renderOptions.renderSmallestFallback=n.renderSmallestFallback),typeof n.renderLayers<"u"&&n.renderLayers!==this.renderOptions.renderLayers&&(this.renderOptions.renderLayers=n.renderLayers),typeof n.minSize<"u"&&n.minSize!==this.renderOptions.minSize&&(this.renderOptions.minSize=n.minSize),typeof n.maxImageSize<"u"&&n.maxImageSize!==this.renderOptions.maxImageSize&&(this.renderOptions.maxImageSize=n.maxImageSize),typeof n.quality<"u"&&n.quality!==this.renderOptions.quality&&(this.renderOptions.quality=n.quality)}appendChild(n){this.addImages([n])}removeChild(n){this.images.indexOf(n)!==-1&&(this.images=this.images.filter(r=>r!==n),this.sortByScales())}insertBefore(n,r){this.addImages([n])}hideInstance(){}addImages(n){for(let r of n)r.__parent=this,r.__owner=this.__owner;this.allImages.push(...n.filter(Boolean)),this.sortByScales()}sortByScales(){this._scheduleSortByScales=!0}getScheduledUpdates(n,r){return this._scheduleSortByScales?[this._sortByScales]:this.isFullyLoaded?[]:r>1/this.maxScaleFactor?this.fallback:[]}getAllPointsAt(n,r,s){if(this.images.length===0)return[];let l=Zg(1/(s||1)/(window.devicePixelRatio||1),this.images,this.renderOptions.quality),u=this.images.length,h=r?At(r,Re(this.x,this.y)):Re(this.x,this.y);if(l!==this.images.length-1&&this.images[l+1]){let f=[];for(let S=u-1;S>=l;S--)f.push(S);let g=f[0];this.renderOptions.renderLayers&&(f=f.slice(-Math.min(f.length,this.renderOptions.renderLayers))),this.renderOptions.renderSmallestFallback&&f.indexOf(g)===-1&&f.unshift(g);let m=[];for(let S=0;S<f.length;S++)m.push(...this.images[f[S]].getAllPointsAt(n,h,s));return m}return this.images[l].getAllPointsAt(n,h,s)}};function Na(e,t,n,r,s){let l=Math.PI/180*s,u=Math.cos(l),h=Math.sin(l),f=u*(n-e)+h*(r-t)+e,g=u*(r-t)-h*(n-e)+t;return[f,g]}var Zn=class e extends Ae{constructor(n,r){super();v(this,"id");v(this,"type","world-object");v(this,"scale");v(this,"layers");v(this,"points");v(this,"worldPoints");v(this,"intersectionBuffer",V(5));v(this,"aggregateBuffer",V(9));v(this,"invertedBuffer",V(9));v(this,"rotation",0);v(this,"filteredPointsBuffer");v(this,"_updatedList",[]);v(this,"geometry");let{x:s=0,y:l=0}=r||{};n?(this.id=n.id||"",this.scale=1,this.layers=n.layers,this.points=V([1,s,l,s+n.width,l+n.height]),this.worldPoints=V([1,s,l,s+n.width,l+n.height]),this.filteredPointsBuffer=V(n.layers.length*5)):(this.id="",this.scale=1,this.layers=[],this.points=V(5),this.worldPoints=V(5),this.filteredPointsBuffer=V(5))}static createWithProps(n){let r=new e;return r.applyProps(n),r}applyProps(n){let r=n.x||0,s=n.y||0;this.id=n.id;let l=typeof n.scale<"u"?n.scale:this.scale;this.points[0]=1,this.points[1]=r,this.points[2]=s,this.points[3]=r+n.width,this.points[4]=s+n.height,this.rotation=n.rotation||0,this.worldPoints[3]=this.worldPoints[1]+n.width,this.worldPoints[4]=this.worldPoints[2]+n.height,n.scale&&n.scale!==1&&this.atScale(l),this.scale=l}appendChild(n){n.points[0]===0&&n.points.set(this.points),n.__owner.value=this,this.addLayers([n])}removeChild(n){this.layers=this.layers.filter(r=>r!==n),this.filteredPointsBuffer=V(this.layers.length*5)}insertBefore(n,r){let s=this.layers.indexOf(r);if(s===-1||this.layers.indexOf(n)!==-1)return;let l=this.layers.slice(0,s),u=this.layers.slice(s);this.layers=[...l,n,...u]}hideInstance(){console.warn("hideInstance: not yet implemented")}getObjectsAt(n,r){if(this.rotation&&(n=this.applyRotation(n)),Ur(this.points,n,this.filteredPointsBuffer)[0]===0)return[];let l=this.layers.length,u=[];for(let h=0;h<l;h++){let f=this.layers[h];if(r&&f.isShape){let m=Gt(f.points,Re(this.x,this.y));if(!f.intersects([n[1]-m[1],n[2]-m[2]]))continue}if(Ur(Gt(f.points,Re(this.x,this.y)),n,this.filteredPointsBuffer)[0]!==0&&u.push(f),r){let m=f;u.push(...m.getObjectsAt(n,r))}}return u}applyRotation(n){if(this.rotation){let r={x:n[1],y:n[2]},s={x:n[1],y:n[4]},l={x:n[3],y:n[2]},u={x:n[3],y:n[4]},h=this.points[1]+(this.points[3]-this.points[1])/2,f=this.points[2]+(this.points[4]-this.points[2])/2,[g,m]=Na(h,f,r.x,r.y,this.rotation),[S,E]=Na(h,f,s.x,s.y,this.rotation),[P,k]=Na(h,f,l.x,l.y,this.rotation),[R,A]=Na(h,f,u.x,u.y,this.rotation),x=Math.min(g,S,P,R),w=Math.max(g,S,P,R),_=Math.min(m,E,k,A),L=Math.max(m,E,k,A);return V([n[0],x,_,w,L])}return n}getAllPointsAt(n,r,s){let l=At(Re(this.x,this.y),Qt(this.scale),this.aggregateBuffer);this.rotation&&(n=this.applyRotation(n));let u=Gg(n,this.points,this.intersectionBuffer),h=this.layers.length,f=[],g=Gt(u,At(Qt(1/this.scale),Re(-this.x,-this.y),this.invertedBuffer)),m=r?At(r,l,this.aggregateBuffer):l,S=s*this.scale;for(let E=0;E<h;E++)f.push(...this.layers[E].getAllPointsAt(g,m,S));return f}addLayers(n){let r=[];for(let s of n)this.layers.indexOf(s)===-1&&(r.push(s),s.points.length===5&&(s.points[1]<this.worldPoints[1]/this.scale||s.points[2]<this.worldPoints[2]/this.scale||s.points[3]>this.worldPoints[3]/this.scale||s.points[4]>this.worldPoints[4]/this.scale)&&(s.crop=s.crop||V([1,Math.max(this.worldPoints[1]/this.scale,s.points[1]),Math.max(this.worldPoints[2]/this.scale,s.points[2]),Math.min(this.worldPoints[3]/this.scale,s.points[3]),Math.min(this.worldPoints[4]/this.scale,s.points[4])])));this.layers=this.layers.concat(r),this.filteredPointsBuffer=V(this.layers.length*5)}getScheduledUpdates(n,r){let s=this.layers.length;this._updatedList=[];let l=r*this.scale;for(let u=0;u<s;u++){let h=this.layers[u].getScheduledUpdates(n,l);h&&this._updatedList.push(...h)}return this._updatedList}};var hn=class e extends Ae{constructor(n=0,r=0,s=100,l="left-to-right"){super();v(this,"id","world");v(this,"_width");v(this,"_height");v(this,"aspectRatio");v(this,"viewingDirection");v(this,"aggregateBuffer",V(9));v(this,"isDirty",!1);v(this,"zones",[]);v(this,"filteredPointsBuffer");v(this,"selectedZone");v(this,"triggerQueue",[]);v(this,"activatedEvents",[]);v(this,"_updatedList",[]);v(this,"translationBuffer",V(9));v(this,"needsRecalculate",!0);v(this,"emptyPaintables",[]);v(this,"renderOrder",[]);v(this,"points");v(this,"objects",[]);v(this,"subscriptions",[]);v(this,"_propagateEventTargets",[]);v(this,"_alreadyFlushed",[]);this._width=n,this._height=r,this.aspectRatio=Number.isNaN(n/r)?1:n/r,this.viewingDirection=l,this.points=V(s*5),this.filteredPointsBuffer=V(s*5)}get x(){return 0}get y(){return 0}get width(){return this._width}get height(){return this._height}static withProps(n){let r=new e;return r.applyProps(n),r}applyProps(n){typeof n.width<"u"&&typeof n.height<"u"&&(n.width!==this._width||n.height!==this._height)&&this.resize(n.width,n.height),n.viewingDirection!==this.viewingDirection&&(this.viewingDirection=n.viewingDirection,this.triggerRepaint())}propagateTouchEvent(n,r,s){let l=[];for(let u of s)if(u.x&&u.y){let h=ee.singleBox(1,1,u.x,u.y);l.push(this.getObjectsAt(h,!0).reverse())}return l.map(u=>this.propagateEvent(n,r,u,{bubbles:!0,cancelable:!0}))}propagatePointerEvent(n,r,s,l,u={}){let h=ee.singleBox(1,1,s,l),f=this.getObjectsAt(h,!0).reverse();return this.propagateEvent(n,r,f,u)}propagateEvent(n,r,s,{bubbles:l=!1,cancelable:u=!1}={}){r.atlasTarget=this,this._propagateEventTargets.length=1,this._propagateEventTargets[0]=this;let h=!1;r.stopPropagation=()=>{h=!0};let f=s.length;for(let S=f-1;S>=0;S--){this._propagateEventTargets.unshift(s[S][0]);let E=s[S][1].length;if(E)for(let P=0;P<E;P++)this._propagateEventTargets.unshift(s[S][1][P])}let g=this._propagateEventTargets.length,m=!1;for(let S=0;S<g&&(r.atlasTarget=this._propagateEventTargets[S],r.atlasWorld=this,m=this._propagateEventTargets[S].dispatchEvent(n,r)||m,!h);S++);return m&&this.triggerRepaint(),this._propagateEventTargets}appendChild(n){let r=this.appendWorldObject(n);this.renderOrder.push(r/5)}removeChild(n){let r=this.objects.indexOf(n);if(r===-1){for(let s of this.objects)if(s&&s.id===n.id){this.removeChild(s);return}return}this.objects[r]=null,this.renderOrder=this.renderOrder.filter(s=>s!==r),this.points[r*5]=0,this.triggerRepaint(),this.needsRecalculate=!0}insertBefore(n,r){let s=this.objects.indexOf(r);if(s===-1)return;let l=this.appendWorldObject(n);this.renderOrder.splice(s-1,0,l/5)}hideInstance(){}asWorldObject(){return null}addZone(n){this.zones.push(n)}selectZone(n){if(typeof n=="string"){let r=this.zones.length;for(let s=0;s<r;s++)if(this.zones[s].id===n){this.selectedZone=s,this.trigger("zone-changed");return}}else this.zones[n]&&(this.selectedZone=n,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(Xg(this.points)===this.objects.length){let n=this.points,r=V(this.points.length*2);r.set(n,0),this.points=r}}appendWorldObject(n){this.checkResizeInternalBuffer();let r=this.objects.length*5,s=n.points;return n.points=this.points.subarray(this.objects.length*5,this.objects.length*5+5),n.points[1]=s[1],n.points[2]=s[2],n.points[3]=s[3],n.points[4]=s[4],this.objects.push(n),this.filteredPointsBuffer=V(this.objects.length*5),this.needsRecalculate=!0,this.triggerRepaint(),r}recalculateWorldSize(){let n=!1;if(this.needsRecalculate){let r=new Int32Array(this.objects.length),s=new Int32Array(this.objects.length),l=this.renderOrder.length;for(let f=0;f<l;f++){let g=this.renderOrder[f];this.objects[g]&&(r[f]=this.points[g*5+3],s[f]=this.points[g*5+4])}let u=Math.max(...r);u!==this._width&&(this._width=u,n=!0);let h=Math.max(...s);h!==this._height&&(this._height=h,n=!0),n&&this.trigger("recalculate-world-size",{width:u,height:h}),this.needsRecalculate=!1}return n}addObjectAt(n,r){r.width&&!r.height?r.height=r.width/n.width*n.height:r.height&&!r.width&&(r.width=r.height/n.height*n.width),(!r||!r.width||!r.height)&&(r.width=n.width,r.height=n.height);let{width:s,x:l,y:u}=r,h=s/n.width;this.checkResizeInternalBuffer(),this.points.set(ee.singleBox(n.width,n.height,0,0),this.objects.length*5);let f=new Zn(n);return f.points=this.points.subarray(this.objects.length*5,this.objects.length*5+5),this.objects.push(f),this.scaleWorldObject(this.objects.length-1,h),this.translateWorldObject(this.objects.length-1,l,u),this.filteredPointsBuffer=V(this.points.length*2),this.triggerRepaint(),this.needsRecalculate=!0,f}scaleWorldObject(n,r){Pt(this.points.subarray(n*5,n*5+5),vr(r,this.points[n*5+1],this.points[n*5+2]));let s=this.objects[n];s&&(s.atScale(r),this.triggerRepaint())}translateWorldObject(n,r,s){Pt(this.points.subarray(n*5,n*5+5),Re(r,s));let l=this.objects[n];l&&(l.translate(r,s),this.triggerRepaint())}resize(n,r){return this._width=n,this._height=r,this.aspectRatio=n/r,this.triggerRepaint(),this}getObjects(){return this.objects}getPoints(){return this.points}getPointsFromViewer(n,r){let s=ee.singleBox(n.width,n.height,n.x,n.y);return this.getPointsAt(s,r,n.scale)}addLayoutSubscriber(n){return this.subscriptions.push(n),()=>{this.subscriptions.splice(this.subscriptions.indexOf(n),1)}}getScheduledUpdates(n,r){let s=Ur(this.points,n,this.filteredPointsBuffer),l=this.objects.length;this._updatedList=[];for(let u=0;u<l;u++)if(s[u*5]!==0){if(!this.objects[u])continue;this._updatedList.push(...this.objects[u].getScheduledUpdates(n,r))}return this._updatedList}getObjectsAt(n,r=!1){let s=this.getActiveZone(),l=Ur(this.points,n,this.filteredPointsBuffer),u=this.renderOrder.length,h=[];for(let f=0;f<u;f++){let g=this.renderOrder[f];if(l[g*5]!==0){let m=this.objects[g];if(!m||s&&s.objects.indexOf(m)===-1)continue;if(m.type!=="world-object"){h.push([m,[m]]);continue}r?h.push([m,m.getObjectsAt(n,r)]):h.push([m,this.emptyPaintables])}}return h}getPointsAt(n,r,s=1){let l=this.getObjectsAt(n),u=At(Qt(s),Re(-n[1],-n[2]),this.translationBuffer),h=r?At(r,u,this.aggregateBuffer):u,f=l.length,g=[];for(let m=0;m<f;m++)l[m]&&g.push(...l[m][0].getAllPointsAt(n,h,s));return g}flushSubscriptions(){if(this.triggerQueue.length){this._alreadyFlushed=[];let n=this.triggerQueue.length;for(let r=0;r<n;r++){if(this._alreadyFlushed.indexOf(this.triggerQueue[r][0])!==-1)continue;typeof this.triggerQueue[r][1]>"u"&&this._alreadyFlushed.push(this.triggerQueue[r][0]);let s=this.subscriptions.length;for(let l=0;l<s;l++)this.subscriptions[l].apply(null,this.triggerQueue[r])}this.triggerQueue=[]}}trigger(n,r){this.triggerQueue.push([n,r])}triggerEventActivation(){this.trigger("event-activation")}triggerRepaint(){this.trigger("repaint")}gotoRegion(n){this.trigger("goto-region",n)}goHome(n=!1){this.trigger("go-home",{immediate:n})}zoomTo(n,r,s){this.trigger("zoom-to",{point:r,factor:n,stream:s})}zoomIn(n){this.trigger("zoom-to",{point:n,factor:.5})}zoomOut(n){this.trigger("zoom-to",{point:n,factor:2})}constraintBounds(n){this.trigger("constrain-bounds",{immediate:n})}};function cE(e){let{src:t,target:n}=e,r=n?n.width:e.width,s=n?n.height:e.height;return new Zn({id:t,height:s,width:r,layers:[Ge.fromImage(t,{height:s,width:r},{width:e.width,height:e.height})]})}var dE={margin:0},Jd=class{constructor(t,n={}){v(this,"id");v(this,"config");v(this,"points");v(this,"objects");this.id=t.map(r=>r.id).join("$$"),this.config={...dE,...n},this.points=V(5),this.objects=t,this.recalculateBounds()}recalculateBounds(){this.points.set([1,Math.min(...this.objects.map(t=>t.points[1]))-this.config.margin,Math.min(...this.objects.map(t=>t.points[2]))-this.config.margin,Math.max(...this.objects.map(t=>t.points[3]))+this.config.margin,Math.max(...this.objects.map(t=>t.points[4]))+this.config.margin])}getPointsAt(t,n,r){return[]}};var Oa=/([0-9]+(px|em)\s+)+(solid)\s+(.*)/g,Fa={},hE=["backgroundColor","opacity","boxShadow","borderColor","borderWidth","borderStyle","outlineColor","outlineWidth","outlineOffset","outlineStyle"],Rn=class extends Ae{constructor(){super();v(this,"id");v(this,"type","spacial-content");v(this,"points");v(this,"hoverEvents",!1);v(this,"activeEvents",!1);v(this,"display",{x:0,y:0,scale:1,width:-1,height:-1,points:V(5)});v(this,"_parsed",{border:{id:null,match:[]},outline:{id:null,match:[]}});v(this,"hovering");v(this,"pressing");v(this,"props",{});v(this,"addHover",()=>{this.hovering=!0,this.__revision++});v(this,"removeHover",()=>{this.hovering=!1,this.pressing=!1,this.__revision++});v(this,"addPress",()=>{this.pressing=!0,this.__revision++});v(this,"removePress",()=>{this.pressing=!1,this.__revision++});this.id=Yn(12),this.points=V(5)}getAllPointsAt(n,r){return[[this,this.points,r]]}applyProps(n={}){let r=!1;if(n.interactive!==this.props.interactive&&(r=!0,this.props.interactive=n.interactive),n.style){let s=n.border||n.style.border;if(s!==this._parsed.border.id)if(!s)this._parsed.border.id=null,this._parsed.border.match=[];else{let l=Fa[s]||Oa.exec(s)||Oa.exec(s);l&&(this._parsed.border.id=s,this._parsed.border.match=Fa[s]=l)}if(this._parsed.border.id&&(n.style.borderWidth=this._parsed.border.match[1],n.style.borderStyle="solid",n.style.borderColor=this._parsed.border.match[4]),n.style.outline!==this._parsed.outline.id)if(!n.style.outline)this._parsed.outline.id=null,this._parsed.outline.match=[];else{let l=Fa[n.style.outline]||Oa.exec(n.style.outline)||Oa.exec(n.style.outline);l&&(this._parsed.outline.id=n.style.outline,this._parsed.outline.match=Fa[n.style.outline]=l)}this._parsed.outline.id&&(n.style.outlineWidth=this._parsed.outline.match[1],n.style.outlineStyle="solid",n.style.outlineColor=this._parsed.outline.match[4]),this.props.style=n.style,n.backgroundColor&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=n.backgroundColor,r=!0),n.style.background&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=n.style.background,r=!0);for(let l of hE)if(this.props.style[l]!==n.style[l]){r=!0;break}n.style[":hover"]!==this.props.hoverStyles&&(this.props.hoverStyles=n.style[":hover"],this.hoverEvents||(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),r=!0),n.style[":active"]!==this.props.pressStyles&&(this.props.pressStyles=n.style[":active"],this.activeEvents||(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),r=!0)}n.href!==this.props.href&&(this.props.href=n.href,r=!0),n.hrefTarget!==this.props.hrefTarget&&(this.props.hrefTarget=n.hrefTarget,r=!0),n.title!==this.props.title&&(this.props.title=n.title,r=!0),n.className!==this.props.className&&(this.props.className=n.className,n.className&&!this.hoverEvents&&(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),n.className&&!this.activeEvents&&(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),r=!0),n.relativeSize!==this.props.relativeSize&&(this.props.relativeSize=n.relativeSize,r=!0),n.relativeStyle!==this.props.relativeStyle&&(this.props.relativeStyle=n.relativeStyle,r=!0),n.html!==this.props.html&&(this.props.html=n.html,r=!0),n.target&&(n.target.width!==this.display.width||n.target.height!==this.display.height||n.target.x!==this.points[1]||n.target.y!==this.points[2])&&(r=!0,this.points=ee.singleBox(n.target.width,n.target.height,n.target.x,n.target.y),this.display.points=ee.singleBox(n.target.width,n.target.height,n.target.x,n.target.y),this.display.width=n.target.width,this.display.height=n.target.height),r&&this.__revision++}};var yr=class extends Ae{constructor(){super();v(this,"type","spacial-content");v(this,"id");v(this,"points");v(this,"color","#000");v(this,"backgroundColor");v(this,"hovering");v(this,"pressing");v(this,"text","");v(this,"display",{x:0,y:0,scale:1,width:100,height:100,points:V(5)});v(this,"className");v(this,"html");v(this,"interactive",!1);v(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=V(5)}getAllPointsAt(n,r){return[[this,this.points,r]]}applyProps({id:n,target:r,text:s,color:l,backgroundColor:u,fontSize:h=18,interactive:f,fontFamily:g="Arial, sans-serif",...m}){m.font=`${h}px ${g}`,this.interactive=f||!1,typeof s<"u"&&(this.text=s||""),l&&(this.color=l),u&&(this.backgroundColor=u),n&&(this.id=n),r&&(this.points=ee.singleBox(r.width,r.height,r.x,r.y),this.display.points=this.points,this.display.width=r.width,this.display.height=r.height),this.props={...this.props,...m},this.__revision++}};var ze=Math.pow,Ma=Math.sqrt,Ts=Math.sin,$g=Math.cos,zs=Math.PI,Da=1.70158,Aa=Da*1.525,qg=Da+1,Jg=2*zs/3,ev=2*zs/4.5,Rs=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},zn={linear:e=>e,easeInQuad:function(e){return e*e},easeOutQuad:function(e){return 1-(1-e)*(1-e)},easeInOutQuad:function(e){return e<.5?2*e*e:1-ze(-2*e+2,2)/2},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1-ze(1-e,3)},easeInOutCubic:function(e){return e<.5?4*e*e*e:1-ze(-2*e+2,3)/2},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1-ze(1-e,4)},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-ze(-2*e+2,4)/2},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1-ze(1-e,5)},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-ze(-2*e+2,5)/2},easeInSine:function(e){return 1-$g(e*zs/2)},easeOutSine:function(e){return Ts(e*zs/2)},easeInOutSine:function(e){return-($g(zs*e)-1)/2},easeInExpo:function(e){return e===0?0:ze(2,10*e-10)},easeOutExpo:function(e){return e===1?1:1-ze(2,-10*e)},easeInOutExpo:function(e){return e===0?0:e===1?1:e<.5?ze(2,20*e-10)/2:(2-ze(2,-20*e+10))/2},easeInCirc:function(e){return 1-Ma(1-ze(e,2))},easeOutCirc:function(e){return Ma(1-ze(e-1,2))},easeInOutCirc:function(e){return e<.5?(1-Ma(1-ze(2*e,2)))/2:(Ma(1-ze(-2*e+2,2))+1)/2},easeInBack:function(e){return qg*e*e*e-Da*e*e},easeOutBack:function(e){return 1+qg*ze(e-1,3)+Da*ze(e-1,2)},easeInOutBack:function(e){return e<.5?ze(2*e,2)*((Aa+1)*2*e-Aa)/2:(ze(2*e-2,2)*((Aa+1)*(e*2-2)+Aa)+2)/2},easeInElastic:function(e){return e===0?0:e===1?1:-ze(2,10*e-10)*Ts((e*10-10.75)*Jg)},easeOutElastic:function(e){return e===0?0:e===1?1:ze(2,-10*e)*Ts((e*10-.75)*Jg)+1},easeInOutElastic:function(e){return e===0?0:e===1?1:e<.5?-(ze(2,20*e-10)*Ts((20*e-11.125)*ev))/2:ze(2,-20*e+10)*Ts((20*e-11.125)*ev)/2+1},easeInBounce:function(e){return 1-Rs(1-e)},easeOutBounce:Rs,easeInOutBounce:function(e){return e<.5?(1-Rs(1-2*e))/2:(1+Rs(2*e-1))/2}};var Wa=class{constructor(t){v(this,"runtime");v(this,"pendingTransition");v(this,"lastZoomTo",null);v(this,"isConstraining",!1);v(this,"lastGoToRegion",null);this.runtime=t,this.pendingTransition={from:V(5),to:V(5),elapsed_time:0,done:!0,total_time:0,timingFunction:zn.easeInOutQuad,constrain:!1}}hasPending(){return!this.pendingTransition.done}getPendingTransition(){return this.pendingTransition}getPendingFrom(){return this.pendingTransition.from}customTransition(t){t(this.pendingTransition)}stopTransition(){this.pendingTransition.from=V(this.runtime.target),this.pendingTransition.to=V(this.runtime.target),this.pendingTransition.done=!0,this.pendingTransition.elapsed_time=0,this.pendingTransition.total_time=0}runTransition(t,n){if(!this.pendingTransition.done){let r=this.pendingTransition,s=r.total_time===0?0:(r.elapsed_time+n)/r.total_time,l=r.total_time===0?1:s===0?0:r.timingFunction(s);t[1]=r.from[1]+(r.to[1]-r.from[1])*l,t[2]=r.from[2]+(r.to[2]-r.from[2])*l,t[3]=r.from[3]+(r.to[3]-r.from[3])*l,t[4]=r.from[4]+(r.to[4]-r.from[4])*l,this.pendingTransition.elapsed_time+=n,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:zn.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(t,n={}){let{origin:r,stream:s=!1,transition:l}=n;this.lastZoomTo={factor:t,options:n};let u=this.runtime.getZoomedPosition(t,{origin:r}),h=Math.abs(1-t);this.applyTransition(u,l,{duration:2e3*h,easing:zn.easeOutExpo,constrain:!0,callback:()=>{this.lastZoomTo=null}},{stream:!1})}constrainBounds({transition:t,panPadding:n=0}={}){this.isConstraining=!0;let[r,s]=this.runtime.constrainBounds(this.runtime.target,{panPadding:n});r&&(this.applyTransition(s,t,{duration:500,easing:zn.easeOutQuart,constrain:!1,callback:()=>{this.isConstraining=!1}}),this.runtime.updateNextFrame())}applyTransition(t,n,r,{stream:s}={}){this.pendingTransition.from=V(this.runtime.target),this.pendingTransition.to=t,s||(this.pendingTransition.elapsed_time=0),this.pendingTransition.done=!1,this.pendingTransition.total_time=typeof n?.duration<"u"?n.duration:typeof r?.duration<"u"?r.duration:1e3,this.pendingTransition.constrain=typeof n?.constrain<"u"?n.constrain:typeof r?.constrain<"u"?r.constrain:!1,this.pendingTransition.timingFunction=n?.easing||r?.easing||zn.easeInOutSine}goToRegion(t,{transition:n}={}){this.lastGoToRegion={target:t,options:{transition:n}};let r=this.runtime.clampRegion(t);this.applyTransition(ee.singleBox(r.width,r.height,r.x,r.y),n,{duration:1e3,easing:zn.easeOutExpo,constrain:!0,callback:()=>{this.lastGoToRegion=null}}),this.runtime.updateNextFrame()}};var MC=Number.MIN_VALUE+1,Kn=class{constructor(t,n,r,s=[],l){v(this,"id",Yn());v(this,"ready",!1);v(this,"renderer");v(this,"world");v(this,"target");v(this,"homePosition");v(this,"manualHomePosition");v(this,"manualFocalPosition");v(this,"focalPosition");v(this,"transitionManager");v(this,"aggregate");v(this,"transformBuffer",V(500));v(this,"lastTarget",V(5));v(this,"zoomBuffer",V(5));v(this,"logNextRender",!1);v(this,"pendingUpdate",!0);v(this,"isCommitting",!1);v(this,"firstRender",!0);v(this,"lastTime");v(this,"stopId");v(this,"mode","explore");v(this,"controllers",[]);v(this,"controllersRunning",!1);v(this,"controllerStopFunctions",[]);v(this,"maxScaleFactor",1);v(this,"_viewerToWorld",{x:0,y:0});v(this,"_lastGoodScale",1);v(this,"hooks",{useFrame:[],useBeforeFrame:[],useAfterPaint:[],useAfterFrame:[]});v(this,"fpsLimit");v(this,"options");v(this,"hookOptions",{filters:{grayscale:0,contrast:0,brightness:0,saturate:0,sepia:0,invert:0,hueRotate:0,blur:0}});v(this,"_viewport",{x:0,y:0,width:0,height:0});v(this,"setViewport",t=>{let n=Math.round(typeof t.x>"u"?this.target[1]:t.x),r=Math.round(typeof t.y>"u"?this.target[2]:t.y);t.width?this.target[3]=n+t.width:this.target[3]=this.target[3]-this.target[1]+n,t.height?this.target[4]=r+t.height:this.target[4]=this.target[4]-this.target[2]+r,Math.abs(this.target[1]-n)>.01&&(this.target[1]=n),Math.abs(this.target[2]-r)>.01&&(this.target[2]=r),this.pendingUpdate=!0});v(this,"render",t=>{let n=t-this.lastTime;if(this.isCommitting||this.fpsLimit&&n<1e3/this.fpsLimit){this.stopId=window.requestAnimationFrame(this.render);return}this.lastTime=t,this.world.flushSubscriptions(),this.stopId=window.requestAnimationFrame(this.render),this.hook("useFrame",n);let r=this.pendingUpdate,s=this.renderer.pendingUpdate();if(this.transitionManager.hasPending()&&(this.transitionManager.runTransition(this.target,n),this.pendingUpdate=!0,this.updateControllerPosition()),!this.firstRender&&!r&&!s&&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",n),this.renderer.beforeFrame(this.world,n,this.target,this.hookOptions);let l=this.getScaleFactor(),u=this.renderer.getPointsAt(this.world,this.target,this.aggregate,l),h=u.length;for(let m=0;m<h;m++){let S=u[m][0],E=u[m][1],P=u[m][2],k=P?Gt(E,P,this.transformBuffer):E;this.renderer.prepareLayer(S,S.__parent&&P?Gt(S.__parent.crop||S.__parent.points,P):k);let R=k.length/5;for(let A=0;A<R;A++){let x=A*5;k[x]!==0&&(this.renderer.paint(S,A,k[x+1],k[x+2],k[x+3]-k[x+1],k[x+4]-k[x+2]),this.hook("useAfterPaint",S))}this.renderer.finishLayer(S,E)}this.renderer.afterFrame(this.world,n,this.target,this.hookOptions),this.hook("useAfterFrame",n),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 f=this.world.getScheduledUpdates(this.target,l),g=f.length;if(g>0)for(let m=0;m<g;m++){let S=f[g-m-1]();S?S.then(()=>{this.pendingUpdate=!0}):this.pendingUpdate=!0}});this.renderer=t,this.world=n,this.options={maxOverZoom:1,maxUnderZoom:1,visibilityRatio:1.5,...l||{}},this.target=ee.projection(r),this.manualHomePosition=!1,this.pendingUpdate=!0,this.homePosition=ee.projection(this.world),this.manualFocalPosition=!1,this.focalPosition=this.target,this.updateFocalPosition(),this.transitionManager=new Wa(this),this.aggregate=Qt(1),this.world.addLayoutSubscriber(u=>{u==="repaint"&&(this.pendingUpdate=!0),u==="recalculate-world-size"&&(this.manualHomePosition||(this.setHomePosition(),this.goHome()),this.updateFocalPosition())}),this.lastTime=performance.now(),this.controllers=s,this.render(this.lastTime),this.startControllers()}get x(){return this.target[1]}set x(t){this.target[1]=t}get y(){return this.target[2]}set y(t){this.target[2]=t}get x2(){return this.target[3]}set x2(t){this.target[3]=t}get y2(){return this.target[4]}set y2(t){this.target[4]=t}get width(){return this.target[3]-this.target[1]}set width(t){this.target[3]=this.target[1]+t}get height(){return this.target[4]-this.target[2]}set height(t){this.target[4]=this.target[2]=t}setHomePosition(t){this.homePosition.set(ee.projection(t||this.world)),this.pendingUpdate=!0}startControllers(){if(!this.controllersRunning){for(let t of this.controllers)this.controllerStopFunctions.push(t.start(this));this.controllersRunning=!0}}stopControllers(){if(this.controllersRunning){for(let t of this.controllerStopFunctions)t();this.controllersRunning=!1,this.controllerStopFunctions=[]}}updateControllerPosition(){for(let t of this.controllers)t.updatePosition(this.x,this.y,this.width,this.height)}triggerResize(){this.renderer.triggerResize&&this.renderer.triggerResize(),this.pendingUpdate=!0}addController(t){this.controllers.push(t),this.controllersRunning&&t.start(this),this.pendingUpdate=!0}cover(){return this.goHome({cover:!0})}getRendererScreenPosition(){return this.renderer.getRendererScreenPosition()}updateRendererScreenPosition(){this.pendingUpdate=!0,this.renderer.resize()}setOptions(t){this.options={...this.options,...t}}goHome(t={}){if(this.world.width<=0||this.world.height<=0)return;let n=this.getScaleFactor(),r=t.position?{x:t.position[1],y:t.position[2],width:t.position[3]-t.position[1],height:t.position[4]-t.position[2]}:{x:this.homePosition[1],y:this.homePosition[2],width:this.homePosition[3]-this.homePosition[1],height:this.homePosition[4]-this.homePosition[2]},s=this.width*n,l=this.height*n,u=r.width/s,h=r.height/l,f=s/l;if(t.cover?u>h:u<h){let g=f*r.height,m=(g-r.width)/2;this.target[1]=Math.round(-m+r.x),this.target[2]=Math.round(r.y),this.target[3]=Math.round(g-m+r.x),this.target[4]=Math.round(r.height+r.y)}else{let g=r.width/f,m=(g-r.height)/2;this.target[1]=Math.round(r.x),this.target[2]=Math.round(r.y-m),this.target[3]=Math.round(r.x+r.width),this.target[4]=Math.round(r.y+g-m)}this.constrainBounds(this.target),this.updateControllerPosition()}resize(t,n,r,s){this.transitionManager.hasPending()&&this.transitionManager.stopTransition(),this.updateFocalPosition(t-n,r-s);let l=n/t,u=s/r;this.target[3]=this.target[1]+(this.target[3]-this.target[1])*l,this.target[4]=this.target[2]+(this.target[4]-this.target[2])*u,this.goHome({position:this.focalPosition}),this.renderer.resize(n,s),this.pendingUpdate=!0,this.transitionManager.resumeTransition()}updateFocalPosition(t,n){if(!this.manualFocalPosition){let r=this.width,s=this.height,l=Math.min(r,s),u=0,h=0,f=this.x+u,g=this.y+h;if(r<s){let m=this.height-this.width;this.focalPosition=ee.projection({x:f,y:g+m/2,width:l-u*2,height:l-h*2}),this.pendingUpdate=!0}else{let m=this.width-this.height;this.focalPosition=ee.projection({x:f+m/2,y:g,width:l-u*2,height:l-h*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(t,{panPadding:n=0,ref:r=!1}={}){let{minX:s,maxX:l,minY:u,maxY:h}=this.getBounds({target:t,padding:n}),f=!1,g=r?t:V(t),m=Math.round(t[3]-t[1]),S=Math.round(t[4]-t[2]);return s>t[1]&&(f=!0,g[1]=s,g[3]=s+m),u>t[2]&&(f=!0,g[2]=u,g[4]=u+S),l<t[1]&&(f=!0,g[1]=l,g[3]=l+m),h<t[2]&&(f=!0,g[2]=h,g[4]=h+S),[f,g]}getBounds(t){let n=t.target||this.target,r=t.padding,s=this.options.visibilityRatio,l=Math.abs(1-s);if(this.world.hasActiveZone()){let w=this.world.getActiveZone();if(w){let _=n[3]-n[1]<w.points[3]-w.points[1],L=n[4]-n[2]<w.points[4]-w.points[2];return{minX:_?w.points[1]-r:w.points[1]+(w.points[3]-w.points[1])/2-(n[3]-n[1])/2,maxX:L?w.points[2]-r:w.points[2]+(w.points[4]-w.points[2])/2-(n[4]-n[2])/2,minY:_?w.points[3]+r:w.points[1]+(w.points[3]-w.points[1])/2-(n[3]-n[1])/2,maxY:L?w.points[4]+r:w.points[2]+(w.points[4]-w.points[2])/2-(n[4]-n[2])/2}}}let u=n[3]-n[1],h=this.world.width,f=-u*l,g=h-u-f,m=n[4]-n[2],S=this.world.height,E=-m*l,P=S-m-E,k=Math.round(Math.max(f,g)),R=Math.round(Math.min(f,g)),A=Math.round(Math.max(E,P)),x=Math.round(Math.min(E,P));return{minX:R,maxX:k,minY:x,maxY:A}}getScaleFactor(t=!1){let n=this.renderer.getScale(this.target[3]-this.target[1],this.target[4]-this.target[2],t);return n===0?this._lastGoodScale:(this._lastGoodScale=n,n)}getZoomedPosition(t,{origin:n,fromPos:r}){let s=r?{width:r[3]-r[1],height:r[4]-r[2]}:void 0,l=s?this.renderer.getScale(s.width,s.height):this.getScaleFactor(),u=s?s.width:this.width,h=s?s.height:this.height,f=this.getRendererScreenPosition()?.width,g=this.world.width,m=f?f/g:1,S=this.options.maxUnderZoom,E=Math.max(m||1,this.options.maxOverZoom),P=1/t,k=l*P;if(P<1){let x=u*l,w=h*l,_=this.world.width/x,L=this.world.height/w;if(_>L){let O=this.world.width*k,D=~~(u*l)*S;O<D&&(t=this.world.width*l/(u*l*S))}else{let O=this.world.height*k,D=~~(h*l)*S;O<D&&(t=this.world.height*l/(h*l*S))}}else k>E&&(t=l/E);let A=Gt(this.target,vr(t,n?n.x:this.target[1]+(this.target[3]-this.target[1])/2,n?n.y:this.target[2]+(this.target[4]-this.target[2])/2),this.zoomBuffer);return this.constrainBounds(A,{ref:!0,panPadding:100}),A}clampRegion({x:t,y:n,width:r,height:s,padding:l=0}){let u=this.width,h=this.height,f=r/u<s/h,g=t-l,m=n-l,S=r+l*2,E=s+l*2;if(f){let k=E/h*u;return{x:g-(k-S)/2,y:m,width:k,height:E}}let P=S/u*h;return{x:g,y:m-(P-E)/2,width:S,height:P}}viewerToWorld(t,n){let r=this.getScaleFactor();return this._viewerToWorld.x=this.target[1]+t/r,this._viewerToWorld.y=this.target[2]+n/r,this._viewerToWorld}worldToViewer(t,n,r,s){let l=ee.singleBox(r,s,t,n);return Pt(l,At(Qt(this.getScaleFactor()),Re(-this.target[1],-this.target[2]))),{x:l[1],y:l[2],width:l[3]-l[1],height:l[4]-l[2],strand:l}}setScale(t,n){Pt(this.target,vr(t,n?n.x:this.target[1]+(this.target[3]-this.target[1])/2,n?n.y:this.target[2]+(this.target[4]-this.target[2])/2)),this.pendingUpdate=!0}syncTo(t){let n=this.target;return this.target=t.target,this.pendingUpdate=!0,()=>{this.target=n}}stop(){return typeof this.stopId<"u"&&(window.cancelAnimationFrame(this.stopId),this.stopId=void 0),()=>{this.render(performance.now())}}reset(){this.renderer.reset()}selectZone(t){this.world.selectZone(t),this.pendingUpdate=!0}deselectZone(){this.world.deselectZone(),this.pendingUpdate=!0}hook(t,n){let r=this.hooks[t].length;if(r!==0)for(let s=0;s<r;s++)this.hooks[t][s](n)}registerHook(t,n){return this.hooks[t].push(n),()=>{this.hooks[t]=this.hooks[t].filter(r=>r!==n)}}updateNextFrame(){this.pendingUpdate=!0}};var Ba=/([0-9]+(px|em)\s+)+(solid)\s+(.*)/g,ja={},fE=["backgroundColor","opacity","boxShadow","borderColor","borderWidth","borderStyle","outlineColor","outlineWidth","outlineOffset","outlineStyle"],Ti=class extends Ae{constructor(){super();v(this,"id");v(this,"type","spacial-content");v(this,"isShape",!0);v(this,"points");v(this,"hoverEvents",!1);v(this,"activeEvents",!1);v(this,"display",{x:0,y:0,scale:1,width:-1,height:-1,points:V(5)});v(this,"boundingBox",null);v(this,"_parsed",{border:{id:null,match:[]},outline:{id:null,match:[]}});v(this,"hovering");v(this,"pressing");v(this,"props",{});v(this,"shape",{type:"none"});v(this,"addHover",()=>{this.hovering=!0,this.__revision++});v(this,"removeHover",()=>{this.hovering=!1,this.pressing=!1,this.__revision++});v(this,"addPress",()=>{this.pressing=!0,this.__revision++});v(this,"removePress",()=>{this.pressing=!1,this.__revision++});this.id=Yn(12),this.points=V(5),this.shape={type:"none"}}updateBoundingBox(){if(this.shape.type==="none")return;let n=this.shape.points;if(this.shape.points.length>2){let r=Math.min(...n.map(h=>h[0])),s=Math.min(...n.map(h=>h[1])),l=Math.max(0,...n.map(h=>h[0])),u=Math.max(0,...n.map(h=>h[1]));this.boundingBox={x:r,y:s,width:l-r,height:u-s};return}this.boundingBox=null}intersects(n){if(!n||this.shape.type==="none")return!1;let[r,s]=n,l=this.shape.points,u=this.boundingBox;if(u||(this.updateBoundingBox(),u=this.boundingBox),!u||r<u.x||r>u.x+u.width||s<u.y||s>u.height+u.y)return!1;let h=!1;for(let f=0,g=l.length-1;f<l.length;g=f++)l[f][1]>s!=l[g][1]>s&&r<(l[g][0]-l[f][0])*(s-l[f][1])/(l[g][1]-l[f][1])+l[f][0]&&(h=!h);return h}getAllPointsAt(n,r){return n[3]-n[1]===1&&n[4]-n[2]===1?this.intersects([n[1],n[2]])?[[this,this.points,r]]:[]:[[this,this.points,r]]}applyProps(n={}){let r=!1;if(n.points)if(this.shape.type!=="polygon"||this.shape.points.length!==n.points.length)this.shape={type:"polygon",points:n.points,open:n.open},this.updateBoundingBox();else{let s=!1,l=n.points.length;for(let u=0;u<l;u++)if(n.points[u][0]!==this.shape.points[u][0]||n.points[u][1]!==this.shape.points[u][1]){s=!0;break}s&&(this.shape={type:"polygon",points:n.points,open:n.open},this.updateBoundingBox())}if(n.interactive!==this.props.interactive&&(r=!0,this.props.interactive=n.interactive),(n.open||n.open===!1)&&(r=!0,this.shape.open=n.open),n.style){let s=n.border||n.style.border;if(s!==this._parsed.border.id)if(!s)this._parsed.border.id=null,this._parsed.border.match=[];else{let l=ja[s]||Ba.exec(s)||Ba.exec(s);l&&(this._parsed.border.id=s,this._parsed.border.match=ja[s]=l)}if(this._parsed.border.id&&(n.style.borderWidth=this._parsed.border.match[1],n.style.borderStyle="solid",n.style.borderColor=this._parsed.border.match[4]),n.style.outline!==this._parsed.outline.id)if(!n.style.outline)this._parsed.outline.id=null,this._parsed.outline.match=[];else{let l=ja[n.style.outline]||Ba.exec(n.style.outline)||Ba.exec(n.style.outline);l&&(this._parsed.outline.id=n.style.outline,this._parsed.outline.match=ja[n.style.outline]=l)}this._parsed.outline.id&&(n.style.outlineWidth=this._parsed.outline.match[1],n.style.outlineStyle="solid",n.style.outlineColor=this._parsed.outline.match[4]),this.props.style=n.style,n.backgroundColor&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=n.backgroundColor,r=!0),n.style.background&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=n.style.background,r=!0);for(let l of fE)if(this.props.style[l]!==n.style[l]){r=!0;break}n.style[":hover"]!==this.props.hoverStyles&&(this.props.hoverStyles=n.style[":hover"],this.hoverEvents||(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),r=!0),n.style[":active"]!==this.props.pressStyles&&(this.props.pressStyles=n.style[":active"],this.activeEvents||(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),r=!0)}n.href!==this.props.href&&(this.props.href=n.href,r=!0),n.hrefTarget!==this.props.hrefTarget&&(this.props.hrefTarget=n.hrefTarget,r=!0),n.title!==this.props.title&&(this.props.title=n.title,r=!0),n.className!==this.props.className&&(this.props.className=n.className,n.className&&!this.hoverEvents&&(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),n.className&&!this.activeEvents&&(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),r=!0),n.relativeSize!==this.props.relativeSize&&(this.props.relativeSize=n.relativeSize,r=!0),n.relativeStyle!==this.props.relativeStyle&&(this.props.relativeStyle=n.relativeStyle,r=!0),n.html!==this.props.html&&(this.props.html=n.html,r=!0),n.target&&(n.target.width!==this.display.width||n.target.height!==this.display.height||n.target.x!==this.points[1]||n.target.y!==this.points[2])&&(r=!0,this.points=ee.singleBox(n.target.width,n.target.height,n.target.x,n.target.y),this.display.points=ee.singleBox(n.target.width,n.target.height,n.target.x,n.target.y),this.display.width=n.target.width,this.display.height=n.target.height),r&&this.__revision++}};var Is=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,pE=typeof AbortController=="function",ba=pE?AbortController:class{constructor(){this.signal=new tv}abort(t=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||t,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},mE=typeof AbortSignal=="function",gE=typeof ba.AbortSignal=="function",tv=mE?AbortSignal:gE?ba.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(t){t.type==="abort"&&(this.aborted=!0,this.onabort(t),this._listeners.forEach(n=>n(t),this))}onabort(){}addEventListener(t,n){t==="abort"&&this._listeners.push(n)}removeEventListener(t,n){t==="abort"&&(this._listeners=this._listeners.filter(r=>r!==n))}},rh=new Set,eh=(e,t)=>{let n=`LRU_CACHE_OPTION_${e}`;Ha(n)&&ih(n,`${e} option`,`options.${t}`,vo)},th=(e,t)=>{let n=`LRU_CACHE_METHOD_${e}`;if(Ha(n)){let{prototype:r}=vo,{get:s}=Object.getOwnPropertyDescriptor(r,e);ih(n,`${e} method`,`cache.${t}()`,s)}},vE=(e,t)=>{let n=`LRU_CACHE_PROPERTY_${e}`;if(Ha(n)){let{prototype:r}=vo,{get:s}=Object.getOwnPropertyDescriptor(r,e);ih(n,`${e} property`,`cache.${t}`,s)}},nv=(...e)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...e):console.error(...e)},Ha=e=>!rh.has(e),ih=(e,t,n,r)=>{rh.add(e);let s=`The ${t} is deprecated. Please use ${n} instead.`;nv(s,"DeprecationWarning",e,r)},Qr=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),rv=e=>Qr(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?go:null:null,go=class extends Array{constructor(t){super(t),this.fill(0)}},nh=class{constructor(t){if(t===0)return[];let n=rv(t);this.heap=new n(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},vo=class e{constructor(t={}){let{max:n=0,ttl:r,ttlResolution:s=1,ttlAutopurge:l,updateAgeOnGet:u,updateAgeOnHas:h,allowStale:f,dispose:g,disposeAfter:m,noDisposeOnSet:S,noUpdateTTL:E,maxSize:P=0,maxEntrySize:k=0,sizeCalculation:R,fetchMethod:A,fetchContext:x,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:L,allowStaleOnFetchAbort:O,ignoreFetchAbort:z}=t,{length:D,maxAge:b,stale:q}=t instanceof e?{}:t;if(n!==0&&!Qr(n))throw new TypeError("max option must be a nonnegative integer");let M=n?rv(n):Array;if(!M)throw new Error("invalid max value: "+n);if(this.max=n,this.maxSize=P,this.maxEntrySize=k||this.maxSize,this.sizeCalculation=R||D,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=A||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&x!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(n).fill(null),this.valList=new Array(n).fill(null),this.next=new M(n),this.prev=new M(n),this.head=0,this.tail=0,this.free=new nh(n),this.initialFill=1,this.size=0,typeof g=="function"&&(this.dispose=g),typeof m=="function"?(this.disposeAfter=m,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!S,this.noUpdateTTL=!!E,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!L,this.allowStaleOnFetchAbort=!!O,this.ignoreFetchAbort=!!z,this.maxEntrySize!==0){if(this.maxSize!==0&&!Qr(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!Qr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!f||!!q,this.noDeleteOnStaleGet=!!_,this.updateAgeOnGet=!!u,this.updateAgeOnHas=!!h,this.ttlResolution=Qr(s)||s===0?s:1,this.ttlAutopurge=!!l,this.ttl=r||b||0,this.ttl){if(!Qr(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 K="LRU_CACHE_UNBOUNDED";Ha(K)&&(rh.add(K),nv("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",K,e))}q&&eh("stale","allowStale"),b&&eh("maxAge","ttl"),D&&eh("length","sizeCalculation")}getRemainingTTL(t){return this.has(t,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new go(this.max),this.starts=new go(this.max),this.setItemTTL=(r,s,l=Is.now())=>{if(this.starts[r]=s!==0?l:0,this.ttls[r]=s,s!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.isStale(r)&&this.delete(this.keyList[r])},s+1);u.unref&&u.unref()}},this.updateItemAge=r=>{this.starts[r]=this.ttls[r]!==0?Is.now():0},this.statusTTL=(r,s)=>{r&&(r.ttl=this.ttls[s],r.start=this.starts[s],r.now=t||n(),r.remainingTTL=r.now+r.ttl-r.start)};let t=0,n=()=>{let r=Is.now();if(this.ttlResolution>0){t=r;let s=setTimeout(()=>t=0,this.ttlResolution);s.unref&&s.unref()}return r};this.getRemainingTTL=r=>{let s=this.keyMap.get(r);return s===void 0?0:this.ttls[s]===0||this.starts[s]===0?1/0:this.starts[s]+this.ttls[s]-(t||n())},this.isStale=r=>this.ttls[r]!==0&&this.starts[r]!==0&&(t||n())-this.starts[r]>this.ttls[r]}updateItemAge(t){}statusTTL(t,n){}setItemTTL(t,n,r){}isStale(t){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new go(this.max),this.removeItemSize=t=>{this.calculatedSize-=this.sizes[t],this.sizes[t]=0},this.requireSize=(t,n,r,s)=>{if(this.isBackgroundFetch(n))return 0;if(!Qr(r))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(r=s(n,t),!Qr(r))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 r},this.addItemSize=(t,n,r)=>{if(this.sizes[t]=n,this.maxSize){let s=this.maxSize-this.sizes[t];for(;this.calculatedSize>s;)this.evict(!0)}this.calculatedSize+=this.sizes[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.calculatedSize)}}removeItemSize(t){}addItemSize(t,n){}requireSize(t,n,r,s){if(r||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:t=this.allowStale}={}){if(this.size)for(let n=this.tail;!(!this.isValidIndex(n)||((t||!this.isStale(n))&&(yield n),n===this.head));)n=this.prev[n]}*rindexes({allowStale:t=this.allowStale}={}){if(this.size)for(let n=this.head;!(!this.isValidIndex(n)||((t||!this.isStale(n))&&(yield n),n===this.tail));)n=this.next[n]}isValidIndex(t){return t!==void 0&&this.keyMap.get(this.keyList[t])===t}*entries(){for(let t of this.indexes())this.valList[t]!==void 0&&this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield[this.keyList[t],this.valList[t]])}*rentries(){for(let t of this.rindexes())this.valList[t]!==void 0&&this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield[this.keyList[t],this.valList[t]])}*keys(){for(let t of this.indexes())this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.keyList[t])}*rkeys(){for(let t of this.rindexes())this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.keyList[t])}*values(){for(let t of this.indexes())this.valList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.valList[t])}*rvalues(){for(let t of this.rindexes())this.valList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.valList[t])}[Symbol.iterator](){return this.entries()}find(t,n){for(let r of this.indexes()){let s=this.valList[r],l=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;if(l!==void 0&&t(l,this.keyList[r],this))return this.get(this.keyList[r],n)}}forEach(t,n=this){for(let r of this.indexes()){let s=this.valList[r],l=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;l!==void 0&&t.call(n,l,this.keyList[r],this)}}rforEach(t,n=this){for(let r of this.rindexes()){let s=this.valList[r],l=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;l!==void 0&&t.call(n,l,this.keyList[r],this)}}get prune(){return th("prune","purgeStale"),this.purgeStale}purgeStale(){let t=!1;for(let n of this.rindexes({allowStale:!0}))this.isStale(n)&&(this.delete(this.keyList[n]),t=!0);return t}dump(){let t=[];for(let n of this.indexes({allowStale:!0})){let r=this.keyList[n],s=this.valList[n],l=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;if(l===void 0)continue;let u={value:l};if(this.ttls){u.ttl=this.ttls[n];let h=Is.now()-this.starts[n];u.start=Math.floor(Date.now()-h)}this.sizes&&(u.size=this.sizes[n]),t.unshift([r,u])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let s=Date.now()-r.start;r.start=Is.now()-s}this.set(n,r.value,r)}}dispose(t,n,r){}set(t,n,{ttl:r=this.ttl,start:s,noDisposeOnSet:l=this.noDisposeOnSet,size:u=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,status:g}={}){if(u=this.requireSize(t,n,u,h),this.maxEntrySize&&u>this.maxEntrySize)return g&&(g.set="miss",g.maxEntrySizeExceeded=!0),this.delete(t),this;let m=this.size===0?void 0:this.keyMap.get(t);if(m===void 0)m=this.newIndex(),this.keyList[m]=t,this.valList[m]=n,this.keyMap.set(t,m),this.next[this.tail]=m,this.prev[m]=this.tail,this.tail=m,this.size++,this.addItemSize(m,u,g),g&&(g.set="add"),f=!1;else{this.moveToTail(m);let S=this.valList[m];if(n!==S){if(this.isBackgroundFetch(S)?S.__abortController.abort(new Error("replaced")):l||(this.dispose(S,t,"set"),this.disposeAfter&&this.disposed.push([S,t,"set"])),this.removeItemSize(m),this.valList[m]=n,this.addItemSize(m,u,g),g){g.set="replace";let E=S&&this.isBackgroundFetch(S)?S.__staleWhileFetching:S;E!==void 0&&(g.oldValue=E)}}else g&&(g.set="update")}if(r!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),f||this.setItemTTL(m,r,s),this.statusTTL(g,m),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 t=this.valList[this.head];return this.evict(!0),t}}evict(t){let n=this.head,r=this.keyList[n],s=this.valList[n];return this.isBackgroundFetch(s)?s.__abortController.abort(new Error("evicted")):(this.dispose(s,r,"evict"),this.disposeAfter&&this.disposed.push([s,r,"evict"])),this.removeItemSize(n),t&&(this.keyList[n]=null,this.valList[n]=null,this.free.push(n)),this.head=this.next[n],this.keyMap.delete(r),this.size--,n}has(t,{updateAgeOnHas:n=this.updateAgeOnHas,status:r}={}){let s=this.keyMap.get(t);if(s!==void 0)if(this.isStale(s))r&&(r.has="stale",this.statusTTL(r,s));else return n&&this.updateItemAge(s),r&&(r.has="hit"),this.statusTTL(r,s),!0;else r&&(r.has="miss");return!1}peek(t,{allowStale:n=this.allowStale}={}){let r=this.keyMap.get(t);if(r!==void 0&&(n||!this.isStale(r))){let s=this.valList[r];return this.isBackgroundFetch(s)?s.__staleWhileFetching:s}}backgroundFetch(t,n,r,s){let l=n===void 0?void 0:this.valList[n];if(this.isBackgroundFetch(l))return l;let u=new ba;r.signal&&r.signal.addEventListener("abort",()=>u.abort(r.signal.reason));let h={signal:u.signal,options:r,context:s},f=(P,k=!1)=>{let{aborted:R}=u.signal,A=r.ignoreFetchAbort&&P!==void 0;return r.status&&(R&&!k?(r.status.fetchAborted=!0,r.status.fetchError=u.signal.reason,A&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),R&&!A&&!k?m(u.signal.reason):(this.valList[n]===E&&(P===void 0?E.__staleWhileFetching?this.valList[n]=E.__staleWhileFetching:this.delete(t):(r.status&&(r.status.fetchUpdated=!0),this.set(t,P,h.options))),P)},g=P=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=P),m(P)),m=P=>{let{aborted:k}=u.signal,R=k&&r.allowStaleOnFetchAbort,A=R||r.allowStaleOnFetchRejection,x=A||r.noDeleteOnFetchRejection;if(this.valList[n]===E&&(!x||E.__staleWhileFetching===void 0?this.delete(t):R||(this.valList[n]=E.__staleWhileFetching)),A)return r.status&&E.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw P},S=(P,k)=>{this.fetchMethod(t,l,h).then(R=>P(R),k),u.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(P(),r.allowStaleOnFetchAbort&&(P=R=>f(R,!0)))})};r.status&&(r.status.fetchDispatched=!0);let E=new Promise(S).then(f,g);return E.__abortController=u,E.__staleWhileFetching=l,E.__returned=null,n===void 0?(this.set(t,E,{...h.options,status:void 0}),n=this.keyMap.get(t)):this.valList[n]=E,E}isBackgroundFetch(t){return t&&typeof t=="object"&&typeof t.then=="function"&&Object.prototype.hasOwnProperty.call(t,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(t,"__returned")&&(t.__returned===t||t.__returned===null)}async fetch(t,{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:l=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:h=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:g=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:S=this.allowStaleOnFetchRejection,ignoreFetchAbort:E=this.ignoreFetchAbort,allowStaleOnFetchAbort:P=this.allowStaleOnFetchAbort,fetchContext:k=this.fetchContext,forceRefresh:R=!1,status:A,signal:x}={}){if(!this.fetchMethod)return A&&(A.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:s,status:A});let w={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:s,ttl:l,noDisposeOnSet:u,size:h,sizeCalculation:f,noUpdateTTL:g,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:P,ignoreFetchAbort:E,status:A,signal:x},_=this.keyMap.get(t);if(_===void 0){A&&(A.fetch="miss");let L=this.backgroundFetch(t,_,w,k);return L.__returned=L}else{let L=this.valList[_];if(this.isBackgroundFetch(L)){let q=n&&L.__staleWhileFetching!==void 0;return A&&(A.fetch="inflight",q&&(A.returnedStale=!0)),q?L.__staleWhileFetching:L.__returned=L}let O=this.isStale(_);if(!R&&!O)return A&&(A.fetch="hit"),this.moveToTail(_),r&&this.updateItemAge(_),this.statusTTL(A,_),L;let z=this.backgroundFetch(t,_,w,k),D=z.__staleWhileFetching!==void 0,b=D&&n;return A&&(A.fetch=D&&O?"stale":"refresh",b&&O&&(A.returnedStale=!0)),b?z.__staleWhileFetching:z.__returned=z}}get(t,{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:l}={}){let u=this.keyMap.get(t);if(u!==void 0){let h=this.valList[u],f=this.isBackgroundFetch(h);return this.statusTTL(l,u),this.isStale(u)?(l&&(l.get="stale"),f?(l&&(l.returnedStale=n&&h.__staleWhileFetching!==void 0),n?h.__staleWhileFetching:void 0):(s||this.delete(t),l&&(l.returnedStale=n),n?h:void 0)):(l&&(l.get="hit"),f?h.__staleWhileFetching:(this.moveToTail(u),r&&this.updateItemAge(u),h))}else l&&(l.get="miss")}connect(t,n){this.prev[n]=t,this.next[t]=n}moveToTail(t){t!==this.tail&&(t===this.head?this.head=this.next[t]:this.connect(this.prev[t],this.next[t]),this.connect(this.tail,t),this.tail=t)}get del(){return th("del","delete"),this.delete}delete(t){let n=!1;if(this.size!==0){let r=this.keyMap.get(t);if(r!==void 0)if(n=!0,this.size===1)this.clear();else{this.removeItemSize(r);let s=this.valList[r];this.isBackgroundFetch(s)?s.__abortController.abort(new Error("deleted")):(this.dispose(s,t,"delete"),this.disposeAfter&&this.disposed.push([s,t,"delete"])),this.keyMap.delete(t),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return n}clear(){for(let t of this.rindexes({allowStale:!0})){let n=this.valList[t];if(this.isBackgroundFetch(n))n.__abortController.abort(new Error("deleted"));else{let r=this.keyList[t];this.dispose(n,r,"delete"),this.disposeAfter&&this.disposed.push([n,r,"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 th("reset","clear"),this.clear}get length(){return vE("length","size"),this.size}static get AbortController(){return ba}static get AbortSignal(){return tv}},iv=vo;var ov=/(-?[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,sv={},yE=typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox"),Ua={};var Ls=class{constructor(t,n){v(this,"canvas");v(this,"ctx");v(this,"options");v(this,"imagesPending",0);v(this,"imagesLoaded",0);v(this,"imageIdsLoaded",[]);v(this,"frameIsRendering",!1);v(this,"pendingDrawCall",!1);v(this,"firstMeaningfulPaint",!1);v(this,"parallelTasks",8);v(this,"frameTasks",0);v(this,"loadingQueueOrdered",!0);v(this,"loadingQueue",[]);v(this,"currentTask",Promise.resolve());v(this,"tasksRunning",0);v(this,"stats");v(this,"averageJobTime",64);v(this,"lastKnownScale",1);v(this,"visible",[]);v(this,"previousVisible",[]);v(this,"rendererPosition");v(this,"dpi");v(this,"drawCalls",[]);v(this,"lastPaintedObject");v(this,"hostCache");v(this,"invalidated",[]);v(this,"_worker",()=>{if(this.loadingQueue.length){let t=this.loadingQueue.pop();t&&(this.tasksRunning++,this.frameTasks++,this.currentTask=t.task().then(()=>{this.tasksRunning--}).catch(()=>{this.tasksRunning--}))}});v(this,"_scheduled",0);v(this,"_doWork",()=>{this.loadingQueue.length===0&&this.tasksRunning===0&&this._scheduled&&(clearInterval(this._scheduled),this._scheduled=0);let t=this.parallelTasks||1;!this.firstMeaningfulPaint&&this.loadingQueue.length&&(t=this.loadingQueue.length);for(let n=0;n<=t;n++)this._worker()});this.canvas=t,this.rendererPosition=t.getBoundingClientRect(),this.ctx=t.getContext("2d",{alpha:!0}),this.ctx.imageSmoothingEnabled=!0,this.options=n||{},this.canvas.style.transition="opacity .3s",this.dpi=n?.dpi||1,this.hostCache=n?.lruCache?new iv({maxSize:1024*512*512,dispose:(r,s,l)=>{this.invalidated.push(s),r.width=0,r.height=0},sizeCalculation:(r,s)=>r.width*r.height}):{store:{},get(r){return this.store[r]},set(r,s){this.store[r]=s}}}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(t){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((n,r)=>n.network&&n.scale===r.scale?r.distance-n.distance:n.scale<r.scale?-1:1),this.loadingQueueOrdered=!0),this.previousVisible=this.visible,this.pendingDrawCall=!!this.drawCalls.length,this.pendingDrawCall)for(let n=0;n<this.drawCalls.length;n++){let r=this.drawCalls.shift();r&&r()}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(t,n,r){if(Number.isNaN(t)||Number.isNaN(n))return this.lastKnownScale;let s=this.getCanvasDims(),l=s.width/t,u=s.height/n,h=(l<u?u:l)*(r&&this.dpi||1);return Number.isNaN(h)||(this.lastKnownScale=h),this.lastKnownScale}beforeFrame(t,n,r,s){this.options.debug&&this.stats&&this.stats.begin(),this.frameIsRendering=!0,this.visible=[],this.options.beforeFrame&&this.options.beforeFrame(n);let l=this.getCanvasDims();if(this.ctx.globalAlpha=1,this.ctx.fillStyle=this.canvas.dataset.background??"rgb(0, 0, 0)",this.ctx.fillRect(0,0,l.width,l.height),s.enableFilters&&(s.filters.brightness||s.filters.contrast||s.filters.grayscale||s.filters.invert||s.filters.sepia||s.filters.saturate||s.filters.hueRotate||s.filters.blur)){let u="";s.filters.brightness&&(u+=`brightness(${~~(100+s.filters.brightness*100)}%) `),s.filters.contrast&&(u+=`contrast(${~~(100+s.filters.contrast*100)}%) `),s.filters.grayscale&&(u+=`grayscale(${~~(s.filters.grayscale*100)}%) `),s.filters.invert&&(u+=`invert(${~~(s.filters.invert*100)}%) `),s.filters.sepia&&(u+=`sepia(${~~(s.filters.sepia*100)}%) `),s.filters.saturate&&(u+=`saturate(${~~(100+s.filters.saturate*100)}%) `),s.filters.hueRotate&&(u+=`hue-rotate(${s.filters.hueRotate}deg) `),s.filters.blur&&(u+=`blur(${s.filters.blur}px) `),this.ctx.filter=u}else this.ctx.filter="none"}applyTransform(t,n,r,s,l){let u=t.__owner.value;if(u&&u.rotation){this.ctx.save();let h=n+s/2,f=r+l/2;this.ctx.translate(h,f),this.ctx.rotate(u.rotation*Math.PI/180),this.ctx.translate(-h,-f),this.lastPaintedObject=u}}clearTransform(){this.lastPaintedObject&&(this.lastPaintedObject.rotation&&this.ctx.restore(),this.lastPaintedObject=void 0)}paint(t,n,r,s,l,u){let h=this.ctx.globalAlpha;if(t instanceof Ge||t instanceof dn){if(t.display.rotation){this.ctx.save();let m=r+l/2,S=s+u/2;t.crop&&(m-=t.crop[n*5+1],S-=t.crop[n*5+2]),this.ctx.translate(m,S),this.ctx.rotate(t.display.rotation*Math.PI/180),this.ctx.translate(-m,-S)}if(this.visible.push(t),typeof t.style&&t.style.opacity!=="undefined"){if(!t.style.opacity)return;this.ctx.globalAlpha=t.style.opacity}try{let m=t.__host.canvas,S=this.getCanvasDims();if((m.indices.indexOf(n)===-1||this.invalidated.indexOf(m.canvases[n])!==-1)&&this.schedulePaintToCanvas(m,t,n,Ci({x:r+l/2,y:s+l/2},{x:S.width/2,y:S.height/2})),!this.firstMeaningfulPaint)return;let E=this.hostCache.get(m.canvases[n]);if(E)if(t.crop&&t.cropData){if(t.crop[n*5]){let P=[t.crop[n*5+1]/t.display.scale-t.display.points[n*5+1],t.crop[n*5+2]/t.display.scale-t.display.points[n*5+2],1+(t.crop[n*5+3]-t.crop[n*5+1])/t.display.scale,1+(t.crop[n*5+4]-t.crop[n*5+2])/t.display.scale];P[0]+=t.cropData.x/t.display.scale,P[1]+=t.cropData.y/t.display.scale;let k=t.x*this.lastKnownScale,R=t.y*this.lastKnownScale,A=[r+k,s+R,l,u];A[0]+=k,A[1]+=R,this.ctx.drawImage(E,P[0],P[1],P[2],P[3],A[0],A[1],A[2]+1,A[3]+1)}}else yE?this.ctx.drawImage(E,0,0,t.display.points[n*5+3]-t.display.points[n*5+1],t.display.points[n*5+4]-t.display.points[n*5+2],r,s,l+1,u+1):this.ctx.drawImage(E,0,0,t.display.points[n*5+3]-t.display.points[n*5+1],t.display.points[n*5+4]-t.display.points[n*5+2],r,s,l+Number.MIN_VALUE+.5,u+Number.MIN_VALUE+.5)}catch{}t.display.rotation&&this.ctx.restore()}let f=t instanceof Rn&&this.options.box,g=t instanceof Ti&&this.options.polygon;if((f||g)&&!t.props.className&&!t.props.html&&!t.props.href){if(this.visible.push(t),t.props.style){let m=Object.assign({},t.props.style||{},t.hovering?t.props.hoverStyles:{},t.pressing?t.props.pressStyles:{}),S=t.props.relativeStyle?1:l/t.width;typeof m.opacity<"u"&&(this.ctx.globalAlpha=m.opacity);let E=0;typeof m.borderWidth<"u"&&(E=parseInt(m.borderWidth,10)*S);let P=0;typeof m.outlineWidth<"u"&&(P=parseInt(m.outlineWidth,10)*S);let k=0;if(typeof m.outlineOffset<"u"&&(k=parseInt(m.outlineOffset,10)*S),m.borderColor&&(this.ctx.strokeStyle=m.borderColor),m.boxShadow){let R=m.boxShadow.split(/,(?![^(]*\))/);for(let A of R){let x=sv[A]||ov.exec(A)||ov.exec(A);sv[A]=x,x&&(this.ctx.save(),this.ctx.shadowOffsetX=parseInt(x[1])*this.dpi*S,this.ctx.shadowOffsetY=parseInt(x[3])*this.dpi*S,this.ctx.shadowBlur=parseInt(x[5])*this.dpi*S,this.ctx.shadowColor=x[9],this.ctx.fillStyle="rgba(0,0,0,1)",this.ctx.fillRect(r+E,s+E,l,u),this.ctx.restore())}}if(this.ctx.fillStyle=m.backgroundColor||"transparent",this.ctx.lineWidth=E,g){let R=t.shape,A=R.points||[],x=A.length;this.ctx.beginPath();for(let w=0;w<x;w++)this.ctx.lineTo(r+A[w][0]*this.lastKnownScale,s+A[w][1]*this.lastKnownScale);R.open||this.ctx.closePath(),E&&this.ctx.stroke(),R.open||this.ctx.fill()}else E&&this.ctx.strokeRect(r+E/2,s+E/2,l+E,u+E),this.ctx.fillRect(r+E,s+E,l,u);P&&(m.outlineColor&&(this.ctx.strokeStyle=m.outlineColor),this.ctx.lineWidth=P,this.ctx.strokeRect(r-P/2-k,s-P/2-k,l+E*2+P+k*2,u+E*2+P+k*2))}this.ctx.globalAlpha=h}}loadImage(t,n,r,s=!1){if(Ua[t]&&Ua[t].naturalWidth>0){n(Ua[t]);return}try{let l=!1;s||setTimeout(()=>{l||this.loadImage(t,n,r,!0)},3e3);let u=document.createElement("img");u.decoding="auto",u.onload=function(){l=!0,n(u),Ua[t]=u,u.onload=null},this.options.crossOrigin&&(u.crossOrigin="anonymous"),u.src=t,u.complete&&u.onload({}),u.width}catch(l){console.log("image error",l),r(l)}}schedulePaintToCanvas(t,n,r,s){this.imagesPending++,t.indices.push(r);let l=`${n.id}--${n.display.scale}-${r}`,u=this.invalidated.indexOf(l);u!==-1&&this.invalidated.splice(u,1),t.canvases[r]=l,n.__host.canvas.loading=!0,this.loadingQueueOrdered=!1,this.loadingQueue.push({id:l,scale:n.display.scale,network:!0,distance:s,task:()=>new Promise(h=>{if(this.visible.indexOf(n)===-1){this.imagesPending--,t.indices.splice(t.indices.indexOf(r),1),h();return}let f=n.getImageUrl(r);this.loadImage(f,g=>{this.loadingQueue.push({id:l,scale:n.display.scale,distance:s,task:()=>new Promise(m=>{this.imageIdsLoaded.includes(l)||(this.imagesLoaded++,this.imageIdsLoaded.push(l)),t.loaded.push(r),t.loaded.length===t.indices.length&&(t.loading=!1);let S=n.display.points.slice(r*5,r*5+5),E=document.createElement("canvas"),P=E.getContext("2d");E.width=S[3]-S[1],E.height=S[4]-S[2],this.hostCache.set(t.canvases[r],E),this.drawCalls.push(()=>{P.drawImage(g,0,0,S[3]-S[1],S[4]-S[2]),m()})})}),h()},g=>{this.imagesPending--,t.indices.splice(t.indices.indexOf(r),1),h()})})})}afterPaintLayer(t,n){}prepareLayer(t,n){if(t.__owner.value)if(t.cropData){let r=this.lastKnownScale*(1/t.display.scale);this.applyTransform(t,n[1],n[2],n[3]-n[1],n[4]-n[2])}else this.applyTransform(t,n[1],n[2],n[3]-n[1],n[4]-n[2]);(!t.__host||!t.__host.canvas)&&(t instanceof Ge||t instanceof dn)&&this.createImageHost(t)}finishLayer(){this.lastPaintedObject&&this.clearTransform()}createImageHost(t){t.__host=t.__host?t.__host:{},t.__host.canvas={canvas:void 0,canvases:[],indices:[],loaded:[],loading:!1}}getPointsAt(t,n,r,s){return t.getPointsAt(n,r,s)}getViewportBounds(t,n,r){let s=t.getActiveZone();if(s){let l=n[3]-n[1]<s.points[3]-s.points[1],u=n[4]-n[2]<s.points[4]-s.points[2];return{x1:l?s.points[1]-r:s.points[1]+(s.points[3]-s.points[1])/2-(n[3]-n[1])/2,y1:u?s.points[2]-r:s.points[2]+(s.points[4]-s.points[2])/2-(n[4]-n[2])/2,x2:l?s.points[3]+r:s.points[1]+(s.points[3]-s.points[1])/2-(n[3]-n[1])/2,y2:u?s.points[4]+r:s.points[2]+(s.points[4]-s.points[2])/2-(n[4]-n[2])/2}}return null}pendingUpdate(){let t=!this.pendingDrawCall&&this.drawCalls.length===0&&this.imagesPending===0&&this.loadingQueue.length===0&&this.tasksRunning===0;return!t&&this.visible.length===0&&setTimeout(()=>{this.canvas.style.opacity="1",this.firstMeaningfulPaint=!0},500),!this.firstMeaningfulPaint&&t&&this.visible.length?(this.canvas.style.opacity="1",this.firstMeaningfulPaint=t,!0):this.options.debug?!0:!t}getRendererScreenPosition(){return this.rendererPosition}reset(){this.loadingQueue=[],this.drawCalls=[]}};var Ri=class{constructor(t){v(this,"renderers",[]);v(this,"length");for(let n of t)n&&this.renderers.push(n);this.length=this.renderers.length}afterFrame(t,n,r,s){for(let l=0;l<this.length;l++)this.renderers[l].afterFrame(t,n,r,s)}afterPaintLayer(t,n){for(let r=0;r<this.length;r++)this.renderers[r].afterPaintLayer(t,n)}beforeFrame(t,n,r,s){for(let l=0;l<this.length;l++)this.renderers[l].beforeFrame(t,n,r,s)}triggerResize(){for(let t=0;t<this.length;t++){let n=this.renderers[t];n.triggerResize&&n.triggerResize()}}getPointsAt(t,n,r,s){return this.renderers[0].getPointsAt(t,n,r,s)}getScale(t,n){return this.renderers[0].getScale(t,n)}getViewportBounds(t,n,r){return this.renderers[0].getViewportBounds(t,n,r)}getRendererScreenPosition(){return this.renderers[0].getRendererScreenPosition()}isReady(){for(let t=0;t<this.length;t++)if(!this.renderers[t].isReady())return!1;return!0}paint(t,n,r,s,l,u){for(let h=0;h<this.length;h++)this.renderers[h].paint(t,n,r,s,l,u)}pendingUpdate(){for(let t=0;t<this.length;t++)if(this.renderers[t].pendingUpdate())return!0;return!1}prepareLayer(t,n){for(let r=0;r<this.length;r++)this.renderers[r].prepareLayer(t,n)}finishLayer(t,n){for(let r=0;r<this.length;r++)this.renderers[r].finishLayer(t,n)}resize(t,n){for(let r=0;r<this.length;r++)this.renderers[r].resize(t,n)}reset(){for(let t=0;t<this.length;t++)this.renderers[t].reset()}};var Ns=class{constructor(t){v(this,"canvas");v(this,"context");v(this,"heightRatio",1);v(this,"widthRatio",1);v(this,"target",new Float32Array(5));v(this,"initialWidth");v(this,"initialHeight");v(this,"bounds");v(this,"aggregate");v(this,"delta",0);v(this,"renderNextFrame",!0);this.canvas=t,this.initialWidth=t.width,this.initialHeight=t.height,this.context=t.getContext("2d"),this.context.globalAlpha=.5,this.aggregate=Qt(1)}isReady(){return!0}resize(){this.initialWidth=this.canvas.width,this.initialHeight=this.canvas.height,this.renderNextFrame=!0}afterFrame(t,n,r){if(this.renderNextFrame){this.context.clearRect(0,0,this.canvas.width,this.canvas.height);let s=this.initialWidth/t.width,l=this.initialHeight/t.height,u=this.widthRatio>this.heightRatio?s:l;if(this.target=r,this.bounds){let h=t.getPointsAt(this.bounds,this.aggregate,u);for(let[f,g]of h)if(f instanceof Ge&&f.__host.canvas){let m=g.length/5;for(let S=0;S<m;S++)if(f.__host.canvas.canvases[S]){let P={x1:g[S+1]*u,y1:g[S+2]*u,width:(g[S+3]-g[S+1])*u,height:(g[S+4]-g[S+2])*u}}}}t.getPoints().forEach((h,f,g)=>{if(f%5===0&&h){let m={x1:g[f+1]*u,y1:g[f+2]*u,x2:g[f+3]*u,y2:g[f+4]*u,width:(g[f+3]-g[f+1])*u,height:(g[f+4]-g[f+2])*u};this.context.strokeStyle="red",this.context.strokeRect(m.x1,m.y1,m.width,m.height)}}),r&&(this.context.strokeStyle="red",this.context.lineWidth=window.devicePixelRatio||1,this.context.strokeRect(r[1]*u,r[2]*u,(r[3]-r[1])*u,(r[4]-r[2])*u))}}getActiveZone(t){return null}getPointsAt(t,n,r,s){return t.getPointsAt(n,r,s)}getScale(t,n){return 1}beforeFrame(t,n){this.bounds=ee.singleBox(t.width,t.height)}drawImage(){}afterPaintLayer(t,n){}paint(t,n,r,s,l,u){this.renderNextFrame=!0}prepareLayer(t){}pendingUpdate(){return!1}hasActiveZone(){return!1}getViewportBounds(t,n,r){return null}getRendererScreenPosition(){return this.canvas.getBoundingClientRect()}finishLayer(){}reset(){}};var oh=class{constructor(){v(this,"autoWidth",!1);v(this,"autoHeight",!0);v(this,"width");v(this,"height");v(this,"world");v(this,"content",[]);v(this,"viewingDirection","left-to-right");v(this,"rows");v(this,"columns",4);v(this,"spacing",20);v(this,"reversed",!1);v(this,"padding",20);this.world=hn.withProps({width:0,height:0,viewingDirection:"left-to-right"}),this.width=0,this.height=0}setViewingDirection(t){this.viewingDirection=t}addContent(t){this.content.push(...t.map(n=>this.world.addObjectAt(n,{width:0,height:0,x:0,y:0})))}setWidth(t){this.width=t}setHeight(t){this.height=t}setSpacing(t){this.spacing=t}setPadding(t){this.padding=t}setRows(t){this.autoWidth=!0,this.rows=t}setColumns(t){this.autoHeight=!0,this.columns=t}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 t=this.content.length,n=()=>{if(this.autoWidth&&this.rows){let h=t>this.rows?this.rows:t;return{columns:Math.ceil(t/h),rows:h}}if(this.autoHeight&&this.columns){let h=t>this.columns?this.columns:t;return{columns:h,rows:Math.ceil(t/h)}}throw new Error("Something went wrong.")},{columns:r,rows:s}=n(),l=this.autoWidth?-1:this.width-this.padding*2,u=this.autoWidth?-1:(l-this.spacing*(r-1))/r;if(this.autoHeight&&!this.autoWidth){let h=0,f=this.padding;for(let g=0;g<s&&h!==t;g++){let m=0,S=[];for(let E=0;E<r;E++){let P=this.reversed?t-h:h;if(h===t)break;let k=this.content[P],R=k.width,A=k.width/k.height,x=u/A;S.push([h,u,x,u/R]),x>m&&(m=x),h++}for(let E=0;E<r&&S[E];E++){let P=this.world.getPoints(),k=S[E][0],R=S[E][1],A=S[E][2],x=S[E][3],w=this.padding+E*(this.spacing+R),_=f+(m-A)/2,L=this.reversed?t-k:k,O=P[L*5+1],z=P[L*5+2];this.world.scaleWorldObject(k,x),(O!==w||z!==_)&&this.world.translateWorldObject(L,w-O,_-z)}f+=m+this.spacing}this.height=f+this.padding,this.world.resize(this.width,this.height);return}this.autoWidth&&this.autoHeight,!this.autoWidth&&this.autoHeight}getWorld(){return this.world}};var Lv=Y(Tv(),1);function Rv(e){return{x:e[1],y:e[2],width:e[3]-e[1],height:e[4]-e[2]}}var zv="pan",Iv="scroll",_E="gesture",Nv={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},Os=(e={})=>({start:function(t){let{zoomWheelConstant:n,enableWheel:r,enableClickToZoom:s,ignoreSingleFingerTouch:l,enablePanOnWait:u,panOnWaitDelay:h,parentElement:f,requireMetaKeyForWheelZoom:g}={...Nv,...e},m={pointerStart:{x:0,y:0},isPressing:!1,mousemoveBuffer:V(5),multiTouch:{distance:0}};t.world.activatedEvents.push("onMouseUp","onMouseDown","onMouseMove","onTouchStart","onTouchEnd","onTouchMove");function S(){R=0,x="",_(),_(void 0,"notice"),A=0}function E(){t.world.constraintBounds(),S()}function P(M){if(M.which>1){m.isPressing=!1;return}t.mode==="explore"&&(M.preventDefault(),m.pointerStart.x=M.atlas.x,m.pointerStart.y=M.atlas.y,t.transitionManager.stopTransition(),m.isPressing=!0)}function k(){S(),m.isPressing&&(t.mode==="explore"&&t.world.constraintBounds(),m.isPressing=!1)}let R=0,A=0,x="";function w(M){if(t.mode==="explore"){if(M.atlasTouches.length===1&&(A=performance.now(),l==!1&&M.preventDefault(),m.pointerStart.x=M.atlasTouches[0].x,m.pointerStart.y=M.atlasTouches[0].y),M.atlasTouches.length===2){x=_E,M.preventDefault();let K=M.atlasTouches[0].x,se=M.atlasTouches[1].x;m.pointerStart.x=(K+se)/2;let Wn=M.atlasTouches[0].y,fe=M.atlasTouches[1].y;m.pointerStart.y=(Wn+fe)/2,R=Ci({x:M.touches[0].clientX,y:M.touches[0].clientY},{x:M.touches[1].clientX,y:M.touches[1].clientY})}t.transitionManager.stopTransition(),m.isPressing=!0}}function _(M,K="intent"){f&&(f.dataset[K]=M)}function L(M){let K=null,se=null,Wn=!1,fe=0;if(m.isPressing&&M.touches.length===2){let Et=M.touches[0].clientX,tn=M.touches[1].clientX;K=(Et+tn)/2;let Ir=M.touches[0].clientY,Lr=M.touches[1].clientY;se=(Ir+Lr)/2,fe=Ci({x:M.touches[0].clientX,y:M.touches[0].clientY},{x:M.touches[1].clientX,y:M.touches[1].clientY}),Wn=!0}if(_(x),m.isPressing&&M.touches.length===1){if(u&&(performance.now()-A<h&&x==""&&(x=Iv),x==""&&(x=zv)),_(x),x==""&&l==!0||x==Iv){_("require-two-finger","notice");return}let Et=M.touches[0];K=Et.clientX,se=Et.clientY}if(K!==null&&se!==null){let Et=t.getRendererScreenPosition();if(Et){let{x:tn,y:Ir}=t.viewerToWorld(K-Et.x,se-Et.y),Lr=fe&&R?fe/R:1;t.transitionManager.customTransition(j=>{j.from=V(t.target),j.to=Gt(j.from,At(Re(m.pointerStart.x-tn,m.pointerStart.y-Ir),vr(1/Lr,tn,Ir)),m.mousemoveBuffer),j.elapsed_time=0,j.total_time=0,j.timingFunction=zn.easeInOutExpo,j.done=!1})}R=fe}x==zv&&M.preventDefault()}function O(M){if(m.isPressing){let K=t.getRendererScreenPosition();if(K){let{x:se,y:Wn}=t.viewerToWorld(M.clientX-K.x,M.clientY-K.y);t.transitionManager.customTransition(fe=>{fe.from=V(t.target),fe.to=Gt(fe.from,Re(m.pointerStart.x-se,m.pointerStart.y-Wn),m.mousemoveBuffer),fe.elapsed_time=0,fe.total_time=0,fe.timingFunction=zn.easeInOutExpo,fe.done=!1})}}}function z(M){t.mode==="explore"&&t.world.zoomIn(M.atlas)}function D(M){let se=1+(0,Lv.default)(M).spinY/n;t.world.zoomTo(se,M.atlas,!0)}function b(M){return g&&M.metaKey==!1?(_("meta-required","notice"),M.stopPropagation(),!1):!0}t.world.addEventListener("mouseup",E),t.world.addEventListener("touchend",E),t.world.addEventListener("touchstart",w),t.world.addEventListener("mousedown",P),window.addEventListener("touchend",k),window.addEventListener("mouseup",k),window.addEventListener("mousemove",O),f&&f.addEventListener("touchmove",L),s&&(t.world.activatedEvents.push("onClick"),t.world.addEventListener("click",z)),r&&(t.world.activatedEvents.push("onWheel"),g&&f?.addEventListener("wheel",b,{passive:!0,capture:!0}),t.world.addEventListener("wheel",D));let q=t.world.addLayoutSubscriber((M,K)=>{if(M==="zone-changed"&&t.transitionManager.constrainBounds({transition:{duration:0}}),M==="zoom-to"&&K&&t.transitionManager.zoomTo(K.factor,{origin:K.point,stream:K.stream}),M==="go-home"){let se=K.immediate?{duration:0}:void 0;t.transitionManager.goToRegion(Rv(t.homePosition),{transition:se})}if(M==="goto-region"&&K){let se=K.immediate?{duration:0}:{};t.transitionManager.goToRegion(K,{transition:se})}M==="constrain-bounds"&&t.transitionManager.constrainBounds({transition:K?.immediate?{duration:0}:void 0})});return()=>{t.world.removeEventListener("mouseup",E),t.world.removeEventListener("touchend",E),t.world.removeEventListener("touchstart",w),t.world.removeEventListener("mousedown",P),window.removeEventListener("touchend",k),window.removeEventListener("mouseup",k),t.world.removeEventListener("mousemove",O),f&&(f.removeEventListener("touchmove",O),f.removeEventListener("wheel",b,{passive:!0,capture:!0})),s&&t.world.removeEventListener("click",z),r&&t.world.removeEventListener("wheel",D),q()}},updatePosition(){}});var Le=Y(le(),1);var qa=Y(le(),1),Yv=Y(Ie(),1),$n=qa.default.createContext("explore");$n.displayName="Mode";var Ms=()=>(0,qa.useContext)($n);function QE(e){return(0,Yv.jsx)($n.Provider,{value:e.mode,children:e.children})}var Xt=Y(le(),1);function Zv(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Ja({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){let s=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!s)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[l,u]=(0,Xt.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),h=(0,Xt.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:l,orientationHandler:null}),f=e?typeof e=="number"?e:e.scroll:null,g=e?typeof e=="number"?e:e.resize:null,m=(0,Xt.useRef)(!1);(0,Xt.useEffect)(()=>(m.current=!0,()=>void(m.current=!1)));let[S,E,P]=(0,Xt.useMemo)(()=>{let x=()=>{if(!h.current.element)return;let{left:w,top:_,width:L,height:O,bottom:z,right:D,x:b,y:q}=h.current.element.getBoundingClientRect(),M={left:w,top:_,width:L,height:O,bottom:z,right:D,x:b,y:q};h.current.element instanceof HTMLElement&&r&&(M.height=h.current.element.offsetHeight,M.width=h.current.element.offsetWidth),Object.freeze(M),m.current&&!ZE(h.current.lastBounds,M)&&u(h.current.lastBounds=M)};return[x,g?Zv(x,g):x,f?Zv(x,f):x]},[u,r,f,g]);function k(){h.current.scrollContainers&&(h.current.scrollContainers.forEach(x=>x.removeEventListener("scroll",P,!0)),h.current.scrollContainers=null),h.current.resizeObserver&&(h.current.resizeObserver.disconnect(),h.current.resizeObserver=null),h.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",h.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",h.current.orientationHandler))}function R(){h.current.element&&(h.current.resizeObserver=new s(P),h.current.resizeObserver.observe(h.current.element),t&&h.current.scrollContainers&&h.current.scrollContainers.forEach(x=>x.addEventListener("scroll",P,{capture:!0,passive:!0})),h.current.orientationHandler=()=>{P()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",h.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",h.current.orientationHandler))}let A=x=>{!x||x===h.current.element||(k(),h.current.element=x,h.current.scrollContainers=Kv(x),R())};return XE(P,!!t),GE(E),(0,Xt.useEffect)(()=>{k(),R()},[t,P,E]),(0,Xt.useEffect)(()=>k,[]),[A,l,S]}function GE(e){(0,Xt.useEffect)(()=>{let t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function XE(e,t){(0,Xt.useEffect)(()=>{if(t){let n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function Kv(e){let t=[];if(!e||e===document.body)return t;let{overflow:n,overflowX:r,overflowY:s}=window.getComputedStyle(e);return[n,r,s].some(l=>l==="auto"||l==="scroll")&&t.push(e),[...t,...Kv(e.parentElement)]}var YE=["x","y","top","bottom","left","right","width","height"],ZE=(e,t)=>YE.every(n=>e[n]===t[n]);var wh=Y(le(),1),qn=wh.default.createContext(null);qn.displayName="Atlas";var Gr=wh.default.createContext(null);Gr.displayName="Bounds";var er=Y(le(),1);var py=Y(dy(),1);var Bs,$E=typeof performance=="object"&&typeof performance.now=="function";if($E){let e=performance;Bs=()=>e.now()}else{let e=Date,t=e.now();Bs=()=>e.now()-t}var my=Y(le(),1);var qE=16;function hy(e,t){e&&e.appendChild&&t&&e.appendChild(t)}function gy(e,t){e&&e.removeChild&&t&&e.removeChild(t)}function JE(e,t){return gy(e.world,t)}function e2(e,t,n){return vy(e.world,t,n)}function vy(e,t,n){e&&e instanceof Kn&&(e=e.world),e&&e.insertBefore&&e.insertBefore(t,n)}function Ih(e,t,n){if(n&&(e.applyProps&&e.applyProps(n),e instanceof Ae))for(let r of mo){let s=r.slice(2).toLowerCase();n[r]!==t[r]&&(t[r]&&e.removeEventListener(s,t[r]),e.addEventListener(s,n[r]))}}function Lh(e,t){let n=Object.keys(t),r=!1;for(let s of n)if(mo.indexOf(s)!==-1){let l=Tn[s];if(l){if(e.activatedEvents.indexOf(l)!==-1)continue;r=!0,e.activatedEvents.push(l)}}r&&e.triggerEventActivation()}var ou=new Map,fy={};function t2(e,{args:t=[],...n},r,s,l){if(!(r instanceof Kn)&&l){let f=g=>g.return?f(g.return):g.stateNode&&g.stateNode.containerInfo;r=f(l)}let u,h=r.world;switch(e){case"world":u=hn.withProps({width:n.width,height:n.height,viewingDirection:"left-to-right"}),u.activatedEvents=h.activatedEvents,u.eventHandlers=h.eventHandlers,u.subscriptions=h.subscriptions,u.triggerEventActivation(),h=u;break;case"box":u=new Rn;break;case"shape":u=new Ti;break;case"worldObject":case"world-object":u=new Zn;break;case"worldImage":case"world-image":u=new Ge;break;case"texture":u=new Vr;break;case"compositeImage":case"composite-image":u=new Cs({id:n.id,width:n.width,height:n.height,images:[],renderOptions:n.renderOptions});break;case"tiledImage":case"tiled-image":u=dn.fromTile(n.uri,n.display,n.tile,n.scaleFactor,void 0,n.format,n.useFloorCalc,n.version3);break;case"paragraph":u=new yr,u.text=n.children;break;default:return}return Lh(h,n),Ih(u,{},n),u}function n2(e,t){if(t instanceof hn)e.world=t;else if(t instanceof Zn)e.world.appendChild(t);else if(t)throw new Error("Invalid root")}var js=(0,py.default)({unstable_now:Bs,now:Bs,createInstance:t2,removeChild:gy,appendChild:hy,appendInitialChild:hy,insertBefore:vy,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:n2,removeChildFromContainer:JE,createTextInstance(){},insertInContainerBefore:e2,prepareUpdate(e,t,n,r,s){return Lh(s.world,r),r},commitUpdate(e,t,n,r,s,l){e.applyProps&&t&&Ih(e,r,t)},finalizeInitialChildren(e){return e?.__handlers},getChildHostContext(){return fy},getRootHostContext(){return fy},prepareForCommit(e){return e.isCommitting=!0,null},preparePortalMount(){},hideInstance(e){e&&e.points&&(e.points[0]=0)},unhideInstance(e,t){e&&e.points&&(e.points[0]=1)},getPublicInstance(e){return e},hideTextInstance(){throw new Error("Text is not allowed in the react-three-fibre tree. You may have extraneous whitespace between components.")},resetAfterCommit(e){e.isCommitting=!1,e.pendingUpdate=!0,e.world&&e.world.needsRecalculate&&(e.world.recalculateWorldSize(),e.world.triggerRepaint())},shouldSetTextContent(){return!1},clearContainer(){return!1},supportsHydration:!1,supportsPersistence:!1,detachDeletedInstance(e){},afterActiveInstanceBlur(){},beforeActiveInstanceBlur(){},getCurrentEventPriority(){return console.log("getCurrentEventPriority"),qE},getInstanceFromNode(e){throw console.log("getInstanceFromNode",e),new Error("Not implemented")},getInstanceFromScope(e){throw console.log("getInstanceFromScope",e),new Error("Not implemented")},prepareScopeUpdate(e,t){throw console.log("prepareScopeUpdate",e,t),new Error("Not implemented")},logRecoverableError(){},requestPostPaintCallback(){}});js.injectIntoDevTools({bundleType:0,version:my.version,rendererPackageName:"@atlas-viewer/atlas"});function wo(e,t){let n=ou.get(e);n&&js.updateContainer(null,n,null,()=>{ou.delete(e),t&&t(e)})}var So={render(e,t){let n=ou.get(t);if(n)js.updateContainer(e,n,null);else{let r=js.createContainer(t,0,null,!1,null,"",()=>{},null);js.updateContainer(e,r,null),ou.set(t,r)}},unmountComponentAtNode(e,t){wo(e,t)}};var su=Y(le(),1),Yt=typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")?su.useLayoutEffect:su.useEffect;var xo=Y(Ie(),1),yy=er.default.memo(({children:e,setIsReady:t,onCreated:n,bounds:r,preset:s,mode:l="explore"})=>{let u=(0,er.useCallback)(function(f){let g=(0,er.useRef)(!1),m=()=>{t(!0)};return(0,er.useEffect)(()=>{if(s&&!g.current){s.runtime.goHome();let S=n&&n(s);return void(S&&S.then?S.then(m):m())}return()=>{}},[]),(0,er.useEffect)(()=>{g.current=!0},[]),f.children},[s]);return Yt(()=>{if(s){let h=s.runtime;l!==h.mode&&(h.mode=l),So.render((0,xo.jsx)(er.default.StrictMode,{children:(0,xo.jsx)(u,{children:(0,xo.jsx)(Gr.Provider,{value:r,children:(0,xo.jsx)($n.Provider,{value:l,children:(0,xo.jsx)(qn.Provider,{value:s,children:e})})})})}),h)}},[s,l,e]),Yt(()=>{if(s){let h=s.runtime;return()=>{So.unmountComponentAtNode(h)}}return()=>{}},[s]),null});var bs=class{constructor(t,n){v(this,"canvas");v(this,"gl");v(this,"program");v(this,"fragmentShader");v(this,"vertexShader");v(this,"rectBuffer");v(this,"fragmentShaderSource",`
|
|
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 ro(l.child.stateNode);default:return l.child.stateNode}},st.injectIntoDevTools=function(){var l={bundleType:0,version:N_,rendererPackageName:D_,currentDispatcherRef:W,reconcilerVersion:"19.2.0"};if(N1!==null&&(l.rendererConfig=N1),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled||!a.supportsFiber)l=!0;else{try{mo=a.inject(l),yi=a}catch{}l=!!a.checkDCE}}return l},st.isAlreadyRendering=function(){return(ot&6)!==0},st.observeVisibleRects=function(l,a,o,c){if(!fo)throw Error(n(363));l=im(l,a);var h=n3(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=c0(l).queue;o0(l,h,a,Au,o===null?i:function(){var d=c0(l);return d.next===null&&(d=l.alternate.memoizedState),io(l,d.next.queue,{},mi()),o(c)})},st.updateContainer=function(l,a,o,c){var h=a.current,d=mi();return A1(h,d,l,a,o,c),d},st.updateContainerSync=function(l,a,o,c){return A1(a.current,2,l,a,o,c),2},st};qo.exports.default=qo.exports;Object.defineProperty(qo.exports,"__esModule",{value:!0})});var Rb=pe((_6,Cb)=>{"use strict";Cb.exports=Mb()});var Nb=pe(Kl=>{"use strict";Kl.ConcurrentRoot=1;Kl.ContinuousEventPriority=8;Kl.DefaultEventPriority=32;Kl.DiscreteEventPriority=2;Kl.IdleEventPriority=268435456;Kl.LegacyRoot=0;Kl.NoEventPriority=0});var Hb=pe((O6,Db)=>{"use strict";Db.exports=Nb()});var $b=pe(Pe=>{"use strict";var b4=yt();function kb(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 Ie={d:{f:Fl,r:function(){throw Error(kb(522))},D:Fl,C:Fl,L:Fl,m:Fl,X:Fl,S:Fl,M:Fl},p:0,findDOMNode:null},E4=Symbol.for("react.portal");function x4(t,e,i){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E4,key:n==null?null:""+n,children:t,containerInfo:e,implementation:i}}var Fo=b4.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Af(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ie;Pe.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(kb(299));return x4(t,e,null,i)};Pe.flushSync=function(t){var e=Fo.T,i=Ie.p;try{if(Fo.T=null,Ie.p=2,t)return t()}finally{Fo.T=e,Ie.p=i,Ie.d.f()}};Pe.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,Ie.d.C(t,e))};Pe.prefetchDNS=function(t){typeof t=="string"&&Ie.d.D(t)};Pe.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var i=e.as,n=Af(i,e.crossOrigin),u=typeof e.integrity=="string"?e.integrity:void 0,s=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;i==="style"?Ie.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:u,fetchPriority:s}):i==="script"&&Ie.d.X(t,{crossOrigin:n,integrity:u,fetchPriority:s,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};Pe.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var i=Af(e.as,e.crossOrigin);Ie.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&&Ie.d.M(t)};Pe.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var i=e.as,n=Af(i,e.crossOrigin);Ie.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})}};Pe.preloadModule=function(t,e){if(typeof t=="string")if(e){var i=Af(e.as,e.crossOrigin);Ie.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 Ie.d.m(t)};Pe.requestFormReset=function(t){Ie.d.r(t)};Pe.unstable_batchedUpdates=function(t,e){return t(e)};Pe.useFormState=function(t,e,i){return Fo.H.useFormState(t,e,i)};Pe.useFormStatus=function(){return Fo.H.useHostTransitionStatus()};Pe.version="19.2.0"});var Dg=pe((XD,e2)=>{"use strict";function t2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t2)}catch(t){console.error(t)}}t2(),e2.exports=$b()});var dz=pe(Ph=>{"use strict";var Ee=zg(),OE=yt(),T4=Dg();function B(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 ME(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Uc(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 CE(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 RE(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 i2(t){if(Uc(t)!==t)throw Error(B(188))}function z4(t){var e=t.alternate;if(!e){if(e=Uc(t),e===null)throw Error(B(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 i2(u),t;if(s===n)return i2(u),e;s=s.sibling}throw Error(B(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(B(189))}}if(i.alternate!==n)throw Error(B(190))}if(i.tag!==3)throw Error(B(188));return i.stateNode.current===i?t:e}function NE(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=NE(t),e!==null)return e;t=t.sibling}return null}var Lt=Object.assign,_4=Symbol.for("react.element"),Of=Symbol.for("react.transitional.element"),ic=Symbol.for("react.portal"),os=Symbol.for("react.fragment"),DE=Symbol.for("react.strict_mode"),hv=Symbol.for("react.profiler"),HE=Symbol.for("react.consumer"),rl=Symbol.for("react.context"),sy=Symbol.for("react.forward_ref"),dv=Symbol.for("react.suspense"),mv=Symbol.for("react.suspense_list"),oy=Symbol.for("react.memo"),Wl=Symbol.for("react.lazy");Symbol.for("react.scope");var gv=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var A4=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var n2=Symbol.iterator;function Wo(t){return t===null||typeof t!="object"?null:(t=n2&&t[n2]||t["@@iterator"],typeof t=="function"?t:null)}var O4=Symbol.for("react.client.reference");function vv(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===O4?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case os:return"Fragment";case hv:return"Profiler";case DE:return"StrictMode";case dv:return"Suspense";case mv:return"SuspenseList";case gv:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case ic:return"Portal";case rl:return t.displayName||"Context";case HE:return(t._context.displayName||"Context")+".Consumer";case sy:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case oy:return e=t.displayName||null,e!==null?e:vv(t.type)||"Memo";case Wl:e=t._payload,t=t._init;try{return vv(t(e))}catch{}}return null}var nc=Array.isArray,tt=OE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Tt=T4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$a={pending:!1,data:null,method:null,action:null},yv=[],cs=-1;function Un(t){return{current:t}}function Ce(t){0>cs||(t.current=yv[cs],yv[cs]=null,cs--)}function Ht(t,e){cs++,yv[cs]=t.current,t.current=e}var Hn=Un(null),bc=Un(null),ua=Un(null),uh=Un(null);function sh(t,e){switch(Ht(ua,e),Ht(bc,t),Ht(Hn,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?rE(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=rE(e),t=$T(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Ce(Hn),Ht(Hn,t)}function Os(){Ce(Hn),Ce(bc),Ce(ua)}function pv(t){t.memoizedState!==null&&Ht(uh,t);var e=Hn.current,i=$T(e,t.type);e!==i&&(Ht(bc,t),Ht(Hn,i))}function oh(t){bc.current===t&&(Ce(Hn),Ce(bc)),uh.current===t&&(Ce(uh),Nc._currentValue=$a)}var Hg,l2;function Wa(t){if(Hg===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);Hg=e&&e[1]||"",l2=-1<i.stack.indexOf(`
|
|
13
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
14
|
+
`+Hg+t+l2}var Ug=!1;function Bg(t,e){if(!t||Ug)return"";Ug=!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
|
+
`),v=f.split(`
|
|
16
|
+
`);for(u=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;u<v.length&&!v[u].includes("DetermineComponentFrameRoot");)u++;if(n===m.length||u===v.length)for(n=m.length-1,u=v.length-1;1<=n&&0<=u&&m[n]!==v[u];)u--;for(;1<=n&&0<=u;n--,u--)if(m[n]!==v[u]){if(n!==1||u!==1)do if(n--,u--,0>u||m[n]!==v[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{Ug=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Wa(i):""}function M4(t,e){switch(t.tag){case 26:case 27:case 5:return Wa(t.type);case 16:return Wa("Lazy");case 13:return t.child!==e&&e!==null?Wa("Suspense Fallback"):Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return Bg(t.type,!1);case 11:return Bg(t.type.render,!1);case 1:return Bg(t.type,!0);case 31:return Wa("Activity");default:return""}}function a2(t){try{var e="",i=null;do e+=M4(t,i),i=t,t=t.return;while(t);return e}catch(n){return`
|
|
18
|
+
Error generating stack: `+n.message+`
|
|
19
|
+
`+n.stack}}var Sv=Object.prototype.hasOwnProperty,cy=Ee.unstable_scheduleCallback,wg=Ee.unstable_cancelCallback,C4=Ee.unstable_shouldYield,R4=Ee.unstable_requestPaint,Ri=Ee.unstable_now,N4=Ee.unstable_getCurrentPriorityLevel,UE=Ee.unstable_ImmediatePriority,BE=Ee.unstable_UserBlockingPriority,ch=Ee.unstable_NormalPriority,D4=Ee.unstable_LowPriority,wE=Ee.unstable_IdlePriority,H4=Ee.log,U4=Ee.unstable_setDisableYieldValue,Bc=null,Ni=null;function ea(t){if(typeof H4=="function"&&U4(t),Ni&&typeof Ni.setStrictMode=="function")try{Ni.setStrictMode(Bc,t)}catch{}}var Di=Math.clz32?Math.clz32:j4,B4=Math.log,w4=Math.LN2;function j4(t){return t>>>=0,t===0?32:31-(B4(t)/w4|0)|0}var Mf=256,Cf=262144,Rf=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 Bh(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 wc(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function L4(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 jE(){var t=Rf;return Rf<<=1,!(Rf&62914560)&&(Rf=4194304),t}function jg(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function jc(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function q4(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,v=t.hiddenUpdates;for(i=r&~i;0<i;){var g=31-Di(i),S=1<<g;f[g]=0,m[g]=-1;var p=v[g];if(p!==null)for(v[g]=null,g=0;g<p.length;g++){var x=p[g];x!==null&&(x.lane&=-536870913)}i&=~S}n!==0&&LE(t,n,0),s!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=s&~(r&~e))}function LE(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Di(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|i&261930}function qE(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var n=31-Di(i),u=1<<n;u&e|t[n]&e&&(t[n]|=e),i&=~u}}function GE(t,e){var i=e&-e;return i=i&42?1:ry(i),i&(t.suspendedLanes|e)?0:i}function ry(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 fy(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function YE(){var t=Tt.p;return t!==0?t:(t=window.event,t===void 0?32:rz(t.type))}function u2(t,e){var i=Tt.p;try{return Tt.p=t,e()}finally{Tt.p=i}}var Sa=Math.random().toString(36).slice(2),je="__reactFiber$"+Sa,fi="__reactProps$"+Sa,Ls="__reactContainer$"+Sa,bv="__reactEvents$"+Sa,G4="__reactListeners$"+Sa,Y4="__reactHandles$"+Sa,s2="__reactResources$"+Sa,Lc="__reactMarker$"+Sa;function hy(t){delete t[je],delete t[fi],delete t[bv],delete t[G4],delete t[Y4]}function rs(t){var e=t[je];if(e)return e;for(var i=t.parentNode;i;){if(e=i[Ls]||i[je]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=gE(t);t!==null;){if(i=t[je])return i;t=gE(t)}return e}t=i,i=t.parentNode}return null}function qs(t){if(t=t[je]||t[Ls]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function lc(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(B(33))}function bs(t){var e=t[s2];return e||(e=t[s2]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Me(t){t[Lc]=!0}var QE=new Set,XE={};function cu(t,e){Ms(t,e),Ms(t+"Capture",e)}function Ms(t,e){for(XE[t]=e,t=0;t<e.length;t++)QE.add(e[t])}var Q4=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]*$"),o2={},c2={};function X4(t){return Sv.call(c2,t)?!0:Sv.call(o2,t)?!1:Q4.test(t)?c2[t]=!0:(o2[t]=!0,!1)}function Zf(t,e,i){if(X4(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 Nf(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 nl(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 Ji(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function VE(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function V4(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 Ev(t){if(!t._valueTracker){var e=VE(t)?"checked":"value";t._valueTracker=V4(t,e,""+t[e])}}function ZE(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),n="";return t&&(n=VE(t)?t.checked?"true":"false":t.value),t=n,t!==i?(e.setValue(t),!0):!1}function rh(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 Z4=/[\n"\\]/g;function Ii(t){return t.replace(Z4,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function xv(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=""+Ji(e)):t.value!==""+Ji(e)&&(t.value=""+Ji(e)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),e!=null?Tv(t,r,Ji(e)):i!=null?Tv(t,r,Ji(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=""+Ji(f):t.removeAttribute("name")}function KE(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)){Ev(t);return}i=i!=null?""+Ji(i):"",e=e!=null?""+Ji(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),Ev(t)}function Tv(t,e,i){e==="number"&&rh(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Es(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=""+Ji(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 JE(t,e,i){if(e!=null&&(e=""+Ji(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Ji(i):""}function FE(t,e,i,n){if(e==null){if(n!=null){if(i!=null)throw Error(B(92));if(nc(n)){if(1<n.length)throw Error(B(93));n=n[0]}i=n}i==null&&(i=""),e=i}i=Ji(e),t.defaultValue=i,n=t.textContent,n===i&&n!==""&&n!==null&&(t.value=n),Ev(t)}function Cs(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var K4=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 r2(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||K4.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function WE(t,e,i){if(e!=null&&typeof e!="object")throw Error(B(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&&r2(t,u,n)}else for(var s in e)e.hasOwnProperty(s)&&r2(t,s,e[s])}function dy(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 J4=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"]]),F4=/^[\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 Kf(t){return F4.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function fl(){}var zv=null;function my(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var fs=null,xs=null;function f2(t){var e=qs(t);if(e&&(t=e.stateNode)){var i=t[fi]||null;t:switch(t=e.stateNode,e.type){case"input":if(xv(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="'+Ii(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var n=i[e];if(n!==t&&n.form===t.form){var u=n[fi]||null;if(!u)throw Error(B(90));xv(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&&ZE(n)}break t;case"textarea":JE(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&Es(t,!!i.multiple,e,!1)}}}var Lg=!1;function IE(t,e,i){if(Lg)return t(e,i);Lg=!0;try{var n=t(e);return n}finally{if(Lg=!1,(fs!==null||xs!==null)&&(Jh(),fs&&(e=fs,t=xs,xs=fs=null,f2(e),t)))for(e=0;e<t.length;e++)f2(t[e])}}function Ec(t,e){var i=t.stateNode;if(i===null)return null;var n=i[fi]||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(B(231,e,typeof i));return i}var vl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_v=!1;if(vl)try{ns={},Object.defineProperty(ns,"passive",{get:function(){_v=!0}}),window.addEventListener("test",ns,ns),window.removeEventListener("test",ns,ns)}catch{_v=!1}var ns,ia=null,gy=null,Jf=null;function PE(){if(Jf)return Jf;var t,e=gy,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 Jf=u.slice(t,1<n?1-n:void 0)}function Ff(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 Df(){return!0}function h2(){return!1}function hi(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)?Df:h2,this.isPropagationStopped=h2,this}return Lt(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=Df)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Df)},persist:function(){},isPersistent:Df}),e}var ru={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wh=hi(ru),qc=Lt({},ru,{view:0,detail:0}),W4=hi(qc),qg,Gg,Io,jh=Lt({},qc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vy,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!==Io&&(Io&&t.type==="mousemove"?(qg=t.screenX-Io.screenX,Gg=t.screenY-Io.screenY):Gg=qg=0,Io=t),qg)},movementY:function(t){return"movementY"in t?t.movementY:Gg}}),d2=hi(jh),I4=Lt({},jh,{dataTransfer:0}),P4=hi(I4),k4=Lt({},qc,{relatedTarget:0}),Yg=hi(k4),$4=Lt({},ru,{animationName:0,elapsedTime:0,pseudoElement:0}),tO=hi($4),eO=Lt({},ru,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),iO=hi(eO),nO=Lt({},ru,{data:0}),m2=hi(nO),lO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aO={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"},uO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sO(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=uO[t])?!!e[t]:!1}function vy(){return sO}var oO=Lt({},qc,{key:function(t){if(t.key){var e=lO[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ff(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?aO[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vy,charCode:function(t){return t.type==="keypress"?Ff(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ff(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),cO=hi(oO),rO=Lt({},jh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),g2=hi(rO),fO=Lt({},qc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vy}),hO=hi(fO),dO=Lt({},ru,{propertyName:0,elapsedTime:0,pseudoElement:0}),mO=hi(dO),gO=Lt({},jh,{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=hi(gO),yO=Lt({},ru,{newState:0,oldState:0}),pO=hi(yO),SO=[9,13,27,32],yy=vl&&"CompositionEvent"in window,sc=null;vl&&"documentMode"in document&&(sc=document.documentMode);var bO=vl&&"TextEvent"in window&&!sc,kE=vl&&(!yy||sc&&8<sc&&11>=sc),v2=" ",y2=!1;function $E(t,e){switch(t){case"keyup":return SO.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tx(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hs=!1;function EO(t,e){switch(t){case"compositionend":return tx(e);case"keypress":return e.which!==32?null:(y2=!0,v2);case"textInput":return t=e.data,t===v2&&y2?null:t;default:return null}}function xO(t,e){if(hs)return t==="compositionend"||!yy&&$E(t,e)?(t=PE(),Jf=gy=ia=null,hs=!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 kE&&e.locale!=="ko"?null:e.data;default:return null}}var TO={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 p2(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!TO[t.type]:e==="textarea"}function ex(t,e,i,n){fs?xs?xs.push(n):xs=[n]:fs=n,e=Mh(e,"onChange"),0<e.length&&(i=new wh("onChange","change",null,i,n),t.push({event:i,listeners:e}))}var oc=null,xc=null;function zO(t){IT(t,0)}function Lh(t){var e=lc(t);if(ZE(e))return t}function S2(t,e){if(t==="change")return e}var ix=!1;vl&&(vl?(Uf="oninput"in document,Uf||(Qg=document.createElement("div"),Qg.setAttribute("oninput","return;"),Uf=typeof Qg.oninput=="function"),Hf=Uf):Hf=!1,ix=Hf&&(!document.documentMode||9<document.documentMode));var Hf,Uf,Qg;function b2(){oc&&(oc.detachEvent("onpropertychange",nx),xc=oc=null)}function nx(t){if(t.propertyName==="value"&&Lh(xc)){var e=[];ex(e,xc,t,my(t)),IE(zO,e)}}function _O(t,e,i){t==="focusin"?(b2(),oc=e,xc=i,oc.attachEvent("onpropertychange",nx)):t==="focusout"&&b2()}function AO(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Lh(xc)}function OO(t,e){if(t==="click")return Lh(e)}function MO(t,e){if(t==="input"||t==="change")return Lh(e)}function CO(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ui=typeof Object.is=="function"?Object.is:CO;function Tc(t,e){if(Ui(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(!Sv.call(e,u)||!Ui(t[u],e[u]))return!1}return!0}function E2(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function x2(t,e){var i=E2(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=E2(i)}}function lx(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?lx(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ax(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=rh(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=rh(t.document)}return e}function py(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 RO=vl&&"documentMode"in document&&11>=document.documentMode,ds=null,Av=null,cc=null,Ov=!1;function T2(t,e,i){var n=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ov||ds==null||ds!==rh(n)||(n=ds,"selectionStart"in n&&py(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}),cc&&Tc(cc,n)||(cc=n,n=Mh(Av,"onSelect"),0<n.length&&(e=new wh("onSelect","select",null,e,i),t.push({event:e,listeners:n}),e.target=ds)))}function Fa(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var ms={animationend:Fa("Animation","AnimationEnd"),animationiteration:Fa("Animation","AnimationIteration"),animationstart:Fa("Animation","AnimationStart"),transitionrun:Fa("Transition","TransitionRun"),transitionstart:Fa("Transition","TransitionStart"),transitioncancel:Fa("Transition","TransitionCancel"),transitionend:Fa("Transition","TransitionEnd")},Xg={},ux={};vl&&(ux=document.createElement("div").style,"AnimationEvent"in window||(delete ms.animationend.animation,delete ms.animationiteration.animation,delete ms.animationstart.animation),"TransitionEvent"in window||delete ms.transitionend.transition);function fu(t){if(Xg[t])return Xg[t];if(!ms[t])return t;var e=ms[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in ux)return Xg[t]=e[i];return t}var sx=fu("animationend"),ox=fu("animationiteration"),cx=fu("animationstart"),NO=fu("transitionrun"),DO=fu("transitionstart"),HO=fu("transitioncancel"),rx=fu("transitionend"),fx=new Map,Mv="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(" ");Mv.push("scrollEnd");function mn(t,e){fx.set(t,e),cu(e,[t])}var fh=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)},Ki=[],gs=0,Sy=0;function qh(){for(var t=gs,e=Sy=gs=0;e<t;){var i=Ki[e];Ki[e++]=null;var n=Ki[e];Ki[e++]=null;var u=Ki[e];Ki[e++]=null;var s=Ki[e];if(Ki[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&&hx(i,u,s)}}function Gh(t,e,i,n){Ki[gs++]=t,Ki[gs++]=e,Ki[gs++]=i,Ki[gs++]=n,Sy|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function by(t,e,i,n){return Gh(t,e,i,n),hh(t)}function hu(t,e){return Gh(t,null,null,e),hh(t)}function hx(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-Di(i),t=s.hiddenUpdates,n=t[u],n===null?t[u]=[e]:n.push(e),e.lane=i|536870912),s):null}function hh(t){if(50<pc)throw pc=0,Wv=null,Error(B(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var vs={};function UO(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 Mi(t,e,i,n){return new UO(t,e,i,n)}function Ey(t){return t=t.prototype,!(!t||!t.isReactComponent)}function dl(t,e){var i=t.alternate;return i===null?(i=Mi(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 dx(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 Wf(t,e,i,n,u,s){var r=0;if(n=t,typeof t=="function")Ey(t)&&(r=1);else if(typeof t=="string")r=jM(t,i,Hn.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case gv:return t=Mi(31,i,e,u),t.elementType=gv,t.lanes=s,t;case os:return tu(i.children,u,s,e);case DE:r=8,u|=24;break;case hv:return t=Mi(12,i,e,u|2),t.elementType=hv,t.lanes=s,t;case dv:return t=Mi(13,i,e,u),t.elementType=dv,t.lanes=s,t;case mv:return t=Mi(19,i,e,u),t.elementType=mv,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case rl:r=10;break t;case HE:r=9;break t;case sy:r=11;break t;case oy:r=14;break t;case Wl:r=16,n=null;break t}r=29,i=Error(B(130,t===null?"null":typeof t,"")),n=null}return e=Mi(r,i,e,u),e.elementType=t,e.type=n,e.lanes=s,e}function tu(t,e,i,n){return t=Mi(7,t,n,e),t.lanes=i,t}function Vg(t,e,i){return t=Mi(6,t,null,e),t.lanes=i,t}function mx(t){var e=Mi(18,null,null,0);return e.stateNode=t,e}function Zg(t,e,i){return e=Mi(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var z2=new WeakMap;function Pi(t,e){if(typeof t=="object"&&t!==null){var i=z2.get(t);return i!==void 0?i:(e={value:t,source:e,stack:a2(e)},z2.set(t,e),e)}return{value:t,source:e,stack:a2(e)}}var ys=[],ps=0,dh=null,zc=0,Fi=[],Wi=0,ga=null,Rn=1,Nn="";function ol(t,e){ys[ps++]=zc,ys[ps++]=dh,dh=t,zc=e}function gx(t,e,i){Fi[Wi++]=Rn,Fi[Wi++]=Nn,Fi[Wi++]=ga,ga=t;var n=Rn;t=Nn;var u=32-Di(n)-1;n&=~(1<<u),i+=1;var s=32-Di(e)+u;if(30<s){var r=u-u%5;s=(n&(1<<r)-1).toString(32),n>>=r,u-=r,Rn=1<<32-Di(e)+u|i<<u|n,Nn=s+t}else Rn=1<<s|i<<u|n,Nn=t}function xy(t){t.return!==null&&(ol(t,1),gx(t,1,0))}function Ty(t){for(;t===dh;)dh=ys[--ps],ys[ps]=null,zc=ys[--ps],ys[ps]=null;for(;t===ga;)ga=Fi[--Wi],Fi[Wi]=null,Nn=Fi[--Wi],Fi[Wi]=null,Rn=Fi[--Wi],Fi[Wi]=null}function vx(t,e){Fi[Wi++]=Rn,Fi[Wi++]=Nn,Fi[Wi++]=ga,Rn=e.id,Nn=e.overflow,ga=t}var Le=null,jt=null,vt=!1,sa=null,ki=!1,Cv=Error(B(519));function va(t){var e=Error(B(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _c(Pi(e,t)),Cv}function _2(t){var e=t.stateNode,i=t.type,n=t.memoizedProps;switch(e[je]=t,e[fi]=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<Cc.length;i++)rt(Cc[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),KE(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),FE(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||kT(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=fl),e=!0):e=!1,e||va(t,!0)}function A2(t){for(Le=t.return;Le;)switch(Le.tag){case 5:case 31:case 13:ki=!1;return;case 27:case 3:ki=!0;return;default:Le=Le.return}}function ls(t){if(t!==Le)return!1;if(!vt)return A2(t),vt=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||ty(t.type,t.memoizedProps)),i=!i),i&&jt&&va(t),A2(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(B(317));jt=mE(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(B(317));jt=mE(t)}else e===27?(e=jt,ba(t.type)?(t=ly,ly=null,jt=t):jt=e):jt=Le?tn(t.stateNode.nextSibling):null;return!0}function lu(){jt=Le=null,vt=!1}function Kg(){var t=sa;return t!==null&&(ci===null?ci=t:ci.push.apply(ci,t),sa=null),t}function _c(t){sa===null?sa=[t]:sa.push(t)}var Rv=Un(null),du=null,hl=null;function Pl(t,e,i){Ht(Rv,e._currentValue),e._currentValue=i}function ml(t){t._currentValue=Rv.current,Ce(Rv)}function Nv(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 Dv(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),Nv(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(B(341));r.lanes|=i,s=r.alternate,s!==null&&(s.lanes|=i),Nv(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 Gs(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(B(387));if(r=r.memoizedProps,r!==null){var f=u.type;Ui(u.pendingProps.value,r.value)||(t!==null?t.push(f):t=[f])}}else if(u===uh.current){if(r=u.alternate,r===null)throw Error(B(387));r.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Nc):t=[Nc])}u=u.return}t!==null&&Dv(e,t,i,n),e.flags|=262144}function mh(t){for(t=t.firstContext;t!==null;){if(!Ui(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function au(t){du=t,hl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function qe(t){return yx(du,t)}function Bf(t,e){return du===null&&au(t),yx(t,e)}function yx(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},hl===null){if(t===null)throw Error(B(308));hl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else hl=hl.next=e;return i}var BO=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()})}},wO=Ee.unstable_scheduleCallback,jO=Ee.unstable_NormalPriority,he={$$typeof:rl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zy(){return{controller:new BO,data:new Map,refCount:0}}function Gc(t){t.refCount--,t.refCount===0&&wO(jO,function(){t.controller.abort()})}var rc=null,Hv=0,Rs=0,Ts=null;function LO(t,e){if(rc===null){var i=rc=[];Hv=0,Rs=Wy(),Ts={status:"pending",value:void 0,then:function(n){i.push(n)}}}return Hv++,e.then(O2,O2),e}function O2(){if(--Hv===0&&rc!==null){Ts!==null&&(Ts.status="fulfilled");var t=rc;rc=null,Rs=0,Ts=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function qO(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 M2=tt.S;tt.S=function(t,e){NT=Ri(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&LO(t,e),M2!==null&&M2(t,e)};var eu=Un(null);function _y(){var t=eu.current;return t!==null?t:Dt.pooledCache}function If(t,e){e===null?Ht(eu,eu.current):Ht(eu,e.pool)}function px(){var t=_y();return t===null?null:{parent:he._currentValue,pool:t}}var Ys=Error(B(460)),Ay=Error(B(474)),Yh=Error(B(542)),gh={then:function(){}};function C2(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Sx(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(fl,fl),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,N2(t),t;default:if(typeof e.status=="string")e.then(fl,fl);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(B(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,N2(t),t}throw iu=e,Ys}}function Pa(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(iu=i,Ys):i}}var iu=null;function R2(){if(iu===null)throw Error(B(459));var t=iu;return iu=null,t}function N2(t){if(t===Ys||t===Yh)throw Error(B(483))}var zs=null,Ac=0;function wf(t){var e=Ac;return Ac+=1,zs===null&&(zs=[]),Sx(zs,t,e)}function Po(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function jf(t,e){throw e.$$typeof===_4?Error(B(525)):(t=Object.prototype.toString.call(e),Error(B(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function bx(t){function e(T,E){if(t){var _=T.deletions;_===null?(T.deletions=[E],T.flags|=16):_.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=dl(T,E),T.index=0,T.sibling=null,T}function s(T,E,_){return T.index=_,t?(_=T.alternate,_!==null?(_=_.index,_<E?(T.flags|=67108866,E):_):(T.flags|=67108866,E)):(T.flags|=1048576,E)}function r(T){return t&&T.alternate===null&&(T.flags|=67108866),T}function f(T,E,_,O){return E===null||E.tag!==6?(E=Vg(_,T.mode,O),E.return=T,E):(E=u(E,_),E.return=T,E)}function m(T,E,_,O){var H=_.type;return H===os?g(T,E,_.props.children,O,_.key):E!==null&&(E.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===Wl&&Pa(H)===E.type)?(E=u(E,_.props),Po(E,_),E.return=T,E):(E=Wf(_.type,_.key,_.props,null,T.mode,O),Po(E,_),E.return=T,E)}function v(T,E,_,O){return E===null||E.tag!==4||E.stateNode.containerInfo!==_.containerInfo||E.stateNode.implementation!==_.implementation?(E=Zg(_,T.mode,O),E.return=T,E):(E=u(E,_.children||[]),E.return=T,E)}function g(T,E,_,O,H){return E===null||E.tag!==7?(E=tu(_,T.mode,O,H),E.return=T,E):(E=u(E,_),E.return=T,E)}function S(T,E,_){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Vg(""+E,T.mode,_),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Of:return _=Wf(E.type,E.key,E.props,null,T.mode,_),Po(_,E),_.return=T,_;case ic:return E=Zg(E,T.mode,_),E.return=T,E;case Wl:return E=Pa(E),S(T,E,_)}if(nc(E)||Wo(E))return E=tu(E,T.mode,_,null),E.return=T,E;if(typeof E.then=="function")return S(T,wf(E),_);if(E.$$typeof===rl)return S(T,Bf(T,E),_);jf(T,E)}return null}function p(T,E,_,O){var H=E!==null?E.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return H!==null?null:f(T,E,""+_,O);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Of:return _.key===H?m(T,E,_,O):null;case ic:return _.key===H?v(T,E,_,O):null;case Wl:return _=Pa(_),p(T,E,_,O)}if(nc(_)||Wo(_))return H!==null?null:g(T,E,_,O,null);if(typeof _.then=="function")return p(T,E,wf(_),O);if(_.$$typeof===rl)return p(T,E,Bf(T,_),O);jf(T,_)}return null}function x(T,E,_,O,H){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return T=T.get(_)||null,f(E,T,""+O,H);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Of:return T=T.get(O.key===null?_:O.key)||null,m(E,T,O,H);case ic:return T=T.get(O.key===null?_:O.key)||null,v(E,T,O,H);case Wl:return O=Pa(O),x(T,E,_,O,H)}if(nc(O)||Wo(O))return T=T.get(_)||null,g(E,T,O,H,null);if(typeof O.then=="function")return x(T,E,_,wf(O),H);if(O.$$typeof===rl)return x(T,E,_,Bf(E,O),H);jf(E,O)}return null}function A(T,E,_,O){for(var H=null,U=null,q=E,Z=E=0,J=null;q!==null&&Z<_.length;Z++){q.index>Z?(J=q,q=null):J=q.sibling;var w=p(T,q,_[Z],O);if(w===null){q===null&&(q=J);break}t&&q&&w.alternate===null&&e(T,q),E=s(w,E,Z),U===null?H=w:U.sibling=w,U=w,q=J}if(Z===_.length)return i(T,q),vt&&ol(T,Z),H;if(q===null){for(;Z<_.length;Z++)q=S(T,_[Z],O),q!==null&&(E=s(q,E,Z),U===null?H=q:U.sibling=q,U=q);return vt&&ol(T,Z),H}for(q=n(q);Z<_.length;Z++)J=x(q,T,Z,_[Z],O),J!==null&&(t&&J.alternate!==null&&q.delete(J.key===null?Z:J.key),E=s(J,E,Z),U===null?H=J:U.sibling=J,U=J);return t&&q.forEach(function(P){return e(T,P)}),vt&&ol(T,Z),H}function R(T,E,_,O){if(_==null)throw Error(B(151));for(var H=null,U=null,q=E,Z=E=0,J=null,w=_.next();q!==null&&!w.done;Z++,w=_.next()){q.index>Z?(J=q,q=null):J=q.sibling;var P=p(T,q,w.value,O);if(P===null){q===null&&(q=J);break}t&&q&&P.alternate===null&&e(T,q),E=s(P,E,Z),U===null?H=P:U.sibling=P,U=P,q=J}if(w.done)return i(T,q),vt&&ol(T,Z),H;if(q===null){for(;!w.done;Z++,w=_.next())w=S(T,w.value,O),w!==null&&(E=s(w,E,Z),U===null?H=w:U.sibling=w,U=w);return vt&&ol(T,Z),H}for(q=n(q);!w.done;Z++,w=_.next())w=x(q,T,Z,w.value,O),w!==null&&(t&&w.alternate!==null&&q.delete(w.key===null?Z:w.key),E=s(w,E,Z),U===null?H=w:U.sibling=w,U=w);return t&&q.forEach(function(ut){return e(T,ut)}),vt&&ol(T,Z),H}function j(T,E,_,O){if(typeof _=="object"&&_!==null&&_.type===os&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Of:t:{for(var H=_.key;E!==null;){if(E.key===H){if(H=_.type,H===os){if(E.tag===7){i(T,E.sibling),O=u(E,_.props.children),O.return=T,T=O;break t}}else if(E.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===Wl&&Pa(H)===E.type){i(T,E.sibling),O=u(E,_.props),Po(O,_),O.return=T,T=O;break t}i(T,E);break}else e(T,E);E=E.sibling}_.type===os?(O=tu(_.props.children,T.mode,O,_.key),O.return=T,T=O):(O=Wf(_.type,_.key,_.props,null,T.mode,O),Po(O,_),O.return=T,T=O)}return r(T);case ic:t:{for(H=_.key;E!==null;){if(E.key===H)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){i(T,E.sibling),O=u(E,_.children||[]),O.return=T,T=O;break t}else{i(T,E);break}else e(T,E);E=E.sibling}O=Zg(_,T.mode,O),O.return=T,T=O}return r(T);case Wl:return _=Pa(_),j(T,E,_,O)}if(nc(_))return A(T,E,_,O);if(Wo(_)){if(H=Wo(_),typeof H!="function")throw Error(B(150));return _=H.call(_),R(T,E,_,O)}if(typeof _.then=="function")return j(T,E,wf(_),O);if(_.$$typeof===rl)return j(T,E,Bf(T,_),O);jf(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(i(T,E.sibling),O=u(E,_),O.return=T,T=O):(i(T,E),O=Vg(_,T.mode,O),O.return=T,T=O),r(T)):i(T,E)}return function(T,E,_,O){try{Ac=0;var H=j(T,E,_,O);return zs=null,H}catch(q){if(q===Ys||q===Yh)throw q;var U=Mi(29,q,null,T.mode);return U.lanes=O,U.return=T,U}finally{}}}var uu=bx(!0),Ex=bx(!1),Il=!1;function Oy(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uv(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,xt&2){var u=n.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),n.pending=e,e=hh(t),hx(t,null,i),e}return Gh(t,n,e,i),hh(t)}function fc(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,qE(t,i)}}function Jg(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 Bv=!1;function hc(){if(Bv){var t=Ts;if(t!==null)throw t}}function dc(t,e,i,n){Bv=!1;var u=t.updateQueue;Il=!1;var s=u.firstBaseUpdate,r=u.lastBaseUpdate,f=u.shared.pending;if(f!==null){u.shared.pending=null;var m=f,v=m.next;m.next=null,r===null?s=v:r.next=v,r=m;var g=t.alternate;g!==null&&(g=g.updateQueue,f=g.lastBaseUpdate,f!==r&&(f===null?g.firstBaseUpdate=v:f.next=v,g.lastBaseUpdate=m))}if(s!==null){var S=u.baseState;r=0,g=v=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===Rs&&(Bv=!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 j=i;switch(R.tag){case 1:if(A=R.payload,typeof A=="function"){S=A.call(j,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(j,S,p):A,p==null)break t;S=Lt({},S,p);break t;case 2:Il=!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?(v=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=v,u.lastBaseUpdate=g,s===null&&(u.shared.lanes=0),pa|=r,t.lanes=r,t.memoizedState=S}}function xx(t,e){if(typeof t!="function")throw Error(B(191,t));t.call(e)}function Tx(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)xx(i[t],e)}var Ns=Un(null),vh=Un(0);function D2(t,e){t=bl,Ht(vh,t),Ht(Ns,e),bl=t|e.baseLanes}function wv(){Ht(vh,bl),Ht(Ns,Ns.current)}function My(){bl=vh.current,Ce(Ns),Ce(vh)}var Bi=Un(null),$i=null;function kl(t){var e=t.alternate;Ht(le,le.current&1),Ht(Bi,t),$i===null&&(e===null||Ns.current!==null||e.memoizedState!==null)&&($i=t)}function jv(t){Ht(le,le.current),Ht(Bi,t),$i===null&&($i=t)}function zx(t){t.tag===22?(Ht(le,le.current),Ht(Bi,t),$i===null&&($i=t)):$l(t)}function $l(){Ht(le,le.current),Ht(Bi,Bi.current)}function Oi(t){Ce(Bi),$i===t&&($i=null),Ce(le)}var le=Un(0);function yh(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||iy(i)||ny(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 yl=0,at=null,Rt=null,re=null,ph=!1,_s=!1,su=!1,Sh=0,Oc=0,As=null,GO=0;function $t(){throw Error(B(321))}function Cy(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!Ui(t[i],e[i]))return!1;return!0}function Ry(t,e,i,n,u,s){return yl=s,at=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,tt.H=t===null||t.memoizedState===null?eT:Yy,su=!1,s=i(n,u),su=!1,_s&&(s=Ax(e,i,n,u)),_x(t),s}function _x(t){tt.H=Mc;var e=Rt!==null&&Rt.next!==null;if(yl=0,re=Rt=at=null,ph=!1,Oc=0,As=null,e)throw Error(B(300));t===null||de||(t=t.dependencies,t!==null&&mh(t)&&(de=!0))}function Ax(t,e,i,n){at=t;var u=0;do{if(_s&&(As=null),Oc=0,_s=!1,25<=u)throw Error(B(301));if(u+=1,re=Rt=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=iT,s=e(i,n)}while(_s);return s}function YO(){var t=tt.H,e=t.useState()[0];return e=typeof e.then=="function"?Yc(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(at.flags|=1024),e}function Ny(){var t=Sh!==0;return Sh=0,t}function Dy(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function Hy(t){if(ph){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ph=!1}yl=0,re=Rt=at=null,_s=!1,Oc=Sh=0,As=null}function ke(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?at.memoizedState=re=t:re=re.next=t,re}function ae(){if(Rt===null){var t=at.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=re===null?at.memoizedState:re.next;if(e!==null)re=e,Rt=t;else{if(t===null)throw at.alternate===null?Error(B(467)):Error(B(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},re===null?at.memoizedState=re=t:re=re.next=t}return re}function Qh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yc(t){var e=Oc;return Oc+=1,As===null&&(As=[]),t=Sx(As,t,e),e=at,(re===null?e.memoizedState:re.next)===null&&(e=e.alternate,tt.H=e===null||e.memoizedState===null?eT:Yy),t}function Xh(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Yc(t);if(t.$$typeof===rl)return qe(t)}throw Error(B(438,String(t)))}function Uy(t){var e=null,i=at.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var n=at.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(),at.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]=A4;return e.index++,i}function pl(t,e){return typeof e=="function"?e(t):e}function Pf(t){var e=ae();return By(e,Rt,t)}function By(t,e,i){var n=t.queue;if(n===null)throw Error(B(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,v=e,g=!1;do{var S=v.lane&-536870913;if(S!==v.lane?(mt&S)===S:(yl&S)===S){var p=v.revertLane;if(p===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),S===Rs&&(g=!0);else if((yl&p)===p){v=v.next,p===Rs&&(g=!0);continue}else S={lane:0,revertLane:v.revertLane,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},m===null?(f=m=S,r=s):m=m.next=S,at.lanes|=p,pa|=p;S=v.action,su&&i(s,S),s=v.hasEagerState?v.eagerState:i(s,S)}else p={lane:S,revertLane:v.revertLane,gesture:v.gesture,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},m===null?(f=m=p,r=s):m=m.next=p,at.lanes|=S,pa|=S;v=v.next}while(v!==null&&v!==e);if(m===null?r=s:m.next=f,!Ui(s,t.memoizedState)&&(de=!0,g&&(i=Ts,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 Fg(t){var e=ae(),i=e.queue;if(i===null)throw Error(B(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);Ui(s,e.memoizedState)||(de=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),i.lastRenderedState=s}return[s,n]}function Ox(t,e,i){var n=at,u=ae(),s=vt;if(s){if(i===void 0)throw Error(B(407));i=i()}else i=e();var r=!Ui((Rt||u).memoizedState,i);if(r&&(u.memoizedState=i,de=!0),u=u.queue,wy(Rx.bind(null,n,u,t),[t]),u.getSnapshot!==e||r||re!==null&&re.memoizedState.tag&1){if(n.flags|=2048,Ds(9,{destroy:void 0},Cx.bind(null,n,u,i,e),null),Dt===null)throw Error(B(349));s||yl&127||Mx(n,e,i)}return i}function Mx(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=at.updateQueue,e===null?(e=Qh(),at.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function Cx(t,e,i,n){e.value=i,e.getSnapshot=n,Nx(e)&&Dx(t)}function Rx(t,e,i){return i(function(){Nx(e)&&Dx(t)})}function Nx(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!Ui(t,i)}catch{return!0}}function Dx(t){var e=hu(t,2);e!==null&&ri(e,t,2)}function Lv(t){var e=ke();if(typeof t=="function"){var i=t;if(t=i(),su){ea(!0);try{i()}finally{ea(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:t},e}function Hx(t,e,i,n){return t.baseState=i,By(t,Rt,typeof n=="function"?n:pl)}function QO(t,e,i,n,u){if(Zh(t))throw Error(B(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,Ux(e,s)):(s.next=i.next,e.pending=i.next=s)}}function Ux(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),H2(t,e,f)}catch(v){qv(t,e,v)}finally{s!==null&&r.types!==null&&(s.types=r.types),tt.T=s}}else try{s=i(u,n),H2(t,e,s)}catch(v){qv(t,e,v)}}function H2(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(n){U2(t,e,n)},function(n){return qv(t,e,n)}):U2(t,e,i)}function U2(t,e,i){e.status="fulfilled",e.value=i,Bx(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,Ux(t,i)))}function qv(t,e,i){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=i,Bx(e),e=e.next;while(e!==n)}t.action=null}function Bx(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function wx(t,e){return e}function B2(t,e){if(vt){var i=Dt.formState;if(i!==null){t:{var n=at;if(vt){if(jt){e:{for(var u=jt,s=ki;u.nodeType!==8;){if(!s){u=null;break e}if(u=tn(u.nextSibling),u===null){u=null;break e}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){jt=tn(u.nextSibling),n=u.data==="F!";break t}}va(n)}n=!1}n&&(e=i[0])}}return i=ke(),i.memoizedState=i.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wx,lastRenderedState:e},i.queue=n,i=kx.bind(null,at,n),n.dispatch=i,n=Lv(!1),s=Gy.bind(null,at,!1,n.queue),n=ke(),u={state:e,dispatch:null,action:t,pending:null},n.queue=u,i=QO.bind(null,at,u,s,i),u.dispatch=i,n.memoizedState=t,[e,i,!1]}function w2(t){var e=ae();return jx(e,Rt,t)}function jx(t,e,i){if(e=By(t,e,wx)[0],t=Pf(pl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Yc(e)}catch(r){throw r===Ys?Yh:r}else n=e;e=ae();var u=e.queue,s=u.dispatch;return i!==e.memoizedState&&(at.flags|=2048,Ds(9,{destroy:void 0},XO.bind(null,u,i),null)),[n,s,t]}function XO(t,e){t.action=e}function j2(t){var e=ae(),i=Rt;if(i!==null)return jx(e,i,t);ae(),e=e.memoizedState,i=ae();var n=i.queue.dispatch;return i.memoizedState=t,[e,n,!1]}function Ds(t,e,i,n){return t={tag:t,create:i,deps:n,inst:e,next:null},e=at.updateQueue,e===null&&(e=Qh(),at.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 Lx(){return ae().memoizedState}function kf(t,e,i,n){var u=ke();at.flags|=t,u.memoizedState=Ds(1|e,{destroy:void 0},i,n===void 0?null:n)}function Vh(t,e,i,n){var u=ae();n=n===void 0?null:n;var s=u.memoizedState.inst;Rt!==null&&n!==null&&Cy(n,Rt.memoizedState.deps)?u.memoizedState=Ds(e,s,i,n):(at.flags|=t,u.memoizedState=Ds(1|e,s,i,n))}function L2(t,e){kf(8390656,8,t,e)}function wy(t,e){Vh(2048,8,t,e)}function VO(t){at.flags|=4;var e=at.updateQueue;if(e===null)e=Qh(),at.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function qx(t){var e=ae().memoizedState;return VO({ref:e,nextImpl:t}),function(){if(xt&2)throw Error(B(440));return e.impl.apply(void 0,arguments)}}function Gx(t,e){return Vh(4,2,t,e)}function Yx(t,e){return Vh(4,4,t,e)}function Qx(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 Xx(t,e,i){i=i!=null?i.concat([t]):null,Vh(4,4,Qx.bind(null,e,t),i)}function jy(){}function Vx(t,e){var i=ae();e=e===void 0?null:e;var n=i.memoizedState;return e!==null&&Cy(e,n[1])?n[0]:(i.memoizedState=[t,e],t)}function Zx(t,e){var i=ae();e=e===void 0?null:e;var n=i.memoizedState;if(e!==null&&Cy(e,n[1]))return n[0];if(n=t(),su){ea(!0);try{t()}finally{ea(!1)}}return i.memoizedState=[n,e],n}function Ly(t,e,i){return i===void 0||yl&1073741824&&!(mt&261930)?t.memoizedState=e:(t.memoizedState=i,t=HT(),at.lanes|=t,pa|=t,i)}function Kx(t,e,i,n){return Ui(i,e)?i:Ns.current!==null?(t=Ly(t,i,n),Ui(t,e)||(de=!0),t):!(yl&42)||yl&1073741824&&!(mt&261930)?(de=!0,t.memoizedState=i):(t=HT(),at.lanes|=t,pa|=t,e)}function Jx(t,e,i,n,u){var s=Tt.p;Tt.p=s!==0&&8>s?s:8;var r=tt.T,f={};tt.T=f,Gy(t,!1,e,i);try{var m=u(),v=tt.S;if(v!==null&&v(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var g=qO(m,n);mc(t,e,g,Hi(t))}else mc(t,e,n,Hi(t))}catch(S){mc(t,e,{then:function(){},status:"rejected",reason:S},Hi())}finally{Tt.p=s,r!==null&&f.types!==null&&(r.types=f.types),tt.T=r}}function ZO(){}function Gv(t,e,i,n){if(t.tag!==5)throw Error(B(476));var u=Fx(t).queue;Jx(t,u,e,$a,i===null?ZO:function(){return Wx(t),i(n)})}function Fx(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$a,baseState:$a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:$a},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Wx(t){var e=Fx(t);e.next===null&&(e=t.alternate.memoizedState),mc(t,e.next.queue,{},Hi())}function qy(){return qe(Nc)}function Ix(){return ae().memoizedState}function Px(){return ae().memoizedState}function KO(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=Hi();t=oa(i);var n=ca(e,t,i);n!==null&&(ri(n,e,i),fc(n,e,i)),e={cache:zy()},t.payload=e;return}e=e.return}}function JO(t,e,i){var n=Hi();i={lane:n,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Zh(t)?$x(e,i):(i=by(t,e,i,n),i!==null&&(ri(i,t,n),tT(i,e,n)))}function kx(t,e,i){var n=Hi();mc(t,e,i,n)}function mc(t,e,i,n){var u={lane:n,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Zh(t))$x(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,Ui(f,r))return Gh(t,e,u,0),Dt===null&&qh(),!1}catch{}finally{}if(i=by(t,e,u,n),i!==null)return ri(i,t,n),tT(i,e,n),!0}return!1}function Gy(t,e,i,n){if(n={lane:2,revertLane:Wy(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Zh(t)){if(e)throw Error(B(479))}else e=by(t,i,n,2),e!==null&&ri(e,t,2)}function Zh(t){var e=t.alternate;return t===at||e!==null&&e===at}function $x(t,e){_s=ph=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function tT(t,e,i){if(i&4194048){var n=e.lanes;n&=t.pendingLanes,i|=n,e.lanes=i,qE(t,i)}}var Mc={readContext:qe,use:Xh,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};Mc.useEffectEvent=$t;var eT={readContext:qe,use:Xh,useCallback:function(t,e){return ke().memoizedState=[t,e===void 0?null:e],t},useContext:qe,useEffect:L2,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,kf(4194308,4,Qx.bind(null,e,t),i)},useLayoutEffect:function(t,e){return kf(4194308,4,t,e)},useInsertionEffect:function(t,e){kf(4,2,t,e)},useMemo:function(t,e){var i=ke();e=e===void 0?null:e;var n=t();if(su){ea(!0);try{t()}finally{ea(!1)}}return i.memoizedState=[n,e],n},useReducer:function(t,e,i){var n=ke();if(i!==void 0){var u=i(e);if(su){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=JO.bind(null,at,t),[n.memoizedState,t]},useRef:function(t){var e=ke();return t={current:t},e.memoizedState=t},useState:function(t){t=Lv(t);var e=t.queue,i=kx.bind(null,at,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:jy,useDeferredValue:function(t,e){var i=ke();return Ly(i,t,e)},useTransition:function(){var t=Lv(!1);return t=Jx.bind(null,at,t.queue,!0,!1),ke().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var n=at,u=ke();if(vt){if(i===void 0)throw Error(B(407));i=i()}else{if(i=e(),Dt===null)throw Error(B(349));mt&127||Mx(n,e,i)}u.memoizedState=i;var s={value:i,getSnapshot:e};return u.queue=s,L2(Rx.bind(null,n,s,t),[t]),n.flags|=2048,Ds(9,{destroy:void 0},Cx.bind(null,n,s,i,e),null),i},useId:function(){var t=ke(),e=Dt.identifierPrefix;if(vt){var i=Nn,n=Rn;i=(n&~(1<<32-Di(n)-1)).toString(32)+i,e="_"+e+"R_"+i,i=Sh++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=GO++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:qy,useFormState:B2,useActionState:B2,useOptimistic:function(t){var e=ke();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Gy.bind(null,at,!0,i),i.dispatch=e,[t,e]},useMemoCache:Uy,useCacheRefresh:function(){return ke().memoizedState=KO.bind(null,at)},useEffectEvent:function(t){var e=ke(),i={impl:t};return e.memoizedState=i,function(){if(xt&2)throw Error(B(440));return i.impl.apply(void 0,arguments)}}},Yy={readContext:qe,use:Xh,useCallback:Vx,useContext:qe,useEffect:wy,useImperativeHandle:Xx,useInsertionEffect:Gx,useLayoutEffect:Yx,useMemo:Zx,useReducer:Pf,useRef:Lx,useState:function(){return Pf(pl)},useDebugValue:jy,useDeferredValue:function(t,e){var i=ae();return Kx(i,Rt.memoizedState,t,e)},useTransition:function(){var t=Pf(pl)[0],e=ae().memoizedState;return[typeof t=="boolean"?t:Yc(t),e]},useSyncExternalStore:Ox,useId:Ix,useHostTransitionStatus:qy,useFormState:w2,useActionState:w2,useOptimistic:function(t,e){var i=ae();return Hx(i,Rt,t,e)},useMemoCache:Uy,useCacheRefresh:Px};Yy.useEffectEvent=qx;var iT={readContext:qe,use:Xh,useCallback:Vx,useContext:qe,useEffect:wy,useImperativeHandle:Xx,useInsertionEffect:Gx,useLayoutEffect:Yx,useMemo:Zx,useReducer:Fg,useRef:Lx,useState:function(){return Fg(pl)},useDebugValue:jy,useDeferredValue:function(t,e){var i=ae();return Rt===null?Ly(i,t,e):Kx(i,Rt.memoizedState,t,e)},useTransition:function(){var t=Fg(pl)[0],e=ae().memoizedState;return[typeof t=="boolean"?t:Yc(t),e]},useSyncExternalStore:Ox,useId:Ix,useHostTransitionStatus:qy,useFormState:j2,useActionState:j2,useOptimistic:function(t,e){var i=ae();return Rt!==null?Hx(i,Rt,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Uy,useCacheRefresh:Px};iT.useEffectEvent=qx;function Wg(t,e,i,n){e=t.memoizedState,i=i(n,e),i=i==null?e:Lt({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Yv={enqueueSetState:function(t,e,i){t=t._reactInternals;var n=Hi(),u=oa(n);u.payload=e,i!=null&&(u.callback=i),e=ca(t,u,n),e!==null&&(ri(e,t,n),fc(e,t,n))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var n=Hi(),u=oa(n);u.tag=1,u.payload=e,i!=null&&(u.callback=i),e=ca(t,u,n),e!==null&&(ri(e,t,n),fc(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=Hi(),n=oa(i);n.tag=2,e!=null&&(n.callback=e),e=ca(t,n,i),e!==null&&(ri(e,t,i),fc(e,t,i))}};function q2(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?!Tc(i,n)||!Tc(u,s):!0}function G2(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&&Yv.enqueueReplaceState(e,e.state,null)}function ou(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=Lt({},i));for(var u in t)i[u]===void 0&&(i[u]=t[u])}return i}function nT(t){fh(t)}function lT(t){console.error(t)}function aT(t){fh(t)}function bh(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Y2(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 Qv(t,e,i){return i=oa(i),i.tag=3,i.payload={element:null},i.callback=function(){bh(t,e)},i}function uT(t){return t=oa(t),t.tag=3,t}function sT(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(){Y2(e,i,n)}}var r=i.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){Y2(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 FO(t,e,i,n,u){if(i.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=i.alternate,e!==null&&Gs(e,i,u,!0),i=Bi.current,i!==null){switch(i.tag){case 31:case 13:return $i===null?_h():i.alternate===null&&te===0&&(te=3),i.flags&=-257,i.flags|=65536,i.lanes=u,n===gh?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([n]):e.add(n),uv(t,n,u)),!1;case 22:return i.flags|=65536,n===gh?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)),uv(t,n,u)),!1}throw Error(B(435,i.tag))}return uv(t,n,u),_h(),!1}if(vt)return e=Bi.current,e!==null?(!(e.flags&65536)&&(e.flags|=256),e.flags|=65536,e.lanes=u,n!==Cv&&(t=Error(B(422),{cause:n}),_c(Pi(t,i)))):(n!==Cv&&(e=Error(B(423),{cause:n}),_c(Pi(e,i))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,n=Pi(n,i),u=Qv(t.stateNode,n,u),Jg(t,u),te!==4&&(te=2)),!1;var s=Error(B(520),{cause:n});if(s=Pi(s,i),yc===null?yc=[s]:yc.push(s),te!==4&&(te=2),e===null)return!0;n=Pi(n,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=u&-u,i.lanes|=t,t=Qv(i.stateNode,n,t),Jg(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=uT(u),sT(u,t,i,n),Jg(i,u),!1}i=i.return}while(i!==null);return!1}var Qy=Error(B(461)),de=!1;function we(t,e,i,n){e.child=t===null?Ex(e,null,i,n):uu(e,t.child,i,n)}function Q2(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 au(e),n=Ry(t,e,i,r,s,u),f=Ny(),t!==null&&!de?(Dy(t,e,u),Sl(t,e,u)):(vt&&f&&xy(e),e.flags|=1,we(t,e,n,u),e.child)}function X2(t,e,i,n,u){if(t===null){var s=i.type;return typeof s=="function"&&!Ey(s)&&s.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=s,oT(t,e,s,n,u)):(t=Wf(i.type,null,n,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!Xy(t,u)){var r=s.memoizedProps;if(i=i.compare,i=i!==null?i:Tc,i(r,n)&&t.ref===e.ref)return Sl(t,e,u)}return e.flags|=1,t=dl(s,n),t.ref=e.ref,t.return=e,e.child=t}function oT(t,e,i,n,u){if(t!==null){var s=t.memoizedProps;if(Tc(s,n)&&t.ref===e.ref)if(de=!1,e.pendingProps=n=s,Xy(t,u))t.flags&131072&&(de=!0);else return e.lanes=t.lanes,Sl(t,e,u)}return Xv(t,e,i,n,u)}function cT(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 V2(t,e,s,i,n)}if(i&536870912)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&If(e,s!==null?s.cachePool:null),s!==null?D2(e,s):wv(),zx(e);else return n=e.lanes=536870912,V2(t,e,s!==null?s.baseLanes|i:i,i,n)}else s!==null?(If(e,s.cachePool),D2(e,s),$l(e),e.memoizedState=null):(t!==null&&If(e,null),wv(),$l(e));return we(t,e,u,i),e.child}function ac(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function V2(t,e,i,n,u){var s=_y();return s=s===null?null:{parent:he._currentValue,pool:s},e.memoizedState={baseLanes:i,cachePool:s},t!==null&&If(e,null),wv(),zx(e),t!==null&&Gs(t,e,n,!0),e.childLanes=u,null}function $f(t,e){return e=Eh({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Z2(t,e,i){return uu(e,t.child,null,i),t=$f(e,e.pendingProps),t.flags|=2,Oi(e),e.memoizedState=null,t}function WO(t,e,i){var n=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(n.mode==="hidden")return t=$f(e,n),e.lanes=536870912,ac(null,t);if(jv(e),(t=jt)?(t=ez(t,ki),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ga!==null?{id:Rn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},i=mx(t),i.return=e,e.child=i,Le=e,jt=null)):t=null,t===null)throw va(e);return e.lanes=536870912,null}return $f(e,n)}var s=t.memoizedState;if(s!==null){var r=s.dehydrated;if(jv(e),u)if(e.flags&256)e.flags&=-257,e=Z2(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(B(558));else if(de||Gs(t,e,i,!1),u=(i&t.childLanes)!==0,de||u){if(n=Dt,n!==null&&(r=GE(n,i),r!==0&&r!==s.retryLane))throw s.retryLane=r,hu(t,r),ri(n,t,r),Qy;_h(),e=Z2(t,e,i)}else t=s.treeContext,jt=tn(r.nextSibling),Le=e,vt=!0,sa=null,ki=!1,t!==null&&vx(e,t),e=$f(e,n),e.flags|=4096;return e}return t=dl(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function th(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(B(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function Xv(t,e,i,n,u){return au(e),i=Ry(t,e,i,n,void 0,u),n=Ny(),t!==null&&!de?(Dy(t,e,u),Sl(t,e,u)):(vt&&n&&xy(e),e.flags|=1,we(t,e,i,u),e.child)}function K2(t,e,i,n,u,s){return au(e),e.updateQueue=null,i=Ax(e,n,i,u),_x(t),n=Ny(),t!==null&&!de?(Dy(t,e,s),Sl(t,e,s)):(vt&&n&&xy(e),e.flags|=1,we(t,e,i,s),e.child)}function J2(t,e,i,n,u){if(au(e),e.stateNode===null){var s=vs,r=i.contextType;typeof r=="object"&&r!==null&&(s=qe(r)),s=new i(n,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Yv,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=n,s.state=e.memoizedState,s.refs={},Oy(e),r=i.contextType,s.context=typeof r=="object"&&r!==null?qe(r):vs,s.state=e.memoizedState,r=i.getDerivedStateFromProps,typeof r=="function"&&(Wg(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&&Yv.enqueueReplaceState(s,s.state,null),dc(e,n,s,u),hc(),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=ou(i,f);s.props=m;var v=s.context,g=i.contextType;r=vs,typeof g=="object"&&g!==null&&(r=qe(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||v!==r)&&G2(e,s,n,r),Il=!1;var p=e.memoizedState;s.state=p,dc(e,n,s,u),hc(),v=e.memoizedState,f||p!==v||Il?(typeof S=="function"&&(Wg(e,i,S,n),v=e.memoizedState),(m=Il||q2(e,i,m,n,p,v,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=v),s.props=n,s.state=v,s.context=r,n=m):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{s=e.stateNode,Uv(t,e),r=e.memoizedProps,g=ou(i,r),s.props=g,S=e.pendingProps,p=s.context,v=i.contextType,m=vs,typeof v=="object"&&v!==null&&(m=qe(v)),f=i.getDerivedStateFromProps,(v=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(r!==S||p!==m)&&G2(e,s,n,m),Il=!1,p=e.memoizedState,s.state=p,dc(e,n,s,u),hc();var x=e.memoizedState;r!==S||p!==x||Il||t!==null&&t.dependencies!==null&&mh(t.dependencies)?(typeof f=="function"&&(Wg(e,i,f,n),x=e.memoizedState),(g=Il||q2(e,i,g,n,p,x,m)||t!==null&&t.dependencies!==null&&mh(t.dependencies))?(v||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,th(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=uu(e,t.child,null,u),e.child=uu(e,null,i,u)):we(t,e,i,u),e.memoizedState=s.state,t=e.child):t=Sl(t,e,u),t}function F2(t,e,i,n){return lu(),e.flags|=256,we(t,e,i,n),e.child}var Ig={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pg(t){return{baseLanes:t,cachePool:px()}}function kg(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=Ci),t}function rT(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(vt){if(u?kl(e):$l(e),(t=jt)?(t=ez(t,ki),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ga!==null?{id:Rn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},i=mx(t),i.return=e,e.child=i,Le=e,jt=null)):t=null,t===null)throw va(e);return ny(t)?e.lanes=32:e.lanes=536870912,null}var f=n.children;return n=n.fallback,u?($l(e),u=e.mode,f=Eh({mode:"hidden",children:f},u),n=tu(n,u,i,null),f.return=e,n.return=e,f.sibling=n,e.child=f,n=e.child,n.memoizedState=Pg(i),n.childLanes=kg(t,r,i),e.memoizedState=Ig,ac(null,n)):(kl(e),Vv(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=$g(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=Eh({mode:"visible",children:n.children},u),f=tu(f,u,i,null),f.flags|=2,n.return=e,f.return=e,n.sibling=f,e.child=n,uu(e,t.child,null,i),n=e.child,n.memoizedState=Pg(i),n.childLanes=kg(t,r,i),e.memoizedState=Ig,e=ac(null,n));else if(kl(e),ny(f)){if(r=f.nextSibling&&f.nextSibling.dataset,r)var v=r.dgst;r=v,n=Error(B(419)),n.stack="",n.digest=r,_c({value:n,source:null,stack:null}),e=$g(t,e,i)}else if(de||Gs(t,e,i,!1),r=(i&t.childLanes)!==0,de||r){if(r=Dt,r!==null&&(n=GE(r,i),n!==0&&n!==m.retryLane))throw m.retryLane=n,hu(t,n),ri(r,t,n),Qy;iy(f)||_h(),e=$g(t,e,i)}else iy(f)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,jt=tn(f.nextSibling),Le=e,vt=!0,sa=null,ki=!1,t!==null&&vx(e,t),e=Vv(e,n.children),e.flags|=4096);return e}return u?($l(e),f=n.fallback,u=e.mode,m=t.child,v=m.sibling,n=dl(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,v!==null?f=dl(v,f):(f=tu(f,u,i,null),f.flags|=2),f.return=e,n.return=e,n.sibling=f,e.child=n,ac(null,n),n=e.child,f=t.child.memoizedState,f===null?f=Pg(i):(u=f.cachePool,u!==null?(m=he._currentValue,u=u.parent!==m?{parent:m,pool:m}:u):u=px(),f={baseLanes:f.baseLanes|i,cachePool:u}),n.memoizedState=f,n.childLanes=kg(t,r,i),e.memoizedState=Ig,ac(t.child,n)):(kl(e),i=t.child,t=i.sibling,i=dl(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 Vv(t,e){return e=Eh({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Eh(t,e){return t=Mi(22,t,null,e),t.lanes=0,t}function $g(t,e,i){return uu(e,t.child,null,i),t=Vv(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function W2(t,e,i){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Nv(t.return,e,i)}function tv(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 fT(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),we(t,e,n,i),n=vt?zc:0,!f&&t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&W2(t,i,e);else if(t.tag===19)W2(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&&yh(t)===null&&(u=i),i=i.sibling;i=u,i===null?(u=e.child,e.child=null):(u=i.sibling,i.sibling=null),tv(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&&yh(t)===null){e.child=u;break}t=u.sibling,u.sibling=i,i=u,u=t}tv(e,!0,i,null,s,n);break;case"together":tv(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function Sl(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),pa|=e.lanes,!(i&e.childLanes))if(t!==null){if(Gs(t,e,i,!1),(i&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(B(153));if(e.child!==null){for(t=e.child,i=dl(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=dl(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function Xy(t,e){return t.lanes&e?!0:(t=t.dependencies,!!(t!==null&&mh(t)))}function IO(t,e,i){switch(e.tag){case 3:sh(e,e.stateNode.containerInfo),Pl(e,he,t.memoizedState.cache),lu();break;case 27:case 5:pv(e);break;case 4:sh(e,e.stateNode.containerInfo);break;case 10:Pl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,jv(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?rT(t,e,i):(kl(e),t=Sl(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||(Gs(t,e,i,!1),n=(i&e.childLanes)!==0),u){if(n)return fT(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,cT(t,e,i,e.pendingProps);case 24:Pl(e,he,t.memoizedState.cache)}return Sl(t,e,i)}function hT(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)de=!0;else{if(!Xy(t,i)&&!(e.flags&128))return de=!1,IO(t,e,i);de=!!(t.flags&131072)}else de=!1,vt&&e.flags&1048576&&gx(e,zc,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=Pa(e.elementType),e.type=t,typeof t=="function")Ey(t)?(n=ou(t,n),e.tag=1,e=J2(null,e,t,n,i)):(e.tag=0,e=Xv(null,e,t,n,i));else{if(t!=null){var u=t.$$typeof;if(u===sy){e.tag=11,e=Q2(null,e,t,n,i);break t}else if(u===oy){e.tag=14,e=X2(null,e,t,n,i);break t}}throw e=vv(t)||t,Error(B(306,e,""))}}return e;case 0:return Xv(t,e,e.type,e.pendingProps,i);case 1:return n=e.type,u=ou(n,e.pendingProps),J2(t,e,n,u,i);case 3:t:{if(sh(e,e.stateNode.containerInfo),t===null)throw Error(B(387));n=e.pendingProps;var s=e.memoizedState;u=s.element,Uv(t,e),dc(e,n,null,i);var r=e.memoizedState;if(n=r.cache,Pl(e,he,n),n!==s.cache&&Dv(e,[he],i,!0),hc(),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=F2(t,e,n,i);break t}else if(n!==u){u=Pi(Error(B(424)),e),_c(u),e=F2(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(jt=tn(t.firstChild),Le=e,vt=!0,sa=null,ki=!0,i=Ex(e,null,n,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(lu(),n===u){e=Sl(t,e,i);break t}we(t,e,n,i)}e=e.child}return e;case 26:return th(t,e),t===null?(i=yE(e.type,null,e.pendingProps,null))?e.memoizedState=i:vt||(i=e.type,t=e.pendingProps,n=Ch(ua.current).createElement(i),n[je]=e,n[fi]=t,Ge(n,i,t),Me(n),e.stateNode=n):e.memoizedState=yE(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pv(e),t===null&&vt&&(n=e.stateNode=iz(e.type,e.pendingProps,ua.current),Le=e,ki=!0,u=jt,ba(e.type)?(ly=u,jt=tn(n.firstChild)):jt=u),we(t,e,e.pendingProps.children,i),th(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((u=n=jt)&&(n=zM(n,e.type,e.pendingProps,ki),n!==null?(e.stateNode=n,Le=e,jt=tn(n.firstChild),ki=!1,u=!0):u=!1),u||va(e)),pv(e),u=e.type,s=e.pendingProps,r=t!==null?t.memoizedProps:null,n=s.children,ty(u,s)?n=null:r!==null&&ty(u,r)&&(e.flags|=32),e.memoizedState!==null&&(u=Ry(t,e,YO,null,null,i),Nc._currentValue=u),th(t,e),we(t,e,n,i),e.child;case 6:return t===null&&vt&&((t=i=jt)&&(i=_M(i,e.pendingProps,ki),i!==null?(e.stateNode=i,Le=e,jt=null,t=!0):t=!1),t||va(e)),null;case 13:return rT(t,e,i);case 4:return sh(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=uu(e,null,n,i):we(t,e,n,i),e.child;case 11:return Q2(t,e,e.type,e.pendingProps,i);case 7:return we(t,e,e.pendingProps,i),e.child;case 8:return we(t,e,e.pendingProps.children,i),e.child;case 12:return we(t,e,e.pendingProps.children,i),e.child;case 10:return n=e.pendingProps,Pl(e,e.type,n.value),we(t,e,n.children,i),e.child;case 9:return u=e.type._context,n=e.pendingProps.children,au(e),u=qe(u),n=n(u),e.flags|=1,we(t,e,n,i),e.child;case 14:return X2(t,e,e.type,e.pendingProps,i);case 15:return oT(t,e,e.type,e.pendingProps,i);case 19:return fT(t,e,i);case 31:return WO(t,e,i);case 22:return cT(t,e,i,e.pendingProps);case 24:return au(e),n=qe(he),t===null?(u=_y(),u===null&&(u=Dt,s=zy(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=i),u=s),e.memoizedState={parent:n,cache:u},Oy(e),Pl(e,he,u)):(t.lanes&i&&(Uv(t,e),dc(e,null,null,i),hc()),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),Pl(e,he,n)):(n=s.cache,Pl(e,he,n),n!==u.cache&&Dv(e,[he],i,!0))),we(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(B(156,e.tag))}function ll(t){t.flags|=4}function ev(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(wT())t.flags|=8192;else throw iu=gh,Ay}else t.flags&=-16777217}function I2(t,e){if(e.type!=="stylesheet"||e.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!az(e))if(wT())t.flags|=8192;else throw iu=gh,Ay}function Lf(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?jE():536870912,t.lanes|=e,Hs|=e)}function ko(t,e){if(!vt)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 wt(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 PO(t,e,i){var n=e.pendingProps;switch(Ty(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(e),null;case 1:return wt(e),null;case 3:return i=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ml(he),Os(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(ls(e)?ll(e):t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Kg())),wt(e),null;case 26:var u=e.type,s=e.memoizedState;return t===null?(ll(e),s!==null?(wt(e),I2(e,s)):(wt(e),ev(e,u,null,n,i))):s?s!==t.memoizedState?(ll(e),wt(e),I2(e,s)):(wt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&ll(e),wt(e),ev(e,u,t,n,i)),null;case 27:if(oh(e),i=ua.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ll(e);else{if(!n){if(e.stateNode===null)throw Error(B(166));return wt(e),null}t=Hn.current,ls(e)?_2(e,t):(t=iz(u,n,i),e.stateNode=t,ll(e))}return wt(e),null;case 5:if(oh(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ll(e);else{if(!n){if(e.stateNode===null)throw Error(B(166));return wt(e),null}if(s=Hn.current,ls(e))_2(e,s);else{var r=Ch(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[je]=e,s[fi]=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(Ge(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&&ll(e)}}return wt(e),ev(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&ll(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(B(166));if(t=ua.current,ls(e)){if(t=e.stateNode,i=e.memoizedProps,n=null,u=Le,u!==null)switch(u.tag){case 27:case 5:n=u.memoizedProps}t[je]=e,t=!!(t.nodeValue===i||n!==null&&n.suppressHydrationWarning===!0||kT(t.nodeValue,i)),t||va(e,!0)}else t=Ch(t).createTextNode(n),t[je]=e,e.stateNode=t}return wt(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(n=ls(e),i!==null){if(t===null){if(!n)throw Error(B(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(B(557));t[je]=e}else lu(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;wt(e),t=!1}else i=Kg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(Oi(e),e):(Oi(e),null);if(e.flags&128)throw Error(B(558))}return wt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=ls(e),n!==null&&n.dehydrated!==null){if(t===null){if(!u)throw Error(B(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(B(317));u[je]=e}else lu(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;wt(e),u=!1}else u=Kg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Oi(e),e):(Oi(e),null)}return Oi(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),Lf(e,e.updateQueue),wt(e),null);case 4:return Os(),t===null&&Iy(e.stateNode.containerInfo),wt(e),null;case 10:return ml(e.type),wt(e),null;case 19:if(Ce(le),n=e.memoizedState,n===null)return wt(e),null;if(u=(e.flags&128)!==0,s=n.rendering,s===null)if(u)ko(n,!1);else{if(te!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(s=yh(t),s!==null){for(e.flags|=128,ko(n,!1),t=s.updateQueue,e.updateQueue=t,Lf(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)dx(i,t),i=i.sibling;return Ht(le,le.current&1|2),vt&&ol(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&Ri()>Th&&(e.flags|=128,u=!0,ko(n,!1),e.lanes=4194304)}else{if(!u)if(t=yh(s),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Lf(e,t),ko(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!vt)return wt(e),null}else 2*Ri()-n.renderingStartTime>Th&&i!==536870912&&(e.flags|=128,u=!0,ko(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=Ri(),t.sibling=null,i=le.current,Ht(le,u?i&1|2:i&1),vt&&ol(e,n.treeForkCount),t):(wt(e),null);case 22:case 23:return Oi(e),My(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?i&536870912&&!(e.flags&128)&&(wt(e),e.subtreeFlags&6&&(e.flags|=8192)):wt(e),i=e.updateQueue,i!==null&&Lf(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&&Ce(eu),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),ml(he),wt(e),null;case 25:return null;case 30:return null}throw Error(B(156,e.tag))}function kO(t,e){switch(Ty(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ml(he),Os(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return oh(e),null;case 31:if(e.memoizedState!==null){if(Oi(e),e.alternate===null)throw Error(B(340));lu()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Oi(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(B(340));lu()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ce(le),null;case 4:return Os(),null;case 10:return ml(e.type),null;case 22:case 23:return Oi(e),My(),t!==null&&Ce(eu),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ml(he),null;case 25:return null;default:return null}}function dT(t,e){switch(Ty(e),e.tag){case 3:ml(he),Os();break;case 26:case 27:case 5:oh(e);break;case 4:Os();break;case 31:e.memoizedState!==null&&Oi(e);break;case 13:Oi(e);break;case 19:Ce(le);break;case 10:ml(e.type);break;case 22:case 23:Oi(e),My(),t!==null&&Ce(eu);break;case 24:ml(he)}}function Qc(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){Ot(e,e.return,f)}}function ya(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,v=f;try{v()}catch(g){Ot(u,m,g)}}}n=n.next}while(n!==s)}}catch(g){Ot(e,e.return,g)}}function mT(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{Tx(e,i)}catch(n){Ot(t,t.return,n)}}}function gT(t,e,i){i.props=ou(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(n){Ot(t,e,n)}}function gc(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){Ot(t,e,u)}}function Dn(t,e){var i=t.ref,n=t.refCleanup;if(i!==null)if(typeof n=="function")try{n()}catch(u){Ot(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){Ot(t,e,u)}else i.current=null}function vT(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){Ot(t,t.return,u)}}function iv(t,e,i){try{var n=t.stateNode;pM(n,t.type,i,e),n[fi]=e}catch(u){Ot(t,t.return,u)}}function yT(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ba(t.type)||t.tag===4}function nv(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||yT(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 Zv(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=fl));else if(n!==4&&(n===27&&ba(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(Zv(t,e,i),t=t.sibling;t!==null;)Zv(t,e,i),t=t.sibling}function xh(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(xh(t,e,i),t=t.sibling;t!==null;)xh(t,e,i),t=t.sibling}function pT(t){var e=t.stateNode,i=t.memoizedProps;try{for(var n=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);Ge(e,n,i),e[je]=t,e[fi]=i}catch(s){Ot(t,t.return,s)}}var cl=!1,fe=!1,lv=!1,P2=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function $O(t,e){if(t=t.containerInfo,kv=Hh,t=ax(t),py(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,v=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&&++v===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($v={focusedElem:t,selectionRange:i},Hh=!1,Oe=e;Oe!==null;)if(e=Oe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Oe=t;else for(;Oe!==null;){switch(e=Oe,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=ou(i.type,u);t=n.getSnapshotBeforeUpdate(A,s),n.__reactInternalSnapshotBeforeUpdate=t}catch(R){Ot(i,i.return,R)}}break;case 3:if(t&1024){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)ey(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ey(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(B(163))}if(t=e.sibling,t!==null){t.return=e.return,Oe=t;break}Oe=e.return}}function ST(t,e,i){var n=i.flags;switch(i.tag){case 0:case 11:case 15:ul(t,i),n&4&&Qc(5,i);break;case 1:if(ul(t,i),n&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(r){Ot(i,i.return,r)}else{var u=ou(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){Ot(i,i.return,r)}}n&64&&mT(i),n&512&&gc(i,i.return);break;case 3:if(ul(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{Tx(t,e)}catch(r){Ot(i,i.return,r)}}break;case 27:e===null&&n&4&&pT(i);case 26:case 5:ul(t,i),e===null&&n&4&&vT(i),n&512&&gc(i,i.return);break;case 12:ul(t,i);break;case 31:ul(t,i),n&4&&xT(t,i);break;case 13:ul(t,i),n&4&&TT(t,i),n&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=oM.bind(null,i),AM(t,i))));break;case 22:if(n=i.memoizedState!==null||cl,!n){e=e!==null&&e.memoizedState!==null||fe,u=cl;var s=fe;cl=n,(fe=e)&&!s?sl(t,i,(i.subtreeFlags&8772)!==0):ul(t,i),cl=u,fe=s}break;case 30:break;default:ul(t,i)}}function bT(t){var e=t.alternate;e!==null&&(t.alternate=null,bT(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&hy(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 Yt=null,oi=!1;function al(t,e,i){for(i=i.child;i!==null;)ET(t,e,i),i=i.sibling}function ET(t,e,i){if(Ni&&typeof Ni.onCommitFiberUnmount=="function")try{Ni.onCommitFiberUnmount(Bc,i)}catch{}switch(i.tag){case 26:fe||Dn(i,e),al(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:fe||Dn(i,e);var n=Yt,u=oi;ba(i.type)&&(Yt=i.stateNode,oi=!1),al(t,e,i),Sc(i.stateNode),Yt=n,oi=u;break;case 5:fe||Dn(i,e);case 6:if(n=Yt,u=oi,Yt=null,al(t,e,i),Yt=n,oi=u,Yt!==null)if(oi)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(i.stateNode)}catch(s){Ot(i,e,s)}else try{Yt.removeChild(i.stateNode)}catch(s){Ot(i,e,s)}break;case 18:Yt!==null&&(oi?(t=Yt,hE(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),js(t)):hE(Yt,i.stateNode));break;case 4:n=Yt,u=oi,Yt=i.stateNode.containerInfo,oi=!0,al(t,e,i),Yt=n,oi=u;break;case 0:case 11:case 14:case 15:ya(2,i,e),fe||ya(4,i,e),al(t,e,i);break;case 1:fe||(Dn(i,e),n=i.stateNode,typeof n.componentWillUnmount=="function"&&gT(i,e,n)),al(t,e,i);break;case 21:al(t,e,i);break;case 22:fe=(n=fe)||i.memoizedState!==null,al(t,e,i),fe=n;break;default:al(t,e,i)}}function xT(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{js(t)}catch(i){Ot(e,e.return,i)}}}function TT(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{js(t)}catch(i){Ot(e,e.return,i)}}function tM(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new P2),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new P2),e;default:throw Error(B(435,t.tag))}}function qf(t,e){var i=tM(t);e.forEach(function(n){if(!i.has(n)){i.add(n);var u=cM.bind(null,t,n);n.then(u,u)}})}function ui(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)){Yt=f.stateNode,oi=!1;break t}break;case 5:Yt=f.stateNode,oi=!1;break t;case 3:case 4:Yt=f.stateNode.containerInfo,oi=!0;break t}f=f.return}if(Yt===null)throw Error(B(160));ET(s,r,u),Yt=null,oi=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)zT(e,t),e=e.sibling}var dn=null;function zT(t,e){var i=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ui(e,t),si(t),n&4&&(ya(3,t,t.return),Qc(3,t),ya(5,t,t.return));break;case 1:ui(e,t),si(t),n&512&&(fe||i===null||Dn(i,i.return)),n&64&&cl&&(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=dn;if(ui(e,t),si(t),n&512&&(fe||i===null||Dn(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[Lc]||s[je]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(n),u.head.insertBefore(s,u.querySelector("head > title"))),Ge(s,n,i),s[je]=t,Me(s),n=s;break t;case"link":var r=SE("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),Ge(s,n,i),u.head.appendChild(s);break;case"meta":if(r=SE("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),Ge(s,n,i),u.head.appendChild(s);break;default:throw Error(B(468,n))}s[je]=t,Me(s),n=s}t.stateNode=n}else bE(u,t.type,t.stateNode);else t.stateNode=pE(u,n,t.memoizedProps);else s!==n?(s===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):s.count--,n===null?bE(u,t.type,t.stateNode):pE(u,n,t.memoizedProps)):n===null&&t.stateNode!==null&&iv(t,t.memoizedProps,i.memoizedProps)}break;case 27:ui(e,t),si(t),n&512&&(fe||i===null||Dn(i,i.return)),i!==null&&n&4&&iv(t,t.memoizedProps,i.memoizedProps);break;case 5:if(ui(e,t),si(t),n&512&&(fe||i===null||Dn(i,i.return)),t.flags&32){u=t.stateNode;try{Cs(u,"")}catch(A){Ot(t,t.return,A)}}n&4&&t.stateNode!=null&&(u=t.memoizedProps,iv(t,u,i!==null?i.memoizedProps:u)),n&1024&&(lv=!0);break;case 6:if(ui(e,t),si(t),n&4){if(t.stateNode===null)throw Error(B(162));n=t.memoizedProps,i=t.stateNode;try{i.nodeValue=n}catch(A){Ot(t,t.return,A)}}break;case 3:if(nh=null,u=dn,dn=Rh(e.containerInfo),ui(e,t),dn=u,si(t),n&4&&i!==null&&i.memoizedState.isDehydrated)try{js(e.containerInfo)}catch(A){Ot(t,t.return,A)}lv&&(lv=!1,_T(t));break;case 4:n=dn,dn=Rh(t.stateNode.containerInfo),ui(e,t),si(t),dn=n;break;case 12:ui(e,t),si(t);break;case 31:ui(e,t),si(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,qf(t,n)));break;case 13:ui(e,t),si(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Kh=Ri()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,qf(t,n)));break;case 22:u=t.memoizedState!==null;var m=i!==null&&i.memoizedState!==null,v=cl,g=fe;if(cl=v||u,fe=g||m,ui(e,t),fe=g,cl=v,si(t),n&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(i===null||m||cl||fe||ka(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){Ot(m,m.return,A)}}}else if(e.tag===6){if(i===null){m=e;try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(A){Ot(m,m.return,A)}}}else if(e.tag===18){if(i===null){m=e;try{var x=m.stateNode;u?dE(x,!0):dE(m.stateNode,!1)}catch(A){Ot(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,qf(t,i))));break;case 19:ui(e,t),si(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,qf(t,n)));break;case 30:break;case 21:break;default:ui(e,t),si(t)}}function si(t){var e=t.flags;if(e&2){try{for(var i,n=t.return;n!==null;){if(yT(n)){i=n;break}n=n.return}if(i==null)throw Error(B(160));switch(i.tag){case 27:var u=i.stateNode,s=nv(t);xh(t,s,u);break;case 5:var r=i.stateNode;i.flags&32&&(Cs(r,""),i.flags&=-33);var f=nv(t);xh(t,f,r);break;case 3:case 4:var m=i.stateNode.containerInfo,v=nv(t);Zv(t,v,m);break;default:throw Error(B(161))}}catch(g){Ot(t,t.return,g)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function _T(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;_T(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ul(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ST(t,e.alternate,e),e=e.sibling}function ka(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ya(4,e,e.return),ka(e);break;case 1:Dn(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&gT(e,e.return,i),ka(e);break;case 27:Sc(e.stateNode);case 26:case 5:Dn(e,e.return),ka(e);break;case 22:e.memoizedState===null&&ka(e);break;case 30:ka(e);break;default:ka(e)}t=t.sibling}}function sl(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:sl(u,s,i),Qc(4,s);break;case 1:if(sl(u,s,i),n=s,u=n.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(v){Ot(n,n.return,v)}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++)xx(m[u],f)}catch(v){Ot(n,n.return,v)}}i&&r&64&&mT(s),gc(s,s.return);break;case 27:pT(s);case 26:case 5:sl(u,s,i),i&&n===null&&r&4&&vT(s),gc(s,s.return);break;case 12:sl(u,s,i);break;case 31:sl(u,s,i),i&&r&4&&xT(u,s);break;case 13:sl(u,s,i),i&&r&4&&TT(u,s);break;case 22:s.memoizedState===null&&sl(u,s,i),gc(s,s.return);break;case 30:break;default:sl(u,s,i)}e=e.sibling}}function Vy(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&&Gc(i))}function Zy(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Gc(t))}function hn(t,e,i,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)AT(t,e,i,n),e=e.sibling}function AT(t,e,i,n){var u=e.flags;switch(e.tag){case 0:case 11:case 15:hn(t,e,i,n),u&2048&&Qc(9,e);break;case 1:hn(t,e,i,n);break;case 3:hn(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&&Gc(t)));break;case 12:if(u&2048){hn(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){Ot(e,e.return,m)}}else hn(t,e,i,n);break;case 31:hn(t,e,i,n);break;case 13:hn(t,e,i,n);break;case 23:break;case 22:s=e.stateNode,r=e.alternate,e.memoizedState!==null?s._visibility&2?hn(t,e,i,n):vc(t,e):s._visibility&2?hn(t,e,i,n):(s._visibility|=2,us(t,e,i,n,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Vy(r,e);break;case 24:hn(t,e,i,n),u&2048&&Zy(e.alternate,e);break;default:hn(t,e,i,n)}}function us(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,v=r.flags;switch(r.tag){case 0:case 11:case 15:us(s,r,f,m,u),Qc(8,r);break;case 23:break;case 22:var g=r.stateNode;r.memoizedState!==null?g._visibility&2?us(s,r,f,m,u):vc(s,r):(g._visibility|=2,us(s,r,f,m,u)),u&&v&2048&&Vy(r.alternate,r);break;case 24:us(s,r,f,m,u),u&&v&2048&&Zy(r.alternate,r);break;default:us(s,r,f,m,u)}e=e.sibling}}function vc(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:vc(i,n),u&2048&&Vy(n.alternate,n);break;case 24:vc(i,n),u&2048&&Zy(n.alternate,n);break;default:vc(i,n)}e=e.sibling}}var uc=8192;function as(t,e,i){if(t.subtreeFlags&uc)for(t=t.child;t!==null;)OT(t,e,i),t=t.sibling}function OT(t,e,i){switch(t.tag){case 26:as(t,e,i),t.flags&uc&&t.memoizedState!==null&&LM(i,dn,t.memoizedState,t.memoizedProps);break;case 5:as(t,e,i);break;case 3:case 4:var n=dn;dn=Rh(t.stateNode.containerInfo),as(t,e,i),dn=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=uc,uc=16777216,as(t,e,i),uc=n):as(t,e,i));break;default:as(t,e,i)}}function MT(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 $o(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var i=0;i<e.length;i++){var n=e[i];Oe=n,RT(n,t)}MT(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)CT(t),t=t.sibling}function CT(t){switch(t.tag){case 0:case 11:case 15:$o(t),t.flags&2048&&ya(9,t,t.return);break;case 3:$o(t);break;case 12:$o(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,eh(t)):$o(t);break;default:$o(t)}}function eh(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var i=0;i<e.length;i++){var n=e[i];Oe=n,RT(n,t)}MT(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ya(8,e,e.return),eh(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,eh(e));break;default:eh(e)}t=t.sibling}}function RT(t,e){for(;Oe!==null;){var i=Oe;switch(i.tag){case 0:case 11:case 15:ya(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:Gc(i.memoizedState.cache)}if(n=i.child,n!==null)n.return=i,Oe=n;else t:for(i=t;Oe!==null;){n=Oe;var u=n.sibling,s=n.return;if(bT(n),n===i){Oe=null;break t}if(u!==null){u.return=s,Oe=u;break t}Oe=s}}}var eM={getCacheForType:function(t){var e=qe(he),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return qe(he).controller.signal}},iM=typeof WeakMap=="function"?WeakMap:Map,xt=0,Dt=null,ft=null,mt=0,At=0,Ai=null,na=!1,Qs=!1,Ky=!1,bl=0,te=0,pa=0,nu=0,Jy=0,Ci=0,Hs=0,yc=null,ci=null,Kv=!1,Kh=0,NT=0,Th=1/0,zh=null,ra=null,be=0,fa=null,Us=null,gl=0,Jv=0,Fv=null,DT=null,pc=0,Wv=null;function Hi(){return xt&2&&mt!==0?mt&-mt:tt.T!==null?Wy():YE()}function HT(){if(Ci===0)if(!(mt&536870912)||vt){var t=Cf;Cf<<=1,!(Cf&3932160)&&(Cf=262144),Ci=t}else Ci=536870912;return t=Bi.current,t!==null&&(t.flags|=32),Ci}function ri(t,e,i){(t===Dt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Bs(t,0),la(t,mt,Ci,!1)),jc(t,i),(!(xt&2)||t!==Dt)&&(t===Dt&&(!(xt&2)&&(nu|=i),te===4&&la(t,mt,Ci,!1)),Bn(t))}function UT(t,e,i){if(xt&6)throw Error(B(327));var n=!i&&(e&127)===0&&(e&t.expiredLanes)===0||wc(t,e),u=n?aM(t,e):av(t,e,!0),s=n;do{if(u===0){Qs&&!n&&la(t,e,0,!1);break}else{if(i=t.current.alternate,s&&!nM(i)){u=av(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&&(Bs(f,r).flags|=256),r=av(f,r,!1),r!==2){if(Ky&&!m){f.errorRecoveryDisabledLanes|=s,nu|=s,u=4;break t}s=ci,ci=u,s!==null&&(ci===null?ci=s:ci.push.apply(ci,s))}u=r}if(s=!1,u!==2)continue}}if(u===1){Bs(t,0),la(t,e,0,!0);break}t:{switch(n=t,s=u,s){case 0:case 1:throw Error(B(345));case 4:if((e&4194048)!==e)break;case 6:la(n,e,Ci,!na);break t;case 2:ci=null;break;case 3:case 5:break;default:throw Error(B(329))}if((e&62914560)===e&&(u=Kh+300-Ri(),10<u)){if(la(n,e,Ci,!na),Bh(n,0,!0)!==0)break t;gl=e,n.timeoutHandle=tz(k2.bind(null,n,i,ci,zh,Kv,e,Ci,nu,Hs,na,s,"Throttled",-0,0),u);break t}k2(n,i,ci,zh,Kv,e,Ci,nu,Hs,na,s,null,-0,0)}}break}while(!0);Bn(t)}function k2(t,e,i,n,u,s,r,f,m,v,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:fl},OT(e,s,S);var A=(s&62914560)===s?Kh-Ri():(s&4194048)===s?NT-Ri():0;if(A=qM(S,A),A!==null){gl=s,t.cancelPendingCommit=A(tE.bind(null,t,e,s,i,n,u,r,f,m,g,S,null,p,x)),la(t,s,r,!v);return}}tE(t,e,s,i,n,u,r,f,m)}function nM(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(!Ui(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&=~Jy,e&=~nu,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var u=e;0<u;){var s=31-Di(u),r=1<<s;n[s]=-1,u&=~r}i!==0&&LE(t,i,e)}function Jh(){return xt&6?!0:(Xc(0,!1),!1)}function Fy(){if(ft!==null){if(At===0)var t=ft.return;else t=ft,hl=du=null,Hy(t),zs=null,Ac=0,t=ft;for(;t!==null;)dT(t.alternate,t),t=t.return;ft=null}}function Bs(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,EM(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),gl=0,Fy(),Dt=t,ft=i=dl(t.current,null),mt=e,At=0,Ai=null,na=!1,Qs=wc(t,e),Ky=!1,Hs=Ci=Jy=nu=pa=te=0,ci=yc=null,Kv=!1,e&8&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var u=31-Di(n),s=1<<u;e|=t[u],n&=~s}return bl=e,qh(),i}function BT(t,e){at=null,tt.H=Mc,e===Ys||e===Yh?(e=R2(),At=3):e===Ay?(e=R2(),At=4):At=e===Qy?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ai=e,ft===null&&(te=1,bh(t,Pi(e,t.current)))}function wT(){var t=Bi.current;return t===null?!0:(mt&4194048)===mt?$i===null:(mt&62914560)===mt||mt&536870912?t===$i:!1}function jT(){var t=tt.H;return tt.H=Mc,t===null?Mc:t}function LT(){var t=tt.A;return tt.A=eM,t}function _h(){te=4,na||(mt&4194048)!==mt&&Bi.current!==null||(Qs=!0),!(pa&134217727)&&!(nu&134217727)||Dt===null||la(Dt,mt,Ci,!1)}function av(t,e,i){var n=xt;xt|=2;var u=jT(),s=LT();(Dt!==t||mt!==e)&&(zh=null,Bs(t,e)),e=!1;var r=te;t:do try{if(At!==0&&ft!==null){var f=ft,m=Ai;switch(At){case 8:Fy(),r=6;break t;case 3:case 2:case 9:case 6:Bi.current===null&&(e=!0);var v=At;if(At=0,Ai=null,Ss(t,f,m,v),i&&Qs){r=0;break t}break;default:v=At,At=0,Ai=null,Ss(t,f,m,v)}}lM(),r=te;break}catch(g){BT(t,g)}while(!0);return e&&t.shellSuspendCounter++,hl=du=null,xt=n,tt.H=u,tt.A=s,ft===null&&(Dt=null,mt=0,qh()),r}function lM(){for(;ft!==null;)qT(ft)}function aM(t,e){var i=xt;xt|=2;var n=jT(),u=LT();Dt!==t||mt!==e?(zh=null,Th=Ri()+500,Bs(t,e)):Qs=wc(t,e);t:do try{if(At!==0&&ft!==null){e=ft;var s=Ai;e:switch(At){case 1:At=0,Ai=null,Ss(t,e,s,1);break;case 2:case 9:if(C2(s)){At=0,Ai=null,$2(e);break}e=function(){At!==2&&At!==9||Dt!==t||(At=7),Bn(t)},s.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:C2(s)?(At=0,Ai=null,$2(e)):(At=0,Ai=null,Ss(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?az(r):f.stateNode.complete){At=0,Ai=null;var m=f.sibling;if(m!==null)ft=m;else{var v=f.return;v!==null?(ft=v,Fh(v)):ft=null}break e}}At=0,Ai=null,Ss(t,e,s,5);break;case 6:At=0,Ai=null,Ss(t,e,s,6);break;case 8:Fy(),te=6;break t;default:throw Error(B(462))}}uM();break}catch(g){BT(t,g)}while(!0);return hl=du=null,tt.H=n,tt.A=u,xt=i,ft!==null?0:(Dt=null,mt=0,qh(),te)}function uM(){for(;ft!==null&&!C4();)qT(ft)}function qT(t){var e=hT(t.alternate,t,bl);t.memoizedProps=t.pendingProps,e===null?Fh(t):ft=e}function $2(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=K2(i,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=K2(i,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:Hy(e);default:dT(i,e),e=ft=dx(e,bl),e=hT(i,e,bl)}t.memoizedProps=t.pendingProps,e===null?Fh(t):ft=e}function Ss(t,e,i,n){hl=du=null,Hy(e),zs=null,Ac=0;var u=e.return;try{if(FO(t,u,e,i,mt)){te=1,bh(t,Pi(i,t.current)),ft=null;return}}catch(s){if(u!==null)throw ft=u,s;te=1,bh(t,Pi(i,t.current)),ft=null;return}e.flags&32768?(vt||n===1?t=!0:Qs||mt&536870912?t=!1:(na=t=!0,(n===2||n===9||n===3||n===6)&&(n=Bi.current,n!==null&&n.tag===13&&(n.flags|=16384))),GT(e,t)):Fh(e)}function Fh(t){var e=t;do{if(e.flags&32768){GT(e,na);return}t=e.return;var i=PO(e.alternate,e,bl);if(i!==null){ft=i;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);te===0&&(te=5)}function GT(t,e){do{var i=kO(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);te=6,ft=null}function tE(t,e,i,n,u,s,r,f,m){t.cancelPendingCommit=null;do Wh();while(be!==0);if(xt&6)throw Error(B(327));if(e!==null){if(e===t.current)throw Error(B(177));if(s=e.lanes|e.childLanes,s|=Sy,q4(t,i,s,r,f,m),t===Dt&&(ft=Dt=null,mt=0),Us=e,fa=t,gl=i,Jv=s,Fv=u,DT=n,e.subtreeFlags&10256||e.flags&10256?(t.callbackNode=null,t.callbackPriority=0,rM(ch,function(){return ZT(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,e.subtreeFlags&13878||n){n=tt.T,tt.T=null,u=Tt.p,Tt.p=2,r=xt,xt|=4;try{$O(t,e,i)}finally{xt=r,Tt.p=u,tt.T=n}}be=1,YT(),QT(),XT()}}function YT(){if(be===1){be=0;var t=fa,e=Us,i=(e.flags&13878)!==0;if(e.subtreeFlags&13878||i){i=tt.T,tt.T=null;var n=Tt.p;Tt.p=2;var u=xt;xt|=4;try{zT(e,t);var s=$v,r=ax(t.containerInfo),f=s.focusedElem,m=s.selectionRange;if(r!==f&&f&&f.ownerDocument&&lx(f.ownerDocument.documentElement,f)){if(m!==null&&py(f)){var v=m.start,g=m.end;if(g===void 0&&(g=v),"selectionStart"in f)f.selectionStart=v,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),j=m.end===void 0?R:Math.min(m.end,A);!x.extend&&R>j&&(r=j,j=R,R=r);var T=x2(f,R),E=x2(f,j);if(T&&E&&(x.rangeCount!==1||x.anchorNode!==T.node||x.anchorOffset!==T.offset||x.focusNode!==E.node||x.focusOffset!==E.offset)){var _=S.createRange();_.setStart(T.node,T.offset),x.removeAllRanges(),R>j?(x.addRange(_),x.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),x.addRange(_))}}}}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}}Hh=!!kv,$v=kv=null}finally{xt=u,Tt.p=n,tt.T=i}}t.current=e,be=2}}function QT(){if(be===2){be=0;var t=fa,e=Us,i=(e.flags&8772)!==0;if(e.subtreeFlags&8772||i){i=tt.T,tt.T=null;var n=Tt.p;Tt.p=2;var u=xt;xt|=4;try{ST(t,e.alternate,e)}finally{xt=u,Tt.p=n,tt.T=i}}be=3}}function XT(){if(be===4||be===3){be=0,R4();var t=fa,e=Us,i=gl,n=DT;e.subtreeFlags&10256||e.flags&10256?be=5:(be=0,Us=fa=null,VT(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(ra=null),fy(i),e=e.stateNode,Ni&&typeof Ni.onCommitFiberRoot=="function")try{Ni.onCommitFiberRoot(Bc,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=tt.T,u=Tt.p,Tt.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,Tt.p=u}}gl&3&&Wh(),Bn(t),u=t.pendingLanes,i&261930&&u&42?t===Wv?pc++:(pc=0,Wv=t):pc=0,Xc(0,!1)}}function VT(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Gc(e)))}function Wh(){return YT(),QT(),XT(),ZT()}function ZT(){if(be!==5)return!1;var t=fa,e=Jv;Jv=0;var i=fy(gl),n=tt.T,u=Tt.p;try{Tt.p=32>i?32:i,tt.T=null,i=Fv,Fv=null;var s=fa,r=gl;if(be=0,Us=fa=null,gl=0,xt&6)throw Error(B(331));var f=xt;if(xt|=4,CT(s.current),AT(s,s.current,r,i),xt=f,Xc(0,!1),Ni&&typeof Ni.onPostCommitFiberRoot=="function")try{Ni.onPostCommitFiberRoot(Bc,s)}catch{}return!0}finally{Tt.p=u,tt.T=n,VT(t,e)}}function eE(t,e,i){e=Pi(i,e),e=Qv(t.stateNode,e,2),t=ca(t,e,2),t!==null&&(jc(t,2),Bn(t))}function Ot(t,e,i){if(t.tag===3)eE(t,t,i);else for(;e!==null;){if(e.tag===3){eE(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=Pi(i,t),i=uT(2),n=ca(e,i,2),n!==null&&(sT(i,n,e,t),jc(n,2),Bn(n));break}}e=e.return}}function uv(t,e,i){var n=t.pingCache;if(n===null){n=t.pingCache=new iM;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)||(Ky=!0,u.add(i),t=sM.bind(null,t,e,i),e.then(t,t))}function sM(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&&(te===4||te===3&&(mt&62914560)===mt&&300>Ri()-Kh?!(xt&2)&&Bs(t,0):Jy|=i,Hs===mt&&(Hs=0)),Bn(t)}function KT(t,e){e===0&&(e=jE()),t=hu(t,e),t!==null&&(jc(t,e),Bn(t))}function oM(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),KT(t,i)}function cM(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(B(314))}n!==null&&n.delete(e),KT(t,i)}function rM(t,e){return cy(t,e)}var Ah=null,ss=null,Iv=!1,Oh=!1,sv=!1,aa=0;function Bn(t){t!==ss&&t.next===null&&(ss===null?Ah=ss=t:ss=ss.next=t),Oh=!0,Iv||(Iv=!0,hM())}function Xc(t,e){if(!sv&&Oh){sv=!0;do for(var i=!1,n=Ah;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-Di(42|t)+1)-1,s&=u&~(r&~f),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(i=!0,iE(n,s))}else s=mt,s=Bh(n,n===Dt?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(s&3)||wc(n,s)||(i=!0,iE(n,s));n=n.next}while(i);sv=!1}}function fM(){JT()}function JT(){Oh=Iv=!1;var t=0;aa!==0&&bM()&&(t=aa);for(var e=Ri(),i=null,n=Ah;n!==null;){var u=n.next,s=FT(n,e);s===0?(n.next=null,i===null?Ah=u:i.next=u,u===null&&(ss=i)):(i=n,(t!==0||s&3)&&(Oh=!0)),n=u}be!==0&&be!==5||Xc(t,!1),aa!==0&&(aa=0)}function FT(t,e){for(var i=t.suspendedLanes,n=t.pingedLanes,u=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var r=31-Di(s),f=1<<r,m=u[r];m===-1?(!(f&i)||f&n)&&(u[r]=L4(f,e)):m<=e&&(t.expiredLanes|=f),s&=~f}if(e=Dt,i=mt,i=Bh(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,i===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&wg(n),t.callbackNode=null,t.callbackPriority=0;if(!(i&3)||wc(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(n!==null&&wg(n),fy(i)){case 2:case 8:i=BE;break;case 32:i=ch;break;case 268435456:i=wE;break;default:i=ch}return n=WT.bind(null,t),i=cy(i,n),t.callbackPriority=e,t.callbackNode=i,e}return n!==null&&n!==null&&wg(n),t.callbackPriority=2,t.callbackNode=null,2}function WT(t,e){if(be!==0&&be!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Wh()&&t.callbackNode!==i)return null;var n=mt;return n=Bh(t,t===Dt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(UT(t,n,e),FT(t,Ri()),t.callbackNode!=null&&t.callbackNode===i?WT.bind(null,t):null)}function iE(t,e){if(Wh())return null;UT(t,e,!0)}function hM(){xM(function(){xt&6?cy(UE,fM):JT()})}function Wy(){if(aa===0){var t=Rs;t===0&&(t=Mf,Mf<<=1,!(Mf&261888)&&(Mf=256)),aa=t}return aa}function nE(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Kf(""+t)}function lE(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 dM(t,e,i,n,u){if(e==="submit"&&i&&i.stateNode===u){var s=nE((u[fi]||null).action),r=n.submitter;r&&(e=(e=r[fi]||null)?nE(e.formAction):r.getAttribute("formAction"),e!==null&&(s=e,r=null));var f=new wh("action","action",null,n,u);t.push({event:f,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(aa!==0){var m=r?lE(u,r):new FormData(u);Gv(i,{pending:!0,data:m,method:u.method,action:s},null,m)}}else typeof s=="function"&&(f.preventDefault(),m=r?lE(u,r):new FormData(u),Gv(i,{pending:!0,data:m,method:u.method,action:s},s,m))},currentTarget:u}]})}}for(Gf=0;Gf<Mv.length;Gf++)Yf=Mv[Gf],aE=Yf.toLowerCase(),uE=Yf[0].toUpperCase()+Yf.slice(1),mn(aE,"on"+uE);var Yf,aE,uE,Gf;mn(sx,"onAnimationEnd");mn(ox,"onAnimationIteration");mn(cx,"onAnimationStart");mn("dblclick","onDoubleClick");mn("focusin","onFocus");mn("focusout","onBlur");mn(NO,"onTransitionRun");mn(DO,"onTransitionStart");mn(HO,"onTransitionCancel");mn(rx,"onTransitionEnd");Ms("onMouseEnter",["mouseout","mouseover"]);Ms("onMouseLeave",["mouseout","mouseover"]);Ms("onPointerEnter",["pointerout","pointerover"]);Ms("onPointerLeave",["pointerout","pointerover"]);cu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cu("onBeforeInput",["compositionend","keypress","textInput","paste"]);cu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cc="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(" "),mM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cc));function IT(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,v=f.currentTarget;if(f=f.listener,m!==s&&u.isPropagationStopped())break t;s=f,u.currentTarget=v;try{s(u)}catch(g){fh(g)}u.currentTarget=null,s=m}else for(r=0;r<n.length;r++){if(f=n[r],m=f.instance,v=f.currentTarget,f=f.listener,m!==s&&u.isPropagationStopped())break t;s=f,u.currentTarget=v;try{s(u)}catch(g){fh(g)}u.currentTarget=null,s=m}}}}function rt(t,e){var i=e[bv];i===void 0&&(i=e[bv]=new Set);var n=t+"__bubble";i.has(n)||(PT(e,t,2,!1),i.add(n))}function ov(t,e,i){var n=0;e&&(n|=4),PT(i,t,n,e)}var Qf="_reactListening"+Math.random().toString(36).slice(2);function Iy(t){if(!t[Qf]){t[Qf]=!0,QE.forEach(function(i){i!=="selectionchange"&&(mM.has(i)||ov(i,!1,t),ov(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qf]||(e[Qf]=!0,ov("selectionchange",!1,e))}}function PT(t,e,i,n){switch(rz(e)){case 2:var u=QM;break;case 8:u=XM;break;default:u=tp}i=u.bind(null,e,i,t),u=void 0,!_v||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 cv(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=rs(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}IE(function(){var v=s,g=my(i),S=[];t:{var p=fx.get(t);if(p!==void 0){var x=wh,A=t;switch(t){case"keypress":if(Ff(i)===0)break t;case"keydown":case"keyup":x=cO;break;case"focusin":A="focus",x=Yg;break;case"focusout":A="blur",x=Yg;break;case"beforeblur":case"afterblur":x=Yg;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=d2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=P4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=hO;break;case sx:case ox:case cx:x=tO;break;case rx:x=mO;break;case"scroll":case"scrollend":x=W4;break;case"wheel":x=vO;break;case"copy":case"cut":case"paste":x=iO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=g2;break;case"toggle":case"beforetoggle":x=pO}var R=(e&4)!==0,j=!R&&(t==="scroll"||t==="scrollend"),T=R?p!==null?p+"Capture":null:p;R=[];for(var E=v,_;E!==null;){var O=E;if(_=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||_===null||T===null||(O=Ec(E,T),O!=null&&R.push(Rc(E,O,_))),j)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!==zv&&(A=i.relatedTarget||i.fromElement)&&(rs(A)||A[Ls]))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=v,A=A?rs(A):null,A!==null&&(j=Uc(A),R=A.tag,A!==j||R!==5&&R!==27&&R!==6)&&(A=null)):(x=null,A=v),x!==A)){if(R=d2,O="onMouseLeave",T="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(R=g2,O="onPointerLeave",T="onPointerEnter",E="pointer"),j=x==null?p:lc(x),_=A==null?p:lc(A),p=new R(O,E+"leave",x,i,g),p.target=j,p.relatedTarget=_,O=null,rs(g)===v&&(R=new R(T,E+"enter",A,i,g),R.target=_,R.relatedTarget=j,O=R),j=O,x&&A)e:{for(R=gM,T=x,E=A,_=0,O=T;O;O=R(O))_++;O=0;for(var H=E;H;H=R(H))O++;for(;0<_-O;)T=R(T),_--;for(;0<O-_;)E=R(E),O--;for(;_--;){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&&sE(S,p,x,R,!1),A!==null&&j!==null&&sE(S,j,A,R,!0)}}t:{if(p=v?lc(v):window,x=p.nodeName&&p.nodeName.toLowerCase(),x==="select"||x==="input"&&p.type==="file")var U=S2;else if(p2(p))if(ix)U=MO;else{U=AO;var q=_O}else x=p.nodeName,!x||x.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?v&&dy(v.elementType)&&(U=S2):U=OO;if(U&&(U=U(t,v))){ex(S,U,i,g);break t}q&&q(t,p,v),t==="focusout"&&v&&p.type==="number"&&v.memoizedProps.value!=null&&Tv(p,"number",p.value)}switch(q=v?lc(v):window,t){case"focusin":(p2(q)||q.contentEditable==="true")&&(ds=q,Av=v,cc=null);break;case"focusout":cc=Av=ds=null;break;case"mousedown":Ov=!0;break;case"contextmenu":case"mouseup":case"dragend":Ov=!1,T2(S,i,g);break;case"selectionchange":if(RO)break;case"keydown":case"keyup":T2(S,i,g)}var Z;if(yy)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 hs?$E(t,i)&&(J="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(J="onCompositionStart");J&&(kE&&i.locale!=="ko"&&(hs||J!=="onCompositionStart"?J==="onCompositionEnd"&&hs&&(Z=PE()):(ia=g,gy="value"in ia?ia.value:ia.textContent,hs=!0)),q=Mh(v,J),0<q.length&&(J=new m2(J,t,null,i,g),S.push({event:J,listeners:q}),Z?J.data=Z:(Z=tx(i),Z!==null&&(J.data=Z)))),(Z=bO?EO(t,i):xO(t,i))&&(J=Mh(v,"onBeforeInput"),0<J.length&&(q=new m2("onBeforeInput","beforeinput",null,i,g),S.push({event:q,listeners:J}),q.data=Z)),dM(S,t,v,i,g)}IT(S,e)})}function Rc(t,e,i){return{instance:t,listener:e,currentTarget:i}}function Mh(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=Ec(t,i),u!=null&&n.unshift(Rc(t,u,s)),u=Ec(t,e),u!=null&&n.push(Rc(t,u,s))),t.tag===3)return n;t=t.return}return[]}function gM(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function sE(t,e,i,n,u){for(var s=e._reactName,r=[];i!==null&&i!==n;){var f=i,m=f.alternate,v=f.stateNode;if(f=f.tag,m!==null&&m===n)break;f!==5&&f!==26&&f!==27||v===null||(m=v,u?(v=Ec(i,s),v!=null&&r.unshift(Rc(i,v,m))):u||(v=Ec(i,s),v!=null&&r.push(Rc(i,v,m)))),i=i.return}r.length!==0&&t.push({event:e,listeners:r})}var vM=/\r\n?/g,yM=/\u0000|\uFFFD/g;function oE(t){return(typeof t=="string"?t:""+t).replace(vM,`
|
|
20
|
+
`).replace(yM,"")}function kT(t,e){return e=oE(e),oE(t)===e}function Ct(t,e,i,n,u,s){switch(i){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||Cs(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&Cs(t,""+n);break;case"className":Nf(t,"class",n);break;case"tabIndex":Nf(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Nf(t,i,n);break;case"style":WE(t,n,s);break;case"data":if(e!=="object"){Nf(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=Kf(""+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"&&Ct(t,e,"name",u.name,u,null),Ct(t,e,"formEncType",u.formEncType,u,null),Ct(t,e,"formMethod",u.formMethod,u,null),Ct(t,e,"formTarget",u.formTarget,u,null)):(Ct(t,e,"encType",u.encType,u,null),Ct(t,e,"method",u.method,u,null),Ct(t,e,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(i);break}n=Kf(""+n),t.setAttribute(i,n);break;case"onClick":n!=null&&(t.onclick=fl);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(B(61));if(i=n.__html,i!=null){if(u.children!=null)throw Error(B(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=Kf(""+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),Zf(t,"popover",n);break;case"xlinkActuate":nl(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":nl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":nl(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":nl(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":nl(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":nl(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":nl(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":nl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":nl(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Zf(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=J4.get(i)||i,Zf(t,i,n))}}function Pv(t,e,i,n,u,s){switch(i){case"style":WE(t,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(B(61));if(i=n.__html,i!=null){if(u.children!=null)throw Error(B(60));t.innerHTML=i}}break;case"children":typeof n=="string"?Cs(t,n):(typeof n=="number"||typeof n=="bigint")&&Cs(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=fl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!XE.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[fi]||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,""):Zf(t,i,n)}}}function Ge(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(B(137,e));default:Ct(t,e,s,r,i,null)}}u&&Ct(t,e,"srcSet",i.srcSet,i,null),n&&Ct(t,e,"src",i.src,i,null);return;case"input":rt("invalid",t);var f=s=r=u=null,m=null,v=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":v=g;break;case"value":s=g;break;case"defaultValue":f=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(B(137,e));break;default:Ct(t,e,n,g,i,null)}}KE(t,s,f,m,v,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:Ct(t,e,u,f,i,null)}e=s,i=r,t.multiple=!!n,e!=null?Es(t,!!n,e,!1):i!=null&&Es(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(B(91));break;default:Ct(t,e,r,f,i,null)}FE(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:Ct(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<Cc.length;n++)rt(Cc[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(v in i)if(i.hasOwnProperty(v)&&(n=i[v],n!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(B(137,e));default:Ct(t,e,v,n,i,null)}return;default:if(dy(e)){for(g in i)i.hasOwnProperty(g)&&(n=i[g],n!==void 0&&Pv(t,e,g,n,i,void 0));return}}for(f in i)i.hasOwnProperty(f)&&(n=i[f],n!=null&&Ct(t,e,f,n,i,null))}function pM(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,v=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)||Ct(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":v=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(B(137,e));break;default:x!==S&&Ct(t,e,p,x,n,S)}}xv(t,r,f,m,v,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)||Ct(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&&Ct(t,e,u,s,n,m)}e=f,i=r,n=x,p!=null?Es(t,!!i,p,!1):!!n!=!!i&&(e!=null?Es(t,!!i,e,!0):Es(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:Ct(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(B(91));break;default:u!==s&&Ct(t,e,r,u,n,s)}JE(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:Ct(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:Ct(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)&&Ct(t,e,R,null,n,p);for(v in n)if(p=n[v],x=i[v],n.hasOwnProperty(v)&&p!==x&&(p!=null||x!=null))switch(v){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(B(137,e));break;default:Ct(t,e,v,p,n,x)}return;default:if(dy(e)){for(var j in i)p=i[j],i.hasOwnProperty(j)&&p!==void 0&&!n.hasOwnProperty(j)&&Pv(t,e,j,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||Pv(t,e,g,p,n,x);return}}for(var T in i)p=i[T],i.hasOwnProperty(T)&&p!=null&&!n.hasOwnProperty(T)&&Ct(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||Ct(t,e,S,p,n,x)}function cE(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SM(){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&&cE(r)){for(r=0,f=u.responseEnd,n+=1;n<i.length;n++){var m=i[n],v=m.startTime;if(v>f)break;var g=m.transferSize,S=m.initiatorType;g&&cE(S)&&(m=m.responseEnd,r+=g*(m<f?1:(f-v)/(m-v)))}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 kv=null,$v=null;function Ch(t){return t.nodeType===9?t:t.ownerDocument}function rE(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 $T(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 ty(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 rv=null;function bM(){var t=window.event;return t&&t.type==="popstate"?t===rv?!1:(rv=t,!0):(rv=null,!1)}var tz=typeof setTimeout=="function"?setTimeout:void 0,EM=typeof clearTimeout=="function"?clearTimeout:void 0,fE=typeof Promise=="function"?Promise:void 0,xM=typeof queueMicrotask=="function"?queueMicrotask:typeof fE<"u"?function(t){return fE.resolve(null).then(t).catch(TM)}:tz;function TM(t){setTimeout(function(){throw t})}function ba(t){return t==="head"}function hE(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),js(e);return}n--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")n++;else if(i==="html")Sc(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Sc(i);for(var s=i.firstChild;s;){var r=s.nextSibling,f=s.nodeName;s[Lc]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&s.rel.toLowerCase()==="stylesheet"||i.removeChild(s),s=r}}else i==="body"&&Sc(t.ownerDocument.body);i=u}while(i);js(e)}function dE(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 ey(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":ey(i),hy(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function zM(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[Lc])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=tn(t.nextSibling),t===null)break}return null}function _M(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=tn(t.nextSibling),t===null))return null;return t}function ez(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=tn(t.nextSibling),t===null))return null;return t}function iy(t){return t.data==="$?"||t.data==="$~"}function ny(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function AM(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 tn(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 ly=null;function mE(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return tn(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function gE(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 iz(t,e,i){switch(e=Ch(i),t){case"html":if(t=e.documentElement,!t)throw Error(B(452));return t;case"head":if(t=e.head,!t)throw Error(B(453));return t;case"body":if(t=e.body,!t)throw Error(B(454));return t;default:throw Error(B(451))}}function Sc(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);hy(t)}var en=new Map,vE=new Set;function Rh(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var El=Tt.d;Tt.d={f:OM,r:MM,D:CM,C:RM,L:NM,m:DM,X:UM,S:HM,M:BM};function OM(){var t=El.f(),e=Jh();return t||e}function MM(t){var e=qs(t);e!==null&&e.tag===5&&e.type==="form"?Wx(e):El.r(t)}var Xs=typeof document>"u"?null:document;function nz(t,e,i){var n=Xs;if(n&&typeof e=="string"&&e){var u=Ii(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),vE.has(u)||(vE.add(u),t={rel:t,crossOrigin:i,href:e},n.querySelector(u)===null&&(e=n.createElement("link"),Ge(e,"link",t),Me(e),n.head.appendChild(e)))}}function CM(t){El.D(t),nz("dns-prefetch",t,null)}function RM(t,e){El.C(t,e),nz("preconnect",t,e)}function NM(t,e,i){El.L(t,e,i);var n=Xs;if(n&&t&&e){var u='link[rel="preload"][as="'+Ii(e)+'"]';e==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+Ii(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+Ii(i.imageSizes)+'"]')):u+='[href="'+Ii(t)+'"]';var s=u;switch(e){case"style":s=ws(t);break;case"script":s=Vs(t)}en.has(s)||(t=Lt({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),en.set(s,t),n.querySelector(u)!==null||e==="style"&&n.querySelector(Vc(s))||e==="script"&&n.querySelector(Zc(s))||(e=n.createElement("link"),Ge(e,"link",t),Me(e),n.head.appendChild(e)))}}function DM(t,e){El.m(t,e);var i=Xs;if(i&&t){var n=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ii(n)+'"][href="'+Ii(t)+'"]',s=u;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Vs(t)}if(!en.has(s)&&(t=Lt({rel:"modulepreload",href:t},e),en.set(s,t),i.querySelector(u)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Zc(s)))return}n=i.createElement("link"),Ge(n,"link",t),Me(n),i.head.appendChild(n)}}}function HM(t,e,i){El.S(t,e,i);var n=Xs;if(n&&t){var u=bs(n).hoistableStyles,s=ws(t);e=e||"default";var r=u.get(s);if(!r){var f={loading:0,preload:null};if(r=n.querySelector(Vc(s)))f.loading=5;else{t=Lt({rel:"stylesheet",href:t,"data-precedence":e},i),(i=en.get(s))&&Py(t,i);var m=r=n.createElement("link");Me(m),Ge(m,"link",t),m._p=new Promise(function(v,g){m.onload=v,m.onerror=g}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,ih(r,e,n)}r={type:"stylesheet",instance:r,count:1,state:f},u.set(s,r)}}}function UM(t,e){El.X(t,e);var i=Xs;if(i&&t){var n=bs(i).hoistableScripts,u=Vs(t),s=n.get(u);s||(s=i.querySelector(Zc(u)),s||(t=Lt({src:t,async:!0},e),(e=en.get(u))&&ky(t,e),s=i.createElement("script"),Me(s),Ge(s,"link",t),i.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(u,s))}}function BM(t,e){El.M(t,e);var i=Xs;if(i&&t){var n=bs(i).hoistableScripts,u=Vs(t),s=n.get(u);s||(s=i.querySelector(Zc(u)),s||(t=Lt({src:t,async:!0,type:"module"},e),(e=en.get(u))&&ky(t,e),s=i.createElement("script"),Me(s),Ge(s,"link",t),i.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(u,s))}}function yE(t,e,i,n){var u=(u=ua.current)?Rh(u):null;if(!u)throw Error(B(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=ws(i.href),i=bs(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=ws(i.href);var s=bs(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(Vc(t)))&&!s._p&&(r.instance=s,r.state.loading=5),en.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},en.set(t,i),s||wM(u,t,i,r.state))),e&&n===null)throw Error(B(528,""));return r}if(e&&n!==null)throw Error(B(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Vs(i),i=bs(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(B(444,t))}}function ws(t){return'href="'+Ii(t)+'"'}function Vc(t){return'link[rel="stylesheet"]['+t+"]"}function lz(t){return Lt({},t,{"data-precedence":t.precedence,precedence:null})}function wM(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}),Ge(e,"link",i),Me(e),t.head.appendChild(e))}function Vs(t){return'[src="'+Ii(t)+'"]'}function Zc(t){return"script[async]"+t}function pE(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Ii(i.href)+'"]');if(n)return e.instance=n,Me(n),n;var u=Lt({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Me(n),Ge(n,"style",u),ih(n,i.precedence,t),e.instance=n;case"stylesheet":u=ws(i.href);var s=t.querySelector(Vc(u));if(s)return e.state.loading|=4,e.instance=s,Me(s),s;n=lz(i),(u=en.get(u))&&Py(n,u),s=(t.ownerDocument||t).createElement("link"),Me(s);var r=s;return r._p=new Promise(function(f,m){r.onload=f,r.onerror=m}),Ge(s,"link",n),e.state.loading|=4,ih(s,i.precedence,t),e.instance=s;case"script":return s=Vs(i.src),(u=t.querySelector(Zc(s)))?(e.instance=u,Me(u),u):(n=i,(u=en.get(s))&&(n=Lt({},i),ky(n,u)),t=t.ownerDocument||t,u=t.createElement("script"),Me(u),Ge(u,"link",n),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(B(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(n=e.instance,e.state.loading|=4,ih(n,i.precedence,t));return e.instance}function ih(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 Py(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function ky(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var nh=null;function SE(t,e,i){if(nh===null){var n=new Map,u=nh=new Map;u.set(i,n)}else u=nh,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[Lc]||s[je]||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 bE(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function jM(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 az(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}function LM(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=ws(n.href),s=e.querySelector(Vc(u));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Nh.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=s,Me(s);return}s=e.ownerDocument||e,n=lz(n),(u=en.get(u))&&Py(n,u),s=s.createElement("link"),Me(s);var r=s;r._p=new Promise(function(f,m){r.onload=f,r.onerror=m}),Ge(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=Nh.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var fv=0;function qM(t,e){return t.stylesheets&&t.count===0&&lh(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var n=setTimeout(function(){if(t.stylesheets&&lh(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&fv===0&&(fv=62500*SM());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&lh(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>fv?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(u)}}:null}function Nh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lh(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Dh=null;function lh(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Dh=new Map,e.forEach(GM,t),Dh=null,Nh.call(t))}function GM(t,e){if(!(e.state.loading&4)){var i=Dh.get(t);if(i)var n=i.get(null);else{i=new Map,Dh.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=Nh.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 Nc={$$typeof:rl,Provider:null,Consumer:null,_currentValue:$a,_currentValue2:$a,_threadCount:0};function YM(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=jg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jg(0),this.hiddenUpdates=jg(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 uz(t,e,i,n,u,s,r,f,m,v,g,S){return t=new YM(t,e,i,r,m,v,g,S,f),e=1,s===!0&&(e|=24),s=Mi(3,null,null,e),t.current=s,s.stateNode=t,e=zy(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:n,isDehydrated:i,cache:e},Oy(s),t}function sz(t){return t?(t=vs,t):vs}function oz(t,e,i,n,u,s){u=sz(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&&(ri(i,t,e),fc(i,t,e))}function EE(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function $y(t,e){EE(t,e),(t=t.alternate)&&EE(t,e)}function cz(t){if(t.tag===13||t.tag===31){var e=hu(t,67108864);e!==null&&ri(e,t,67108864),$y(t,67108864)}}function xE(t){if(t.tag===13||t.tag===31){var e=Hi();e=ry(e);var i=hu(t,e);i!==null&&ri(i,t,e),$y(t,e)}}var Hh=!0;function QM(t,e,i,n){var u=tt.T;tt.T=null;var s=Tt.p;try{Tt.p=2,tp(t,e,i,n)}finally{Tt.p=s,tt.T=u}}function XM(t,e,i,n){var u=tt.T;tt.T=null;var s=Tt.p;try{Tt.p=8,tp(t,e,i,n)}finally{Tt.p=s,tt.T=u}}function tp(t,e,i,n){if(Hh){var u=ay(n);if(u===null)cv(t,e,n,Uh,i),TE(t,n);else if(ZM(u,t,e,i,n))n.stopPropagation();else if(TE(t,n),e&4&&-1<VM.indexOf(t)){for(;u!==null;){var s=qs(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-Di(r);f.entanglements[1]|=m,r&=~m}Bn(s),!(xt&6)&&(Th=Ri()+500,Xc(0,!1))}}break;case 31:case 13:f=hu(s,2),f!==null&&ri(f,s,2),Jh(),$y(s,2)}if(s=ay(n),s===null&&cv(t,e,n,Uh,i),s===u)break;u=s}u!==null&&n.stopPropagation()}else cv(t,e,n,null,i)}}function ay(t){return t=my(t),ep(t)}var Uh=null;function ep(t){if(Uh=null,t=rs(t),t!==null){var e=Uc(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=CE(e),t!==null)return t;t=null}else if(i===31){if(t=RE(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 Uh=t,null}function rz(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(N4()){case UE:return 2;case BE:return 8;case ch:case D4:return 32;case wE:return 268435456;default:return 32}default:return 32}}var uy=!1,ha=null,da=null,ma=null,Dc=new Map,Hc=new Map,ta=[],VM="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 TE(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":Dc.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hc.delete(e.pointerId)}}function tc(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=qs(e),e!==null&&cz(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function ZM(t,e,i,n,u){switch(e){case"focusin":return ha=tc(ha,t,e,i,n,u),!0;case"dragenter":return da=tc(da,t,e,i,n,u),!0;case"mouseover":return ma=tc(ma,t,e,i,n,u),!0;case"pointerover":var s=u.pointerId;return Dc.set(s,tc(Dc.get(s)||null,t,e,i,n,u)),!0;case"gotpointercapture":return s=u.pointerId,Hc.set(s,tc(Hc.get(s)||null,t,e,i,n,u)),!0}return!1}function fz(t){var e=rs(t.target);if(e!==null){var i=Uc(e);if(i!==null){if(e=i.tag,e===13){if(e=CE(i),e!==null){t.blockedOn=e,u2(t.priority,function(){xE(i)});return}}else if(e===31){if(e=RE(i),e!==null){t.blockedOn=e,u2(t.priority,function(){xE(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 ah(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=ay(t.nativeEvent);if(i===null){i=t.nativeEvent;var n=new i.constructor(i.type,i);zv=n,i.target.dispatchEvent(n),zv=null}else return e=qs(i),e!==null&&cz(e),t.blockedOn=i,!1;e.shift()}return!0}function zE(t,e,i){ah(t)&&i.delete(e)}function KM(){uy=!1,ha!==null&&ah(ha)&&(ha=null),da!==null&&ah(da)&&(da=null),ma!==null&&ah(ma)&&(ma=null),Dc.forEach(zE),Hc.forEach(zE)}function Xf(t,e){t.blockedOn===e&&(t.blockedOn=null,uy||(uy=!0,Ee.unstable_scheduleCallback(Ee.unstable_NormalPriority,KM)))}var Vf=null;function _E(t){Vf!==t&&(Vf=t,Ee.unstable_scheduleCallback(Ee.unstable_NormalPriority,function(){Vf===t&&(Vf=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(ep(n||i)===null)continue;break}var s=qs(i);s!==null&&(t.splice(e,3),e-=3,Gv(s,{pending:!0,data:u,method:i.method,action:n},n,u))}}))}function js(t){function e(m){return Xf(m,t)}ha!==null&&Xf(ha,t),da!==null&&Xf(da,t),ma!==null&&Xf(ma,t),Dc.forEach(e),Hc.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);)fz(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[fi]||null;if(typeof s=="function")r||_E(i);else if(r){var f=null;if(s&&s.hasAttribute("formAction")){if(u=s,r=s[fi]||null)f=r.formAction;else if(ep(u)!==null)continue}else f=r.action;typeof f=="function"?i[n+1]=f:(i.splice(n,3),n-=3),_E(i)}}}function hz(){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 ip(t){this._internalRoot=t}Ih.prototype.render=ip.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(B(409));var i=e.current,n=Hi();oz(i,n,t,e,null,null)};Ih.prototype.unmount=ip.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;oz(t.current,2,null,t,null,null),Jh(),e[Ls]=null}};function Ih(t){this._internalRoot=t}Ih.prototype.unstable_scheduleHydration=function(t){if(t){var e=YE();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&&fz(t)}};var AE=OE.version;if(AE!=="19.2.0")throw Error(B(527,AE,"19.2.0"));Tt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(B(188)):(t=Object.keys(t).join(","),Error(B(268,t)));return t=z4(e),t=t!==null?NE(t):null,t=t===null?null:t.stateNode,t};var JM={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:tt,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ec=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ec.isDisabled&&ec.supportsFiber))try{Bc=ec.inject(JM),Ni=ec}catch{}var ec;Ph.createRoot=function(t,e){if(!ME(t))throw Error(B(299));var i=!1,n="",u=nT,s=lT,r=aT;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=uz(t,1,!1,null,null,i,n,null,u,s,r,hz),t[Ls]=e.current,Iy(t),new ip(e)};Ph.hydrateRoot=function(t,e,i){if(!ME(t))throw Error(B(299));var n=!1,u="",s=nT,r=lT,f=aT,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=uz(t,1,!0,e,i??null,n,u,m,s,r,f,hz),e.context=sz(null),i=e.current,n=Hi(),n=ry(n),u=oa(n),u.callback=null,ca(i,u,n),i=n,e.current.lanes=i,jc(e,i),Bn(e),t[Ls]=e.current,Iy(t),new Ih(e)};Ph.version="19.2.0"});var vz=pe((ZD,gz)=>{"use strict";function mz(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mz)}catch(t){console.error(t)}}mz(),gz.exports=dz()});var ZC={};AA(ZC,{Atlas:()=>Cg,AtlasAuto:()=>p4,AtlasContext:()=>An,BoundsContext:()=>Vl,Box:()=>rn,BrowserEventManager:()=>Za,CanvasRenderer:()=>Do,CompositeRenderer:()=>Ya,CompositeResource:()=>Oo,DebugRenderer:()=>Ho,DrawBox:()=>S4,Geometry:()=>Ga,GridBuilder:()=>$m,HTMLPortal:()=>kh,ImageService:()=>LC,ImageTexture:()=>Ql,ModeContext:()=>_n,ModeProvider:()=>u4,OverlayRenderer:()=>Va,ReactAtlas:()=>$u,RegionHighlight:()=>FM,ResizeWorldItem:()=>sp,Runtime:()=>zn,SingleImage:()=>Se,StaticRenderer:()=>Zo,Text:()=>el,TileSet:()=>cp,TiledImage:()=>Qi,WebGLRenderer:()=>Qo,World:()=>Xi,WorldObject:()=>Tn,Zone:()=>Jm,activateEvents:()=>Ag,applyProps:()=>_g,bounceOut:()=>Co,canDrag:()=>XC,createDefaultEventMap:()=>Zm,defaultConfig:()=>kS,defaultPreset:()=>Vo,easingFunctions:()=>fn,fromImage:()=>MA,getId:()=>rp,getTileFromCanvas:()=>Pz,getTileFromImageService:()=>sd,getTiles:()=>jC,getTilesFromManifest:()=>kz,mergeStyles:()=>VC,popmotionController:()=>Uo,presets:()=>Mg,staticPreset:()=>Og,supportedEventAttributes:()=>Zu,supportedEventMap:()=>cn,unmountComponentAtNode:()=>ku,useAfterFrame:()=>Rg,useAfterPaint:()=>qC,useAtlas:()=>Jo,useAtlasImage:()=>GC,useBeforeFrame:()=>YC,useCanvas:()=>Ng,useControlledAnnotationList:()=>QC,useFrame:()=>Ja,useMode:()=>Bo,useResizeWorldItem:()=>up,useRuntime:()=>Be,useWorldEvent:()=>$h});var Zu=["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 Zm(){return Zu.reduce((t,e)=>(t[e]=[],t),{})}var cn=Zu.reduce((t,e)=>(t[e.slice(2).toLowerCase()]=e,t[e]=e,t),{});var Yl=(t,e,i)=>{let n=t.length,u=i||V(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 V(t,e,i){return new Float32Array(t,e,i)}var hS=(t,e,i)=>{let n=t[1]<=e[3]&&t[3]>=e[1]&&t[2]<=e[4]&&t[4]>=e[2],u=i||V(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)},dS=t=>t.length/5;var li=(t,e,i)=>{let n=i||V(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=V(this.length)}static grid(e=1,i=1){return new t(5*e*i)}static point(e,i){let n=V(5);return n[0]=1,n[1]=e,n[2]=i,n[3]=e,n[4]=i,n}static positionPair(e){let i=V(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=V(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 Fe=(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},xi=t=>{let e=V(9);return e[0]=t,e[4]=t,e[8]=1,e},Kt=(t,e)=>{let i=V(9);return i[0]=1,i[2]=t,i[4]=1,i[5]=e,i[8]=1,i},tl=(t,e,i)=>li(Kt((1-t)*e,(1-t)*i),xi(t)),Ti=(t,e,i)=>{let n=t.length,u=i&&i.length>=n?i.slice(0,n):V(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 mS="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var xn=(t=21)=>{let e="",i=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=mS[i[t]&63];return e};var kt=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=cn[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=cn[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=xn(),this.eventHandlers=Zm()}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){Fe(this.points,Kt(e,i))}atScale(e){Fe(this.points,tl(e,this.x,this.y)),this.scale*=e}transform(e){Fe(this.points,e)}applyProps(e){this.__revision++}appendChild(e){}removeChild(e){}insertBefore(e,i){}hideInstance(){}};var Se=class t extends kt{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:V(5)},this.points=V(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);Fe(s,Kt(-i.crop.x,-i.crop.y)),this.crop?this.crop.set(s):this.crop=V(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 Ql=class extends kt{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:V(5)},this.points=V(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 gS(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=Km(e[r].display.scale,t/(i||1));f<s&&(s=f,u=r)}return u}function Km(t,e){return Math.abs(t-e)}function qa(t,e){let i=Km(t.x,e.x),n=Km(t.y,e.y);return Math.sqrt(Math.pow(i,2)+Math.pow(n,2))}function vS(t){let e=t.length;return t.indexOf("/info.json")===e-10?t.slice(0,-10):t}function Fr(t,e,i){return Math.min(Math.max(t,e),i)}var Qi=class t extends kt{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=vS(i.url),this.id=i.id||`${this.tileUrl}--${i.scaleFactor}`,this.points=i.displayPoints?i.displayPoints:Ti(i.points,xi(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=V([...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 v=0;v<u;v++){let g=v*5;n[g+1]<f&&n[g+3]>s&&n[g+2]<m&&n[g+4]>r?(n[g+1]=Fr(n[g+1],s,f),n[g+3]=Fr(n[g+3],s,f),n[g+2]=Fr(n[g+2],r,m),n[g+4]=Fr(n[g+4],r,m)):n[g]=0}Fe(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,v){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),j=r?r["@context"]?Array.isArray(r["@context"])?r["@context"]:[r["@context"]]:[]:[],T=typeof v<"u"?v:j.indexOf("http://iiif.io/api/image/3/context.json")!==-1;for(let _=0;_<x;_++)for(let O=0;O<p;O++){let H=O*u.width,U=_*u.height;R.addPoints(H*s,U*s,O===p-1?n.width:(H+u.width)*s,_===x-1?n.height:(U+u.height)*s),A.addPoints(H,U,O===p-1?g:H+u.width,_===x-1?S:U+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=Yl(this.crop||this.points,i);return[[this,s,n]]}transform(i){Fe(this.points,i)}getScheduledUpdates(i,n){return[]}};var Wr=class extends kt{constructor(){super(...arguments);b(this,"type","spacial-content")}getAllPointsAt(i,n,u){return[[this,this.points,n]]}};var Oo=class extends Wr{constructor(i){super();b(this,"id");b(this,"display");b(this,"points");b(this,"images",[]);b(this,"allImages",[]);b(this,"scaleFactors",[]);b(this,"aggregateBuffer",V(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 Se&&(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 Se||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=gS(1/(u||1)/(window.devicePixelRatio||1),this.images,this.renderOptions.quality),r=this.images.length,f=n?li(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 v=m[0];this.renderOptions.renderLayers&&(m=m.slice(-Math.min(m.length,this.renderOptions.renderLayers))),this.renderOptions.renderSmallestFallback&&m.indexOf(v)===-1&&m.unshift(v);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 Ir(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,v=r*(n-e)-f*(i-t)+e;return[m,v]}var Tn=class t extends kt{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",V(5));b(this,"aggregateBuffer",V(9));b(this,"invertedBuffer",V(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=V([1,u,s,u+i.width,s+i.height]),this.worldPoints=V([1,u,s,u+i.width,s+i.height]),this.filteredPointsBuffer=V(i.layers.length*5)):(this.id="",this.scale=1,this.layers=[],this.points=V(5),this.worldPoints=V(5),this.filteredPointsBuffer=V(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=V(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)),Yl(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=Ti(m.points,Kt(this.x,this.y));if(!m.intersects([i[1]-g[1],i[2]-g[2]]))continue}if(Yl(Ti(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,[v,g]=Ir(f,m,n.x,n.y,this.rotation),[S,p]=Ir(f,m,u.x,u.y,this.rotation),[x,A]=Ir(f,m,s.x,s.y,this.rotation),[R,j]=Ir(f,m,r.x,r.y,this.rotation),T=Math.min(v,S,x,R),E=Math.max(v,S,x,R),_=Math.min(g,p,A,j),O=Math.max(g,p,A,j);return V([i[0],T,_,E,O])}return i}getAllPointsAt(i,n,u){let s=li(Kt(this.x,this.y),xi(this.scale),this.aggregateBuffer);this.rotation&&(i=this.applyRotation(i));let r=hS(i,this.points,this.intersectionBuffer),f=this.layers.length,m=[],v=Ti(r,li(xi(1/this.scale),Kt(-this.x,-this.y),this.invertedBuffer)),g=n?li(n,s,this.aggregateBuffer):s,S=u*this.scale;for(let p=0;p<f;p++)m.push(...this.layers[p].getAllPointsAt(v,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||V([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=V(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 Xi=class t extends kt{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",V(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",V(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=V(u*5),this.filteredPointsBuffer=V(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 v=this._propagateEventTargets.length,g=!1;for(let S=0;S<v&&(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(dS(this.points)===this.objects.length){let i=this.points,n=V(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=V(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 v=this.renderOrder[m];this.objects[v]&&(n[m]=this.points[v*5+3],u[m]=this.points[v*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 Tn(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=V(this.points.length*2),this.triggerRepaint(),this.needsRecalculate=!0,m}scaleWorldObject(i,n){Fe(this.points.subarray(i*5,i*5+5),tl(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){Fe(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=Yl(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=Yl(this.points,i,this.filteredPointsBuffer),r=this.renderOrder.length,f=[];for(let m=0;m<r;m++){let v=this.renderOrder[m];if(s[v*5]!==0){let g=this.objects[v];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=li(xi(u),Kt(-i[1],-i[2]),this.translationBuffer),f=n?li(n,r,this.aggregateBuffer):r,m=s.length,v=[];for(let g=0;g<m;g++)s[g]&&v.push(...s[g][0].getAllPointsAt(i,f,u));return v}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 MA(t){let{src:e,target:i}=t,n=i?i.width:t.width,u=i?i.height:t.height;return new Tn({id:e,height:u,width:n,layers:[Se.fromImage(e,{height:u,width:n},{width:t.width,height:t.height})]})}var CA={margin:0},Jm=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={...CA,...i},this.points=V(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 Pr=/([0-9]+(px|em)\s+)+(solid)\s+(.*)/g,kr={},RA=["backgroundColor","opacity","boxShadow","borderColor","borderWidth","borderStyle","outlineColor","outlineWidth","outlineOffset","outlineStyle"],rn=class extends kt{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:V(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=xn(12),this.points=V(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=kr[u]||Pr.exec(u)||Pr.exec(u);s&&(this._parsed.border.id=u,this._parsed.border.match=kr[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=kr[i.style.outline]||Pr.exec(i.style.outline)||Pr.exec(i.style.outline);s&&(this._parsed.outline.id=i.style.outline,this._parsed.outline.match=kr[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 RA)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 el=class extends kt{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:V(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=V(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:v="Arial, sans-serif",...g}){g.font=`${f}px ${v}`,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,$r=Math.sqrt,Mo=Math.sin,yS=Math.cos,Ro=Math.PI,ef=1.70158,tf=ef*1.525,pS=ef+1,SS=2*Ro/3,bS=2*Ro/4.5,Co=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},fn={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-yS(t*Ro/2)},easeOutSine:function(t){return Mo(t*Ro/2)},easeInOutSine:function(t){return-(yS(Ro*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-$r(1-Jt(t,2))},easeOutCirc:function(t){return $r(1-Jt(t-1,2))},easeInOutCirc:function(t){return t<.5?(1-$r(1-Jt(2*t,2)))/2:($r(1-Jt(-2*t+2,2))+1)/2},easeInBack:function(t){return pS*t*t*t-ef*t*t},easeOutBack:function(t){return 1+pS*Jt(t-1,3)+ef*Jt(t-1,2)},easeInOutBack:function(t){return t<.5?Jt(2*t,2)*((tf+1)*2*t-tf)/2:(Jt(2*t-2,2)*((tf+1)*(t*2-2)+tf)+2)/2},easeInElastic:function(t){return t===0?0:t===1?1:-Jt(2,10*t-10)*Mo((t*10-10.75)*SS)},easeOutElastic:function(t){return t===0?0:t===1?1:Jt(2,-10*t)*Mo((t*10-.75)*SS)+1},easeInOutElastic:function(t){return t===0?0:t===1?1:t<.5?-(Jt(2,20*t-10)*Mo((20*t-11.125)*bS))/2:Jt(2,-20*t+10)*Mo((20*t-11.125)*bS)/2+1},easeInBounce:function(t){return 1-Co(1-t)},easeOutBounce:Co,easeInOutBounce:function(t){return t<.5?(1-Co(1-2*t))/2:(1+Co(2*t-1))/2}};var nf=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:V(5),to:V(5),elapsed_time:0,done:!0,total_time:0,timingFunction:fn.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=V(this.runtime.target),this.pendingTransition.to=V(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:fn.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:fn.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:fn.easeOutQuart,constrain:!1,callback:()=>{this.isConstraining=!1}}),this.runtime.updateNextFrame())}applyTransition(e,i,n,{stream:u}={}){this.pendingTransition.from=V(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||fn.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:fn.easeOutExpo,constrain:!0,callback:()=>{this.lastGoToRegion=null}}),this.runtime.updateNextFrame()}};var zR=Number.MIN_VALUE+1,zn=class{constructor(e,i,n,u=[],s){b(this,"id",xn());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",V(500));b(this,"lastTarget",V(5));b(this,"zoomBuffer",V(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?Ti(p,x,this.transformBuffer):p;this.renderer.prepareLayer(S,S.__parent&&x?Ti(S.__parent.crop||S.__parent.points,x):A);let R=A.length/5;for(let j=0;j<R;j++){let T=j*5;A[T]!==0&&(this.renderer.paint(S,j,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),v=m.length;if(v>0)for(let g=0;g<v;g++){let S=m[v-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 nf(this),this.aggregate=xi(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 v=m*n.height,g=(v-n.width)/2;this.target[1]=Math.round(-g+n.x),this.target[2]=Math.round(n.y),this.target[3]=Math.round(v-g+n.x),this.target[4]=Math.round(n.height+n.y)}else{let v=n.width/m,g=(v-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+v-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,v=this.y+f;if(n<u){let g=this.height-this.width;this.focalPosition=et.projection({x:m,y:v+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:v,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,v=n?e:V(e),g=Math.round(e[3]-e[1]),S=Math.round(e[4]-e[2]);return u>e[1]&&(m=!0,v[1]=u,v[3]=u+g),r>e[2]&&(m=!0,v[2]=r,v[4]=r+S),s<e[1]&&(m=!0,v[1]=s,v[3]=s+g),f<e[2]&&(m=!0,v[2]=f,v[4]=f+S),[m,v]}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 _=i[3]-i[1]<E.points[3]-E.points[1],O=i[4]-i[2]<E.points[4]-E.points[2];return{minX:_?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:_?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,v=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,v)),R=Math.round(Math.min(m,v)),j=Math.round(Math.max(p,x)),T=Math.round(Math.min(p,x));return{minX:R,maxX:A,minY:T,maxY:j}}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,v=this.world.width,g=m?m/v: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,_=this.world.width/T,O=this.world.height/E;if(_>O){let H=this.world.width*A,q=~~(r*s)*S;H<q&&(e=this.world.width*s/(r*s*S))}else{let H=this.world.height*A,q=~~(f*s)*S;H<q&&(e=this.world.height*s/(f*s*S))}}else A>p&&(e=s/p);let j=Ti(this.target,tl(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(j,{ref:!0,panPadding:100}),j}clampRegion({x:e,y:i,width:n,height:u,padding:s=0}){let r=this.width,f=this.height,m=n/r<u/f,v=e-s,g=i-s,S=n+s*2,p=u+s*2;if(m){let A=p/f*r;return{x:v-(A-S)/2,y:g,width:A,height:p}}let x=S/r*f;return{x:v,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 Fe(s,li(xi(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){Fe(this.target,tl(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 lf=/([0-9]+(px|em)\s+)+(solid)\s+(.*)/g,af={},NA=["backgroundColor","opacity","boxShadow","borderColor","borderWidth","borderStyle","outlineColor","outlineWidth","outlineOffset","outlineStyle"],Ga=class extends kt{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:V(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=xn(12),this.points=V(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,v=s.length-1;m<s.length;v=m++)s[m][1]>u!=s[v][1]>u&&n<(s[v][0]-s[m][0])*(u-s[m][1])/(s[v][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=af[u]||lf.exec(u)||lf.exec(u);s&&(this._parsed.border.id=u,this._parsed.border.match=af[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=af[i.style.outline]||lf.exec(i.style.outline)||lf.exec(i.style.outline);s&&(this._parsed.outline.id=i.style.outline,this._parsed.outline.match=af[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 NA)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 No=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,DA=typeof AbortController=="function",uf=DA?AbortController:class{constructor(){this.signal=new ES}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})}},HA=typeof AbortSignal=="function",UA=typeof uf.AbortSignal=="function",ES=HA?AbortSignal:UA?uf.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))}},Pm=new Set,Fm=(t,e)=>{let i=`LRU_CACHE_OPTION_${t}`;sf(i)&&km(i,`${t} option`,`options.${e}`,Ju)},Wm=(t,e)=>{let i=`LRU_CACHE_METHOD_${t}`;if(sf(i)){let{prototype:n}=Ju,{get:u}=Object.getOwnPropertyDescriptor(n,t);km(i,`${t} method`,`cache.${e}()`,u)}},BA=(t,e)=>{let i=`LRU_CACHE_PROPERTY_${t}`;if(sf(i)){let{prototype:n}=Ju,{get:u}=Object.getOwnPropertyDescriptor(n,t);km(i,`${t} property`,`cache.${e}`,u)}},xS=(...t)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...t):console.error(...t)},sf=t=>!Pm.has(t),km=(t,e,i,n)=>{Pm.add(t);let u=`The ${e} is deprecated. Please use ${i} instead.`;xS(u,"DeprecationWarning",t,n)},Xl=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),TS=t=>Xl(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Ku:null:null,Ku=class extends Array{constructor(e){super(e),this.fill(0)}},Im=class{constructor(e){if(e===0)return[];let i=TS(e);this.heap=new i(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Ju=class t{constructor(e={}){let{max:i=0,ttl:n,ttlResolution:u=1,ttlAutopurge:s,updateAgeOnGet:r,updateAgeOnHas:f,allowStale:m,dispose:v,disposeAfter:g,noDisposeOnSet:S,noUpdateTTL:p,maxSize:x=0,maxEntrySize:A=0,sizeCalculation:R,fetchMethod:j,fetchContext:T,noDeleteOnFetchRejection:E,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:O,allowStaleOnFetchAbort:H,ignoreFetchAbort:U}=e,{length:q,maxAge:Z,stale:J}=e instanceof t?{}:e;if(i!==0&&!Xl(i))throw new TypeError("max option must be a nonnegative integer");let w=i?TS(i):Array;if(!w)throw new Error("invalid max value: "+i);if(this.max=i,this.maxSize=x,this.maxEntrySize=A||this.maxSize,this.sizeCalculation=R||q,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=j||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 w(i),this.prev=new w(i),this.head=0,this.tail=0,this.free=new Im(i),this.initialFill=1,this.size=0,typeof v=="function"&&(this.dispose=v),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=!!U,this.maxEntrySize!==0){if(this.maxSize!==0&&!Xl(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!Xl(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!J,this.noDeleteOnStaleGet=!!_,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!f,this.ttlResolution=Xl(u)||u===0?u:1,this.ttlAutopurge=!!s,this.ttl=n||Z||0,this.ttl){if(!Xl(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 P="LRU_CACHE_UNBOUNDED";sf(P)&&(Pm.add(P),xS("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,t))}J&&Fm("stale","allowStale"),Z&&Fm("maxAge","ttl"),q&&Fm("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Ku(this.max),this.starts=new Ku(this.max),this.setItemTTL=(n,u,s=No.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?No.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=No.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 Ku(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(!Xl(n))if(u){if(typeof u!="function")throw new TypeError("sizeCalculation must be a function");if(n=u(i,e),!Xl(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 Wm("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=No.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=No.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:v}={}){if(r=this.requireSize(e,i,r,f),this.maxEntrySize&&r>this.maxEntrySize)return v&&(v.set="miss",v.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,v),v&&(v.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,v),v){v.set="replace";let p=S&&this.isBackgroundFetch(S)?S.__staleWhileFetching:S;p!==void 0&&(v.oldValue=p)}}else v&&(v.set="update")}if(n!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),m||this.setItemTTL(g,n,u),this.statusTTL(v,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 uf;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,j=n.ignoreFetchAbort&&x!==void 0;return n.status&&(R&&!A?(n.status.fetchAborted=!0,n.status.fetchError=r.signal.reason,j&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),R&&!j&&!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)},v=x=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=x),g(x)),g=x=>{let{aborted:A}=r.signal,R=A&&n.allowStaleOnFetchAbort,j=R||n.allowStaleOnFetchRejection,T=j||n.noDeleteOnFetchRejection;if(this.valList[i]===p&&(!T||p.__staleWhileFetching===void 0?this.delete(e):R||(this.valList[i]=p.__staleWhileFetching)),j)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,v);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:v=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:j,signal:T}={}){if(!this.fetchMethod)return j&&(j.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:u,status:j});let E={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:u,ttl:s,noDisposeOnSet:r,size:f,sizeCalculation:m,noUpdateTTL:v,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:x,ignoreFetchAbort:p,status:j,signal:T},_=this.keyMap.get(e);if(_===void 0){j&&(j.fetch="miss");let O=this.backgroundFetch(e,_,E,A);return O.__returned=O}else{let O=this.valList[_];if(this.isBackgroundFetch(O)){let J=i&&O.__staleWhileFetching!==void 0;return j&&(j.fetch="inflight",J&&(j.returnedStale=!0)),J?O.__staleWhileFetching:O.__returned=O}let H=this.isStale(_);if(!R&&!H)return j&&(j.fetch="hit"),this.moveToTail(_),n&&this.updateItemAge(_),this.statusTTL(j,_),O;let U=this.backgroundFetch(e,_,E,A),q=U.__staleWhileFetching!==void 0,Z=q&&i;return j&&(j.fetch=q&&H?"stale":"refresh",Z&&H&&(j.returnedStale=!0)),Z?U.__staleWhileFetching:U.__returned=U}}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 Wm("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 Wm("reset","clear"),this.clear}get length(){return BA("length","size"),this.size}static get AbortController(){return uf}static get AbortSignal(){return ES}},zS=Ju;var _S=/(-?[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,AS={},wA=typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox"),of={};var Do=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 zS({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 Se||e instanceof Qi){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,qa({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,j=[n+A,u+R,s,r];j[0]+=A,j[1]+=R,this.ctx.drawImage(p,x[0],x[1],x[2],x[3],j[0],j[1],j[2]+1,j[3]+1)}}else wA?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 rn&&this.options.box,v=e instanceof Ga&&this.options.polygon;if((m||v)&&!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 j of R){let T=AS[j]||_S.exec(j)||_S.exec(j);AS[j]=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,v){let R=e.shape,j=R.points||[],T=j.length;this.ctx.beginPath();for(let E=0;E<T;E++)this.ctx.lineTo(n+j[E][0]*this.lastKnownScale,u+j[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(of[e]&&of[e].naturalWidth>0){i(of[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),of[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,v=>{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(v,0,0,S[3]-S[1],S[4]-S[2]),g()})})}),f()},v=>{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 Se||e instanceof Qi)&&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 Ya=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 Ho=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=xi(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,v]of f)if(m instanceof Se&&m.__host.canvas){let g=v.length/5;for(let S=0;S<g;S++)if(m.__host.canvas.canvases[S]){let x={x1:v[S+1]*r,y1:v[S+2]*r,width:(v[S+3]-v[S+1])*r,height:(v[S+4]-v[S+2])*r}}}}e.getPoints().forEach((f,m,v)=>{if(m%5===0&&f){let g={x1:v[m+1]*r,y1:v[m+2]*r,x2:v[m+3]*r,y2:v[m+4]*r,width:(v[m+3]-v[m+1])*r,height:(v[m+4]-v[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 $m=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=Xi.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 v=0;v<u&&f!==e;v++){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,j=A.width/A.height,T=r/j;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],j=S[p][2],T=S[p][3],E=this.padding+p*(this.spacing+R),_=m+(g-j)/2,O=this.reversed?e-A:A,H=x[O*5+1],U=x[O*5+2];this.world.scaleWorldObject(A,T),(H!==E||U!==_)&&this.world.translateWorldObject(O,E-H,_-U)}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 PS=F(JS(),1);function FS(t){return{x:t[1],y:t[2],width:t[3]-t[1],height:t[4]-t[2]}}var WS="pan",IS="scroll",YA="gesture",kS={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},Uo=(t={})=>({start:function(e){let{zoomWheelConstant:i,enableWheel:n,enableClickToZoom:u,ignoreSingleFingerTouch:s,enablePanOnWait:r,panOnWaitDelay:f,parentElement:m,requireMetaKeyForWheelZoom:v}={...kS,...t},g={pointerStart:{x:0,y:0},isPressing:!1,mousemoveBuffer:V(5),multiTouch:{distance:0}};e.world.activatedEvents.push("onMouseUp","onMouseDown","onMouseMove","onTouchStart","onTouchEnd","onTouchMove","onContextMenu");function S(){R=0,T="",_(),_(void 0,"notice"),j=0}function p(){e.world.constraintBounds(),S()}function x(w){if(w.which>1){g.isPressing=!1;return}e.mode==="explore"&&(w.preventDefault(),g.pointerStart.x=w.atlas.x,g.pointerStart.y=w.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,j=0,T="";function E(w){if(e.mode==="explore"){if(w.atlasTouches.length===1&&(j=performance.now(),s==!1&&w.preventDefault(),g.pointerStart.x=w.atlasTouches[0].x,g.pointerStart.y=w.atlasTouches[0].y),w.atlasTouches.length===2){T=YA,w.preventDefault();let P=w.atlasTouches[0].x,ut=w.atlasTouches[1].x;g.pointerStart.x=(P+ut)/2;let Ln=w.atlasTouches[0].y,pt=w.atlasTouches[1].y;g.pointerStart.y=(Ln+pt)/2,R=qa({x:w.touches[0].clientX,y:w.touches[0].clientY},{x:w.touches[1].clientX,y:w.touches[1].clientY})}e.transitionManager.stopTransition(),g.isPressing=!0}}function _(w,P="intent"){m&&(m.dataset[P]=w)}function O(w){let P=null,ut=null,Ln=!1,pt=0;if(g.isPressing&&w.touches.length===2){let $e=w.touches[0].clientX,gn=w.touches[1].clientX;P=($e+gn)/2;let qn=w.touches[0].clientY,ge=w.touches[1].clientY;ut=(qn+ge)/2,pt=qa({x:w.touches[0].clientX,y:w.touches[0].clientY},{x:w.touches[1].clientX,y:w.touches[1].clientY}),Ln=!0}if(_(T),g.isPressing&&w.touches.length===1){if(r&&(performance.now()-j<f&&T==""&&(T=IS),T==""&&(T=WS)),_(T),T==""&&s==!0||T==IS){_("require-two-finger","notice");return}let $e=w.touches[0];P=$e.clientX,ut=$e.clientY}if(P!==null&&ut!==null){let $e=e.getRendererScreenPosition();if($e){let{x:gn,y:qn}=e.viewerToWorld(P-$e.x,ut-$e.y),ge=pt&&R?pt/R:1;e.transitionManager.customTransition(G=>{G.from=V(e.target),G.to=Ti(G.from,li(Kt(g.pointerStart.x-gn,g.pointerStart.y-qn),tl(1/ge,gn,qn)),g.mousemoveBuffer),G.elapsed_time=0,G.total_time=0,G.timingFunction=fn.easeInOutExpo,G.done=!1})}R=pt}T==WS&&w.preventDefault()}function H(w){if(g.isPressing){let P=e.getRendererScreenPosition();if(P){let{x:ut,y:Ln}=e.viewerToWorld(w.clientX-P.x,w.clientY-P.y);e.transitionManager.customTransition(pt=>{pt.from=V(e.target),pt.to=Ti(pt.from,Kt(g.pointerStart.x-ut,g.pointerStart.y-Ln),g.mousemoveBuffer),pt.elapsed_time=0,pt.total_time=0,pt.timingFunction=fn.easeInOutExpo,pt.done=!1})}}}function U(w){e.mode==="explore"&&e.world.zoomIn(w.atlas)}function q(w){let ut=1+(0,PS.default)(w).spinY/i;e.world.zoomTo(ut,w.atlas,!0)}function Z(w){return v&&w.metaKey==!1?(_("meta-required","notice"),w.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",U)),n&&(e.world.activatedEvents.push("onWheel"),v&&m?.addEventListener("wheel",Z,{passive:!0,capture:!0}),e.world.addEventListener("wheel",q));let J=e.world.addLayoutSubscriber((w,P)=>{if(w==="zone-changed"&&e.transitionManager.constrainBounds({transition:{duration:0}}),w==="zoom-to"&&P&&e.transitionManager.zoomTo(P.factor,{origin:P.point,stream:P.stream}),w==="go-home"){let ut=P.immediate?{duration:0}:void 0;e.transitionManager.goToRegion(FS(e.homePosition),{transition:ut})}if(w==="goto-region"&&P){let ut=P.immediate?{duration:0}:{};e.transitionManager.goToRegion(P,{transition:ut})}w==="constrain-bounds"&&e.transitionManager.constrainBounds({transition:P?.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",Z,{passive:!0,capture:!0})),u&&e.world.removeEventListener("click",U),n&&e.world.removeEventListener("wheel",q),J()}},updatePosition(){}});var Wt=F(yt(),1);var gf=F(yt(),1),mb=F(Ft(),1),_n=gf.default.createContext("explore");_n.displayName="Mode";var Bo=()=>(0,gf.useContext)(_n);function u4(t){return(0,mb.jsx)(_n.Provider,{value:t.mode,children:t.children})}var zi=F(yt(),1);function gb(t,e){let i;return(...n)=>{window.clearTimeout(i),i=window.setTimeout(()=>t(...n),e)}}function vf({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,zi.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=(0,zi.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s,orientationHandler:null}),m=t?typeof t=="number"?t:t.scroll:null,v=t?typeof t=="number"?t:t.resize:null,g=(0,zi.useRef)(!1);(0,zi.useEffect)(()=>(g.current=!0,()=>void(g.current=!1)));let[S,p,x]=(0,zi.useMemo)(()=>{let T=()=>{if(!f.current.element)return;let{left:E,top:_,width:O,height:H,bottom:U,right:q,x:Z,y:J}=f.current.element.getBoundingClientRect(),w={left:E,top:_,width:O,height:H,bottom:U,right:q,x:Z,y:J};f.current.element instanceof HTMLElement&&n&&(w.height=f.current.element.offsetHeight,w.width=f.current.element.offsetWidth),Object.freeze(w),g.current&&!r4(f.current.lastBounds,w)&&r(f.current.lastBounds=w)};return[T,v?gb(T,v):T,m?gb(T,m):T]},[r,n,m,v]);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 j=T=>{!T||T===f.current.element||(A(),f.current.element=T,f.current.scrollContainers=vb(T),R())};return o4(x,!!e),s4(p),(0,zi.useEffect)(()=>{A(),R()},[e,x,p]),(0,zi.useEffect)(()=>A,[]),[j,s,S]}function s4(t){(0,zi.useEffect)(()=>{let e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function o4(t,e){(0,zi.useEffect)(()=>{if(e){let i=t;return window.addEventListener("scroll",i,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",i,!0)}},[t,e])}function vb(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,...vb(t.parentElement)]}var c4=["x","y","top","bottom","left","right","width","height"],r4=(t,e)=>c4.every(i=>t[i]===e[i]);var gg=F(yt(),1),An=gg.default.createContext(null);An.displayName="Atlas";var Vl=gg.default.createContext(null);Vl.displayName="Bounds";var Mn=F(yt(),1);var wb=F(Rb(),1),Xa=F(Hb(),1);var Go,h4=typeof performance=="object"&&typeof performance.now=="function";if(h4){let t=performance;Go=()=>t.now()}else{let t=Date,e=t.now();Go=()=>t.now()-e}var jb=F(yt(),1);function Ub(t,e){t&&t.appendChild&&e&&t.appendChild(e)}function Lb(t,e){t&&t.removeChild&&e&&t.removeChild(e)}function d4(t,e){return Lb(t.world,e)}function m4(t,e,i){return qb(t.world,e,i)}function qb(t,e,i){t&&t instanceof zn&&(t=t.world),t&&t.insertBefore&&t.insertBefore(e,i)}function _g(t,e,i){if(i&&(t.applyProps&&t.applyProps(i),t instanceof kt))for(let n of Zu){let u=n.slice(2).toLowerCase();i[n]!==e[n]&&(e[n]&&t.removeEventListener(u,e[n]),t.addEventListener(u,i[n]))}}function Ag(t,e){let i=Object.keys(e),n=!1;for(let u of i)if(Zu.indexOf(u)!==-1){let s=cn[u];if(s){if(t.activatedEvents.indexOf(s)!==-1)continue;n=!0,t.activatedEvents.push(s)}}n&&t.triggerEventActivation()}var Ef=new Map,Bb={};function g4(t,{args:e=[],...i},n,u,s){if(!(n instanceof zn)&&s){let m=v=>v.return?m(v.return):v.stateNode&&v.stateNode.containerInfo;n=m(s)}let r,f=n.world;switch(t){case"world":r=Xi.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 rn;break;case"shape":r=new Ga;break;case"worldObject":case"world-object":r=new Tn;break;case"worldImage":case"world-image":r=new Se;break;case"texture":r=new Ql;break;case"compositeImage":case"composite-image":r=new Oo({id:i.id,width:i.width,height:i.height,images:[],renderOptions:i.renderOptions});break;case"tiledImage":case"tiled-image":r=Qi.fromTile(i.uri,i.display,i.tile,i.scaleFactor,void 0,i.format,i.useFloorCalc,i.version3);break;case"paragraph":r=new el,r.text=i.children;break;default:return}return Ag(f,i),_g(r,{},i),r}function v4(t,e){if(e instanceof Xi)t.world=e;else if(e instanceof Tn)t.world.appendChild(e);else if(e)throw new Error("Invalid root")}var Gb=0,bf=Gb,Yo=(0,wb.default)({unstable_now:Go,now:Go,createInstance:g4,removeChild:Lb,appendChild:Ub,appendInitialChild:Ub,insertBefore:qb,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:v4,removeChildFromContainer:d4,createTextInstance(){},insertInContainerBefore:m4,prepareUpdate(t,e,i,n,u){return Ag(u.world,n),n},commitUpdate(t,e,i,n,u,s){t.applyProps&&i&&_g(t,n,i)},finalizeInitialChildren(t){return t?.__handlers},getChildHostContext(){return Bb},getRootHostContext(){return Bb},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 Xa.DefaultEventPriority},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:jb.version,shouldAttemptEagerTransition:()=>!1,trackSchedulerEvent:()=>{},resolveEventType:()=>null,resolveEventTimeStamp:()=>-1.1,maySuspendCommit:()=>!1,preloadInstance:()=>!0,startSuspendingCommit(){},suspendInstance(){},waitForCommitToBeReady:()=>null,NotPendingTransition:null,setCurrentUpdatePriority(t){bf=t},getCurrentUpdatePriority(){return bf},resolveUpdatePriority(){if(bf!==Gb)return bf;switch(typeof window<"u"&&window.event?.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return Xa.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return Xa.ContinuousEventPriority;default:return Xa.DefaultEventPriority}},resetFormInstance(){}});Yo.injectIntoDevTools();function ku(t,e){let i=Ef.get(t);i&&Yo.updateContainer(null,i,null,()=>{Ef.delete(t),e&&e(t)})}var $u={render(t,e){let i=Ef.get(e);if(i)Yo.updateContainer(t,i,null);else{let n=Yo.createContainer(e,0,null,!1,null,"",()=>{},null);Yo.updateContainer(t,n,null),Ef.set(e,n)}},unmountComponentAtNode(t,e){ku(t,e)}};var xf=F(yt(),1),_i=typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")?xf.useLayoutEffect:xf.useEffect;var ts=F(Ft(),1),Yb=Mn.default.memo(({children:t,setIsReady:e,onCreated:i,bounds:n,preset:u,mode:s="explore"})=>{let r=(0,Mn.useCallback)(function(m){let v=(0,Mn.useRef)(!1),g=()=>{e(!0)};return(0,Mn.useEffect)(()=>{if(u&&!v.current){u.runtime.goHome();let S=i&&i(u);return void(S&&S.then?S.then(g):g())}return()=>{}},[]),(0,Mn.useEffect)(()=>{v.current=!0},[]),m.children},[u]);return _i(()=>{if(u){let f=u.runtime;s!==f.mode&&(f.mode=s),$u.render((0,ts.jsx)(Mn.default.StrictMode,{children:(0,ts.jsx)(r,{children:(0,ts.jsx)(Vl.Provider,{value:n,children:(0,ts.jsx)(_n.Provider,{value:s,children:(0,ts.jsx)(An.Provider,{value:u,children:t})})})})}),f)}},[u,s,t]),_i(()=>{if(u){let f=u.runtime;return()=>{$u.unmountComponentAtNode(f)}}return()=>{}},[u]),null});var Qo=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",`
|
|
19
21
|
precision mediump float;
|
|
20
22
|
|
|
21
23
|
uniform sampler2D u_image;
|
|
@@ -24,7 +26,7 @@ Error generating stack: `+l.message+`
|
|
|
24
26
|
void main() {
|
|
25
27
|
gl_FragColor = texture2D(u_image, v_texCoord);
|
|
26
28
|
}
|
|
27
|
-
`);
|
|
29
|
+
`);b(this,"vertexShaderSource",`
|
|
28
30
|
attribute vec2 a_position;
|
|
29
31
|
uniform vec2 u_resolution;
|
|
30
32
|
varying vec4 v_color;
|
|
@@ -48,16 +50,16 @@ Error generating stack: `+l.message+`
|
|
|
48
50
|
|
|
49
51
|
v_texCoord = a_texCoord;
|
|
50
52
|
}
|
|
51
|
-
`);
|
|
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 Se||e instanceof Qi)&&this.createImageHost(e),e instanceof Ql&&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 Ql){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(v){e.__host.webgl.error=v}}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 Xo(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 es=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+Xo(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+Xo(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 Va=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 es({sheetPrefix:this.options.sheetPrefix}),this.options.inlineStyles||this.htmlContainer.appendChild(this.stylesheet.getElement()),this.options.background&&this.htmlContainer.classList.add(this.stylesheet.addStylesheet(`
|
|
52
54
|
background: ${this.options.background};
|
|
53
55
|
`)),this.classes={hostClassName:this.stylesheet.addStylesheet(`
|
|
54
56
|
position: absolute;
|
|
55
57
|
transform-origin: 0px 0px;
|
|
56
|
-
`),interactive:this.stylesheet.addStylesheet("pointer-events: all"),nonInteractive:this.stylesheet.addStylesheet("pointer-events: none")},this.stylesheet.updateSheet()}createHtmlHost(t){if(this.htmlContainer&&(this.options.box||t.props.className||t.props.html||t.props.href)){let n=document.createElement(t.props.href?"a":"div");if(t.props.href){n.style.display="block",n.href=t.props.href;let r=t.props.hrefTarget||"_blank";n.target=r,r!=="_self"&&(n.rel="noopener noreferrer")}n.title=t.props.title||"",this.options.inlineStyles?(n.style.display="block",n.style.position="absolute",n.style.overflow="hidden",n.style.transformOrigin="0px 0px"):n.classList.add(this.classes.hostClassName),t.__host={element:n,revision:null,relative:!1},this.updateHtmlHost(t,t.width,t.height),t.__onCreate&&t.__onCreate()}}triggerResize(){this.options.triggerResize()}updateHtmlHost(t,n,r){if(t.__revision!==t.__host.revision){let s=t.__host.element,l=[this.classes.hostClassName];if(t.props.interactive?this.options.inlineStyles?s.style.pointerEvents="all":l.push(this.classes.interactive):this.options.inlineStyles?s.style.pointerEvents="none":l.push(this.classes.nonInteractive),t.props.href){s.style.display="block",s.href=t.props.href;let f=t.props.hrefTarget||"_blank";s.target=f,f!=="_self"?s.rel="noopener noreferrer":s.rel=""}else s.href&&s.removeAttribute("href");if(t.props.title&&(s.title=t.props.title||""),t.props.className&&(l.push(t.props.className),t.hovering&&l.push(`${t.props.className}--hover`),t.pressing&&l.push(`${t.props.className}--active`)),t.props.relativeStyle?(s.style.width=`${n||t.width}px`,s.style.height=`${r||t.height}px`):(s.style.width=`${t.width}px`,s.style.height=`${t.height}px`),t.props.style){Object.assign(s.style,t.props.style||{},t.hovering?t.props.hoverStyles||{}:{},t.pressing?t.props.pressStyles||{}:{});return}if(this.options.text&&t instanceof yr){t.text&&(s.innerText=t.text),t.backgroundColor&&(s.style.backgroundColor=t.backgroundColor),t.color&&(s.style.color=t.color),t.props.font&&(s.style.font=t.props.font),t.props.textAlign&&(s.style.textAlign=t.props.textAlign),t.__host.revision=t.__revision;let f=l.join(" ");s.className=f,s.part=f}t instanceof Rn&&(this.options.box||t.props.className||t.props.html)&&(t.props.backgroundColor&&(s.style.backgroundColor=t.props.backgroundColor),t.props.border!==s.style.border&&(s.style.border=t.props.border));let h=l.join(" ");s.className=h,s.part=h}}afterFrame(t,n,r){this.stylesheet.updateSheet();for(let s of this.previousVisible)this.visible.indexOf(s)===-1&&this.htmlContainer&&s.__id&&this.htmlIds.indexOf(s.__id)!==-1&&this.htmlContainer.removeChild(s.__host.element);this.previousVisible=this.visible}afterPaintLayer(t,n){}beforeFrame(t,n,r){this.stylesheet.clearClasses(),this.paintTx++,this.zIndex=0,this.visible=[]}getPointsAt(t,n,r,s){return t.getPointsAt(n,r,s)}getScale(t,n){let r=this.rendererPosition.width/t,s=this.rendererPosition.height/n;return r<s?s:r}getViewportBounds(t,n,r){return null}isReady(){return!1}paint(t,n,r,s,l,u){if(this.zIndex++,(this.options.text&&t instanceof yr||t instanceof Rn&&(this.options.box||t.props.className||t.props.html))&&t.__host.tx!==this.paintTx&&(this.visible.push(t),t.__host.tx=this.paintTx,this.htmlContainer)){this.updateHtmlHost(t,l,u);let h=l/t.width,f=t.__host.element;f.style.zIndex=`${this.zIndex}`,t.props.relativeStyle?f.style.transform=`translate(${Math.round(r)}px, ${Math.round(s)}px)`:f.style.transform=`translate(${Math.round(r)}px, ${Math.round(s)}px) scale(${h})`,this.previousVisible.indexOf(t)===-1&&this.htmlContainer.appendChild(f),this.htmlIds.indexOf(t.__id)===-1&&this.htmlIds.push(t.__id)}}pendingUpdate(){return!1}prepareLayer(t){t.__host||(t instanceof yr||t instanceof Rn)&&this.createHtmlHost(t)}resize(t,n){typeof t<"u"&&typeof n<"u"&&(this.htmlContainer.style.width=`${t}px`,this.htmlContainer.style.height=`${n}px`),this.rendererPosition=this.htmlContainer.getBoundingClientRect()}getRendererScreenPosition(){return this.rendererPosition}finishLayer(){}reset(){}};var _o=class _o{constructor(t,n,r){v(this,"element");v(this,"runtime");v(this,"unsubscribe");v(this,"activatedEvents",[]);v(this,"eventHandlers",[]);v(this,"bounds");v(this,"listening");v(this,"pointerMoveEvent");v(this,"pointerEventState",{isClicking:!1,isDragging:!1,isPressed:!1,mousedOver:[],itemsBeingDragged:[],mouseDownStart:{x:0,y:0},lastTouches:[]});v(this,"options");v(this,"_realPointerMove",t=>{this.pointerMoveEvent=t});v(this,"onWheelEvent",t=>{t.preventDefault(),this.onPointerEvent(t)});v(this,"onTouchEvent",t=>{let n=Tn[t.type],r=[],s=t.touches.length;for(let l=0;l<s;l++){let u=t.touches.item(l);if(!u)continue;let{x:h,y:f}=this.runtime.viewerToWorld(u.clientX-this.bounds.left,u.clientY-this.bounds.top),g={id:u.identifier,x:h,y:f};r.push(g)}r.length&&this.assignToEvent(t,r[0].x,r[0].y),n!=="onTouchEnd"?(this.pointerEventState.lastTouches=r,t.atlasTouches=r,this.runtime.world.propagateTouchEvent(n,t,r)):(t.atlasTouches=[],this.runtime.world.propagateTouchEvent(n,t,this.pointerEventState.lastTouches),this.pointerEventState.lastTouches=[])});v(this,"onPointerEvent",t=>{let n=Tn[t.type];if(n&&this.runtime.world.activatedEvents.indexOf(n)!==-1){let{x:r,y:s}=this.runtime.viewerToWorld(t.clientX-this.bounds.left,t.clientY-this.bounds.top);this.assignToEvent(t,r,s),this.runtime.world.propagatePointerEvent(n,t,r,s)}});v(this,"onPointerDown",t=>{this.pointerEventState.isPressed=!0,this.pointerEventState.isClicking=!0,this.pointerEventState.mouseDownStart.x=t.clientX,this.pointerEventState.mouseDownStart.y=t.clientY,setTimeout(()=>{this.runtime&&(this.pointerEventState.isClicking=!1)},250),setTimeout(()=>{if(this.runtime&&this.pointerEventState.isPressed&&!this.pointerEventState.isDragging){let n=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",t,n.x,n.y)}},800),this.onPointerEvent(t)});v(this,"onPointerUp",t=>{if(this.pointerEventState.isClicking){let{x:n,y:r}=this.runtime.viewerToWorld(t.clientX-this.bounds.left,t.clientY-this.bounds.top);this.assignToEvent(t,n,r),this.runtime.world.propagatePointerEvent("onClick",t,n,r)}if(this.pointerEventState.isDragging){for(let n of this.pointerEventState.itemsBeingDragged)n.dispatchEvent("onDragEnd",t);this.pointerEventState.isDragging=!1}this.pointerEventState.isClicking=!1,this.pointerEventState.isPressed=!1,this.pointerEventState.itemsBeingDragged=[],this.onPointerEvent(t)});v(this,"onPointerMove",t=>{this.pointerMoveEvent=void 0;let{x:n,y:r}=this.runtime.viewerToWorld(t.clientX-this.bounds.left,t.clientY-this.bounds.top);if(Number.isNaN(n)||Number.isNaN(r))return;this.assignToEvent(t,n,r),this.runtime.world.propagatePointerEvent("onPointerMove",t,n,r);let s=this.runtime.world.propagatePointerEvent("onMouseMove",t,n,r),l=[],u=[];for(let h of s)l.push(h.id),u.push(h),this.pointerEventState.mousedOver.indexOf(h)===-1&&(h.dispatchEvent("onMouseEnter",t),h.dispatchEvent("onPointerEnter",t),h.dispatchEvent("onMouseOver",t),h.dispatchEvent("onPointerOver",t));for(let h of this.pointerEventState.mousedOver)l.indexOf(h.id)===-1&&(h.dispatchEvent("onMouseLeave",t),h.dispatchEvent("onPointerLeave",t),h.dispatchEvent("onMouseOut",t),h.dispatchEvent("onPointerOut",t));if(this.pointerEventState.isDragging)for(let h of this.pointerEventState.itemsBeingDragged)h.dispatchEvent("onDrag",t);if(this.pointerEventState.isPressed&&!this.pointerEventState.isDragging&&Ci(this.pointerEventState.mouseDownStart,{x:t.clientX,y:t.clientY})>50){let h=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",{...t,atlas:{x:h.x,y:h.y}},h.x,h.y)}this.pointerEventState.mousedOver=u});this.element=t,this.runtime=n,this.unsubscribe=n.world.addLayoutSubscriber(this.layoutSubscriber.bind(this)),this.bounds=t.getBoundingClientRect(),this.listening=!1,this.options={simulationRate:0,...r||{}};let s=0;n.registerHook("useFrame",l=>{s+=l,s>this.options.simulationRate&&this.pointerMoveEvent&&(s=0,n.updateNextFrame())}),n.registerHook("useBeforeFrame",()=>{this.pointerMoveEvent&&this.onPointerMove(this.pointerMoveEvent)}),this.activateEvents()}updateBounds(){this.bounds=this.element.getBoundingClientRect(),this.runtime.updateRendererScreenPosition()}layoutSubscriber(t){t==="event-activation"&&this.listening==!1&&this.activateEvents()}assignToEvent(t,n,r){_o.eventPool.atlas.x=n,_o.eventPool.atlas.y=r,t.atlas=_o.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("touchstart",this.onTouchEvent),this.element.addEventListener("touchcancel",this.onTouchEvent),this.element.addEventListener("touchend",this.onTouchEvent),this.element.addEventListener("touchmove",this.onTouchEvent)}normalizeEventName(t){return t.startsWith("on")?t.slice(2).toLowerCase():t.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[t,n]of this.eventHandlers)this.element.removeEventListener(this.normalizeEventName(t),n)}};v(_o,"eventPool",{atlas:{x:0,y:0}});var Ni=_o;function Us({interactive:e=!0,viewport:t,forceRefresh:n,canvasElement:r,overlayElement:s,controllerConfig:l,unstable_webglRenderer:u,dpi:h,debug:f,canvasBox:g=!0,polygon:m=!0,navigatorElement:S,runtimeOptions:E}){if(!r)throw new Error("Invalid container");r.style.userSelect="none";let P=e?Os({minZoomFactor:.5,maxZoomFactor:3,enableClickToZoom:!1,parentElement:r,...l||{}}):void 0,k=new Ri([u?new bs(r,{dpi:h}):new Ls(r,{dpi:h,debug:f,box:g,polygon:m}),s?new Li(s,{box:u||!g,text:!0,triggerResize:n}):void 0,S?new Ns(S):void 0]),R=new Kn(k,new hn(1024,1024),t,P?[P]:[],E),A=new Ni(r,R);return{name:"default-preset",em:A,runtime:R,renderer:k,controller:P,canvas:r,navigator:S,unmount(){wo(R),R.stopControllers(),R.stop(),R.reset(),A&&A.stop()}}}var Yr=1+Number.MIN_VALUE,Vs=class{constructor(t,n){v(this,"container");v(this,"width");v(this,"height");v(this,"pending",!0);v(this,"options");v(this,"stylesheet");v(this,"zIndex",0);v(this,"lastKnownScale",1);v(this,"rendererPosition");v(this,"currentlyVisible",[]);v(this,"previouslyVisible",[]);this.container=t,this.rendererPosition=t.getBoundingClientRect();let{width:r,height:s}=this.rendererPosition;this.width=r,this.height=s,this.options={addPart:!1,setDraggableFalse:!1,imageClass:"",widthStylesheet:!1,sheetPrefix:"position-",background:"#000",...n||{}},this.stylesheet=new Eo({sheetPrefix:this.options.sheetPrefix}),this.container.classList.add(this.stylesheet.addStylesheet(`
|
|
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 el){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 rn&&(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 el||e instanceof rn&&(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 el||e instanceof rn)&&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 is=class is{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=cn[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),v={id:r.identifier,x:f,y:m};n.push(v)}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=cn[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&&qa(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){is.eventPool.atlas.x=i,is.eventPool.atlas.y=n,e.atlas=is.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(is,"eventPool",{atlas:{x:0,y:0}});var Za=is;function Vo({interactive:t=!0,viewport:e,forceRefresh:i,canvasElement:n,overlayElement:u,controllerConfig:s,unstable_webglRenderer:r,dpi:f,debug:m,canvasBox:v=!0,polygon:g=!0,navigatorElement:S,runtimeOptions:p}){if(!n)throw new Error("Invalid container");n.style.userSelect="none";let x=t?Uo({minZoomFactor:.5,maxZoomFactor:3,enableClickToZoom:!1,parentElement:n,...s||{}}):void 0,A=new Ya([r?new Qo(n,{dpi:f}):new Do(n,{dpi:f,debug:m,box:v,polygon:g}),u?new Va(u,{box:r||!v,text:!0,triggerResize:i}):void 0,S?new Ho(S):void 0]),R=new zn(A,new Xi(1024,1024),e,x?[x]:[],p),j=new Za(n,R);return{name:"default-preset",em:j,runtime:R,renderer:A,controller:x,canvas:n,navigator:S,unmount(){ku(R),R.stopControllers(),R.stop(),R.reset(),j&&j.stop()}}}var Jl=1+Number.MIN_VALUE,Zo=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 es({sheetPrefix:this.options.sheetPrefix}),this.container.classList.add(this.stylesheet.addStylesheet(`
|
|
57
59
|
background: ${this.options.background};
|
|
58
|
-
`)),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(t,n,r){this.stylesheet.updateSheet();for(let s of this.previouslyVisible)this.currentlyVisible.indexOf(s)===-1&&this.container.removeChild(s);for(let s of this.currentlyVisible)this.previouslyVisible.indexOf(s)===-1&&this.container.appendChild(s);this.previouslyVisible=this.currentlyVisible,this.currentlyVisible=[]}afterPaintLayer(t,n){}beforeFrame(t,n,r){this.stylesheet.clearClasses(),this.zIndex=0}getPointsAt(t,n,r,s){return t.getPointsAt(n,r,s)}getScale(t,n){if(Number.isNaN(t)||Number.isNaN(n))return this.lastKnownScale;let r=this.width/t,s=this.height/n,l=r<s?s:r;return Number.isNaN(l)||(this.lastKnownScale=l),this.lastKnownScale}getViewportBounds(t,n,r){return null}createImage(){let t=document.createElement("img");return this.options.imageClass?(t.className=this.options.imageClass,this.options.addPart&&t.setAttribute("part",this.options.imageClass)):(t.style.position="absolute",t.style.pointerEvents="none",t.style.userSelect="none"),this.options.setDraggableFalse&&t.setAttribute("draggable","false"),t}paint(t,n,r,s,l,u){if(this.pending=!1,this.zIndex++,t instanceof Ge){if(!t.__host){let f=this.createImage();f.src=t.uri,t.__host=f,this.container.appendChild(t.__host)}let h=t.__host;this.currentlyVisible.push(h),h.style.zIndex=`${this.zIndex}`,h.style.opacity=`${t.style.opacity}`,this.options.widthStylesheet?h.className=this.options.imageClass+" "+this.stylesheet.addStylesheet(`width:${(l+Yr).toFixed(2)}px;height:${(u+Yr).toFixed(2)}px;`):(h.style.width=`${l+Yr}px`,h.style.height=`${u+Yr}px`),h.style.transform=`translate(${r}px, ${s}px)`}if(t instanceof dn){if(t.__host||(t.__host={images:[]}),!t.__host.images[n]){let f=t.getImageUrl(n),g=this.createImage();g.src=f,t.__host.images[n]=g,this.container.appendChild(g)}let h=t.__host.images[n];h.style.zIndex=`${this.zIndex}`,h.style.opacity=`${t.style.opacity}`,this.currentlyVisible.push(h),this.options.widthStylesheet?h.className=this.options.imageClass+" "+this.stylesheet.addStylesheet(`width:${(l+Yr).toFixed(2)}px;height:${(u+Yr).toFixed(2)}px;`):(h.style.width=`${l+Yr}px`,h.style.height=`${u+Yr}px`),h.style.transform=`translate(${r}px, ${s}px)`}}pendingUpdate(){return this.pending}prepareLayer(t){}finishLayer(t){}reset(){}};function Nh({interactive:e,viewport:t,forceRefresh:n,containerElement:r,overlayElement:s,controllerConfig:l}){if(!r)throw new Error("Invalid container");r.style.userSelect="none";let u=e?Os({minZoomFactor:.5,maxZoomFactor:3,enableClickToZoom:!1,parentElement:r,...l||{}}):void 0,h=new Vs(r,{addPart:!1,setDraggableFalse:!1,imageClass:"atlas-static-image"}),f=s?new Ri([h,new Li(s,{box:!0,text:!0,triggerResize:n})]):h,g=new Kn(f,new hn(1024,1024),t,u?[u]:[]),m=new Ni(r,g);return{name:"static-preset",em:m,runtime:g,renderer:f,controller:u,container:r,overlay:s,unmount(){wo(g),g.stopControllers(),g.stop(),m&&m.stop()}}}var Oh={"default-preset":Us,"static-preset":Nh};var pn=Y(le(),1),r2={};function lu(e,t){let n=(0,pn.useRef)(),r=(0,pn.useRef)(),s=(0,pn.useRef)(),l=(0,pn.useRef)(),u=(0,pn.useRef)({width:t.width,height:t.height,didUpdate:!0}),[h="default-preset",f=r2]=Array.isArray(e)?e||[]:[e],[g,m]=(0,pn.useState)(null);(0,pn.useLayoutEffect)(()=>{let E=r.current,P=l.current,k=n.current,R=s.current,x=(Oh[h]||Us)({containerElement:P,canvasElement:E,overlayElement:k,navigatorElement:R,viewport:u.current,dpi:window.devicePixelRatio||1,forceRefresh:t.forceRefresh,unstable_webglRenderer:t.unstable_webglRenderer,...f||{}});return m(x),()=>{x&&(x.unmount(),E&&(E.height=0,E.width=0),k&&(k.innerHTML=""),R&&(R.height=0,R.width=0))}},[h,f]);let S=(0,pn.useMemo)(()=>({canvas:r,overlay:n,container:l,navigator:s}),[]);return[h,g,u,S]}var wy=Y(le(),1);function Sy(e){return(0,wy.useMemo)(()=>Hs(e),e)}var xy=Y(le(),1),Ey=Y(Ie(),1),Oi=xy.default.forwardRef((e,t)=>(0,Ey.jsx)("div",{...e,ref:t,part:e.className}));var Ct=Y(Ie(),1),_y=["brightness","contrast","grayscale","hueRotate","invert","saturate","sepia","blur"],Fh=({htmlChildren:e,renderPreset:t,onCreated:n,mode:r="explore",resetWorldOnChange:s=!0,unstable_webglRenderer:l=!1,unstable_noReconciler:u=!1,hideInlineStyle:h=!1,controllerConfig:f,children:g,overlayStyle:m,containerStyle:S,enableNavigator:E,className:P,containerProps:k={},homePosition:R,homeOnResize:A,homeCover:x,background:w,runtimeOptions:_,debug:L,filters:O,...z})=>{let[D,b]=(0,Le.useState)(r),[q,M]=(0,Le.useState)(!1),K=(0,Le.useRef)(!1),se=(0,Le.useMemo)(()=>(typeof t=="string"&&(t=[t,{}]),L?t?[t[0],{debug:L,...t[1]||{}}]:["default-preset",{debug:L}]:t||"default-preset"),[t,L]),[Wn,fe,Et]=Ja({scroll:!0}),tn=(0,Le.useRef)(),Ir=$=>{tn.current=$,Wn($)},[Lr,j,Me,qi]=lu(se,{width:z.width,height:z.height,forceRefresh:Et,unstable_webglRenderer:l}),[es,ts]=(0,Le.useState)("");(0,Le.useEffect)(()=>{b(r)},[r]),(0,Le.useEffect)(()=>{j&&j.em&&j.em.updateBounds()},[j,fe]),(0,Le.useEffect)(()=>{j?.runtime.setOptions(_||{})},[_]),(0,Le.useEffect)(()=>{j&&j.runtime&&(j.runtime.mode=D),q&&j&&(j.ready=!0)},[j,q,D]),(0,Le.useEffect)(()=>{j&&(x||(j.runtime.manualHomePosition=!!R,j.runtime.setHomePosition(R)))},[j,x,R]),(0,Le.useEffect)(()=>{if(j){let $=j.runtime;$.resize(Me.current.width,z.width,Me.current.height,z.height),Me.current.width=z.width,Me.current.height=z.height,$.updateNextFrame(),Me.current.didUpdate=!0}},[j,z.width,z.height]),(0,Le.useEffect)(()=>{if(O&&j){let $=j.runtime,J=!1;$.hookOptions.enableFilters=!0;for(let ye of _y)O[ye]?O[ye]!==j.runtime.hookOptions.filters[ye]&&($.hookOptions.filters[ye]=O[ye],J=!0):$.hookOptions.filters[ye]&&($.hookOptions.filters[ye]=0,J=!0);J&&$.updateNextFrame()}else if(j){let $=j.runtime;for(let J of _y)$.hookOptions.filters[J]=0;$.hookOptions.enableFilters=!1,$.updateNextFrame()}},[j,O]),Yt(()=>{if(j&&(j.overlay&&(j.overlay.style.width=`${fe.width}px`,j.overlay.style.height=`${fe.height}px`),j.container&&(j.container.style.width=`${fe.width}px`,j.container.style.height=`${fe.height}px`),x)){let $=j.runtime.world.width,J=j.runtime.world.height,ye=$/J,rt=Me.current.width,mi=Me.current.height,Bn=rt/mi;if(ye>Bn){Bn=mi/rt,j.runtime.manualHomePosition=!0;let ur=($-J/Bn)/2;x==="start"&&(ur=0),x==="end"&&(ur=$-J/Bn),j.runtime.setHomePosition({x:ur,y:0,width:J/Bn,height:J})}else{let ur=(J-$/Bn)/2;x==="start"&&(ur=0),x==="end"&&(ur=J-$/Bn),j.runtime.manualHomePosition=!0,j.runtime.setHomePosition({x:0,y:ur,width:$,height:$/Bn})}A&&j.runtime.goHome({})}},[j,fe.height,fe.width,x]),Yt(()=>{let $=()=>{if(j){let J=j.runtime;Me.current.width!==z.width&&Me.current.height!==z.height&&(J.resize(Me.current.width,z.width,Me.current.height,z.height),Me.current.width=z.width,Me.current.height=z.height,J.updateNextFrame(),Me.current.didUpdate=!0)}};return window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[j,z.height,z.width]);let ns={width:120},Ji=()=>{if(j&&j.navigator){let $=j.runtime.world.height,J=j.runtime.world.width,ye=window.devicePixelRatio||1,rt=ns.width,mi=ns.width/J*$;j.navigator.width=rt*ye,j.navigator.height=mi*ye,j.navigator.style.width=rt+"px",j.navigator.style.height=mi+"px"}};Yt(()=>{if(j){Ji();let $=j.runtime;return $.world.addLayoutSubscriber(J=>{J==="recalculate-world-size"&&(Ji(),$.resize(Me.current.width,z.width,Me.current.height,z.height))})}return()=>{}},[j,z.width,z.height]);let Dl=(0,Le.useCallback)(function(J){let ye=()=>{M(!0)};return(0,Le.useEffect)(()=>{if(j){j.runtime.goHome();let rt=n&&n(j);return void(rt&&rt.then?rt.then(ye):ye())}else throw new Error("Invalid configuration - no runtime found")},[]),J.children},[j]);(0,Le.useEffect)(()=>{if(j){let $=j.runtime;if(s)return $.world.addLayoutSubscriber(J=>{J==="recalculate-world-size"&&$.goHome()})}return()=>{}},[j,s]),(0,Le.useEffect)(()=>j?j.runtime.registerHook("useBeforeFrame",()=>{if(Me.current.didUpdate&&j.canvas){let J=window.devicePixelRatio||1,ye=Me.current.width,rt=Me.current.height;j.canvas.width=ye*J,j.canvas.height=rt*J,j.canvas.style.width=ye+"px",j.canvas.style.height=rt+"px",j.canvas.getContext("2d")?.scale(J,J),j&&j.em&&j.em.updateBounds(),Me.current.didUpdate=!1}}):()=>{},[j,s]),(0,Le.useEffect)(()=>{let $=()=>{j&&(b("sketch"),ts("mode-sketch")),window.removeEventListener("keyup",$)},J=ye=>{if(ye.code==="Space"&&j&&j.runtime.mode==="sketch"){let rt=ye.target?.tagName?.toLowerCase();if(rt==="input"||rt==="textarea"||ye.target?.isContentEditable)return;ye.preventDefault(),b("explore"),ts("mode-explore"),window.addEventListener("keyup",$)}};return window.addEventListener("keydown",J),()=>{window.removeEventListener("keydown",J),window.removeEventListener("keyup",$)}},[j]),K.current=!0;let{height:Ac,width:nm,...rs}=z,Nr=Sy([z.width,z.height]),ct=!0;return se&&Array.isArray(se)&&se.length>1&&se[1].interactive===!1&&(ct=!1),w=w??"#000",tn.current&&(w=getComputedStyle(tn.current).getPropertyValue("--atlas-background")||w),(0,Ct.jsxs)(Oi,{ref:Ir,className:["atlas",h?"":`atlas-width-${Nr}`,es,P,`atlas-${Lr}`].filter(Boolean).join(" ").trim(),style:{...S,...h?{}:{width:z.width,height:z.height}},children:[Lr==="static-preset"?(0,Ct.jsx)(Oi,{className:"atlas-static-container",ref:qi.container,tabIndex:0,...k}):(0,Ct.jsx)("canvas",{className:"atlas-canvas",part:"atlas-canvas",tabIndex:0,...rs,...k,ref:qi.canvas,"data-background":w}),(0,Ct.jsx)(Oi,{className:["atlas-overlay",ct?"atlas-overlay--interactive":""].filter(Boolean).join(" ").trim(),style:{...m||{}},ref:qi.overlay,children:u?(0,Ct.jsx)(Dl,{children:(0,Ct.jsx)(Gr.Provider,{value:fe,children:(0,Ct.jsx)($n.Provider,{value:D,children:(0,Ct.jsx)(qn.Provider,{value:j,children:g})})})}):(0,Ct.jsx)(yy,{bounds:fe,preset:j,mode:D,setIsReady:M,onCreated:n,children:g})}),E?(0,Ct.jsx)(Oi,{className:"atlas-navigator",children:(0,Ct.jsx)("canvas",{className:"atlas-navigator-canvas",part:"atlas-navigator-canvas",ref:qi.navigator})}):null,h?(0,Ct.jsx)("style",{children:`.atlas-width-${Nr} { width: ${z.width}px; height: ${z.height}px; }`}):(0,Ct.jsx)("style",{children:`
|
|
59
|
-
.atlas { position: relative; display: flex; background: ${
|
|
60
|
-
.atlas-width-${
|
|
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 Se){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 Qi){if(e.__host||(e.__host={images:[]}),!e.__host.images[i]){let m=e.getImageUrl(i),v=this.createImage();v.src=m,e.__host.images[i]=v,this.container.appendChild(v)}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 Og({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?Uo({minZoomFactor:.5,maxZoomFactor:3,enableClickToZoom:!1,parentElement:n,...s||{}}):void 0,f=new Zo(n,{addPart:!1,setDraggableFalse:!1,imageClass:"atlas-static-image"}),m=u?new Ya([f,new Va(u,{box:!0,text:!0,triggerResize:i})]):f,v=new zn(m,new Xi(1024,1024),e,r?[r]:[]),g=new Za(n,v);return{name:"static-preset",em:g,runtime:v,renderer:m,controller:r,container:n,overlay:u,unmount(){ku(v),v.stopControllers(),v.stop(),g&&g.stop()}}}var Mg={"default-preset":Vo,"static-preset":Og};var Zi=F(yt(),1),y4={};function Tf(t,e){let i=(0,Zi.useRef)(),n=(0,Zi.useRef)(),u=(0,Zi.useRef)(),s=(0,Zi.useRef)(),r=(0,Zi.useRef)({width:e.width,height:e.height,didUpdate:!0}),[f="default-preset",m=y4]=Array.isArray(t)?t||[]:[t],[v,g]=(0,Zi.useState)(null);(0,Zi.useLayoutEffect)(()=>{let p=n.current,x=s.current,A=i.current,R=u.current,T=(Mg[f]||Vo)({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,Zi.useMemo)(()=>({canvas:n,overlay:i,container:s,navigator:u}),[]);return[f,v,r,S]}var Qb=F(yt(),1);function Xb(t){return(0,Qb.useMemo)(()=>Xo(t),t)}var Vb=F(yt(),1),Zb=F(Ft(),1),Ka=Vb.default.forwardRef((t,e)=>(0,Zb.jsx)("div",{...t,ref:e,part:t.className}));var We=F(Ft(),1),Kb=["brightness","contrast","grayscale","hueRotate","invert","saturate","sepia","blur"],Cg=({htmlChildren:t,renderPreset:e,onCreated:i,mode:n="explore",resetWorldOnChange:u=!0,unstable_webglRenderer:s=!1,unstable_noReconciler:r=!1,hideInlineStyle:f=!1,controllerConfig:m,children:v,overlayStyle:g,containerStyle:S,enableNavigator:p,className:x,containerProps:A={},homePosition:R,homeOnResize:j,homeCover:T,background:E,runtimeOptions:_,debug:O,filters:H,...U})=>{let[q,Z]=(0,Wt.useState)(n),[J,w]=(0,Wt.useState)(!1),P=(0,Wt.useRef)(!1),ut=(0,Wt.useMemo)(()=>(typeof e=="string"&&(e=[e,{}]),O?e?[e[0],{debug:O,...e[1]||{}}]:["default-preset",{debug:O}]:e||"default-preset"),[e,O]),[Ln,pt,$e]=vf({scroll:!0}),gn=(0,Wt.useRef)(),qn=k=>{gn.current=k,Ln(k)},[ge,G,Qt,Tl]=Tf(ut,{width:U.width,height:U.height,forceRefresh:$e,unstable_webglRenderer:s}),[Ks,Js]=(0,Wt.useState)("");(0,Wt.useEffect)(()=>{Z(n)},[n]),(0,Wt.useEffect)(()=>{G&&G.em&&G.em.updateBounds()},[G,pt]),(0,Wt.useEffect)(()=>{G?.runtime.setOptions(_||{})},[_]),(0,Wt.useEffect)(()=>{G&&G.runtime&&(G.runtime.mode=q),J&&G&&(G.ready=!0)},[G,J,q]),(0,Wt.useEffect)(()=>{G&&(T||(G.runtime.manualHomePosition=!!R,G.runtime.setHomePosition(R)))},[G,T,R]),(0,Wt.useEffect)(()=>{if(G){let k=G.runtime;k.resize(Qt.current.width,U.width,Qt.current.height,U.height),Qt.current.width=U.width,Qt.current.height=U.height,k.updateNextFrame(),Qt.current.didUpdate=!0}},[G,U.width,U.height]),(0,Wt.useEffect)(()=>{if(H&&G){let k=G.runtime,ht=!1;k.hookOptions.enableFilters=!0;for(let zt of Kb)H[zt]?H[zt]!==G.runtime.hookOptions.filters[zt]&&(k.hookOptions.filters[zt]=H[zt],ht=!0):k.hookOptions.filters[zt]&&(k.hookOptions.filters[zt]=0,ht=!0);ht&&k.updateNextFrame()}else if(G){let k=G.runtime;for(let ht of Kb)k.hookOptions.filters[ht]=0;k.hookOptions.enableFilters=!1,k.updateNextFrame()}},[G,H]),_i(()=>{if(G&&(G.overlay&&(G.overlay.style.width=`${pt.width}px`,G.overlay.style.height=`${pt.height}px`),G.container&&(G.container.style.width=`${pt.width}px`,G.container.style.height=`${pt.height}px`),T)){let k=G.runtime.world.width,ht=G.runtime.world.height,zt=k/ht,qt=Qt.current.width,Ze=Qt.current.height,wi=qt/Ze;if(zt>wi){wi=Ze/qt,G.runtime.manualHomePosition=!0;let nn=(k-ht/wi)/2;T==="start"&&(nn=0),T==="end"&&(nn=k-ht/wi),G.runtime.setHomePosition({x:nn,y:0,width:ht/wi,height:ht})}else{let nn=(ht-k/wi)/2;T==="start"&&(nn=0),T==="end"&&(nn=ht-k/wi),G.runtime.manualHomePosition=!0,G.runtime.setHomePosition({x:0,y:nn,width:k,height:k/wi})}j&&G.runtime.goHome({})}},[G,pt.height,pt.width,T]),_i(()=>{let k=()=>{if(G){let ht=G.runtime;Qt.current.width!==U.width&&Qt.current.height!==U.height&&(ht.resize(Qt.current.width,U.width,Qt.current.height,U.height),Qt.current.width=U.width,Qt.current.height=U.height,ht.updateNextFrame(),Qt.current.didUpdate=!0)}};return window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[G,U.height,U.width]);let Ea={width:120},Gn=()=>{if(G&&G.navigator){let k=G.runtime.world.height,ht=G.runtime.world.width,zt=window.devicePixelRatio||1,qt=Ea.width,Ze=Ea.width/ht*k;G.navigator.width=qt*zt,G.navigator.height=Ze*zt,G.navigator.style.width=qt+"px",G.navigator.style.height=Ze+"px"}};_i(()=>{if(G){Gn();let k=G.runtime;return k.world.addLayoutSubscriber(ht=>{ht==="recalculate-world-size"&&(Gn(),k.resize(Qt.current.width,U.width,Qt.current.height,U.height))})}return()=>{}},[G,U.width,U.height]);let Fs=(0,Wt.useCallback)(function(ht){let zt=()=>{w(!0)};return(0,Wt.useEffect)(()=>{if(G){G.runtime.goHome();let qt=i&&i(G);return void(qt&&qt.then?qt.then(zt):zt())}else throw new Error("Invalid configuration - no runtime found")},[]),ht.children},[G]);(0,Wt.useEffect)(()=>{if(G){let k=G.runtime;if(u)return k.world.addLayoutSubscriber(ht=>{ht==="recalculate-world-size"&&k.goHome()})}return()=>{}},[G,u]),(0,Wt.useEffect)(()=>G?G.runtime.registerHook("useBeforeFrame",()=>{if(Qt.current.didUpdate&&G.canvas){let ht=window.devicePixelRatio||1,zt=Qt.current.width,qt=Qt.current.height;G.canvas.width=zt*ht,G.canvas.height=qt*ht,G.canvas.style.width=zt+"px",G.canvas.style.height=qt+"px",G.canvas.getContext("2d")?.scale(ht,ht),G&&G.em&&G.em.updateBounds(),Qt.current.didUpdate=!1}}):()=>{},[G,u]),(0,Wt.useEffect)(()=>{let k=()=>{G&&(Z("sketch"),Js("mode-sketch")),window.removeEventListener("keyup",k)},ht=zt=>{if(zt.code==="Space"&&G&&G.runtime.mode==="sketch"){let qt=zt.target?.tagName?.toLowerCase();if(qt==="input"||qt==="textarea"||zt.target?.isContentEditable)return;zt.preventDefault(),Z("explore"),Js("mode-explore"),window.addEventListener("keyup",k)}};return window.addEventListener("keydown",ht),()=>{window.removeEventListener("keydown",ht),window.removeEventListener("keyup",k)}},[G]),P.current=!0;let{height:Ws,width:vn,...Fc}=U,yu=Xb([U.width,U.height]),Yn=!0;return ut&&Array.isArray(ut)&&ut.length>1&&ut[1].interactive===!1&&(Yn=!1),E=E??"#000",gn.current&&(E=getComputedStyle(gn.current).getPropertyValue("--atlas-background")||E),(0,We.jsxs)(Ka,{ref:qn,className:["atlas",f?"":`atlas-width-${yu}`,Ks,x,`atlas-${ge}`].filter(Boolean).join(" ").trim(),style:{...S,...f?{}:{width:U.width,height:U.height}},children:[ge==="static-preset"?(0,We.jsx)(Ka,{className:"atlas-static-container",ref:Tl.container,tabIndex:0,...A}):(0,We.jsx)("canvas",{className:"atlas-canvas",part:"atlas-canvas",tabIndex:0,...Fc,...A,ref:Tl.canvas,"data-background":E}),(0,We.jsx)(Ka,{className:["atlas-overlay",Yn?"atlas-overlay--interactive":""].filter(Boolean).join(" ").trim(),style:{...g||{}},ref:Tl.overlay,children:r?(0,We.jsx)(Fs,{children:(0,We.jsx)(Vl.Provider,{value:pt,children:(0,We.jsx)(_n.Provider,{value:q,children:(0,We.jsx)(An.Provider,{value:G,children:v})})})}):(0,We.jsx)(Yb,{bounds:pt,preset:G,mode:q,setIsReady:w,onCreated:i,children:v})}),p?(0,We.jsx)(Ka,{className:"atlas-navigator",children:(0,We.jsx)("canvas",{className:"atlas-navigator-canvas",part:"atlas-navigator-canvas",ref:Tl.navigator})}):null,f?(0,We.jsx)("style",{children:`.atlas-width-${yu} { width: ${U.width}px; height: ${U.height}px; }`}):(0,We.jsx)("style",{children:`
|
|
61
|
+
.atlas { position: relative; display: flex; background: ${E}; 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-${yu} { width: ${U.width}px; height: ${U.height}px; }
|
|
61
63
|
.atlas-canvas { flex: 1 1 0px; }
|
|
62
64
|
.atlas-canvas:focus, .atlas-static-container:focus { outline: none }
|
|
63
65
|
.atlas-canvas:focus-visible, .atlas-canvas-container:focus-visible { outline: var(--atlas-focus, 2px solid darkorange) }
|
|
@@ -69,14 +71,14 @@ Error generating stack: `+l.message+`
|
|
|
69
71
|
.atlas-static-image { position: absolute; user-select: none; transform-origin: 0px 0px; }
|
|
70
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 }
|
|
71
73
|
.atlas-navigator-canvas { width: 100%; }
|
|
72
|
-
`}),
|
|
74
|
+
`}),t]})};var zf=F(yt(),1);function Jb(t){return Number(t)==t?`${t}px`:t}var Ko=F(Ft(),1),p4=({resizeHash:t,aspectRatio:e,containerProps:i={},...n})=>{let[u,s,r]=vf(),{height:f,width:m,...v}=n;(0,zf.useEffect)(()=>{r()},[m,f,t,r]);let g=(0,zf.useMemo)(()=>e?{width:s.width,height:s.width*(1/e)}:s,[s,e]);return(0,Ko.jsxs)(Ka,{ref:u,className:"atlas-container",...i,children:[g.width?(0,Ko.jsx)(Cg,{width:g.width||100,height:g.height||100,...v,children:n.children}):null,n.hideInlineStyle?null:(0,Ko.jsx)("style",{children:`
|
|
73
75
|
.atlas-container {
|
|
74
76
|
display: var(--atlas-container-display, block);
|
|
75
77
|
flex: var(--atlas-container-flex, none);
|
|
76
|
-
width: var(--atlas-container-width, ${
|
|
77
|
-
height: var(--atlas-container-height, ${
|
|
78
|
+
width: var(--atlas-container-width, ${m?`${m}px`:"100%"});
|
|
79
|
+
height: var(--atlas-container-height, ${Jb(f||(e?g.height:512))})
|
|
78
80
|
}
|
|
79
|
-
`}),r.htmlChildren]})};var tr=Y(le(),1);var ky=Y(le(),1);var Gs=()=>(0,ky.useContext)(qn);var st=()=>{let e=Gs();return e?e.runtime:void 0};var Cy=Y(le(),1),Mh=(e,t=[])=>{let n=st();(0,Cy.useEffect)(()=>n?n.registerHook("useAfterFrame",e):()=>{},t)};var Ty=Y(le(),1),Fi=(e,t=[])=>{let n=st();(0,Ty.useEffect)(()=>n?n.registerHook("useFrame",e):()=>{},t)};var Ah=()=>{let e=Gs();return e&&e.canvas?e.canvas:void 0};var Ry=Y(le(),1);function uu(){return(0,Ry.useContext)(Gr)}var o2=({onCreate:e})=>{let t=(0,tr.useRef)({x:0,y:0}),n=Ah(),r=uu(),s=st(),[l,u]=(0,tr.useState)(),[h,f]=(0,tr.useState)(),g=Ms();return Fi(()=>{s&&l&&!h&&(s.pendingUpdate=!0)},[l,h]),Mh(()=>{if(l&&n&&s){let m=n.getContext("2d");if(m){let{x:S,y:E,width:P,height:k}=s.worldToViewer(l.x,l.y,(h?h.x:t.current.x)-l.x,(h?h.y:t.current.y)-l.y);m.lineWidth=h?3:1,m.strokeStyle="#fff",m.strokeRect(S,E,P,k),m.lineWidth=h?3:1,m.strokeStyle="#000",m.strokeRect(S+1,E+1,P-2,k-2)}}},[l,h]),(0,tr.useEffect)(()=>{let m=S=>{if(r&&s){let{x:E,y:P}=s.viewerToWorld(S.clientX-r.left,S.clientY-r.top);t.current.x=~~E,t.current.y=~~P}};return n?(n.addEventListener("mousemove",m),()=>n.removeEventListener("mousemove",m)):()=>{}},[r,n,s]),(0,tr.useEffect)(()=>{let m=S=>{g==="sketch"&&(u({x:Math.round(t.current.x),y:Math.round(t.current.y)}),f(void 0))};return n?(n.addEventListener("mousedown",m),()=>n.removeEventListener("mousedown",m)):()=>{}},[n,g]),(0,tr.useEffect)(()=>{let m=S=>{l&&!h&&f({x:Math.round(t.current.x),y:Math.round(t.current.y)})};return n?(n.addEventListener("mouseup",m),()=>n.removeEventListener("mouseup",m)):()=>{}},[n,l,h]),(0,tr.useEffect)(()=>{l&&h&&e({x:Math.min(l.x,h.x),y:Math.min(l.y,h.y),width:Math.abs(h.x-l.x),height:Math.abs(h.y-l.y)})},[l,e,h]),null};var lr=Y(le(),1);var Bw=Y(le(),1);async function jw(e,t,n){if(Bw.version.startsWith("18.")){let r=await Promise.resolve().then(()=>Y(Ww(),1)),s=r.default?r.default.createRoot:r.createRoot;n.current||(n.current=s(e)),n.current.render(t)}else if(typeof ReactDOM<"u"){let{render:r,unmountComponentAtNode:s}=ReactDOM;r(t,e),n.current={unmount(){s(e)}}}else{let r=await Promise.resolve().then(()=>Y(Hp(),1)),s=r.default?r.default.render:r.render,l=r.default?r.default.unmountComponentAtNode:r.unmountComponentAtNode;s(t,e),n.current={unmount(){l(e)}}}}var Vp=Y(Ie(),1),Pc=lr.default.forwardRef(({children:e,...t},n)=>{let r=(0,lr.useRef)(),s=st(),l=(0,lr.useRef)(0),u=(0,lr.useRef)(),h=(0,lr.useRef)();return Fi(()=>{if(t.relative){let f=r.current;if(f&&s){let g=s.getScaleFactor();l.current!==g&&(l.current=g,f.style.transformOrigin="0 0",f.style.transform=`scale(${1/l.current})`,f.style.width=`${l.current*100}%`,f.style.height=`${l.current*100}%`,r.current&&u.current?.__owner.value?.rotation&&(f.style.transform=`scale(${1/l.current}) translate(50%, 50%) rotate(${u.current?.__owner.value?.rotation||0}deg) translate(-50%, -50%)`))}}},[t.relative]),(0,lr.useLayoutEffect)(()=>{let f=u.current;n&&f&&(typeof n=="function"?n(f):n.current=f);async function g(){if(f&&f.__host){let m=t.relative?(0,Vp.jsx)("div",{ref:r,children:e}):e;await jw(f.__host.element,m,h)}}f&&f.__host?g():f&&(f.__onCreate=g)},[n,e,u,t.relative]),(0,lr.useLayoutEffect)(()=>()=>{h.current&&setTimeout(()=>{h.current.unmount()},0)},[]),(0,Vp.jsx)("box",{html:!0,...t,ref:u})});Pc.displayName="HTMLPortal";var Uw=Y(le(),1);var ar=Y(le(),1);var Ze=Y(le(),1);var bw=Y(le(),1);var kc=(e,t,n=[])=>{let r=st(),s=r?r.world:void 0;(0,bw.useEffect)(()=>{if(r){let l=t,u=Tn[e];r.world.activatedEvents.push(u);let h=u.slice(2).toLowerCase();return r.world.addEventListener(h,l),()=>{r.world.removeEventListener(h,l)}}return()=>{}},[s,e,...n])};function Qp(e,t){if(e===0)return[0,1];if(t===0)return[1,0];let n=Math.abs(e)/Math.abs(t);return[n,1-n]}var Cc=Y(le(),1);function Hw(){let e=(0,Cc.useRef)({ctrl:!1,shift:!1,alt:!1});return(0,Cc.useLayoutEffect)(()=>{function t(r){r.key==="Shift"&&(e.current.shift=!0),r.key==="Control"&&(e.current.ctrl=!0),r.key==="Alt"&&(e.current.alt=!0)}function n(r){r.key==="Shift"&&(e.current.shift=!1),r.key==="Control"&&(e.current.ctrl=!1),r.key==="Alt"&&(e.current.alt=!1)}return window.addEventListener("keydown",t),window.addEventListener("keyup",n),()=>{window.removeEventListener("keydown",t),window.removeEventListener("keyup",n)}},[]),e}var Gp=(e,t)=>{let n=Ms(),r=st(),s=uu(),l=(0,Ze.useRef)(),u=(0,Ze.useRef)(null),h=(0,Ze.useRef)(),[f,g]=(0,Ze.useState)(!1),m=(0,Ze.useRef)(!1),S=(0,Ze.useRef)({north:0,south:0,east:0,west:0}),E=Hw(),P=(0,Ze.useCallback)(w=>_=>{if(m.current=!0,g(!0),s&&r){let{top:L,left:O}=s,z=r.viewerToWorld(_.pageX-O,_.pageY-L);h.current={x:z.x,y:z.y},l.current=w}},[s,r]),k=(0,Ze.useMemo)(()=>e.width/e.height,[e.width,e.height]),R=(0,Ze.useCallback)(w=>{if(!Math.abs(w.north-w.south+(w.east-w.west)))return;let L=-w.west+w.east,O=-w.north+w.south,z=e.width+L,D=e.height+O;if(z/D>=k){let q=D*k,M=z-q,[K,se]=Qp(w.east,w.west);w.west=w.west+M*se,w.east=w.east-M*K}else{let q=z/k,M=D-q,[K,se]=Qp(w.north,w.south);w.north=w.north+M*K,w.south=w.south-M*se}},[e.width,e.height,k]);Fi(()=>{h&&r&&r.updateNextFrame()}),(0,Ze.useEffect)(()=>{r&&r.updateNextFrame()},[r,f]);let A=(0,Ze.useCallback)(w=>{if(!r||!s||r.mode!=="sketch")return;let{top:_,left:L}=s,O=r.viewerToWorld(w.pageX-L,w.pageY-_),z=u.current,D=!e.maintainAspectRatio&&E.current.alt,b=!D&&E.current.shift&&l.current?.indexOf("-")!==-1;if((l.current==="translate"||l.current==="east"||l.current==="north-east"||l.current==="south-east")&&(S.current.east=O.x-(h.current?h.current.x:0),D&&(S.current.west=-S.current.east)),(l.current==="translate"||l.current==="west"||l.current==="north-west"||l.current==="south-west")&&(S.current.west=O.x-(h.current?h.current.x:0),D&&(S.current.east=-S.current.west)),(l.current==="translate"||l.current==="north"||l.current==="north-east"||l.current==="north-west")&&(S.current.north=O.y-(h.current?h.current.y:0),D&&(S.current.south=-S.current.north)),(l.current==="translate"||l.current==="south"||l.current==="south-west"||l.current==="south-east")&&(S.current.south=O.y-(h.current?h.current.y:0),D&&(S.current.north=-S.current.south)),(e.maintainAspectRatio||b)&&R(S.current),z){let q=S.current.west,M=S.current.north,K=e.width+S.current.east,se=e.height+S.current.south;z.points[1]=Math.min(q,K),z.points[2]=Math.min(M,se),z.points[3]=Math.max(q,K),z.points[4]=Math.max(M,se),r.updateNextFrame()}},[r,e.width,e.height,e.maintainAspectRatio,s]);kc("mousemove",A,[e.width,e.height,s]),kc("pointermove",A,[e.width,e.height,s]);let x=(0,Ze.useRef)();return(0,Ze.useEffect)(()=>{x.current=()=>{if(m.current){let w=S.current.west,_=S.current.north,L=e.width+S.current.east,O=e.height+S.current.south,z=Math.min(w,L),D=Math.min(_,O),b=Math.max(w,L),q=Math.max(_,O),M={x:(e.x||0)+z,y:(e.y||0)+D,width:b-z||1,height:q-D||1};e.maintainAspectRatio,t(M),l.current=void 0,h.current=void 0,S.current.east=0,S.current.west=0,S.current.north=0,S.current.south=0,m.current=!1,g(!1)}}},[t,e.height,e.width,e.x,e.y]),(0,Ze.useEffect)(()=>{let w=()=>{x.current&&x.current()};return window.addEventListener("pointerup",w),window.addEventListener("touchend",w),()=>{window.removeEventListener("pointerup",w),window.removeEventListener("touchend",w)}},[]),{portalRef:u,mode:n,mouseEvent:P,onPointerMoveCallback:A,isEditing:f}};var Ue=Y(Ie(),1);function Xp({handleSize:e,resizable:t,onSave:n,children:r,maintainAspectRatio:s,disableCardinalControls:l,...u}){let h=typeof e>"u"?s?10:8:e,{portalRef:f,mode:g,mouseEvent:m,isEditing:S}=Gp({x:u.x||0,y:u.y||0,width:u.width,height:u.height,maintainAspectRatio:s},n),E=(0,ar.useMemo)(()=>m("translate"),[m]),P=(0,ar.useMemo)(()=>m("east"),[m]),k=(0,ar.useMemo)(()=>m("west"),[m]),R=(0,ar.useMemo)(()=>m("south"),[m]),A=(0,ar.useMemo)(()=>m("north"),[m]),x=(0,ar.useMemo)(()=>m("south-east"),[m]),w=(0,ar.useMemo)(()=>m("south-west"),[m]),_=(0,ar.useMemo)(()=>m("north-east"),[m]),L=(0,ar.useMemo)(()=>m("north-west"),[m]),O=g==="sketch",z={zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.2)",border:"1px solid rgba(155,155,155,.7)",borderRadius:s||l?"50%":2,position:"absolute",background:"#fff",pointerEvents:S?"none":O?"initial":"none"};return(0,Ue.jsx)(Ue.Fragment,{children:(0,Ue.jsxs)("world-object",{...u,children:[r,O&&t?(0,Ue.jsx)(Pc,{ref:f,target:{x:0,y:0,height:u.height,width:u.width},relative:!0,interactive:!1,children:O&&t?(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)("div",{onMouseDown:E,onTouchStart:E,style:{display:"block",width:"100%",height:"100%",position:"relative",border:"1px solid rgba(155,155,155, .7)",boxSizing:"border-box",pointerEvents:S?"none":O?"initial":"none"}}),s?null:(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)("div",{title:"east",onTouchStart:P,onMouseDown:P,style:{...z,cursor:"e-resize",height:h*2,width:h,right:0,top:"50%",opacity:l?0:1,transform:`translate(${h/2}px, -${h}px)`}}),(0,Ue.jsx)("div",{title:"west",onMouseDown:k,style:{...z,cursor:"w-resize",position:"absolute",height:h*2,width:h,left:0,top:"50%",opacity:l?0:1,transform:`translate(-${h/2}px, -${h}px)`}}),(0,Ue.jsx)("div",{title:"north",onMouseDown:A,style:{...z,cursor:"n-resize",position:"absolute",height:h,width:h*2,left:"50%",top:0,opacity:l?0:1,transform:`translate(-${h}px, -${h/2}px)`}}),(0,Ue.jsx)("div",{title:"south",onMouseDown:R,style:{...z,cursor:"s-resize",position:"absolute",height:h,width:h*2,left:"50%",bottom:0,opacity:l?0:1,transform:`translate(-${h}px, ${h/2}px)`}})]}),(0,Ue.jsx)("div",{title:"north-east",onMouseDown:_,style:{...z,cursor:"ne-resize",position:"absolute",height:h,width:h,right:0,top:0,transform:`translate(${h/2}px, -${h/2}px)`}}),(0,Ue.jsx)("div",{title:"south-east",onMouseDown:x,style:{...z,cursor:"se-resize",position:"absolute",height:h,width:h,bottom:0,right:0,transform:`translate(${h/2}px, ${h/2}px)`}}),(0,Ue.jsx)("div",{title:"south-west",onMouseDown:w,style:{...z,cursor:"sw-resize",position:"absolute",height:h,width:h,bottom:0,left:0,transform:`translate(-${h/2}px, ${h/2}px)`}}),(0,Ue.jsx)("div",{title:"north-west",onMouseDown:L,style:{...z,cursor:"nw-resize",position:"absolute",height:h,width:h,top:0,left:0,transform:`translate(-${h/2}px, -${h/2}px)`}})]}):null}):null]})})}var Yp=Y(Ie(),1);function sP({interactive:e,region:t,onClick:n,onSave:r,maintainAspectRatio:s,disableCardinalControls:l,isEditing:u,rotation:h,style:f={backgroundColor:"rgba(0,0,0,.5)"}}){let g=(0,Uw.useCallback)(m=>{r({id:t.id,x:t.x,y:t.y,height:t.height,width:t.width,...m})},[r,t.id,t.x,t.y,t.height,t.width]);return(0,Yp.jsx)(Xp,{x:t.x,y:t.y,rotation:h,width:t.width,height:t.height,resizable:u,onSave:g,maintainAspectRatio:s,disableCardinalControls:l,children:(0,Yp.jsx)("box",{interactive:e,onClick:m=>{m.preventDefault(),m.stopPropagation(),n(t)},target:{x:0,y:0,width:t.width,height:t.height},style:f})})}var Tc=Y(le(),1),Zi=Y(Ie(),1),Zp=e=>{let t=e.width/(e.crop?.width||e.tiles.width),n=e.tiles.imageService.sizes||[],r=e.enableThumbnail,s=e.enableSizes,l=(0,Tc.useMemo)(()=>{let f=e.tiles.imageService.id||e.tiles.imageService["@id"];return f&&f.endsWith("/info.json")?f.slice(0,-1*10):f},[e.tiles.imageService.id]),u=(0,Tc.useMemo)(()=>{let f=e.tiles.imageService.tiles||[];if(!f.length){let g=e.width,m=[1],S=1;for(;Math.pow(2,S)<g;)S=S*2,m.push(S);return[]}return f},[e.tiles.imageService]),h=(0,Tc.useMemo)(()=>{let f=e.tiles.imageService;return(f?f["@context"]?Array.isArray(f["@context"])?f["@context"]:[f["@context"]]:[]:[]).indexOf("http://iiif.io/api/image/3/context.json")!==-1},[e.tiles.imageService.id]);return(0,Zi.jsx)("world-object",{rotation:e.rotation,scale:t,height:e.crop?.height||e.tiles.height,width:e.crop?.width||e.tiles.width,x:e.x,y:e.y,onClick:e.onClick,children:(0,Zi.jsxs)("composite-image",{id:e.tiles.imageService.id,width:e.crop?.width||e.tiles.width,height:e.crop?.height||e.tiles.height,crop:e.crop,renderOptions:e.renderOptions,children:[r&&e.tiles.thumbnail?(0,Zi.jsx)("world-image",{priority:!0,uri:e.tiles.thumbnail.id,target:{width:e.tiles.width,height:e.tiles.height},display:{width:e.tiles.thumbnail.width,height:e.tiles.thumbnail.height},crop:e.crop}):null,s&&n.map((f,g)=>(0,Zi.jsx)("world-image",{uri:`${l}/full/${f.width},${f.height}/0/default.jpg`,target:{width:e.tiles.width,height:e.tiles.height},display:{width:f.width,height:f.height},crop:e.crop},g)),u.map(f=>(f.scaleFactors||[]).map(g=>(0,Zi.jsx)("tiled-image",{uri:e.tiles.imageService.id,display:{width:e.tiles.width,height:e.tiles.height},tile:f,scaleFactor:g,crop:e.crop,version3:h},`${e.tiles.imageService.id}-tile-${g}`)))]},e.tiles.imageService.id)},e.tiles.imageService.id)};var Fc=Y(le(),1);function Kp(e){return e.id||e["@id"]}var lP=Object.defineProperty,aP=(e,t,n)=>t in e?lP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rc=(e,t,n)=>(aP(e,typeof t!="symbol"?t+"":t,n),n);function Ki(e){return e.endsWith("info.json")?e:e.endsWith("/")?`${e}info.json`:`${e}/info.json`}var uP="http://library.stanford.edu/iiif/image-api/compliance.html#level0",Xw="http://library.stanford.edu/iiif/image-api/compliance.html#level1",Yw="http://library.stanford.edu/iiif/image-api/compliance.html#level2",cP="http://library.stanford.edu/iiif/image-api/conformance.html#level0",Zw="http://library.stanford.edu/iiif/image-api/conformance.html#level1",Kw="http://library.stanford.edu/iiif/image-api/conformance.html#level2",dP="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",$w="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",qw="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",hP="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",Jw="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",eS="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",fP="http://iiif.io/api/image/1/level0.json",pP="http://iiif.io/api/image/1/profiles/level0.json",tS="http://iiif.io/api/image/1/level1.json",nS="http://iiif.io/api/image/1/profiles/level1.json",rS="http://iiif.io/api/image/1/level2.json",iS="http://iiif.io/api/image/1/profiles/level2.json",mP="http://iiif.io/api/image/2/level0.json",gP="http://iiif.io/api/image/2/profiles/level0.json",oS="http://iiif.io/api/image/2/level1.json",sS="http://iiif.io/api/image/2/profiles/level1.json",lS="http://iiif.io/api/image/2/level2.json",aS="http://iiif.io/api/image/2/profiles/level2.json",vP="level0",uS="level1",cS="level2",yP="http://iiif.io/api/image/2/level0",dS="http://iiif.io/api/image/2/level1",hS="http://iiif.io/api/image/2/level2",fS=[hS,Yw,Kw,qw,eS,rS,iS,lS,aS,cS],pS=[...fS,dS,Xw,Zw,$w,Jw,tS,nS,oS,sS,uS],wP=[yP,dS,hS,uP,Xw,Yw,cP,Zw,Kw,dP,$w,qw,hP,Jw,eS,fP,pP,tS,nS,rS,iS,mP,gP,oS,sS,lS,aS,vP,uS,cS];var SP={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["sizeByWhListed"]},xP={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPx","regionSquare","sizeByWhListed","sizeByH","sizeByW","sizeByWh"]},EP={extraFormats:["jpg","png"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPct","regionByPx","regionSquare","rotationBy90s","sizeByWhListed","sizeByConfinedWh","sizeByH","sizeByPct","sizeByW","sizeByWh"]};function _P(e){return fS.indexOf(e)!==-1?EP:pS.indexOf(e)!==-1?xP:SP}function PP(e){let t=e?Array.isArray(e.profile)?e.profile:[e.profile]:[],n={extraQualities:[],extraFormats:[],extraFeatures:[]};for(let r of t)if(typeof r=="string"&&(r=_P(r)),!!r){if(r.formats)for(let s of r.formats)n.extraFormats.indexOf(s)===-1&&n.extraFormats.push(s);if(r.qualities)for(let s of r.qualities)n.extraQualities.indexOf(s)===-1&&n.extraQualities.push(s);if(r.supports)for(let s of r.supports)n.extraFeatures.indexOf(s)===-1&&n.extraFeatures.push(s);if(r.maxHeight&&(n.maxHeight=r.maxHeight),r.maxWidth&&(n.maxWidth=r.maxWidth),r.maxArea&&(n.maxArea=r.maxArea),r.extraFormats)for(let s of r.extraFormats)n.extraFormats.indexOf(s)===-1&&n.extraFormats.push(s);if(r.extraQualities)for(let s of r.extraQualities)n.extraQualities.indexOf(s)===-1&&n.extraQualities.push(s);if(r.extraFeatures)for(let s of r.extraFeatures)n.extraFeatures.indexOf(s)===-1&&n.extraFeatures.push(s);r.maxHeight&&(n.maxHeight=r.maxHeight),r.maxWidth&&(n.maxWidth=r.maxWidth),r.maxArea&&(n.maxArea=r.maxArea)}if(e.extraFormats)for(let r of e.extraFormats)n.extraFormats.indexOf(r)===-1&&n.extraFormats.push(r);if(e.extraFeatures)for(let r of e.extraFeatures)n.extraFeatures.indexOf(r)===-1&&n.extraFeatures.push(r);if(e.extraQualities)for(let r of e.extraQualities)n.extraQualities.indexOf(r)===-1&&n.extraQualities.push(r);return n}function kP(e){try{if(e==="full")return{full:!0};if(e==="square")return{square:!0};let t=e.startsWith("pct:"),n=e.substr(t?4:0).split(",").map(r=>parseFloat(r));return{x:n[0],y:n[1],w:n[2],h:n[3],percent:t}}catch{throw new Error("Expected 'full', 'square' or 'x,y,w,h'. Found "+e)}}function CP(e){let t={upscaled:!1,max:!1,confined:!1};if(e[0]==="^"&&(t.upscaled=!0,e=e.slice(1)),e==="max"||e==="full")return t.max=!0,t.serialiseAsFull=e==="full",t;if(e[0]==="!"&&(t.confined=!0,e=e.slice(1)),e[0]==="p")return t.percentScale=parseFloat(e.slice(4)),t;let n=e.split(",").map(r=>r.trim());return n.length&&typeof n[0]<"u"&&(n[0]!==""&&(t.width=parseInt(n[0],10)),typeof n[1]<"u"&&n[1]!==""?(t.height=parseInt(n[1],10),t.version=2):t.version=3),t}function TP(e){let t={angle:0};if(e[0]==="!"&&(t.mirror=!0,e=e.substr(1)),t.angle=parseFloat(e)%360,Number.isNaN(t.angle))throw new Error(`Invalid rotation ${e}`);return t}function RP(e,t=""){let n=e.match(/^(([a-zA-Z]+):\/\/([^/]+))?((.*)+)/);if(!n)throw new Error(`Invalid or unknown input ${e}`);let r=n[2],s=n[3],l=n[4];if(l[0]==="/"&&(l=l.substring(1)),t.length>0){if(t[0]==="/"&&(t=t.substring(1)),t!==l.substring(0,t.length))throw new Error(`Path does not start with prefix (path: ${l}, prefix: ${t})`);l=l.substring(t.length)}return{scheme:r,server:s,path:l,prefix:t}}function zP(e,t=""){let{path:n,scheme:r,server:s,prefix:l}=RP(e,t),u=(n||"").split("/").reverse(),[h,f,g,m,...S]=u,E=S.reverse().filter(Boolean).join("/");if(u.length===1||h==="")return{type:"base",scheme:r,server:s,prefix:l,identifier:E};if(h==="info.json"){let[,...k]=u;return{type:"info",scheme:r,server:s,prefix:l,identifier:k.reverse().filter(Boolean).join("/")}}let P=(h||"").split(".");if(typeof P[1]>"u"||typeof P[0]>"u"||typeof m>"u"||typeof g>"u"||typeof f>"u")throw new Error("Invalid image request");return{type:"image",scheme:r,server:s,prefix:l,identifier:E,originalPath:n,region:kP(m),size:CP(g),rotation:TP(f),quality:P[0],format:P[1]}}function IP(e){let t=zP(Ki(e.id));if(t.type!=="info")throw new Error("Invalid service URL");let n=PP(e);return{identifier:t.identifier,originalPath:"",server:t.server,prefix:t.prefix,scheme:t.scheme,type:"image",quality:n.extraQualities.indexOf("default")===-1?n.extraQualities[0]:"default",region:{full:!0},size:{max:!0,upscaled:!1,confined:!1},format:"jpg",rotation:{angle:0}}}function LP(e,t,n){let r=n.length,s=[];for(let l=0;l<r;l++){let u=n[l];if(u){let h=u.width;s.push(e/h)}}return s}function NP(e,t,n){let r=n.length,s=[];for(let l=0;l<r;l++){let u=n[l];u&&s.push({width:Math.floor(e/u),height:Math.floor(t/u)})}return s}function We(e){if(e["@id"])return e["@id"];if(e.id)return e.id}function Ic(e){if(!e||!e.profile||!We(e))return!1;let t=Array.isArray(e.profile)?e.profile:[e.profile];for(let n of t)if(typeof n=="string"&&wP.indexOf(n)!==-1)return!0;return!1}function OP(e){if(!Ic(e))return!1;let t=Array.isArray(e.profile)?e.profile:[e.profile];for(let n of t)if(typeof n=="string"){if(pS.indexOf(n)!==-1)return!0}else{let r=[...n.supports||[],...n.extraFeatures||[]];if(r.indexOf("regionByPx")!==-1&&(r.indexOf("sizeByW")!==-1||r.indexOf("sizeByWh")!==-1))return!0}return!1}function zc(e,t){if(t&&t.profile){let n=t.profile;if(n){let r=Array.isArray(n)?n:[n];return r.includes(`level${e}`)||r.includes(`http://iiif.io/api/image/2/level${e}.json`)||r.includes(`http://iiif.io/api/image/1/level${e}.json`)||r.includes(`http://iiif.io/api/image/1/profiles/level${e}.json`)}}return!1}function qp(e){return Ic(e)?zc(0,e)?0:zc(1,e)?1:zc(2,e)?2:null:null}function mS(e){return(e["@context"]?Array.isArray(e["@context"])?e["@context"]:[e["@context"]]:[]).indexOf("http://iiif.io/api/image/3/context.json")!==-1}function FP(e){if(!OP(e))return[];let t=[],n=Array.isArray(e.profile)?e.profile:[e.profile],r=n.length;for(let s=0;s<r;s++){let l=n[s];if(l&&typeof l!="string"&&(l.maxHeight||l.maxWidth))return[{id:We(e),type:"variable",minWidth:0,minHeight:0,maxHeight:l.maxHeight||l.maxWidth,maxWidth:l.maxWidth||l.maxHeight,level:qp(e),version:e["@context"]==="http://iiif.io/api/image/3/context.json"?3:2}]}if(e.tiles){let s=e.tiles.length;for(let l=0;l<s;l++){let u=e.tiles[l];u&&(u.height||u.width)&&t.push({id:We(e),type:"variable",minHeight:0,minWidth:0,maxHeight:u.height||u.width,maxWidth:u.width,level:qp(e),version:mS(e)?3:2})}}return t}function Vw(e){let t=/^.*\/(full)\/(((\d+),(\d+)?)|max)\/(\d+)\/default\.(jpg|png|jpeg)$/,n=e.match(t);if(n&&n[4]&&n[5]){let r=n[1],s=parseInt(n[4],10),l=parseInt(n[5],10),u=n[7];if((r==="max"||r==="full")&&s&&l&&u)return{type:"fixed",id:e,height:l,width:s}}return{type:"unknown",id:e}}function MP(e){if(e["@type"])return e["@type"];if(e.type)return e.type}function Lc(e){if(typeof e=="string")return Vw(e);let t=MP(e);if(t!=="Image"&&t!=="sc:Image")return null;let n=e,r=We(n);return r?r&&n.width&&n.height?{id:r,type:"fixed",width:n.width,height:n.height,unsafe:!0}:Vw(r):null}function AP(e){return Ic(e)?(e&&e.sizes?e.sizes:[]).map(t=>({id:We(e),type:"fixed-service",height:t.height,width:t.width,level:qp(e),version:mS(e)?3:2})):[]}function Qw(e){let t=[],n=e.length;for(let r=0;r<n;r++){let s=e[r];if(!s)continue;let l=AP(s);l.length&&t.push(...l);let u=FP(s);u.length&&t.push(...u)}return t}function gS(e){let t=e.service?Array.isArray(e.service)?e.service:[e.service]:[],n=t.length,r=[];for(let s=0;s<n;s++)Ic(t[s])&&r.push(t[s]);return r}function DP(e,t=!0,n){let r=[],s=Lc(e);if(s===null)return r;let l=e;if(r.push(s),t&&l&&l.width&&l.height){let u=[],h=gS(l);for(let f of h){let g={id:We(f),width:l.width,height:l.height};if(n.canLoadSync(g)){let m=n.loadServiceSync(g);m&&(m.height||(m.height=l.height),m.width||(m.width=l.width),u.push(...Qw([m])))}}if(u.length)return r.push(...u),r}return l.service&&r.push(...Qw(l.service)),r}function WP({x:e=0,y:t=0,w:n,h:r,full:s,square:l,percent:u}){if(s)return"full";if(l)return"square";if(typeof n>"u"||typeof r>"u")throw new Error("RegionParameter: invalid region");let h=`${e},${t},${n},${r}`;return u?`pct:${h}`:h}function BP({max:e,percentScale:t,upscaled:n,confined:r,width:s,height:l,serialiseAsFull:u,version:h}){let f=[];return n&&f.push("^"),e?(f.push(u?"full":"max"),f.join("")):(r&&f.push("!"),t&&f.push(`pct:${t}`),s&&f.push(`${s}`),f.push(","),l&&h===3&&f.push(`${l}`),f.join(""))}function jP(e){return`${e.mirror?"!":""}${(e.angle||0)%360}`}function bP(e,t){let n=e.prefix.startsWith("/")?e.prefix.substr(1):e.prefix,r=`${e.scheme}://${e.server}/${n?`${n}/`:""}${e.identifier}`;if(e.type==="base")return r;if(e.type==="info")return`${r}/info.json`;let{size:s}=e,{region:l,rotation:u,format:h,quality:f}=e;if(t){let g=t["@context"]?Array.isArray(t["@context"])?t["@context"]:[t["@context"]]:[],m=g.indexOf("http://iiif.io/api/image/2/context.json")!==-1,S=g.indexOf("http://iiif.io/api/image/3/context.json")!==-1;if((s.width===t.width&&!s.height||s.height===t.height&&!s.width||s.width===t.width&&s.height===t.height)&&(s={...s,max:!0}),m&&(s.max&&!s.serialiseAsFull&&(s={...s,serialiseAsFull:!0}),!s.max&&s.width&&s.height&&(s={...s,height:void 0}),s={...s,version:2}),S){if(s.max&&s.serialiseAsFull&&(s={...s,serialiseAsFull:!1}),s.width&&!s.height&&t.width&&t.height){let E=t.height/t.width;s={...s,height:Math.ceil(s.width*E)}}s={...s,version:3}}}return[r,WP(l),BP(s),jP(u),`${f}.${h}`].filter(Boolean).join("/")}function $p(e,t,n){let r=IP({"@context":e.version===3?"http://iiif.io/api/image/3/context.json":"http://iiif.io/api/image/2/context.json",id:Ki(We(e)),profile:e.level===null||typeof e.level>"u"?"level0":`level${e.level}`,type:e.version===3?"ImageService3":"ImageService2"});if(r.type!=="image")throw new Error("Invalid service");return r.size.max=!1,r.size.width=t,r.size.height=n,{id:bP(r),type:"fixed",width:t,height:n||e.height/(e.width||1)*t,unsafe:e.width>t}}function Jo(e){let t=e.replace(/(https?:\/\/)?(www.)?/i,"");return t.indexOf("/")!==-1?t.split("/")[0]:t}function HP(e,t,n){let r=e.width?e.width:e.maxWidth;return n.height<=e.maxHeight&&n.width<=e.maxWidth&&n.height>=e.minHeight&&n.width>=e.minWidth&&(!t||Math.abs(n.width-r)<Math.abs(t.width-r))}function UP(e,t){let n=[],r=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},e),s=(m,S=0)=>r.explain?n.push(new Array(S).fill(0).map(E=>" ").join("")+m().trim()):void 0,l=[],u=[],h=null;s(()=>`Using configuration: ${JSON.stringify(r,null,2)}`);let f=(m,S)=>{if(s(()=>"Swapping choice",3),HP(r,S,m)){if(r.preferFixedSize&&m.unsafe){s(()=>`We found an image that was marked as unsafe, but it was the best size. (${m.id})`,4),u.push(m);return}r.returnAllOptions&&S&&u.push(S),s(()=>`We found a new image that was the best size. (${m.id})`,4),h=m}else r.returnAllOptions&&u.push(m)};s(()=>`The input shows we have ${t.length} list(s) of candidates to choose from.`);let g=t.length;for(let m=0;m<g;m++){let S=t[m]();s(()=>`Candidate group ${m}: ${JSON.stringify(S,null,2)}`,1);let E=S.length;s(()=>`Checking candidate list number ${m} and found ${E} potential ways of creating image(s)`,1);for(let P=0;P<E;P++){let k=S[P];if(s(()=>`-> Checking candidate ${P}`,1),k.type==="unknown"&&r.atAnyCost&&(s(()=>`We've found an unknown image type, adding this to the "last resort" list`,2),l.push(k)),k.type==="fixed"&&(k.unsafe?(s(()=>`We've found an unsafe fixed image type, adding this to the "last resort" list`,2),l.push(k)):(s(()=>"We've found a fixed size image, checking if it matches the request",2),f(k,h))),k.type==="fixed-service")if(r.unsafeImageService){s(()=>"Checking for an image from the tile source, without calculating the right height and width (unsafeImageService)",2);let R=$p(k,r.width,r.height);f(R,h)}else{s(()=>"Checking for an image from the tile source 3",2);let R=$p(k,k.width,k.height);f(R,h)}if(k.type==="variable"&&k.maxWidth){let R=$p({id:k.id,type:"fixed-service",width:k.maxWidth,height:k.maxWidth,level:k.level,version:k.version},k.maxWidth);f(R,h)}}if(h&&!r.returnAllOptions){if(h.unsafe||r.allowUnsafe)continue;s(()=>`We found a match in choice list number ${m}, no searching any more`);break}}return r.atAnyCost&&u.length===0?(s(()=>h?`We found an image! ${h.id} of type ${h.type}`:'We found no images, but "atAnyCost" is set, so returning that'),{best:h||l[0]||null,fallback:l.slice(1),log:n}):r.returnAllOptions?(s(()=>"Returning all options that we have found"),{best:(r.atAnyCost?h||u[0]||l[0]:h||u[0])||null,fallback:[...u,...l],log:n}):(s(()=>"Returning the best image that we found, and a fallback"),{best:h||u[0]||null,fallback:h?u:u.slice(1),log:n})}function VP(e,t,n){let r=e>t?e:t,s=n.length,l=[];for(let u=0;u<s;u++){let h=n[u];if(!h||h.scaleFactors.length===0)continue;let f=h.scaleFactors[0];if(!f)continue;let g=r/f,m=[f];for(;g>=h.width;)f=f*2,m.push(f),g=g/2;l.push({...h,scaleFactors:m})}return l}function QP(e,t){if(e.length!==t.length)return!1;if(e.length===0&&t.length===0)return!0;let n=e.length,r=!0;for(let l=0;l<n;l++){let u=e[l],h=t[l];if(u.width!==h.width||u.height!==h.height){r=!1;break}}if(r)return!0;let s=0;for(let l=0;l<n;l++)for(let u=0;u<n;u++)if(e[l].width===t[u].width&&e[l].height===t[u].height){s++;break}return s===n}function Gw(e){return zc(0,e)}var Ml=class{constructor(e={}){Rc(this,"config",{verificationsRequired:1,approximateServices:!1,enableFetching:!0,disableThrottling:!1}),Rc(this,"fetchingCount",0),Rc(this,"imageServices",{}),Rc(this,"knownImageServers",{}),this.config=Object.assign(this.config,e)}setConfig(e){Object.assign(this.config,e)}sample(e,t,n=!0){let r=Jo(We(e)),s=Ki(We(e)),l=this.knownImageServers[r];return this.imageServices[s]=Object.assign(e,{real:!0}),!l&&e.tiles&&!Gw(e)?(this.knownImageServers[r]={verifications:0,malformed:!1,root:r,preLoaded:n,sampledId:We(e),verified:!1,server:null,result:{context:e["@context"]||[],sampledProfile:e.profile,resourceServiceRatio:t&&e.height?t.height/e.height:1,sampledSizes:e.sizes||[],sizeRatios:LP(e.width,e.height,e.sizes||[]),sampledTiles:e.tiles||[]}},!0):this.verify(e)}preLoad(e,t=!0){this.knownImageServers[e.root]=e,t&&(this.knownImageServers[e.root].malformed=!1,this.knownImageServers[e.root].verifications=this.config.verificationsRequired)}predict(e,t=!1,n=!1){let r=e?.source,s=Jo(We(e)),l=this.knownImageServers[s],u=Ki(We(e));return this.imageServices[u]?this.imageServices[u]||null:!this.config.approximateServices||!l||!l.result||!(r?.height||e.height)||!(r?.width||e.width)||!n&&(l.malformed||l.verifications<this.config.verificationsRequired)||Gw(e.source)?null:(this.imageServices[u]||(this.imageServices[u]={"@context":l.result.context,"@id":We(e),id:We(e),protocol:"http://iiif.io/api/image",tiles:r?.tiles||VP(e.width,e.height,l.result.sampledTiles),sizes:r?.sizes||NP(Math.round(e.width/l.result.resourceServiceRatio),Math.round(e.height/l.result.resourceServiceRatio),l.result.sizeRatios),profile:r?.profile||l.result.sampledProfile,height:r?.height||e.height,width:r?.width||e.width,real:!1}),this.imageServices[u]||null)}async getThumbnailFromResource(e,t,n=!0,r=[]){let s=e?await this.getImageCandidates(e,n):[];return UP(t,[()=>r,()=>s])}async getImageCandidates(e,t=!0){let n=e;if(t&&n&&n.height&&n.width){let r=gS(n);for(let s of r){let l={id:We(s),width:s.width?s.width:n.width,height:s.height?s.height:n.height,source:s};await this.loadService(l)}}return DP(e,t,this)}async verify(e){let t=this.predict(e,!1,!0),n=await this.fetchService(We(e));if(!t)return!1;let r=t.height===n.height&&t.width===n.width&&t["@context"]===n["@context"]&&QP(t.sizes||[],n.sizes||[]);if(r){let s=Jo(We(e)),l=this.knownImageServers[s];l&&(l.verifications+=1,l.verifications>=this.config.verificationsRequired&&(l.verified=!0))}return r}canLoadSync(e){let t=typeof e=="string"?e:We(e),n=Ki(t);if(this.imageServices[n])return!0;let r=this.knownImageServers[Jo(t)];return!!(r&&!r.malformed&&r.verifications>=this.config.verificationsRequired)}async markAsMalformed(e){return this.knownImageServers[Jo(We(e))].malformed=!0,this.loadService(e,!0)}async fetchService(e,t=!1){let n=Ki(e),r=this.imageServices[n];if(r&&(!t||r.real))return r;if(!this.config.enableFetching)throw new Error("Fetching is not enabled");let s=await this.fetch(n).then(l=>l.json());return!s.id&&s["@id"]&&(s.id=s["@id"]),s.id!==e&&(s.id=e,s["@id"]&&(s["@id"]=e)),this.imageServices[n]=Object.assign(s,{real:!0}),this.imageServices[n]}async fetch(e,t){return fetch(e,t)}async loadService(e,t=!1){if(!this.config.disableThrottling){let s=!0;for(;s;)if(this.fetchingCount>=this.config.verificationsRequired)await new Promise(l=>setTimeout(l,500));else{s=!1;break}}let n=this.knownImageServers[Jo(We(e))];if(n&&!n.malformed&&!t){await n.result;let s=this.loadServiceSync(e);if(s)return s}this.fetchingCount++;let r=await this.fetchService(We(e),t);return this.fetchingCount--,r.real&&this.sample(r,e),r}loadServiceSync(e){let t=Ki(We(e));return this.imageServices[t]?this.imageServices[t]:this.config.approximateServices?this.predict(e):null}},AI=new Ml;var Nc={},Jp={get(e){return e},setMetaValue([e,t,n],r){let s=Jp.getResourceMeta(e,t),l=s?s[n]:void 0,u=typeof r=="function"?r(l):r;Nc[e]={...Nc[e]||{},[t]:{...(Nc[e]||{})[t]||{},[n]:u}}},getResourceMeta:(e,t)=>{let n=Nc[e];if(n)return t?n[t]:n}};var vS=new Ml;function em(e=Jp,t={}){let n=t.imageServiceLoader||vS;async function r(s,l,u=!1,h=[],f){let g=()=>n.getThumbnailFromResource(void 0,l,u,h);if(!s)return await n.getThumbnailFromResource(void 0,l,u,h);if(typeof s=="string"){let E=Lc(s);return E&&h.push(E),await n.getThumbnailFromResource(void 0,l,u,h)}let m=e.get(s,{skipSelfReturn:!1});if(typeof m=="string")return{best:Lc(m),fallback:[],log:[]};if(!m)return await g();switch(await(async E=>{if(E&&E.thumbnail&&E.thumbnail.length){let P=e.get(E.thumbnail[0]),k=await n.getImageCandidates(P,u);k&&k.length&&h.push(...k)}})(m),m.type){case"Annotation":{let E=Array.isArray(m.body)?m.body:[m.body],P=e.get(E[0]);return f&&!P.width&&(P.width=f.width,P.height=f.height),await n.getThumbnailFromResource(P,l,u,h)}case"Canvas":{let E=m;return r(E.items[0],l,u,h,{width:E.width,height:E.height})}case"AnnotationPage":return r(m.items[0],l,u,h,f);case"Choice":{let E=m;return!E.items||E.items[0]?await g():r(E.items[0],l,u,h,f)}case"Collection":{let P=m.items[0];return P?r(P,l,u,h,f):await g()}case"Manifest":{let P=m.items[0];return P?r(P,l,u,h,f):await g()}case"SpecificResource":case"Image":case"Dataset":case"Sound":case"Text":case"TextualBody":case"Video":return f&&!m.width&&(m.width=f.width,m.height=f.height),n.getThumbnailFromResource(m,l,u,h)}return await g()}return{getBestThumbnailAtSize:r}}function GP(){return typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}function XP(){let e=GP();if(typeof e.IIIF_VAULT<"u")return e.IIIF_VAULT;if(typeof e.IIIFVault>"u")throw new Error("Vault not found");return e.IIIF_VAULT=new e.IIIFVault.Vault,e.IIIF_VAULT}var $i={};function Al(){return $i.helper||($i.vault=XP(),$i.loader=new Ml,$i.helper=em($i.vault,{imageServiceLoader:$i.loader})),$i}async function Oc(e,t,n){let{loader:r}=Al(),s=await r.loadService({id:e,width:t,height:n});return{id:Kp(s),width:t,height:n,imageService:s,thumbnail:void 0}}async function yS(e,t=512){let{vault:n,loader:r,helper:s}=Al(),l=[];for(let u of e.items)for(let h of n.get(u).items){let g=n.get(n.get(h).body[0]).service[0],m=await Oc(g.id,e.width,e.height),{best:S}=await s.getBestThumbnailAtSize(n,r,e,{maxHeight:t,maxWidth:t},!0);S&&(m.thumbnail=S),l.push(m)}return l}async function wS(e){let{vault:t}=Al(),n=[];for(let r of e.items){let s=t.get(r);n.push(...await yS(s))}return n}async function YP(e){try{let{vault:t}=Al(),n=await t.loadManifest(e);return n?wS(n):[]}catch(t){return console.log("ERR",t),[]}}var tm=Y(Ie(),1),ZP=e=>{let[t,n]=(0,Fc.useState)();return(0,Fc.useEffect)(()=>{Oc(e.id,e.width,e.height).then(r=>{n(r)})},[e.height,e.id,e.width]),(0,tm.jsx)("world-object",{x:e.x||0,y:e.y||0,width:e.width,height:e.height,scale:e.scale,children:t?(0,tm.jsx)(Zp,{tiles:t,x:e.x,y:e.y,width:e.crop?.width||e.width,height:e.crop?.height||e.height,rotation:e.rotation,crop:e.crop,enableSizes:e.enableSizes,enableThumbnail:e.enableThumbnail,renderOptions:e.renderOptions,children:e.children}):null})};var SS=Y(le(),1),KP=(e,t=[])=>{let n=st();(0,SS.useEffect)(()=>n?n.registerHook("useAfterPaint",e):()=>{},t)};var Ke=Y(le(),1);var Mc=Y(Ie(),1),$P=(e,{onCreated:t,resetWorldOnChange:n=!0,mode:r="explore",cover:s,containerRef:l,...u})=>{let[h,f]=(0,Ke.useState)(!1),[g,m]=(0,Ke.useState)(void 0),[S,E]=(0,Ke.useState)(void 0),P=(0,Ke.useRef)(),k=(0,Ke.useRef)(),R=(0,Ke.useMemo)(()=>({width:u.width,height:u.height}),[u.width,u.height]),[A,x,w,_]=lu(void 0,{width:u.width,height:u.height});Yt(()=>{let O=document.createElement("canvas");O.height=R.height,O.width=R.width,P.current=O},[]),Yt(()=>{let O=P.current;O&&(O.height=R.height,O.width=R.width)},[R.width,R.height]),(0,Ke.useEffect)(()=>x?x.runtime.registerHook("useAfterFrame",()=>{if(P.current)try{m(P.current.toDataURL())}catch(z){z instanceof Error&&E(z.message)}}):()=>{},[]),(0,Ke.useEffect)(()=>x?x.runtime.world.addLayoutSubscriber(z=>{z==="ready"&&f(!0)}):()=>{},[]),(0,Ke.useEffect)(()=>{x&&x.em&&x.em.updateBounds()},[R]),(0,Ke.useEffect)(()=>{x&&(x.runtime.mode=r)},[r]),(0,Ke.useEffect)(()=>{if(x){let O=x.runtime;O.resize(w.current.width,u.width,w.current.height,u.height),s?O.cover():O.goHome(),w.current.width=u.width,w.current.height=u.height,O.updateNextFrame()}},[u.width,u.height]),Yt(()=>{let O=k.current;O&&(O.style.width=`${R.width}px`,O.style.height=`${R.height}px`,O.style.pointerEvents="none",O.style.overflow="hidden")},[R.height,R.width]),Yt(()=>{let O=()=>{if(x&&x.runtime){let z=x.runtime;z.resize(w.current.width,u.width,w.current.height,u.height),w.current.width=u.width,w.current.height=u.height,z.updateNextFrame()}};return window.addEventListener("resize",O),()=>window.removeEventListener("resize",O)},[x,u.height,u.width]);let L=(0,Ke.useCallback)(function(z){let D=()=>{x&&(x.ready=!0)};return(0,Ke.useEffect)(()=>{if(x){let b=t&&t(x);return void(b&&b.then?b.then(D):D())}return()=>{}},[]),z.children},[x]);return(0,Ke.useEffect)(()=>{if(x&&x.runtime){let O=x.runtime;if(n)return O.world.addLayoutSubscriber(z=>{z==="recalculate-world-size"&&O.goHome({cover:s})})}return()=>{}},[x,s,n]),Yt(()=>{x&&So.render((0,Mc.jsx)(L,{children:(0,Mc.jsx)($n.Provider,{value:r,children:(0,Mc.jsx)(qn.Provider,{value:x,children:e})})}),x.runtime)},[x,r,e]),{loading:!g&&h,uri:g,imageError:S}};var xS=Y(le(),1),qP=(e,t=[])=>{let n=st();(0,xS.useEffect)(()=>n?n.registerHook("useBeforeFrame",e):()=>{},t)};var zr=Y(le(),1);var JP=(e=[])=>{let[t,n]=(0,zr.useState)(e),[r,s]=(0,zr.useState)(!1),[l,u]=(0,zr.useState)(),h=(0,zr.useCallback)(()=>{s(!0),u(void 0)},[]),f=(0,zr.useCallback)(E=>{s(!0),u(E)},[]),g=E=>{n(P=>P.map(k=>k.id===E.id?E:k))},m=(0,zr.useCallback)(E=>{let P=Yn();n(k=>[...k,{id:P,...E}]),s(!1),u(void 0)},[]),S=(0,zr.useCallback)(()=>{s(!1),u(void 0)},[]);return{isEditing:r,onDeselect:S,selectedAnnotation:l,onCreateNewAnnotation:m,annotations:t,onUpdateAnnotation:g,setIsEditing:s,setSelectedAnnotation:u,editAnnotation:f,addNewAnnotation:h}};function ek(e){return e.current==="sketch"}function tk(e,t){return e?t?{...e,...t||{},":hover":e[":hover"]?Object.assign(e[":hover"]||{},t[":hover"]||{}):t[":hover"],":active":e[":active"]?Object.assign(e[":active"]||{},t[":active"]||{}):t[":hover"]}:e:t}return uE(nk);})();
|
|
81
|
+
`}),n.htmlChildren]})};var Cn=F(yt(),1);var Fb=F(yt(),1);var Jo=()=>(0,Fb.useContext)(An);var Be=()=>{let t=Jo();return t?t.runtime:void 0};var Wb=F(yt(),1),Rg=(t,e=[])=>{let i=Be();(0,Wb.useEffect)(()=>i?i.registerHook("useAfterFrame",t):()=>{},e)};var Ib=F(yt(),1),Ja=(t,e=[])=>{let i=Be();(0,Ib.useEffect)(()=>i?i.registerHook("useFrame",t):()=>{},e)};var Ng=()=>{let t=Jo();return t&&t.canvas?t.canvas:void 0};var Pb=F(yt(),1);function _f(){return(0,Pb.useContext)(Vl)}var S4=({onCreate:t})=>{let e=(0,Cn.useRef)({x:0,y:0}),i=Ng(),n=_f(),u=Be(),[s,r]=(0,Cn.useState)(),[f,m]=(0,Cn.useState)(),v=Bo();return Ja(()=>{u&&s&&!f&&(u.pendingUpdate=!0)},[s,f]),Rg(()=>{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,Cn.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,Cn.useEffect)(()=>{let g=S=>{v==="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,v]),(0,Cn.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,Cn.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 wn=F(yt(),1);var np=F(yt(),1);async function yz(t,e,i){if(np.version.startsWith("18.")||np.version.startsWith("19.")){let n=await Promise.resolve().then(()=>F(vz(),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(Dg(),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 lp=F(Ft(),1),kh=wn.default.forwardRef(({children:t,...e},i)=>{let n=(0,wn.useRef)(),u=Be(),s=(0,wn.useRef)(0),r=(0,wn.useRef)(),f=(0,wn.useRef)();return Ja(()=>{if(e.relative){let m=n.current;if(m&&u){let v=u.getScaleFactor();s.current!==v&&(s.current=v,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,wn.useLayoutEffect)(()=>{let m=r.current;i&&m&&(typeof i=="function"?i(m):i.current=m);async function v(){if(m&&m.__host){let g=e.relative?(0,lp.jsx)("div",{ref:n,children:t}):t;await yz(m.__host.element,g,f)}}m&&m.__host?v():m&&(m.__onCreate=v)},[i,t,r,e.relative]),(0,wn.useLayoutEffect)(()=>()=>{f.current&&setTimeout(()=>{f.current.unmount()},0)},[]),(0,lp.jsx)("box",{html:!0,...e,ref:r})});kh.displayName="HTMLPortal";var bz=F(yt(),1);var jn=F(yt(),1);var xe=F(yt(),1);var pz=F(yt(),1);var $h=(t,e,i=[])=>{let n=Be(),u=n?n.world:void 0;(0,pz.useEffect)(()=>{if(n){let s=e,r=cn[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 ap(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 td=F(yt(),1);function Sz(){let t=(0,td.useRef)({ctrl:!1,shift:!1,alt:!1});return(0,td.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 up=(t,e)=>{let i=Bo(),n=Be(),u=_f(),s=(0,xe.useRef)(),r=(0,xe.useRef)(null),f=(0,xe.useRef)(),[m,v]=(0,xe.useState)(!1),g=(0,xe.useRef)(!1),S=(0,xe.useRef)({north:0,south:0,east:0,west:0}),p=Sz(),x=(0,xe.useCallback)(E=>_=>{if(g.current=!0,v(!0),u&&n){let{top:O,left:H}=u,U=n.viewerToWorld(_.pageX-H,_.pageY-O);f.current={x:U.x,y:U.y},s.current=E}},[u,n]),A=(0,xe.useMemo)(()=>t.width/t.height,[t.width,t.height]),R=(0,xe.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,U=t.width+O,q=t.height+H;if(U/q>=A){let J=q*A,w=U-J,[P,ut]=ap(E.east,E.west);E.west=E.west+w*ut,E.east=E.east-w*P}else{let J=U/A,w=q-J,[P,ut]=ap(E.north,E.south);E.north=E.north+w*P,E.south=E.south-w*ut}},[t.width,t.height,A]);Ja(()=>{f&&n&&n.updateNextFrame()}),(0,xe.useEffect)(()=>{n&&n.updateNextFrame()},[n,m]);let j=(0,xe.useCallback)(E=>{if(!n||!u||n.mode!=="sketch")return;let{top:_,left:O}=u,H=n.viewerToWorld(E.pageX-O,E.pageY-_),U=r.current,q=!t.maintainAspectRatio&&p.current.alt,Z=!q&&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),q&&(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),q&&(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),q&&(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),q&&(S.current.north=-S.current.south)),(t.maintainAspectRatio||Z)&&R(S.current),U){let J=S.current.west,w=S.current.north,P=t.width+S.current.east,ut=t.height+S.current.south;U.points[1]=Math.min(J,P),U.points[2]=Math.min(w,ut),U.points[3]=Math.max(J,P),U.points[4]=Math.max(w,ut),n.updateNextFrame()}},[n,t.width,t.height,t.maintainAspectRatio,u]);$h("mousemove",j,[t.width,t.height,u]),$h("pointermove",j,[t.width,t.height,u]);let T=(0,xe.useRef)();return(0,xe.useEffect)(()=>{T.current=()=>{if(g.current){let E=S.current.west,_=S.current.north,O=t.width+S.current.east,H=t.height+S.current.south,U=Math.min(E,O),q=Math.min(_,H),Z=Math.max(E,O),J=Math.max(_,H),w={x:(t.x||0)+U,y:(t.y||0)+q,width:Z-U||1,height:J-q||1};t.maintainAspectRatio,e(w),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,v(!1)}}},[e,t.height,t.width,t.x,t.y]),(0,xe.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:j,isEditing:m}};var me=F(Ft(),1);function sp({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:v,mouseEvent:g,isEditing:S}=up({x:r.x||0,y:r.y||0,width:r.width,height:r.height,maintainAspectRatio:u},i),p=(0,jn.useMemo)(()=>g("translate"),[g]),x=(0,jn.useMemo)(()=>g("east"),[g]),A=(0,jn.useMemo)(()=>g("west"),[g]),R=(0,jn.useMemo)(()=>g("south"),[g]),j=(0,jn.useMemo)(()=>g("north"),[g]),T=(0,jn.useMemo)(()=>g("south-east"),[g]),E=(0,jn.useMemo)(()=>g("south-west"),[g]),_=(0,jn.useMemo)(()=>g("north-east"),[g]),O=(0,jn.useMemo)(()=>g("north-west"),[g]),H=v==="sketch",U={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,me.jsx)(me.Fragment,{children:(0,me.jsxs)("world-object",{...r,children:[n,H&&e?(0,me.jsx)(kh,{ref:m,target:{x:0,y:0,height:r.height,width:r.width},relative:!0,interactive:!1,children:H&&e?(0,me.jsxs)(me.Fragment,{children:[(0,me.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,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("div",{title:"east",onTouchStart:x,onMouseDown:x,style:{...U,cursor:"e-resize",height:f*2,width:f,right:0,top:"50%",opacity:s?0:1,transform:`translate(${f/2}px, -${f}px)`}}),(0,me.jsx)("div",{title:"west",onMouseDown:A,style:{...U,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,me.jsx)("div",{title:"north",onMouseDown:j,style:{...U,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,me.jsx)("div",{title:"south",onMouseDown:R,style:{...U,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,me.jsx)("div",{title:"north-east",onMouseDown:_,style:{...U,cursor:"ne-resize",position:"absolute",height:f,width:f,right:0,top:0,transform:`translate(${f/2}px, -${f/2}px)`}}),(0,me.jsx)("div",{title:"south-east",onMouseDown:T,style:{...U,cursor:"se-resize",position:"absolute",height:f,width:f,bottom:0,right:0,transform:`translate(${f/2}px, ${f/2}px)`}}),(0,me.jsx)("div",{title:"south-west",onMouseDown:E,style:{...U,cursor:"sw-resize",position:"absolute",height:f,width:f,bottom:0,left:0,transform:`translate(-${f/2}px, ${f/2}px)`}}),(0,me.jsx)("div",{title:"north-west",onMouseDown:O,style:{...U,cursor:"nw-resize",position:"absolute",height:f,width:f,top:0,left:0,transform:`translate(-${f/2}px, -${f/2}px)`}})]}):null}):null]})})}var op=F(Ft(),1);function FM({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 v=(0,bz.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,op.jsx)(sp,{x:e.x,y:e.y,rotation:f,width:e.width,height:e.height,resizable:r,onSave:v,maintainAspectRatio:u,disableCardinalControls:s,children:(0,op.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 ed=F(yt(),1),mu=F(Ft(),1),cp=t=>{let e=t.width/(t.crop?.width||t.tiles.width),i=t.tiles.imageService.sizes||[],n=t.enableThumbnail,u=t.enableSizes,s=(0,ed.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,ed.useMemo)(()=>{let m=t.tiles.imageService.tiles||[];if(!m.length){let v=t.width,g=[1],S=1;for(;Math.pow(2,S)<v;)S=S*2,g.push(S);return[]}return m},[t.tiles.imageService]),f=(0,ed.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,mu.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,mu.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,mu.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,v)=>(0,mu.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},v)),r.map(m=>(m.scaleFactors||[]).map(v=>(0,mu.jsx)("tiled-image",{uri:t.tiles.imageService.id,display:{width:t.tiles.width,height:t.tiles.height},tile:m,scaleFactor:v,crop:t.crop,version3:f},`${t.tiles.imageService.id}-tile-${v}`)))]},t.tiles.imageService.id)},t.tiles.imageService.id)};var od=F(yt(),1);function rp(t){return t.id||t["@id"]}var WM=Object.defineProperty,IM=(t,e,i)=>e in t?WM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,id=(t,e,i)=>(IM(t,typeof e!="symbol"?e+"":e,i),i);function gu(t){return t.endsWith("info.json")?t:t.endsWith("/")?`${t}info.json`:`${t}/info.json`}var PM="http://library.stanford.edu/iiif/image-api/compliance.html#level0",zz="http://library.stanford.edu/iiif/image-api/compliance.html#level1",_z="http://library.stanford.edu/iiif/image-api/compliance.html#level2",kM="http://library.stanford.edu/iiif/image-api/conformance.html#level0",Az="http://library.stanford.edu/iiif/image-api/conformance.html#level1",Oz="http://library.stanford.edu/iiif/image-api/conformance.html#level2",$M="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",Mz="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",Cz="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",tC="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",Rz="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",Nz="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",eC="http://iiif.io/api/image/1/level0.json",iC="http://iiif.io/api/image/1/profiles/level0.json",Dz="http://iiif.io/api/image/1/level1.json",Hz="http://iiif.io/api/image/1/profiles/level1.json",Uz="http://iiif.io/api/image/1/level2.json",Bz="http://iiif.io/api/image/1/profiles/level2.json",nC="http://iiif.io/api/image/2/level0.json",lC="http://iiif.io/api/image/2/profiles/level0.json",wz="http://iiif.io/api/image/2/level1.json",jz="http://iiif.io/api/image/2/profiles/level1.json",Lz="http://iiif.io/api/image/2/level2.json",qz="http://iiif.io/api/image/2/profiles/level2.json",aC="level0",Gz="level1",Yz="level2",uC="http://iiif.io/api/image/2/level0",Qz="http://iiif.io/api/image/2/level1",Xz="http://iiif.io/api/image/2/level2",sC="https://iiif.io/api/image/1.1/compliance/#level0",Vz="https://iiif.io/api/image/1.1/compliance/#level1",Zz="https://iiif.io/api/image/1.1/compliance/#level2",Kz=[Xz,_z,Oz,Cz,Nz,Uz,Bz,Lz,qz,Yz,Zz],Jz=[...Kz,Qz,zz,Az,Mz,Rz,Dz,Hz,wz,jz,Gz,Vz],oC=[uC,Qz,Xz,PM,zz,_z,kM,Az,Oz,$M,Mz,Cz,tC,Rz,Nz,eC,iC,Dz,Hz,Uz,Bz,nC,lC,wz,jz,Lz,qz,aC,Gz,Yz,sC,Vz,Zz];var cC={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["sizeByWhListed"]},rC={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPx","regionSquare","sizeByWhListed","sizeByH","sizeByW","sizeByWh"]},fC={extraFormats:["jpg","png"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPct","regionByPx","regionSquare","rotationBy90s","sizeByWhListed","sizeByConfinedWh","sizeByH","sizeByPct","sizeByW","sizeByWh"]};function hC(t){return Kz.indexOf(t)!==-1?fC:Jz.indexOf(t)!==-1?rC:cC}function dC(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=hC(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 mC(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 gC(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 yC(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 pC(t,e=""){let{path:i,scheme:n,server:u,prefix:s}=yC(t,e),r=(i||"").split("/").reverse(),[f,m,v,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 v>"u"||typeof m>"u")throw new Error("Invalid image request");return{type:"image",scheme:n,server:u,prefix:s,identifier:p,originalPath:i,region:mC(g),size:gC(v),rotation:vC(m),quality:x[0],format:x[1]}}function SC(t){let e=pC(gu(t.id));if(e.type!=="info")throw new Error("Invalid service URL");let i=dC(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 bC(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 EC(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 ee(t){if(t["@id"])return t["@id"];if(t.id)return t.id}function ld(t){if(!t||!t.profile||!ee(t))return!1;let e=Array.isArray(t.profile)?t.profile:[t.profile];for(let i of e)if(typeof i=="string"&&oC.indexOf(i)!==-1)return!0;return!1}function xC(t){if(!ld(t))return!1;let e=Array.isArray(t.profile)?t.profile:[t.profile];for(let i of e)if(typeof i=="string"){if(Jz.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 nd(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 hp(t){return ld(t)?nd(0,t)?0:nd(1,t)?1:nd(2,t)?2:null:null}function Fz(t){return(t["@context"]?Array.isArray(t["@context"])?t["@context"]:[t["@context"]]:[]).indexOf("http://iiif.io/api/image/3/context.json")!==-1}function TC(t){if(!xC(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:ee(t),type:"variable",minWidth:0,minHeight:0,maxHeight:s.maxHeight||s.maxWidth,maxWidth:s.maxWidth||s.maxHeight,level:hp(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:ee(t),type:"variable",minHeight:0,minWidth:0,maxHeight:r.height||r.width,maxWidth:r.width,level:hp(t),version:Fz(t)?3:2})}}return e}function Ez(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 zC(t){if(t["@type"])return t["@type"];if(t.type)return t.type}function ad(t){if(typeof t=="string")return Ez(t);let e=zC(t);if(e!=="Image"&&e!=="sc:Image")return null;let i=t,n=ee(i);return n?n&&i.width&&i.height?{id:n,type:"fixed",width:i.width,height:i.height,unsafe:!0}:Ez(n):null}function _C(t){return ld(t)?(t&&t.sizes?t.sizes:[]).map(e=>({id:ee(t),type:"fixed-service",height:e.height,width:e.width,level:hp(t),version:Fz(t)?3:2})):[]}function xz(t){let e=[],i=t.length;for(let n=0;n<i;n++){let u=t[n];if(!u)continue;let s=_C(u);s.length&&e.push(...s);let r=TC(u);r.length&&e.push(...r)}return e}function Wz(t){let e=t.service?Array.isArray(t.service)?t.service:[t.service]:[],i=e.length,n=[];for(let u=0;u<i;u++)ld(e[u])&&n.push(e[u]);return n}function AC(t,e=!0,i){let n=[],u=ad(t);if(u===null)return n;let s=t;if(n.push(u),e&&s&&s.width&&s.height){let r=[],f=Wz(s);for(let m of f){let v={id:ee(m),width:s.width,height:s.height};if(i.canLoadSync(v)){let g=i.loadServiceSync(v);g&&(g.height||(g.height=s.height),g.width||(g.width=s.width),r.push(...xz([g])))}}if(r.length)return n.push(...r),n}return s.service&&n.push(...xz(s.service)),n}function OC({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 MC({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 CC(t){return`${t.mirror?"!":""}${(t.angle||0)%360}`}function RC(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 v=e["@context"]?Array.isArray(e["@context"])?e["@context"]:[e["@context"]]:[],g=e.profile,S=v.indexOf("http://iiif.io/api/image/2/context.json")!==-1||g==="level2",p=v.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,OC(s),MC(u),CC(r),`${m}.${f}`].filter(Boolean).join("/")}function fp(t,e,i){let n=SC({"@context":t.version===3?"http://iiif.io/api/image/3/context.json":"http://iiif.io/api/image/2/context.json",id:gu(ee(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:RC(n),type:"fixed",width:e,height:i||t.height/(t.width||1)*e,unsafe:t.width>e}}function Zs(t){let e=t.replace(/(https?:\/\/)?(www.)?/i,"");return e.indexOf("/")!==-1?e.split("/")[0]:e}function NC(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 DC(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),NC(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 v=e.length;for(let g=0;g<v;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=fp(A,n.width,n.height);m(R,f)}else{u(()=>"Checking for an image from the tile source 3",2);let R=fp(A,A.width,A.height);m(R,f)}if(A.type==="variable"&&A.maxWidth){let R=fp({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 HC(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 v=n/m,g=[m];for(;v>=f.width;)m=m*2,g.push(m),v=v/2;s.push({...f,scaleFactors:g})}return s}function UC(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 Tz(t){return nd(0,t)}var Kc=class{constructor(t={}){id(this,"config",{verificationsRequired:1,approximateServices:!1,enableFetching:!0,disableThrottling:!1}),id(this,"fetchingCount",0),id(this,"imageServices",{}),id(this,"knownImageServers",{}),this.config=Object.assign(this.config,t)}setConfig(t){Object.assign(this.config,t)}sample(t,e,i=!0){let n=Zs(ee(t)),u=gu(ee(t)),s=this.knownImageServers[n];return this.imageServices[u]=Object.assign(t,{real:!0}),!s&&t.tiles&&!Tz(t)?(this.knownImageServers[n]={verifications:0,malformed:!1,root:n,preLoaded:i,sampledId:ee(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:bC(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=Zs(ee(t)),s=this.knownImageServers[u],r=gu(ee(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)||Tz(t.source)?null:(this.imageServices[r]||(this.imageServices[r]={"@context":s.result.context,"@id":ee(t),id:ee(t),protocol:"http://iiif.io/api/image",tiles:n?.tiles||HC(t.width,t.height,s.result.sampledTiles),sizes:n?.sizes||EC(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 DC(e,[()=>n,()=>u])}async getImageCandidates(t,e=!0){let i=t;if(e&&i&&i.height&&i.width){let n=Wz(i);for(let u of n){let s={id:ee(u),width:u.width?u.width:i.width,height:u.height?u.height:i.height,source:u};await this.loadService(s)}}return AC(t,e,this)}async verify(t){let e=this.predict(t,!1,!0),i=await this.fetchService(ee(t));if(!e)return!1;let n=e.height===i.height&&e.width===i.width&&e["@context"]===i["@context"]&&UC(e.sizes||[],i.sizes||[]);if(n){let u=Zs(ee(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:ee(t),i=gu(e);if(this.imageServices[i])return!0;let n=this.knownImageServers[Zs(e)];return!!(n&&!n.malformed&&n.verifications>=this.config.verificationsRequired)}async markAsMalformed(t){return this.knownImageServers[Zs(ee(t))].malformed=!0,this.loadService(t,!0)}async fetchService(t,e=!1){let i=gu(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[Zs(ee(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(ee(t),e);return this.fetchingCount--,n.real&&this.sample(n,t),n}loadServiceSync(t){let e=gu(ee(t));return this.imageServices[e]?this.imageServices[e]:this.config.approximateServices?this.predict(t):null}},O8=new Kc;var ud={},dp={get(t){return t},setMetaValue([t,e,i],n){let u=dp.getResourceMeta(t,e),s=u?u[i]:void 0,r=typeof n=="function"?n(s):n;ud[t]={...ud[t]||{},[e]:{...(ud[t]||{})[e]||{},[i]:r}}},getResourceMeta:(t,e)=>{let i=ud[t];if(i)return e?i[e]:i}};var Iz=new Kc;function mp(t=dp,e={}){let i=e.imageServiceLoader||Iz;async function n(u,s,r=!1,f=[],m){let v=()=>i.getThumbnailFromResource(void 0,s,r,f);if(!u)return await i.getThumbnailFromResource(void 0,s,r,f);if(typeof u=="string"){let p=ad(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:ad(g),fallback:[],log:[]};if(!g)return await v();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 v():n(p.items[0],s,r,f,m)}case"Collection":{let x=g.items[0];return x?n(x,s,r,f,m):await v()}case"Manifest":{let x=g.items[0];return x?n(x,s,r,f,m):await v()}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 v()}return{getBestThumbnailAtSize:n}}function BC(){return typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}function wC(){let t=BC();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 Jc(){return vu.helper||(vu.vault=wC(),vu.loader=new Kc,vu.helper=mp(vu.vault,{imageServiceLoader:vu.loader})),vu}async function sd(t,e,i){let{loader:n}=Jc(),u=await n.loadService({id:t,width:e,height:i});return{id:rp(u),width:e,height:i,imageService:u,thumbnail:void 0}}async function Pz(t,e=512){let{vault:i,loader:n,helper:u}=Jc(),s=[];for(let r of t.items)for(let f of i.get(r).items){let v=i.get(i.get(f).body[0]).service[0],g=await sd(v.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 kz(t){let{vault:e}=Jc(),i=[];for(let n of t.items){let u=e.get(n);i.push(...await Pz(u))}return i}async function jC(t){try{let{vault:e}=Jc(),i=await e.loadManifest(t);return i?kz(i):[]}catch(e){return console.log("ERR",e),[]}}var gp=F(Ft(),1),LC=t=>{let[e,i]=(0,od.useState)();return(0,od.useEffect)(()=>{sd(t.id,t.width,t.height).then(n=>{i(n)})},[t.height,t.id,t.width]),(0,gp.jsx)("world-object",{x:t.x||0,y:t.y||0,width:t.width,height:t.height,scale:t.scale,children:e?(0,gp.jsx)(cp,{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 $z=F(yt(),1),qC=(t,e=[])=>{let i=Be();(0,$z.useEffect)(()=>i?i.registerHook("useAfterPaint",t):()=>{},e)};var Te=F(yt(),1);var cd=F(Ft(),1),GC=(t,{onCreated:e,resetWorldOnChange:i=!0,mode:n="explore",cover:u,containerRef:s,...r})=>{let[f,m]=(0,Te.useState)(!1),[v,g]=(0,Te.useState)(void 0),[S,p]=(0,Te.useState)(void 0),x=(0,Te.useRef)(),A=(0,Te.useRef)(),R=(0,Te.useMemo)(()=>({width:r.width,height:r.height}),[r.width,r.height]),[j,T,E,_]=Tf(void 0,{width:r.width,height:r.height});_i(()=>{let H=document.createElement("canvas");H.height=R.height,H.width=R.width,x.current=H},[]),_i(()=>{let H=x.current;H&&(H.height=R.height,H.width=R.width)},[R.width,R.height]),(0,Te.useEffect)(()=>T?T.runtime.registerHook("useAfterFrame",()=>{if(x.current)try{g(x.current.toDataURL())}catch(U){U instanceof Error&&p(U.message)}}):()=>{},[]),(0,Te.useEffect)(()=>T?T.runtime.world.addLayoutSubscriber(U=>{U==="ready"&&m(!0)}):()=>{},[]),(0,Te.useEffect)(()=>{T&&T.em&&T.em.updateBounds()},[R]),(0,Te.useEffect)(()=>{T&&(T.runtime.mode=n)},[n]),(0,Te.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]),_i(()=>{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]),_i(()=>{let H=()=>{if(T&&T.runtime){let U=T.runtime;U.resize(E.current.width,r.width,E.current.height,r.height),E.current.width=r.width,E.current.height=r.height,U.updateNextFrame()}};return window.addEventListener("resize",H),()=>window.removeEventListener("resize",H)},[T,r.height,r.width]);let O=(0,Te.useCallback)(function(U){let q=()=>{T&&(T.ready=!0)};return(0,Te.useEffect)(()=>{if(T){let Z=e&&e(T);return void(Z&&Z.then?Z.then(q):q())}return()=>{}},[]),U.children},[T]);return(0,Te.useEffect)(()=>{if(T&&T.runtime){let H=T.runtime;if(i)return H.world.addLayoutSubscriber(U=>{U==="recalculate-world-size"&&H.goHome({cover:u})})}return()=>{}},[T,u,i]),_i(()=>{T&&$u.render((0,cd.jsx)(O,{children:(0,cd.jsx)(_n.Provider,{value:n,children:(0,cd.jsx)(An.Provider,{value:T,children:t})})}),T.runtime)},[T,n,t]),{loading:!v&&f,uri:v,imageError:S}};var t_=F(yt(),1),YC=(t,e=[])=>{let i=Be();(0,t_.useEffect)(()=>i?i.registerHook("useBeforeFrame",t):()=>{},e)};var xl=F(yt(),1);var QC=(t=[])=>{let[e,i]=(0,xl.useState)(t),[n,u]=(0,xl.useState)(!1),[s,r]=(0,xl.useState)(),f=(0,xl.useCallback)(()=>{u(!0),r(void 0)},[]),m=(0,xl.useCallback)(p=>{u(!0),r(p)},[]),v=p=>{i(x=>x.map(A=>A.id===p.id?p:A))},g=(0,xl.useCallback)(p=>{let x=xn();i(A=>[...A,{id:x,...p}]),u(!1),r(void 0)},[]),S=(0,xl.useCallback)(()=>{u(!1),r(void 0)},[]);return{isEditing:n,onDeselect:S,selectedAnnotation:s,onCreateNewAnnotation:g,annotations:e,onUpdateAnnotation:v,setIsEditing:u,setSelectedAnnotation:r,editAnnotation:m,addNewAnnotation:f}};function XC(t){return t.current==="sketch"}function VC(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 OA(ZC);})();
|
|
80
82
|
/*! Bundled license information:
|
|
81
83
|
|
|
82
84
|
normalize-wheel/src/isEventSupported.js:
|
|
@@ -95,56 +97,78 @@ normalize-wheel/src/isEventSupported.js:
|
|
|
95
97
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
96
98
|
*)
|
|
97
99
|
|
|
98
|
-
react/cjs/react.production.
|
|
100
|
+
react/cjs/react.production.js:
|
|
99
101
|
(**
|
|
100
102
|
* @license React
|
|
101
|
-
* react.production.
|
|
103
|
+
* react.production.js
|
|
102
104
|
*
|
|
103
|
-
* Copyright (c)
|
|
105
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
104
106
|
*
|
|
105
107
|
* This source code is licensed under the MIT license found in the
|
|
106
108
|
* LICENSE file in the root directory of this source tree.
|
|
107
109
|
*)
|
|
108
110
|
|
|
109
|
-
react/cjs/react-jsx-runtime.production.
|
|
111
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
110
112
|
(**
|
|
111
113
|
* @license React
|
|
112
|
-
* react-jsx-runtime.production.
|
|
114
|
+
* react-jsx-runtime.production.js
|
|
113
115
|
*
|
|
114
|
-
* Copyright (c)
|
|
116
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
115
117
|
*
|
|
116
118
|
* This source code is licensed under the MIT license found in the
|
|
117
119
|
* LICENSE file in the root directory of this source tree.
|
|
118
120
|
*)
|
|
119
121
|
|
|
120
|
-
scheduler/cjs/scheduler.production.
|
|
122
|
+
scheduler/cjs/scheduler.production.js:
|
|
121
123
|
(**
|
|
122
124
|
* @license React
|
|
123
|
-
* scheduler.production.
|
|
125
|
+
* scheduler.production.js
|
|
124
126
|
*
|
|
125
|
-
* Copyright (c)
|
|
127
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
126
128
|
*
|
|
127
129
|
* This source code is licensed under the MIT license found in the
|
|
128
130
|
* LICENSE file in the root directory of this source tree.
|
|
129
131
|
*)
|
|
130
132
|
|
|
131
|
-
react-reconciler/cjs/react-reconciler.production.
|
|
133
|
+
react-reconciler/cjs/react-reconciler.production.js:
|
|
132
134
|
(**
|
|
133
135
|
* @license React
|
|
134
|
-
* react-reconciler.production.
|
|
136
|
+
* react-reconciler.production.js
|
|
135
137
|
*
|
|
136
|
-
* Copyright (c)
|
|
138
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
137
139
|
*
|
|
138
140
|
* This source code is licensed under the MIT license found in the
|
|
139
141
|
* LICENSE file in the root directory of this source tree.
|
|
140
142
|
*)
|
|
141
143
|
|
|
142
|
-
react-
|
|
144
|
+
react-reconciler/cjs/react-reconciler-constants.production.js:
|
|
143
145
|
(**
|
|
144
146
|
* @license React
|
|
145
|
-
* react-
|
|
147
|
+
* react-reconciler-constants.production.js
|
|
146
148
|
*
|
|
147
|
-
* Copyright (c)
|
|
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.production.js:
|
|
156
|
+
(**
|
|
157
|
+
* @license React
|
|
158
|
+
* react-dom.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
|
+
|
|
166
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
167
|
+
(**
|
|
168
|
+
* @license React
|
|
169
|
+
* react-dom-client.production.js
|
|
170
|
+
*
|
|
171
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
148
172
|
*
|
|
149
173
|
* This source code is licensed under the MIT license found in the
|
|
150
174
|
* LICENSE file in the root directory of this source tree.
|