streamlit-webrtc 0.49.0__py3-none-any.whl → 0.49.2__py3-none-any.whl

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,258 +0,0 @@
1
- var MC=Object.defineProperty;var DC=(t,e,n)=>e in t?MC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ua=(t,e,n)=>DC(t,typeof e!="symbol"?e+"":e,n);function D1(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const a=Object.getOwnPropertyDescriptor(r,s);a&&Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();function zh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function NC(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var Sp={exports:{}},Va={},_p={exports:{}},Be={};/**
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 F0;function BC(){if(F0)return Be;F0=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,w={};function I(k,G,ue){this.props=k,this.context=G,this.refs=w,this.updater=ue||_}I.prototype.isReactComponent={},I.prototype.setState=function(k,G){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,G,"setState")},I.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function P(){}P.prototype=I.prototype;function D(k,G,ue){this.props=k,this.context=G,this.refs=w,this.updater=ue||_}var B=D.prototype=new P;B.constructor=D,C(B,I.prototype),B.isPureReactComponent=!0;var M=Array.isArray,E=Object.prototype.hasOwnProperty,U={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function V(k,G,ue){var ge,De={},xe=null,$e=null;if(G!=null)for(ge in G.ref!==void 0&&($e=G.ref),G.key!==void 0&&(xe=""+G.key),G)E.call(G,ge)&&!O.hasOwnProperty(ge)&&(De[ge]=G[ge]);var Ne=arguments.length-2;if(Ne===1)De.children=ue;else if(1<Ne){for(var ze=Array(Ne),Lt=0;Lt<Ne;Lt++)ze[Lt]=arguments[Lt+2];De.children=ze}if(k&&k.defaultProps)for(ge in Ne=k.defaultProps,Ne)De[ge]===void 0&&(De[ge]=Ne[ge]);return{$$typeof:t,type:k,key:xe,ref:$e,props:De,_owner:U.current}}function Y(k,G){return{$$typeof:t,type:k.type,key:G,ref:k.ref,props:k.props,_owner:k._owner}}function S(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function F(k){var G={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ue){return G[ue]})}var H=/\/+/g;function X(k,G){return typeof k=="object"&&k!==null&&k.key!=null?F(""+k.key):G.toString(36)}function le(k,G,ue,ge,De){var xe=typeof k;(xe==="undefined"||xe==="boolean")&&(k=null);var $e=!1;if(k===null)$e=!0;else switch(xe){case"string":case"number":$e=!0;break;case"object":switch(k.$$typeof){case t:case e:$e=!0}}if($e)return $e=k,De=De($e),k=ge===""?"."+X($e,0):ge,M(De)?(ue="",k!=null&&(ue=k.replace(H,"$&/")+"/"),le(De,G,ue,"",function(Lt){return Lt})):De!=null&&(S(De)&&(De=Y(De,ue+(!De.key||$e&&$e.key===De.key?"":(""+De.key).replace(H,"$&/")+"/")+k)),G.push(De)),1;if($e=0,ge=ge===""?".":ge+":",M(k))for(var Ne=0;Ne<k.length;Ne++){xe=k[Ne];var ze=ge+X(xe,Ne);$e+=le(xe,G,ue,ze,De)}else if(ze=v(k),typeof ze=="function")for(k=ze.call(k),Ne=0;!(xe=k.next()).done;)xe=xe.value,ze=ge+X(xe,Ne++),$e+=le(xe,G,ue,ze,De);else if(xe==="object")throw G=String(k),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.");return $e}function ce(k,G,ue){if(k==null)return k;var ge=[],De=0;return le(k,ge,"","",function(xe){return G.call(ue,xe,De++)}),ge}function de(k){if(k._status===-1){var G=k._result;G=G(),G.then(function(ue){(k._status===0||k._status===-1)&&(k._status=1,k._result=ue)},function(ue){(k._status===0||k._status===-1)&&(k._status=2,k._result=ue)}),k._status===-1&&(k._status=0,k._result=G)}if(k._status===1)return k._result.default;throw k._result}var fe={current:null},J={transition:null},te={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:J,ReactCurrentOwner:U};function ne(){throw Error("act(...) is not supported in production builds of React.")}return Be.Children={map:ce,forEach:function(k,G,ue){ce(k,function(){G.apply(this,arguments)},ue)},count:function(k){var G=0;return ce(k,function(){G++}),G},toArray:function(k){return ce(k,function(G){return G})||[]},only:function(k){if(!S(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Be.Component=I,Be.Fragment=n,Be.Profiler=s,Be.PureComponent=D,Be.StrictMode=r,Be.Suspense=f,Be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,Be.act=ne,Be.cloneElement=function(k,G,ue){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var ge=C({},k.props),De=k.key,xe=k.ref,$e=k._owner;if(G!=null){if(G.ref!==void 0&&(xe=G.ref,$e=U.current),G.key!==void 0&&(De=""+G.key),k.type&&k.type.defaultProps)var Ne=k.type.defaultProps;for(ze in G)E.call(G,ze)&&!O.hasOwnProperty(ze)&&(ge[ze]=G[ze]===void 0&&Ne!==void 0?Ne[ze]:G[ze])}var ze=arguments.length-2;if(ze===1)ge.children=ue;else if(1<ze){Ne=Array(ze);for(var Lt=0;Lt<ze;Lt++)Ne[Lt]=arguments[Lt+2];ge.children=Ne}return{$$typeof:t,type:k.type,key:De,ref:xe,props:ge,_owner:$e}},Be.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:a,_context:k},k.Consumer=k},Be.createElement=V,Be.createFactory=function(k){var G=V.bind(null,k);return G.type=k,G},Be.createRef=function(){return{current:null}},Be.forwardRef=function(k){return{$$typeof:u,render:k}},Be.isValidElement=S,Be.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:de}},Be.memo=function(k,G){return{$$typeof:h,type:k,compare:G===void 0?null:G}},Be.startTransition=function(k){var G=J.transition;J.transition={};try{k()}finally{J.transition=G}},Be.unstable_act=ne,Be.useCallback=function(k,G){return fe.current.useCallback(k,G)},Be.useContext=function(k){return fe.current.useContext(k)},Be.useDebugValue=function(){},Be.useDeferredValue=function(k){return fe.current.useDeferredValue(k)},Be.useEffect=function(k,G){return fe.current.useEffect(k,G)},Be.useId=function(){return fe.current.useId()},Be.useImperativeHandle=function(k,G,ue){return fe.current.useImperativeHandle(k,G,ue)},Be.useInsertionEffect=function(k,G){return fe.current.useInsertionEffect(k,G)},Be.useLayoutEffect=function(k,G){return fe.current.useLayoutEffect(k,G)},Be.useMemo=function(k,G){return fe.current.useMemo(k,G)},Be.useReducer=function(k,G,ue){return fe.current.useReducer(k,G,ue)},Be.useRef=function(k){return fe.current.useRef(k)},Be.useState=function(k){return fe.current.useState(k)},Be.useSyncExternalStore=function(k,G,ue){return fe.current.useSyncExternalStore(k,G,ue)},Be.useTransition=function(){return fe.current.useTransition()},Be.version="18.3.1",Be}var $0;function Js(){return $0||($0=1,_p.exports=BC()),_p.exports}/**
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 j0;function LC(){if(j0)return Va;j0=1;var t=Js(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(u,f,h){var y,g={},v=null,_=null;h!==void 0&&(v=""+h),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(_=f.ref);for(y in f)r.call(f,y)&&!a.hasOwnProperty(y)&&(g[y]=f[y]);if(u&&u.defaultProps)for(y in f=u.defaultProps,f)g[y]===void 0&&(g[y]=f[y]);return{$$typeof:e,type:u,key:v,ref:_,props:g,_owner:s.current}}return Va.Fragment=n,Va.jsx=c,Va.jsxs=c,Va}var z0;function Uh(){return z0||(z0=1,Sp.exports=LC()),Sp.exports}var j=Uh(),A=Js();const Nt=zh(A),wu=D1({__proto__:null,default:Nt},[A]);var Wc={},wp={exports:{}},xn={},Cp={exports:{}},xp={};/**
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
- */var U0;function FC(){return U0||(U0=1,function(t){function e(J,te){var ne=J.length;J.push(te);e:for(;0<ne;){var k=ne-1>>>1,G=J[k];if(0<s(G,te))J[k]=te,J[ne]=G,ne=k;else break e}}function n(J){return J.length===0?null:J[0]}function r(J){if(J.length===0)return null;var te=J[0],ne=J.pop();if(ne!==te){J[0]=ne;e:for(var k=0,G=J.length,ue=G>>>1;k<ue;){var ge=2*(k+1)-1,De=J[ge],xe=ge+1,$e=J[xe];if(0>s(De,ne))xe<G&&0>s($e,De)?(J[k]=$e,J[xe]=ne,k=xe):(J[k]=De,J[ge]=ne,k=ge);else if(xe<G&&0>s($e,ne))J[k]=$e,J[xe]=ne,k=xe;else break e}}return te}function s(J,te){var ne=J.sortIndex-te.sortIndex;return ne!==0?ne:J.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var c=Date,u=c.now();t.unstable_now=function(){return c.now()-u}}var f=[],h=[],y=1,g=null,v=3,_=!1,C=!1,w=!1,I=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(J){for(var te=n(h);te!==null;){if(te.callback===null)r(h);else if(te.startTime<=J)r(h),te.sortIndex=te.expirationTime,e(f,te);else break;te=n(h)}}function M(J){if(w=!1,B(J),!C)if(n(f)!==null)C=!0,de(E);else{var te=n(h);te!==null&&fe(M,te.startTime-J)}}function E(J,te){C=!1,w&&(w=!1,P(V),V=-1),_=!0;var ne=v;try{for(B(te),g=n(f);g!==null&&(!(g.expirationTime>te)||J&&!F());){var k=g.callback;if(typeof k=="function"){g.callback=null,v=g.priorityLevel;var G=k(g.expirationTime<=te);te=t.unstable_now(),typeof G=="function"?g.callback=G:g===n(f)&&r(f),B(te)}else r(f);g=n(f)}if(g!==null)var ue=!0;else{var ge=n(h);ge!==null&&fe(M,ge.startTime-te),ue=!1}return ue}finally{g=null,v=ne,_=!1}}var U=!1,O=null,V=-1,Y=5,S=-1;function F(){return!(t.unstable_now()-S<Y)}function H(){if(O!==null){var J=t.unstable_now();S=J;var te=!0;try{te=O(!0,J)}finally{te?X():(U=!1,O=null)}}else U=!1}var X;if(typeof D=="function")X=function(){D(H)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ce=le.port2;le.port1.onmessage=H,X=function(){ce.postMessage(null)}}else X=function(){I(H,0)};function de(J){O=J,U||(U=!0,X())}function fe(J,te){V=I(function(){J(t.unstable_now())},te)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(J){J.callback=null},t.unstable_continueExecution=function(){C||_||(C=!0,de(E))},t.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<J?Math.floor(1e3/J):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return n(f)},t.unstable_next=function(J){switch(v){case 1:case 2:case 3:var te=3;break;default:te=v}var ne=v;v=te;try{return J()}finally{v=ne}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(J,te){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var ne=v;v=J;try{return te()}finally{v=ne}},t.unstable_scheduleCallback=function(J,te,ne){var k=t.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?k+ne:k):ne=k,J){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=ne+G,J={id:y++,callback:te,priorityLevel:J,startTime:ne,expirationTime:G,sortIndex:-1},ne>k?(J.sortIndex=ne,e(h,J),n(f)===null&&J===n(h)&&(w?(P(V),V=-1):w=!0,fe(M,ne-k))):(J.sortIndex=G,e(f,J),C||_||(C=!0,de(E))),J},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(J){var te=v;return function(){var ne=v;v=te;try{return J.apply(this,arguments)}finally{v=ne}}}}(xp)),xp}var V0;function $C(){return V0||(V0=1,Cp.exports=FC()),Cp.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 W0;function jC(){if(W0)return xn;W0=1;var t=Js(),e=$C();function n(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,s={};function a(i,o){c(i,o),c(i+"Capture",o)}function c(i,o){for(s[i]=o,i=0;i<o.length;i++)r.add(o[i])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,y={},g={};function v(i){return f.call(g,i)?!0:f.call(y,i)?!1:h.test(i)?g[i]=!0:(y[i]=!0,!1)}function _(i,o,l,d){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function C(i,o,l,d){if(o===null||typeof o>"u"||_(i,o,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function w(i,o,l,d,p,m,b){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=i,this.type=o,this.sanitizeURL=m,this.removeEmptyString=b}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){I[i]=new w(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var o=i[0];I[o]=new w(o,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){I[i]=new w(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){I[i]=new w(i,2,!1,i,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(i){I[i]=new w(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){I[i]=new w(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){I[i]=new w(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){I[i]=new w(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){I[i]=new w(i,5,!1,i.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function D(i){return i[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(i){var o=i.replace(P,D);I[o]=new w(o,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var o=i.replace(P,D);I[o]=new w(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var o=i.replace(P,D);I[o]=new w(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){I[i]=new w(i,1,!1,i.toLowerCase(),null,!1,!1)}),I.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){I[i]=new w(i,1,!1,i.toLowerCase(),null,!0,!0)});function B(i,o,l,d){var p=I.hasOwnProperty(o)?I[o]:null;(p!==null?p.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(C(o,l,p,d)&&(l=null),d||p===null?v(o)&&(l===null?i.removeAttribute(o):i.setAttribute(o,""+l)):p.mustUseProperty?i[p.propertyName]=l===null?p.type===3?!1:"":l:(o=p.attributeName,d=p.attributeNamespace,l===null?i.removeAttribute(o):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,d?i.setAttributeNS(d,o,l):i.setAttribute(o,l))))}var M=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),U=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),F=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),fe=Symbol.for("react.offscreen"),J=Symbol.iterator;function te(i){return i===null||typeof i!="object"?null:(i=J&&i[J]||i["@@iterator"],typeof i=="function"?i:null)}var ne=Object.assign,k;function G(i){if(k===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);k=o&&o[1]||""}return`
34
- `+k+i}var ue=!1;function ge(i,o){if(!i||ue)return"";ue=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(z){var d=z}Reflect.construct(i,[],o)}else{try{o.call()}catch(z){d=z}i.call(o.prototype)}else{try{throw Error()}catch(z){d=z}i()}}catch(z){if(z&&d&&typeof z.stack=="string"){for(var p=z.stack.split(`
35
- `),m=d.stack.split(`
36
- `),b=p.length-1,x=m.length-1;1<=b&&0<=x&&p[b]!==m[x];)x--;for(;1<=b&&0<=x;b--,x--)if(p[b]!==m[x]){if(b!==1||x!==1)do if(b--,x--,0>x||p[b]!==m[x]){var T=`
37
- `+p[b].replace(" at new "," at ");return i.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",i.displayName)),T}while(1<=b&&0<=x);break}}}finally{ue=!1,Error.prepareStackTrace=l}return(i=i?i.displayName||i.name:"")?G(i):""}function De(i){switch(i.tag){case 5:return G(i.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return i=ge(i.type,!1),i;case 11:return i=ge(i.type.render,!1),i;case 1:return i=ge(i.type,!0),i;default:return""}}function xe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case O:return"Fragment";case U:return"Portal";case Y:return"Profiler";case V:return"StrictMode";case X:return"Suspense";case le:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case F:return(i.displayName||"Context")+".Consumer";case S:return(i._context.displayName||"Context")+".Provider";case H:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case ce:return o=i.displayName||null,o!==null?o:xe(i.type)||"Memo";case de:o=i._payload,i=i._init;try{return xe(i(o))}catch{}}return null}function $e(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(o);case 8:return o===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ne(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ze(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Lt(i){var o=ze(i)?"checked":"value",l=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),d=""+i[o];if(!i.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,m=l.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return p.call(this)},set:function(b){d=""+b,m.call(this,b)}}),Object.defineProperty(i,o,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(b){d=""+b},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function dr(i){i._valueTracker||(i._valueTracker=Lt(i))}function fr(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var l=o.getValue(),d="";return i&&(d=ze(i)?i.checked?"true":"false":i.value),i=d,i!==l?(o.setValue(i),!0):!1}function Nn(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function qe(i,o){var l=o.checked;return ne({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??i._wrapperState.initialChecked})}function Ut(i,o){var l=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;l=Ne(o.value!=null?o.value:l),i._wrapperState={initialChecked:d,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function pr(i,o){o=o.checked,o!=null&&B(i,"checked",o,!1)}function Qt(i,o){pr(i,o);var l=Ne(o.value),d=o.type;if(l!=null)d==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+l):i.value!==""+l&&(i.value=""+l);else if(d==="submit"||d==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?Bn(i,o.type,l):o.hasOwnProperty("defaultValue")&&Bn(i,o.type,Ne(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function st(i,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,l||o===i.value||(i.value=o),i.defaultValue=o}l=i.name,l!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,l!==""&&(i.name=l)}function Bn(i,o,l){(o!=="number"||Nn(i.ownerDocument)!==i)&&(l==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+l&&(i.defaultValue=""+l))}var Xt=Array.isArray;function Kn(i,o,l,d){if(i=i.options,o){o={};for(var p=0;p<l.length;p++)o["$"+l[p]]=!0;for(l=0;l<i.length;l++)p=o.hasOwnProperty("$"+i[l].value),i[l].selected!==p&&(i[l].selected=p),p&&d&&(i[l].defaultSelected=!0)}else{for(l=""+Ne(l),o=null,p=0;p<i.length;p++){if(i[p].value===l){i[p].selected=!0,d&&(i[p].defaultSelected=!0);return}o!==null||i[p].disabled||(o=i[p])}o!==null&&(o.selected=!0)}}function me(i,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return ne({},o,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function ei(i,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(n(92));if(Xt(l)){if(1<l.length)throw Error(n(93));l=l[0]}o=l}o==null&&(o=""),l=o}i._wrapperState={initialValue:Ne(l)}}function ln(i,o){var l=Ne(o.value),d=Ne(o.defaultValue);l!=null&&(l=""+l,l!==i.value&&(i.value=l),o.defaultValue==null&&i.defaultValue!==l&&(i.defaultValue=l)),d!=null&&(i.defaultValue=""+d)}function yo(i){var o=i.textContent;o===i._wrapperState.initialValue&&o!==""&&o!==null&&(i.value=o)}function ti(i){switch(i){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 ni(i,o){return i==null||i==="http://www.w3.org/1999/xhtml"?ti(o):i==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var vt,kt=function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,d,p){MSApp.execUnsafeLocalFunction(function(){return i(o,l,d,p)})}:i}(function(i,o){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=o;else{for(vt=vt||document.createElement("div"),vt.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=vt.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function Ct(i,o){if(o){var l=i.firstChild;if(l&&l===i.lastChild&&l.nodeType===3){l.nodeValue=o;return}}i.textContent=o}var He={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},qt=["Webkit","ms","Moz","O"];Object.keys(He).forEach(function(i){qt.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),He[o]=He[i]})});function cn(i,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||He.hasOwnProperty(i)&&He[i]?(""+o).trim():o+"px"}function ey(i,o){i=i.style;for(var l in o)if(o.hasOwnProperty(l)){var d=l.indexOf("--")===0,p=cn(l,o[l],d);l==="float"&&(l="cssFloat"),d?i.setProperty(l,p):i[l]=p}}var F2=ne({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 Pd(i,o){if(o){if(F2[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Od(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){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 Md=null;function Dd(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Nd=null,Go=null,Yo=null;function ty(i){if(i=ka(i)){if(typeof Nd!="function")throw Error(n(280));var o=i.stateNode;o&&(o=oc(o),Nd(i.stateNode,i.type,o))}}function ny(i){Go?Yo?Yo.push(i):Yo=[i]:Go=i}function ry(){if(Go){var i=Go,o=Yo;if(Yo=Go=null,ty(i),o)for(i=0;i<o.length;i++)ty(o[i])}}function iy(i,o){return i(o)}function oy(){}var Bd=!1;function sy(i,o,l){if(Bd)return i(o,l);Bd=!0;try{return iy(i,o,l)}finally{Bd=!1,(Go!==null||Yo!==null)&&(oy(),ry())}}function sa(i,o){var l=i.stateNode;if(l===null)return null;var d=oc(l);if(d===null)return null;l=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(i=i.type,d=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!d;break e;default:i=!1}if(i)return null;if(l&&typeof l!="function")throw Error(n(231,o,typeof l));return l}var Ld=!1;if(u)try{var aa={};Object.defineProperty(aa,"passive",{get:function(){Ld=!0}}),window.addEventListener("test",aa,aa),window.removeEventListener("test",aa,aa)}catch{Ld=!1}function $2(i,o,l,d,p,m,b,x,T){var z=Array.prototype.slice.call(arguments,3);try{o.apply(l,z)}catch(Q){this.onError(Q)}}var la=!1,Ll=null,Fl=!1,Fd=null,j2={onError:function(i){la=!0,Ll=i}};function z2(i,o,l,d,p,m,b,x,T){la=!1,Ll=null,$2.apply(j2,arguments)}function U2(i,o,l,d,p,m,b,x,T){if(z2.apply(this,arguments),la){if(la){var z=Ll;la=!1,Ll=null}else throw Error(n(198));Fl||(Fl=!0,Fd=z)}}function go(i){var o=i,l=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(l=o.return),i=o.return;while(i)}return o.tag===3?l:null}function ay(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function ly(i){if(go(i)!==i)throw Error(n(188))}function V2(i){var o=i.alternate;if(!o){if(o=go(i),o===null)throw Error(n(188));return o!==i?null:i}for(var l=i,d=o;;){var p=l.return;if(p===null)break;var m=p.alternate;if(m===null){if(d=p.return,d!==null){l=d;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===l)return ly(p),i;if(m===d)return ly(p),o;m=m.sibling}throw Error(n(188))}if(l.return!==d.return)l=p,d=m;else{for(var b=!1,x=p.child;x;){if(x===l){b=!0,l=p,d=m;break}if(x===d){b=!0,d=p,l=m;break}x=x.sibling}if(!b){for(x=m.child;x;){if(x===l){b=!0,l=m,d=p;break}if(x===d){b=!0,d=m,l=p;break}x=x.sibling}if(!b)throw Error(n(189))}}if(l.alternate!==d)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?i:o}function cy(i){return i=V2(i),i!==null?uy(i):null}function uy(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var o=uy(i);if(o!==null)return o;i=i.sibling}return null}var dy=e.unstable_scheduleCallback,fy=e.unstable_cancelCallback,W2=e.unstable_shouldYield,H2=e.unstable_requestPaint,Rt=e.unstable_now,G2=e.unstable_getCurrentPriorityLevel,$d=e.unstable_ImmediatePriority,py=e.unstable_UserBlockingPriority,$l=e.unstable_NormalPriority,Y2=e.unstable_LowPriority,hy=e.unstable_IdlePriority,jl=null,Rr=null;function K2(i){if(Rr&&typeof Rr.onCommitFiberRoot=="function")try{Rr.onCommitFiberRoot(jl,i,void 0,(i.current.flags&128)===128)}catch{}}var hr=Math.clz32?Math.clz32:q2,Q2=Math.log,X2=Math.LN2;function q2(i){return i>>>=0,i===0?32:31-(Q2(i)/X2|0)|0}var zl=64,Ul=4194304;function ca(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Vl(i,o){var l=i.pendingLanes;if(l===0)return 0;var d=0,p=i.suspendedLanes,m=i.pingedLanes,b=l&268435455;if(b!==0){var x=b&~p;x!==0?d=ca(x):(m&=b,m!==0&&(d=ca(m)))}else b=l&~p,b!==0?d=ca(b):m!==0&&(d=ca(m));if(d===0)return 0;if(o!==0&&o!==d&&(o&p)===0&&(p=d&-d,m=o&-o,p>=m||p===16&&(m&4194240)!==0))return o;if((d&4)!==0&&(d|=l&16),o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=d;0<o;)l=31-hr(o),p=1<<l,d|=i[l],o&=~p;return d}function J2(i,o){switch(i){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Z2(i,o){for(var l=i.suspendedLanes,d=i.pingedLanes,p=i.expirationTimes,m=i.pendingLanes;0<m;){var b=31-hr(m),x=1<<b,T=p[b];T===-1?((x&l)===0||(x&d)!==0)&&(p[b]=J2(x,o)):T<=o&&(i.expiredLanes|=x),m&=~x}}function jd(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function my(){var i=zl;return zl<<=1,(zl&4194240)===0&&(zl=64),i}function zd(i){for(var o=[],l=0;31>l;l++)o.push(i);return o}function ua(i,o,l){i.pendingLanes|=o,o!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,o=31-hr(o),i[o]=l}function ew(i,o){var l=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o,o=i.entanglements;var d=i.eventTimes;for(i=i.expirationTimes;0<l;){var p=31-hr(l),m=1<<p;o[p]=0,d[p]=-1,i[p]=-1,l&=~m}}function Ud(i,o){var l=i.entangledLanes|=o;for(i=i.entanglements;l;){var d=31-hr(l),p=1<<d;p&o|i[d]&o&&(i[d]|=o),l&=~p}}var nt=0;function yy(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var gy,Vd,vy,by,Sy,Wd=!1,Wl=[],Ai=null,Pi=null,Oi=null,da=new Map,fa=new Map,Mi=[],tw="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 _y(i,o){switch(i){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Pi=null;break;case"mouseover":case"mouseout":Oi=null;break;case"pointerover":case"pointerout":da.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":fa.delete(o.pointerId)}}function pa(i,o,l,d,p,m){return i===null||i.nativeEvent!==m?(i={blockedOn:o,domEventName:l,eventSystemFlags:d,nativeEvent:m,targetContainers:[p]},o!==null&&(o=ka(o),o!==null&&Vd(o)),i):(i.eventSystemFlags|=d,o=i.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),i)}function nw(i,o,l,d,p){switch(o){case"focusin":return Ai=pa(Ai,i,o,l,d,p),!0;case"dragenter":return Pi=pa(Pi,i,o,l,d,p),!0;case"mouseover":return Oi=pa(Oi,i,o,l,d,p),!0;case"pointerover":var m=p.pointerId;return da.set(m,pa(da.get(m)||null,i,o,l,d,p)),!0;case"gotpointercapture":return m=p.pointerId,fa.set(m,pa(fa.get(m)||null,i,o,l,d,p)),!0}return!1}function wy(i){var o=vo(i.target);if(o!==null){var l=go(o);if(l!==null){if(o=l.tag,o===13){if(o=ay(l),o!==null){i.blockedOn=o,Sy(i.priority,function(){vy(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){i.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Hl(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var l=Gd(i.domEventName,i.eventSystemFlags,o[0],i.nativeEvent);if(l===null){l=i.nativeEvent;var d=new l.constructor(l.type,l);Md=d,l.target.dispatchEvent(d),Md=null}else return o=ka(l),o!==null&&Vd(o),i.blockedOn=l,!1;o.shift()}return!0}function Cy(i,o,l){Hl(i)&&l.delete(o)}function rw(){Wd=!1,Ai!==null&&Hl(Ai)&&(Ai=null),Pi!==null&&Hl(Pi)&&(Pi=null),Oi!==null&&Hl(Oi)&&(Oi=null),da.forEach(Cy),fa.forEach(Cy)}function ha(i,o){i.blockedOn===o&&(i.blockedOn=null,Wd||(Wd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rw)))}function ma(i){function o(p){return ha(p,i)}if(0<Wl.length){ha(Wl[0],i);for(var l=1;l<Wl.length;l++){var d=Wl[l];d.blockedOn===i&&(d.blockedOn=null)}}for(Ai!==null&&ha(Ai,i),Pi!==null&&ha(Pi,i),Oi!==null&&ha(Oi,i),da.forEach(o),fa.forEach(o),l=0;l<Mi.length;l++)d=Mi[l],d.blockedOn===i&&(d.blockedOn=null);for(;0<Mi.length&&(l=Mi[0],l.blockedOn===null);)wy(l),l.blockedOn===null&&Mi.shift()}var Ko=M.ReactCurrentBatchConfig,Gl=!0;function iw(i,o,l,d){var p=nt,m=Ko.transition;Ko.transition=null;try{nt=1,Hd(i,o,l,d)}finally{nt=p,Ko.transition=m}}function ow(i,o,l,d){var p=nt,m=Ko.transition;Ko.transition=null;try{nt=4,Hd(i,o,l,d)}finally{nt=p,Ko.transition=m}}function Hd(i,o,l,d){if(Gl){var p=Gd(i,o,l,d);if(p===null)uf(i,o,d,Yl,l),_y(i,d);else if(nw(p,i,o,l,d))d.stopPropagation();else if(_y(i,d),o&4&&-1<tw.indexOf(i)){for(;p!==null;){var m=ka(p);if(m!==null&&gy(m),m=Gd(i,o,l,d),m===null&&uf(i,o,d,Yl,l),m===p)break;p=m}p!==null&&d.stopPropagation()}else uf(i,o,d,null,l)}}var Yl=null;function Gd(i,o,l,d){if(Yl=null,i=Dd(d),i=vo(i),i!==null)if(o=go(i),o===null)i=null;else if(l=o.tag,l===13){if(i=ay(o),i!==null)return i;i=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null);return Yl=i,null}function xy(i){switch(i){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(G2()){case $d:return 1;case py:return 4;case $l:case Y2:return 16;case hy:return 536870912;default:return 16}default:return 16}}var Di=null,Yd=null,Kl=null;function Iy(){if(Kl)return Kl;var i,o=Yd,l=o.length,d,p="value"in Di?Di.value:Di.textContent,m=p.length;for(i=0;i<l&&o[i]===p[i];i++);var b=l-i;for(d=1;d<=b&&o[l-d]===p[m-d];d++);return Kl=p.slice(i,1<d?1-d:void 0)}function Ql(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function Xl(){return!0}function Ty(){return!1}function Ln(i){function o(l,d,p,m,b){this._reactName=l,this._targetInst=p,this.type=d,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var x in i)i.hasOwnProperty(x)&&(l=i[x],this[x]=l?l(m):m[x]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Xl:Ty,this.isPropagationStopped=Ty,this}return ne(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Xl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Xl)},persist:function(){},isPersistent:Xl}),o}var Qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kd=Ln(Qo),ya=ne({},Qo,{view:0,detail:0}),sw=Ln(ya),Qd,Xd,ga,ql=ne({},ya,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jd,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==ga&&(ga&&i.type==="mousemove"?(Qd=i.screenX-ga.screenX,Xd=i.screenY-ga.screenY):Xd=Qd=0,ga=i),Qd)},movementY:function(i){return"movementY"in i?i.movementY:Xd}}),ky=Ln(ql),aw=ne({},ql,{dataTransfer:0}),lw=Ln(aw),cw=ne({},ya,{relatedTarget:0}),qd=Ln(cw),uw=ne({},Qo,{animationName:0,elapsedTime:0,pseudoElement:0}),dw=Ln(uw),fw=ne({},Qo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),pw=Ln(fw),hw=ne({},Qo,{data:0}),Ry=Ln(hw),mw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yw={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"},gw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vw(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=gw[i])?!!o[i]:!1}function Jd(){return vw}var bw=ne({},ya,{key:function(i){if(i.key){var o=mw[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Ql(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?yw[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jd,charCode:function(i){return i.type==="keypress"?Ql(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Ql(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Sw=Ln(bw),_w=ne({},ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ey=Ln(_w),ww=ne({},ya,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jd}),Cw=Ln(ww),xw=ne({},Qo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Iw=Ln(xw),Tw=ne({},ql,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),kw=Ln(Tw),Rw=[9,13,27,32],Zd=u&&"CompositionEvent"in window,va=null;u&&"documentMode"in document&&(va=document.documentMode);var Ew=u&&"TextEvent"in window&&!va,Ay=u&&(!Zd||va&&8<va&&11>=va),Py=" ",Oy=!1;function My(i,o){switch(i){case"keyup":return Rw.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dy(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Xo=!1;function Aw(i,o){switch(i){case"compositionend":return Dy(o);case"keypress":return o.which!==32?null:(Oy=!0,Py);case"textInput":return i=o.data,i===Py&&Oy?null:i;default:return null}}function Pw(i,o){if(Xo)return i==="compositionend"||!Zd&&My(i,o)?(i=Iy(),Kl=Yd=Di=null,Xo=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Ay&&o.locale!=="ko"?null:o.data;default:return null}}var Ow={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 Ny(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!Ow[i.type]:o==="textarea"}function By(i,o,l,d){ny(d),o=nc(o,"onChange"),0<o.length&&(l=new Kd("onChange","change",null,l,d),i.push({event:l,listeners:o}))}var ba=null,Sa=null;function Mw(i){eg(i,0)}function Jl(i){var o=ts(i);if(fr(o))return i}function Dw(i,o){if(i==="change")return o}var Ly=!1;if(u){var ef;if(u){var tf="oninput"in document;if(!tf){var Fy=document.createElement("div");Fy.setAttribute("oninput","return;"),tf=typeof Fy.oninput=="function"}ef=tf}else ef=!1;Ly=ef&&(!document.documentMode||9<document.documentMode)}function $y(){ba&&(ba.detachEvent("onpropertychange",jy),Sa=ba=null)}function jy(i){if(i.propertyName==="value"&&Jl(Sa)){var o=[];By(o,Sa,i,Dd(i)),sy(Mw,o)}}function Nw(i,o,l){i==="focusin"?($y(),ba=o,Sa=l,ba.attachEvent("onpropertychange",jy)):i==="focusout"&&$y()}function Bw(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Jl(Sa)}function Lw(i,o){if(i==="click")return Jl(o)}function Fw(i,o){if(i==="input"||i==="change")return Jl(o)}function $w(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var mr=typeof Object.is=="function"?Object.is:$w;function _a(i,o){if(mr(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var l=Object.keys(i),d=Object.keys(o);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var p=l[d];if(!f.call(o,p)||!mr(i[p],o[p]))return!1}return!0}function zy(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Uy(i,o){var l=zy(i);i=0;for(var d;l;){if(l.nodeType===3){if(d=i+l.textContent.length,i<=o&&d>=o)return{node:l,offset:o-i};i=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=zy(l)}}function Vy(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?Vy(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function Wy(){for(var i=window,o=Nn();o instanceof i.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)i=o.contentWindow;else break;o=Nn(i.document)}return o}function nf(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function jw(i){var o=Wy(),l=i.focusedElem,d=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&Vy(l.ownerDocument.documentElement,l)){if(d!==null&&nf(l)){if(o=d.start,i=d.end,i===void 0&&(i=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(i,l.value.length);else if(i=(o=l.ownerDocument||document)&&o.defaultView||window,i.getSelection){i=i.getSelection();var p=l.textContent.length,m=Math.min(d.start,p);d=d.end===void 0?m:Math.min(d.end,p),!i.extend&&m>d&&(p=d,d=m,m=p),p=Uy(l,m);var b=Uy(l,d);p&&b&&(i.rangeCount!==1||i.anchorNode!==p.node||i.anchorOffset!==p.offset||i.focusNode!==b.node||i.focusOffset!==b.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),i.removeAllRanges(),m>d?(i.addRange(o),i.extend(b.node,b.offset)):(o.setEnd(b.node,b.offset),i.addRange(o)))}}for(o=[],i=l;i=i.parentNode;)i.nodeType===1&&o.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)i=o[l],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var zw=u&&"documentMode"in document&&11>=document.documentMode,qo=null,rf=null,wa=null,of=!1;function Hy(i,o,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;of||qo==null||qo!==Nn(d)||(d=qo,"selectionStart"in d&&nf(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),wa&&_a(wa,d)||(wa=d,d=nc(rf,"onSelect"),0<d.length&&(o=new Kd("onSelect","select",null,o,l),i.push({event:o,listeners:d}),o.target=qo)))}function Zl(i,o){var l={};return l[i.toLowerCase()]=o.toLowerCase(),l["Webkit"+i]="webkit"+o,l["Moz"+i]="moz"+o,l}var Jo={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionend:Zl("Transition","TransitionEnd")},sf={},Gy={};u&&(Gy=document.createElement("div").style,"AnimationEvent"in window||(delete Jo.animationend.animation,delete Jo.animationiteration.animation,delete Jo.animationstart.animation),"TransitionEvent"in window||delete Jo.transitionend.transition);function ec(i){if(sf[i])return sf[i];if(!Jo[i])return i;var o=Jo[i],l;for(l in o)if(o.hasOwnProperty(l)&&l in Gy)return sf[i]=o[l];return i}var Yy=ec("animationend"),Ky=ec("animationiteration"),Qy=ec("animationstart"),Xy=ec("transitionend"),qy=new Map,Jy="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 Ni(i,o){qy.set(i,o),a(o,[i])}for(var af=0;af<Jy.length;af++){var lf=Jy[af],Uw=lf.toLowerCase(),Vw=lf[0].toUpperCase()+lf.slice(1);Ni(Uw,"on"+Vw)}Ni(Yy,"onAnimationEnd"),Ni(Ky,"onAnimationIteration"),Ni(Qy,"onAnimationStart"),Ni("dblclick","onDoubleClick"),Ni("focusin","onFocus"),Ni("focusout","onBlur"),Ni(Xy,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ca="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(" "),Ww=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ca));function Zy(i,o,l){var d=i.type||"unknown-event";i.currentTarget=l,U2(d,o,void 0,i),i.currentTarget=null}function eg(i,o){o=(o&4)!==0;for(var l=0;l<i.length;l++){var d=i[l],p=d.event;d=d.listeners;e:{var m=void 0;if(o)for(var b=d.length-1;0<=b;b--){var x=d[b],T=x.instance,z=x.currentTarget;if(x=x.listener,T!==m&&p.isPropagationStopped())break e;Zy(p,x,z),m=T}else for(b=0;b<d.length;b++){if(x=d[b],T=x.instance,z=x.currentTarget,x=x.listener,T!==m&&p.isPropagationStopped())break e;Zy(p,x,z),m=T}}}if(Fl)throw i=Fd,Fl=!1,Fd=null,i}function pt(i,o){var l=o[yf];l===void 0&&(l=o[yf]=new Set);var d=i+"__bubble";l.has(d)||(tg(o,i,2,!1),l.add(d))}function cf(i,o,l){var d=0;o&&(d|=4),tg(l,i,d,o)}var tc="_reactListening"+Math.random().toString(36).slice(2);function xa(i){if(!i[tc]){i[tc]=!0,r.forEach(function(l){l!=="selectionchange"&&(Ww.has(l)||cf(l,!1,i),cf(l,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[tc]||(o[tc]=!0,cf("selectionchange",!1,o))}}function tg(i,o,l,d){switch(xy(o)){case 1:var p=iw;break;case 4:p=ow;break;default:p=Hd}l=p.bind(null,o,l,i),p=void 0,!Ld||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),d?p!==void 0?i.addEventListener(o,l,{capture:!0,passive:p}):i.addEventListener(o,l,!0):p!==void 0?i.addEventListener(o,l,{passive:p}):i.addEventListener(o,l,!1)}function uf(i,o,l,d,p){var m=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var b=d.tag;if(b===3||b===4){var x=d.stateNode.containerInfo;if(x===p||x.nodeType===8&&x.parentNode===p)break;if(b===4)for(b=d.return;b!==null;){var T=b.tag;if((T===3||T===4)&&(T=b.stateNode.containerInfo,T===p||T.nodeType===8&&T.parentNode===p))return;b=b.return}for(;x!==null;){if(b=vo(x),b===null)return;if(T=b.tag,T===5||T===6){d=m=b;continue e}x=x.parentNode}}d=d.return}sy(function(){var z=m,Q=Dd(l),q=[];e:{var K=qy.get(i);if(K!==void 0){var re=Kd,oe=i;switch(i){case"keypress":if(Ql(l)===0)break e;case"keydown":case"keyup":re=Sw;break;case"focusin":oe="focus",re=qd;break;case"focusout":oe="blur",re=qd;break;case"beforeblur":case"afterblur":re=qd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=ky;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=lw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=Cw;break;case Yy:case Ky:case Qy:re=dw;break;case Xy:re=Iw;break;case"scroll":re=sw;break;case"wheel":re=kw;break;case"copy":case"cut":case"paste":re=pw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=Ey}var se=(o&4)!==0,Et=!se&&i==="scroll",L=se?K!==null?K+"Capture":null:K;se=[];for(var R=z,$;R!==null;){$=R;var ee=$.stateNode;if($.tag===5&&ee!==null&&($=ee,L!==null&&(ee=sa(R,L),ee!=null&&se.push(Ia(R,ee,$)))),Et)break;R=R.return}0<se.length&&(K=new re(K,oe,null,l,Q),q.push({event:K,listeners:se}))}}if((o&7)===0){e:{if(K=i==="mouseover"||i==="pointerover",re=i==="mouseout"||i==="pointerout",K&&l!==Md&&(oe=l.relatedTarget||l.fromElement)&&(vo(oe)||oe[ri]))break e;if((re||K)&&(K=Q.window===Q?Q:(K=Q.ownerDocument)?K.defaultView||K.parentWindow:window,re?(oe=l.relatedTarget||l.toElement,re=z,oe=oe?vo(oe):null,oe!==null&&(Et=go(oe),oe!==Et||oe.tag!==5&&oe.tag!==6)&&(oe=null)):(re=null,oe=z),re!==oe)){if(se=ky,ee="onMouseLeave",L="onMouseEnter",R="mouse",(i==="pointerout"||i==="pointerover")&&(se=Ey,ee="onPointerLeave",L="onPointerEnter",R="pointer"),Et=re==null?K:ts(re),$=oe==null?K:ts(oe),K=new se(ee,R+"leave",re,l,Q),K.target=Et,K.relatedTarget=$,ee=null,vo(Q)===z&&(se=new se(L,R+"enter",oe,l,Q),se.target=$,se.relatedTarget=Et,ee=se),Et=ee,re&&oe)t:{for(se=re,L=oe,R=0,$=se;$;$=Zo($))R++;for($=0,ee=L;ee;ee=Zo(ee))$++;for(;0<R-$;)se=Zo(se),R--;for(;0<$-R;)L=Zo(L),$--;for(;R--;){if(se===L||L!==null&&se===L.alternate)break t;se=Zo(se),L=Zo(L)}se=null}else se=null;re!==null&&ng(q,K,re,se,!1),oe!==null&&Et!==null&&ng(q,Et,oe,se,!0)}}e:{if(K=z?ts(z):window,re=K.nodeName&&K.nodeName.toLowerCase(),re==="select"||re==="input"&&K.type==="file")var ae=Dw;else if(Ny(K))if(Ly)ae=Fw;else{ae=Bw;var pe=Nw}else(re=K.nodeName)&&re.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(ae=Lw);if(ae&&(ae=ae(i,z))){By(q,ae,l,Q);break e}pe&&pe(i,K,z),i==="focusout"&&(pe=K._wrapperState)&&pe.controlled&&K.type==="number"&&Bn(K,"number",K.value)}switch(pe=z?ts(z):window,i){case"focusin":(Ny(pe)||pe.contentEditable==="true")&&(qo=pe,rf=z,wa=null);break;case"focusout":wa=rf=qo=null;break;case"mousedown":of=!0;break;case"contextmenu":case"mouseup":case"dragend":of=!1,Hy(q,l,Q);break;case"selectionchange":if(zw)break;case"keydown":case"keyup":Hy(q,l,Q)}var he;if(Zd)e:{switch(i){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Xo?My(i,l)&&(ye="onCompositionEnd"):i==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(Ay&&l.locale!=="ko"&&(Xo||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Xo&&(he=Iy()):(Di=Q,Yd="value"in Di?Di.value:Di.textContent,Xo=!0)),pe=nc(z,ye),0<pe.length&&(ye=new Ry(ye,i,null,l,Q),q.push({event:ye,listeners:pe}),he?ye.data=he:(he=Dy(l),he!==null&&(ye.data=he)))),(he=Ew?Aw(i,l):Pw(i,l))&&(z=nc(z,"onBeforeInput"),0<z.length&&(Q=new Ry("onBeforeInput","beforeinput",null,l,Q),q.push({event:Q,listeners:z}),Q.data=he))}eg(q,o)})}function Ia(i,o,l){return{instance:i,listener:o,currentTarget:l}}function nc(i,o){for(var l=o+"Capture",d=[];i!==null;){var p=i,m=p.stateNode;p.tag===5&&m!==null&&(p=m,m=sa(i,l),m!=null&&d.unshift(Ia(i,m,p)),m=sa(i,o),m!=null&&d.push(Ia(i,m,p))),i=i.return}return d}function Zo(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function ng(i,o,l,d,p){for(var m=o._reactName,b=[];l!==null&&l!==d;){var x=l,T=x.alternate,z=x.stateNode;if(T!==null&&T===d)break;x.tag===5&&z!==null&&(x=z,p?(T=sa(l,m),T!=null&&b.unshift(Ia(l,T,x))):p||(T=sa(l,m),T!=null&&b.push(Ia(l,T,x)))),l=l.return}b.length!==0&&i.push({event:o,listeners:b})}var Hw=/\r\n?/g,Gw=/\u0000|\uFFFD/g;function rg(i){return(typeof i=="string"?i:""+i).replace(Hw,`
38
- `).replace(Gw,"")}function rc(i,o,l){if(o=rg(o),rg(i)!==o&&l)throw Error(n(425))}function ic(){}var df=null,ff=null;function pf(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var hf=typeof setTimeout=="function"?setTimeout:void 0,Yw=typeof clearTimeout=="function"?clearTimeout:void 0,ig=typeof Promise=="function"?Promise:void 0,Kw=typeof queueMicrotask=="function"?queueMicrotask:typeof ig<"u"?function(i){return ig.resolve(null).then(i).catch(Qw)}:hf;function Qw(i){setTimeout(function(){throw i})}function mf(i,o){var l=o,d=0;do{var p=l.nextSibling;if(i.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(d===0){i.removeChild(p),ma(o);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=p}while(l);ma(o)}function Bi(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return i}function og(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var l=i.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return i;o--}else l==="/$"&&o++}i=i.previousSibling}return null}var es=Math.random().toString(36).slice(2),Er="__reactFiber$"+es,Ta="__reactProps$"+es,ri="__reactContainer$"+es,yf="__reactEvents$"+es,Xw="__reactListeners$"+es,qw="__reactHandles$"+es;function vo(i){var o=i[Er];if(o)return o;for(var l=i.parentNode;l;){if(o=l[ri]||l[Er]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(i=og(i);i!==null;){if(l=i[Er])return l;i=og(i)}return o}i=l,l=i.parentNode}return null}function ka(i){return i=i[Er]||i[ri],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function ts(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function oc(i){return i[Ta]||null}var gf=[],ns=-1;function Li(i){return{current:i}}function ht(i){0>ns||(i.current=gf[ns],gf[ns]=null,ns--)}function dt(i,o){ns++,gf[ns]=i.current,i.current=o}var Fi={},Jt=Li(Fi),bn=Li(!1),bo=Fi;function rs(i,o){var l=i.type.contextTypes;if(!l)return Fi;var d=i.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var p={},m;for(m in l)p[m]=o[m];return d&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=p),p}function Sn(i){return i=i.childContextTypes,i!=null}function sc(){ht(bn),ht(Jt)}function sg(i,o,l){if(Jt.current!==Fi)throw Error(n(168));dt(Jt,o),dt(bn,l)}function ag(i,o,l){var d=i.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var p in d)if(!(p in o))throw Error(n(108,$e(i)||"Unknown",p));return ne({},l,d)}function ac(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Fi,bo=Jt.current,dt(Jt,i),dt(bn,bn.current),!0}function lg(i,o,l){var d=i.stateNode;if(!d)throw Error(n(169));l?(i=ag(i,o,bo),d.__reactInternalMemoizedMergedChildContext=i,ht(bn),ht(Jt),dt(Jt,i)):ht(bn),dt(bn,l)}var ii=null,lc=!1,vf=!1;function cg(i){ii===null?ii=[i]:ii.push(i)}function Jw(i){lc=!0,cg(i)}function $i(){if(!vf&&ii!==null){vf=!0;var i=0,o=nt;try{var l=ii;for(nt=1;i<l.length;i++){var d=l[i];do d=d(!0);while(d!==null)}ii=null,lc=!1}catch(p){throw ii!==null&&(ii=ii.slice(i+1)),dy($d,$i),p}finally{nt=o,vf=!1}}return null}var is=[],os=0,cc=null,uc=0,Qn=[],Xn=0,So=null,oi=1,si="";function _o(i,o){is[os++]=uc,is[os++]=cc,cc=i,uc=o}function ug(i,o,l){Qn[Xn++]=oi,Qn[Xn++]=si,Qn[Xn++]=So,So=i;var d=oi;i=si;var p=32-hr(d)-1;d&=~(1<<p),l+=1;var m=32-hr(o)+p;if(30<m){var b=p-p%5;m=(d&(1<<b)-1).toString(32),d>>=b,p-=b,oi=1<<32-hr(o)+p|l<<p|d,si=m+i}else oi=1<<m|l<<p|d,si=i}function bf(i){i.return!==null&&(_o(i,1),ug(i,1,0))}function Sf(i){for(;i===cc;)cc=is[--os],is[os]=null,uc=is[--os],is[os]=null;for(;i===So;)So=Qn[--Xn],Qn[Xn]=null,si=Qn[--Xn],Qn[Xn]=null,oi=Qn[--Xn],Qn[Xn]=null}var Fn=null,$n=null,yt=!1,yr=null;function dg(i,o){var l=er(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=i,o=i.deletions,o===null?(i.deletions=[l],i.flags|=16):o.push(l)}function fg(i,o){switch(i.tag){case 5:var l=i.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(i.stateNode=o,Fn=i,$n=Bi(o.firstChild),!0):!1;case 6:return o=i.pendingProps===""||o.nodeType!==3?null:o,o!==null?(i.stateNode=o,Fn=i,$n=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=So!==null?{id:oi,overflow:si}:null,i.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=er(18,null,null,0),l.stateNode=o,l.return=i,i.child=l,Fn=i,$n=null,!0):!1;default:return!1}}function _f(i){return(i.mode&1)!==0&&(i.flags&128)===0}function wf(i){if(yt){var o=$n;if(o){var l=o;if(!fg(i,o)){if(_f(i))throw Error(n(418));o=Bi(l.nextSibling);var d=Fn;o&&fg(i,o)?dg(d,l):(i.flags=i.flags&-4097|2,yt=!1,Fn=i)}}else{if(_f(i))throw Error(n(418));i.flags=i.flags&-4097|2,yt=!1,Fn=i}}}function pg(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Fn=i}function dc(i){if(i!==Fn)return!1;if(!yt)return pg(i),yt=!0,!1;var o;if((o=i.tag!==3)&&!(o=i.tag!==5)&&(o=i.type,o=o!=="head"&&o!=="body"&&!pf(i.type,i.memoizedProps)),o&&(o=$n)){if(_f(i))throw hg(),Error(n(418));for(;o;)dg(i,o),o=Bi(o.nextSibling)}if(pg(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8){var l=i.data;if(l==="/$"){if(o===0){$n=Bi(i.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}i=i.nextSibling}$n=null}}else $n=Fn?Bi(i.stateNode.nextSibling):null;return!0}function hg(){for(var i=$n;i;)i=Bi(i.nextSibling)}function ss(){$n=Fn=null,yt=!1}function Cf(i){yr===null?yr=[i]:yr.push(i)}var Zw=M.ReactCurrentBatchConfig;function Ra(i,o,l){if(i=l.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var d=l.stateNode}if(!d)throw Error(n(147,i));var p=d,m=""+i;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===m?o.ref:(o=function(b){var x=p.refs;b===null?delete x[m]:x[m]=b},o._stringRef=m,o)}if(typeof i!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,i))}return i}function fc(i,o){throw i=Object.prototype.toString.call(o),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i))}function mg(i){var o=i._init;return o(i._payload)}function yg(i){function o(L,R){if(i){var $=L.deletions;$===null?(L.deletions=[R],L.flags|=16):$.push(R)}}function l(L,R){if(!i)return null;for(;R!==null;)o(L,R),R=R.sibling;return null}function d(L,R){for(L=new Map;R!==null;)R.key!==null?L.set(R.key,R):L.set(R.index,R),R=R.sibling;return L}function p(L,R){return L=Yi(L,R),L.index=0,L.sibling=null,L}function m(L,R,$){return L.index=$,i?($=L.alternate,$!==null?($=$.index,$<R?(L.flags|=2,R):$):(L.flags|=2,R)):(L.flags|=1048576,R)}function b(L){return i&&L.alternate===null&&(L.flags|=2),L}function x(L,R,$,ee){return R===null||R.tag!==6?(R=hp($,L.mode,ee),R.return=L,R):(R=p(R,$),R.return=L,R)}function T(L,R,$,ee){var ae=$.type;return ae===O?Q(L,R,$.props.children,ee,$.key):R!==null&&(R.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===de&&mg(ae)===R.type)?(ee=p(R,$.props),ee.ref=Ra(L,R,$),ee.return=L,ee):(ee=Bc($.type,$.key,$.props,null,L.mode,ee),ee.ref=Ra(L,R,$),ee.return=L,ee)}function z(L,R,$,ee){return R===null||R.tag!==4||R.stateNode.containerInfo!==$.containerInfo||R.stateNode.implementation!==$.implementation?(R=mp($,L.mode,ee),R.return=L,R):(R=p(R,$.children||[]),R.return=L,R)}function Q(L,R,$,ee,ae){return R===null||R.tag!==7?(R=Eo($,L.mode,ee,ae),R.return=L,R):(R=p(R,$),R.return=L,R)}function q(L,R,$){if(typeof R=="string"&&R!==""||typeof R=="number")return R=hp(""+R,L.mode,$),R.return=L,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case E:return $=Bc(R.type,R.key,R.props,null,L.mode,$),$.ref=Ra(L,null,R),$.return=L,$;case U:return R=mp(R,L.mode,$),R.return=L,R;case de:var ee=R._init;return q(L,ee(R._payload),$)}if(Xt(R)||te(R))return R=Eo(R,L.mode,$,null),R.return=L,R;fc(L,R)}return null}function K(L,R,$,ee){var ae=R!==null?R.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return ae!==null?null:x(L,R,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case E:return $.key===ae?T(L,R,$,ee):null;case U:return $.key===ae?z(L,R,$,ee):null;case de:return ae=$._init,K(L,R,ae($._payload),ee)}if(Xt($)||te($))return ae!==null?null:Q(L,R,$,ee,null);fc(L,$)}return null}function re(L,R,$,ee,ae){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return L=L.get($)||null,x(R,L,""+ee,ae);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case E:return L=L.get(ee.key===null?$:ee.key)||null,T(R,L,ee,ae);case U:return L=L.get(ee.key===null?$:ee.key)||null,z(R,L,ee,ae);case de:var pe=ee._init;return re(L,R,$,pe(ee._payload),ae)}if(Xt(ee)||te(ee))return L=L.get($)||null,Q(R,L,ee,ae,null);fc(R,ee)}return null}function oe(L,R,$,ee){for(var ae=null,pe=null,he=R,ye=R=0,Ht=null;he!==null&&ye<$.length;ye++){he.index>ye?(Ht=he,he=null):Ht=he.sibling;var Ge=K(L,he,$[ye],ee);if(Ge===null){he===null&&(he=Ht);break}i&&he&&Ge.alternate===null&&o(L,he),R=m(Ge,R,ye),pe===null?ae=Ge:pe.sibling=Ge,pe=Ge,he=Ht}if(ye===$.length)return l(L,he),yt&&_o(L,ye),ae;if(he===null){for(;ye<$.length;ye++)he=q(L,$[ye],ee),he!==null&&(R=m(he,R,ye),pe===null?ae=he:pe.sibling=he,pe=he);return yt&&_o(L,ye),ae}for(he=d(L,he);ye<$.length;ye++)Ht=re(he,L,ye,$[ye],ee),Ht!==null&&(i&&Ht.alternate!==null&&he.delete(Ht.key===null?ye:Ht.key),R=m(Ht,R,ye),pe===null?ae=Ht:pe.sibling=Ht,pe=Ht);return i&&he.forEach(function(Ki){return o(L,Ki)}),yt&&_o(L,ye),ae}function se(L,R,$,ee){var ae=te($);if(typeof ae!="function")throw Error(n(150));if($=ae.call($),$==null)throw Error(n(151));for(var pe=ae=null,he=R,ye=R=0,Ht=null,Ge=$.next();he!==null&&!Ge.done;ye++,Ge=$.next()){he.index>ye?(Ht=he,he=null):Ht=he.sibling;var Ki=K(L,he,Ge.value,ee);if(Ki===null){he===null&&(he=Ht);break}i&&he&&Ki.alternate===null&&o(L,he),R=m(Ki,R,ye),pe===null?ae=Ki:pe.sibling=Ki,pe=Ki,he=Ht}if(Ge.done)return l(L,he),yt&&_o(L,ye),ae;if(he===null){for(;!Ge.done;ye++,Ge=$.next())Ge=q(L,Ge.value,ee),Ge!==null&&(R=m(Ge,R,ye),pe===null?ae=Ge:pe.sibling=Ge,pe=Ge);return yt&&_o(L,ye),ae}for(he=d(L,he);!Ge.done;ye++,Ge=$.next())Ge=re(he,L,ye,Ge.value,ee),Ge!==null&&(i&&Ge.alternate!==null&&he.delete(Ge.key===null?ye:Ge.key),R=m(Ge,R,ye),pe===null?ae=Ge:pe.sibling=Ge,pe=Ge);return i&&he.forEach(function(OC){return o(L,OC)}),yt&&_o(L,ye),ae}function Et(L,R,$,ee){if(typeof $=="object"&&$!==null&&$.type===O&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case E:e:{for(var ae=$.key,pe=R;pe!==null;){if(pe.key===ae){if(ae=$.type,ae===O){if(pe.tag===7){l(L,pe.sibling),R=p(pe,$.props.children),R.return=L,L=R;break e}}else if(pe.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===de&&mg(ae)===pe.type){l(L,pe.sibling),R=p(pe,$.props),R.ref=Ra(L,pe,$),R.return=L,L=R;break e}l(L,pe);break}else o(L,pe);pe=pe.sibling}$.type===O?(R=Eo($.props.children,L.mode,ee,$.key),R.return=L,L=R):(ee=Bc($.type,$.key,$.props,null,L.mode,ee),ee.ref=Ra(L,R,$),ee.return=L,L=ee)}return b(L);case U:e:{for(pe=$.key;R!==null;){if(R.key===pe)if(R.tag===4&&R.stateNode.containerInfo===$.containerInfo&&R.stateNode.implementation===$.implementation){l(L,R.sibling),R=p(R,$.children||[]),R.return=L,L=R;break e}else{l(L,R);break}else o(L,R);R=R.sibling}R=mp($,L.mode,ee),R.return=L,L=R}return b(L);case de:return pe=$._init,Et(L,R,pe($._payload),ee)}if(Xt($))return oe(L,R,$,ee);if(te($))return se(L,R,$,ee);fc(L,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,R!==null&&R.tag===6?(l(L,R.sibling),R=p(R,$),R.return=L,L=R):(l(L,R),R=hp($,L.mode,ee),R.return=L,L=R),b(L)):l(L,R)}return Et}var as=yg(!0),gg=yg(!1),pc=Li(null),hc=null,ls=null,xf=null;function If(){xf=ls=hc=null}function Tf(i){var o=pc.current;ht(pc),i._currentValue=o}function kf(i,o,l){for(;i!==null;){var d=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),i===l)break;i=i.return}}function cs(i,o){hc=i,xf=ls=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&o)!==0&&(_n=!0),i.firstContext=null)}function qn(i){var o=i._currentValue;if(xf!==i)if(i={context:i,memoizedValue:o,next:null},ls===null){if(hc===null)throw Error(n(308));ls=i,hc.dependencies={lanes:0,firstContext:i}}else ls=ls.next=i;return o}var wo=null;function Rf(i){wo===null?wo=[i]:wo.push(i)}function vg(i,o,l,d){var p=o.interleaved;return p===null?(l.next=l,Rf(o)):(l.next=p.next,p.next=l),o.interleaved=l,ai(i,d)}function ai(i,o){i.lanes|=o;var l=i.alternate;for(l!==null&&(l.lanes|=o),l=i,i=i.return;i!==null;)i.childLanes|=o,l=i.alternate,l!==null&&(l.childLanes|=o),l=i,i=i.return;return l.tag===3?l.stateNode:null}var ji=!1;function Ef(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bg(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function li(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function zi(i,o,l){var d=i.updateQueue;if(d===null)return null;if(d=d.shared,(We&2)!==0){var p=d.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),d.pending=o,ai(i,l)}return p=d.interleaved,p===null?(o.next=o,Rf(d)):(o.next=p.next,p.next=o),d.interleaved=o,ai(i,l)}function mc(i,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var d=o.lanes;d&=i.pendingLanes,l|=d,o.lanes=l,Ud(i,l)}}function Sg(i,o){var l=i.updateQueue,d=i.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var p=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var b={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};m===null?p=m=b:m=m.next=b,l=l.next}while(l!==null);m===null?p=m=o:m=m.next=o}else p=m=o;l={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:d.shared,effects:d.effects},i.updateQueue=l;return}i=l.lastBaseUpdate,i===null?l.firstBaseUpdate=o:i.next=o,l.lastBaseUpdate=o}function yc(i,o,l,d){var p=i.updateQueue;ji=!1;var m=p.firstBaseUpdate,b=p.lastBaseUpdate,x=p.shared.pending;if(x!==null){p.shared.pending=null;var T=x,z=T.next;T.next=null,b===null?m=z:b.next=z,b=T;var Q=i.alternate;Q!==null&&(Q=Q.updateQueue,x=Q.lastBaseUpdate,x!==b&&(x===null?Q.firstBaseUpdate=z:x.next=z,Q.lastBaseUpdate=T))}if(m!==null){var q=p.baseState;b=0,Q=z=T=null,x=m;do{var K=x.lane,re=x.eventTime;if((d&K)===K){Q!==null&&(Q=Q.next={eventTime:re,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var oe=i,se=x;switch(K=o,re=l,se.tag){case 1:if(oe=se.payload,typeof oe=="function"){q=oe.call(re,q,K);break e}q=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=se.payload,K=typeof oe=="function"?oe.call(re,q,K):oe,K==null)break e;q=ne({},q,K);break e;case 2:ji=!0}}x.callback!==null&&x.lane!==0&&(i.flags|=64,K=p.effects,K===null?p.effects=[x]:K.push(x))}else re={eventTime:re,lane:K,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Q===null?(z=Q=re,T=q):Q=Q.next=re,b|=K;if(x=x.next,x===null){if(x=p.shared.pending,x===null)break;K=x,x=K.next,K.next=null,p.lastBaseUpdate=K,p.shared.pending=null}}while(!0);if(Q===null&&(T=q),p.baseState=T,p.firstBaseUpdate=z,p.lastBaseUpdate=Q,o=p.shared.interleaved,o!==null){p=o;do b|=p.lane,p=p.next;while(p!==o)}else m===null&&(p.shared.lanes=0);Io|=b,i.lanes=b,i.memoizedState=q}}function _g(i,o,l){if(i=o.effects,o.effects=null,i!==null)for(o=0;o<i.length;o++){var d=i[o],p=d.callback;if(p!==null){if(d.callback=null,d=l,typeof p!="function")throw Error(n(191,p));p.call(d)}}}var Ea={},Ar=Li(Ea),Aa=Li(Ea),Pa=Li(Ea);function Co(i){if(i===Ea)throw Error(n(174));return i}function Af(i,o){switch(dt(Pa,o),dt(Aa,i),dt(Ar,Ea),i=o.nodeType,i){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:ni(null,"");break;default:i=i===8?o.parentNode:o,o=i.namespaceURI||null,i=i.tagName,o=ni(o,i)}ht(Ar),dt(Ar,o)}function us(){ht(Ar),ht(Aa),ht(Pa)}function wg(i){Co(Pa.current);var o=Co(Ar.current),l=ni(o,i.type);o!==l&&(dt(Aa,i),dt(Ar,l))}function Pf(i){Aa.current===i&&(ht(Ar),ht(Aa))}var bt=Li(0);function gc(i){for(var o=i;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Of=[];function Mf(){for(var i=0;i<Of.length;i++)Of[i]._workInProgressVersionPrimary=null;Of.length=0}var vc=M.ReactCurrentDispatcher,Df=M.ReactCurrentBatchConfig,xo=0,St=null,Ft=null,Vt=null,bc=!1,Oa=!1,Ma=0,eC=0;function Zt(){throw Error(n(321))}function Nf(i,o){if(o===null)return!1;for(var l=0;l<o.length&&l<i.length;l++)if(!mr(i[l],o[l]))return!1;return!0}function Bf(i,o,l,d,p,m){if(xo=m,St=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,vc.current=i===null||i.memoizedState===null?iC:oC,i=l(d,p),Oa){m=0;do{if(Oa=!1,Ma=0,25<=m)throw Error(n(301));m+=1,Vt=Ft=null,o.updateQueue=null,vc.current=sC,i=l(d,p)}while(Oa)}if(vc.current=wc,o=Ft!==null&&Ft.next!==null,xo=0,Vt=Ft=St=null,bc=!1,o)throw Error(n(300));return i}function Lf(){var i=Ma!==0;return Ma=0,i}function Pr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?St.memoizedState=Vt=i:Vt=Vt.next=i,Vt}function Jn(){if(Ft===null){var i=St.alternate;i=i!==null?i.memoizedState:null}else i=Ft.next;var o=Vt===null?St.memoizedState:Vt.next;if(o!==null)Vt=o,Ft=i;else{if(i===null)throw Error(n(310));Ft=i,i={memoizedState:Ft.memoizedState,baseState:Ft.baseState,baseQueue:Ft.baseQueue,queue:Ft.queue,next:null},Vt===null?St.memoizedState=Vt=i:Vt=Vt.next=i}return Vt}function Da(i,o){return typeof o=="function"?o(i):o}function Ff(i){var o=Jn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var d=Ft,p=d.baseQueue,m=l.pending;if(m!==null){if(p!==null){var b=p.next;p.next=m.next,m.next=b}d.baseQueue=p=m,l.pending=null}if(p!==null){m=p.next,d=d.baseState;var x=b=null,T=null,z=m;do{var Q=z.lane;if((xo&Q)===Q)T!==null&&(T=T.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),d=z.hasEagerState?z.eagerState:i(d,z.action);else{var q={lane:Q,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};T===null?(x=T=q,b=d):T=T.next=q,St.lanes|=Q,Io|=Q}z=z.next}while(z!==null&&z!==m);T===null?b=d:T.next=x,mr(d,o.memoizedState)||(_n=!0),o.memoizedState=d,o.baseState=b,o.baseQueue=T,l.lastRenderedState=d}if(i=l.interleaved,i!==null){p=i;do m=p.lane,St.lanes|=m,Io|=m,p=p.next;while(p!==i)}else p===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function $f(i){var o=Jn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var d=l.dispatch,p=l.pending,m=o.memoizedState;if(p!==null){l.pending=null;var b=p=p.next;do m=i(m,b.action),b=b.next;while(b!==p);mr(m,o.memoizedState)||(_n=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),l.lastRenderedState=m}return[m,d]}function Cg(){}function xg(i,o){var l=St,d=Jn(),p=o(),m=!mr(d.memoizedState,p);if(m&&(d.memoizedState=p,_n=!0),d=d.queue,jf(kg.bind(null,l,d,i),[i]),d.getSnapshot!==o||m||Vt!==null&&Vt.memoizedState.tag&1){if(l.flags|=2048,Na(9,Tg.bind(null,l,d,p,o),void 0,null),Wt===null)throw Error(n(349));(xo&30)!==0||Ig(l,o,p)}return p}function Ig(i,o,l){i.flags|=16384,i={getSnapshot:o,value:l},o=St.updateQueue,o===null?(o={lastEffect:null,stores:null},St.updateQueue=o,o.stores=[i]):(l=o.stores,l===null?o.stores=[i]:l.push(i))}function Tg(i,o,l,d){o.value=l,o.getSnapshot=d,Rg(o)&&Eg(i)}function kg(i,o,l){return l(function(){Rg(o)&&Eg(i)})}function Rg(i){var o=i.getSnapshot;i=i.value;try{var l=o();return!mr(i,l)}catch{return!0}}function Eg(i){var o=ai(i,1);o!==null&&Sr(o,i,1,-1)}function Ag(i){var o=Pr();return typeof i=="function"&&(i=i()),o.memoizedState=o.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:i},o.queue=i,i=i.dispatch=rC.bind(null,St,i),[o.memoizedState,i]}function Na(i,o,l,d){return i={tag:i,create:o,destroy:l,deps:d,next:null},o=St.updateQueue,o===null?(o={lastEffect:null,stores:null},St.updateQueue=o,o.lastEffect=i.next=i):(l=o.lastEffect,l===null?o.lastEffect=i.next=i:(d=l.next,l.next=i,i.next=d,o.lastEffect=i)),i}function Pg(){return Jn().memoizedState}function Sc(i,o,l,d){var p=Pr();St.flags|=i,p.memoizedState=Na(1|o,l,void 0,d===void 0?null:d)}function _c(i,o,l,d){var p=Jn();d=d===void 0?null:d;var m=void 0;if(Ft!==null){var b=Ft.memoizedState;if(m=b.destroy,d!==null&&Nf(d,b.deps)){p.memoizedState=Na(o,l,m,d);return}}St.flags|=i,p.memoizedState=Na(1|o,l,m,d)}function Og(i,o){return Sc(8390656,8,i,o)}function jf(i,o){return _c(2048,8,i,o)}function Mg(i,o){return _c(4,2,i,o)}function Dg(i,o){return _c(4,4,i,o)}function Ng(i,o){if(typeof o=="function")return i=i(),o(i),function(){o(null)};if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function Bg(i,o,l){return l=l!=null?l.concat([i]):null,_c(4,4,Ng.bind(null,o,i),l)}function zf(){}function Lg(i,o){var l=Jn();o=o===void 0?null:o;var d=l.memoizedState;return d!==null&&o!==null&&Nf(o,d[1])?d[0]:(l.memoizedState=[i,o],i)}function Fg(i,o){var l=Jn();o=o===void 0?null:o;var d=l.memoizedState;return d!==null&&o!==null&&Nf(o,d[1])?d[0]:(i=i(),l.memoizedState=[i,o],i)}function $g(i,o,l){return(xo&21)===0?(i.baseState&&(i.baseState=!1,_n=!0),i.memoizedState=l):(mr(l,o)||(l=my(),St.lanes|=l,Io|=l,i.baseState=!0),o)}function tC(i,o){var l=nt;nt=l!==0&&4>l?l:4,i(!0);var d=Df.transition;Df.transition={};try{i(!1),o()}finally{nt=l,Df.transition=d}}function jg(){return Jn().memoizedState}function nC(i,o,l){var d=Hi(i);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},zg(i))Ug(o,l);else if(l=vg(i,o,l,d),l!==null){var p=dn();Sr(l,i,d,p),Vg(l,o,d)}}function rC(i,o,l){var d=Hi(i),p={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(zg(i))Ug(o,p);else{var m=i.alternate;if(i.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var b=o.lastRenderedState,x=m(b,l);if(p.hasEagerState=!0,p.eagerState=x,mr(x,b)){var T=o.interleaved;T===null?(p.next=p,Rf(o)):(p.next=T.next,T.next=p),o.interleaved=p;return}}catch{}finally{}l=vg(i,o,p,d),l!==null&&(p=dn(),Sr(l,i,d,p),Vg(l,o,d))}}function zg(i){var o=i.alternate;return i===St||o!==null&&o===St}function Ug(i,o){Oa=bc=!0;var l=i.pending;l===null?o.next=o:(o.next=l.next,l.next=o),i.pending=o}function Vg(i,o,l){if((l&4194240)!==0){var d=o.lanes;d&=i.pendingLanes,l|=d,o.lanes=l,Ud(i,l)}}var wc={readContext:qn,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useInsertionEffect:Zt,useLayoutEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useMutableSource:Zt,useSyncExternalStore:Zt,useId:Zt,unstable_isNewReconciler:!1},iC={readContext:qn,useCallback:function(i,o){return Pr().memoizedState=[i,o===void 0?null:o],i},useContext:qn,useEffect:Og,useImperativeHandle:function(i,o,l){return l=l!=null?l.concat([i]):null,Sc(4194308,4,Ng.bind(null,o,i),l)},useLayoutEffect:function(i,o){return Sc(4194308,4,i,o)},useInsertionEffect:function(i,o){return Sc(4,2,i,o)},useMemo:function(i,o){var l=Pr();return o=o===void 0?null:o,i=i(),l.memoizedState=[i,o],i},useReducer:function(i,o,l){var d=Pr();return o=l!==void 0?l(o):o,d.memoizedState=d.baseState=o,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:o},d.queue=i,i=i.dispatch=nC.bind(null,St,i),[d.memoizedState,i]},useRef:function(i){var o=Pr();return i={current:i},o.memoizedState=i},useState:Ag,useDebugValue:zf,useDeferredValue:function(i){return Pr().memoizedState=i},useTransition:function(){var i=Ag(!1),o=i[0];return i=tC.bind(null,i[1]),Pr().memoizedState=i,[o,i]},useMutableSource:function(){},useSyncExternalStore:function(i,o,l){var d=St,p=Pr();if(yt){if(l===void 0)throw Error(n(407));l=l()}else{if(l=o(),Wt===null)throw Error(n(349));(xo&30)!==0||Ig(d,o,l)}p.memoizedState=l;var m={value:l,getSnapshot:o};return p.queue=m,Og(kg.bind(null,d,m,i),[i]),d.flags|=2048,Na(9,Tg.bind(null,d,m,l,o),void 0,null),l},useId:function(){var i=Pr(),o=Wt.identifierPrefix;if(yt){var l=si,d=oi;l=(d&~(1<<32-hr(d)-1)).toString(32)+l,o=":"+o+"R"+l,l=Ma++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=eC++,o=":"+o+"r"+l.toString(32)+":";return i.memoizedState=o},unstable_isNewReconciler:!1},oC={readContext:qn,useCallback:Lg,useContext:qn,useEffect:jf,useImperativeHandle:Bg,useInsertionEffect:Mg,useLayoutEffect:Dg,useMemo:Fg,useReducer:Ff,useRef:Pg,useState:function(){return Ff(Da)},useDebugValue:zf,useDeferredValue:function(i){var o=Jn();return $g(o,Ft.memoizedState,i)},useTransition:function(){var i=Ff(Da)[0],o=Jn().memoizedState;return[i,o]},useMutableSource:Cg,useSyncExternalStore:xg,useId:jg,unstable_isNewReconciler:!1},sC={readContext:qn,useCallback:Lg,useContext:qn,useEffect:jf,useImperativeHandle:Bg,useInsertionEffect:Mg,useLayoutEffect:Dg,useMemo:Fg,useReducer:$f,useRef:Pg,useState:function(){return $f(Da)},useDebugValue:zf,useDeferredValue:function(i){var o=Jn();return Ft===null?o.memoizedState=i:$g(o,Ft.memoizedState,i)},useTransition:function(){var i=$f(Da)[0],o=Jn().memoizedState;return[i,o]},useMutableSource:Cg,useSyncExternalStore:xg,useId:jg,unstable_isNewReconciler:!1};function gr(i,o){if(i&&i.defaultProps){o=ne({},o),i=i.defaultProps;for(var l in i)o[l]===void 0&&(o[l]=i[l]);return o}return o}function Uf(i,o,l,d){o=i.memoizedState,l=l(d,o),l=l==null?o:ne({},o,l),i.memoizedState=l,i.lanes===0&&(i.updateQueue.baseState=l)}var Cc={isMounted:function(i){return(i=i._reactInternals)?go(i)===i:!1},enqueueSetState:function(i,o,l){i=i._reactInternals;var d=dn(),p=Hi(i),m=li(d,p);m.payload=o,l!=null&&(m.callback=l),o=zi(i,m,p),o!==null&&(Sr(o,i,p,d),mc(o,i,p))},enqueueReplaceState:function(i,o,l){i=i._reactInternals;var d=dn(),p=Hi(i),m=li(d,p);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=zi(i,m,p),o!==null&&(Sr(o,i,p,d),mc(o,i,p))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var l=dn(),d=Hi(i),p=li(l,d);p.tag=2,o!=null&&(p.callback=o),o=zi(i,p,d),o!==null&&(Sr(o,i,d,l),mc(o,i,d))}};function Wg(i,o,l,d,p,m,b){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(d,m,b):o.prototype&&o.prototype.isPureReactComponent?!_a(l,d)||!_a(p,m):!0}function Hg(i,o,l){var d=!1,p=Fi,m=o.contextType;return typeof m=="object"&&m!==null?m=qn(m):(p=Sn(o)?bo:Jt.current,d=o.contextTypes,m=(d=d!=null)?rs(i,p):Fi),o=new o(l,m),i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Cc,i.stateNode=o,o._reactInternals=i,d&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=p,i.__reactInternalMemoizedMaskedChildContext=m),o}function Gg(i,o,l,d){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,d),o.state!==i&&Cc.enqueueReplaceState(o,o.state,null)}function Vf(i,o,l,d){var p=i.stateNode;p.props=l,p.state=i.memoizedState,p.refs={},Ef(i);var m=o.contextType;typeof m=="object"&&m!==null?p.context=qn(m):(m=Sn(o)?bo:Jt.current,p.context=rs(i,m)),p.state=i.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(Uf(i,o,m,l),p.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&Cc.enqueueReplaceState(p,p.state,null),yc(i,l,p,d),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308)}function ds(i,o){try{var l="",d=o;do l+=De(d),d=d.return;while(d);var p=l}catch(m){p=`
39
- Error generating stack: `+m.message+`
40
- `+m.stack}return{value:i,source:o,stack:p,digest:null}}function Wf(i,o,l){return{value:i,source:null,stack:l??null,digest:o??null}}function Hf(i,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var aC=typeof WeakMap=="function"?WeakMap:Map;function Yg(i,o,l){l=li(-1,l),l.tag=3,l.payload={element:null};var d=o.value;return l.callback=function(){Ac||(Ac=!0,sp=d),Hf(i,o)},l}function Kg(i,o,l){l=li(-1,l),l.tag=3;var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;l.payload=function(){return d(p)},l.callback=function(){Hf(i,o)}}var m=i.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(l.callback=function(){Hf(i,o),typeof d!="function"&&(Vi===null?Vi=new Set([this]):Vi.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})}),l}function Qg(i,o,l){var d=i.pingCache;if(d===null){d=i.pingCache=new aC;var p=new Set;d.set(o,p)}else p=d.get(o),p===void 0&&(p=new Set,d.set(o,p));p.has(l)||(p.add(l),i=_C.bind(null,i,o,l),o.then(i,i))}function Xg(i){do{var o;if((o=i.tag===13)&&(o=i.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return i;i=i.return}while(i!==null);return null}function qg(i,o,l,d,p){return(i.mode&1)===0?(i===o?i.flags|=65536:(i.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=li(-1,1),o.tag=2,zi(l,o,1))),l.lanes|=1),i):(i.flags|=65536,i.lanes=p,i)}var lC=M.ReactCurrentOwner,_n=!1;function un(i,o,l,d){o.child=i===null?gg(o,null,l,d):as(o,i.child,l,d)}function Jg(i,o,l,d,p){l=l.render;var m=o.ref;return cs(o,p),d=Bf(i,o,l,d,m,p),l=Lf(),i!==null&&!_n?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~p,ci(i,o,p)):(yt&&l&&bf(o),o.flags|=1,un(i,o,d,p),o.child)}function Zg(i,o,l,d,p){if(i===null){var m=l.type;return typeof m=="function"&&!pp(m)&&m.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=m,e0(i,o,m,d,p)):(i=Bc(l.type,null,d,o,o.mode,p),i.ref=o.ref,i.return=o,o.child=i)}if(m=i.child,(i.lanes&p)===0){var b=m.memoizedProps;if(l=l.compare,l=l!==null?l:_a,l(b,d)&&i.ref===o.ref)return ci(i,o,p)}return o.flags|=1,i=Yi(m,d),i.ref=o.ref,i.return=o,o.child=i}function e0(i,o,l,d,p){if(i!==null){var m=i.memoizedProps;if(_a(m,d)&&i.ref===o.ref)if(_n=!1,o.pendingProps=d=m,(i.lanes&p)!==0)(i.flags&131072)!==0&&(_n=!0);else return o.lanes=i.lanes,ci(i,o,p)}return Gf(i,o,l,d,p)}function t0(i,o,l){var d=o.pendingProps,p=d.children,m=i!==null?i.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},dt(ps,jn),jn|=l;else{if((l&1073741824)===0)return i=m!==null?m.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i,cachePool:null,transitions:null},o.updateQueue=null,dt(ps,jn),jn|=i,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=m!==null?m.baseLanes:l,dt(ps,jn),jn|=d}else m!==null?(d=m.baseLanes|l,o.memoizedState=null):d=l,dt(ps,jn),jn|=d;return un(i,o,p,l),o.child}function n0(i,o){var l=o.ref;(i===null&&l!==null||i!==null&&i.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function Gf(i,o,l,d,p){var m=Sn(l)?bo:Jt.current;return m=rs(o,m),cs(o,p),l=Bf(i,o,l,d,m,p),d=Lf(),i!==null&&!_n?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~p,ci(i,o,p)):(yt&&d&&bf(o),o.flags|=1,un(i,o,l,p),o.child)}function r0(i,o,l,d,p){if(Sn(l)){var m=!0;ac(o)}else m=!1;if(cs(o,p),o.stateNode===null)Ic(i,o),Hg(o,l,d),Vf(o,l,d,p),d=!0;else if(i===null){var b=o.stateNode,x=o.memoizedProps;b.props=x;var T=b.context,z=l.contextType;typeof z=="object"&&z!==null?z=qn(z):(z=Sn(l)?bo:Jt.current,z=rs(o,z));var Q=l.getDerivedStateFromProps,q=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function";q||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(x!==d||T!==z)&&Gg(o,b,d,z),ji=!1;var K=o.memoizedState;b.state=K,yc(o,d,b,p),T=o.memoizedState,x!==d||K!==T||bn.current||ji?(typeof Q=="function"&&(Uf(o,l,Q,d),T=o.memoizedState),(x=ji||Wg(o,l,x,d,K,T,z))?(q||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=T),b.props=d,b.state=T,b.context=z,d=x):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{b=o.stateNode,bg(i,o),x=o.memoizedProps,z=o.type===o.elementType?x:gr(o.type,x),b.props=z,q=o.pendingProps,K=b.context,T=l.contextType,typeof T=="object"&&T!==null?T=qn(T):(T=Sn(l)?bo:Jt.current,T=rs(o,T));var re=l.getDerivedStateFromProps;(Q=typeof re=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(x!==q||K!==T)&&Gg(o,b,d,T),ji=!1,K=o.memoizedState,b.state=K,yc(o,d,b,p);var oe=o.memoizedState;x!==q||K!==oe||bn.current||ji?(typeof re=="function"&&(Uf(o,l,re,d),oe=o.memoizedState),(z=ji||Wg(o,l,z,d,K,oe,T)||!1)?(Q||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,oe,T),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,oe,T)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=oe),b.props=d,b.state=oe,b.context=T,d=z):(typeof b.componentDidUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||x===i.memoizedProps&&K===i.memoizedState||(o.flags|=1024),d=!1)}return Yf(i,o,l,d,m,p)}function Yf(i,o,l,d,p,m){n0(i,o);var b=(o.flags&128)!==0;if(!d&&!b)return p&&lg(o,l,!1),ci(i,o,m);d=o.stateNode,lC.current=o;var x=b&&typeof l.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,i!==null&&b?(o.child=as(o,i.child,null,m),o.child=as(o,null,x,m)):un(i,o,x,m),o.memoizedState=d.state,p&&lg(o,l,!0),o.child}function i0(i){var o=i.stateNode;o.pendingContext?sg(i,o.pendingContext,o.pendingContext!==o.context):o.context&&sg(i,o.context,!1),Af(i,o.containerInfo)}function o0(i,o,l,d,p){return ss(),Cf(p),o.flags|=256,un(i,o,l,d),o.child}var Kf={dehydrated:null,treeContext:null,retryLane:0};function Qf(i){return{baseLanes:i,cachePool:null,transitions:null}}function s0(i,o,l){var d=o.pendingProps,p=bt.current,m=!1,b=(o.flags&128)!==0,x;if((x=b)||(x=i!==null&&i.memoizedState===null?!1:(p&2)!==0),x?(m=!0,o.flags&=-129):(i===null||i.memoizedState!==null)&&(p|=1),dt(bt,p&1),i===null)return wf(o),i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((o.mode&1)===0?o.lanes=1:i.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(b=d.children,i=d.fallback,m?(d=o.mode,m=o.child,b={mode:"hidden",children:b},(d&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=b):m=Lc(b,d,0,null),i=Eo(i,d,l,null),m.return=o,i.return=o,m.sibling=i,o.child=m,o.child.memoizedState=Qf(l),o.memoizedState=Kf,i):Xf(o,b));if(p=i.memoizedState,p!==null&&(x=p.dehydrated,x!==null))return cC(i,o,b,d,x,p,l);if(m){m=d.fallback,b=o.mode,p=i.child,x=p.sibling;var T={mode:"hidden",children:d.children};return(b&1)===0&&o.child!==p?(d=o.child,d.childLanes=0,d.pendingProps=T,o.deletions=null):(d=Yi(p,T),d.subtreeFlags=p.subtreeFlags&14680064),x!==null?m=Yi(x,m):(m=Eo(m,b,l,null),m.flags|=2),m.return=o,d.return=o,d.sibling=m,o.child=d,d=m,m=o.child,b=i.child.memoizedState,b=b===null?Qf(l):{baseLanes:b.baseLanes|l,cachePool:null,transitions:b.transitions},m.memoizedState=b,m.childLanes=i.childLanes&~l,o.memoizedState=Kf,d}return m=i.child,i=m.sibling,d=Yi(m,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=l),d.return=o,d.sibling=null,i!==null&&(l=o.deletions,l===null?(o.deletions=[i],o.flags|=16):l.push(i)),o.child=d,o.memoizedState=null,d}function Xf(i,o){return o=Lc({mode:"visible",children:o},i.mode,0,null),o.return=i,i.child=o}function xc(i,o,l,d){return d!==null&&Cf(d),as(o,i.child,null,l),i=Xf(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function cC(i,o,l,d,p,m,b){if(l)return o.flags&256?(o.flags&=-257,d=Wf(Error(n(422))),xc(i,o,b,d)):o.memoizedState!==null?(o.child=i.child,o.flags|=128,null):(m=d.fallback,p=o.mode,d=Lc({mode:"visible",children:d.children},p,0,null),m=Eo(m,p,b,null),m.flags|=2,d.return=o,m.return=o,d.sibling=m,o.child=d,(o.mode&1)!==0&&as(o,i.child,null,b),o.child.memoizedState=Qf(b),o.memoizedState=Kf,m);if((o.mode&1)===0)return xc(i,o,b,null);if(p.data==="$!"){if(d=p.nextSibling&&p.nextSibling.dataset,d)var x=d.dgst;return d=x,m=Error(n(419)),d=Wf(m,d,void 0),xc(i,o,b,d)}if(x=(b&i.childLanes)!==0,_n||x){if(d=Wt,d!==null){switch(b&-b){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(d.suspendedLanes|b))!==0?0:p,p!==0&&p!==m.retryLane&&(m.retryLane=p,ai(i,p),Sr(d,i,p,-1))}return fp(),d=Wf(Error(n(421))),xc(i,o,b,d)}return p.data==="$?"?(o.flags|=128,o.child=i.child,o=wC.bind(null,i),p._reactRetry=o,null):(i=m.treeContext,$n=Bi(p.nextSibling),Fn=o,yt=!0,yr=null,i!==null&&(Qn[Xn++]=oi,Qn[Xn++]=si,Qn[Xn++]=So,oi=i.id,si=i.overflow,So=o),o=Xf(o,d.children),o.flags|=4096,o)}function a0(i,o,l){i.lanes|=o;var d=i.alternate;d!==null&&(d.lanes|=o),kf(i.return,o,l)}function qf(i,o,l,d,p){var m=i.memoizedState;m===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:p}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=d,m.tail=l,m.tailMode=p)}function l0(i,o,l){var d=o.pendingProps,p=d.revealOrder,m=d.tail;if(un(i,o,d.children,l),d=bt.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&a0(i,l,o);else if(i.tag===19)a0(i,l,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}d&=1}if(dt(bt,d),(o.mode&1)===0)o.memoizedState=null;else switch(p){case"forwards":for(l=o.child,p=null;l!==null;)i=l.alternate,i!==null&&gc(i)===null&&(p=l),l=l.sibling;l=p,l===null?(p=o.child,o.child=null):(p=l.sibling,l.sibling=null),qf(o,!1,p,l,m);break;case"backwards":for(l=null,p=o.child,o.child=null;p!==null;){if(i=p.alternate,i!==null&&gc(i)===null){o.child=p;break}i=p.sibling,p.sibling=l,l=p,p=i}qf(o,!0,l,null,m);break;case"together":qf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Ic(i,o){(o.mode&1)===0&&i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2)}function ci(i,o,l){if(i!==null&&(o.dependencies=i.dependencies),Io|=o.lanes,(l&o.childLanes)===0)return null;if(i!==null&&o.child!==i.child)throw Error(n(153));if(o.child!==null){for(i=o.child,l=Yi(i,i.pendingProps),o.child=l,l.return=o;i.sibling!==null;)i=i.sibling,l=l.sibling=Yi(i,i.pendingProps),l.return=o;l.sibling=null}return o.child}function uC(i,o,l){switch(o.tag){case 3:i0(o),ss();break;case 5:wg(o);break;case 1:Sn(o.type)&&ac(o);break;case 4:Af(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,p=o.memoizedProps.value;dt(pc,d._currentValue),d._currentValue=p;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(dt(bt,bt.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?s0(i,o,l):(dt(bt,bt.current&1),i=ci(i,o,l),i!==null?i.sibling:null);dt(bt,bt.current&1);break;case 19:if(d=(l&o.childLanes)!==0,(i.flags&128)!==0){if(d)return l0(i,o,l);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),dt(bt,bt.current),d)break;return null;case 22:case 23:return o.lanes=0,t0(i,o,l)}return ci(i,o,l)}var c0,Jf,u0,d0;c0=function(i,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Jf=function(){},u0=function(i,o,l,d){var p=i.memoizedProps;if(p!==d){i=o.stateNode,Co(Ar.current);var m=null;switch(l){case"input":p=qe(i,p),d=qe(i,d),m=[];break;case"select":p=ne({},p,{value:void 0}),d=ne({},d,{value:void 0}),m=[];break;case"textarea":p=me(i,p),d=me(i,d),m=[];break;default:typeof p.onClick!="function"&&typeof d.onClick=="function"&&(i.onclick=ic)}Pd(l,d);var b;l=null;for(z in p)if(!d.hasOwnProperty(z)&&p.hasOwnProperty(z)&&p[z]!=null)if(z==="style"){var x=p[z];for(b in x)x.hasOwnProperty(b)&&(l||(l={}),l[b]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(s.hasOwnProperty(z)?m||(m=[]):(m=m||[]).push(z,null));for(z in d){var T=d[z];if(x=p!=null?p[z]:void 0,d.hasOwnProperty(z)&&T!==x&&(T!=null||x!=null))if(z==="style")if(x){for(b in x)!x.hasOwnProperty(b)||T&&T.hasOwnProperty(b)||(l||(l={}),l[b]="");for(b in T)T.hasOwnProperty(b)&&x[b]!==T[b]&&(l||(l={}),l[b]=T[b])}else l||(m||(m=[]),m.push(z,l)),l=T;else z==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,x=x?x.__html:void 0,T!=null&&x!==T&&(m=m||[]).push(z,T)):z==="children"?typeof T!="string"&&typeof T!="number"||(m=m||[]).push(z,""+T):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(s.hasOwnProperty(z)?(T!=null&&z==="onScroll"&&pt("scroll",i),m||x===T||(m=[])):(m=m||[]).push(z,T))}l&&(m=m||[]).push("style",l);var z=m;(o.updateQueue=z)&&(o.flags|=4)}},d0=function(i,o,l,d){l!==d&&(o.flags|=4)};function Ba(i,o){if(!yt)switch(i.tailMode){case"hidden":o=i.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?i.tail=null:l.sibling=null;break;case"collapsed":l=i.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:d.sibling=null}}function en(i){var o=i.alternate!==null&&i.alternate.child===i.child,l=0,d=0;if(o)for(var p=i.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags&14680064,d|=p.flags&14680064,p.return=i,p=p.sibling;else for(p=i.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=i,p=p.sibling;return i.subtreeFlags|=d,i.childLanes=l,o}function dC(i,o,l){var d=o.pendingProps;switch(Sf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return en(o),null;case 1:return Sn(o.type)&&sc(),en(o),null;case 3:return d=o.stateNode,us(),ht(bn),ht(Jt),Mf(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(i===null||i.child===null)&&(dc(o)?o.flags|=4:i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,yr!==null&&(cp(yr),yr=null))),Jf(i,o),en(o),null;case 5:Pf(o);var p=Co(Pa.current);if(l=o.type,i!==null&&o.stateNode!=null)u0(i,o,l,d,p),i.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(n(166));return en(o),null}if(i=Co(Ar.current),dc(o)){d=o.stateNode,l=o.type;var m=o.memoizedProps;switch(d[Er]=o,d[Ta]=m,i=(o.mode&1)!==0,l){case"dialog":pt("cancel",d),pt("close",d);break;case"iframe":case"object":case"embed":pt("load",d);break;case"video":case"audio":for(p=0;p<Ca.length;p++)pt(Ca[p],d);break;case"source":pt("error",d);break;case"img":case"image":case"link":pt("error",d),pt("load",d);break;case"details":pt("toggle",d);break;case"input":Ut(d,m),pt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!m.multiple},pt("invalid",d);break;case"textarea":ei(d,m),pt("invalid",d)}Pd(l,m),p=null;for(var b in m)if(m.hasOwnProperty(b)){var x=m[b];b==="children"?typeof x=="string"?d.textContent!==x&&(m.suppressHydrationWarning!==!0&&rc(d.textContent,x,i),p=["children",x]):typeof x=="number"&&d.textContent!==""+x&&(m.suppressHydrationWarning!==!0&&rc(d.textContent,x,i),p=["children",""+x]):s.hasOwnProperty(b)&&x!=null&&b==="onScroll"&&pt("scroll",d)}switch(l){case"input":dr(d),st(d,m,!0);break;case"textarea":dr(d),yo(d);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(d.onclick=ic)}d=p,o.updateQueue=d,d!==null&&(o.flags|=4)}else{b=p.nodeType===9?p:p.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=ti(l)),i==="http://www.w3.org/1999/xhtml"?l==="script"?(i=b.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof d.is=="string"?i=b.createElement(l,{is:d.is}):(i=b.createElement(l),l==="select"&&(b=i,d.multiple?b.multiple=!0:d.size&&(b.size=d.size))):i=b.createElementNS(i,l),i[Er]=o,i[Ta]=d,c0(i,o,!1,!1),o.stateNode=i;e:{switch(b=Od(l,d),l){case"dialog":pt("cancel",i),pt("close",i),p=d;break;case"iframe":case"object":case"embed":pt("load",i),p=d;break;case"video":case"audio":for(p=0;p<Ca.length;p++)pt(Ca[p],i);p=d;break;case"source":pt("error",i),p=d;break;case"img":case"image":case"link":pt("error",i),pt("load",i),p=d;break;case"details":pt("toggle",i),p=d;break;case"input":Ut(i,d),p=qe(i,d),pt("invalid",i);break;case"option":p=d;break;case"select":i._wrapperState={wasMultiple:!!d.multiple},p=ne({},d,{value:void 0}),pt("invalid",i);break;case"textarea":ei(i,d),p=me(i,d),pt("invalid",i);break;default:p=d}Pd(l,p),x=p;for(m in x)if(x.hasOwnProperty(m)){var T=x[m];m==="style"?ey(i,T):m==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&kt(i,T)):m==="children"?typeof T=="string"?(l!=="textarea"||T!=="")&&Ct(i,T):typeof T=="number"&&Ct(i,""+T):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(s.hasOwnProperty(m)?T!=null&&m==="onScroll"&&pt("scroll",i):T!=null&&B(i,m,T,b))}switch(l){case"input":dr(i),st(i,d,!1);break;case"textarea":dr(i),yo(i);break;case"option":d.value!=null&&i.setAttribute("value",""+Ne(d.value));break;case"select":i.multiple=!!d.multiple,m=d.value,m!=null?Kn(i,!!d.multiple,m,!1):d.defaultValue!=null&&Kn(i,!!d.multiple,d.defaultValue,!0);break;default:typeof p.onClick=="function"&&(i.onclick=ic)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return en(o),null;case 6:if(i&&o.stateNode!=null)d0(i,o,i.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(n(166));if(l=Co(Pa.current),Co(Ar.current),dc(o)){if(d=o.stateNode,l=o.memoizedProps,d[Er]=o,(m=d.nodeValue!==l)&&(i=Fn,i!==null))switch(i.tag){case 3:rc(d.nodeValue,l,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&rc(d.nodeValue,l,(i.mode&1)!==0)}m&&(o.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[Er]=o,o.stateNode=d}return en(o),null;case 13:if(ht(bt),d=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(yt&&$n!==null&&(o.mode&1)!==0&&(o.flags&128)===0)hg(),ss(),o.flags|=98560,m=!1;else if(m=dc(o),d!==null&&d.dehydrated!==null){if(i===null){if(!m)throw Error(n(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Er]=o}else ss(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;en(o),m=!1}else yr!==null&&(cp(yr),yr=null),m=!0;if(!m)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=l,o):(d=d!==null,d!==(i!==null&&i.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(i===null||(bt.current&1)!==0?$t===0&&($t=3):fp())),o.updateQueue!==null&&(o.flags|=4),en(o),null);case 4:return us(),Jf(i,o),i===null&&xa(o.stateNode.containerInfo),en(o),null;case 10:return Tf(o.type._context),en(o),null;case 17:return Sn(o.type)&&sc(),en(o),null;case 19:if(ht(bt),m=o.memoizedState,m===null)return en(o),null;if(d=(o.flags&128)!==0,b=m.rendering,b===null)if(d)Ba(m,!1);else{if($t!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(b=gc(i),b!==null){for(o.flags|=128,Ba(m,!1),d=b.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=l,l=o.child;l!==null;)m=l,i=d,m.flags&=14680066,b=m.alternate,b===null?(m.childLanes=0,m.lanes=i,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=b.childLanes,m.lanes=b.lanes,m.child=b.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=b.memoizedProps,m.memoizedState=b.memoizedState,m.updateQueue=b.updateQueue,m.type=b.type,i=b.dependencies,m.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),l=l.sibling;return dt(bt,bt.current&1|2),o.child}i=i.sibling}m.tail!==null&&Rt()>hs&&(o.flags|=128,d=!0,Ba(m,!1),o.lanes=4194304)}else{if(!d)if(i=gc(b),i!==null){if(o.flags|=128,d=!0,l=i.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Ba(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!yt)return en(o),null}else 2*Rt()-m.renderingStartTime>hs&&l!==1073741824&&(o.flags|=128,d=!0,Ba(m,!1),o.lanes=4194304);m.isBackwards?(b.sibling=o.child,o.child=b):(l=m.last,l!==null?l.sibling=b:o.child=b,m.last=b)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=Rt(),o.sibling=null,l=bt.current,dt(bt,d?l&1|2:l&1),o):(en(o),null);case 22:case 23:return dp(),d=o.memoizedState!==null,i!==null&&i.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?(jn&1073741824)!==0&&(en(o),o.subtreeFlags&6&&(o.flags|=8192)):en(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function fC(i,o){switch(Sf(o),o.tag){case 1:return Sn(o.type)&&sc(),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return us(),ht(bn),ht(Jt),Mf(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 5:return Pf(o),null;case 13:if(ht(bt),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(n(340));ss()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return ht(bt),null;case 4:return us(),null;case 10:return Tf(o.type._context),null;case 22:case 23:return dp(),null;case 24:return null;default:return null}}var Tc=!1,tn=!1,pC=typeof WeakSet=="function"?WeakSet:Set,ie=null;function fs(i,o){var l=i.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){xt(i,o,d)}else l.current=null}function Zf(i,o,l){try{l()}catch(d){xt(i,o,d)}}var f0=!1;function hC(i,o){if(df=Gl,i=Wy(),nf(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else e:{l=(l=i.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var p=d.anchorOffset,m=d.focusNode;d=d.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var b=0,x=-1,T=-1,z=0,Q=0,q=i,K=null;t:for(;;){for(var re;q!==l||p!==0&&q.nodeType!==3||(x=b+p),q!==m||d!==0&&q.nodeType!==3||(T=b+d),q.nodeType===3&&(b+=q.nodeValue.length),(re=q.firstChild)!==null;)K=q,q=re;for(;;){if(q===i)break t;if(K===l&&++z===p&&(x=b),K===m&&++Q===d&&(T=b),(re=q.nextSibling)!==null)break;q=K,K=q.parentNode}q=re}l=x===-1||T===-1?null:{start:x,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(ff={focusedElem:i,selectionRange:l},Gl=!1,ie=o;ie!==null;)if(o=ie,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,ie=i;else for(;ie!==null;){o=ie;try{var oe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(oe!==null){var se=oe.memoizedProps,Et=oe.memoizedState,L=o.stateNode,R=L.getSnapshotBeforeUpdate(o.elementType===o.type?se:gr(o.type,se),Et);L.__reactInternalSnapshotBeforeUpdate=R}break;case 3:var $=o.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ee){xt(o,o.return,ee)}if(i=o.sibling,i!==null){i.return=o.return,ie=i;break}ie=o.return}return oe=f0,f0=!1,oe}function La(i,o,l){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var p=d=d.next;do{if((p.tag&i)===i){var m=p.destroy;p.destroy=void 0,m!==void 0&&Zf(o,l,m)}p=p.next}while(p!==d)}}function kc(i,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&i)===i){var d=l.create;l.destroy=d()}l=l.next}while(l!==o)}}function ep(i){var o=i.ref;if(o!==null){var l=i.stateNode;switch(i.tag){case 5:i=l;break;default:i=l}typeof o=="function"?o(i):o.current=i}}function p0(i){var o=i.alternate;o!==null&&(i.alternate=null,p0(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&(delete o[Er],delete o[Ta],delete o[yf],delete o[Xw],delete o[qw])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function h0(i){return i.tag===5||i.tag===3||i.tag===4}function m0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||h0(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function tp(i,o,l){var d=i.tag;if(d===5||d===6)i=i.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(i,o):l.insertBefore(i,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(i,l)):(o=l,o.appendChild(i)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=ic));else if(d!==4&&(i=i.child,i!==null))for(tp(i,o,l),i=i.sibling;i!==null;)tp(i,o,l),i=i.sibling}function np(i,o,l){var d=i.tag;if(d===5||d===6)i=i.stateNode,o?l.insertBefore(i,o):l.appendChild(i);else if(d!==4&&(i=i.child,i!==null))for(np(i,o,l),i=i.sibling;i!==null;)np(i,o,l),i=i.sibling}var Gt=null,vr=!1;function Ui(i,o,l){for(l=l.child;l!==null;)y0(i,o,l),l=l.sibling}function y0(i,o,l){if(Rr&&typeof Rr.onCommitFiberUnmount=="function")try{Rr.onCommitFiberUnmount(jl,l)}catch{}switch(l.tag){case 5:tn||fs(l,o);case 6:var d=Gt,p=vr;Gt=null,Ui(i,o,l),Gt=d,vr=p,Gt!==null&&(vr?(i=Gt,l=l.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):Gt.removeChild(l.stateNode));break;case 18:Gt!==null&&(vr?(i=Gt,l=l.stateNode,i.nodeType===8?mf(i.parentNode,l):i.nodeType===1&&mf(i,l),ma(i)):mf(Gt,l.stateNode));break;case 4:d=Gt,p=vr,Gt=l.stateNode.containerInfo,vr=!0,Ui(i,o,l),Gt=d,vr=p;break;case 0:case 11:case 14:case 15:if(!tn&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){p=d=d.next;do{var m=p,b=m.destroy;m=m.tag,b!==void 0&&((m&2)!==0||(m&4)!==0)&&Zf(l,o,b),p=p.next}while(p!==d)}Ui(i,o,l);break;case 1:if(!tn&&(fs(l,o),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(x){xt(l,o,x)}Ui(i,o,l);break;case 21:Ui(i,o,l);break;case 22:l.mode&1?(tn=(d=tn)||l.memoizedState!==null,Ui(i,o,l),tn=d):Ui(i,o,l);break;default:Ui(i,o,l)}}function g0(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var l=i.stateNode;l===null&&(l=i.stateNode=new pC),o.forEach(function(d){var p=CC.bind(null,i,d);l.has(d)||(l.add(d),d.then(p,p))})}}function br(i,o){var l=o.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];try{var m=i,b=o,x=b;e:for(;x!==null;){switch(x.tag){case 5:Gt=x.stateNode,vr=!1;break e;case 3:Gt=x.stateNode.containerInfo,vr=!0;break e;case 4:Gt=x.stateNode.containerInfo,vr=!0;break e}x=x.return}if(Gt===null)throw Error(n(160));y0(m,b,p),Gt=null,vr=!1;var T=p.alternate;T!==null&&(T.return=null),p.return=null}catch(z){xt(p,o,z)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)v0(o,i),o=o.sibling}function v0(i,o){var l=i.alternate,d=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(br(o,i),Or(i),d&4){try{La(3,i,i.return),kc(3,i)}catch(se){xt(i,i.return,se)}try{La(5,i,i.return)}catch(se){xt(i,i.return,se)}}break;case 1:br(o,i),Or(i),d&512&&l!==null&&fs(l,l.return);break;case 5:if(br(o,i),Or(i),d&512&&l!==null&&fs(l,l.return),i.flags&32){var p=i.stateNode;try{Ct(p,"")}catch(se){xt(i,i.return,se)}}if(d&4&&(p=i.stateNode,p!=null)){var m=i.memoizedProps,b=l!==null?l.memoizedProps:m,x=i.type,T=i.updateQueue;if(i.updateQueue=null,T!==null)try{x==="input"&&m.type==="radio"&&m.name!=null&&pr(p,m),Od(x,b);var z=Od(x,m);for(b=0;b<T.length;b+=2){var Q=T[b],q=T[b+1];Q==="style"?ey(p,q):Q==="dangerouslySetInnerHTML"?kt(p,q):Q==="children"?Ct(p,q):B(p,Q,q,z)}switch(x){case"input":Qt(p,m);break;case"textarea":ln(p,m);break;case"select":var K=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!m.multiple;var re=m.value;re!=null?Kn(p,!!m.multiple,re,!1):K!==!!m.multiple&&(m.defaultValue!=null?Kn(p,!!m.multiple,m.defaultValue,!0):Kn(p,!!m.multiple,m.multiple?[]:"",!1))}p[Ta]=m}catch(se){xt(i,i.return,se)}}break;case 6:if(br(o,i),Or(i),d&4){if(i.stateNode===null)throw Error(n(162));p=i.stateNode,m=i.memoizedProps;try{p.nodeValue=m}catch(se){xt(i,i.return,se)}}break;case 3:if(br(o,i),Or(i),d&4&&l!==null&&l.memoizedState.isDehydrated)try{ma(o.containerInfo)}catch(se){xt(i,i.return,se)}break;case 4:br(o,i),Or(i);break;case 13:br(o,i),Or(i),p=i.child,p.flags&8192&&(m=p.memoizedState!==null,p.stateNode.isHidden=m,!m||p.alternate!==null&&p.alternate.memoizedState!==null||(op=Rt())),d&4&&g0(i);break;case 22:if(Q=l!==null&&l.memoizedState!==null,i.mode&1?(tn=(z=tn)||Q,br(o,i),tn=z):br(o,i),Or(i),d&8192){if(z=i.memoizedState!==null,(i.stateNode.isHidden=z)&&!Q&&(i.mode&1)!==0)for(ie=i,Q=i.child;Q!==null;){for(q=ie=Q;ie!==null;){switch(K=ie,re=K.child,K.tag){case 0:case 11:case 14:case 15:La(4,K,K.return);break;case 1:fs(K,K.return);var oe=K.stateNode;if(typeof oe.componentWillUnmount=="function"){d=K,l=K.return;try{o=d,oe.props=o.memoizedProps,oe.state=o.memoizedState,oe.componentWillUnmount()}catch(se){xt(d,l,se)}}break;case 5:fs(K,K.return);break;case 22:if(K.memoizedState!==null){_0(q);continue}}re!==null?(re.return=K,ie=re):_0(q)}Q=Q.sibling}e:for(Q=null,q=i;;){if(q.tag===5){if(Q===null){Q=q;try{p=q.stateNode,z?(m=p.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(x=q.stateNode,T=q.memoizedProps.style,b=T!=null&&T.hasOwnProperty("display")?T.display:null,x.style.display=cn("display",b))}catch(se){xt(i,i.return,se)}}}else if(q.tag===6){if(Q===null)try{q.stateNode.nodeValue=z?"":q.memoizedProps}catch(se){xt(i,i.return,se)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===i)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===i)break e;for(;q.sibling===null;){if(q.return===null||q.return===i)break e;Q===q&&(Q=null),q=q.return}Q===q&&(Q=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:br(o,i),Or(i),d&4&&g0(i);break;case 21:break;default:br(o,i),Or(i)}}function Or(i){var o=i.flags;if(o&2){try{e:{for(var l=i.return;l!==null;){if(h0(l)){var d=l;break e}l=l.return}throw Error(n(160))}switch(d.tag){case 5:var p=d.stateNode;d.flags&32&&(Ct(p,""),d.flags&=-33);var m=m0(i);np(i,m,p);break;case 3:case 4:var b=d.stateNode.containerInfo,x=m0(i);tp(i,x,b);break;default:throw Error(n(161))}}catch(T){xt(i,i.return,T)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function mC(i,o,l){ie=i,b0(i)}function b0(i,o,l){for(var d=(i.mode&1)!==0;ie!==null;){var p=ie,m=p.child;if(p.tag===22&&d){var b=p.memoizedState!==null||Tc;if(!b){var x=p.alternate,T=x!==null&&x.memoizedState!==null||tn;x=Tc;var z=tn;if(Tc=b,(tn=T)&&!z)for(ie=p;ie!==null;)b=ie,T=b.child,b.tag===22&&b.memoizedState!==null?w0(p):T!==null?(T.return=b,ie=T):w0(p);for(;m!==null;)ie=m,b0(m),m=m.sibling;ie=p,Tc=x,tn=z}S0(i)}else(p.subtreeFlags&8772)!==0&&m!==null?(m.return=p,ie=m):S0(i)}}function S0(i){for(;ie!==null;){var o=ie;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:tn||kc(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!tn)if(l===null)d.componentDidMount();else{var p=o.elementType===o.type?l.memoizedProps:gr(o.type,l.memoizedProps);d.componentDidUpdate(p,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&_g(o,m,d);break;case 3:var b=o.updateQueue;if(b!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}_g(o,b,l)}break;case 5:var x=o.stateNode;if(l===null&&o.flags&4){l=x;var T=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&l.focus();break;case"img":T.src&&(l.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var z=o.alternate;if(z!==null){var Q=z.memoizedState;if(Q!==null){var q=Q.dehydrated;q!==null&&ma(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}tn||o.flags&512&&ep(o)}catch(K){xt(o,o.return,K)}}if(o===i){ie=null;break}if(l=o.sibling,l!==null){l.return=o.return,ie=l;break}ie=o.return}}function _0(i){for(;ie!==null;){var o=ie;if(o===i){ie=null;break}var l=o.sibling;if(l!==null){l.return=o.return,ie=l;break}ie=o.return}}function w0(i){for(;ie!==null;){var o=ie;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{kc(4,o)}catch(T){xt(o,l,T)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var p=o.return;try{d.componentDidMount()}catch(T){xt(o,p,T)}}var m=o.return;try{ep(o)}catch(T){xt(o,m,T)}break;case 5:var b=o.return;try{ep(o)}catch(T){xt(o,b,T)}}}catch(T){xt(o,o.return,T)}if(o===i){ie=null;break}var x=o.sibling;if(x!==null){x.return=o.return,ie=x;break}ie=o.return}}var yC=Math.ceil,Rc=M.ReactCurrentDispatcher,rp=M.ReactCurrentOwner,Zn=M.ReactCurrentBatchConfig,We=0,Wt=null,Pt=null,Yt=0,jn=0,ps=Li(0),$t=0,Fa=null,Io=0,Ec=0,ip=0,$a=null,wn=null,op=0,hs=1/0,ui=null,Ac=!1,sp=null,Vi=null,Pc=!1,Wi=null,Oc=0,ja=0,ap=null,Mc=-1,Dc=0;function dn(){return(We&6)!==0?Rt():Mc!==-1?Mc:Mc=Rt()}function Hi(i){return(i.mode&1)===0?1:(We&2)!==0&&Yt!==0?Yt&-Yt:Zw.transition!==null?(Dc===0&&(Dc=my()),Dc):(i=nt,i!==0||(i=window.event,i=i===void 0?16:xy(i.type)),i)}function Sr(i,o,l,d){if(50<ja)throw ja=0,ap=null,Error(n(185));ua(i,l,d),((We&2)===0||i!==Wt)&&(i===Wt&&((We&2)===0&&(Ec|=l),$t===4&&Gi(i,Yt)),Cn(i,d),l===1&&We===0&&(o.mode&1)===0&&(hs=Rt()+500,lc&&$i()))}function Cn(i,o){var l=i.callbackNode;Z2(i,o);var d=Vl(i,i===Wt?Yt:0);if(d===0)l!==null&&fy(l),i.callbackNode=null,i.callbackPriority=0;else if(o=d&-d,i.callbackPriority!==o){if(l!=null&&fy(l),o===1)i.tag===0?Jw(x0.bind(null,i)):cg(x0.bind(null,i)),Kw(function(){(We&6)===0&&$i()}),l=null;else{switch(yy(d)){case 1:l=$d;break;case 4:l=py;break;case 16:l=$l;break;case 536870912:l=hy;break;default:l=$l}l=O0(l,C0.bind(null,i))}i.callbackPriority=o,i.callbackNode=l}}function C0(i,o){if(Mc=-1,Dc=0,(We&6)!==0)throw Error(n(327));var l=i.callbackNode;if(ms()&&i.callbackNode!==l)return null;var d=Vl(i,i===Wt?Yt:0);if(d===0)return null;if((d&30)!==0||(d&i.expiredLanes)!==0||o)o=Nc(i,d);else{o=d;var p=We;We|=2;var m=T0();(Wt!==i||Yt!==o)&&(ui=null,hs=Rt()+500,ko(i,o));do try{bC();break}catch(x){I0(i,x)}while(!0);If(),Rc.current=m,We=p,Pt!==null?o=0:(Wt=null,Yt=0,o=$t)}if(o!==0){if(o===2&&(p=jd(i),p!==0&&(d=p,o=lp(i,p))),o===1)throw l=Fa,ko(i,0),Gi(i,d),Cn(i,Rt()),l;if(o===6)Gi(i,d);else{if(p=i.current.alternate,(d&30)===0&&!gC(p)&&(o=Nc(i,d),o===2&&(m=jd(i),m!==0&&(d=m,o=lp(i,m))),o===1))throw l=Fa,ko(i,0),Gi(i,d),Cn(i,Rt()),l;switch(i.finishedWork=p,i.finishedLanes=d,o){case 0:case 1:throw Error(n(345));case 2:Ro(i,wn,ui);break;case 3:if(Gi(i,d),(d&130023424)===d&&(o=op+500-Rt(),10<o)){if(Vl(i,0)!==0)break;if(p=i.suspendedLanes,(p&d)!==d){dn(),i.pingedLanes|=i.suspendedLanes&p;break}i.timeoutHandle=hf(Ro.bind(null,i,wn,ui),o);break}Ro(i,wn,ui);break;case 4:if(Gi(i,d),(d&4194240)===d)break;for(o=i.eventTimes,p=-1;0<d;){var b=31-hr(d);m=1<<b,b=o[b],b>p&&(p=b),d&=~m}if(d=p,d=Rt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*yC(d/1960))-d,10<d){i.timeoutHandle=hf(Ro.bind(null,i,wn,ui),d);break}Ro(i,wn,ui);break;case 5:Ro(i,wn,ui);break;default:throw Error(n(329))}}}return Cn(i,Rt()),i.callbackNode===l?C0.bind(null,i):null}function lp(i,o){var l=$a;return i.current.memoizedState.isDehydrated&&(ko(i,o).flags|=256),i=Nc(i,o),i!==2&&(o=wn,wn=l,o!==null&&cp(o)),i}function cp(i){wn===null?wn=i:wn.push.apply(wn,i)}function gC(i){for(var o=i;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var p=l[d],m=p.getSnapshot;p=p.value;try{if(!mr(m(),p))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Gi(i,o){for(o&=~ip,o&=~Ec,i.suspendedLanes|=o,i.pingedLanes&=~o,i=i.expirationTimes;0<o;){var l=31-hr(o),d=1<<l;i[l]=-1,o&=~d}}function x0(i){if((We&6)!==0)throw Error(n(327));ms();var o=Vl(i,0);if((o&1)===0)return Cn(i,Rt()),null;var l=Nc(i,o);if(i.tag!==0&&l===2){var d=jd(i);d!==0&&(o=d,l=lp(i,d))}if(l===1)throw l=Fa,ko(i,0),Gi(i,o),Cn(i,Rt()),l;if(l===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=o,Ro(i,wn,ui),Cn(i,Rt()),null}function up(i,o){var l=We;We|=1;try{return i(o)}finally{We=l,We===0&&(hs=Rt()+500,lc&&$i())}}function To(i){Wi!==null&&Wi.tag===0&&(We&6)===0&&ms();var o=We;We|=1;var l=Zn.transition,d=nt;try{if(Zn.transition=null,nt=1,i)return i()}finally{nt=d,Zn.transition=l,We=o,(We&6)===0&&$i()}}function dp(){jn=ps.current,ht(ps)}function ko(i,o){i.finishedWork=null,i.finishedLanes=0;var l=i.timeoutHandle;if(l!==-1&&(i.timeoutHandle=-1,Yw(l)),Pt!==null)for(l=Pt.return;l!==null;){var d=l;switch(Sf(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&sc();break;case 3:us(),ht(bn),ht(Jt),Mf();break;case 5:Pf(d);break;case 4:us();break;case 13:ht(bt);break;case 19:ht(bt);break;case 10:Tf(d.type._context);break;case 22:case 23:dp()}l=l.return}if(Wt=i,Pt=i=Yi(i.current,null),Yt=jn=o,$t=0,Fa=null,ip=Ec=Io=0,wn=$a=null,wo!==null){for(o=0;o<wo.length;o++)if(l=wo[o],d=l.interleaved,d!==null){l.interleaved=null;var p=d.next,m=l.pending;if(m!==null){var b=m.next;m.next=p,d.next=b}l.pending=d}wo=null}return i}function I0(i,o){do{var l=Pt;try{if(If(),vc.current=wc,bc){for(var d=St.memoizedState;d!==null;){var p=d.queue;p!==null&&(p.pending=null),d=d.next}bc=!1}if(xo=0,Vt=Ft=St=null,Oa=!1,Ma=0,rp.current=null,l===null||l.return===null){$t=1,Fa=o,Pt=null;break}e:{var m=i,b=l.return,x=l,T=o;if(o=Yt,x.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var z=T,Q=x,q=Q.tag;if((Q.mode&1)===0&&(q===0||q===11||q===15)){var K=Q.alternate;K?(Q.updateQueue=K.updateQueue,Q.memoizedState=K.memoizedState,Q.lanes=K.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var re=Xg(b);if(re!==null){re.flags&=-257,qg(re,b,x,m,o),re.mode&1&&Qg(m,z,o),o=re,T=z;var oe=o.updateQueue;if(oe===null){var se=new Set;se.add(T),o.updateQueue=se}else oe.add(T);break e}else{if((o&1)===0){Qg(m,z,o),fp();break e}T=Error(n(426))}}else if(yt&&x.mode&1){var Et=Xg(b);if(Et!==null){(Et.flags&65536)===0&&(Et.flags|=256),qg(Et,b,x,m,o),Cf(ds(T,x));break e}}m=T=ds(T,x),$t!==4&&($t=2),$a===null?$a=[m]:$a.push(m),m=b;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var L=Yg(m,T,o);Sg(m,L);break e;case 1:x=T;var R=m.type,$=m.stateNode;if((m.flags&128)===0&&(typeof R.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Vi===null||!Vi.has($)))){m.flags|=65536,o&=-o,m.lanes|=o;var ee=Kg(m,x,o);Sg(m,ee);break e}}m=m.return}while(m!==null)}R0(l)}catch(ae){o=ae,Pt===l&&l!==null&&(Pt=l=l.return);continue}break}while(!0)}function T0(){var i=Rc.current;return Rc.current=wc,i===null?wc:i}function fp(){($t===0||$t===3||$t===2)&&($t=4),Wt===null||(Io&268435455)===0&&(Ec&268435455)===0||Gi(Wt,Yt)}function Nc(i,o){var l=We;We|=2;var d=T0();(Wt!==i||Yt!==o)&&(ui=null,ko(i,o));do try{vC();break}catch(p){I0(i,p)}while(!0);if(If(),We=l,Rc.current=d,Pt!==null)throw Error(n(261));return Wt=null,Yt=0,$t}function vC(){for(;Pt!==null;)k0(Pt)}function bC(){for(;Pt!==null&&!W2();)k0(Pt)}function k0(i){var o=P0(i.alternate,i,jn);i.memoizedProps=i.pendingProps,o===null?R0(i):Pt=o,rp.current=null}function R0(i){var o=i;do{var l=o.alternate;if(i=o.return,(o.flags&32768)===0){if(l=dC(l,o,jn),l!==null){Pt=l;return}}else{if(l=fC(l,o),l!==null){l.flags&=32767,Pt=l;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{$t=6,Pt=null;return}}if(o=o.sibling,o!==null){Pt=o;return}Pt=o=i}while(o!==null);$t===0&&($t=5)}function Ro(i,o,l){var d=nt,p=Zn.transition;try{Zn.transition=null,nt=1,SC(i,o,l,d)}finally{Zn.transition=p,nt=d}return null}function SC(i,o,l,d){do ms();while(Wi!==null);if((We&6)!==0)throw Error(n(327));l=i.finishedWork;var p=i.finishedLanes;if(l===null)return null;if(i.finishedWork=null,i.finishedLanes=0,l===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var m=l.lanes|l.childLanes;if(ew(i,m),i===Wt&&(Pt=Wt=null,Yt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Pc||(Pc=!0,O0($l,function(){return ms(),null})),m=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||m){m=Zn.transition,Zn.transition=null;var b=nt;nt=1;var x=We;We|=4,rp.current=null,hC(i,l),v0(l,i),jw(ff),Gl=!!df,ff=df=null,i.current=l,mC(l),H2(),We=x,nt=b,Zn.transition=m}else i.current=l;if(Pc&&(Pc=!1,Wi=i,Oc=p),m=i.pendingLanes,m===0&&(Vi=null),K2(l.stateNode),Cn(i,Rt()),o!==null)for(d=i.onRecoverableError,l=0;l<o.length;l++)p=o[l],d(p.value,{componentStack:p.stack,digest:p.digest});if(Ac)throw Ac=!1,i=sp,sp=null,i;return(Oc&1)!==0&&i.tag!==0&&ms(),m=i.pendingLanes,(m&1)!==0?i===ap?ja++:(ja=0,ap=i):ja=0,$i(),null}function ms(){if(Wi!==null){var i=yy(Oc),o=Zn.transition,l=nt;try{if(Zn.transition=null,nt=16>i?16:i,Wi===null)var d=!1;else{if(i=Wi,Wi=null,Oc=0,(We&6)!==0)throw Error(n(331));var p=We;for(We|=4,ie=i.current;ie!==null;){var m=ie,b=m.child;if((ie.flags&16)!==0){var x=m.deletions;if(x!==null){for(var T=0;T<x.length;T++){var z=x[T];for(ie=z;ie!==null;){var Q=ie;switch(Q.tag){case 0:case 11:case 15:La(8,Q,m)}var q=Q.child;if(q!==null)q.return=Q,ie=q;else for(;ie!==null;){Q=ie;var K=Q.sibling,re=Q.return;if(p0(Q),Q===z){ie=null;break}if(K!==null){K.return=re,ie=K;break}ie=re}}}var oe=m.alternate;if(oe!==null){var se=oe.child;if(se!==null){oe.child=null;do{var Et=se.sibling;se.sibling=null,se=Et}while(se!==null)}}ie=m}}if((m.subtreeFlags&2064)!==0&&b!==null)b.return=m,ie=b;else e:for(;ie!==null;){if(m=ie,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:La(9,m,m.return)}var L=m.sibling;if(L!==null){L.return=m.return,ie=L;break e}ie=m.return}}var R=i.current;for(ie=R;ie!==null;){b=ie;var $=b.child;if((b.subtreeFlags&2064)!==0&&$!==null)$.return=b,ie=$;else e:for(b=R;ie!==null;){if(x=ie,(x.flags&2048)!==0)try{switch(x.tag){case 0:case 11:case 15:kc(9,x)}}catch(ae){xt(x,x.return,ae)}if(x===b){ie=null;break e}var ee=x.sibling;if(ee!==null){ee.return=x.return,ie=ee;break e}ie=x.return}}if(We=p,$i(),Rr&&typeof Rr.onPostCommitFiberRoot=="function")try{Rr.onPostCommitFiberRoot(jl,i)}catch{}d=!0}return d}finally{nt=l,Zn.transition=o}}return!1}function E0(i,o,l){o=ds(l,o),o=Yg(i,o,1),i=zi(i,o,1),o=dn(),i!==null&&(ua(i,1,o),Cn(i,o))}function xt(i,o,l){if(i.tag===3)E0(i,i,l);else for(;o!==null;){if(o.tag===3){E0(o,i,l);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Vi===null||!Vi.has(d))){i=ds(l,i),i=Kg(o,i,1),o=zi(o,i,1),i=dn(),o!==null&&(ua(o,1,i),Cn(o,i));break}}o=o.return}}function _C(i,o,l){var d=i.pingCache;d!==null&&d.delete(o),o=dn(),i.pingedLanes|=i.suspendedLanes&l,Wt===i&&(Yt&l)===l&&($t===4||$t===3&&(Yt&130023424)===Yt&&500>Rt()-op?ko(i,0):ip|=l),Cn(i,o)}function A0(i,o){o===0&&((i.mode&1)===0?o=1:(o=Ul,Ul<<=1,(Ul&130023424)===0&&(Ul=4194304)));var l=dn();i=ai(i,o),i!==null&&(ua(i,o,l),Cn(i,l))}function wC(i){var o=i.memoizedState,l=0;o!==null&&(l=o.retryLane),A0(i,l)}function CC(i,o){var l=0;switch(i.tag){case 13:var d=i.stateNode,p=i.memoizedState;p!==null&&(l=p.retryLane);break;case 19:d=i.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(o),A0(i,l)}var P0;P0=function(i,o,l){if(i!==null)if(i.memoizedProps!==o.pendingProps||bn.current)_n=!0;else{if((i.lanes&l)===0&&(o.flags&128)===0)return _n=!1,uC(i,o,l);_n=(i.flags&131072)!==0}else _n=!1,yt&&(o.flags&1048576)!==0&&ug(o,uc,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;Ic(i,o),i=o.pendingProps;var p=rs(o,Jt.current);cs(o,l),p=Bf(null,o,d,i,p,l);var m=Lf();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Sn(d)?(m=!0,ac(o)):m=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Ef(o),p.updater=Cc,o.stateNode=p,p._reactInternals=o,Vf(o,d,i,l),o=Yf(null,o,d,!0,m,l)):(o.tag=0,yt&&m&&bf(o),un(null,o,p,l),o=o.child),o;case 16:d=o.elementType;e:{switch(Ic(i,o),i=o.pendingProps,p=d._init,d=p(d._payload),o.type=d,p=o.tag=IC(d),i=gr(d,i),p){case 0:o=Gf(null,o,d,i,l);break e;case 1:o=r0(null,o,d,i,l);break e;case 11:o=Jg(null,o,d,i,l);break e;case 14:o=Zg(null,o,d,gr(d.type,i),l);break e}throw Error(n(306,d,""))}return o;case 0:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:gr(d,p),Gf(i,o,d,p,l);case 1:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:gr(d,p),r0(i,o,d,p,l);case 3:e:{if(i0(o),i===null)throw Error(n(387));d=o.pendingProps,m=o.memoizedState,p=m.element,bg(i,o),yc(o,d,null,l);var b=o.memoizedState;if(d=b.element,m.isDehydrated)if(m={element:d,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){p=ds(Error(n(423)),o),o=o0(i,o,d,l,p);break e}else if(d!==p){p=ds(Error(n(424)),o),o=o0(i,o,d,l,p);break e}else for($n=Bi(o.stateNode.containerInfo.firstChild),Fn=o,yt=!0,yr=null,l=gg(o,null,d,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ss(),d===p){o=ci(i,o,l);break e}un(i,o,d,l)}o=o.child}return o;case 5:return wg(o),i===null&&wf(o),d=o.type,p=o.pendingProps,m=i!==null?i.memoizedProps:null,b=p.children,pf(d,p)?b=null:m!==null&&pf(d,m)&&(o.flags|=32),n0(i,o),un(i,o,b,l),o.child;case 6:return i===null&&wf(o),null;case 13:return s0(i,o,l);case 4:return Af(o,o.stateNode.containerInfo),d=o.pendingProps,i===null?o.child=as(o,null,d,l):un(i,o,d,l),o.child;case 11:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:gr(d,p),Jg(i,o,d,p,l);case 7:return un(i,o,o.pendingProps,l),o.child;case 8:return un(i,o,o.pendingProps.children,l),o.child;case 12:return un(i,o,o.pendingProps.children,l),o.child;case 10:e:{if(d=o.type._context,p=o.pendingProps,m=o.memoizedProps,b=p.value,dt(pc,d._currentValue),d._currentValue=b,m!==null)if(mr(m.value,b)){if(m.children===p.children&&!bn.current){o=ci(i,o,l);break e}}else for(m=o.child,m!==null&&(m.return=o);m!==null;){var x=m.dependencies;if(x!==null){b=m.child;for(var T=x.firstContext;T!==null;){if(T.context===d){if(m.tag===1){T=li(-1,l&-l),T.tag=2;var z=m.updateQueue;if(z!==null){z=z.shared;var Q=z.pending;Q===null?T.next=T:(T.next=Q.next,Q.next=T),z.pending=T}}m.lanes|=l,T=m.alternate,T!==null&&(T.lanes|=l),kf(m.return,l,o),x.lanes|=l;break}T=T.next}}else if(m.tag===10)b=m.type===o.type?null:m.child;else if(m.tag===18){if(b=m.return,b===null)throw Error(n(341));b.lanes|=l,x=b.alternate,x!==null&&(x.lanes|=l),kf(b,l,o),b=m.sibling}else b=m.child;if(b!==null)b.return=m;else for(b=m;b!==null;){if(b===o){b=null;break}if(m=b.sibling,m!==null){m.return=b.return,b=m;break}b=b.return}m=b}un(i,o,p.children,l),o=o.child}return o;case 9:return p=o.type,d=o.pendingProps.children,cs(o,l),p=qn(p),d=d(p),o.flags|=1,un(i,o,d,l),o.child;case 14:return d=o.type,p=gr(d,o.pendingProps),p=gr(d.type,p),Zg(i,o,d,p,l);case 15:return e0(i,o,o.type,o.pendingProps,l);case 17:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:gr(d,p),Ic(i,o),o.tag=1,Sn(d)?(i=!0,ac(o)):i=!1,cs(o,l),Hg(o,d,p),Vf(o,d,p,l),Yf(null,o,d,!0,i,l);case 19:return l0(i,o,l);case 22:return t0(i,o,l)}throw Error(n(156,o.tag))};function O0(i,o){return dy(i,o)}function xC(i,o,l,d){this.tag=i,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function er(i,o,l,d){return new xC(i,o,l,d)}function pp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function IC(i){if(typeof i=="function")return pp(i)?1:0;if(i!=null){if(i=i.$$typeof,i===H)return 11;if(i===ce)return 14}return 2}function Yi(i,o){var l=i.alternate;return l===null?(l=er(i.tag,o,i.key,i.mode),l.elementType=i.elementType,l.type=i.type,l.stateNode=i.stateNode,l.alternate=i,i.alternate=l):(l.pendingProps=o,l.type=i.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=i.flags&14680064,l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,o=i.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=i.sibling,l.index=i.index,l.ref=i.ref,l}function Bc(i,o,l,d,p,m){var b=2;if(d=i,typeof i=="function")pp(i)&&(b=1);else if(typeof i=="string")b=5;else e:switch(i){case O:return Eo(l.children,p,m,o);case V:b=8,p|=8;break;case Y:return i=er(12,l,o,p|2),i.elementType=Y,i.lanes=m,i;case X:return i=er(13,l,o,p),i.elementType=X,i.lanes=m,i;case le:return i=er(19,l,o,p),i.elementType=le,i.lanes=m,i;case fe:return Lc(l,p,m,o);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case S:b=10;break e;case F:b=9;break e;case H:b=11;break e;case ce:b=14;break e;case de:b=16,d=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return o=er(b,l,o,p),o.elementType=i,o.type=d,o.lanes=m,o}function Eo(i,o,l,d){return i=er(7,i,d,o),i.lanes=l,i}function Lc(i,o,l,d){return i=er(22,i,d,o),i.elementType=fe,i.lanes=l,i.stateNode={isHidden:!1},i}function hp(i,o,l){return i=er(6,i,null,o),i.lanes=l,i}function mp(i,o,l){return o=er(4,i.children!==null?i.children:[],i.key,o),o.lanes=l,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function TC(i,o,l,d,p){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zd(0),this.expirationTimes=zd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zd(0),this.identifierPrefix=d,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function yp(i,o,l,d,p,m,b,x,T){return i=new TC(i,o,l,x,T),o===1?(o=1,m===!0&&(o|=8)):o=0,m=er(3,null,null,o),i.current=m,m.stateNode=i,m.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ef(m),i}function kC(i,o,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:d==null?null:""+d,children:i,containerInfo:o,implementation:l}}function M0(i){if(!i)return Fi;i=i._reactInternals;e:{if(go(i)!==i||i.tag!==1)throw Error(n(170));var o=i;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Sn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(i.tag===1){var l=i.type;if(Sn(l))return ag(i,l,o)}return o}function D0(i,o,l,d,p,m,b,x,T){return i=yp(l,d,!0,i,p,m,b,x,T),i.context=M0(null),l=i.current,d=dn(),p=Hi(l),m=li(d,p),m.callback=o??null,zi(l,m,p),i.current.lanes=p,ua(i,p,d),Cn(i,d),i}function Fc(i,o,l,d){var p=o.current,m=dn(),b=Hi(p);return l=M0(l),o.context===null?o.context=l:o.pendingContext=l,o=li(m,b),o.payload={element:i},d=d===void 0?null:d,d!==null&&(o.callback=d),i=zi(p,o,b),i!==null&&(Sr(i,p,b,m),mc(i,p,b)),b}function $c(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function N0(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<o?l:o}}function gp(i,o){N0(i,o),(i=i.alternate)&&N0(i,o)}function RC(){return null}var B0=typeof reportError=="function"?reportError:function(i){console.error(i)};function vp(i){this._internalRoot=i}jc.prototype.render=vp.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(n(409));Fc(i,o,null,null)},jc.prototype.unmount=vp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;To(function(){Fc(null,i,null,null)}),o[ri]=null}};function jc(i){this._internalRoot=i}jc.prototype.unstable_scheduleHydration=function(i){if(i){var o=by();i={blockedOn:null,target:i,priority:o};for(var l=0;l<Mi.length&&o!==0&&o<Mi[l].priority;l++);Mi.splice(l,0,i),l===0&&wy(i)}};function bp(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function zc(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function L0(){}function EC(i,o,l,d,p){if(p){if(typeof d=="function"){var m=d;d=function(){var z=$c(b);m.call(z)}}var b=D0(o,d,i,0,null,!1,!1,"",L0);return i._reactRootContainer=b,i[ri]=b.current,xa(i.nodeType===8?i.parentNode:i),To(),b}for(;p=i.lastChild;)i.removeChild(p);if(typeof d=="function"){var x=d;d=function(){var z=$c(T);x.call(z)}}var T=yp(i,0,!1,null,null,!1,!1,"",L0);return i._reactRootContainer=T,i[ri]=T.current,xa(i.nodeType===8?i.parentNode:i),To(function(){Fc(o,T,l,d)}),T}function Uc(i,o,l,d,p){var m=l._reactRootContainer;if(m){var b=m;if(typeof p=="function"){var x=p;p=function(){var T=$c(b);x.call(T)}}Fc(o,b,i,p)}else b=EC(l,o,i,p,d);return $c(b)}gy=function(i){switch(i.tag){case 3:var o=i.stateNode;if(o.current.memoizedState.isDehydrated){var l=ca(o.pendingLanes);l!==0&&(Ud(o,l|1),Cn(o,Rt()),(We&6)===0&&(hs=Rt()+500,$i()))}break;case 13:To(function(){var d=ai(i,1);if(d!==null){var p=dn();Sr(d,i,1,p)}}),gp(i,1)}},Vd=function(i){if(i.tag===13){var o=ai(i,134217728);if(o!==null){var l=dn();Sr(o,i,134217728,l)}gp(i,134217728)}},vy=function(i){if(i.tag===13){var o=Hi(i),l=ai(i,o);if(l!==null){var d=dn();Sr(l,i,o,d)}gp(i,o)}},by=function(){return nt},Sy=function(i,o){var l=nt;try{return nt=i,o()}finally{nt=l}},Nd=function(i,o,l){switch(o){case"input":if(Qt(i,l),o=l.name,l.type==="radio"&&o!=null){for(l=i;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var d=l[o];if(d!==i&&d.form===i.form){var p=oc(d);if(!p)throw Error(n(90));fr(d),Qt(d,p)}}}break;case"textarea":ln(i,l);break;case"select":o=l.value,o!=null&&Kn(i,!!l.multiple,o,!1)}},iy=up,oy=To;var AC={usingClientEntryPoint:!1,Events:[ka,ts,oc,ny,ry,up]},za={findFiberByHostInstance:vo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},PC={bundleType:za.bundleType,version:za.version,rendererPackageName:za.rendererPackageName,rendererConfig:za.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=cy(i),i===null?null:i.stateNode},findFiberByHostInstance:za.findFiberByHostInstance||RC,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 Vc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vc.isDisabled&&Vc.supportsFiber)try{jl=Vc.inject(PC),Rr=Vc}catch{}}return xn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AC,xn.createPortal=function(i,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bp(o))throw Error(n(200));return kC(i,o,null,l)},xn.createRoot=function(i,o){if(!bp(i))throw Error(n(299));var l=!1,d="",p=B0;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=yp(i,1,!1,null,null,l,!1,d,p),i[ri]=o.current,xa(i.nodeType===8?i.parentNode:i),new vp(o)},xn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=cy(o),i=i===null?null:i.stateNode,i},xn.flushSync=function(i){return To(i)},xn.hydrate=function(i,o,l){if(!zc(o))throw Error(n(200));return Uc(null,i,o,!0,l)},xn.hydrateRoot=function(i,o,l){if(!bp(i))throw Error(n(405));var d=l!=null&&l.hydratedSources||null,p=!1,m="",b=B0;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(b=l.onRecoverableError)),o=D0(o,null,i,1,l??null,p,!1,m,b),i[ri]=o.current,xa(i),d)for(i=0;i<d.length;i++)l=d[i],p=l._getVersion,p=p(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,p]:o.mutableSourceEagerHydrationData.push(l,p);return new jc(o)},xn.render=function(i,o,l){if(!zc(o))throw Error(n(200));return Uc(null,i,o,!1,l)},xn.unmountComponentAtNode=function(i){if(!zc(i))throw Error(n(40));return i._reactRootContainer?(To(function(){Uc(null,null,i,!1,function(){i._reactRootContainer=null,i[ri]=null})}),!0):!1},xn.unstable_batchedUpdates=up,xn.unstable_renderSubtreeIntoContainer=function(i,o,l,d){if(!zc(l))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return Uc(i,o,l,!1,d)},xn.version="18.3.1-next-f1338f8080-20240426",xn}var H0;function zC(){if(H0)return wp.exports;H0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),wp.exports=jC(),wp.exports}var G0;function UC(){if(G0)return Wc;G0=1;var t=zC();return Wc.createRoot=t.createRoot,Wc.hydrateRoot=t.hydrateRoot,Wc}var VC=UC(),Wa={},nn={},Ip={exports:{}},Je={};/** @license React v16.13.1
41
- * react-is.production.min.js
42
- *
43
- * Copyright (c) Facebook, Inc. and its affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */var Y0;function WC(){if(Y0)return Je;Y0=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,g=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,C=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,I=t?Symbol.for("react.fundamental"):60117,P=t?Symbol.for("react.responder"):60118,D=t?Symbol.for("react.scope"):60119;function B(E){if(typeof E=="object"&&E!==null){var U=E.$$typeof;switch(U){case e:switch(E=E.type,E){case f:case h:case r:case a:case s:case g:return E;default:switch(E=E&&E.$$typeof,E){case u:case y:case C:case _:case c:return E;default:return U}}case n:return U}}}function M(E){return B(E)===h}return Je.AsyncMode=f,Je.ConcurrentMode=h,Je.ContextConsumer=u,Je.ContextProvider=c,Je.Element=e,Je.ForwardRef=y,Je.Fragment=r,Je.Lazy=C,Je.Memo=_,Je.Portal=n,Je.Profiler=a,Je.StrictMode=s,Je.Suspense=g,Je.isAsyncMode=function(E){return M(E)||B(E)===f},Je.isConcurrentMode=M,Je.isContextConsumer=function(E){return B(E)===u},Je.isContextProvider=function(E){return B(E)===c},Je.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Je.isForwardRef=function(E){return B(E)===y},Je.isFragment=function(E){return B(E)===r},Je.isLazy=function(E){return B(E)===C},Je.isMemo=function(E){return B(E)===_},Je.isPortal=function(E){return B(E)===n},Je.isProfiler=function(E){return B(E)===a},Je.isStrictMode=function(E){return B(E)===s},Je.isSuspense=function(E){return B(E)===g},Je.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===h||E===a||E===s||E===g||E===v||typeof E=="object"&&E!==null&&(E.$$typeof===C||E.$$typeof===_||E.$$typeof===c||E.$$typeof===u||E.$$typeof===y||E.$$typeof===I||E.$$typeof===P||E.$$typeof===D||E.$$typeof===w)},Je.typeOf=B,Je}var K0;function HC(){return K0||(K0=1,Ip.exports=WC()),Ip.exports}var Tp,Q0;function GC(){if(Q0)return Tp;Q0=1;var t=HC(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=r,a[t.Memo]=s;function c(C){return t.isMemo(C)?s:a[C.$$typeof]||e}var u=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,v=Object.prototype;function _(C,w,I){if(typeof w!="string"){if(v){var P=g(w);P&&P!==v&&_(C,P,I)}var D=f(w);h&&(D=D.concat(h(w)));for(var B=c(C),M=c(w),E=0;E<D.length;++E){var U=D[E];if(!n[U]&&!(I&&I[U])&&!(M&&M[U])&&!(B&&B[U])){var O=y(w,U);try{u(C,U,O)}catch{}}}}return C}return Tp=_,Tp}var YC=GC();const KC=zh(YC);function ve(t,e,n,r){function s(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function u(y){try{h(r.next(y))}catch(g){c(g)}}function f(y){try{h(r.throw(y))}catch(g){c(g)}}function h(y){y.done?a(y.value):s(y.value).then(u,f)}h((r=r.apply(t,e||[])).next())})}function X0(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pe(t){return this instanceof Pe?(this.v=t,this):new Pe(t)}function Yr(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),s,a=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(v){r[v]&&(s[v]=function(_){return new Promise(function(C,w){a.push([v,_,C,w])>1||u(v,_)})})}function u(v,_){try{f(r[v](_))}catch(C){g(a[0][3],C)}}function f(v){v.value instanceof Pe?Promise.resolve(v.value.v).then(h,y):g(a[0][2],v)}function h(v){u("next",v)}function y(v){u("throw",v)}function g(v,_){v(_),a.shift(),a.length&&u(a[0][0],a[0][1])}}function ru(t){var e,n;return e={},r("next"),r("throw",function(s){throw s}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(s,a){e[s]=t[s]?function(c){return(n=!n)?{value:Pe(t[s](c)),done:!1}:a?a(c):c}:a}}function $o(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof X0=="function"?X0(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=t[a]&&function(c){return new Promise(function(u,f){c=t[a](c),s(u,f,c.done,c.value)})}}function s(a,c,u,f){Promise.resolve(f).then(function(h){a({value:h,done:u})},c)}}const QC=new TextDecoder("utf-8"),eh=t=>QC.decode(t),XC=new TextEncoder,Vh=t=>XC.encode(t),[x4,qC]=(()=>{const t=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw t()}return e.asIntN=()=>{throw t()},e.asUintN=()=>{throw t()},typeof BigInt<"u"?[BigInt,!0]:[e,!1]})(),[_l,I4]=(()=>{const t=()=>{throw new Error("BigInt64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}}return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[e,!1]})(),[wl,T4]=(()=>{const t=()=>{throw new Error("BigUint64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}}return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[e,!1]})(),JC=t=>typeof t=="number",N1=t=>typeof t=="boolean",jt=t=>typeof t=="function",An=t=>t!=null&&Object(t)===t,eo=t=>An(t)&&jt(t.then),Cl=t=>An(t)&&jt(t[Symbol.iterator]),Zs=t=>An(t)&&jt(t[Symbol.asyncIterator]),th=t=>An(t)&&An(t.schema),B1=t=>An(t)&&"done"in t&&"value"in t,L1=t=>An(t)&&jt(t.stat)&&JC(t.fd),F1=t=>An(t)&&Wh(t.body),sd=t=>"_getDOMStream"in t&&"_getNodeStream"in t,ZC=t=>An(t)&&jt(t.abort)&&jt(t.getWriter)&&!sd(t),Wh=t=>An(t)&&jt(t.cancel)&&jt(t.getReader)&&!sd(t),ex=t=>An(t)&&jt(t.end)&&jt(t.write)&&N1(t.writable)&&!sd(t),$1=t=>An(t)&&jt(t.read)&&jt(t.pipe)&&N1(t.readable)&&!sd(t),tx=t=>An(t)&&jt(t.clear)&&jt(t.bytes)&&jt(t.position)&&jt(t.setPosition)&&jt(t.capacity)&&jt(t.getBufferIdentifier)&&jt(t.createLong),Hh=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function nx(t){const e=t[0]?[t[0]]:[];let n,r,s,a;for(let c,u,f=0,h=0,y=t.length;++f<y;){if(c=e[h],u=t[f],!c||!u||c.buffer!==u.buffer||u.byteOffset<c.byteOffset){u&&(e[++h]=u);continue}if({byteOffset:n,byteLength:s}=c,{byteOffset:r,byteLength:a}=u,n+s<r||r+a<n){u&&(e[++h]=u);continue}e[h]=new Uint8Array(c.buffer,n,r-n+a)}return e}function q0(t,e,n=0,r=e.byteLength){const s=t.byteLength,a=new Uint8Array(t.buffer,t.byteOffset,s),c=new Uint8Array(e.buffer,e.byteOffset,Math.min(r,s));return a.set(c,n),t}function qr(t,e){const n=nx(t),r=n.reduce((y,g)=>y+g.byteLength,0);let s,a,c,u=0,f=-1;const h=Math.min(e||Number.POSITIVE_INFINITY,r);for(const y=n.length;++f<y;){if(s=n[f],a=s.subarray(0,Math.min(s.length,h-u)),h<=u+a.length){a.length<s.length?n[f]=s.subarray(a.length):a.length===s.length&&f++,c?q0(c,a,u):c=a;break}q0(c||(c=new Uint8Array(h)),a,u),u+=a.length}return[c||new Uint8Array(0),n.slice(f),r-(c?c.byteLength:0)]}function ct(t,e){let n=B1(e)?e.value:e;return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?(typeof n=="string"&&(n=Vh(n)),n instanceof ArrayBuffer?new t(n):n instanceof Hh?new t(n):tx(n)?ct(t,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new t(0):new t(n.buffer,n.byteOffset,n.byteLength/t.BYTES_PER_ELEMENT):t.from(n)):new t(0)}const Ha=t=>ct(Int32Array,t),Qe=t=>ct(Uint8Array,t),nh=t=>(t.next(),t);function*rx(t,e){const n=function*(s){yield s},r=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Hh?n(e):Cl(e)?e:n(e);return yield*nh(function*(s){let a=null;do a=s.next(yield ct(t,a));while(!a.done)}(r[Symbol.iterator]())),new t}const ix=t=>rx(Uint8Array,t);function j1(t,e){return Yr(this,arguments,function*(){if(eo(e))return yield Pe(yield Pe(yield*ru($o(j1(t,yield Pe(e))))));const r=function(c){return Yr(this,arguments,function*(){yield yield Pe(yield Pe(c))})},s=function(c){return Yr(this,arguments,function*(){yield Pe(yield*ru($o(nh(function*(u){let f=null;do f=u.next(yield f==null?void 0:f.value);while(!f.done)}(c[Symbol.iterator]())))))})},a=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Hh?r(e):Cl(e)?s(e):Zs(e)?e:r(e);return yield Pe(yield*ru($o(nh(function(c){return Yr(this,arguments,function*(){let u=null;do u=yield Pe(c.next(yield yield Pe(ct(t,u))));while(!u.done)})}(a[Symbol.asyncIterator]()))))),yield Pe(new t)})}const ox=t=>j1(Uint8Array,t);function Gh(t,e,n){if(t!==0){n=n.slice(0,e+1);for(let r=-1;++r<=e;)n[r]+=t}return n}function sx(t,e){let n=0;const r=t.length;if(r!==e.length)return!1;if(r>0)do if(t[n]!==e[n])return!1;while(++n<r);return!0}const nr={fromIterable(t){return Hc(ax(t))},fromAsyncIterable(t){return Hc(lx(t))},fromDOMStream(t){return Hc(cx(t))},fromNodeStream(t){return Hc(dx(t))},toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},Hc=t=>(t.next(),t);function*ax(t){let e,n=!1,r=[],s,a,c,u=0;function f(){return a==="peek"?qr(r,c)[0]:([s,r,u]=qr(r,c),s)}({cmd:a,size:c}=yield null);const h=ix(t)[Symbol.iterator]();try{do if({done:e,value:s}=Number.isNaN(c-u)?h.next():h.next(c-u),!e&&s.byteLength>0&&(r.push(s),u+=s.byteLength),e||c<=u)do({cmd:a,size:c}=yield f());while(c<u);while(!e)}catch(y){(n=!0)&&typeof h.throw=="function"&&h.throw(y)}finally{n===!1&&typeof h.return=="function"&&h.return(null)}return null}function lx(t){return Yr(this,arguments,function*(){let n,r=!1,s=[],a,c,u,f=0;function h(){return c==="peek"?qr(s,u)[0]:([a,s,f]=qr(s,u),a)}({cmd:c,size:u}=yield yield Pe(null));const y=ox(t)[Symbol.asyncIterator]();try{do if({done:n,value:a}=Number.isNaN(u-f)?yield Pe(y.next()):yield Pe(y.next(u-f)),!n&&a.byteLength>0&&(s.push(a),f+=a.byteLength),n||u<=f)do({cmd:c,size:u}=yield yield Pe(h()));while(u<f);while(!n)}catch(g){(r=!0)&&typeof y.throw=="function"&&(yield Pe(y.throw(g)))}finally{r===!1&&typeof y.return=="function"&&(yield Pe(y.return(new Uint8Array(0))))}return yield Pe(null)})}function cx(t){return Yr(this,arguments,function*(){let n=!1,r=!1,s=[],a,c,u,f=0;function h(){return c==="peek"?qr(s,u)[0]:([a,s,f]=qr(s,u),a)}({cmd:c,size:u}=yield yield Pe(null));const y=new ux(t);try{do if({done:n,value:a}=Number.isNaN(u-f)?yield Pe(y.read()):yield Pe(y.read(u-f)),!n&&a.byteLength>0&&(s.push(Qe(a)),f+=a.byteLength),n||u<=f)do({cmd:c,size:u}=yield yield Pe(h()));while(u<f);while(!n)}catch(g){(r=!0)&&(yield Pe(y.cancel(g)))}finally{r===!1?yield Pe(y.cancel()):t.locked&&y.releaseLock()}return yield Pe(null)})}class ux{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return ve(this,void 0,void 0,function*(){const{reader:n,source:r}=this;n&&(yield n.cancel(e).catch(()=>{})),r&&r.locked&&this.releaseLock()})}read(e){return ve(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};const n=yield this.reader.read();return!n.done&&(n.value=Qe(n)),n})}}const kp=(t,e)=>{const n=s=>r([e,s]);let r;return[e,n,new Promise(s=>(r=s)&&t.once(e,n))]};function dx(t){return Yr(this,arguments,function*(){const n=[];let r="error",s=!1,a=null,c,u,f=0,h=[],y;function g(){return c==="peek"?qr(h,u)[0]:([y,h,f]=qr(h,u),y)}if({cmd:c,size:u}=yield yield Pe(null),t.isTTY)return yield yield Pe(new Uint8Array(0)),yield Pe(null);try{n[0]=kp(t,"end"),n[1]=kp(t,"error");do{if(n[2]=kp(t,"readable"),[r,a]=yield Pe(Promise.race(n.map(_=>_[2]))),r==="error")break;if((s=r==="end")||(Number.isFinite(u-f)?(y=Qe(t.read(u-f)),y.byteLength<u-f&&(y=Qe(t.read()))):y=Qe(t.read()),y.byteLength>0&&(h.push(y),f+=y.byteLength)),s||u<=f)do({cmd:c,size:u}=yield yield Pe(g()));while(u<f)}while(!s)}finally{yield Pe(v(n,r==="error"?a:null))}return yield Pe(null);function v(_,C){return y=h=null,new Promise((w,I)=>{for(const[P,D]of _)t.off(P,D);try{const P=t.destroy;P&&P.call(t,C),C=void 0}catch(P){C=P||C}finally{C!=null?I(C):w()}})}})}var Vn;(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(Vn||(Vn={}));var Gn;(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(Gn||(Gn={}));var En;(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(En||(En={}));var ki;(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(ki||(ki={}));var Xe;(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(Xe||(Xe={}));var to;(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(to||(to={}));var Ze;(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(Ze||(Ze={}));var N;(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth"})(N||(N={}));var mi;(function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"})(mi||(mi={}));const fx=void 0;function ol(t){if(t===null)return"null";if(t===fx)return"undefined";switch(typeof t){case"number":return`${t}`;case"bigint":return`${t}`;case"string":return`"${t}"`}return typeof t[Symbol.toPrimitive]=="function"?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof _l||t instanceof wl?`[${[...t].map(e=>ol(e))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(e,n)=>typeof n=="bigint"?`${n}`:n)}const px=Symbol.for("isArrowBigNum");function kr(t,...e){return e.length===0?Object.setPrototypeOf(ct(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}kr.prototype[px]=!0;kr.prototype.toJSON=function(){return`"${jo(this)}"`};kr.prototype.valueOf=function(){return z1(this)};kr.prototype.toString=function(){return jo(this)};kr.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return z1(this);case"string":return jo(this);case"default":return rh(this)}return jo(this)};function Os(...t){return kr.apply(this,t)}function Ms(...t){return kr.apply(this,t)}function sl(...t){return kr.apply(this,t)}Object.setPrototypeOf(Os.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(Ms.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(sl.prototype,Object.create(Uint32Array.prototype));Object.assign(Os.prototype,kr.prototype,{constructor:Os,signed:!0,TypedArray:Int32Array,BigIntArray:_l});Object.assign(Ms.prototype,kr.prototype,{constructor:Ms,signed:!1,TypedArray:Uint32Array,BigIntArray:wl});Object.assign(sl.prototype,kr.prototype,{constructor:sl,signed:!0,TypedArray:Uint32Array,BigIntArray:wl});function z1(t){const{buffer:e,byteOffset:n,length:r,signed:s}=t,a=new wl(e,n,r),c=s&&a[a.length-1]&BigInt(1)<<BigInt(63);let u=BigInt(c?1:0),f=BigInt(0);if(c){for(const h of a)u+=~h*(BigInt(1)<<BigInt(32)*f++);u*=BigInt(-1)}else for(const h of a)u+=h*(BigInt(1)<<BigInt(32)*f++);return u}let jo,rh;qC?(rh=t=>t.byteLength===8?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:Rp(t),jo=t=>t.byteLength===8?`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`:Rp(t)):(jo=Rp,rh=jo);function Rp(t){let e="";const n=new Uint32Array(2);let r=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);const s=new Uint32Array((r=new Uint16Array(r).reverse()).buffer);let a=-1;const c=r.length-1;do{for(n[0]=r[a=0];a<c;)r[a++]=n[1]=n[0]/10,n[0]=(n[0]-n[1]*10<<16)+r[a];r[a]=n[1]=n[0]/10,n[0]=n[0]-n[1]*10,e=`${n[0]}${e}`}while(s[0]||s[1]||s[2]||s[3]);return e??"0"}class Yh{static new(e,n){switch(n){case!0:return new Os(e);case!1:return new Ms(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case _l:return new Os(e)}return e.byteLength===16?new sl(e):new Ms(e)}static signed(e){return new Os(e)}static unsigned(e){return new Ms(e)}static decimal(e){return new sl(e)}constructor(e,n){return Yh.new(e,n)}}var U1,V1,W1,H1,G1,Y1,K1,Q1,X1,q1,J1,Z1,eb,tb,nb,rb,ib,ob,sb;class be{static isNull(e){return(e==null?void 0:e.typeId)===N.Null}static isInt(e){return(e==null?void 0:e.typeId)===N.Int}static isFloat(e){return(e==null?void 0:e.typeId)===N.Float}static isBinary(e){return(e==null?void 0:e.typeId)===N.Binary}static isUtf8(e){return(e==null?void 0:e.typeId)===N.Utf8}static isBool(e){return(e==null?void 0:e.typeId)===N.Bool}static isDecimal(e){return(e==null?void 0:e.typeId)===N.Decimal}static isDate(e){return(e==null?void 0:e.typeId)===N.Date}static isTime(e){return(e==null?void 0:e.typeId)===N.Time}static isTimestamp(e){return(e==null?void 0:e.typeId)===N.Timestamp}static isInterval(e){return(e==null?void 0:e.typeId)===N.Interval}static isList(e){return(e==null?void 0:e.typeId)===N.List}static isStruct(e){return(e==null?void 0:e.typeId)===N.Struct}static isUnion(e){return(e==null?void 0:e.typeId)===N.Union}static isFixedSizeBinary(e){return(e==null?void 0:e.typeId)===N.FixedSizeBinary}static isFixedSizeList(e){return(e==null?void 0:e.typeId)===N.FixedSizeList}static isMap(e){return(e==null?void 0:e.typeId)===N.Map}static isDictionary(e){return(e==null?void 0:e.typeId)===N.Dictionary}static isDenseUnion(e){return be.isUnion(e)&&e.mode===Gn.Dense}static isSparseUnion(e){return be.isUnion(e)&&e.mode===Gn.Sparse}get typeId(){return N.NONE}}U1=Symbol.toStringTag;be[U1]=(t=>(t.children=null,t.ArrayType=Array,t[Symbol.toStringTag]="DataType"))(be.prototype);let no=class extends be{toString(){return"Null"}get typeId(){return N.Null}};V1=Symbol.toStringTag;no[V1]=(t=>t[Symbol.toStringTag]="Null")(no.prototype);class ro extends be{constructor(e,n){super(),this.isSigned=e,this.bitWidth=n}get typeId(){return N.Int}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?_l:wl}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}W1=Symbol.toStringTag;ro[W1]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(ro.prototype);class al extends ro{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(al.prototype,"ArrayType",{value:Int32Array});class ll extends be{constructor(e){super(),this.precision=e}get typeId(){return N.Float}get ArrayType(){switch(this.precision){case En.HALF:return Uint16Array;case En.SINGLE:return Float32Array;case En.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}H1=Symbol.toStringTag;ll[H1]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(ll.prototype);let Cu=class extends be{constructor(){super()}get typeId(){return N.Binary}toString(){return"Binary"}};G1=Symbol.toStringTag;Cu[G1]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(Cu.prototype);let xu=class extends be{constructor(){super()}get typeId(){return N.Utf8}toString(){return"Utf8"}};Y1=Symbol.toStringTag;xu[Y1]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(xu.prototype);let Iu=class extends be{constructor(){super()}get typeId(){return N.Bool}toString(){return"Bool"}};K1=Symbol.toStringTag;Iu[K1]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Iu.prototype);let Tu=class extends be{constructor(e,n,r=128){super(),this.scale=e,this.precision=n,this.bitWidth=r}get typeId(){return N.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};Q1=Symbol.toStringTag;Tu[Q1]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(Tu.prototype);class ku extends be{constructor(e){super(),this.unit=e}get typeId(){return N.Date}toString(){return`Date${(this.unit+1)*32}<${ki[this.unit]}>`}}X1=Symbol.toStringTag;ku[X1]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(ku.prototype);class cl extends be{constructor(e,n){super(),this.unit=e,this.bitWidth=n}get typeId(){return N.Time}toString(){return`Time${this.bitWidth}<${Xe[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return _l}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}q1=Symbol.toStringTag;cl[q1]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(cl.prototype);class Ru extends be{constructor(e,n){super(),this.unit=e,this.timezone=n}get typeId(){return N.Timestamp}toString(){return`Timestamp<${Xe[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}J1=Symbol.toStringTag;Ru[J1]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(Ru.prototype);class Eu extends be{constructor(e){super(),this.unit=e}get typeId(){return N.Interval}toString(){return`Interval<${to[this.unit]}>`}}Z1=Symbol.toStringTag;Eu[Z1]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(Eu.prototype);let Au=class extends be{constructor(e){super(),this.children=[e]}get typeId(){return N.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};eb=Symbol.toStringTag;Au[eb]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(Au.prototype);class mn extends be{constructor(e){super(),this.children=e}get typeId(){return N.Struct}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}tb=Symbol.toStringTag;mn[tb]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(mn.prototype);class Pu extends be{constructor(e,n,r){super(),this.mode=e,this.children=r,this.typeIds=n=Int32Array.from(n),this.typeIdToChildIndex=n.reduce((s,a,c)=>(s[a]=c)&&s||s,Object.create(null))}get typeId(){return N.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}}nb=Symbol.toStringTag;Pu[nb]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(Pu.prototype);let Ou=class extends be{constructor(e){super(),this.byteWidth=e}get typeId(){return N.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};rb=Symbol.toStringTag;Ou[rb]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(Ou.prototype);let Mu=class extends be{constructor(e,n){super(),this.listSize=e,this.children=[n]}get typeId(){return N.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};ib=Symbol.toStringTag;Mu[ib]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(Mu.prototype);class Du extends be{constructor(e,n=!1){super(),this.children=[e],this.keysSorted=n}get typeId(){return N.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}ob=Symbol.toStringTag;Du[ob]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(Du.prototype);const hx=(t=>()=>++t)(-1);class zs extends be{constructor(e,n,r,s){super(),this.indices=n,this.dictionary=e,this.isOrdered=s||!1,this.id=r==null?hx():typeof r=="number"?r:r.low}get typeId(){return N.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}sb=Symbol.toStringTag;zs[sb]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(zs.prototype);function yi(t){const e=t;switch(t.typeId){case N.Decimal:return t.bitWidth/32;case N.Timestamp:return 2;case N.Date:return 1+e.unit;case N.Interval:return 1+e.unit;case N.FixedSizeList:return e.listSize;case N.FixedSizeBinary:return e.byteWidth;default:return 1}}class Ve{visitMany(e,...n){return e.map((r,s)=>this.visit(r,...n.map(a=>a[s])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,n=!0){return mx(this,e,n)}getVisitFnByTypeId(e,n=!0){return Ts(this,e,n)}visitNull(e,...n){return null}visitBool(e,...n){return null}visitInt(e,...n){return null}visitFloat(e,...n){return null}visitUtf8(e,...n){return null}visitBinary(e,...n){return null}visitFixedSizeBinary(e,...n){return null}visitDate(e,...n){return null}visitTimestamp(e,...n){return null}visitTime(e,...n){return null}visitDecimal(e,...n){return null}visitList(e,...n){return null}visitStruct(e,...n){return null}visitUnion(e,...n){return null}visitDictionary(e,...n){return null}visitInterval(e,...n){return null}visitFixedSizeList(e,...n){return null}visitMap(e,...n){return null}}function mx(t,e,n=!0){return typeof e=="number"?Ts(t,e,n):typeof e=="string"&&e in N?Ts(t,N[e],n):e&&e instanceof be?Ts(t,J0(e),n):e!=null&&e.type&&e.type instanceof be?Ts(t,J0(e.type),n):Ts(t,N.NONE,n)}function Ts(t,e,n=!0){let r=null;switch(e){case N.Null:r=t.visitNull;break;case N.Bool:r=t.visitBool;break;case N.Int:r=t.visitInt;break;case N.Int8:r=t.visitInt8||t.visitInt;break;case N.Int16:r=t.visitInt16||t.visitInt;break;case N.Int32:r=t.visitInt32||t.visitInt;break;case N.Int64:r=t.visitInt64||t.visitInt;break;case N.Uint8:r=t.visitUint8||t.visitInt;break;case N.Uint16:r=t.visitUint16||t.visitInt;break;case N.Uint32:r=t.visitUint32||t.visitInt;break;case N.Uint64:r=t.visitUint64||t.visitInt;break;case N.Float:r=t.visitFloat;break;case N.Float16:r=t.visitFloat16||t.visitFloat;break;case N.Float32:r=t.visitFloat32||t.visitFloat;break;case N.Float64:r=t.visitFloat64||t.visitFloat;break;case N.Utf8:r=t.visitUtf8;break;case N.Binary:r=t.visitBinary;break;case N.FixedSizeBinary:r=t.visitFixedSizeBinary;break;case N.Date:r=t.visitDate;break;case N.DateDay:r=t.visitDateDay||t.visitDate;break;case N.DateMillisecond:r=t.visitDateMillisecond||t.visitDate;break;case N.Timestamp:r=t.visitTimestamp;break;case N.TimestampSecond:r=t.visitTimestampSecond||t.visitTimestamp;break;case N.TimestampMillisecond:r=t.visitTimestampMillisecond||t.visitTimestamp;break;case N.TimestampMicrosecond:r=t.visitTimestampMicrosecond||t.visitTimestamp;break;case N.TimestampNanosecond:r=t.visitTimestampNanosecond||t.visitTimestamp;break;case N.Time:r=t.visitTime;break;case N.TimeSecond:r=t.visitTimeSecond||t.visitTime;break;case N.TimeMillisecond:r=t.visitTimeMillisecond||t.visitTime;break;case N.TimeMicrosecond:r=t.visitTimeMicrosecond||t.visitTime;break;case N.TimeNanosecond:r=t.visitTimeNanosecond||t.visitTime;break;case N.Decimal:r=t.visitDecimal;break;case N.List:r=t.visitList;break;case N.Struct:r=t.visitStruct;break;case N.Union:r=t.visitUnion;break;case N.DenseUnion:r=t.visitDenseUnion||t.visitUnion;break;case N.SparseUnion:r=t.visitSparseUnion||t.visitUnion;break;case N.Dictionary:r=t.visitDictionary;break;case N.Interval:r=t.visitInterval;break;case N.IntervalDayTime:r=t.visitIntervalDayTime||t.visitInterval;break;case N.IntervalYearMonth:r=t.visitIntervalYearMonth||t.visitInterval;break;case N.FixedSizeList:r=t.visitFixedSizeList;break;case N.Map:r=t.visitMap;break}if(typeof r=="function")return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${N[e]}'`)}function J0(t){switch(t.typeId){case N.Null:return N.Null;case N.Int:{const{bitWidth:e,isSigned:n}=t;switch(e){case 8:return n?N.Int8:N.Uint8;case 16:return n?N.Int16:N.Uint16;case 32:return n?N.Int32:N.Uint32;case 64:return n?N.Int64:N.Uint64}return N.Int}case N.Float:switch(t.precision){case En.HALF:return N.Float16;case En.SINGLE:return N.Float32;case En.DOUBLE:return N.Float64}return N.Float;case N.Binary:return N.Binary;case N.Utf8:return N.Utf8;case N.Bool:return N.Bool;case N.Decimal:return N.Decimal;case N.Time:switch(t.unit){case Xe.SECOND:return N.TimeSecond;case Xe.MILLISECOND:return N.TimeMillisecond;case Xe.MICROSECOND:return N.TimeMicrosecond;case Xe.NANOSECOND:return N.TimeNanosecond}return N.Time;case N.Timestamp:switch(t.unit){case Xe.SECOND:return N.TimestampSecond;case Xe.MILLISECOND:return N.TimestampMillisecond;case Xe.MICROSECOND:return N.TimestampMicrosecond;case Xe.NANOSECOND:return N.TimestampNanosecond}return N.Timestamp;case N.Date:switch(t.unit){case ki.DAY:return N.DateDay;case ki.MILLISECOND:return N.DateMillisecond}return N.Date;case N.Interval:switch(t.unit){case to.DAY_TIME:return N.IntervalDayTime;case to.YEAR_MONTH:return N.IntervalYearMonth}return N.Interval;case N.Map:return N.Map;case N.List:return N.List;case N.Struct:return N.Struct;case N.Union:switch(t.mode){case Gn.Dense:return N.DenseUnion;case Gn.Sparse:return N.SparseUnion}return N.Union;case N.FixedSizeBinary:return N.FixedSizeBinary;case N.FixedSizeList:return N.FixedSizeList;case N.Dictionary:return N.Dictionary}throw new Error(`Unrecognized type '${N[t.typeId]}'`)}Ve.prototype.visitInt8=null;Ve.prototype.visitInt16=null;Ve.prototype.visitInt32=null;Ve.prototype.visitInt64=null;Ve.prototype.visitUint8=null;Ve.prototype.visitUint16=null;Ve.prototype.visitUint32=null;Ve.prototype.visitUint64=null;Ve.prototype.visitFloat16=null;Ve.prototype.visitFloat32=null;Ve.prototype.visitFloat64=null;Ve.prototype.visitDateDay=null;Ve.prototype.visitDateMillisecond=null;Ve.prototype.visitTimestampSecond=null;Ve.prototype.visitTimestampMillisecond=null;Ve.prototype.visitTimestampMicrosecond=null;Ve.prototype.visitTimestampNanosecond=null;Ve.prototype.visitTimeSecond=null;Ve.prototype.visitTimeMillisecond=null;Ve.prototype.visitTimeMicrosecond=null;Ve.prototype.visitTimeNanosecond=null;Ve.prototype.visitDenseUnion=null;Ve.prototype.visitSparseUnion=null;Ve.prototype.visitIntervalDayTime=null;Ve.prototype.visitIntervalYearMonth=null;const ab=new Float64Array(1),ys=new Uint32Array(ab.buffer);function lb(t){const e=(t&31744)>>10,n=(t&1023)/1024,r=Math.pow(-1,(t&32768)>>15);switch(e){case 31:return r*(n?Number.NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,e-15)*(1+n)}function yx(t){if(t!==t)return 32256;ab[0]=t;const e=(ys[1]&2147483648)>>16&65535;let n=ys[1]&2146435072,r=0;return n>=1089470464?ys[0]>0?n=31744:(n=(n&2080374784)>>16,r=(ys[1]&1048575)>>10):n<=1056964608?(r=1048576+(ys[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(ys[1]&1048575)+512>>10),e|n|r&65535}class Te extends Ve{}function Ee(t){return(e,n,r)=>{if(e.setValid(n,r!=null))return t(e,n,r)}}const gx=(t,e,n)=>{t[e]=Math.trunc(n/864e5)},Kh=(t,e,n)=>{t[e]=Math.trunc(n%4294967296),t[e+1]=Math.trunc(n/4294967296)},vx=(t,e,n)=>{t[e]=Math.trunc(n*1e3%4294967296),t[e+1]=Math.trunc(n*1e3/4294967296)},bx=(t,e,n)=>{t[e]=Math.trunc(n*1e6%4294967296),t[e+1]=Math.trunc(n*1e6/4294967296)},cb=(t,e,n,r)=>{if(n+1<e.length){const{[n]:s,[n+1]:a}=e;t.set(r.subarray(0,a-s),s)}},Sx=({offset:t,values:e},n,r)=>{const s=t+n;r?e[s>>3]|=1<<s%8:e[s>>3]&=~(1<<s%8)},Ri=({values:t},e,n)=>{t[e]=n},Qh=({values:t},e,n)=>{t[e]=n},ub=({values:t},e,n)=>{t[e]=yx(n)},_x=(t,e,n)=>{switch(t.type.precision){case En.HALF:return ub(t,e,n);case En.SINGLE:case En.DOUBLE:return Qh(t,e,n)}},db=({values:t},e,n)=>{gx(t,e,n.valueOf())},fb=({values:t},e,n)=>{Kh(t,e*2,n.valueOf())},wx=({stride:t,values:e},n,r)=>{e.set(r.subarray(0,t),t*n)},Cx=({values:t,valueOffsets:e},n,r)=>cb(t,e,n,r),xx=({values:t,valueOffsets:e},n,r)=>{cb(t,e,n,Vh(r))},Ix=(t,e,n)=>{t.type.unit===ki.DAY?db(t,e,n):fb(t,e,n)},pb=({values:t},e,n)=>Kh(t,e*2,n/1e3),hb=({values:t},e,n)=>Kh(t,e*2,n),mb=({values:t},e,n)=>vx(t,e*2,n),yb=({values:t},e,n)=>bx(t,e*2,n),Tx=(t,e,n)=>{switch(t.type.unit){case Xe.SECOND:return pb(t,e,n);case Xe.MILLISECOND:return hb(t,e,n);case Xe.MICROSECOND:return mb(t,e,n);case Xe.NANOSECOND:return yb(t,e,n)}},gb=({values:t},e,n)=>{t[e]=n},vb=({values:t},e,n)=>{t[e]=n},bb=({values:t},e,n)=>{t[e]=n},Sb=({values:t},e,n)=>{t[e]=n},kx=(t,e,n)=>{switch(t.type.unit){case Xe.SECOND:return gb(t,e,n);case Xe.MILLISECOND:return vb(t,e,n);case Xe.MICROSECOND:return bb(t,e,n);case Xe.NANOSECOND:return Sb(t,e,n)}},Rx=({values:t,stride:e},n,r)=>{t.set(r.subarray(0,e),e*n)},Ex=(t,e,n)=>{const r=t.children[0],s=t.valueOffsets,a=lr.getVisitFn(r);if(Array.isArray(n))for(let c=-1,u=s[e],f=s[e+1];u<f;)a(r,u++,n[++c]);else for(let c=-1,u=s[e],f=s[e+1];u<f;)a(r,u++,n.get(++c))},Ax=(t,e,n)=>{const r=t.children[0],{valueOffsets:s}=t,a=lr.getVisitFn(r);let{[e]:c,[e+1]:u}=s;const f=n instanceof Map?n.entries():Object.entries(n);for(const h of f)if(a(r,c,h),++c>=u)break},Px=(t,e)=>(n,r,s,a)=>r&&n(r,t,e[a]),Ox=(t,e)=>(n,r,s,a)=>r&&n(r,t,e.get(a)),Mx=(t,e)=>(n,r,s,a)=>r&&n(r,t,e.get(s.name)),Dx=(t,e)=>(n,r,s,a)=>r&&n(r,t,e[s.name]),Nx=(t,e,n)=>{const r=t.type.children.map(a=>lr.getVisitFn(a.type)),s=n instanceof Map?Mx(e,n):n instanceof et?Ox(e,n):Array.isArray(n)?Px(e,n):Dx(e,n);t.type.children.forEach((a,c)=>s(r[c],t.children[c],a,c))},Bx=(t,e,n)=>{t.type.mode===Gn.Dense?_b(t,e,n):wb(t,e,n)},_b=(t,e,n)=>{const r=t.type.typeIdToChildIndex[t.typeIds[e]],s=t.children[r];lr.visit(s,t.valueOffsets[e],n)},wb=(t,e,n)=>{const r=t.type.typeIdToChildIndex[t.typeIds[e]],s=t.children[r];lr.visit(s,e,n)},Lx=(t,e,n)=>{var r;(r=t.dictionary)===null||r===void 0||r.set(t.values[e],n)},Fx=(t,e,n)=>{t.type.unit===to.DAY_TIME?Cb(t,e,n):xb(t,e,n)},Cb=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},xb=({values:t},e,n)=>{t[e]=n[0]*12+n[1]%12},$x=(t,e,n)=>{const{stride:r}=t,s=t.children[0],a=lr.getVisitFn(s);if(Array.isArray(n))for(let c=-1,u=e*r;++c<r;)a(s,u+c,n[c]);else for(let c=-1,u=e*r;++c<r;)a(s,u+c,n.get(c))};Te.prototype.visitBool=Ee(Sx);Te.prototype.visitInt=Ee(Ri);Te.prototype.visitInt8=Ee(Ri);Te.prototype.visitInt16=Ee(Ri);Te.prototype.visitInt32=Ee(Ri);Te.prototype.visitInt64=Ee(Ri);Te.prototype.visitUint8=Ee(Ri);Te.prototype.visitUint16=Ee(Ri);Te.prototype.visitUint32=Ee(Ri);Te.prototype.visitUint64=Ee(Ri);Te.prototype.visitFloat=Ee(_x);Te.prototype.visitFloat16=Ee(ub);Te.prototype.visitFloat32=Ee(Qh);Te.prototype.visitFloat64=Ee(Qh);Te.prototype.visitUtf8=Ee(xx);Te.prototype.visitBinary=Ee(Cx);Te.prototype.visitFixedSizeBinary=Ee(wx);Te.prototype.visitDate=Ee(Ix);Te.prototype.visitDateDay=Ee(db);Te.prototype.visitDateMillisecond=Ee(fb);Te.prototype.visitTimestamp=Ee(Tx);Te.prototype.visitTimestampSecond=Ee(pb);Te.prototype.visitTimestampMillisecond=Ee(hb);Te.prototype.visitTimestampMicrosecond=Ee(mb);Te.prototype.visitTimestampNanosecond=Ee(yb);Te.prototype.visitTime=Ee(kx);Te.prototype.visitTimeSecond=Ee(gb);Te.prototype.visitTimeMillisecond=Ee(vb);Te.prototype.visitTimeMicrosecond=Ee(bb);Te.prototype.visitTimeNanosecond=Ee(Sb);Te.prototype.visitDecimal=Ee(Rx);Te.prototype.visitList=Ee(Ex);Te.prototype.visitStruct=Ee(Nx);Te.prototype.visitUnion=Ee(Bx);Te.prototype.visitDenseUnion=Ee(_b);Te.prototype.visitSparseUnion=Ee(wb);Te.prototype.visitDictionary=Ee(Lx);Te.prototype.visitInterval=Ee(Fx);Te.prototype.visitIntervalDayTime=Ee(Cb);Te.prototype.visitIntervalYearMonth=Ee(xb);Te.prototype.visitFixedSizeList=Ee($x);Te.prototype.visitMap=Ee(Ax);const lr=new Te,_r=Symbol.for("parent"),Ds=Symbol.for("rowIndex");class Xh{constructor(e,n){return this[_r]=e,this[Ds]=n,new Proxy(this,new zx)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Ds],n=this[_r],r=n.type.children,s={};for(let a=-1,c=r.length;++a<c;)s[r[a].name]=Pn.visit(n.children[a],e);return s}toString(){return`{${[...this].map(([e,n])=>`${ol(e)}: ${ol(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new jx(this[_r],this[Ds])}}class jx{constructor(e,n){this.childIndex=0,this.children=e.children,this.rowIndex=n,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,Pn.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Xh.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[_r]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Ds]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class zx{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[_r].type.children.map(n=>n.name)}has(e,n){return e[_r].type.children.findIndex(r=>r.name===n)!==-1}getOwnPropertyDescriptor(e,n){if(e[_r].type.children.findIndex(r=>r.name===n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,n){if(Reflect.has(e,n))return e[n];const r=e[_r].type.children.findIndex(s=>s.name===n);if(r!==-1){const s=Pn.visit(e[_r].children[r],e[Ds]);return Reflect.set(e,n,s),s}}set(e,n,r){const s=e[_r].type.children.findIndex(a=>a.name===n);return s!==-1?(lr.visit(e[_r].children[s],e[Ds],r),Reflect.set(e,n,r)):Reflect.has(e,n)||typeof n=="symbol"?Reflect.set(e,n,r):!1}}class Se extends Ve{}function ke(t){return(e,n)=>e.getValid(n)?t(e,n):null}const Ux=(t,e)=>864e5*t[e],qh=(t,e)=>4294967296*t[e+1]+(t[e]>>>0),Vx=(t,e)=>4294967296*(t[e+1]/1e3)+(t[e]>>>0)/1e3,Wx=(t,e)=>4294967296*(t[e+1]/1e6)+(t[e]>>>0)/1e6,Ib=t=>new Date(t),Hx=(t,e)=>Ib(Ux(t,e)),Gx=(t,e)=>Ib(qh(t,e)),Yx=(t,e)=>null,Tb=(t,e,n)=>{if(n+1>=e.length)return null;const r=e[n],s=e[n+1];return t.subarray(r,s)},Kx=({offset:t,values:e},n)=>{const r=t+n;return(e[r>>3]&1<<r%8)!==0},kb=({values:t},e)=>Hx(t,e),Rb=({values:t},e)=>Gx(t,e*2),co=({stride:t,values:e},n)=>e[t*n],Qx=({stride:t,values:e},n)=>lb(e[t*n]),Eb=({values:t},e)=>t[e],Xx=({stride:t,values:e},n)=>e.subarray(t*n,t*(n+1)),qx=({values:t,valueOffsets:e},n)=>Tb(t,e,n),Jx=({values:t,valueOffsets:e},n)=>{const r=Tb(t,e,n);return r!==null?eh(r):null},Zx=({values:t},e)=>t[e],eI=({type:t,values:e},n)=>t.precision!==En.HALF?e[n]:lb(e[n]),tI=(t,e)=>t.type.unit===ki.DAY?kb(t,e):Rb(t,e),Ab=({values:t},e)=>1e3*qh(t,e*2),Pb=({values:t},e)=>qh(t,e*2),Ob=({values:t},e)=>Vx(t,e*2),Mb=({values:t},e)=>Wx(t,e*2),nI=(t,e)=>{switch(t.type.unit){case Xe.SECOND:return Ab(t,e);case Xe.MILLISECOND:return Pb(t,e);case Xe.MICROSECOND:return Ob(t,e);case Xe.NANOSECOND:return Mb(t,e)}},Db=({values:t},e)=>t[e],Nb=({values:t},e)=>t[e],Bb=({values:t},e)=>t[e],Lb=({values:t},e)=>t[e],rI=(t,e)=>{switch(t.type.unit){case Xe.SECOND:return Db(t,e);case Xe.MILLISECOND:return Nb(t,e);case Xe.MICROSECOND:return Bb(t,e);case Xe.NANOSECOND:return Lb(t,e)}},iI=({values:t,stride:e},n)=>Yh.decimal(t.subarray(e*n,e*(n+1))),oI=(t,e)=>{const{valueOffsets:n,stride:r,children:s}=t,{[e*r]:a,[e*r+1]:c}=n,f=s[0].slice(a,c-a);return new et([f])},sI=(t,e)=>{const{valueOffsets:n,children:r}=t,{[e]:s,[e+1]:a}=n,c=r[0];return new Jh(c.slice(s,a-s))},aI=(t,e)=>new Xh(t,e),lI=(t,e)=>t.type.mode===Gn.Dense?Fb(t,e):$b(t,e),Fb=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];return Pn.visit(r,t.valueOffsets[e])},$b=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];return Pn.visit(r,e)},cI=(t,e)=>{var n;return(n=t.dictionary)===null||n===void 0?void 0:n.get(t.values[e])},uI=(t,e)=>t.type.unit===to.DAY_TIME?jb(t,e):zb(t,e),jb=({values:t},e)=>t.subarray(2*e,2*(e+1)),zb=({values:t},e)=>{const n=t[e],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},dI=(t,e)=>{const{stride:n,children:r}=t,a=r[0].slice(e*n,n);return new et([a])};Se.prototype.visitNull=ke(Yx);Se.prototype.visitBool=ke(Kx);Se.prototype.visitInt=ke(Zx);Se.prototype.visitInt8=ke(co);Se.prototype.visitInt16=ke(co);Se.prototype.visitInt32=ke(co);Se.prototype.visitInt64=ke(Eb);Se.prototype.visitUint8=ke(co);Se.prototype.visitUint16=ke(co);Se.prototype.visitUint32=ke(co);Se.prototype.visitUint64=ke(Eb);Se.prototype.visitFloat=ke(eI);Se.prototype.visitFloat16=ke(Qx);Se.prototype.visitFloat32=ke(co);Se.prototype.visitFloat64=ke(co);Se.prototype.visitUtf8=ke(Jx);Se.prototype.visitBinary=ke(qx);Se.prototype.visitFixedSizeBinary=ke(Xx);Se.prototype.visitDate=ke(tI);Se.prototype.visitDateDay=ke(kb);Se.prototype.visitDateMillisecond=ke(Rb);Se.prototype.visitTimestamp=ke(nI);Se.prototype.visitTimestampSecond=ke(Ab);Se.prototype.visitTimestampMillisecond=ke(Pb);Se.prototype.visitTimestampMicrosecond=ke(Ob);Se.prototype.visitTimestampNanosecond=ke(Mb);Se.prototype.visitTime=ke(rI);Se.prototype.visitTimeSecond=ke(Db);Se.prototype.visitTimeMillisecond=ke(Nb);Se.prototype.visitTimeMicrosecond=ke(Bb);Se.prototype.visitTimeNanosecond=ke(Lb);Se.prototype.visitDecimal=ke(iI);Se.prototype.visitList=ke(oI);Se.prototype.visitStruct=ke(aI);Se.prototype.visitUnion=ke(lI);Se.prototype.visitDenseUnion=ke(Fb);Se.prototype.visitSparseUnion=ke($b);Se.prototype.visitDictionary=ke(cI);Se.prototype.visitInterval=ke(uI);Se.prototype.visitIntervalDayTime=ke(jb);Se.prototype.visitIntervalYearMonth=ke(zb);Se.prototype.visitFixedSizeList=ke(dI);Se.prototype.visitMap=ke(sI);const Pn=new Se,$r=Symbol.for("keys"),Ns=Symbol.for("vals");class Jh{constructor(e){return this[$r]=new et([e.children[0]]).memoize(),this[Ns]=e.children[1],new Proxy(this,new pI)}[Symbol.iterator](){return new fI(this[$r],this[Ns])}get size(){return this[$r].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[$r],n=this[Ns],r={};for(let s=-1,a=e.length;++s<a;)r[e.get(s)]=Pn.visit(n,s);return r}toString(){return`{${[...this].map(([e,n])=>`${ol(e)}: ${ol(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class fI{constructor(e,n){this.keys=e,this.vals=n,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){const e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Pn.visit(this.vals,e)]})}}class pI{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[$r].toArray().map(String)}has(e,n){return e[$r].includes(n)}getOwnPropertyDescriptor(e,n){if(e[$r].indexOf(n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,n){if(Reflect.has(e,n))return e[n];const r=e[$r].indexOf(n);if(r!==-1){const s=Pn.visit(Reflect.get(e,Ns),r);return Reflect.set(e,n,s),s}}set(e,n,r){const s=e[$r].indexOf(n);return s!==-1?(lr.visit(Reflect.get(e,Ns),s,r),Reflect.set(e,n,r)):Reflect.has(e,n)?Reflect.set(e,n,r):!1}}Object.defineProperties(Jh.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[$r]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Ns]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let Z0;function Ub(t,e,n,r){const{length:s=0}=t;let a=typeof e!="number"?0:e,c=typeof n!="number"?s:n;return a<0&&(a=(a%s+s)%s),c<0&&(c=(c%s+s)%s),c<a&&(Z0=a,a=c,c=Z0),c>s&&(c=s),r?r(t,a,c):[a,c]}const ev=t=>t!==t;function ea(t){if(typeof t!=="object"||t===null)return ev(t)?ev:n=>n===t;if(t instanceof Date){const n=t.valueOf();return r=>r instanceof Date?r.valueOf()===n:!1}return ArrayBuffer.isView(t)?n=>n?sx(t,n):!1:t instanceof Map?mI(t):Array.isArray(t)?hI(t):t instanceof et?yI(t):gI(t,!0)}function hI(t){const e=[];for(let n=-1,r=t.length;++n<r;)e[n]=ea(t[n]);return ad(e)}function mI(t){let e=-1;const n=[];for(const r of t.values())n[++e]=ea(r);return ad(n)}function yI(t){const e=[];for(let n=-1,r=t.length;++n<r;)e[n]=ea(t.get(n));return ad(e)}function gI(t,e=!1){const n=Object.keys(t);if(!e&&n.length===0)return()=>!1;const r=[];for(let s=-1,a=n.length;++s<a;)r[s]=ea(t[n[s]]);return ad(r,n)}function ad(t,e){return n=>{if(!n||typeof n!="object")return!1;switch(n.constructor){case Array:return vI(t,n);case Map:return tv(t,n,n.keys());case Jh:case Xh:case Object:case void 0:return tv(t,n,e||Object.keys(n))}return n instanceof et?bI(t,n):!1}}function vI(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r<n;)if(!t[r](e[r]))return!1;return!0}function bI(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r<n;)if(!t[r](e.get(r)))return!1;return!0}function tv(t,e,n){const r=n[Symbol.iterator](),s=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),a=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]();let c=0;const u=t.length;let f=a.next(),h=r.next(),y=s.next();for(;c<u&&!h.done&&!y.done&&!f.done&&!(h.value!==y.value||!t[c](f.value));++c,h=r.next(),y=s.next(),f=a.next());return c===u&&h.done&&y.done&&f.done?!0:(r.return&&r.return(),s.return&&s.return(),a.return&&a.return(),!1)}function Vb(t,e,n,r){return(n&1<<r)!==0}function SI(t,e,n,r){return(n&1<<r)>>r}function Zh(t,e,n){const r=n.byteLength+7&-8;if(t>0||n.byteLength<r){const s=new Uint8Array(r);return s.set(t%8===0?n.subarray(t>>3):Nu(new em(n,t,e,null,Vb)).subarray(0,r)),s}return n}function Nu(t){const e=[];let n=0,r=0,s=0;for(const c of t)c&&(s|=1<<r),++r===8&&(e[n++]=s,s=r=0);(n===0||r>0)&&(e[n++]=s);const a=new Uint8Array(e.length+7&-8);return a.set(e),a}class em{constructor(e,n,r,s,a){this.bytes=e,this.length=r,this.context=s,this.get=a,this.bit=n%8,this.byteIndex=n>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function ih(t,e,n){if(n-e<=0)return 0;if(n-e<8){let a=0;for(const c of new em(t,e,n-e,t,SI))a+=c;return a}const r=n>>3<<3,s=e+(e%8===0?0:8-e%8);return ih(t,e,s)+ih(t,r,n)+_I(t,s>>3,r-s>>3)}function _I(t,e,n){let r=0,s=Math.trunc(e);const a=new DataView(t.buffer,t.byteOffset,t.byteLength),c=n===void 0?t.byteLength:s+n;for(;c-s>=4;)r+=Ep(a.getUint32(s)),s+=4;for(;c-s>=2;)r+=Ep(a.getUint16(s)),s+=2;for(;c-s>=1;)r+=Ep(a.getUint8(s)),s+=1;return r}function Ep(t){let e=Math.trunc(t);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}const wI=-1;class ft{constructor(e,n,r,s,a,c=[],u){this.type=e,this.children=c,this.dictionary=u,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(s||0,-1));let f;a instanceof ft?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=yi(e),a&&((f=a[0])&&(this.valueOffsets=f),(f=a[1])&&(this.values=f),(f=a[2])&&(this.nullBitmap=f),(f=a[3])&&(this.typeIds=f))),this.nullable=this._nullCount!==0&&this.nullBitmap&&this.nullBitmap.byteLength>0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0;const{valueOffsets:n,values:r,nullBitmap:s,typeIds:a}=this;return n&&(e+=n.byteLength),r&&(e+=r.byteLength),s&&(e+=s.byteLength),a&&(e+=a.byteLength),this.children.reduce((c,u)=>c+u.byteLength,e)}get nullCount(){let e=this._nullCount,n;return e<=wI&&(n=this.nullBitmap)&&(this._nullCount=e=this.length-ih(n,this.offset,this.offset+this.length)),e}getValid(e){if(this.nullable&&this.nullCount>0){const n=this.offset+e;return(this.nullBitmap[n>>3]&1<<n%8)!==0}return!0}setValid(e,n){if(!this.nullable)return n;if(!this.nullBitmap||this.nullBitmap.byteLength<=e>>3){const{nullBitmap:f}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:f,_nullCount:0})}const{nullBitmap:r,offset:s}=this,a=s+e>>3,c=(s+e)%8,u=r[a]>>c&1;return n?u===0&&(r[a]|=1<<c,this._nullCount=this.nullCount+1):u===1&&(r[a]&=~(1<<c),this._nullCount=this.nullCount-1),n}clone(e=this.type,n=this.offset,r=this.length,s=this._nullCount,a=this,c=this.children){return new ft(e,n,r,s,a,c,this.dictionary)}slice(e,n){const{stride:r,typeId:s,children:a}=this,c=+(this._nullCount===0)-1,u=s===16?r:1,f=this._sliceBuffers(e,n,r,s);return this.clone(this.type,this.offset+e,n,c,f,a.length===0||this.valueOffsets?a:this._sliceChildren(a,u*e,u*n))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===N.Null)return this.clone(this.type,0,e,0);const{length:n,nullCount:r}=this,s=new Uint8Array((e+63&-64)>>3).fill(255,0,n>>3);s[n>>3]=(1<<n-(n&-8))-1,r>0&&s.set(Zh(this.offset,n,this.nullBitmap),0);const a=this.buffers;return a[mi.VALIDITY]=s,this.clone(this.type,0,e,r+(e-n),a)}_sliceBuffers(e,n,r,s){let a;const{buffers:c}=this;return(a=c[mi.TYPE])&&(c[mi.TYPE]=a.subarray(e,e+n)),(a=c[mi.OFFSET])&&(c[mi.OFFSET]=a.subarray(e,e+n+1))||(a=c[mi.DATA])&&(c[mi.DATA]=s===6?a:a.subarray(r*e,r*(e+n))),c}_sliceChildren(e,n,r){return e.map(s=>s.slice(n,r))}}ft.prototype.children=Object.freeze([]);class el extends Ve{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){const{["type"]:n,["offset"]:r=0,["length"]:s=0}=e;return new ft(n,r,s,0)}visitBool(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length>>3,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitInt(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitFloat(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length,["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitUtf8(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.data),a=Qe(e.nullBitmap),c=Ha(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,s,a])}visitBinary(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.data),a=Qe(e.nullBitmap),c=Ha(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,s,a])}visitFixedSizeBinary(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/yi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitDate(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/yi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitTimestamp(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/yi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitTime(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/yi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitDecimal(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/yi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitList(e){const{["type"]:n,["offset"]:r=0,["child"]:s}=e,a=Qe(e.nullBitmap),c=Ha(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,void 0,a],[s])}visitStruct(e){const{["type"]:n,["offset"]:r=0,["children"]:s=[]}=e,a=Qe(e.nullBitmap),{length:c=s.reduce((f,{length:h})=>Math.max(f,h),0),nullCount:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,void 0,a],s)}visitUnion(e){const{["type"]:n,["offset"]:r=0,["children"]:s=[]}=e,a=Qe(e.nullBitmap),c=ct(n.ArrayType,e.typeIds),{["length"]:u=c.length,["nullCount"]:f=e.nullBitmap?-1:0}=e;if(be.isSparseUnion(n))return new ft(n,r,u,f,[void 0,void 0,a,c],s);const h=Ha(e.valueOffsets);return new ft(n,r,u,f,[h,void 0,a,c],s)}visitDictionary(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.indices.ArrayType,e.data),{["dictionary"]:c=new et([new el().visit({type:n.dictionary})])}=e,{["length"]:u=a.length,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[void 0,a,s],[],c)}visitInterval(e){const{["type"]:n,["offset"]:r=0}=e,s=Qe(e.nullBitmap),a=ct(n.ArrayType,e.data),{["length"]:c=a.length/yi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,a,s])}visitFixedSizeList(e){const{["type"]:n,["offset"]:r=0,["child"]:s=new el().visit({type:n.valueType})}=e,a=Qe(e.nullBitmap),{["length"]:c=s.length/yi(n),["nullCount"]:u=e.nullBitmap?-1:0}=e;return new ft(n,r,c,u,[void 0,void 0,a],[s])}visitMap(e){const{["type"]:n,["offset"]:r=0,["child"]:s=new el().visit({type:n.childType})}=e,a=Qe(e.nullBitmap),c=Ha(e.valueOffsets),{["length"]:u=c.length-1,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new ft(n,r,u,f,[c,void 0,a],[s])}}function Ue(t){return new el().visit(t)}class nv{constructor(e=0,n){this.numChunks=e,this.getChunkIterator=n,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function Wb(t){return t.reduce((e,n)=>e+n.nullCount,0)}function Hb(t){return t.reduce((e,n,r)=>(e[r+1]=e[r]+n.length,e),new Uint32Array(t.length+1))}function Gb(t,e,n,r){const s=[];for(let a=-1,c=t.length;++a<c;){const u=t[a],f=e[a],{length:h}=u;if(f>=r)break;if(n>=f+h)continue;if(f>=n&&f+h<=r){s.push(u);continue}const y=Math.max(0,n-f),g=Math.min(r-f,h);s.push(u.slice(y,g-y))}return s.length===0&&s.push(t[0].slice(0,0)),s}function tm(t,e,n,r){let s=0,a=0,c=e.length-1;do{if(s>=c-1)return n<e[c]?r(t,s,n-e[s]):null;a=s+Math.trunc((c-s)*.5),n<e[a]?c=a:s=a}while(s<c)}function nm(t,e){return t.getValid(e)}function Bs(t){function e(n,r,s){return t(n[r],s)}return function(n){const r=this.data;return tm(r,this._offsets,n,e)}}function Yb(t){let e;function n(r,s,a){return t(r[s],a,e)}return function(r,s){const a=this.data;e=s;const c=tm(a,this._offsets,r,n);return e=void 0,c}}function Kb(t){let e;function n(r,s,a){let c=a,u=0,f=0;for(let h=s-1,y=r.length;++h<y;){const g=r[h];if(~(u=t(g,e,c)))return f+u;c=0,f+=g.length}return-1}return function(r,s){e=r;const a=this.data,c=typeof s!="number"?n(a,0,0):tm(a,this._offsets,s,n);return e=void 0,c}}class _e extends Ve{}function CI(t,e){return e===null&&t.length>0?0:-1}function xI(t,e){const{nullBitmap:n}=t;if(!n||t.nullCount<=0)return-1;let r=0;for(const s of new em(n,t.offset+(e||0),t.length,n,Vb)){if(!s)return r;++r}return-1}function Me(t,e,n){if(e===void 0)return-1;if(e===null)return xI(t,n);const r=Pn.getVisitFn(t),s=ea(e);for(let a=(n||0)-1,c=t.length;++a<c;)if(s(r(t,a)))return a;return-1}function Qb(t,e,n){const r=Pn.getVisitFn(t),s=ea(e);for(let a=(n||0)-1,c=t.length;++a<c;)if(s(r(t,a)))return a;return-1}_e.prototype.visitNull=CI;_e.prototype.visitBool=Me;_e.prototype.visitInt=Me;_e.prototype.visitInt8=Me;_e.prototype.visitInt16=Me;_e.prototype.visitInt32=Me;_e.prototype.visitInt64=Me;_e.prototype.visitUint8=Me;_e.prototype.visitUint16=Me;_e.prototype.visitUint32=Me;_e.prototype.visitUint64=Me;_e.prototype.visitFloat=Me;_e.prototype.visitFloat16=Me;_e.prototype.visitFloat32=Me;_e.prototype.visitFloat64=Me;_e.prototype.visitUtf8=Me;_e.prototype.visitBinary=Me;_e.prototype.visitFixedSizeBinary=Me;_e.prototype.visitDate=Me;_e.prototype.visitDateDay=Me;_e.prototype.visitDateMillisecond=Me;_e.prototype.visitTimestamp=Me;_e.prototype.visitTimestampSecond=Me;_e.prototype.visitTimestampMillisecond=Me;_e.prototype.visitTimestampMicrosecond=Me;_e.prototype.visitTimestampNanosecond=Me;_e.prototype.visitTime=Me;_e.prototype.visitTimeSecond=Me;_e.prototype.visitTimeMillisecond=Me;_e.prototype.visitTimeMicrosecond=Me;_e.prototype.visitTimeNanosecond=Me;_e.prototype.visitDecimal=Me;_e.prototype.visitList=Me;_e.prototype.visitStruct=Me;_e.prototype.visitUnion=Me;_e.prototype.visitDenseUnion=Qb;_e.prototype.visitSparseUnion=Qb;_e.prototype.visitDictionary=Me;_e.prototype.visitInterval=Me;_e.prototype.visitIntervalDayTime=Me;_e.prototype.visitIntervalYearMonth=Me;_e.prototype.visitFixedSizeList=Me;_e.prototype.visitMap=Me;const Bu=new _e;class we extends Ve{}function Re(t){const{type:e}=t;if(t.nullCount===0&&t.stride===1&&(e.typeId===N.Timestamp||e instanceof ro&&e.bitWidth!==64||e instanceof cl&&e.bitWidth!==64||e instanceof ll&&e.precision!==En.HALF))return new nv(t.data.length,r=>{const s=t.data[r];return s.values.subarray(0,s.length)[Symbol.iterator]()});let n=0;return new nv(t.data.length,r=>{const a=t.data[r].length,c=t.slice(n,n+a);return n+=a,new II(c)})}class II{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}we.prototype.visitNull=Re;we.prototype.visitBool=Re;we.prototype.visitInt=Re;we.prototype.visitInt8=Re;we.prototype.visitInt16=Re;we.prototype.visitInt32=Re;we.prototype.visitInt64=Re;we.prototype.visitUint8=Re;we.prototype.visitUint16=Re;we.prototype.visitUint32=Re;we.prototype.visitUint64=Re;we.prototype.visitFloat=Re;we.prototype.visitFloat16=Re;we.prototype.visitFloat32=Re;we.prototype.visitFloat64=Re;we.prototype.visitUtf8=Re;we.prototype.visitBinary=Re;we.prototype.visitFixedSizeBinary=Re;we.prototype.visitDate=Re;we.prototype.visitDateDay=Re;we.prototype.visitDateMillisecond=Re;we.prototype.visitTimestamp=Re;we.prototype.visitTimestampSecond=Re;we.prototype.visitTimestampMillisecond=Re;we.prototype.visitTimestampMicrosecond=Re;we.prototype.visitTimestampNanosecond=Re;we.prototype.visitTime=Re;we.prototype.visitTimeSecond=Re;we.prototype.visitTimeMillisecond=Re;we.prototype.visitTimeMicrosecond=Re;we.prototype.visitTimeNanosecond=Re;we.prototype.visitDecimal=Re;we.prototype.visitList=Re;we.prototype.visitStruct=Re;we.prototype.visitUnion=Re;we.prototype.visitDenseUnion=Re;we.prototype.visitSparseUnion=Re;we.prototype.visitDictionary=Re;we.prototype.visitInterval=Re;we.prototype.visitIntervalDayTime=Re;we.prototype.visitIntervalYearMonth=Re;we.prototype.visitFixedSizeList=Re;we.prototype.visitMap=Re;const rm=new we,TI=(t,e)=>t+e;class uo extends Ve{visitNull(e,n){return 0}visitInt(e,n){return e.type.bitWidth/8}visitFloat(e,n){return e.type.ArrayType.BYTES_PER_ELEMENT}visitBool(e,n){return 1/8}visitDecimal(e,n){return e.type.bitWidth/8}visitDate(e,n){return(e.type.unit+1)*4}visitTime(e,n){return e.type.bitWidth/8}visitTimestamp(e,n){return e.type.unit===Xe.SECOND?4:8}visitInterval(e,n){return(e.type.unit+1)*4}visitStruct(e,n){return e.children.reduce((r,s)=>r+Jr.visit(s,n),0)}visitFixedSizeBinary(e,n){return e.type.byteWidth}visitMap(e,n){return 8+e.children.reduce((r,s)=>r+Jr.visit(s,n),0)}visitDictionary(e,n){var r;return e.type.indices.bitWidth/8+(((r=e.dictionary)===null||r===void 0?void 0:r.getByteLength(e.values[n]))||0)}}const kI=({valueOffsets:t},e)=>8+(t[e+1]-t[e]),RI=({valueOffsets:t},e)=>8+(t[e+1]-t[e]),EI=({valueOffsets:t,stride:e,children:n},r)=>{const s=n[0],{[r*e]:a}=t,{[r*e+1]:c}=t,u=Jr.getVisitFn(s.type),f=s.slice(a,c-a);let h=8;for(let y=-1,g=c-a;++y<g;)h+=u(f,y);return h},AI=({stride:t,children:e},n)=>{const r=e[0],s=r.slice(n*t,t),a=Jr.getVisitFn(r.type);let c=0;for(let u=-1,f=s.length;++u<f;)c+=a(s,u);return c},PI=(t,e)=>t.type.mode===Gn.Dense?Xb(t,e):qb(t,e),Xb=({type:t,children:e,typeIds:n,valueOffsets:r},s)=>{const a=t.typeIdToChildIndex[n[s]];return 8+Jr.visit(e[a],r[s])},qb=({children:t},e)=>4+Jr.visitMany(t,t.map(()=>e)).reduce(TI,0);uo.prototype.visitUtf8=kI;uo.prototype.visitBinary=RI;uo.prototype.visitList=EI;uo.prototype.visitFixedSizeList=AI;uo.prototype.visitUnion=PI;uo.prototype.visitDenseUnion=Xb;uo.prototype.visitSparseUnion=qb;const Jr=new uo;var Jb;const Zb={},eS={};class et{constructor(e){var n,r,s;const a=e[0]instanceof et?e.flatMap(u=>u.data):e;if(a.length===0||a.some(u=>!(u instanceof ft)))throw new TypeError("Vector constructor expects an Array of Data instances.");const c=(n=a[0])===null||n===void 0?void 0:n.type;switch(a.length){case 0:this._offsets=[0];break;case 1:{const{get:u,set:f,indexOf:h,byteLength:y}=Zb[c.typeId],g=a[0];this.isValid=v=>nm(g,v),this.get=v=>u(g,v),this.set=(v,_)=>f(g,v,_),this.indexOf=v=>h(g,v),this.getByteLength=v=>y(g,v),this._offsets=[0,g.length];break}default:Object.setPrototypeOf(this,eS[c.typeId]),this._offsets=Hb(a);break}this.data=a,this.type=c,this.stride=yi(c),this.numChildren=(s=(r=c.children)===null||r===void 0?void 0:r.length)!==null&&s!==void 0?s:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return this._byteLength===-1&&(this._byteLength=this.data.reduce((e,n)=>e+n.byteLength,0)),this._byteLength}get nullCount(){return this._nullCount===-1&&(this._nullCount=Wb(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${N[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}set(e,n){}indexOf(e,n){return-1}includes(e,n){return this.indexOf(e,n)>0}getByteLength(e){return 0}[Symbol.iterator](){return rm.visit(this)}concat(...e){return new et(this.data.concat(e.flatMap(n=>n.data).flat(Number.POSITIVE_INFINITY)))}slice(e,n){return new et(Ub(this,e,n,({data:r,_offsets:s},a,c)=>Gb(r,s,a,c)))}toJSON(){return[...this]}toArray(){const{type:e,data:n,length:r,stride:s,ArrayType:a}=this;switch(e.typeId){case N.Int:case N.Float:case N.Decimal:case N.Time:case N.Timestamp:switch(n.length){case 0:return new a;case 1:return n[0].values.subarray(0,r*s);default:return n.reduce((c,{values:u,length:f})=>(c.array.set(u.subarray(0,f*s),c.offset),c.offset+=f*s,c),{array:new a(r*s),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var n;return this.getChildAt((n=this.type.children)===null||n===void 0?void 0:n.findIndex(r=>r.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new et(this.data.map(({children:n})=>n[e])):null}get isMemoized(){return be.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(be.isDictionary(this.type)){const e=new Lu(this.data[0].dictionary),n=this.data.map(r=>{const s=r.clone();return s.dictionary=e,s});return new et(n)}return new Lu(this)}unmemoize(){if(be.isDictionary(this.type)&&this.isMemoized){const e=this.data[0].dictionary.unmemoize(),n=this.data.map(r=>{const s=r.clone();return s.dictionary=e,s});return new et(n)}return this}}Jb=Symbol.toStringTag;et[Jb]=(t=>{t.type=be.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._nullCount=-1,t._byteLength=-1,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0;const e=Object.keys(N).map(n=>N[n]).filter(n=>typeof n=="number"&&n!==N.NONE);for(const n of e){const r=Pn.getVisitFnByTypeId(n),s=lr.getVisitFnByTypeId(n),a=Bu.getVisitFnByTypeId(n),c=Jr.getVisitFnByTypeId(n);Zb[n]={get:r,set:s,indexOf:a,byteLength:c},eS[n]=Object.create(t,{isValid:{value:Bs(nm)},get:{value:Bs(Pn.getVisitFnByTypeId(n))},set:{value:Yb(lr.getVisitFnByTypeId(n))},indexOf:{value:Kb(Bu.getVisitFnByTypeId(n))},getByteLength:{value:Bs(Jr.getVisitFnByTypeId(n))}})}return"Vector"})(et.prototype);class Lu extends et{constructor(e){super(e.data);const n=this.get,r=this.set,s=this.slice,a=new Array(this.length);Object.defineProperty(this,"get",{value(c){const u=a[c];if(u!==void 0)return u;const f=n.call(this,c);return a[c]=f,f}}),Object.defineProperty(this,"set",{value(c,u){r.call(this,c,u),a[c]=u}}),Object.defineProperty(this,"slice",{value:(c,u)=>new Lu(s.call(this,c,u))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new et(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class oh{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,n,r,s){return e.prep(8,24),e.writeInt64(s),e.pad(4),e.writeInt32(r),e.writeInt64(n),e.offset()}}const Ap=2,jr=4,bi=4,ut=4,Ji=new Int32Array(2),rv=new Float32Array(Ji.buffer),iv=new Float64Array(Ji.buffer),Gc=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;let Ci=class sh{constructor(e,n){this.low=e|0,this.high=n|0}static create(e,n){return e==0&&n==0?sh.ZERO:new sh(e,n)}toFloat64(){return(this.low>>>0)+this.high*4294967296}equals(e){return this.low==e.low&&this.high==e.high}};Ci.ZERO=new Ci(0,0);var ah;(function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"})(ah||(ah={}));let Us=class tS{constructor(e){this.bytes_=e,this.position_=0}static allocate(e){return new tS(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return new Ci(this.readInt32(e),this.readInt32(e+4))}readUint64(e){return new Ci(this.readUint32(e),this.readUint32(e+4))}readFloat32(e){return Ji[0]=this.readInt32(e),rv[0]}readFloat64(e){return Ji[Gc?0:1]=this.readInt32(e),Ji[Gc?1:0]=this.readInt32(e+4),iv[0]}writeInt8(e,n){this.bytes_[e]=n}writeUint8(e,n){this.bytes_[e]=n}writeInt16(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8}writeUint16(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8}writeInt32(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8,this.bytes_[e+2]=n>>16,this.bytes_[e+3]=n>>24}writeUint32(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8,this.bytes_[e+2]=n>>16,this.bytes_[e+3]=n>>24}writeInt64(e,n){this.writeInt32(e,n.low),this.writeInt32(e+4,n.high)}writeUint64(e,n){this.writeUint32(e,n.low),this.writeUint32(e+4,n.high)}writeFloat32(e,n){rv[0]=n,this.writeInt32(e,Ji[0])}writeFloat64(e,n){iv[0]=n,this.writeInt32(e,Ji[Gc?0:1]),this.writeInt32(e+4,Ji[Gc?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+jr+bi)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let n=0;n<bi;n++)e+=String.fromCharCode(this.readInt8(this.position_+jr+n));return e}__offset(e,n){const r=e-this.readInt32(e);return n<this.readInt16(r)?this.readInt16(r+n):0}__union(e,n){return e.bb_pos=n+this.readInt32(n),e.bb=this,e}__string(e,n){e+=this.readInt32(e);const r=this.readInt32(e);let s="",a=0;if(e+=jr,n===ah.UTF8_BYTES)return this.bytes_.subarray(e,e+r);for(;a<r;){let c;const u=this.readUint8(e+a++);if(u<192)c=u;else{const f=this.readUint8(e+a++);if(u<224)c=(u&31)<<6|f&63;else{const h=this.readUint8(e+a++);if(u<240)c=(u&15)<<12|(f&63)<<6|h&63;else{const y=this.readUint8(e+a++);c=(u&7)<<18|(f&63)<<12|(h&63)<<6|y&63}}}c<65536?s+=String.fromCharCode(c):(c-=65536,s+=String.fromCharCode((c>>10)+55296,(c&1023)+56320))}return s}__union_with_string(e,n){return typeof e=="string"?this.__string(n):this.__union(e,n)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+jr}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=bi)throw new Error("FlatBuffers: file identifier must be length "+bi);for(let n=0;n<bi;n++)if(e.charCodeAt(n)!=this.readInt8(this.position()+jr+n))return!1;return!0}createLong(e,n){return Ci.create(e,n)}createScalarList(e,n){const r=[];for(let s=0;s<n;++s)e(s)!==null&&r.push(e(s));return r}createObjList(e,n){const r=[];for(let s=0;s<n;++s){const a=e(s);a!==null&&r.push(a.unpack())}return r}},nS=class rS{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null;let n;e?n=e:n=1024,this.bb=Us.allocate(n),this.space=n}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,n){e>this.minalign&&(this.minalign=e);const r=~(this.bb.capacity()-this.space+n)+1&e-1;for(;this.space<r+e+n;){const s=this.bb.capacity();this.bb=rS.growByteBuffer(this.bb),this.space+=this.bb.capacity()-s}this.pad(r)}pad(e){for(let n=0;n<e;n++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,n,r){(this.force_defaults||n!=r)&&(this.addInt8(n),this.slot(e))}addFieldInt16(e,n,r){(this.force_defaults||n!=r)&&(this.addInt16(n),this.slot(e))}addFieldInt32(e,n,r){(this.force_defaults||n!=r)&&(this.addInt32(n),this.slot(e))}addFieldInt64(e,n,r){(this.force_defaults||!n.equals(r))&&(this.addInt64(n),this.slot(e))}addFieldFloat32(e,n,r){(this.force_defaults||n!=r)&&(this.addFloat32(n),this.slot(e))}addFieldFloat64(e,n,r){(this.force_defaults||n!=r)&&(this.addFloat64(n),this.slot(e))}addFieldOffset(e,n,r){(this.force_defaults||n!=r)&&(this.addOffset(n),this.slot(e))}addFieldStruct(e,n,r){n!=r&&(this.nested(n),this.slot(e))}nested(e){if(e!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){const n=e.capacity();if(n&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const r=n<<1,s=Us.allocate(r);return s.setPosition(r-n),s.bytes().set(e.bytes(),r-n),s}addOffset(e){this.prep(jr,0),this.writeInt32(this.offset()-e+jr)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let n=0;n<e;n++)this.vtable[n]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const e=this.offset();let n=this.vtable_in_use-1;for(;n>=0&&this.vtable[n]==0;n--);const r=n+1;for(;n>=0;n--)this.addInt16(this.vtable[n]!=0?e-this.vtable[n]:0);const s=2;this.addInt16(e-this.object_start);const a=(r+s)*Ap;this.addInt16(a);let c=0;const u=this.space;e:for(n=0;n<this.vtables.length;n++){const f=this.bb.capacity()-this.vtables[n];if(a==this.bb.readInt16(f)){for(let h=Ap;h<a;h+=Ap)if(this.bb.readInt16(u+h)!=this.bb.readInt16(f+h))continue e;c=this.vtables[n];break}}return c?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,c-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,n,r){const s=r?ut:0;if(n){const a=n;if(this.prep(this.minalign,jr+bi+s),a.length!=bi)throw new Error("FlatBuffers: file identifier must be length "+bi);for(let c=bi-1;c>=0;c--)this.writeInt8(a.charCodeAt(c))}this.prep(this.minalign,jr+s),this.addOffset(e),s&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,n){this.finish(e,n,!0)}requiredField(e,n){const r=this.bb.capacity()-e,s=r-this.bb.readInt32(r);if(!(this.bb.readInt16(s+n)!=0))throw new Error("FlatBuffers: field "+n+" must be set")}startVector(e,n,r){this.notNested(),this.vector_num_elems=n,this.prep(jr,e*n),this.prep(r,e*n)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);const n=this.createString(e);return this.string_maps.set(e,n),n}createString(e){if(!e)return 0;let n;if(e instanceof Uint8Array)n=e;else{n=[];let r=0;for(;r<e.length;){let s;const a=e.charCodeAt(r++);if(a<55296||a>=56320)s=a;else{const c=e.charCodeAt(r++);s=(a<<10)+c+-56613888}s<128?n.push(s):(s<2048?n.push(s>>6&31|192):(s<65536?n.push(s>>12&15|224):n.push(s>>18&7|240,s>>12&63|128),n.push(s>>6&63|128)),n.push(s&63|128))}}this.addInt8(0),this.startVector(1,n.length,1),this.bb.setPosition(this.space-=n.length);for(let r=0,s=this.space,a=this.bb.bytes();r<n.length;r++)a[s++]=n[r];return this.endVector()}createLong(e,n){return Ci.create(e,n)}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){const n=[];for(let r=0;r<e.length;++r){const s=e[r];if(s!==null)n.push(this.createObjectOffset(s));else throw new Error("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return n}createStructOffsetList(e,n){return n(this,e.length),this.createObjectOffsetList(e),this.endVector()}};class zt{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsKeyValue(e,n){return(n||new zt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,n){return e.setPosition(e.position()+ut),(n||new zt).__init(e.readInt32(e.position())+e.position(),e)}key(e){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,e):null}value(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,n){e.addFieldOffset(0,n,0)}static addValue(e,n){e.addFieldOffset(1,n,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,n,r){return zt.startKeyValue(e),zt.addKey(e,n),zt.addValue(e,r),zt.endKeyValue(e)}}var Vs;(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(Vs||(Vs={}));var Ws;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Ws||(Ws={}));var Fu;(function(t){t[t.DenseArray=0]="DenseArray"})(Fu||(Fu={}));class Un{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsInt(e,n){return(n||new Un).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,n){return e.setPosition(e.position()+ut),(n||new Un).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,n){e.addFieldInt32(0,n,0)}static addIsSigned(e,n){e.addFieldInt8(1,+n,0)}static endInt(e){return e.endObject()}static createInt(e,n,r){return Un.startInt(e),Un.addBitWidth(e,n),Un.addIsSigned(e,r),Un.endInt(e)}}class Si{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDictionaryEncoding(e,n){return(n||new Si).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,n){return e.setPosition(e.position()+ut),(n||new Si).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}indexType(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new Un).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isOrdered(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):Fu.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addIndexType(e,n){e.addFieldOffset(1,n,0)}static addIsOrdered(e,n){e.addFieldInt8(2,+n,0)}static addDictionaryKind(e,n){e.addFieldInt16(3,n,Fu.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}class Oo{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBinary(e,n){return(n||new Oo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,n){return e.setPosition(e.position()+ut),(n||new Oo).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return Oo.startBinary(e),Oo.endBinary(e)}}class Mo{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBool(e,n){return(n||new Mo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,n){return e.setPosition(e.position()+ut),(n||new Mo).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return Mo.startBool(e),Mo.endBool(e)}}var $u;(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})($u||($u={}));let iu=class ks{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDate(e,n){return(n||new ks).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,n){return e.setPosition(e.position()+ut),(n||new ks).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):$u.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,$u.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,n){return ks.startDate(e),ks.addUnit(e,n),ks.endDate(e)}};class Tn{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDecimal(e,n){return(n||new Tn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,n){return e.setPosition(e.position()+ut),(n||new Tn).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,n){e.addFieldInt32(0,n,0)}static addScale(e,n){e.addFieldInt32(1,n,0)}static addBitWidth(e,n){e.addFieldInt32(2,n,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,n,r,s){return Tn.startDecimal(e),Tn.addPrecision(e,n),Tn.addScale(e,r),Tn.addBitWidth(e,s),Tn.endDecimal(e)}}var Hs;(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(Hs||(Hs={}));class zr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFixedSizeBinary(e,n){return(n||new zr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,n){return e.setPosition(e.position()+ut),(n||new zr).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,n){e.addFieldInt32(0,n,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,n){return zr.startFixedSizeBinary(e),zr.addByteWidth(e,n),zr.endFixedSizeBinary(e)}}class Ur{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFixedSizeList(e,n){return(n||new Ur).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,n){return e.setPosition(e.position()+ut),(n||new Ur).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,n){e.addFieldInt32(0,n,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,n){return Ur.startFixedSizeList(e),Ur.addListSize(e,n),Ur.endFixedSizeList(e)}}var ju;(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(ju||(ju={}));class Vr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFloatingPoint(e,n){return(n||new Vr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,n){return e.setPosition(e.position()+ut),(n||new Vr).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ju.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,n){e.addFieldInt16(0,n,ju.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,n){return Vr.startFloatingPoint(e),Vr.addPrecision(e,n),Vr.endFloatingPoint(e)}}var zu;(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(zu||(zu={}));class Wr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsInterval(e,n){return(n||new Wr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,n){return e.setPosition(e.position()+ut),(n||new Wr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):zu.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,zu.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,n){return Wr.startInterval(e),Wr.addUnit(e,n),Wr.endInterval(e)}}class Do{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsList(e,n){return(n||new Do).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,n){return e.setPosition(e.position()+ut),(n||new Do).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return Do.startList(e),Do.endList(e)}}let ou=class Rs{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsMap(e,n){return(n||new Rs).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,n){return e.setPosition(e.position()+ut),(n||new Rs).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,n){e.addFieldInt8(0,+n,0)}static endMap(e){return e.endObject()}static createMap(e,n){return Rs.startMap(e),Rs.addKeysSorted(e,n),Rs.endMap(e)}};class No{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsNull(e,n){return(n||new No).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,n){return e.setPosition(e.position()+ut),(n||new No).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return No.startNull(e),No.endNull(e)}}class Bo{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsStruct_(e,n){return(n||new Bo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,n){return e.setPosition(e.position()+ut),(n||new Bo).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Bo.startStruct_(e),Bo.endStruct_(e)}}class ir{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsTime(e,n){return(n||new ir).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,n){return e.setPosition(e.position()+ut),(n||new ir).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Hs.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,Hs.MILLISECOND)}static addBitWidth(e,n){e.addFieldInt32(1,n,32)}static endTime(e){return e.endObject()}static createTime(e,n,r){return ir.startTime(e),ir.addUnit(e,n),ir.addBitWidth(e,r),ir.endTime(e)}}class or{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsTimestamp(e,n){return(n||new or).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,n){return e.setPosition(e.position()+ut),(n||new or).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Hs.SECOND}timezone(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,Hs.SECOND)}static addTimezone(e,n){e.addFieldOffset(1,n,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,n,r){return or.startTimestamp(e),or.addUnit(e,n),or.addTimezone(e,r),or.endTimestamp(e)}}var Uu;(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(Uu||(Uu={}));class kn{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsUnion(e,n){return(n||new kn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,n){return e.setPosition(e.position()+ut),(n||new kn).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Uu.Sparse}typeIds(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.readInt32(this.bb.__vector(this.bb_pos+n)+e*4):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,n){e.addFieldInt16(0,n,Uu.Sparse)}static addTypeIds(e,n){e.addFieldOffset(1,n,0)}static createTypeIdsVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addInt32(n[r]);return e.endVector()}static startTypeIdsVector(e,n){e.startVector(4,n,4)}static endUnion(e){return e.endObject()}static createUnion(e,n,r){return kn.startUnion(e),kn.addMode(e,n),kn.addTypeIds(e,r),kn.endUnion(e)}}class Lo{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsUtf8(e,n){return(n||new Lo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,n){return e.setPosition(e.position()+ut),(n||new Lo).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return Lo.startUtf8(e),Lo.endUtf8(e)}}var _t;(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList"})(_t||(_t={}));let tr=class su{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsField(e,n){return(n||new su).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,n){return e.setPosition(e.position()+ut),(n||new su).__init(e.readInt32(e.position())+e.position(),e)}name(e){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,e):null}nullable(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):_t.NONE}type(e){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.__union(e,this.bb_pos+n):null}dictionary(e){const n=this.bb.__offset(this.bb_pos,12);return n?(e||new Si).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}children(e,n){const r=this.bb.__offset(this.bb_pos,14);return r?(n||new su).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}childrenLength(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,16);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,n){e.addFieldOffset(0,n,0)}static addNullable(e,n){e.addFieldInt8(1,+n,0)}static addTypeType(e,n){e.addFieldInt8(2,n,_t.NONE)}static addType(e,n){e.addFieldOffset(3,n,0)}static addDictionary(e,n){e.addFieldOffset(4,n,0)}static addChildren(e,n){e.addFieldOffset(5,n,0)}static createChildrenVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startChildrenVector(e,n){e.startVector(4,n,4)}static addCustomMetadata(e,n){e.addFieldOffset(6,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endField(e){return e.endObject()}},Nr=class hi{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsSchema(e,n){return(n||new hi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,n){return e.setPosition(e.position()+ut),(n||new hi).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ws.Little}fields(e,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new tr).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.readInt64(this.bb.__vector(this.bb_pos+n)+e*8):this.bb.createLong(0,0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,n){e.addFieldInt16(0,n,Ws.Little)}static addFields(e,n){e.addFieldOffset(1,n,0)}static createFieldsVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startFieldsVector(e,n){e.startVector(4,n,4)}static addCustomMetadata(e,n){e.addFieldOffset(2,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static addFeatures(e,n){e.addFieldOffset(3,n,0)}static createFeaturesVector(e,n){e.startVector(8,n.length,8);for(let r=n.length-1;r>=0;r--)e.addInt64(n[r]);return e.endVector()}static startFeaturesVector(e,n){e.startVector(8,n,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,n){e.finish(n)}static finishSizePrefixedSchemaBuffer(e,n){e.finish(n,void 0,!0)}static createSchema(e,n,r,s,a){return hi.startSchema(e),hi.addEndianness(e,n),hi.addFields(e,r),hi.addCustomMetadata(e,s),hi.addFeatures(e,a),hi.endSchema(e)}};class zn{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFooter(e,n){return(n||new zn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,n){return e.setPosition(e.position()+ut),(n||new zn).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Vs.V1}schema(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new Nr).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}dictionaries(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new oh).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,n){const r=this.bb.__offset(this.bb_pos,10);return r?(n||new oh).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,n){e.addFieldInt16(0,n,Vs.V1)}static addSchema(e,n){e.addFieldOffset(1,n,0)}static addDictionaries(e,n){e.addFieldOffset(2,n,0)}static startDictionariesVector(e,n){e.startVector(24,n,8)}static addRecordBatches(e,n){e.addFieldOffset(3,n,0)}static startRecordBatchesVector(e,n){e.startVector(24,n,8)}static addCustomMetadata(e,n){e.addFieldOffset(4,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,n){e.finish(n)}static finishSizePrefixedFooterBuffer(e,n){e.finish(n,void 0,!0)}}class tt{constructor(e=[],n,r){this.fields=e||[],this.metadata=n||new Map,r||(r=lh(e)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,n)=>`${n}: ${e}`).join(", ")} }>`}select(e){const n=new Set(e),r=this.fields.filter(s=>n.has(s.name));return new tt(r,this.metadata)}selectAt(e){const n=e.map(r=>this.fields[r]).filter(Boolean);return new tt(n,this.metadata)}assign(...e){const n=e[0]instanceof tt?e[0]:Array.isArray(e[0])?new tt(e[0]):new tt(e),r=[...this.fields],s=Yc(Yc(new Map,this.metadata),n.metadata),a=n.fields.filter(u=>{const f=r.findIndex(h=>h.name===u.name);return~f?(r[f]=u.clone({metadata:Yc(Yc(new Map,r[f].metadata),u.metadata)}))&&!1:!0}),c=lh(a,new Map);return new tt([...r,...a],s,new Map([...this.dictionaries,...c]))}}tt.prototype.fields=null;tt.prototype.metadata=null;tt.prototype.dictionaries=null;class mt{constructor(e,n,r=!1,s){this.name=e,this.type=n,this.nullable=r,this.metadata=s||new Map}static new(...e){let[n,r,s,a]=e;return e[0]&&typeof e[0]=="object"&&({name:n}=e[0],r===void 0&&(r=e[0].type),s===void 0&&(s=e[0].nullable),a===void 0&&(a=e[0].metadata)),new mt(`${n}`,r,s,a)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[n,r,s,a]=e;return!e[0]||typeof e[0]!="object"?[n=this.name,r=this.type,s=this.nullable,a=this.metadata]=e:{name:n=this.name,type:r=this.type,nullable:s=this.nullable,metadata:a=this.metadata}=e[0],mt.new(n,r,s,a)}}mt.prototype.type=null;mt.prototype.name=null;mt.prototype.nullable=null;mt.prototype.metadata=null;function Yc(t,e){return new Map([...t||new Map,...e||new Map])}function lh(t,e=new Map){for(let n=-1,r=t.length;++n<r;){const a=t[n].type;if(be.isDictionary(a)){if(!e.has(a.id))e.set(a.id,a.dictionary);else if(e.get(a.id)!==a.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}a.children&&a.children.length>0&&lh(a.children,e)}return e}var ov=Ci,OI=nS,MI=Us;class ul{constructor(e,n=Vn.V4,r,s){this.schema=e,this.version=n,r&&(this._recordBatches=r),s&&(this._dictionaryBatches=s)}static decode(e){e=new MI(Qe(e));const n=zn.getRootAsFooter(e),r=tt.decode(n.schema());return new DI(r,n)}static encode(e){const n=new OI,r=tt.encode(n,e.schema);zn.startRecordBatchesVector(n,e.numRecordBatches);for(const c of[...e.recordBatches()].slice().reverse())io.encode(n,c);const s=n.endVector();zn.startDictionariesVector(n,e.numDictionaries);for(const c of[...e.dictionaryBatches()].slice().reverse())io.encode(n,c);const a=n.endVector();return zn.startFooter(n),zn.addSchema(n,r),zn.addVersion(n,Vn.V4),zn.addRecordBatches(n,s),zn.addDictionaries(n,a),zn.finishFooterBuffer(n,zn.endFooter(n)),n.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let e,n=-1,r=this.numRecordBatches;++n<r;)(e=this.getRecordBatch(n))&&(yield e)}*dictionaryBatches(){for(let e,n=-1,r=this.numDictionaries;++n<r;)(e=this.getDictionaryBatch(n))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}class DI extends ul{constructor(e,n){super(e,n.version()),this._footer=n}get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){const n=this._footer.recordBatches(e);if(n)return io.decode(n)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const n=this._footer.dictionaries(e);if(n)return io.decode(n)}return null}}class io{constructor(e,n,r){this.metaDataLength=e,this.offset=typeof r=="number"?r:r.low,this.bodyLength=typeof n=="number"?n:n.low}static decode(e){return new io(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,n){const{metaDataLength:r}=n,s=new ov(n.offset,0),a=new ov(n.bodyLength,0);return oh.createBlock(e,s,r,a)}}const wt=Object.freeze({done:!0,value:void 0});class sv{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class im{tee(){return this._getDOMStream().tee()}pipe(e,n){return this._getNodeStream().pipe(e,n)}pipeTo(e,n){return this._getDOMStream().pipeTo(e,n)}pipeThrough(e,n){return this._getDOMStream().pipeThrough(e,n)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class NI extends im{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return ve(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(wt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return nr.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return nr.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return ve(this,void 0,void 0,function*(){return yield this.abort(e),wt})}return(e){return ve(this,void 0,void 0,function*(){return yield this.close(),wt})}read(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((n,r)=>{this.resolvers.push({resolve:n,reject:r})}):Promise.resolve(wt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class au extends NI{write(e){if((e=Qe(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?eh(this.toUint8Array(!0)):this.toUint8Array(!1).then(eh)}toUint8Array(e=!1){return e?qr(this._values)[0]:ve(this,void 0,void 0,function*(){var n,r;const s=[];let a=0;try{for(var c=$o(this),u;u=yield c.next(),!u.done;){const f=u.value;s.push(f),a+=f.byteLength}}catch(f){n={error:f}}finally{try{u&&!u.done&&(r=c.return)&&(yield r.call(c))}finally{if(n)throw n.error}}return qr(s,a)[0]})}}class Vu{constructor(e){e&&(this.source=new BI(nr.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class Gs{constructor(e){e instanceof Gs?this.source=e.source:e instanceof au?this.source=new Ao(nr.fromAsyncIterable(e)):$1(e)?this.source=new Ao(nr.fromNodeStream(e)):Wh(e)?this.source=new Ao(nr.fromDOMStream(e)):F1(e)?this.source=new Ao(nr.fromDOMStream(e.body)):Cl(e)?this.source=new Ao(nr.fromIterable(e)):eo(e)?this.source=new Ao(nr.fromAsyncIterable(e)):Zs(e)&&(this.source=new Ao(nr.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class BI{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,n="read"){return this.source.next({cmd:n,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||wt)}return(e){return Object.create(this.source.return&&this.source.return(e)||wt)}}class Ao{constructor(e){this.source=e,this._closedPromise=new Promise(n=>this._closedPromiseResolve=n)}cancel(e){return ve(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e,n="read"){return ve(this,void 0,void 0,function*(){return yield this.source.next({cmd:n,size:e})})}throw(e){return ve(this,void 0,void 0,function*(){const n=this.source.throw&&(yield this.source.throw(e))||wt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}return(e){return ve(this,void 0,void 0,function*(){const n=this.source.return&&(yield this.source.return(e))||wt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}}class av extends Vu{constructor(e,n){super(),this.position=0,this.buffer=Qe(e),this.size=typeof n>"u"?this.buffer.byteLength:n}readInt32(e){const{buffer:n,byteOffset:r}=this.readAt(e,4);return new DataView(n,r).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){const{buffer:n,size:r,position:s}=this;return n&&s<r?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(r,s+Math.min(r-s,e)),n.subarray(s,this.position)):null}readAt(e,n){const r=this.buffer,s=Math.min(this.size,e+n);return r?r.subarray(e,s):new Uint8Array(n)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}}class Wu extends Gs{constructor(e,n){super(),this.position=0,this._handle=e,typeof n=="number"?this.size=n:this._pending=ve(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return ve(this,void 0,void 0,function*(){const{buffer:n,byteOffset:r}=yield this.readAt(e,4);return new DataView(n,r).getInt32(0,!0)})}seek(e){return ve(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return ve(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:n,size:r,position:s}=this;if(n&&s<r){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let a=s,c=0,u=0;const f=Math.min(r,a+Math.min(r-a,e)),h=new Uint8Array(Math.max(0,(this.position=f)-a));for(;(a+=u)<f&&(c+=u)<h.byteLength;)({bytesRead:u}=yield n.read(h,c,h.byteLength-c,a));return h}return null})}readAt(e,n){return ve(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:r,size:s}=this;if(r&&e+n<s){const a=Math.min(s,e+n),c=new Uint8Array(a-e);return(yield r.read(c,0,n,e)).buffer}return new Uint8Array(n)})}close(){return ve(this,void 0,void 0,function*(){const e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return ve(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return ve(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}const LI=65536;function Ps(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}const Ys=8,om=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class iS{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){const n=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),r=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]);let s=n[3]*r[3];this.buffer[0]=s&65535;let a=s>>>16;return s=n[2]*r[3],a+=s,s=n[3]*r[2]>>>0,a+=s,this.buffer[0]+=a<<16,this.buffer[1]=a>>>0<s?LI:0,this.buffer[1]+=a>>>16,this.buffer[1]+=n[1]*r[3]+n[2]*r[2]+n[3]*r[1],this.buffer[1]+=n[0]*r[3]+n[1]*r[2]+n[2]*r[1]+n[3]*r[0]<<16,this}_plus(e){const n=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],n<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=n}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${Ps(this.buffer[1])} ${Ps(this.buffer[0])}`}}class rt extends iS{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,n=new Uint32Array(2)){return rt.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(2)){return rt.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(2)){const r=e.length,s=new rt(n);for(let a=0;a<r;){const c=Ys<r-a?Ys:r-a,u=new rt(new Uint32Array([Number.parseInt(e.slice(a,a+c),10),0])),f=new rt(new Uint32Array([om[c],0]));s.times(f),s.plus(u),a+=c}return s}static convertArray(e){const n=new Uint32Array(e.length*2);for(let r=-1,s=e.length;++r<s;)rt.from(e[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(e,n){return new rt(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new rt(new Uint32Array(e.buffer)).plus(n)}}class In extends iS{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){const n=this.buffer[1]<<0,r=e.buffer[1]<<0;return n<r||n===r&&this.buffer[0]<e.buffer[0]}static from(e,n=new Uint32Array(2)){return In.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(2)){return In.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(2)){const r=e.startsWith("-"),s=e.length,a=new In(n);for(let c=r?1:0;c<s;){const u=Ys<s-c?Ys:s-c,f=new In(new Uint32Array([Number.parseInt(e.slice(c,c+u),10),0])),h=new In(new Uint32Array([om[u],0]));a.times(h),a.plus(f),c+=u}return r?a.negate():a}static convertArray(e){const n=new Uint32Array(e.length*2);for(let r=-1,s=e.length;++r<s;)In.from(e[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(e,n){return new In(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new In(new Uint32Array(e.buffer)).plus(n)}}class Br{constructor(e){this.buffer=e}high(){return new In(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new In(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){const n=new rt(new Uint32Array([this.buffer[3],0])),r=new rt(new Uint32Array([this.buffer[2],0])),s=new rt(new Uint32Array([this.buffer[1],0])),a=new rt(new Uint32Array([this.buffer[0],0])),c=new rt(new Uint32Array([e.buffer[3],0])),u=new rt(new Uint32Array([e.buffer[2],0])),f=new rt(new Uint32Array([e.buffer[1],0])),h=new rt(new Uint32Array([e.buffer[0],0]));let y=rt.multiply(a,h);this.buffer[0]=y.low();const g=new rt(new Uint32Array([y.high(),0]));return y=rt.multiply(s,h),g.plus(y),y=rt.multiply(a,f),g.plus(y),this.buffer[1]=g.low(),this.buffer[3]=g.lessThan(y)?1:0,this.buffer[2]=g.high(),new rt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(rt.multiply(r,h)).plus(rt.multiply(s,f)).plus(rt.multiply(a,u)),this.buffer[3]+=rt.multiply(n,h).plus(rt.multiply(r,f)).plus(rt.multiply(s,u)).plus(rt.multiply(a,c)).low(),this}plus(e){const n=new Uint32Array(4);return n[3]=this.buffer[3]+e.buffer[3]>>>0,n[2]=this.buffer[2]+e.buffer[2]>>>0,n[1]=this.buffer[1]+e.buffer[1]>>>0,n[0]=this.buffer[0]+e.buffer[0]>>>0,n[0]<this.buffer[0]>>>0&&++n[1],n[1]<this.buffer[1]>>>0&&++n[2],n[2]<this.buffer[2]>>>0&&++n[3],this.buffer[3]=n[3],this.buffer[2]=n[2],this.buffer[1]=n[1],this.buffer[0]=n[0],this}hex(){return`${Ps(this.buffer[3])} ${Ps(this.buffer[2])} ${Ps(this.buffer[1])} ${Ps(this.buffer[0])}`}static multiply(e,n){return new Br(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new Br(new Uint32Array(e.buffer)).plus(n)}static from(e,n=new Uint32Array(4)){return Br.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(4)){return Br.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(4)){const r=e.startsWith("-"),s=e.length,a=new Br(n);for(let c=r?1:0;c<s;){const u=Ys<s-c?Ys:s-c,f=new Br(new Uint32Array([Number.parseInt(e.slice(c,c+u),10),0,0,0])),h=new Br(new Uint32Array([om[u],0,0,0]));a.times(h),a.plus(f),c+=u}return r?a.negate():a}static convertArray(e){const n=new Uint32Array(e.length*4);for(let r=-1,s=e.length;++r<s;)Br.from(e[r],new Uint32Array(n.buffer,n.byteOffset+4*4*r,4));return n}}class oS extends Ve{constructor(e,n,r,s){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=n,this.buffers=r,this.dictionaries=s}visit(e){return super.visit(e instanceof mt?e.type:e)}visitNull(e,{length:n}=this.nextFieldNode()){return Ue({type:e,length:n})}visitBool(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitInt(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitFloat(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitUtf8(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDate(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitTimestamp(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitTime(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDecimal(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitList(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),children:this.visitMany(e.children)})}visitUnion(e){return e.mode===Gn.Sparse?this.visitSparseUnion(e):this.visitDenseUnion(e)}visitDenseUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitFixedSizeList(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),child:this.visit(e.children[0])})}visitMap(e,{length:n,nullCount:r}=this.nextFieldNode()){return Ue({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,n,r=this.nextBufferRange()){return n>0&&this.readData(e,r)||new Uint8Array(0)}readOffsets(e,n){return this.readData(e,n)}readTypeIds(e,n){return this.readData(e,n)}readData(e,{length:n,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+n)}readDictionary(e){return this.dictionaries.get(e.id)}}class FI extends oS{constructor(e,n,r,s){super(new Uint8Array(0),n,r,s),this.sources=e}readNullBitmap(e,n,{offset:r}=this.nextBufferRange()){return n<=0?new Uint8Array(0):Nu(this.sources[r])}readOffsets(e,{offset:n}=this.nextBufferRange()){return ct(Uint8Array,ct(Int32Array,this.sources[n]))}readTypeIds(e,{offset:n}=this.nextBufferRange()){return ct(Uint8Array,ct(e.ArrayType,this.sources[n]))}readData(e,{offset:n}=this.nextBufferRange()){const{sources:r}=this;return be.isTimestamp(e)||(be.isInt(e)||be.isTime(e))&&e.bitWidth===64||be.isDate(e)&&e.unit===ki.MILLISECOND?ct(Uint8Array,In.convertArray(r[n])):be.isDecimal(e)?ct(Uint8Array,Br.convertArray(r[n])):be.isBinary(e)||be.isFixedSizeBinary(e)?$I(r[n]):be.isBool(e)?Nu(r[n]):be.isUtf8(e)?Vh(r[n].join("")):ct(Uint8Array,ct(e.ArrayType,r[n].map(s=>+s)))}}function $I(t){const e=t.join(""),n=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2)n[r>>1]=Number.parseInt(e.slice(r,r+2),16);return n}class Ce extends Ve{compareSchemas(e,n){return e===n||n instanceof e.constructor&&this.compareManyFields(e.fields,n.fields)}compareManyFields(e,n){return e===n||Array.isArray(e)&&Array.isArray(n)&&e.length===n.length&&e.every((r,s)=>this.compareFields(r,n[s]))}compareFields(e,n){return e===n||n instanceof e.constructor&&e.name===n.name&&e.nullable===n.nullable&&this.visit(e.type,n.type)}}function Dn(t,e){return e instanceof t.constructor}function xl(t,e){return t===e||Dn(t,e)}function Ei(t,e){return t===e||Dn(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function ld(t,e){return t===e||Dn(t,e)&&t.precision===e.precision}function jI(t,e){return t===e||Dn(t,e)&&t.byteWidth===e.byteWidth}function sm(t,e){return t===e||Dn(t,e)&&t.unit===e.unit}function Il(t,e){return t===e||Dn(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function Tl(t,e){return t===e||Dn(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function zI(t,e){return t===e||Dn(t,e)&&t.children.length===e.children.length&&oo.compareManyFields(t.children,e.children)}function UI(t,e){return t===e||Dn(t,e)&&t.children.length===e.children.length&&oo.compareManyFields(t.children,e.children)}function am(t,e){return t===e||Dn(t,e)&&t.mode===e.mode&&t.typeIds.every((n,r)=>n===e.typeIds[r])&&oo.compareManyFields(t.children,e.children)}function VI(t,e){return t===e||Dn(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&oo.visit(t.indices,e.indices)&&oo.visit(t.dictionary,e.dictionary)}function lm(t,e){return t===e||Dn(t,e)&&t.unit===e.unit}function WI(t,e){return t===e||Dn(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&oo.compareManyFields(t.children,e.children)}function HI(t,e){return t===e||Dn(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&oo.compareManyFields(t.children,e.children)}Ce.prototype.visitNull=xl;Ce.prototype.visitBool=xl;Ce.prototype.visitInt=Ei;Ce.prototype.visitInt8=Ei;Ce.prototype.visitInt16=Ei;Ce.prototype.visitInt32=Ei;Ce.prototype.visitInt64=Ei;Ce.prototype.visitUint8=Ei;Ce.prototype.visitUint16=Ei;Ce.prototype.visitUint32=Ei;Ce.prototype.visitUint64=Ei;Ce.prototype.visitFloat=ld;Ce.prototype.visitFloat16=ld;Ce.prototype.visitFloat32=ld;Ce.prototype.visitFloat64=ld;Ce.prototype.visitUtf8=xl;Ce.prototype.visitBinary=xl;Ce.prototype.visitFixedSizeBinary=jI;Ce.prototype.visitDate=sm;Ce.prototype.visitDateDay=sm;Ce.prototype.visitDateMillisecond=sm;Ce.prototype.visitTimestamp=Il;Ce.prototype.visitTimestampSecond=Il;Ce.prototype.visitTimestampMillisecond=Il;Ce.prototype.visitTimestampMicrosecond=Il;Ce.prototype.visitTimestampNanosecond=Il;Ce.prototype.visitTime=Tl;Ce.prototype.visitTimeSecond=Tl;Ce.prototype.visitTimeMillisecond=Tl;Ce.prototype.visitTimeMicrosecond=Tl;Ce.prototype.visitTimeNanosecond=Tl;Ce.prototype.visitDecimal=xl;Ce.prototype.visitList=zI;Ce.prototype.visitStruct=UI;Ce.prototype.visitUnion=am;Ce.prototype.visitDenseUnion=am;Ce.prototype.visitSparseUnion=am;Ce.prototype.visitDictionary=VI;Ce.prototype.visitInterval=lm;Ce.prototype.visitIntervalDayTime=lm;Ce.prototype.visitIntervalYearMonth=lm;Ce.prototype.visitFixedSizeList=WI;Ce.prototype.visitMap=HI;const oo=new Ce;function ch(t,e){return oo.compareSchemas(t,e)}function Pp(t,e){return GI(t,e.map(n=>n.data.concat()))}function GI(t,e){const n=[...t.fields],r=[],s={numBatches:e.reduce((g,v)=>Math.max(g,v.length),0)};let a=0,c=0,u=-1;const f=e.length;let h,y=[];for(;s.numBatches-- >0;){for(c=Number.POSITIVE_INFINITY,u=-1;++u<f;)y[u]=h=e[u].shift(),c=Math.min(c,h?h.length:c);Number.isFinite(c)&&(y=YI(n,c,y,e,s),c>0&&(r[a++]=Ue({type:new mn(n),length:c,nullCount:0,children:y.slice()})))}return[t=t.assign(n),r.map(g=>new Rn(t,g))]}function YI(t,e,n,r,s){var a;const c=(e+63&-64)>>3;for(let u=-1,f=r.length;++u<f;){const h=n[u],y=h==null?void 0:h.length;if(y>=e)y===e?n[u]=h:(n[u]=h.slice(0,e),s.numBatches=Math.max(s.numBatches,r[u].unshift(h.slice(e,y-e))));else{const g=t[u];t[u]=g.clone({nullable:!0}),n[u]=(a=h==null?void 0:h._changeLengthAndBackfillNullBitmap(e))!==null&&a!==void 0?a:Ue({type:g.type,length:e,nullCount:e,nullBitmap:new Uint8Array(c)})}}return n}var sS;class pn{constructor(...e){var n,r;if(e.length===0)return this.batches=[],this.schema=new tt([]),this._offsets=[0],this;let s,a;e[0]instanceof tt&&(s=e.shift()),e[e.length-1]instanceof Uint32Array&&(a=e.pop());const c=f=>{if(f){if(f instanceof Rn)return[f];if(f instanceof pn)return f.batches;if(f instanceof ft){if(f.type instanceof mn)return[new Rn(new tt(f.type.children),f)]}else{if(Array.isArray(f))return f.flatMap(h=>c(h));if(typeof f[Symbol.iterator]=="function")return[...f].flatMap(h=>c(h));if(typeof f=="object"){const h=Object.keys(f),y=h.map(_=>new et([f[_]])),g=new tt(h.map((_,C)=>new mt(String(_),y[C].type))),[,v]=Pp(g,y);return v.length===0?[new Rn(f)]:v}}}return[]},u=e.flatMap(f=>c(f));if(s=(r=s??((n=u[0])===null||n===void 0?void 0:n.schema))!==null&&r!==void 0?r:new tt([]),!(s instanceof tt))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const f of u){if(!(f instanceof Rn))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!ch(s,f.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=s,this.batches=u,this._offsets=a??Hb(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,n)=>e+n.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=Wb(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}set(e,n){}indexOf(e,n){return-1}getByteLength(e){return 0}[Symbol.iterator](){return this.batches.length>0?rm.visit(new et(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
48
- ${this.toArray().join(`,
49
- `)}
50
- ]`}concat(...e){const n=this.schema,r=this.data.concat(e.flatMap(({data:s})=>s));return new pn(n,r.map(s=>new Rn(n,s)))}slice(e,n){const r=this.schema;[e,n]=Ub({length:this.numRows},e,n);const s=Gb(this.data,this._offsets,e,n);return new pn(r,s.map(a=>new Rn(r,a)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(n=>n.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){const n=this.data.map(r=>r.children[e]);if(n.length===0){const{type:r}=this.schema.fields[e],s=Ue({type:r,length:0,nullCount:0});n.push(s._changeLengthAndBackfillNullBitmap(this.numRows))}return new et(n)}return null}setChild(e,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(s=>s.name===e),n)}setChildAt(e,n){let r=this.schema,s=[...this.batches];if(e>-1&&e<this.numCols){n||(n=new et([Ue({type:new no,length:this.numRows})]));const a=r.fields.slice(),c=a[e].clone({type:n.type}),u=this.schema.fields.map((f,h)=>this.getChildAt(h));[a[e],u[e]]=[c,n],[r,s]=Pp(r,u)}return new pn(r,s)}select(e){const n=this.schema.fields.reduce((r,s,a)=>r.set(s.name,a),new Map);return this.selectAt(e.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(e){const n=this.schema.selectAt(e),r=this.batches.map(s=>s.selectAt(e));return new pn(n,r)}assign(e){const n=this.schema.fields,[r,s]=e.schema.fields.reduce((u,f,h)=>{const[y,g]=u,v=n.findIndex(_=>_.name===f.name);return~v?g[v]=h:y.push(h),u},[[],[]]),a=this.schema.assign(e.schema),c=[...n.map((u,f)=>[f,s[f]]).map(([u,f])=>f===void 0?this.getChildAt(u):e.getChildAt(f)),...r.map(u=>e.getChildAt(u))].filter(Boolean);return new pn(...Pp(a,c))}}sS=Symbol.toStringTag;pn[sS]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=Bs(nm),t.get=Bs(Pn.getVisitFn(N.Struct)),t.set=Yb(lr.getVisitFn(N.Struct)),t.indexOf=Kb(Bu.getVisitFn(N.Struct)),t.getByteLength=Bs(Jr.getVisitFn(N.Struct)),"Table"))(pn.prototype);var aS;let Rn=class Xa{constructor(...e){switch(e.length){case 2:{if([this.schema]=e,!(this.schema instanceof tt))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=Ue({nullCount:0,type:new mn(this.schema.fields),children:this.schema.fields.map(n=>Ue({type:n.type,nullCount:0}))})]=e,!(this.data instanceof ft))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=lv(this.schema,this.data.children);break}case 1:{const[n]=e,{fields:r,children:s,length:a}=Object.keys(n).reduce((f,h,y)=>(f.children[y]=n[h],f.length=Math.max(f.length,n[h].length),f.fields[y]=mt.new({name:h,type:n[h].type,nullable:!0}),f),{length:0,fields:new Array,children:new Array}),c=new tt(r),u=Ue({type:new mn(r),length:a,children:s,nullCount:0});[this.schema,this.data]=lv(c,u.children,a);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=lS(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Pn.visit(this.data,e)}set(e,n){return lr.visit(this.data,e,n)}indexOf(e,n){return Bu.visit(this.data,e,n)}getByteLength(e){return Jr.visit(this.data,e)}[Symbol.iterator](){return rm.visit(new et([this.data]))}toArray(){return[...this]}concat(...e){return new pn(this.schema,[this,...e])}slice(e,n){const[r]=new et([this.data]).slice(e,n).data;return new Xa(this.schema,r)}getChild(e){var n;return this.getChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(r=>r.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new et([this.data.children[e]]):null}setChild(e,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(s=>s.name===e),n)}setChildAt(e,n){let r=this.schema,s=this.data;if(e>-1&&e<this.numCols){n||(n=new et([Ue({type:new no,length:this.numRows})]));const a=r.fields.slice(),c=s.children.slice(),u=a[e].clone({type:n.type});[a[e],c[e]]=[u,n.data[0]],r=new tt(a,new Map(this.schema.metadata)),s=Ue({type:new mn(a),children:c})}return new Xa(r,s)}select(e){const n=this.schema.select(e),r=new mn(n.fields),s=[];for(const a of e){const c=this.schema.fields.findIndex(u=>u.name===a);~c&&(s[c]=this.data.children[c])}return new Xa(n,Ue({type:r,length:this.numRows,children:s}))}selectAt(e){const n=this.schema.selectAt(e),r=e.map(a=>this.data.children[a]).filter(Boolean),s=Ue({type:new mn(n.fields),length:this.numRows,children:r});return new Xa(n,s)}};aS=Symbol.toStringTag;Rn[aS]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(Rn.prototype);function lv(t,e,n=e.reduce((r,s)=>Math.max(r,s.length),0)){var r;const s=[...t.fields],a=[...e],c=(n+63&-64)>>3;for(const[u,f]of t.fields.entries()){const h=e[u];(!h||h.length!==n)&&(s[u]=f.clone({nullable:!0}),a[u]=(r=h==null?void 0:h._changeLengthAndBackfillNullBitmap(n))!==null&&r!==void 0?r:Ue({type:f.type,length:n,nullCount:n,nullBitmap:new Uint8Array(c)}))}return[t.assign(s),Ue({type:new mn(s),length:n,children:a})]}function lS(t,e,n=new Map){for(let r=-1,s=t.length;++r<s;){const c=t[r].type,u=e[r];if(be.isDictionary(c)){if(!n.has(c.id))u.dictionary&&n.set(c.id,u.dictionary);else if(n.get(c.id)!==u.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}c.children&&c.children.length>0&&lS(c.children,u.children,n)}return n}class cm extends Rn{constructor(e){const n=e.fields.map(s=>Ue({type:s.type})),r=Ue({type:new mn(e.fields),nullCount:0,children:n});super(e,r)}}var Hu;(function(t){t[t.BUFFER=0]="BUFFER"})(Hu||(Hu={}));var Gu;(function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"})(Gu||(Gu={}));class Zi{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBodyCompression(e,n){return(n||new Zi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,n){return e.setPosition(e.position()+ut),(n||new Zi).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):Gu.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):Hu.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,n){e.addFieldInt8(0,n,Gu.LZ4_FRAME)}static addMethod(e,n){e.addFieldInt8(1,n,Hu.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,n,r){return Zi.startBodyCompression(e),Zi.addCodec(e,n),Zi.addMethod(e,r),Zi.endBodyCompression(e)}}class cS{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,n,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(n),e.offset()}}let uS=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,n,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(n),e.offset()}},gi=class uh{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsRecordBatch(e,n){return(n||new uh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,n){return e.setPosition(e.position()+ut),(n||new uh).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}nodes(e,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new uS).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new cS).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const n=this.bb.__offset(this.bb_pos,10);return n?(e||new Zi).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addNodes(e,n){e.addFieldOffset(1,n,0)}static startNodesVector(e,n){e.startVector(16,n,8)}static addBuffers(e,n){e.addFieldOffset(2,n,0)}static startBuffersVector(e,n){e.startVector(16,n,8)}static addCompression(e,n){e.addFieldOffset(3,n,0)}static endRecordBatch(e){return e.endObject()}},Es=class dh{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDictionaryBatch(e,n){return(n||new dh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,n){return e.setPosition(e.position()+ut),(n||new dh).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}data(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new gi).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addData(e,n){e.addFieldOffset(1,n,0)}static addIsDelta(e,n){e.addFieldInt8(2,+n,0)}static endDictionaryBatch(e){return e.endObject()}};var Yu;(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(Yu||(Yu={}));let Qi=class Dr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsMessage(e,n){return(n||new Dr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,n){return e.setPosition(e.position()+ut),(n||new Dr).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Vs.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Yu.NONE}header(e){const n=this.bb.__offset(this.bb_pos,8);return n?this.bb.__union(e,this.bb_pos+n):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new zt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,n){e.addFieldInt16(0,n,Vs.V1)}static addHeaderType(e,n){e.addFieldInt8(1,n,Yu.NONE)}static addHeader(e,n){e.addFieldOffset(2,n,0)}static addBodyLength(e,n){e.addFieldInt64(3,n,e.createLong(0,0))}static addCustomMetadata(e,n){e.addFieldOffset(4,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,n){e.finish(n)}static finishSizePrefixedMessageBuffer(e,n){e.finish(n,void 0,!0)}static createMessage(e,n,r,s,a,c){return Dr.startMessage(e),Dr.addVersion(e,n),Dr.addHeaderType(e,r),Dr.addHeader(e,s),Dr.addBodyLength(e,a),Dr.addCustomMetadata(e,c),Dr.endMessage(e)}};var KI=Ci;class QI extends Ve{visit(e,n){return e==null||n==null?void 0:super.visit(e,n)}visitNull(e,n){return No.startNull(n),No.endNull(n)}visitInt(e,n){return Un.startInt(n),Un.addBitWidth(n,e.bitWidth),Un.addIsSigned(n,e.isSigned),Un.endInt(n)}visitFloat(e,n){return Vr.startFloatingPoint(n),Vr.addPrecision(n,e.precision),Vr.endFloatingPoint(n)}visitBinary(e,n){return Oo.startBinary(n),Oo.endBinary(n)}visitBool(e,n){return Mo.startBool(n),Mo.endBool(n)}visitUtf8(e,n){return Lo.startUtf8(n),Lo.endUtf8(n)}visitDecimal(e,n){return Tn.startDecimal(n),Tn.addScale(n,e.scale),Tn.addPrecision(n,e.precision),Tn.addBitWidth(n,e.bitWidth),Tn.endDecimal(n)}visitDate(e,n){return iu.startDate(n),iu.addUnit(n,e.unit),iu.endDate(n)}visitTime(e,n){return ir.startTime(n),ir.addUnit(n,e.unit),ir.addBitWidth(n,e.bitWidth),ir.endTime(n)}visitTimestamp(e,n){const r=e.timezone&&n.createString(e.timezone)||void 0;return or.startTimestamp(n),or.addUnit(n,e.unit),r!==void 0&&or.addTimezone(n,r),or.endTimestamp(n)}visitInterval(e,n){return Wr.startInterval(n),Wr.addUnit(n,e.unit),Wr.endInterval(n)}visitList(e,n){return Do.startList(n),Do.endList(n)}visitStruct(e,n){return Bo.startStruct_(n),Bo.endStruct_(n)}visitUnion(e,n){kn.startTypeIdsVector(n,e.typeIds.length);const r=kn.createTypeIdsVector(n,e.typeIds);return kn.startUnion(n),kn.addMode(n,e.mode),kn.addTypeIds(n,r),kn.endUnion(n)}visitDictionary(e,n){const r=this.visit(e.indices,n);return Si.startDictionaryEncoding(n),Si.addId(n,new KI(e.id,0)),Si.addIsOrdered(n,e.isOrdered),r!==void 0&&Si.addIndexType(n,r),Si.endDictionaryEncoding(n)}visitFixedSizeBinary(e,n){return zr.startFixedSizeBinary(n),zr.addByteWidth(n,e.byteWidth),zr.endFixedSizeBinary(n)}visitFixedSizeList(e,n){return Ur.startFixedSizeList(n),Ur.addListSize(n,e.listSize),Ur.endFixedSizeList(n)}visitMap(e,n){return ou.startMap(n),ou.addKeysSorted(n,e.keysSorted),ou.endMap(n)}}const Op=new QI;function XI(t,e=new Map){return new tt(JI(t,e),lu(t.customMetadata),e)}function dS(t){return new Yn(t.count,fS(t.columns),pS(t.columns))}function qI(t){return new Zr(dS(t.data),t.id,t.isDelta)}function JI(t,e){return(t.fields||[]).filter(Boolean).map(n=>mt.fromJSON(n,e))}function cv(t,e){return(t.children||[]).filter(Boolean).map(n=>mt.fromJSON(n,e))}function fS(t){return(t||[]).reduce((e,n)=>[...e,new Wo(n.count,ZI(n.VALIDITY)),...fS(n.children)],[])}function pS(t,e=[]){for(let n=-1,r=(t||[]).length;++n<r;){const s=t[n];s.VALIDITY&&e.push(new Kr(e.length,s.VALIDITY.length)),s.TYPE&&e.push(new Kr(e.length,s.TYPE.length)),s.OFFSET&&e.push(new Kr(e.length,s.OFFSET.length)),s.DATA&&e.push(new Kr(e.length,s.DATA.length)),e=pS(s.children,e)}return e}function ZI(t){return(t||[]).reduce((e,n)=>e+ +(n===0),0)}function eT(t,e){let n,r,s,a,c,u;return!e||!(a=t.dictionary)?(c=dv(t,cv(t,e)),s=new mt(t.name,c,t.nullable,lu(t.customMetadata))):e.has(n=a.id)?(r=(r=a.indexType)?uv(r):new al,u=new zs(e.get(n),r,n,a.isOrdered),s=new mt(t.name,u,t.nullable,lu(t.customMetadata))):(r=(r=a.indexType)?uv(r):new al,e.set(n,c=dv(t,cv(t,e))),u=new zs(c,r,n,a.isOrdered),s=new mt(t.name,u,t.nullable,lu(t.customMetadata))),s||null}function lu(t){return new Map(Object.entries(t||{}))}function uv(t){return new ro(t.isSigned,t.bitWidth)}function dv(t,e){const n=t.type.name;switch(n){case"NONE":return new no;case"null":return new no;case"binary":return new Cu;case"utf8":return new xu;case"bool":return new Iu;case"list":return new Au((e||[])[0]);case"struct":return new mn(e||[]);case"struct_":return new mn(e||[])}switch(n){case"int":{const r=t.type;return new ro(r.isSigned,r.bitWidth)}case"floatingpoint":{const r=t.type;return new ll(En[r.precision])}case"decimal":{const r=t.type;return new Tu(r.scale,r.precision,r.bitWidth)}case"date":{const r=t.type;return new ku(ki[r.unit])}case"time":{const r=t.type;return new cl(Xe[r.unit],r.bitWidth)}case"timestamp":{const r=t.type;return new Ru(Xe[r.unit],r.timezone)}case"interval":{const r=t.type;return new Eu(to[r.unit])}case"union":{const r=t.type;return new Pu(Gn[r.mode],r.typeIds||[],e||[])}case"fixedsizebinary":{const r=t.type;return new Ou(r.byteWidth)}case"fixedsizelist":{const r=t.type;return new Mu(r.listSize,(e||[])[0])}case"map":{const r=t.type;return new Du((e||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var Uo=Ci,tT=nS,nT=Us;let _i=class As{constructor(e,n,r,s){this._version=n,this._headerType=r,this.body=new Uint8Array(0),s&&(this._createHeader=()=>s),this._bodyLength=typeof e=="number"?e:e.low}static fromJSON(e,n){const r=new As(0,Vn.V4,n);return r._createHeader=rT(e,n),r}static decode(e){e=new nT(Qe(e));const n=Qi.getRootAsMessage(e),r=n.bodyLength(),s=n.version(),a=n.headerType(),c=new As(r,s,a);return c._createHeader=iT(n,a),c}static encode(e){const n=new tT;let r=-1;return e.isSchema()?r=tt.encode(n,e.header()):e.isRecordBatch()?r=Yn.encode(n,e.header()):e.isDictionaryBatch()&&(r=Zr.encode(n,e.header())),Qi.startMessage(n),Qi.addVersion(n,Vn.V4),Qi.addHeader(n,r),Qi.addHeaderType(n,e.headerType),Qi.addBodyLength(n,new Uo(e.bodyLength,0)),Qi.finishMessageBuffer(n,Qi.endMessage(n)),n.asUint8Array()}static from(e,n=0){if(e instanceof tt)return new As(0,Vn.V4,Ze.Schema,e);if(e instanceof Yn)return new As(n,Vn.V4,Ze.RecordBatch,e);if(e instanceof Zr)return new As(n,Vn.V4,Ze.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===Ze.Schema}isRecordBatch(){return this.headerType===Ze.RecordBatch}isDictionaryBatch(){return this.headerType===Ze.DictionaryBatch}};class Yn{constructor(e,n,r){this._nodes=n,this._buffers=r,this._length=typeof e=="number"?e:e.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}}class Zr{constructor(e,n,r=!1){this._data=e,this._isDelta=r,this._id=typeof n=="number"?n:n.low}get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}}class Kr{constructor(e,n){this.offset=typeof e=="number"?e:e.low,this.length=typeof n=="number"?n:n.low}}class Wo{constructor(e,n){this.length=typeof e=="number"?e:e.low,this.nullCount=typeof n=="number"?n:n.low}}function rT(t,e){return()=>{switch(e){case Ze.Schema:return tt.fromJSON(t);case Ze.RecordBatch:return Yn.fromJSON(t);case Ze.DictionaryBatch:return Zr.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${Ze[e]}, type: ${e} }`)}}function iT(t,e){return()=>{switch(e){case Ze.Schema:return tt.decode(t.header(new Nr));case Ze.RecordBatch:return Yn.decode(t.header(new gi),t.version());case Ze.DictionaryBatch:return Zr.decode(t.header(new Es),t.version())}throw new Error(`Unrecognized Message type: { name: ${Ze[e]}, type: ${e} }`)}}mt.encode=mT;mt.decode=pT;mt.fromJSON=eT;tt.encode=hT;tt.decode=oT;tt.fromJSON=XI;Yn.encode=yT;Yn.decode=sT;Yn.fromJSON=dS;Zr.encode=gT;Zr.decode=aT;Zr.fromJSON=qI;Wo.encode=vT;Wo.decode=cT;Kr.encode=bT;Kr.decode=lT;function oT(t,e=new Map){const n=fT(t,e);return new tt(n,cu(t),e)}function sT(t,e=Vn.V4){if(t.compression()!==null)throw new Error("Record batch compression not implemented");return new Yn(t.length(),uT(t),dT(t,e))}function aT(t,e=Vn.V4){return new Zr(Yn.decode(t.data(),e),t.id(),t.isDelta())}function lT(t){return new Kr(t.offset(),t.length())}function cT(t){return new Wo(t.length(),t.nullCount())}function uT(t){const e=[];for(let n,r=-1,s=-1,a=t.nodesLength();++r<a;)(n=t.nodes(r))&&(e[++s]=Wo.decode(n));return e}function dT(t,e){const n=[];for(let r,s=-1,a=-1,c=t.buffersLength();++s<c;)(r=t.buffers(s))&&(e<Vn.V4&&(r.bb_pos+=8*(s+1)),n[++a]=Kr.decode(r));return n}function fT(t,e){const n=[];for(let r,s=-1,a=-1,c=t.fieldsLength();++s<c;)(r=t.fields(s))&&(n[++a]=mt.decode(r,e));return n}function fv(t,e){const n=[];for(let r,s=-1,a=-1,c=t.childrenLength();++s<c;)(r=t.children(s))&&(n[++a]=mt.decode(r,e));return n}function pT(t,e){let n,r,s,a,c,u;return!e||!(u=t.dictionary())?(s=hv(t,fv(t,e)),r=new mt(t.name(),s,t.nullable(),cu(t))):e.has(n=u.id().low)?(a=(a=u.indexType())?pv(a):new al,c=new zs(e.get(n),a,n,u.isOrdered()),r=new mt(t.name(),c,t.nullable(),cu(t))):(a=(a=u.indexType())?pv(a):new al,e.set(n,s=hv(t,fv(t,e))),c=new zs(s,a,n,u.isOrdered()),r=new mt(t.name(),c,t.nullable(),cu(t))),r||null}function cu(t){const e=new Map;if(t)for(let n,r,s=-1,a=Math.trunc(t.customMetadataLength());++s<a;)(n=t.customMetadata(s))&&(r=n.key())!=null&&e.set(r,n.value());return e}function pv(t){return new ro(t.isSigned(),t.bitWidth())}function hv(t,e){const n=t.typeType();switch(n){case _t.NONE:return new no;case _t.Null:return new no;case _t.Binary:return new Cu;case _t.Utf8:return new xu;case _t.Bool:return new Iu;case _t.List:return new Au((e||[])[0]);case _t.Struct_:return new mn(e||[])}switch(n){case _t.Int:{const r=t.type(new Un);return new ro(r.isSigned(),r.bitWidth())}case _t.FloatingPoint:{const r=t.type(new Vr);return new ll(r.precision())}case _t.Decimal:{const r=t.type(new Tn);return new Tu(r.scale(),r.precision(),r.bitWidth())}case _t.Date:{const r=t.type(new iu);return new ku(r.unit())}case _t.Time:{const r=t.type(new ir);return new cl(r.unit(),r.bitWidth())}case _t.Timestamp:{const r=t.type(new or);return new Ru(r.unit(),r.timezone())}case _t.Interval:{const r=t.type(new Wr);return new Eu(r.unit())}case _t.Union:{const r=t.type(new kn);return new Pu(r.mode(),r.typeIdsArray()||[],e||[])}case _t.FixedSizeBinary:{const r=t.type(new zr);return new Ou(r.byteWidth())}case _t.FixedSizeList:{const r=t.type(new Ur);return new Mu(r.listSize(),(e||[])[0])}case _t.Map:{const r=t.type(new ou);return new Du((e||[])[0],r.keysSorted())}}throw new Error(`Unrecognized type: "${_t[n]}" (${n})`)}function hT(t,e){const n=e.fields.map(a=>mt.encode(t,a));Nr.startFieldsVector(t,n.length);const r=Nr.createFieldsVector(t,n),s=e.metadata&&e.metadata.size>0?Nr.createCustomMetadataVector(t,[...e.metadata].map(([a,c])=>{const u=t.createString(`${a}`),f=t.createString(`${c}`);return zt.startKeyValue(t),zt.addKey(t,u),zt.addValue(t,f),zt.endKeyValue(t)})):-1;return Nr.startSchema(t),Nr.addFields(t,r),Nr.addEndianness(t,ST?Ws.Little:Ws.Big),s!==-1&&Nr.addCustomMetadata(t,s),Nr.endSchema(t)}function mT(t,e){let n=-1,r=-1,s=-1;const a=e.type;let c=e.typeId;be.isDictionary(a)?(c=a.dictionary.typeId,s=Op.visit(a,t),r=Op.visit(a.dictionary,t)):r=Op.visit(a,t);const u=(a.children||[]).map(y=>mt.encode(t,y)),f=tr.createChildrenVector(t,u),h=e.metadata&&e.metadata.size>0?tr.createCustomMetadataVector(t,[...e.metadata].map(([y,g])=>{const v=t.createString(`${y}`),_=t.createString(`${g}`);return zt.startKeyValue(t),zt.addKey(t,v),zt.addValue(t,_),zt.endKeyValue(t)})):-1;return e.name&&(n=t.createString(e.name)),tr.startField(t),tr.addType(t,r),tr.addTypeType(t,c),tr.addChildren(t,f),tr.addNullable(t,!!e.nullable),n!==-1&&tr.addName(t,n),s!==-1&&tr.addDictionary(t,s),h!==-1&&tr.addCustomMetadata(t,h),tr.endField(t)}function yT(t,e){const n=e.nodes||[],r=e.buffers||[];gi.startNodesVector(t,n.length);for(const c of n.slice().reverse())Wo.encode(t,c);const s=t.endVector();gi.startBuffersVector(t,r.length);for(const c of r.slice().reverse())Kr.encode(t,c);const a=t.endVector();return gi.startRecordBatch(t),gi.addLength(t,new Uo(e.length,0)),gi.addNodes(t,s),gi.addBuffers(t,a),gi.endRecordBatch(t)}function gT(t,e){const n=Yn.encode(t,e.data);return Es.startDictionaryBatch(t),Es.addId(t,new Uo(e.id,0)),Es.addIsDelta(t,e.isDelta),Es.addData(t,n),Es.endDictionaryBatch(t)}function vT(t,e){return uS.createFieldNode(t,new Uo(e.length,0),new Uo(e.nullCount,0))}function bT(t,e){return cS.createBuffer(t,new Uo(e.offset,0),new Uo(e.length,0))}const ST=(()=>{const t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),new Int16Array(t)[0]===256})(),um=t=>`Expected ${Ze[t]} Message in stream, but was null or length 0.`,dm=t=>`Header pointer of flatbuffer-encoded ${Ze[t]} Message is null or length 0.`,hS=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,mS=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`;class yS{constructor(e){this.source=e instanceof Vu?e:new Vu(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?wt:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let n;if((n=this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(um(e));return n.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const n=Qe(this.source.read(e));if(n.byteLength<e)throw new Error(mS(e,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()}readSchema(e=!1){const n=Ze.Schema,r=this.readMessage(n),s=r==null?void 0:r.header();if(e&&!s)throw new Error(dm(n));return s}readMetadataLength(){const e=this.source.read(cd),n=e&&new Us(e),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}}readMetadata(e){const n=this.source.read(e);if(!n)return wt;if(n.byteLength<e)throw new Error(hS(e,n.byteLength));return{done:!1,value:_i.decode(n)}}}class _T{constructor(e,n){this.source=e instanceof Gs?e:L1(e)?new Wu(e,n):new Gs(e)}[Symbol.asyncIterator](){return this}next(){return ve(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?wt:e})}throw(e){return ve(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return ve(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return ve(this,void 0,void 0,function*(){let n;if((n=yield this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(um(e));return n.value})}readMessageBody(e){return ve(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);const n=Qe(yield this.source.read(e));if(n.byteLength<e)throw new Error(mS(e,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()})}readSchema(e=!1){return ve(this,void 0,void 0,function*(){const n=Ze.Schema,r=yield this.readMessage(n),s=r==null?void 0:r.header();if(e&&!s)throw new Error(dm(n));return s})}readMetadataLength(){return ve(this,void 0,void 0,function*(){const e=yield this.source.read(cd),n=e&&new Us(e),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}})}readMetadata(e){return ve(this,void 0,void 0,function*(){const n=yield this.source.read(e);if(!n)return wt;if(n.byteLength<e)throw new Error(hS(e,n.byteLength));return{done:!1,value:_i.decode(n)}})}}class wT extends yS{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof sv?e:new sv(e)}next(){const{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:_i.fromJSON(e.schema,Ze.Schema)};if(this._dictionaryIndex<e.dictionaries.length){const n=e.dictionaries[this._dictionaryIndex++];return this._body=n.data.columns,{done:!1,value:_i.fromJSON(n,Ze.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const n=e.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:_i.fromJSON(n,Ze.RecordBatch)}}return this._body=[],wt}readMessageBody(e){return n(this._body);function n(r){return(r||[]).reduce((s,a)=>[...s,...a.VALIDITY&&[a.VALIDITY]||[],...a.TYPE&&[a.TYPE]||[],...a.OFFSET&&[a.OFFSET]||[],...a.DATA&&[a.DATA]||[],...n(a.children)],[])}}readMessage(e){let n;if((n=this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(um(e));return n.value}readSchema(){const e=Ze.Schema,n=this.readMessage(e),r=n==null?void 0:n.header();if(!n||!r)throw new Error(dm(e));return r}}const cd=4,fh="ARROW1",dl=new Uint8Array(fh.length);for(let t=0;t<fh.length;t+=1)dl[t]=fh.codePointAt(t);function fm(t,e=0){for(let n=-1,r=dl.length;++n<r;)if(dl[n]!==t[e+n])return!1;return!0}const kl=dl.length,gS=kl+cd,CT=kl*2+cd;class xi extends im{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){const n=this._impl.open(e);return eo(n)?n.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return nr.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return nr.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,n){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof xi?e:th(e)?kT(e):L1(e)?AT(e):eo(e)?ve(this,void 0,void 0,function*(){return yield xi.from(yield e)}):F1(e)||Wh(e)||$1(e)||Zs(e)?ET(new Gs(e)):RT(new Vu(e))}static readAll(e){return e instanceof xi?e.isSync()?mv(e):yv(e):th(e)||ArrayBuffer.isView(e)||Cl(e)||B1(e)?mv(e):yv(e)}}class Ku extends xi{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Yr(this,arguments,function*(){yield Pe(yield*ru($o(this[Symbol.iterator]())))})}}class Qu extends xi{constructor(e){super(e),this._impl=e}readAll(){var e,n;return ve(this,void 0,void 0,function*(){const r=new Array;try{for(var s=$o(this),a;a=yield s.next(),!a.done;){const c=a.value;r.push(c)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=s.return)&&(yield n.call(s))}finally{if(e)throw e.error}}return r})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class vS extends Ku{constructor(e){super(e),this._impl=e}}class xT extends Qu{constructor(e){super(e),this._impl=e}}class bS{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,n){const r=this._loadVectors(e,n,this.schema.fields),s=Ue({type:new mn(this.schema.fields),length:e.length,children:r});return new Rn(this.schema,s)}_loadDictionaryBatch(e,n){const{id:r,isDelta:s}=e,{dictionaries:a,schema:c}=this,u=a.get(r);if(s||!u){const f=c.dictionaries.get(r),h=this._loadVectors(e.data,n,[f]);return(u&&s?u.concat(new et(h)):new et(h)).memoize()}return u.memoize()}_loadVectors(e,n,r){return new oS(n,e.nodes,e.buffers,this.dictionaries).visitMany(r)}}class Xu extends bS{constructor(e,n){super(n),this._reader=th(e)?new wT(this._handle=e):new yS(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=_S(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):wt}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):wt}next(){if(this.closed)return wt;let e;const{_reader:n}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),s=n.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,s)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),s=n.readMessageBody(e.bodyLength),a=this._loadDictionaryBatch(r,s);this.dictionaries.set(r.id,a)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new cm(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class qu extends bS{constructor(e,n){super(n),this._reader=new _T(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return ve(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return ve(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=_S(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return ve(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):wt})}return(e){return ve(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):wt})}next(){return ve(this,void 0,void 0,function*(){if(this.closed)return wt;let e;const{_reader:n}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),s=yield n.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,s)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),s=yield n.readMessageBody(e.bodyLength),a=this._loadDictionaryBatch(r,s);this.dictionaries.set(r.id,a)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new cm(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return ve(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}}class SS extends Xu{constructor(e,n){super(e instanceof av?e:new av(e),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const n of this._footer.dictionaryBatches())n&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var n;if(this.closed)return null;this._footer||this.open();const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(e);if(r&&this._handle.seek(r.offset)){const s=this._reader.readMessage(Ze.RecordBatch);if(s!=null&&s.isRecordBatch()){const a=s.header(),c=this._reader.readMessageBody(s.bodyLength);return this._loadRecordBatch(a,c)}}return null}_readDictionaryBatch(e){var n;const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(e);if(r&&this._handle.seek(r.offset)){const s=this._reader.readMessage(Ze.DictionaryBatch);if(s!=null&&s.isDictionaryBatch()){const a=s.header(),c=this._reader.readMessageBody(s.bodyLength),u=this._loadDictionaryBatch(a,c);this.dictionaries.set(a.id,u)}}}_readFooter(){const{_handle:e}=this,n=e.size-gS,r=e.readInt32(n),s=e.readAt(n-r,r);return ul.decode(s)}_readNextMessageAndValidate(e){var n;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(this._recordBatchIndex);if(r&&this._handle.seek(r.offset))return this._reader.readMessage(e)}return null}}class IT extends qu{constructor(e,...n){const r=typeof n[0]!="number"?n.shift():void 0,s=n[0]instanceof Map?n.shift():void 0;super(e instanceof Wu?e:new Wu(e,r),s)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}open(e){const n=Object.create(null,{open:{get:()=>super.open}});return ve(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const r of this._footer.dictionaryBatches())r&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield n.open.call(this,e)})}readRecordBatch(e){var n;return ve(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(e);if(r&&(yield this._handle.seek(r.offset))){const s=yield this._reader.readMessage(Ze.RecordBatch);if(s!=null&&s.isRecordBatch()){const a=s.header(),c=yield this._reader.readMessageBody(s.bodyLength);return this._loadRecordBatch(a,c)}}return null})}_readDictionaryBatch(e){var n;return ve(this,void 0,void 0,function*(){const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(e);if(r&&(yield this._handle.seek(r.offset))){const s=yield this._reader.readMessage(Ze.DictionaryBatch);if(s!=null&&s.isDictionaryBatch()){const a=s.header(),c=yield this._reader.readMessageBody(s.bodyLength),u=this._loadDictionaryBatch(a,c);this.dictionaries.set(a.id,u)}}})}_readFooter(){return ve(this,void 0,void 0,function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const n=e.size-gS,r=yield e.readInt32(n),s=yield e.readAt(n-r,r);return ul.decode(s)})}_readNextMessageAndValidate(e){return ve(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const n=this._footer.getRecordBatch(this._recordBatchIndex);if(n&&(yield this._handle.seek(n.offset)))return yield this._reader.readMessage(e)}return null})}}class TT extends Xu{constructor(e,n){super(e,n)}_loadVectors(e,n,r){return new FI(n,e.nodes,e.buffers,this.dictionaries).visitMany(r)}}function _S(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*mv(t){const e=xi.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function yv(t){return Yr(this,arguments,function*(){const n=yield Pe(xi.from(t));try{if(!(yield Pe(n.open({autoDestroy:!1}))).closed)do yield yield Pe(n);while(!(yield Pe(n.reset().open())).closed)}finally{yield Pe(n.cancel())}})}function kT(t){return new Ku(new TT(t))}function RT(t){const e=t.peek(kl+7&-8);return e&&e.byteLength>=4?fm(e)?new vS(new SS(t.read())):new Ku(new Xu(t)):new Ku(new Xu(function*(){}()))}function ET(t){return ve(this,void 0,void 0,function*(){const e=yield t.peek(kl+7&-8);return e&&e.byteLength>=4?fm(e)?new vS(new SS(yield t.read())):new Qu(new qu(t)):new Qu(new qu(function(){return Yr(this,arguments,function*(){})}()))})}function AT(t){return ve(this,void 0,void 0,function*(){const{size:e}=yield t.stat(),n=new Wu(t,e);return e>=CT&&fm(yield n.readAt(0,kl+7&-8))?new xT(new IT(n)):new Qu(new qu(n))})}class Bt extends Ve{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...e){const n=s=>s.flatMap(a=>Array.isArray(a)?n(a):a instanceof Rn?a.data.children:a.data),r=new Bt;return r.visitMany(n(e)),r}visit(e){if(e instanceof et)return this.visitMany(e.data),this;const{type:n}=e;if(!be.isDictionary(n)){const{length:r,nullCount:s}=e;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");be.isNull(n)||wr.call(this,s<=0?new Uint8Array(0):Zh(e.offset,r,e.nullBitmap)),this.nodes.push(new Wo(r,s))}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function wr(t){const e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Kr(this._byteLength,e)),this._byteLength+=e,this}function PT(t){const{type:e,length:n,typeIds:r,valueOffsets:s}=t;if(wr.call(this,r),e.mode===Gn.Sparse)return ph.call(this,t);if(e.mode===Gn.Dense){if(t.offset<=0)return wr.call(this,s),ph.call(this,t);{const a=r.reduce((y,g)=>Math.max(y,g),r[0]),c=new Int32Array(a+1),u=new Int32Array(a+1).fill(-1),f=new Int32Array(n),h=Gh(-s[0],n,s);for(let y,g,v=-1;++v<n;)(g=u[y=r[v]])===-1&&(g=u[y]=h[y]),f[v]=h[v]-g,++c[y];wr.call(this,f);for(let y,g=-1,v=e.children.length;++g<v;)if(y=t.children[g]){const _=e.typeIds[g],C=Math.min(n,c[_]);this.visit(y.slice(u[_],C))}}}return this}function OT(t){let e;return t.nullCount>=t.length?wr.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?wr.call(this,Zh(t.offset,t.length,e)):wr.call(this,Nu(t.values))}function fo(t){return wr.call(this,t.values.subarray(0,t.length*t.stride))}function wS(t){const{length:e,values:n,valueOffsets:r}=t,s=r[0],a=r[e],c=Math.min(a-s,n.byteLength-s);return wr.call(this,Gh(-r[0],e,r)),wr.call(this,n.subarray(s,s+c)),this}function pm(t){const{length:e,valueOffsets:n}=t;return n&&wr.call(this,Gh(n[0],e,n)),this.visit(t.children[0])}function ph(t){return this.visitMany(t.type.children.map((e,n)=>t.children[n]).filter(Boolean))[0]}Bt.prototype.visitBool=OT;Bt.prototype.visitInt=fo;Bt.prototype.visitFloat=fo;Bt.prototype.visitUtf8=wS;Bt.prototype.visitBinary=wS;Bt.prototype.visitFixedSizeBinary=fo;Bt.prototype.visitDate=fo;Bt.prototype.visitTimestamp=fo;Bt.prototype.visitTime=fo;Bt.prototype.visitDecimal=fo;Bt.prototype.visitList=pm;Bt.prototype.visitStruct=ph;Bt.prototype.visitUnion=PT;Bt.prototype.visitInterval=fo;Bt.prototype.visitFixedSizeList=pm;Bt.prototype.visitMap=pm;class CS extends im{constructor(e){super(),this._position=0,this._started=!1,this._sink=new au,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,An(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof e.autoDestroy=="boolean"?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat=="boolean"?e.writeLegacyIpcFormat:!1}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,n){throw new Error('"throughDOM" not available in this environment')}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return eo(e)?e.then(n=>this.writeAll(n)):Zs(e)?gm(this,e):ym(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,n=null){return e===this._sink||e instanceof au?this._sink=e:(this._sink=new au,e&&ZC(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&ex(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,(!n||!ch(n,this._schema))&&(n==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=n,this._writeSchema(n))),this}write(e){let n=null;if(this._sink){if(e==null)return this.finish()&&void 0;if(e instanceof pn&&!(n=e.schema))return this.finish()&&void 0;if(e instanceof Rn&&!(n=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(n&&!ch(n,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,n)}e instanceof Rn?e instanceof cm||this._writeRecordBatch(e):e instanceof pn?this.writeAll(e.batches):Cl(e)&&this.writeAll(e)}_writeMessage(e,n=8){const r=n-1,s=_i.encode(e),a=s.byteLength,c=this._writeLegacyIpcFormat?4:8,u=a+c+r&~r,f=u-a-c;return e.headerType===Ze.RecordBatch?this._recordBatchBlocks.push(new io(u,e.bodyLength,this._position)):e.headerType===Ze.DictionaryBatch&&this._dictionaryBlocks.push(new io(u,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(u-c)),a>0&&this._write(s),this._writePadding(f)}_write(e){if(this._started){const n=Qe(e);n&&n.byteLength>0&&(this._sink.write(n),this._position+=n.byteLength)}return this}_writeSchema(e){return this._writeMessage(_i.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(dl)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){const{byteLength:n,nodes:r,bufferRegions:s,buffers:a}=Bt.assemble(e),c=new Yn(e.numRows,r,s),u=_i.from(c,n);return this._writeDictionaries(e)._writeMessage(u)._writeBodyBuffers(a)}_writeDictionaryBatch(e,n,r=!1){this._dictionaryDeltaOffsets.set(n,e.length+(this._dictionaryDeltaOffsets.get(n)||0));const{byteLength:s,nodes:a,bufferRegions:c,buffers:u}=Bt.assemble(new et([e])),f=new Yn(e.length,a,c),h=new Zr(f,n,r),y=_i.from(h,s);return this._writeMessage(y)._writeBodyBuffers(u)}_writeBodyBuffers(e){let n,r,s;for(let a=-1,c=e.length;++a<c;)(n=e[a])&&(r=n.byteLength)>0&&(this._write(n),(s=(r+7&-8)-r)>0&&this._writePadding(s));return this}_writeDictionaries(e){for(let[n,r]of e.dictionaries){let s=this._dictionaryDeltaOffsets.get(n)||0;if(s===0||(r=r==null?void 0:r.slice(s)).length>0)for(const a of r.data)this._writeDictionaryBatch(a,n,s>0),s+=a.length}return this}}class hm extends CS{static writeAll(e,n){const r=new hm(n);return eo(e)?e.then(s=>r.writeAll(s)):Zs(e)?gm(r,e):ym(r,e)}}class mm extends CS{static writeAll(e){const n=new mm;return eo(e)?e.then(r=>n.writeAll(r)):Zs(e)?gm(n,e):ym(n,e)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeFooter(e){const n=ul.encode(new ul(e,Vn.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(n)._write(Int32Array.of(n.byteLength))._writeMagic()}}function ym(t,e){let n=e;e instanceof pn&&(n=e.batches,t.reset(void 0,e.schema));for(const r of n)t.write(r);return t.finish()}function gm(t,e){var n,r,s,a;return ve(this,void 0,void 0,function*(){try{for(n=$o(e);r=yield n.next(),!r.done;){const c=r.value;t.write(c)}}catch(c){s={error:c}}finally{try{r&&!r.done&&(a=n.return)&&(yield a.call(n))}finally{if(s)throw s.error}}return t.finish()})}function qa(t){const e=xi.from(t);return eo(e)?e.then(n=>qa(n)):e.isAsync()?e.readAll().then(n=>new pn(n)):new pn(e.readAll())}function Mp(t,e="stream"){return(e==="stream"?hm:mm).writeAll(t).toUint8Array(!0)}var hh=function(){function t(e,n,r,s){var a=this;this.getCell=function(c,u){var f=c<a.headerRows&&u<a.headerColumns,h=c>=a.headerRows&&u<a.headerColumns,y=c<a.headerRows&&u>=a.headerColumns;if(f){var g=["blank"];return u>0&&g.push("level"+c),{type:"blank",classNames:g.join(" "),content:""}}else if(y){var v=u-a.headerColumns,g=["col_heading","level"+c,"col"+v];return{type:"columns",classNames:g.join(" "),content:a.getContent(a.columnsTable,v,c)}}else if(h){var _=c-a.headerRows,g=["row_heading","level"+u,"row"+_];return{type:"index",id:"T_".concat(a.uuid,"level").concat(u,"_row").concat(_),classNames:g.join(" "),content:a.getContent(a.indexTable,_,u)}}else{var _=c-a.headerRows,v=u-a.headerColumns,g=["data","row"+_,"col"+v],C=a.styler?a.getContent(a.styler.displayValuesTable,_,v):a.getContent(a.dataTable,_,v);return{type:"data",id:"T_".concat(a.uuid,"row").concat(_,"_col").concat(v),classNames:g.join(" "),content:C}}},this.getContent=function(c,u,f){var h=c.getChildAt(f);if(h===null)return"";var y=a.getColumnTypeId(c,f);switch(y){case N.Timestamp:return a.nanosToDate(h.get(u));default:return h.get(u)}},this.dataTable=qa(e),this.indexTable=qa(n),this.columnsTable=qa(r),this.styler=s?{caption:s.caption,displayValuesTable:qa(s.displayValues),styles:s.styles,uuid:s.uuid}:void 0}return Object.defineProperty(t.prototype,"rows",{get:function(){return this.indexTable.numRows+this.columnsTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataRows",{get:function(){return this.dataTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.dataTable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.indexTable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!1,configurable:!0}),t.prototype.serialize=function(){return{data:Mp(this.dataTable),index:Mp(this.indexTable),columns:Mp(this.columnsTable)}},t.prototype.getColumnTypeId=function(e,n){return e.schema.fields[n].type.typeId},t.prototype.nanosToDate=function(e){return new Date(e/1e6)},t}(),tl=function(){return tl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},tl.apply(this,arguments)},nl;(function(t){t.COMPONENT_READY="streamlit:componentReady",t.SET_COMPONENT_VALUE="streamlit:setComponentValue",t.SET_FRAME_HEIGHT="streamlit:setFrameHeight"})(nl||(nl={}));var hn=function(){function t(){}return t.API_VERSION=1,t.RENDER_EVENT="streamlit:render",t.events=new EventTarget,t.registeredMessageListener=!1,t.setComponentReady=function(){t.registeredMessageListener||(window.addEventListener("message",t.onMessageEvent),t.registeredMessageListener=!0),t.sendBackMsg(nl.COMPONENT_READY,{apiVersion:t.API_VERSION})},t.setFrameHeight=function(e){e===void 0&&(e=document.body.scrollHeight),e!==t.lastFrameHeight&&(t.lastFrameHeight=e,t.sendBackMsg(nl.SET_FRAME_HEIGHT,{height:e}))},t.setComponentValue=function(e){var n;e instanceof hh?(n="dataframe",e=e.serialize()):DT(e)?(n="bytes",e=new Uint8Array(e.buffer)):e instanceof ArrayBuffer?(n="bytes",e=new Uint8Array(e)):n="json",t.sendBackMsg(nl.SET_COMPONENT_VALUE,{value:e,dataType:n})},t.onMessageEvent=function(e){var n=e.data.type;switch(n){case t.RENDER_EVENT:t.onRenderMessage(e.data);break}},t.onRenderMessage=function(e){var n=e.args;n==null&&(console.error("Got null args in onRenderMessage. This should never happen"),n={});var r=e.dfs&&e.dfs.length>0?t.argsDataframeToObject(e.dfs):{};n=tl(tl({},n),r);var s=!!e.disabled,a=e.theme;a&&MT(a);var c={disabled:s,args:n,theme:a},u=new CustomEvent(t.RENDER_EVENT,{detail:c});t.events.dispatchEvent(u)},t.argsDataframeToObject=function(e){var n=e.map(function(r){var s=r.key,a=r.value;return[s,t.toArrowTable(a)]});return Object.fromEntries(n)},t.toArrowTable=function(e){var n,r=(n=e.data,n.data),s=n.index,a=n.columns,c=n.styler;return new hh(r,s,a,c)},t.sendBackMsg=function(e,n){window.parent.postMessage(tl({isStreamlitMessage:!0,type:e},n),"*")},t}(),MT=function(t){var e=document.createElement("style");document.head.appendChild(e),e.innerHTML=`
51
- :root {
52
- --primary-color: `.concat(t.primaryColor,`;
53
- --background-color: `).concat(t.backgroundColor,`;
54
- --secondary-background-color: `).concat(t.secondaryBackgroundColor,`;
55
- --text-color: `).concat(t.textColor,`;
56
- --font: `).concat(t.font,`;
57
- }
58
-
59
- body {
60
- background-color: var(--background-color);
61
- color: var(--text-color);
62
- }
63
- `)};function DT(t){var e=!1;try{e=t instanceof BigInt64Array||t instanceof BigUint64Array}catch{}return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array||e}var xS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),NT=function(t){xS(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){hn.setFrameHeight()},e.prototype.componentDidUpdate=function(){hn.setFrameHeight()},e}(Nt.PureComponent);function BT(t){var e=function(n){xS(r,n);function r(s){var a=n.call(this,s)||this;return a.componentDidMount=function(){hn.events.addEventListener(hn.RENDER_EVENT,a.onRenderEvent),hn.setComponentReady()},a.componentDidUpdate=function(){a.state.componentError!=null&&hn.setFrameHeight()},a.componentWillUnmount=function(){hn.events.removeEventListener(hn.RENDER_EVENT,a.onRenderEvent)},a.onRenderEvent=function(c){a.setState({renderData:c.detail})},a.state={renderData:void 0,componentError:void 0},a}return r.prototype.render=function(){return this.state.componentError!=null?Nt.createElement("div",null,Nt.createElement("h1",null,"Component Error"),Nt.createElement("span",null,this.state.componentError.message)):this.state.renderData==null?null:Nt.createElement(t,{width:window.innerWidth,disabled:this.state.renderData.disabled,args:this.state.renderData.args,theme:this.state.renderData.theme})},r.getDerivedStateFromError=function(s){return{componentError:s}},r}(Nt.PureComponent);return KC(e,t)}const LT=Object.freeze(Object.defineProperty({__proto__:null,ArrowTable:hh,Streamlit:hn,StreamlitComponentBase:NT,withStreamlitConnection:BT},Symbol.toStringTag,{value:"Module"})),IS=NC(LT);var Ga={},gv;function TS(){if(gv)return Ga;gv=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.useNullableRenderData=void 0;var t=Js(),e=IS,n=function(){var r=(0,t.useState)(),s=r[0],a=r[1];return(0,t.useEffect)(function(){var c=function(f){var h=f;a(h.detail)};e.Streamlit.events.addEventListener(e.Streamlit.RENDER_EVENT,c),e.Streamlit.setComponentReady();var u=function(){e.Streamlit.events.removeEventListener(e.Streamlit.RENDER_EVENT,c)};return u},[]),s};return Ga.useNullableRenderData=n,Ga}var Xi={},vv;function FT(){if(vv)return Xi;vv=1;var t=Xi&&Xi.__extends||function(){var a=function(c,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(f[y]=h[y])},a(c,u)};return function(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(c,u);function f(){this.constructor=c}c.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),e=Xi&&Xi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Xi,"__esModule",{value:!0});var n=Uh(),r=e(Js()),s=function(a){t(c,a);function c(u){var f=a.call(this,u)||this;return f.state={error:void 0},f}return c.getDerivedStateFromError=function(u){return{error:u}},c.prototype.render=function(){return this.state.error!=null?(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{children:"Component Error"},void 0),(0,n.jsx)("span",{children:this.state.error.message},void 0)]},void 0):this.props.children},c}(r.default.PureComponent);return Xi.default=s,Xi}var bv;function $T(){if(bv)return nn;bv=1;var t=nn&&nn.__assign||function(){return t=Object.assign||function(_){for(var C,w=1,I=arguments.length;w<I;w++){C=arguments[w];for(var P in C)Object.prototype.hasOwnProperty.call(C,P)&&(_[P]=C[P])}return _},t.apply(this,arguments)},e=nn&&nn.__createBinding||(Object.create?function(_,C,w,I){I===void 0&&(I=w),Object.defineProperty(_,I,{enumerable:!0,get:function(){return C[w]}})}:function(_,C,w,I){I===void 0&&(I=w),_[I]=C[w]}),n=nn&&nn.__setModuleDefault||(Object.create?function(_,C){Object.defineProperty(_,"default",{enumerable:!0,value:C})}:function(_,C){_.default=C}),r=nn&&nn.__importStar||function(_){if(_&&_.__esModule)return _;var C={};if(_!=null)for(var w in _)w!=="default"&&Object.prototype.hasOwnProperty.call(_,w)&&e(C,_,w);return n(C,_),C},s=nn&&nn.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(nn,"__esModule",{value:!0}),nn.useRenderData=void 0;var a=Uh(),c=r(Js()),u=IS,f=TS(),h=s(FT()),y=c.default.createContext(void 0),g=function(){var _=(0,c.useContext)(y);if(_==null)throw new Error("useRenderData() must be used inside <StreamlitProvider />");return _};nn.useRenderData=g;var v=function(_){var C=(0,f.useNullableRenderData)();return(0,c.useEffect)(function(){u.Streamlit.setFrameHeight()}),C==null?null:(0,a.jsx)(h.default,{children:(0,a.jsx)(y.Provider,t({value:C},{children:_.children}),void 0)},void 0)};return nn.default=v,nn}var Sv;function jT(){return Sv||(Sv=1,function(t){var e=Wa&&Wa.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.useNullableRenderData=t.StreamlitProvider=t.useRenderData=void 0;var n=$T();Object.defineProperty(t,"useRenderData",{enumerable:!0,get:function(){return n.useRenderData}}),Object.defineProperty(t,"StreamlitProvider",{enumerable:!0,get:function(){return e(n).default}});var r=TS();Object.defineProperty(t,"useNullableRenderData",{enumerable:!0,get:function(){return r.useNullableRenderData}})}(Wa)),Wa}var ud=jT();function so(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}const Cr="$$material";function Ju(){return Ju=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ju.apply(null,arguments)}function zT(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function UT(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var VT=function(){function t(n){var r=this;this._insertTag=function(s){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,a),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(UT(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var a=zT(s);try{a.insertRule(r,a.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},t}(),rn="-ms-",Zu="-moz-",Ye="-webkit-",kS="comm",vm="rule",bm="decl",WT="@import",RS="@keyframes",HT="@layer",GT=Math.abs,dd=String.fromCharCode,YT=Object.assign;function KT(t,e){return Kt(t,0)^45?(((e<<2^Kt(t,0))<<2^Kt(t,1))<<2^Kt(t,2))<<2^Kt(t,3):0}function ES(t){return t.trim()}function QT(t,e){return(t=e.exec(t))?t[0]:t}function Ke(t,e,n){return t.replace(e,n)}function mh(t,e){return t.indexOf(e)}function Kt(t,e){return t.charCodeAt(e)|0}function fl(t,e,n){return t.slice(e,n)}function Lr(t){return t.length}function Sm(t){return t.length}function Kc(t,e){return e.push(t),t}function XT(t,e){return t.map(e).join("")}var fd=1,Ks=1,AS=0,On=0,Dt=0,ta="";function pd(t,e,n,r,s,a,c){return{value:t,root:e,parent:n,type:r,props:s,children:a,line:fd,column:Ks,length:c,return:""}}function Ya(t,e){return YT(pd("",null,null,"",null,null,0),t,{length:-t.length},e)}function qT(){return Dt}function JT(){return Dt=On>0?Kt(ta,--On):0,Ks--,Dt===10&&(Ks=1,fd--),Dt}function Hn(){return Dt=On<AS?Kt(ta,On++):0,Ks++,Dt===10&&(Ks=1,fd++),Dt}function Qr(){return Kt(ta,On)}function uu(){return On}function Rl(t,e){return fl(ta,t,e)}function pl(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function PS(t){return fd=Ks=1,AS=Lr(ta=t),On=0,[]}function OS(t){return ta="",t}function du(t){return ES(Rl(On-1,yh(t===91?t+2:t===40?t+1:t)))}function ZT(t){for(;(Dt=Qr())&&Dt<33;)Hn();return pl(t)>2||pl(Dt)>3?"":" "}function ek(t,e){for(;--e&&Hn()&&!(Dt<48||Dt>102||Dt>57&&Dt<65||Dt>70&&Dt<97););return Rl(t,uu()+(e<6&&Qr()==32&&Hn()==32))}function yh(t){for(;Hn();)switch(Dt){case t:return On;case 34:case 39:t!==34&&t!==39&&yh(Dt);break;case 40:t===41&&yh(t);break;case 92:Hn();break}return On}function tk(t,e){for(;Hn()&&t+Dt!==57;)if(t+Dt===84&&Qr()===47)break;return"/*"+Rl(e,On-1)+"*"+dd(t===47?t:Hn())}function nk(t){for(;!pl(Qr());)Hn();return Rl(t,On)}function rk(t){return OS(fu("",null,null,null,[""],t=PS(t),0,[0],t))}function fu(t,e,n,r,s,a,c,u,f){for(var h=0,y=0,g=c,v=0,_=0,C=0,w=1,I=1,P=1,D=0,B="",M=s,E=a,U=r,O=B;I;)switch(C=D,D=Hn()){case 40:if(C!=108&&Kt(O,g-1)==58){mh(O+=Ke(du(D),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:O+=du(D);break;case 9:case 10:case 13:case 32:O+=ZT(C);break;case 92:O+=ek(uu()-1,7);continue;case 47:switch(Qr()){case 42:case 47:Kc(ik(tk(Hn(),uu()),e,n),f);break;default:O+="/"}break;case 123*w:u[h++]=Lr(O)*P;case 125*w:case 59:case 0:switch(D){case 0:case 125:I=0;case 59+y:P==-1&&(O=Ke(O,/\f/g,"")),_>0&&Lr(O)-g&&Kc(_>32?wv(O+";",r,n,g-1):wv(Ke(O," ","")+";",r,n,g-2),f);break;case 59:O+=";";default:if(Kc(U=_v(O,e,n,h,y,s,u,B,M=[],E=[],g),a),D===123)if(y===0)fu(O,e,U,U,M,a,g,u,E);else switch(v===99&&Kt(O,3)===110?100:v){case 100:case 108:case 109:case 115:fu(t,U,U,r&&Kc(_v(t,U,U,0,0,s,u,B,s,M=[],g),E),s,E,g,u,r?M:E);break;default:fu(O,U,U,U,[""],E,0,u,E)}}h=y=_=0,w=P=1,B=O="",g=c;break;case 58:g=1+Lr(O),_=C;default:if(w<1){if(D==123)--w;else if(D==125&&w++==0&&JT()==125)continue}switch(O+=dd(D),D*w){case 38:P=y>0?1:(O+="\f",-1);break;case 44:u[h++]=(Lr(O)-1)*P,P=1;break;case 64:Qr()===45&&(O+=du(Hn())),v=Qr(),y=g=Lr(B=O+=nk(uu())),D++;break;case 45:C===45&&Lr(O)==2&&(w=0)}}return a}function _v(t,e,n,r,s,a,c,u,f,h,y){for(var g=s-1,v=s===0?a:[""],_=Sm(v),C=0,w=0,I=0;C<r;++C)for(var P=0,D=fl(t,g+1,g=GT(w=c[C])),B=t;P<_;++P)(B=ES(w>0?v[P]+" "+D:Ke(D,/&\f/g,v[P])))&&(f[I++]=B);return pd(t,e,n,s===0?vm:u,f,h,y)}function ik(t,e,n){return pd(t,e,n,kS,dd(qT()),fl(t,2,-2),0)}function wv(t,e,n,r){return pd(t,e,n,bm,fl(t,0,r),fl(t,r+1,-1),r)}function Ls(t,e){for(var n="",r=Sm(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function ok(t,e,n,r){switch(t.type){case HT:if(t.children.length)break;case WT:case bm:return t.return=t.return||t.value;case kS:return"";case RS:return t.return=t.value+"{"+Ls(t.children,r)+"}";case vm:t.value=t.props.join(",")}return Lr(n=Ls(t.children,r))?t.return=t.value+"{"+n+"}":""}function sk(t){var e=Sm(t);return function(n,r,s,a){for(var c="",u=0;u<e;u++)c+=t[u](n,r,s,a)||"";return c}}function ak(t){return function(e){e.root||(e=e.return)&&t(e)}}function MS(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var lk=function(e,n,r){for(var s=0,a=0;s=a,a=Qr(),s===38&&a===12&&(n[r]=1),!pl(a);)Hn();return Rl(e,On)},ck=function(e,n){var r=-1,s=44;do switch(pl(s)){case 0:s===38&&Qr()===12&&(n[r]=1),e[r]+=lk(On-1,n,r);break;case 2:e[r]+=du(s);break;case 4:if(s===44){e[++r]=Qr()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=dd(s)}while(s=Hn());return e},uk=function(e,n){return OS(ck(PS(e),n))},Cv=new WeakMap,dk=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Cv.get(r))&&!s){Cv.set(e,!0);for(var a=[],c=uk(n,a),u=r.props,f=0,h=0;f<c.length;f++)for(var y=0;y<u.length;y++,h++)e.props[h]=a[f]?c[f].replace(/&\f/g,u[y]):u[y]+" "+c[f]}}},fk=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function DS(t,e){switch(KT(t,e)){case 5103:return Ye+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ye+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ye+t+Zu+t+rn+t+t;case 6828:case 4268:return Ye+t+rn+t+t;case 6165:return Ye+t+rn+"flex-"+t+t;case 5187:return Ye+t+Ke(t,/(\w+).+(:[^]+)/,Ye+"box-$1$2"+rn+"flex-$1$2")+t;case 5443:return Ye+t+rn+"flex-item-"+Ke(t,/flex-|-self/,"")+t;case 4675:return Ye+t+rn+"flex-line-pack"+Ke(t,/align-content|flex-|-self/,"")+t;case 5548:return Ye+t+rn+Ke(t,"shrink","negative")+t;case 5292:return Ye+t+rn+Ke(t,"basis","preferred-size")+t;case 6060:return Ye+"box-"+Ke(t,"-grow","")+Ye+t+rn+Ke(t,"grow","positive")+t;case 4554:return Ye+Ke(t,/([^-])(transform)/g,"$1"+Ye+"$2")+t;case 6187:return Ke(Ke(Ke(t,/(zoom-|grab)/,Ye+"$1"),/(image-set)/,Ye+"$1"),t,"")+t;case 5495:case 3959:return Ke(t,/(image-set\([^]*)/,Ye+"$1$`$1");case 4968:return Ke(Ke(t,/(.+:)(flex-)?(.*)/,Ye+"box-pack:$3"+rn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ye+t+t;case 4095:case 3583:case 4068:case 2532:return Ke(t,/(.+)-inline(.+)/,Ye+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Lr(t)-1-e>6)switch(Kt(t,e+1)){case 109:if(Kt(t,e+4)!==45)break;case 102:return Ke(t,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+Zu+(Kt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~mh(t,"stretch")?DS(Ke(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Kt(t,e+1)!==115)break;case 6444:switch(Kt(t,Lr(t)-3-(~mh(t,"!important")&&10))){case 107:return Ke(t,":",":"+Ye)+t;case 101:return Ke(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ye+(Kt(t,14)===45?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+rn+"$2box$3")+t}break;case 5936:switch(Kt(t,e+11)){case 114:return Ye+t+rn+Ke(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ye+t+rn+Ke(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ye+t+rn+Ke(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ye+t+rn+t+t}return t}var pk=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case bm:e.return=DS(e.value,e.length);break;case RS:return Ls([Ya(e,{value:Ke(e.value,"@","@"+Ye)})],s);case vm:if(e.length)return XT(e.props,function(a){switch(QT(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ls([Ya(e,{props:[Ke(a,/:(read-\w+)/,":"+Zu+"$1")]})],s);case"::placeholder":return Ls([Ya(e,{props:[Ke(a,/:(plac\w+)/,":"+Ye+"input-$1")]}),Ya(e,{props:[Ke(a,/:(plac\w+)/,":"+Zu+"$1")]}),Ya(e,{props:[Ke(a,/:(plac\w+)/,rn+"input-$1")]})],s)}return""})}},hk=[pk],mk=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var I=w.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var s=e.stylisPlugins||hk,a={},c,u=[];c=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var I=w.getAttribute("data-emotion").split(" "),P=1;P<I.length;P++)a[I[P]]=!0;u.push(w)});var f,h=[dk,fk];{var y,g=[ok,ak(function(w){y.insert(w)})],v=sk(h.concat(s,g)),_=function(I){return Ls(rk(I),v)};f=function(I,P,D,B){y=D,_(I?I+"{"+P.styles+"}":P.styles),B&&(C.inserted[P.name]=!0)}}var C={key:n,sheet:new VT({key:n,container:c,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:f};return C.sheet.hydrate(u),C},yk=!0;function NS(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):s&&(r+=s+" ")}),r}var _m=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||yk===!1)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},wm=function(e,n,r){_m(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a=n;do e.insert(n===a?"."+s:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function gk(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var vk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bk=/[A-Z]|^ms/g,Sk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BS=function(e){return e.charCodeAt(1)===45},xv=function(e){return e!=null&&typeof e!="boolean"},Dp=MS(function(t){return BS(t)?t:t.replace(bk,"-$&").toLowerCase()}),Iv=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Sk,function(r,s,a){return Fr={name:s,styles:a,next:Fr},s})}return vk[e]!==1&&!BS(e)&&typeof n=="number"&&n!==0?n+"px":n};function hl(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Fr={name:s.name,styles:s.styles,next:Fr},s.name;var a=n;if(a.styles!==void 0){var c=a.next;if(c!==void 0)for(;c!==void 0;)Fr={name:c.name,styles:c.styles,next:Fr},c=c.next;var u=a.styles+";";return u}return _k(t,e,n)}case"function":{if(t!==void 0){var f=Fr,h=n(t);return Fr=f,hl(t,e,h)}break}}var y=n;if(e==null)return y;var g=e[y];return g!==void 0?g:y}function _k(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=hl(t,e,n[s])+";";else for(var a in n){var c=n[a];if(typeof c!="object"){var u=c;e!=null&&e[u]!==void 0?r+=a+"{"+e[u]+"}":xv(u)&&(r+=Dp(a)+":"+Iv(a,u)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(e==null||e[c[0]]===void 0))for(var f=0;f<c.length;f++)xv(c[f])&&(r+=Dp(a)+":"+Iv(a,c[f])+";");else{var h=hl(t,e,c);switch(a){case"animation":case"animationName":{r+=Dp(a)+":"+h+";";break}default:r+=a+"{"+h+"}"}}}return r}var Tv=/label:\s*([^\s;{]+)\s*(;|$)/g,Fr;function El(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,s="";Fr=void 0;var a=t[0];if(a==null||a.raw===void 0)r=!1,s+=hl(n,e,a);else{var c=a;s+=c[0]}for(var u=1;u<t.length;u++)if(s+=hl(n,e,t[u]),r){var f=a;s+=f[u]}Tv.lastIndex=0;for(var h="",y;(y=Tv.exec(s))!==null;)h+="-"+y[1];var g=gk(s)+h;return{name:g,styles:s,next:Fr}}var wk=function(e){return e()},LS=wu.useInsertionEffect?wu.useInsertionEffect:!1,FS=LS||wk,kv=LS||A.useLayoutEffect,$S=A.createContext(typeof HTMLElement<"u"?mk({key:"css"}):null);$S.Provider;var Cm=function(e){return A.forwardRef(function(n,r){var s=A.useContext($S);return e(n,s,r)})},Al=A.createContext({}),xm={}.hasOwnProperty,gh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ck=function(e,n){var r={};for(var s in n)xm.call(n,s)&&(r[s]=n[s]);return r[gh]=e,r},xk=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;return _m(n,r,s),FS(function(){return wm(n,r,s)}),null},Ik=Cm(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var s=t[gh],a=[r],c="";typeof t.className=="string"?c=NS(e.registered,a,t.className):t.className!=null&&(c=t.className+" ");var u=El(a,void 0,A.useContext(Al));c+=e.key+"-"+u.name;var f={};for(var h in t)xm.call(t,h)&&h!=="css"&&h!==gh&&(f[h]=t[h]);return f.className=c,n&&(f.ref=n),A.createElement(A.Fragment,null,A.createElement(xk,{cache:e,serialized:u,isStringTag:typeof s=="string"}),A.createElement(s,f))}),Tk=Ik,Rv=function(e,n){var r=arguments;if(n==null||!xm.call(n,"css"))return A.createElement.apply(void 0,r);var s=r.length,a=new Array(s);a[0]=Tk,a[1]=Ck(e,n);for(var c=2;c<s;c++)a[c]=r[c];return A.createElement.apply(null,a)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(Rv||(Rv={}));var kk=Cm(function(t,e){var n=t.styles,r=El([n],void 0,A.useContext(Al)),s=A.useRef();return kv(function(){var a=e.key+"-global",c=new e.sheet.constructor({key:a,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),u=!1,f=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return e.sheet.tags.length&&(c.before=e.sheet.tags[0]),f!==null&&(u=!0,f.setAttribute("data-emotion",a),c.hydrate([f])),s.current=[c,u],function(){c.flush()}},[e]),kv(function(){var a=s.current,c=a[0],u=a[1];if(u){a[1]=!1;return}if(r.next!==void 0&&wm(e,r.next,!0),c.tags.length){var f=c.tags[c.tags.length-1].nextElementSibling;c.before=f,c.flush()}e.insert("",r,c,!1)},[e,r.name]),null});function Im(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return El(e)}function Pl(){var t=Im.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Rk=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ek=MS(function(t){return Rk.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),Ak=Ek,Pk=function(e){return e!=="theme"},Ev=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Ak:Pk},Av=function(e,n,r){var s;if(n){var a=n.shouldForwardProp;s=e.__emotion_forwardProp&&a?function(c){return e.__emotion_forwardProp(c)&&a(c)}:a}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},Ok=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;return _m(n,r,s),FS(function(){return wm(n,r,s)}),null},Mk=function t(e,n){var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,a,c;n!==void 0&&(a=n.label,c=n.target);var u=Av(e,n,r),f=u||Ev(s),h=!f("as");return function(){var y=arguments,g=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)g.push.apply(g,y);else{var v=y[0];g.push(v[0]);for(var _=y.length,C=1;C<_;C++)g.push(y[C],v[C])}var w=Cm(function(I,P,D){var B=h&&I.as||s,M="",E=[],U=I;if(I.theme==null){U={};for(var O in I)U[O]=I[O];U.theme=A.useContext(Al)}typeof I.className=="string"?M=NS(P.registered,E,I.className):I.className!=null&&(M=I.className+" ");var V=El(g.concat(E),P.registered,U);M+=P.key+"-"+V.name,c!==void 0&&(M+=" "+c);var Y=h&&u===void 0?Ev(B):f,S={};for(var F in I)h&&F==="as"||Y(F)&&(S[F]=I[F]);return S.className=M,D&&(S.ref=D),A.createElement(A.Fragment,null,A.createElement(Ok,{cache:P,serialized:V,isStringTag:typeof B=="string"}),A.createElement(B,S))});return w.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",w.defaultProps=e.defaultProps,w.__emotion_real=w,w.__emotion_base=s,w.__emotion_styles=g,w.__emotion_forwardProp=u,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(I,P){var D=t(I,Ju({},n,P,{shouldForwardProp:Av(w,P,!0)}));return D.apply(void 0,g)},w}},Dk=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],vh=Mk.bind(null);Dk.forEach(function(t){vh[t]=vh(t)});function Nk(t){return t==null||Object.keys(t).length===0}function jS(t){const{styles:e,defaultTheme:n={}}=t,r=typeof e=="function"?s=>e(Nk(s)?n:s):e;return j.jsx(kk,{styles:r})}/**
64
- * @mui/styled-engine v6.4.6
65
- *
66
- * @license MIT
67
- * This source code is licensed under the MIT license found in the
68
- * LICENSE file in the root directory of this source tree.
69
- */function zS(t,e){return vh(t,e)}function Bk(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Pv=[];function Ov(t){return Pv[0]=t,El(Pv)}var Np={exports:{}},it={};/**
70
- * @license React
71
- * react-is.production.js
72
- *
73
- * Copyright (c) Meta Platforms, Inc. and affiliates.
74
- *
75
- * This source code is licensed under the MIT license found in the
76
- * LICENSE file in the root directory of this source tree.
77
- */var Mv;function Lk(){if(Mv)return it;Mv=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),_=Symbol.for("react.client.reference");function C(w){if(typeof w=="object"&&w!==null){var I=w.$$typeof;switch(I){case t:switch(w=w.type,w){case n:case s:case r:case f:case h:return w;default:switch(w=w&&w.$$typeof,w){case c:case u:case g:case y:return w;case a:return w;default:return I}}case e:return I}}}return it.ContextConsumer=a,it.ContextProvider=c,it.Element=t,it.ForwardRef=u,it.Fragment=n,it.Lazy=g,it.Memo=y,it.Portal=e,it.Profiler=s,it.StrictMode=r,it.Suspense=f,it.SuspenseList=h,it.isContextConsumer=function(w){return C(w)===a},it.isContextProvider=function(w){return C(w)===c},it.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},it.isForwardRef=function(w){return C(w)===u},it.isFragment=function(w){return C(w)===n},it.isLazy=function(w){return C(w)===g},it.isMemo=function(w){return C(w)===y},it.isPortal=function(w){return C(w)===e},it.isProfiler=function(w){return C(w)===s},it.isStrictMode=function(w){return C(w)===r},it.isSuspense=function(w){return C(w)===f},it.isSuspenseList=function(w){return C(w)===h},it.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===s||w===r||w===f||w===h||w===v||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===y||w.$$typeof===c||w.$$typeof===a||w.$$typeof===u||w.$$typeof===_||w.getModuleId!==void 0)},it.typeOf=C,it}var Dv;function Fk(){return Dv||(Dv=1,Np.exports=Lk()),Np.exports}var US=Fk();function Hr(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function VS(t){if(A.isValidElement(t)||US.isValidElementType(t)||!Hr(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=VS(t[n])}),e}function sn(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Hr(t)&&Hr(e)&&Object.keys(e).forEach(s=>{A.isValidElement(e[s])||US.isValidElementType(e[s])?r[s]=e[s]:Hr(e[s])&&Object.prototype.hasOwnProperty.call(t,s)&&Hr(t[s])?r[s]=sn(t[s],e[s],n):n.clone?r[s]=Hr(e[s])?VS(e[s]):e[s]:r[s]=e[s]}),r}const $k=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function jk(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...s}=t,a=$k(e),c=Object.keys(a);function u(v){return`@media (min-width:${typeof e[v]=="number"?e[v]:v}${n})`}function f(v){return`@media (max-width:${(typeof e[v]=="number"?e[v]:v)-r/100}${n})`}function h(v,_){const C=c.indexOf(_);return`@media (min-width:${typeof e[v]=="number"?e[v]:v}${n}) and (max-width:${(C!==-1&&typeof e[c[C]]=="number"?e[c[C]]:_)-r/100}${n})`}function y(v){return c.indexOf(v)+1<c.length?h(v,c[c.indexOf(v)+1]):u(v)}function g(v){const _=c.indexOf(v);return _===0?u(c[1]):_===c.length-1?f(c[_]):h(v,c[c.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:c,values:a,up:u,down:f,between:h,only:y,not:g,unit:n,...s}}function zk(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter(r=>r.startsWith("@container")).sort((r,s)=>{var c,u;const a=/min-width:\s*([0-9.]+)/;return+(((c=r.match(a))==null?void 0:c[1])||0)-+(((u=s.match(a))==null?void 0:u[1])||0)});return n.length?n.reduce((r,s)=>{const a=e[s];return delete r[s],r[s]=a,r},{...e}):e}function Uk(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function Vk(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,s]=n,a=Number.isNaN(+r)?r||0:+r;return t.containerQueries(s).up(a)}function Wk(t){const e=(a,c)=>a.replace("@media",c?`@container ${c}`:"@container");function n(a,c){a.up=(...u)=>e(t.breakpoints.up(...u),c),a.down=(...u)=>e(t.breakpoints.down(...u),c),a.between=(...u)=>e(t.breakpoints.between(...u),c),a.only=(...u)=>e(t.breakpoints.only(...u),c),a.not=(...u)=>{const f=e(t.breakpoints.not(...u),c);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const r={},s=a=>(n(r,a),r);return n(s),{...t,containerQueries:s}}const Hk={borderRadius:4};function rl(t,e){return e?sn(t,e,{clone:!1}):t}const hd={xs:0,sm:600,md:900,lg:1200,xl:1536},Nv={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${hd[t]}px)`},Gk={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:hd[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function Ir(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const a=r.breakpoints||Nv;return e.reduce((c,u,f)=>(c[a.up(a.keys[f])]=n(e[f]),c),{})}if(typeof e=="object"){const a=r.breakpoints||Nv;return Object.keys(e).reduce((c,u)=>{if(Uk(a.keys,u)){const f=Vk(r.containerQueries?r:Gk,u);f&&(c[f]=n(e[u],u))}else if(Object.keys(a.values||hd).includes(u)){const f=a.up(u);c[f]=n(e[u],u)}else{const f=u;c[f]=e[f]}return c},{})}return n(e)}function WS(t={}){var n;return((n=t.keys)==null?void 0:n.reduce((r,s)=>{const a=t.up(s);return r[a]={},r},{}))||{}}function HS(t,e){return t.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},e)}function Yk(t,...e){const n=WS(t),r=[n,...e].reduce((s,a)=>sn(s,a),{});return HS(Object.keys(n),r)}function Kk(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((s,a)=>{a<t.length&&(n[s]=!0)}):r.forEach(s=>{t[s]!=null&&(n[s]=!0)}),n}function Bp({values:t,breakpoints:e,base:n}){const r=n||Kk(t,e),s=Object.keys(r);if(s.length===0)return t;let a;return s.reduce((c,u,f)=>(Array.isArray(t)?(c[u]=t[f]!=null?t[f]:t[a],a=f):typeof t=="object"?(c[u]=t[u]!=null?t[u]:t[a],a=u):c[u]=t,c),{})}function Oe(t){if(typeof t!="string")throw new Error(so(7));return t.charAt(0).toUpperCase()+t.slice(1)}function md(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,t);if(r!=null)return r}return e.split(".").reduce((r,s)=>r&&r[s]!=null?r[s]:null,t)}function ed(t,e,n,r=n){let s;return typeof t=="function"?s=t(n):Array.isArray(t)?s=t[n]||r:s=md(t,n)||r,e&&(s=e(s,r,t)),s}function At(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:s}=t,a=c=>{if(c[e]==null)return null;const u=c[e],f=c.theme,h=md(f,r)||{};return Ir(c,u,g=>{let v=ed(h,s,g);return g===v&&typeof g=="string"&&(v=ed(h,s,`${e}${g==="default"?"":Oe(g)}`,g)),n===!1?v:{[n]:v}})};return a.propTypes={},a.filterProps=[e],a}function Qk(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const Xk={m:"margin",p:"padding"},qk={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Jk=Qk(t=>{if(t.length>2)if(Bv[t])t=Bv[t];else return[t];const[e,n]=t.split(""),r=Xk[e],s=qk[n]||"";return Array.isArray(s)?s.map(a=>r+a):[r+s]}),Tm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],km=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Tm,...km];function Ol(t,e,n,r){const s=md(t,e,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:typeof s=="string"?`calc(${a} * ${s})`:s*a:Array.isArray(s)?a=>{if(typeof a=="string")return a;const c=Math.abs(a),u=s[c];return a>=0?u:typeof u=="number"?-u:`-${u}`}:typeof s=="function"?s:()=>{}}function yd(t){return Ol(t,"spacing",8)}function Vo(t,e){return typeof e=="string"||e==null?e:t(e)}function Zk(t,e){return n=>t.reduce((r,s)=>(r[s]=Vo(e,n),r),{})}function e3(t,e,n,r){if(!e.includes(n))return null;const s=Jk(n),a=Zk(s,r),c=t[n];return Ir(t,c,a)}function GS(t,e){const n=yd(t.theme);return Object.keys(t).map(r=>e3(t,e,r,n)).reduce(rl,{})}function It(t){return GS(t,Tm)}It.propTypes={};It.filterProps=Tm;function Tt(t){return GS(t,km)}Tt.propTypes={};Tt.filterProps=km;function YS(t=8,e=yd({spacing:t})){if(t.mui)return t;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const c=e(a);return typeof c=="number"?`${c}px`:c}).join(" ");return n.mui=!0,n}function gd(...t){const e=t.reduce((r,s)=>(s.filterProps.forEach(a=>{r[a]=s}),r),{}),n=r=>Object.keys(r).reduce((s,a)=>e[a]?rl(s,e[a](r)):s,{});return n.propTypes={},n.filterProps=t.reduce((r,s)=>r.concat(s.filterProps),[]),n}function sr(t){return typeof t!="number"?t:`${t}px solid`}function ur(t,e){return At({prop:t,themeKey:"borders",transform:e})}const t3=ur("border",sr),n3=ur("borderTop",sr),r3=ur("borderRight",sr),i3=ur("borderBottom",sr),o3=ur("borderLeft",sr),s3=ur("borderColor"),a3=ur("borderTopColor"),l3=ur("borderRightColor"),c3=ur("borderBottomColor"),u3=ur("borderLeftColor"),d3=ur("outline",sr),f3=ur("outlineColor"),vd=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Ol(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:Vo(e,r)});return Ir(t,t.borderRadius,n)}return null};vd.propTypes={};vd.filterProps=["borderRadius"];gd(t3,n3,r3,i3,o3,s3,a3,l3,c3,u3,vd,d3,f3);const bd=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Ol(t.theme,"spacing",8),n=r=>({gap:Vo(e,r)});return Ir(t,t.gap,n)}return null};bd.propTypes={};bd.filterProps=["gap"];const Sd=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Ol(t.theme,"spacing",8),n=r=>({columnGap:Vo(e,r)});return Ir(t,t.columnGap,n)}return null};Sd.propTypes={};Sd.filterProps=["columnGap"];const _d=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Ol(t.theme,"spacing",8),n=r=>({rowGap:Vo(e,r)});return Ir(t,t.rowGap,n)}return null};_d.propTypes={};_d.filterProps=["rowGap"];const p3=At({prop:"gridColumn"}),h3=At({prop:"gridRow"}),m3=At({prop:"gridAutoFlow"}),y3=At({prop:"gridAutoColumns"}),g3=At({prop:"gridAutoRows"}),v3=At({prop:"gridTemplateColumns"}),b3=At({prop:"gridTemplateRows"}),S3=At({prop:"gridTemplateAreas"}),_3=At({prop:"gridArea"});gd(bd,Sd,_d,p3,h3,m3,y3,g3,v3,b3,S3,_3);function Fs(t,e){return e==="grey"?e:t}const w3=At({prop:"color",themeKey:"palette",transform:Fs}),C3=At({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fs}),x3=At({prop:"backgroundColor",themeKey:"palette",transform:Fs});gd(w3,C3,x3);function Wn(t){return t<=1&&t!==0?`${t*100}%`:t}const I3=At({prop:"width",transform:Wn}),Rm=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var s,a,c,u,f;const r=((c=(a=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:c[n])||hd[n];return r?((f=(u=t.theme)==null?void 0:u.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Wn(n)}};return Ir(t,t.maxWidth,e)}return null};Rm.filterProps=["maxWidth"];const T3=At({prop:"minWidth",transform:Wn}),k3=At({prop:"height",transform:Wn}),R3=At({prop:"maxHeight",transform:Wn}),E3=At({prop:"minHeight",transform:Wn});At({prop:"size",cssProperty:"width",transform:Wn});At({prop:"size",cssProperty:"height",transform:Wn});const A3=At({prop:"boxSizing"});gd(I3,Rm,T3,k3,R3,E3,A3);const Ml={border:{themeKey:"borders",transform:sr},borderTop:{themeKey:"borders",transform:sr},borderRight:{themeKey:"borders",transform:sr},borderBottom:{themeKey:"borders",transform:sr},borderLeft:{themeKey:"borders",transform:sr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vd},color:{themeKey:"palette",transform:Fs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fs},backgroundColor:{themeKey:"palette",transform:Fs},p:{style:Tt},pt:{style:Tt},pr:{style:Tt},pb:{style:Tt},pl:{style:Tt},px:{style:Tt},py:{style:Tt},padding:{style:Tt},paddingTop:{style:Tt},paddingRight:{style:Tt},paddingBottom:{style:Tt},paddingLeft:{style:Tt},paddingX:{style:Tt},paddingY:{style:Tt},paddingInline:{style:Tt},paddingInlineStart:{style:Tt},paddingInlineEnd:{style:Tt},paddingBlock:{style:Tt},paddingBlockStart:{style:Tt},paddingBlockEnd:{style:Tt},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:bd},rowGap:{style:_d},columnGap:{style:Sd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wn},maxWidth:{style:Rm},minWidth:{transform:Wn},height:{transform:Wn},maxHeight:{transform:Wn},minHeight:{transform:Wn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function P3(...t){const e=t.reduce((r,s)=>r.concat(Object.keys(s)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function O3(t,e){return typeof t=="function"?t(e):t}function M3(){function t(n,r,s,a){const c={[n]:r,theme:s},u=a[n];if(!u)return{[n]:r};const{cssProperty:f=n,themeKey:h,transform:y,style:g}=u;if(r==null)return null;if(h==="typography"&&r==="inherit")return{[n]:r};const v=md(s,h)||{};return g?g(c):Ir(c,r,C=>{let w=ed(v,y,C);return C===w&&typeof C=="string"&&(w=ed(v,y,`${n}${C==="default"?"":Oe(C)}`,C)),f===!1?w:{[f]:w}})}function e(n){const{sx:r,theme:s={}}=n||{};if(!r)return null;const a=s.unstable_sxConfig??Ml;function c(u){let f=u;if(typeof u=="function")f=u(s);else if(typeof u!="object")return u;if(!f)return null;const h=WS(s.breakpoints),y=Object.keys(h);let g=h;return Object.keys(f).forEach(v=>{const _=O3(f[v],s);if(_!=null)if(typeof _=="object")if(a[v])g=rl(g,t(v,_,s,a));else{const C=Ir({theme:s},_,w=>({[v]:w}));P3(C,_)?g[v]=e({sx:_,theme:s}):g=rl(g,C)}else g=rl(g,t(v,_,s,a))}),zk(s,HS(y,g))}return Array.isArray(r)?r.map(c):c(r)}return e}const ao=M3();ao.filterProps=["sx"];function D3(t,e){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[t])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(t);return s==="&"?e:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:e})}return n.palette.mode===t?e:{}}function wd(t={},...e){const{breakpoints:n={},palette:r={},spacing:s,shape:a={},...c}=t,u=jk(n),f=YS(s);let h=sn({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:f,shape:{...Hk,...a}},c);return h=Wk(h),h.applyStyles=D3,h=e.reduce((y,g)=>sn(y,g),h),h.unstable_sxConfig={...Ml,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(g){return ao({sx:g,theme:this})},h}function N3(t){return Object.keys(t).length===0}function Em(t=null){const e=A.useContext(Al);return!e||N3(e)?t:e}const B3=wd();function Cd(t=B3){return Em(t)}function L3({styles:t,themeId:e,defaultTheme:n={}}){const r=Cd(n),s=typeof t=="function"?t(e&&r[e]||r):t;return j.jsx(jS,{styles:s})}const F3=t=>{var r;const e={systemProps:{},otherProps:{}},n=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??Ml;return Object.keys(t).forEach(s=>{n[s]?e.systemProps[s]=t[s]:e.otherProps[s]=t[s]}),e};function KS(t){const{sx:e,...n}=t,{systemProps:r,otherProps:s}=F3(n);let a;return Array.isArray(e)?a=[r,...e]:typeof e=="function"?a=(...c)=>{const u=e(...c);return Hr(u)?{...r,...u}:r}:a={...r,...e},{...s,sx:a}}const Lv=t=>t,$3=()=>{let t=Lv;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Lv}}},QS=$3();function XS(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=XS(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ot(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=XS(t))&&(r&&(r+=" "),r+=e);return r}function j3(t={}){const{themeId:e,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:s}=t,a=zS("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(ao);return A.forwardRef(function(f,h){const y=Cd(n),{className:g,component:v="div",..._}=KS(f);return j.jsx(a,{as:v,ref:h,className:ot(g,s?s(r):r),theme:e&&y[e]||y,..._})})}const z3={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function yn(t,e,n="Mui"){const r=z3[e];return r?`${n}-${r}`:`${QS.generate(t)}-${e}`}function gn(t,e,n="Mui"){const r={};return e.forEach(s=>{r[s]=yn(t,s,n)}),r}function qS(t){const{variants:e,...n}=t,r={variants:e,style:Ov(n),isProcessed:!0};return r.style===n||e&&e.forEach(s=>{typeof s.style!="function"&&(s.style=Ov(s.style))}),r}const U3=wd();function Lp(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function V3(t){return t?(e,n)=>n[t]:null}function W3(t,e,n){t.theme=G3(t.theme)?n:t.theme[e]||t.theme}function pu(t,e){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(r=>pu(t,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:s,...a}=n;r=a}return JS(t,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function JS(t,e,n=[]){var s;let r;e:for(let a=0;a<e.length;a+=1){const c=e[a];if(typeof c.props=="function"){if(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),!c.props(r))continue}else for(const u in c.props)if(t[u]!==c.props[u]&&((s=t.ownerState)==null?void 0:s[u])!==c.props[u])continue e;typeof c.style=="function"?(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),n.push(c.style(r))):n.push(c.style)}return n}function ZS(t={}){const{themeId:e,defaultTheme:n=U3,rootShouldForwardProp:r=Lp,slotShouldForwardProp:s=Lp}=t;function a(u){W3(u,e,n)}return(u,f={})=>{Bk(u,E=>E.filter(U=>U!==ao));const{name:h,slot:y,skipVariantsResolver:g,skipSx:v,overridesResolver:_=V3(K3(y)),...C}=f,w=g!==void 0?g:y&&y!=="Root"&&y!=="root"||!1,I=v||!1;let P=Lp;y==="Root"||y==="root"?P=r:y?P=s:Y3(u)&&(P=void 0);const D=zS(u,{shouldForwardProp:P,label:H3(),...C}),B=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(O){return pu(O,E)};if(Hr(E)){const U=qS(E);return U.variants?function(V){return pu(V,U)}:U.style}return E},M=(...E)=>{const U=[],O=E.map(B),V=[];if(U.push(a),h&&_&&V.push(function(H){var de,fe;const le=(fe=(de=H.theme.components)==null?void 0:de[h])==null?void 0:fe.styleOverrides;if(!le)return null;const ce={};for(const J in le)ce[J]=pu(H,le[J]);return _(H,ce)}),h&&!w&&V.push(function(H){var ce,de;const X=H.theme,le=(de=(ce=X==null?void 0:X.components)==null?void 0:ce[h])==null?void 0:de.variants;return le?JS(H,le):null}),I||V.push(ao),Array.isArray(O[0])){const F=O.shift(),H=new Array(U.length).fill(""),X=new Array(V.length).fill("");let le;le=[...H,...F,...X],le.raw=[...H,...F.raw,...X],U.unshift(le)}const Y=[...U,...O,...V],S=D(...Y);return u.muiName&&(S.muiName=u.muiName),S};return D.withConfig&&(M.withConfig=D.withConfig),M}}function H3(t,e){return void 0}function G3(t){for(const e in t)return!1;return!0}function Y3(t){return typeof t=="string"&&t.charCodeAt(0)>96}function K3(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const Q3=ZS();function ml(t,e){const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const s=r;if(s==="components"||s==="slots")n[s]={...t[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const a=t[s],c=e[s];if(!c)n[s]=a||{};else if(!a)n[s]=c;else{n[s]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const f=u;n[s][f]=ml(a[f],c[f])}}}else n[s]===void 0&&(n[s]=t[s])}return n}function e_(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:ml(e.components[n].defaultProps,r)}function X3({props:t,name:e,defaultTheme:n,themeId:r}){let s=Cd(n);return r&&(s=s[r]||s),e_({theme:s,name:e,props:t})}const Qs=typeof window<"u"?A.useLayoutEffect:A.useEffect;function q3(t,e,n,r,s){const[a,c]=A.useState(()=>s&&n?n(t).matches:r?r(t).matches:e);return Qs(()=>{if(!n)return;const u=n(t),f=()=>{c(u.matches)};return f(),u.addEventListener("change",f),()=>{u.removeEventListener("change",f)}},[t,n]),a}const J3={...wu},t_=J3.useSyncExternalStore;function Z3(t,e,n,r,s){const a=A.useCallback(()=>e,[e]),c=A.useMemo(()=>{if(s&&n)return()=>n(t).matches;if(r!==null){const{matches:y}=r(t);return()=>y}return a},[a,t,r,s,n]),[u,f]=A.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const y=n(t);return[()=>y.matches,g=>(y.addEventListener("change",g),()=>{y.removeEventListener("change",g)})]},[a,n,t]);return t_(f,u,c)}function n_(t={}){const{themeId:e}=t;return function(r,s={}){let a=Em();a&&e&&(a=a[e]||a);const c=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:f=c?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:y=!1}=e_({name:"MuiUseMediaQuery",props:s,theme:a});let g=typeof r=="function"?r(a):r;return g=g.replace(/^@media( ?)/m,""),(t_!==void 0?Z3:q3)(g,u,f,h,y)}}n_();function eR(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function Am(t,e=0,n=1){return eR(t,e,n)}function tR(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lo(t){if(t.type)return t;if(t.charAt(0)==="#")return lo(tR(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(so(9,t));let r=t.substring(e+1,t.length-1),s;if(n==="color"){if(r=r.split(" "),s=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(so(10,s))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:s}}const nR=t=>{const e=lo(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ja=(t,e)=>{try{return nR(t)}catch{return t}};function xd(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((s,a)=>a<3?parseInt(s,10):s):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function r_(t){t=lo(t);const{values:e}=t,n=e[0],r=e[1]/100,s=e[2]/100,a=r*Math.min(s,1-s),c=(h,y=(h+n/30)%12)=>s-a*Math.max(Math.min(y-3,9-y,1),-1);let u="rgb";const f=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return t.type==="hsla"&&(u+="a",f.push(e[3])),xd({type:u,values:f})}function bh(t){t=lo(t);let e=t.type==="hsl"||t.type==="hsla"?lo(r_(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function rR(t,e){const n=bh(t),r=bh(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Gr(t,e){return t=lo(t),e=Am(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,xd(t)}function Qc(t,e,n){try{return Gr(t,e)}catch{return t}}function yl(t,e){if(t=lo(t),e=Am(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return xd(t)}function at(t,e,n){try{return yl(t,e)}catch{return t}}function gl(t,e){if(t=lo(t),e=Am(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return xd(t)}function lt(t,e,n){try{return gl(t,e)}catch{return t}}function iR(t,e=.15){return bh(t)>.5?yl(t,e):gl(t,e)}function Xc(t,e,n){try{return iR(t,e)}catch{return t}}function oR(t,e=166){let n;function r(...s){const a=()=>{t.apply(this,s)};clearTimeout(n),n=setTimeout(a,e)}return r.clear=()=>{clearTimeout(n)},r}function Fp(t,e){var n,r,s;return A.isValidElement(t)&&e.indexOf(t.type.muiName??((s=(r=(n=t.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:s.muiName))!==-1}function sR(t){return t&&t.ownerDocument||document}function Fv(t){return sR(t).defaultView||window}function aR(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let $v=0;function lR(t){const[e,n]=A.useState(t),r=t||e;return A.useEffect(()=>{e==null&&($v+=1,n(`mui-${$v}`))},[e]),r}const cR={...wu},jv=cR.useId;function i_(t){if(jv!==void 0){const e=jv();return t??e}return lR(t)}function hu(t){const e=A.useRef(t);return Qs(()=>{e.current=t}),A.useRef((...n)=>(0,e.current)(...n)).current}function vl(...t){return A.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{aR(n,e)})},t)}const zv={};function o_(t,e){const n=A.useRef(zv);return n.current===zv&&(n.current=t(e)),n}const uR=[];function dR(t){A.useEffect(t,uR)}class Pm{constructor(){Ua(this,"currentId",null);Ua(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ua(this,"disposeEffect",()=>this.clear)}static create(){return new Pm}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function fR(){const t=o_(Pm.create).current;return dR(t.disposeEffect),t}function Uv(t){try{return t.matches(":focus-visible")}catch{}return!1}function vn(t,e,n=void 0){const r={};for(const s in t){const a=t[s];let c="",u=!0;for(let f=0;f<a.length;f+=1){const h=a[f];h&&(c+=(u===!0?"":" ")+e(h),u=!1,n&&n[h]&&(c+=" "+n[h]))}r[s]=c}return r}function pR(t){return typeof t=="string"}function hR(t,e,n){return t===void 0||pR(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function mR(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function Vv(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function yR(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:s,className:a}=t;if(!e){const _=ot(n==null?void 0:n.className,a,s==null?void 0:s.className,r==null?void 0:r.className),C={...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},w={...n,...s,...r};return _.length>0&&(w.className=_),Object.keys(C).length>0&&(w.style=C),{props:w,internalRef:void 0}}const c=mR({...s,...r}),u=Vv(r),f=Vv(s),h=e(c),y=ot(h==null?void 0:h.className,n==null?void 0:n.className,a,s==null?void 0:s.className,r==null?void 0:r.className),g={...h==null?void 0:h.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},v={...h,...n,...f,...u};return y.length>0&&(v.className=y),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:h.ref}}function gR(t,e,n){return typeof t=="function"?t(e,n):t}const s_=A.createContext(null);function Om(){return A.useContext(s_)}const vR=typeof Symbol=="function"&&Symbol.for,bR=vR?Symbol.for("mui.nested"):"__THEME_NESTED__";function SR(t,e){return typeof e=="function"?e(t):{...t,...e}}function _R(t){const{children:e,theme:n}=t,r=Om(),s=A.useMemo(()=>{const a=r===null?{...n}:SR(r,n);return a!=null&&(a[bR]=r!==null),a},[n,r]);return j.jsx(s_.Provider,{value:s,children:e})}const wR=A.createContext();function CR({value:t,...e}){return j.jsx(wR.Provider,{value:t??!0,...e})}const a_=A.createContext(void 0);function xR({value:t,children:e}){return j.jsx(a_.Provider,{value:t,children:e})}function IR(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const s=e.components[n];return s.defaultProps?ml(s.defaultProps,r):!s.styleOverrides&&!s.variants?ml(s,r):r}function TR({props:t,name:e}){const n=A.useContext(a_);return IR({props:t,name:e,theme:{components:n}})}const Wv={};function Hv(t,e,n,r=!1){return A.useMemo(()=>{const s=t&&e[t]||e;if(typeof n=="function"){const a=n(s),c=t?{...e,[t]:a}:a;return r?()=>c:c}return t?{...e,[t]:n}:{...e,...n}},[t,e,n,r])}function l_(t){const{children:e,theme:n,themeId:r}=t,s=Em(Wv),a=Om()||Wv,c=Hv(r,s,n),u=Hv(r,a,n,!0),f=(r?c[r]:c).direction==="rtl";return j.jsx(_R,{theme:u,children:j.jsx(Al.Provider,{value:c,children:j.jsx(CR,{value:f,children:j.jsx(xR,{value:r?c[r].components:c.components,children:e})})})})}const Gv={theme:void 0};function kR(t){let e,n;return function(s){let a=e;return(a===void 0||s.theme!==n)&&(Gv.theme=s.theme,a=qS(t(Gv)),e=a,n=s.theme),a}}const Mm="mode",Dm="color-scheme",RR="data-color-scheme";function ER(t){const{defaultMode:e="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:s=Mm,colorSchemeStorageKey:a=Dm,attribute:c=RR,colorSchemeNode:u="document.documentElement",nonce:f}=t||{};let h="",y=c;if(c==="class"&&(y=".%s"),c==="data"&&(y="[data-%s]"),y.startsWith(".")){const v=y.substring(1);h+=`${u}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
78
- ${u}.classList.add('${v}'.replace('%s', colorScheme));`}const g=y.match(/\[([^\]]+)\]/);if(g){const[v,_]=g[1].split("=");_||(h+=`${u}.removeAttribute('${v}'.replace('%s', light));
79
- ${u}.removeAttribute('${v}'.replace('%s', dark));`),h+=`
80
- ${u}.setAttribute('${v}'.replace('%s', colorScheme), ${_?`${_}.replace('%s', colorScheme)`:'""'});`}else h+=`${u}.setAttribute('${y}', colorScheme);`;return j.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(function() {
81
- try {
82
- let colorScheme = '';
83
- const mode = localStorage.getItem('${s}') || '${e}';
84
- const dark = localStorage.getItem('${a}-dark') || '${r}';
85
- const light = localStorage.getItem('${a}-light') || '${n}';
86
- if (mode === 'system') {
87
- // handle system mode
88
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
89
- if (mql.matches) {
90
- colorScheme = dark
91
- } else {
92
- colorScheme = light
93
- }
94
- }
95
- if (mode === 'light') {
96
- colorScheme = light;
97
- }
98
- if (mode === 'dark') {
99
- colorScheme = dark;
100
- }
101
- if (colorScheme) {
102
- ${h}
103
- }
104
- } catch(e){}})();`}},"mui-color-scheme-init")}function AR(){}const PR=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(n){if(typeof window>"u")return;if(!e)return n;let r;try{r=e.localStorage.getItem(t)}catch{}return r||n},set:n=>{if(e)try{e.localStorage.setItem(t,n)}catch{}},subscribe:n=>{if(!e)return AR;const r=s=>{const a=s.newValue;s.key===t&&n(a)};return e.addEventListener("storage",r),()=>{e.removeEventListener("storage",r)}}});function $p(){}function Yv(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function c_(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function OR(t){return c_(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function MR(t){const{defaultMode:e="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:s=[],modeStorageKey:a=Mm,colorSchemeStorageKey:c=Dm,storageWindow:u=typeof window>"u"?void 0:window,storageManager:f=PR,noSsr:h=!1}=t,y=s.join(","),g=s.length>1,v=A.useMemo(()=>f==null?void 0:f({key:a,storageWindow:u}),[f,a,u]),_=A.useMemo(()=>f==null?void 0:f({key:`${c}-light`,storageWindow:u}),[f,c,u]),C=A.useMemo(()=>f==null?void 0:f({key:`${c}-dark`,storageWindow:u}),[f,c,u]),[w,I]=A.useState(()=>{const V=(v==null?void 0:v.get(e))||e,Y=(_==null?void 0:_.get(n))||n,S=(C==null?void 0:C.get(r))||r;return{mode:V,systemMode:Yv(V),lightColorScheme:Y,darkColorScheme:S}}),[P,D]=A.useState(h||!g);A.useEffect(()=>{D(!0)},[]);const B=OR(w),M=A.useCallback(V=>{I(Y=>{if(V===Y.mode)return Y;const S=V??e;return v==null||v.set(S),{...Y,mode:S,systemMode:Yv(S)}})},[v,e]),E=A.useCallback(V=>{V?typeof V=="string"?V&&!y.includes(V)?console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`):I(Y=>{const S={...Y};return c_(Y,F=>{F==="light"&&(_==null||_.set(V),S.lightColorScheme=V),F==="dark"&&(C==null||C.set(V),S.darkColorScheme=V)}),S}):I(Y=>{const S={...Y},F=V.light===null?n:V.light,H=V.dark===null?r:V.dark;return F&&(y.includes(F)?(S.lightColorScheme=F,_==null||_.set(F)):console.error(`\`${F}\` does not exist in \`theme.colorSchemes\`.`)),H&&(y.includes(H)?(S.darkColorScheme=H,C==null||C.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),S}):I(Y=>(_==null||_.set(n),C==null||C.set(r),{...Y,lightColorScheme:n,darkColorScheme:r}))},[y,_,C,n,r]),U=A.useCallback(V=>{w.mode==="system"&&I(Y=>{const S=V!=null&&V.matches?"dark":"light";return Y.systemMode===S?Y:{...Y,systemMode:S}})},[w.mode]),O=A.useRef(U);return O.current=U,A.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const V=(...S)=>O.current(...S),Y=window.matchMedia("(prefers-color-scheme: dark)");return Y.addListener(V),V(Y),()=>{Y.removeListener(V)}},[g]),A.useEffect(()=>{if(g){const V=(v==null?void 0:v.subscribe(F=>{(!F||["light","dark","system"].includes(F))&&M(F||e)}))||$p,Y=(_==null?void 0:_.subscribe(F=>{(!F||y.match(F))&&E({light:F})}))||$p,S=(C==null?void 0:C.subscribe(F=>{(!F||y.match(F))&&E({dark:F})}))||$p;return()=>{V(),Y(),S()}}},[E,M,y,e,u,g,v,_,C]),{...w,mode:P?w.mode:void 0,systemMode:P?w.systemMode:void 0,colorScheme:P?B:void 0,setMode:M,setColorScheme:E}}const DR="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function NR(t){const{themeId:e,theme:n={},modeStorageKey:r=Mm,colorSchemeStorageKey:s=Dm,disableTransitionOnChange:a=!1,defaultColorScheme:c,resolveTheme:u}=t,f={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=A.createContext(void 0),y=()=>A.useContext(h)||f,g={},v={};function _(P){var ln,yo,ti,ni;const{children:D,theme:B,modeStorageKey:M=r,colorSchemeStorageKey:E=s,disableTransitionOnChange:U=a,storageManager:O,storageWindow:V=typeof window>"u"?void 0:window,documentNode:Y=typeof document>"u"?void 0:document,colorSchemeNode:S=typeof document>"u"?void 0:document.documentElement,disableNestedContext:F=!1,disableStyleSheetGeneration:H=!1,defaultMode:X="system",noSsr:le}=P,ce=A.useRef(!1),de=Om(),fe=A.useContext(h),J=!!fe&&!F,te=A.useMemo(()=>B||(typeof n=="function"?n():n),[B]),ne=te[e],k=ne||te,{colorSchemes:G=g,components:ue=v,cssVarPrefix:ge}=k,De=Object.keys(G).filter(vt=>!!G[vt]).join(","),xe=A.useMemo(()=>De.split(","),[De]),$e=typeof c=="string"?c:c.light,Ne=typeof c=="string"?c:c.dark,ze=G[$e]&&G[Ne]?X:((yo=(ln=G[k.defaultColorScheme])==null?void 0:ln.palette)==null?void 0:yo.mode)||((ti=k.palette)==null?void 0:ti.mode),{mode:Lt,setMode:dr,systemMode:fr,lightColorScheme:Nn,darkColorScheme:qe,colorScheme:Ut,setColorScheme:pr}=MR({supportedColorSchemes:xe,defaultLightColorScheme:$e,defaultDarkColorScheme:Ne,modeStorageKey:M,colorSchemeStorageKey:E,defaultMode:ze,storageManager:O,storageWindow:V,noSsr:le});let Qt=Lt,st=Ut;J&&(Qt=fe.mode,st=fe.colorScheme);const Bn=A.useMemo(()=>{var He;const vt=st||k.defaultColorScheme,kt=((He=k.generateThemeVars)==null?void 0:He.call(k))||k.vars,Ct={...k,components:ue,colorSchemes:G,cssVarPrefix:ge,vars:kt};if(typeof Ct.generateSpacing=="function"&&(Ct.spacing=Ct.generateSpacing()),vt){const qt=G[vt];qt&&typeof qt=="object"&&Object.keys(qt).forEach(cn=>{qt[cn]&&typeof qt[cn]=="object"?Ct[cn]={...Ct[cn],...qt[cn]}:Ct[cn]=qt[cn]})}return u?u(Ct):Ct},[k,st,ue,G,ge]),Xt=k.colorSchemeSelector;Qs(()=>{if(st&&S&&Xt&&Xt!=="media"){const vt=Xt;let kt=Xt;if(vt==="class"&&(kt=".%s"),vt==="data"&&(kt="[data-%s]"),vt!=null&&vt.startsWith("data-")&&!vt.includes("%s")&&(kt=`[${vt}="%s"]`),kt.startsWith("."))S.classList.remove(...xe.map(Ct=>kt.substring(1).replace("%s",Ct))),S.classList.add(kt.substring(1).replace("%s",st));else{const Ct=kt.replace("%s",st).match(/\[([^\]]+)\]/);if(Ct){const[He,qt]=Ct[1].split("=");qt||xe.forEach(cn=>{S.removeAttribute(He.replace(st,cn))}),S.setAttribute(He,qt?qt.replace(/"|'/g,""):"")}else S.setAttribute(kt,st)}}},[st,Xt,S,xe]),A.useEffect(()=>{let vt;if(U&&ce.current&&Y){const kt=Y.createElement("style");kt.appendChild(Y.createTextNode(DR)),Y.head.appendChild(kt),window.getComputedStyle(Y.body),vt=setTimeout(()=>{Y.head.removeChild(kt)},1)}return()=>{clearTimeout(vt)}},[st,U,Y]),A.useEffect(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const Kn=A.useMemo(()=>({allColorSchemes:xe,colorScheme:st,darkColorScheme:qe,lightColorScheme:Nn,mode:Qt,setColorScheme:pr,setMode:dr,systemMode:fr}),[xe,st,qe,Nn,Qt,pr,dr,fr,Bn.colorSchemeSelector]);let me=!0;(H||k.cssVariables===!1||J&&(de==null?void 0:de.cssVarPrefix)===ge)&&(me=!1);const ei=j.jsxs(A.Fragment,{children:[j.jsx(l_,{themeId:ne?e:void 0,theme:Bn,children:D}),me&&j.jsx(jS,{styles:((ni=Bn.generateStyleSheets)==null?void 0:ni.call(Bn))||[]})]});return J?ei:j.jsx(h.Provider,{value:Kn,children:ei})}const C=typeof c=="string"?c:c.light,w=typeof c=="string"?c:c.dark;return{CssVarsProvider:_,useColorScheme:y,getInitColorSchemeScript:P=>ER({colorSchemeStorageKey:s,defaultLightColorScheme:C,defaultDarkColorScheme:w,modeStorageKey:r,...P})}}function BR(t=""){function e(...r){if(!r.length)return"";const s=r[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${s}${e(...r.slice(1))})`:`, ${s}`}return(r,...s)=>`var(--${t?`${t}-`:""}${r}${e(...s)})`}const Kv=(t,e,n,r=[])=>{let s=t;e.forEach((a,c)=>{c===e.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=r.includes(a)?[]:{}),s=s[a])})},LR=(t,e,n)=>{function r(s,a=[],c=[]){Object.entries(s).forEach(([u,f])=>{(!n||n&&!n([...a,u]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?r(f,[...a,u],Array.isArray(f)?[...c,u]:c):e([...a,u],f,c))})}r(t)},FR=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function jp(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},s={},a={},c={};return LR(t,(u,f,h)=>{if((typeof f=="string"||typeof f=="number")&&(!r||!r(u,f))){const y=`--${n?`${n}-`:""}${u.join("-")}`,g=FR(u,f);Object.assign(s,{[y]:g}),Kv(a,u,`var(${y})`,h),Kv(c,u,`var(${y}, ${g})`,h)}},u=>u[0]==="vars"),{css:s,vars:a,varsWithDefaults:c}}function $R(t,e={}){const{getSelector:n=I,disableCssColorScheme:r,colorSchemeSelector:s}=e,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...f}=t,{vars:h,css:y,varsWithDefaults:g}=jp(f,e);let v=g;const _={},{[u]:C,...w}=a;if(Object.entries(w||{}).forEach(([B,M])=>{const{vars:E,css:U,varsWithDefaults:O}=jp(M,e);v=sn(v,O),_[B]={css:U,vars:E}}),C){const{css:B,vars:M,varsWithDefaults:E}=jp(C,e);v=sn(v,E),_[u]={css:B,vars:M}}function I(B,M){var U,O;let E=s;if(s==="class"&&(E=".%s"),s==="data"&&(E="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(E=`[${s}="%s"]`),B){if(E==="media")return t.defaultColorScheme===B?":root":{[`@media (prefers-color-scheme: ${((O=(U=a[B])==null?void 0:U.palette)==null?void 0:O.mode)||B})`]:{":root":M}};if(E)return t.defaultColorScheme===B?`:root, ${E.replace("%s",String(B))}`:E.replace("%s",String(B))}return":root"}return{vars:v,generateThemeVars:()=>{let B={...h};return Object.entries(_).forEach(([,{vars:M}])=>{B=sn(B,M)}),B},generateStyleSheets:()=>{var V,Y;const B=[],M=t.defaultColorScheme||"light";function E(S,F){Object.keys(F).length&&B.push(typeof S=="string"?{[S]:{...F}}:S)}E(n(void 0,{...y}),y);const{[M]:U,...O}=_;if(U){const{css:S}=U,F=(Y=(V=a[M])==null?void 0:V.palette)==null?void 0:Y.mode,H=!r&&F?{colorScheme:F,...S}:{...S};E(n(M,{...H}),H)}return Object.entries(O).forEach(([S,{css:F}])=>{var le,ce;const H=(ce=(le=a[S])==null?void 0:le.palette)==null?void 0:ce.mode,X=!r&&H?{colorScheme:H,...F}:{...F};E(n(S,{...X}),X)}),B}}}function jR(t){return function(n){return t==="media"?`@media (prefers-color-scheme: ${n})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}const zR=wd(),UR=Q3("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function VR(t){return X3({props:t,name:"MuiStack",defaultTheme:zR})}function WR(t,e){const n=A.Children.toArray(t).filter(Boolean);return n.reduce((r,s,a)=>(r.push(s),a<n.length-1&&r.push(A.cloneElement(e,{key:`separator-${a}`})),r),[])}const HR=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],GR=({ownerState:t,theme:e})=>{let n={display:"flex",flexDirection:"column",...Ir({theme:e},Bp({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r}))};if(t.spacing){const r=yd(e),s=Object.keys(e.breakpoints.values).reduce((f,h)=>((typeof t.spacing=="object"&&t.spacing[h]!=null||typeof t.direction=="object"&&t.direction[h]!=null)&&(f[h]=!0),f),{}),a=Bp({values:t.direction,base:s}),c=Bp({values:t.spacing,base:s});typeof a=="object"&&Object.keys(a).forEach((f,h,y)=>{if(!a[f]){const v=h>0?a[y[h-1]]:"column";a[f]=v}}),n=sn(n,Ir({theme:e},c,(f,h)=>t.useFlexGap?{gap:Vo(r,f)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${HR(h?a[h]:t.direction)}`]:Vo(r,f)}}))}return n=Yk(e.breakpoints,n),n};function YR(t={}){const{createStyledComponent:e=UR,useThemeProps:n=VR,componentName:r="MuiStack"}=t,s=()=>vn({root:["root"]},f=>yn(r,f),{}),a=e(GR);return A.forwardRef(function(f,h){const y=n(f),g=KS(y),{component:v="div",direction:_="column",spacing:C=0,divider:w,children:I,className:P,useFlexGap:D=!1,...B}=g,M={direction:_,spacing:C,useFlexGap:D},E=s();return j.jsx(a,{as:v,ownerState:M,ref:h,className:ot(E.root,P),...B,children:w?WR(I,w):I})})}const bl={black:"#000",white:"#fff"},KR={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},gs={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},vs={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ka={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},bs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ss={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},_s={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function u_(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bl.white,default:bl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const QR=u_();function d_(){return{text:{primary:bl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Qv=d_();function Xv(t,e,n,r){const s=r.light||r,a=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=gl(t.main,s):e==="dark"&&(t.dark=yl(t.main,a)))}function XR(t="light"){return t==="dark"?{main:bs[200],light:bs[50],dark:bs[400]}:{main:bs[700],light:bs[400],dark:bs[800]}}function qR(t="light"){return t==="dark"?{main:gs[200],light:gs[50],dark:gs[400]}:{main:gs[500],light:gs[300],dark:gs[700]}}function JR(t="light"){return t==="dark"?{main:vs[500],light:vs[300],dark:vs[700]}:{main:vs[700],light:vs[400],dark:vs[800]}}function ZR(t="light"){return t==="dark"?{main:Ss[400],light:Ss[300],dark:Ss[700]}:{main:Ss[700],light:Ss[500],dark:Ss[900]}}function eE(t="light"){return t==="dark"?{main:_s[400],light:_s[300],dark:_s[700]}:{main:_s[800],light:_s[500],dark:_s[900]}}function tE(t="light"){return t==="dark"?{main:Ka[400],light:Ka[300],dark:Ka[700]}:{main:"#ed6c02",light:Ka[500],dark:Ka[900]}}function Nm(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,...s}=t,a=t.primary||XR(e),c=t.secondary||qR(e),u=t.error||JR(e),f=t.info||ZR(e),h=t.success||eE(e),y=t.warning||tE(e);function g(w){return rR(w,Qv.text.primary)>=n?Qv.text.primary:QR.text.primary}const v=({color:w,name:I,mainShade:P=500,lightShade:D=300,darkShade:B=700})=>{if(w={...w},!w.main&&w[P]&&(w.main=w[P]),!w.hasOwnProperty("main"))throw new Error(so(11,I?` (${I})`:"",P));if(typeof w.main!="string")throw new Error(so(12,I?` (${I})`:"",JSON.stringify(w.main)));return Xv(w,"light",D,r),Xv(w,"dark",B,r),w.contrastText||(w.contrastText=g(w.main)),w};let _;return e==="light"?_=u_():e==="dark"&&(_=d_()),sn({common:{...bl},mode:e,primary:v({color:a,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:u,name:"error"}),warning:v({color:y,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:h,name:"success"}),grey:KR,contrastThreshold:n,getContrastText:g,augmentColor:v,tonalOffset:r,..._},s)}function nE(t){const e={};return Object.entries(t).forEach(r=>{const[s,a]=r;typeof a=="object"&&(e[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function rE(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function iE(t){return Math.round(t*1e5)/1e5}const qv={textTransform:"uppercase"},Jv='"Roboto", "Helvetica", "Arial", sans-serif';function f_(t,e){const{fontFamily:n=Jv,fontSize:r=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:f=16,allVariants:h,pxToRem:y,...g}=typeof e=="function"?e(t):e,v=r/14,_=y||(I=>`${I/f*v}rem`),C=(I,P,D,B,M)=>({fontFamily:n,fontWeight:I,fontSize:_(P),lineHeight:D,...n===Jv?{letterSpacing:`${iE(B/P)}em`}:{},...M,...h}),w={h1:C(s,96,1.167,-1.5),h2:C(s,60,1.2,-.5),h3:C(a,48,1.167,0),h4:C(a,34,1.235,.25),h5:C(a,24,1.334,0),h6:C(c,20,1.6,.15),subtitle1:C(a,16,1.75,.15),subtitle2:C(c,14,1.57,.1),body1:C(a,16,1.5,.15),body2:C(a,14,1.43,.15),button:C(c,14,1.75,.4,qv),caption:C(a,12,1.66,.4),overline:C(a,12,2.66,1,qv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sn({htmlFontSize:f,pxToRem:_,fontFamily:n,fontSize:r,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:c,fontWeightBold:u,...w},g,{clone:!1})}const oE=.2,sE=.14,aE=.12;function gt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${oE})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${sE})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${aE})`].join(",")}const lE=["none",gt(0,2,1,-1,0,1,1,0,0,1,3,0),gt(0,3,1,-2,0,2,2,0,0,1,5,0),gt(0,3,3,-2,0,3,4,0,0,1,8,0),gt(0,2,4,-1,0,4,5,0,0,1,10,0),gt(0,3,5,-1,0,5,8,0,0,1,14,0),gt(0,3,5,-1,0,6,10,0,0,1,18,0),gt(0,4,5,-2,0,7,10,1,0,2,16,1),gt(0,5,5,-3,0,8,10,1,0,3,14,2),gt(0,5,6,-3,0,9,12,1,0,3,16,2),gt(0,6,6,-3,0,10,14,1,0,4,18,3),gt(0,6,7,-4,0,11,15,1,0,4,20,3),gt(0,7,8,-4,0,12,17,2,0,5,22,4),gt(0,7,8,-4,0,13,19,2,0,5,24,4),gt(0,7,9,-4,0,14,21,2,0,5,26,4),gt(0,8,9,-5,0,15,22,2,0,6,28,5),gt(0,8,10,-5,0,16,24,2,0,6,30,5),gt(0,8,11,-5,0,17,26,2,0,6,32,5),gt(0,9,11,-5,0,18,28,2,0,7,34,6),gt(0,9,12,-6,0,19,29,2,0,7,36,6),gt(0,10,13,-6,0,20,31,3,0,8,38,7),gt(0,10,13,-6,0,21,33,3,0,8,40,7),gt(0,10,14,-6,0,22,35,3,0,8,42,7),gt(0,11,14,-7,0,23,36,3,0,9,44,8),gt(0,11,15,-7,0,24,38,3,0,9,46,8)],cE={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},uE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zv(t){return`${Math.round(t)}ms`}function dE(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function fE(t){const e={...cE,...t.easing},n={...uE,...t.duration};return{getAutoHeightDuration:dE,create:(s=["all"],a={})=>{const{duration:c=n.standard,easing:u=e.easeInOut,delay:f=0,...h}=a;return(Array.isArray(s)?s:[s]).map(y=>`${y} ${typeof c=="string"?c:Zv(c)} ${u} ${typeof f=="string"?f:Zv(f)}`).join(",")},...t,easing:e,duration:n}}const pE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hE(t){return Hr(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function p_(t={}){const e={...t};function n(r){const s=Object.entries(r);for(let a=0;a<s.length;a++){const[c,u]=s[a];!hE(u)||c.startsWith("unstable_")?delete r[c]:Hr(u)&&(r[c]={...u},n(r[c]))}}return n(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
105
-
106
- const theme = ${JSON.stringify(e,null,2)};
107
-
108
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
109
- theme.transitions = createTransitions(theme.transitions || {});
110
-
111
- export default theme;`}function Sh(t={},...e){const{breakpoints:n,mixins:r={},spacing:s,palette:a={},transitions:c={},typography:u={},shape:f,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(so(20));const y=Nm(a),g=wd(t);let v=sn(g,{mixins:rE(g.breakpoints,r),palette:y,shadows:lE.slice(),typography:f_(y,u),transitions:fE(c),zIndex:{...pE}});return v=sn(v,h),v=e.reduce((_,C)=>sn(_,C),v),v.unstable_sxConfig={...Ml,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(C){return ao({sx:C,theme:this})},v.toRuntimeSource=p_,v}function _h(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const mE=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=_h(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function h_(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function m_(t){return t==="dark"?mE:[]}function yE(t){const{palette:e={mode:"light"},opacity:n,overlays:r,...s}=t,a=Nm(e);return{palette:a,opacity:{...h_(a.mode),...n},overlays:r||m_(a.mode),...s}}function gE(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const vE=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],bE=t=>(e,n)=>{const r=t.rootSelector||":root",s=t.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const c={};return vE(t.cssVarPrefix).forEach(u=>{c[u]=n[u],delete n[u]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:c}}:a?{[a.replace("%s",e)]:c,[`${r}, ${a.replace("%s",e)}`]:n}:{[r]:{...n,...c}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(a)return a.replace("%s",String(e))}return r};function SE(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function W(t,e,n){!t[e]&&n&&(t[e]=n)}function Za(t){return typeof t!="string"||!t.startsWith("hsl")?t:r_(t)}function di(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Ja(Za(t[e])))}function _E(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Mr=t=>{try{return t()}catch{}},wE=(t="mui")=>BR(t);function zp(t,e,n,r){if(!e)return;e=e===!0?{}:e;const s=r==="dark"?"dark":"light";if(!n){t[r]=yE({...e,palette:{mode:s,...e==null?void 0:e.palette}});return}const{palette:a,...c}=Sh({...n,palette:{mode:s,...e==null?void 0:e.palette}});return t[r]={...e,palette:a,opacity:{...h_(s),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||m_(s)},c}function CE(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:c=gE,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...h}=t,y=Object.keys(n)[0],g=r||(n.light&&y!=="light"?"light":y),v=wE(a),{[g]:_,light:C,dark:w,...I}=n,P={...I};let D=_;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(so(21,g));const B=zp(P,D,h,g);C&&!P.light&&zp(P,C,void 0,"light"),w&&!P.dark&&zp(P,w,void 0,"dark");let M={defaultColorScheme:g,...B,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:f,getCssVar:v,colorSchemes:P,font:{...nE(B.typography),...B.font},spacing:_E(h.spacing)};Object.keys(M.colorSchemes).forEach(Y=>{const S=M.colorSchemes[Y].palette,F=H=>{const X=H.split("-"),le=X[1],ce=X[2];return v(H,S[le][ce])};if(S.mode==="light"&&(W(S.common,"background","#fff"),W(S.common,"onBackground","#000")),S.mode==="dark"&&(W(S.common,"background","#000"),W(S.common,"onBackground","#fff")),SE(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){W(S.Alert,"errorColor",at(S.error.light,.6)),W(S.Alert,"infoColor",at(S.info.light,.6)),W(S.Alert,"successColor",at(S.success.light,.6)),W(S.Alert,"warningColor",at(S.warning.light,.6)),W(S.Alert,"errorFilledBg",F("palette-error-main")),W(S.Alert,"infoFilledBg",F("palette-info-main")),W(S.Alert,"successFilledBg",F("palette-success-main")),W(S.Alert,"warningFilledBg",F("palette-warning-main")),W(S.Alert,"errorFilledColor",Mr(()=>S.getContrastText(S.error.main))),W(S.Alert,"infoFilledColor",Mr(()=>S.getContrastText(S.info.main))),W(S.Alert,"successFilledColor",Mr(()=>S.getContrastText(S.success.main))),W(S.Alert,"warningFilledColor",Mr(()=>S.getContrastText(S.warning.main))),W(S.Alert,"errorStandardBg",lt(S.error.light,.9)),W(S.Alert,"infoStandardBg",lt(S.info.light,.9)),W(S.Alert,"successStandardBg",lt(S.success.light,.9)),W(S.Alert,"warningStandardBg",lt(S.warning.light,.9)),W(S.Alert,"errorIconColor",F("palette-error-main")),W(S.Alert,"infoIconColor",F("palette-info-main")),W(S.Alert,"successIconColor",F("palette-success-main")),W(S.Alert,"warningIconColor",F("palette-warning-main")),W(S.AppBar,"defaultBg",F("palette-grey-100")),W(S.Avatar,"defaultBg",F("palette-grey-400")),W(S.Button,"inheritContainedBg",F("palette-grey-300")),W(S.Button,"inheritContainedHoverBg",F("palette-grey-A100")),W(S.Chip,"defaultBorder",F("palette-grey-400")),W(S.Chip,"defaultAvatarColor",F("palette-grey-700")),W(S.Chip,"defaultIconColor",F("palette-grey-700")),W(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),W(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),W(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),W(S.LinearProgress,"primaryBg",lt(S.primary.main,.62)),W(S.LinearProgress,"secondaryBg",lt(S.secondary.main,.62)),W(S.LinearProgress,"errorBg",lt(S.error.main,.62)),W(S.LinearProgress,"infoBg",lt(S.info.main,.62)),W(S.LinearProgress,"successBg",lt(S.success.main,.62)),W(S.LinearProgress,"warningBg",lt(S.warning.main,.62)),W(S.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.11)`),W(S.Slider,"primaryTrack",lt(S.primary.main,.62)),W(S.Slider,"secondaryTrack",lt(S.secondary.main,.62)),W(S.Slider,"errorTrack",lt(S.error.main,.62)),W(S.Slider,"infoTrack",lt(S.info.main,.62)),W(S.Slider,"successTrack",lt(S.success.main,.62)),W(S.Slider,"warningTrack",lt(S.warning.main,.62));const H=Xc(S.background.default,.8);W(S.SnackbarContent,"bg",H),W(S.SnackbarContent,"color",Mr(()=>S.getContrastText(H))),W(S.SpeedDialAction,"fabHoverBg",Xc(S.background.paper,.15)),W(S.StepConnector,"border",F("palette-grey-400")),W(S.StepContent,"border",F("palette-grey-400")),W(S.Switch,"defaultColor",F("palette-common-white")),W(S.Switch,"defaultDisabledColor",F("palette-grey-100")),W(S.Switch,"primaryDisabledColor",lt(S.primary.main,.62)),W(S.Switch,"secondaryDisabledColor",lt(S.secondary.main,.62)),W(S.Switch,"errorDisabledColor",lt(S.error.main,.62)),W(S.Switch,"infoDisabledColor",lt(S.info.main,.62)),W(S.Switch,"successDisabledColor",lt(S.success.main,.62)),W(S.Switch,"warningDisabledColor",lt(S.warning.main,.62)),W(S.TableCell,"border",lt(Qc(S.divider,1),.88)),W(S.Tooltip,"bg",Qc(S.grey[700],.92))}if(S.mode==="dark"){W(S.Alert,"errorColor",lt(S.error.light,.6)),W(S.Alert,"infoColor",lt(S.info.light,.6)),W(S.Alert,"successColor",lt(S.success.light,.6)),W(S.Alert,"warningColor",lt(S.warning.light,.6)),W(S.Alert,"errorFilledBg",F("palette-error-dark")),W(S.Alert,"infoFilledBg",F("palette-info-dark")),W(S.Alert,"successFilledBg",F("palette-success-dark")),W(S.Alert,"warningFilledBg",F("palette-warning-dark")),W(S.Alert,"errorFilledColor",Mr(()=>S.getContrastText(S.error.dark))),W(S.Alert,"infoFilledColor",Mr(()=>S.getContrastText(S.info.dark))),W(S.Alert,"successFilledColor",Mr(()=>S.getContrastText(S.success.dark))),W(S.Alert,"warningFilledColor",Mr(()=>S.getContrastText(S.warning.dark))),W(S.Alert,"errorStandardBg",at(S.error.light,.9)),W(S.Alert,"infoStandardBg",at(S.info.light,.9)),W(S.Alert,"successStandardBg",at(S.success.light,.9)),W(S.Alert,"warningStandardBg",at(S.warning.light,.9)),W(S.Alert,"errorIconColor",F("palette-error-main")),W(S.Alert,"infoIconColor",F("palette-info-main")),W(S.Alert,"successIconColor",F("palette-success-main")),W(S.Alert,"warningIconColor",F("palette-warning-main")),W(S.AppBar,"defaultBg",F("palette-grey-900")),W(S.AppBar,"darkBg",F("palette-background-paper")),W(S.AppBar,"darkColor",F("palette-text-primary")),W(S.Avatar,"defaultBg",F("palette-grey-600")),W(S.Button,"inheritContainedBg",F("palette-grey-800")),W(S.Button,"inheritContainedHoverBg",F("palette-grey-700")),W(S.Chip,"defaultBorder",F("palette-grey-700")),W(S.Chip,"defaultAvatarColor",F("palette-grey-300")),W(S.Chip,"defaultIconColor",F("palette-grey-300")),W(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),W(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),W(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),W(S.LinearProgress,"primaryBg",at(S.primary.main,.5)),W(S.LinearProgress,"secondaryBg",at(S.secondary.main,.5)),W(S.LinearProgress,"errorBg",at(S.error.main,.5)),W(S.LinearProgress,"infoBg",at(S.info.main,.5)),W(S.LinearProgress,"successBg",at(S.success.main,.5)),W(S.LinearProgress,"warningBg",at(S.warning.main,.5)),W(S.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.13)`),W(S.Slider,"primaryTrack",at(S.primary.main,.5)),W(S.Slider,"secondaryTrack",at(S.secondary.main,.5)),W(S.Slider,"errorTrack",at(S.error.main,.5)),W(S.Slider,"infoTrack",at(S.info.main,.5)),W(S.Slider,"successTrack",at(S.success.main,.5)),W(S.Slider,"warningTrack",at(S.warning.main,.5));const H=Xc(S.background.default,.98);W(S.SnackbarContent,"bg",H),W(S.SnackbarContent,"color",Mr(()=>S.getContrastText(H))),W(S.SpeedDialAction,"fabHoverBg",Xc(S.background.paper,.15)),W(S.StepConnector,"border",F("palette-grey-600")),W(S.StepContent,"border",F("palette-grey-600")),W(S.Switch,"defaultColor",F("palette-grey-300")),W(S.Switch,"defaultDisabledColor",F("palette-grey-600")),W(S.Switch,"primaryDisabledColor",at(S.primary.main,.55)),W(S.Switch,"secondaryDisabledColor",at(S.secondary.main,.55)),W(S.Switch,"errorDisabledColor",at(S.error.main,.55)),W(S.Switch,"infoDisabledColor",at(S.info.main,.55)),W(S.Switch,"successDisabledColor",at(S.success.main,.55)),W(S.Switch,"warningDisabledColor",at(S.warning.main,.55)),W(S.TableCell,"border",at(Qc(S.divider,1),.68)),W(S.Tooltip,"bg",Qc(S.grey[700],.92))}di(S.background,"default"),di(S.background,"paper"),di(S.common,"background"),di(S.common,"onBackground"),di(S,"divider"),Object.keys(S).forEach(H=>{const X=S[H];H!=="tonalOffset"&&X&&typeof X=="object"&&(X.main&&W(S[H],"mainChannel",Ja(Za(X.main))),X.light&&W(S[H],"lightChannel",Ja(Za(X.light))),X.dark&&W(S[H],"darkChannel",Ja(Za(X.dark))),X.contrastText&&W(S[H],"contrastTextChannel",Ja(Za(X.contrastText))),H==="text"&&(di(S[H],"primary"),di(S[H],"secondary")),H==="action"&&(X.active&&di(S[H],"active"),X.selected&&di(S[H],"selected")))})}),M=e.reduce((Y,S)=>sn(Y,S),M);const E={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:c,getSelector:bE(M)},{vars:U,generateThemeVars:O,generateStyleSheets:V}=$R(M,E);return M.vars=U,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([Y,S])=>{M[Y]=S}),M.generateThemeVars=O,M.generateStyleSheets=V,M.generateSpacing=function(){return YS(h.spacing,yd(this))},M.getColorSchemeSelector=jR(u),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=c,M.unstable_sxConfig={...Ml,...h==null?void 0:h.unstable_sxConfig},M.unstable_sx=function(S){return ao({sx:S,theme:this})},M.toRuntimeSource=p_,M}function e1(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Nm({...n===!0?{}:n.palette,mode:e})})}function Id(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...c}=t,u=a||"light",f=s==null?void 0:s[u],h={...s,...n?{[u]:{...typeof f!="boolean"&&f,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Sh(t,...e);let y=n;"palette"in t||h[u]&&(h[u]!==!0?y=h[u].palette:u==="dark"&&(y={mode:"dark"}));const g=Sh({...t,palette:y},...e);return g.defaultColorScheme=u,g.colorSchemes=h,g.palette.mode==="light"&&(g.colorSchemes.light={...h.light!==!0&&h.light,palette:g.palette},e1(g,"dark",h.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:g.palette},e1(g,"light",h.light)),g}return!n&&!("light"in h)&&u==="light"&&(h.light=!0),CE({...c,colorSchemes:h,defaultColorScheme:u,...typeof r!="boolean"&&r},...e)}const Bm=Id();function y_(){const t=Cd(Bm);return t[Cr]||t}function xE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Dl=t=>xE(t)&&t!=="classes",Fe=ZS({themeId:Cr,defaultTheme:Bm,rootShouldForwardProp:Dl});function t1({theme:t,...e}){const n=Cr in t?t[Cr]:void 0;return j.jsx(l_,{...e,themeId:n?Cr:void 0,theme:n||t})}const qc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:IE}=NR({themeId:Cr,theme:()=>Id({cssVariables:!0}),colorSchemeStorageKey:qc.colorSchemeStorageKey,modeStorageKey:qc.modeStorageKey,defaultColorScheme:{light:qc.defaultLightColorScheme,dark:qc.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:f_(t.palette,t.typography)};return e.unstable_sx=function(r){return ao({sx:r,theme:this})},e}}),TE=IE;function kE({theme:t,...e}){return typeof t=="function"?j.jsx(t1,{theme:t,...e}):"colorSchemes"in(Cr in t?t[Cr]:t)?j.jsx(TE,{theme:t,...e}):j.jsx(t1,{theme:t,...e})}const{min:RE,max:EE}=Math,zo=(t,e=0,n=1)=>RE(EE(e,t),n),Lm=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=zo(t[e],0,255)):e===3&&(t[e]=zo(t[e],0,1));return t},g_={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])g_[`[object ${t}]`]=t.toLowerCase();function Le(t){return g_[Object.prototype.toString.call(t)]||"object"}const Ae=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):Le(t[0])=="object"&&e?e.split("").filter(n=>t[0][n]!==void 0).map(n=>t[0][n]):t[0].slice(0),na=t=>{if(t.length<2)return null;const e=t.length-1;return Le(t[e])=="string"?t[e].toLowerCase():null},{PI:Td,min:v_,max:b_}=Math,ar=t=>Math.round(t*100)/100,wh=t=>Math.round(t*100)/100,vi=Td*2,Up=Td/3,AE=Td/180,PE=180/Td;function S_(t){return[...t.slice(0,3).reverse(),...t.slice(3)]}const Ie={format:{},autodetect:[]};class Z{constructor(...e){const n=this;if(Le(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let r=na(e),s=!1;if(!r){s=!0,Ie.sorted||(Ie.autodetect=Ie.autodetect.sort((a,c)=>c.p-a.p),Ie.sorted=!0);for(let a of Ie.autodetect)if(r=a.test(...e),r)break}if(Ie.format[r]){const a=Ie.format[r].apply(null,s?e:e.slice(0,-1));n._rgb=Lm(a)}else throw new Error("unknown format: "+e);n._rgb.length===3&&n._rgb.push(1)}toString(){return Le(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const OE="3.1.2",je=(...t)=>new Z(...t);je.version=OE;const Xs={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},ME=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,DE=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,__=t=>{if(t.match(ME)){(t.length===4||t.length===7)&&(t=t.substr(1)),t.length===3&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const e=parseInt(t,16),n=e>>16,r=e>>8&255,s=e&255;return[n,r,s,1]}if(t.match(DE)){(t.length===5||t.length===9)&&(t=t.substr(1)),t.length===4&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const e=parseInt(t,16),n=e>>24&255,r=e>>16&255,s=e>>8&255,a=Math.round((e&255)/255*100)/100;return[n,r,s,a]}throw new Error(`unknown hex color: ${t}`)},{round:Jc}=Math,w_=(...t)=>{let[e,n,r,s]=Ae(t,"rgba"),a=na(t)||"auto";s===void 0&&(s=1),a==="auto"&&(a=s<1?"rgba":"rgb"),e=Jc(e),n=Jc(n),r=Jc(r);let u="000000"+(e<<16|n<<8|r).toString(16);u=u.substr(u.length-6);let f="0"+Jc(s*255).toString(16);switch(f=f.substr(f.length-2),a.toLowerCase()){case"rgba":return`#${u}${f}`;case"argb":return`#${f}${u}`;default:return`#${u}`}};Z.prototype.name=function(){const t=w_(this._rgb,"rgb");for(let e of Object.keys(Xs))if(Xs[e]===t)return e.toLowerCase();return t};Ie.format.named=t=>{if(t=t.toLowerCase(),Xs[t])return __(Xs[t]);throw new Error("unknown color name: "+t)};Ie.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&Le(t)==="string"&&Xs[t.toLowerCase()])return"named"}});Z.prototype.alpha=function(t,e=!1){return t!==void 0&&Le(t)==="number"?e?(this._rgb[3]=t,this):new Z([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]};Z.prototype.clipped=function(){return this._rgb._clipped||!1};const Xr={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},NE=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function wi(t){const e=NE.get(String(t).toLowerCase());if(!e)throw new Error("unknown Lab illuminant "+t);Xr.labWhitePoint=t,Xr.Xn=e[0],Xr.Zn=e[1]}function Sl(){return Xr.labWhitePoint}const Fm=(...t)=>{t=Ae(t,"lab");const[e,n,r]=t,[s,a,c]=BE(e,n,r),[u,f,h]=C_(s,a,c);return[u,f,h,t.length>3?t[3]:1]},BE=(t,e,n)=>{const{kE:r,kK:s,kKE:a,Xn:c,Yn:u,Zn:f}=Xr,h=(t+16)/116,y=.002*e+h,g=h-.005*n,v=y*y*y,_=g*g*g,C=v>r?v:(116*y-16)/s,w=t>a?Math.pow((t+16)/116,3):t/s,I=_>r?_:(116*g-16)/s,P=C*c,D=w*u,B=I*f;return[P,D,B]},Vp=t=>{const e=Math.sign(t);return t=Math.abs(t),(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*e},C_=(t,e,n)=>{const{MtxAdaptMa:r,MtxAdaptMaI:s,MtxXYZ2RGB:a,RefWhiteRGB:c,Xn:u,Yn:f,Zn:h}=Xr,y=u*r.m00+f*r.m10+h*r.m20,g=u*r.m01+f*r.m11+h*r.m21,v=u*r.m02+f*r.m12+h*r.m22,_=c.X*r.m00+c.Y*r.m10+c.Z*r.m20,C=c.X*r.m01+c.Y*r.m11+c.Z*r.m21,w=c.X*r.m02+c.Y*r.m12+c.Z*r.m22,I=(t*r.m00+e*r.m10+n*r.m20)*(_/y),P=(t*r.m01+e*r.m11+n*r.m21)*(C/g),D=(t*r.m02+e*r.m12+n*r.m22)*(w/v),B=I*s.m00+P*s.m10+D*s.m20,M=I*s.m01+P*s.m11+D*s.m21,E=I*s.m02+P*s.m12+D*s.m22,U=Vp(B*a.m00+M*a.m10+E*a.m20),O=Vp(B*a.m01+M*a.m11+E*a.m21),V=Vp(B*a.m02+M*a.m12+E*a.m22);return[U*255,O*255,V*255]},$m=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),[a,c,u]=x_(e,n,r),[f,h,y]=LE(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]};function LE(t,e,n){const{Xn:r,Yn:s,Zn:a,kE:c,kK:u}=Xr,f=t/r,h=e/s,y=n/a,g=f>c?Math.pow(f,1/3):(u*f+16)/116,v=h>c?Math.pow(h,1/3):(u*h+16)/116,_=y>c?Math.pow(y,1/3):(u*y+16)/116;return[116*v-16,500*(g-v),200*(v-_)]}function Wp(t){const e=Math.sign(t);return t=Math.abs(t),(t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4))*e}const x_=(t,e,n)=>{t=Wp(t/255),e=Wp(e/255),n=Wp(n/255);const{MtxRGB2XYZ:r,MtxAdaptMa:s,MtxAdaptMaI:a,Xn:c,Yn:u,Zn:f,As:h,Bs:y,Cs:g}=Xr;let v=t*r.m00+e*r.m10+n*r.m20,_=t*r.m01+e*r.m11+n*r.m21,C=t*r.m02+e*r.m12+n*r.m22;const w=c*s.m00+u*s.m10+f*s.m20,I=c*s.m01+u*s.m11+f*s.m21,P=c*s.m02+u*s.m12+f*s.m22;let D=v*s.m00+_*s.m10+C*s.m20,B=v*s.m01+_*s.m11+C*s.m21,M=v*s.m02+_*s.m12+C*s.m22;return D*=w/h,B*=I/y,M*=P/g,v=D*a.m00+B*a.m10+M*a.m20,_=D*a.m01+B*a.m11+M*a.m21,C=D*a.m02+B*a.m12+M*a.m22,[v,_,C]};Z.prototype.lab=function(){return $m(this._rgb)};const FE=(...t)=>new Z(...t,"lab");Object.assign(je,{lab:FE,getLabWhitePoint:Sl,setLabWhitePoint:wi});Ie.format.lab=Fm;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"lab"),Le(t)==="array"&&t.length===3)return"lab"}});Z.prototype.darken=function(t=1){const e=this,n=e.lab();return n[0]-=Xr.Kn*t,new Z(n,"lab").alpha(e.alpha(),!0)};Z.prototype.brighten=function(t=1){return this.darken(-t)};Z.prototype.darker=Z.prototype.darken;Z.prototype.brighter=Z.prototype.brighten;Z.prototype.get=function(t){const[e,n]=t.split("."),r=this[e]();if(n){const s=e.indexOf(n)-(e.substr(0,2)==="ok"?2:0);if(s>-1)return r[s];throw new Error(`unknown channel ${n} in mode ${e}`)}else return r};const{pow:$E}=Math,jE=1e-7,zE=20;Z.prototype.luminance=function(t,e="rgb"){if(t!==void 0&&Le(t)==="number"){if(t===0)return new Z([0,0,0,this._rgb[3]],"rgb");if(t===1)return new Z([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=zE;const s=(c,u)=>{const f=c.interpolate(u,.5,e),h=f.luminance();return Math.abs(t-h)<jE||!r--?f:h>t?s(c,f):s(f,u)},a=(n>t?s(new Z([0,0,0]),this):s(this,new Z([255,255,255]))).rgb();return new Z([...a,this._rgb[3]])}return UE(...this._rgb.slice(0,3))};const UE=(t,e,n)=>(t=Hp(t),e=Hp(e),n=Hp(n),.2126*t+.7152*e+.0722*n),Hp=t=>(t/=255,t<=.03928?t/12.92:$E((t+.055)/1.055,2.4)),on={},qs=(t,e,n=.5,...r)=>{let s=r[0]||"lrgb";if(!on[s]&&!r.length&&(s=Object.keys(on)[0]),!on[s])throw new Error(`interpolation mode ${s} is not defined`);return Le(t)!=="object"&&(t=new Z(t)),Le(e)!=="object"&&(e=new Z(e)),on[s](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};Z.prototype.mix=Z.prototype.interpolate=function(t,e=.5,...n){return qs(this,t,e,...n)};Z.prototype.premultiply=function(t=!1){const e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new Z([e[0]*n,e[1]*n,e[2]*n,n],"rgb")};const{sin:VE,cos:WE}=Math,I_=(...t)=>{let[e,n,r]=Ae(t,"lch");return isNaN(r)&&(r=0),r=r*AE,[e,WE(r)*n,VE(r)*n]},jm=(...t)=>{t=Ae(t,"lch");const[e,n,r]=t,[s,a,c]=I_(e,n,r),[u,f,h]=Fm(s,a,c);return[u,f,h,t.length>3?t[3]:1]},HE=(...t)=>{const e=S_(Ae(t,"hcl"));return jm(...e)},{sqrt:GE,atan2:YE,round:KE}=Math,T_=(...t)=>{const[e,n,r]=Ae(t,"lab"),s=GE(n*n+r*r);let a=(YE(r,n)*PE+360)%360;return KE(s*1e4)===0&&(a=Number.NaN),[e,s,a]},zm=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),[a,c,u]=$m(e,n,r),[f,h,y]=T_(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]};Z.prototype.lch=function(){return zm(this._rgb)};Z.prototype.hcl=function(){return S_(zm(this._rgb))};const QE=(...t)=>new Z(...t,"lch"),XE=(...t)=>new Z(...t,"hcl");Object.assign(je,{lch:QE,hcl:XE});Ie.format.lch=jm;Ie.format.hcl=HE;["lch","hcl"].forEach(t=>Ie.autodetect.push({p:2,test:(...e)=>{if(e=Ae(e,t),Le(e)==="array"&&e.length===3)return t}}));Z.prototype.saturate=function(t=1){const e=this,n=e.lch();return n[1]+=Xr.Kn*t,n[1]<0&&(n[1]=0),new Z(n,"lch").alpha(e.alpha(),!0)};Z.prototype.desaturate=function(t=1){return this.saturate(-t)};Z.prototype.set=function(t,e,n=!1){const[r,s]=t.split("."),a=this[r]();if(s){const c=r.indexOf(s)-(r.substr(0,2)==="ok"?2:0);if(c>-1){if(Le(e)=="string")switch(e.charAt(0)){case"+":a[c]+=+e;break;case"-":a[c]+=+e;break;case"*":a[c]*=+e.substr(1);break;case"/":a[c]/=+e.substr(1);break;default:a[c]=+e}else if(Le(e)==="number")a[c]=e;else throw new Error("unsupported value for Color.set");const u=new Z(a,r);return n?(this._rgb=u._rgb,this):u}throw new Error(`unknown channel ${s} in mode ${r}`)}else return a};Z.prototype.tint=function(t=.5,...e){return qs(this,"white",t,...e)};Z.prototype.shade=function(t=.5,...e){return qs(this,"black",t,...e)};const qE=(t,e,n)=>{const r=t._rgb,s=e._rgb;return new Z(r[0]+n*(s[0]-r[0]),r[1]+n*(s[1]-r[1]),r[2]+n*(s[2]-r[2]),"rgb")};on.rgb=qE;const{sqrt:Gp,pow:ws}=Math,JE=(t,e,n)=>{const[r,s,a]=t._rgb,[c,u,f]=e._rgb;return new Z(Gp(ws(r,2)*(1-n)+ws(c,2)*n),Gp(ws(s,2)*(1-n)+ws(u,2)*n),Gp(ws(a,2)*(1-n)+ws(f,2)*n),"rgb")};on.lrgb=JE;const ZE=(t,e,n)=>{const r=t.lab(),s=e.lab();return new Z(r[0]+n*(s[0]-r[0]),r[1]+n*(s[1]-r[1]),r[2]+n*(s[2]-r[2]),"lab")};on.lab=ZE;const ra=(t,e,n,r)=>{let s,a;r==="hsl"?(s=t.hsl(),a=e.hsl()):r==="hsv"?(s=t.hsv(),a=e.hsv()):r==="hcg"?(s=t.hcg(),a=e.hcg()):r==="hsi"?(s=t.hsi(),a=e.hsi()):r==="lch"||r==="hcl"?(r="hcl",s=t.hcl(),a=e.hcl()):r==="oklch"&&(s=t.oklch().reverse(),a=e.oklch().reverse());let c,u,f,h,y,g;(r.substr(0,1)==="h"||r==="oklch")&&([c,f,y]=s,[u,h,g]=a);let v,_,C,w;return!isNaN(c)&&!isNaN(u)?(u>c&&u-c>180?w=u-(c+360):u<c&&c-u>180?w=u+360-c:w=u-c,_=c+n*w):isNaN(c)?isNaN(u)?_=Number.NaN:(_=u,(y==1||y==0)&&r!="hsv"&&(v=h)):(_=c,(g==1||g==0)&&r!="hsv"&&(v=f)),v===void 0&&(v=f+n*(h-f)),C=y+n*(g-y),r==="oklch"?new Z([C,v,_],r):new Z([_,v,C],r)},k_=(t,e,n)=>ra(t,e,n,"lch");on.lch=k_;on.hcl=k_;const eA=t=>{if(Le(t)=="number"&&t>=0&&t<=16777215){const e=t>>16,n=t>>8&255,r=t&255;return[e,n,r,1]}throw new Error("unknown num color: "+t)},tA=(...t)=>{const[e,n,r]=Ae(t,"rgb");return(e<<16)+(n<<8)+r};Z.prototype.num=function(){return tA(this._rgb)};const nA=(...t)=>new Z(...t,"num");Object.assign(je,{num:nA});Ie.format.num=eA;Ie.autodetect.push({p:5,test:(...t)=>{if(t.length===1&&Le(t[0])==="number"&&t[0]>=0&&t[0]<=16777215)return"num"}});const rA=(t,e,n)=>{const r=t.num(),s=e.num();return new Z(r+n*(s-r),"num")};on.num=rA;const{floor:iA}=Math,oA=(...t)=>{t=Ae(t,"hcg");let[e,n,r]=t,s,a,c;r=r*255;const u=n*255;if(n===0)s=a=c=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const f=iA(e),h=e-f,y=r*(1-n),g=y+u*(1-h),v=y+u*h,_=y+u;switch(f){case 0:[s,a,c]=[_,v,y];break;case 1:[s,a,c]=[g,_,y];break;case 2:[s,a,c]=[y,_,v];break;case 3:[s,a,c]=[y,g,_];break;case 4:[s,a,c]=[v,y,_];break;case 5:[s,a,c]=[_,y,g];break}}return[s,a,c,t.length>3?t[3]:1]},sA=(...t)=>{const[e,n,r]=Ae(t,"rgb"),s=v_(e,n,r),a=b_(e,n,r),c=a-s,u=c*100/255,f=s/(255-c)*100;let h;return c===0?h=Number.NaN:(e===a&&(h=(n-r)/c),n===a&&(h=2+(r-e)/c),r===a&&(h=4+(e-n)/c),h*=60,h<0&&(h+=360)),[h,u,f]};Z.prototype.hcg=function(){return sA(this._rgb)};const aA=(...t)=>new Z(...t,"hcg");je.hcg=aA;Ie.format.hcg=oA;Ie.autodetect.push({p:1,test:(...t)=>{if(t=Ae(t,"hcg"),Le(t)==="array"&&t.length===3)return"hcg"}});const lA=(t,e,n)=>ra(t,e,n,"hcg");on.hcg=lA;const{cos:Cs}=Math,cA=(...t)=>{t=Ae(t,"hsi");let[e,n,r]=t,s,a,c;return isNaN(e)&&(e=0),isNaN(n)&&(n=0),e>360&&(e-=360),e<0&&(e+=360),e/=360,e<1/3?(c=(1-n)/3,s=(1+n*Cs(vi*e)/Cs(Up-vi*e))/3,a=1-(c+s)):e<2/3?(e-=1/3,s=(1-n)/3,a=(1+n*Cs(vi*e)/Cs(Up-vi*e))/3,c=1-(s+a)):(e-=2/3,a=(1-n)/3,c=(1+n*Cs(vi*e)/Cs(Up-vi*e))/3,s=1-(a+c)),s=zo(r*s*3),a=zo(r*a*3),c=zo(r*c*3),[s*255,a*255,c*255,t.length>3?t[3]:1]},{min:uA,sqrt:dA,acos:fA}=Math,pA=(...t)=>{let[e,n,r]=Ae(t,"rgb");e/=255,n/=255,r/=255;let s;const a=uA(e,n,r),c=(e+n+r)/3,u=c>0?1-a/c:0;return u===0?s=NaN:(s=(e-n+(e-r))/2,s/=dA((e-n)*(e-n)+(e-r)*(n-r)),s=fA(s),r>n&&(s=vi-s),s/=vi),[s*360,u,c]};Z.prototype.hsi=function(){return pA(this._rgb)};const hA=(...t)=>new Z(...t,"hsi");je.hsi=hA;Ie.format.hsi=cA;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"hsi"),Le(t)==="array"&&t.length===3)return"hsi"}});const mA=(t,e,n)=>ra(t,e,n,"hsi");on.hsi=mA;const Ch=(...t)=>{t=Ae(t,"hsl");const[e,n,r]=t;let s,a,c;if(n===0)s=a=c=r*255;else{const u=[0,0,0],f=[0,0,0],h=r<.5?r*(1+n):r+n-r*n,y=2*r-h,g=e/360;u[0]=g+1/3,u[1]=g,u[2]=g-1/3;for(let v=0;v<3;v++)u[v]<0&&(u[v]+=1),u[v]>1&&(u[v]-=1),6*u[v]<1?f[v]=y+(h-y)*6*u[v]:2*u[v]<1?f[v]=h:3*u[v]<2?f[v]=y+(h-y)*(2/3-u[v])*6:f[v]=y;[s,a,c]=[f[0]*255,f[1]*255,f[2]*255]}return t.length>3?[s,a,c,t[3]]:[s,a,c,1]},R_=(...t)=>{t=Ae(t,"rgba");let[e,n,r]=t;e/=255,n/=255,r/=255;const s=v_(e,n,r),a=b_(e,n,r),c=(a+s)/2;let u,f;return a===s?(u=0,f=Number.NaN):u=c<.5?(a-s)/(a+s):(a-s)/(2-a-s),e==a?f=(n-r)/(a-s):n==a?f=2+(r-e)/(a-s):r==a&&(f=4+(e-n)/(a-s)),f*=60,f<0&&(f+=360),t.length>3&&t[3]!==void 0?[f,u,c,t[3]]:[f,u,c]};Z.prototype.hsl=function(){return R_(this._rgb)};const yA=(...t)=>new Z(...t,"hsl");je.hsl=yA;Ie.format.hsl=Ch;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"hsl"),Le(t)==="array"&&t.length===3)return"hsl"}});const gA=(t,e,n)=>ra(t,e,n,"hsl");on.hsl=gA;const{floor:vA}=Math,bA=(...t)=>{t=Ae(t,"hsv");let[e,n,r]=t,s,a,c;if(r*=255,n===0)s=a=c=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const u=vA(e),f=e-u,h=r*(1-n),y=r*(1-n*f),g=r*(1-n*(1-f));switch(u){case 0:[s,a,c]=[r,g,h];break;case 1:[s,a,c]=[y,r,h];break;case 2:[s,a,c]=[h,r,g];break;case 3:[s,a,c]=[h,y,r];break;case 4:[s,a,c]=[g,h,r];break;case 5:[s,a,c]=[r,h,y];break}}return[s,a,c,t.length>3?t[3]:1]},{min:SA,max:_A}=Math,wA=(...t)=>{t=Ae(t,"rgb");let[e,n,r]=t;const s=SA(e,n,r),a=_A(e,n,r),c=a-s;let u,f,h;return h=a/255,a===0?(u=Number.NaN,f=0):(f=c/a,e===a&&(u=(n-r)/c),n===a&&(u=2+(r-e)/c),r===a&&(u=4+(e-n)/c),u*=60,u<0&&(u+=360)),[u,f,h]};Z.prototype.hsv=function(){return wA(this._rgb)};const CA=(...t)=>new Z(...t,"hsv");je.hsv=CA;Ie.format.hsv=bA;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"hsv"),Le(t)==="array"&&t.length===3)return"hsv"}});const xA=(t,e,n)=>ra(t,e,n,"hsv");on.hsv=xA;function td(t,e){let n=t.length;Array.isArray(t[0])||(t=[t]),Array.isArray(e[0])||(e=e.map(c=>[c]));let r=e[0].length,s=e[0].map((c,u)=>e.map(f=>f[u])),a=t.map(c=>s.map(u=>Array.isArray(c)?c.reduce((f,h,y)=>f+h*(u[y]||0),0):u.reduce((f,h)=>f+h*c,0)));return n===1&&(a=a[0]),r===1?a.map(c=>c[0]):a}const Um=(...t)=>{t=Ae(t,"lab");const[e,n,r,...s]=t,[a,c,u]=IA([e,n,r]),[f,h,y]=C_(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]};function IA(t){var e=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],r=td(n,t);return td(e,r.map(s=>s**3))}const Vm=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),a=x_(e,n,r);return[...TA(a),...s.length>0&&s[0]<1?[s[0]]:[]]};function TA(t){const e=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],r=td(e,t);return td(n,r.map(s=>Math.cbrt(s)))}Z.prototype.oklab=function(){return Vm(this._rgb)};const kA=(...t)=>new Z(...t,"oklab");Object.assign(je,{oklab:kA});Ie.format.oklab=Um;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"oklab"),Le(t)==="array"&&t.length===3)return"oklab"}});const RA=(t,e,n)=>{const r=t.oklab(),s=e.oklab();return new Z(r[0]+n*(s[0]-r[0]),r[1]+n*(s[1]-r[1]),r[2]+n*(s[2]-r[2]),"oklab")};on.oklab=RA;const EA=(t,e,n)=>ra(t,e,n,"oklch");on.oklch=EA;const{pow:Yp,sqrt:Kp,PI:Qp,cos:n1,sin:r1,atan2:AA}=Math,PA=(t,e="lrgb",n=null)=>{const r=t.length;n||(n=Array.from(new Array(r)).map(()=>1));const s=r/n.reduce(function(g,v){return g+v});if(n.forEach((g,v)=>{n[v]*=s}),t=t.map(g=>new Z(g)),e==="lrgb")return OA(t,n);const a=t.shift(),c=a.get(e),u=[];let f=0,h=0;for(let g=0;g<c.length;g++)if(c[g]=(c[g]||0)*n[0],u.push(isNaN(c[g])?0:n[0]),e.charAt(g)==="h"&&!isNaN(c[g])){const v=c[g]/180*Qp;f+=n1(v)*n[0],h+=r1(v)*n[0]}let y=a.alpha()*n[0];t.forEach((g,v)=>{const _=g.get(e);y+=g.alpha()*n[v+1];for(let C=0;C<c.length;C++)if(!isNaN(_[C]))if(u[C]+=n[v+1],e.charAt(C)==="h"){const w=_[C]/180*Qp;f+=n1(w)*n[v+1],h+=r1(w)*n[v+1]}else c[C]+=_[C]*n[v+1]});for(let g=0;g<c.length;g++)if(e.charAt(g)==="h"){let v=AA(h/u[g],f/u[g])/Qp*180;for(;v<0;)v+=360;for(;v>=360;)v-=360;c[g]=v}else c[g]=c[g]/u[g];return y/=r,new Z(c,e).alpha(y>.99999?1:y,!0)},OA=(t,e)=>{const n=t.length,r=[0,0,0,0];for(let s=0;s<t.length;s++){const a=t[s],c=e[s]/n,u=a._rgb;r[0]+=Yp(u[0],2)*c,r[1]+=Yp(u[1],2)*c,r[2]+=Yp(u[2],2)*c,r[3]+=u[3]*c}return r[0]=Kp(r[0]),r[1]=Kp(r[1]),r[2]=Kp(r[2]),r[3]>.9999999&&(r[3]=1),new Z(Lm(r))},{pow:MA}=Math;function nd(t){let e="rgb",n=je("#ccc"),r=0,s=[0,1],a=[],c=[0,0],u=!1,f=[],h=!1,y=0,g=1,v=!1,_={},C=!0,w=1;const I=function(O){if(O=O||["#fff","#000"],O&&Le(O)==="string"&&je.brewer&&je.brewer[O.toLowerCase()]&&(O=je.brewer[O.toLowerCase()]),Le(O)==="array"){O.length===1&&(O=[O[0],O[0]]),O=O.slice(0);for(let V=0;V<O.length;V++)O[V]=je(O[V]);a.length=0;for(let V=0;V<O.length;V++)a.push(V/(O.length-1))}return E(),f=O},P=function(O){if(u!=null){const V=u.length-1;let Y=0;for(;Y<V&&O>=u[Y];)Y++;return Y-1}return 0};let D=O=>O,B=O=>O;const M=function(O,V){let Y,S;if(V==null&&(V=!1),isNaN(O)||O===null)return n;V?S=O:u&&u.length>2?S=P(O)/(u.length-2):g!==y?S=(O-y)/(g-y):S=1,S=B(S),V||(S=D(S)),w!==1&&(S=MA(S,w)),S=c[0]+S*(1-c[0]-c[1]),S=zo(S,0,1);const F=Math.floor(S*1e4);if(C&&_[F])Y=_[F];else{if(Le(f)==="array")for(let H=0;H<a.length;H++){const X=a[H];if(S<=X){Y=f[H];break}if(S>=X&&H===a.length-1){Y=f[H];break}if(S>X&&S<a[H+1]){S=(S-X)/(a[H+1]-X),Y=je.interpolate(f[H],f[H+1],S,e);break}}else Le(f)==="function"&&(Y=f(S));C&&(_[F]=Y)}return Y};var E=()=>_={};I(t);const U=function(O){const V=je(M(O));return h&&V[h]?V[h]():V};return U.classes=function(O){if(O!=null){if(Le(O)==="array")u=O,s=[O[0],O[O.length-1]];else{const V=je.analyze(s);O===0?u=[V.min,V.max]:u=je.limits(V,"e",O)}return U}return u},U.domain=function(O){if(!arguments.length)return s;y=O[0],g=O[O.length-1],a=[];const V=f.length;if(O.length===V&&y!==g)for(let Y of Array.from(O))a.push((Y-y)/(g-y));else{for(let Y=0;Y<V;Y++)a.push(Y/(V-1));if(O.length>2){const Y=O.map((F,H)=>H/(O.length-1)),S=O.map(F=>(F-y)/(g-y));S.every((F,H)=>Y[H]===F)||(B=F=>{if(F<=0||F>=1)return F;let H=0;for(;F>=S[H+1];)H++;const X=(F-S[H])/(S[H+1]-S[H]);return Y[H]+X*(Y[H+1]-Y[H])})}}return s=[y,g],U},U.mode=function(O){return arguments.length?(e=O,E(),U):e},U.range=function(O,V){return I(O),U},U.out=function(O){return h=O,U},U.spread=function(O){return arguments.length?(r=O,U):r},U.correctLightness=function(O){return O==null&&(O=!0),v=O,E(),v?D=function(V){const Y=M(0,!0).lab()[0],S=M(1,!0).lab()[0],F=Y>S;let H=M(V,!0).lab()[0];const X=Y+(S-Y)*V;let le=H-X,ce=0,de=1,fe=20;for(;Math.abs(le)>.01&&fe-- >0;)(function(){return F&&(le*=-1),le<0?(ce=V,V+=(de-V)*.5):(de=V,V+=(ce-V)*.5),H=M(V,!0).lab()[0],le=H-X})();return V}:D=V=>V,U},U.padding=function(O){return O!=null?(Le(O)==="number"&&(O=[O,O]),c=O,U):c},U.colors=function(O,V){arguments.length<2&&(V="hex");let Y=[];if(arguments.length===0)Y=f.slice(0);else if(O===1)Y=[U(.5)];else if(O>1){const S=s[0],F=s[1]-S;Y=DA(0,O).map(H=>U(S+H/(O-1)*F))}else{t=[];let S=[];if(u&&u.length>2)for(let F=1,H=u.length,X=1<=H;X?F<H:F>H;X?F++:F--)S.push((u[F-1]+u[F])*.5);else S=s;Y=S.map(F=>U(F))}return je[V]&&(Y=Y.map(S=>S[V]())),Y},U.cache=function(O){return O!=null?(C=O,U):C},U.gamma=function(O){return O!=null?(w=O,U):w},U.nodata=function(O){return O!=null?(n=je(O),U):n},U}function DA(t,e,n){let r=[],s=t<e,a=e;for(let c=t;s?c<a:c>a;s?c++:c--)r.push(c);return r}const NA=function(t){let e=[1,1];for(let n=1;n<t;n++){let r=[1];for(let s=1;s<=e.length;s++)r[s]=(e[s]||0)+e[s-1];e=r}return e},BA=function(t){let e,n,r,s;if(t=t.map(a=>new Z(a)),t.length===2)[n,r]=t.map(a=>a.lab()),e=function(a){const c=[0,1,2].map(u=>n[u]+a*(r[u]-n[u]));return new Z(c,"lab")};else if(t.length===3)[n,r,s]=t.map(a=>a.lab()),e=function(a){const c=[0,1,2].map(u=>(1-a)*(1-a)*n[u]+2*(1-a)*a*r[u]+a*a*s[u]);return new Z(c,"lab")};else if(t.length===4){let a;[n,r,s,a]=t.map(c=>c.lab()),e=function(c){const u=[0,1,2].map(f=>(1-c)*(1-c)*(1-c)*n[f]+3*(1-c)*(1-c)*c*r[f]+3*(1-c)*c*c*s[f]+c*c*c*a[f]);return new Z(u,"lab")}}else if(t.length>=5){let a,c,u;a=t.map(f=>f.lab()),u=t.length-1,c=NA(u),e=function(f){const h=1-f,y=[0,1,2].map(g=>a.reduce((v,_,C)=>v+c[C]*h**(u-C)*f**C*_[g],0));return new Z(y,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return e},LA=t=>{const e=BA(t);return e.scale=()=>nd(e),e},{round:E_}=Math;Z.prototype.rgb=function(t=!0){return t===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(E_)};Z.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,n)=>n<3?t===!1?e:E_(e):e)};const FA=(...t)=>new Z(...t,"rgb");Object.assign(je,{rgb:FA});Ie.format.rgb=(...t)=>{const e=Ae(t,"rgba");return e[3]===void 0&&(e[3]=1),e};Ie.autodetect.push({p:3,test:(...t)=>{if(t=Ae(t,"rgba"),Le(t)==="array"&&(t.length===3||t.length===4&&Le(t[3])=="number"&&t[3]>=0&&t[3]<=1))return"rgb"}});const Tr=(t,e,n)=>{if(!Tr[n])throw new Error("unknown blend mode "+n);return Tr[n](t,e)},po=t=>(e,n)=>{const r=je(n).rgb(),s=je(e).rgb();return je.rgb(t(r,s))},ho=t=>(e,n)=>{const r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r},$A=t=>t,jA=(t,e)=>t*e/255,zA=(t,e)=>t>e?e:t,UA=(t,e)=>t>e?t:e,VA=(t,e)=>255*(1-(1-t/255)*(1-e/255)),WA=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),HA=(t,e)=>255*(1-(1-e/255)/(t/255)),GA=(t,e)=>t===255?255:(t=255*(e/255)/(1-t/255),t>255?255:t);Tr.normal=po(ho($A));Tr.multiply=po(ho(jA));Tr.screen=po(ho(VA));Tr.overlay=po(ho(WA));Tr.darken=po(ho(zA));Tr.lighten=po(ho(UA));Tr.dodge=po(ho(GA));Tr.burn=po(ho(HA));const{pow:YA,sin:KA,cos:QA}=Math;function XA(t=300,e=-1.5,n=1,r=1,s=[0,1]){let a=0,c;Le(s)==="array"?c=s[1]-s[0]:(c=0,s=[s,s]);const u=function(f){const h=vi*((t+120)/360+e*f),y=YA(s[0]+c*f,r),v=(a!==0?n[0]+f*a:n)*y*(1-y)/2,_=QA(h),C=KA(h),w=y+v*(-.14861*_+1.78277*C),I=y+v*(-.29227*_-.90649*C),P=y+v*(1.97294*_);return je(Lm([w*255,I*255,P*255,1]))};return u.start=function(f){return f==null?t:(t=f,u)},u.rotations=function(f){return f==null?e:(e=f,u)},u.gamma=function(f){return f==null?r:(r=f,u)},u.hue=function(f){return f==null?n:(n=f,Le(n)==="array"?(a=n[1]-n[0],a===0&&(n=n[1])):a=0,u)},u.lightness=function(f){return f==null?s:(Le(f)==="array"?(s=f,c=f[1]-f[0]):(s=[f,f],c=0),u)},u.scale=()=>je.scale(u),u.hue(n),u}const qA="0123456789abcdef",{floor:JA,random:ZA}=Math,eP=()=>{let t="#";for(let e=0;e<6;e++)t+=qA.charAt(JA(ZA()*16));return new Z(t,"hex")},{log:i1,pow:tP,floor:nP,abs:rP}=Math;function A_(t,e=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Le(t)==="object"&&(t=Object.values(t)),t.forEach(r=>{e&&Le(r)==="object"&&(r=r[e]),r!=null&&!isNaN(r)&&(n.values.push(r),n.sum+=r,r<n.min&&(n.min=r),r>n.max&&(n.max=r),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(r,s)=>P_(n,r,s),n}function P_(t,e="equal",n=7){Le(t)=="array"&&(t=A_(t));const{min:r,max:s}=t,a=t.values.sort((u,f)=>u-f);if(n===1)return[r,s];const c=[];if(e.substr(0,1)==="c"&&(c.push(r),c.push(s)),e.substr(0,1)==="e"){c.push(r);for(let u=1;u<n;u++)c.push(r+u/n*(s-r));c.push(s)}else if(e.substr(0,1)==="l"){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const u=Math.LOG10E*i1(r),f=Math.LOG10E*i1(s);c.push(r);for(let h=1;h<n;h++)c.push(tP(10,u+h/n*(f-u)));c.push(s)}else if(e.substr(0,1)==="q"){c.push(r);for(let u=1;u<n;u++){const f=(a.length-1)*u/n,h=nP(f);if(h===f)c.push(a[h]);else{const y=f-h;c.push(a[h]*(1-y)+a[h+1]*y)}}c.push(s)}else if(e.substr(0,1)==="k"){let u;const f=a.length,h=new Array(f),y=new Array(n);let g=!0,v=0,_=null;_=[],_.push(r);for(let I=1;I<n;I++)_.push(r+I/n*(s-r));for(_.push(s);g;){for(let P=0;P<n;P++)y[P]=0;for(let P=0;P<f;P++){const D=a[P];let B=Number.MAX_VALUE,M;for(let E=0;E<n;E++){const U=rP(_[E]-D);U<B&&(B=U,M=E),y[M]++,h[P]=M}}const I=new Array(n);for(let P=0;P<n;P++)I[P]=null;for(let P=0;P<f;P++)u=h[P],I[u]===null?I[u]=a[P]:I[u]+=a[P];for(let P=0;P<n;P++)I[P]*=1/y[P];g=!1;for(let P=0;P<n;P++)if(I[P]!==_[P]){g=!0;break}_=I,v++,v>200&&(g=!1)}const C={};for(let I=0;I<n;I++)C[I]=[];for(let I=0;I<f;I++)u=h[I],C[u].push(a[I]);let w=[];for(let I=0;I<n;I++)w.push(C[I][0]),w.push(C[I][C[I].length-1]);w=w.sort((I,P)=>I-P),c.push(w[0]);for(let I=1;I<w.length;I+=2){const P=w[I];!isNaN(P)&&c.indexOf(P)===-1&&c.push(P)}}return c}const iP=(t,e)=>{t=new Z(t),e=new Z(e);const n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)};/**
112
- * @license
113
- *
114
- * The APCA contrast prediction algorithm is based of the formulas published
115
- * in the APCA-1.0.98G specification by Myndex. The specification is available at:
116
- * https://raw.githubusercontent.com/Myndex/apca-w3/master/images/APCAw3_0.1.17_APCA0.0.98G.svg
117
- *
118
- * Note that the APCA implementation is still beta, so please update to
119
- * future versions of chroma.js when they become available.
120
- *
121
- * You can read more about the APCA Readability Criterion at
122
- * https://readtech.org/ARC/
123
- */const o1=.027,oP=5e-4,sP=.1,s1=1.14,Zc=.022,a1=1.414,aP=(t,e)=>{t=new Z(t),e=new Z(e),t.alpha()<1&&(t=qs(e,t,t.alpha(),"rgb"));const n=l1(...t.rgb()),r=l1(...e.rgb()),s=n>=Zc?n:n+Math.pow(Zc-n,a1),a=r>=Zc?r:r+Math.pow(Zc-r,a1),c=Math.pow(a,.56)-Math.pow(s,.57),u=Math.pow(a,.65)-Math.pow(s,.62),f=Math.abs(a-s)<oP?0:s<a?c*s1:u*s1;return(Math.abs(f)<sP?0:f>0?f-o1:f+o1)*100};function l1(t,e,n){return .2126729*Math.pow(t/255,2.4)+.7151522*Math.pow(e/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:fi,pow:Ot,min:lP,max:cP,atan2:c1,abs:u1,cos:eu,sin:d1,exp:uP,PI:f1}=Math;function dP(t,e,n=1,r=1,s=1){var a=function(ue){return 360*ue/(2*f1)},c=function(ue){return 2*f1*ue/360};t=new Z(t),e=new Z(e);const[u,f,h]=Array.from(t.lab()),[y,g,v]=Array.from(e.lab()),_=(u+y)/2,C=fi(Ot(f,2)+Ot(h,2)),w=fi(Ot(g,2)+Ot(v,2)),I=(C+w)/2,P=.5*(1-fi(Ot(I,7)/(Ot(I,7)+Ot(25,7)))),D=f*(1+P),B=g*(1+P),M=fi(Ot(D,2)+Ot(h,2)),E=fi(Ot(B,2)+Ot(v,2)),U=(M+E)/2,O=a(c1(h,D)),V=a(c1(v,B)),Y=O>=0?O:O+360,S=V>=0?V:V+360,F=u1(Y-S)>180?(Y+S+360)/2:(Y+S)/2,H=1-.17*eu(c(F-30))+.24*eu(c(2*F))+.32*eu(c(3*F+6))-.2*eu(c(4*F-63));let X=S-Y;X=u1(X)<=180?X:S<=Y?X+360:X-360,X=2*fi(M*E)*d1(c(X)/2);const le=y-u,ce=E-M,de=1+.015*Ot(_-50,2)/fi(20+Ot(_-50,2)),fe=1+.045*U,J=1+.015*U*H,te=30*uP(-Ot((F-275)/25,2)),k=-(2*fi(Ot(U,7)/(Ot(U,7)+Ot(25,7))))*d1(2*c(te)),G=fi(Ot(le/(n*de),2)+Ot(ce/(r*fe),2)+Ot(X/(s*J),2)+k*(ce/(r*fe))*(X/(s*J)));return cP(0,lP(100,G))}function fP(t,e,n="lab"){t=new Z(t),e=new Z(e);const r=t.get(n),s=e.get(n);let a=0;for(let c in r){const u=(r[c]||0)-(s[c]||0);a+=u*u}return Math.sqrt(a)}const pP=(...t)=>{try{return new Z(...t),!0}catch{return!1}},hP={cool(){return nd([je.hsl(180,1,.9),je.hsl(250,.7,.4)])},hot(){return nd(["#000","#f00","#ff0","#fff"]).mode("rgb")}},xh={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},O_=Object.keys(xh),p1=new Map(O_.map(t=>[t.toLowerCase(),t])),mP=typeof Proxy=="function"?new Proxy(xh,{get(t,e){const n=e.toLowerCase();if(p1.has(n))return t[p1.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(O_)}}):xh,yP=(...t)=>{t=Ae(t,"cmyk");const[e,n,r,s]=t,a=t.length>4?t[4]:1;return s===1?[0,0,0,a]:[e>=1?0:255*(1-e)*(1-s),n>=1?0:255*(1-n)*(1-s),r>=1?0:255*(1-r)*(1-s),a]},{max:h1}=Math,gP=(...t)=>{let[e,n,r]=Ae(t,"rgb");e=e/255,n=n/255,r=r/255;const s=1-h1(e,h1(n,r)),a=s<1?1/(1-s):0,c=(1-e-s)*a,u=(1-n-s)*a,f=(1-r-s)*a;return[c,u,f,s]};Z.prototype.cmyk=function(){return gP(this._rgb)};const vP=(...t)=>new Z(...t,"cmyk");Object.assign(je,{cmyk:vP});Ie.format.cmyk=yP;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"cmyk"),Le(t)==="array"&&t.length===4)return"cmyk"}});const bP=(...t)=>{const e=Ae(t,"hsla");let n=na(t)||"lsa";return e[0]=ar(e[0]||0)+"deg",e[1]=ar(e[1]*100)+"%",e[2]=ar(e[2]*100)+"%",n==="hsla"||e.length>3&&e[3]<1?(e[3]="/ "+(e.length>3?e[3]:1),n="hsla"):e.length=3,`${n.substr(0,3)}(${e.join(" ")})`},SP=(...t)=>{const e=Ae(t,"lab");let n=na(t)||"lab";return e[0]=ar(e[0])+"%",e[1]=ar(e[1]),e[2]=ar(e[2]),n==="laba"||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lab(${e.join(" ")})`},_P=(...t)=>{const e=Ae(t,"lch");let n=na(t)||"lab";return e[0]=ar(e[0])+"%",e[1]=ar(e[1]),e[2]=isNaN(e[2])?"none":ar(e[2])+"deg",n==="lcha"||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lch(${e.join(" ")})`},wP=(...t)=>{const e=Ae(t,"lab");return e[0]=ar(e[0]*100)+"%",e[1]=wh(e[1]),e[2]=wh(e[2]),e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklab(${e.join(" ")})`},M_=(...t)=>{const[e,n,r,...s]=Ae(t,"rgb"),[a,c,u]=Vm(e,n,r),[f,h,y]=T_(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]},CP=(...t)=>{const e=Ae(t,"lch");return e[0]=ar(e[0]*100)+"%",e[1]=wh(e[1]),e[2]=isNaN(e[2])?"none":ar(e[2])+"deg",e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklch(${e.join(" ")})`},{round:Xp}=Math,xP=(...t)=>{const e=Ae(t,"rgba");let n=na(t)||"rgb";if(n.substr(0,3)==="hsl")return bP(R_(e),n);if(n.substr(0,3)==="lab"){const r=Sl();wi("d50");const s=SP($m(e),n);return wi(r),s}if(n.substr(0,3)==="lch"){const r=Sl();wi("d50");const s=_P(zm(e),n);return wi(r),s}return n.substr(0,5)==="oklab"?wP(Vm(e)):n.substr(0,5)==="oklch"?CP(M_(e)):(e[0]=Xp(e[0]),e[1]=Xp(e[1]),e[2]=Xp(e[2]),(n==="rgba"||e.length>3&&e[3]<1)&&(e[3]="/ "+(e.length>3?e[3]:1),n="rgba"),`${n.substr(0,3)}(${e.slice(0,n==="rgb"?3:4).join(" ")})`)},D_=(...t)=>{t=Ae(t,"lch");const[e,n,r,...s]=t,[a,c,u]=I_(e,n,r),[f,h,y]=Um(a,c,u);return[f,h,y,...s.length>0&&s[0]<1?[s[0]]:[]]},Ii=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,xr=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,rd=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,cr=/\s*/.source,ia=/\s+/.source,Wm=/\s*,\s*/.source,kd=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,oa=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,N_=new RegExp("^rgba?\\("+cr+[Ii,Ii,Ii].join(ia)+oa+"\\)$"),B_=new RegExp("^rgb\\("+cr+[Ii,Ii,Ii].join(Wm)+cr+"\\)$"),L_=new RegExp("^rgba\\("+cr+[Ii,Ii,Ii,xr].join(Wm)+cr+"\\)$"),F_=new RegExp("^hsla?\\("+cr+[kd,rd,rd].join(ia)+oa+"\\)$"),$_=new RegExp("^hsl?\\("+cr+[kd,rd,rd].join(Wm)+cr+"\\)$"),j_=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,z_=new RegExp("^lab\\("+cr+[xr,xr,xr].join(ia)+oa+"\\)$"),U_=new RegExp("^lch\\("+cr+[xr,xr,kd].join(ia)+oa+"\\)$"),V_=new RegExp("^oklab\\("+cr+[xr,xr,xr].join(ia)+oa+"\\)$"),W_=new RegExp("^oklch\\("+cr+[xr,xr,kd].join(ia)+oa+"\\)$"),{round:H_}=Math,xs=t=>t.map((e,n)=>n<=2?zo(H_(e),0,255):e),Mt=(t,e=0,n=100,r=!1)=>(typeof t=="string"&&t.endsWith("%")&&(t=parseFloat(t.substring(0,t.length-1))/100,r?t=e+(t+1)*.5*(n-e):t=e+t*(n-e)),+t),fn=(t,e)=>t==="none"?e:t,Hm=t=>{if(t=t.toLowerCase().trim(),t==="transparent")return[0,0,0,0];let e;if(Ie.format.named)try{return Ie.format.named(t)}catch{}if((e=t.match(N_))||(e=t.match(B_))){let n=e.slice(1,4);for(let s=0;s<3;s++)n[s]=+Mt(fn(n[s],0),0,255);n=xs(n);const r=e[4]!==void 0?+Mt(e[4],0,1):1;return n[3]=r,n}if(e=t.match(L_)){const n=e.slice(1,5);for(let r=0;r<4;r++)n[r]=+Mt(n[r],0,255);return n}if((e=t.match(F_))||(e=t.match($_))){const n=e.slice(1,4);n[0]=+fn(n[0].replace("deg",""),0),n[1]=+Mt(fn(n[1],0),0,100)*.01,n[2]=+Mt(fn(n[2],0),0,100)*.01;const r=xs(Ch(n)),s=e[4]!==void 0?+Mt(e[4],0,1):1;return r[3]=s,r}if(e=t.match(j_)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=Ch(n);for(let s=0;s<3;s++)r[s]=H_(r[s]);return r[3]=+e[4],r}if(e=t.match(z_)){const n=e.slice(1,4);n[0]=Mt(fn(n[0],0),0,100),n[1]=Mt(fn(n[1],0),-125,125,!0),n[2]=Mt(fn(n[2],0),-125,125,!0);const r=Sl();wi("d50");const s=xs(Fm(n));wi(r);const a=e[4]!==void 0?+Mt(e[4],0,1):1;return s[3]=a,s}if(e=t.match(U_)){const n=e.slice(1,4);n[0]=Mt(n[0],0,100),n[1]=Mt(fn(n[1],0),0,150,!1),n[2]=+fn(n[2].replace("deg",""),0);const r=Sl();wi("d50");const s=xs(jm(n));wi(r);const a=e[4]!==void 0?+Mt(e[4],0,1):1;return s[3]=a,s}if(e=t.match(V_)){const n=e.slice(1,4);n[0]=Mt(fn(n[0],0),0,1),n[1]=Mt(fn(n[1],0),-.4,.4,!0),n[2]=Mt(fn(n[2],0),-.4,.4,!0);const r=xs(Um(n)),s=e[4]!==void 0?+Mt(e[4],0,1):1;return r[3]=s,r}if(e=t.match(W_)){const n=e.slice(1,4);n[0]=Mt(fn(n[0],0),0,1),n[1]=Mt(fn(n[1],0),0,.4,!1),n[2]=+fn(n[2].replace("deg",""),0);const r=xs(D_(n)),s=e[4]!==void 0?+Mt(e[4],0,1):1;return r[3]=s,r}};Hm.test=t=>N_.test(t)||F_.test(t)||z_.test(t)||U_.test(t)||V_.test(t)||W_.test(t)||B_.test(t)||L_.test(t)||$_.test(t)||j_.test(t)||t==="transparent";Z.prototype.css=function(t){return xP(this._rgb,t)};const IP=(...t)=>new Z(...t,"css");je.css=IP;Ie.format.css=Hm;Ie.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&Le(t)==="string"&&Hm.test(t))return"css"}});Ie.format.gl=(...t)=>{const e=Ae(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e};const TP=(...t)=>new Z(...t,"gl");je.gl=TP;Z.prototype.gl=function(){const t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};Z.prototype.hex=function(t){return w_(this._rgb,t)};const kP=(...t)=>new Z(...t,"hex");je.hex=kP;Ie.format.hex=__;Ie.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&Le(t)==="string"&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{log:tu}=Math,G_=t=>{const e=t/100;let n,r,s;return e<66?(n=255,r=e<6?0:-155.25485562709179-.44596950469579133*(r=e-2)+104.49216199393888*tu(r),s=e<20?0:-254.76935184120902+.8274096064007395*(s=e-10)+115.67994401066147*tu(s)):(n=351.97690566805693+.114206453784165*(n=e-55)-40.25366309332127*tu(n),r=325.4494125711974+.07943456536662342*(r=e-50)-28.0852963507957*tu(r),s=255),[n,r,s,1]},{round:RP}=Math,EP=(...t)=>{const e=Ae(t,"rgb"),n=e[0],r=e[2];let s=1e3,a=4e4;const c=.4;let u;for(;a-s>c;){u=(a+s)*.5;const f=G_(u);f[2]/f[0]>=r/n?a=u:s=u}return RP(u)};Z.prototype.temp=Z.prototype.kelvin=Z.prototype.temperature=function(){return EP(this._rgb)};const qp=(...t)=>new Z(...t,"temp");Object.assign(je,{temp:qp,kelvin:qp,temperature:qp});Ie.format.temp=Ie.format.kelvin=Ie.format.temperature=G_;Z.prototype.oklch=function(){return M_(this._rgb)};const AP=(...t)=>new Z(...t,"oklch");Object.assign(je,{oklch:AP});Ie.format.oklch=D_;Ie.autodetect.push({p:2,test:(...t)=>{if(t=Ae(t,"oklch"),Le(t)==="array"&&t.length===3)return"oklch"}});Object.assign(je,{analyze:A_,average:PA,bezier:LA,blend:Tr,brewer:mP,Color:Z,colors:Xs,contrast:iP,contrastAPCA:aP,cubehelix:XA,deltaE:dP,distance:fP,input:Ie,interpolate:qs,limits:P_,mix:qs,random:eP,scale:nd,scales:hP,valid:pP});function PP(t){const{theme:e}=ud.useRenderData(),n=JSON.stringify(e),r=Nt.useMemo(()=>{const s=JSON.parse(n);if(s==null)return;const a=je.scale([s.textColor,s.backgroundColor]).mode("lab");return Id({palette:{primary:{main:s.primaryColor},background:{default:s.backgroundColor,paper:s.secondaryBackgroundColor},text:{primary:s.textColor,secondary:a(.1).hex(),disabled:a(.5).hex()}},typography:{fontFamily:s.font}})},[n]);return r==null?j.jsx(j.Fragment,{children:t.children}):j.jsx(kE,{theme:r,children:t.children})}function OP(t){return j.jsx(L3,{...t,defaultTheme:Bm,themeId:Cr})}function Gm(t){return function(n){return j.jsx(OP,{styles:typeof t=="function"?r=>t({theme:r,...n}):t})}}function an(t){return TR(t)}const Ih=typeof Gm({})=="function",MP=(t,e)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...e&&!t.vars&&{colorScheme:t.palette.mode}}),DP=t=>({color:(t.vars||t).palette.text.primary,...t.typography.body1,backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),Y_=(t,e=!1)=>{var a,c;const n={};e&&t.colorSchemes&&typeof t.getColorSchemeSelector=="function"&&Object.entries(t.colorSchemes).forEach(([u,f])=>{var y,g;const h=t.getColorSchemeSelector(u);h.startsWith("@")?n[h]={":root":{colorScheme:(y=f.palette)==null?void 0:y.mode}}:n[h.replace(/\s*&/,"")]={colorScheme:(g=f.palette)==null?void 0:g.mode}});let r={html:MP(t,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:{margin:0,...DP(t),"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}},...n};const s=(c=(a=t.components)==null?void 0:a.MuiCssBaseline)==null?void 0:c.styleOverrides;return s&&(r=[r,s]),r},mu="mui-ecs",NP=t=>{const e=Y_(t,!1),n=Array.isArray(e)?e[0]:e;return!t.vars&&n&&(n.html[`:root:has(${mu})`]={colorScheme:t.palette.mode}),t.colorSchemes&&Object.entries(t.colorSchemes).forEach(([r,s])=>{var c,u;const a=t.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${mu}))`]:{colorScheme:(c=s.palette)==null?void 0:c.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${mu}))`]:{colorScheme:(u=s.palette)==null?void 0:u.mode}}}),e},BP=Gm(Ih?({theme:t,enableColorScheme:e})=>Y_(t,e):({theme:t})=>NP(t));function LP(t){const e=an({props:t,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=e;return j.jsxs(A.Fragment,{children:[Ih&&j.jsx(BP,{enableColorScheme:r}),!Ih&&!r&&j.jsx("span",{className:mu,style:{display:"none"}}),n]})}const K_=Nt.createContext(void 0);function FP(t){const e=ud.useRenderData(),{start:n,stop:r,select_device:s,device_ask_permission:a,device_not_available:c,device_access_denied:u,media_api_not_available:f}=e.args.translations||{},h=A.useMemo(()=>({start:n,stop:r,select_device:s,device_ask_permission:a,device_not_available:c,device_access_denied:u,media_api_not_available:f}),[n,r,s,a,c,u,f]);return j.jsx(K_.Provider,{value:h,children:t.children})}const $P=Nt.memo(FP),jP=gn("MuiBox",["root"]),zP=Id(),$s=j3({themeId:Cr,defaultTheme:zP,defaultClassName:jP.root,generateClassName:QS.generate}),Mn=kR;function Is(t,e){const{className:n,elementType:r,ownerState:s,externalForwardedProps:a,internalForwardedProps:c,shouldForwardComponentProp:u=!1,...f}=e,{component:h,slots:y={[t]:void 0},slotProps:g={[t]:void 0},...v}=a,_=y[t]||r,C=gR(g[t],s),{props:{component:w,...I},internalRef:P}=yR({className:n,...f,externalForwardedProps:t==="root"?v:void 0,externalSlotProps:C}),D=vl(P,C==null?void 0:C.ref,e.ref),B=t==="root"?w||h:w,M=hR(_,{...t==="root"&&!h&&!y[t]&&c,...t!=="root"&&!y[t]&&c,...I,...B&&!u&&{as:B},...B&&u&&{component:B},ref:D},s);return[_,M]}function UP(t){return typeof t.main=="string"}function VP(t,e=[]){if(!UP(t))return!1;for(const n of e)if(!t.hasOwnProperty(n)||typeof t[n]!="string")return!1;return!0}function Ti(t=[]){return([,e])=>e&&VP(e,t)}function WP(t){return yn("MuiPaper",t)}gn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const HP=t=>{const{square:e,elevation:n,variant:r,classes:s}=t,a={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return vn(a,WP,s)},GP=Fe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(Mn(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Rd=A.forwardRef(function(e,n){var _;const r=an({props:e,name:"MuiPaper"}),s=y_(),{className:a,component:c="div",elevation:u=1,square:f=!1,variant:h="elevation",...y}=r,g={...r,component:c,elevation:u,square:f,variant:h},v=HP(g);return j.jsx(GP,{as:c,ownerState:g,className:ot(v.root,a),ref:n,...y,style:{...h==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[u],...s.vars&&{"--Paper-overlay":(_=s.vars.overlays)==null?void 0:_[u]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Gr("#fff",_h(u))}, ${Gr("#fff",_h(u))})`}},...y.style}})});function YP(t){return yn("MuiAlert",t)}const m1=gn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function KP(t){return yn("MuiSvgIcon",t)}gn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const QP=t=>{const{color:e,fontSize:n,classes:r}=t,s={root:["root",e!=="inherit"&&`color${Oe(e)}`,`fontSize${Oe(n)}`]};return vn(s,KP,r)},XP=Fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Oe(n.color)}`],e[`fontSize${Oe(n.fontSize)}`]]}})(Mn(({theme:t})=>{var e,n,r,s,a,c,u,f,h,y,g,v,_,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(e=t.transitions)==null?void 0:e.create)==null?void 0:s.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:c.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((f=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(h=t.typography)==null?void 0:h.pxToRem)==null?void 0:y.call(h,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,w])=>w&&w.main).map(([w])=>{var I,P;return{props:{color:w},style:{color:(P=(I=(t.vars??t).palette)==null?void 0:I[w])==null?void 0:P.main}}}),{props:{color:"action"},style:{color:(v=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(C=(_=(t.vars??t).palette)==null?void 0:_.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Th=A.forwardRef(function(e,n){const r=an({props:e,name:"MuiSvgIcon"}),{children:s,className:a,color:c="inherit",component:u="svg",fontSize:f="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:g,viewBox:v="0 0 24 24",..._}=r,C=A.isValidElement(s)&&s.type==="svg",w={...r,color:c,component:u,fontSize:f,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:v,hasSvgAsChild:C},I={};y||(I.viewBox=v);const P=QP(w);return j.jsxs(XP,{as:u,className:ot(P.root,a),focusable:"false",color:h,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...I,..._,...C&&s.props,ownerState:w,children:[C?s.props.children:s,g?j.jsx("title",{children:g}):null]})});Th.muiName="SvgIcon";function mo(t,e){function n(r,s){return j.jsx(Th,{"data-testid":`${e}Icon`,ref:s,...r,children:t})}return n.muiName=Th.muiName,A.memo(A.forwardRef(n))}class id{constructor(){Ua(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new id}static use(){const e=o_(id.create).current,[n,r]=A.useState(!1);return e.shouldMount=n,e.setShouldMount=r,A.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=JP(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function qP(){return id.use()}function JP(){let t,e;const n=new Promise((r,s)=>{t=r,e=s});return n.resolve=t,n.reject=e,n}function ZP(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function kh(t,e){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kh(t,e)}function eO(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,kh(t,e)}const y1=Nt.createContext(null);function tO(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ym(t,e){var n=function(a){return e&&A.isValidElement(a)?e(a):a},r=Object.create(null);return t&&A.Children.map(t,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function nO(t,e){t=t||{},e=e||{};function n(y){return y in e?e[y]:t[y]}var r=Object.create(null),s=[];for(var a in t)a in e?s.length&&(r[a]=s,s=[]):s.push(a);var c,u={};for(var f in e){if(r[f])for(c=0;c<r[f].length;c++){var h=r[f][c];u[r[f][c]]=n(h)}u[f]=n(f)}for(c=0;c<s.length;c++)u[s[c]]=n(s[c]);return u}function Fo(t,e,n){return n[e]!=null?n[e]:t.props[e]}function rO(t,e){return Ym(t.children,function(n){return A.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Fo(n,"appear",t),enter:Fo(n,"enter",t),exit:Fo(n,"exit",t)})})}function iO(t,e,n){var r=Ym(t.children),s=nO(e,r);return Object.keys(s).forEach(function(a){var c=s[a];if(A.isValidElement(c)){var u=a in e,f=a in r,h=e[a],y=A.isValidElement(h)&&!h.props.in;f&&(!u||y)?s[a]=A.cloneElement(c,{onExited:n.bind(null,c),in:!0,exit:Fo(c,"exit",t),enter:Fo(c,"enter",t)}):!f&&u&&!y?s[a]=A.cloneElement(c,{in:!1}):f&&u&&A.isValidElement(h)&&(s[a]=A.cloneElement(c,{onExited:n.bind(null,c),in:h.props.in,exit:Fo(c,"exit",t),enter:Fo(c,"enter",t)}))}}),s}var oO=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},sO={component:"div",childFactory:function(e){return e}},Km=function(t){eO(e,t);function e(r,s){var a;a=t.call(this,r,s)||this;var c=a.handleExited.bind(tO(a));return a.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},a}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(s,a){var c=a.children,u=a.handleExited,f=a.firstRender;return{children:f?rO(s,u):iO(s,c,u),firstRender:!1}},n.handleExited=function(s,a){var c=Ym(this.props.children);s.key in c||(s.props.onExited&&s.props.onExited(a),this.mounted&&this.setState(function(u){var f=Ju({},u.children);return delete f[s.key],{children:f}}))},n.render=function(){var s=this.props,a=s.component,c=s.childFactory,u=ZP(s,["component","childFactory"]),f=this.state.contextValue,h=oO(this.state.children).map(c);return delete u.appear,delete u.enter,delete u.exit,a===null?Nt.createElement(y1.Provider,{value:f},h):Nt.createElement(y1.Provider,{value:f},Nt.createElement(a,u,h))},e}(Nt.Component);Km.propTypes={};Km.defaultProps=sO;function aO(t){const{className:e,classes:n,pulsate:r=!1,rippleX:s,rippleY:a,rippleSize:c,in:u,onExited:f,timeout:h}=t,[y,g]=A.useState(!1),v=ot(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:c,height:c,top:-(c/2)+a,left:-(c/2)+s},C=ot(n.child,y&&n.childLeaving,r&&n.childPulsate);return!u&&!y&&g(!0),A.useEffect(()=>{if(!u&&f!=null){const w=setTimeout(f,h);return()=>{clearTimeout(w)}}},[f,u,h]),j.jsx("span",{className:v,style:_,children:j.jsx("span",{className:C})})}const rr=gn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Rh=550,lO=80,cO=Pl`
124
- 0% {
125
- transform: scale(0);
126
- opacity: 0.1;
127
- }
128
-
129
- 100% {
130
- transform: scale(1);
131
- opacity: 0.3;
132
- }
133
- `,uO=Pl`
134
- 0% {
135
- opacity: 1;
136
- }
137
-
138
- 100% {
139
- opacity: 0;
140
- }
141
- `,dO=Pl`
142
- 0% {
143
- transform: scale(1);
144
- }
145
-
146
- 50% {
147
- transform: scale(0.92);
148
- }
149
-
150
- 100% {
151
- transform: scale(1);
152
- }
153
- `,fO=Fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),pO=Fe(aO,{name:"MuiTouchRipple",slot:"Ripple"})`
154
- opacity: 0;
155
- position: absolute;
156
-
157
- &.${rr.rippleVisible} {
158
- opacity: 0.3;
159
- transform: scale(1);
160
- animation-name: ${cO};
161
- animation-duration: ${Rh}ms;
162
- animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
163
- }
164
-
165
- &.${rr.ripplePulsate} {
166
- animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
167
- }
168
-
169
- & .${rr.child} {
170
- opacity: 1;
171
- display: block;
172
- width: 100%;
173
- height: 100%;
174
- border-radius: 50%;
175
- background-color: currentColor;
176
- }
177
-
178
- & .${rr.childLeaving} {
179
- opacity: 0;
180
- animation-name: ${uO};
181
- animation-duration: ${Rh}ms;
182
- animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
183
- }
184
-
185
- & .${rr.childPulsate} {
186
- position: absolute;
187
- /* @noflip */
188
- left: 0px;
189
- top: 0;
190
- animation-name: ${dO};
191
- animation-duration: 2500ms;
192
- animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
193
- animation-iteration-count: infinite;
194
- animation-delay: 200ms;
195
- }
196
- `,hO=A.forwardRef(function(e,n){const r=an({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:c,...u}=r,[f,h]=A.useState([]),y=A.useRef(0),g=A.useRef(null);A.useEffect(()=>{g.current&&(g.current(),g.current=null)},[f]);const v=A.useRef(!1),_=fR(),C=A.useRef(null),w=A.useRef(null),I=A.useCallback(M=>{const{pulsate:E,rippleX:U,rippleY:O,rippleSize:V,cb:Y}=M;h(S=>[...S,j.jsx(pO,{classes:{ripple:ot(a.ripple,rr.ripple),rippleVisible:ot(a.rippleVisible,rr.rippleVisible),ripplePulsate:ot(a.ripplePulsate,rr.ripplePulsate),child:ot(a.child,rr.child),childLeaving:ot(a.childLeaving,rr.childLeaving),childPulsate:ot(a.childPulsate,rr.childPulsate)},timeout:Rh,pulsate:E,rippleX:U,rippleY:O,rippleSize:V},y.current)]),y.current+=1,g.current=Y},[a]),P=A.useCallback((M={},E={},U=()=>{})=>{const{pulsate:O=!1,center:V=s||E.pulsate,fakeElement:Y=!1}=E;if((M==null?void 0:M.type)==="mousedown"&&v.current){v.current=!1;return}(M==null?void 0:M.type)==="touchstart"&&(v.current=!0);const S=Y?null:w.current,F=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,X,le;if(V||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)H=Math.round(F.width/2),X=Math.round(F.height/2);else{const{clientX:ce,clientY:de}=M.touches&&M.touches.length>0?M.touches[0]:M;H=Math.round(ce-F.left),X=Math.round(de-F.top)}if(V)le=Math.sqrt((2*F.width**2+F.height**2)/3),le%2===0&&(le+=1);else{const ce=Math.max(Math.abs((S?S.clientWidth:0)-H),H)*2+2,de=Math.max(Math.abs((S?S.clientHeight:0)-X),X)*2+2;le=Math.sqrt(ce**2+de**2)}M!=null&&M.touches?C.current===null&&(C.current=()=>{I({pulsate:O,rippleX:H,rippleY:X,rippleSize:le,cb:U})},_.start(lO,()=>{C.current&&(C.current(),C.current=null)})):I({pulsate:O,rippleX:H,rippleY:X,rippleSize:le,cb:U})},[s,I,_]),D=A.useCallback(()=>{P({},{pulsate:!0})},[P]),B=A.useCallback((M,E)=>{if(_.clear(),(M==null?void 0:M.type)==="touchend"&&C.current){C.current(),C.current=null,_.start(0,()=>{B(M,E)});return}C.current=null,h(U=>U.length>0?U.slice(1):U),g.current=E},[_]);return A.useImperativeHandle(n,()=>({pulsate:D,start:P,stop:B}),[D,P,B]),j.jsx(fO,{className:ot(rr.root,a.root,c),ref:w,...u,children:j.jsx(Km,{component:null,exit:!0,children:f})})});function mO(t){return yn("MuiButtonBase",t)}const yO=gn("MuiButtonBase",["root","disabled","focusVisible"]),gO=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:s}=t,c=vn({root:["root",e&&"disabled",n&&"focusVisible"]},mO,s);return n&&r&&(c.root+=` ${r}`),c},vO=Fe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Q_=A.forwardRef(function(e,n){const r=an({props:e,name:"MuiButtonBase"}),{action:s,centerRipple:a=!1,children:c,className:u,component:f="button",disabled:h=!1,disableRipple:y=!1,disableTouchRipple:g=!1,focusRipple:v=!1,focusVisibleClassName:_,LinkComponent:C="a",onBlur:w,onClick:I,onContextMenu:P,onDragLeave:D,onFocus:B,onFocusVisible:M,onKeyDown:E,onKeyUp:U,onMouseDown:O,onMouseLeave:V,onMouseUp:Y,onTouchEnd:S,onTouchMove:F,onTouchStart:H,tabIndex:X=0,TouchRippleProps:le,touchRippleRef:ce,type:de,...fe}=r,J=A.useRef(null),te=qP(),ne=vl(te.ref,ce),[k,G]=A.useState(!1);h&&k&&G(!1),A.useImperativeHandle(s,()=>({focusVisible:()=>{G(!0),J.current.focus()}}),[]);const ue=te.shouldMount&&!y&&!h;A.useEffect(()=>{k&&v&&!y&&te.pulsate()},[y,v,k,te]);const ge=pi(te,"start",O,g),De=pi(te,"stop",P,g),xe=pi(te,"stop",D,g),$e=pi(te,"stop",Y,g),Ne=pi(te,"stop",me=>{k&&me.preventDefault(),V&&V(me)},g),ze=pi(te,"start",H,g),Lt=pi(te,"stop",S,g),dr=pi(te,"stop",F,g),fr=pi(te,"stop",me=>{Uv(me.target)||G(!1),w&&w(me)},!1),Nn=hu(me=>{J.current||(J.current=me.currentTarget),Uv(me.target)&&(G(!0),M&&M(me)),B&&B(me)}),qe=()=>{const me=J.current;return f&&f!=="button"&&!(me.tagName==="A"&&me.href)},Ut=hu(me=>{v&&!me.repeat&&k&&me.key===" "&&te.stop(me,()=>{te.start(me)}),me.target===me.currentTarget&&qe()&&me.key===" "&&me.preventDefault(),E&&E(me),me.target===me.currentTarget&&qe()&&me.key==="Enter"&&!h&&(me.preventDefault(),I&&I(me))}),pr=hu(me=>{v&&me.key===" "&&k&&!me.defaultPrevented&&te.stop(me,()=>{te.pulsate(me)}),U&&U(me),I&&me.target===me.currentTarget&&qe()&&me.key===" "&&!me.defaultPrevented&&I(me)});let Qt=f;Qt==="button"&&(fe.href||fe.to)&&(Qt=C);const st={};Qt==="button"?(st.type=de===void 0?"button":de,st.disabled=h):(!fe.href&&!fe.to&&(st.role="button"),h&&(st["aria-disabled"]=h));const Bn=vl(n,J),Xt={...r,centerRipple:a,component:f,disabled:h,disableRipple:y,disableTouchRipple:g,focusRipple:v,tabIndex:X,focusVisible:k},Kn=gO(Xt);return j.jsxs(vO,{as:Qt,className:ot(Kn.root,u),ownerState:Xt,onBlur:fr,onClick:I,onContextMenu:De,onFocus:Nn,onKeyDown:Ut,onKeyUp:pr,onMouseDown:ge,onMouseLeave:Ne,onMouseUp:$e,onDragLeave:xe,onTouchEnd:Lt,onTouchMove:dr,onTouchStart:ze,ref:Bn,tabIndex:h?-1:X,type:de,...st,...fe,children:[c,ue?j.jsx(hO,{ref:ne,center:a,...le}):null]})});function pi(t,e,n,r=!1){return hu(s=>(n&&n(s),r||t[e](s),!0))}function bO(t){return yn("MuiCircularProgress",t)}gn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qi=44,Eh=Pl`
197
- 0% {
198
- transform: rotate(0deg);
199
- }
200
-
201
- 100% {
202
- transform: rotate(360deg);
203
- }
204
- `,Ah=Pl`
205
- 0% {
206
- stroke-dasharray: 1px, 200px;
207
- stroke-dashoffset: 0;
208
- }
209
-
210
- 50% {
211
- stroke-dasharray: 100px, 200px;
212
- stroke-dashoffset: -15px;
213
- }
214
-
215
- 100% {
216
- stroke-dasharray: 1px, 200px;
217
- stroke-dashoffset: -126px;
218
- }
219
- `,SO=typeof Eh!="string"?Im`
220
- animation: ${Eh} 1.4s linear infinite;
221
- `:null,_O=typeof Ah!="string"?Im`
222
- animation: ${Ah} 1.4s ease-in-out infinite;
223
- `:null,wO=t=>{const{classes:e,variant:n,color:r,disableShrink:s}=t,a={root:["root",n,`color${Oe(r)}`],svg:["svg"],circle:["circle",`circle${Oe(n)}`,s&&"circleDisableShrink"]};return vn(a,bO,e)},CO=Fe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${Oe(n.color)}`]]}})(Mn(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:SO||{animation:`${Eh} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Ti()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),xO=Fe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),IO=Fe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${Oe(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(Mn(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:_O||{animation:`${Ah} 1.4s ease-in-out infinite`}}]}))),Qm=A.forwardRef(function(e,n){const r=an({props:e,name:"MuiCircularProgress"}),{className:s,color:a="primary",disableShrink:c=!1,size:u=40,style:f,thickness:h=3.6,value:y=0,variant:g="indeterminate",...v}=r,_={...r,color:a,disableShrink:c,size:u,thickness:h,value:y,variant:g},C=wO(_),w={},I={},P={};if(g==="determinate"){const D=2*Math.PI*((qi-h)/2);w.strokeDasharray=D.toFixed(3),P["aria-valuenow"]=Math.round(y),w.strokeDashoffset=`${((100-y)/100*D).toFixed(3)}px`,I.transform="rotate(-90deg)"}return j.jsx(CO,{className:ot(C.root,s),style:{width:u,height:u,...I,...f},ownerState:_,ref:n,role:"progressbar",...P,...v,children:j.jsx(xO,{className:C.svg,ownerState:_,viewBox:`${qi/2} ${qi/2} ${qi} ${qi}`,children:j.jsx(IO,{className:C.circle,style:w,ownerState:_,cx:qi,cy:qi,r:(qi-h)/2,fill:"none",strokeWidth:h})})})});function TO(t){return yn("MuiIconButton",t)}const g1=gn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),kO=t=>{const{classes:e,disabled:n,color:r,edge:s,size:a,loading:c}=t,u={root:["root",c&&"loading",n&&"disabled",r!=="default"&&`color${Oe(r)}`,s&&`edge${Oe(s)}`,`size${Oe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return vn(u,TO,e)},RO=Fe(Q_,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.loading&&e.loading,n.color!=="default"&&e[`color${Oe(n.color)}`],n.edge&&e[`edge${Oe(n.edge)}`],e[`size${Oe(n.size)}`]]}})(Mn(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Gr(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Mn(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Ti()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Ti()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Gr((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${g1.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${g1.loading}`]:{color:"transparent"}}))),EO=Fe("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),AO=A.forwardRef(function(e,n){const r=an({props:e,name:"MuiIconButton"}),{edge:s=!1,children:a,className:c,color:u="default",disabled:f=!1,disableFocusRipple:h=!1,size:y="medium",id:g,loading:v=null,loadingIndicator:_,...C}=r,w=i_(g),I=_??j.jsx(Qm,{"aria-labelledby":w,color:"inherit",size:16}),P={...r,edge:s,color:u,disabled:f,disableFocusRipple:h,loading:v,loadingIndicator:I,size:y},D=kO(P);return j.jsxs(RO,{id:v?w:g,className:ot(D.root,c),centerRipple:!0,focusRipple:!h,disabled:f||v,ref:n,...C,ownerState:P,children:[typeof v=="boolean"&&j.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:j.jsx(EO,{className:D.loadingIndicator,ownerState:P,children:v&&I})}),a]})}),PO=mo(j.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),OO=mo(j.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),MO=mo(j.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),DO=mo(j.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),NO=mo(j.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),BO=t=>{const{variant:e,color:n,severity:r,classes:s}=t,a={root:["root",`color${Oe(n||r)}`,`${e}${Oe(n||r)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return vn(a,YP,s)},LO=Fe(Rd,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Oe(n.color||n.severity)}`]]}})(Mn(({theme:t})=>{const e=t.palette.mode==="light"?yl:gl,n=t.palette.mode==="light"?gl:yl;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Ti(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:n(t.palette[r].light,.9),[`& .${m1.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Ti(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${m1.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Ti(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),FO=Fe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),$O=Fe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),jO=Fe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),v1={success:j.jsx(PO,{fontSize:"inherit"}),warning:j.jsx(OO,{fontSize:"inherit"}),error:j.jsx(MO,{fontSize:"inherit"}),info:j.jsx(DO,{fontSize:"inherit"})},X_=A.forwardRef(function(e,n){const r=an({props:e,name:"MuiAlert"}),{action:s,children:a,className:c,closeText:u="Close",color:f,components:h={},componentsProps:y={},icon:g,iconMapping:v=v1,onClose:_,role:C="alert",severity:w="success",slotProps:I={},slots:P={},variant:D="standard",...B}=r,M={...r,color:f,severity:w,variant:D,colorSeverity:f||w},E=BO(M),U={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...P},slotProps:{...y,...I}},[O,V]=Is("root",{ref:n,shouldForwardComponentProp:!0,className:ot(E.root,c),elementType:LO,externalForwardedProps:{...U,...B},ownerState:M,additionalProps:{role:C,elevation:0}}),[Y,S]=Is("icon",{className:E.icon,elementType:FO,externalForwardedProps:U,ownerState:M}),[F,H]=Is("message",{className:E.message,elementType:$O,externalForwardedProps:U,ownerState:M}),[X,le]=Is("action",{className:E.action,elementType:jO,externalForwardedProps:U,ownerState:M}),[ce,de]=Is("closeButton",{elementType:AO,externalForwardedProps:U,ownerState:M}),[fe,J]=Is("closeIcon",{elementType:NO,externalForwardedProps:U,ownerState:M});return j.jsxs(O,{...V,children:[g!==!1?j.jsx(Y,{...S,children:g||v[w]||v1[w]}):null,j.jsx(F,{...H,children:a}),s!=null?j.jsx(X,{...le,children:s}):null,s==null&&_?j.jsx(X,{...le,children:j.jsx(ce,{size:"small","aria-label":u,title:u,color:"inherit",onClick:_,...de,children:j.jsx(fe,{fontSize:"small",...J})})}):null]})});function zO(t){return yn("MuiButton",t)}const Po=gn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),UO=A.createContext({}),VO=A.createContext(void 0),WO=t=>{const{color:e,disableElevation:n,fullWidth:r,size:s,variant:a,loading:c,loadingPosition:u,classes:f}=t,h={root:["root",c&&"loading",a,`${a}${Oe(e)}`,`size${Oe(s)}`,`${a}Size${Oe(s)}`,`color${Oe(e)}`,n&&"disableElevation",r&&"fullWidth",c&&`loadingPosition${Oe(u)}`],startIcon:["icon","startIcon",`iconSize${Oe(s)}`],endIcon:["icon","endIcon",`iconSize${Oe(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},y=vn(h,zO,f);return{...f,...y}},q_=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],HO=Fe(Q_,{shouldForwardProp:t=>Dl(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Oe(n.color)}`],e[`size${Oe(n.size)}`],e[`${n.variant}Size${Oe(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,n.loading&&e.loading]}})(Mn(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Po.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Po.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Po.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Po.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Ti()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[r].mainChannel} / 0.5)`:Gr(t.palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Gr(t.palette[r].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Gr(t.palette[r].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Gr(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Gr(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Po.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Po.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Po.loading}`]:{color:"transparent"}}}]}})),GO=Fe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,n.loading&&e.startIconLoadingStart,e[`iconSize${Oe(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...q_]})),YO=Fe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,n.loading&&e.endIconLoadingEnd,e[`iconSize${Oe(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...q_]})),KO=Fe("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),b1=Fe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),J_=A.forwardRef(function(e,n){const r=A.useContext(UO),s=A.useContext(VO),a=ml(r,e),c=an({props:a,name:"MuiButton"}),{children:u,color:f="primary",component:h="button",className:y,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:_=!1,endIcon:C,focusVisibleClassName:w,fullWidth:I=!1,id:P,loading:D=null,loadingIndicator:B,loadingPosition:M="center",size:E="medium",startIcon:U,type:O,variant:V="text",...Y}=c,S=i_(P),F=B??j.jsx(Qm,{"aria-labelledby":S,color:"inherit",size:16}),H={...c,color:f,component:h,disabled:g,disableElevation:v,disableFocusRipple:_,fullWidth:I,loading:D,loadingIndicator:F,loadingPosition:M,size:E,type:O,variant:V},X=WO(H),le=(U||D&&M==="start")&&j.jsx(GO,{className:X.startIcon,ownerState:H,children:U||j.jsx(b1,{className:X.loadingIconPlaceholder,ownerState:H})}),ce=(C||D&&M==="end")&&j.jsx(YO,{className:X.endIcon,ownerState:H,children:C||j.jsx(b1,{className:X.loadingIconPlaceholder,ownerState:H})}),de=s||"",fe=typeof D=="boolean"?j.jsx("span",{className:X.loadingWrapper,style:{display:"contents"},children:D&&j.jsx(KO,{className:X.loadingIndicator,ownerState:H,children:F})}):null;return j.jsxs(HO,{ownerState:H,className:ot(r.className,X.root,y,de),component:h,disabled:g||D,focusRipple:!_,focusVisibleClassName:ot(X.focusVisible,w),ref:n,type:O,id:D?S:P,...Y,classes:X,children:[le,M!=="end"&&fe,u,M==="end"&&fe,ce]})}),Xm=YR({createStyledComponent:Fe("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>an({props:t,name:"MuiStack"})});function Z_(t){return yn("MuiNativeSelect",t)}const qm=gn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),QO=t=>{const{classes:e,variant:n,disabled:r,multiple:s,open:a,error:c}=t,u={select:["select",n,r&&"disabled",s&&"multiple",c&&"error"],icon:["icon",`icon${Oe(n)}`,a&&"iconOpen",r&&"disabled"]};return vn(u,Z_,e)},XO=Fe("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${qm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),qO=Fe(XO,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dl,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${qm.multiple}`]:e.multiple}]}})({}),JO=Fe("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${qm.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ZO=Fe(JO,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Oe(n.variant)}`],n.open&&e.iconOpen]}})({}),e5=A.forwardRef(function(e,n){const{className:r,disabled:s,error:a,IconComponent:c,inputRef:u,variant:f="standard",...h}=e,y={...e,disabled:s,variant:f,error:a},g=QO(y);return j.jsxs(A.Fragment,{children:[j.jsx(qO,{ownerState:y,className:ot(g.select,r),disabled:s,ref:u||n,...h}),e.multiple?null:j.jsx(ZO,{as:c,ownerState:y,className:g.icon})]})});function Ed({props:t,states:e,muiFormControl:n}){return e.reduce((r,s)=>(r[s]=t[s],n&&typeof t[s]>"u"&&(r[s]=n[s]),r),{})}const Jm=A.createContext(void 0);function Ad(){return A.useContext(Jm)}const t5=mo(j.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function nu(t){return parseInt(t,10)||0}const n5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function r5(t){for(const e in t)return!1;return!0}function i5(t){return r5(t)||t.outerHeightStyle===0&&!t.overflowing}const o5=A.forwardRef(function(e,n){const{onChange:r,maxRows:s,minRows:a=1,style:c,value:u,...f}=e,{current:h}=A.useRef(u!=null),y=A.useRef(null),g=vl(n,y),v=A.useRef(null),_=A.useRef(null),C=A.useCallback(()=>{const D=y.current,B=_.current;if(!D||!B)return;const E=Fv(D).getComputedStyle(D);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};B.style.width=E.width,B.value=D.value||e.placeholder||"x",B.value.slice(-1)===`
224
- `&&(B.value+=" ");const U=E.boxSizing,O=nu(E.paddingBottom)+nu(E.paddingTop),V=nu(E.borderBottomWidth)+nu(E.borderTopWidth),Y=B.scrollHeight;B.value="x";const S=B.scrollHeight;let F=Y;a&&(F=Math.max(Number(a)*S,F)),s&&(F=Math.min(Number(s)*S,F)),F=Math.max(F,S);const H=F+(U==="border-box"?O+V:0),X=Math.abs(F-Y)<=1;return{outerHeightStyle:H,overflowing:X}},[s,a,e.placeholder]),w=A.useCallback(()=>{const D=y.current,B=C();if(!D||!B||i5(B))return;const M=B.outerHeightStyle;v.current!==M&&(v.current=M,D.style.height=`${M}px`),D.style.overflow=B.overflowing?"hidden":""},[C]),I=A.useRef(-1);Qs(()=>{const D=oR(()=>w()),B=y==null?void 0:y.current;if(!B)return;const M=Fv(B);M.addEventListener("resize",D);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{E.unobserve(B),cancelAnimationFrame(I.current),w(),I.current=requestAnimationFrame(()=>{E.observe(B)})}),E.observe(B)),()=>{D.clear(),cancelAnimationFrame(I.current),M.removeEventListener("resize",D),E&&E.disconnect()}},[C,w]),Qs(()=>{w()});const P=D=>{h||w(),r&&r(D)};return j.jsxs(A.Fragment,{children:[j.jsx("textarea",{value:u,onChange:P,ref:g,rows:a,style:c,...f}),j.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:_,tabIndex:-1,style:{...n5.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function S1(t){return typeof t=="string"}function _1(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Ph(t,e=!1){return t&&(_1(t.value)&&t.value!==""||e&&_1(t.defaultValue)&&t.defaultValue!=="")}function s5(t){return t.startAdornment}function a5(t){return yn("MuiInputBase",t)}const od=gn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var w1;const e2=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${Oe(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},t2=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},l5=t=>{const{classes:e,color:n,disabled:r,error:s,endAdornment:a,focused:c,formControl:u,fullWidth:f,hiddenLabel:h,multiline:y,readOnly:g,size:v,startAdornment:_,type:C}=t,w={root:["root",`color${Oe(n)}`,r&&"disabled",s&&"error",f&&"fullWidth",c&&"focused",u&&"formControl",v&&v!=="medium"&&`size${Oe(v)}`,y&&"multiline",_&&"adornedStart",a&&"adornedEnd",h&&"hiddenLabel",g&&"readOnly"],input:["input",r&&"disabled",C==="search"&&"inputTypeSearch",y&&"inputMultiline",v==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",_&&"inputAdornedStart",a&&"inputAdornedEnd",g&&"readOnly"]};return vn(w,a5,e)},n2=Fe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:e2})(Mn(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${od.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:n})=>e.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),r2=Fe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:t2})(Mn(({theme:t})=>{const e=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},r={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${od.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${od.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),C1=Gm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),c5=A.forwardRef(function(e,n){const r=an({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:c,className:u,color:f,components:h={},componentsProps:y={},defaultValue:g,disabled:v,disableInjectingGlobalStyles:_,endAdornment:C,error:w,fullWidth:I=!1,id:P,inputComponent:D="input",inputProps:B={},inputRef:M,margin:E,maxRows:U,minRows:O,multiline:V=!1,name:Y,onBlur:S,onChange:F,onClick:H,onFocus:X,onKeyDown:le,onKeyUp:ce,placeholder:de,readOnly:fe,renderSuffix:J,rows:te,size:ne,slotProps:k={},slots:G={},startAdornment:ue,type:ge="text",value:De,...xe}=r,$e=B.value!=null?B.value:De,{current:Ne}=A.useRef($e!=null),ze=A.useRef(),Lt=A.useCallback(He=>{},[]),dr=vl(ze,M,B.ref,Lt),[fr,Nn]=A.useState(!1),qe=Ad(),Ut=Ed({props:r,muiFormControl:qe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ut.focused=qe?qe.focused:fr,A.useEffect(()=>{!qe&&v&&fr&&(Nn(!1),S&&S())},[qe,v,fr,S]);const pr=qe&&qe.onFilled,Qt=qe&&qe.onEmpty,st=A.useCallback(He=>{Ph(He)?pr&&pr():Qt&&Qt()},[pr,Qt]);Qs(()=>{Ne&&st({value:$e})},[$e,st,Ne]);const Bn=He=>{X&&X(He),B.onFocus&&B.onFocus(He),qe&&qe.onFocus?qe.onFocus(He):Nn(!0)},Xt=He=>{S&&S(He),B.onBlur&&B.onBlur(He),qe&&qe.onBlur?qe.onBlur(He):Nn(!1)},Kn=(He,...qt)=>{if(!Ne){const cn=He.target||ze.current;if(cn==null)throw new Error(so(1));st({value:cn.value})}B.onChange&&B.onChange(He,...qt),F&&F(He,...qt)};A.useEffect(()=>{st(ze.current)},[]);const me=He=>{ze.current&&He.currentTarget===He.target&&ze.current.focus(),H&&H(He)};let ei=D,ln=B;V&&ei==="input"&&(te?ln={type:void 0,minRows:te,maxRows:te,...ln}:ln={type:void 0,maxRows:U,minRows:O,...ln},ei=o5);const yo=He=>{st(He.animationName==="mui-auto-fill-cancel"?ze.current:{value:"x"})};A.useEffect(()=>{qe&&qe.setAdornedStart(!!ue)},[qe,ue]);const ti={...r,color:Ut.color||"primary",disabled:Ut.disabled,endAdornment:C,error:Ut.error,focused:Ut.focused,formControl:qe,fullWidth:I,hiddenLabel:Ut.hiddenLabel,multiline:V,size:Ut.size,startAdornment:ue,type:ge},ni=l5(ti),vt=G.root||h.Root||n2,kt=k.root||y.root||{},Ct=G.input||h.Input||r2;return ln={...ln,...k.input??y.input},j.jsxs(A.Fragment,{children:[!_&&typeof C1=="function"&&(w1||(w1=j.jsx(C1,{}))),j.jsxs(vt,{...kt,ref:n,onClick:me,...xe,...!S1(vt)&&{ownerState:{...ti,...kt.ownerState}},className:ot(ni.root,kt.className,u,fe&&"MuiInputBase-readOnly"),children:[ue,j.jsx(Jm.Provider,{value:null,children:j.jsx(Ct,{"aria-invalid":Ut.error,"aria-describedby":s,autoComplete:a,autoFocus:c,defaultValue:g,disabled:Ut.disabled,id:P,onAnimationStart:yo,name:Y,placeholder:de,readOnly:fe,required:Ut.required,rows:te,value:$e,onKeyDown:le,onKeyUp:ce,type:ge,...ln,...!S1(Ct)&&{as:ei,ownerState:{...ti,...ln.ownerState}},ref:dr,className:ot(ni.input,ln.className,fe&&"MuiInputBase-readOnly"),onBlur:Xt,onChange:Kn,onFocus:Bn})}),C,J?J({...Ut,startAdornment:ue}):null]})]})});function u5(t){return yn("MuiInput",t)}const Qa={...od,...gn("MuiInput",["root","underline","input"])},d5=t=>{const{classes:e,disableUnderline:n}=t,s=vn({root:["root",!n&&"underline"],input:["input"]},u5,e);return{...e,...s}},f5=Fe(n2,{shouldForwardProp:t=>Dl(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...e2(t,e),!n.disableUnderline&&e.underline]}})(Mn(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qa.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qa.disabled}, .${Qa.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Qa.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Ti()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}}))]}})),p5=Fe(r2,{name:"MuiInput",slot:"Input",overridesResolver:t2})({}),i2=A.forwardRef(function(e,n){const r=an({props:e,name:"MuiInput"}),{disableUnderline:s=!1,components:a={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:h=!1,slotProps:y,slots:g={},type:v="text",..._}=r,C=d5(r),I={root:{ownerState:{disableUnderline:s}}},P=y??c?sn(y??c,I):I,D=g.root??a.Root??f5,B=g.input??a.Input??p5;return j.jsx(c5,{slots:{root:D,input:B},slotProps:P,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:v,..._,classes:C})});i2.muiName="Input";const h5=t=>{const{classes:e}=t;return vn({root:["root"]},Z_,e)},m5=j.jsx(i2,{}),Oh=A.forwardRef(function(e,n){const r=an({name:"MuiNativeSelect",props:e}),{className:s,children:a,classes:c={},IconComponent:u=t5,input:f=m5,inputProps:h,variant:y,...g}=r,v=Ad(),_=Ed({props:r,muiFormControl:v,states:["variant"]}),C={...r,classes:c},w=h5(C),{root:I,...P}=c;return j.jsx(A.Fragment,{children:A.cloneElement(f,{inputComponent:e5,inputProps:{children:a,classes:P,IconComponent:u,variant:_.variant,type:void 0,...h,...f?f.props.inputProps:{}},ref:n,...g,className:ot(w.root,f.props.className,s)})})});Oh.muiName="Select";function y5(t){return yn("MuiFormLabel",t)}const il=gn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),g5=t=>{const{classes:e,color:n,focused:r,disabled:s,error:a,filled:c,required:u}=t,f={root:["root",`color${Oe(n)}`,s&&"disabled",a&&"error",c&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",a&&"error"]};return vn(f,y5,e)},v5=Fe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color==="secondary"&&e.colorSecondary,n.filled&&e.filled]}})(Mn(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Ti()).map(([e])=>({props:{color:e},style:{[`&.${il.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${il.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${il.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),b5=Fe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Mn(({theme:t})=>({[`&.${il.error}`]:{color:(t.vars||t).palette.error.main}}))),S5=A.forwardRef(function(e,n){const r=an({props:e,name:"MuiFormLabel"}),{children:s,className:a,color:c,component:u="label",disabled:f,error:h,filled:y,focused:g,required:v,..._}=r,C=Ad(),w=Ed({props:r,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),I={...r,color:w.color||"primary",component:u,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},P=g5(I);return j.jsxs(v5,{as:u,ownerState:I,className:ot(P.root,a),ref:n,..._,children:[s,w.required&&j.jsxs(b5,{ownerState:I,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]})});function _5(t){return yn("MuiInputLabel",t)}gn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const w5=t=>{const{classes:e,formControl:n,size:r,shrink:s,disableAnimation:a,variant:c,required:u}=t,f={root:["root",n&&"formControl",!a&&"animated",s&&"shrink",r&&r!=="normal"&&`size${Oe(r)}`,c],asterisk:[u&&"asterisk"]},h=vn(f,_5,e);return{...e,...h}},C5=Fe(S5,{shouldForwardProp:t=>Dl(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${il.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(Mn(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:n,size:r})=>e==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),x1=A.forwardRef(function(e,n){const r=an({name:"MuiInputLabel",props:e}),{disableAnimation:s=!1,margin:a,shrink:c,variant:u,className:f,...h}=r,y=Ad();let g=c;typeof g>"u"&&y&&(g=y.filled||y.focused||y.adornedStart);const v=Ed({props:r,muiFormControl:y,states:["size","variant","required","focused"]}),_={...r,disableAnimation:s,formControl:y,shrink:g,size:v.size,variant:v.variant,required:v.required,focused:v.focused},C=w5(_);return j.jsx(C5,{"data-shrink":g,ref:n,className:ot(C.root,f),...h,ownerState:_,classes:C})});function x5(t){return yn("MuiFormControl",t)}gn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const I5=t=>{const{classes:e,margin:n,fullWidth:r}=t,s={root:["root",n!=="none"&&`margin${Oe(n)}`,r&&"fullWidth"]};return vn(s,x5,e)},T5=Fe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`margin${Oe(n.margin)}`],n.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),I1=A.forwardRef(function(e,n){const r=an({props:e,name:"MuiFormControl"}),{children:s,className:a,color:c="primary",component:u="div",disabled:f=!1,error:h=!1,focused:y,fullWidth:g=!1,hiddenLabel:v=!1,margin:_="none",required:C=!1,size:w="medium",variant:I="outlined",...P}=r,D={...r,color:c,component:u,disabled:f,error:h,fullWidth:g,hiddenLabel:v,margin:_,required:C,size:w,variant:I},B=I5(D),[M,E]=A.useState(()=>{let ce=!1;return s&&A.Children.forEach(s,de=>{if(!Fp(de,["Input","Select"]))return;const fe=Fp(de,["Select"])?de.props.input:de;fe&&s5(fe.props)&&(ce=!0)}),ce}),[U,O]=A.useState(()=>{let ce=!1;return s&&A.Children.forEach(s,de=>{Fp(de,["Input","Select"])&&(Ph(de.props,!0)||Ph(de.props.inputProps,!0))&&(ce=!0)}),ce}),[V,Y]=A.useState(!1);f&&V&&Y(!1);const S=y!==void 0&&!f?y:V;let F;A.useRef(!1);const H=A.useCallback(()=>{O(!0)},[]),X=A.useCallback(()=>{O(!1)},[]),le=A.useMemo(()=>({adornedStart:M,setAdornedStart:E,color:c,disabled:f,error:h,filled:U,focused:S,fullWidth:g,hiddenLabel:v,size:w,onBlur:()=>{Y(!1)},onFocus:()=>{Y(!0)},onEmpty:X,onFilled:H,registerEffect:F,required:C,variant:I}),[M,c,f,h,U,S,g,v,F,X,H,C,w,I]);return j.jsx(Jm.Provider,{value:le,children:j.jsx(T5,{as:u,ownerState:D,className:ot(B.root,a),ref:n,...P,children:s})})}),k5=n_({themeId:Cr});function R5(t){const e=y_(),n=k5(e.breakpoints.down("sm"));return A.useEffect(()=>{hn.setFrameHeight()},[n]),j.jsx(Xm,{direction:n?"column":"row",spacing:2,children:t.children})}const E5=Fe($s)(({theme:t})=>({position:"relative",[t.breakpoints.down("sm")]:{width:"100%"},width:t.spacing(24),height:t.spacing(16),maxHeight:t.spacing(16),display:"flex",justifyContent:"center",alignItems:"center"})),A5=E5,P5=Fe(Rd)(({theme:t})=>({display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",padding:t.spacing(2),boxSizing:"border-box"})),Nl=P5,Bl=t=>{const e=A.useContext(K_);return e==null?null:e[t]};function O5(){return j.jsx(Nl,{children:Bl("media_api_not_available")||"Media API not available"})}function M5(){return j.jsx(Nl,{children:Bl("device_ask_permission")||"Please allow the app to use your media devices"})}function D5(t){return j.jsxs(Nl,{children:[Bl("device_access_denied")||"Access denied"," (",t.error.message,")"]})}function N5(t){return j.jsxs(Nl,{children:[Bl("device_not_available")||"Device not available"," (",t.error.message,")"]})}const B5=mo(j.jsx("path",{d:"m21 6.5-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18zM3.27 2 2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73z"}),"VideocamOff"),L5=Fe(Rd)({display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"});function F5(){return j.jsx(L5,{children:j.jsx(B5,{fontSize:"large"})})}const $5=Nt.memo(F5),j5=Fe($s,{shouldForwardProp:t=>t!=="$transparent"})(({theme:t,$transparent:e})=>({margin:0,padding:0,position:"relative","&:before":{position:"absolute",content:'""',width:"100%",height:"100%",opacity:e?0:1,backgroundColor:t.palette.background.default,transition:"opacity 0.3s"}}));function z5(t){const[e,n]=A.useState(!1);return A.useEffect(()=>{const r=setTimeout(()=>{n(!0)},t.time);return()=>clearTimeout(r)},[t.time]),j.jsx(j5,{$transparent:e,children:t.children})}const U5=Fe("video")({maxWidth:"100%",maxHeight:"100%"}),V5=U5;function Mh(t){t.getVideoTracks().forEach(e=>e.stop()),t.getAudioTracks().forEach(e=>e.stop())}function W5(t){const e=A.useRef(null);return A.useEffect(()=>{if(t.deviceId==null)return;let n=null,r=!1;return navigator.mediaDevices.getUserMedia({video:{deviceId:t.deviceId},audio:!1}).then(s=>{if(n=s,r){Mh(n);return}e.current&&(e.current.srcObject=n)}),()=>{r=!0,n&&Mh(n)}},[t.deviceId]),j.jsx(V5,{ref:e,autoPlay:!0,muted:!0})}const H5=Nt.memo(W5);function T1(t,e){const n=t.map(r=>r.deviceId);if(e&&n.includes(e))return e;if(n.length>0)return n[0]}const G5=(t,e)=>{switch(e.type){case"SET_UNAVAILABLE":return{unavailable:!0,videoInputs:[],audioInputs:[],audioOutputs:[],selectedVideoInputDeviceId:void 0,selectedAudioInputDeviceId:void 0};case"UPDATE_DEVICES":{const n=e.devices,r=n.filter(f=>f.kind==="videoinput"),s=n.filter(f=>f.kind==="audioinput"),a=n.filter(f=>f.kind==="audiooutput"),c=T1(r,t.selectedVideoInputDeviceId),u=T1(s,t.selectedAudioInputDeviceId);return{...t,videoInputs:r,audioInputs:s,audioOutputs:a,selectedVideoInputDeviceId:c,selectedAudioInputDeviceId:u}}case"UPDATE_SELECTED_DEVICE_ID":return{...t,...e.payload}}};function Y5(t){const{video:e,audio:n,defaultVideoDeviceId:r,defaultAudioDeviceId:s,onSelect:a}=t,[c,u]=A.useState("WAITING"),[{unavailable:f,videoInputs:h,selectedVideoInputDeviceId:y,audioInputs:g,selectedAudioInputDeviceId:v},_]=A.useReducer(G5,{unavailable:!1,videoInputs:[],audioInputs:[],audioOutputs:[],selectedVideoInputDeviceId:r,selectedAudioInputDeviceId:s}),C=A.useCallback(()=>{var D;if(typeof((D=navigator==null?void 0:navigator.mediaDevices)==null?void 0:D.enumerateDevices)!="function"){_({type:"SET_UNAVAILABLE"});return}return navigator.mediaDevices.enumerateDevices().then(B=>{_({type:"UPDATE_DEVICES",devices:B})})},[]),w=A.useRef({video:r,audio:s});w.current={video:r,audio:s},A.useEffect(()=>{var M;if(typeof((M=navigator==null?void 0:navigator.mediaDevices)==null?void 0:M.getUserMedia)!="function"){_({type:"SET_UNAVAILABLE"});return}u("WAITING");const{video:D,audio:B}=w.current;navigator.mediaDevices.getUserMedia({video:e&&D?{deviceId:D}:e,audio:n&&B?{deviceId:B}:n}).then(async E=>{Mh(E),await C(),u("ALLOWED")}).catch(E=>{u(E)})},[e,n,C]),A.useEffect(()=>{const D=()=>C();return navigator.mediaDevices.ondevicechange=D,()=>{navigator.mediaDevices.ondevicechange===D&&(navigator.mediaDevices.ondevicechange=null)}},[C]);const I=A.useCallback(D=>{_({type:"UPDATE_SELECTED_DEVICE_ID",payload:{selectedVideoInputDeviceId:D.target.value}})},[]),P=A.useCallback(D=>{_({type:"UPDATE_SELECTED_DEVICE_ID",payload:{selectedAudioInputDeviceId:D.target.value}})},[]);if(A.useEffect(()=>{const D=e?h.find(M=>M.deviceId===y):null,B=n?g.find(M=>M.deviceId===v):null;a({video:D==null?void 0:D.deviceId,audio:B==null?void 0:B.deviceId})},[e,n,a,h,g,y,v]),A.useEffect(()=>{setTimeout(()=>hn.setFrameHeight())}),f)return j.jsx(O5,{});if(c==="WAITING")return j.jsx(z5,{time:1e3,children:j.jsx(M5,{})});if(c instanceof Error){const D=c;return D instanceof DOMException&&(D.name==="NotReadableError"||D.name==="NotFoundError")?j.jsx(N5,{error:D}):D instanceof DOMException&&D.name==="NotAllowedError"?j.jsx(D5,{error:D}):j.jsx(Nl,{children:j.jsxs(X_,{severity:"error",children:[D.name,": ",D.message]})})}return j.jsxs(R5,{children:[j.jsx(A5,{children:e&&y?j.jsx(H5,{deviceId:y}):j.jsx($5,{})}),j.jsxs(Xm,{spacing:2,justifyContent:"center",children:[e&&y&&j.jsxs(I1,{fullWidth:!0,children:[j.jsx(x1,{htmlFor:"device-select-video-input",children:"Video Input"}),j.jsx(Oh,{inputProps:{name:"video-input",id:"device-select-video-input"},value:y,onChange:I,children:h.map(D=>j.jsx("option",{value:D.deviceId,children:D.label},D.deviceId))})]}),n&&v&&j.jsxs(I1,{fullWidth:!0,children:[j.jsx(x1,{htmlFor:"device-select-audio-input",children:"Audio Input"}),j.jsx(Oh,{inputProps:{name:"audio-input",id:"device-select-audio-input"},value:v,onChange:P,children:g.map(D=>j.jsx("option",{value:D.deviceId,children:D.label},D.deviceId))})]})]})]})}function K5({onClose:t,...e}){return j.jsxs(Xm,{spacing:2,children:[j.jsx(Y5,{...e}),j.jsx($s,{children:j.jsx(J_,{variant:"contained",color:"primary",onClick:t,children:"Done"})})]})}function Q5(t){var s,a,c,u,f,h,y,g,v,_,C,w,I,P,D,B,M,E,U,O,V,Y,S,F,H,X,le;A.useEffect(()=>{hn.setFrameHeight()});const e=t.stream.getVideoTracks().length>0,n=A.useCallback(ce=>{ce&&(ce.srcObject=t.stream)},[t.stream]),r=A.useCallback(()=>hn.setFrameHeight(),[]);if(e){const ce={hidden:(s=t.userDefinedVideoAttrs)==null?void 0:s.hidden,style:(a=t.userDefinedVideoAttrs)==null?void 0:a.style,autoPlay:(c=t.userDefinedVideoAttrs)==null?void 0:c.autoPlay,controls:(u=t.userDefinedVideoAttrs)==null?void 0:u.controls,controlsList:(f=t.userDefinedVideoAttrs)==null?void 0:f.controlsList,crossOrigin:(h=t.userDefinedVideoAttrs)==null?void 0:h.crossOrigin,loop:(y=t.userDefinedVideoAttrs)==null?void 0:y.loop,mediaGroup:(g=t.userDefinedVideoAttrs)==null?void 0:g.mediaGroup,muted:(v=t.userDefinedVideoAttrs)==null?void 0:v.muted,playsInline:(_=t.userDefinedVideoAttrs)==null?void 0:_.playsInline,preload:(C=t.userDefinedVideoAttrs)==null?void 0:C.preload,height:(w=t.userDefinedVideoAttrs)==null?void 0:w.height,poster:(I=t.userDefinedVideoAttrs)==null?void 0:I.poster,width:(P=t.userDefinedVideoAttrs)==null?void 0:P.width,disablePictureInPicture:(D=t.userDefinedVideoAttrs)==null?void 0:D.disablePictureInPicture,disableRemotePlayback:(B=t.userDefinedVideoAttrs)==null?void 0:B.disableRemotePlayback};return j.jsx("video",{...ce,ref:n,onCanPlay:r})}else{const ce={hidden:(M=t.userDefinedAudioAttrs)==null?void 0:M.hidden,style:(E=t.userDefinedAudioAttrs)==null?void 0:E.style,autoPlay:(U=t.userDefinedAudioAttrs)==null?void 0:U.autoPlay,controls:(O=t.userDefinedAudioAttrs)==null?void 0:O.controls,controlsList:(V=t.userDefinedAudioAttrs)==null?void 0:V.controlsList,crossOrigin:(Y=t.userDefinedAudioAttrs)==null?void 0:Y.crossOrigin,loop:(S=t.userDefinedAudioAttrs)==null?void 0:S.loop,mediaGroup:(F=t.userDefinedAudioAttrs)==null?void 0:F.mediaGroup,muted:(H=t.userDefinedAudioAttrs)==null?void 0:H.muted,playsInline:(X=t.userDefinedAudioAttrs)==null?void 0:X.playsInline,preload:(le=t.userDefinedAudioAttrs)==null?void 0:le.preload};return j.jsx("audio",{ref:n,...ce})}}const X5=Nt.memo(Q5),q5=mo(j.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 13H3V5h18z"}),"VideoLabel"),J5=Fe(Rd)(({theme:t})=>({padding:t.spacing(4),display:"flex",justifyContent:"center",alignItems:"center",width:"100%"}));function Z5(t){return A.useEffect(()=>{hn.setFrameHeight()}),j.jsx(J5,{elevation:0,children:t.loading?j.jsx(Qm,{}):j.jsx(q5,{fontSize:"large"})})}const e4=Nt.memo(Z5);function t4(t,e,n){const r=t||{};return e&&(r.video===!0?r.video={deviceId:e}:(typeof r.video=="object"||r.video==null)&&(r.video={...r.video,deviceId:e})),n&&(r.audio===!0?r.audio={deviceId:n}:(typeof r.audio=="object"||r.audio==null)&&(r.audio={...r.audio,deviceId:n})),r}function n4(t){const e=t?!!t.video:!0,n=t?!!t.audio:!0;return{videoEnabled:e,audioEnabled:n}}const r4={webRtcState:"STOPPED",sdpOffer:null,signallingTimedOut:!1,stream:null,error:null},i4=(t,e)=>{switch(e.type){case"SIGNALLING_START":return{...t,webRtcState:"SIGNALLING",stream:null,error:null,signallingTimedOut:!1};case"SIGNALLING_TIMEOUT":return{...t,signallingTimedOut:!0};case"SET_STREAM":return{...t,stream:e.stream};case"SET_OFFER":return{...t,sdpOffer:e.offer};case"STOPPING":return{...t,webRtcState:"STOPPING",sdpOffer:null};case"STOPPED":return{...t,webRtcState:"STOPPED",sdpOffer:null,stream:null};case"START_PLAYING":return{...t,webRtcState:"PLAYING",sdpOffer:null};case"PROCESS_ANSWER_ERROR":return{...t,error:e.error};case"ERROR":return{...t,webRtcState:"STOPPED",sdpOffer:null,error:e.error}}},o4=t=>(n,r)=>{const s=i4(n,r),a=s.webRtcState==="PLAYING",c=n.webRtcState==="PLAYING",u=a!==c,f=s.sdpOffer,h=n.sdpOffer;return(u||f!==h)&&(h&&console.log("Send SDP offer",h),t({playing:a,sdpOffer:f?f.toJSON():""})),s},Dh=t=>t==="RECVONLY"||t==="SENDONLY"||t==="SENDRECV",s4=t=>t==="SENDRECV"||t==="RECVONLY",a4=t=>t==="SENDRECV"||t==="SENDONLY",l4=t=>t.createOffer().then(e=>(console.log("Created offer:",e),t.setLocalDescription(e))).then(()=>(console.log("Wait for ICE gethering..."),new Promise(e=>{if(t.iceGatheringState==="complete")e();else{const n=()=>{t.iceGatheringState==="complete"&&(t.removeEventListener("icegatheringstatechange",n),e())};t.addEventListener("icegatheringstatechange",n)}}))).then(()=>t.localDescription).catch(e=>{throw console.error(e),e}),c4=3*1e3,u4=(t,e,n,r,s)=>{A.useEffect(()=>r({playing:!1,sdpOffer:""}),[]);const a=A.useRef(),c=A.useRef(),u=A.useMemo(()=>o4(r),[r]),[f,h]=A.useReducer(u,r4),y=A.useCallback(()=>{(async()=>{if(f.webRtcState==="STOPPING")return;const C=c.current;if(c.current=void 0,h({type:"STOPPING"}),C!=null)return C.getTransceivers&&C.getTransceivers().forEach(function(w){w.stop&&w.stop()}),C.getSenders().forEach(function(w){var I;(I=w.track)==null||I.stop()}),new Promise(w=>{setTimeout(()=>{C.close(),w()},500)})})().catch(C=>h({type:"ERROR",error:C})).finally(()=>{h({type:"STOPPED"})})},[f.webRtcState]),g=A.useRef(y);g.current=y;const v=A.useCallback(()=>{if(f.webRtcState!=="STOPPED")return;(async()=>{h({type:"SIGNALLING_START"}),a.current=setTimeout(()=>{h({type:"SIGNALLING_TIMEOUT"})},c4);const C=t.mode,w=t.rtcConfiguration||{};console.log("RTCConfiguration:",w);const I=new RTCPeerConnection(w);if((C==="SENDRECV"||C==="RECVONLY")&&I.addEventListener("track",P=>{const D=P.streams[0];h({type:"SET_STREAM",stream:D})}),C==="SENDRECV"||C==="SENDONLY"){const P=t4(t.mediaStreamConstraints,e,n);if(console.log("MediaStreamConstraints:",P),P.audio||P.video){if(navigator.mediaDevices==null)throw new Error("navigator.mediaDevices is undefined. It seems the current document is not loaded securely.");if(navigator.mediaDevices.getUserMedia==null)throw new Error("getUserMedia is not implemented in this browser");const D={},B=await navigator.mediaDevices.getUserMedia(P);B.getTracks().forEach(M=>{I.addTrack(M,B);const E=M.kind;if(E!=="video"&&E!=="audio")return;const U=M.getSettings().deviceId;U!=null&&(D[E]=U)}),Object.keys(D).length>0&&s(D)}if(C==="SENDONLY")for(const D of I.getTransceivers())D.direction="sendonly"}else C==="RECVONLY"&&(I.addTransceiver("video",{direction:"recvonly"}),I.addTransceiver("audio",{direction:"recvonly"}));console.log("transceivers",I.getTransceivers()),I.addEventListener("iceconnectionstatechange",()=>{console.log("iceconnectionstatechange",I.iceConnectionState),(I.iceConnectionState==="disconnected"||I.iceConnectionState==="failed"||I.iceConnectionState==="closed")&&g.current()}),c.current=I,await l4(I).then(P=>{if(P==null)throw new Error("Failed to create an offer SDP");h({type:"SET_OFFER",offer:P})})})().catch(C=>h({type:"ERROR",error:C}))},[n,e,t.mediaStreamConstraints,t.mode,t.rtcConfiguration,f.webRtcState,s]);return A.useEffect(()=>{const _=c.current;if(_==null)return;const C=t.sdpAnswerJson;if(_.remoteDescription==null&&C&&f.webRtcState==="SIGNALLING"){const w=JSON.parse(C);console.log("Receive answer sdpOffer",w),_.setRemoteDescription(w).then(()=>{console.log("Remote description is set"),a.current&&clearTimeout(a.current),h({type:"START_PLAYING"})}).catch(I=>{h({type:"PROCESS_ANSWER_ERROR",error:I}),y()})}},[t.sdpAnswerJson,f.webRtcState,y]),A.useEffect(()=>{const _=t.desiredPlayingState;_!=null&&(_===!0&&f.webRtcState==="STOPPED"?v():_===!1&&(f.webRtcState==="SIGNALLING"||f.webRtcState==="PLAYING")&&y())},[t.desiredPlayingState,v,f.webRtcState,y]),{start:v,stop:y,state:f}};function d4(t){return hn.setComponentValue(t)}function Jp({translationKey:t,defaultText:e,...n}){return j.jsx(J_,{...n,children:Bl(t)||e})}let o2=!0,s2=!0;function yu(t,e,n){const r=t.match(e);return r&&r.length>=n&&parseInt(r[n],10)}function Ho(t,e,n){if(!t.RTCPeerConnection)return;const r=t.RTCPeerConnection.prototype,s=r.addEventListener;r.addEventListener=function(c,u){if(c!==e)return s.apply(this,arguments);const f=h=>{const y=n(h);y&&(u.handleEvent?u.handleEvent(y):u(y))};return this._eventMap=this._eventMap||{},this._eventMap[e]||(this._eventMap[e]=new Map),this._eventMap[e].set(u,f),s.apply(this,[c,f])};const a=r.removeEventListener;r.removeEventListener=function(c,u){if(c!==e||!this._eventMap||!this._eventMap[e])return a.apply(this,arguments);if(!this._eventMap[e].has(u))return a.apply(this,arguments);const f=this._eventMap[e].get(u);return this._eventMap[e].delete(u),this._eventMap[e].size===0&&delete this._eventMap[e],Object.keys(this._eventMap).length===0&&delete this._eventMap,a.apply(this,[c,f])},Object.defineProperty(r,"on"+e,{get(){return this["_on"+e]},set(c){this["_on"+e]&&(this.removeEventListener(e,this["_on"+e]),delete this["_on"+e]),c&&this.addEventListener(e,this["_on"+e]=c)},enumerable:!0,configurable:!0})}function f4(t){return typeof t!="boolean"?new Error("Argument type: "+typeof t+". Please use a boolean."):(o2=t,t?"adapter.js logging disabled":"adapter.js logging enabled")}function p4(t){return typeof t!="boolean"?new Error("Argument type: "+typeof t+". Please use a boolean."):(s2=!t,"adapter.js deprecation warnings "+(t?"disabled":"enabled"))}function a2(){if(typeof window=="object"){if(o2)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function Zm(t,e){s2&&console.warn(t+" is deprecated, please use "+e+" instead.")}function h4(t){const e={browser:null,version:null};if(typeof t>"u"||!t.navigator||!t.navigator.userAgent)return e.browser="Not a browser.",e;const{navigator:n}=t;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(s=>s.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)e.browser="firefox",e.version=yu(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||t.isSecureContext===!1&&t.webkitRTCPeerConnection)e.browser="chrome",e.version=yu(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(t.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))e.browser="safari",e.version=yu(n.userAgent,/AppleWebKit\/(\d+)\./,1),e.supportsUnifiedPlan=t.RTCRtpTransceiver&&"currentDirection"in t.RTCRtpTransceiver.prototype;else return e.browser="Not a supported browser.",e;return e}function k1(t){return Object.prototype.toString.call(t)==="[object Object]"}function l2(t){return k1(t)?Object.keys(t).reduce(function(e,n){const r=k1(t[n]),s=r?l2(t[n]):t[n],a=r&&!Object.keys(s).length;return s===void 0||a?e:Object.assign(e,{[n]:s})},{}):t}function Nh(t,e,n){!e||n.has(e.id)||(n.set(e.id,e),Object.keys(e).forEach(r=>{r.endsWith("Id")?Nh(t,t.get(e[r]),n):r.endsWith("Ids")&&e[r].forEach(s=>{Nh(t,t.get(s),n)})}))}function R1(t,e,n){const r=n?"outbound-rtp":"inbound-rtp",s=new Map;if(e===null)return s;const a=[];return t.forEach(c=>{c.type==="track"&&c.trackIdentifier===e.id&&a.push(c)}),a.forEach(c=>{t.forEach(u=>{u.type===r&&u.trackId===c.id&&Nh(t,u,s)})}),s}const E1=a2;function c2(t,e){const n=t&&t.navigator;if(!n.mediaDevices)return;const r=function(u){if(typeof u!="object"||u.mandatory||u.optional)return u;const f={};return Object.keys(u).forEach(h=>{if(h==="require"||h==="advanced"||h==="mediaSource")return;const y=typeof u[h]=="object"?u[h]:{ideal:u[h]};y.exact!==void 0&&typeof y.exact=="number"&&(y.min=y.max=y.exact);const g=function(v,_){return v?v+_.charAt(0).toUpperCase()+_.slice(1):_==="deviceId"?"sourceId":_};if(y.ideal!==void 0){f.optional=f.optional||[];let v={};typeof y.ideal=="number"?(v[g("min",h)]=y.ideal,f.optional.push(v),v={},v[g("max",h)]=y.ideal,f.optional.push(v)):(v[g("",h)]=y.ideal,f.optional.push(v))}y.exact!==void 0&&typeof y.exact!="number"?(f.mandatory=f.mandatory||{},f.mandatory[g("",h)]=y.exact):["min","max"].forEach(v=>{y[v]!==void 0&&(f.mandatory=f.mandatory||{},f.mandatory[g(v,h)]=y[v])})}),u.advanced&&(f.optional=(f.optional||[]).concat(u.advanced)),f},s=function(u,f){if(e.version>=61)return f(u);if(u=JSON.parse(JSON.stringify(u)),u&&typeof u.audio=="object"){const h=function(y,g,v){g in y&&!(v in y)&&(y[v]=y[g],delete y[g])};u=JSON.parse(JSON.stringify(u)),h(u.audio,"autoGainControl","googAutoGainControl"),h(u.audio,"noiseSuppression","googNoiseSuppression"),u.audio=r(u.audio)}if(u&&typeof u.video=="object"){let h=u.video.facingMode;h=h&&(typeof h=="object"?h:{ideal:h});const y=e.version<66;if(h&&(h.exact==="user"||h.exact==="environment"||h.ideal==="user"||h.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!y)){delete u.video.facingMode;let g;if(h.exact==="environment"||h.ideal==="environment"?g=["back","rear"]:(h.exact==="user"||h.ideal==="user")&&(g=["front"]),g)return n.mediaDevices.enumerateDevices().then(v=>{v=v.filter(C=>C.kind==="videoinput");let _=v.find(C=>g.some(w=>C.label.toLowerCase().includes(w)));return!_&&v.length&&g.includes("back")&&(_=v[v.length-1]),_&&(u.video.deviceId=h.exact?{exact:_.deviceId}:{ideal:_.deviceId}),u.video=r(u.video),E1("chrome: "+JSON.stringify(u)),f(u)})}u.video=r(u.video)}return E1("chrome: "+JSON.stringify(u)),f(u)},a=function(u){return e.version>=64?u:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[u.name]||u.name,message:u.message,constraint:u.constraint||u.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},c=function(u,f,h){s(u,y=>{n.webkitGetUserMedia(y,f,g=>{h&&h(a(g))})})};if(n.getUserMedia=c.bind(n),n.mediaDevices.getUserMedia){const u=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(f){return s(f,h=>u(h).then(y=>{if(h.audio&&!y.getAudioTracks().length||h.video&&!y.getVideoTracks().length)throw y.getTracks().forEach(g=>{g.stop()}),new DOMException("","NotFoundError");return y},y=>Promise.reject(a(y))))}}}function u2(t){t.MediaStream=t.MediaStream||t.webkitMediaStream}function d2(t){if(typeof t=="object"&&t.RTCPeerConnection&&!("ontrack"in t.RTCPeerConnection.prototype)){Object.defineProperty(t.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const e=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",s=>{let a;t.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(u=>u.track&&u.track.id===s.track.id):a={track:s.track};const c=new Event("track");c.track=s.track,c.receiver=a,c.transceiver={receiver:a},c.streams=[r.stream],this.dispatchEvent(c)}),r.stream.getTracks().forEach(s=>{let a;t.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(u=>u.track&&u.track.id===s.id):a={track:s};const c=new Event("track");c.track=s,c.receiver=a,c.transceiver={receiver:a},c.streams=[r.stream],this.dispatchEvent(c)})},this.addEventListener("addstream",this._ontrackpoly)),e.apply(this,arguments)}}else Ho(t,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}function f2(t){if(typeof t=="object"&&t.RTCPeerConnection&&!("getSenders"in t.RTCPeerConnection.prototype)&&"createDTMFSender"in t.RTCPeerConnection.prototype){const e=function(s,a){return{track:a,get dtmf(){return this._dtmf===void 0&&(a.kind==="audio"?this._dtmf=s.createDTMFSender(a):this._dtmf=null),this._dtmf},_pc:s}};if(!t.RTCPeerConnection.prototype.getSenders){t.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const s=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addTrack=function(u,f){let h=s.apply(this,arguments);return h||(h=e(this,u),this._senders.push(h)),h};const a=t.RTCPeerConnection.prototype.removeTrack;t.RTCPeerConnection.prototype.removeTrack=function(u){a.apply(this,arguments);const f=this._senders.indexOf(u);f!==-1&&this._senders.splice(f,1)}}const n=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(a){this._senders=this._senders||[],n.apply(this,[a]),a.getTracks().forEach(c=>{this._senders.push(e(this,c))})};const r=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(a){this._senders=this._senders||[],r.apply(this,[a]),a.getTracks().forEach(c=>{const u=this._senders.find(f=>f.track===c);u&&this._senders.splice(this._senders.indexOf(u),1)})}}else if(typeof t=="object"&&t.RTCPeerConnection&&"getSenders"in t.RTCPeerConnection.prototype&&"createDTMFSender"in t.RTCPeerConnection.prototype&&t.RTCRtpSender&&!("dtmf"in t.RTCRtpSender.prototype)){const e=t.RTCPeerConnection.prototype.getSenders;t.RTCPeerConnection.prototype.getSenders=function(){const r=e.apply(this,[]);return r.forEach(s=>s._pc=this),r},Object.defineProperty(t.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function p2(t){if(!(typeof t=="object"&&t.RTCPeerConnection&&t.RTCRtpSender&&t.RTCRtpReceiver))return;if(!("getStats"in t.RTCRtpSender.prototype)){const n=t.RTCPeerConnection.prototype.getSenders;n&&(t.RTCPeerConnection.prototype.getSenders=function(){const a=n.apply(this,[]);return a.forEach(c=>c._pc=this),a});const r=t.RTCPeerConnection.prototype.addTrack;r&&(t.RTCPeerConnection.prototype.addTrack=function(){const a=r.apply(this,arguments);return a._pc=this,a}),t.RTCRtpSender.prototype.getStats=function(){const a=this;return this._pc.getStats().then(c=>R1(c,a.track,!0))}}if(!("getStats"in t.RTCRtpReceiver.prototype)){const n=t.RTCPeerConnection.prototype.getReceivers;n&&(t.RTCPeerConnection.prototype.getReceivers=function(){const s=n.apply(this,[]);return s.forEach(a=>a._pc=this),s}),Ho(t,"track",r=>(r.receiver._pc=r.srcElement,r)),t.RTCRtpReceiver.prototype.getStats=function(){const s=this;return this._pc.getStats().then(a=>R1(a,s.track,!1))}}if(!("getStats"in t.RTCRtpSender.prototype&&"getStats"in t.RTCRtpReceiver.prototype))return;const e=t.RTCPeerConnection.prototype.getStats;t.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof t.MediaStreamTrack){const r=arguments[0];let s,a,c;return this.getSenders().forEach(u=>{u.track===r&&(s?c=!0:s=u)}),this.getReceivers().forEach(u=>(u.track===r&&(a?c=!0:a=u),u.track===r)),c||s&&a?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):s?s.getStats():a?a.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return e.apply(this,arguments)}}function h2(t){t.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(c=>this._shimmedLocalStreams[c][0])};const e=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addTrack=function(c,u){if(!u)return e.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const f=e.apply(this,arguments);return this._shimmedLocalStreams[u.id]?this._shimmedLocalStreams[u.id].indexOf(f)===-1&&this._shimmedLocalStreams[u.id].push(f):this._shimmedLocalStreams[u.id]=[u,f],f};const n=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(c){this._shimmedLocalStreams=this._shimmedLocalStreams||{},c.getTracks().forEach(h=>{if(this.getSenders().find(g=>g.track===h))throw new DOMException("Track already exists.","InvalidAccessError")});const u=this.getSenders();n.apply(this,arguments);const f=this.getSenders().filter(h=>u.indexOf(h)===-1);this._shimmedLocalStreams[c.id]=[c].concat(f)};const r=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(c){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[c.id],r.apply(this,arguments)};const s=t.RTCPeerConnection.prototype.removeTrack;t.RTCPeerConnection.prototype.removeTrack=function(c){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},c&&Object.keys(this._shimmedLocalStreams).forEach(u=>{const f=this._shimmedLocalStreams[u].indexOf(c);f!==-1&&this._shimmedLocalStreams[u].splice(f,1),this._shimmedLocalStreams[u].length===1&&delete this._shimmedLocalStreams[u]}),s.apply(this,arguments)}}function m2(t,e){if(!t.RTCPeerConnection)return;if(t.RTCPeerConnection.prototype.addTrack&&e.version>=65)return h2(t);const n=t.RTCPeerConnection.prototype.getLocalStreams;t.RTCPeerConnection.prototype.getLocalStreams=function(){const y=n.apply(this);return this._reverseStreams=this._reverseStreams||{},y.map(g=>this._reverseStreams[g.id])};const r=t.RTCPeerConnection.prototype.addStream;t.RTCPeerConnection.prototype.addStream=function(y){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},y.getTracks().forEach(g=>{if(this.getSenders().find(_=>_.track===g))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[y.id]){const g=new t.MediaStream(y.getTracks());this._streams[y.id]=g,this._reverseStreams[g.id]=y,y=g}r.apply(this,[y])};const s=t.RTCPeerConnection.prototype.removeStream;t.RTCPeerConnection.prototype.removeStream=function(y){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},s.apply(this,[this._streams[y.id]||y]),delete this._reverseStreams[this._streams[y.id]?this._streams[y.id].id:y.id],delete this._streams[y.id]},t.RTCPeerConnection.prototype.addTrack=function(y,g){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const v=[].slice.call(arguments,1);if(v.length!==1||!v[0].getTracks().find(w=>w===y))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(w=>w.track===y))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const C=this._streams[g.id];if(C)C.addTrack(y),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const w=new t.MediaStream([y]);this._streams[g.id]=w,this._reverseStreams[w.id]=g,this.addStream(w)}return this.getSenders().find(w=>w.track===y)};function a(h,y){let g=y.sdp;return Object.keys(h._reverseStreams||[]).forEach(v=>{const _=h._reverseStreams[v],C=h._streams[_.id];g=g.replace(new RegExp(C.id,"g"),_.id)}),new RTCSessionDescription({type:y.type,sdp:g})}function c(h,y){let g=y.sdp;return Object.keys(h._reverseStreams||[]).forEach(v=>{const _=h._reverseStreams[v],C=h._streams[_.id];g=g.replace(new RegExp(_.id,"g"),C.id)}),new RTCSessionDescription({type:y.type,sdp:g})}["createOffer","createAnswer"].forEach(function(h){const y=t.RTCPeerConnection.prototype[h],g={[h](){const v=arguments;return arguments.length&&typeof arguments[0]=="function"?y.apply(this,[C=>{const w=a(this,C);v[0].apply(null,[w])},C=>{v[1]&&v[1].apply(null,C)},arguments[2]]):y.apply(this,arguments).then(C=>a(this,C))}};t.RTCPeerConnection.prototype[h]=g[h]});const u=t.RTCPeerConnection.prototype.setLocalDescription;t.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?u.apply(this,arguments):(arguments[0]=c(this,arguments[0]),u.apply(this,arguments))};const f=Object.getOwnPropertyDescriptor(t.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(t.RTCPeerConnection.prototype,"localDescription",{get(){const h=f.get.apply(this);return h.type===""?h:a(this,h)}}),t.RTCPeerConnection.prototype.removeTrack=function(y){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!y._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(y._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let v;Object.keys(this._streams).forEach(_=>{this._streams[_].getTracks().find(w=>y.track===w)&&(v=this._streams[_])}),v&&(v.getTracks().length===1?this.removeStream(this._reverseStreams[v.id]):v.removeTrack(y.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Bh(t,e){!t.RTCPeerConnection&&t.webkitRTCPeerConnection&&(t.RTCPeerConnection=t.webkitRTCPeerConnection),t.RTCPeerConnection&&e.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=t.RTCPeerConnection.prototype[n],s={[n](){return arguments[0]=new(n==="addIceCandidate"?t.RTCIceCandidate:t.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};t.RTCPeerConnection.prototype[n]=s[n]})}function y2(t,e){Ho(t,"negotiationneeded",n=>{const r=n.target;if(!((e.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const A1=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:y2,shimAddTrackRemoveTrack:m2,shimAddTrackRemoveTrackWithNative:h2,shimGetSendersWithDtmf:f2,shimGetUserMedia:c2,shimMediaStream:u2,shimOnTrack:d2,shimPeerConnection:Bh,shimSenderReceiverGetStats:p2},Symbol.toStringTag,{value:"Module"}));function g2(t,e){const n=t&&t.navigator,r=t&&t.MediaStreamTrack;if(n.getUserMedia=function(s,a,c){Zm("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(s).then(a,c)},!(e.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const s=function(c,u,f){u in c&&!(f in c)&&(c[f]=c[u],delete c[u])},a=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(c){return typeof c=="object"&&typeof c.audio=="object"&&(c=JSON.parse(JSON.stringify(c)),s(c.audio,"autoGainControl","mozAutoGainControl"),s(c.audio,"noiseSuppression","mozNoiseSuppression")),a(c)},r&&r.prototype.getSettings){const c=r.prototype.getSettings;r.prototype.getSettings=function(){const u=c.apply(this,arguments);return s(u,"mozAutoGainControl","autoGainControl"),s(u,"mozNoiseSuppression","noiseSuppression"),u}}if(r&&r.prototype.applyConstraints){const c=r.prototype.applyConstraints;r.prototype.applyConstraints=function(u){return this.kind==="audio"&&typeof u=="object"&&(u=JSON.parse(JSON.stringify(u)),s(u,"autoGainControl","mozAutoGainControl"),s(u,"noiseSuppression","mozNoiseSuppression")),c.apply(this,[u])}}}}function m4(t,e){t.navigator.mediaDevices&&"getDisplayMedia"in t.navigator.mediaDevices||t.navigator.mediaDevices&&(t.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const s=new DOMException("getDisplayMedia without video constraints is undefined");return s.name="NotFoundError",s.code=8,Promise.reject(s)}return r.video===!0?r.video={mediaSource:e}:r.video.mediaSource=e,t.navigator.mediaDevices.getUserMedia(r)})}function v2(t){typeof t=="object"&&t.RTCTrackEvent&&"receiver"in t.RTCTrackEvent.prototype&&!("transceiver"in t.RTCTrackEvent.prototype)&&Object.defineProperty(t.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Lh(t,e){if(typeof t!="object"||!(t.RTCPeerConnection||t.mozRTCPeerConnection))return;!t.RTCPeerConnection&&t.mozRTCPeerConnection&&(t.RTCPeerConnection=t.mozRTCPeerConnection),e.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(s){const a=t.RTCPeerConnection.prototype[s],c={[s](){return arguments[0]=new(s==="addIceCandidate"?t.RTCIceCandidate:t.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)}};t.RTCPeerConnection.prototype[s]=c[s]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=t.RTCPeerConnection.prototype.getStats;t.RTCPeerConnection.prototype.getStats=function(){const[a,c,u]=arguments;return r.apply(this,[a||null]).then(f=>{if(e.version<53&&!c)try{f.forEach(h=>{h.type=n[h.type]||h.type})}catch(h){if(h.name!=="TypeError")throw h;f.forEach((y,g)=>{f.set(g,Object.assign({},y,{type:n[y.type]||y.type}))})}return f}).then(c,u)}}function b2(t){if(!(typeof t=="object"&&t.RTCPeerConnection&&t.RTCRtpSender)||t.RTCRtpSender&&"getStats"in t.RTCRtpSender.prototype)return;const e=t.RTCPeerConnection.prototype.getSenders;e&&(t.RTCPeerConnection.prototype.getSenders=function(){const s=e.apply(this,[]);return s.forEach(a=>a._pc=this),s});const n=t.RTCPeerConnection.prototype.addTrack;n&&(t.RTCPeerConnection.prototype.addTrack=function(){const s=n.apply(this,arguments);return s._pc=this,s}),t.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function S2(t){if(!(typeof t=="object"&&t.RTCPeerConnection&&t.RTCRtpSender)||t.RTCRtpSender&&"getStats"in t.RTCRtpReceiver.prototype)return;const e=t.RTCPeerConnection.prototype.getReceivers;e&&(t.RTCPeerConnection.prototype.getReceivers=function(){const r=e.apply(this,[]);return r.forEach(s=>s._pc=this),r}),Ho(t,"track",n=>(n.receiver._pc=n.srcElement,n)),t.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function _2(t){!t.RTCPeerConnection||"removeStream"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.removeStream=function(n){Zm("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function w2(t){t.DataChannel&&!t.RTCDataChannel&&(t.RTCDataChannel=t.DataChannel)}function C2(t){if(!(typeof t=="object"&&t.RTCPeerConnection))return;const e=t.RTCPeerConnection.prototype.addTransceiver;e&&(t.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const s=r.length>0;s&&r.forEach(c=>{if("rid"in c&&!/^[a-z0-9]{0,16}$/i.test(c.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in c&&!(parseFloat(c.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in c&&!(parseFloat(c.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const a=e.apply(this,arguments);if(s){const{sender:c}=a,u=c.getParameters();(!("encodings"in u)||u.encodings.length===1&&Object.keys(u.encodings[0]).length===0)&&(u.encodings=r,c.sendEncodings=r,this.setParametersPromises.push(c.setParameters(u).then(()=>{delete c.sendEncodings}).catch(()=>{delete c.sendEncodings})))}return a})}function x2(t){if(!(typeof t=="object"&&t.RTCRtpSender))return;const e=t.RTCRtpSender.prototype.getParameters;e&&(t.RTCRtpSender.prototype.getParameters=function(){const r=e.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function I2(t){if(!(typeof t=="object"&&t.RTCPeerConnection))return;const e=t.RTCPeerConnection.prototype.createOffer;t.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>e.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):e.apply(this,arguments)}}function T2(t){if(!(typeof t=="object"&&t.RTCPeerConnection))return;const e=t.RTCPeerConnection.prototype.createAnswer;t.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>e.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):e.apply(this,arguments)}}const P1=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:C2,shimCreateAnswer:T2,shimCreateOffer:I2,shimGetDisplayMedia:m4,shimGetParameters:x2,shimGetUserMedia:g2,shimOnTrack:v2,shimPeerConnection:Lh,shimRTCDataChannel:w2,shimReceiverGetStats:S2,shimRemoveStream:_2,shimSenderGetStats:b2},Symbol.toStringTag,{value:"Module"}));function k2(t){if(!(typeof t!="object"||!t.RTCPeerConnection)){if("getLocalStreams"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in t.RTCPeerConnection.prototype)){const e=t.RTCPeerConnection.prototype.addTrack;t.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(s=>e.call(this,s,r)),r.getVideoTracks().forEach(s=>e.call(this,s,r))},t.RTCPeerConnection.prototype.addTrack=function(r,...s){return s&&s.forEach(a=>{this._localStreams?this._localStreams.includes(a)||this._localStreams.push(a):this._localStreams=[a]}),e.apply(this,arguments)}}"removeStream"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const s=n.getTracks();this.getSenders().forEach(a=>{s.includes(a.track)&&this.removeTrack(a)})})}}function R2(t){if(!(typeof t!="object"||!t.RTCPeerConnection)&&("getRemoteStreams"in t.RTCPeerConnection.prototype||(t.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in t.RTCPeerConnection.prototype))){Object.defineProperty(t.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(s=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(s))return;this._remoteStreams.push(s);const a=new Event("addstream");a.stream=s,this.dispatchEvent(a)})})}});const e=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(s){s.streams.forEach(a=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(a)>=0)return;r._remoteStreams.push(a);const c=new Event("addstream");c.stream=a,r.dispatchEvent(c)})}),e.apply(r,arguments)}}}function E2(t){if(typeof t!="object"||!t.RTCPeerConnection)return;const e=t.RTCPeerConnection.prototype,n=e.createOffer,r=e.createAnswer,s=e.setLocalDescription,a=e.setRemoteDescription,c=e.addIceCandidate;e.createOffer=function(h,y){const g=arguments.length>=2?arguments[2]:arguments[0],v=n.apply(this,[g]);return y?(v.then(h,y),Promise.resolve()):v},e.createAnswer=function(h,y){const g=arguments.length>=2?arguments[2]:arguments[0],v=r.apply(this,[g]);return y?(v.then(h,y),Promise.resolve()):v};let u=function(f,h,y){const g=s.apply(this,[f]);return y?(g.then(h,y),Promise.resolve()):g};e.setLocalDescription=u,u=function(f,h,y){const g=a.apply(this,[f]);return y?(g.then(h,y),Promise.resolve()):g},e.setRemoteDescription=u,u=function(f,h,y){const g=c.apply(this,[f]);return y?(g.then(h,y),Promise.resolve()):g},e.addIceCandidate=u}function A2(t){const e=t&&t.navigator;if(e.mediaDevices&&e.mediaDevices.getUserMedia){const n=e.mediaDevices,r=n.getUserMedia.bind(n);e.mediaDevices.getUserMedia=s=>r(P2(s))}!e.getUserMedia&&e.mediaDevices&&e.mediaDevices.getUserMedia&&(e.getUserMedia=(function(r,s,a){e.mediaDevices.getUserMedia(r).then(s,a)}).bind(e))}function P2(t){return t&&t.video!==void 0?Object.assign({},t,{video:l2(t.video)}):t}function O2(t){if(!t.RTCPeerConnection)return;const e=t.RTCPeerConnection;t.RTCPeerConnection=function(r,s){if(r&&r.iceServers){const a=[];for(let c=0;c<r.iceServers.length;c++){let u=r.iceServers[c];u.urls===void 0&&u.url?(Zm("RTCIceServer.url","RTCIceServer.urls"),u=JSON.parse(JSON.stringify(u)),u.urls=u.url,delete u.url,a.push(u)):a.push(r.iceServers[c])}r.iceServers=a}return new e(r,s)},t.RTCPeerConnection.prototype=e.prototype,"generateCertificate"in e&&Object.defineProperty(t.RTCPeerConnection,"generateCertificate",{get(){return e.generateCertificate}})}function M2(t){typeof t=="object"&&t.RTCTrackEvent&&"receiver"in t.RTCTrackEvent.prototype&&!("transceiver"in t.RTCTrackEvent.prototype)&&Object.defineProperty(t.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function D2(t){const e=t.RTCPeerConnection.prototype.createOffer;t.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);const s=this.getTransceivers().find(c=>c.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&s?s.direction==="sendrecv"?s.setDirection?s.setDirection("sendonly"):s.direction="sendonly":s.direction==="recvonly"&&(s.setDirection?s.setDirection("inactive"):s.direction="inactive"):r.offerToReceiveAudio===!0&&!s&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const a=this.getTransceivers().find(c=>c.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&a?a.direction==="sendrecv"?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":a.direction==="recvonly"&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):r.offerToReceiveVideo===!0&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return e.apply(this,arguments)}}function N2(t){typeof t!="object"||t.AudioContext||(t.AudioContext=t.webkitAudioContext)}const O1=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:N2,shimCallbacksAPI:E2,shimConstraints:P2,shimCreateOfferLegacy:D2,shimGetUserMedia:A2,shimLocalStreamsAPI:k2,shimRTCIceServerUrls:O2,shimRemoteStreamsAPI:R2,shimTrackEventTransceiver:M2},Symbol.toStringTag,{value:"Module"}));var Zp={exports:{}},M1;function y4(){return M1||(M1=1,function(t){const e={};e.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},e.localCName=e.generateIdentifier(),e.splitLines=function(n){return n.trim().split(`
225
- `).map(r=>r.trim())},e.splitSections=function(n){return n.split(`
226
- m=`).map((s,a)=>(a>0?"m="+s:s).trim()+`\r
227
- `)},e.getDescription=function(n){const r=e.splitSections(n);return r&&r[0]},e.getMediaSections=function(n){const r=e.splitSections(n);return r.shift(),r},e.matchPrefix=function(n,r){return e.splitLines(n).filter(s=>s.indexOf(r)===0)},e.parseCandidate=function(n){let r;n.indexOf("a=candidate:")===0?r=n.substring(12).split(" "):r=n.substring(10).split(" ");const s={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let a=8;a<r.length;a+=2)switch(r[a]){case"raddr":s.relatedAddress=r[a+1];break;case"rport":s.relatedPort=parseInt(r[a+1],10);break;case"tcptype":s.tcpType=r[a+1];break;case"ufrag":s.ufrag=r[a+1],s.usernameFragment=r[a+1];break;default:s[r[a]]===void 0&&(s[r[a]]=r[a+1]);break}return s},e.writeCandidate=function(n){const r=[];r.push(n.foundation);const s=n.component;s==="rtp"?r.push(1):s==="rtcp"?r.push(2):r.push(s),r.push(n.protocol.toUpperCase()),r.push(n.priority),r.push(n.address||n.ip),r.push(n.port);const a=n.type;return r.push("typ"),r.push(a),a!=="host"&&n.relatedAddress&&n.relatedPort&&(r.push("raddr"),r.push(n.relatedAddress),r.push("rport"),r.push(n.relatedPort)),n.tcpType&&n.protocol.toLowerCase()==="tcp"&&(r.push("tcptype"),r.push(n.tcpType)),(n.usernameFragment||n.ufrag)&&(r.push("ufrag"),r.push(n.usernameFragment||n.ufrag)),"candidate:"+r.join(" ")},e.parseIceOptions=function(n){return n.substring(14).split(" ")},e.parseRtpMap=function(n){let r=n.substring(9).split(" ");const s={payloadType:parseInt(r.shift(),10)};return r=r[0].split("/"),s.name=r[0],s.clockRate=parseInt(r[1],10),s.channels=r.length===3?parseInt(r[2],10):1,s.numChannels=s.channels,s},e.writeRtpMap=function(n){let r=n.payloadType;n.preferredPayloadType!==void 0&&(r=n.preferredPayloadType);const s=n.channels||n.numChannels||1;return"a=rtpmap:"+r+" "+n.name+"/"+n.clockRate+(s!==1?"/"+s:"")+`\r
228
- `},e.parseExtmap=function(n){const r=n.substring(9).split(" ");return{id:parseInt(r[0],10),direction:r[0].indexOf("/")>0?r[0].split("/")[1]:"sendrecv",uri:r[1],attributes:r.slice(2).join(" ")}},e.writeExtmap=function(n){return"a=extmap:"+(n.id||n.preferredId)+(n.direction&&n.direction!=="sendrecv"?"/"+n.direction:"")+" "+n.uri+(n.attributes?" "+n.attributes:"")+`\r
229
- `},e.parseFmtp=function(n){const r={};let s;const a=n.substring(n.indexOf(" ")+1).split(";");for(let c=0;c<a.length;c++)s=a[c].trim().split("="),r[s[0].trim()]=s[1];return r},e.writeFmtp=function(n){let r="",s=n.payloadType;if(n.preferredPayloadType!==void 0&&(s=n.preferredPayloadType),n.parameters&&Object.keys(n.parameters).length){const a=[];Object.keys(n.parameters).forEach(c=>{n.parameters[c]!==void 0?a.push(c+"="+n.parameters[c]):a.push(c)}),r+="a=fmtp:"+s+" "+a.join(";")+`\r
230
- `}return r},e.parseRtcpFb=function(n){const r=n.substring(n.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},e.writeRtcpFb=function(n){let r="",s=n.payloadType;return n.preferredPayloadType!==void 0&&(s=n.preferredPayloadType),n.rtcpFeedback&&n.rtcpFeedback.length&&n.rtcpFeedback.forEach(a=>{r+="a=rtcp-fb:"+s+" "+a.type+(a.parameter&&a.parameter.length?" "+a.parameter:"")+`\r
231
- `}),r},e.parseSsrcMedia=function(n){const r=n.indexOf(" "),s={ssrc:parseInt(n.substring(7,r),10)},a=n.indexOf(":",r);return a>-1?(s.attribute=n.substring(r+1,a),s.value=n.substring(a+1)):s.attribute=n.substring(r+1),s},e.parseSsrcGroup=function(n){const r=n.substring(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(s=>parseInt(s,10))}},e.getMid=function(n){const r=e.matchPrefix(n,"a=mid:")[0];if(r)return r.substring(6)},e.parseFingerprint=function(n){const r=n.substring(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1].toUpperCase()}},e.getDtlsParameters=function(n,r){return{role:"auto",fingerprints:e.matchPrefix(n+r,"a=fingerprint:").map(e.parseFingerprint)}},e.writeDtlsParameters=function(n,r){let s="a=setup:"+r+`\r
232
- `;return n.fingerprints.forEach(a=>{s+="a=fingerprint:"+a.algorithm+" "+a.value+`\r
233
- `}),s},e.parseCryptoLine=function(n){const r=n.substring(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},e.writeCryptoLine=function(n){return"a=crypto:"+n.tag+" "+n.cryptoSuite+" "+(typeof n.keyParams=="object"?e.writeCryptoKeyParams(n.keyParams):n.keyParams)+(n.sessionParams?" "+n.sessionParams.join(" "):"")+`\r
234
- `},e.parseCryptoKeyParams=function(n){if(n.indexOf("inline:")!==0)return null;const r=n.substring(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},e.writeCryptoKeyParams=function(n){return n.keyMethod+":"+n.keySalt+(n.lifeTime?"|"+n.lifeTime:"")+(n.mkiValue&&n.mkiLength?"|"+n.mkiValue+":"+n.mkiLength:"")},e.getCryptoParameters=function(n,r){return e.matchPrefix(n+r,"a=crypto:").map(e.parseCryptoLine)},e.getIceParameters=function(n,r){const s=e.matchPrefix(n+r,"a=ice-ufrag:")[0],a=e.matchPrefix(n+r,"a=ice-pwd:")[0];return s&&a?{usernameFragment:s.substring(12),password:a.substring(10)}:null},e.writeIceParameters=function(n){let r="a=ice-ufrag:"+n.usernameFragment+`\r
235
- a=ice-pwd:`+n.password+`\r
236
- `;return n.iceLite&&(r+=`a=ice-lite\r
237
- `),r},e.parseRtpParameters=function(n){const r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},a=e.splitLines(n)[0].split(" ");r.profile=a[2];for(let u=3;u<a.length;u++){const f=a[u],h=e.matchPrefix(n,"a=rtpmap:"+f+" ")[0];if(h){const y=e.parseRtpMap(h),g=e.matchPrefix(n,"a=fmtp:"+f+" ");switch(y.parameters=g.length?e.parseFmtp(g[0]):{},y.rtcpFeedback=e.matchPrefix(n,"a=rtcp-fb:"+f+" ").map(e.parseRtcpFb),r.codecs.push(y),y.name.toUpperCase()){case"RED":case"ULPFEC":r.fecMechanisms.push(y.name.toUpperCase());break}}}e.matchPrefix(n,"a=extmap:").forEach(u=>{r.headerExtensions.push(e.parseExtmap(u))});const c=e.matchPrefix(n,"a=rtcp-fb:* ").map(e.parseRtcpFb);return r.codecs.forEach(u=>{c.forEach(f=>{u.rtcpFeedback.find(y=>y.type===f.type&&y.parameter===f.parameter)||u.rtcpFeedback.push(f)})}),r},e.writeRtpDescription=function(n,r){let s="";s+="m="+n+" ",s+=r.codecs.length>0?"9":"0",s+=" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" ",s+=r.codecs.map(c=>c.preferredPayloadType!==void 0?c.preferredPayloadType:c.payloadType).join(" ")+`\r
238
- `,s+=`c=IN IP4 0.0.0.0\r
239
- `,s+=`a=rtcp:9 IN IP4 0.0.0.0\r
240
- `,r.codecs.forEach(c=>{s+=e.writeRtpMap(c),s+=e.writeFmtp(c),s+=e.writeRtcpFb(c)});let a=0;return r.codecs.forEach(c=>{c.maxptime>a&&(a=c.maxptime)}),a>0&&(s+="a=maxptime:"+a+`\r
241
- `),r.headerExtensions&&r.headerExtensions.forEach(c=>{s+=e.writeExtmap(c)}),s},e.parseRtpEncodingParameters=function(n){const r=[],s=e.parseRtpParameters(n),a=s.fecMechanisms.indexOf("RED")!==-1,c=s.fecMechanisms.indexOf("ULPFEC")!==-1,u=e.matchPrefix(n,"a=ssrc:").map(v=>e.parseSsrcMedia(v)).filter(v=>v.attribute==="cname"),f=u.length>0&&u[0].ssrc;let h;const y=e.matchPrefix(n,"a=ssrc-group:FID").map(v=>v.substring(17).split(" ").map(C=>parseInt(C,10)));y.length>0&&y[0].length>1&&y[0][0]===f&&(h=y[0][1]),s.codecs.forEach(v=>{if(v.name.toUpperCase()==="RTX"&&v.parameters.apt){let _={ssrc:f,codecPayloadType:parseInt(v.parameters.apt,10)};f&&h&&(_.rtx={ssrc:h}),r.push(_),a&&(_=JSON.parse(JSON.stringify(_)),_.fec={ssrc:f,mechanism:c?"red+ulpfec":"red"},r.push(_))}}),r.length===0&&f&&r.push({ssrc:f});let g=e.matchPrefix(n,"b=");return g.length&&(g[0].indexOf("b=TIAS:")===0?g=parseInt(g[0].substring(7),10):g[0].indexOf("b=AS:")===0?g=parseInt(g[0].substring(5),10)*1e3*.95-50*40*8:g=void 0,r.forEach(v=>{v.maxBitrate=g})),r},e.parseRtcpParameters=function(n){const r={},s=e.matchPrefix(n,"a=ssrc:").map(u=>e.parseSsrcMedia(u)).filter(u=>u.attribute==="cname")[0];s&&(r.cname=s.value,r.ssrc=s.ssrc);const a=e.matchPrefix(n,"a=rtcp-rsize");r.reducedSize=a.length>0,r.compound=a.length===0;const c=e.matchPrefix(n,"a=rtcp-mux");return r.mux=c.length>0,r},e.writeRtcpParameters=function(n){let r="";return n.reducedSize&&(r+=`a=rtcp-rsize\r
242
- `),n.mux&&(r+=`a=rtcp-mux\r
243
- `),n.ssrc!==void 0&&n.cname&&(r+="a=ssrc:"+n.ssrc+" cname:"+n.cname+`\r
244
- `),r},e.parseMsid=function(n){let r;const s=e.matchPrefix(n,"a=msid:");if(s.length===1)return r=s[0].substring(7).split(" "),{stream:r[0],track:r[1]};const a=e.matchPrefix(n,"a=ssrc:").map(c=>e.parseSsrcMedia(c)).filter(c=>c.attribute==="msid");if(a.length>0)return r=a[0].value.split(" "),{stream:r[0],track:r[1]}},e.parseSctpDescription=function(n){const r=e.parseMLine(n),s=e.matchPrefix(n,"a=max-message-size:");let a;s.length>0&&(a=parseInt(s[0].substring(19),10)),isNaN(a)&&(a=65536);const c=e.matchPrefix(n,"a=sctp-port:");if(c.length>0)return{port:parseInt(c[0].substring(12),10),protocol:r.fmt,maxMessageSize:a};const u=e.matchPrefix(n,"a=sctpmap:");if(u.length>0){const f=u[0].substring(10).split(" ");return{port:parseInt(f[0],10),protocol:f[1],maxMessageSize:a}}},e.writeSctpDescription=function(n,r){let s=[];return n.protocol!=="DTLS/SCTP"?s=["m="+n.kind+" 9 "+n.protocol+" "+r.protocol+`\r
245
- `,`c=IN IP4 0.0.0.0\r
246
- `,"a=sctp-port:"+r.port+`\r
247
- `]:s=["m="+n.kind+" 9 "+n.protocol+" "+r.port+`\r
248
- `,`c=IN IP4 0.0.0.0\r
249
- `,"a=sctpmap:"+r.port+" "+r.protocol+` 65535\r
250
- `],r.maxMessageSize!==void 0&&s.push("a=max-message-size:"+r.maxMessageSize+`\r
251
- `),s.join("")},e.generateSessionId=function(){return Math.random().toString().substr(2,22)},e.writeSessionBoilerplate=function(n,r,s){let a;const c=r!==void 0?r:2;return n?a=n:a=e.generateSessionId(),`v=0\r
252
- o=`+(s||"thisisadapterortc")+" "+a+" "+c+` IN IP4 127.0.0.1\r
253
- s=-\r
254
- t=0 0\r
255
- `},e.getDirection=function(n,r){const s=e.splitLines(n);for(let a=0;a<s.length;a++)switch(s[a]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return s[a].substring(2)}return r?e.getDirection(r):"sendrecv"},e.getKind=function(n){return e.splitLines(n)[0].split(" ")[0].substring(2)},e.isRejected=function(n){return n.split(" ",2)[1]==="0"},e.parseMLine=function(n){const s=e.splitLines(n)[0].substring(2).split(" ");return{kind:s[0],port:parseInt(s[1],10),protocol:s[2],fmt:s.slice(3).join(" ")}},e.parseOLine=function(n){const s=e.matchPrefix(n,"o=")[0].substring(2).split(" ");return{username:s[0],sessionId:s[1],sessionVersion:parseInt(s[2],10),netType:s[3],addressType:s[4],address:s[5]}},e.isValidSDP=function(n){if(typeof n!="string"||n.length===0)return!1;const r=e.splitLines(n);for(let s=0;s<r.length;s++)if(r[s].length<2||r[s].charAt(1)!=="=")return!1;return!0},t.exports=e}(Zp)),Zp.exports}var B2=y4();const js=zh(B2),g4=D1({__proto__:null,default:js},[B2]);function gu(t){if(!t.RTCIceCandidate||t.RTCIceCandidate&&"foundation"in t.RTCIceCandidate.prototype)return;const e=t.RTCIceCandidate;t.RTCIceCandidate=function(r){if(typeof r=="object"&&r.candidate&&r.candidate.indexOf("a=")===0&&(r=JSON.parse(JSON.stringify(r)),r.candidate=r.candidate.substring(2)),r.candidate&&r.candidate.length){const s=new e(r),a=js.parseCandidate(r.candidate);for(const c in a)c in s||Object.defineProperty(s,c,{value:a[c]});return s.toJSON=function(){return{candidate:s.candidate,sdpMid:s.sdpMid,sdpMLineIndex:s.sdpMLineIndex,usernameFragment:s.usernameFragment}},s}return new e(r)},t.RTCIceCandidate.prototype=e.prototype,Ho(t,"icecandidate",n=>(n.candidate&&Object.defineProperty(n,"candidate",{value:new t.RTCIceCandidate(n.candidate),writable:"false"}),n))}function Fh(t){!t.RTCIceCandidate||t.RTCIceCandidate&&"relayProtocol"in t.RTCIceCandidate.prototype||Ho(t,"icecandidate",e=>{if(e.candidate){const n=js.parseCandidate(e.candidate.candidate);n.type==="relay"&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return e})}function vu(t,e){if(!t.RTCPeerConnection)return;"sctp"in t.RTCPeerConnection.prototype||Object.defineProperty(t.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(u){if(!u||!u.sdp)return!1;const f=js.splitSections(u.sdp);return f.shift(),f.some(h=>{const y=js.parseMLine(h);return y&&y.kind==="application"&&y.protocol.indexOf("SCTP")!==-1})},r=function(u){const f=u.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(f===null||f.length<2)return-1;const h=parseInt(f[1],10);return h!==h?-1:h},s=function(u){let f=65536;return e.browser==="firefox"&&(e.version<57?u===-1?f=16384:f=2147483637:e.version<60?f=e.version===57?65535:65536:f=2147483637),f},a=function(u,f){let h=65536;e.browser==="firefox"&&e.version===57&&(h=65535);const y=js.matchPrefix(u.sdp,"a=max-message-size:");return y.length>0?h=parseInt(y[0].substring(19),10):e.browser==="firefox"&&f!==-1&&(h=2147483637),h},c=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,e.browser==="chrome"&&e.version>=76){const{sdpSemantics:f}=this.getConfiguration();f==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const f=r(arguments[0]),h=s(f),y=a(arguments[0],f);let g;h===0&&y===0?g=Number.POSITIVE_INFINITY:h===0||y===0?g=Math.max(h,y):g=Math.min(h,y);const v={};Object.defineProperty(v,"maxMessageSize",{get(){return g}}),this._sctp=v}return c.apply(this,arguments)}}function bu(t){if(!(t.RTCPeerConnection&&"createDataChannel"in t.RTCPeerConnection.prototype))return;function e(r,s){const a=r.send;r.send=function(){const u=arguments[0],f=u.length||u.size||u.byteLength;if(r.readyState==="open"&&s.sctp&&f>s.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+s.sctp.maxMessageSize+" bytes)");return a.apply(r,arguments)}}const n=t.RTCPeerConnection.prototype.createDataChannel;t.RTCPeerConnection.prototype.createDataChannel=function(){const s=n.apply(this,arguments);return e(s,this),s},Ho(t,"datachannel",r=>(e(r.channel,r.target),r))}function $h(t){if(!t.RTCPeerConnection||"connectionState"in t.RTCPeerConnection.prototype)return;const e=t.RTCPeerConnection.prototype;Object.defineProperty(e,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=e[n];e[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=s=>{const a=s.target;if(a._lastConnectionState!==a.connectionState){a._lastConnectionState=a.connectionState;const c=new Event("connectionstatechange",s);a.dispatchEvent(c)}return s},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function jh(t,e){if(!t.RTCPeerConnection||e.browser==="chrome"&&e.version>=71||e.browser==="safari"&&e.version>=605)return;const n=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(s){if(s&&s.sdp&&s.sdp.indexOf(`
256
- a=extmap-allow-mixed`)!==-1){const a=s.sdp.split(`
257
- `).filter(c=>c.trim()!=="a=extmap-allow-mixed").join(`
258
- `);t.RTCSessionDescription&&s instanceof t.RTCSessionDescription?arguments[0]=new t.RTCSessionDescription({type:s.type,sdp:a}):s.sdp=a}return n.apply(this,arguments)}}function Su(t,e){if(!(t.RTCPeerConnection&&t.RTCPeerConnection.prototype))return;const n=t.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(t.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(e.browser==="chrome"&&e.version<78||e.browser==="firefox"&&e.version<68||e.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function _u(t,e){if(!(t.RTCPeerConnection&&t.RTCPeerConnection.prototype))return;const n=t.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(t.RTCPeerConnection.prototype.setLocalDescription=function(){let s=arguments[0]||{};if(typeof s!="object"||s.type&&s.sdp)return n.apply(this,arguments);if(s={type:s.type,sdp:s.sdp},!s.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":s.type="offer";break;default:s.type="answer";break}return s.sdp||s.type!=="offer"&&s.type!=="answer"?n.apply(this,[s]):(s.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(c=>n.apply(this,[c]))})}const v4=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:jh,shimAddIceCandidateNullOrEmpty:Su,shimConnectionState:$h,shimMaxMessageSize:vu,shimParameterlessSetLocalDescription:_u,shimRTCIceCandidate:gu,shimRTCIceCandidateRelayProtocol:Fh,shimSendThrowTypeError:bu},Symbol.toStringTag,{value:"Module"}));function b4({window:t}={},e={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=a2,r=h4(t),s={browserDetails:r,commonShim:v4,extractVersion:yu,disableLog:f4,disableWarnings:p4,sdp:g4};switch(r.browser){case"chrome":if(!A1||!Bh||!e.shimChrome)return n("Chrome shim is not included in this adapter release."),s;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),s;n("adapter.js shimming chrome."),s.browserShim=A1,Su(t,r),_u(t),c2(t,r),u2(t),Bh(t,r),d2(t),m2(t,r),f2(t),p2(t),y2(t,r),gu(t),Fh(t),$h(t),vu(t,r),bu(t),jh(t,r);break;case"firefox":if(!P1||!Lh||!e.shimFirefox)return n("Firefox shim is not included in this adapter release."),s;n("adapter.js shimming firefox."),s.browserShim=P1,Su(t,r),_u(t),g2(t,r),Lh(t,r),v2(t),_2(t),b2(t),S2(t),w2(t),C2(t),x2(t),I2(t),T2(t),gu(t),$h(t),vu(t,r),bu(t);break;case"safari":if(!O1||!e.shimSafari)return n("Safari shim is not included in this adapter release."),s;n("adapter.js shimming safari."),s.browserShim=O1,Su(t,r),_u(t),O2(t),D2(t),E2(t),k2(t),R2(t),M2(t),A2(t),N2(t),gu(t),Fh(t),vu(t,r),bu(t),jh(t,r);break;default:n("Unsupported browser!");break}return s}b4({window:typeof window>"u"?void 0:window});function S4(t){const[e,n]=A.useState({video:void 0,audio:void 0}),{state:r,start:s,stop:a}=u4(t,e.video,e.audio,t.onComponentValueChange,n),c=t.mode,u=t.disabled||r.webRtcState==="SIGNALLING"&&!r.signallingTimedOut||r.webRtcState==="STOPPING"||t.desiredPlayingState!=null,f=Dh(c)&&s4(c),h=Dh(c)&&a4(c),{videoEnabled:y,audioEnabled:g}=n4(t.mediaStreamConstraints),[v,_]=A.useState(!1),C=A.useCallback(()=>{_(!0)},[]),w=A.useCallback(()=>{_(!1)},[]);return v?j.jsx(K5,{video:y,audio:g,defaultVideoDeviceId:e.video,defaultAudioDeviceId:e.audio,onSelect:n,onClose:w}):j.jsxs($s,{children:[r.error&&j.jsxs(X_,{severity:"error",children:[r.error.name,": ",r.error.message]}),j.jsx($s,{py:1,display:"flex",children:r.stream?j.jsx(X5,{stream:r.stream,userDefinedVideoAttrs:t.videoHtmlAttrs,userDefinedAudioAttrs:t.audioHtmlAttrs}):f&&j.jsx(e4,{loading:r.webRtcState==="SIGNALLING"})}),j.jsxs($s,{display:"flex",justifyContent:"space-between",children:[r.webRtcState==="PLAYING"||r.webRtcState==="SIGNALLING"?j.jsx(Jp,{variant:"contained",onClick:a,disabled:u,translationKey:"stop",defaultText:"Stop"}):j.jsx(Jp,{variant:"contained",color:"primary",onClick:s,disabled:u,translationKey:"start",defaultText:"Start"}),h&&r.webRtcState==="STOPPED"&&j.jsx(Jp,{color:"inherit",onClick:C,translationKey:"select_device",defaultText:"Select Device"})]})]})}function _4(){const t=ud.useRenderData(),e=t.args.mode,n=t.args.desired_playing_state,r=t.args.sdp_answer_json,s=t.args.rtc_configuration,a=t.args.media_stream_constraints,c=t.args.video_html_attrs,u=t.args.audio_html_attrs;if(!Dh(e))throw new Error(`Invalid mode ${e}`);return j.jsx(S4,{disabled:t.disabled,mode:e,desiredPlayingState:n,sdpAnswerJson:r,rtcConfiguration:s,mediaStreamConstraints:a,videoHtmlAttrs:c,audioHtmlAttrs:u,onComponentValueChange:d4})}const L2=document.getElementById("root");if(!L2)throw new Error("Failed to find the root element");const w4=VC.createRoot(L2);w4.render(j.jsx(Nt.StrictMode,{children:j.jsx(ud.StreamlitProvider,{children:j.jsx($P,{children:j.jsxs(PP,{children:[j.jsx(LP,{}),j.jsx(_4,{})]})})})}));