@puth/gui 0.1.2 → 0.1.4

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.
@@ -1,89 +0,0 @@
1
- var Sw=Object.defineProperty;var bw=(e,t,n)=>t in e?Sw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var U=(e,t,n)=>bw(e,typeof t!="symbol"?t+"":t,n);function Ew(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function qc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qh={exports:{}},Gl={},ev={exports:{}},X={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Vo=Symbol.for("react.element"),Cw=Symbol.for("react.portal"),Aw=Symbol.for("react.fragment"),Ow=Symbol.for("react.strict_mode"),Pw=Symbol.for("react.profiler"),kw=Symbol.for("react.provider"),Tw=Symbol.for("react.context"),Rw=Symbol.for("react.forward_ref"),Nw=Symbol.for("react.suspense"),Dw=Symbol.for("react.memo"),Mw=Symbol.for("react.lazy"),Md=Symbol.iterator;function jw(e){return e===null||typeof e!="object"?null:(e=Md&&e[Md]||e["@@iterator"],typeof e=="function"?e:null)}var tv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nv=Object.assign,rv={};function ki(e,t,n){this.props=e,this.context=t,this.refs=rv,this.updater=n||tv}ki.prototype.isReactComponent={};ki.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")};ki.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function iv(){}iv.prototype=ki.prototype;function ef(e,t,n){this.props=e,this.context=t,this.refs=rv,this.updater=n||tv}var tf=ef.prototype=new iv;tf.constructor=ef;nv(tf,ki.prototype);tf.isPureReactComponent=!0;var jd=Array.isArray,ov=Object.prototype.hasOwnProperty,nf={current:null},sv={key:!0,ref:!0,__self:!0,__source:!0};function lv(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)ov.call(t,r)&&!sv.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Vo,type:e,key:o,ref:s,props:i,_owner:nf.current}}function Iw(e,t){return{$$typeof:Vo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function rf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vo}function Lw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Id=/\/+/g;function ja(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Lw(""+e.key):t.toString(36)}function Ls(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Vo:case Cw:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+ja(s,0):r,jd(i)?(n="",e!=null&&(n=e.replace(Id,"$&/")+"/"),Ls(i,t,n,"",function(u){return u})):i!=null&&(rf(i)&&(i=Iw(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Id,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",jd(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+ja(o,l);s+=Ls(o,t,n,a,i)}else if(a=jw(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+ja(o,l++),s+=Ls(o,t,n,a,i);else if(o==="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 s}function as(e,t,n){if(e==null)return e;var r=[],i=0;return Ls(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Fw(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 Ye={current:null},Fs={transition:null},zw={ReactCurrentDispatcher:Ye,ReactCurrentBatchConfig:Fs,ReactCurrentOwner:nf};function av(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:as,forEach:function(e,t,n){as(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return as(e,function(){t++}),t},toArray:function(e){return as(e,function(t){return t})||[]},only:function(e){if(!rf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=ki;X.Fragment=Aw;X.Profiler=Pw;X.PureComponent=ef;X.StrictMode=Ow;X.Suspense=Nw;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zw;X.act=av;X.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=nv({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=nf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)ov.call(t,a)&&!sv.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Vo,type:e.type,key:i,ref:o,props:r,_owner:s}};X.createContext=function(e){return e={$$typeof:Tw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:kw,_context:e},e.Consumer=e};X.createElement=lv;X.createFactory=function(e){var t=lv.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:Rw,render:e}};X.isValidElement=rf;X.lazy=function(e){return{$$typeof:Mw,_payload:{_status:-1,_result:e},_init:Fw}};X.memo=function(e,t){return{$$typeof:Dw,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=Fs.transition;Fs.transition={};try{e()}finally{Fs.transition=t}};X.unstable_act=av;X.useCallback=function(e,t){return Ye.current.useCallback(e,t)};X.useContext=function(e){return Ye.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return Ye.current.useDeferredValue(e)};X.useEffect=function(e,t){return Ye.current.useEffect(e,t)};X.useId=function(){return Ye.current.useId()};X.useImperativeHandle=function(e,t,n){return Ye.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return Ye.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return Ye.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return Ye.current.useMemo(e,t)};X.useReducer=function(e,t,n){return Ye.current.useReducer(e,t,n)};X.useRef=function(e){return Ye.current.useRef(e)};X.useState=function(e){return Ye.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return Ye.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return Ye.current.useTransition()};X.version="18.3.1";ev.exports=X;var w=ev.exports;const Ke=qc(w),Bw=Ew({__proto__:null,default:Ke},[w]);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Uw=w,Vw=Symbol.for("react.element"),$w=Symbol.for("react.fragment"),Ww=Object.prototype.hasOwnProperty,Hw=Uw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kw={key:!0,ref:!0,__self:!0,__source:!0};function uv(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Ww.call(t,r)&&!Kw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Vw,type:e,key:o,ref:s,props:i,_owner:Hw.current}}Gl.Fragment=$w;Gl.jsx=uv;Gl.jsxs=uv;qh.exports=Gl;var m=qh.exports,Pu={},cv={exports:{}},pt={},fv={exports:{}},dv={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(O,D){var L=O.length;O.push(D);e:for(;0<L;){var H=L-1>>>1,oe=O[H];if(0<i(oe,D))O[H]=D,O[L]=oe,L=H;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var D=O[0],L=O.pop();if(L!==D){O[0]=L;e:for(var H=0,oe=O.length,rt=oe>>>1;H<rt;){var Ae=2*(H+1)-1,$e=O[Ae],be=Ae+1,F=O[be];if(0>i($e,L))be<oe&&0>i(F,$e)?(O[H]=F,O[be]=L,H=be):(O[H]=$e,O[Ae]=L,H=Ae);else if(be<oe&&0>i(F,L))O[H]=F,O[be]=L,H=be;else break e}}return D}function i(O,D){var L=O.sortIndex-D.sortIndex;return L!==0?L:O.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,d=3,p=!1,y=!1,h=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(O){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=O)r(u),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(u)}}function S(O){if(h=!1,_(O),!y)if(n(a)!==null)y=!0,W(b);else{var D=n(u);D!==null&&Y(S,D.startTime-O)}}function b(O,D){y=!1,h&&(h=!1,g(A),A=-1),p=!0;var L=d;try{for(_(D),f=n(a);f!==null&&(!(f.expirationTime>D)||O&&!M());){var H=f.callback;if(typeof H=="function"){f.callback=null,d=f.priorityLevel;var oe=H(f.expirationTime<=D);D=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===n(a)&&r(a),_(D)}else r(a);f=n(a)}if(f!==null)var rt=!0;else{var Ae=n(u);Ae!==null&&Y(S,Ae.startTime-D),rt=!1}return rt}finally{f=null,d=L,p=!1}}var E=!1,C=null,A=-1,T=5,P=-1;function M(){return!(e.unstable_now()-P<T)}function R(){if(C!==null){var O=e.unstable_now();P=O;var D=!0;try{D=C(!0,O)}finally{D?z():(E=!1,C=null)}}else E=!1}var z;if(typeof v=="function")z=function(){v(R)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,G=B.port2;B.port1.onmessage=R,z=function(){G.postMessage(null)}}else z=function(){x(R,0)};function W(O){C=O,E||(E=!0,z())}function Y(O,D){A=x(function(){O(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,W(b))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(O){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var L=d;d=D;try{return O()}finally{d=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,D){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=d;d=O;try{return D()}finally{d=L}},e.unstable_scheduleCallback=function(O,D,L){var H=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?H+L:H):L=H,O){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=L+oe,O={id:c++,callback:D,priorityLevel:O,startTime:L,expirationTime:oe,sortIndex:-1},L>H?(O.sortIndex=L,t(u,O),n(a)===null&&O===n(u)&&(h?(g(A),A=-1):h=!0,Y(S,L-H))):(O.sortIndex=oe,t(a,O),y||p||(y=!0,W(b))),O},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(O){var D=d;return function(){var L=d;d=D;try{return O.apply(this,arguments)}finally{d=L}}}})(dv);fv.exports=dv;var Gw=fv.exports;/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Qw=w,ft=Gw;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var pv=new Set,yo={};function Ir(e,t){yi(e,t),yi(e+"Capture",t)}function yi(e,t){for(yo[e]=t,e=0;e<t.length;e++)pv.add(t[e])}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ku=Object.prototype.hasOwnProperty,Yw=/^[: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]*$/,Ld={},Fd={};function Xw(e){return ku.call(Fd,e)?!0:ku.call(Ld,e)?!1:Yw.test(e)?Fd[e]=!0:(Ld[e]=!0,!1)}function Zw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jw(e,t,n,r){if(t===null||typeof t>"u"||Zw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xe(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Xe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var of=/[\-:]([a-z])/g;function sf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(of,sf);Le[t]=new Xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(of,sf);Le[t]=new Xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(of,sf);Le[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function lf(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Jw(t,n,i,r)&&(n=null),r||i===null?Xw(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Pn=Qw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,us=Symbol.for("react.element"),Qr=Symbol.for("react.portal"),Yr=Symbol.for("react.fragment"),af=Symbol.for("react.strict_mode"),Tu=Symbol.for("react.profiler"),hv=Symbol.for("react.provider"),vv=Symbol.for("react.context"),uf=Symbol.for("react.forward_ref"),Ru=Symbol.for("react.suspense"),Nu=Symbol.for("react.suspense_list"),cf=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),gv=Symbol.for("react.offscreen"),zd=Symbol.iterator;function Ui(e){return e===null||typeof e!="object"?null:(e=zd&&e[zd]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,Ia;function qi(e){if(Ia===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ia=t&&t[1]||""}return`
34
- `+Ia+e}var La=!1;function Fa(e,t){if(!e||La)return"";La=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
- `),o=r.stack.split(`
36
- `),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=`
37
- `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{La=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qi(e):""}function qw(e){switch(e.tag){case 5:return qi(e.type);case 16:return qi("Lazy");case 13:return qi("Suspense");case 19:return qi("SuspenseList");case 0:case 2:case 15:return e=Fa(e.type,!1),e;case 11:return e=Fa(e.type.render,!1),e;case 1:return e=Fa(e.type,!0),e;default:return""}}function Du(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 Yr:return"Fragment";case Qr:return"Portal";case Tu:return"Profiler";case af:return"StrictMode";case Ru:return"Suspense";case Nu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vv:return(e.displayName||"Context")+".Consumer";case hv:return(e._context.displayName||"Context")+".Provider";case uf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cf:return t=e.displayName||null,t!==null?t:Du(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return Du(e(t))}catch{}}return null}function e_(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 Du(t);case 8:return t===af?"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 Xn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t_(e){var t=mv(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cs(e){e._valueTracker||(e._valueTracker=t_(e))}function yv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rl(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 Mu(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xn(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 wv(e,t){t=t.checked,t!=null&&lf(e,"checked",t,!1)}function ju(e,t){wv(e,t);var n=Xn(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")?Iu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Iu(e,t.type,Xn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ud(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 Iu(e,t,n){(t!=="number"||rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var eo=Array.isArray;function ai(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Lu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(eo(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Xn(n)}}function _v(e,t){var n=Xn(t.value),r=Xn(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 $d(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xv(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 Fu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fs,Sv=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fs=fs||document.createElement("div"),fs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var io={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},n_=["Webkit","ms","Moz","O"];Object.keys(io).forEach(function(e){n_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),io[t]=io[e]})});function bv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||io.hasOwnProperty(e)&&io[e]?(""+t).trim():t+"px"}function Ev(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var r_=we({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 zu(e,t){if(t){if(r_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Bu(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 Uu=null;function ff(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vu=null,ui=null,ci=null;function Wd(e){if(e=Ho(e)){if(typeof Vu!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Jl(t),Vu(e.stateNode,e.type,t))}}function Cv(e){ui?ci?ci.push(e):ci=[e]:ui=e}function Av(){if(ui){var e=ui,t=ci;if(ci=ui=null,Wd(e),t)for(e=0;e<t.length;e++)Wd(t[e])}}function Ov(e,t){return e(t)}function Pv(){}var za=!1;function kv(e,t,n){if(za)return e(t,n);za=!0;try{return Ov(e,t,n)}finally{za=!1,(ui!==null||ci!==null)&&(Pv(),Av())}}function _o(e,t){var n=e.stateNode;if(n===null)return null;var r=Jl(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(k(231,t,typeof n));return n}var $u=!1;if(_n)try{var Vi={};Object.defineProperty(Vi,"passive",{get:function(){$u=!0}}),window.addEventListener("test",Vi,Vi),window.removeEventListener("test",Vi,Vi)}catch{$u=!1}function i_(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var oo=!1,il=null,ol=!1,Wu=null,o_={onError:function(e){oo=!0,il=e}};function s_(e,t,n,r,i,o,s,l,a){oo=!1,il=null,i_.apply(o_,arguments)}function l_(e,t,n,r,i,o,s,l,a){if(s_.apply(this,arguments),oo){if(oo){var u=il;oo=!1,il=null}else throw Error(k(198));ol||(ol=!0,Wu=u)}}function Lr(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 Tv(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 Hd(e){if(Lr(e)!==e)throw Error(k(188))}function a_(e){var t=e.alternate;if(!t){if(t=Lr(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Hd(i),e;if(o===r)return Hd(i),t;o=o.sibling}throw Error(k(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function Rv(e){return e=a_(e),e!==null?Nv(e):null}function Nv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Nv(e);if(t!==null)return t;e=e.sibling}return null}var Dv=ft.unstable_scheduleCallback,Kd=ft.unstable_cancelCallback,u_=ft.unstable_shouldYield,c_=ft.unstable_requestPaint,xe=ft.unstable_now,f_=ft.unstable_getCurrentPriorityLevel,df=ft.unstable_ImmediatePriority,Mv=ft.unstable_UserBlockingPriority,sl=ft.unstable_NormalPriority,d_=ft.unstable_LowPriority,jv=ft.unstable_IdlePriority,Ql=null,qt=null;function p_(e){if(qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(Ql,e,void 0,(e.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:g_,h_=Math.log,v_=Math.LN2;function g_(e){return e>>>=0,e===0?32:31-(h_(e)/v_|0)|0}var ds=64,ps=4194304;function to(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 ll(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=to(l):(o&=s,o!==0&&(r=to(o)))}else s=n&~i,s!==0?r=to(s):o!==0&&(r=to(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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-jt(t),i=1<<n,r|=e[n],t&=~i;return r}function m_(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 y_(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-jt(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=m_(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Hu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Iv(){var e=ds;return ds<<=1,!(ds&4194240)&&(ds=64),e}function Ba(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $o(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function w_(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 i=31-jt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function pf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var re=0;function Lv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Fv,hf,zv,Bv,Uv,Ku=!1,hs=[],Bn=null,Un=null,Vn=null,xo=new Map,So=new Map,jn=[],__="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 Gd(e,t){switch(e){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Un=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":xo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":So.delete(t.pointerId)}}function $i(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Ho(t),t!==null&&hf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function x_(e,t,n,r,i){switch(t){case"focusin":return Bn=$i(Bn,e,t,n,r,i),!0;case"dragenter":return Un=$i(Un,e,t,n,r,i),!0;case"mouseover":return Vn=$i(Vn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return xo.set(o,$i(xo.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,So.set(o,$i(So.get(o)||null,e,t,n,r,i)),!0}return!1}function Vv(e){var t=mr(e.target);if(t!==null){var n=Lr(t);if(n!==null){if(t=n.tag,t===13){if(t=Tv(n),t!==null){e.blockedOn=t,Uv(e.priority,function(){zv(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 zs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Uu=r,n.target.dispatchEvent(r),Uu=null}else return t=Ho(n),t!==null&&hf(t),e.blockedOn=n,!1;t.shift()}return!0}function Qd(e,t,n){zs(e)&&n.delete(t)}function S_(){Ku=!1,Bn!==null&&zs(Bn)&&(Bn=null),Un!==null&&zs(Un)&&(Un=null),Vn!==null&&zs(Vn)&&(Vn=null),xo.forEach(Qd),So.forEach(Qd)}function Wi(e,t){e.blockedOn===t&&(e.blockedOn=null,Ku||(Ku=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,S_)))}function bo(e){function t(i){return Wi(i,e)}if(0<hs.length){Wi(hs[0],e);for(var n=1;n<hs.length;n++){var r=hs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Bn!==null&&Wi(Bn,e),Un!==null&&Wi(Un,e),Vn!==null&&Wi(Vn,e),xo.forEach(t),So.forEach(t),n=0;n<jn.length;n++)r=jn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<jn.length&&(n=jn[0],n.blockedOn===null);)Vv(n),n.blockedOn===null&&jn.shift()}var fi=Pn.ReactCurrentBatchConfig,al=!0;function b_(e,t,n,r){var i=re,o=fi.transition;fi.transition=null;try{re=1,vf(e,t,n,r)}finally{re=i,fi.transition=o}}function E_(e,t,n,r){var i=re,o=fi.transition;fi.transition=null;try{re=4,vf(e,t,n,r)}finally{re=i,fi.transition=o}}function vf(e,t,n,r){if(al){var i=Gu(e,t,n,r);if(i===null)Xa(e,t,r,ul,n),Gd(e,r);else if(x_(i,e,t,n,r))r.stopPropagation();else if(Gd(e,r),t&4&&-1<__.indexOf(e)){for(;i!==null;){var o=Ho(i);if(o!==null&&Fv(o),o=Gu(e,t,n,r),o===null&&Xa(e,t,r,ul,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Xa(e,t,r,null,n)}}var ul=null;function Gu(e,t,n,r){if(ul=null,e=ff(r),e=mr(e),e!==null)if(t=Lr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Tv(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 ul=e,null}function $v(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(f_()){case df:return 1;case Mv:return 4;case sl:case d_:return 16;case jv:return 536870912;default:return 16}default:return 16}}var Ln=null,gf=null,Bs=null;function Wv(){if(Bs)return Bs;var e,t=gf,n=t.length,r,i="value"in Ln?Ln.value:Ln.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Bs=i.slice(e,1<r?1-r:void 0)}function Us(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 vs(){return!0}function Yd(){return!1}function ht(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?vs:Yd,this.isPropagationStopped=Yd,this}return we(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=vs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vs)},persist:function(){},isPersistent:vs}),t}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mf=ht(Ti),Wo=we({},Ti,{view:0,detail:0}),C_=ht(Wo),Ua,Va,Hi,Yl=we({},Wo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yf,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!==Hi&&(Hi&&e.type==="mousemove"?(Ua=e.screenX-Hi.screenX,Va=e.screenY-Hi.screenY):Va=Ua=0,Hi=e),Ua)},movementY:function(e){return"movementY"in e?e.movementY:Va}}),Xd=ht(Yl),A_=we({},Yl,{dataTransfer:0}),O_=ht(A_),P_=we({},Wo,{relatedTarget:0}),$a=ht(P_),k_=we({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),T_=ht(k_),R_=we({},Ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),N_=ht(R_),D_=we({},Ti,{data:0}),Zd=ht(D_),M_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j_={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"},I_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=I_[e])?!!t[e]:!1}function yf(){return L_}var F_=we({},Wo,{key:function(e){if(e.key){var t=M_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Us(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yf,charCode:function(e){return e.type==="keypress"?Us(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Us(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),z_=ht(F_),B_=we({},Yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jd=ht(B_),U_=we({},Wo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yf}),V_=ht(U_),$_=we({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),W_=ht($_),H_=we({},Yl,{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}),K_=ht(H_),G_=[9,13,27,32],wf=_n&&"CompositionEvent"in window,so=null;_n&&"documentMode"in document&&(so=document.documentMode);var Q_=_n&&"TextEvent"in window&&!so,Hv=_n&&(!wf||so&&8<so&&11>=so),qd=" ",ep=!1;function Kv(e,t){switch(e){case"keyup":return G_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xr=!1;function Y_(e,t){switch(e){case"compositionend":return Gv(t);case"keypress":return t.which!==32?null:(ep=!0,qd);case"textInput":return e=t.data,e===qd&&ep?null:e;default:return null}}function X_(e,t){if(Xr)return e==="compositionend"||!wf&&Kv(e,t)?(e=Wv(),Bs=gf=Ln=null,Xr=!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 Hv&&t.locale!=="ko"?null:t.data;default:return null}}var Z_={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 tp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Z_[e.type]:t==="textarea"}function Qv(e,t,n,r){Cv(r),t=cl(t,"onChange"),0<t.length&&(n=new mf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var lo=null,Eo=null;function J_(e){og(e,0)}function Xl(e){var t=qr(e);if(yv(t))return e}function q_(e,t){if(e==="change")return t}var Yv=!1;if(_n){var Wa;if(_n){var Ha="oninput"in document;if(!Ha){var np=document.createElement("div");np.setAttribute("oninput","return;"),Ha=typeof np.oninput=="function"}Wa=Ha}else Wa=!1;Yv=Wa&&(!document.documentMode||9<document.documentMode)}function rp(){lo&&(lo.detachEvent("onpropertychange",Xv),Eo=lo=null)}function Xv(e){if(e.propertyName==="value"&&Xl(Eo)){var t=[];Qv(t,Eo,e,ff(e)),kv(J_,t)}}function e1(e,t,n){e==="focusin"?(rp(),lo=t,Eo=n,lo.attachEvent("onpropertychange",Xv)):e==="focusout"&&rp()}function t1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xl(Eo)}function n1(e,t){if(e==="click")return Xl(t)}function r1(e,t){if(e==="input"||e==="change")return Xl(t)}function i1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:i1;function Co(e,t){if(zt(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 i=n[r];if(!ku.call(t,i)||!zt(e[i],t[i]))return!1}return!0}function ip(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function op(e,t){var n=ip(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=ip(n)}}function Zv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jv(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=rl(e.document)}return t}function _f(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 o1(e){var t=Jv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zv(n.ownerDocument.documentElement,n)){if(r!==null&&_f(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=op(n,o);var s=op(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 s1=_n&&"documentMode"in document&&11>=document.documentMode,Zr=null,Qu=null,ao=null,Yu=!1;function sp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yu||Zr==null||Zr!==rl(r)||(r=Zr,"selectionStart"in r&&_f(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}),ao&&Co(ao,r)||(ao=r,r=cl(Qu,"onSelect"),0<r.length&&(t=new mf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Zr)))}function gs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jr={animationend:gs("Animation","AnimationEnd"),animationiteration:gs("Animation","AnimationIteration"),animationstart:gs("Animation","AnimationStart"),transitionend:gs("Transition","TransitionEnd")},Ka={},qv={};_n&&(qv=document.createElement("div").style,"AnimationEvent"in window||(delete Jr.animationend.animation,delete Jr.animationiteration.animation,delete Jr.animationstart.animation),"TransitionEvent"in window||delete Jr.transitionend.transition);function Zl(e){if(Ka[e])return Ka[e];if(!Jr[e])return e;var t=Jr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qv)return Ka[e]=t[n];return e}var eg=Zl("animationend"),tg=Zl("animationiteration"),ng=Zl("animationstart"),rg=Zl("transitionend"),ig=new Map,lp="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 tr(e,t){ig.set(e,t),Ir(t,[e])}for(var Ga=0;Ga<lp.length;Ga++){var Qa=lp[Ga],l1=Qa.toLowerCase(),a1=Qa[0].toUpperCase()+Qa.slice(1);tr(l1,"on"+a1)}tr(eg,"onAnimationEnd");tr(tg,"onAnimationIteration");tr(ng,"onAnimationStart");tr("dblclick","onDoubleClick");tr("focusin","onFocus");tr("focusout","onBlur");tr(rg,"onTransitionEnd");yi("onMouseEnter",["mouseout","mouseover"]);yi("onMouseLeave",["mouseout","mouseover"]);yi("onPointerEnter",["pointerout","pointerover"]);yi("onPointerLeave",["pointerout","pointerover"]);Ir("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ir("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ir("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ir("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ir("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ir("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var no="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(" "),u1=new Set("cancel close invalid load scroll toggle".split(" ").concat(no));function ap(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,l_(r,t,void 0,e),e.currentTarget=null}function og(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;ap(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;ap(i,l,u),o=a}}}if(ol)throw e=Wu,ol=!1,Wu=null,e}function fe(e,t){var n=t[ec];n===void 0&&(n=t[ec]=new Set);var r=e+"__bubble";n.has(r)||(sg(t,e,2,!1),n.add(r))}function Ya(e,t,n){var r=0;t&&(r|=4),sg(n,e,r,t)}var ms="_reactListening"+Math.random().toString(36).slice(2);function Ao(e){if(!e[ms]){e[ms]=!0,pv.forEach(function(n){n!=="selectionchange"&&(u1.has(n)||Ya(n,!1,e),Ya(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ms]||(t[ms]=!0,Ya("selectionchange",!1,t))}}function sg(e,t,n,r){switch($v(t)){case 1:var i=b_;break;case 4:i=E_;break;default:i=vf}n=i.bind(null,t,n,e),i=void 0,!$u||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Xa(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=mr(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}kv(function(){var u=o,c=ff(n),f=[];e:{var d=ig.get(e);if(d!==void 0){var p=mf,y=e;switch(e){case"keypress":if(Us(n)===0)break e;case"keydown":case"keyup":p=z_;break;case"focusin":y="focus",p=$a;break;case"focusout":y="blur",p=$a;break;case"beforeblur":case"afterblur":p=$a;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=Xd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=O_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=V_;break;case eg:case tg:case ng:p=T_;break;case rg:p=W_;break;case"scroll":p=C_;break;case"wheel":p=K_;break;case"copy":case"cut":case"paste":p=N_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Jd}var h=(t&4)!==0,x=!h&&e==="scroll",g=h?d!==null?d+"Capture":null:d;h=[];for(var v=u,_;v!==null;){_=v;var S=_.stateNode;if(_.tag===5&&S!==null&&(_=S,g!==null&&(S=_o(v,g),S!=null&&h.push(Oo(v,S,_)))),x)break;v=v.return}0<h.length&&(d=new p(d,y,null,n,c),f.push({event:d,listeners:h}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==Uu&&(y=n.relatedTarget||n.fromElement)&&(mr(y)||y[xn]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(y=n.relatedTarget||n.toElement,p=u,y=y?mr(y):null,y!==null&&(x=Lr(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=u),p!==y)){if(h=Xd,S="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(h=Jd,S="onPointerLeave",g="onPointerEnter",v="pointer"),x=p==null?d:qr(p),_=y==null?d:qr(y),d=new h(S,v+"leave",p,n,c),d.target=x,d.relatedTarget=_,S=null,mr(c)===u&&(h=new h(g,v+"enter",y,n,c),h.target=_,h.relatedTarget=x,S=h),x=S,p&&y)t:{for(h=p,g=y,v=0,_=h;_;_=Vr(_))v++;for(_=0,S=g;S;S=Vr(S))_++;for(;0<v-_;)h=Vr(h),v--;for(;0<_-v;)g=Vr(g),_--;for(;v--;){if(h===g||g!==null&&h===g.alternate)break t;h=Vr(h),g=Vr(g)}h=null}else h=null;p!==null&&up(f,d,p,h,!1),y!==null&&x!==null&&up(f,x,y,h,!0)}}e:{if(d=u?qr(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var b=q_;else if(tp(d))if(Yv)b=r1;else{b=t1;var E=e1}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(b=n1);if(b&&(b=b(e,u))){Qv(f,b,n,c);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&Iu(d,"number",d.value)}switch(E=u?qr(u):window,e){case"focusin":(tp(E)||E.contentEditable==="true")&&(Zr=E,Qu=u,ao=null);break;case"focusout":ao=Qu=Zr=null;break;case"mousedown":Yu=!0;break;case"contextmenu":case"mouseup":case"dragend":Yu=!1,sp(f,n,c);break;case"selectionchange":if(s1)break;case"keydown":case"keyup":sp(f,n,c)}var C;if(wf)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Xr?Kv(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(Hv&&n.locale!=="ko"&&(Xr||A!=="onCompositionStart"?A==="onCompositionEnd"&&Xr&&(C=Wv()):(Ln=c,gf="value"in Ln?Ln.value:Ln.textContent,Xr=!0)),E=cl(u,A),0<E.length&&(A=new Zd(A,e,null,n,c),f.push({event:A,listeners:E}),C?A.data=C:(C=Gv(n),C!==null&&(A.data=C)))),(C=Q_?Y_(e,n):X_(e,n))&&(u=cl(u,"onBeforeInput"),0<u.length&&(c=new Zd("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=C))}og(f,t)})}function Oo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=_o(e,n),o!=null&&r.unshift(Oo(e,o,i)),o=_o(e,t),o!=null&&r.push(Oo(e,o,i))),e=e.return}return r}function Vr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function up(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=_o(n,o),a!=null&&s.unshift(Oo(n,a,l))):i||(a=_o(n,o),a!=null&&s.push(Oo(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var c1=/\r\n?/g,f1=/\u0000|\uFFFD/g;function cp(e){return(typeof e=="string"?e:""+e).replace(c1,`
38
- `).replace(f1,"")}function ys(e,t,n){if(t=cp(t),cp(e)!==t&&n)throw Error(k(425))}function fl(){}var Xu=null,Zu=null;function Ju(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 qu=typeof setTimeout=="function"?setTimeout:void 0,d1=typeof clearTimeout=="function"?clearTimeout:void 0,fp=typeof Promise=="function"?Promise:void 0,p1=typeof queueMicrotask=="function"?queueMicrotask:typeof fp<"u"?function(e){return fp.resolve(null).then(e).catch(h1)}:qu;function h1(e){setTimeout(function(){throw e})}function Za(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),bo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);bo(t)}function $n(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 dp(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 Ri=Math.random().toString(36).slice(2),Xt="__reactFiber$"+Ri,Po="__reactProps$"+Ri,xn="__reactContainer$"+Ri,ec="__reactEvents$"+Ri,v1="__reactListeners$"+Ri,g1="__reactHandles$"+Ri;function mr(e){var t=e[Xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xn]||n[Xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dp(e);e!==null;){if(n=e[Xt])return n;e=dp(e)}return t}e=n,n=e.parentNode}return null}function Ho(e){return e=e[Xt]||e[xn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function Jl(e){return e[Po]||null}var tc=[],ei=-1;function nr(e){return{current:e}}function pe(e){0>ei||(e.current=tc[ei],tc[ei]=null,ei--)}function ae(e,t){ei++,tc[ei]=e.current,e.current=t}var Zn={},Ue=nr(Zn),et=nr(!1),Sr=Zn;function wi(e,t){var n=e.type.contextTypes;if(!n)return Zn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function tt(e){return e=e.childContextTypes,e!=null}function dl(){pe(et),pe(Ue)}function pp(e,t,n){if(Ue.current!==Zn)throw Error(k(168));ae(Ue,t),ae(et,n)}function lg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(k(108,e_(e)||"Unknown",i));return we({},n,r)}function pl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zn,Sr=Ue.current,ae(Ue,e),ae(et,et.current),!0}function hp(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=lg(e,t,Sr),r.__reactInternalMemoizedMergedChildContext=e,pe(et),pe(Ue),ae(Ue,e)):pe(et),ae(et,n)}var fn=null,ql=!1,Ja=!1;function ag(e){fn===null?fn=[e]:fn.push(e)}function m1(e){ql=!0,ag(e)}function rr(){if(!Ja&&fn!==null){Ja=!0;var e=0,t=re;try{var n=fn;for(re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fn=null,ql=!1}catch(i){throw fn!==null&&(fn=fn.slice(e+1)),Dv(df,rr),i}finally{re=t,Ja=!1}}return null}var ti=[],ni=0,hl=null,vl=0,mt=[],yt=0,br=null,hn=1,vn="";function hr(e,t){ti[ni++]=vl,ti[ni++]=hl,hl=e,vl=t}function ug(e,t,n){mt[yt++]=hn,mt[yt++]=vn,mt[yt++]=br,br=e;var r=hn;e=vn;var i=32-jt(r)-1;r&=~(1<<i),n+=1;var o=32-jt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,hn=1<<32-jt(t)+i|n<<i|r,vn=o+e}else hn=1<<o|n<<i|r,vn=e}function xf(e){e.return!==null&&(hr(e,1),ug(e,1,0))}function Sf(e){for(;e===hl;)hl=ti[--ni],ti[ni]=null,vl=ti[--ni],ti[ni]=null;for(;e===br;)br=mt[--yt],mt[yt]=null,vn=mt[--yt],mt[yt]=null,hn=mt[--yt],mt[yt]=null}var ut=null,at=null,he=!1,Dt=null;function cg(e,t){var n=xt(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 vp(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,ut=e,at=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ut=e,at=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=br!==null?{id:hn,overflow:vn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ut=e,at=null,!0):!1;default:return!1}}function nc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rc(e){if(he){var t=at;if(t){var n=t;if(!vp(e,t)){if(nc(e))throw Error(k(418));t=$n(n.nextSibling);var r=ut;t&&vp(e,t)?cg(r,n):(e.flags=e.flags&-4097|2,he=!1,ut=e)}}else{if(nc(e))throw Error(k(418));e.flags=e.flags&-4097|2,he=!1,ut=e}}}function gp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ut=e}function ws(e){if(e!==ut)return!1;if(!he)return gp(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ju(e.type,e.memoizedProps)),t&&(t=at)){if(nc(e))throw fg(),Error(k(418));for(;t;)cg(e,t),t=$n(t.nextSibling)}if(gp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){at=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}at=null}}else at=ut?$n(e.stateNode.nextSibling):null;return!0}function fg(){for(var e=at;e;)e=$n(e.nextSibling)}function _i(){at=ut=null,he=!1}function bf(e){Dt===null?Dt=[e]:Dt.push(e)}var y1=Pn.ReactCurrentBatchConfig;function Ki(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(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function _s(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mp(e){var t=e._init;return t(e._payload)}function dg(e){function t(g,v){if(e){var _=g.deletions;_===null?(g.deletions=[v],g.flags|=16):_.push(v)}}function n(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function r(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function i(g,v){return g=Gn(g,v),g.index=0,g.sibling=null,g}function o(g,v,_){return g.index=_,e?(_=g.alternate,_!==null?(_=_.index,_<v?(g.flags|=2,v):_):(g.flags|=2,v)):(g.flags|=1048576,v)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,v,_,S){return v===null||v.tag!==6?(v=ou(_,g.mode,S),v.return=g,v):(v=i(v,_),v.return=g,v)}function a(g,v,_,S){var b=_.type;return b===Yr?c(g,v,_.props.children,S,_.key):v!==null&&(v.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Dn&&mp(b)===v.type)?(S=i(v,_.props),S.ref=Ki(g,v,_),S.return=g,S):(S=Qs(_.type,_.key,_.props,null,g.mode,S),S.ref=Ki(g,v,_),S.return=g,S)}function u(g,v,_,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==_.containerInfo||v.stateNode.implementation!==_.implementation?(v=su(_,g.mode,S),v.return=g,v):(v=i(v,_.children||[]),v.return=g,v)}function c(g,v,_,S,b){return v===null||v.tag!==7?(v=xr(_,g.mode,S,b),v.return=g,v):(v=i(v,_),v.return=g,v)}function f(g,v,_){if(typeof v=="string"&&v!==""||typeof v=="number")return v=ou(""+v,g.mode,_),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case us:return _=Qs(v.type,v.key,v.props,null,g.mode,_),_.ref=Ki(g,null,v),_.return=g,_;case Qr:return v=su(v,g.mode,_),v.return=g,v;case Dn:var S=v._init;return f(g,S(v._payload),_)}if(eo(v)||Ui(v))return v=xr(v,g.mode,_,null),v.return=g,v;_s(g,v)}return null}function d(g,v,_,S){var b=v!==null?v.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return b!==null?null:l(g,v,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case us:return _.key===b?a(g,v,_,S):null;case Qr:return _.key===b?u(g,v,_,S):null;case Dn:return b=_._init,d(g,v,b(_._payload),S)}if(eo(_)||Ui(_))return b!==null?null:c(g,v,_,S,null);_s(g,_)}return null}function p(g,v,_,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(_)||null,l(v,g,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case us:return g=g.get(S.key===null?_:S.key)||null,a(v,g,S,b);case Qr:return g=g.get(S.key===null?_:S.key)||null,u(v,g,S,b);case Dn:var E=S._init;return p(g,v,_,E(S._payload),b)}if(eo(S)||Ui(S))return g=g.get(_)||null,c(v,g,S,b,null);_s(v,S)}return null}function y(g,v,_,S){for(var b=null,E=null,C=v,A=v=0,T=null;C!==null&&A<_.length;A++){C.index>A?(T=C,C=null):T=C.sibling;var P=d(g,C,_[A],S);if(P===null){C===null&&(C=T);break}e&&C&&P.alternate===null&&t(g,C),v=o(P,v,A),E===null?b=P:E.sibling=P,E=P,C=T}if(A===_.length)return n(g,C),he&&hr(g,A),b;if(C===null){for(;A<_.length;A++)C=f(g,_[A],S),C!==null&&(v=o(C,v,A),E===null?b=C:E.sibling=C,E=C);return he&&hr(g,A),b}for(C=r(g,C);A<_.length;A++)T=p(C,g,A,_[A],S),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?A:T.key),v=o(T,v,A),E===null?b=T:E.sibling=T,E=T);return e&&C.forEach(function(M){return t(g,M)}),he&&hr(g,A),b}function h(g,v,_,S){var b=Ui(_);if(typeof b!="function")throw Error(k(150));if(_=b.call(_),_==null)throw Error(k(151));for(var E=b=null,C=v,A=v=0,T=null,P=_.next();C!==null&&!P.done;A++,P=_.next()){C.index>A?(T=C,C=null):T=C.sibling;var M=d(g,C,P.value,S);if(M===null){C===null&&(C=T);break}e&&C&&M.alternate===null&&t(g,C),v=o(M,v,A),E===null?b=M:E.sibling=M,E=M,C=T}if(P.done)return n(g,C),he&&hr(g,A),b;if(C===null){for(;!P.done;A++,P=_.next())P=f(g,P.value,S),P!==null&&(v=o(P,v,A),E===null?b=P:E.sibling=P,E=P);return he&&hr(g,A),b}for(C=r(g,C);!P.done;A++,P=_.next())P=p(C,g,A,P.value,S),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?A:P.key),v=o(P,v,A),E===null?b=P:E.sibling=P,E=P);return e&&C.forEach(function(R){return t(g,R)}),he&&hr(g,A),b}function x(g,v,_,S){if(typeof _=="object"&&_!==null&&_.type===Yr&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case us:e:{for(var b=_.key,E=v;E!==null;){if(E.key===b){if(b=_.type,b===Yr){if(E.tag===7){n(g,E.sibling),v=i(E,_.props.children),v.return=g,g=v;break e}}else if(E.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Dn&&mp(b)===E.type){n(g,E.sibling),v=i(E,_.props),v.ref=Ki(g,E,_),v.return=g,g=v;break e}n(g,E);break}else t(g,E);E=E.sibling}_.type===Yr?(v=xr(_.props.children,g.mode,S,_.key),v.return=g,g=v):(S=Qs(_.type,_.key,_.props,null,g.mode,S),S.ref=Ki(g,v,_),S.return=g,g=S)}return s(g);case Qr:e:{for(E=_.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===_.containerInfo&&v.stateNode.implementation===_.implementation){n(g,v.sibling),v=i(v,_.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=su(_,g.mode,S),v.return=g,g=v}return s(g);case Dn:return E=_._init,x(g,v,E(_._payload),S)}if(eo(_))return y(g,v,_,S);if(Ui(_))return h(g,v,_,S);_s(g,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,v!==null&&v.tag===6?(n(g,v.sibling),v=i(v,_),v.return=g,g=v):(n(g,v),v=ou(_,g.mode,S),v.return=g,g=v),s(g)):n(g,v)}return x}var xi=dg(!0),pg=dg(!1),gl=nr(null),ml=null,ri=null,Ef=null;function Cf(){Ef=ri=ml=null}function Af(e){var t=gl.current;pe(gl),e._currentValue=t}function ic(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 di(e,t){ml=e,Ef=ri=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Ef!==e)if(e={context:e,memoizedValue:t,next:null},ri===null){if(ml===null)throw Error(k(308));ri=e,ml.dependencies={lanes:0,firstContext:e}}else ri=ri.next=e;return t}var yr=null;function Of(e){yr===null?yr=[e]:yr.push(e)}function hg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Of(t)):(n.next=i.next,i.next=n),t.interleaved=n,Sn(e,r)}function Sn(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 Mn=!1;function Pf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vg(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 gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Sn(e,n)}return i=r.interleaved,i===null?(t.next=t,Of(r)):(t.next=i.next,i.next=t),r.interleaved=t,Sn(e,n)}function Vs(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,pf(e,n)}}function yp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 yl(e,t,n,r){var i=e.updateQueue;Mn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;s=0,c=u=a=null,l=o;do{var d=l.lane,p=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,h=l;switch(d=t,p=n,h.tag){case 1:if(y=h.payload,typeof y=="function"){f=y.call(p,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=h.payload,d=typeof y=="function"?y.call(p,f,d):y,d==null)break e;f=we({},f,d);break e;case 2:Mn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,a=f):c=c.next=p,s|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Cr|=s,e.lanes=s,e.memoizedState=f}}function wp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(k(191,i));i.call(r)}}}var Ko={},en=nr(Ko),ko=nr(Ko),To=nr(Ko);function wr(e){if(e===Ko)throw Error(k(174));return e}function kf(e,t){switch(ae(To,t),ae(ko,e),ae(en,Ko),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fu(t,e)}pe(en),ae(en,t)}function Si(){pe(en),pe(ko),pe(To)}function gg(e){wr(To.current);var t=wr(en.current),n=Fu(t,e.type);t!==n&&(ae(ko,e),ae(en,n))}function Tf(e){ko.current===e&&(pe(en),pe(ko))}var me=nr(0);function wl(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 qa=[];function Rf(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var $s=Pn.ReactCurrentDispatcher,eu=Pn.ReactCurrentBatchConfig,Er=0,ye=null,Pe=null,Te=null,_l=!1,uo=!1,Ro=0,w1=0;function Fe(){throw Error(k(321))}function Nf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function Df(e,t,n,r,i,o){if(Er=o,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$s.current=e===null||e.memoizedState===null?b1:E1,e=n(r,i),uo){o=0;do{if(uo=!1,Ro=0,25<=o)throw Error(k(301));o+=1,Te=Pe=null,t.updateQueue=null,$s.current=C1,e=n(r,i)}while(uo)}if($s.current=xl,t=Pe!==null&&Pe.next!==null,Er=0,Te=Pe=ye=null,_l=!1,t)throw Error(k(300));return e}function Mf(){var e=Ro!==0;return Ro=0,e}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?ye.memoizedState=Te=e:Te=Te.next=e,Te}function At(){if(Pe===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=Te===null?ye.memoizedState:Te.next;if(t!==null)Te=t,Pe=e;else{if(e===null)throw Error(k(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Te===null?ye.memoizedState=Te=e:Te=Te.next=e}return Te}function No(e,t){return typeof t=="function"?t(e):t}function tu(e){var t=At(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=Pe,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var c=u.lane;if((Er&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,s=r):a=a.next=f,ye.lanes|=c,Cr|=c}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,zt(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ye.lanes|=o,Cr|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function nu(e){var t=At(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);zt(o,t.memoizedState)||(qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function mg(){}function yg(e,t){var n=ye,r=At(),i=t(),o=!zt(r.memoizedState,i);if(o&&(r.memoizedState=i,qe=!0),r=r.queue,jf(xg.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Te!==null&&Te.memoizedState.tag&1){if(n.flags|=2048,Do(9,_g.bind(null,n,r,i,t),void 0,null),Ne===null)throw Error(k(349));Er&30||wg(n,t,i)}return i}function wg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _g(e,t,n,r){t.value=n,t.getSnapshot=r,Sg(t)&&bg(e)}function xg(e,t,n){return n(function(){Sg(t)&&bg(e)})}function Sg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function bg(e){var t=Sn(e,1);t!==null&&It(t,e,1,-1)}function _p(e){var t=Yt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t.queue=e,e=e.dispatch=S1.bind(null,ye,e),[t.memoizedState,e]}function Do(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.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 Eg(){return At().memoizedState}function Ws(e,t,n,r){var i=Yt();ye.flags|=e,i.memoizedState=Do(1|t,n,void 0,r===void 0?null:r)}function ea(e,t,n,r){var i=At();r=r===void 0?null:r;var o=void 0;if(Pe!==null){var s=Pe.memoizedState;if(o=s.destroy,r!==null&&Nf(r,s.deps)){i.memoizedState=Do(t,n,o,r);return}}ye.flags|=e,i.memoizedState=Do(1|t,n,o,r)}function xp(e,t){return Ws(8390656,8,e,t)}function jf(e,t){return ea(2048,8,e,t)}function Cg(e,t){return ea(4,2,e,t)}function Ag(e,t){return ea(4,4,e,t)}function Og(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 Pg(e,t,n){return n=n!=null?n.concat([e]):null,ea(4,4,Og.bind(null,t,e),n)}function If(){}function kg(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tg(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Rg(e,t,n){return Er&21?(zt(n,t)||(n=Iv(),ye.lanes|=n,Cr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function _1(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=eu.transition;eu.transition={};try{e(!1),t()}finally{re=n,eu.transition=r}}function Ng(){return At().memoizedState}function x1(e,t,n){var r=Kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Dg(e))Mg(t,n);else if(n=hg(e,t,n,r),n!==null){var i=Ge();It(n,e,r,i),jg(n,t,r)}}function S1(e,t,n){var r=Kn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dg(e))Mg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,zt(l,s)){var a=t.interleaved;a===null?(i.next=i,Of(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=hg(e,t,i,r),n!==null&&(i=Ge(),It(n,e,r,i),jg(n,t,r))}}function Dg(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Mg(e,t){uo=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pf(e,n)}}var xl={readContext:Ct,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},b1={readContext:Ct,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:xp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ws(4194308,4,Og.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ws(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ws(4,2,e,t)},useMemo:function(e,t){var n=Yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yt();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=x1.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:_p,useDebugValue:If,useDeferredValue:function(e){return Yt().memoizedState=e},useTransition:function(){var e=_p(!1),t=e[0];return e=_1.bind(null,e[1]),Yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,i=Yt();if(he){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),Ne===null)throw Error(k(349));Er&30||wg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,xp(xg.bind(null,r,o,e),[e]),r.flags|=2048,Do(9,_g.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Yt(),t=Ne.identifierPrefix;if(he){var n=vn,r=hn;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ro++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=w1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},E1={readContext:Ct,useCallback:kg,useContext:Ct,useEffect:jf,useImperativeHandle:Pg,useInsertionEffect:Cg,useLayoutEffect:Ag,useMemo:Tg,useReducer:tu,useRef:Eg,useState:function(){return tu(No)},useDebugValue:If,useDeferredValue:function(e){var t=At();return Rg(t,Pe.memoizedState,e)},useTransition:function(){var e=tu(No)[0],t=At().memoizedState;return[e,t]},useMutableSource:mg,useSyncExternalStore:yg,useId:Ng,unstable_isNewReconciler:!1},C1={readContext:Ct,useCallback:kg,useContext:Ct,useEffect:jf,useImperativeHandle:Pg,useInsertionEffect:Cg,useLayoutEffect:Ag,useMemo:Tg,useReducer:nu,useRef:Eg,useState:function(){return nu(No)},useDebugValue:If,useDeferredValue:function(e){var t=At();return Pe===null?t.memoizedState=e:Rg(t,Pe.memoizedState,e)},useTransition:function(){var e=nu(No)[0],t=At().memoizedState;return[e,t]},useMutableSource:mg,useSyncExternalStore:yg,useId:Ng,unstable_isNewReconciler:!1};function Rt(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function oc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ta={isMounted:function(e){return(e=e._reactInternals)?Lr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=Kn(e),o=gn(r,i);o.payload=t,n!=null&&(o.callback=n),t=Wn(e,o,i),t!==null&&(It(t,e,i,r),Vs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=Kn(e),o=gn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Wn(e,o,i),t!==null&&(It(t,e,i,r),Vs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ge(),r=Kn(e),i=gn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wn(e,i,r),t!==null&&(It(t,e,r,n),Vs(t,e,r))}};function Sp(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Co(n,r)||!Co(i,o):!0}function Ig(e,t,n){var r=!1,i=Zn,o=t.contextType;return typeof o=="object"&&o!==null?o=Ct(o):(i=tt(t)?Sr:Ue.current,r=t.contextTypes,o=(r=r!=null)?wi(e,i):Zn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ta,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bp(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&&ta.enqueueReplaceState(t,t.state,null)}function sc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Pf(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ct(o):(o=tt(t)?Sr:Ue.current,i.context=wi(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(oc(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ta.enqueueReplaceState(i,i.state,null),yl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bi(e,t){try{var n="",r=t;do n+=qw(r),r=r.return;while(r);var i=n}catch(o){i=`
39
- Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function ru(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function lc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var A1=typeof WeakMap=="function"?WeakMap:Map;function Lg(e,t,n){n=gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bl||(bl=!0,mc=r),lc(e,t)},n}function Fg(e,t,n){n=gn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){lc(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){lc(e,t),typeof r!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ep(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new A1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=B1.bind(null,e,t,n),t.then(e,e))}function Cp(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 Ap(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=gn(-1,1),t.tag=2,Wn(n,t,1))),n.lanes|=1),e)}var O1=Pn.ReactCurrentOwner,qe=!1;function He(e,t,n,r){t.child=e===null?pg(t,null,n,r):xi(t,e.child,n,r)}function Op(e,t,n,r,i){n=n.render;var o=t.ref;return di(t,i),r=Df(e,t,n,r,o,i),n=Mf(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bn(e,t,i)):(he&&n&&xf(t),t.flags|=1,He(e,t,r,i),t.child)}function Pp(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Wf(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,zg(e,t,o,r,i)):(e=Qs(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Co,n(s,r)&&e.ref===t.ref)return bn(e,t,i)}return t.flags|=1,e=Gn(o,r),e.ref=t.ref,e.return=t,t.child=e}function zg(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Co(o,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,bn(e,t,i)}return ac(e,t,n,r,i)}function Bg(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(oi,it),it|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(oi,it),it|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ae(oi,it),it|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ae(oi,it),it|=r;return He(e,t,i,n),t.child}function Ug(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ac(e,t,n,r,i){var o=tt(n)?Sr:Ue.current;return o=wi(t,o),di(t,i),n=Df(e,t,n,r,o,i),r=Mf(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bn(e,t,i)):(he&&r&&xf(t),t.flags|=1,He(e,t,n,i),t.child)}function kp(e,t,n,r,i){if(tt(n)){var o=!0;pl(t)}else o=!1;if(di(t,i),t.stateNode===null)Hs(e,t),Ig(t,n,r),sc(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ct(u):(u=tt(n)?Sr:Ue.current,u=wi(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&bp(t,s,r,u),Mn=!1;var d=t.memoizedState;s.state=d,yl(t,r,s,i),a=t.memoizedState,l!==r||d!==a||et.current||Mn?(typeof c=="function"&&(oc(t,n,c,r),a=t.memoizedState),(l=Mn||Sp(t,n,l,r,d,a,u))?(f||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"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,vg(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Rt(t.type,l),s.props=u,f=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ct(a):(a=tt(n)?Sr:Ue.current,a=wi(t,a));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||d!==a)&&bp(t,s,r,a),Mn=!1,d=t.memoizedState,s.state=d,yl(t,r,s,i);var y=t.memoizedState;l!==f||d!==y||et.current||Mn?(typeof p=="function"&&(oc(t,n,p,r),y=t.memoizedState),(u=Mn||Sp(t,n,u,r,d,y,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return uc(e,t,n,r,o,i)}function uc(e,t,n,r,i,o){Ug(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&hp(t,n,!1),bn(e,t,o);r=t.stateNode,O1.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=xi(t,e.child,null,o),t.child=xi(t,null,l,o)):He(e,t,l,o),t.memoizedState=r.state,i&&hp(t,n,!0),t.child}function Vg(e){var t=e.stateNode;t.pendingContext?pp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pp(e,t.context,!1),kf(e,t.containerInfo)}function Tp(e,t,n,r,i){return _i(),bf(i),t.flags|=256,He(e,t,n,r),t.child}var cc={dehydrated:null,treeContext:null,retryLane:0};function fc(e){return{baseLanes:e,cachePool:null,transitions:null}}function $g(e,t,n){var r=t.pendingProps,i=me.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ae(me,i&1),e===null)return rc(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=ia(s,r,0,null),e=xr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=fc(n),t.memoizedState=cc,e):Lf(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return P1(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Gn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Gn(l,o):(o=xr(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?fc(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=cc,r}return o=e.child,e=o.sibling,r=Gn(o,{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 Lf(e,t){return t=ia({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xs(e,t,n,r){return r!==null&&bf(r),xi(t,e.child,null,n),e=Lf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function P1(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=ru(Error(k(422))),xs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ia({mode:"visible",children:r.children},i,0,null),o=xr(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&xi(t,e.child,null,s),t.child.memoizedState=fc(s),t.memoizedState=cc,o);if(!(t.mode&1))return xs(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(k(419)),r=ru(o,r,void 0),xs(e,t,s,r)}if(l=(s&e.childLanes)!==0,qe||l){if(r=Ne,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Sn(e,i),It(r,e,i,-1))}return $f(),r=ru(Error(k(421))),xs(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=U1.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,at=$n(i.nextSibling),ut=t,he=!0,Dt=null,e!==null&&(mt[yt++]=hn,mt[yt++]=vn,mt[yt++]=br,hn=e.id,vn=e.overflow,br=t),t=Lf(t,r.children),t.flags|=4096,t)}function Rp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ic(e.return,t,n)}function iu(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Wg(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(He(e,t,r.children,n),r=me.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&&Rp(e,n,t);else if(e.tag===19)Rp(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(ae(me,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&wl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),iu(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&wl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}iu(t,!0,n,null,o);break;case"together":iu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=Gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function k1(e,t,n){switch(t.tag){case 3:Vg(t),_i();break;case 5:gg(t);break;case 1:tt(t.type)&&pl(t);break;case 4:kf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ae(gl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(me,me.current&1),t.flags|=128,null):n&t.child.childLanes?$g(e,t,n):(ae(me,me.current&1),e=bn(e,t,n),e!==null?e.sibling:null);ae(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Wg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,Bg(e,t,n)}return bn(e,t,n)}var Hg,dc,Kg,Gg;Hg=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}};dc=function(){};Kg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,wr(en.current);var o=null;switch(n){case"input":i=Mu(e,i),r=Mu(e,r),o=[];break;case"select":i=we({},i,{value:void 0}),r=we({},r,{value:void 0}),o=[];break;case"textarea":i=Lu(e,i),r=Lu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=fl)}zu(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(yo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(yo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&fe("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Gg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Gi(e,t){if(!he)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 ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function T1(e,t,n){var r=t.pendingProps;switch(Sf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return tt(t.type)&&dl(),ze(t),null;case 3:return r=t.stateNode,Si(),pe(et),pe(Ue),Rf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ws(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dt!==null&&(_c(Dt),Dt=null))),dc(e,t),ze(t),null;case 5:Tf(t);var i=wr(To.current);if(n=t.type,e!==null&&t.stateNode!=null)Kg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return ze(t),null}if(e=wr(en.current),ws(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Xt]=t,r[Po]=o,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(i=0;i<no.length;i++)fe(no[i],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":Bd(r,o),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},fe("invalid",r);break;case"textarea":Vd(r,o),fe("invalid",r)}zu(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&ys(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&ys(r.textContent,l,e),i=["children",""+l]):yo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&fe("scroll",r)}switch(n){case"input":cs(r),Ud(r,o,!0);break;case"textarea":cs(r),$d(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=fl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Xt]=t,e[Po]=r,Hg(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bu(n,r),n){case"dialog":fe("cancel",e),fe("close",e),i=r;break;case"iframe":case"object":case"embed":fe("load",e),i=r;break;case"video":case"audio":for(i=0;i<no.length;i++)fe(no[i],e);i=r;break;case"source":fe("error",e),i=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),i=r;break;case"details":fe("toggle",e),i=r;break;case"input":Bd(e,r),i=Mu(e,r),fe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=we({},r,{value:void 0}),fe("invalid",e);break;case"textarea":Vd(e,r),i=Lu(e,r),fe("invalid",e);break;default:i=r}zu(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?Ev(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Sv(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&wo(e,a):typeof a=="number"&&wo(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(yo.hasOwnProperty(o)?a!=null&&o==="onScroll"&&fe("scroll",e):a!=null&&lf(e,o,a,s))}switch(n){case"input":cs(e),Ud(e,r,!1);break;case"textarea":cs(e),$d(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ai(e,!!r.multiple,o,!1):r.defaultValue!=null&&ai(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=fl)}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 ze(t),null;case 6:if(e&&t.stateNode!=null)Gg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=wr(To.current),wr(en.current),ws(t)){if(r=t.stateNode,n=t.memoizedProps,r[Xt]=t,(o=r.nodeValue!==n)&&(e=ut,e!==null))switch(e.tag){case 3:ys(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ys(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xt]=t,t.stateNode=r}return ze(t),null;case 13:if(pe(me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&at!==null&&t.mode&1&&!(t.flags&128))fg(),_i(),t.flags|=98560,o=!1;else if(o=ws(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(k(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(k(317));o[Xt]=t}else _i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),o=!1}else Dt!==null&&(_c(Dt),Dt=null),o=!0;if(!o)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||me.current&1?ke===0&&(ke=3):$f())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return Si(),dc(e,t),e===null&&Ao(t.stateNode.containerInfo),ze(t),null;case 10:return Af(t.type._context),ze(t),null;case 17:return tt(t.type)&&dl(),ze(t),null;case 19:if(pe(me),o=t.memoizedState,o===null)return ze(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Gi(o,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=wl(e),s!==null){for(t.flags|=128,Gi(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ae(me,me.current&1|2),t.child}e=e.sibling}o.tail!==null&&xe()>Ei&&(t.flags|=128,r=!0,Gi(o,!1),t.lanes=4194304)}else{if(!r)if(e=wl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!he)return ze(t),null}else 2*xe()-o.renderingStartTime>Ei&&n!==1073741824&&(t.flags|=128,r=!0,Gi(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=xe(),t.sibling=null,n=me.current,ae(me,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Vf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?it&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function R1(e,t){switch(Sf(t),t.tag){case 1:return tt(t.type)&&dl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Si(),pe(et),pe(Ue),Rf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tf(t),null;case 13:if(pe(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));_i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(me),null;case 4:return Si(),null;case 10:return Af(t.type._context),null;case 22:case 23:return Vf(),null;case 24:return null;default:return null}}var Ss=!1,Be=!1,N1=typeof WeakSet=="function"?WeakSet:Set,j=null;function ii(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function pc(e,t,n){try{n()}catch(r){_e(e,t,r)}}var Np=!1;function D1(e,t){if(Xu=al,e=Jv(),_f(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zu={focusedElem:e,selectionRange:n},al=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,x=y.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?h:Rt(t.type,h),x);g.__reactInternalSnapshotBeforeUpdate=v}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(k(163))}}catch(S){_e(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return y=Np,Np=!1,y}function co(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&pc(t,n,o)}i=i.next}while(i!==r)}}function na(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 hc(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 Qg(e){var t=e.alternate;t!==null&&(e.alternate=null,Qg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xt],delete t[Po],delete t[ec],delete t[v1],delete t[g1])),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 Yg(e){return e.tag===5||e.tag===3||e.tag===4}function Dp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yg(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 vc(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=fl));else if(r!==4&&(e=e.child,e!==null))for(vc(e,t,n),e=e.sibling;e!==null;)vc(e,t,n),e=e.sibling}function gc(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(gc(e,t,n),e=e.sibling;e!==null;)gc(e,t,n),e=e.sibling}var je=null,Nt=!1;function kn(e,t,n){for(n=n.child;n!==null;)Xg(e,t,n),n=n.sibling}function Xg(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Ql,n)}catch{}switch(n.tag){case 5:Be||ii(n,t);case 6:var r=je,i=Nt;je=null,kn(e,t,n),je=r,Nt=i,je!==null&&(Nt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Nt?(e=je,n=n.stateNode,e.nodeType===8?Za(e.parentNode,n):e.nodeType===1&&Za(e,n),bo(e)):Za(je,n.stateNode));break;case 4:r=je,i=Nt,je=n.stateNode.containerInfo,Nt=!0,kn(e,t,n),je=r,Nt=i;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&pc(n,t,s),i=i.next}while(i!==r)}kn(e,t,n);break;case 1:if(!Be&&(ii(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){_e(n,t,l)}kn(e,t,n);break;case 21:kn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,kn(e,t,n),Be=r):kn(e,t,n);break;default:kn(e,t,n)}}function Mp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N1),t.forEach(function(r){var i=V1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:je=l.stateNode,Nt=!1;break e;case 3:je=l.stateNode.containerInfo,Nt=!0;break e;case 4:je=l.stateNode.containerInfo,Nt=!0;break e}l=l.return}if(je===null)throw Error(k(160));Xg(o,s,i),je=null,Nt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){_e(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zg(t,e),t=t.sibling}function Zg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Kt(e),r&4){try{co(3,e,e.return),na(3,e)}catch(h){_e(e,e.return,h)}try{co(5,e,e.return)}catch(h){_e(e,e.return,h)}}break;case 1:Pt(t,e),Kt(e),r&512&&n!==null&&ii(n,n.return);break;case 5:if(Pt(t,e),Kt(e),r&512&&n!==null&&ii(n,n.return),e.flags&32){var i=e.stateNode;try{wo(i,"")}catch(h){_e(e,e.return,h)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&wv(i,o),Bu(l,s);var u=Bu(l,o);for(s=0;s<a.length;s+=2){var c=a[s],f=a[s+1];c==="style"?Ev(i,f):c==="dangerouslySetInnerHTML"?Sv(i,f):c==="children"?wo(i,f):lf(i,c,f,u)}switch(l){case"input":ju(i,o);break;case"textarea":_v(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?ai(i,!!o.multiple,p,!1):d!==!!o.multiple&&(o.defaultValue!=null?ai(i,!!o.multiple,o.defaultValue,!0):ai(i,!!o.multiple,o.multiple?[]:"",!1))}i[Po]=o}catch(h){_e(e,e.return,h)}}break;case 6:if(Pt(t,e),Kt(e),r&4){if(e.stateNode===null)throw Error(k(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(h){_e(e,e.return,h)}}break;case 3:if(Pt(t,e),Kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{bo(t.containerInfo)}catch(h){_e(e,e.return,h)}break;case 4:Pt(t,e),Kt(e);break;case 13:Pt(t,e),Kt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Bf=xe())),r&4&&Mp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(u=Be)||c,Pt(t,e),Be=u):Pt(t,e),Kt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(j=e,c=e.child;c!==null;){for(f=j=c;j!==null;){switch(d=j,p=d.child,d.tag){case 0:case 11:case 14:case 15:co(4,d,d.return);break;case 1:ii(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(h){_e(r,n,h)}}break;case 5:ii(d,d.return);break;case 22:if(d.memoizedState!==null){Ip(f);continue}}p!==null?(p.return=d,j=p):Ip(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=bv("display",s))}catch(h){_e(e,e.return,h)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(h){_e(e,e.return,h)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Pt(t,e),Kt(e),r&4&&Mp(e);break;case 21:break;default:Pt(t,e),Kt(e)}}function Kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Yg(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(wo(i,""),r.flags&=-33);var o=Dp(e);gc(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Dp(e);vc(e,l,s);break;default:throw Error(k(161))}}catch(a){_e(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function M1(e,t,n){j=e,Jg(e)}function Jg(e,t,n){for(var r=(e.mode&1)!==0;j!==null;){var i=j,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Ss;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Be;l=Ss;var u=Be;if(Ss=s,(Be=a)&&!u)for(j=i;j!==null;)s=j,a=s.child,s.tag===22&&s.memoizedState!==null?Lp(i):a!==null?(a.return=s,j=a):Lp(i);for(;o!==null;)j=o,Jg(o),o=o.sibling;j=i,Ss=l,Be=u}jp(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,j=o):jp(e)}}function jp(e){for(;j!==null;){var t=j;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||na(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Rt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&wp(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wp(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&bo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}Be||t.flags&512&&hc(t)}catch(d){_e(t,t.return,d)}}if(t===e){j=null;break}if(n=t.sibling,n!==null){n.return=t.return,j=n;break}j=t.return}}function Ip(e){for(;j!==null;){var t=j;if(t===e){j=null;break}var n=t.sibling;if(n!==null){n.return=t.return,j=n;break}j=t.return}}function Lp(e){for(;j!==null;){var t=j;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{na(4,t)}catch(a){_e(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){_e(t,i,a)}}var o=t.return;try{hc(t)}catch(a){_e(t,o,a)}break;case 5:var s=t.return;try{hc(t)}catch(a){_e(t,s,a)}}}catch(a){_e(t,t.return,a)}if(t===e){j=null;break}var l=t.sibling;if(l!==null){l.return=t.return,j=l;break}j=t.return}}var j1=Math.ceil,Sl=Pn.ReactCurrentDispatcher,Ff=Pn.ReactCurrentOwner,Et=Pn.ReactCurrentBatchConfig,q=0,Ne=null,Ce=null,Ie=0,it=0,oi=nr(0),ke=0,Mo=null,Cr=0,ra=0,zf=0,fo=null,Je=null,Bf=0,Ei=1/0,cn=null,bl=!1,mc=null,Hn=null,bs=!1,Fn=null,El=0,po=0,yc=null,Ks=-1,Gs=0;function Ge(){return q&6?xe():Ks!==-1?Ks:Ks=xe()}function Kn(e){return e.mode&1?q&2&&Ie!==0?Ie&-Ie:y1.transition!==null?(Gs===0&&(Gs=Iv()),Gs):(e=re,e!==0||(e=window.event,e=e===void 0?16:$v(e.type)),e):1}function It(e,t,n,r){if(50<po)throw po=0,yc=null,Error(k(185));$o(e,n,r),(!(q&2)||e!==Ne)&&(e===Ne&&(!(q&2)&&(ra|=n),ke===4&&In(e,Ie)),nt(e,r),n===1&&q===0&&!(t.mode&1)&&(Ei=xe()+500,ql&&rr()))}function nt(e,t){var n=e.callbackNode;y_(e,t);var r=ll(e,e===Ne?Ie:0);if(r===0)n!==null&&Kd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Kd(n),t===1)e.tag===0?m1(Fp.bind(null,e)):ag(Fp.bind(null,e)),p1(function(){!(q&6)&&rr()}),n=null;else{switch(Lv(r)){case 1:n=df;break;case 4:n=Mv;break;case 16:n=sl;break;case 536870912:n=jv;break;default:n=sl}n=sm(n,qg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function qg(e,t){if(Ks=-1,Gs=0,q&6)throw Error(k(327));var n=e.callbackNode;if(pi()&&e.callbackNode!==n)return null;var r=ll(e,e===Ne?Ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cl(e,r);else{t=r;var i=q;q|=2;var o=tm();(Ne!==e||Ie!==t)&&(cn=null,Ei=xe()+500,_r(e,t));do try{F1();break}catch(l){em(e,l)}while(!0);Cf(),Sl.current=o,q=i,Ce!==null?t=0:(Ne=null,Ie=0,t=ke)}if(t!==0){if(t===2&&(i=Hu(e),i!==0&&(r=i,t=wc(e,i))),t===1)throw n=Mo,_r(e,0),In(e,r),nt(e,xe()),n;if(t===6)In(e,r);else{if(i=e.current.alternate,!(r&30)&&!I1(i)&&(t=Cl(e,r),t===2&&(o=Hu(e),o!==0&&(r=o,t=wc(e,o))),t===1))throw n=Mo,_r(e,0),In(e,r),nt(e,xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:vr(e,Je,cn);break;case 3:if(In(e,r),(r&130023424)===r&&(t=Bf+500-xe(),10<t)){if(ll(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ge(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=qu(vr.bind(null,e,Je,cn),t);break}vr(e,Je,cn);break;case 4:if(In(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-jt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*j1(r/1960))-r,10<r){e.timeoutHandle=qu(vr.bind(null,e,Je,cn),r);break}vr(e,Je,cn);break;case 5:vr(e,Je,cn);break;default:throw Error(k(329))}}}return nt(e,xe()),e.callbackNode===n?qg.bind(null,e):null}function wc(e,t){var n=fo;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=Cl(e,t),e!==2&&(t=Je,Je=n,t!==null&&_c(t)),e}function _c(e){Je===null?Je=e:Je.push.apply(Je,e)}function I1(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 i=n[r],o=i.getSnapshot;i=i.value;try{if(!zt(o(),i))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 In(e,t){for(t&=~zf,t&=~ra,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function Fp(e){if(q&6)throw Error(k(327));pi();var t=ll(e,0);if(!(t&1))return nt(e,xe()),null;var n=Cl(e,t);if(e.tag!==0&&n===2){var r=Hu(e);r!==0&&(t=r,n=wc(e,r))}if(n===1)throw n=Mo,_r(e,0),In(e,t),nt(e,xe()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vr(e,Je,cn),nt(e,xe()),null}function Uf(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(Ei=xe()+500,ql&&rr())}}function Ar(e){Fn!==null&&Fn.tag===0&&!(q&6)&&pi();var t=q;q|=1;var n=Et.transition,r=re;try{if(Et.transition=null,re=1,e)return e()}finally{re=r,Et.transition=n,q=t,!(q&6)&&rr()}}function Vf(){it=oi.current,pe(oi)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,d1(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(Sf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&dl();break;case 3:Si(),pe(et),pe(Ue),Rf();break;case 5:Tf(r);break;case 4:Si();break;case 13:pe(me);break;case 19:pe(me);break;case 10:Af(r.type._context);break;case 22:case 23:Vf()}n=n.return}if(Ne=e,Ce=e=Gn(e.current,null),Ie=it=t,ke=0,Mo=null,zf=ra=Cr=0,Je=fo=null,yr!==null){for(t=0;t<yr.length;t++)if(n=yr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}yr=null}return e}function em(e,t){do{var n=Ce;try{if(Cf(),$s.current=xl,_l){for(var r=ye.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}_l=!1}if(Er=0,Te=Pe=ye=null,uo=!1,Ro=0,Ff.current=null,n===null||n.return===null){ke=1,Mo=t,Ce=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=Ie,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Cp(s);if(p!==null){p.flags&=-257,Ap(p,s,l,o,t),p.mode&1&&Ep(o,u,t),t=p,a=u;var y=t.updateQueue;if(y===null){var h=new Set;h.add(a),t.updateQueue=h}else y.add(a);break e}else{if(!(t&1)){Ep(o,u,t),$f();break e}a=Error(k(426))}}else if(he&&l.mode&1){var x=Cp(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Ap(x,s,l,o,t),bf(bi(a,l));break e}}o=a=bi(a,l),ke!==4&&(ke=2),fo===null?fo=[o]:fo.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Lg(o,a,t);yp(o,g);break e;case 1:l=a;var v=o.type,_=o.stateNode;if(!(o.flags&128)&&(typeof v.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Hn===null||!Hn.has(_)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=Fg(o,l,t);yp(o,S);break e}}o=o.return}while(o!==null)}rm(n)}catch(b){t=b,Ce===n&&n!==null&&(Ce=n=n.return);continue}break}while(!0)}function tm(){var e=Sl.current;return Sl.current=xl,e===null?xl:e}function $f(){(ke===0||ke===3||ke===2)&&(ke=4),Ne===null||!(Cr&268435455)&&!(ra&268435455)||In(Ne,Ie)}function Cl(e,t){var n=q;q|=2;var r=tm();(Ne!==e||Ie!==t)&&(cn=null,_r(e,t));do try{L1();break}catch(i){em(e,i)}while(!0);if(Cf(),q=n,Sl.current=r,Ce!==null)throw Error(k(261));return Ne=null,Ie=0,ke}function L1(){for(;Ce!==null;)nm(Ce)}function F1(){for(;Ce!==null&&!u_();)nm(Ce)}function nm(e){var t=om(e.alternate,e,it);e.memoizedProps=e.pendingProps,t===null?rm(e):Ce=t,Ff.current=null}function rm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=R1(n,t),n!==null){n.flags&=32767,Ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,Ce=null;return}}else if(n=T1(n,t,it),n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);ke===0&&(ke=5)}function vr(e,t,n){var r=re,i=Et.transition;try{Et.transition=null,re=1,z1(e,t,n,r)}finally{Et.transition=i,re=r}return null}function z1(e,t,n,r){do pi();while(Fn!==null);if(q&6)throw Error(k(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(w_(e,o),e===Ne&&(Ce=Ne=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||bs||(bs=!0,sm(sl,function(){return pi(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Et.transition,Et.transition=null;var s=re;re=1;var l=q;q|=4,Ff.current=null,D1(e,n),Zg(n,e),o1(Zu),al=!!Xu,Zu=Xu=null,e.current=n,M1(n),c_(),q=l,re=s,Et.transition=o}else e.current=n;if(bs&&(bs=!1,Fn=e,El=i),o=e.pendingLanes,o===0&&(Hn=null),p_(n.stateNode),nt(e,xe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(bl)throw bl=!1,e=mc,mc=null,e;return El&1&&e.tag!==0&&pi(),o=e.pendingLanes,o&1?e===yc?po++:(po=0,yc=e):po=0,rr(),null}function pi(){if(Fn!==null){var e=Lv(El),t=Et.transition,n=re;try{if(Et.transition=null,re=16>e?16:e,Fn===null)var r=!1;else{if(e=Fn,Fn=null,El=0,q&6)throw Error(k(331));var i=q;for(q|=4,j=e.current;j!==null;){var o=j,s=o.child;if(j.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(j=u;j!==null;){var c=j;switch(c.tag){case 0:case 11:case 15:co(8,c,o)}var f=c.child;if(f!==null)f.return=c,j=f;else for(;j!==null;){c=j;var d=c.sibling,p=c.return;if(Qg(c),c===u){j=null;break}if(d!==null){d.return=p,j=d;break}j=p}}}var y=o.alternate;if(y!==null){var h=y.child;if(h!==null){y.child=null;do{var x=h.sibling;h.sibling=null,h=x}while(h!==null)}}j=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,j=s;else e:for(;j!==null;){if(o=j,o.flags&2048)switch(o.tag){case 0:case 11:case 15:co(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,j=g;break e}j=o.return}}var v=e.current;for(j=v;j!==null;){s=j;var _=s.child;if(s.subtreeFlags&2064&&_!==null)_.return=s,j=_;else e:for(s=v;j!==null;){if(l=j,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:na(9,l)}}catch(b){_e(l,l.return,b)}if(l===s){j=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,j=S;break e}j=l.return}}if(q=i,rr(),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Ql,e)}catch{}r=!0}return r}finally{re=n,Et.transition=t}}return!1}function zp(e,t,n){t=bi(n,t),t=Lg(e,t,1),e=Wn(e,t,1),t=Ge(),e!==null&&($o(e,1,t),nt(e,t))}function _e(e,t,n){if(e.tag===3)zp(e,e,n);else for(;t!==null;){if(t.tag===3){zp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Hn===null||!Hn.has(r))){e=bi(n,e),e=Fg(t,e,1),t=Wn(t,e,1),e=Ge(),t!==null&&($o(t,1,e),nt(t,e));break}}t=t.return}}function B1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ge(),e.pingedLanes|=e.suspendedLanes&n,Ne===e&&(Ie&n)===n&&(ke===4||ke===3&&(Ie&130023424)===Ie&&500>xe()-Bf?_r(e,0):zf|=n),nt(e,t)}function im(e,t){t===0&&(e.mode&1?(t=ps,ps<<=1,!(ps&130023424)&&(ps=4194304)):t=1);var n=Ge();e=Sn(e,t),e!==null&&($o(e,t,n),nt(e,n))}function U1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),im(e,n)}function V1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),im(e,n)}var om;om=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,k1(e,t,n);qe=!!(e.flags&131072)}else qe=!1,he&&t.flags&1048576&&ug(t,vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var i=wi(t,Ue.current);di(t,n),i=Df(null,t,r,e,i,n);var o=Mf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(r)?(o=!0,pl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pf(t),i.updater=ta,t.stateNode=i,i._reactInternals=t,sc(t,r,e,n),t=uc(null,t,r,!0,o,n)):(t.tag=0,he&&o&&xf(t),He(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=W1(r),e=Rt(r,e),i){case 0:t=ac(null,t,r,e,n);break e;case 1:t=kp(null,t,r,e,n);break e;case 11:t=Op(null,t,r,e,n);break e;case 14:t=Pp(null,t,r,Rt(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),ac(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),kp(e,t,r,i,n);case 3:e:{if(Vg(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,i=o.element,vg(e,t),yl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=bi(Error(k(423)),t),t=Tp(e,t,r,n,i);break e}else if(r!==i){i=bi(Error(k(424)),t),t=Tp(e,t,r,n,i);break e}else for(at=$n(t.stateNode.containerInfo.firstChild),ut=t,he=!0,Dt=null,n=pg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_i(),r===i){t=bn(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return gg(t),e===null&&rc(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Ju(r,i)?s=null:o!==null&&Ju(r,o)&&(t.flags|=32),Ug(e,t),He(e,t,s,n),t.child;case 6:return e===null&&rc(t),null;case 13:return $g(e,t,n);case 4:return kf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xi(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Op(e,t,r,i,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ae(gl,r._currentValue),r._currentValue=s,o!==null)if(zt(o.value,s)){if(o.children===i.children&&!et.current){t=bn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=gn(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ic(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(k(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ic(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}He(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,di(t,n),i=Ct(i),r=r(i),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,i=Rt(r,t.pendingProps),i=Rt(r.type,i),Pp(e,t,r,i,n);case 15:return zg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Hs(e,t),t.tag=1,tt(r)?(e=!0,pl(t)):e=!1,di(t,n),Ig(t,r,i),sc(t,r,i,n),uc(null,t,r,!0,e,n);case 19:return Wg(e,t,n);case 22:return Bg(e,t,n)}throw Error(k(156,t.tag))};function sm(e,t){return Dv(e,t)}function $1(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 xt(e,t,n,r){return new $1(e,t,n,r)}function Wf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function W1(e){if(typeof e=="function")return Wf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uf)return 11;if(e===cf)return 14}return 2}function Gn(e,t){var n=e.alternate;return n===null?(n=xt(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 Qs(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Wf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Yr:return xr(n.children,i,o,t);case af:s=8,i|=8;break;case Tu:return e=xt(12,n,t,i|2),e.elementType=Tu,e.lanes=o,e;case Ru:return e=xt(13,n,t,i),e.elementType=Ru,e.lanes=o,e;case Nu:return e=xt(19,n,t,i),e.elementType=Nu,e.lanes=o,e;case gv:return ia(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hv:s=10;break e;case vv:s=9;break e;case uf:s=11;break e;case cf:s=14;break e;case Dn:s=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=xt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function xr(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function ia(e,t,n,r){return e=xt(22,e,r,t),e.elementType=gv,e.lanes=n,e.stateNode={isHidden:!1},e}function ou(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function su(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function H1(e,t,n,r,i){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=Ba(0),this.expirationTimes=Ba(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ba(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hf(e,t,n,r,i,o,s,l,a){return e=new H1(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=xt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pf(o),e}function K1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lm(e){if(!e)return Zn;e=e._reactInternals;e:{if(Lr(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(tt(n))return lg(e,n,t)}return t}function am(e,t,n,r,i,o,s,l,a){return e=Hf(n,r,!0,e,i,o,s,l,a),e.context=lm(null),n=e.current,r=Ge(),i=Kn(n),o=gn(r,i),o.callback=t??null,Wn(n,o,i),e.current.lanes=i,$o(e,i,r),nt(e,r),e}function oa(e,t,n,r){var i=t.current,o=Ge(),s=Kn(i);return n=lm(n),t.context===null?t.context=n:t.pendingContext=n,t=gn(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wn(i,t,s),e!==null&&(It(e,i,s,o),Vs(e,i,s)),s}function Al(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 Bp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Kf(e,t){Bp(e,t),(e=e.alternate)&&Bp(e,t)}function G1(){return null}var um=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gf(e){this._internalRoot=e}sa.prototype.render=Gf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));oa(e,t,null,null)};sa.prototype.unmount=Gf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ar(function(){oa(null,e,null,null)}),t[xn]=null}};function sa(e){this._internalRoot=e}sa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jn.length&&t!==0&&t<jn[n].priority;n++);jn.splice(n,0,e),n===0&&Vv(e)}};function Qf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function la(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Up(){}function Q1(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Al(s);o.call(u)}}var s=am(t,r,e,0,null,!1,!1,"",Up);return e._reactRootContainer=s,e[xn]=s.current,Ao(e.nodeType===8?e.parentNode:e),Ar(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Al(a);l.call(u)}}var a=Hf(e,0,!1,null,null,!1,!1,"",Up);return e._reactRootContainer=a,e[xn]=a.current,Ao(e.nodeType===8?e.parentNode:e),Ar(function(){oa(t,a,n,r)}),a}function aa(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=Al(s);l.call(a)}}oa(t,s,e,i)}else s=Q1(n,t,e,i,r);return Al(s)}Fv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=to(t.pendingLanes);n!==0&&(pf(t,n|1),nt(t,xe()),!(q&6)&&(Ei=xe()+500,rr()))}break;case 13:Ar(function(){var r=Sn(e,1);if(r!==null){var i=Ge();It(r,e,1,i)}}),Kf(e,1)}};hf=function(e){if(e.tag===13){var t=Sn(e,134217728);if(t!==null){var n=Ge();It(t,e,134217728,n)}Kf(e,134217728)}};zv=function(e){if(e.tag===13){var t=Kn(e),n=Sn(e,t);if(n!==null){var r=Ge();It(n,e,t,r)}Kf(e,t)}};Bv=function(){return re};Uv=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};Vu=function(e,t,n){switch(t){case"input":if(ju(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 i=Jl(r);if(!i)throw Error(k(90));yv(r),ju(r,i)}}}break;case"textarea":_v(e,n);break;case"select":t=n.value,t!=null&&ai(e,!!n.multiple,t,!1)}};Ov=Uf;Pv=Ar;var Y1={usingClientEntryPoint:!1,Events:[Ho,qr,Jl,Cv,Av,Uf]},Qi={findFiberByHostInstance:mr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},X1={bundleType:Qi.bundleType,version:Qi.version,rendererPackageName:Qi.rendererPackageName,rendererConfig:Qi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Rv(e),e===null?null:e.stateNode},findFiberByHostInstance:Qi.findFiberByHostInstance||G1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Es=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Es.isDisabled&&Es.supportsFiber)try{Ql=Es.inject(X1),qt=Es}catch{}}pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y1;pt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qf(t))throw Error(k(200));return K1(e,t,null,n)};pt.createRoot=function(e,t){if(!Qf(e))throw Error(k(299));var n=!1,r="",i=um;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Hf(e,1,!1,null,null,n,!1,r,i),e[xn]=t.current,Ao(e.nodeType===8?e.parentNode:e),new Gf(t)};pt.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=Rv(t),e=e===null?null:e.stateNode,e};pt.flushSync=function(e){return Ar(e)};pt.hydrate=function(e,t,n){if(!la(t))throw Error(k(200));return aa(null,e,t,!0,n)};pt.hydrateRoot=function(e,t,n){if(!Qf(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=um;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=am(t,null,e,1,n??null,i,!1,o,s),e[xn]=t.current,Ao(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new sa(t)};pt.render=function(e,t,n){if(!la(t))throw Error(k(200));return aa(null,e,t,!1,n)};pt.unmountComponentAtNode=function(e){if(!la(e))throw Error(k(40));return e._reactRootContainer?(Ar(function(){aa(null,null,e,!1,function(){e._reactRootContainer=null,e[xn]=null})}),!0):!1};pt.unstable_batchedUpdates=Uf;pt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!la(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return aa(e,t,n,!1,r)};pt.version="18.3.1-next-f1338f8080-20240426";function cm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cm)}catch(e){console.error(e)}}cm(),cv.exports=pt;var Fr=cv.exports;const Z1=qc(Fr);var Vp=Fr;Pu.createRoot=Vp.createRoot,Pu.hydrateRoot=Vp.hydrateRoot;function J(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var J1={};function ua(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:J1}var fm=Object.assign,Ol=Object.getOwnPropertyDescriptor,tn=Object.defineProperty,Go=Object.prototype,xc=[];Object.freeze(xc);var dm={};Object.freeze(dm);var q1=typeof Proxy<"u",ex=Object.toString();function pm(){q1||J("Proxy not available")}function hm(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var si=function(){};function Bt(e){return typeof e=="function"}function Or(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function ca(e){return e!==null&&typeof e=="object"}function En(e){if(!ca(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===ex}function vm(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Qo(e,t,n){tn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function gm(e,t,n){tn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function ir(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(r){return ca(r)&&r[n]===!0}}function Ni(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function tx(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),r=Object.getPrototypeOf(n);return r===null}function dn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var mm=typeof Object.getOwnPropertySymbols<"u";function nx(e){var t=Object.keys(e);if(!mm)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(r){return Go.propertyIsEnumerable.call(e,r)})):t}var Ci=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:mm?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function ym(e){return e===null?null:typeof e=="object"?""+e:e}function mn(e,t){return Go.hasOwnProperty.call(e,t)}var rx=Object.getOwnPropertyDescriptors||function(t){var n={};return Ci(t).forEach(function(r){n[r]=Ol(t,r)}),n};function st(e,t){return!!(e&t)}function lt(e,t,n){return n?e|=t:e&=~t,e}function $p(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ix(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sx(r.key),r)}}function Di(e,t,n){return t&&ix(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function li(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=lx(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
41
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pr.apply(null,arguments)}function wm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sc(e,t)}function Sc(e,t){return Sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Sc(e,t)}function ox(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sx(e){var t=ox(e,"string");return typeof t=="symbol"?t:t+""}function lx(e,t){if(e){if(typeof e=="string")return $p(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$p(e,t):void 0}}var Jt=Symbol("mobx-stored-annotations");function nn(e){function t(n,r){if(Xo(r))return e.decorate_20223_(n,r);Yo(n,r,e)}return Object.assign(t,e)}function Yo(e,t,n){mn(e,Jt)||Qo(e,Jt,Pr({},e[Jt])),gx(n)||(e[Jt][t]=n)}function ax(e){return mn(e,Jt)||Qo(e,Jt,Pr({},e[Jt])),e[Jt]}function Xo(e){return typeof e=="object"&&typeof e.kind=="string"}var $=Symbol("mobx administration"),or=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=ee.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return Im(this)},t.reportChanged=function(){St(),Lm(this),bt()},t.toString=function(){return this.name_},Di(e,[{key:"isBeingObserved",get:function(){return st(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=lt(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return st(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=lt(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return st(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=lt(this.flags_,e.diffValueMask_,r===1)}}])}();or.isBeingObservedMask_=1;or.isPendingUnobservationMask_=2;or.diffValueMask_=4;var Yf=ir("Atom",or);function _m(e,t,n){t===void 0&&(t=si),n===void 0&&(n=si);var r=new or(e);return t!==si&&wS(r,t),n!==si&&$m(r,n),r}function ux(e,t){return e===t}function cx(e,t){return id(e,t)}function fx(e,t){return id(e,t,1)}function dx(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Pl={identity:ux,structural:cx,default:dx,shallow:fx};function kr(e,t,n){return ed(e)?e:Array.isArray(e)?V.array(e,{name:n}):En(e)?V.object(e,void 0,{name:n}):Ni(e)?V.map(e,{name:n}):dn(e)?V.set(e,{name:n}):typeof e=="function"&&!Io(e)&&!Lo(e)?vm(e)?Ai(e):jo(n,e):e}function px(e,t,n){if(e==null||ns(e)||ts(e)||sr(e)||Mt(e))return e;if(Array.isArray(e))return V.array(e,{name:n,deep:!1});if(En(e))return V.object(e,void 0,{name:n,deep:!1});if(Ni(e))return V.map(e,{name:n,deep:!1});if(dn(e))return V.set(e,{name:n,deep:!1})}function fa(e){return e}function hx(e,t){return id(e,t)?t:e}var vx="override";function gx(e){return e.annotationType_===vx}function Zo(e,t){return{annotationType_:e,options_:t,make_:mx,extend_:yx,decorate_20223_:wx}}function mx(e,t,n,r){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,n,!1)===null?0:1;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if(Io(n.value))return 1;var o=xm(e,this,t,n,!1);return tn(r,t,o),2}function yx(e,t,n,r){var i=xm(e,this,t,n);return e.defineProperty_(t,i,r)}function wx(e,t){var n=t.kind,r=t.name,i=t.addInitializer,o=this,s=function(u){var c,f,d,p;return Tr((c=(f=o.options_)==null?void 0:f.name)!=null?c:r.toString(),u,(d=(p=o.options_)==null?void 0:p.autoAction)!=null?d:!1)};if(n=="field")return function(a){var u,c=a;return Io(c)||(c=s(c)),(u=o.options_)!=null&&u.bound&&(c=c.bind(this),c.isMobxAction=!0),c};if(n=="method"){var l;return Io(e)||(e=s(e)),(l=this.options_)!=null&&l.bound&&i(function(){var a=this,u=a[r].bind(a);u.isMobxAction=!0,a[r]=u}),e}J("Cannot apply '"+o.annotationType_+"' to '"+String(r)+"' (kind: "+n+"):"+(`
42
- '`+o.annotationType_+"' can only be used on properties with a function value."))}function _x(e,t,n,r){t.annotationType_,r.value}function xm(e,t,n,r,i){var o,s,l,a,u,c,f;i===void 0&&(i=N.safeDescriptors),_x(e,t,n,r);var d=r.value;if((o=t.options_)!=null&&o.bound){var p;d=d.bind((p=e.proxy_)!=null?p:e.target_)}return{value:Tr((s=(l=t.options_)==null?void 0:l.name)!=null?s:n.toString(),d,(a=(u=t.options_)==null?void 0:u.autoAction)!=null?a:!1,(c=t.options_)!=null&&c.bound?(f=e.proxy_)!=null?f:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function Sm(e,t){return{annotationType_:e,options_:t,make_:xx,extend_:Sx,decorate_20223_:bx}}function xx(e,t,n,r){var i;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!mn(e.target_,t)||!Lo(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(Lo(n.value))return 1;var o=bm(e,this,t,n,!1,!1);return tn(r,t,o),2}function Sx(e,t,n,r){var i,o=bm(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,r)}function bx(e,t){var n,r=t.name,i=t.addInitializer;return Lo(e)||(e=Ai(e)),(n=this.options_)!=null&&n.bound&&i(function(){var o=this,s=o[r].bind(o);s.isMobXFlow=!0,o[r]=s}),e}function Ex(e,t,n,r){t.annotationType_,r.value}function bm(e,t,n,r,i,o){o===void 0&&(o=N.safeDescriptors),Ex(e,t,n,r);var s=r.value;if(Lo(s)||(s=Ai(s)),i){var l;s=s.bind((l=e.proxy_)!=null?l:e.target_),s.isMobXFlow=!0}return{value:s,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function Xf(e,t){return{annotationType_:e,options_:t,make_:Cx,extend_:Ax,decorate_20223_:Ox}}function Cx(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Ax(e,t,n,r){return Px(e,this,t,n),e.defineComputedProperty_(t,Pr({},this.options_,{get:n.get,set:n.set}),r)}function Ox(e,t){var n=this,r=t.name,i=t.addInitializer;return i(function(){var o=Br(this)[$],s=Pr({},n.options_,{get:e,context:this});s.name||(s.name="ObservableObject."+r.toString()),o.values_.set(r,new Ut(s))}),function(){return this[$].getObservablePropValue_(r)}}function Px(e,t,n,r){t.annotationType_,r.get}function da(e,t){return{annotationType_:e,options_:t,make_:kx,extend_:Tx,decorate_20223_:Rx}}function kx(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Tx(e,t,n,r){var i,o;return Nx(e,this),e.defineObservableProperty_(t,n.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:kr,r)}function Rx(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function s(l,a){var u,c,f=Br(l)[$],d=new Qn(a,(u=(c=n.options_)==null?void 0:c.enhancer)!=null?u:kr,"ObservableObject."+i.toString(),!1);f.values_.set(i,d),o.add(l)}if(r=="accessor")return{get:function(){return o.has(this)||s(this,e.get.call(this)),this[$].getObservablePropValue_(i)},set:function(a){return o.has(this)||s(this,a),this[$].setObservablePropValue_(i,a)},init:function(a){return o.has(this)||s(this,a),a}}}function Nx(e,t,n,r){t.annotationType_}var Dx="true",Mx=Em();function Em(e){return{annotationType_:Dx,options_:e,make_:jx,extend_:Ix,decorate_20223_:Lx}}function jx(e,t,n,r){var i,o;if(n.get)return Ee.make_(e,t,n,r);if(n.set){var s=Tr(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:N.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(tn(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&typeof n.value=="function"){var l;if(vm(n.value)){var a,u=(a=this.options_)!=null&&a.autoBind?Ai.bound:Ai;return u.make_(e,t,n,r)}var c=(l=this.options_)!=null&&l.autoBind?jo.bound:jo;return c.make_(e,t,n,r)}var f=((i=this.options_)==null?void 0:i.deep)===!1?V.ref:V;if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var d;n.value=n.value.bind((d=e.proxy_)!=null?d:e.target_)}return f.make_(e,t,n,r)}function Ix(e,t,n,r){var i,o;if(n.get)return Ee.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:N.safeDescriptors?e.isPlainObject_:!0,set:Tr(t.toString(),n.set)},r);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var s;n.value=n.value.bind((s=e.proxy_)!=null?s:e.target_)}var l=((o=this.options_)==null?void 0:o.deep)===!1?V.ref:V;return l.extend_(e,t,n,r)}function Lx(e,t){J("'"+this.annotationType_+"' cannot be used as a decorator")}var Fx="observable",zx="observable.ref",Bx="observable.shallow",Ux="observable.struct",Cm={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Cm);function Cs(e){return e||Cm}var bc=da(Fx),Vx=da(zx,{enhancer:fa}),$x=da(Bx,{enhancer:px}),Wx=da(Ux,{enhancer:hx}),Am=nn(bc);function As(e){return e.deep===!0?kr:e.deep===!1?fa:Kx(e.defaultDecorator)}function Hx(e){var t;return e?(t=e.defaultDecorator)!=null?t:Em(e):void 0}function Kx(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:kr}function Om(e,t,n){if(Xo(t))return bc.decorate_20223_(e,t);if(Or(t)){Yo(e,t,bc);return}return ed(e)?e:En(e)?V.object(e,t,n):Array.isArray(e)?V.array(e,t):Ni(e)?V.map(e,t):dn(e)?V.set(e,t):typeof e=="object"&&e!==null?e:V.box(e,t)}fm(Om,Am);var Gx={box:function(t,n){var r=Cs(n);return new Qn(t,As(r),r.name,!0,r.equals)},array:function(t,n){var r=Cs(n);return(N.useProxies===!1||r.proxy===!1?$S:DS)(t,As(r),r.name)},map:function(t,n){var r=Cs(n);return new Ym(t,As(r),r.name)},set:function(t,n){var r=Cs(n);return new Xm(t,As(r),r.name)},object:function(t,n,r){return lr(function(){return Hm(N.useProxies===!1||(r==null?void 0:r.proxy)===!1?Br({},r):TS({},r),t,n)})},ref:nn(Vx),shallow:nn($x),deep:Am,struct:nn(Wx)},V=fm(Om,Gx),Pm="computed",Qx="computed.struct",Ec=Xf(Pm),Yx=Xf(Qx,{equals:Pl.structural}),Ee=function(t,n){if(Xo(n))return Ec.decorate_20223_(t,n);if(Or(n))return Yo(t,n,Ec);if(En(t))return nn(Xf(Pm,t));var r=En(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new Ut(r)};Object.assign(Ee,Ec);Ee.struct=nn(Yx);var Wp,Hp,kl=0,Xx=1,Zx=(Wp=(Hp=Ol(function(){},"name"))==null?void 0:Hp.configurable)!=null?Wp:!1,Kp={value:"action",configurable:!0,writable:!1,enumerable:!1};function Tr(e,t,n,r){n===void 0&&(n=!1);function i(){return km(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},Zx&&(Kp.value=e,tn(i,"name",Kp)),i}function km(e,t,n,r,i){var o=Jx(e,t);try{return n.apply(r,i)}catch(s){throw o.error_=s,s}finally{qx(o)}}function Jx(e,t,n,r){var i=!1,o=0,s=N.trackingDerivation,l=!t||!s;St();var a=N.allowStateChanges;l&&(zr(),a=Zf(!0));var u=qf(!0),c={runAsAction_:l,prevDerivation_:s,prevAllowStateChanges_:a,prevAllowStateReads_:u,notifySpy_:i,startTime_:o,actionId_:Xx++,parentActionId_:kl};return kl=c.actionId_,c}function qx(e){kl!==e.actionId_&&J(30),kl=e.parentActionId_,e.error_!==void 0&&(N.suppressReactionErrors=!0),Jf(e.prevAllowStateChanges_),ho(e.prevAllowStateReads_),bt(),e.runAsAction_&&yn(e.prevDerivation_),N.suppressReactionErrors=!1}function Zf(e){var t=N.allowStateChanges;return N.allowStateChanges=e,t}function Jf(e){N.allowStateChanges=e}var Qn=function(e){function t(r,i,o,s,l){var a;return o===void 0&&(o="ObservableValue"),l===void 0&&(l=Pl.default),a=e.call(this,o)||this,a.enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=i,a.name_=o,a.equals=l,a.value_=i(r,void 0,o),a}wm(t,e);var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==N.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(wt(this)){var o=_t(this,{object:this,type:rn,newValue:i});if(!o)return N.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?N.UNCHANGED:i},n.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),Lt(this)&&Ft(this,{type:rn,object:this,newValue:i,oldValue:o})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return qo(this,i)},n.observe_=function(i,o){return o&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:rn,newValue:this.value_,oldValue:void 0}),es(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return ym(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(or),eS=ir("ObservableValue",Qn),Ut=function(){function e(n){this.dependenciesState_=ee.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ee.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Rl(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Tl.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||J(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Tr("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Pl.structural:Pl.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){oS(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&J(32,this.name_,this.derivation),N.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Cc(this)&&(this.warnAboutUntrackedRead_(),St(),this.value_=this.computeValue_(!1),bt());else if(Im(this),Cc(this)){var r=N.trackingContext;this.keepAlive_&&!r&&(N.trackingContext=this),this.trackAndCompute()&&iS(this),N.trackingContext=r}var i=this.value_;if(Ys(i))throw i.cause;return i},t.set=function(r){if(this.setter_){this.isRunningSetter&&J(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else J(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,i=this.dependenciesState_===ee.NOT_TRACKING_,o=this.computeValue_(!0),s=i||Ys(r)||Ys(o)||!this.equals_(r,o);return s&&(this.value_=o),s},t.computeValue_=function(r){this.isComputing=!0;var i=Zf(!1),o;if(r)o=Tm(this,this.derivation,this.scope_);else if(N.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(s){o=new Rl(s)}return Jf(i),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(Ac(this),this.value_=void 0)},t.observe_=function(r,i){var o=this,s=!0,l=void 0;return hS(function(){var a=o.get();if(!s||i){var u=zr();r({observableKind:"computed",debugObjectName:o.name_,type:rn,object:o,newValue:a,oldValue:l}),yn(u)}s=!1,l=a})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return ym(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Di(e,[{key:"isComputing",get:function(){return st(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=lt(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return st(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=lt(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return st(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=lt(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return st(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=lt(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return st(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=lt(this.flags_,e.diffValueMask_,r===1)}}])}();Ut.isComputingMask_=1;Ut.isRunningSetterMask_=2;Ut.isBeingObservedMask_=4;Ut.isPendingUnobservationMask_=8;Ut.diffValueMask_=16;var Jo=ir("ComputedValue",Ut),ee;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(ee||(ee={}));var Tl;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Tl||(Tl={}));var Rl=function(t){this.cause=void 0,this.cause=t};function Ys(e){return e instanceof Rl}function Cc(e){switch(e.dependenciesState_){case ee.UP_TO_DATE_:return!1;case ee.NOT_TRACKING_:case ee.STALE_:return!0;case ee.POSSIBLY_STALE_:{for(var t=qf(!0),n=zr(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(Jo(s)){if(N.disableErrorBoundaries)s.get();else try{s.get()}catch{return yn(n),ho(t),!0}if(e.dependenciesState_===ee.STALE_)return yn(n),ho(t),!0}}return Nm(e),yn(n),ho(t),!1}}}function Tm(e,t,n){var r=qf(!0);Nm(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++N.runId;var i=N.trackingDerivation;N.trackingDerivation=e,N.inBatch++;var o;if(N.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(s){o=new Rl(s)}return N.inBatch--,N.trackingDerivation=i,tS(e),ho(r),o}function tS(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=ee.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var l=n[s];l.diffValue===0&&(l.diffValue=1,i!==s&&(n[i]=l),i++),l.dependenciesState_>r&&(r=l.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var a=t[o];a.diffValue===0&&Mm(a,e),a.diffValue=0}for(;i--;){var u=n[i];u.diffValue===1&&(u.diffValue=0,rS(u,e))}r!==ee.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function Ac(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Mm(t[n],e);e.dependenciesState_=ee.NOT_TRACKING_}function Rm(e){var t=zr();try{return e()}finally{yn(t)}}function zr(){var e=N.trackingDerivation;return N.trackingDerivation=null,e}function yn(e){N.trackingDerivation=e}function qf(e){var t=N.allowStateReads;return N.allowStateReads=e,t}function ho(e){N.allowStateReads=e}function Nm(e){if(e.dependenciesState_!==ee.UP_TO_DATE_){e.dependenciesState_=ee.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ee.UP_TO_DATE_}}var Xs=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Zs=!0,Dm=!1,N=function(){var e=ua();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Zs=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Xs().version&&(Zs=!1),Zs?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Xs):(setTimeout(function(){Dm||J(35)},1),new Xs)}();function nS(){if((N.pendingReactions.length||N.inBatch||N.isRunningReactions)&&J(36),Dm=!0,Zs){var e=ua();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),N=new Xs}}function rS(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Mm(e,t){e.observers_.delete(t),e.observers_.size===0&&jm(e)}function jm(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,N.pendingUnobservations.push(e))}function St(){N.inBatch++}function bt(){if(--N.inBatch===0){Fm();for(var e=N.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Ut&&n.suspend_())}N.pendingUnobservations=[]}}function Im(e){var t=N.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&N.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&N.inBatch>0&&jm(e),!1)}function Lm(e){e.lowestObserverState_!==ee.STALE_&&(e.lowestObserverState_=ee.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ee.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=ee.STALE_}))}function iS(e){e.lowestObserverState_!==ee.STALE_&&(e.lowestObserverState_=ee.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ee.POSSIBLY_STALE_?t.dependenciesState_=ee.STALE_:t.dependenciesState_===ee.UP_TO_DATE_&&(e.lowestObserverState_=ee.UP_TO_DATE_)}))}function oS(e){e.lowestObserverState_===ee.UP_TO_DATE_&&(e.lowestObserverState_=ee.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ee.UP_TO_DATE_&&(t.dependenciesState_=ee.POSSIBLY_STALE_,t.onBecomeStale_())}))}var sn=function(){function e(n,r,i,o){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ee.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Tl.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,N.pendingReactions.push(this),Fm())},t.runReaction_=function(){if(!this.isDisposed){St(),this.isScheduled=!1;var r=N.trackingContext;if(N.trackingContext=this,Cc(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}N.trackingContext=r,bt()}},t.track=function(r){if(!this.isDisposed){St(),this.isRunning=!0;var i=N.trackingContext;N.trackingContext=this;var o=Tm(this,r,void 0);N.trackingContext=i,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Ac(this),Ys(o)&&this.reportExceptionInDerivation_(o.cause),bt()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(N.disableErrorBoundaries)throw r;var o="[mobx] uncaught error in '"+this+"'";N.suppressReactionErrors||console.error(o,r),N.globalReactionErrorHandlers.forEach(function(s){return s(r,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(St(),Ac(this),bt()))},t.getDisposer_=function(r){var i=this,o=function s(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",o),o[$]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},Di(e,[{key:"isDisposed",get:function(){return st(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=lt(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return st(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=lt(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return st(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=lt(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return st(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=lt(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return st(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=lt(this.flags_,e.diffValueMask_,r===1)}}])}();sn.isDisposedMask_=1;sn.isScheduledMask_=2;sn.isTrackPendingMask_=4;sn.isRunningMask_=8;sn.diffValueMask_=16;var sS=100,Oc=function(t){return t()};function Fm(){N.inBatch>0||N.isRunningReactions||Oc(lS)}function lS(){N.isRunningReactions=!0;for(var e=N.pendingReactions,t=0;e.length>0;){++t===sS&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}N.isRunningReactions=!1}var Nl=ir("Reaction",sn);function aS(e){var t=Oc;Oc=function(r){return e(function(){return t(r)})}}function vo(){return!1}function uS(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var zm="action",cS="action.bound",Bm="autoAction",fS="autoAction.bound",Um="<unnamed action>",Pc=Zo(zm),dS=Zo(cS,{bound:!0}),kc=Zo(Bm,{autoAction:!0}),pS=Zo(fS,{autoAction:!0,bound:!0});function Vm(e){var t=function(r,i){if(Bt(r))return Tr(r.name||Um,r,e);if(Bt(i))return Tr(r,i,e);if(Xo(i))return(e?kc:Pc).decorate_20223_(r,i);if(Or(i))return Yo(r,i,e?kc:Pc);if(Or(r))return nn(Zo(e?Bm:zm,{name:r,autoAction:e}))};return t}var de=Vm(!1);Object.assign(de,Pc);var jo=Vm(!0);Object.assign(jo,kc);de.bound=nn(dS);jo.bound=nn(pS);function pa(e){return km(e.name||Um,!1,e,this,void 0)}function Io(e){return Bt(e)&&e.isMobxAction===!0}function hS(e,t){var n,r,i,o;t===void 0&&(t=dm);var s=(n=(r=t)==null?void 0:r.name)!=null?n:"Autorun",l=!t.scheduler&&!t.delay,a;if(l)a=new sn(s,function(){this.track(f)},t.onError,t.requiresObservable);else{var u=gS(t),c=!1;a=new sn(s,function(){c||(c=!0,u(function(){c=!1,a.isDisposed||a.track(f)}))},t.onError,t.requiresObservable)}function f(){e(a)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||a.schedule_(),a.getDisposer_((o=t)==null?void 0:o.signal)}var vS=function(t){return t()};function gS(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:vS}var mS="onBO",yS="onBUO";function wS(e,t,n){return Wm(mS,e,t,n)}function $m(e,t,n){return Wm(yS,e,t,n)}function Wm(e,t,n,r){var i=jl(t),o=Bt(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var l=i[s];l&&(l.delete(o),l.size===0&&delete i[s])}}var _S="never",Os="always",xS="observed";function SS(e){e.isolateGlobalState===!0&&nS();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(N.useProxies=t===Os?!0:t===_S?!1:typeof Proxy<"u"),t==="ifavailable"&&(N.verifyProxies=!0),n!==void 0){var r=n===Os?Os:n===xS;N.enforceActions=r,N.allowStateChanges=!(r===!0||r===Os)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(N[i]=!!e[i])}),N.allowStateReads=!N.observableRequiresReaction,e.reactionScheduler&&aS(e.reactionScheduler)}function Hm(e,t,n,r){var i=rx(t);return lr(function(){var o=Br(e,r)[$];Ci(i).forEach(function(s){o.extend_(s,i[s],n&&s in n?n[s]:!0)})}),e}function bS(e,t){return Km(jl(e,t))}function Km(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=ES(e.observing_).map(Km)),t}function ES(e){return Array.from(new Set(e))}var CS=0;function Gm(){this.message="FLOW_CANCELLED"}Gm.prototype=Object.create(Error.prototype);var lu=Sm("flow"),AS=Sm("flow.bound",{bound:!0}),Ai=Object.assign(function(t,n){if(Xo(n))return lu.decorate_20223_(t,n);if(Or(n))return Yo(t,n,lu);var r=t,i=r.name||"<unnamed flow>",o=function(){var l=this,a=arguments,u=++CS,c=de(i+" - runid: "+u+" - init",r).apply(l,a),f,d=void 0,p=new Promise(function(y,h){var x=0;f=h;function g(S){d=void 0;var b;try{b=de(i+" - runid: "+u+" - yield "+x++,c.next).call(c,S)}catch(E){return h(E)}_(b)}function v(S){d=void 0;var b;try{b=de(i+" - runid: "+u+" - yield "+x++,c.throw).call(c,S)}catch(E){return h(E)}_(b)}function _(S){if(Bt(S==null?void 0:S.then)){S.then(_,h);return}return S.done?y(S.value):(d=Promise.resolve(S.value),d.then(g,v))}g(void 0)});return p.cancel=de(i+" - runid: "+u+" - cancel",function(){try{d&&Gp(d);var y=c.return(void 0),h=Promise.resolve(y.value);h.then(si,si),Gp(h),f(new Gm)}catch(x){f(x)}}),p};return o.isMobXFlow=!0,o},lu);Ai.bound=nn(AS);function Gp(e){Bt(e.cancel)&&e.cancel()}function Lo(e){return(e==null?void 0:e.isMobXFlow)===!0}function OS(e,t){return e?ns(e)||!!e[$]||Yf(e)||Nl(e)||Jo(e):!1}function ed(e){return OS(e)}function PS(e){if(ns(e))return e[$].ownKeys_();J(38)}function Ps(e,t,n){return e.set(t,n),n}function Gr(e,t){if(e==null||typeof e!="object"||e instanceof Date||!ed(e))return e;if(eS(e)||Jo(e))return Gr(e.get(),t);if(t.has(e))return t.get(e);if(ts(e)){var n=Ps(t,e,new Array(e.length));return e.forEach(function(s,l){n[l]=Gr(s,t)}),n}if(Mt(e)){var r=Ps(t,e,new Set);return e.forEach(function(s){r.add(Gr(s,t))}),r}if(sr(e)){var i=Ps(t,e,new Map);return e.forEach(function(s,l){i.set(l,Gr(s,t))}),i}else{var o=Ps(t,e,{});return PS(e).forEach(function(s){Go.propertyIsEnumerable.call(e,s)&&(o[s]=Gr(e[s],t))}),o}}function Qp(e,t){return Gr(e,new Map)}function pn(e,t){t===void 0&&(t=void 0),St();try{return e.apply(t)}finally{bt()}}function $r(e){return e[$]}var kS={has:function(t,n){return $r(t).has_(n)},get:function(t,n){return $r(t).get_(n)},set:function(t,n,r){var i;return Or(n)?(i=$r(t).set_(n,r,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var r;return Or(n)?(r=$r(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return(i=$r(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return $r(t).ownKeys_()},preventExtensions:function(t){J(13)}};function TS(e,t){var n,r;return pm(),e=Br(e,t),(r=(n=e[$]).proxy_)!=null?r:n.proxy_=new Proxy(e,kS)}function wt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function qo(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),hm(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function _t(e,t){var n=zr();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i<o&&(t=r[i](t),t&&!t.type&&J(14),!!t);i++);return t}finally{yn(n)}}function Lt(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function es(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),hm(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Ft(e,t){var n=zr(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)r[i](t);yn(n)}}function ha(e,t,n){return lr(function(){var r,i=Br(e,n)[$];(r=t)!=null||(t=ax(e)),Ci(t).forEach(function(o){return i.make_(o,t[o])})}),e}var au=Symbol("mobx-keys");function td(e,t,n){return En(e)?Hm(e,e,t,n):(lr(function(){var r=Br(e,n)[$];if(!e[au]){var i=Object.getPrototypeOf(e),o=new Set([].concat(Ci(e),Ci(i)));o.delete("constructor"),o.delete($),Qo(i,au,o)}e[au].forEach(function(s){return r.make_(s,t&&s in t?t[s]:!0)})}),e)}var Yp="splice",rn="update",RS=1e4,NS={get:function(t,n){var r=t[$];return n===$?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):mn(Dl,n)?Dl[n]:t[n]},set:function(t,n,r){var i=t[$];return n==="length"&&i.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:i.set_(parseInt(n),r),!0},preventExtensions:function(){J(15)}},nd=function(){function e(n,r,i,o){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=o,this.atom_=new or(n),this.enhancer_=function(s,l){return r(s,l,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return qo(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),es(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&J("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var o=new Array(r-i),s=0;s<r-i;s++)o[s]=void 0;this.spliceWithArray_(i,0,o)}else this.spliceWithArray_(r,i-r)},t.updateArrayLength_=function(r,i){r!==this.lastKnownLength_&&J(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&ey(r+i+1)},t.spliceWithArray_=function(r,i,o){var s=this;this.atom_;var l=this.values_.length;if(r===void 0?r=0:r>l?r=l:r<0&&(r=Math.max(0,l+r)),arguments.length===1?i=l-r:i==null?i=0:i=Math.max(0,Math.min(i,l-r)),o===void 0&&(o=xc),wt(this)){var a=_t(this,{object:this.proxy_,type:Yp,index:r,removedCount:i,added:o});if(!a)return xc;i=a.removedCount,o=a.added}if(o=o.length===0?o:o.map(function(f){return s.enhancer_(f,void 0)}),this.legacyMode_){var u=o.length-i;this.updateArrayLength_(l,u)}var c=this.spliceItemsIntoValues_(r,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(r,o,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(r,i,o){if(o.length<RS){var s;return(s=this.values_).splice.apply(s,[r,i].concat(o))}else{var l=this.values_.slice(r,r+i),a=this.values_.slice(r+i);this.values_.length+=o.length-i;for(var u=0;u<o.length;u++)this.values_[r+u]=o[u];for(var c=0;c<a.length;c++)this.values_[r+o.length+c]=a[c];return l}},t.notifyArrayChildUpdate_=function(r,i,o){var s=!this.owned_&&vo(),l=Lt(this),a=l||s?{observableKind:"array",object:this.proxy_,type:rn,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:o}:null;this.atom_.reportChanged(),l&&Ft(this,a)},t.notifyArraySplice_=function(r,i,o){var s=!this.owned_&&vo(),l=Lt(this),a=l||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Yp,index:r,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;this.atom_.reportChanged(),l&&Ft(this,a)},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var o=this.values_;if(this.legacyMode_&&r>o.length&&J(17,r,o.length),r<o.length){this.atom_;var s=o[r];if(wt(this)){var l=_t(this,{type:rn,object:this.proxy_,index:r,newValue:i});if(!l)return;i=l.newValue}i=this.enhancer_(i,s);var a=i!==s;a&&(o[r]=i,this.notifyArrayChildUpdate_(r,i,s))}else{for(var u=new Array(r+1-o.length),c=0;c<u.length-1;c++)u[c]=void 0;u[u.length-1]=i,this.spliceWithArray_(o.length,0,u)}},e}();function DS(e,t,n,r){return n===void 0&&(n="ObservableArray"),r===void 0&&(r=!1),pm(),lr(function(){var i=new nd(n,t,r,!1);gm(i.values_,$,i);var o=new Proxy(i.values_,NS);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var Dl={clear:function(){return this.splice(0)},replace:function(t){var n=this[$];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var s=this[$];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,n)}return s.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,r){return this[$].spliceWithArray_(t,n,r)},push:function(){for(var t=this[$],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[$].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[$],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return N.trackingDerivation&&J(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){N.trackingDerivation&&J(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[$],r=n.dehanceValues_(n.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};ue("at",vt);ue("concat",vt);ue("flat",vt);ue("includes",vt);ue("indexOf",vt);ue("join",vt);ue("lastIndexOf",vt);ue("slice",vt);ue("toString",vt);ue("toLocaleString",vt);ue("toSorted",vt);ue("toSpliced",vt);ue("with",vt);ue("every",Wt);ue("filter",Wt);ue("find",Wt);ue("findIndex",Wt);ue("findLast",Wt);ue("findLastIndex",Wt);ue("flatMap",Wt);ue("forEach",Wt);ue("map",Wt);ue("some",Wt);ue("toReversed",Wt);ue("reduce",Qm);ue("reduceRight",Qm);function ue(e,t){typeof Array.prototype[e]=="function"&&(Dl[e]=t(e))}function vt(e){return function(){var t=this[$];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Wt(e){return function(t,n){var r=this,i=this[$];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(s,l){return t.call(n,s,l,r)})}}function Qm(e){return function(){var t=this,n=this[$];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(o,s,l){return i(o,s,l,t)},r[e].apply(r,arguments)}}var MS=ir("ObservableArrayAdministration",nd);function ts(e){return ca(e)&&MS(e[$])}var jS={},zn="add",Ml="delete",Ym=function(){function e(n,r,i){var o=this;r===void 0&&(r=kr),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[$]=jS,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,Bt(Map)||J(18),lr(function(){o.keysAtom_=_m("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,n&&o.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!N.trackingDerivation)return this.has_(r);var o=this.hasMap_.get(r);if(!o){var s=o=new Qn(this.has_(r),fa,"ObservableMap.key?",!1);this.hasMap_.set(r,s),$m(s,function(){return i.hasMap_.delete(r)})}return o.get()},t.set=function(r,i){var o=this.has_(r);if(wt(this)){var s=_t(this,{type:o?rn:zn,object:this,newValue:i,name:r});if(!s)return this;i=s.newValue}return o?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(this.keysAtom_,wt(this)){var o=_t(this,{type:Ml,object:this,name:r});if(!o)return!1}if(this.has_(r)){var s=vo(),l=Lt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:Ml,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return pn(function(){var u;i.keysAtom_.reportChanged(),(u=i.hasMap_.get(r))==null||u.setNewValue_(!1);var c=i.data_.get(r);c.setNewValue_(void 0),i.data_.delete(r)}),l&&Ft(this,a),!0}return!1},t.updateValue_=function(r,i){var o=this.data_.get(r);if(i=o.prepareNewValue_(i),i!==N.UNCHANGED){var s=vo(),l=Lt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:rn,object:this,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),l&&Ft(this,a)}},t.addValue_=function(r,i){var o=this;this.keysAtom_,pn(function(){var u,c=new Qn(i,o.enhancer_,"ObservableMap.key",!1);o.data_.set(r,c),i=c.value_,(u=o.hasMap_.get(r))==null||u.setNewValue_(!0),o.keysAtom_.reportChanged()});var s=vo(),l=Lt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:zn,object:this,name:r,newValue:i}:null;l&&Ft(this,a)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return Xp({next:function(){var s=i.next(),l=s.done,a=s.value;return{done:l,value:l?void 0:r.get(a)}}})},t.entries=function(){var r=this,i=this.keys();return Xp({next:function(){var s=i.next(),l=s.done,a=s.value;return{done:l,value:l?void 0:[a,r.get(a)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,i){for(var o=li(this),s;!(s=o()).done;){var l=s.value,a=l[0],u=l[1];r.call(i,u,a,this)}},t.merge=function(r){var i=this;return sr(r)&&(r=new Map(r)),pn(function(){En(r)?nx(r).forEach(function(o){return i.set(o,r[o])}):Array.isArray(r)?r.forEach(function(o){var s=o[0],l=o[1];return i.set(s,l)}):Ni(r)?(tx(r)||J(19,r),r.forEach(function(o,s){return i.set(s,o)})):r!=null&&J(20,r)}),this},t.clear=function(){var r=this;pn(function(){Rm(function(){for(var i=li(r.keys()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.replace=function(r){var i=this;return pn(function(){for(var o=IS(r),s=new Map,l=!1,a=li(i.data_.keys()),u;!(u=a()).done;){var c=u.value;if(!o.has(c)){var f=i.delete(c);if(f)l=!0;else{var d=i.data_.get(c);s.set(c,d)}}}for(var p=li(o.entries()),y;!(y=p()).done;){var h=y.value,x=h[0],g=h[1],v=i.data_.has(x);if(i.set(x,g),i.data_.has(x)){var _=i.data_.get(x);s.set(x,_),v||(l=!0)}}if(!l)if(i.data_.size!==s.size)i.keysAtom_.reportChanged();else for(var S=i.data_.keys(),b=s.keys(),E=S.next(),C=b.next();!E.done;){if(E.value!==C.value){i.keysAtom_.reportChanged();break}E=S.next(),C=b.next()}i.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return es(this,r)},t.intercept_=function(r){return qo(this,r)},Di(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),sr=ir("ObservableMap",Ym);function Xp(e){return e[Symbol.toStringTag]="MapIterator",od(e)}function IS(e){if(Ni(e)||sr(e))return e;if(Array.isArray(e))return new Map(e);if(En(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return J(21,e)}var LS={},Xm=function(){function e(n,r,i){var o=this;r===void 0&&(r=kr),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[$]=LS,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,Bt(Set)||J(22),this.enhancer_=function(s,l){return r(s,l,i)},lr(function(){o.atom_=_m(o.name_),n&&o.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;pn(function(){Rm(function(){for(var i=li(r.data_.values()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.forEach=function(r,i){for(var o=li(this),s;!(s=o()).done;){var l=s.value;r.call(i,l,l,this)}},t.add=function(r){var i=this;if(this.atom_,wt(this)){var o=_t(this,{type:zn,object:this,newValue:r});if(!o)return this}if(!this.has(r)){pn(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var s=!1,l=Lt(this),a=l||s?{observableKind:"set",debugObjectName:this.name_,type:zn,object:this,newValue:r}:null;l&&Ft(this,a)}return this},t.delete=function(r){var i=this;if(wt(this)){var o=_t(this,{type:Ml,object:this,oldValue:r});if(!o)return!1}if(this.has(r)){var s=!1,l=Lt(this),a=l||s?{observableKind:"set",debugObjectName:this.name_,type:Ml,object:this,oldValue:r}:null;return pn(function(){i.atom_.reportChanged(),i.data_.delete(r)}),l&&Ft(this,a),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=0,i=Array.from(this.keys()),o=Array.from(this.values());return Zp({next:function(){var l=r;return r+=1,l<o.length?{value:[i[l],o[l]],done:!1}:{value:void 0,done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=0,o=Array.from(this.data_.values());return Zp({next:function(){return i<o.length?{value:r.dehanceValue_(o[i++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(r){if(dn(r)&&!Mt(r))return r.intersection(this);var i=new Set(this);return i.intersection(r)},t.union=function(r){if(dn(r)&&!Mt(r))return r.union(this);var i=new Set(this);return i.union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){if(dn(r)&&!Mt(r))return r.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){if(dn(r)&&!Mt(r))return r.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(r)},t.replace=function(r){var i=this;return Mt(r)&&(r=new Set(r)),pn(function(){Array.isArray(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):dn(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):r!=null&&J("Cannot initialize set from "+r)}),this},t.observe_=function(r,i){return es(this,r)},t.intercept_=function(r){return qo(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Di(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Mt=ir("ObservableSet",Xm);function Zp(e){return e[Symbol.toStringTag]="SetIterator",od(e)}var Jp=Object.create(null),qp="remove",Zm=function(){function e(n,r,i,o){r===void 0&&(r=new Map),o===void 0&&(o=Mx),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=r,this.name_=i,this.defaultAnnotation_=o,this.keysAtom_=new or("ObservableObject.keys"),this.isPlainObject_=En(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,i){var o=this.values_.get(r);if(o instanceof Ut)return o.set(i),!0;if(wt(this)){var s=_t(this,{type:rn,object:this.proxy_||this.target_,name:r,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==N.UNCHANGED){var l=Lt(this),a=!1,u=l||a?{type:rn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),l&&Ft(this,u)}return!0},t.get_=function(r){return N.trackingDerivation&&!mn(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,o){return o===void 0&&(o=!1),mn(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,i):o?Reflect.set(this.target_,r,i):(this.target_[r]=i,!0):this.extend_(r,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(r){if(!N.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new Qn(r in this.target_,fa,"ObservableObject.key?",!1),this.pendingKeys_.set(r,i)),i.get()},t.make_=function(r,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(r in this.target_)){var o;if((o=this.target_[Jt])!=null&&o[r])return;J(1,i.annotationType_,this.name_+"."+r.toString())}for(var s=this.target_;s&&s!==Go;){var l=Ol(s,r);if(l){var a=i.make_(this,r,l,s);if(a===0)return;if(a===1)break}s=Object.getPrototypeOf(s)}th(this,i,r)}},t.extend_=function(r,i,o,s){if(s===void 0&&(s=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(r,i,s);var l=o.extend_(this,r,i,s);return l&&th(this,o,r),l},t.defineProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{St();var s=this.delete_(r);if(!s)return s;if(wt(this)){var l=_t(this,{object:this.proxy_||this.target_,name:r,type:zn,newValue:i.value});if(!l)return null;var a=l.newValue;i.value!==a&&(i=Pr({},i,{value:a}))}if(o){if(!Reflect.defineProperty(this.target_,r,i))return!1}else tn(this.target_,r,i);this.notifyPropertyAddition_(r,i.value)}finally{bt()}return!0},t.defineObservableProperty_=function(r,i,o,s){s===void 0&&(s=!1),this.keysAtom_;try{St();var l=this.delete_(r);if(!l)return l;if(wt(this)){var a=_t(this,{object:this.proxy_||this.target_,name:r,type:zn,newValue:i});if(!a)return null;i=a.newValue}var u=eh(r),c={configurable:N.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,r,c))return!1}else tn(this.target_,r,c);var f=new Qn(i,o,"ObservableObject.key",!1);this.values_.set(r,f),this.notifyPropertyAddition_(r,f.value_)}finally{bt()}return!0},t.defineComputedProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{St();var s=this.delete_(r);if(!s)return s;if(wt(this)){var l=_t(this,{object:this.proxy_||this.target_,name:r,type:zn,newValue:void 0});if(!l)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var a=eh(r),u={configurable:N.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:a.get,set:a.set};if(o){if(!Reflect.defineProperty(this.target_,r,u))return!1}else tn(this.target_,r,u);this.values_.set(r,new Ut(i)),this.notifyPropertyAddition_(r,void 0)}finally{bt()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),this.keysAtom_,!mn(this.target_,r))return!0;if(wt(this)){var o=_t(this,{object:this.proxy_||this.target_,name:r,type:qp});if(!o)return null}try{var s;St();var l=Lt(this),a=!1,u=this.values_.get(r),c=void 0;if(!u&&(l||a)){var f;c=(f=Ol(this.target_,r))==null?void 0:f.value}if(i){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(u&&(this.values_.delete(r),u instanceof Qn&&(c=u.value_),Lm(u)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(r in this.target_),l||a){var d={type:qp,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:r};l&&Ft(this,d)}}finally{bt()}return!0},t.observe_=function(r,i){return es(this,r)},t.intercept_=function(r){return qo(this,r)},t.notifyPropertyAddition_=function(r,i){var o,s=Lt(this),l=!1;if(s||l){var a=s||l?{type:zn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:i}:null;s&&Ft(this,a)}(o=this.pendingKeys_)==null||(o=o.get(r))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Ci(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Br(e,t){var n;if(mn(e,$))return e;var r=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",i=new Zm(e,new Map,String(r),Hx(t));return Qo(e,$,i),e}var FS=ir("ObservableObjectAdministration",Zm);function eh(e){return Jp[e]||(Jp[e]={get:function(){return this[$].getObservablePropValue_(e)},set:function(n){return this[$].setObservablePropValue_(e,n)}})}function ns(e){return ca(e)?FS(e[$]):!1}function th(e,t,n){var r;(r=e.target_[Jt])==null||delete r[n]}var zS=qm(0),BS=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),uu=0,Jm=function(){};function US(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}US(Jm,Array.prototype);var rd=function(e){function t(r,i,o,s){var l;return o===void 0&&(o="ObservableArray"),s===void 0&&(s=!1),l=e.call(this)||this,lr(function(){var a=new nd(o,i,s,!0);a.proxy_=l,gm(l,$,a),r&&r.length&&l.spliceWithArray(0,0,r),BS&&Object.defineProperty(l,"0",zS)}),l}wm(t,e);var n=t.prototype;return n.concat=function(){this[$].atom_.reportObserved();for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),o.map(function(l){return ts(l)?l.slice():l}))},n[Symbol.iterator]=function(){var r=this,i=0;return od({next:function(){return i<r.length?{value:r[i++],done:!1}:{done:!0,value:void 0}}})},Di(t,[{key:"length",get:function(){return this[$].getArrayLength_()},set:function(i){this[$].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Jm);Object.entries(Dl).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Qo(rd.prototype,t,n)});function qm(e){return{enumerable:!1,configurable:!0,get:function(){return this[$].get_(e)},set:function(n){this[$].set_(e,n)}}}function VS(e){tn(rd.prototype,""+e,qm(e))}function ey(e){if(e>uu){for(var t=uu;t<e+100;t++)VS(t);uu=e}}ey(1e3);function $S(e,t,n){return new rd(e,t,n)}function jl(e,t){if(typeof e=="object"&&e!==null){if(ts(e))return t!==void 0&&J(23),e[$].atom_;if(Mt(e))return e.atom_;if(sr(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||J(25,t,Tc(e)),n}if(ns(e)){if(!t)return J(26);var r=e[$].values_.get(t);return r||J(27,t,Tc(e)),r}if(Yf(e)||Jo(e)||Nl(e))return e}else if(Bt(e)&&Nl(e[$]))return e[$];J(28)}function WS(e,t){if(e||J(29),Yf(e)||Jo(e)||Nl(e)||sr(e)||Mt(e))return e;if(e[$])return e[$];J(24,e)}function Tc(e,t){var n;if(t!==void 0)n=jl(e,t);else{if(Io(e))return e.name;ns(e)||sr(e)||Mt(e)?n=WS(e):n=jl(e)}return n.name_}function lr(e){var t=zr(),n=Zf(!0);St();try{return e()}finally{bt(),Jf(n),yn(t)}}var nh=Go.toString;function id(e,t,n){return n===void 0&&(n=-1),Rc(e,t,n)}function Rc(e,t,n,r,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var s=nh.call(e);if(s!==nh.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=rh(e),t=rh(t);var l=s==="[object Array]";if(!l){if(typeof e!="object"||typeof t!="object")return!1;var a=e.constructor,u=t.constructor;if(a!==u&&!(Bt(a)&&a instanceof a&&Bt(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var c=r.length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),l){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!Rc(e[c],t[c],n-1,r,i))return!1}else{var f=Object.keys(e),d;if(c=f.length,Object.keys(t).length!==c)return!1;for(;c--;)if(d=f[c],!(mn(t,d)&&Rc(e[d],t[d],n-1,r,i)))return!1}return r.pop(),i.pop(),!0}function rh(e){return ts(e)?e.slice():Ni(e)||sr(e)||dn(e)||Mt(e)?Array.from(e.entries()):e}var ih,HS=((ih=ua().Iterator)==null?void 0:ih.prototype)||{};function od(e){return e[Symbol.iterator]=KS,Object.assign(Object.create(HS),e)}function KS(){return this}["Symbol","Map","Set"].forEach(function(e){var t=ua();typeof t[e]>"u"&&J("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:uS,extras:{getDebugName:Tc},$mobx:$});if(!w.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!ha)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function GS(e){e()}function QS(e){e||(e=GS),SS({reactionScheduler:e})}function YS(e){return bS(e)}var XS=1e4,ZS=1e4,JS=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=XS),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var i=Date.now();n.registrations.forEach(function(o,s){i-o.registeredAt>=r&&(n.finalize(o.value),n.registrations.delete(s))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this.registrations.set(r,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,ZS))}}),e}(),qS=typeof FinalizationRegistry<"u"?FinalizationRegistry:JS,Nc=new qS(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),oh=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o};function sh(e){return"observer".concat(e)}var eb=function(){function e(){}return e}();function tb(){return new eb}function nb(e,t){t===void 0&&(t="observed");var n=oh(Ke.useState(tb),1),r=n[0],i=oh(Ke.useState(),2),o=i[1],s=function(){return o([])},l=Ke.useRef(null);l.current||(l.current={reaction:null,mounted:!1,changedBeforeMount:!1});var a=l.current;a.reaction||(a.reaction=new sn(sh(t),function(){a.mounted?s():a.changedBeforeMount=!0}),Nc.register(r,a,a)),Ke.useDebugValue(a.reaction,YS),Ke.useEffect(function(){return Nc.unregister(a),a.mounted=!0,a.reaction?a.changedBeforeMount&&(a.changedBeforeMount=!1,s()):(a.reaction=new sn(sh(t),function(){s()}),s()),function(){a.reaction.dispose(),a.reaction=null,a.mounted=!1,a.changedBeforeMount=!1}},[]);var u,c;if(a.reaction.track(function(){try{u=e()}catch(f){c=f}}),c)throw c;return u}var ty=typeof Symbol=="function"&&Symbol.for,lh=ty?Symbol.for("react.forward_ref"):typeof w.forwardRef=="function"&&w.forwardRef(function(e){return null}).$$typeof,ah=ty?Symbol.for("react.memo"):typeof w.memo=="function"&&w.memo(function(e){return null}).$$typeof;function Ve(e,t){var n;if(ah&&e.$$typeof===ah)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(n=void 0)!==null&&n!==void 0?n:!1,i=e,o=e.displayName||e.name;if(lh&&e.$$typeof===lh&&(r=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s=function(l,a){return nb(function(){return i(l,a)},o)};return o!==""&&(s.displayName=o),e.contextTypes&&(s.contextTypes=e.contextTypes),r&&(s=w.forwardRef(s)),s=w.memo(s),ib(e,s),s}var rb={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function ib(e,t){Object.keys(e).forEach(function(n){rb[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}var cu;QS(Fr.unstable_batchedUpdates);cu=Nc.finalizeAllImmediately;const ob="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw1AUhU9TpSoVB4uIiGSoTnZREcdahSJUCLVCqw4mL/0RmjQkKS6OgmvBwZ/FqoOLs64OroIg+APi6uKk6CIl3pcUWsT44PI+znvncN99gFAvM83qiAOabpvpZELM5lbE0Cu6MUI1gJDMLGNWklLwXV/3CPD9Lsaz/O/9uXrVvMWAgEgcZ4ZpE68TT2/aBud94ggrySrxOfG4SQ0SP3Jd8fiNc9FlgWdGzEx6jjhCLBbbWGljVjI14iniqKrplC9kPVY5b3HWylXW7JO/MJzXl5e4TjWMJBawCAkiFFSxgTJsxGjXSbGQpvOEj3/I9UvkUsi1AUaOeVSgQXb94H/we7ZWYXLCSwongM4Xx/kYBUK7QKPmON/HjtM4AYLPwJXe8lfqwMwn6bWWFj0C+raBi+uWpuwBlzvA4JMhm7IrBamEQgF4P6NvygH9t0DPqje35jlOH4AMzSp1AxwcAmNFyl7zeXdX+9z+vdOc3w9cCXKdY3hzngAAAAZiS0dEADsAggD2md2qLwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+cJHgkjNZ2IS4oAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAFjklEQVR42u3cT2wUVQDH8d+8ndl2tyt2gQoUliLQtIAKAkEMLSHCyYgSDAk9mNiTUTyo4abGiIkXEhPxTyKayL9IjEYlmpAGDWJBDKRx0dLQlAKtWAultGxpu92Z954HTmhLZ7YlzM78vtfuNtt9n33zZjpvjTU7hjRYaBN8CwiAEQAjAEYAjAAYATACYATACIARACMARgCMABgBMAJggcucyJPf3Whi7TJrQi9AKg0pAcfRGMwCg8MaPf0aXb0KZzo0jnYo2IoD5UsAk1FEGIgIIGoZiMeAsiQwr/zWz56pBbZnFc5dUjiSlvi+jRICB2C84sUCy6sFllebqOuW2PuTg4YLhBDKNcDcmRG8XhfFjidNRAwOXigXgUIYeGKFhY/qLFhcwob3LOChBSZ2brY4gmE+DVy5yMRLqyMcxTBfB9hUY2JeggsC358F/H1Vom/g9j0owgCKowZKYsC0UgEzj5VdPCZQXxvBW4cdjqafATT+KfHhr3LMnydMYNMSgQ2PmliY8jatP7Y4AqvB4QWjQj4E3HSAA2cUnt+Tw/6GHBzpfsdaIi7wdBVPCQKzBvjklMQ3x2xPz1n6IAH4+hDgtV0nJGofkZg13d3hIFU2PoBdWywsr3b3J7+2O4tTV7zvm50VA77aHnP12LZOifq9Oc4AY9XUKl0/NnkfzwQCByB9yf0nMF7MwQwcgK4b7gGYJmeAwAHIeji1V4rfcxE4AOX3u39szuZgBg5A9Sz3Ly8zyBkgcABWVLp/eVf7CCBQAJ5aKFBV4f6ScPs/vA4cGAA1sw28uNGCEO5W9lpr/NhCAPnkqyuBCRN4eW0EG1aaKC5yb/PyVYWz13kIKCgAUyxgZtzA3FKgqlygOiVQVSEQL/Y+Kf2clhxJvwPYuj6Kresn//f29ivsbyKAQJ4FuOmLozaGOP7hBNCYtvFlMxd/oQTQ3O7gjR94G1goATSmbWw7aENy4R+s08DxujGgcPCojQNnOO2HCkDmpsLJsxIfH3PQO+Lv12oV2J413wLoyyhc6FL4vV3iYFphpEA+9KVFnAFGbbR9AUoBOQfIORrZEaAno3G5V6OlW6O1vzAP8AkCGGPhNs6+gKA0vcB2KfFe6rHKcxxT0wggECWi+T1vZpIAAlGyJL+BnF8uCMCvaQ/ryooy7wCmRoHyMgLwbbaHS4eVs71/78BzqyKwTB4CfNuQh4tIlSkDZR42m8QjwLplZsG9J6ECcH3A/QxQXCTwygb3A/r2RhNlSUEAfq6929vFpdqlJl6tvfOhYEYMeH+LhccfLszvKzLDBOBEh4LjaNfbyIQw8Oy6KFYtUjh9zsH5bo0bwxpTSww8MMXAknkC1XnexkYA9+IQkAM6uhUWzPG2wEvNEEjNiAbyPQnddYDjzbx/LNQA9jVJXOu7u/9azNxUBbNZNXQARhSw54gNeZcGKDOosO2zHLp6FAH4te9aFQ412tB6chFkRxQ+OGTj4oBG618E4Ove+0ViX4ON7CTdadI/oLDzaxuH22/9vtNtBOD7Pj0tsf3zHNo6Zd6zge1o/NZs44XdI7d9jX3DBYXhrP8RmAh56R6N+r051Mw2sHm1ico5Askpd/5cSKXR3avwx3mFb5skWkbZmm4r4GKXwuL5/v6MGWt2DPHm6v+0OGlgZYWB0hIDiZiBIguwHSAzpNF5TeNkp8KV4WD8rSaH+/+19OlRP9W8DsAIgBEAIwBGAIwAGAEwAmAEwAiAEQAjAEYAjAAYATACYATACIARACMARgCMABgBMAJgBMAIgBEAIwBGAIwAGAGwexS/H2ACHX8zxhmAEQAjAEYAjAAYATACYATACIARACuAeCl4AtW8M8wZgBEAIwBGAIwAGAEwAmAEwAiAEQAjAEYAjAAYATACYH7sX+VXpk3NRQ0eAAAAAElFTkSuQmCC",Re=({name:e,size:t,className:n,onClick:r,...i})=>m.jsx("span",{className:"material-symbols-rounded "+(n??""),style:{fontSize:t??void 0},onClick:r,...i,children:e});function sb(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ny(...e){return t=>e.forEach(n=>sb(n,t))}function Se(...e){return w.useCallback(ny(...e),e)}var Rr=w.forwardRef((e,t)=>{const{children:n,...r}=e,i=w.Children.toArray(n),o=i.find(ab);if(o){const s=o.props.children,l=i.map(a=>a===o?w.Children.count(s)>1?w.Children.only(null):w.isValidElement(s)?s.props.children:null:a);return m.jsx(Dc,{...r,ref:t,children:w.isValidElement(s)?w.cloneElement(s,void 0,l):null})}return m.jsx(Dc,{...r,ref:t,children:n})});Rr.displayName="Slot";var Dc=w.forwardRef((e,t)=>{const{children:n,...r}=e;if(w.isValidElement(n)){const i=cb(n);return w.cloneElement(n,{...ub(r,n.props),ref:t?ny(t,i):i})}return w.Children.count(n)>1?w.Children.only(null):null});Dc.displayName="SlotClone";var lb=({children:e})=>m.jsx(m.Fragment,{children:e});function ab(e){return w.isValidElement(e)&&e.type===lb}function ub(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{o(...l),i(...l)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function cb(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ry(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ry(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function fb(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ry(e))&&(r&&(r+=" "),r+=t);return r}const uh=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,ch=fb,db=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ch(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],f=o==null?void 0:o[u];if(c===null)return null;const d=uh(c)||uh(f);return i[u][d]}),l=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...p}=c;return Object.entries(p).every(y=>{let[h,x]=y;return Array.isArray(x)?x.includes({...o,...l}[h]):{...o,...l}[h]===x})?[...u,f,d]:u},[]);return ch(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};function iy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=iy(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pb(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=iy(e))&&(r&&(r+=" "),r+=t);return r}const sd="-",hb=e=>{const t=gb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(sd);return l[0]===""&&l.length!==1&&l.shift(),oy(l,t)||vb(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},oy=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?oy(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(sd);return(s=t.validators.find(({validator:l})=>l(o)))==null?void 0:s.classGroupId},fh=/^\[(.+)\]$/,vb=e=>{if(fh.test(e)){const t=fh.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},gb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return yb(Object.entries(e.classGroups),n).forEach(([o,s])=>{Mc(s,r,o,t)}),r},Mc=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:dh(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(mb(i)){Mc(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{Mc(s,dh(t,o),n,r)})})},dh=(e,t)=>{let n=e;return t.split(sd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},mb=e=>e.isThemeGetter,yb=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,l])=>[t+s,l])):o);return[n,i]}):e,wb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}},sy="!",_b=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,s=l=>{const a=[];let u=0,c=0,f;for(let x=0;x<l.length;x++){let g=l[x];if(u===0){if(g===i&&(r||l.slice(x,x+o)===t)){a.push(l.slice(c,x)),c=x+o;continue}if(g==="/"){f=x;continue}}g==="["?u++:g==="]"&&u--}const d=a.length===0?l:l.substring(c),p=d.startsWith(sy),y=p?d.substring(1):d,h=f&&f>c?f-c:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:h}};return n?l=>n({className:l,parseClassName:s}):s},xb=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Sb=e=>({cache:wb(e.cacheSize),parseClassName:_b(e),...hb(e)}),bb=/\s+/,Eb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],s=e.trim().split(bb);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}=n(u);let y=!!p,h=r(y?d.substring(0,p):d);if(!h){if(!y){l=u+(l.length>0?" "+l:l);continue}if(h=r(d),!h){l=u+(l.length>0?" "+l:l);continue}y=!1}const x=xb(c).join(":"),g=f?x+sy:x,v=g+h;if(o.includes(v))continue;o.push(v);const _=i(h,y);for(let S=0;S<_.length;++S){const b=_[S];o.push(g+b)}l=u+(l.length>0?" "+l:l)}return l};function Cb(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ly(t))&&(r&&(r+=" "),r+=n);return r}const ly=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ly(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ab(e,...t){let n,r,i,o=s;function s(a){const u=t.reduce((c,f)=>f(c),e());return n=Sb(u),r=n.cache.get,i=n.cache.set,o=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=Eb(a,n);return i(a,c),c}return function(){return o(Cb.apply(null,arguments))}}const ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ay=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ob=/^\d+\/\d+$/,Pb=new Set(["px","full","screen"]),kb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Nb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Db=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,un=e=>hi(e)||Pb.has(e)||Ob.test(e),Tn=e=>Mi(e,"length",Ub),hi=e=>!!e&&!Number.isNaN(Number(e)),fu=e=>Mi(e,"number",hi),Yi=e=>!!e&&Number.isInteger(Number(e)),Mb=e=>e.endsWith("%")&&hi(e.slice(0,-1)),K=e=>ay.test(e),Rn=e=>kb.test(e),jb=new Set(["length","size","percentage"]),Ib=e=>Mi(e,jb,uy),Lb=e=>Mi(e,"position",uy),Fb=new Set(["image","url"]),zb=e=>Mi(e,Fb,$b),Bb=e=>Mi(e,"",Vb),Xi=()=>!0,Mi=(e,t,n)=>{const r=ay.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Ub=e=>Tb.test(e)&&!Rb.test(e),uy=()=>!1,Vb=e=>Nb.test(e),$b=e=>Db.test(e),Wb=()=>{const e=ce("colors"),t=ce("spacing"),n=ce("blur"),r=ce("brightness"),i=ce("borderColor"),o=ce("borderRadius"),s=ce("borderSpacing"),l=ce("borderWidth"),a=ce("contrast"),u=ce("grayscale"),c=ce("hueRotate"),f=ce("invert"),d=ce("gap"),p=ce("gradientColorStops"),y=ce("gradientColorStopPositions"),h=ce("inset"),x=ce("margin"),g=ce("opacity"),v=ce("padding"),_=ce("saturate"),S=ce("scale"),b=ce("sepia"),E=ce("skew"),C=ce("space"),A=ce("translate"),T=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",K,t],R=()=>[K,t],z=()=>["",un,Tn],B=()=>["auto",hi,K],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",K],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[hi,K];return{cacheSize:500,separator:":",theme:{colors:[Xi],spacing:[un,Tn],blur:["none","",Rn,K],brightness:H(),borderColor:[e],borderRadius:["none","","full",Rn,K],borderSpacing:R(),borderWidth:z(),contrast:H(),grayscale:D(),hueRotate:H(),invert:D(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[Mb,Tn],inset:M(),margin:M(),opacity:H(),padding:R(),saturate:H(),scale:H(),sepia:D(),skew:H(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[Rn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),K]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Yi,K]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Yi,K]}],"grid-cols":[{"grid-cols":[Xi]}],"col-start-end":[{col:["auto",{span:["full",Yi,K]},K]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[Xi]}],"row-start-end":[{row:["auto",{span:[Yi,K]},K]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[Rn]},Rn]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rn,Tn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fu]}],"font-family":[{font:[Xi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",K]}],"line-clamp":[{"line-clamp":["none",hi,fu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",un,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",un,Tn]}],"underline-offset":[{"underline-offset":["auto",un,K]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),Lb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ib]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:W()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[un,K]}],"outline-w":[{outline:[un,Tn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[un,Tn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,Bb]}],"shadow-color":[{shadow:[Xi]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Rn,K]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[_]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Yi,K]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[un,Tn,fu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Hb=Ab(Wb);function dt(...e){return Hb(pb(e))}const Kb=db("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-black hover:bg-primary-hover",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-lighter hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"rounded px-4 py-2",xs:"h-8 rounded px-2",sm:"h-9 rounded px-3",lg:"h-11 rounded px-8",toggle:"h-6 px-2",icon:"h-10 rounded-md w-10","icon-xs":"h-8 rounded-md w-8 px-2"}},defaultVariants:{variant:"default",size:"default"}}),Nr=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,active:i=!1,...o},s)=>{const l=r?Rr:"button";return t==="outline"&&i&&(t="default"),m.jsx(l,{className:dt(Kb({variant:t,size:n,className:e})),ref:s,...o})});Nr.displayName="Button";const gt=w.createContext(void 0);function se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function ld(e,t=[]){let n=[];function r(o,s){const l=w.createContext(s),a=n.length;n=[...n,s];const u=f=>{var g;const{scope:d,children:p,...y}=f,h=((g=d==null?void 0:d[e])==null?void 0:g[a])||l,x=w.useMemo(()=>y,Object.values(y));return m.jsx(h.Provider,{value:x,children:p})};u.displayName=o+"Provider";function c(f,d){var h;const p=((h=d==null?void 0:d[e])==null?void 0:h[a])||l,y=w.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,c]}const i=()=>{const o=n.map(s=>w.createContext(s));return function(l){const a=(l==null?void 0:l[e])||o;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return i.scopeName=e,[r,Gb(i,...t)]}function Gb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(o)[`__scope${u}`];return{...l,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Qb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ve=Qb.reduce((e,t)=>{const n=w.forwardRef((r,i)=>{const{asChild:o,...s}=r,l=o?Rr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Yb(e,t){e&&Fr.flushSync(()=>e.dispatchEvent(t))}function Cn(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Xb(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e);w.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Zb="DismissableLayer",jc="dismissableLayer.update",Jb="dismissableLayer.pointerDownOutside",qb="dismissableLayer.focusOutside",ph,cy=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ad=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...a}=e,u=w.useContext(cy),[c,f]=w.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=w.useState({}),y=Se(t,C=>f(C)),h=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=h.indexOf(x),v=c?h.indexOf(c):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,S=v>=g,b=nE(C=>{const A=C.target,T=[...u.branches].some(P=>P.contains(A));!S||T||(i==null||i(C),s==null||s(C),C.defaultPrevented||l==null||l())},d),E=rE(C=>{const A=C.target;[...u.branches].some(P=>P.contains(A))||(o==null||o(C),s==null||s(C),C.defaultPrevented||l==null||l())},d);return Xb(C=>{v===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},d),w.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ph=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),hh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ph)}},[c,d,n,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),hh())},[c,u]),w.useEffect(()=>{const C=()=>p({});return document.addEventListener(jc,C),()=>document.removeEventListener(jc,C)},[]),m.jsx(ve.div,{...a,ref:y,style:{pointerEvents:_?S?"auto":"none":void 0,...e.style},onFocusCapture:se(e.onFocusCapture,E.onFocusCapture),onBlurCapture:se(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:se(e.onPointerDownCapture,b.onPointerDownCapture)})});ad.displayName=Zb;var eE="DismissableLayerBranch",tE=w.forwardRef((e,t)=>{const n=w.useContext(cy),r=w.useRef(null),i=Se(t,r);return w.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),m.jsx(ve.div,{...e,ref:i})});tE.displayName=eE;function nE(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e),r=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let a=function(){fy(Jb,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function rE(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e),r=w.useRef(!1);return w.useEffect(()=>{const i=o=>{o.target&&!r.current&&fy(qb,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hh(){const e=new CustomEvent(jc);document.dispatchEvent(e)}function fy(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Yb(i,o):i.dispatchEvent(o)}var du=0;function dy(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vh()),document.body.insertAdjacentElement("beforeend",e[1]??vh()),du++,()=>{du===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),du--}},[])}function vh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var pu="focusScope.autoFocusOnMount",hu="focusScope.autoFocusOnUnmount",gh={bubbles:!1,cancelable:!0},iE="FocusScope",ud=w.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[l,a]=w.useState(null),u=Cn(i),c=Cn(o),f=w.useRef(null),d=Se(t,h=>a(h)),p=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let h=function(_){if(p.paused||!l)return;const S=_.target;l.contains(S)?f.current=S:Nn(f.current,{select:!0})},x=function(_){if(p.paused||!l)return;const S=_.relatedTarget;S!==null&&(l.contains(S)||Nn(f.current,{select:!0}))},g=function(_){if(document.activeElement===document.body)for(const b of _)b.removedNodes.length>0&&Nn(l)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const v=new MutationObserver(g);return l&&v.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),v.disconnect()}}},[r,l,p.paused]),w.useEffect(()=>{if(l){yh.add(p);const h=document.activeElement;if(!l.contains(h)){const g=new CustomEvent(pu,gh);l.addEventListener(pu,u),l.dispatchEvent(g),g.defaultPrevented||(oE(cE(py(l)),{select:!0}),document.activeElement===h&&Nn(l))}return()=>{l.removeEventListener(pu,u),setTimeout(()=>{const g=new CustomEvent(hu,gh);l.addEventListener(hu,c),l.dispatchEvent(g),g.defaultPrevented||Nn(h??document.body,{select:!0}),l.removeEventListener(hu,c),yh.remove(p)},0)}}},[l,u,c,p]);const y=w.useCallback(h=>{if(!n&&!r||p.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,g=document.activeElement;if(x&&g){const v=h.currentTarget,[_,S]=sE(v);_&&S?!h.shiftKey&&g===S?(h.preventDefault(),n&&Nn(_,{select:!0})):h.shiftKey&&g===_&&(h.preventDefault(),n&&Nn(S,{select:!0})):g===v&&h.preventDefault()}},[n,r,p.paused]);return m.jsx(ve.div,{tabIndex:-1,...s,ref:d,onKeyDown:y})});ud.displayName=iE;function oE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Nn(r,{select:t}),document.activeElement!==n)return}function sE(e){const t=py(e),n=mh(t,e),r=mh(t.reverse(),e);return[n,r]}function py(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mh(e,t){for(const n of e)if(!lE(n,{upTo:t}))return n}function lE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function aE(e){return e instanceof HTMLInputElement&&"select"in e}function Nn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&aE(e)&&t&&e.select()}}var yh=uE();function uE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=wh(e,t),e.unshift(t)},remove(t){var n;e=wh(e,t),(n=e[0])==null||n.resume()}}}function wh(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cE(e){return e.filter(t=>t.tagName!=="A")}var Qe=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},fE=Bw.useId||(()=>{}),dE=0;function va(e){const[t,n]=w.useState(fE());return Qe(()=>{n(r=>r??String(dE++))},[e]),t?`radix-${t}`:""}const pE=["top","right","bottom","left"],Jn=Math.min,ot=Math.max,Il=Math.round,ks=Math.floor,on=e=>({x:e,y:e}),hE={left:"right",right:"left",bottom:"top",top:"bottom"},vE={start:"end",end:"start"};function Ic(e,t,n){return ot(e,Jn(t,n))}function An(e,t){return typeof e=="function"?e(t):e}function On(e){return e.split("-")[0]}function ji(e){return e.split("-")[1]}function cd(e){return e==="x"?"y":"x"}function fd(e){return e==="y"?"height":"width"}function qn(e){return["top","bottom"].includes(On(e))?"y":"x"}function dd(e){return cd(qn(e))}function gE(e,t,n){n===void 0&&(n=!1);const r=ji(e),i=dd(e),o=fd(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Ll(s)),[s,Ll(s)]}function mE(e){const t=Ll(e);return[Lc(e),t,Lc(t)]}function Lc(e){return e.replace(/start|end/g,t=>vE[t])}function yE(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function wE(e,t,n,r){const i=ji(e);let o=yE(On(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Lc)))),o}function Ll(e){return e.replace(/left|right|bottom|top/g,t=>hE[t])}function _E(e){return{top:0,right:0,bottom:0,left:0,...e}}function hy(e){return typeof e!="number"?_E(e):{top:e,right:e,bottom:e,left:e}}function Fl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _h(e,t,n){let{reference:r,floating:i}=e;const o=qn(t),s=dd(t),l=fd(s),a=On(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let p;switch(a){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(ji(t)){case"start":p[s]-=d*(n&&u?-1:1);break;case"end":p[s]+=d*(n&&u?-1:1);break}return p}const xE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=_h(u,r,a),d=r,p={},y=0;for(let h=0;h<l.length;h++){const{name:x,fn:g}=l[h],{x:v,y:_,data:S,reset:b}=await g({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=v??c,f=_??f,p={...p,[x]:{...p[x],...S}},b&&y<=50&&(y++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(u=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:f}=_h(u,d,a)),h=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function Fo(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=An(t,e),y=hy(p),x=l[d?f==="floating"?"reference":"floating":f],g=Fl(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),v=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),S=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{x:1,y:1},b=Fl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:_,strategy:a}):v);return{top:(g.top-b.top+y.top)/S.y,bottom:(b.bottom-g.bottom+y.bottom)/S.y,left:(g.left-b.left+y.left)/S.x,right:(b.right-g.right+y.right)/S.x}}const SE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=An(e,t)||{};if(u==null)return{};const f=hy(c),d={x:n,y:r},p=dd(i),y=fd(p),h=await s.getDimensions(u),x=p==="y",g=x?"top":"left",v=x?"bottom":"right",_=x?"clientHeight":"clientWidth",S=o.reference[y]+o.reference[p]-d[p]-o.floating[y],b=d[p]-o.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=E?E[_]:0;(!C||!await(s.isElement==null?void 0:s.isElement(E)))&&(C=l.floating[_]||o.floating[y]);const A=S/2-b/2,T=C/2-h[y]/2-1,P=Jn(f[g],T),M=Jn(f[v],T),R=P,z=C-h[y]-M,B=C/2-h[y]/2+A,G=Ic(R,B,z),W=!a.arrow&&ji(i)!=null&&B!==G&&o.reference[y]/2-(B<R?P:M)-h[y]/2<0,Y=W?B<R?B-R:B-z:0;return{[p]:d[p]+Y,data:{[p]:G,centerOffset:B-G-Y,...W&&{alignmentOffset:Y}},reset:W}}}),bE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:h=!0,...x}=An(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=On(i),v=qn(l),_=On(l)===l,S=await(a.isRTL==null?void 0:a.isRTL(u.floating)),b=d||(_||!h?[Ll(l)]:mE(l)),E=y!=="none";!d&&E&&b.push(...wE(l,h,y,S));const C=[l,...b],A=await Fo(t,x),T=[];let P=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&T.push(A[g]),f){const B=gE(i,s,S);T.push(A[B[0]],A[B[1]])}if(P=[...P,{placement:i,overflows:T}],!T.every(B=>B<=0)){var M,R;const B=(((M=o.flip)==null?void 0:M.index)||0)+1,G=C[B];if(G)return{data:{index:B,overflows:P},reset:{placement:G}};let W=(R=P.filter(Y=>Y.overflows[0]<=0).sort((Y,O)=>Y.overflows[1]-O.overflows[1])[0])==null?void 0:R.placement;if(!W)switch(p){case"bestFit":{var z;const Y=(z=P.filter(O=>{if(E){const D=qn(O.placement);return D===v||D==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(D=>D>0).reduce((D,L)=>D+L,0)]).sort((O,D)=>O[1]-D[1])[0])==null?void 0:z[0];Y&&(W=Y);break}case"initialPlacement":W=l;break}if(i!==W)return{reset:{placement:W}}}return{}}}};function xh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sh(e){return pE.some(t=>e[t]>=0)}const EE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=An(e,t);switch(r){case"referenceHidden":{const o=await Fo(t,{...i,elementContext:"reference"}),s=xh(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Sh(s)}}}case"escaped":{const o=await Fo(t,{...i,altBoundary:!0}),s=xh(o,n.floating);return{data:{escapedOffsets:s,escaped:Sh(s)}}}default:return{}}}}};async function CE(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=On(n),l=ji(n),a=qn(n)==="y",u=["left","top"].includes(s)?-1:1,c=o&&a?-1:1,f=An(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof y=="number"&&(p=l==="end"?y*-1:y),a?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const AE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=t,a=await CE(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},OE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:x=>{let{x:g,y:v}=x;return{x:g,y:v}}},...a}=An(e,t),u={x:n,y:r},c=await Fo(t,a),f=qn(On(i)),d=cd(f);let p=u[d],y=u[f];if(o){const x=d==="y"?"top":"left",g=d==="y"?"bottom":"right",v=p+c[x],_=p-c[g];p=Ic(v,p,_)}if(s){const x=f==="y"?"top":"left",g=f==="y"?"bottom":"right",v=y+c[x],_=y-c[g];y=Ic(v,y,_)}const h=l.fn({...t,[d]:p,[f]:y});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:o,[f]:s}}}}}},PE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=An(e,t),c={x:n,y:r},f=qn(i),d=cd(f);let p=c[d],y=c[f];const h=An(l,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const _=d==="y"?"height":"width",S=o.reference[d]-o.floating[_]+x.mainAxis,b=o.reference[d]+o.reference[_]-x.mainAxis;p<S?p=S:p>b&&(p=b)}if(u){var g,v;const _=d==="y"?"width":"height",S=["top","left"].includes(On(i)),b=o.reference[f]-o.floating[_]+(S&&((g=s.offset)==null?void 0:g[f])||0)+(S?0:x.crossAxis),E=o.reference[f]+o.reference[_]+(S?0:((v=s.offset)==null?void 0:v[f])||0)-(S?x.crossAxis:0);y<b?y=b:y>E&&(y=E)}return{[d]:p,[f]:y}}}},kE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:l}=t,{apply:a=()=>{},...u}=An(e,t),c=await Fo(t,u),f=On(i),d=ji(i),p=qn(i)==="y",{width:y,height:h}=o.floating;let x,g;f==="top"||f==="bottom"?(x=f,g=d===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(g=f,x=d==="end"?"top":"bottom");const v=h-c.top-c.bottom,_=y-c.left-c.right,S=Jn(h-c[x],v),b=Jn(y-c[g],_),E=!t.middlewareData.shift;let C=S,A=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),E&&!d){const P=ot(c.left,0),M=ot(c.right,0),R=ot(c.top,0),z=ot(c.bottom,0);p?A=y-2*(P!==0||M!==0?P+M:ot(c.left,c.right)):C=h-2*(R!==0||z!==0?R+z:ot(c.top,c.bottom))}await a({...t,availableWidth:A,availableHeight:C});const T=await s.getDimensions(l.floating);return y!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function ga(){return typeof window<"u"}function Ii(e){return vy(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(vy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vy(e){return ga()?e instanceof Node||e instanceof ct(e).Node:!1}function Vt(e){return ga()?e instanceof Element||e instanceof ct(e).Element:!1}function ln(e){return ga()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function bh(e){return!ga()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}function rs(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function TE(e){return["table","td","th"].includes(Ii(e))}function ma(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function pd(e){const t=hd(),n=Vt(e)?$t(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function RE(e){let t=er(e);for(;ln(t)&&!Oi(t);){if(pd(t))return t;if(ma(t))return null;t=er(t)}return null}function hd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oi(e){return["html","body","#document"].includes(Ii(e))}function $t(e){return ct(e).getComputedStyle(e)}function ya(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if(Ii(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bh(e)&&e.host||an(e);return bh(t)?t.host:t}function gy(e){const t=er(e);return Oi(t)?e.ownerDocument?e.ownerDocument.body:e.body:ln(t)&&rs(t)?t:gy(t)}function zo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=gy(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=ct(i);if(o){const l=Fc(s);return t.concat(s,s.visualViewport||[],rs(i)?i:[],l&&n?zo(l):[])}return t.concat(i,zo(i,[],n))}function Fc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function my(e){const t=$t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ln(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=Il(n)!==o||Il(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function vd(e){return Vt(e)?e:e.contextElement}function vi(e){const t=vd(e);if(!ln(t))return on(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=my(t);let s=(o?Il(n.width):n.width)/r,l=(o?Il(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const NE=on(0);function yy(e){const t=ct(e);return!hd()||!t.visualViewport?NE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function Dr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=vd(e);let s=on(1);t&&(r?Vt(r)&&(s=vi(r)):s=vi(e));const l=DE(o,n,r)?yy(o):on(0);let a=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){const d=ct(o),p=r&&Vt(r)?ct(r):r;let y=d,h=Fc(y);for(;h&&r&&p!==y;){const x=vi(h),g=h.getBoundingClientRect(),v=$t(h),_=g.left+(h.clientLeft+parseFloat(v.paddingLeft))*x.x,S=g.top+(h.clientTop+parseFloat(v.paddingTop))*x.y;a*=x.x,u*=x.y,c*=x.x,f*=x.y,a+=_,u+=S,y=ct(h),h=Fc(y)}}return Fl({width:c,height:f,x:a,y:u})}function gd(e,t){const n=ya(e).scrollLeft;return t?t.left+n:Dr(an(e)).left+n}function wy(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:gd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function ME(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=an(r),l=t?ma(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},u=on(1);const c=on(0),f=ln(r);if((f||!f&&!o)&&((Ii(r)!=="body"||rs(s))&&(a=ya(r)),ln(r))){const p=Dr(r);u=vi(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=s&&!f&&!o?wy(s,a,!0):on(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-a.scrollTop*u.y+c.y+d.y}}function jE(e){return Array.from(e.getClientRects())}function IE(e){const t=an(e),n=ya(e),r=e.ownerDocument.body,i=ot(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ot(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+gd(e);const l=-n.scrollTop;return $t(r).direction==="rtl"&&(s+=ot(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function LE(e,t){const n=ct(e),r=an(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const u=hd();(!u||u&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function FE(e,t){const n=Dr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=ln(e)?vi(e):on(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,u=r*o.y;return{width:s,height:l,x:a,y:u}}function Eh(e,t,n){let r;if(t==="viewport")r=LE(e,n);else if(t==="document")r=IE(an(e));else if(Vt(t))r=FE(t,n);else{const i=yy(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Fl(r)}function _y(e,t){const n=er(e);return n===t||!Vt(n)||Oi(n)?!1:$t(n).position==="fixed"||_y(n,t)}function zE(e,t){const n=t.get(e);if(n)return n;let r=zo(e,[],!1).filter(l=>Vt(l)&&Ii(l)!=="body"),i=null;const o=$t(e).position==="fixed";let s=o?er(e):e;for(;Vt(s)&&!Oi(s);){const l=$t(s),a=pd(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rs(s)&&!a&&_y(e,s))?r=r.filter(c=>c!==s):i=l,s=er(s)}return t.set(e,r),r}function BE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ma(t)?[]:zE(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const f=Eh(t,c,i);return u.top=ot(f.top,u.top),u.right=Jn(f.right,u.right),u.bottom=Jn(f.bottom,u.bottom),u.left=ot(f.left,u.left),u},Eh(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function UE(e){const{width:t,height:n}=my(e);return{width:t,height:n}}function VE(e,t,n){const r=ln(t),i=an(t),o=n==="fixed",s=Dr(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=on(0);if(r||!r&&!o)if((Ii(t)!=="body"||rs(i))&&(l=ya(t)),r){const d=Dr(t,!0,o,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else i&&(a.x=gd(i));const u=i&&!r&&!o?wy(i,l):on(0),c=s.left+l.scrollLeft-a.x-u.x,f=s.top+l.scrollTop-a.y-u.y;return{x:c,y:f,width:s.width,height:s.height}}function vu(e){return $t(e).position==="static"}function Ch(e,t){if(!ln(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return an(e)===n&&(n=n.ownerDocument.body),n}function xy(e,t){const n=ct(e);if(ma(e))return n;if(!ln(e)){let i=er(e);for(;i&&!Oi(i);){if(Vt(i)&&!vu(i))return i;i=er(i)}return n}let r=Ch(e,t);for(;r&&TE(r)&&vu(r);)r=Ch(r,t);return r&&Oi(r)&&vu(r)&&!pd(r)?n:r||RE(e)||n}const $E=async function(e){const t=this.getOffsetParent||xy,n=this.getDimensions,r=await n(e.floating);return{reference:VE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function WE(e){return $t(e).direction==="rtl"}const HE={convertOffsetParentRelativeRectToViewportRelativeRect:ME,getDocumentElement:an,getClippingRect:BE,getOffsetParent:xy,getElementRects:$E,getClientRects:jE,getDimensions:UE,getScale:vi,isElement:Vt,isRTL:WE};function KE(e,t){let n=null,r;const i=an(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(l||t(),!f||!d)return;const p=ks(c),y=ks(i.clientWidth-(u+f)),h=ks(i.clientHeight-(c+d)),x=ks(u),v={rootMargin:-p+"px "+-y+"px "+-h+"px "+-x+"px",threshold:ot(0,Jn(1,a))||1};let _=!0;function S(b){const E=b[0].intersectionRatio;if(E!==a){if(!_)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_=!1}try{n=new IntersectionObserver(S,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return s(!0),o}function GE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=vd(e),c=i||o?[...u?zo(u):[],...zo(t)]:[];c.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const f=u&&l?KE(u,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var _;(_=p)==null||_.observe(t)})),n()}),u&&!a&&p.observe(u),p.observe(t));let y,h=a?Dr(e):null;a&&x();function x(){const g=Dr(e);h&&(g.x!==h.x||g.y!==h.y||g.width!==h.width||g.height!==h.height)&&n(),h=g,y=requestAnimationFrame(x)}return n(),()=>{var g;c.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),f==null||f(),(g=p)==null||g.disconnect(),p=null,a&&cancelAnimationFrame(y)}}const QE=AE,YE=OE,XE=bE,ZE=kE,JE=EE,Ah=SE,qE=PE,eC=(e,t,n)=>{const r=new Map,i={platform:HE,...n},o={...i.platform,_c:r};return xE(e,t,{...i,platform:o})};var Js=typeof document<"u"?w.useLayoutEffect:w.useEffect;function zl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!zl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!zl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Sy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Oh(e,t){const n=Sy(e);return Math.round(t*n)/n}function gu(e){const t=w.useRef(e);return Js(()=>{t.current=e}),t}function tC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,f]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=w.useState(r);zl(d,r)||p(r);const[y,h]=w.useState(null),[x,g]=w.useState(null),v=w.useCallback(O=>{O!==E.current&&(E.current=O,h(O))},[]),_=w.useCallback(O=>{O!==C.current&&(C.current=O,g(O))},[]),S=o||y,b=s||x,E=w.useRef(null),C=w.useRef(null),A=w.useRef(c),T=a!=null,P=gu(a),M=gu(i),R=gu(u),z=w.useCallback(()=>{if(!E.current||!C.current)return;const O={placement:t,strategy:n,middleware:d};M.current&&(O.platform=M.current),eC(E.current,C.current,O).then(D=>{const L={...D,isPositioned:R.current!==!1};B.current&&!zl(A.current,L)&&(A.current=L,Fr.flushSync(()=>{f(L)}))})},[d,t,n,M,R]);Js(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[u]);const B=w.useRef(!1);Js(()=>(B.current=!0,()=>{B.current=!1}),[]),Js(()=>{if(S&&(E.current=S),b&&(C.current=b),S&&b){if(P.current)return P.current(S,b,z);z()}},[S,b,z,P,T]);const G=w.useMemo(()=>({reference:E,floating:C,setReference:v,setFloating:_}),[v,_]),W=w.useMemo(()=>({reference:S,floating:b}),[S,b]),Y=w.useMemo(()=>{const O={position:n,left:0,top:0};if(!W.floating)return O;const D=Oh(W.floating,c.x),L=Oh(W.floating,c.y);return l?{...O,transform:"translate("+D+"px, "+L+"px)",...Sy(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:L}},[n,l,W.floating,c.x,c.y]);return w.useMemo(()=>({...c,update:z,refs:G,elements:W,floatingStyles:Y}),[c,z,G,W,Y])}const nC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ah({element:r.current,padding:i}).fn(n):{}:r?Ah({element:r,padding:i}).fn(n):{}}}},rC=(e,t)=>({...QE(e),options:[e,t]}),iC=(e,t)=>({...YE(e),options:[e,t]}),oC=(e,t)=>({...qE(e),options:[e,t]}),sC=(e,t)=>({...XE(e),options:[e,t]}),lC=(e,t)=>({...ZE(e),options:[e,t]}),aC=(e,t)=>({...JE(e),options:[e,t]}),uC=(e,t)=>({...nC(e),options:[e,t]});var cC="Arrow",by=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return m.jsx(ve.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});by.displayName=cC;var fC=by;function dC(e,t=[]){let n=[];function r(o,s){const l=w.createContext(s),a=n.length;n=[...n,s];function u(f){const{scope:d,children:p,...y}=f,h=(d==null?void 0:d[e][a])||l,x=w.useMemo(()=>y,Object.values(y));return m.jsx(h.Provider,{value:x,children:p})}function c(f,d){const p=(d==null?void 0:d[e][a])||l,y=w.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const i=()=>{const o=n.map(s=>w.createContext(s));return function(l){const a=(l==null?void 0:l[e])||o;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return i.scopeName=e,[r,pC(i,...t)]}function pC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(o)[`__scope${u}`];return{...l,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ey(e){const[t,n]=w.useState(void 0);return Qe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,l;if("borderBoxSize"in o){const a=o.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var md="Popper",[Cy,wa]=dC(md),[hC,Ay]=Cy(md),Oy=e=>{const{__scopePopper:t,children:n}=e,[r,i]=w.useState(null);return m.jsx(hC,{scope:t,anchor:r,onAnchorChange:i,children:n})};Oy.displayName=md;var Py="PopperAnchor",ky=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=Ay(Py,n),s=w.useRef(null),l=Se(t,s);return w.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:m.jsx(ve.div,{...i,ref:l})});ky.displayName=Py;var yd="PopperContent",[vC,gC]=Cy(yd),Ty=w.forwardRef((e,t)=>{var F,ie,Oe,ne,te,Z;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:y,...h}=e,x=Ay(yd,n),[g,v]=w.useState(null),_=Se(t,De=>v(De)),[S,b]=w.useState(null),E=Ey(S),C=(E==null?void 0:E.width)??0,A=(E==null?void 0:E.height)??0,T=r+(o!=="center"?"-"+o:""),P=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},M=Array.isArray(u)?u:[u],R=M.length>0,z={padding:P,boundary:M.filter(yC),altBoundary:R},{refs:B,floatingStyles:G,placement:W,isPositioned:Y,middlewareData:O}=tC({strategy:"fixed",placement:T,whileElementsMounted:(...De)=>GE(...De,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[rC({mainAxis:i+A,alignmentAxis:s}),a&&iC({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?oC():void 0,...z}),a&&sC({...z}),lC({...z,apply:({elements:De,rects:We,availableWidth:Ht,availableHeight:fr})=>{const{width:dr,height:Oa}=We.reference,pr=De.floating.style;pr.setProperty("--radix-popper-available-width",`${Ht}px`),pr.setProperty("--radix-popper-available-height",`${fr}px`),pr.setProperty("--radix-popper-anchor-width",`${dr}px`),pr.setProperty("--radix-popper-anchor-height",`${Oa}px`)}}),S&&uC({element:S,padding:l}),wC({arrowWidth:C,arrowHeight:A}),d&&aC({strategy:"referenceHidden",...z})]}),[D,L]=Dy(W),H=Cn(y);Qe(()=>{Y&&(H==null||H())},[Y,H]);const oe=(F=O.arrow)==null?void 0:F.x,rt=(ie=O.arrow)==null?void 0:ie.y,Ae=((Oe=O.arrow)==null?void 0:Oe.centerOffset)!==0,[$e,be]=w.useState();return Qe(()=>{g&&be(window.getComputedStyle(g).zIndex)},[g]),m.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:Y?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(ne=O.transformOrigin)==null?void 0:ne.x,(te=O.transformOrigin)==null?void 0:te.y].join(" "),...((Z=O.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(vC,{scope:n,placedSide:D,onArrowChange:b,arrowX:oe,arrowY:rt,shouldHideArrow:Ae,children:m.jsx(ve.div,{"data-side":D,"data-align":L,...h,ref:_,style:{...h.style,animation:Y?void 0:"none"}})})})});Ty.displayName=yd;var Ry="PopperArrow",mC={top:"bottom",right:"left",bottom:"top",left:"right"},Ny=w.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=gC(Ry,r),s=mC[o.placedSide];return m.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:m.jsx(fC,{...i,ref:n,style:{...i.style,display:"block"}})})});Ny.displayName=Ry;function yC(e){return e!==null}var wC=e=>({name:"transformOrigin",options:e,fn(t){var x,g,v;const{placement:n,rects:r,middlewareData:i}=t,s=((x=i.arrow)==null?void 0:x.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=Dy(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((g=i.arrow)==null?void 0:g.x)??0)+l/2,p=(((v=i.arrow)==null?void 0:v.y)??0)+a/2;let y="",h="";return u==="bottom"?(y=s?f:`${d}px`,h=`${-a}px`):u==="top"?(y=s?f:`${d}px`,h=`${r.floating.height+a}px`):u==="right"?(y=`${-a}px`,h=s?f:`${p}px`):u==="left"&&(y=`${r.floating.width+a}px`,h=s?f:`${p}px`),{data:{x:y,y:h}}}});function Dy(e){const[t,n="center"]=e.split("-");return[t,n]}var My=Oy,wd=ky,jy=Ty,Iy=Ny,_C="Portal",_d=w.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,o]=w.useState(!1);Qe(()=>o(!0),[]);const s=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Z1.createPortal(m.jsx(ve.div,{...r,ref:t}),s):null});_d.displayName=_C;function xC(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var _a=e=>{const{present:t,children:n}=e,r=SC(t),i=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),o=Se(r.ref,bC(i));return typeof n=="function"||r.isPresent?w.cloneElement(i,{ref:o}):null};_a.displayName="Presence";function SC(e){const[t,n]=w.useState(),r=w.useRef({}),i=w.useRef(e),o=w.useRef("none"),s=e?"mounted":"unmounted",[l,a]=xC(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=Ts(r.current);o.current=l==="mounted"?u:"none"},[l]),Qe(()=>{const u=r.current,c=i.current;if(c!==e){const d=o.current,p=Ts(u);e?a("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&d!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,a]),Qe(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=p=>{const h=Ts(r.current).includes(p.animationName);if(p.target===t&&h&&(a("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},d=p=>{p.target===t&&(o.current=Ts(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ts(e){return(e==null?void 0:e.animationName)||"none"}function bC(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Bl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=EC({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,l=Cn(n),a=w.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else i(u)},[o,e,i,l]);return[s,a]}function EC({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,i=w.useRef(r),o=Cn(t);return w.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var CC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wr=new WeakMap,Rs=new WeakMap,Ns={},mu=0,Ly=function(e){return e&&(e.host||Ly(e.parentNode))},AC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ly(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},OC=function(e,t,n,r){var i=AC(t,Array.isArray(e)?e:[e]);Ns[n]||(Ns[n]=new WeakMap);var o=Ns[n],s=[],l=new Set,a=new Set(i),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||a.has(f)||Array.prototype.forEach.call(f.children,function(d){if(l.has(d))c(d);else try{var p=d.getAttribute(r),y=p!==null&&p!=="false",h=(Wr.get(d)||0)+1,x=(o.get(d)||0)+1;Wr.set(d,h),o.set(d,x),s.push(d),h===1&&y&&Rs.set(d,!0),x===1&&d.setAttribute(n,"true"),y||d.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return c(t),l.clear(),mu++,function(){s.forEach(function(f){var d=Wr.get(f)-1,p=o.get(f)-1;Wr.set(f,d),o.set(f,p),d||(Rs.has(f)||f.removeAttribute(r),Rs.delete(f)),p||f.removeAttribute(n)}),mu--,mu||(Wr=new WeakMap,Wr=new WeakMap,Rs=new WeakMap,Ns={})}},Fy=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=CC(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),OC(r,i,n,"aria-hidden")):function(){return null}},Zt=function(){return Zt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Zt.apply(this,arguments)};function zy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Li(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(c){try{u(r.next(c))}catch(f){s(f)}}function a(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function Fi(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=l(0),s.throw=l(1),s.return=l(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(c){return a([u,c])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function PC(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function kC(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(PC(arguments[t]));return e}function TC(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var qs="right-scroll-bar-position",el="width-before-scroll-bar",RC="with-scroll-bars-hidden",NC="--removed-body-scroll-bar-size";function yu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function DC(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var MC=typeof window<"u"?w.useLayoutEffect:w.useEffect,Ph=new WeakMap;function jC(e,t){var n=DC(null,function(r){return e.forEach(function(i){return yu(i,r)})});return MC(function(){var r=Ph.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(l){o.has(l)||yu(l,null)}),o.forEach(function(l){i.has(l)||yu(l,s)})}Ph.set(n,e)},[e]),n}function IC(e){return e}function LC(e,t){t===void 0&&(t=IC);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(o),s=n}var a=function(){var c=s;s=[],c.forEach(o)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function FC(e){e===void 0&&(e={});var t=LC(null);return t.options=Zt({async:!0,ssr:!1},e),t}var By=function(e){var t=e.sideCar,n=zy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,Zt({},n))};By.isSideCarExport=!0;function zC(e,t){return e.useMedium(t),By}var Uy=FC(),wu=function(){},xa=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:wu,onWheelCapture:wu,onTouchMoveCapture:wu}),i=r[0],o=r[1],s=e.forwardProps,l=e.children,a=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,y=e.inert,h=e.allowPinchZoom,x=e.as,g=x===void 0?"div":x,v=e.gapMode,_=zy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=d,b=jC([n,t]),E=Zt(Zt({},_),i);return w.createElement(w.Fragment,null,c&&w.createElement(S,{sideCar:Uy,removeScrollBar:u,shards:f,noIsolation:p,inert:y,setCallbacks:o,allowPinchZoom:!!h,lockRef:n,gapMode:v}),s?w.cloneElement(w.Children.only(l),Zt(Zt({},E),{ref:b})):w.createElement(g,Zt({},E,{className:a,ref:b}),l))});xa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xa.classNames={fullWidth:el,zeroRight:qs};var BC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function UC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=BC();return t&&e.setAttribute("nonce",t),e}function VC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $C(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WC=function(){var e=0,t=null;return{add:function(n){e==0&&(t=UC())&&(VC(t,n),$C(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},HC=function(){var e=WC();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Vy=function(){var e=HC(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},KC={left:0,top:0,right:0,gap:0},_u=function(e){return parseInt(e||"",10)||0},GC=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[_u(n),_u(r),_u(i)]},QC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KC;var t=GC(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},YC=Vy(),gi="data-scroll-locked",XC=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
43
- .`.concat(RC,` {
44
- overflow: hidden `).concat(r,`;
45
- padding-right: `).concat(l,"px ").concat(r,`;
46
- }
47
- body[`).concat(gi,`] {
48
- overflow: hidden `).concat(r,`;
49
- overscroll-behavior: contain;
50
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
51
- padding-left: `.concat(i,`px;
52
- padding-top: `).concat(o,`px;
53
- padding-right: `).concat(s,`px;
54
- margin-left:0;
55
- margin-top:0;
56
- margin-right: `).concat(l,"px ").concat(r,`;
57
- `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
58
- }
59
-
60
- .`).concat(qs,` {
61
- right: `).concat(l,"px ").concat(r,`;
62
- }
63
-
64
- .`).concat(el,` {
65
- margin-right: `).concat(l,"px ").concat(r,`;
66
- }
67
-
68
- .`).concat(qs," .").concat(qs,` {
69
- right: 0 `).concat(r,`;
70
- }
71
-
72
- .`).concat(el," .").concat(el,` {
73
- margin-right: 0 `).concat(r,`;
74
- }
75
-
76
- body[`).concat(gi,`] {
77
- `).concat(NC,": ").concat(l,`px;
78
- }
79
- `)},kh=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},ZC=function(){w.useEffect(function(){return document.body.setAttribute(gi,(kh()+1).toString()),function(){var e=kh()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},JC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;ZC();var o=w.useMemo(function(){return QC(i)},[i]);return w.createElement(YC,{styles:XC(o,!t,i,n?"":"!important")})},zc=!1;if(typeof window<"u")try{var Ds=Object.defineProperty({},"passive",{get:function(){return zc=!0,!0}});window.addEventListener("test",Ds,Ds),window.removeEventListener("test",Ds,Ds)}catch{zc=!1}var Hr=zc?{passive:!1}:!1,qC=function(e){return e.tagName==="TEXTAREA"},$y=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qC(e)&&n[t]==="visible")},eA=function(e){return $y(e,"overflowY")},tA=function(e){return $y(e,"overflowX")},Th=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Wy(e,r);if(i){var o=Hy(e,r),s=o[1],l=o[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},nA=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},rA=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wy=function(e,t){return e==="v"?eA(t):tA(t)},Hy=function(e,t){return e==="v"?nA(t):rA(t)},iA=function(e,t){return e==="h"&&t==="rtl"?-1:1},oA=function(e,t,n,r,i){var o=iA(e,window.getComputedStyle(t).direction),s=o*r,l=n.target,a=t.contains(l),u=!1,c=s>0,f=0,d=0;do{var p=Hy(e,l),y=p[0],h=p[1],x=p[2],g=h-x-o*y;(y||g)&&Wy(e,l)&&(f+=g,d+=y),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!a&&l!==document.body||a&&(t.contains(l)||t===l));return(c&&(Math.abs(f)<1||!i)||!c&&(Math.abs(d)<1||!i))&&(u=!0),u},Ms=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rh=function(e){return[e.deltaX,e.deltaY]},Nh=function(e){return e&&"current"in e?e.current:e},sA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},lA=function(e){return`
80
- .block-interactivity-`.concat(e,` {pointer-events: none;}
81
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
82
- `)},aA=0,Kr=[];function uA(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(aA++)[0],o=w.useState(Vy)[0],s=w.useRef(e);w.useEffect(function(){s.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var h=TC([e.lockRef.current],(e.shards||[]).map(Nh),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=w.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var g=Ms(h),v=n.current,_="deltaX"in h?h.deltaX:v[0]-g[0],S="deltaY"in h?h.deltaY:v[1]-g[1],b,E=h.target,C=Math.abs(_)>Math.abs(S)?"h":"v";if("touches"in h&&C==="h"&&E.type==="range")return!1;var A=Th(C,E);if(!A)return!0;if(A?b=C:(b=C==="v"?"h":"v",A=Th(C,E)),!A)return!1;if(!r.current&&"changedTouches"in h&&(_||S)&&(r.current=b),!b)return!0;var T=r.current||b;return oA(T,x,h,T==="h"?_:S,!0)},[]),a=w.useCallback(function(h){var x=h;if(!(!Kr.length||Kr[Kr.length-1]!==o)){var g="deltaY"in x?Rh(x):Ms(x),v=t.current.filter(function(b){return b.name===x.type&&(b.target===x.target||x.target===b.shadowParent)&&sA(b.delta,g)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var _=(s.current.shards||[]).map(Nh).filter(Boolean).filter(function(b){return b.contains(x.target)}),S=_.length>0?l(x,_[0]):!s.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=w.useCallback(function(h,x,g,v){var _={name:h,delta:x,target:g,should:v,shadowParent:cA(g)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(S){return S!==_})},1)},[]),c=w.useCallback(function(h){n.current=Ms(h),r.current=void 0},[]),f=w.useCallback(function(h){u(h.type,Rh(h),h.target,l(h,e.lockRef.current))},[]),d=w.useCallback(function(h){u(h.type,Ms(h),h.target,l(h,e.lockRef.current))},[]);w.useEffect(function(){return Kr.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",a,Hr),document.addEventListener("touchmove",a,Hr),document.addEventListener("touchstart",c,Hr),function(){Kr=Kr.filter(function(h){return h!==o}),document.removeEventListener("wheel",a,Hr),document.removeEventListener("touchmove",a,Hr),document.removeEventListener("touchstart",c,Hr)}},[]);var p=e.removeScrollBar,y=e.inert;return w.createElement(w.Fragment,null,y?w.createElement(o,{styles:lA(i)}):null,p?w.createElement(JC,{gapMode:e.gapMode}):null)}function cA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fA=zC(Uy,uA);var xd=w.forwardRef(function(e,t){return w.createElement(xa,Zt({},e,{ref:t,sideCar:fA}))});xd.classNames=xa.classNames;var Sd="Popover",[Ky,Sk]=ld(Sd,[wa]),is=wa(),[dA,ar]=Ky(Sd),Gy=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,l=is(t),a=w.useRef(null),[u,c]=w.useState(!1),[f=!1,d]=Bl({prop:r,defaultProp:i,onChange:o});return m.jsx(My,{...l,children:m.jsx(dA,{scope:t,contentId:va(),triggerRef:a,open:f,onOpenChange:d,onOpenToggle:w.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:w.useCallback(()=>c(!0),[]),onCustomAnchorRemove:w.useCallback(()=>c(!1),[]),modal:s,children:n})})};Gy.displayName=Sd;var Qy="PopoverAnchor",pA=w.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=ar(Qy,n),o=is(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return w.useEffect(()=>(s(),()=>l()),[s,l]),m.jsx(wd,{...o,...r,ref:t})});pA.displayName=Qy;var Yy="PopoverTrigger",Xy=w.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=ar(Yy,n),o=is(n),s=Se(t,i.triggerRef),l=m.jsx(ve.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":t0(i.open),...r,ref:s,onClick:se(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:m.jsx(wd,{asChild:!0,...o,children:l})});Xy.displayName=Yy;var bd="PopoverPortal",[hA,vA]=Ky(bd,{forceMount:void 0}),Zy=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=ar(bd,t);return m.jsx(hA,{scope:t,forceMount:n,children:m.jsx(_a,{present:n||o.open,children:m.jsx(_d,{asChild:!0,container:i,children:r})})})};Zy.displayName=bd;var Pi="PopoverContent",Jy=w.forwardRef((e,t)=>{const n=vA(Pi,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=ar(Pi,e.__scopePopover);return m.jsx(_a,{present:r||o.open,children:o.modal?m.jsx(gA,{...i,ref:t}):m.jsx(mA,{...i,ref:t})})});Jy.displayName=Pi;var gA=w.forwardRef((e,t)=>{const n=ar(Pi,e.__scopePopover),r=w.useRef(null),i=Se(t,r),o=w.useRef(!1);return w.useEffect(()=>{const s=r.current;if(s)return Fy(s)},[]),m.jsx(xd,{as:Rr,allowPinchZoom:!0,children:m.jsx(qy,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:se(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),o.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:se(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0,u=l.button===2||a;o.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:se(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),mA=w.forwardRef((e,t)=>{const n=ar(Pi,e.__scopePopover),r=w.useRef(!1),i=w.useRef(!1);return m.jsx(qy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var a,u;(a=e.onInteractOutside)==null||a.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),qy=w.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:c,...f}=e,d=ar(Pi,n),p=is(n);return dy(),m.jsx(ud,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:m.jsx(ad,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1),children:m.jsx(jy,{"data-state":t0(d.open),role:"dialog",id:d.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),e0="PopoverClose",yA=w.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=ar(e0,n);return m.jsx(ve.button,{type:"button",...r,ref:t,onClick:se(e.onClick,()=>i.onOpenChange(!1))})});yA.displayName=e0;var wA="PopoverArrow",_A=w.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=is(n);return m.jsx(Iy,{...i,...r,ref:t})});_A.displayName=wA;function t0(e){return e?"open":"closed"}var xA=Gy,SA=Xy,bA=Zy,n0=Jy;const r0=xA,i0=SA,Ed=w.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},i)=>m.jsx(bA,{children:m.jsx(n0,{ref:i,align:t,sideOffset:n,className:dt("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Ed.displayName=n0.displayName;function o0(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Cd="Checkbox",[EA,bk]=ld(Cd),[CA,AA]=EA(Cd),s0=w.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:s,disabled:l,value:a="on",onCheckedChange:u,form:c,...f}=e,[d,p]=w.useState(null),y=Se(t,S=>p(S)),h=w.useRef(!1),x=d?c||!!d.closest("form"):!0,[g=!1,v]=Bl({prop:i,defaultProp:o,onChange:u}),_=w.useRef(g);return w.useEffect(()=>{const S=d==null?void 0:d.form;if(S){const b=()=>v(_.current);return S.addEventListener("reset",b),()=>S.removeEventListener("reset",b)}},[d,v]),m.jsxs(CA,{scope:n,state:g,disabled:l,children:[m.jsx(ve.button,{type:"button",role:"checkbox","aria-checked":Yn(g)?"mixed":g,"aria-required":s,"data-state":u0(g),"data-disabled":l?"":void 0,disabled:l,value:a,...f,ref:y,onKeyDown:se(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:se(e.onClick,S=>{v(b=>Yn(b)?!0:!b),x&&(h.current=S.isPropagationStopped(),h.current||S.stopPropagation())})}),x&&m.jsx(OA,{control:d,bubbles:!h.current,name:r,value:a,checked:g,required:s,disabled:l,form:c,style:{transform:"translateX(-100%)"},defaultChecked:Yn(o)?!1:o})]})});s0.displayName=Cd;var l0="CheckboxIndicator",a0=w.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=AA(l0,n);return m.jsx(_a,{present:r||Yn(o.state)||o.state===!0,children:m.jsx(ve.span,{"data-state":u0(o.state),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});a0.displayName=l0;var OA=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:i,...o}=e,s=w.useRef(null),l=o0(n),a=Ey(t);w.useEffect(()=>{const c=s.current,f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&p){const y=new Event("click",{bubbles:r});c.indeterminate=Yn(n),p.call(c,Yn(n)?!1:n),c.dispatchEvent(y)}},[l,n,r]);const u=w.useRef(Yn(n)?!1:n);return m.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i??u.current,...o,tabIndex:-1,ref:s,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Yn(e){return e==="indeterminate"}function u0(e){return Yn(e)?"indeterminate":e?"checked":"unchecked"}var c0=s0,PA=a0,kA={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const TA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ad=(e,t)=>{const n=w.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,children:l,...a},u)=>w.createElement("svg",{ref:u,...kA,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:`lucide lucide-${TA(e)}`,...a},[...t.map(([c,f])=>w.createElement(c,f)),...(Array.isArray(l)?l:[l])||[]]));return n.displayName=`${e}`,n},f0=Ad("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),d0=Ad("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),RA=Ad("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Bc=w.forwardRef(({className:e,...t},n)=>m.jsx(c0,{ref:n,className:dt("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:m.jsx(PA,{className:dt("flex items-center justify-center text-current"),children:m.jsx(f0,{className:"h-4 w-4"})})}));Bc.displayName=c0.displayName;function p0(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const Mr=p0();let Uc=()=>{};class Ul{constructor(){U(this,"_debug",!1);U(this,"_connectAutomatically",!1);U(this,"_originalDebugFunc");td(this),this._originalDebugFunc=console.debug,this.debug=localStorage.getItem("debug.enabled")==="true",this.connectAutomatically=localStorage.getItem("connectAutomatically.enabled")==="true"}get debug(){return this._debug}set debug(t){this._debug=t,localStorage.setItem("debug.enabled",t?"true":"false"),t?this.enable():this.disable()}get connectAutomatically(){return this._connectAutomatically}set connectAutomatically(t){this._connectAutomatically=t,localStorage.setItem("connectAutomatically.enabled",t?"true":"false")}enable(){console.debug=this._originalDebugFunc,Uc=t=>t(),Mr.on("*",Ul.eventLogger),this.printPerformanceWarning()}disable(){this._originalDebugFunc=console.debug,console.debug=()=>{},Uc=()=>{},Mr.off("*",Ul.eventLogger)}static eventLogger(t,n){console.log("[EventLogger]",t,n)}printPerformanceWarning(){console.warn("[Puth] Performance is affected by debug")}}const Dh=new Ul,Sa=w.forwardRef(({className:e,type:t,...n},r)=>m.jsx("input",{type:t,className:dt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-xs file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed",e),ref:r,...n}));Sa.displayName="Input";function xu({onClick:e,className:t="",active:n,children:r}){return m.jsx("div",{className:"flex items-center rounded-full border uppercase text-xs mr-4 "+t,style:{fontSize:"0.625rem",letterSpacing:"1.25px",borderColor:"rgba(255,255,255,0.16)",fontWeight:500},children:m.jsx("div",{className:"flex items-center rounded-full cursor-pointer select-none",style:{padding:"0.125rem 0.5rem",margin:"0.125rem 0.125rem 0.125rem 0.125rem",backgroundColor:n?"rgba(60, 130, 246, 0.84)":"rgba(255,255,255,0.08)",color:n?"black":"rgba(247,248,255,0.84)"},onClick:e,children:r})})}const NA=Ve(function(){const{app:t}=w.useContext(gt),[n,r]=w.useState(!0),i=t.connections.length===1,[o,s]=w.useState(!1),[l,a]=w.useState(!1),[u,c]=w.useState(""),[f,d]=w.useState(null),p=w.useCallback(h=>{s(!0),t.tryConnectingTo(h).then(()=>{r(!1),c(""),d(null)}).finally(()=>{s(!1)}).catch(x=>d(x))},[]),y=w.useCallback(async()=>{a(!0),i&&!t.connections[0].isConnected&&await t.connections[0].retry().finally(()=>{a(!1)}).catch(h=>{})},[i]);return t.view==="local"?m.jsx(xu,{active:!0,onClick:()=>t.setView("instance"),children:"Switch to instance"}):m.jsxs(m.Fragment,{children:[t.hasLocalContexts&&m.jsx(xu,{active:!1,onClick:()=>t.setView("local"),children:"View local contexts"}),i&&!t.connections[0].isConnected&&m.jsxs(xu,{active:!1,onClick:y,disabled:l,children:[m.jsx(Re,{name:"refresh",className:`mr-1 ${l?"animate-spin":""}`,size:"0.95rem"})," Reconnect"]}),m.jsxs("div",{className:"flex items-center rounded-full border uppercase text-xs mr-2",style:{fontSize:"0.625rem",letterSpacing:"1.25px",borderColor:"rgba(255,255,255,0.16)",fontWeight:500},children:[m.jsx("div",{className:"px-2 flex items-center",style:{color:i?t.connections[0].isConnected?"#0db87c":"#e34a4a":"rgba(255,255,255,0.54)"},children:i?t.connections[0].isConnected?m.jsxs(m.Fragment,{children:[m.jsx(Re,{name:"check",className:"mr-1",size:"0.95rem"})," Connected"]}):m.jsxs(m.Fragment,{children:[m.jsx(Re,{name:"close",className:"mr-1",size:"0.95rem"})," Connection closed"]}):m.jsx(m.Fragment,{children:"- No connection"})}),m.jsxs(r0,{open:n,onOpenChange:h=>r(h),children:[m.jsx(i0,{asChild:!0,children:m.jsx("div",{className:"flex items-center rounded-full cursor-pointer select-none",style:{padding:"0.125rem 0.5rem",margin:"0.125rem 0.125rem 0.125rem 0px",backgroundColor:n?"rgba(60, 130, 246, 0.84)":"rgba(255,255,255,0.08)",color:n?"black":"rgba(247,248,255,0.84)"},children:i?"Switch instance":"Connect to instance"})}),m.jsxs(Ed,{sideOffset:6,className:"w-[400px] p-0",align:"end",style:{backgroundColor:"#2a2d36",boxShadow:"0 2px 6px 0 rgba(0,0,0,0.16)",borderColor:"#22252b",borderWidth:"0 0 3px 0"},children:[m.jsx("div",{className:"p-4 text-sm",children:"Connect to instance"}),m.jsxs("div",{className:"px-4 pb-2 text-xs font-light flex flex-col",children:["Please connect to a Puth instance",m.jsx(Sa,{className:"mt-4",placeholder:"Enter an IP or hostname or select one of the suggestions",onChange:h=>c(h.target.value),value:u}),f&&m.jsx("div",{className:"my-2 p-2 rounded",style:{backgroundColor:"rgba(212, 49, 49, 0.12)"},children:m.jsxs("div",{className:"text-red flex items-center font-medium",children:[m.jsx(Re,{name:"bolt",className:"mr-1"})," ",(f==null?void 0:f.reason)??"Unknown error"]})}),t.connectionSuggestions.map((h,x)=>m.jsx(Nr,{variant:"outline",className:"w-full mt-1",onClick:()=>p(h),children:h},x)),m.jsxs("div",{className:"mt-6 flex items-center justify-end",children:[o&&m.jsx(Re,{name:"progress_activity",className:`mr-2 ${o?"animate-spin":""}`}),m.jsx(Nr,{onClick:()=>p(u),disabled:o,children:"CONNECT"})]})]})]})]})]})]})}),DA=Ve(()=>{const{app:e}=w.useContext(gt),[t,n]=w.useState(!1);return m.jsxs(r0,{open:t,onOpenChange:r=>n(r),children:[m.jsx(i0,{asChild:!0,children:m.jsx(Nr,{size:"icon-xs",variant:"ghost",children:m.jsx(Re,{name:"settings"})})}),m.jsxs(Ed,{sideOffset:6,className:"w-[250px]",align:"end",style:{backgroundColor:"#2a2d36",boxShadow:"0 2px 6px 0 rgba(0,0,0,0.16)",borderColor:"#22252b",borderWidth:"0 0 3px 0"},children:[m.jsx("div",{className:" text-sm text-uppercase tracking-widest",children:"SETTINGS"}),m.jsxs("div",{className:"flex items-center space-x-2 mt-6",children:[m.jsx(Bc,{id:"darken-preview",checked:e.settings.preview.darken,onCheckedChange:r=>e.setDarkenPreview(r===!0)}),m.jsx("label",{htmlFor:"darken-preview",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:"Darken preview"})]}),m.jsxs("div",{className:"flex items-center space-x-2 mt-4",children:[m.jsx(Bc,{id:"debug-mode",checked:Dh.debug,onCheckedChange:r=>Dh.debug=r===!0}),m.jsx("label",{htmlFor:"debug-mode",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:"Debug mode"})]})]})]})}),MA=Ve(function({sidebar:t,preview:n,mainTop:r,mainBottom:i}){const{app:o}=w.useContext(gt);return m.jsx(m.Fragment,{children:m.jsxs("div",{className:"grid grid-rows-[2.5rem_1fr] h-screen w-screen",children:[m.jsxs("div",{className:"flex items-center px-2 shrink-0",style:{backgroundColor:"#22252b",boxShadow:"0 1px 4px 0px #1a1c1f",borderBottom:"1px solid rgba(25,27,31,0.74)",zIndex:10},children:[m.jsxs("div",{className:"flex items-center mr-auto text-base",children:[m.jsx("img",{src:ob,className:"h-6 mr-2"}),"Puth ",o.name.suffix&&m.jsxs("span",{className:"text-blue-500 font-bold ml-1",children:[" ",o.name.suffix]})]}),m.jsx(NA,{}),m.jsx(DA,{})]}),m.jsxs("div",{className:"grid grid-cols-[450px_1fr] min-h-0",children:[m.jsx("div",{className:"flex flex-col min-h-0 grow",style:{background:"rgba(44, 47, 56, 54%)",borderRight:"1px solid #1a1d21"},children:t}),m.jsx("div",{className:"flex flex-col grow overflow-auto",children:o.previewStore?m.jsxs(m.Fragment,{children:[r&&m.jsx("div",{className:"shrink flex items-center h-7 px-4 mt-3",children:r}),m.jsx("div",{className:"flex-1 grow m-4 overflow-auto",style:{border:"1px solid #2f333d"},children:n}),i&&m.jsx(m.Fragment,{children:i})]}):m.jsx("div",{className:"flex-1 flex flex-col items-center justify-center text-gray-500 text-2xl italic text-center px-8",children:m.jsxs("div",{className:"flex flex-col",style:{maxWidth:"40rem"},children:[m.jsx(Re,{className:"mb-4",name:"cloud_off",size:"6rem"}),"No instance connected. Please connect to a Puth instance or drag and drop a snapshot into the window."]})})})]})]})})}),jA=function({children:t,className:n="",...r}){return m.jsx("div",{className:"flex rounded-full leading-none tracking-widest select-none text-xxs "+n,style:{backgroundColor:"#2b303b"},...r,children:t})},Mh=function({active:t,children:n,className:r="",...i}){return m.jsx("div",{className:`p-2 rounded-full cursor-pointer ${r} `+(t?"bg-primary text-black":"text-unselected hover:bg-primary-hover-hover"),style:{padding:"calc(0.5rem + 1px) 0.75rem calc(0.5rem + 1px) 0.75rem"},...i,children:n})},IA=Ve(function(){var r,i;const{app:t}=w.useContext(gt);let n=o=>{t.previewStore&&(t.previewStore.state=o)};return m.jsx(m.Fragment,{children:m.jsxs(jA,{className:"mr-4",children:[m.jsx(Mh,{active:((r=t.previewStore)==null?void 0:r.state)==="before",onClick:()=>n("before"),children:"BEFORE"}),m.jsx(Mh,{active:((i=t.previewStore)==null?void 0:i.state)==="after",onClick:()=>n("after"),children:"AFTER"})]})})}),LA=Ve(function(){return m.jsx(m.Fragment,{})}),FA=Ve(function({left:t,right:n}){var i,o,s;const{app:r}=w.useContext(gt);return m.jsxs(m.Fragment,{children:[t||m.jsx(IA,{}),m.jsx(Sa,{className:"h-7 grow bg-lighter border-none",value:((s=(o=(i=r.previewStore)==null?void 0:i.visibleScreencast)==null?void 0:o.page)==null?void 0:s.url)??"",disabled:!0}),n||m.jsx(LA,{})]})});Ve(function(){return m.jsxs(m.Fragment,{children:[m.jsxs(Nr,{variant:"ghost",size:"toggle",className:"text-primary text-xxs uppercase tracking-widest",children:[m.jsx(Re,{name:"error",className:"mr-1"})," Exceptions"]}),m.jsxs(Nr,{variant:"ghost",size:"toggle",className:"text-primary text-xxs uppercase tracking-widest",children:[m.jsx(Re,{name:"folder",className:"mr-1"})," Files"]})]})});const go={Page:"CdpPage",Frame:"CdpFrame",Browser:"CdpBrowser",BrowserContext:"CdpBrowserContext",JSHandle:"CdpJSHandle",ElementHandle:"CdpElementHandle",Session:"CdpSession",ConnectionAdapter:"CdpConnectionAdapter",ClientAdapter:"CdpClientAdapter",Mouse:"CdpMouse",Keyboard:"CdpKeyboard",Touchscreen:"CdpTouchscreen",Target:"CdpTarget",Context:"Context"},zA=Ve(({index:e,command:t,showTimings:n=!1})=>{var v,_,S,b;const{app:r}=w.useContext(gt);let{on:i,func:o,args:s}=t,l=w.useCallback(E=>{E.stopPropagation(),t.context.preview.toggleCommand(t)},[t]),a=w.useCallback(E=>{E.stopPropagation(),t.context.preview.highlightCommand(t)},[t]),u=w.useCallback(E=>{E.stopPropagation(),t.context.preview.unhighlightCommand(t)},[t]),c=i.type;i.type===go.ElementHandle?c="Element":i.type===go.Page?c="Page":i.type===go.Browser&&(c="Browser");let f=s.map(E=>typeof E=="object"?JSON.stringify(E):E),d="";if(o.length>10){let E=[0];for(let C=1;C<o.length;C++){let A=o[C];A===A.toUpperCase()&&E.push(C)}if(E.length<=10){let C=Math.floor(10/E.length);E.forEach(A=>{d+=o.slice(A,A+(C>1?C:1))})}}else d=o;let p=((_=(v=r.previewStore)==null?void 0:v.activeCommand)==null?void 0:_.id)===(t==null?void 0:t.id),y=t.errors.length>0,h=y?m.jsx(Od,{status:"failed"}):null,x=y?"bg-task-error":"bg-task",g=m.jsx("div",{className:`absolute left-0 ${x}`,style:{top:"2px",bottom:"2px",width:"3px"}});return m.jsxs(m.Fragment,{children:[m.jsxs("tr",{className:`command step relative ${p?"active":""}`,onClick:l,onMouseEnter:a,onMouseLeave:u,children:[m.jsxs("td",{className:"py-2 pl-4",style:{paddingLeft:"0.75rem"},children:[e!==void 0?e+1:"",g]}),m.jsx("td",{children:n&&m.jsxs(m.Fragment,{children:[(t.time.elapsed/1e3).toFixed(1),"s",((S=t==null?void 0:t.time)==null?void 0:S.took)!==0&&((b=t==null?void 0:t.time)==null?void 0:b.took)&&t.time.took>250&&m.jsx("div",{children:m.jsxs("span",{className:"text-warning-dark",children:[(t.time.took/1e3).toFixed(1),"s"]})})]})}),m.jsx("td",{children:c}),m.jsx("td",{children:d}),m.jsx("td",{className:"",colSpan:h?1:2,children:f.join(", ")}),h&&m.jsx("td",{className:"leading-none pr-4",children:h})]}),t.errors.map((E,C)=>{let A=E.type==="error"?E.error.name:"Expectation missed",T=E.type==="error"?E.error.message:E.expectation.message;return m.jsx("tr",{children:m.jsxs("td",{colSpan:6,className:"relative p-0",children:[m.jsx("div",{style:{width:"1px",height:"1.75rem",background:"rgba(255, 255, 255, 0.24)",position:"absolute",left:"0.5rem",top:0}}),m.jsx("div",{style:{width:"0.75rem",height:"1px",background:"rgba(255, 255, 255, 0.24)",position:"absolute",left:"0.5rem",top:"1.75rem"}}),m.jsxs("div",{className:"p-3 ml-6 rounded-md","data-messagetype":"error",style:{backgroundColor:"rgba(212, 49, 49, 0.12)"},children:[m.jsxs("div",{className:"text-xs text-red flex items-center",children:[m.jsx(Re,{name:"bolt",className:"mr-1"})," ",A]}),m.jsx("div",{className:"text-xxs text-unselected mt-3",children:T})]})]})},C)})]})}),BA=({log:e})=>{let t=e.messageType==="error",n=t&&e.args.length===0?e.text:e.args.map(r=>typeof r=="object"?JSON.stringify(r):r).join(" ");return m.jsxs("tr",{className:"log","data-messagetype":e.messageType,children:[m.jsx("td",{}),m.jsx("td",{colSpan:5,children:m.jsxs("div",{children:[m.jsxs("div",{className:"fst-italic small",children:["console message (type: ",e.messageType,")"]}),m.jsx("div",{className:"small fw-bold",children:n}),t&&m.jsx(m.Fragment,{children:m.jsx("table",{className:"small",children:m.jsx("tbody",{children:e.stackTrace.map((r,i)=>m.jsxs("tr",{children:[m.jsxs("td",{children:[r.lineNumber,r.columnNumber&&":",r.columnNumber]}),m.jsx("td",{className:"text-danger",children:r.url})]},i))})})})]})})]})},UA=({request:e})=>{var n,r;let t=e!=null&&e.response?((r=(n=e==null?void 0:e.response)==null?void 0:n.time)==null?void 0:r.finished)-e.time:0;return m.jsxs("tr",{className:"request","data-status":e.status,children:[m.jsx("td",{}),m.jsxs("td",{className:"",children:[e.status==="finished"?(e.response.time.elapsed/1e3).toFixed(1)+"s":"-",t>250&&m.jsx("div",{children:m.jsxs("span",{className:"text-warning-dark",children:[(t/1e3).toFixed(1),"s"]})})]}),m.jsx("td",{children:e.resourceType}),m.jsx("td",{colSpan:3,className:"ellipsis",children:m.jsx("span",{children:e.url})})]})};function Od({status:e,className:t,...n}){let r="pending";return e==="failed"?(r="error",t="text-red-500 "+t):e==="successful"&&(r="check_circle",t="text-green-500 "+t),m.jsx(Re,{name:r,className:t,...n})}function VA({resolver:e,name:t}){const n=w.useRef(null),r=async()=>{if(!n.current)return;let i=await e();n.current.href=URL.createObjectURL(i),n.current.download=t??"snapshot.puth",n.current.click(),URL.revokeObjectURL(n.current.href)};return m.jsxs(m.Fragment,{children:[m.jsx(Nr,{variant:"ghost",size:"icon-xs",onClick:r,children:m.jsx(Re,{name:"download"})}),m.jsx("a",{href:"",style:{display:"none"},ref:n})]})}const $A=Ve(function({updateCallback:t}){const{app:n}=w.useContext(gt);if(w.useEffect(()=>t&&t()),!n.activeContext)return m.jsx(m.Fragment,{});let r=0;return m.jsx(m.Fragment,{children:n.activeContext.renderedEvents.map(i=>{if(i.type==="command")return m.jsx(zA,{index:r++,command:i,showTimings:!1},i.id);if(i.type==="log")return m.jsx(BA,{log:i},i.id);if(i.type==="request")return m.jsx(UA,{request:i},i.id)})})}),WA=Ve(function({took:t}){let n=t.minutes<10?"0"+t.minutes:t.minutes,r=t.seconds<10?"0"+t.seconds:t.seconds;return m.jsxs(m.Fragment,{children:[m.jsx(Re,{name:"timer",className:"mr-1"})," ",n,":",r,"s"]})}),HA=Ve(function(){var i,o;const{app:t}=w.useContext(gt),n=w.useRef(null),r=w.useCallback(()=>{var s;n.current&&((s=t.activeContext)!=null&&s.followIncoming)&&t.activeContext.renderedEvents.length!==0&&(n.current.scrollTop=n.current.scrollHeight)},[]);return t.activeContext?t.activeContext?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center px-5 py-5",children:[m.jsxs("div",{className:"grow flex items-center text-lg",children:[m.jsx(Od,{status:(i=t.activeContext)==null?void 0:i.test.status,className:"mr-2"})," ",(o=t.activeContext)==null?void 0:o.test.name]}),m.jsx("div",{className:"flex items-center text-gray-300 ml-auto",children:m.jsx(WA,{took:t.activeContext.took})}),m.jsx(VA,{name:`snapshot-${t.activeContext.createdAt}-${t.activeContext.id}.puth`,resolver:()=>{var s;return(s=t.activeContext)==null?void 0:s.blob()}})]}),m.jsx("div",{ref:n,className:"grow overflow-y-auto px-5",children:m.jsx("table",{className:"table-auto w-full context-event-table",style:{margin:"-4px 0"},children:m.jsx("tbody",{children:m.jsx($A,{updateCallback:r})})})})]}):m.jsxs("div",{className:"p-8 flex-1 flex flex-col items-center justify-center text-lg text-light text-center",children:[m.jsx(Re,{name:"explore",size:"3rem",className:"mb-4"}),"Select a test in the history list. Head over to puth.io/getting-started if you need help running your first test."]}):m.jsx(m.Fragment,{})});function jh(e,[t,n]){return Math.min(n,Math.max(t,e))}function KA(e,t=[]){let n=[];function r(o,s){const l=w.createContext(s),a=n.length;n=[...n,s];function u(f){const{scope:d,children:p,...y}=f,h=(d==null?void 0:d[e][a])||l,x=w.useMemo(()=>y,Object.values(y));return m.jsx(h.Provider,{value:x,children:p})}function c(f,d){const p=(d==null?void 0:d[e][a])||l,y=w.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const i=()=>{const o=n.map(s=>w.createContext(s));return function(l){const a=(l==null?void 0:l[e])||o;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return i.scopeName=e,[r,GA(i,...t)]}function GA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(o)[`__scope${u}`];return{...l,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function QA(e){const t=e+"CollectionProvider",[n,r]=KA(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:y,children:h}=p,x=Ke.useRef(null),g=Ke.useRef(new Map).current;return m.jsx(i,{scope:y,itemMap:g,collectionRef:x,children:h})};s.displayName=t;const l=e+"CollectionSlot",a=Ke.forwardRef((p,y)=>{const{scope:h,children:x}=p,g=o(l,h),v=Se(y,g.collectionRef);return m.jsx(Rr,{ref:v,children:x})});a.displayName=l;const u=e+"CollectionItemSlot",c="data-radix-collection-item",f=Ke.forwardRef((p,y)=>{const{scope:h,children:x,...g}=p,v=Ke.useRef(null),_=Se(y,v),S=o(u,h);return Ke.useEffect(()=>(S.itemMap.set(v,{ref:v,...g}),()=>void S.itemMap.delete(v))),m.jsx(Rr,{[c]:"",ref:_,children:x})});f.displayName=u;function d(p){const y=o(e+"CollectionConsumer",p);return Ke.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((S,b)=>g.indexOf(S.ref.current)-g.indexOf(b.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:a,ItemSlot:f},d,r]}var YA=w.createContext(void 0);function XA(e){const t=w.useContext(YA);return e||t||"ltr"}var ZA="VisuallyHidden",h0=w.forwardRef((e,t)=>m.jsx(ve.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));h0.displayName=ZA;var JA=[" ","Enter","ArrowUp","ArrowDown"],qA=[" ","Enter"],os="Select",[ba,Ea,eO]=QA(os),[zi,Ek]=ld(os,[eO,wa]),Ca=wa(),[tO,ur]=zi(os),[nO,rO]=zi(os),v0=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:l,onValueChange:a,dir:u,name:c,autoComplete:f,disabled:d,required:p,form:y}=e,h=Ca(t),[x,g]=w.useState(null),[v,_]=w.useState(null),[S,b]=w.useState(!1),E=XA(u),[C=!1,A]=Bl({prop:r,defaultProp:i,onChange:o}),[T,P]=Bl({prop:s,defaultProp:l,onChange:a}),M=w.useRef(null),R=x?y||!!x.closest("form"):!0,[z,B]=w.useState(new Set),G=Array.from(z).map(W=>W.props.value).join(";");return m.jsx(My,{...h,children:m.jsxs(tO,{required:p,scope:t,trigger:x,onTriggerChange:g,valueNode:v,onValueNodeChange:_,valueNodeHasChildren:S,onValueNodeHasChildrenChange:b,contentId:va(),value:T,onValueChange:P,open:C,onOpenChange:A,dir:E,triggerPointerDownPosRef:M,disabled:d,children:[m.jsx(ba.Provider,{scope:t,children:m.jsx(nO,{scope:e.__scopeSelect,onNativeOptionAdd:w.useCallback(W=>{B(Y=>new Set(Y).add(W))},[]),onNativeOptionRemove:w.useCallback(W=>{B(Y=>{const O=new Set(Y);return O.delete(W),O})},[]),children:n})}),R?m.jsxs(B0,{"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:f,value:T,onChange:W=>P(W.target.value),disabled:d,form:y,children:[T===void 0?m.jsx("option",{value:""}):null,Array.from(z)]},G):null]})})};v0.displayName=os;var g0="SelectTrigger",m0=w.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=Ca(n),s=ur(g0,n),l=s.disabled||r,a=Se(t,s.onTriggerChange),u=Ea(n),c=w.useRef("touch"),[f,d,p]=U0(h=>{const x=u().filter(_=>!_.disabled),g=x.find(_=>_.value===s.value),v=V0(x,h,g);v!==void 0&&s.onValueChange(v.value)}),y=h=>{l||(s.onOpenChange(!0),p()),h&&(s.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return m.jsx(wd,{asChild:!0,...o,children:m.jsx(ve.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":z0(s.value)?"":void 0,...i,ref:a,onClick:se(i.onClick,h=>{h.currentTarget.focus(),c.current!=="mouse"&&y(h)}),onPointerDown:se(i.onPointerDown,h=>{c.current=h.pointerType;const x=h.target;x.hasPointerCapture(h.pointerId)&&x.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(y(h),h.preventDefault())}),onKeyDown:se(i.onKeyDown,h=>{const x=f.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&d(h.key),!(x&&h.key===" ")&&JA.includes(h.key)&&(y(),h.preventDefault())})})})});m0.displayName=g0;var y0="SelectValue",w0=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s="",...l}=e,a=ur(y0,n),{onValueNodeHasChildrenChange:u}=a,c=o!==void 0,f=Se(t,a.onValueNodeChange);return Qe(()=>{u(c)},[u,c]),m.jsx(ve.span,{...l,ref:f,style:{pointerEvents:"none"},children:z0(a.value)?m.jsx(m.Fragment,{children:s}):o})});w0.displayName=y0;var iO="SelectIcon",_0=w.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return m.jsx(ve.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});_0.displayName=iO;var oO="SelectPortal",x0=e=>m.jsx(_d,{asChild:!0,...e});x0.displayName=oO;var jr="SelectContent",S0=w.forwardRef((e,t)=>{const n=ur(jr,e.__scopeSelect),[r,i]=w.useState();if(Qe(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?Fr.createPortal(m.jsx(b0,{scope:e.__scopeSelect,children:m.jsx(ba.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),o):null}return m.jsx(E0,{...e,ref:t})});S0.displayName=jr;var Tt=10,[b0,cr]=zi(jr),sO="SelectContentImpl",E0=w.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:y,hideWhenDetached:h,avoidCollisions:x,...g}=e,v=ur(jr,n),[_,S]=w.useState(null),[b,E]=w.useState(null),C=Se(t,F=>S(F)),[A,T]=w.useState(null),[P,M]=w.useState(null),R=Ea(n),[z,B]=w.useState(!1),G=w.useRef(!1);w.useEffect(()=>{if(_)return Fy(_)},[_]),dy();const W=w.useCallback(F=>{const[ie,...Oe]=R().map(Z=>Z.ref.current),[ne]=Oe.slice(-1),te=document.activeElement;for(const Z of F)if(Z===te||(Z==null||Z.scrollIntoView({block:"nearest"}),Z===ie&&b&&(b.scrollTop=0),Z===ne&&b&&(b.scrollTop=b.scrollHeight),Z==null||Z.focus(),document.activeElement!==te))return},[R,b]),Y=w.useCallback(()=>W([A,_]),[W,A,_]);w.useEffect(()=>{z&&Y()},[z,Y]);const{onOpenChange:O,triggerPointerDownPosRef:D}=v;w.useEffect(()=>{if(_){let F={x:0,y:0};const ie=ne=>{var te,Z;F={x:Math.abs(Math.round(ne.pageX)-(((te=D.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((Z=D.current)==null?void 0:Z.y)??0))}},Oe=ne=>{F.x<=10&&F.y<=10?ne.preventDefault():_.contains(ne.target)||O(!1),document.removeEventListener("pointermove",ie),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",Oe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",Oe,{capture:!0})}}},[_,O,D]),w.useEffect(()=>{const F=()=>O(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[O]);const[L,H]=U0(F=>{const ie=R().filter(te=>!te.disabled),Oe=ie.find(te=>te.ref.current===document.activeElement),ne=V0(ie,F,Oe);ne&&setTimeout(()=>ne.ref.current.focus())}),oe=w.useCallback((F,ie,Oe)=>{const ne=!G.current&&!Oe;(v.value!==void 0&&v.value===ie||ne)&&(T(F),ne&&(G.current=!0))},[v.value]),rt=w.useCallback(()=>_==null?void 0:_.focus(),[_]),Ae=w.useCallback((F,ie,Oe)=>{const ne=!G.current&&!Oe;(v.value!==void 0&&v.value===ie||ne)&&M(F)},[v.value]),$e=r==="popper"?Vc:C0,be=$e===Vc?{side:l,sideOffset:a,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:y,hideWhenDetached:h,avoidCollisions:x}:{};return m.jsx(b0,{scope:n,content:_,viewport:b,onViewportChange:E,itemRefCallback:oe,selectedItem:A,onItemLeave:rt,itemTextRefCallback:Ae,focusSelectedItem:Y,selectedItemText:P,position:r,isPositioned:z,searchRef:L,children:m.jsx(xd,{as:Rr,allowPinchZoom:!0,children:m.jsx(ud,{asChild:!0,trapped:v.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:se(i,F=>{var ie;(ie=v.trigger)==null||ie.focus({preventScroll:!0}),F.preventDefault()}),children:m.jsx(ad,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:m.jsx($e,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:F=>F.preventDefault(),...g,...be,onPlaced:()=>B(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:se(g.onKeyDown,F=>{const ie=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!ie&&F.key.length===1&&H(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let ne=R().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(F.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const te=F.target,Z=ne.indexOf(te);ne=ne.slice(Z+1)}setTimeout(()=>W(ne)),F.preventDefault()}})})})})})})});E0.displayName=sO;var lO="SelectItemAlignedPosition",C0=w.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=ur(jr,n),s=cr(jr,n),[l,a]=w.useState(null),[u,c]=w.useState(null),f=Se(t,C=>c(C)),d=Ea(n),p=w.useRef(!1),y=w.useRef(!0),{viewport:h,selectedItem:x,selectedItemText:g,focusSelectedItem:v}=s,_=w.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&u&&h&&x&&g){const C=o.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),T=o.valueNode.getBoundingClientRect(),P=g.getBoundingClientRect();if(o.dir!=="rtl"){const te=P.left-A.left,Z=T.left-te,De=C.left-Z,We=C.width+De,Ht=Math.max(We,A.width),fr=window.innerWidth-Tt,dr=jh(Z,[Tt,Math.max(Tt,fr-Ht)]);l.style.minWidth=We+"px",l.style.left=dr+"px"}else{const te=A.right-P.right,Z=window.innerWidth-T.right-te,De=window.innerWidth-C.right-Z,We=C.width+De,Ht=Math.max(We,A.width),fr=window.innerWidth-Tt,dr=jh(Z,[Tt,Math.max(Tt,fr-Ht)]);l.style.minWidth=We+"px",l.style.right=dr+"px"}const M=d(),R=window.innerHeight-Tt*2,z=h.scrollHeight,B=window.getComputedStyle(u),G=parseInt(B.borderTopWidth,10),W=parseInt(B.paddingTop,10),Y=parseInt(B.borderBottomWidth,10),O=parseInt(B.paddingBottom,10),D=G+W+z+O+Y,L=Math.min(x.offsetHeight*5,D),H=window.getComputedStyle(h),oe=parseInt(H.paddingTop,10),rt=parseInt(H.paddingBottom,10),Ae=C.top+C.height/2-Tt,$e=R-Ae,be=x.offsetHeight/2,F=x.offsetTop+be,ie=G+W+F,Oe=D-ie;if(ie<=Ae){const te=M.length>0&&x===M[M.length-1].ref.current;l.style.bottom="0px";const Z=u.clientHeight-h.offsetTop-h.offsetHeight,De=Math.max($e,be+(te?rt:0)+Z+Y),We=ie+De;l.style.height=We+"px"}else{const te=M.length>0&&x===M[0].ref.current;l.style.top="0px";const De=Math.max(Ae,G+h.offsetTop+(te?oe:0)+be)+Oe;l.style.height=De+"px",h.scrollTop=ie-Ae+h.offsetTop}l.style.margin=`${Tt}px 0`,l.style.minHeight=L+"px",l.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[d,o.trigger,o.valueNode,l,u,h,x,g,o.dir,r]);Qe(()=>_(),[_]);const[S,b]=w.useState();Qe(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);const E=w.useCallback(C=>{C&&y.current===!0&&(_(),v==null||v(),y.current=!1)},[_,v]);return m.jsx(uO,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:E,children:m.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:m.jsx(ve.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});C0.displayName=lO;var aO="SelectPopperPosition",Vc=w.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Tt,...o}=e,s=Ca(n);return m.jsx(jy,{...s,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Vc.displayName=aO;var[uO,Pd]=zi(jr,{}),$c="SelectViewport",A0=w.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=cr($c,n),s=Pd($c,n),l=Se(t,o.onViewportChange),a=w.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),m.jsx(ba.Slot,{scope:n,children:m.jsx(ve.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:se(i.onScroll,u=>{const c=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=s;if(d!=null&&d.current&&f){const p=Math.abs(a.current-c.scrollTop);if(p>0){const y=window.innerHeight-Tt*2,h=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),g=Math.max(h,x);if(g<y){const v=g+p,_=Math.min(y,v),S=v-_;f.style.height=_+"px",f.style.bottom==="0px"&&(c.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})})})]})});A0.displayName=$c;var O0="SelectGroup",[cO,fO]=zi(O0),dO=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=va();return m.jsx(cO,{scope:n,id:i,children:m.jsx(ve.div,{role:"group","aria-labelledby":i,...r,ref:t})})});dO.displayName=O0;var P0="SelectLabel",k0=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=fO(P0,n);return m.jsx(ve.div,{id:i.id,...r,ref:t})});k0.displayName=P0;var Vl="SelectItem",[pO,T0]=zi(Vl),R0=w.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,l=ur(Vl,n),a=cr(Vl,n),u=l.value===r,[c,f]=w.useState(o??""),[d,p]=w.useState(!1),y=Se(t,v=>{var _;return(_=a.itemRefCallback)==null?void 0:_.call(a,v,r,i)}),h=va(),x=w.useRef("touch"),g=()=>{i||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx(pO,{scope:n,value:r,disabled:i,textId:h,isSelected:u,onItemTextChange:w.useCallback(v=>{f(_=>_||((v==null?void 0:v.textContent)??"").trim())},[]),children:m.jsx(ba.ItemSlot,{scope:n,value:r,disabled:i,textValue:c,children:m.jsx(ve.div,{role:"option","aria-labelledby":h,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:y,onFocus:se(s.onFocus,()=>p(!0)),onBlur:se(s.onBlur,()=>p(!1)),onClick:se(s.onClick,()=>{x.current!=="mouse"&&g()}),onPointerUp:se(s.onPointerUp,()=>{x.current==="mouse"&&g()}),onPointerDown:se(s.onPointerDown,v=>{x.current=v.pointerType}),onPointerMove:se(s.onPointerMove,v=>{var _;x.current=v.pointerType,i?(_=a.onItemLeave)==null||_.call(a):x.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:se(s.onPointerLeave,v=>{var _;v.currentTarget===document.activeElement&&((_=a.onItemLeave)==null||_.call(a))}),onKeyDown:se(s.onKeyDown,v=>{var S;((S=a.searchRef)==null?void 0:S.current)!==""&&v.key===" "||(qA.includes(v.key)&&g(),v.key===" "&&v.preventDefault())})})})})});R0.displayName=Vl;var ro="SelectItemText",N0=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,s=ur(ro,n),l=cr(ro,n),a=T0(ro,n),u=rO(ro,n),[c,f]=w.useState(null),d=Se(t,g=>f(g),a.onItemTextChange,g=>{var v;return(v=l.itemTextRefCallback)==null?void 0:v.call(l,g,a.value,a.disabled)}),p=c==null?void 0:c.textContent,y=w.useMemo(()=>m.jsx("option",{value:a.value,disabled:a.disabled,children:p},a.value),[a.disabled,a.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:x}=u;return Qe(()=>(h(y),()=>x(y)),[h,x,y]),m.jsxs(m.Fragment,{children:[m.jsx(ve.span,{id:a.textId,...o,ref:d}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Fr.createPortal(o.children,s.valueNode):null]})});N0.displayName=ro;var D0="SelectItemIndicator",M0=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return T0(D0,n).isSelected?m.jsx(ve.span,{"aria-hidden":!0,...r,ref:t}):null});M0.displayName=D0;var Wc="SelectScrollUpButton",j0=w.forwardRef((e,t)=>{const n=cr(Wc,e.__scopeSelect),r=Pd(Wc,e.__scopeSelect),[i,o]=w.useState(!1),s=Se(t,r.onScrollButtonChange);return Qe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollTop>0;o(u)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?m.jsx(L0,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});j0.displayName=Wc;var Hc="SelectScrollDownButton",I0=w.forwardRef((e,t)=>{const n=cr(Hc,e.__scopeSelect),r=Pd(Hc,e.__scopeSelect),[i,o]=w.useState(!1),s=Se(t,r.onScrollButtonChange);return Qe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,c=Math.ceil(a.scrollTop)<u;o(c)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?m.jsx(L0,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});I0.displayName=Hc;var L0=w.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=cr("SelectScrollButton",n),s=w.useRef(null),l=Ea(n),a=w.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return w.useEffect(()=>()=>a(),[a]),Qe(()=>{var c;const u=l().find(f=>f.ref.current===document.activeElement);(c=u==null?void 0:u.ref.current)==null||c.scrollIntoView({block:"nearest"})},[l]),m.jsx(ve.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:se(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:se(i.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:se(i.onPointerLeave,()=>{a()})})}),hO="SelectSeparator",F0=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(ve.div,{"aria-hidden":!0,...r,ref:t})});F0.displayName=hO;var Kc="SelectArrow",vO=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Ca(n),o=ur(Kc,n),s=cr(Kc,n);return o.open&&s.position==="popper"?m.jsx(Iy,{...i,...r,ref:t}):null});vO.displayName=Kc;function z0(e){return e===""||e===void 0}var B0=w.forwardRef((e,t)=>{const{value:n,...r}=e,i=w.useRef(null),o=Se(t,i),s=o0(n);return w.useEffect(()=>{const l=i.current,a=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==n&&c){const f=new Event("change",{bubbles:!0});c.call(l,n),l.dispatchEvent(f)}},[s,n]),m.jsx(h0,{asChild:!0,children:m.jsx("select",{...r,ref:o,defaultValue:n})})});B0.displayName="BubbleSelect";function U0(e){const t=Cn(e),n=w.useRef(""),r=w.useRef(0),i=w.useCallback(s=>{const l=n.current+s;t(l),function a(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(l)},[t]),o=w.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function V0(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=gO(e,Math.max(o,0));i.length===1&&(s=s.filter(u=>u!==n));const a=s.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return a!==n?a:void 0}function gO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var mO=v0,$0=m0,yO=w0,wO=_0,_O=x0,W0=S0,xO=A0,H0=k0,K0=R0,SO=N0,bO=M0,G0=j0,Q0=I0,Y0=F0;const EO=mO,CO=yO,X0=w.forwardRef(({className:e,children:t,...n},r)=>m.jsxs($0,{ref:r,className:dt("flex h-8 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,m.jsx(wO,{asChild:!0,children:m.jsx(d0,{className:"h-4 w-4 opacity-50"})})]}));X0.displayName=$0.displayName;const Z0=w.forwardRef(({className:e,...t},n)=>m.jsx(G0,{ref:n,className:dt("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(RA,{className:"h-4 w-4"})}));Z0.displayName=G0.displayName;const J0=w.forwardRef(({className:e,...t},n)=>m.jsx(Q0,{ref:n,className:dt("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(d0,{className:"h-4 w-4"})}));J0.displayName=Q0.displayName;const q0=w.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>m.jsx(_O,{children:m.jsxs(W0,{ref:i,className:dt("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[m.jsx(Z0,{}),m.jsx(xO,{className:dt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),m.jsx(J0,{})]})}));q0.displayName=W0.displayName;const AO=w.forwardRef(({className:e,...t},n)=>m.jsx(H0,{ref:n,className:dt("py-1.5 pl-8 pr-2 text-xs font-semibold",e),...t}));AO.displayName=H0.displayName;const tl=w.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(K0,{ref:r,className:dt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-xs outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(bO,{children:m.jsx(f0,{className:"h-4 w-4"})})}),m.jsx(SO,{children:t})]}));tl.displayName=K0.displayName;const OO=w.forwardRef(({className:e,...t},n)=>m.jsx(Y0,{ref:n,className:dt("-mx-1 my-1 h-px bg-muted",e),...t}));OO.displayName=Y0.displayName;var nl=(e=>(e.SUCCESSFUL="successful",e.FAILED="failed",e.PENDING="pending",e))(nl||{}),ew=(e=>(e.FRAME="frame",e.DOM="dom",e))(ew||{}),kt=(e=>(e.BEFORE="before",e.AFTER="after",e.REPLAY="replay",e))(kt||{});function PO(e){let t=new Date(e),n=""+(t.getMonth()+1),r=""+t.getDate(),i=t.getFullYear();return n.length<2&&(n="0"+n),r.length<2&&(r="0"+r),[i,n,r].join("-")}const kO=Ve(function({context:t}){const{app:n}=w.useContext(gt);let r=()=>n.setActive(t),i=n.activeContext===t;return m.jsxs("div",{className:"flex flex-col px-4 py-2 mt-1 bg-context-step hover:bg-context-step-selected cursor-pointer "+(i?"bg-context-step-selected":""),style:{paddingRight:"0.375rem"},onClick:r,children:[m.jsxs("div",{className:"flex items-center",children:[m.jsx(Od,{status:t.test.status,className:"mr-1"})," ",t.test.name]}),m.jsx("div",{className:"mt-1",children:m.jsxs("div",{className:"flex items-center text-gray-400 italic ml-auto",children:[m.jsx(Re,{name:"history"})," ",PO(t.lastActivity)]})})]},t.id)}),TO=Ve(function(){const{app:t}=w.useContext(gt),[n,r]=w.useState(!0),[i,o]=w.useState(""),[s,l]=w.useState("");if(t.empty)return m.jsx(m.Fragment,{});let a=t.history;if(i!==""){let u=i.toLowerCase();a=a.filter(c=>c.test.name.toLowerCase().includes(u)||c.group.toLowerCase().includes(u))}return s!==""&&(a=a.filter(u=>u.test.status===s)),m.jsxs("div",{className:`flex flex-col border-t-4 border-solid rounded-t-xl ${n?"grow":""}`,style:{borderColor:"#22252b",maxHeight:"40vh"},children:[m.jsx("div",{className:"px-5 flex items-center text-lg",children:m.jsxs("div",{className:"flex-1 py-3 flex items-center cursor-pointer",onClick:u=>r(!n),children:[m.jsx(Re,{name:n?"expand_more":"expand_less",size:"1.5rem",className:"mr-2"})," History"]})}),n&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"px-5 mb-3 flex items-center text-lg",children:[m.jsx(Sa,{className:"h-8",placeholder:"Filter history",value:i,onChange:u=>o(u.target.value)}),m.jsxs(EO,{value:s,onValueChange:u=>l(u),children:[m.jsx(X0,{className:"w-[180px] ml-2",defaultValue:-1,children:m.jsx(CO,{placeholder:"Filter status"})}),m.jsxs(q0,{children:[m.jsx(tl,{value:nl.SUCCESSFUL,children:"Succeeded"}),m.jsx(tl,{value:nl.FAILED,children:"Failed"}),m.jsx(tl,{value:nl.PENDING,children:"Pending"})]})]}),(i!==""||s!=="")&&m.jsx(Re,{name:"cancel",size:"1.25rem",className:"ml-2 cursor-pointer",onClick:()=>{o(""),l("")}})]}),m.jsxs("div",{className:"px-5 pb-3 grow overflow-y-auto",children:[a.length===0&&m.jsxs("div",{className:"p-4 flex items-center border border-solid border-white border-opacity-10 rounded text-sm text-gray-400",style:{background:"#22252b"},children:[m.jsx(Re,{name:"error",className:"mr-2"})," No tests have yet been run on this instance"]}),a.map(u=>m.jsx(kO,{context:u},u.id))]})]})]})}),RO=Ve(function({content:t}){return m.jsx(m.Fragment,{children:t||m.jsxs(m.Fragment,{children:[m.jsx(HA,{}),m.jsx(TO,{})]})})}),NO=Ve(function(){var n,r,i;const{app:t}=w.useContext(gt);return(n=t.previewStore)!=null&&n.activeScreencastUrl?m.jsxs("div",{className:"relative inline-block",children:[m.jsx("img",{src:(r=t.previewStore)==null?void 0:r.activeScreencastUrl,style:{maxWidth:`${(i=t.previewStore)==null?void 0:i.visibleScreencast.page.viewport.width}px`},className:"w-full"}),t.settings.preview.darken&&m.jsx("div",{className:"absolute top-0 left-0 bottom-0 right-0 pointer-events-none",style:{backgroundColor:"rgba(0, 0, 0, 0.5)"}})]}):m.jsx(m.Fragment,{})});var tw={exports:{}},DO="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",MO=DO,jO=MO;function nw(){}function rw(){}rw.resetWarningCache=nw;var IO=function(){function e(r,i,o,s,l,a){if(a!==jO){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rw,resetWarningCache:nw};return n.PropTypes=n,n};tw.exports=IO();var LO=tw.exports;const le=qc(LO);var FO=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function ss(e,t){var n=zO(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function zO(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=FO.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var BO=[".DS_Store","Thumbs.db"];function UO(e){return Li(this,void 0,void 0,function(){return Fi(this,function(t){return $l(e)&&VO(e)?[2,KO(e.dataTransfer,e.type)]:$O(e)?[2,WO(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,HO(e)]:[2,[]]})})}function VO(e){return $l(e.dataTransfer)}function $O(e){return $l(e)&&$l(e.target)}function $l(e){return typeof e=="object"&&e!==null}function WO(e){return Gc(e.target.files).map(function(t){return ss(t)})}function HO(e){return Li(this,void 0,void 0,function(){var t;return Fi(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return ss(r)})]}})})}function KO(e,t){return Li(this,void 0,void 0,function(){var n,r;return Fi(this,function(i){switch(i.label){case 0:return e===null?[2,[]]:e.items?(n=Gc(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(GO))]):[3,2];case 1:return r=i.sent(),[2,Ih(iw(r))];case 2:return[2,Ih(Gc(e.files).map(function(o){return ss(o)}))]}})})}function Ih(e){return e.filter(function(t){return BO.indexOf(t.name)===-1})}function Gc(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function GO(e){if(typeof e.webkitGetAsEntry!="function")return Lh(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ow(t):Lh(e)}function iw(e){return e.reduce(function(t,n){return kC(t,Array.isArray(n)?iw(n):[n])},[])}function Lh(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=ss(t);return Promise.resolve(n)}function QO(e){return Li(this,void 0,void 0,function(){return Fi(this,function(t){return[2,e.isDirectory?ow(e):YO(e)]})})}function ow(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function o(){var s=this;t.readEntries(function(l){return Li(s,void 0,void 0,function(){var a,u,c;return Fi(this,function(f){switch(f.label){case 0:if(l.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return a=f.sent(),n(a),[3,4];case 3:return u=f.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(l.map(QO)),i.push(c),o(),f.label=6;case 6:return[2]}})})},function(l){r(l)})}o()})}function YO(e){return Li(this,void 0,void 0,function(){return Fi(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var o=ss(i,e.fullPath);n(o)},function(i){r(i)})})]})})}var XO=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?o===l.replace(/\/.*$/,""):i===l})}return!0};function Fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fh(Object(n),!0).forEach(function(r){sw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bh(e,t){return eP(e)||qO(e,t)||JO(e,t)||ZO()}function ZO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
83
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JO(e,t){if(e){if(typeof e=="string")return Uh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uh(e,t)}}function Uh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(a){o=!0,l=a}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function eP(e){if(Array.isArray(e))return e}var tP="file-invalid-type",nP="file-too-large",rP="file-too-small",iP="too-many-files",oP=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:tP,message:"File type must be ".concat(n)}},Vh=function(t){return{code:nP,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},$h=function(t){return{code:rP,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},sP={code:iP,message:"Too many files"};function lw(e,t){var n=e.type==="application/x-moz-file"||XO(e,t);return[n,n?null:oP(t)]}function aw(e,t,n){if(Zi(e.size))if(Zi(t)&&Zi(n)){if(e.size>n)return[!1,Vh(n)];if(e.size<t)return[!1,$h(t)]}else{if(Zi(t)&&e.size<t)return[!1,$h(t)];if(Zi(n)&&e.size>n)return[!1,Vh(n)]}return[!0,null]}function Zi(e){return e!=null}function lP(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,s=e.maxFiles;return!o&&t.length>1||o&&s>=1&&t.length>s?!1:t.every(function(l){var a=lw(l,n),u=Bh(a,1),c=u[0],f=aw(l,r,i),d=Bh(f,1),p=d[0];return c&&p})}function Wl(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function js(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Wh(e){e.preventDefault()}function aP(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function uP(e){return e.indexOf("Edge/")!==-1}function cP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return aP(e)||uP(e)}function Gt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return t.some(function(l){return!Wl(r)&&l&&l.apply(void 0,[r].concat(o)),Wl(r)})}}function Hh(){return"showOpenFilePicker"in window}function fP(e){return e=typeof e=="string"?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter(function(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||/\w+\/[-+.\w]+/g.test(t)}).reduce(function(t,n){return zh(zh({},t),{},sw({},n,[]))},{}):{}}]}var dP=["children"],pP=["open"],hP=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],vP=["refKey","onChange","onClick"];function gP(e){return wP(e)||yP(e)||uw(e)||mP()}function mP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
84
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wP(e){if(Array.isArray(e))return Qc(e)}function Su(e,t){return SP(e)||xP(e,t)||uw(e,t)||_P()}function _P(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uw(e,t){if(e){if(typeof e=="string")return Qc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qc(e,t)}}function Qc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(a){o=!0,l=a}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function SP(e){if(Array.isArray(e))return e}function Kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kh(Object(n),!0).forEach(function(r){Yc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hl(e,t){if(e==null)return{};var n=bP(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bP(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kd=w.forwardRef(function(e,t){var n=e.children,r=Hl(e,dP),i=fw(r),o=i.open,s=Hl(i,pP);return w.useImperativeHandle(t,function(){return{open:o}},[o]),Ke.createElement(w.Fragment,null,n(ge(ge({},s),{},{open:o})))});kd.displayName="Dropzone";var cw={disabled:!1,getFilesFromEvent:UO,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};kd.defaultProps=cw;kd.propTypes={children:le.func,accept:le.oneOfType([le.string,le.arrayOf(le.string)]),multiple:le.bool,preventDropOnDocument:le.bool,noClick:le.bool,noKeyboard:le.bool,noDrag:le.bool,noDragEventsBubbling:le.bool,minSize:le.number,maxSize:le.number,maxFiles:le.number,disabled:le.bool,getFilesFromEvent:le.func,onFileDialogCancel:le.func,onFileDialogOpen:le.func,useFsAccessApi:le.bool,onDragEnter:le.func,onDragLeave:le.func,onDragOver:le.func,onDrop:le.func,onDropAccepted:le.func,onDropRejected:le.func,validator:le.func};var Xc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function fw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},cw),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,a=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,p=t.onDropAccepted,y=t.onDropRejected,h=t.onFileDialogCancel,x=t.onFileDialogOpen,g=t.useFsAccessApi,v=t.preventDropOnDocument,_=t.noClick,S=t.noKeyboard,b=t.noDrag,E=t.noDragEventsBubbling,C=t.validator,A=w.useMemo(function(){return typeof x=="function"?x:Gh},[x]),T=w.useMemo(function(){return typeof h=="function"?h:Gh},[h]),P=w.useRef(null),M=w.useRef(null),R=w.useReducer(EP,Xc),z=Su(R,2),B=z[0],G=z[1],W=B.isFocused,Y=B.isFileDialogActive,O=B.draggedFiles,D=function(){Y&&setTimeout(function(){if(M.current){var Q=M.current.files;Q.length||(G({type:"closeDialog"}),T())}},300)};w.useEffect(function(){return g&&Hh()?function(){}:(window.addEventListener("focus",D,!1),function(){window.removeEventListener("focus",D,!1)})},[M,Y,T,g]);var L=w.useRef([]),H=function(Q){P.current&&P.current.contains(Q.target)||(Q.preventDefault(),L.current=[])};w.useEffect(function(){return v&&(document.addEventListener("dragover",Wh,!1),document.addEventListener("drop",H,!1)),function(){v&&(document.removeEventListener("dragover",Wh),document.removeEventListener("drop",H))}},[P,v]);var oe=w.useCallback(function(I){I.preventDefault(),I.persist(),Ht(I),L.current=[].concat(gP(L.current),[I.target]),js(I)&&Promise.resolve(i(I)).then(function(Q){Wl(I)&&!E||(G({draggedFiles:Q,isDragActive:!0,type:"setDraggedFiles"}),u&&u(I))})},[i,u,E]),rt=w.useCallback(function(I){I.preventDefault(),I.persist(),Ht(I);var Q=js(I);if(Q&&I.dataTransfer)try{I.dataTransfer.dropEffect="copy"}catch{}return Q&&f&&f(I),!1},[f,E]),Ae=w.useCallback(function(I){I.preventDefault(),I.persist(),Ht(I);var Q=L.current.filter(function(Ze){return P.current&&P.current.contains(Ze)}),Me=Q.indexOf(I.target);Me!==-1&&Q.splice(Me,1),L.current=Q,!(Q.length>0)&&(G({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),js(I)&&c&&c(I))},[P,c,E]),$e=w.useCallback(function(I,Q){var Me=[],Ze=[];I.forEach(function(Ot){var Bi=lw(Ot,n),Ur=Su(Bi,2),Pa=Ur[0],ka=Ur[1],Ta=aw(Ot,s,o),ls=Su(Ta,2),Ra=ls[0],Na=ls[1],Da=C?C(Ot):null;if(Pa&&Ra&&!Da)Me.push(Ot);else{var Ma=[ka,Na];Da&&(Ma=Ma.concat(Da)),Ze.push({file:Ot,errors:Ma.filter(function(xw){return xw})})}}),(!l&&Me.length>1||l&&a>=1&&Me.length>a)&&(Me.forEach(function(Ot){Ze.push({file:Ot,errors:[sP]})}),Me.splice(0)),G({acceptedFiles:Me,fileRejections:Ze,type:"setFiles"}),d&&d(Me,Ze,Q),Ze.length>0&&y&&y(Ze,Q),Me.length>0&&p&&p(Me,Q)},[G,l,n,s,o,a,d,p,y,C]),be=w.useCallback(function(I){I.preventDefault(),I.persist(),Ht(I),L.current=[],js(I)&&Promise.resolve(i(I)).then(function(Q){Wl(I)&&!E||$e(Q,I)}),G({type:"reset"})},[i,$e,E]),F=w.useCallback(function(){if(g&&Hh()){G({type:"openDialog"}),A();var I={multiple:l,types:fP(n)};window.showOpenFilePicker(I).then(function(Q){return i(Q)}).then(function(Q){return $e(Q,null)}).catch(function(Q){return T(Q)}).finally(function(){return G({type:"closeDialog"})});return}M.current&&(G({type:"openDialog"}),A(),M.current.value=null,M.current.click())},[G,A,T,g,$e,n,l]),ie=w.useCallback(function(I){!P.current||!P.current.isEqualNode(I.target)||(I.keyCode===32||I.keyCode===13)&&(I.preventDefault(),F())},[P,M,F]),Oe=w.useCallback(function(){G({type:"focus"})},[]),ne=w.useCallback(function(){G({type:"blur"})},[]),te=w.useCallback(function(){_||(cP()?setTimeout(F,0):F())},[M,_,F]),Z=function(Q){return r?null:Q},De=function(Q){return S?null:Z(Q)},We=function(Q){return b?null:Z(Q)},Ht=function(Q){E&&Q.stopPropagation()},fr=w.useMemo(function(){return function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=I.refKey,Me=Q===void 0?"ref":Q,Ze=I.role,Ot=I.onKeyDown,Bi=I.onFocus,Ur=I.onBlur,Pa=I.onClick,ka=I.onDragEnter,Ta=I.onDragOver,ls=I.onDragLeave,Ra=I.onDrop,Na=Hl(I,hP);return ge(ge(Yc({onKeyDown:De(Gt(Ot,ie)),onFocus:De(Gt(Bi,Oe)),onBlur:De(Gt(Ur,ne)),onClick:Z(Gt(Pa,te)),onDragEnter:We(Gt(ka,oe)),onDragOver:We(Gt(Ta,rt)),onDragLeave:We(Gt(ls,Ae)),onDrop:We(Gt(Ra,be)),role:typeof Ze=="string"&&Ze!==""?Ze:"button"},Me,P),!r&&!S?{tabIndex:0}:{}),Na)}},[P,ie,Oe,ne,te,oe,rt,Ae,be,S,b,r]),dr=w.useCallback(function(I){I.stopPropagation()},[]),Oa=w.useMemo(function(){return function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=I.refKey,Me=Q===void 0?"ref":Q,Ze=I.onChange,Ot=I.onClick,Bi=Hl(I,vP),Ur=Yc({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:Z(Gt(Ze,be)),onClick:Z(Gt(Ot,dr)),autoComplete:"off",tabIndex:-1},Me,M);return ge(ge({},Ur),Bi)}},[M,n,l,be,r]),pr=O.length,Dd=pr>0&&lP({files:O,accept:n,minSize:s,maxSize:o,multiple:l,maxFiles:a}),_w=pr>0&&!Dd;return ge(ge({},B),{},{isDragAccept:Dd,isDragReject:_w,isFocused:W&&!r,getRootProps:fr,getInputProps:Oa,rootRef:P,inputRef:M,open:Z(F)})}function EP(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},Xc),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return ge(ge({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ge({},Xc);default:return e}}function Gh(){}const Bo=V({active:0});var gr=4294967295;function CP(e,t,n){var r=n/4294967296,i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function dw(e,t,n){var r=Math.floor(n/4294967296),i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function pw(e,t){var n=e.getInt32(t),r=e.getUint32(t+4);return n*4294967296+r}function AP(e,t){var n=e.getUint32(t),r=e.getUint32(t+4);return n*4294967296+r}var Td={},bu,Eu,Cu,Aa=(typeof process>"u"||((bu=process==null?void 0:Td)===null||bu===void 0?void 0:bu.TEXT_ENCODING)!=="never")&&typeof TextEncoder<"u"&&typeof TextDecoder<"u";function Qh(e){for(var t=e.length,n=0,r=0;r<t;){var i=e.charCodeAt(r++);if(i&4294967168)if(!(i&4294965248))n+=2;else{if(i>=55296&&i<=56319&&r<t){var o=e.charCodeAt(r);(o&64512)===56320&&(++r,i=((i&1023)<<10)+(o&1023)+65536)}i&4294901760?n+=4:n+=3}else{n++;continue}}return n}function OP(e,t,n){for(var r=e.length,i=n,o=0;o<r;){var s=e.charCodeAt(o++);if(s&4294967168)if(!(s&4294965248))t[i++]=s>>6&31|192;else{if(s>=55296&&s<=56319&&o<r){var l=e.charCodeAt(o);(l&64512)===56320&&(++o,s=((s&1023)<<10)+(l&1023)+65536)}s&4294901760?(t[i++]=s>>18&7|240,t[i++]=s>>12&63|128,t[i++]=s>>6&63|128):(t[i++]=s>>12&15|224,t[i++]=s>>6&63|128)}else{t[i++]=s;continue}t[i++]=s&63|128}}var mo=Aa?new TextEncoder:void 0,PP=Aa?typeof process<"u"&&((Eu=process==null?void 0:Td)===null||Eu===void 0?void 0:Eu.TEXT_ENCODING)!=="force"?200:0:gr;function kP(e,t,n){t.set(mo.encode(e),n)}function TP(e,t,n){mo.encodeInto(e,t.subarray(n))}var RP=mo!=null&&mo.encodeInto?TP:kP,NP=4096;function hw(e,t,n){for(var r=t,i=r+n,o=[],s="";r<i;){var l=e[r++];if(!(l&128))o.push(l);else if((l&224)===192){var a=e[r++]&63;o.push((l&31)<<6|a)}else if((l&240)===224){var a=e[r++]&63,u=e[r++]&63;o.push((l&31)<<12|a<<6|u)}else if((l&248)===240){var a=e[r++]&63,u=e[r++]&63,c=e[r++]&63,f=(l&7)<<18|a<<12|u<<6|c;f>65535&&(f-=65536,o.push(f>>>10&1023|55296),f=56320|f&1023),o.push(f)}else o.push(l);o.length>=NP&&(s+=String.fromCharCode.apply(String,o),o.length=0)}return o.length>0&&(s+=String.fromCharCode.apply(String,o)),s}var DP=Aa?new TextDecoder:null,MP=Aa?typeof process<"u"&&((Cu=process==null?void 0:Td)===null||Cu===void 0?void 0:Cu.TEXT_DECODER)!=="force"?200:0:gr;function jP(e,t,n){var r=e.subarray(t,t+n);return DP.decode(r)}var Is=function(){function e(t,n){this.type=t,this.data=n}return e}(),IP=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qt=function(e){IP(t,e);function t(n){var r=e.call(this,n)||this,i=Object.create(t.prototype);return Object.setPrototypeOf(r,i),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:t.name}),r}return t}(Error),LP=-1,FP=4294967296-1,zP=17179869184-1;function BP(e){var t=e.sec,n=e.nsec;if(t>=0&&n>=0&&t<=zP)if(n===0&&t<=FP){var r=new Uint8Array(4),i=new DataView(r.buffer);return i.setUint32(0,t),r}else{var o=t/4294967296,s=t&4294967295,r=new Uint8Array(8),i=new DataView(r.buffer);return i.setUint32(0,n<<2|o&3),i.setUint32(4,s),r}else{var r=new Uint8Array(12),i=new DataView(r.buffer);return i.setUint32(0,n),dw(i,4,t),r}}function UP(e){var t=e.getTime(),n=Math.floor(t/1e3),r=(t-n*1e3)*1e6,i=Math.floor(r/1e9);return{sec:n+i,nsec:r-i*1e9}}function VP(e){if(e instanceof Date){var t=UP(e);return BP(t)}else return null}function $P(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:{var n=t.getUint32(0),r=0;return{sec:n,nsec:r}}case 8:{var i=t.getUint32(0),o=t.getUint32(4),n=(i&3)*4294967296+o,r=i>>>2;return{sec:n,nsec:r}}case 12:{var n=pw(t,4),r=t.getUint32(0);return{sec:n,nsec:r}}default:throw new Qt("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}function WP(e){var t=$P(e);return new Date(t.sec*1e3+t.nsec/1e6)}var HP={type:LP,encode:VP,decode:WP},Rd=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(HP)}return e.prototype.register=function(t){var n=t.type,r=t.encode,i=t.decode;if(n>=0)this.encoders[n]=r,this.decoders[n]=i;else{var o=1+n;this.builtInEncoders[o]=r,this.builtInDecoders[o]=i}},e.prototype.tryToEncode=function(t,n){for(var r=0;r<this.builtInEncoders.length;r++){var i=this.builtInEncoders[r];if(i!=null){var o=i(t,n);if(o!=null){var s=-1-r;return new Is(s,o)}}}for(var r=0;r<this.encoders.length;r++){var i=this.encoders[r];if(i!=null){var o=i(t,n);if(o!=null){var s=r;return new Is(s,o)}}}return t instanceof Is?t:null},e.prototype.decode=function(t,n,r){var i=n<0?this.builtInDecoders[-1-n]:this.decoders[n];return i?i(t,n,r):new Is(n,t)},e.defaultCodec=new e,e}();function Kl(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}function KP(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=Kl(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}var GP=100,QP=2048,YP=function(){function e(t,n,r,i,o,s,l,a){t===void 0&&(t=Rd.defaultCodec),n===void 0&&(n=void 0),r===void 0&&(r=GP),i===void 0&&(i=QP),o===void 0&&(o=!1),s===void 0&&(s=!1),l===void 0&&(l=!1),a===void 0&&(a=!1),this.extensionCodec=t,this.context=n,this.maxDepth=r,this.initialBufferSize=i,this.sortKeys=o,this.forceFloat32=s,this.ignoreUndefined=l,this.forceIntegerToFloat=a,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(t){return this.reinitializeState(),this.doEncode(t,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(t){return this.reinitializeState(),this.doEncode(t,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(t,n){if(n>this.maxDepth)throw new Error("Too deep objects in depth ".concat(n));t==null?this.encodeNil():typeof t=="boolean"?this.encodeBoolean(t):typeof t=="number"?this.encodeNumber(t):typeof t=="string"?this.encodeString(t):this.encodeObject(t,n)},e.prototype.ensureBufferSizeToWrite=function(t){var n=this.pos+t;this.view.byteLength<n&&this.resizeBuffer(n*2)},e.prototype.resizeBuffer=function(t){var n=new ArrayBuffer(t),r=new Uint8Array(n),i=new DataView(n);r.set(this.bytes),this.view=i,this.bytes=r},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(t){t===!1?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(t){Number.isSafeInteger(t)&&!this.forceIntegerToFloat?t>=0?t<128?this.writeU8(t):t<256?(this.writeU8(204),this.writeU8(t)):t<65536?(this.writeU8(205),this.writeU16(t)):t<4294967296?(this.writeU8(206),this.writeU32(t)):(this.writeU8(207),this.writeU64(t)):t>=-32?this.writeU8(224|t+32):t>=-128?(this.writeU8(208),this.writeI8(t)):t>=-32768?(this.writeU8(209),this.writeI16(t)):t>=-2147483648?(this.writeU8(210),this.writeI32(t)):(this.writeU8(211),this.writeI64(t)):this.forceFloat32?(this.writeU8(202),this.writeF32(t)):(this.writeU8(203),this.writeF64(t))},e.prototype.writeStringHeader=function(t){if(t<32)this.writeU8(160+t);else if(t<256)this.writeU8(217),this.writeU8(t);else if(t<65536)this.writeU8(218),this.writeU16(t);else if(t<4294967296)this.writeU8(219),this.writeU32(t);else throw new Error("Too long string: ".concat(t," bytes in UTF-8"))},e.prototype.encodeString=function(t){var n=5,r=t.length;if(r>PP){var i=Qh(t);this.ensureBufferSizeToWrite(n+i),this.writeStringHeader(i),RP(t,this.bytes,this.pos),this.pos+=i}else{var i=Qh(t);this.ensureBufferSizeToWrite(n+i),this.writeStringHeader(i),OP(t,this.bytes,this.pos),this.pos+=i}},e.prototype.encodeObject=function(t,n){var r=this.extensionCodec.tryToEncode(t,this.context);if(r!=null)this.encodeExtension(r);else if(Array.isArray(t))this.encodeArray(t,n);else if(ArrayBuffer.isView(t))this.encodeBinary(t);else if(typeof t=="object")this.encodeMap(t,n);else throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(t)))},e.prototype.encodeBinary=function(t){var n=t.byteLength;if(n<256)this.writeU8(196),this.writeU8(n);else if(n<65536)this.writeU8(197),this.writeU16(n);else if(n<4294967296)this.writeU8(198),this.writeU32(n);else throw new Error("Too large binary: ".concat(n));var r=Kl(t);this.writeU8a(r)},e.prototype.encodeArray=function(t,n){var r=t.length;if(r<16)this.writeU8(144+r);else if(r<65536)this.writeU8(220),this.writeU16(r);else if(r<4294967296)this.writeU8(221),this.writeU32(r);else throw new Error("Too large array: ".concat(r));for(var i=0,o=t;i<o.length;i++){var s=o[i];this.doEncode(s,n+1)}},e.prototype.countWithoutUndefined=function(t,n){for(var r=0,i=0,o=n;i<o.length;i++){var s=o[i];t[s]!==void 0&&r++}return r},e.prototype.encodeMap=function(t,n){var r=Object.keys(t);this.sortKeys&&r.sort();var i=this.ignoreUndefined?this.countWithoutUndefined(t,r):r.length;if(i<16)this.writeU8(128+i);else if(i<65536)this.writeU8(222),this.writeU16(i);else if(i<4294967296)this.writeU8(223),this.writeU32(i);else throw new Error("Too large map object: ".concat(i));for(var o=0,s=r;o<s.length;o++){var l=s[o],a=t[l];this.ignoreUndefined&&a===void 0||(this.encodeString(l),this.doEncode(a,n+1))}},e.prototype.encodeExtension=function(t){var n=t.data.length;if(n===1)this.writeU8(212);else if(n===2)this.writeU8(213);else if(n===4)this.writeU8(214);else if(n===8)this.writeU8(215);else if(n===16)this.writeU8(216);else if(n<256)this.writeU8(199),this.writeU8(n);else if(n<65536)this.writeU8(200),this.writeU16(n);else if(n<4294967296)this.writeU8(201),this.writeU32(n);else throw new Error("Too large extension object: ".concat(n));this.writeI8(t.type),this.writeU8a(t.data)},e.prototype.writeU8=function(t){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,t),this.pos++},e.prototype.writeU8a=function(t){var n=t.length;this.ensureBufferSizeToWrite(n),this.bytes.set(t,this.pos),this.pos+=n},e.prototype.writeI8=function(t){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,t),this.pos++},e.prototype.writeU16=function(t){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,t),this.pos+=2},e.prototype.writeI16=function(t){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,t),this.pos+=2},e.prototype.writeU32=function(t){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,t),this.pos+=4},e.prototype.writeI32=function(t){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,t),this.pos+=4},e.prototype.writeF32=function(t){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,t),this.pos+=4},e.prototype.writeF64=function(t){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,t),this.pos+=8},e.prototype.writeU64=function(t){this.ensureBufferSizeToWrite(8),CP(this.view,this.pos,t),this.pos+=8},e.prototype.writeI64=function(t){this.ensureBufferSizeToWrite(8),dw(this.view,this.pos,t),this.pos+=8},e}(),XP={};function vw(e,t){t===void 0&&(t=XP);var n=new YP(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat);return n.encodeSharedRef(e)}function Au(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var ZP=16,JP=16,qP=function(){function e(t,n){t===void 0&&(t=ZP),n===void 0&&(n=JP),this.maxKeyLength=t,this.maxLengthPerKey=n,this.hit=0,this.miss=0,this.caches=[];for(var r=0;r<this.maxKeyLength;r++)this.caches.push([])}return e.prototype.canBeCached=function(t){return t>0&&t<=this.maxKeyLength},e.prototype.find=function(t,n,r){var i=this.caches[r-1];e:for(var o=0,s=i;o<s.length;o++){for(var l=s[o],a=l.bytes,u=0;u<r;u++)if(a[u]!==t[n+u])continue e;return l.str}return null},e.prototype.store=function(t,n){var r=this.caches[t.length-1],i={bytes:t,str:n};r.length>=this.maxLengthPerKey?r[Math.random()*r.length|0]=i:r.push(i)},e.prototype.decode=function(t,n,r){var i=this.find(t,n,r);if(i!=null)return this.hit++,i;this.miss++;var o=hw(t,n,r),s=Uint8Array.prototype.slice.call(t,n,n+r);return this.store(s,o),o},e}(),ek=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(c){try{u(r.next(c))}catch(f){s(f)}}function a(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})},Ou=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(c){return a([u,c])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Yh=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(l,a){s=e[o](s),i(l,a,s.done,s.value)})}}function i(o,s,l,a){Promise.resolve(a).then(function(u){o({value:u,done:l})},s)}},mi=function(e){return this instanceof mi?(this.v=e,this):new mi(e)},tk=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(p){return new Promise(function(y,h){o.push([d,p,y,h])>1||l(d,p)})})}function l(d,p){try{a(r[d](p))}catch(y){f(o[0][3],y)}}function a(d){d.value instanceof mi?Promise.resolve(d.value.v).then(u,c):f(o[0][2],d)}function u(d){l("next",d)}function c(d){l("throw",d)}function f(d,p){d(p),o.shift(),o.length&&l(o[0][0],o[0][1])}},nk=function(e){var t=typeof e;return t==="string"||t==="number"},Ji=-1,Nd=new DataView(new ArrayBuffer(0)),rk=new Uint8Array(Nd.buffer),Zc=function(){try{Nd.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),Xh=new Zc("Insufficient data"),ik=new qP,ok=function(){function e(t,n,r,i,o,s,l,a){t===void 0&&(t=Rd.defaultCodec),n===void 0&&(n=void 0),r===void 0&&(r=gr),i===void 0&&(i=gr),o===void 0&&(o=gr),s===void 0&&(s=gr),l===void 0&&(l=gr),a===void 0&&(a=ik),this.extensionCodec=t,this.context=n,this.maxStrLength=r,this.maxBinLength=i,this.maxArrayLength=o,this.maxMapLength=s,this.maxExtLength=l,this.keyDecoder=a,this.totalPos=0,this.pos=0,this.view=Nd,this.bytes=rk,this.headByte=Ji,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=Ji,this.stack.length=0},e.prototype.setBuffer=function(t){this.bytes=Kl(t),this.view=KP(this.bytes),this.pos=0},e.prototype.appendBuffer=function(t){if(this.headByte===Ji&&!this.hasRemaining(1))this.setBuffer(t);else{var n=this.bytes.subarray(this.pos),r=Kl(t),i=new Uint8Array(n.length+r.length);i.set(n),i.set(r,n.length),this.setBuffer(i)}},e.prototype.hasRemaining=function(t){return this.view.byteLength-this.pos>=t},e.prototype.createExtraByteError=function(t){var n=this,r=n.view,i=n.pos;return new RangeError("Extra ".concat(r.byteLength-i," of ").concat(r.byteLength," byte(s) found at buffer[").concat(t,"]"))},e.prototype.decode=function(t){this.reinitializeState(),this.setBuffer(t);var n=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return n},e.prototype.decodeMulti=function(t){return Ou(this,function(n){switch(n.label){case 0:this.reinitializeState(),this.setBuffer(t),n.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return n.sent(),[3,1];case 3:return[2]}})},e.prototype.decodeAsync=function(t){var n,r,i,o;return ek(this,void 0,void 0,function(){var s,l,a,u,c,f,d,p;return Ou(this,function(y){switch(y.label){case 0:s=!1,y.label=1;case 1:y.trys.push([1,6,7,12]),n=Yh(t),y.label=2;case 2:return[4,n.next()];case 3:if(r=y.sent(),!!r.done)return[3,5];if(a=r.value,s)throw this.createExtraByteError(this.totalPos);this.appendBuffer(a);try{l=this.doDecodeSync(),s=!0}catch(h){if(!(h instanceof Zc))throw h}this.totalPos+=this.pos,y.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return u=y.sent(),i={error:u},[3,12];case 7:return y.trys.push([7,,10,11]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,9];case 8:y.sent(),y.label=9;case 9:return[3,11];case 10:if(i)throw i.error;return[7];case 11:return[7];case 12:if(s){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,l]}throw c=this,f=c.headByte,d=c.pos,p=c.totalPos,new RangeError("Insufficient data in parsing ".concat(Au(f)," at ").concat(p," (").concat(d," in the current buffer)"))}})})},e.prototype.decodeArrayStream=function(t){return this.decodeMultiAsync(t,!0)},e.prototype.decodeStream=function(t){return this.decodeMultiAsync(t,!1)},e.prototype.decodeMultiAsync=function(t,n){return tk(this,arguments,function(){var i,o,s,l,a,u,c,f,d;return Ou(this,function(p){switch(p.label){case 0:i=n,o=-1,p.label=1;case 1:p.trys.push([1,13,14,19]),s=Yh(t),p.label=2;case 2:return[4,mi(s.next())];case 3:if(l=p.sent(),!!l.done)return[3,12];if(a=l.value,n&&o===0)throw this.createExtraByteError(this.totalPos);this.appendBuffer(a),i&&(o=this.readArraySize(),i=!1,this.complete()),p.label=4;case 4:p.trys.push([4,9,,10]),p.label=5;case 5:return[4,mi(this.doDecodeSync())];case 6:return[4,p.sent()];case 7:return p.sent(),--o===0?[3,8]:[3,5];case 8:return[3,10];case 9:if(u=p.sent(),!(u instanceof Zc))throw u;return[3,10];case 10:this.totalPos+=this.pos,p.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return c=p.sent(),f={error:c},[3,19];case 14:return p.trys.push([14,,17,18]),l&&!l.done&&(d=s.return)?[4,mi(d.call(s))]:[3,16];case 15:p.sent(),p.label=16;case 16:return[3,18];case 17:if(f)throw f.error;return[7];case 18:return[7];case 19:return[2]}})})},e.prototype.doDecodeSync=function(){e:for(;;){var t=this.readHeadByte(),n=void 0;if(t>=224)n=t-256;else if(t<192)if(t<128)n=t;else if(t<144){var r=t-128;if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(t<160){var r=t-144;if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else{var i=t-160;n=this.decodeUtf8String(i,0)}else if(t===192)n=null;else if(t===194)n=!1;else if(t===195)n=!0;else if(t===202)n=this.readF32();else if(t===203)n=this.readF64();else if(t===204)n=this.readU8();else if(t===205)n=this.readU16();else if(t===206)n=this.readU32();else if(t===207)n=this.readU64();else if(t===208)n=this.readI8();else if(t===209)n=this.readI16();else if(t===210)n=this.readI32();else if(t===211)n=this.readI64();else if(t===217){var i=this.lookU8();n=this.decodeUtf8String(i,1)}else if(t===218){var i=this.lookU16();n=this.decodeUtf8String(i,2)}else if(t===219){var i=this.lookU32();n=this.decodeUtf8String(i,4)}else if(t===220){var r=this.readU16();if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else if(t===221){var r=this.readU32();if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else if(t===222){var r=this.readU16();if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(t===223){var r=this.readU32();if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(t===196){var r=this.lookU8();n=this.decodeBinary(r,1)}else if(t===197){var r=this.lookU16();n=this.decodeBinary(r,2)}else if(t===198){var r=this.lookU32();n=this.decodeBinary(r,4)}else if(t===212)n=this.decodeExtension(1,0);else if(t===213)n=this.decodeExtension(2,0);else if(t===214)n=this.decodeExtension(4,0);else if(t===215)n=this.decodeExtension(8,0);else if(t===216)n=this.decodeExtension(16,0);else if(t===199){var r=this.lookU8();n=this.decodeExtension(r,1)}else if(t===200){var r=this.lookU16();n=this.decodeExtension(r,2)}else if(t===201){var r=this.lookU32();n=this.decodeExtension(r,4)}else throw new Qt("Unrecognized type byte: ".concat(Au(t)));this.complete();for(var o=this.stack;o.length>0;){var s=o[o.length-1];if(s.type===0)if(s.array[s.position]=n,s.position++,s.position===s.size)o.pop(),n=s.array;else continue e;else if(s.type===1){if(!nk(n))throw new Qt("The type of key must be string or number but "+typeof n);if(n==="__proto__")throw new Qt("The key __proto__ is not allowed");s.key=n,s.type=2;continue e}else if(s.map[s.key]=n,s.readCount++,s.readCount===s.size)o.pop(),n=s.map;else{s.key=null,s.type=1;continue e}}return n}},e.prototype.readHeadByte=function(){return this.headByte===Ji&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=Ji},e.prototype.readArraySize=function(){var t=this.readHeadByte();switch(t){case 220:return this.readU16();case 221:return this.readU32();default:{if(t<160)return t-144;throw new Qt("Unrecognized array type byte: ".concat(Au(t)))}}},e.prototype.pushMapState=function(t){if(t>this.maxMapLength)throw new Qt("Max length exceeded: map length (".concat(t,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:t,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(t){if(t>this.maxArrayLength)throw new Qt("Max length exceeded: array length (".concat(t,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:t,array:new Array(t),position:0})},e.prototype.decodeUtf8String=function(t,n){var r;if(t>this.maxStrLength)throw new Qt("Max length exceeded: UTF-8 byte length (".concat(t,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+n+t)throw Xh;var i=this.pos+n,o;return this.stateIsMapKey()&&(!((r=this.keyDecoder)===null||r===void 0)&&r.canBeCached(t))?o=this.keyDecoder.decode(this.bytes,i,t):t>MP?o=jP(this.bytes,i,t):o=hw(this.bytes,i,t),this.pos+=n+t,o},e.prototype.stateIsMapKey=function(){if(this.stack.length>0){var t=this.stack[this.stack.length-1];return t.type===1}return!1},e.prototype.decodeBinary=function(t,n){if(t>this.maxBinLength)throw new Qt("Max length exceeded: bin length (".concat(t,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(t+n))throw Xh;var r=this.pos+n,i=this.bytes.subarray(r,r+t);return this.pos+=n+t,i},e.prototype.decodeExtension=function(t,n){if(t>this.maxExtLength)throw new Qt("Max length exceeded: ext length (".concat(t,") > maxExtLength (").concat(this.maxExtLength,")"));var r=this.view.getInt8(this.pos+n),i=this.decodeBinary(t,n+1);return this.extensionCodec.decode(i,r,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var t=this.view.getUint8(this.pos);return this.pos++,t},e.prototype.readI8=function(){var t=this.view.getInt8(this.pos);return this.pos++,t},e.prototype.readU16=function(){var t=this.view.getUint16(this.pos);return this.pos+=2,t},e.prototype.readI16=function(){var t=this.view.getInt16(this.pos);return this.pos+=2,t},e.prototype.readU32=function(){var t=this.view.getUint32(this.pos);return this.pos+=4,t},e.prototype.readI32=function(){var t=this.view.getInt32(this.pos);return this.pos+=4,t},e.prototype.readU64=function(){var t=AP(this.view,this.pos);return this.pos+=8,t},e.prototype.readI64=function(){var t=pw(this.view,this.pos);return this.pos+=8,t},e.prototype.readF32=function(){var t=this.view.getFloat32(this.pos);return this.pos+=4,t},e.prototype.readF64=function(){var t=this.view.getFloat64(this.pos);return this.pos+=8,t},e}(),sk={};function gw(e,t){t===void 0&&(t=sk);var n=new ok(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength);return n.decode(e)}class lk{constructor(t){U(this,"context");U(this,"_activeContext");U(this,"_activeCommand");U(this,"_highlightCommand");U(this,"highlightState",kt.AFTER);U(this,"highlightScreencast",null);U(this,"highlightInterval");U(this,"_darken",!1);U(this,"screencast",{lastFrameBeforeSector:null,inBetween:[]});U(this,"defaults",{highlightCommandState:kt.AFTER});U(this,"_mode",ew.FRAME);U(this,"_state",kt.AFTER);U(this,"_lastActiveScreencastUrl",null);this.context=t,ha(this,{_activeContext:V,_activeCommand:V,_highlightCommand:V,highlightState:V,highlightScreencast:V,highlightInterval:V,_darken:V,screencast:V,_mode:V,_state:V,clear:de,resetHighlightInterval:de,toggleHighlightState:de,findLastEventUntil:de,findEventsBetween:de,findLastScreencastForCommand:de,registerEvents:de,toggleCommand:de,highlightCommand:de,unhighlightCommand:de,activeScreencast:Ee,visibleScreencast:Ee,activeScreencastUrl:Ee,visibleCommand:Ee,visibleHighlightState:Ee,isVisibleHighlight:Ee,mode:Ee,state:Ee}),this.registerEvents()}get mode(){return this._mode}set mode(t){this._mode=t}get state(){return this._state}set state(t){this._state=t}get activeScreencast(){return this.state===kt.AFTER&&this.screencast.inBetween.length>0?this.screencast.inBetween[this.screencast.inBetween.length-1]:this.state===kt.BEFORE?this.screencast.lastFrameBeforeSector:this.screencast.lastFrameBeforeSector}get visibleScreencast(){return this._highlightCommand?this.highlightScreencast:this.activeScreencast}get activeScreencastUrl(){return this._lastActiveScreencastUrl&&URL.revokeObjectURL(this._lastActiveScreencastUrl),this.visibleScreencast?(this._lastActiveScreencastUrl=URL.createObjectURL(new Blob([this.visibleScreencast.frame],{type:"image/jpeg"})),this._lastActiveScreencastUrl):null}clear(){this._highlightCommand=void 0,this.highlightScreencast=void 0,this.highlightState=kt.AFTER,this._activeCommand=void 0,this._activeContext=void 0,this.screencast.lastFrameBeforeSector=null,this.screencast.inBetween=[],this._lastActiveScreencastUrl!==null&&(URL.revokeObjectURL(this._lastActiveScreencastUrl),this._lastActiveScreencastUrl=null)}set darken(t){this._darken=t}get darken(){return this._darken}resetHighlightInterval(){clearInterval(this.highlightInterval),this.highlightState=kt.AFTER}toggleHighlightState(){this.highlightState=this.highlightState===kt.BEFORE?kt.AFTER:kt.BEFORE}get visibleCommand(){return this._highlightCommand??this.activeCommand}get visibleHighlightState(){return this._highlightCommand?this.defaults.highlightCommandState:this.state}get isVisibleHighlight(){return this._highlightCommand!==void 0}set activeCommand(t){t&&(this.activeContext=t.context),this._activeCommand=t}get activeCommand(){return this._activeCommand}set activeContext(t){this._activeContext=t}get activeContext(){return this._activeContext}findLastEventUntil(t,n){let r=null;for(let i of n){if(i.timestamp>=t)break;r=i}return r}findEventsBetween(t,n,r){let i=[];for(let o of r)o.timestamp>t&&o.timestamp<n&&i.push(o);return i}findLastScreencastForCommand(t){let n=t.context.commands.findIndex(r=>t.id===r.id);if(n===t.context.commands.length-1)return{screencast:t.context.screencasts[t.context.screencasts.length-1],until:t.timestamp};{let r=t.context.commands[n+1].time.started;return{screencast:this.findLastEventUntil(r,t.context.screencasts),until:r}}}toggleCommand(t){var i,o;if(((i=this.activeCommand)==null?void 0:i.id)===(t==null?void 0:t.id)){this.activeCommand=void 0,this.screencast.lastFrameBeforeSector=void 0,this.screencast.inBetween=[],Mr.emit("command:active",void 0);return}((o=this._highlightCommand)==null?void 0:o.id)===(t==null?void 0:t.id)&&(this._highlightCommand=void 0,this.highlightScreencast=null),this.activeCommand=t;let n=t.context.commands.findIndex(s=>t.id===s.id),r=n===t.context.commands.length-1?t.time.finished+100:t.context.commands[n+1].time.started;this.screencast.inBetween=this.findEventsBetween(t.time.started,r,t.context.screencasts),this.screencast.lastFrameBeforeSector=this.findLastEventUntil(t.time.started,t.context.screencasts),Mr.emit("command:active",t)}highlightCommand(t){var r,i;if(((r=this.visibleCommand)==null?void 0:r.id)===(t==null?void 0:t.id)||((i=this.activeCommand)==null?void 0:i.id)===(t==null?void 0:t.id))return;this._highlightCommand=t,this.resetHighlightInterval();let n=this.findLastScreencastForCommand(t);this.highlightScreencast=n.screencast,console.debug("[Preview] highlightCommand",t,n)}unhighlightCommand(t){var n;((n=this._highlightCommand)==null?void 0:n.id)===(t==null?void 0:t.id)&&(console.debug("[Preview] unhighlightCommand",t),this._highlightCommand=void 0,this.highlightScreencast=null)}registerEvents(){}}class mw{constructor(t,n,r){U(this,"id");U(this,"commands",[]);U(this,"logs",[]);U(this,"screencasts",[]);U(this,"unspecific",[]);U(this,"renderedEvents",[]);U(this,"group","");U(this,"test",{name:"",status:void 0});U(this,"options");U(this,"capabilities");U(this,"createdAt");U(this,"lastActivity");U(this,"original");U(this,"app");U(this,"connection");U(this,"preview",null);U(this,"followIncoming",!0);this.original=t,this.app=n,this.connection=r;let{id:i,options:o,test:s,group:l,capabilities:a,timestamp:u}=t;this.id=i,this.options=o,this.test=s,this.group=l,this.capabilities=a,this.createdAt=u,this.lastActivity=u,this.preview=null,this.initializePreviewStore(),ha(this,{commands:V,logs:V,screencasts:V,unspecific:V,group:V,test:V,options:V,capabilities:V,lastActivity:V,connection:V,followIncoming:V,renderedEvents:V,initializePreviewStore:de,received:de,getEventTime:de,packets:de,blob:de,took:Ee,isForeground:Ee})}initializePreviewStore(){if(this.preview!==null){console.warn("[Context] Already initialized preview store");return}this.preview=new lk(this),this.renderedEvents.length!==0&&this.preview.toggleCommand(this.renderedEvents[this.renderedEvents.length-1])}received(t){var r;t.context=this,t.type==="command"?(this.commands.push(t),[go.Page,go.ElementHandle].includes(t.on.type)&&this.pushRenderedPacket(t)):t.type==="log"?(this.logs.push(t),this.pushRenderedPacket(t)):t.type==="test"?(t.specific==="status"&&(this.test.status=t.status),this.unspecific.push(t)):t.type==="screencasts"?this.screencasts.push(t):(console.log("unhandled event packet",t),this.unspecific.push(t));let n=((r=t==null?void 0:t.time)==null?void 0:r.finished)>t.timestamp?t.time.finished:t.timestamp;n>this.lastActivity&&(this.lastActivity=n)}pushRenderedPacket(t){var n;if(this.renderedEvents.length===0||this.renderedEvents[this.renderedEvents.length-1].timestamp<t.timestamp)this.renderedEvents.push(t);else{let r=this.renderedEvents.findIndex(i=>i.timestamp>t.timestamp);this.renderedEvents.splice(r,0,t)}if(this.isForeground&&this.followIncoming&&this.preview!==null){let r=this.renderedEvents.length;r!==1&&this.renderedEvents[r-2].id===((n=this.preview.activeCommand)==null?void 0:n.id)&&this.preview.toggleCommand(this.renderedEvents[r-1])}}getEventTime(t){var n,r;return((n=t==null?void 0:t.time)==null?void 0:n.started)??((r=t==null?void 0:t.time)==null?void 0:r.created)??(t==null?void 0:t.timestamp)??(t==null?void 0:t.time)}packets(){let t=[structuredClone(Qp(this.original)),...this.commands,...this.logs,...this.screencasts,...this.unspecific];for(let n=1;n<t.length;n++){let r=t[n];r.context=t[0].context,t[n]=structuredClone(Qp(r)),r.context=this}return t}blob(){return new Blob([vw(this.packets(),{extensionCodec:Uo})])}get took(){const t=this.lastActivity-this.createdAt,n=Math.floor(t/1e3/60),r=Math.ceil(t/1e3%60);return{ms:t,minutes:n,seconds:r}}get isForeground(){var t;return((t=this.app.activeContext)==null?void 0:t.id)===this.id}}var yw={exports:{}};(function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,i=0;t.Diff=function(o,s){return[o,s]},t.prototype.diff_main=function(o,s,l,a){typeof a>"u"&&(this.Diff_Timeout<=0?a=Number.MAX_VALUE:a=new Date().getTime()+this.Diff_Timeout*1e3);var u=a;if(o==null||s==null)throw new Error("Null input. (diff_main)");if(o==s)return o?[new t.Diff(i,o)]:[];typeof l>"u"&&(l=!0);var c=l,f=this.diff_commonPrefix(o,s),d=o.substring(0,f);o=o.substring(f),s=s.substring(f),f=this.diff_commonSuffix(o,s);var p=o.substring(o.length-f);o=o.substring(0,o.length-f),s=s.substring(0,s.length-f);var y=this.diff_compute_(o,s,c,u);return d&&y.unshift(new t.Diff(i,d)),p&&y.push(new t.Diff(i,p)),this.diff_cleanupMerge(y),y},t.prototype.diff_compute_=function(o,s,l,a){var u;if(!o)return[new t.Diff(r,s)];if(!s)return[new t.Diff(n,o)];var c=o.length>s.length?o:s,f=o.length>s.length?s:o,d=c.indexOf(f);if(d!=-1)return u=[new t.Diff(r,c.substring(0,d)),new t.Diff(i,f),new t.Diff(r,c.substring(d+f.length))],o.length>s.length&&(u[0][0]=u[2][0]=n),u;if(f.length==1)return[new t.Diff(n,o),new t.Diff(r,s)];var p=this.diff_halfMatch_(o,s);if(p){var y=p[0],h=p[1],x=p[2],g=p[3],v=p[4],_=this.diff_main(y,x,l,a),S=this.diff_main(h,g,l,a);return _.concat([new t.Diff(i,v)],S)}return l&&o.length>100&&s.length>100?this.diff_lineMode_(o,s,a):this.diff_bisect_(o,s,a)},t.prototype.diff_lineMode_=function(o,s,l){var a=this.diff_linesToChars_(o,s);o=a.chars1,s=a.chars2;var u=a.lineArray,c=this.diff_main(o,s,!1,l);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new t.Diff(i,""));for(var f=0,d=0,p=0,y="",h="";f<c.length;){switch(c[f][0]){case r:p++,h+=c[f][1];break;case n:d++,y+=c[f][1];break;case i:if(d>=1&&p>=1){c.splice(f-d-p,d+p),f=f-d-p;for(var x=this.diff_main(y,h,!1,l),g=x.length-1;g>=0;g--)c.splice(f,0,x[g]);f=f+x.length}p=0,d=0,y="",h="";break}f++}return c.pop(),c},t.prototype.diff_bisect_=function(o,s,l){for(var a=o.length,u=s.length,c=Math.ceil((a+u)/2),f=c,d=2*c,p=new Array(d),y=new Array(d),h=0;h<d;h++)p[h]=-1,y[h]=-1;p[f+1]=0,y[f+1]=0;for(var x=a-u,g=x%2!=0,v=0,_=0,S=0,b=0,E=0;E<c&&!(new Date().getTime()>l);E++){for(var C=-E+v;C<=E-_;C+=2){var A=f+C,T;C==-E||C!=E&&p[A-1]<p[A+1]?T=p[A+1]:T=p[A-1]+1;for(var P=T-C;T<a&&P<u&&o.charAt(T)==s.charAt(P);)T++,P++;if(p[A]=T,T>a)_+=2;else if(P>u)v+=2;else if(g){var M=f+x-C;if(M>=0&&M<d&&y[M]!=-1){var R=a-y[M];if(T>=R)return this.diff_bisectSplit_(o,s,T,P,l)}}}for(var z=-E+S;z<=E-b;z+=2){var M=f+z,R;z==-E||z!=E&&y[M-1]<y[M+1]?R=y[M+1]:R=y[M-1]+1;for(var B=R-z;R<a&&B<u&&o.charAt(a-R-1)==s.charAt(u-B-1);)R++,B++;if(y[M]=R,R>a)b+=2;else if(B>u)S+=2;else if(!g){var A=f+x-z;if(A>=0&&A<d&&p[A]!=-1){var T=p[A],P=f+T-A;if(R=a-R,T>=R)return this.diff_bisectSplit_(o,s,T,P,l)}}}}return[new t.Diff(n,o),new t.Diff(r,s)]},t.prototype.diff_bisectSplit_=function(o,s,l,a,u){var c=o.substring(0,l),f=s.substring(0,a),d=o.substring(l),p=s.substring(a),y=this.diff_main(c,f,!1,u),h=this.diff_main(d,p,!1,u);return y.concat(h)},t.prototype.diff_linesToChars_=function(o,s){var l=[],a={};l[0]="";function u(p){for(var y="",h=0,x=-1,g=l.length;x<p.length-1;){x=p.indexOf(`
86
- `,h),x==-1&&(x=p.length-1);var v=p.substring(h,x+1);(a.hasOwnProperty?a.hasOwnProperty(v):a[v]!==void 0)?y+=String.fromCharCode(a[v]):(g==c&&(v=p.substring(h),x=p.length),y+=String.fromCharCode(g),a[v]=g,l[g++]=v),h=x+1}return y}var c=4e4,f=u(o);c=65535;var d=u(s);return{chars1:f,chars2:d,lineArray:l}},t.prototype.diff_charsToLines_=function(o,s){for(var l=0;l<o.length;l++){for(var a=o[l][1],u=[],c=0;c<a.length;c++)u[c]=s[a.charCodeAt(c)];o[l][1]=u.join("")}},t.prototype.diff_commonPrefix=function(o,s){if(!o||!s||o.charAt(0)!=s.charAt(0))return 0;for(var l=0,a=Math.min(o.length,s.length),u=a,c=0;l<u;)o.substring(c,u)==s.substring(c,u)?(l=u,c=l):a=u,u=Math.floor((a-l)/2+l);return u},t.prototype.diff_commonSuffix=function(o,s){if(!o||!s||o.charAt(o.length-1)!=s.charAt(s.length-1))return 0;for(var l=0,a=Math.min(o.length,s.length),u=a,c=0;l<u;)o.substring(o.length-u,o.length-c)==s.substring(s.length-u,s.length-c)?(l=u,c=l):a=u,u=Math.floor((a-l)/2+l);return u},t.prototype.diff_commonOverlap_=function(o,s){var l=o.length,a=s.length;if(l==0||a==0)return 0;l>a?o=o.substring(l-a):l<a&&(s=s.substring(0,l));var u=Math.min(l,a);if(o==s)return u;for(var c=0,f=1;;){var d=o.substring(u-f),p=s.indexOf(d);if(p==-1)return c;f+=p,(p==0||o.substring(u-f)==s.substring(0,f))&&(c=f,f++)}},t.prototype.diff_halfMatch_=function(o,s){if(this.Diff_Timeout<=0)return null;var l=o.length>s.length?o:s,a=o.length>s.length?s:o;if(l.length<4||a.length*2<l.length)return null;var u=this;function c(_,S,b){for(var E=_.substring(b,b+Math.floor(_.length/4)),C=-1,A="",T,P,M,R;(C=S.indexOf(E,C+1))!=-1;){var z=u.diff_commonPrefix(_.substring(b),S.substring(C)),B=u.diff_commonSuffix(_.substring(0,b),S.substring(0,C));A.length<B+z&&(A=S.substring(C-B,C)+S.substring(C,C+z),T=_.substring(0,b-B),P=_.substring(b+z),M=S.substring(0,C-B),R=S.substring(C+z))}return A.length*2>=_.length?[T,P,M,R,A]:null}var f=c(l,a,Math.ceil(l.length/4)),d=c(l,a,Math.ceil(l.length/2)),p;if(!f&&!d)return null;d?f?p=f[4].length>d[4].length?f:d:p=d:p=f;var y,h,x,g;o.length>s.length?(y=p[0],h=p[1],x=p[2],g=p[3]):(x=p[0],g=p[1],y=p[2],h=p[3]);var v=p[4];return[y,h,x,g,v]},t.prototype.diff_cleanupSemantic=function(o){for(var s=!1,l=[],a=0,u=null,c=0,f=0,d=0,p=0,y=0;c<o.length;)o[c][0]==i?(l[a++]=c,f=p,d=y,p=0,y=0,u=o[c][1]):(o[c][0]==r?p+=o[c][1].length:y+=o[c][1].length,u&&u.length<=Math.max(f,d)&&u.length<=Math.max(p,y)&&(o.splice(l[a-1],0,new t.Diff(n,u)),o[l[a-1]+1][0]=r,a--,a--,c=a>0?l[a-1]:-1,f=0,d=0,p=0,y=0,u=null,s=!0)),c++;for(s&&this.diff_cleanupMerge(o),this.diff_cleanupSemanticLossless(o),c=1;c<o.length;){if(o[c-1][0]==n&&o[c][0]==r){var h=o[c-1][1],x=o[c][1],g=this.diff_commonOverlap_(h,x),v=this.diff_commonOverlap_(x,h);g>=v?(g>=h.length/2||g>=x.length/2)&&(o.splice(c,0,new t.Diff(i,x.substring(0,g))),o[c-1][1]=h.substring(0,h.length-g),o[c+1][1]=x.substring(g),c++):(v>=h.length/2||v>=x.length/2)&&(o.splice(c,0,new t.Diff(i,h.substring(0,v))),o[c-1][0]=r,o[c-1][1]=x.substring(0,x.length-v),o[c+1][0]=n,o[c+1][1]=h.substring(v),c++),c++}c++}},t.prototype.diff_cleanupSemanticLossless=function(o){function s(v,_){if(!v||!_)return 6;var S=v.charAt(v.length-1),b=_.charAt(0),E=S.match(t.nonAlphaNumericRegex_),C=b.match(t.nonAlphaNumericRegex_),A=E&&S.match(t.whitespaceRegex_),T=C&&b.match(t.whitespaceRegex_),P=A&&S.match(t.linebreakRegex_),M=T&&b.match(t.linebreakRegex_),R=P&&v.match(t.blanklineEndRegex_),z=M&&_.match(t.blanklineStartRegex_);return R||z?5:P||M?4:E&&!A&&T?3:A||T?2:E||C?1:0}for(var l=1;l<o.length-1;){if(o[l-1][0]==i&&o[l+1][0]==i){var a=o[l-1][1],u=o[l][1],c=o[l+1][1],f=this.diff_commonSuffix(a,u);if(f){var d=u.substring(u.length-f);a=a.substring(0,a.length-f),u=d+u.substring(0,u.length-f),c=d+c}for(var p=a,y=u,h=c,x=s(a,u)+s(u,c);u.charAt(0)===c.charAt(0);){a+=u.charAt(0),u=u.substring(1)+c.charAt(0),c=c.substring(1);var g=s(a,u)+s(u,c);g>=x&&(x=g,p=a,y=u,h=c)}o[l-1][1]!=p&&(p?o[l-1][1]=p:(o.splice(l-1,1),l--),o[l][1]=y,h?o[l+1][1]=h:(o.splice(l+1,1),l--))}l++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(o){for(var s=!1,l=[],a=0,u=null,c=0,f=!1,d=!1,p=!1,y=!1;c<o.length;)o[c][0]==i?(o[c][1].length<this.Diff_EditCost&&(p||y)?(l[a++]=c,f=p,d=y,u=o[c][1]):(a=0,u=null),p=y=!1):(o[c][0]==n?y=!0:p=!0,u&&(f&&d&&p&&y||u.length<this.Diff_EditCost/2&&f+d+p+y==3)&&(o.splice(l[a-1],0,new t.Diff(n,u)),o[l[a-1]+1][0]=r,a--,u=null,f&&d?(p=y=!0,a=0):(a--,c=a>0?l[a-1]:-1,p=y=!1),s=!0)),c++;s&&this.diff_cleanupMerge(o)},t.prototype.diff_cleanupMerge=function(o){o.push(new t.Diff(i,""));for(var s=0,l=0,a=0,u="",c="",f;s<o.length;)switch(o[s][0]){case r:a++,c+=o[s][1],s++;break;case n:l++,u+=o[s][1],s++;break;case i:l+a>1?(l!==0&&a!==0&&(f=this.diff_commonPrefix(c,u),f!==0&&(s-l-a>0&&o[s-l-a-1][0]==i?o[s-l-a-1][1]+=c.substring(0,f):(o.splice(0,0,new t.Diff(i,c.substring(0,f))),s++),c=c.substring(f),u=u.substring(f)),f=this.diff_commonSuffix(c,u),f!==0&&(o[s][1]=c.substring(c.length-f)+o[s][1],c=c.substring(0,c.length-f),u=u.substring(0,u.length-f))),s-=l+a,o.splice(s,l+a),u.length&&(o.splice(s,0,new t.Diff(n,u)),s++),c.length&&(o.splice(s,0,new t.Diff(r,c)),s++),s++):s!==0&&o[s-1][0]==i?(o[s-1][1]+=o[s][1],o.splice(s,1)):s++,a=0,l=0,u="",c="";break}o[o.length-1][1]===""&&o.pop();var d=!1;for(s=1;s<o.length-1;)o[s-1][0]==i&&o[s+1][0]==i&&(o[s][1].substring(o[s][1].length-o[s-1][1].length)==o[s-1][1]?(o[s][1]=o[s-1][1]+o[s][1].substring(0,o[s][1].length-o[s-1][1].length),o[s+1][1]=o[s-1][1]+o[s+1][1],o.splice(s-1,1),d=!0):o[s][1].substring(0,o[s+1][1].length)==o[s+1][1]&&(o[s-1][1]+=o[s+1][1],o[s][1]=o[s][1].substring(o[s+1][1].length)+o[s+1][1],o.splice(s+1,1),d=!0)),s++;d&&this.diff_cleanupMerge(o)},t.prototype.diff_xIndex=function(o,s){var l=0,a=0,u=0,c=0,f;for(f=0;f<o.length&&(o[f][0]!==r&&(l+=o[f][1].length),o[f][0]!==n&&(a+=o[f][1].length),!(l>s));f++)u=l,c=a;return o.length!=f&&o[f][0]===n?c:c+(s-u)},t.prototype.diff_prettyHtml=function(o){for(var s=[],l=/&/g,a=/</g,u=/>/g,c=/\n/g,f=0;f<o.length;f++){var d=o[f][0],p=o[f][1],y=p.replace(l,"&amp;").replace(a,"&lt;").replace(u,"&gt;").replace(c,"&para;<br>");switch(d){case r:s[f]='<ins style="background:#e6ffe6;">'+y+"</ins>";break;case n:s[f]='<del style="background:#ffe6e6;">'+y+"</del>";break;case i:s[f]="<span>"+y+"</span>";break}}return s.join("")},t.prototype.diff_text1=function(o){for(var s=[],l=0;l<o.length;l++)o[l][0]!==r&&(s[l]=o[l][1]);return s.join("")},t.prototype.diff_text2=function(o){for(var s=[],l=0;l<o.length;l++)o[l][0]!==n&&(s[l]=o[l][1]);return s.join("")},t.prototype.diff_levenshtein=function(o){for(var s=0,l=0,a=0,u=0;u<o.length;u++){var c=o[u][0],f=o[u][1];switch(c){case r:l+=f.length;break;case n:a+=f.length;break;case i:s+=Math.max(l,a),l=0,a=0;break}}return s+=Math.max(l,a),s},t.prototype.diff_toDelta=function(o){for(var s=[],l=0;l<o.length;l++)switch(o[l][0]){case r:s[l]="+"+encodeURI(o[l][1]);break;case n:s[l]="-"+o[l][1].length;break;case i:s[l]="="+o[l][1].length;break}return s.join(" ").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(o,s){for(var l=[],a=0,u=0,c=s.split(/\t/g),f=0;f<c.length;f++){var d=c[f].substring(1);switch(c[f].charAt(0)){case"+":try{l[a++]=new t.Diff(r,decodeURI(d))}catch{throw new Error("Illegal escape in diff_fromDelta: "+d)}break;case"-":case"=":var p=parseInt(d,10);if(isNaN(p)||p<0)throw new Error("Invalid number in diff_fromDelta: "+d);var y=o.substring(u,u+=p);c[f].charAt(0)=="="?l[a++]=new t.Diff(i,y):l[a++]=new t.Diff(n,y);break;default:if(c[f])throw new Error("Invalid diff operation in diff_fromDelta: "+c[f])}}if(u!=o.length)throw new Error("Delta length ("+u+") does not equal source text length ("+o.length+").");return l},t.prototype.match_main=function(o,s,l){if(o==null||s==null||l==null)throw new Error("Null input. (match_main)");return l=Math.max(0,Math.min(l,o.length)),o==s?0:o.length?o.substring(l,l+s.length)==s?l:this.match_bitap_(o,s,l):-1},t.prototype.match_bitap_=function(o,s,l){if(s.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var a=this.match_alphabet_(s),u=this;function c(T,P){var M=T/s.length,R=Math.abs(l-P);return u.Match_Distance?M+R/u.Match_Distance:R?1:M}var f=this.Match_Threshold,d=o.indexOf(s,l);d!=-1&&(f=Math.min(c(0,d),f),d=o.lastIndexOf(s,l+s.length),d!=-1&&(f=Math.min(c(0,d),f)));var p=1<<s.length-1;d=-1;for(var y,h,x=s.length+o.length,g,v=0;v<s.length;v++){for(y=0,h=x;y<h;)c(v,l+h)<=f?y=h:x=h,h=Math.floor((x-y)/2+y);x=h;var _=Math.max(1,l-h+1),S=Math.min(l+h,o.length)+s.length,b=Array(S+2);b[S+1]=(1<<v)-1;for(var E=S;E>=_;E--){var C=a[o.charAt(E-1)];if(v===0?b[E]=(b[E+1]<<1|1)&C:b[E]=(b[E+1]<<1|1)&C|((g[E+1]|g[E])<<1|1)|g[E+1],b[E]&p){var A=c(v,E-1);if(A<=f)if(f=A,d=E-1,d>l)_=Math.max(1,2*l-d);else break}}if(c(v+1,l)>f)break;g=b}return d},t.prototype.match_alphabet_=function(o){for(var s={},l=0;l<o.length;l++)s[o.charAt(l)]=0;for(var l=0;l<o.length;l++)s[o.charAt(l)]|=1<<o.length-l-1;return s},t.prototype.patch_addContext_=function(o,s){if(s.length!=0){if(o.start2===null)throw Error("patch not initialized");for(var l=s.substring(o.start2,o.start2+o.length1),a=0;s.indexOf(l)!=s.lastIndexOf(l)&&l.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)a+=this.Patch_Margin,l=s.substring(o.start2-a,o.start2+o.length1+a);a+=this.Patch_Margin;var u=s.substring(o.start2-a,o.start2);u&&o.diffs.unshift(new t.Diff(i,u));var c=s.substring(o.start2+o.length1,o.start2+o.length1+a);c&&o.diffs.push(new t.Diff(i,c)),o.start1-=u.length,o.start2-=u.length,o.length1+=u.length+c.length,o.length2+=u.length+c.length}},t.prototype.patch_make=function(o,s,l){var a,u;if(typeof o=="string"&&typeof s=="string"&&typeof l>"u")a=o,u=this.diff_main(a,s,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(o&&typeof o=="object"&&typeof s>"u"&&typeof l>"u")u=o,a=this.diff_text1(u);else if(typeof o=="string"&&s&&typeof s=="object"&&typeof l>"u")a=o,u=s;else if(typeof o=="string"&&typeof s=="string"&&l&&typeof l=="object")a=o,u=l;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],f=new t.patch_obj,d=0,p=0,y=0,h=a,x=a,g=0;g<u.length;g++){var v=u[g][0],_=u[g][1];switch(!d&&v!==i&&(f.start1=p,f.start2=y),v){case r:f.diffs[d++]=u[g],f.length2+=_.length,x=x.substring(0,y)+_+x.substring(y);break;case n:f.length1+=_.length,f.diffs[d++]=u[g],x=x.substring(0,y)+x.substring(y+_.length);break;case i:_.length<=2*this.Patch_Margin&&d&&u.length!=g+1?(f.diffs[d++]=u[g],f.length1+=_.length,f.length2+=_.length):_.length>=2*this.Patch_Margin&&d&&(this.patch_addContext_(f,h),c.push(f),f=new t.patch_obj,d=0,h=x,p=y);break}v!==r&&(p+=_.length),v!==n&&(y+=_.length)}return d&&(this.patch_addContext_(f,h),c.push(f)),c},t.prototype.patch_deepCopy=function(o){for(var s=[],l=0;l<o.length;l++){var a=o[l],u=new t.patch_obj;u.diffs=[];for(var c=0;c<a.diffs.length;c++)u.diffs[c]=new t.Diff(a.diffs[c][0],a.diffs[c][1]);u.start1=a.start1,u.start2=a.start2,u.length1=a.length1,u.length2=a.length2,s[l]=u}return s},t.prototype.patch_apply=function(o,s){if(o.length==0)return[s,[]];o=this.patch_deepCopy(o);var l=this.patch_addPadding(o);s=l+s+l,this.patch_splitMax(o);for(var a=0,u=[],c=0;c<o.length;c++){var f=o[c].start2+a,d=this.diff_text1(o[c].diffs),p,y=-1;if(d.length>this.Match_MaxBits?(p=this.match_main(s,d.substring(0,this.Match_MaxBits),f),p!=-1&&(y=this.match_main(s,d.substring(d.length-this.Match_MaxBits),f+d.length-this.Match_MaxBits),(y==-1||p>=y)&&(p=-1))):p=this.match_main(s,d,f),p==-1)u[c]=!1,a-=o[c].length2-o[c].length1;else{u[c]=!0,a=p-f;var h;if(y==-1?h=s.substring(p,p+d.length):h=s.substring(p,y+this.Match_MaxBits),d==h)s=s.substring(0,p)+this.diff_text2(o[c].diffs)+s.substring(p+d.length);else{var x=this.diff_main(d,h,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(x)/d.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(x);for(var g=0,v,_=0;_<o[c].diffs.length;_++){var S=o[c].diffs[_];S[0]!==i&&(v=this.diff_xIndex(x,g)),S[0]===r?s=s.substring(0,p+v)+S[1]+s.substring(p+v):S[0]===n&&(s=s.substring(0,p+v)+s.substring(p+this.diff_xIndex(x,g+S[1].length))),S[0]!==n&&(g+=S[1].length)}}}}}return s=s.substring(l.length,s.length-l.length),[s,u]},t.prototype.patch_addPadding=function(o){for(var s=this.Patch_Margin,l="",a=1;a<=s;a++)l+=String.fromCharCode(a);for(var a=0;a<o.length;a++)o[a].start1+=s,o[a].start2+=s;var u=o[0],c=u.diffs;if(c.length==0||c[0][0]!=i)c.unshift(new t.Diff(i,l)),u.start1-=s,u.start2-=s,u.length1+=s,u.length2+=s;else if(s>c[0][1].length){var f=s-c[0][1].length;c[0][1]=l.substring(c[0][1].length)+c[0][1],u.start1-=f,u.start2-=f,u.length1+=f,u.length2+=f}if(u=o[o.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=i)c.push(new t.Diff(i,l)),u.length1+=s,u.length2+=s;else if(s>c[c.length-1][1].length){var f=s-c[c.length-1][1].length;c[c.length-1][1]+=l.substring(0,f),u.length1+=f,u.length2+=f}return l},t.prototype.patch_splitMax=function(o){for(var s=this.Match_MaxBits,l=0;l<o.length;l++)if(!(o[l].length1<=s)){var a=o[l];o.splice(l--,1);for(var u=a.start1,c=a.start2,f="";a.diffs.length!==0;){var d=new t.patch_obj,p=!0;for(d.start1=u-f.length,d.start2=c-f.length,f!==""&&(d.length1=d.length2=f.length,d.diffs.push(new t.Diff(i,f)));a.diffs.length!==0&&d.length1<s-this.Patch_Margin;){var y=a.diffs[0][0],h=a.diffs[0][1];y===r?(d.length2+=h.length,c+=h.length,d.diffs.push(a.diffs.shift()),p=!1):y===n&&d.diffs.length==1&&d.diffs[0][0]==i&&h.length>2*s?(d.length1+=h.length,u+=h.length,p=!1,d.diffs.push(new t.Diff(y,h)),a.diffs.shift()):(h=h.substring(0,s-d.length1-this.Patch_Margin),d.length1+=h.length,u+=h.length,y===i?(d.length2+=h.length,c+=h.length):p=!1,d.diffs.push(new t.Diff(y,h)),h==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(h.length))}f=this.diff_text2(d.diffs),f=f.substring(f.length-this.Patch_Margin);var x=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);x!==""&&(d.length1+=x.length,d.length2+=x.length,d.diffs.length!==0&&d.diffs[d.diffs.length-1][0]===i?d.diffs[d.diffs.length-1][1]+=x:d.diffs.push(new t.Diff(i,x))),p||o.splice(++l,0,d)}}},t.prototype.patch_toText=function(o){for(var s=[],l=0;l<o.length;l++)s[l]=o[l];return s.join("")},t.prototype.patch_fromText=function(o){var s=[];if(!o)return s;for(var l=o.split(`
87
- `),a=0,u=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;a<l.length;){var c=l[a].match(u);if(!c)throw new Error("Invalid patch string: "+l[a]);var f=new t.patch_obj;for(s.push(f),f.start1=parseInt(c[1],10),c[2]===""?(f.start1--,f.length1=1):c[2]=="0"?f.length1=0:(f.start1--,f.length1=parseInt(c[2],10)),f.start2=parseInt(c[3],10),c[4]===""?(f.start2--,f.length2=1):c[4]=="0"?f.length2=0:(f.start2--,f.length2=parseInt(c[4],10)),a++;a<l.length;){var d=l[a].charAt(0);try{var p=decodeURI(l[a].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+p)}if(d=="-")f.diffs.push(new t.Diff(n,p));else if(d=="+")f.diffs.push(new t.Diff(r,p));else if(d==" ")f.diffs.push(new t.Diff(i,p));else{if(d=="@")break;if(d!=="")throw new Error('Invalid patch mode "'+d+'" in: '+p)}a++}}return s},t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},t.patch_obj.prototype.toString=function(){var o,s;this.length1===0?o=this.start1+",0":this.length1==1?o=this.start1+1:o=this.start1+1+","+this.length1,this.length2===0?s=this.start2+",0":this.length2==1?s=this.start2+1:s=this.start2+1+","+this.length2;for(var l=["@@ -"+o+" +"+s+` @@
88
- `],a,u=0;u<this.diffs.length;u++){switch(this.diffs[u][0]){case r:a="+";break;case n:a="-";break;case i:a=" ";break}l[u+1]=a+encodeURI(this.diffs[u][1])+`
89
- `}return l.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=r,e.exports.DIFF_EQUAL=i})(yw);var ak=yw.exports;new ak.diff_match_patch;class uk{constructor(){U(this,"value",0);td(this)}}new uk;function ww(e){var n,r,i,o,s,l;let t=[0,0,0,0];return t&&((n=e==null?void 0:e.html)!=null&&n.src&&(t[1]+=(r=e.html)==null?void 0:r.src.length),((o=(i=e==null?void 0:e.html)==null?void 0:i.untracked)==null?void 0:o.length)===2&&((s=e==null?void 0:e.html)==null||s.untracked[0].forEach(a=>{var u;t[2]+=(u=a==null?void 0:a.content)==null?void 0:u.length}),(l=e==null?void 0:e.html)==null||l.untracked[1].forEach(a=>{var u;t[3]+=(u=a==null?void 0:a.value)==null?void 0:u.length})),t[0]=t[1]+t[2]+t[3],t)}function ck(e){let t={total:0,before:[0,0,0,0],after:[0,0,0,0]};for(let n in e)t[n]=ww(e[n]),t.total+=t[n][0];return t}function fk(e){Array.isArray(e)?e.forEach(t=>Zh(t)):Zh(e)}function Zh(e){e.type==="command"?dk(e):e.type==="request"?hk(e):e.type==="response"?vk(e):e.type==="log"?gk(e):e.type==="context"?mk(e):console.warn(e)}function dk(e){var a,u;let t="";((a=e.snapshots)!=null&&a.after||(u=e.snapshots)!=null&&u.before)&&(t+="S");let n=ck(e.snapshots),r=(n.total/1e3).toFixed(2),i=(((n==null?void 0:n.before[1])+(n==null?void 0:n.after[1]))/1e3).toFixed(2),o=(((n==null?void 0:n.before[2])+(n==null?void 0:n.after[2]))/1e3).toFixed(2),s=(((n==null?void 0:n.before[3])+(n==null?void 0:n.after[3]))/1e3).toFixed(2),l=["color: #18c0d1","kb","color: #d2d3d3"];console.groupCollapsed("%s %s %c%s %c%s%c%s%c [%s%c%s%c, %s%c%s%c, %s%c%s%c] %s",e.context.id,e.type,"color: #bada55",t.length===0?"-":t,"color: #d2d3d3",r,...l,i,...l,o,...l,s,...l,e.func),console.group("Snapshots");for(let c in e.snapshots)pk(c,e.snapshots[c]);console.groupEnd(),console.log("source",e),console.groupEnd()}function pk(e,t){if(!t)return;let n=ww(t);console.group(e),console.log("Url:",t.url),console.log("Size total:",(n[0]/1e3).toFixed(2),"kb"),console.log("Size html:",(n[1]/1e3).toFixed(2),"kb"),console.log("Size css:",(n[2]/1e3).toFixed(2),"kb"),console.log("Size js:",(n[3]/1e3).toFixed(2),"kb"),console.log("Viewport:",t.viewport),console.log("Version:",t.version),console.log(t),console.groupEnd()}function hk(e){console.groupCollapsed(e.context.id,e.type,"#"+e.requestId,e.resourceType,e.method,e.url.length>64?e.url.substring(0,60)+"...":e.url),console.log("Headers"),console.table(e.headers),console.log("source",e),console.groupEnd()}function vk(e){console.groupCollapsed(e.context.id,e.type,"#"+e.requestId,(e.content.length/1e3).toFixed(2),"kb"),console.log("Headers"),console.table(e.headers),console.log("source",e),console.groupEnd()}function gk(e){console.groupCollapsed(e.context.id,e.type,e.messageType,e.args),console.log("source",e),console.groupEnd()}function mk(e){console.groupCollapsed(e.id,e.type),console.log("source",e),console.groupEnd()}const Uo=new Rd;Uo.register({type:0,encode:e=>e instanceof Function?new TextEncoder().encode(e.toString()):null,decode:e=>new TextDecoder().decode(e)});class Jh{constructor(t){U(this,"app");U(this,"websocket");U(this,"uri","");U(this,"connectionTimeout",2e3);U(this,"connectionState",WebSocket.CLOSED);U(this,"totalBytesReceived",0);U(this,"contexts",[]);U(this,"emitter",p0());U(this,"active",{context:void 0});td(this),this.app=t}setActiveContext(t){t.initializePreviewStore(),this.active.context=t}retry(){return new Promise((t,n)=>{if(this.connectionState!==WebSocket.CLOSED){t(this);return}if(this.uri===""){console.warn("[Connection] No uri set. Hint: call connect() before retrying.",this),n({code:"missing",reason:"Missing uri"});return}t(this.connect(this.uri))})}destroy(){this.websocket.close()}connect(t){return new Promise((n,r)=>{this.uri=t,this.websocket=new WebSocket(this.uri),this.websocket.binaryType="arraybuffer",this.connectionState=this.websocket.readyState;const i=()=>{clearTimeout(a),this.connectionState=this.websocket.readyState,n(this)},o=()=>{clearTimeout(a),l(),this.connectionState=this.websocket.readyState,r({code:"closed",reason:"Connection closed"})},s=u=>{this.received(u.data)};this.websocket.addEventListener("open",i),this.websocket.addEventListener("close",o),this.websocket.addEventListener("message",s);const l=()=>{this.websocket.removeEventListener("open",i),this.websocket.removeEventListener("close",o),this.websocket.removeEventListener("message",s)},a=setTimeout(()=>{this.websocket.readyState===WebSocket.CONNECTING&&(l(),this.websocket.close(),r({code:"timeout",reason:"Connection timeout reached (2s)"}))},this.connectionTimeout)})}send(t){if(this.websocket.readyState!==WebSocket.OPEN){console.error("Did not send packet because websocket was not open",t);return}let n=vw(t,{extensionCodec:Uo});this.websocket.send(n)}received(t){this.totalBytesReceived+=t.byteLength;let n=Date.now(),r=gw(t,{extensionCodec:Uo}),i=Date.now();if(Array.isArray(r))for(let s of r)this.receivedPacket(s);else this.receivedPacket(r);let o=Date.now();Uc(()=>{let s=(t.byteLength/1e3/1e3).toFixed(2);console.group("Packet received"),console.groupCollapsed("Events",Array.isArray(r)?r.length:1),fk(r),console.groupEnd(),console.log("Size",s,"mb"),console.log("Delta time parse",i-n,"ms"),console.log("Delta time proc.",o-i,"ms"),console.log("Delta time debug",Date.now()-o,"ms"),console.groupEnd()})}receivedPacket(t){if(t.type==="context"){let r=new mw(t,this.app,this);this.contexts.unshift(r),Mr.emit("context:created",r),this.emit("context:created",r);return}let n=this.getContext(t.context.id);if(!n){console.log("ignored packet because no context was initialized",t);return}n.received(t),Mr.emit("context:received",{context:n,packet:t}),this.emit("context:received",{context:n,packet:t})}getContext(t){return this.contexts.find(n=>n.id===t)}get hasNoContexts(){return this.contexts.length===0}get isForeground(){return this.app.active.connection===this}get isConnected(){return this.connectionState===WebSocket.OPEN}getTotalBytesReceived(){return this.totalBytesReceived}getMetrics(){let t={contexts:this.contexts.length,events:0};return this.contexts.forEach(n=>{t.events+=n.commands.length,t.events+=n.logs.length}),t}clear(){}on(t,n){return this.emitter.on(t,n)}off(t,n){return this.emitter.on(t,n)}emit(t,n){return this.emitter.emit(t,n)}}const yk=Ve(()=>{const{app:e}=w.useContext(gt),[t,n]=w.useState(!1);let r=()=>{n(!1),pa(()=>Bo.active=0)},i=l=>{n(!0);let a=new FileReader;a.readAsArrayBuffer(l[0]),a.addEventListener("load",u=>{var f,d;const c=gw((f=u.target)==null?void 0:f.result,{extensionCodec:Uo});if(((d=c[0])==null?void 0:d.type)==="context"){let p=e.dragAndDropped.contexts.find(h=>h.id===c[0].context.id);if(p){console.warn("Can't add same context multiple times."),r(),e.setView("local"),e.dragAndDropped.active=p;return}let y=new mw(c[0],e);for(let h=1;h<c.length;h++)y.received(c[h]);e.dragAndDropped.contexts.unshift(y),e.setView("local"),e.dragAndDropped.active=y}else throw new Error("Tried to import non context packet.");r()})};const{getRootProps:o,getInputProps:s}=fw({accept:".puth",maxFiles:1,onDropAccepted:i,noDragEventsBubbling:!0});return m.jsxs("div",{...o({className:`dropzone-wrapper ${Bo.active>0?"active":null}`}),children:[m.jsx("input",{...s()}),t?m.jsx("div",{children:"Importing snapshot..."}):m.jsxs("div",{className:"dropzone",children:[m.jsx("p",{children:"Drag and drop a snapshot"}),m.jsx("em",{children:"(only accepts .puth files)"})]})]})}),wk=()=>m.jsxs(m.Fragment,{children:[m.jsx(MA,{sidebar:m.jsx(RO,{}),preview:m.jsx(NO,{}),mainTop:m.jsx(FA,{})}),m.jsx(yk,{})]});class _k{constructor(){U(this,"name",{suffix:""});U(this,"connections",[]);U(this,"connectionSuggestions",[(document.location.protocol==="https:"?"wss://":"ws://")+window.location.host+"/websocket"]);U(this,"active",{connection:void 0});U(this,"modals",{connectionViewer:!0});U(this,"mode","default");U(this,"classes",{Connection:Jh});U(this,"dragAndDropped",{contexts:[],active:null});U(this,"settings",{preview:{darken:!1}});U(this,"view","instance");this.settings.preview.darken=this.readLocalStorageBoolean("previewStore.darken"),ha(this,{name:V,connections:V,connectionSuggestions:V,active:V,modals:V,mode:V,classes:V,dragAndDropped:V,settings:V,view:V,tryConnectingTo:de,setActive:de,setView:de,setDarkenPreview:de,history:Ee,activeContext:Ee,previewStore:Ee,empty:Ee,hasLocalContexts:Ee,isConnected:Ee})}async tryConnectingTo(t){return new Jh(this).connect(t).then(n=>(this.connections.length!==0&&(this.connections[0].destroy(),this.connections=[]),this.connections.push(n),this.active.connection=n,n))}get history(){var t;return this.view==="instance"?((t=this.active.connection)==null?void 0:t.contexts)??[]:this.dragAndDropped.contexts}get activeContext(){var t;return this.view==="instance"?(t=this.active.connection)==null?void 0:t.active.context:this.dragAndDropped.active}get previewStore(){var t;return(t=this.activeContext)==null?void 0:t.preview}get empty(){return!this.hasLocalContexts&&!this.isConnected}get hasLocalContexts(){return this.dragAndDropped.contexts.length!==0}get isConnected(){return this.connections.length!==0}setActive(t){if(this.view==="instance"){if(!this.active.connection||this.active.connection.active.context===t)return;this.active.connection.setActiveContext(t);return}this.dragAndDropped.active=t}setView(t){this.view=t}setDarkenPreview(t){this.settings.preview.darken=t,this.writeLocalStorageBoolean("previewStore.darken",t)}readLocalStorageBoolean(t){return localStorage.getItem(t)==="true"}writeLocalStorageBoolean(t,n){localStorage.setItem(t,n?"true":"false")}}const Jc=new _k;Mr.on("command:active",e=>{Jc.mode==="follow"&&(Jc.mode="default")});Pu.createRoot(document.getElementById("root")).render(m.jsx(Ke.StrictMode,{children:m.jsx(gt.Provider,{value:{app:Jc},children:m.jsx(wk,{})})}));let wn=document.getElementById("root");wn==null||wn.addEventListener("dragenter",()=>{pa(()=>Bo.active++)});wn==null||wn.addEventListener("dragleave",()=>{pa(()=>Bo.active--)});wn==null||wn.addEventListener("drop",()=>{pa(()=>Bo.active--)});