streamlit-bar-visualizer 0.1.0__py3-none-any.whl → 0.1.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.
- streamlit_bar_visualizer/__init__.py +1 -1
- streamlit_bar_visualizer/frontend/build/index.html +2 -2
- streamlit_bar_visualizer/frontend/build/static/js/index.js +9 -9
- {streamlit_bar_visualizer-0.1.0.dist-info → streamlit_bar_visualizer-0.1.2.dist-info}/METADATA +1 -1
- streamlit_bar_visualizer-0.1.2.dist-info/RECORD +9 -0
- streamlit_bar_visualizer-0.1.0.dist-info/RECORD +0 -9
- {streamlit_bar_visualizer-0.1.0.dist-info → streamlit_bar_visualizer-0.1.2.dist-info}/WHEEL +0 -0
- {streamlit_bar_visualizer-0.1.0.dist-info → streamlit_bar_visualizer-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {streamlit_bar_visualizer-0.1.0.dist-info → streamlit_bar_visualizer-0.1.2.dist-info}/top_level.txt +0 -0
@@ -14,7 +14,7 @@ var fg=Object.defineProperty;var hg=(e,t,n)=>t in e?fg(e,t,{enumerable:!0,config
|
|
14
14
|
*
|
15
15
|
* This source code is licensed under the MIT license found in the
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var Dg=ht,
|
17
|
+
*/var Dg=ht,Ng=Symbol.for("react.element"),kg=Symbol.for("react.fragment"),Tg=Object.prototype.hasOwnProperty,xg=Dg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cg={key:!0,ref:!0,__self:!0,__source:!0};function ch(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Tg.call(t,r)&&!Cg.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Ng,type:e,key:s,ref:o,props:i,_owner:xg.current}}Ol.Fragment=kg;Ol.jsx=ch;Ol.jsxs=ch;th.exports=Ol;var Un=th.exports,dh={exports:{}},he={},fh={exports:{}},hh={};/**
|
18
18
|
* @license React
|
19
19
|
* scheduler.production.min.js
|
20
20
|
*
|
@@ -22,7 +22,7 @@ var fg=Object.defineProperty;var hg=(e,t,n)=>t in e?fg(e,t,{enumerable:!0,config
|
|
22
22
|
*
|
23
23
|
* This source code is licensed under the MIT license found in the
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
25
|
-
*/(function(e){function t(F,P){var V=F.length;F.push(P);t:for(;0<V;){var vt=V-1>>>1,Ft=F[vt];if(0<i(Ft,P))F[vt]=P,F[V]=Ft,V=vt;else break t}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var P=F[0],V=F.pop();if(V!==P){F[0]=V;t:for(var vt=0,Ft=F.length,zs=Ft>>>1;vt<zs;){var lr=2*(vt+1)-1,sa=F[lr],ar=lr+1,js=F[ar];if(0>i(sa,V))ar<Ft&&0>i(js,sa)?(F[vt]=js,F[ar]=V,vt=ar):(F[vt]=sa,F[lr]=V,vt=lr);else if(ar<Ft&&0>i(js,V))F[vt]=js,F[ar]=V,vt=ar;else break t}}return P}function i(F,P){var V=F.sortIndex-P.sortIndex;return V!==0?V:F.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,
|
25
|
+
*/(function(e){function t(F,P){var V=F.length;F.push(P);t:for(;0<V;){var vt=V-1>>>1,Ft=F[vt];if(0<i(Ft,P))F[vt]=P,F[V]=Ft,V=vt;else break t}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var P=F[0],V=F.pop();if(V!==P){F[0]=V;t:for(var vt=0,Ft=F.length,zs=Ft>>>1;vt<zs;){var lr=2*(vt+1)-1,sa=F[lr],ar=lr+1,js=F[ar];if(0>i(sa,V))ar<Ft&&0>i(js,sa)?(F[vt]=js,F[ar]=V,vt=ar):(F[vt]=sa,F[lr]=V,vt=lr);else if(ar<Ft&&0>i(js,V))F[vt]=js,F[ar]=V,vt=ar;else break t}}return P}function i(F,P){var V=F.sortIndex-P.sortIndex;return V!==0?V:F.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,m=3,g=!1,v=!1,S=!1,Q=typeof setTimeout=="function"?setTimeout:null,h=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 y(F){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=F)r(u),P.sortIndex=P.expirationTime,t(a,P);else break;P=n(u)}}function w(F){if(S=!1,y(F),!v)if(n(a)!==null)v=!0,ra(I);else{var P=n(u);P!==null&&ia(w,P.startTime-F)}}function I(F,P){v=!1,S&&(S=!1,h(O),O=-1),g=!0;var V=m;try{for(y(P),f=n(a);f!==null&&(!(f.expirationTime>P)||F&&!Nt());){var vt=f.callback;if(typeof vt=="function"){f.callback=null,m=f.priorityLevel;var Ft=vt(f.expirationTime<=P);P=e.unstable_now(),typeof Ft=="function"?f.callback=Ft:f===n(a)&&r(a),y(P)}else r(a);f=n(a)}if(f!==null)var zs=!0;else{var lr=n(u);lr!==null&&ia(w,lr.startTime-P),zs=!1}return zs}finally{f=null,m=V,g=!1}}var b=!1,E=null,O=-1,W=5,A=-1;function Nt(){return!(e.unstable_now()-A<W)}function sn(){if(E!==null){var F=e.unstable_now();A=F;var P=!0;try{P=E(!0,F)}finally{P?on():(b=!1,E=null)}}else b=!1}var on;if(typeof d=="function")on=function(){d(sn)};else if(typeof MessageChannel<"u"){var Mr=new MessageChannel,dg=Mr.port2;Mr.port1.onmessage=sn,on=function(){dg.postMessage(null)}}else on=function(){Q(sn,0)};function ra(F){E=F,b||(b=!0,on())}function ia(F,P){O=Q(function(){F(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,ra(I))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(F){switch(m){case 1:case 2:case 3:var P=3;break;default:P=m}var V=m;m=P;try{return F()}finally{m=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,P){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var V=m;m=F;try{return P()}finally{m=V}},e.unstable_scheduleCallback=function(F,P,V){var vt=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?vt+V:vt):V=vt,F){case 1:var Ft=-1;break;case 2:Ft=250;break;case 5:Ft=1073741823;break;case 4:Ft=1e4;break;default:Ft=5e3}return Ft=V+Ft,F={id:c++,callback:P,priorityLevel:F,startTime:V,expirationTime:Ft,sortIndex:-1},V>vt?(F.sortIndex=V,t(u,F),n(a)===null&&F===n(u)&&(S?(h(O),O=-1):S=!0,ia(w,V-vt))):(F.sortIndex=Ft,t(a,F),v||g||(v=!0,ra(I))),F},e.unstable_shouldYield=Nt,e.unstable_wrapCallback=function(F){var P=m;return function(){var V=m;m=P;try{return F.apply(this,arguments)}finally{m=V}}}})(hh);fh.exports=hh;var Mg=fh.exports;/**
|
26
26
|
* @license React
|
27
27
|
* react-dom.production.min.js
|
28
28
|
*
|
@@ -30,24 +30,24 @@ var fg=Object.defineProperty;var hg=(e,t,n)=>t in e?fg(e,t,{enumerable:!0,config
|
|
30
30
|
*
|
31
31
|
* This source code is licensed under the MIT license found in the
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
33
|
-
*/var Lg=ht,ce=Mg;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ph=new Set,is={};function Tr(e,t){fi(e,t),fi(e+"Capture",t)}function fi(e,t){for(is[e]=t,e=0;e<t.length;e++)ph.add(t[e])}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pa=Object.prototype.hasOwnProperty,Rg=/^[: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]*$/,bd={},Bd={};function Ug(e){return Pa.call(Bd,e)?!0:Pa.call(bd,e)?!1:Rg.test(e)?Bd[e]=!0:(bd[e]=!0,!1)}function Pg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zg(e,t,n,r){if(t===null||typeof t>"u"||Pg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Wt(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xt[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xt[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xt[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xt[e]=new Wt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xt[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xt[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xt[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xt[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xt[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gu=/[\-:]([a-z])/g;function Xu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gu,Xu);xt[t]=new Wt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gu,Xu);xt[t]=new Wt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gu,Xu);xt[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});xt.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zu(e,t,n,r){var i=xt.hasOwnProperty(t)?xt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zg(t,n,i,r)&&(n=null),r||i===null?Ug(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var En=Lg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$s=Symbol.for("react.element"),Vr=Symbol.for("react.portal"),$r=Symbol.for("react.fragment"),qu=Symbol.for("react.strict_mode"),za=Symbol.for("react.profiler"),yh=Symbol.for("react.provider"),mh=Symbol.for("react.context"),tc=Symbol.for("react.forward_ref"),ja=Symbol.for("react.suspense"),Va=Symbol.for("react.suspense_list"),ec=Symbol.for("react.memo"),
|
33
|
+
*/var Lg=ht,ce=Mg;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ph=new Set,is={};function Tr(e,t){fi(e,t),fi(e+"Capture",t)}function fi(e,t){for(is[e]=t,e=0;e<t.length;e++)ph.add(t[e])}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pa=Object.prototype.hasOwnProperty,Rg=/^[: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]*$/,bd={},Bd={};function Ug(e){return Pa.call(Bd,e)?!0:Pa.call(bd,e)?!1:Rg.test(e)?Bd[e]=!0:(bd[e]=!0,!1)}function Pg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zg(e,t,n,r){if(t===null||typeof t>"u"||Pg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Wt(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xt[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xt[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xt[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xt[e]=new Wt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xt[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xt[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xt[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xt[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xt[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gu=/[\-:]([a-z])/g;function Xu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gu,Xu);xt[t]=new Wt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gu,Xu);xt[t]=new Wt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gu,Xu);xt[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});xt.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zu(e,t,n,r){var i=xt.hasOwnProperty(t)?xt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zg(t,n,i,r)&&(n=null),r||i===null?Ug(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var En=Lg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$s=Symbol.for("react.element"),Vr=Symbol.for("react.portal"),$r=Symbol.for("react.fragment"),qu=Symbol.for("react.strict_mode"),za=Symbol.for("react.profiler"),yh=Symbol.for("react.provider"),mh=Symbol.for("react.context"),tc=Symbol.for("react.forward_ref"),ja=Symbol.for("react.suspense"),Va=Symbol.for("react.suspense_list"),ec=Symbol.for("react.memo"),Nn=Symbol.for("react.lazy"),gh=Symbol.for("react.offscreen"),Ed=Symbol.iterator;function ki(e){return e===null||typeof e!="object"?null:(e=Ed&&e[Ed]||e["@@iterator"],typeof e=="function"?e:null)}var mt=Object.assign,la;function zi(e){if(la===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);la=t&&t[1]||""}return`
|
34
34
|
`+la+e}var aa=!1;function ua(e,t){if(!e||aa)return"";aa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
35
35
|
`),s=r.stack.split(`
|
36
36
|
`),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
|
37
|
-
`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{aa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zi(e):""}function jg(e){switch(e.tag){case 5:return zi(e.type);case 16:return zi("Lazy");case 13:return zi("Suspense");case 19:return zi("SuspenseList");case 0:case 2:case 15:return e=ua(e.type,!1),e;case 11:return e=ua(e.type.render,!1),e;case 1:return e=ua(e.type,!0),e;default:return""}}function $a(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $r:return"Fragment";case Vr:return"Portal";case za:return"Profiler";case qu:return"StrictMode";case ja:return"Suspense";case Va:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mh:return(e.displayName||"Context")+".Consumer";case yh:return(e._context.displayName||"Context")+".Provider";case tc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ec:return t=e.displayName||null,t!==null?t:$a(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return $a(e(t))}catch{}}return null}function Vg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $a(t);case 8:return t===qu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $g(e){var t=vh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ws(e){e._valueTracker||(e._valueTracker=$g(e))}function wh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ao(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wa(e,t){var n=t.checked;return mt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _h(e,t){t=t.checked,t!=null&&Zu(e,"checked",t,!1)}function Ha(e,t){_h(e,t);var n=Qn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ya(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ya(e,t.type,Qn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Od(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ya(e,t,n){(t!=="number"||Ao(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ji=Array.isArray;function ei(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Qn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return mt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ad(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(ji(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qn(n)}}function Sh(e,t){var n=Qn(t.value),r=Qn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Dd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ih(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ka(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ih(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hs,bh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Hs=Hs||document.createElement("div"),Hs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ss(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yi={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},Wg=["Webkit","ms","Moz","O"];Object.keys(Yi).forEach(function(e){Wg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yi[t]=Yi[e]})});function Bh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yi.hasOwnProperty(e)&&Yi[e]?(""+t).trim():t+"px"}function Eh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Bh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Hg=mt({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 Ja(e,t){if(t){if(Hg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Ga(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xa=null;function nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,ni=null,ri=null;function kd(e){if(e=Ns(e)){if(typeof Za!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Tl(t),Za(e.stateNode,e.type,t))}}function Fh(e){ni?ri?ri.push(e):ri=[e]:ni=e}function Oh(){if(ni){var e=ni,t=ri;if(ri=ni=null,kd(e),t)for(e=0;e<t.length;e++)kd(t[e])}}function Ah(e,t){return e(t)}function Dh(){}var ca=!1;function kh(e,t,n){if(ca)return e(t,n);ca=!0;try{return Ah(e,t,n)}finally{ca=!1,(ni!==null||ri!==null)&&(Dh(),Oh())}}function os(e,t){var n=e.stateNode;if(n===null)return null;var r=Tl(n);if(r===null)return null;n=r[t];t:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break t;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var qa=!1;if(_n)try{var Ti={};Object.defineProperty(Ti,"passive",{get:function(){qa=!0}}),window.addEventListener("test",Ti,Ti),window.removeEventListener("test",Ti,Ti)}catch{qa=!1}function Yg(e,t,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Qi=!1,Do=null,ko=!1,tu=null,Qg={onError:function(e){Qi=!0,Do=e}};function Kg(e,t,n,r,i,s,o,l,a){Qi=!1,Do=null,Yg.apply(Qg,arguments)}function Jg(e,t,n,r,i,s,o,l,a){if(Kg.apply(this,arguments),Qi){if(Qi){var u=Do;Qi=!1,Do=null}else throw Error(_(198));ko||(ko=!0,tu=u)}}function xr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Nh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Nd(e){if(xr(e)!==e)throw Error(_(188))}function Gg(e){var t=e.alternate;if(!t){if(t=xr(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Nd(i),e;if(s===r)return Nd(i),t;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function Th(e){return e=Gg(e),e!==null?xh(e):null}function xh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xh(e);if(t!==null)return t;e=e.sibling}return null}var Ch=ce.unstable_scheduleCallback,Td=ce.unstable_cancelCallback,Xg=ce.unstable_shouldYield,Zg=ce.unstable_requestPaint,wt=ce.unstable_now,qg=ce.unstable_getCurrentPriorityLevel,rc=ce.unstable_ImmediatePriority,Mh=ce.unstable_UserBlockingPriority,No=ce.unstable_NormalPriority,t0=ce.unstable_LowPriority,Lh=ce.unstable_IdlePriority,Al=null,qe=null;function e0(e){if(qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(Al,e,void 0,(e.current.flags&128)===128)}catch{}}var Te=Math.clz32?Math.clz32:i0,n0=Math.log,r0=Math.LN2;function i0(e){return e>>>=0,e===0?32:31-(n0(e)/r0|0)|0}var Ys=64,Qs=4194304;function Vi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function To(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Vi(l):(s&=o,s!==0&&(r=Vi(s)))}else o=n&~i,o!==0?r=Vi(o):s!==0&&(r=Vi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Te(t),i=1<<n,r|=e[n],t&=~i;return r}function s0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function o0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Te(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=s0(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function eu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rh(){var e=Ys;return Ys<<=1,!(Ys&4194240)&&(Ys=64),e}function da(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ds(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Te(t),e[t]=n}function l0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Te(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function ic(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Te(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var et=0;function Uh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ph,sc,zh,jh,Vh,nu=!1,Ks=[],Pn=null,zn=null,jn=null,ls=new Map,as=new Map,Cn=[],a0="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 xd(e,t){switch(e){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":zn=null;break;case"mouseover":case"mouseout":jn=null;break;case"pointerover":case"pointerout":ls.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":as.delete(t.pointerId)}}function xi(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Ns(t),t!==null&&sc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function u0(e,t,n,r,i){switch(t){case"focusin":return Pn=xi(Pn,e,t,n,r,i),!0;case"dragenter":return zn=xi(zn,e,t,n,r,i),!0;case"mouseover":return jn=xi(jn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ls.set(s,xi(ls.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,as.set(s,xi(as.get(s)||null,e,t,n,r,i)),!0}return!1}function $h(e){var t=hr(e.target);if(t!==null){var n=xr(t);if(n!==null){if(t=n.tag,t===13){if(t=Nh(n),t!==null){e.blockedOn=t,Vh(e.priority,function(){zh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function co(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ru(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xa=r,n.target.dispatchEvent(r),Xa=null}else return t=Ns(n),t!==null&&sc(t),e.blockedOn=n,!1;t.shift()}return!0}function Cd(e,t,n){co(e)&&n.delete(t)}function c0(){nu=!1,Pn!==null&&co(Pn)&&(Pn=null),zn!==null&&co(zn)&&(zn=null),jn!==null&&co(jn)&&(jn=null),ls.forEach(Cd),as.forEach(Cd)}function Ci(e,t){e.blockedOn===t&&(e.blockedOn=null,nu||(nu=!0,ce.unstable_scheduleCallback(ce.unstable_NormalPriority,c0)))}function us(e){function t(i){return Ci(i,e)}if(0<Ks.length){Ci(Ks[0],e);for(var n=1;n<Ks.length;n++){var r=Ks[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pn!==null&&Ci(Pn,e),zn!==null&&Ci(zn,e),jn!==null&&Ci(jn,e),ls.forEach(t),as.forEach(t),n=0;n<Cn.length;n++)r=Cn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cn.length&&(n=Cn[0],n.blockedOn===null);)$h(n),n.blockedOn===null&&Cn.shift()}var ii=En.ReactCurrentBatchConfig,xo=!0;function d0(e,t,n,r){var i=et,s=ii.transition;ii.transition=null;try{et=1,oc(e,t,n,r)}finally{et=i,ii.transition=s}}function f0(e,t,n,r){var i=et,s=ii.transition;ii.transition=null;try{et=4,oc(e,t,n,r)}finally{et=i,ii.transition=s}}function oc(e,t,n,r){if(xo){var i=ru(e,t,n,r);if(i===null)Sa(e,t,r,Co,n),xd(e,r);else if(u0(i,e,t,n,r))r.stopPropagation();else if(xd(e,r),t&4&&-1<a0.indexOf(e)){for(;i!==null;){var s=Ns(i);if(s!==null&&Ph(s),s=ru(e,t,n,r),s===null&&Sa(e,t,r,Co,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Sa(e,t,r,null,n)}}var Co=null;function ru(e,t,n,r){if(Co=null,e=nc(r),e=hr(e),e!==null)if(t=xr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Co=e,null}function Wh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qg()){case rc:return 1;case Mh:return 4;case No:case t0:return 16;case Lh:return 536870912;default:return 16}default:return 16}}var Ln=null,lc=null,fo=null;function Hh(){if(fo)return fo;var e,t=lc,n=t.length,r,i="value"in Ln?Ln.value:Ln.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return fo=i.slice(e,1<r?1-r:void 0)}function ho(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Js(){return!0}function Md(){return!1}function pe(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Js:Md,this.isPropagationStopped=Md,this}return mt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Js)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Js)},persist:function(){},isPersistent:Js}),t}var Oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ac=pe(Oi),ks=mt({},Oi,{view:0,detail:0}),h0=pe(ks),fa,ha,Mi,Dl=mt({},ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Mi&&(Mi&&e.type==="mousemove"?(fa=e.screenX-Mi.screenX,ha=e.screenY-Mi.screenY):ha=fa=0,Mi=e),fa)},movementY:function(e){return"movementY"in e?e.movementY:ha}}),Ld=pe(Dl),p0=mt({},Dl,{dataTransfer:0}),y0=pe(p0),m0=mt({},ks,{relatedTarget:0}),pa=pe(m0),g0=mt({},Oi,{animationName:0,elapsedTime:0,pseudoElement:0}),v0=pe(g0),w0=mt({},Oi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_0=pe(w0),S0=mt({},Oi,{data:0}),Rd=pe(S0),I0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},b0={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"},B0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B0[e])?!!t[e]:!1}function uc(){return E0}var F0=mt({},ks,{key:function(e){if(e.key){var t=I0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ho(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?b0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uc,charCode:function(e){return e.type==="keypress"?ho(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ho(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O0=pe(F0),A0=mt({},Dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=pe(A0),D0=mt({},ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uc}),k0=pe(D0),N0=mt({},Oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),T0=pe(N0),x0=mt({},Dl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),C0=pe(x0),M0=[9,13,27,32],cc=_n&&"CompositionEvent"in window,Ki=null;_n&&"documentMode"in document&&(Ki=document.documentMode);var L0=_n&&"TextEvent"in window&&!Ki,Yh=_n&&(!cc||Ki&&8<Ki&&11>=Ki),Pd=" ",zd=!1;function Qh(e,t){switch(e){case"keyup":return M0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function R0(e,t){switch(e){case"compositionend":return Kh(t);case"keypress":return t.which!==32?null:(zd=!0,Pd);case"textInput":return e=t.data,e===Pd&&zd?null:e;default:return null}}function U0(e,t){if(Wr)return e==="compositionend"||!cc&&Qh(e,t)?(e=Hh(),fo=lc=Ln=null,Wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yh&&t.locale!=="ko"?null:t.data;default:return null}}var P0={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 jd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!P0[e.type]:t==="textarea"}function Jh(e,t,n,r){Fh(r),t=Mo(t,"onChange"),0<t.length&&(n=new ac("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ji=null,cs=null;function z0(e){op(e,0)}function kl(e){var t=Qr(e);if(wh(t))return e}function j0(e,t){if(e==="change")return t}var Gh=!1;if(_n){var ya;if(_n){var ma="oninput"in document;if(!ma){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),ma=typeof Vd.oninput=="function"}ya=ma}else ya=!1;Gh=ya&&(!document.documentMode||9<document.documentMode)}function $d(){Ji&&(Ji.detachEvent("onpropertychange",Xh),cs=Ji=null)}function Xh(e){if(e.propertyName==="value"&&kl(cs)){var t=[];Jh(t,cs,e,nc(e)),kh(z0,t)}}function V0(e,t,n){e==="focusin"?($d(),Ji=t,cs=n,Ji.attachEvent("onpropertychange",Xh)):e==="focusout"&&$d()}function $0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kl(cs)}function W0(e,t){if(e==="click")return kl(t)}function H0(e,t){if(e==="input"||e==="change")return kl(t)}function Y0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Me=typeof Object.is=="function"?Object.is:Y0;function ds(e,t){if(Me(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Pa.call(t,i)||!Me(e[i],t[i]))return!1}return!0}function Wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hd(e,t){var n=Wd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Wd(n)}}function Zh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qh(){for(var e=window,t=Ao();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ao(e.document)}return t}function dc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q0(e){var t=qh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zh(n.ownerDocument.documentElement,n)){if(r!==null&&dc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Hd(n,s);var o=Hd(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var K0=_n&&"documentMode"in document&&11>=document.documentMode,Hr=null,iu=null,Gi=null,su=!1;function Yd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;su||Hr==null||Hr!==Ao(r)||(r=Hr,"selectionStart"in r&&dc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gi&&ds(Gi,r)||(Gi=r,r=Mo(iu,"onSelect"),0<r.length&&(t=new ac("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function Gs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yr={animationend:Gs("Animation","AnimationEnd"),animationiteration:Gs("Animation","AnimationIteration"),animationstart:Gs("Animation","AnimationStart"),transitionend:Gs("Transition","TransitionEnd")},ga={},tp={};_n&&(tp=document.createElement("div").style,"AnimationEvent"in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),"TransitionEvent"in window||delete Yr.transitionend.transition);function Nl(e){if(ga[e])return ga[e];if(!Yr[e])return e;var t=Yr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in tp)return ga[e]=t[n];return e}var ep=Nl("animationend"),np=Nl("animationiteration"),rp=Nl("animationstart"),ip=Nl("transitionend"),sp=new Map,Qd="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 er(e,t){sp.set(e,t),Tr(t,[e])}for(var va=0;va<Qd.length;va++){var wa=Qd[va],J0=wa.toLowerCase(),G0=wa[0].toUpperCase()+wa.slice(1);er(J0,"on"+G0)}er(ep,"onAnimationEnd");er(np,"onAnimationIteration");er(rp,"onAnimationStart");er("dblclick","onDoubleClick");er("focusin","onFocus");er("focusout","onBlur");er(ip,"onTransitionEnd");fi("onMouseEnter",["mouseout","mouseover"]);fi("onMouseLeave",["mouseout","mouseover"]);fi("onPointerEnter",["pointerout","pointerover"]);fi("onPointerLeave",["pointerout","pointerover"]);Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $i="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(" "),X0=new Set("cancel close invalid load scroll toggle".split(" ").concat($i));function Kd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Jg(r,t,void 0,e),e.currentTarget=null}function op(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;t:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break t;Kd(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break t;Kd(i,l,u),s=a}}}if(ko)throw e=tu,ko=!1,tu=null,e}function lt(e,t){var n=t[cu];n===void 0&&(n=t[cu]=new Set);var r=e+"__bubble";n.has(r)||(lp(t,e,2,!1),n.add(r))}function _a(e,t,n){var r=0;t&&(r|=4),lp(n,e,r,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function fs(e){if(!e[Xs]){e[Xs]=!0,ph.forEach(function(n){n!=="selectionchange"&&(X0.has(n)||_a(n,!1,e),_a(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,_a("selectionchange",!1,t))}}function lp(e,t,n,r){switch(Wh(t)){case 1:var i=d0;break;case 4:i=f0;break;default:i=oc}n=i.bind(null,t,n,e),i=void 0,!qa||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Sa(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)t:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=hr(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue t}l=l.parentNode}}r=r.return}kh(function(){var u=s,c=nc(n),f=[];t:{var p=sp.get(e);if(p!==void 0){var g=ac,v=e;switch(e){case"keypress":if(ho(n)===0)break t;case"keydown":case"keyup":g=O0;break;case"focusin":v="focus",g=pa;break;case"focusout":v="blur",g=pa;break;case"beforeblur":case"afterblur":g=pa;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=y0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=k0;break;case ep:case np:case rp:g=v0;break;case ip:g=T0;break;case"scroll":g=h0;break;case"wheel":g=C0;break;case"copy":case"cut":case"paste":g=_0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ud}var S=(t&4)!==0,Q=!S&&e==="scroll",h=S?p!==null?p+"Capture":null:p;S=[];for(var d=u,m;d!==null;){m=d;var w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,h!==null&&(w=os(d,h),w!=null&&S.push(hs(d,w,m)))),Q)break;d=d.return}0<S.length&&(p=new g(p,v,null,n,c),f.push({event:p,listeners:S}))}}if(!(t&7)){t:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==Xa&&(v=n.relatedTarget||n.fromElement)&&(hr(v)||v[Sn]))break t;if((g||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?hr(v):null,v!==null&&(Q=xr(v),v!==Q||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(S=Ld,w="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(S=Ud,w="onPointerLeave",h="onPointerEnter",d="pointer"),Q=g==null?p:Qr(g),m=v==null?p:Qr(v),p=new S(w,d+"leave",g,n,c),p.target=Q,p.relatedTarget=m,w=null,hr(c)===u&&(S=new S(h,d+"enter",v,n,c),S.target=m,S.relatedTarget=Q,w=S),Q=w,g&&v)e:{for(S=g,h=v,d=0,m=S;m;m=Lr(m))d++;for(m=0,w=h;w;w=Lr(w))m++;for(;0<d-m;)S=Lr(S),d--;for(;0<m-d;)h=Lr(h),m--;for(;d--;){if(S===h||h!==null&&S===h.alternate)break e;S=Lr(S),h=Lr(h)}S=null}else S=null;g!==null&&Jd(f,p,g,S,!1),v!==null&&Q!==null&&Jd(f,Q,v,S,!0)}}t:{if(p=u?Qr(u):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var I=j0;else if(jd(p))if(Gh)I=H0;else{I=$0;var b=V0}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(I=W0);if(I&&(I=I(e,u))){Jh(f,I,n,c);break t}b&&b(e,p,u),e==="focusout"&&(b=p._wrapperState)&&b.controlled&&p.type==="number"&&Ya(p,"number",p.value)}switch(b=u?Qr(u):window,e){case"focusin":(jd(b)||b.contentEditable==="true")&&(Hr=b,iu=u,Gi=null);break;case"focusout":Gi=iu=Hr=null;break;case"mousedown":su=!0;break;case"contextmenu":case"mouseup":case"dragend":su=!1,Yd(f,n,c);break;case"selectionchange":if(K0)break;case"keydown":case"keyup":Yd(f,n,c)}var E;if(cc)t:{switch(e){case"compositionstart":var O="onCompositionStart";break t;case"compositionend":O="onCompositionEnd";break t;case"compositionupdate":O="onCompositionUpdate";break t}O=void 0}else Wr?Qh(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Yh&&n.locale!=="ko"&&(Wr||O!=="onCompositionStart"?O==="onCompositionEnd"&&Wr&&(E=Hh()):(Ln=c,lc="value"in Ln?Ln.value:Ln.textContent,Wr=!0)),b=Mo(u,O),0<b.length&&(O=new Rd(O,e,null,n,c),f.push({event:O,listeners:b}),E?O.data=E:(E=Kh(n),E!==null&&(O.data=E)))),(E=L0?R0(e,n):U0(e,n))&&(u=Mo(u,"onBeforeInput"),0<u.length&&(c=new Rd("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}op(f,t)})}function hs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=os(e,n),s!=null&&r.unshift(hs(e,s,i)),s=os(e,t),s!=null&&r.push(hs(e,s,i))),e=e.return}return r}function Lr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Jd(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=os(n,s),a!=null&&o.unshift(hs(n,a,l))):i||(a=os(n,s),a!=null&&o.push(hs(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Z0=/\r\n?/g,q0=/\u0000|\uFFFD/g;function Gd(e){return(typeof e=="string"?e:""+e).replace(Z0,`
|
38
|
-
`).replace(q0,"")}function Zs(e,t,n){if(t=Gd(t),Gd(e)!==t&&n)throw Error(_(425))}function Lo(){}var ou=null,lu=null;function au(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var uu=typeof setTimeout=="function"?setTimeout:void 0,tv=typeof clearTimeout=="function"?clearTimeout:void 0,Xd=typeof Promise=="function"?Promise:void 0,ev=typeof queueMicrotask=="function"?queueMicrotask:typeof Xd<"u"?function(e){return Xd.resolve(null).then(e).catch(nv)}:uu;function nv(e){setTimeout(function(){throw e})}function Ia(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),us(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);us(t)}function Vn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Zd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ai=Math.random().toString(36).slice(2),We="__reactFiber$"+Ai,ps="__reactProps$"+Ai,Sn="__reactContainer$"+Ai,cu="__reactEvents$"+Ai,rv="__reactListeners$"+Ai,iv="__reactHandles$"+Ai;function hr(e){var t=e[We];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[We]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zd(e);e!==null;){if(n=e[We])return n;e=Zd(e)}return t}e=n,n=e.parentNode}return null}function Ns(e){return e=e[We]||e[Sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Tl(e){return e[ps]||null}var du=[],Kr=-1;function nr(e){return{current:e}}function at(e){0>Kr||(e.current=du[Kr],du[Kr]=null,Kr--)}function ot(e,t){Kr++,du[Kr]=e.current,e.current=t}var Kn={},Rt=nr(Kn),Xt=nr(!1),Fr=Kn;function hi(e,t){var n=e.type.contextTypes;if(!n)return Kn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Zt(e){return e=e.childContextTypes,e!=null}function Ro(){at(Xt),at(Rt)}function qd(e,t,n){if(Rt.current!==Kn)throw Error(_(168));ot(Rt,t),ot(Xt,n)}function ap(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,Vg(e)||"Unknown",i));return mt({},n,r)}function Uo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kn,Fr=Rt.current,ot(Rt,e),ot(Xt,Xt.current),!0}function tf(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=ap(e,t,Fr),r.__reactInternalMemoizedMergedChildContext=e,at(Xt),at(Rt),ot(Rt,e)):at(Xt),ot(Xt,n)}var fn=null,xl=!1,ba=!1;function up(e){fn===null?fn=[e]:fn.push(e)}function sv(e){xl=!0,up(e)}function rr(){if(!ba&&fn!==null){ba=!0;var e=0,t=et;try{var n=fn;for(et=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fn=null,xl=!1}catch(i){throw fn!==null&&(fn=fn.slice(e+1)),Ch(rc,rr),i}finally{et=t,ba=!1}}return null}var Jr=[],Gr=0,Po=null,zo=0,ve=[],we=0,Or=null,yn=1,mn="";function cr(e,t){Jr[Gr++]=zo,Jr[Gr++]=Po,Po=e,zo=t}function cp(e,t,n){ve[we++]=yn,ve[we++]=mn,ve[we++]=Or,Or=e;var r=yn;e=mn;var i=32-Te(r)-1;r&=~(1<<i),n+=1;var s=32-Te(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yn=1<<32-Te(t)+i|n<<i|r,mn=s+e}else yn=1<<s|n<<i|r,mn=e}function fc(e){e.return!==null&&(cr(e,1),cp(e,1,0))}function hc(e){for(;e===Po;)Po=Jr[--Gr],Jr[Gr]=null,zo=Jr[--Gr],Jr[Gr]=null;for(;e===Or;)Or=ve[--we],ve[we]=null,mn=ve[--we],ve[we]=null,yn=ve[--we],ve[we]=null}var ue=null,ae=null,ct=!1,Ne=null;function dp(e,t){var n=Ie(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ef(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ue=e,ae=Vn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ue=e,ae=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Or!==null?{id:yn,overflow:mn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ie(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ue=e,ae=null,!0):!1;default:return!1}}function fu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function hu(e){if(ct){var t=ae;if(t){var n=t;if(!ef(e,t)){if(fu(e))throw Error(_(418));t=Vn(n.nextSibling);var r=ue;t&&ef(e,t)?dp(r,n):(e.flags=e.flags&-4097|2,ct=!1,ue=e)}}else{if(fu(e))throw Error(_(418));e.flags=e.flags&-4097|2,ct=!1,ue=e}}}function nf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ue=e}function qs(e){if(e!==ue)return!1;if(!ct)return nf(e),ct=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!au(e.type,e.memoizedProps)),t&&(t=ae)){if(fu(e))throw fp(),Error(_(418));for(;t;)dp(e,t),t=Vn(t.nextSibling)}if(nf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));t:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ae=Vn(e.nextSibling);break t}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ae=null}}else ae=ue?Vn(e.stateNode.nextSibling):null;return!0}function fp(){for(var e=ae;e;)e=Vn(e.nextSibling)}function pi(){ae=ue=null,ct=!1}function pc(e){Ne===null?Ne=[e]:Ne.push(e)}var ov=En.ReactCurrentBatchConfig;function Li(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function to(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rf(e){var t=e._init;return t(e._payload)}function hp(e){function t(h,d){if(e){var m=h.deletions;m===null?(h.deletions=[d],h.flags|=16):m.push(d)}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function r(h,d){for(h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function i(h,d){return h=Yn(h,d),h.index=0,h.sibling=null,h}function s(h,d,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<d?(h.flags|=2,d):m):(h.flags|=2,d)):(h.flags|=1048576,d)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,d,m,w){return d===null||d.tag!==6?(d=ka(m,h.mode,w),d.return=h,d):(d=i(d,m),d.return=h,d)}function a(h,d,m,w){var I=m.type;return I===$r?c(h,d,m.props.children,w,m.key):d!==null&&(d.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===kn&&rf(I)===d.type)?(w=i(d,m.props),w.ref=Li(h,d,m),w.return=h,w):(w=_o(m.type,m.key,m.props,null,h.mode,w),w.ref=Li(h,d,m),w.return=h,w)}function u(h,d,m,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=Na(m,h.mode,w),d.return=h,d):(d=i(d,m.children||[]),d.return=h,d)}function c(h,d,m,w,I){return d===null||d.tag!==7?(d=br(m,h.mode,w,I),d.return=h,d):(d=i(d,m),d.return=h,d)}function f(h,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=ka(""+d,h.mode,m),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case $s:return m=_o(d.type,d.key,d.props,null,h.mode,m),m.ref=Li(h,null,d),m.return=h,m;case Vr:return d=Na(d,h.mode,m),d.return=h,d;case kn:var w=d._init;return f(h,w(d._payload),m)}if(ji(d)||Ni(d))return d=br(d,h.mode,m,null),d.return=h,d;to(h,d)}return null}function p(h,d,m,w){var I=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return I!==null?null:l(h,d,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case $s:return m.key===I?a(h,d,m,w):null;case Vr:return m.key===I?u(h,d,m,w):null;case kn:return I=m._init,p(h,d,I(m._payload),w)}if(ji(m)||Ni(m))return I!==null?null:c(h,d,m,w,null);to(h,m)}return null}function g(h,d,m,w,I){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(m)||null,l(d,h,""+w,I);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case $s:return h=h.get(w.key===null?m:w.key)||null,a(d,h,w,I);case Vr:return h=h.get(w.key===null?m:w.key)||null,u(d,h,w,I);case kn:var b=w._init;return g(h,d,m,b(w._payload),I)}if(ji(w)||Ni(w))return h=h.get(m)||null,c(d,h,w,I,null);to(d,w)}return null}function v(h,d,m,w){for(var I=null,b=null,E=d,O=d=0,W=null;E!==null&&O<m.length;O++){E.index>O?(W=E,E=null):W=E.sibling;var A=p(h,E,m[O],w);if(A===null){E===null&&(E=W);break}e&&E&&A.alternate===null&&t(h,E),d=s(A,d,O),b===null?I=A:b.sibling=A,b=A,E=W}if(O===m.length)return n(h,E),ct&&cr(h,O),I;if(E===null){for(;O<m.length;O++)E=f(h,m[O],w),E!==null&&(d=s(E,d,O),b===null?I=E:b.sibling=E,b=E);return ct&&cr(h,O),I}for(E=r(h,E);O<m.length;O++)W=g(E,h,O,m[O],w),W!==null&&(e&&W.alternate!==null&&E.delete(W.key===null?O:W.key),d=s(W,d,O),b===null?I=W:b.sibling=W,b=W);return e&&E.forEach(function(kt){return t(h,kt)}),ct&&cr(h,O),I}function S(h,d,m,w){var I=Ni(m);if(typeof I!="function")throw Error(_(150));if(m=I.call(m),m==null)throw Error(_(151));for(var b=I=null,E=d,O=d=0,W=null,A=m.next();E!==null&&!A.done;O++,A=m.next()){E.index>O?(W=E,E=null):W=E.sibling;var kt=p(h,E,A.value,w);if(kt===null){E===null&&(E=W);break}e&&E&&kt.alternate===null&&t(h,E),d=s(kt,d,O),b===null?I=kt:b.sibling=kt,b=kt,E=W}if(A.done)return n(h,E),ct&&cr(h,O),I;if(E===null){for(;!A.done;O++,A=m.next())A=f(h,A.value,w),A!==null&&(d=s(A,d,O),b===null?I=A:b.sibling=A,b=A);return ct&&cr(h,O),I}for(E=r(h,E);!A.done;O++,A=m.next())A=g(E,h,O,A.value,w),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?O:A.key),d=s(A,d,O),b===null?I=A:b.sibling=A,b=A);return e&&E.forEach(function(sn){return t(h,sn)}),ct&&cr(h,O),I}function Q(h,d,m,w){if(typeof m=="object"&&m!==null&&m.type===$r&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case $s:t:{for(var I=m.key,b=d;b!==null;){if(b.key===I){if(I=m.type,I===$r){if(b.tag===7){n(h,b.sibling),d=i(b,m.props.children),d.return=h,h=d;break t}}else if(b.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===kn&&rf(I)===b.type){n(h,b.sibling),d=i(b,m.props),d.ref=Li(h,b,m),d.return=h,h=d;break t}n(h,b);break}else t(h,b);b=b.sibling}m.type===$r?(d=br(m.props.children,h.mode,w,m.key),d.return=h,h=d):(w=_o(m.type,m.key,m.props,null,h.mode,w),w.ref=Li(h,d,m),w.return=h,h=w)}return o(h);case Vr:t:{for(b=m.key;d!==null;){if(d.key===b)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(h,d.sibling),d=i(d,m.children||[]),d.return=h,h=d;break t}else{n(h,d);break}else t(h,d);d=d.sibling}d=Na(m,h.mode,w),d.return=h,h=d}return o(h);case kn:return b=m._init,Q(h,d,b(m._payload),w)}if(ji(m))return v(h,d,m,w);if(Ni(m))return S(h,d,m,w);to(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(h,d.sibling),d=i(d,m),d.return=h,h=d):(n(h,d),d=ka(m,h.mode,w),d.return=h,h=d),o(h)):n(h,d)}return Q}var yi=hp(!0),pp=hp(!1),jo=nr(null),Vo=null,Xr=null,yc=null;function mc(){yc=Xr=Vo=null}function gc(e){var t=jo.current;at(jo),e._currentValue=t}function pu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function si(e,t){Vo=e,yc=Xr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Gt=!0),e.firstContext=null)}function Be(e){var t=e._currentValue;if(yc!==e)if(e={context:e,memoizedValue:t,next:null},Xr===null){if(Vo===null)throw Error(_(308));Xr=e,Vo.dependencies={lanes:0,firstContext:e}}else Xr=Xr.next=e;return t}var pr=null;function vc(e){pr===null?pr=[e]:pr.push(e)}function yp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,vc(t)):(n.next=i.next,i.next=n),t.interleaved=n,In(e,r)}function In(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Nn=!1;function wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $n(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,In(e,n)}return i=r.interleaved,i===null?(t.next=t,vc(r)):(t.next=i.next,i.next=t),r.interleaved=t,In(e,n)}function po(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ic(e,n)}}function sf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $o(e,t,n,r){var i=e.updateQueue;Nn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,c=u=a=null,l=s;do{var p=l.lane,g=l.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});t:{var v=e,S=l;switch(p=t,g=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){f=v.call(g,f,p);break t}f=v;break t;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,p=typeof v=="function"?v.call(g,f,p):v,p==null)break t;f=mt({},f,p);break t;case 2:Nn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else g={eventTime:g,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=f):c=c.next=g,o|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Dr|=o,e.lanes=o,e.memoizedState=f}}function of(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var Ts={},tn=nr(Ts),ys=nr(Ts),ms=nr(Ts);function yr(e){if(e===Ts)throw Error(_(174));return e}function _c(e,t){switch(ot(ms,t),ot(ys,e),ot(tn,Ts),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ka(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ka(t,e)}at(tn),ot(tn,t)}function mi(){at(tn),at(ys),at(ms)}function gp(e){yr(ms.current);var t=yr(tn.current),n=Ka(t,e.type);t!==n&&(ot(ys,e),ot(tn,n))}function Sc(e){ys.current===e&&(at(tn),at(ys))}var ft=nr(0);function Wo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ba=[];function Ic(){for(var e=0;e<Ba.length;e++)Ba[e]._workInProgressVersionPrimary=null;Ba.length=0}var yo=En.ReactCurrentDispatcher,Ea=En.ReactCurrentBatchConfig,Ar=0,yt=null,It=null,Ot=null,Ho=!1,Xi=!1,gs=0,lv=0;function Ct(){throw Error(_(321))}function bc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Me(e[n],t[n]))return!1;return!0}function Bc(e,t,n,r,i,s){if(Ar=s,yt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yo.current=e===null||e.memoizedState===null?dv:fv,e=n(r,i),Xi){s=0;do{if(Xi=!1,gs=0,25<=s)throw Error(_(301));s+=1,Ot=It=null,t.updateQueue=null,yo.current=hv,e=n(r,i)}while(Xi)}if(yo.current=Yo,t=It!==null&&It.next!==null,Ar=0,Ot=It=yt=null,Ho=!1,t)throw Error(_(300));return e}function Ec(){var e=gs!==0;return gs=0,e}function ze(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?yt.memoizedState=Ot=e:Ot=Ot.next=e,Ot}function Ee(){if(It===null){var e=yt.alternate;e=e!==null?e.memoizedState:null}else e=It.next;var t=Ot===null?yt.memoizedState:Ot.next;if(t!==null)Ot=t,It=e;else{if(e===null)throw Error(_(310));It=e,e={memoizedState:It.memoizedState,baseState:It.baseState,baseQueue:It.baseQueue,queue:It.queue,next:null},Ot===null?yt.memoizedState=Ot=e:Ot=Ot.next=e}return Ot}function vs(e,t){return typeof t=="function"?t(e):t}function Fa(e){var t=Ee(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=It,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var c=u.lane;if((Ar&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,o=r):a=a.next=f,yt.lanes|=c,Dr|=c}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,Me(r,t.memoizedState)||(Gt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,yt.lanes|=s,Dr|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Oa(e){var t=Ee(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Me(s,t.memoizedState)||(Gt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function vp(){}function wp(e,t){var n=yt,r=Ee(),i=t(),s=!Me(r.memoizedState,i);if(s&&(r.memoizedState=i,Gt=!0),r=r.queue,Fc(Ip.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ot!==null&&Ot.memoizedState.tag&1){if(n.flags|=2048,ws(9,Sp.bind(null,n,r,i,t),void 0,null),At===null)throw Error(_(349));Ar&30||_p(n,t,i)}return i}function _p(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=yt.updateQueue,t===null?(t={lastEffect:null,stores:null},yt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sp(e,t,n,r){t.value=n,t.getSnapshot=r,bp(t)&&Bp(e)}function Ip(e,t,n){return n(function(){bp(t)&&Bp(e)})}function bp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Me(e,n)}catch{return!0}}function Bp(e){var t=In(e,1);t!==null&&xe(t,e,1,-1)}function lf(e){var t=ze();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:e},t.queue=e,e=e.dispatch=cv.bind(null,yt,e),[t.memoizedState,e]}function ws(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=yt.updateQueue,t===null?(t={lastEffect:null,stores:null},yt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ep(){return Ee().memoizedState}function mo(e,t,n,r){var i=ze();yt.flags|=e,i.memoizedState=ws(1|t,n,void 0,r===void 0?null:r)}function Cl(e,t,n,r){var i=Ee();r=r===void 0?null:r;var s=void 0;if(It!==null){var o=It.memoizedState;if(s=o.destroy,r!==null&&bc(r,o.deps)){i.memoizedState=ws(t,n,s,r);return}}yt.flags|=e,i.memoizedState=ws(1|t,n,s,r)}function af(e,t){return mo(8390656,8,e,t)}function Fc(e,t){return Cl(2048,8,e,t)}function Fp(e,t){return Cl(4,2,e,t)}function Op(e,t){return Cl(4,4,e,t)}function Ap(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dp(e,t,n){return n=n!=null?n.concat([e]):null,Cl(4,4,Ap.bind(null,t,e),n)}function Oc(){}function kp(e,t){var n=Ee();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Np(e,t){var n=Ee();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Tp(e,t,n){return Ar&21?(Me(n,t)||(n=Rh(),yt.lanes|=n,Dr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Gt=!0),e.memoizedState=n)}function av(e,t){var n=et;et=n!==0&&4>n?n:4,e(!0);var r=Ea.transition;Ea.transition={};try{e(!1),t()}finally{et=n,Ea.transition=r}}function xp(){return Ee().memoizedState}function uv(e,t,n){var r=Hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Cp(e))Mp(t,n);else if(n=yp(e,t,n,r),n!==null){var i=Vt();xe(n,e,r,i),Lp(n,t,r)}}function cv(e,t,n){var r=Hn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cp(e))Mp(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Me(l,o)){var a=t.interleaved;a===null?(i.next=i,vc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=yp(e,t,i,r),n!==null&&(i=Vt(),xe(n,e,r,i),Lp(n,t,r))}}function Cp(e){var t=e.alternate;return e===yt||t!==null&&t===yt}function Mp(e,t){Xi=Ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ic(e,n)}}var Yo={readContext:Be,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useInsertionEffect:Ct,useLayoutEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useMutableSource:Ct,useSyncExternalStore:Ct,useId:Ct,unstable_isNewReconciler:!1},dv={readContext:Be,useCallback:function(e,t){return ze().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:af,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,mo(4194308,4,Ap.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mo(4194308,4,e,t)},useInsertionEffect:function(e,t){return mo(4,2,e,t)},useMemo:function(e,t){var n=ze();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ze();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uv.bind(null,yt,e),[r.memoizedState,e]},useRef:function(e){var t=ze();return e={current:e},t.memoizedState=e},useState:lf,useDebugValue:Oc,useDeferredValue:function(e){return ze().memoizedState=e},useTransition:function(){var e=lf(!1),t=e[0];return e=av.bind(null,e[1]),ze().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=yt,i=ze();if(ct){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),At===null)throw Error(_(349));Ar&30||_p(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,af(Ip.bind(null,r,s,e),[e]),r.flags|=2048,ws(9,Sp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ze(),t=At.identifierPrefix;if(ct){var n=mn,r=yn;n=(r&~(1<<32-Te(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=lv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fv={readContext:Be,useCallback:kp,useContext:Be,useEffect:Fc,useImperativeHandle:Dp,useInsertionEffect:Fp,useLayoutEffect:Op,useMemo:Np,useReducer:Fa,useRef:Ep,useState:function(){return Fa(vs)},useDebugValue:Oc,useDeferredValue:function(e){var t=Ee();return Tp(t,It.memoizedState,e)},useTransition:function(){var e=Fa(vs)[0],t=Ee().memoizedState;return[e,t]},useMutableSource:vp,useSyncExternalStore:wp,useId:xp,unstable_isNewReconciler:!1},hv={readContext:Be,useCallback:kp,useContext:Be,useEffect:Fc,useImperativeHandle:Dp,useInsertionEffect:Fp,useLayoutEffect:Op,useMemo:Np,useReducer:Oa,useRef:Ep,useState:function(){return Oa(vs)},useDebugValue:Oc,useDeferredValue:function(e){var t=Ee();return It===null?t.memoizedState=e:Tp(t,It.memoizedState,e)},useTransition:function(){var e=Oa(vs)[0],t=Ee().memoizedState;return[e,t]},useMutableSource:vp,useSyncExternalStore:wp,useId:xp,unstable_isNewReconciler:!1};function Ae(e,t){if(e&&e.defaultProps){t=mt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function yu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:mt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ml={isMounted:function(e){return(e=e._reactInternals)?xr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vt(),i=Hn(e),s=gn(r,i);s.payload=t,n!=null&&(s.callback=n),t=$n(e,s,i),t!==null&&(xe(t,e,i,r),po(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vt(),i=Hn(e),s=gn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=$n(e,s,i),t!==null&&(xe(t,e,i,r),po(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vt(),r=Hn(e),i=gn(n,r);i.tag=2,t!=null&&(i.callback=t),t=$n(e,i,r),t!==null&&(xe(t,e,r,n),po(t,e,r))}};function uf(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!ds(n,r)||!ds(i,s):!0}function Rp(e,t,n){var r=!1,i=Kn,s=t.contextType;return typeof s=="object"&&s!==null?s=Be(s):(i=Zt(t)?Fr:Rt.current,r=t.contextTypes,s=(r=r!=null)?hi(e,i):Kn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function cf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ml.enqueueReplaceState(t,t.state,null)}function mu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},wc(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Be(s):(s=Zt(t)?Fr:Rt.current,i.context=hi(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(yu(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ml.enqueueReplaceState(i,i.state,null),$o(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function gi(e,t){try{var n="",r=t;do n+=jg(r),r=r.return;while(r);var i=n}catch(s){i=`
|
37
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{aa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zi(e):""}function jg(e){switch(e.tag){case 5:return zi(e.type);case 16:return zi("Lazy");case 13:return zi("Suspense");case 19:return zi("SuspenseList");case 0:case 2:case 15:return e=ua(e.type,!1),e;case 11:return e=ua(e.type.render,!1),e;case 1:return e=ua(e.type,!0),e;default:return""}}function $a(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $r:return"Fragment";case Vr:return"Portal";case za:return"Profiler";case qu:return"StrictMode";case ja:return"Suspense";case Va:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mh:return(e.displayName||"Context")+".Consumer";case yh:return(e._context.displayName||"Context")+".Provider";case tc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ec:return t=e.displayName||null,t!==null?t:$a(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return $a(e(t))}catch{}}return null}function Vg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $a(t);case 8:return t===qu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $g(e){var t=vh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ws(e){e._valueTracker||(e._valueTracker=$g(e))}function wh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ao(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wa(e,t){var n=t.checked;return mt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _h(e,t){t=t.checked,t!=null&&Zu(e,"checked",t,!1)}function Ha(e,t){_h(e,t);var n=Qn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ya(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ya(e,t.type,Qn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Od(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ya(e,t,n){(t!=="number"||Ao(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ji=Array.isArray;function ei(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Qn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return mt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ad(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(ji(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qn(n)}}function Sh(e,t){var n=Qn(t.value),r=Qn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Dd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ih(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ka(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ih(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hs,bh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Hs=Hs||document.createElement("div"),Hs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ss(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yi={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},Wg=["Webkit","ms","Moz","O"];Object.keys(Yi).forEach(function(e){Wg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yi[t]=Yi[e]})});function Bh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yi.hasOwnProperty(e)&&Yi[e]?(""+t).trim():t+"px"}function Eh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Bh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Hg=mt({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 Ja(e,t){if(t){if(Hg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Ga(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xa=null;function nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,ni=null,ri=null;function Nd(e){if(e=ks(e)){if(typeof Za!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Tl(t),Za(e.stateNode,e.type,t))}}function Fh(e){ni?ri?ri.push(e):ri=[e]:ni=e}function Oh(){if(ni){var e=ni,t=ri;if(ri=ni=null,Nd(e),t)for(e=0;e<t.length;e++)Nd(t[e])}}function Ah(e,t){return e(t)}function Dh(){}var ca=!1;function Nh(e,t,n){if(ca)return e(t,n);ca=!0;try{return Ah(e,t,n)}finally{ca=!1,(ni!==null||ri!==null)&&(Dh(),Oh())}}function os(e,t){var n=e.stateNode;if(n===null)return null;var r=Tl(n);if(r===null)return null;n=r[t];t:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break t;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var qa=!1;if(_n)try{var Ti={};Object.defineProperty(Ti,"passive",{get:function(){qa=!0}}),window.addEventListener("test",Ti,Ti),window.removeEventListener("test",Ti,Ti)}catch{qa=!1}function Yg(e,t,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Qi=!1,Do=null,No=!1,tu=null,Qg={onError:function(e){Qi=!0,Do=e}};function Kg(e,t,n,r,i,s,o,l,a){Qi=!1,Do=null,Yg.apply(Qg,arguments)}function Jg(e,t,n,r,i,s,o,l,a){if(Kg.apply(this,arguments),Qi){if(Qi){var u=Do;Qi=!1,Do=null}else throw Error(_(198));No||(No=!0,tu=u)}}function xr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function kh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function kd(e){if(xr(e)!==e)throw Error(_(188))}function Gg(e){var t=e.alternate;if(!t){if(t=xr(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return kd(i),e;if(s===r)return kd(i),t;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function Th(e){return e=Gg(e),e!==null?xh(e):null}function xh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xh(e);if(t!==null)return t;e=e.sibling}return null}var Ch=ce.unstable_scheduleCallback,Td=ce.unstable_cancelCallback,Xg=ce.unstable_shouldYield,Zg=ce.unstable_requestPaint,wt=ce.unstable_now,qg=ce.unstable_getCurrentPriorityLevel,rc=ce.unstable_ImmediatePriority,Mh=ce.unstable_UserBlockingPriority,ko=ce.unstable_NormalPriority,t0=ce.unstable_LowPriority,Lh=ce.unstable_IdlePriority,Al=null,qe=null;function e0(e){if(qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(Al,e,void 0,(e.current.flags&128)===128)}catch{}}var Te=Math.clz32?Math.clz32:i0,n0=Math.log,r0=Math.LN2;function i0(e){return e>>>=0,e===0?32:31-(n0(e)/r0|0)|0}var Ys=64,Qs=4194304;function Vi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function To(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Vi(l):(s&=o,s!==0&&(r=Vi(s)))}else o=n&~i,o!==0?r=Vi(o):s!==0&&(r=Vi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Te(t),i=1<<n,r|=e[n],t&=~i;return r}function s0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function o0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Te(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=s0(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function eu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rh(){var e=Ys;return Ys<<=1,!(Ys&4194240)&&(Ys=64),e}function da(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ds(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Te(t),e[t]=n}function l0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Te(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function ic(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Te(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var et=0;function Uh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ph,sc,zh,jh,Vh,nu=!1,Ks=[],Pn=null,zn=null,jn=null,ls=new Map,as=new Map,Cn=[],a0="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 xd(e,t){switch(e){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":zn=null;break;case"mouseover":case"mouseout":jn=null;break;case"pointerover":case"pointerout":ls.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":as.delete(t.pointerId)}}function xi(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ks(t),t!==null&&sc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function u0(e,t,n,r,i){switch(t){case"focusin":return Pn=xi(Pn,e,t,n,r,i),!0;case"dragenter":return zn=xi(zn,e,t,n,r,i),!0;case"mouseover":return jn=xi(jn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ls.set(s,xi(ls.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,as.set(s,xi(as.get(s)||null,e,t,n,r,i)),!0}return!1}function $h(e){var t=hr(e.target);if(t!==null){var n=xr(t);if(n!==null){if(t=n.tag,t===13){if(t=kh(n),t!==null){e.blockedOn=t,Vh(e.priority,function(){zh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function co(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ru(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xa=r,n.target.dispatchEvent(r),Xa=null}else return t=ks(n),t!==null&&sc(t),e.blockedOn=n,!1;t.shift()}return!0}function Cd(e,t,n){co(e)&&n.delete(t)}function c0(){nu=!1,Pn!==null&&co(Pn)&&(Pn=null),zn!==null&&co(zn)&&(zn=null),jn!==null&&co(jn)&&(jn=null),ls.forEach(Cd),as.forEach(Cd)}function Ci(e,t){e.blockedOn===t&&(e.blockedOn=null,nu||(nu=!0,ce.unstable_scheduleCallback(ce.unstable_NormalPriority,c0)))}function us(e){function t(i){return Ci(i,e)}if(0<Ks.length){Ci(Ks[0],e);for(var n=1;n<Ks.length;n++){var r=Ks[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pn!==null&&Ci(Pn,e),zn!==null&&Ci(zn,e),jn!==null&&Ci(jn,e),ls.forEach(t),as.forEach(t),n=0;n<Cn.length;n++)r=Cn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cn.length&&(n=Cn[0],n.blockedOn===null);)$h(n),n.blockedOn===null&&Cn.shift()}var ii=En.ReactCurrentBatchConfig,xo=!0;function d0(e,t,n,r){var i=et,s=ii.transition;ii.transition=null;try{et=1,oc(e,t,n,r)}finally{et=i,ii.transition=s}}function f0(e,t,n,r){var i=et,s=ii.transition;ii.transition=null;try{et=4,oc(e,t,n,r)}finally{et=i,ii.transition=s}}function oc(e,t,n,r){if(xo){var i=ru(e,t,n,r);if(i===null)Sa(e,t,r,Co,n),xd(e,r);else if(u0(i,e,t,n,r))r.stopPropagation();else if(xd(e,r),t&4&&-1<a0.indexOf(e)){for(;i!==null;){var s=ks(i);if(s!==null&&Ph(s),s=ru(e,t,n,r),s===null&&Sa(e,t,r,Co,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Sa(e,t,r,null,n)}}var Co=null;function ru(e,t,n,r){if(Co=null,e=nc(r),e=hr(e),e!==null)if(t=xr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=kh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Co=e,null}function Wh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qg()){case rc:return 1;case Mh:return 4;case ko:case t0:return 16;case Lh:return 536870912;default:return 16}default:return 16}}var Ln=null,lc=null,fo=null;function Hh(){if(fo)return fo;var e,t=lc,n=t.length,r,i="value"in Ln?Ln.value:Ln.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return fo=i.slice(e,1<r?1-r:void 0)}function ho(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Js(){return!0}function Md(){return!1}function pe(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Js:Md,this.isPropagationStopped=Md,this}return mt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Js)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Js)},persist:function(){},isPersistent:Js}),t}var Oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ac=pe(Oi),Ns=mt({},Oi,{view:0,detail:0}),h0=pe(Ns),fa,ha,Mi,Dl=mt({},Ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Mi&&(Mi&&e.type==="mousemove"?(fa=e.screenX-Mi.screenX,ha=e.screenY-Mi.screenY):ha=fa=0,Mi=e),fa)},movementY:function(e){return"movementY"in e?e.movementY:ha}}),Ld=pe(Dl),p0=mt({},Dl,{dataTransfer:0}),y0=pe(p0),m0=mt({},Ns,{relatedTarget:0}),pa=pe(m0),g0=mt({},Oi,{animationName:0,elapsedTime:0,pseudoElement:0}),v0=pe(g0),w0=mt({},Oi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_0=pe(w0),S0=mt({},Oi,{data:0}),Rd=pe(S0),I0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},b0={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"},B0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B0[e])?!!t[e]:!1}function uc(){return E0}var F0=mt({},Ns,{key:function(e){if(e.key){var t=I0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ho(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?b0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uc,charCode:function(e){return e.type==="keypress"?ho(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ho(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O0=pe(F0),A0=mt({},Dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=pe(A0),D0=mt({},Ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uc}),N0=pe(D0),k0=mt({},Oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),T0=pe(k0),x0=mt({},Dl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),C0=pe(x0),M0=[9,13,27,32],cc=_n&&"CompositionEvent"in window,Ki=null;_n&&"documentMode"in document&&(Ki=document.documentMode);var L0=_n&&"TextEvent"in window&&!Ki,Yh=_n&&(!cc||Ki&&8<Ki&&11>=Ki),Pd=" ",zd=!1;function Qh(e,t){switch(e){case"keyup":return M0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function R0(e,t){switch(e){case"compositionend":return Kh(t);case"keypress":return t.which!==32?null:(zd=!0,Pd);case"textInput":return e=t.data,e===Pd&&zd?null:e;default:return null}}function U0(e,t){if(Wr)return e==="compositionend"||!cc&&Qh(e,t)?(e=Hh(),fo=lc=Ln=null,Wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yh&&t.locale!=="ko"?null:t.data;default:return null}}var P0={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 jd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!P0[e.type]:t==="textarea"}function Jh(e,t,n,r){Fh(r),t=Mo(t,"onChange"),0<t.length&&(n=new ac("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ji=null,cs=null;function z0(e){op(e,0)}function Nl(e){var t=Qr(e);if(wh(t))return e}function j0(e,t){if(e==="change")return t}var Gh=!1;if(_n){var ya;if(_n){var ma="oninput"in document;if(!ma){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),ma=typeof Vd.oninput=="function"}ya=ma}else ya=!1;Gh=ya&&(!document.documentMode||9<document.documentMode)}function $d(){Ji&&(Ji.detachEvent("onpropertychange",Xh),cs=Ji=null)}function Xh(e){if(e.propertyName==="value"&&Nl(cs)){var t=[];Jh(t,cs,e,nc(e)),Nh(z0,t)}}function V0(e,t,n){e==="focusin"?($d(),Ji=t,cs=n,Ji.attachEvent("onpropertychange",Xh)):e==="focusout"&&$d()}function $0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nl(cs)}function W0(e,t){if(e==="click")return Nl(t)}function H0(e,t){if(e==="input"||e==="change")return Nl(t)}function Y0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Me=typeof Object.is=="function"?Object.is:Y0;function ds(e,t){if(Me(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Pa.call(t,i)||!Me(e[i],t[i]))return!1}return!0}function Wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hd(e,t){var n=Wd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Wd(n)}}function Zh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qh(){for(var e=window,t=Ao();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ao(e.document)}return t}function dc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q0(e){var t=qh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zh(n.ownerDocument.documentElement,n)){if(r!==null&&dc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Hd(n,s);var o=Hd(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var K0=_n&&"documentMode"in document&&11>=document.documentMode,Hr=null,iu=null,Gi=null,su=!1;function Yd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;su||Hr==null||Hr!==Ao(r)||(r=Hr,"selectionStart"in r&&dc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gi&&ds(Gi,r)||(Gi=r,r=Mo(iu,"onSelect"),0<r.length&&(t=new ac("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function Gs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yr={animationend:Gs("Animation","AnimationEnd"),animationiteration:Gs("Animation","AnimationIteration"),animationstart:Gs("Animation","AnimationStart"),transitionend:Gs("Transition","TransitionEnd")},ga={},tp={};_n&&(tp=document.createElement("div").style,"AnimationEvent"in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),"TransitionEvent"in window||delete Yr.transitionend.transition);function kl(e){if(ga[e])return ga[e];if(!Yr[e])return e;var t=Yr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in tp)return ga[e]=t[n];return e}var ep=kl("animationend"),np=kl("animationiteration"),rp=kl("animationstart"),ip=kl("transitionend"),sp=new Map,Qd="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 er(e,t){sp.set(e,t),Tr(t,[e])}for(var va=0;va<Qd.length;va++){var wa=Qd[va],J0=wa.toLowerCase(),G0=wa[0].toUpperCase()+wa.slice(1);er(J0,"on"+G0)}er(ep,"onAnimationEnd");er(np,"onAnimationIteration");er(rp,"onAnimationStart");er("dblclick","onDoubleClick");er("focusin","onFocus");er("focusout","onBlur");er(ip,"onTransitionEnd");fi("onMouseEnter",["mouseout","mouseover"]);fi("onMouseLeave",["mouseout","mouseover"]);fi("onPointerEnter",["pointerout","pointerover"]);fi("onPointerLeave",["pointerout","pointerover"]);Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $i="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(" "),X0=new Set("cancel close invalid load scroll toggle".split(" ").concat($i));function Kd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Jg(r,t,void 0,e),e.currentTarget=null}function op(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;t:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break t;Kd(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break t;Kd(i,l,u),s=a}}}if(No)throw e=tu,No=!1,tu=null,e}function lt(e,t){var n=t[cu];n===void 0&&(n=t[cu]=new Set);var r=e+"__bubble";n.has(r)||(lp(t,e,2,!1),n.add(r))}function _a(e,t,n){var r=0;t&&(r|=4),lp(n,e,r,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function fs(e){if(!e[Xs]){e[Xs]=!0,ph.forEach(function(n){n!=="selectionchange"&&(X0.has(n)||_a(n,!1,e),_a(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,_a("selectionchange",!1,t))}}function lp(e,t,n,r){switch(Wh(t)){case 1:var i=d0;break;case 4:i=f0;break;default:i=oc}n=i.bind(null,t,n,e),i=void 0,!qa||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Sa(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)t:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=hr(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue t}l=l.parentNode}}r=r.return}Nh(function(){var u=s,c=nc(n),f=[];t:{var m=sp.get(e);if(m!==void 0){var g=ac,v=e;switch(e){case"keypress":if(ho(n)===0)break t;case"keydown":case"keyup":g=O0;break;case"focusin":v="focus",g=pa;break;case"focusout":v="blur",g=pa;break;case"beforeblur":case"afterblur":g=pa;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=y0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=N0;break;case ep:case np:case rp:g=v0;break;case ip:g=T0;break;case"scroll":g=h0;break;case"wheel":g=C0;break;case"copy":case"cut":case"paste":g=_0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ud}var S=(t&4)!==0,Q=!S&&e==="scroll",h=S?m!==null?m+"Capture":null:m;S=[];for(var d=u,y;d!==null;){y=d;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,h!==null&&(w=os(d,h),w!=null&&S.push(hs(d,w,y)))),Q)break;d=d.return}0<S.length&&(m=new g(m,v,null,n,c),f.push({event:m,listeners:S}))}}if(!(t&7)){t:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==Xa&&(v=n.relatedTarget||n.fromElement)&&(hr(v)||v[Sn]))break t;if((g||m)&&(m=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?hr(v):null,v!==null&&(Q=xr(v),v!==Q||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(S=Ld,w="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(S=Ud,w="onPointerLeave",h="onPointerEnter",d="pointer"),Q=g==null?m:Qr(g),y=v==null?m:Qr(v),m=new S(w,d+"leave",g,n,c),m.target=Q,m.relatedTarget=y,w=null,hr(c)===u&&(S=new S(h,d+"enter",v,n,c),S.target=y,S.relatedTarget=Q,w=S),Q=w,g&&v)e:{for(S=g,h=v,d=0,y=S;y;y=Lr(y))d++;for(y=0,w=h;w;w=Lr(w))y++;for(;0<d-y;)S=Lr(S),d--;for(;0<y-d;)h=Lr(h),y--;for(;d--;){if(S===h||h!==null&&S===h.alternate)break e;S=Lr(S),h=Lr(h)}S=null}else S=null;g!==null&&Jd(f,m,g,S,!1),v!==null&&Q!==null&&Jd(f,Q,v,S,!0)}}t:{if(m=u?Qr(u):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var I=j0;else if(jd(m))if(Gh)I=H0;else{I=$0;var b=V0}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(I=W0);if(I&&(I=I(e,u))){Jh(f,I,n,c);break t}b&&b(e,m,u),e==="focusout"&&(b=m._wrapperState)&&b.controlled&&m.type==="number"&&Ya(m,"number",m.value)}switch(b=u?Qr(u):window,e){case"focusin":(jd(b)||b.contentEditable==="true")&&(Hr=b,iu=u,Gi=null);break;case"focusout":Gi=iu=Hr=null;break;case"mousedown":su=!0;break;case"contextmenu":case"mouseup":case"dragend":su=!1,Yd(f,n,c);break;case"selectionchange":if(K0)break;case"keydown":case"keyup":Yd(f,n,c)}var E;if(cc)t:{switch(e){case"compositionstart":var O="onCompositionStart";break t;case"compositionend":O="onCompositionEnd";break t;case"compositionupdate":O="onCompositionUpdate";break t}O=void 0}else Wr?Qh(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Yh&&n.locale!=="ko"&&(Wr||O!=="onCompositionStart"?O==="onCompositionEnd"&&Wr&&(E=Hh()):(Ln=c,lc="value"in Ln?Ln.value:Ln.textContent,Wr=!0)),b=Mo(u,O),0<b.length&&(O=new Rd(O,e,null,n,c),f.push({event:O,listeners:b}),E?O.data=E:(E=Kh(n),E!==null&&(O.data=E)))),(E=L0?R0(e,n):U0(e,n))&&(u=Mo(u,"onBeforeInput"),0<u.length&&(c=new Rd("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}op(f,t)})}function hs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=os(e,n),s!=null&&r.unshift(hs(e,s,i)),s=os(e,t),s!=null&&r.push(hs(e,s,i))),e=e.return}return r}function Lr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Jd(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=os(n,s),a!=null&&o.unshift(hs(n,a,l))):i||(a=os(n,s),a!=null&&o.push(hs(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Z0=/\r\n?/g,q0=/\u0000|\uFFFD/g;function Gd(e){return(typeof e=="string"?e:""+e).replace(Z0,`
|
38
|
+
`).replace(q0,"")}function Zs(e,t,n){if(t=Gd(t),Gd(e)!==t&&n)throw Error(_(425))}function Lo(){}var ou=null,lu=null;function au(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var uu=typeof setTimeout=="function"?setTimeout:void 0,tv=typeof clearTimeout=="function"?clearTimeout:void 0,Xd=typeof Promise=="function"?Promise:void 0,ev=typeof queueMicrotask=="function"?queueMicrotask:typeof Xd<"u"?function(e){return Xd.resolve(null).then(e).catch(nv)}:uu;function nv(e){setTimeout(function(){throw e})}function Ia(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),us(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);us(t)}function Vn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Zd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ai=Math.random().toString(36).slice(2),We="__reactFiber$"+Ai,ps="__reactProps$"+Ai,Sn="__reactContainer$"+Ai,cu="__reactEvents$"+Ai,rv="__reactListeners$"+Ai,iv="__reactHandles$"+Ai;function hr(e){var t=e[We];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[We]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zd(e);e!==null;){if(n=e[We])return n;e=Zd(e)}return t}e=n,n=e.parentNode}return null}function ks(e){return e=e[We]||e[Sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Tl(e){return e[ps]||null}var du=[],Kr=-1;function nr(e){return{current:e}}function at(e){0>Kr||(e.current=du[Kr],du[Kr]=null,Kr--)}function ot(e,t){Kr++,du[Kr]=e.current,e.current=t}var Kn={},Rt=nr(Kn),Xt=nr(!1),Fr=Kn;function hi(e,t){var n=e.type.contextTypes;if(!n)return Kn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Zt(e){return e=e.childContextTypes,e!=null}function Ro(){at(Xt),at(Rt)}function qd(e,t,n){if(Rt.current!==Kn)throw Error(_(168));ot(Rt,t),ot(Xt,n)}function ap(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,Vg(e)||"Unknown",i));return mt({},n,r)}function Uo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kn,Fr=Rt.current,ot(Rt,e),ot(Xt,Xt.current),!0}function tf(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=ap(e,t,Fr),r.__reactInternalMemoizedMergedChildContext=e,at(Xt),at(Rt),ot(Rt,e)):at(Xt),ot(Xt,n)}var fn=null,xl=!1,ba=!1;function up(e){fn===null?fn=[e]:fn.push(e)}function sv(e){xl=!0,up(e)}function rr(){if(!ba&&fn!==null){ba=!0;var e=0,t=et;try{var n=fn;for(et=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fn=null,xl=!1}catch(i){throw fn!==null&&(fn=fn.slice(e+1)),Ch(rc,rr),i}finally{et=t,ba=!1}}return null}var Jr=[],Gr=0,Po=null,zo=0,ve=[],we=0,Or=null,yn=1,mn="";function cr(e,t){Jr[Gr++]=zo,Jr[Gr++]=Po,Po=e,zo=t}function cp(e,t,n){ve[we++]=yn,ve[we++]=mn,ve[we++]=Or,Or=e;var r=yn;e=mn;var i=32-Te(r)-1;r&=~(1<<i),n+=1;var s=32-Te(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yn=1<<32-Te(t)+i|n<<i|r,mn=s+e}else yn=1<<s|n<<i|r,mn=e}function fc(e){e.return!==null&&(cr(e,1),cp(e,1,0))}function hc(e){for(;e===Po;)Po=Jr[--Gr],Jr[Gr]=null,zo=Jr[--Gr],Jr[Gr]=null;for(;e===Or;)Or=ve[--we],ve[we]=null,mn=ve[--we],ve[we]=null,yn=ve[--we],ve[we]=null}var ue=null,ae=null,ct=!1,ke=null;function dp(e,t){var n=Ie(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ef(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ue=e,ae=Vn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ue=e,ae=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Or!==null?{id:yn,overflow:mn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ie(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ue=e,ae=null,!0):!1;default:return!1}}function fu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function hu(e){if(ct){var t=ae;if(t){var n=t;if(!ef(e,t)){if(fu(e))throw Error(_(418));t=Vn(n.nextSibling);var r=ue;t&&ef(e,t)?dp(r,n):(e.flags=e.flags&-4097|2,ct=!1,ue=e)}}else{if(fu(e))throw Error(_(418));e.flags=e.flags&-4097|2,ct=!1,ue=e}}}function nf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ue=e}function qs(e){if(e!==ue)return!1;if(!ct)return nf(e),ct=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!au(e.type,e.memoizedProps)),t&&(t=ae)){if(fu(e))throw fp(),Error(_(418));for(;t;)dp(e,t),t=Vn(t.nextSibling)}if(nf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));t:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ae=Vn(e.nextSibling);break t}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ae=null}}else ae=ue?Vn(e.stateNode.nextSibling):null;return!0}function fp(){for(var e=ae;e;)e=Vn(e.nextSibling)}function pi(){ae=ue=null,ct=!1}function pc(e){ke===null?ke=[e]:ke.push(e)}var ov=En.ReactCurrentBatchConfig;function Li(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function to(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rf(e){var t=e._init;return t(e._payload)}function hp(e){function t(h,d){if(e){var y=h.deletions;y===null?(h.deletions=[d],h.flags|=16):y.push(d)}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function r(h,d){for(h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function i(h,d){return h=Yn(h,d),h.index=0,h.sibling=null,h}function s(h,d,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<d?(h.flags|=2,d):y):(h.flags|=2,d)):(h.flags|=1048576,d)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,d,y,w){return d===null||d.tag!==6?(d=Na(y,h.mode,w),d.return=h,d):(d=i(d,y),d.return=h,d)}function a(h,d,y,w){var I=y.type;return I===$r?c(h,d,y.props.children,w,y.key):d!==null&&(d.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Nn&&rf(I)===d.type)?(w=i(d,y.props),w.ref=Li(h,d,y),w.return=h,w):(w=_o(y.type,y.key,y.props,null,h.mode,w),w.ref=Li(h,d,y),w.return=h,w)}function u(h,d,y,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==y.containerInfo||d.stateNode.implementation!==y.implementation?(d=ka(y,h.mode,w),d.return=h,d):(d=i(d,y.children||[]),d.return=h,d)}function c(h,d,y,w,I){return d===null||d.tag!==7?(d=br(y,h.mode,w,I),d.return=h,d):(d=i(d,y),d.return=h,d)}function f(h,d,y){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Na(""+d,h.mode,y),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case $s:return y=_o(d.type,d.key,d.props,null,h.mode,y),y.ref=Li(h,null,d),y.return=h,y;case Vr:return d=ka(d,h.mode,y),d.return=h,d;case Nn:var w=d._init;return f(h,w(d._payload),y)}if(ji(d)||ki(d))return d=br(d,h.mode,y,null),d.return=h,d;to(h,d)}return null}function m(h,d,y,w){var I=d!==null?d.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return I!==null?null:l(h,d,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case $s:return y.key===I?a(h,d,y,w):null;case Vr:return y.key===I?u(h,d,y,w):null;case Nn:return I=y._init,m(h,d,I(y._payload),w)}if(ji(y)||ki(y))return I!==null?null:c(h,d,y,w,null);to(h,y)}return null}function g(h,d,y,w,I){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(y)||null,l(d,h,""+w,I);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case $s:return h=h.get(w.key===null?y:w.key)||null,a(d,h,w,I);case Vr:return h=h.get(w.key===null?y:w.key)||null,u(d,h,w,I);case Nn:var b=w._init;return g(h,d,y,b(w._payload),I)}if(ji(w)||ki(w))return h=h.get(y)||null,c(d,h,w,I,null);to(d,w)}return null}function v(h,d,y,w){for(var I=null,b=null,E=d,O=d=0,W=null;E!==null&&O<y.length;O++){E.index>O?(W=E,E=null):W=E.sibling;var A=m(h,E,y[O],w);if(A===null){E===null&&(E=W);break}e&&E&&A.alternate===null&&t(h,E),d=s(A,d,O),b===null?I=A:b.sibling=A,b=A,E=W}if(O===y.length)return n(h,E),ct&&cr(h,O),I;if(E===null){for(;O<y.length;O++)E=f(h,y[O],w),E!==null&&(d=s(E,d,O),b===null?I=E:b.sibling=E,b=E);return ct&&cr(h,O),I}for(E=r(h,E);O<y.length;O++)W=g(E,h,O,y[O],w),W!==null&&(e&&W.alternate!==null&&E.delete(W.key===null?O:W.key),d=s(W,d,O),b===null?I=W:b.sibling=W,b=W);return e&&E.forEach(function(Nt){return t(h,Nt)}),ct&&cr(h,O),I}function S(h,d,y,w){var I=ki(y);if(typeof I!="function")throw Error(_(150));if(y=I.call(y),y==null)throw Error(_(151));for(var b=I=null,E=d,O=d=0,W=null,A=y.next();E!==null&&!A.done;O++,A=y.next()){E.index>O?(W=E,E=null):W=E.sibling;var Nt=m(h,E,A.value,w);if(Nt===null){E===null&&(E=W);break}e&&E&&Nt.alternate===null&&t(h,E),d=s(Nt,d,O),b===null?I=Nt:b.sibling=Nt,b=Nt,E=W}if(A.done)return n(h,E),ct&&cr(h,O),I;if(E===null){for(;!A.done;O++,A=y.next())A=f(h,A.value,w),A!==null&&(d=s(A,d,O),b===null?I=A:b.sibling=A,b=A);return ct&&cr(h,O),I}for(E=r(h,E);!A.done;O++,A=y.next())A=g(E,h,O,A.value,w),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?O:A.key),d=s(A,d,O),b===null?I=A:b.sibling=A,b=A);return e&&E.forEach(function(sn){return t(h,sn)}),ct&&cr(h,O),I}function Q(h,d,y,w){if(typeof y=="object"&&y!==null&&y.type===$r&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case $s:t:{for(var I=y.key,b=d;b!==null;){if(b.key===I){if(I=y.type,I===$r){if(b.tag===7){n(h,b.sibling),d=i(b,y.props.children),d.return=h,h=d;break t}}else if(b.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Nn&&rf(I)===b.type){n(h,b.sibling),d=i(b,y.props),d.ref=Li(h,b,y),d.return=h,h=d;break t}n(h,b);break}else t(h,b);b=b.sibling}y.type===$r?(d=br(y.props.children,h.mode,w,y.key),d.return=h,h=d):(w=_o(y.type,y.key,y.props,null,h.mode,w),w.ref=Li(h,d,y),w.return=h,h=w)}return o(h);case Vr:t:{for(b=y.key;d!==null;){if(d.key===b)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){n(h,d.sibling),d=i(d,y.children||[]),d.return=h,h=d;break t}else{n(h,d);break}else t(h,d);d=d.sibling}d=ka(y,h.mode,w),d.return=h,h=d}return o(h);case Nn:return b=y._init,Q(h,d,b(y._payload),w)}if(ji(y))return v(h,d,y,w);if(ki(y))return S(h,d,y,w);to(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,d!==null&&d.tag===6?(n(h,d.sibling),d=i(d,y),d.return=h,h=d):(n(h,d),d=Na(y,h.mode,w),d.return=h,h=d),o(h)):n(h,d)}return Q}var yi=hp(!0),pp=hp(!1),jo=nr(null),Vo=null,Xr=null,yc=null;function mc(){yc=Xr=Vo=null}function gc(e){var t=jo.current;at(jo),e._currentValue=t}function pu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function si(e,t){Vo=e,yc=Xr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Gt=!0),e.firstContext=null)}function Be(e){var t=e._currentValue;if(yc!==e)if(e={context:e,memoizedValue:t,next:null},Xr===null){if(Vo===null)throw Error(_(308));Xr=e,Vo.dependencies={lanes:0,firstContext:e}}else Xr=Xr.next=e;return t}var pr=null;function vc(e){pr===null?pr=[e]:pr.push(e)}function yp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,vc(t)):(n.next=i.next,i.next=n),t.interleaved=n,In(e,r)}function In(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var kn=!1;function wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $n(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,In(e,n)}return i=r.interleaved,i===null?(t.next=t,vc(r)):(t.next=i.next,i.next=t),r.interleaved=t,In(e,n)}function po(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ic(e,n)}}function sf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $o(e,t,n,r){var i=e.updateQueue;kn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,c=u=a=null,l=s;do{var m=l.lane,g=l.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});t:{var v=e,S=l;switch(m=t,g=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){f=v.call(g,f,m);break t}f=v;break t;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,m=typeof v=="function"?v.call(g,f,m):v,m==null)break t;f=mt({},f,m);break t;case 2:kn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else g={eventTime:g,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=f):c=c.next=g,o|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Dr|=o,e.lanes=o,e.memoizedState=f}}function of(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var Ts={},tn=nr(Ts),ys=nr(Ts),ms=nr(Ts);function yr(e){if(e===Ts)throw Error(_(174));return e}function _c(e,t){switch(ot(ms,t),ot(ys,e),ot(tn,Ts),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ka(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ka(t,e)}at(tn),ot(tn,t)}function mi(){at(tn),at(ys),at(ms)}function gp(e){yr(ms.current);var t=yr(tn.current),n=Ka(t,e.type);t!==n&&(ot(ys,e),ot(tn,n))}function Sc(e){ys.current===e&&(at(tn),at(ys))}var ft=nr(0);function Wo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ba=[];function Ic(){for(var e=0;e<Ba.length;e++)Ba[e]._workInProgressVersionPrimary=null;Ba.length=0}var yo=En.ReactCurrentDispatcher,Ea=En.ReactCurrentBatchConfig,Ar=0,yt=null,It=null,Ot=null,Ho=!1,Xi=!1,gs=0,lv=0;function Ct(){throw Error(_(321))}function bc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Me(e[n],t[n]))return!1;return!0}function Bc(e,t,n,r,i,s){if(Ar=s,yt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yo.current=e===null||e.memoizedState===null?dv:fv,e=n(r,i),Xi){s=0;do{if(Xi=!1,gs=0,25<=s)throw Error(_(301));s+=1,Ot=It=null,t.updateQueue=null,yo.current=hv,e=n(r,i)}while(Xi)}if(yo.current=Yo,t=It!==null&&It.next!==null,Ar=0,Ot=It=yt=null,Ho=!1,t)throw Error(_(300));return e}function Ec(){var e=gs!==0;return gs=0,e}function ze(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?yt.memoizedState=Ot=e:Ot=Ot.next=e,Ot}function Ee(){if(It===null){var e=yt.alternate;e=e!==null?e.memoizedState:null}else e=It.next;var t=Ot===null?yt.memoizedState:Ot.next;if(t!==null)Ot=t,It=e;else{if(e===null)throw Error(_(310));It=e,e={memoizedState:It.memoizedState,baseState:It.baseState,baseQueue:It.baseQueue,queue:It.queue,next:null},Ot===null?yt.memoizedState=Ot=e:Ot=Ot.next=e}return Ot}function vs(e,t){return typeof t=="function"?t(e):t}function Fa(e){var t=Ee(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=It,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var c=u.lane;if((Ar&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,o=r):a=a.next=f,yt.lanes|=c,Dr|=c}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,Me(r,t.memoizedState)||(Gt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,yt.lanes|=s,Dr|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Oa(e){var t=Ee(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Me(s,t.memoizedState)||(Gt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function vp(){}function wp(e,t){var n=yt,r=Ee(),i=t(),s=!Me(r.memoizedState,i);if(s&&(r.memoizedState=i,Gt=!0),r=r.queue,Fc(Ip.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ot!==null&&Ot.memoizedState.tag&1){if(n.flags|=2048,ws(9,Sp.bind(null,n,r,i,t),void 0,null),At===null)throw Error(_(349));Ar&30||_p(n,t,i)}return i}function _p(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=yt.updateQueue,t===null?(t={lastEffect:null,stores:null},yt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sp(e,t,n,r){t.value=n,t.getSnapshot=r,bp(t)&&Bp(e)}function Ip(e,t,n){return n(function(){bp(t)&&Bp(e)})}function bp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Me(e,n)}catch{return!0}}function Bp(e){var t=In(e,1);t!==null&&xe(t,e,1,-1)}function lf(e){var t=ze();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:e},t.queue=e,e=e.dispatch=cv.bind(null,yt,e),[t.memoizedState,e]}function ws(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=yt.updateQueue,t===null?(t={lastEffect:null,stores:null},yt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ep(){return Ee().memoizedState}function mo(e,t,n,r){var i=ze();yt.flags|=e,i.memoizedState=ws(1|t,n,void 0,r===void 0?null:r)}function Cl(e,t,n,r){var i=Ee();r=r===void 0?null:r;var s=void 0;if(It!==null){var o=It.memoizedState;if(s=o.destroy,r!==null&&bc(r,o.deps)){i.memoizedState=ws(t,n,s,r);return}}yt.flags|=e,i.memoizedState=ws(1|t,n,s,r)}function af(e,t){return mo(8390656,8,e,t)}function Fc(e,t){return Cl(2048,8,e,t)}function Fp(e,t){return Cl(4,2,e,t)}function Op(e,t){return Cl(4,4,e,t)}function Ap(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dp(e,t,n){return n=n!=null?n.concat([e]):null,Cl(4,4,Ap.bind(null,t,e),n)}function Oc(){}function Np(e,t){var n=Ee();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kp(e,t){var n=Ee();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Tp(e,t,n){return Ar&21?(Me(n,t)||(n=Rh(),yt.lanes|=n,Dr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Gt=!0),e.memoizedState=n)}function av(e,t){var n=et;et=n!==0&&4>n?n:4,e(!0);var r=Ea.transition;Ea.transition={};try{e(!1),t()}finally{et=n,Ea.transition=r}}function xp(){return Ee().memoizedState}function uv(e,t,n){var r=Hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Cp(e))Mp(t,n);else if(n=yp(e,t,n,r),n!==null){var i=Vt();xe(n,e,r,i),Lp(n,t,r)}}function cv(e,t,n){var r=Hn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cp(e))Mp(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Me(l,o)){var a=t.interleaved;a===null?(i.next=i,vc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=yp(e,t,i,r),n!==null&&(i=Vt(),xe(n,e,r,i),Lp(n,t,r))}}function Cp(e){var t=e.alternate;return e===yt||t!==null&&t===yt}function Mp(e,t){Xi=Ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ic(e,n)}}var Yo={readContext:Be,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useInsertionEffect:Ct,useLayoutEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useMutableSource:Ct,useSyncExternalStore:Ct,useId:Ct,unstable_isNewReconciler:!1},dv={readContext:Be,useCallback:function(e,t){return ze().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:af,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,mo(4194308,4,Ap.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mo(4194308,4,e,t)},useInsertionEffect:function(e,t){return mo(4,2,e,t)},useMemo:function(e,t){var n=ze();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ze();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uv.bind(null,yt,e),[r.memoizedState,e]},useRef:function(e){var t=ze();return e={current:e},t.memoizedState=e},useState:lf,useDebugValue:Oc,useDeferredValue:function(e){return ze().memoizedState=e},useTransition:function(){var e=lf(!1),t=e[0];return e=av.bind(null,e[1]),ze().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=yt,i=ze();if(ct){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),At===null)throw Error(_(349));Ar&30||_p(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,af(Ip.bind(null,r,s,e),[e]),r.flags|=2048,ws(9,Sp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ze(),t=At.identifierPrefix;if(ct){var n=mn,r=yn;n=(r&~(1<<32-Te(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=lv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fv={readContext:Be,useCallback:Np,useContext:Be,useEffect:Fc,useImperativeHandle:Dp,useInsertionEffect:Fp,useLayoutEffect:Op,useMemo:kp,useReducer:Fa,useRef:Ep,useState:function(){return Fa(vs)},useDebugValue:Oc,useDeferredValue:function(e){var t=Ee();return Tp(t,It.memoizedState,e)},useTransition:function(){var e=Fa(vs)[0],t=Ee().memoizedState;return[e,t]},useMutableSource:vp,useSyncExternalStore:wp,useId:xp,unstable_isNewReconciler:!1},hv={readContext:Be,useCallback:Np,useContext:Be,useEffect:Fc,useImperativeHandle:Dp,useInsertionEffect:Fp,useLayoutEffect:Op,useMemo:kp,useReducer:Oa,useRef:Ep,useState:function(){return Oa(vs)},useDebugValue:Oc,useDeferredValue:function(e){var t=Ee();return It===null?t.memoizedState=e:Tp(t,It.memoizedState,e)},useTransition:function(){var e=Oa(vs)[0],t=Ee().memoizedState;return[e,t]},useMutableSource:vp,useSyncExternalStore:wp,useId:xp,unstable_isNewReconciler:!1};function Ae(e,t){if(e&&e.defaultProps){t=mt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function yu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:mt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ml={isMounted:function(e){return(e=e._reactInternals)?xr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vt(),i=Hn(e),s=gn(r,i);s.payload=t,n!=null&&(s.callback=n),t=$n(e,s,i),t!==null&&(xe(t,e,i,r),po(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vt(),i=Hn(e),s=gn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=$n(e,s,i),t!==null&&(xe(t,e,i,r),po(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vt(),r=Hn(e),i=gn(n,r);i.tag=2,t!=null&&(i.callback=t),t=$n(e,i,r),t!==null&&(xe(t,e,r,n),po(t,e,r))}};function uf(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!ds(n,r)||!ds(i,s):!0}function Rp(e,t,n){var r=!1,i=Kn,s=t.contextType;return typeof s=="object"&&s!==null?s=Be(s):(i=Zt(t)?Fr:Rt.current,r=t.contextTypes,s=(r=r!=null)?hi(e,i):Kn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function cf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ml.enqueueReplaceState(t,t.state,null)}function mu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},wc(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Be(s):(s=Zt(t)?Fr:Rt.current,i.context=hi(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(yu(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ml.enqueueReplaceState(i,i.state,null),$o(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function gi(e,t){try{var n="",r=t;do n+=jg(r),r=r.return;while(r);var i=n}catch(s){i=`
|
39
39
|
Error generating stack: `+s.message+`
|
40
|
-
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Aa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pv=typeof WeakMap=="function"?WeakMap:Map;function Up(e,t,n){n=gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ko||(Ko=!0,Ou=r),gu(e,t)},n}function Pp(e,t,n){n=gn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){gu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){gu(e,t),typeof r!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function df(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Av.bind(null,e,t,n),t.then(e,e))}function ff(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gn(-1,1),t.tag=2,$n(n,t,1))),n.lanes|=1),e)}var yv=En.ReactCurrentOwner,Gt=!1;function Ut(e,t,n,r){t.child=e===null?pp(t,null,n,r):yi(t,e.child,n,r)}function pf(e,t,n,r,i){n=n.render;var s=t.ref;return si(t,i),r=Bc(e,t,n,r,s,i),n=Ec(),e!==null&&!Gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bn(e,t,i)):(ct&&n&&fc(t),t.flags|=1,Ut(e,t,r,i),t.child)}function yf(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Mc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,zp(e,t,s,r,i)):(e=_o(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:ds,n(o,r)&&e.ref===t.ref)return bn(e,t,i)}return t.flags|=1,e=Yn(s,r),e.ref=t.ref,e.return=t,t.child=e}function zp(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(ds(s,r)&&e.ref===t.ref)if(Gt=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Gt=!0);else return t.lanes=e.lanes,bn(e,t,i)}return vu(e,t,n,r,i)}function jp(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(qr,se),se|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ot(qr,se),se|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ot(qr,se),se|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ot(qr,se),se|=r;return Ut(e,t,i,n),t.child}function Vp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vu(e,t,n,r,i){var s=Zt(n)?Fr:Rt.current;return s=hi(t,s),si(t,i),n=Bc(e,t,n,r,s,i),r=Ec(),e!==null&&!Gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bn(e,t,i)):(ct&&r&&fc(t),t.flags|=1,Ut(e,t,n,i),t.child)}function mf(e,t,n,r,i){if(Zt(n)){var s=!0;Uo(t)}else s=!1;if(si(t,i),t.stateNode===null)go(e,t),Rp(t,n,r),mu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Be(u):(u=Zt(n)?Fr:Rt.current,u=hi(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&cf(t,o,r,u),Nn=!1;var p=t.memoizedState;o.state=p,$o(t,r,o,i),a=t.memoizedState,l!==r||p!==a||Xt.current||Nn?(typeof c=="function"&&(yu(t,n,c,r),a=t.memoizedState),(l=Nn||uf(t,n,l,r,p,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,mp(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ae(t.type,l),o.props=u,f=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Be(a):(a=Zt(n)?Fr:Rt.current,a=hi(t,a));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||p!==a)&&cf(t,o,r,a),Nn=!1,p=t.memoizedState,o.state=p,$o(t,r,o,i);var v=t.memoizedState;l!==f||p!==v||Xt.current||Nn?(typeof g=="function"&&(yu(t,n,g,r),v=t.memoizedState),(u=Nn||uf(t,n,u,r,p,v,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return wu(e,t,n,r,s,i)}function wu(e,t,n,r,i,s){Vp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&tf(t,n,!1),bn(e,t,s);r=t.stateNode,yv.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=yi(t,e.child,null,s),t.child=yi(t,null,l,s)):Ut(e,t,l,s),t.memoizedState=r.state,i&&tf(t,n,!0),t.child}function $p(e){var t=e.stateNode;t.pendingContext?qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qd(e,t.context,!1),_c(e,t.containerInfo)}function gf(e,t,n,r,i){return pi(),pc(i),t.flags|=256,Ut(e,t,n,r),t.child}var _u={dehydrated:null,treeContext:null,retryLane:0};function Su(e){return{baseLanes:e,cachePool:null,transitions:null}}function Wp(e,t,n){var r=t.pendingProps,i=ft.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ot(ft,i&1),e===null)return hu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ul(o,r,0,null),e=br(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Su(n),t.memoizedState=_u,e):Ac(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return mv(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Yn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Yn(l,s):(s=br(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Su(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=_u,r}return s=e.child,e=s.sibling,r=Yn(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ac(e,t){return t=Ul({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eo(e,t,n,r){return r!==null&&pc(r),yi(t,e.child,null,n),e=Ac(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mv(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Aa(Error(_(422))),eo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Ul({mode:"visible",children:r.children},i,0,null),s=br(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&yi(t,e.child,null,o),t.child.memoizedState=Su(o),t.memoizedState=_u,s);if(!(t.mode&1))return eo(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(_(419)),r=Aa(s,r,void 0),eo(e,t,o,r)}if(l=(o&e.childLanes)!==0,Gt||l){if(r=At,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,In(e,i),xe(r,e,i,-1))}return Cc(),r=Aa(Error(_(421))),eo(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Dv.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ae=Vn(i.nextSibling),ue=t,ct=!0,Ne=null,e!==null&&(ve[we++]=yn,ve[we++]=mn,ve[we++]=Or,yn=e.id,mn=e.overflow,Or=t),t=Ac(t,r.children),t.flags|=4096,t)}function vf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pu(e.return,t,n)}function Da(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Hp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ut(e,t,r.children,n),r=ft.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)t:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vf(e,n,t);else if(e.tag===19)vf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(ft,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Wo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Da(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Da(t,!0,n,null,s);break;case"together":Da(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function go(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Yn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gv(e,t,n){switch(t.tag){case 3:$p(t),pi();break;case 5:gp(t);break;case 1:Zt(t.type)&&Uo(t);break;case 4:_c(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ot(jo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ot(ft,ft.current&1),t.flags|=128,null):n&t.child.childLanes?Wp(e,t,n):(ot(ft,ft.current&1),e=bn(e,t,n),e!==null?e.sibling:null);ot(ft,ft.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Hp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ot(ft,ft.current),r)break;return null;case 22:case 23:return t.lanes=0,jp(e,t,n)}return bn(e,t,n)}var Yp,Iu,Qp,Kp;Yp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Iu=function(){};Qp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yr(tn.current);var s=null;switch(n){case"input":i=Wa(e,i),r=Wa(e,r),s=[];break;case"select":i=mt({},i,{value:void 0}),r=mt({},r,{value:void 0}),s=[];break;case"textarea":i=Qa(e,i),r=Qa(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Lo)}Ja(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(is.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(is.hasOwnProperty(u)?(a!=null&&u==="onScroll"&<("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Kp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ri(e,t){if(!ct)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vv(e,t,n){var r=t.pendingProps;switch(hc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(t),null;case 1:return Zt(t.type)&&Ro(),Mt(t),null;case 3:return r=t.stateNode,mi(),at(Xt),at(Rt),Ic(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ne!==null&&(ku(Ne),Ne=null))),Iu(e,t),Mt(t),null;case 5:Sc(t);var i=yr(ms.current);if(n=t.type,e!==null&&t.stateNode!=null)Qp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return Mt(t),null}if(e=yr(tn.current),qs(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[We]=t,r[ps]=s,e=(t.mode&1)!==0,n){case"dialog":lt("cancel",r),lt("close",r);break;case"iframe":case"object":case"embed":lt("load",r);break;case"video":case"audio":for(i=0;i<$i.length;i++)lt($i[i],r);break;case"source":lt("error",r);break;case"img":case"image":case"link":lt("error",r),lt("load",r);break;case"details":lt("toggle",r);break;case"input":Fd(r,s),lt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},lt("invalid",r);break;case"textarea":Ad(r,s),lt("invalid",r)}Ja(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Zs(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Zs(r.textContent,l,e),i=["children",""+l]):is.hasOwnProperty(o)&&l!=null&&o==="onScroll"&<("scroll",r)}switch(n){case"input":Ws(r),Od(r,s,!0);break;case"textarea":Ws(r),Dd(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Lo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ih(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[We]=t,e[ps]=r,Yp(e,t,!1,!1),t.stateNode=e;t:{switch(o=Ga(n,r),n){case"dialog":lt("cancel",e),lt("close",e),i=r;break;case"iframe":case"object":case"embed":lt("load",e),i=r;break;case"video":case"audio":for(i=0;i<$i.length;i++)lt($i[i],e);i=r;break;case"source":lt("error",e),i=r;break;case"img":case"image":case"link":lt("error",e),lt("load",e),i=r;break;case"details":lt("toggle",e),i=r;break;case"input":Fd(e,r),i=Wa(e,r),lt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=mt({},r,{value:void 0}),lt("invalid",e);break;case"textarea":Ad(e,r),i=Qa(e,r),lt("invalid",e);break;default:i=r}Ja(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?Eh(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&bh(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ss(e,a):typeof a=="number"&&ss(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(is.hasOwnProperty(s)?a!=null&&s==="onScroll"&<("scroll",e):a!=null&&Zu(e,s,a,o))}switch(n){case"input":Ws(e),Od(e,r,!1);break;case"textarea":Ws(e),Dd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Qn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?ei(e,!!r.multiple,s,!1):r.defaultValue!=null&&ei(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Lo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break t;case"img":r=!0;break t;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Mt(t),null;case 6:if(e&&t.stateNode!=null)Kp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=yr(ms.current),yr(tn.current),qs(t)){if(r=t.stateNode,n=t.memoizedProps,r[We]=t,(s=r.nodeValue!==n)&&(e=ue,e!==null))switch(e.tag){case 3:Zs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zs(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[We]=t,t.stateNode=r}return Mt(t),null;case 13:if(at(ft),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ct&&ae!==null&&t.mode&1&&!(t.flags&128))fp(),pi(),t.flags|=98560,s=!1;else if(s=qs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(_(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[We]=t}else pi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mt(t),s=!1}else Ne!==null&&(ku(Ne),Ne=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ft.current&1?Et===0&&(Et=3):Cc())),t.updateQueue!==null&&(t.flags|=4),Mt(t),null);case 4:return mi(),Iu(e,t),e===null&&fs(t.stateNode.containerInfo),Mt(t),null;case 10:return gc(t.type._context),Mt(t),null;case 17:return Zt(t.type)&&Ro(),Mt(t),null;case 19:if(at(ft),s=t.memoizedState,s===null)return Mt(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Ri(s,!1);else{if(Et!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Wo(e),o!==null){for(t.flags|=128,Ri(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ot(ft,ft.current&1|2),t.child}e=e.sibling}s.tail!==null&&wt()>vi&&(t.flags|=128,r=!0,Ri(s,!1),t.lanes=4194304)}else{if(!r)if(e=Wo(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ri(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ct)return Mt(t),null}else 2*wt()-s.renderingStartTime>vi&&n!==1073741824&&(t.flags|=128,r=!0,Ri(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=wt(),t.sibling=null,n=ft.current,ot(ft,r?n&1|2:n&1),t):(Mt(t),null);case 22:case 23:return xc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?se&1073741824&&(Mt(t),t.subtreeFlags&6&&(t.flags|=8192)):Mt(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function wv(e,t){switch(hc(t),t.tag){case 1:return Zt(t.type)&&Ro(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mi(),at(Xt),at(Rt),Ic(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sc(t),null;case 13:if(at(ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return at(ft),null;case 4:return mi(),null;case 10:return gc(t.type._context),null;case 22:case 23:return xc(),null;case 24:return null;default:return null}}var no=!1,Lt=!1,_v=typeof WeakSet=="function"?WeakSet:Set,B=null;function Zr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function bu(e,t,n){try{n()}catch(r){gt(e,t,r)}}var wf=!1;function Sv(e,t){if(ou=xo,e=qh(),dc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else t:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break t}var o=0,l=-1,a=-1,u=0,c=0,f=e,p=null;e:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break e;if(p===n&&++u===i&&(l=o),p===s&&++c===r&&(a=o),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(lu={focusedElem:e,selectionRange:n},xo=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,Q=v.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ae(t.type,S),Q);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(w){gt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return v=wf,wf=!1,v}function Zi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&bu(t,n,s)}i=i.next}while(i!==r)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Jp(e){var t=e.alternate;t!==null&&(e.alternate=null,Jp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[ps],delete t[cu],delete t[rv],delete t[iv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gp(e){return e.tag===5||e.tag===3||e.tag===4}function _f(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||Gp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Eu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lo));else if(r!==4&&(e=e.child,e!==null))for(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}function Fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fu(e,t,n),e=e.sibling;e!==null;)Fu(e,t,n),e=e.sibling}var Nt=null,De=!1;function An(e,t,n){for(n=n.child;n!==null;)Xp(e,t,n),n=n.sibling}function Xp(e,t,n){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(Al,n)}catch{}switch(n.tag){case 5:Lt||Zr(n,t);case 6:var r=Nt,i=De;Nt=null,An(e,t,n),Nt=r,De=i,Nt!==null&&(De?(e=Nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nt.removeChild(n.stateNode));break;case 18:Nt!==null&&(De?(e=Nt,n=n.stateNode,e.nodeType===8?Ia(e.parentNode,n):e.nodeType===1&&Ia(e,n),us(e)):Ia(Nt,n.stateNode));break;case 4:r=Nt,i=De,Nt=n.stateNode.containerInfo,De=!0,An(e,t,n),Nt=r,De=i;break;case 0:case 11:case 14:case 15:if(!Lt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&bu(n,t,o),i=i.next}while(i!==r)}An(e,t,n);break;case 1:if(!Lt&&(Zr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){gt(n,t,l)}An(e,t,n);break;case 21:An(e,t,n);break;case 22:n.mode&1?(Lt=(r=Lt)||n.memoizedState!==null,An(e,t,n),Lt=r):An(e,t,n);break;default:An(e,t,n)}}function Sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _v),t.forEach(function(r){var i=kv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Oe(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;t:for(;l!==null;){switch(l.tag){case 5:Nt=l.stateNode,De=!1;break t;case 3:Nt=l.stateNode.containerInfo,De=!0;break t;case 4:Nt=l.stateNode.containerInfo,De=!0;break t}l=l.return}if(Nt===null)throw Error(_(160));Xp(s,o,i),Nt=null,De=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){gt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zp(t,e),t=t.sibling}function Zp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Oe(t,e),Ue(e),r&4){try{Zi(3,e,e.return),Ll(3,e)}catch(S){gt(e,e.return,S)}try{Zi(5,e,e.return)}catch(S){gt(e,e.return,S)}}break;case 1:Oe(t,e),Ue(e),r&512&&n!==null&&Zr(n,n.return);break;case 5:if(Oe(t,e),Ue(e),r&512&&n!==null&&Zr(n,n.return),e.flags&32){var i=e.stateNode;try{ss(i,"")}catch(S){gt(e,e.return,S)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&_h(i,s),Ga(l,o);var u=Ga(l,s);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?Eh(i,f):c==="dangerouslySetInnerHTML"?bh(i,f):c==="children"?ss(i,f):Zu(i,c,f,u)}switch(l){case"input":Ha(i,s);break;case"textarea":Sh(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?ei(i,!!s.multiple,g,!1):p!==!!s.multiple&&(s.defaultValue!=null?ei(i,!!s.multiple,s.defaultValue,!0):ei(i,!!s.multiple,s.multiple?[]:"",!1))}i[ps]=s}catch(S){gt(e,e.return,S)}}break;case 6:if(Oe(t,e),Ue(e),r&4){if(e.stateNode===null)throw Error(_(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(S){gt(e,e.return,S)}}break;case 3:if(Oe(t,e),Ue(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{us(t.containerInfo)}catch(S){gt(e,e.return,S)}break;case 4:Oe(t,e),Ue(e);break;case 13:Oe(t,e),Ue(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Nc=wt())),r&4&&Sf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Lt=(u=Lt)||c,Oe(t,e),Lt=u):Oe(t,e),Ue(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(B=e,c=e.child;c!==null;){for(f=B=c;B!==null;){switch(p=B,g=p.child,p.tag){case 0:case 11:case 14:case 15:Zi(4,p,p.return);break;case 1:Zr(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(S){gt(r,n,S)}}break;case 5:Zr(p,p.return);break;case 22:if(p.memoizedState!==null){bf(f);continue}}g!==null?(g.return=p,B=g):bf(f)}c=c.sibling}t:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Bh("display",o))}catch(S){gt(e,e.return,S)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(S){gt(e,e.return,S)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Oe(t,e),Ue(e),r&4&&Sf(e);break;case 21:break;default:Oe(t,e),Ue(e)}}function Ue(e){var t=e.flags;if(t&2){try{t:{for(var n=e.return;n!==null;){if(Gp(n)){var r=n;break t}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ss(i,""),r.flags&=-33);var s=_f(e);Fu(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=_f(e);Eu(e,l,o);break;default:throw Error(_(161))}}catch(a){gt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Iv(e,t,n){B=e,qp(e)}function qp(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var i=B,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||no;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Lt;l=no;var u=Lt;if(no=o,(Lt=a)&&!u)for(B=i;B!==null;)o=B,a=o.child,o.tag===22&&o.memoizedState!==null?Bf(i):a!==null?(a.return=o,B=a):Bf(i);for(;s!==null;)B=s,qp(s),s=s.sibling;B=i,no=l,Lt=u}If(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,B=s):If(e)}}function If(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Lt||Ll(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Lt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ae(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&of(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}of(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&us(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}Lt||t.flags&512&&Bu(t)}catch(p){gt(t,t.return,p)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function bf(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function Bf(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ll(4,t)}catch(a){gt(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){gt(t,i,a)}}var s=t.return;try{Bu(t)}catch(a){gt(t,s,a)}break;case 5:var o=t.return;try{Bu(t)}catch(a){gt(t,o,a)}}}catch(a){gt(t,t.return,a)}if(t===e){B=null;break}var l=t.sibling;if(l!==null){l.return=t.return,B=l;break}B=t.return}}var bv=Math.ceil,Qo=En.ReactCurrentDispatcher,Dc=En.ReactCurrentOwner,be=En.ReactCurrentBatchConfig,K=0,At=null,_t=null,Tt=0,se=0,qr=nr(0),Et=0,_s=null,Dr=0,Rl=0,kc=0,qi=null,Qt=null,Nc=0,vi=1/0,an=null,Ko=!1,Ou=null,Wn=null,ro=!1,Rn=null,Jo=0,ts=0,Au=null,vo=-1,wo=0;function Vt(){return K&6?wt():vo!==-1?vo:vo=wt()}function Hn(e){return e.mode&1?K&2&&Tt!==0?Tt&-Tt:ov.transition!==null?(wo===0&&(wo=Rh()),wo):(e=et,e!==0||(e=window.event,e=e===void 0?16:Wh(e.type)),e):1}function xe(e,t,n,r){if(50<ts)throw ts=0,Au=null,Error(_(185));Ds(e,n,r),(!(K&2)||e!==At)&&(e===At&&(!(K&2)&&(Rl|=n),Et===4&&Mn(e,Tt)),qt(e,r),n===1&&K===0&&!(t.mode&1)&&(vi=wt()+500,xl&&rr()))}function qt(e,t){var n=e.callbackNode;o0(e,t);var r=To(e,e===At?Tt:0);if(r===0)n!==null&&Td(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Td(n),t===1)e.tag===0?sv(Ef.bind(null,e)):up(Ef.bind(null,e)),ev(function(){!(K&6)&&rr()}),n=null;else{switch(Uh(r)){case 1:n=rc;break;case 4:n=Mh;break;case 16:n=No;break;case 536870912:n=Lh;break;default:n=No}n=ly(n,ty.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ty(e,t){if(vo=-1,wo=0,K&6)throw Error(_(327));var n=e.callbackNode;if(oi()&&e.callbackNode!==n)return null;var r=To(e,e===At?Tt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Go(e,r);else{t=r;var i=K;K|=2;var s=ny();(At!==e||Tt!==t)&&(an=null,vi=wt()+500,Ir(e,t));do try{Fv();break}catch(l){ey(e,l)}while(!0);mc(),Qo.current=s,K=i,_t!==null?t=0:(At=null,Tt=0,t=Et)}if(t!==0){if(t===2&&(i=eu(e),i!==0&&(r=i,t=Du(e,i))),t===1)throw n=_s,Ir(e,0),Mn(e,r),qt(e,wt()),n;if(t===6)Mn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Bv(i)&&(t=Go(e,r),t===2&&(s=eu(e),s!==0&&(r=s,t=Du(e,s))),t===1))throw n=_s,Ir(e,0),Mn(e,r),qt(e,wt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:dr(e,Qt,an);break;case 3:if(Mn(e,r),(r&130023424)===r&&(t=Nc+500-wt(),10<t)){if(To(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Vt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=uu(dr.bind(null,e,Qt,an),t);break}dr(e,Qt,an);break;case 4:if(Mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Te(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bv(r/1960))-r,10<r){e.timeoutHandle=uu(dr.bind(null,e,Qt,an),r);break}dr(e,Qt,an);break;case 5:dr(e,Qt,an);break;default:throw Error(_(329))}}}return qt(e,wt()),e.callbackNode===n?ty.bind(null,e):null}function Du(e,t){var n=qi;return e.current.memoizedState.isDehydrated&&(Ir(e,t).flags|=256),e=Go(e,t),e!==2&&(t=Qt,Qt=n,t!==null&&ku(t)),e}function ku(e){Qt===null?Qt=e:Qt.push.apply(Qt,e)}function Bv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Me(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mn(e,t){for(t&=~kc,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Te(t),r=1<<n;e[n]=-1,t&=~r}}function Ef(e){if(K&6)throw Error(_(327));oi();var t=To(e,0);if(!(t&1))return qt(e,wt()),null;var n=Go(e,t);if(e.tag!==0&&n===2){var r=eu(e);r!==0&&(t=r,n=Du(e,r))}if(n===1)throw n=_s,Ir(e,0),Mn(e,t),qt(e,wt()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,dr(e,Qt,an),qt(e,wt()),null}function Tc(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(vi=wt()+500,xl&&rr())}}function kr(e){Rn!==null&&Rn.tag===0&&!(K&6)&&oi();var t=K;K|=1;var n=be.transition,r=et;try{if(be.transition=null,et=1,e)return e()}finally{et=r,be.transition=n,K=t,!(K&6)&&rr()}}function xc(){se=qr.current,at(qr)}function Ir(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,tv(n)),_t!==null)for(n=_t.return;n!==null;){var r=n;switch(hc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ro();break;case 3:mi(),at(Xt),at(Rt),Ic();break;case 5:Sc(r);break;case 4:mi();break;case 13:at(ft);break;case 19:at(ft);break;case 10:gc(r.type._context);break;case 22:case 23:xc()}n=n.return}if(At=e,_t=e=Yn(e.current,null),Tt=se=t,Et=0,_s=null,kc=Rl=Dr=0,Qt=qi=null,pr!==null){for(t=0;t<pr.length;t++)if(n=pr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}pr=null}return e}function ey(e,t){do{var n=_t;try{if(mc(),yo.current=Yo,Ho){for(var r=yt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ho=!1}if(Ar=0,Ot=It=yt=null,Xi=!1,gs=0,Dc.current=null,n===null||n.return===null){Et=1,_s=t,_t=null;break}t:{var s=e,o=n.return,l=n,a=t;if(t=Tt,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=ff(o);if(g!==null){g.flags&=-257,hf(g,o,l,s,t),g.mode&1&&df(s,u,t),t=g,a=u;var v=t.updateQueue;if(v===null){var S=new Set;S.add(a),t.updateQueue=S}else v.add(a);break t}else{if(!(t&1)){df(s,u,t),Cc();break t}a=Error(_(426))}}else if(ct&&l.mode&1){var Q=ff(o);if(Q!==null){!(Q.flags&65536)&&(Q.flags|=256),hf(Q,o,l,s,t),pc(gi(a,l));break t}}s=a=gi(a,l),Et!==4&&(Et=2),qi===null?qi=[s]:qi.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=Up(s,a,t);sf(s,h);break t;case 1:l=a;var d=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Wn===null||!Wn.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=Pp(s,l,t);sf(s,w);break t}}s=s.return}while(s!==null)}iy(n)}catch(I){t=I,_t===n&&n!==null&&(_t=n=n.return);continue}break}while(!0)}function ny(){var e=Qo.current;return Qo.current=Yo,e===null?Yo:e}function Cc(){(Et===0||Et===3||Et===2)&&(Et=4),At===null||!(Dr&268435455)&&!(Rl&268435455)||Mn(At,Tt)}function Go(e,t){var n=K;K|=2;var r=ny();(At!==e||Tt!==t)&&(an=null,Ir(e,t));do try{Ev();break}catch(i){ey(e,i)}while(!0);if(mc(),K=n,Qo.current=r,_t!==null)throw Error(_(261));return At=null,Tt=0,Et}function Ev(){for(;_t!==null;)ry(_t)}function Fv(){for(;_t!==null&&!Xg();)ry(_t)}function ry(e){var t=oy(e.alternate,e,se);e.memoizedProps=e.pendingProps,t===null?iy(e):_t=t,Dc.current=null}function iy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=wv(n,t),n!==null){n.flags&=32767,_t=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Et=6,_t=null;return}}else if(n=vv(n,t,se),n!==null){_t=n;return}if(t=t.sibling,t!==null){_t=t;return}_t=t=e}while(t!==null);Et===0&&(Et=5)}function dr(e,t,n){var r=et,i=be.transition;try{be.transition=null,et=1,Ov(e,t,n,r)}finally{be.transition=i,et=r}return null}function Ov(e,t,n,r){do oi();while(Rn!==null);if(K&6)throw Error(_(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(l0(e,s),e===At&&(_t=At=null,Tt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ro||(ro=!0,ly(No,function(){return oi(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=be.transition,be.transition=null;var o=et;et=1;var l=K;K|=4,Dc.current=null,Sv(e,n),Zp(n,e),Q0(lu),xo=!!ou,lu=ou=null,e.current=n,Iv(n),Zg(),K=l,et=o,be.transition=s}else e.current=n;if(ro&&(ro=!1,Rn=e,Jo=i),s=e.pendingLanes,s===0&&(Wn=null),e0(n.stateNode),qt(e,wt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ko)throw Ko=!1,e=Ou,Ou=null,e;return Jo&1&&e.tag!==0&&oi(),s=e.pendingLanes,s&1?e===Au?ts++:(ts=0,Au=e):ts=0,rr(),null}function oi(){if(Rn!==null){var e=Uh(Jo),t=be.transition,n=et;try{if(be.transition=null,et=16>e?16:e,Rn===null)var r=!1;else{if(e=Rn,Rn=null,Jo=0,K&6)throw Error(_(331));var i=K;for(K|=4,B=e.current;B!==null;){var s=B,o=s.child;if(B.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(B=u;B!==null;){var c=B;switch(c.tag){case 0:case 11:case 15:Zi(8,c,s)}var f=c.child;if(f!==null)f.return=c,B=f;else for(;B!==null;){c=B;var p=c.sibling,g=c.return;if(Jp(c),c===u){B=null;break}if(p!==null){p.return=g,B=p;break}B=g}}}var v=s.alternate;if(v!==null){var S=v.child;if(S!==null){v.child=null;do{var Q=S.sibling;S.sibling=null,S=Q}while(S!==null)}}B=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,B=o;else t:for(;B!==null;){if(s=B,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Zi(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,B=h;break t}B=s.return}}var d=e.current;for(B=d;B!==null;){o=B;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,B=m;else t:for(o=d;B!==null;){if(l=B,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ll(9,l)}}catch(I){gt(l,l.return,I)}if(l===o){B=null;break t}var w=l.sibling;if(w!==null){w.return=l.return,B=w;break t}B=l.return}}if(K=i,rr(),qe&&typeof qe.onPostCommitFiberRoot=="function")try{qe.onPostCommitFiberRoot(Al,e)}catch{}r=!0}return r}finally{et=n,be.transition=t}}return!1}function Ff(e,t,n){t=gi(n,t),t=Up(e,t,1),e=$n(e,t,1),t=Vt(),e!==null&&(Ds(e,1,t),qt(e,t))}function gt(e,t,n){if(e.tag===3)Ff(e,e,n);else for(;t!==null;){if(t.tag===3){Ff(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wn===null||!Wn.has(r))){e=gi(n,e),e=Pp(t,e,1),t=$n(t,e,1),e=Vt(),t!==null&&(Ds(t,1,e),qt(t,e));break}}t=t.return}}function Av(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Vt(),e.pingedLanes|=e.suspendedLanes&n,At===e&&(Tt&n)===n&&(Et===4||Et===3&&(Tt&130023424)===Tt&&500>wt()-Nc?Ir(e,0):kc|=n),qt(e,t)}function sy(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Vt();e=In(e,t),e!==null&&(Ds(e,t,n),qt(e,n))}function Dv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sy(e,n)}function kv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),sy(e,n)}var oy;oy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Gt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Gt=!1,gv(e,t,n);Gt=!!(e.flags&131072)}else Gt=!1,ct&&t.flags&1048576&&cp(t,zo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;go(e,t),e=t.pendingProps;var i=hi(t,Rt.current);si(t,n),i=Bc(null,t,r,e,i,n);var s=Ec();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zt(r)?(s=!0,Uo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wc(t),i.updater=Ml,t.stateNode=i,i._reactInternals=t,mu(t,r,e,n),t=wu(null,t,r,!0,s,n)):(t.tag=0,ct&&s&&fc(t),Ut(null,t,i,n),t=t.child),t;case 16:r=t.elementType;t:{switch(go(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Tv(r),e=Ae(r,e),i){case 0:t=vu(null,t,r,e,n);break t;case 1:t=mf(null,t,r,e,n);break t;case 11:t=pf(null,t,r,e,n);break t;case 14:t=yf(null,t,r,Ae(r.type,e),n);break t}throw Error(_(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),vu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),mf(e,t,r,i,n);case 3:t:{if($p(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,i=s.element,mp(e,t),$o(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=gi(Error(_(423)),t),t=gf(e,t,r,n,i);break t}else if(r!==i){i=gi(Error(_(424)),t),t=gf(e,t,r,n,i);break t}else for(ae=Vn(t.stateNode.containerInfo.firstChild),ue=t,ct=!0,Ne=null,n=pp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pi(),r===i){t=bn(e,t,n);break t}Ut(e,t,r,n)}t=t.child}return t;case 5:return gp(t),e===null&&hu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,au(r,i)?o=null:s!==null&&au(r,s)&&(t.flags|=32),Vp(e,t),Ut(e,t,o,n),t.child;case 6:return e===null&&hu(t),null;case 13:return Wp(e,t,n);case 4:return _c(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=yi(t,null,r,n):Ut(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),pf(e,t,r,i,n);case 7:return Ut(e,t,t.pendingProps,n),t.child;case 8:return Ut(e,t,t.pendingProps.children,n),t.child;case 12:return Ut(e,t,t.pendingProps.children,n),t.child;case 10:t:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ot(jo,r._currentValue),r._currentValue=o,s!==null)if(Me(s.value,o)){if(s.children===i.children&&!Xt.current){t=bn(e,t,n);break t}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=gn(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),pu(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(_(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),pu(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ut(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,si(t,n),i=Be(i),r=r(i),t.flags|=1,Ut(e,t,r,n),t.child;case 14:return r=t.type,i=Ae(r,t.pendingProps),i=Ae(r.type,i),yf(e,t,r,i,n);case 15:return zp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),go(e,t),t.tag=1,Zt(r)?(e=!0,Uo(t)):e=!1,si(t,n),Rp(t,r,i),mu(t,r,i,n),wu(null,t,r,!0,e,n);case 19:return Hp(e,t,n);case 22:return jp(e,t,n)}throw Error(_(156,t.tag))};function ly(e,t){return Ch(e,t)}function Nv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ie(e,t,n,r){return new Nv(e,t,n,r)}function Mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tv(e){if(typeof e=="function")return Mc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tc)return 11;if(e===ec)return 14}return 2}function Yn(e,t){var n=e.alternate;return n===null?(n=Ie(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _o(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Mc(e)&&(o=1);else if(typeof e=="string")o=5;else t:switch(e){case $r:return br(n.children,i,s,t);case qu:o=8,i|=8;break;case za:return e=Ie(12,n,t,i|2),e.elementType=za,e.lanes=s,e;case ja:return e=Ie(13,n,t,i),e.elementType=ja,e.lanes=s,e;case Va:return e=Ie(19,n,t,i),e.elementType=Va,e.lanes=s,e;case gh:return Ul(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yh:o=10;break t;case mh:o=9;break t;case tc:o=11;break t;case ec:o=14;break t;case kn:o=16,r=null;break t}throw Error(_(130,e==null?e:typeof e,""))}return t=Ie(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function br(e,t,n,r){return e=Ie(7,e,r,t),e.lanes=n,e}function Ul(e,t,n,r){return e=Ie(22,e,r,t),e.elementType=gh,e.lanes=n,e.stateNode={isHidden:!1},e}function ka(e,t,n){return e=Ie(6,e,null,t),e.lanes=n,e}function Na(e,t,n){return t=Ie(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=da(0),this.expirationTimes=da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=da(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lc(e,t,n,r,i,s,o,l,a){return e=new xv(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ie(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wc(s),e}function Cv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ay(e){if(!e)return Kn;e=e._reactInternals;t:{if(xr(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break t;case 1:if(Zt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break t}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Zt(n))return ap(e,n,t)}return t}function uy(e,t,n,r,i,s,o,l,a){return e=Lc(n,r,!0,e,i,s,o,l,a),e.context=ay(null),n=e.current,r=Vt(),i=Hn(n),s=gn(r,i),s.callback=t??null,$n(n,s,i),e.current.lanes=i,Ds(e,i,r),qt(e,r),e}function Pl(e,t,n,r){var i=t.current,s=Vt(),o=Hn(i);return n=ay(n),t.context===null?t.context=n:t.pendingContext=n,t=gn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$n(i,t,o),e!==null&&(xe(e,i,o,s),po(e,i,o)),o}function Xo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Of(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Rc(e,t){Of(e,t),(e=e.alternate)&&Of(e,t)}function Mv(){return null}var cy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uc(e){this._internalRoot=e}zl.prototype.render=Uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Pl(e,t,null,null)};zl.prototype.unmount=Uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kr(function(){Pl(null,e,null,null)}),t[Sn]=null}};function zl(e){this._internalRoot=e}zl.prototype.unstable_scheduleHydration=function(e){if(e){var t=jh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cn.length&&t!==0&&t<Cn[n].priority;n++);Cn.splice(n,0,e),n===0&&$h(e)}};function Pc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Af(){}function Lv(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Xo(o);s.call(u)}}var o=uy(t,r,e,0,null,!1,!1,"",Af);return e._reactRootContainer=o,e[Sn]=o.current,fs(e.nodeType===8?e.parentNode:e),kr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Xo(a);l.call(u)}}var a=Lc(e,0,!1,null,null,!1,!1,"",Af);return e._reactRootContainer=a,e[Sn]=a.current,fs(e.nodeType===8?e.parentNode:e),kr(function(){Pl(t,a,n,r)}),a}function Vl(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=Xo(o);l.call(a)}}Pl(t,o,e,i)}else o=Lv(n,t,e,i,r);return Xo(o)}Ph=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Vi(t.pendingLanes);n!==0&&(ic(t,n|1),qt(t,wt()),!(K&6)&&(vi=wt()+500,rr()))}break;case 13:kr(function(){var r=In(e,1);if(r!==null){var i=Vt();xe(r,e,1,i)}}),Rc(e,1)}};sc=function(e){if(e.tag===13){var t=In(e,134217728);if(t!==null){var n=Vt();xe(t,e,134217728,n)}Rc(e,134217728)}};zh=function(e){if(e.tag===13){var t=Hn(e),n=In(e,t);if(n!==null){var r=Vt();xe(n,e,t,r)}Rc(e,t)}};jh=function(){return et};Vh=function(e,t){var n=et;try{return et=e,t()}finally{et=n}};Za=function(e,t,n){switch(t){case"input":if(Ha(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Tl(r);if(!i)throw Error(_(90));wh(r),Ha(r,i)}}}break;case"textarea":Sh(e,n);break;case"select":t=n.value,t!=null&&ei(e,!!n.multiple,t,!1)}};Ah=Tc;Dh=kr;var Rv={usingClientEntryPoint:!1,Events:[Ns,Qr,Tl,Fh,Oh,Tc]},Ui={findFiberByHostInstance:hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Uv={bundleType:Ui.bundleType,version:Ui.version,rendererPackageName:Ui.rendererPackageName,rendererConfig:Ui.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:En.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Th(e),e===null?null:e.stateNode},findFiberByHostInstance:Ui.findFiberByHostInstance||Mv,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 io=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!io.isDisabled&&io.supportsFiber)try{Al=io.inject(Uv),qe=io}catch{}}he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rv;he.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pc(t))throw Error(_(200));return Cv(e,t,null,n)};he.createRoot=function(e,t){if(!Pc(e))throw Error(_(299));var n=!1,r="",i=cy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Lc(e,1,!1,null,null,n,!1,r,i),e[Sn]=t.current,fs(e.nodeType===8?e.parentNode:e),new Uc(t)};he.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=Th(t),e=e===null?null:e.stateNode,e};he.flushSync=function(e){return kr(e)};he.hydrate=function(e,t,n){if(!jl(t))throw Error(_(200));return Vl(null,e,t,!0,n)};he.hydrateRoot=function(e,t,n){if(!Pc(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=cy;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=uy(t,null,e,1,n??null,i,!1,s,o),e[Sn]=t.current,fs(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new zl(t)};he.render=function(e,t,n){if(!jl(t))throw Error(_(200));return Vl(null,e,t,!1,n)};he.unmountComponentAtNode=function(e){if(!jl(e))throw Error(_(40));return e._reactRootContainer?(kr(function(){Vl(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1};he.unstable_batchedUpdates=Tc;he.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jl(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Vl(e,t,n,!1,r)};he.version="18.3.1-next-f1338f8080-20240426";function dy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dy)}catch(e){console.error(e)}}dy(),dh.exports=he;var Pv=dh.exports;const zv=Hu(Pv);var fy={exports:{}},nt={};/** @license React v16.13.1
|
40
|
+
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Aa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pv=typeof WeakMap=="function"?WeakMap:Map;function Up(e,t,n){n=gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ko||(Ko=!0,Ou=r),gu(e,t)},n}function Pp(e,t,n){n=gn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){gu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){gu(e,t),typeof r!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function df(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Av.bind(null,e,t,n),t.then(e,e))}function ff(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gn(-1,1),t.tag=2,$n(n,t,1))),n.lanes|=1),e)}var yv=En.ReactCurrentOwner,Gt=!1;function Ut(e,t,n,r){t.child=e===null?pp(t,null,n,r):yi(t,e.child,n,r)}function pf(e,t,n,r,i){n=n.render;var s=t.ref;return si(t,i),r=Bc(e,t,n,r,s,i),n=Ec(),e!==null&&!Gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bn(e,t,i)):(ct&&n&&fc(t),t.flags|=1,Ut(e,t,r,i),t.child)}function yf(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Mc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,zp(e,t,s,r,i)):(e=_o(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:ds,n(o,r)&&e.ref===t.ref)return bn(e,t,i)}return t.flags|=1,e=Yn(s,r),e.ref=t.ref,e.return=t,t.child=e}function zp(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(ds(s,r)&&e.ref===t.ref)if(Gt=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Gt=!0);else return t.lanes=e.lanes,bn(e,t,i)}return vu(e,t,n,r,i)}function jp(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(qr,se),se|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ot(qr,se),se|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ot(qr,se),se|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ot(qr,se),se|=r;return Ut(e,t,i,n),t.child}function Vp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vu(e,t,n,r,i){var s=Zt(n)?Fr:Rt.current;return s=hi(t,s),si(t,i),n=Bc(e,t,n,r,s,i),r=Ec(),e!==null&&!Gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bn(e,t,i)):(ct&&r&&fc(t),t.flags|=1,Ut(e,t,n,i),t.child)}function mf(e,t,n,r,i){if(Zt(n)){var s=!0;Uo(t)}else s=!1;if(si(t,i),t.stateNode===null)go(e,t),Rp(t,n,r),mu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Be(u):(u=Zt(n)?Fr:Rt.current,u=hi(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&cf(t,o,r,u),kn=!1;var m=t.memoizedState;o.state=m,$o(t,r,o,i),a=t.memoizedState,l!==r||m!==a||Xt.current||kn?(typeof c=="function"&&(yu(t,n,c,r),a=t.memoizedState),(l=kn||uf(t,n,l,r,m,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,mp(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ae(t.type,l),o.props=u,f=t.pendingProps,m=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Be(a):(a=Zt(n)?Fr:Rt.current,a=hi(t,a));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||m!==a)&&cf(t,o,r,a),kn=!1,m=t.memoizedState,o.state=m,$o(t,r,o,i);var v=t.memoizedState;l!==f||m!==v||Xt.current||kn?(typeof g=="function"&&(yu(t,n,g,r),v=t.memoizedState),(u=kn||uf(t,n,u,r,m,v,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return wu(e,t,n,r,s,i)}function wu(e,t,n,r,i,s){Vp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&tf(t,n,!1),bn(e,t,s);r=t.stateNode,yv.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=yi(t,e.child,null,s),t.child=yi(t,null,l,s)):Ut(e,t,l,s),t.memoizedState=r.state,i&&tf(t,n,!0),t.child}function $p(e){var t=e.stateNode;t.pendingContext?qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qd(e,t.context,!1),_c(e,t.containerInfo)}function gf(e,t,n,r,i){return pi(),pc(i),t.flags|=256,Ut(e,t,n,r),t.child}var _u={dehydrated:null,treeContext:null,retryLane:0};function Su(e){return{baseLanes:e,cachePool:null,transitions:null}}function Wp(e,t,n){var r=t.pendingProps,i=ft.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ot(ft,i&1),e===null)return hu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ul(o,r,0,null),e=br(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Su(n),t.memoizedState=_u,e):Ac(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return mv(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Yn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Yn(l,s):(s=br(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Su(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=_u,r}return s=e.child,e=s.sibling,r=Yn(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ac(e,t){return t=Ul({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eo(e,t,n,r){return r!==null&&pc(r),yi(t,e.child,null,n),e=Ac(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mv(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Aa(Error(_(422))),eo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Ul({mode:"visible",children:r.children},i,0,null),s=br(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&yi(t,e.child,null,o),t.child.memoizedState=Su(o),t.memoizedState=_u,s);if(!(t.mode&1))return eo(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(_(419)),r=Aa(s,r,void 0),eo(e,t,o,r)}if(l=(o&e.childLanes)!==0,Gt||l){if(r=At,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,In(e,i),xe(r,e,i,-1))}return Cc(),r=Aa(Error(_(421))),eo(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Dv.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ae=Vn(i.nextSibling),ue=t,ct=!0,ke=null,e!==null&&(ve[we++]=yn,ve[we++]=mn,ve[we++]=Or,yn=e.id,mn=e.overflow,Or=t),t=Ac(t,r.children),t.flags|=4096,t)}function vf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pu(e.return,t,n)}function Da(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Hp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ut(e,t,r.children,n),r=ft.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)t:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vf(e,n,t);else if(e.tag===19)vf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(ft,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Wo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Da(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Da(t,!0,n,null,s);break;case"together":Da(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function go(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Yn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gv(e,t,n){switch(t.tag){case 3:$p(t),pi();break;case 5:gp(t);break;case 1:Zt(t.type)&&Uo(t);break;case 4:_c(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ot(jo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ot(ft,ft.current&1),t.flags|=128,null):n&t.child.childLanes?Wp(e,t,n):(ot(ft,ft.current&1),e=bn(e,t,n),e!==null?e.sibling:null);ot(ft,ft.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Hp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ot(ft,ft.current),r)break;return null;case 22:case 23:return t.lanes=0,jp(e,t,n)}return bn(e,t,n)}var Yp,Iu,Qp,Kp;Yp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Iu=function(){};Qp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yr(tn.current);var s=null;switch(n){case"input":i=Wa(e,i),r=Wa(e,r),s=[];break;case"select":i=mt({},i,{value:void 0}),r=mt({},r,{value:void 0}),s=[];break;case"textarea":i=Qa(e,i),r=Qa(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Lo)}Ja(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(is.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(is.hasOwnProperty(u)?(a!=null&&u==="onScroll"&<("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Kp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ri(e,t){if(!ct)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vv(e,t,n){var r=t.pendingProps;switch(hc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(t),null;case 1:return Zt(t.type)&&Ro(),Mt(t),null;case 3:return r=t.stateNode,mi(),at(Xt),at(Rt),Ic(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ke!==null&&(Nu(ke),ke=null))),Iu(e,t),Mt(t),null;case 5:Sc(t);var i=yr(ms.current);if(n=t.type,e!==null&&t.stateNode!=null)Qp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return Mt(t),null}if(e=yr(tn.current),qs(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[We]=t,r[ps]=s,e=(t.mode&1)!==0,n){case"dialog":lt("cancel",r),lt("close",r);break;case"iframe":case"object":case"embed":lt("load",r);break;case"video":case"audio":for(i=0;i<$i.length;i++)lt($i[i],r);break;case"source":lt("error",r);break;case"img":case"image":case"link":lt("error",r),lt("load",r);break;case"details":lt("toggle",r);break;case"input":Fd(r,s),lt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},lt("invalid",r);break;case"textarea":Ad(r,s),lt("invalid",r)}Ja(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Zs(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Zs(r.textContent,l,e),i=["children",""+l]):is.hasOwnProperty(o)&&l!=null&&o==="onScroll"&<("scroll",r)}switch(n){case"input":Ws(r),Od(r,s,!0);break;case"textarea":Ws(r),Dd(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Lo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ih(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[We]=t,e[ps]=r,Yp(e,t,!1,!1),t.stateNode=e;t:{switch(o=Ga(n,r),n){case"dialog":lt("cancel",e),lt("close",e),i=r;break;case"iframe":case"object":case"embed":lt("load",e),i=r;break;case"video":case"audio":for(i=0;i<$i.length;i++)lt($i[i],e);i=r;break;case"source":lt("error",e),i=r;break;case"img":case"image":case"link":lt("error",e),lt("load",e),i=r;break;case"details":lt("toggle",e),i=r;break;case"input":Fd(e,r),i=Wa(e,r),lt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=mt({},r,{value:void 0}),lt("invalid",e);break;case"textarea":Ad(e,r),i=Qa(e,r),lt("invalid",e);break;default:i=r}Ja(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?Eh(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&bh(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ss(e,a):typeof a=="number"&&ss(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(is.hasOwnProperty(s)?a!=null&&s==="onScroll"&<("scroll",e):a!=null&&Zu(e,s,a,o))}switch(n){case"input":Ws(e),Od(e,r,!1);break;case"textarea":Ws(e),Dd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Qn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?ei(e,!!r.multiple,s,!1):r.defaultValue!=null&&ei(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Lo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break t;case"img":r=!0;break t;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Mt(t),null;case 6:if(e&&t.stateNode!=null)Kp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=yr(ms.current),yr(tn.current),qs(t)){if(r=t.stateNode,n=t.memoizedProps,r[We]=t,(s=r.nodeValue!==n)&&(e=ue,e!==null))switch(e.tag){case 3:Zs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zs(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[We]=t,t.stateNode=r}return Mt(t),null;case 13:if(at(ft),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ct&&ae!==null&&t.mode&1&&!(t.flags&128))fp(),pi(),t.flags|=98560,s=!1;else if(s=qs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(_(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[We]=t}else pi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mt(t),s=!1}else ke!==null&&(Nu(ke),ke=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ft.current&1?Et===0&&(Et=3):Cc())),t.updateQueue!==null&&(t.flags|=4),Mt(t),null);case 4:return mi(),Iu(e,t),e===null&&fs(t.stateNode.containerInfo),Mt(t),null;case 10:return gc(t.type._context),Mt(t),null;case 17:return Zt(t.type)&&Ro(),Mt(t),null;case 19:if(at(ft),s=t.memoizedState,s===null)return Mt(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Ri(s,!1);else{if(Et!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Wo(e),o!==null){for(t.flags|=128,Ri(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ot(ft,ft.current&1|2),t.child}e=e.sibling}s.tail!==null&&wt()>vi&&(t.flags|=128,r=!0,Ri(s,!1),t.lanes=4194304)}else{if(!r)if(e=Wo(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ri(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ct)return Mt(t),null}else 2*wt()-s.renderingStartTime>vi&&n!==1073741824&&(t.flags|=128,r=!0,Ri(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=wt(),t.sibling=null,n=ft.current,ot(ft,r?n&1|2:n&1),t):(Mt(t),null);case 22:case 23:return xc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?se&1073741824&&(Mt(t),t.subtreeFlags&6&&(t.flags|=8192)):Mt(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function wv(e,t){switch(hc(t),t.tag){case 1:return Zt(t.type)&&Ro(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mi(),at(Xt),at(Rt),Ic(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sc(t),null;case 13:if(at(ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return at(ft),null;case 4:return mi(),null;case 10:return gc(t.type._context),null;case 22:case 23:return xc(),null;case 24:return null;default:return null}}var no=!1,Lt=!1,_v=typeof WeakSet=="function"?WeakSet:Set,B=null;function Zr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function bu(e,t,n){try{n()}catch(r){gt(e,t,r)}}var wf=!1;function Sv(e,t){if(ou=xo,e=qh(),dc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else t:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break t}var o=0,l=-1,a=-1,u=0,c=0,f=e,m=null;e:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break e;if(m===n&&++u===i&&(l=o),m===s&&++c===r&&(a=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(lu={focusedElem:e,selectionRange:n},xo=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,Q=v.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ae(t.type,S),Q);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(w){gt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return v=wf,wf=!1,v}function Zi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&bu(t,n,s)}i=i.next}while(i!==r)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Jp(e){var t=e.alternate;t!==null&&(e.alternate=null,Jp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[ps],delete t[cu],delete t[rv],delete t[iv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gp(e){return e.tag===5||e.tag===3||e.tag===4}function _f(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||Gp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Eu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lo));else if(r!==4&&(e=e.child,e!==null))for(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}function Fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fu(e,t,n),e=e.sibling;e!==null;)Fu(e,t,n),e=e.sibling}var kt=null,De=!1;function An(e,t,n){for(n=n.child;n!==null;)Xp(e,t,n),n=n.sibling}function Xp(e,t,n){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(Al,n)}catch{}switch(n.tag){case 5:Lt||Zr(n,t);case 6:var r=kt,i=De;kt=null,An(e,t,n),kt=r,De=i,kt!==null&&(De?(e=kt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):kt.removeChild(n.stateNode));break;case 18:kt!==null&&(De?(e=kt,n=n.stateNode,e.nodeType===8?Ia(e.parentNode,n):e.nodeType===1&&Ia(e,n),us(e)):Ia(kt,n.stateNode));break;case 4:r=kt,i=De,kt=n.stateNode.containerInfo,De=!0,An(e,t,n),kt=r,De=i;break;case 0:case 11:case 14:case 15:if(!Lt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&bu(n,t,o),i=i.next}while(i!==r)}An(e,t,n);break;case 1:if(!Lt&&(Zr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){gt(n,t,l)}An(e,t,n);break;case 21:An(e,t,n);break;case 22:n.mode&1?(Lt=(r=Lt)||n.memoizedState!==null,An(e,t,n),Lt=r):An(e,t,n);break;default:An(e,t,n)}}function Sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _v),t.forEach(function(r){var i=Nv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Oe(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;t:for(;l!==null;){switch(l.tag){case 5:kt=l.stateNode,De=!1;break t;case 3:kt=l.stateNode.containerInfo,De=!0;break t;case 4:kt=l.stateNode.containerInfo,De=!0;break t}l=l.return}if(kt===null)throw Error(_(160));Xp(s,o,i),kt=null,De=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){gt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zp(t,e),t=t.sibling}function Zp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Oe(t,e),Ue(e),r&4){try{Zi(3,e,e.return),Ll(3,e)}catch(S){gt(e,e.return,S)}try{Zi(5,e,e.return)}catch(S){gt(e,e.return,S)}}break;case 1:Oe(t,e),Ue(e),r&512&&n!==null&&Zr(n,n.return);break;case 5:if(Oe(t,e),Ue(e),r&512&&n!==null&&Zr(n,n.return),e.flags&32){var i=e.stateNode;try{ss(i,"")}catch(S){gt(e,e.return,S)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&_h(i,s),Ga(l,o);var u=Ga(l,s);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?Eh(i,f):c==="dangerouslySetInnerHTML"?bh(i,f):c==="children"?ss(i,f):Zu(i,c,f,u)}switch(l){case"input":Ha(i,s);break;case"textarea":Sh(i,s);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?ei(i,!!s.multiple,g,!1):m!==!!s.multiple&&(s.defaultValue!=null?ei(i,!!s.multiple,s.defaultValue,!0):ei(i,!!s.multiple,s.multiple?[]:"",!1))}i[ps]=s}catch(S){gt(e,e.return,S)}}break;case 6:if(Oe(t,e),Ue(e),r&4){if(e.stateNode===null)throw Error(_(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(S){gt(e,e.return,S)}}break;case 3:if(Oe(t,e),Ue(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{us(t.containerInfo)}catch(S){gt(e,e.return,S)}break;case 4:Oe(t,e),Ue(e);break;case 13:Oe(t,e),Ue(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(kc=wt())),r&4&&Sf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Lt=(u=Lt)||c,Oe(t,e),Lt=u):Oe(t,e),Ue(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(B=e,c=e.child;c!==null;){for(f=B=c;B!==null;){switch(m=B,g=m.child,m.tag){case 0:case 11:case 14:case 15:Zi(4,m,m.return);break;case 1:Zr(m,m.return);var v=m.stateNode;if(typeof v.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(S){gt(r,n,S)}}break;case 5:Zr(m,m.return);break;case 22:if(m.memoizedState!==null){bf(f);continue}}g!==null?(g.return=m,B=g):bf(f)}c=c.sibling}t:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Bh("display",o))}catch(S){gt(e,e.return,S)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(S){gt(e,e.return,S)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Oe(t,e),Ue(e),r&4&&Sf(e);break;case 21:break;default:Oe(t,e),Ue(e)}}function Ue(e){var t=e.flags;if(t&2){try{t:{for(var n=e.return;n!==null;){if(Gp(n)){var r=n;break t}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ss(i,""),r.flags&=-33);var s=_f(e);Fu(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=_f(e);Eu(e,l,o);break;default:throw Error(_(161))}}catch(a){gt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Iv(e,t,n){B=e,qp(e)}function qp(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var i=B,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||no;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Lt;l=no;var u=Lt;if(no=o,(Lt=a)&&!u)for(B=i;B!==null;)o=B,a=o.child,o.tag===22&&o.memoizedState!==null?Bf(i):a!==null?(a.return=o,B=a):Bf(i);for(;s!==null;)B=s,qp(s),s=s.sibling;B=i,no=l,Lt=u}If(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,B=s):If(e)}}function If(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Lt||Ll(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Lt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ae(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&of(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}of(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&us(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}Lt||t.flags&512&&Bu(t)}catch(m){gt(t,t.return,m)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function bf(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function Bf(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ll(4,t)}catch(a){gt(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){gt(t,i,a)}}var s=t.return;try{Bu(t)}catch(a){gt(t,s,a)}break;case 5:var o=t.return;try{Bu(t)}catch(a){gt(t,o,a)}}}catch(a){gt(t,t.return,a)}if(t===e){B=null;break}var l=t.sibling;if(l!==null){l.return=t.return,B=l;break}B=t.return}}var bv=Math.ceil,Qo=En.ReactCurrentDispatcher,Dc=En.ReactCurrentOwner,be=En.ReactCurrentBatchConfig,K=0,At=null,_t=null,Tt=0,se=0,qr=nr(0),Et=0,_s=null,Dr=0,Rl=0,Nc=0,qi=null,Qt=null,kc=0,vi=1/0,an=null,Ko=!1,Ou=null,Wn=null,ro=!1,Rn=null,Jo=0,ts=0,Au=null,vo=-1,wo=0;function Vt(){return K&6?wt():vo!==-1?vo:vo=wt()}function Hn(e){return e.mode&1?K&2&&Tt!==0?Tt&-Tt:ov.transition!==null?(wo===0&&(wo=Rh()),wo):(e=et,e!==0||(e=window.event,e=e===void 0?16:Wh(e.type)),e):1}function xe(e,t,n,r){if(50<ts)throw ts=0,Au=null,Error(_(185));Ds(e,n,r),(!(K&2)||e!==At)&&(e===At&&(!(K&2)&&(Rl|=n),Et===4&&Mn(e,Tt)),qt(e,r),n===1&&K===0&&!(t.mode&1)&&(vi=wt()+500,xl&&rr()))}function qt(e,t){var n=e.callbackNode;o0(e,t);var r=To(e,e===At?Tt:0);if(r===0)n!==null&&Td(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Td(n),t===1)e.tag===0?sv(Ef.bind(null,e)):up(Ef.bind(null,e)),ev(function(){!(K&6)&&rr()}),n=null;else{switch(Uh(r)){case 1:n=rc;break;case 4:n=Mh;break;case 16:n=ko;break;case 536870912:n=Lh;break;default:n=ko}n=ly(n,ty.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ty(e,t){if(vo=-1,wo=0,K&6)throw Error(_(327));var n=e.callbackNode;if(oi()&&e.callbackNode!==n)return null;var r=To(e,e===At?Tt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Go(e,r);else{t=r;var i=K;K|=2;var s=ny();(At!==e||Tt!==t)&&(an=null,vi=wt()+500,Ir(e,t));do try{Fv();break}catch(l){ey(e,l)}while(!0);mc(),Qo.current=s,K=i,_t!==null?t=0:(At=null,Tt=0,t=Et)}if(t!==0){if(t===2&&(i=eu(e),i!==0&&(r=i,t=Du(e,i))),t===1)throw n=_s,Ir(e,0),Mn(e,r),qt(e,wt()),n;if(t===6)Mn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Bv(i)&&(t=Go(e,r),t===2&&(s=eu(e),s!==0&&(r=s,t=Du(e,s))),t===1))throw n=_s,Ir(e,0),Mn(e,r),qt(e,wt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:dr(e,Qt,an);break;case 3:if(Mn(e,r),(r&130023424)===r&&(t=kc+500-wt(),10<t)){if(To(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Vt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=uu(dr.bind(null,e,Qt,an),t);break}dr(e,Qt,an);break;case 4:if(Mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Te(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bv(r/1960))-r,10<r){e.timeoutHandle=uu(dr.bind(null,e,Qt,an),r);break}dr(e,Qt,an);break;case 5:dr(e,Qt,an);break;default:throw Error(_(329))}}}return qt(e,wt()),e.callbackNode===n?ty.bind(null,e):null}function Du(e,t){var n=qi;return e.current.memoizedState.isDehydrated&&(Ir(e,t).flags|=256),e=Go(e,t),e!==2&&(t=Qt,Qt=n,t!==null&&Nu(t)),e}function Nu(e){Qt===null?Qt=e:Qt.push.apply(Qt,e)}function Bv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Me(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mn(e,t){for(t&=~Nc,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Te(t),r=1<<n;e[n]=-1,t&=~r}}function Ef(e){if(K&6)throw Error(_(327));oi();var t=To(e,0);if(!(t&1))return qt(e,wt()),null;var n=Go(e,t);if(e.tag!==0&&n===2){var r=eu(e);r!==0&&(t=r,n=Du(e,r))}if(n===1)throw n=_s,Ir(e,0),Mn(e,t),qt(e,wt()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,dr(e,Qt,an),qt(e,wt()),null}function Tc(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(vi=wt()+500,xl&&rr())}}function Nr(e){Rn!==null&&Rn.tag===0&&!(K&6)&&oi();var t=K;K|=1;var n=be.transition,r=et;try{if(be.transition=null,et=1,e)return e()}finally{et=r,be.transition=n,K=t,!(K&6)&&rr()}}function xc(){se=qr.current,at(qr)}function Ir(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,tv(n)),_t!==null)for(n=_t.return;n!==null;){var r=n;switch(hc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ro();break;case 3:mi(),at(Xt),at(Rt),Ic();break;case 5:Sc(r);break;case 4:mi();break;case 13:at(ft);break;case 19:at(ft);break;case 10:gc(r.type._context);break;case 22:case 23:xc()}n=n.return}if(At=e,_t=e=Yn(e.current,null),Tt=se=t,Et=0,_s=null,Nc=Rl=Dr=0,Qt=qi=null,pr!==null){for(t=0;t<pr.length;t++)if(n=pr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}pr=null}return e}function ey(e,t){do{var n=_t;try{if(mc(),yo.current=Yo,Ho){for(var r=yt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ho=!1}if(Ar=0,Ot=It=yt=null,Xi=!1,gs=0,Dc.current=null,n===null||n.return===null){Et=1,_s=t,_t=null;break}t:{var s=e,o=n.return,l=n,a=t;if(t=Tt,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var m=c.alternate;m?(c.updateQueue=m.updateQueue,c.memoizedState=m.memoizedState,c.lanes=m.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=ff(o);if(g!==null){g.flags&=-257,hf(g,o,l,s,t),g.mode&1&&df(s,u,t),t=g,a=u;var v=t.updateQueue;if(v===null){var S=new Set;S.add(a),t.updateQueue=S}else v.add(a);break t}else{if(!(t&1)){df(s,u,t),Cc();break t}a=Error(_(426))}}else if(ct&&l.mode&1){var Q=ff(o);if(Q!==null){!(Q.flags&65536)&&(Q.flags|=256),hf(Q,o,l,s,t),pc(gi(a,l));break t}}s=a=gi(a,l),Et!==4&&(Et=2),qi===null?qi=[s]:qi.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=Up(s,a,t);sf(s,h);break t;case 1:l=a;var d=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof d.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Wn===null||!Wn.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=Pp(s,l,t);sf(s,w);break t}}s=s.return}while(s!==null)}iy(n)}catch(I){t=I,_t===n&&n!==null&&(_t=n=n.return);continue}break}while(!0)}function ny(){var e=Qo.current;return Qo.current=Yo,e===null?Yo:e}function Cc(){(Et===0||Et===3||Et===2)&&(Et=4),At===null||!(Dr&268435455)&&!(Rl&268435455)||Mn(At,Tt)}function Go(e,t){var n=K;K|=2;var r=ny();(At!==e||Tt!==t)&&(an=null,Ir(e,t));do try{Ev();break}catch(i){ey(e,i)}while(!0);if(mc(),K=n,Qo.current=r,_t!==null)throw Error(_(261));return At=null,Tt=0,Et}function Ev(){for(;_t!==null;)ry(_t)}function Fv(){for(;_t!==null&&!Xg();)ry(_t)}function ry(e){var t=oy(e.alternate,e,se);e.memoizedProps=e.pendingProps,t===null?iy(e):_t=t,Dc.current=null}function iy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=wv(n,t),n!==null){n.flags&=32767,_t=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Et=6,_t=null;return}}else if(n=vv(n,t,se),n!==null){_t=n;return}if(t=t.sibling,t!==null){_t=t;return}_t=t=e}while(t!==null);Et===0&&(Et=5)}function dr(e,t,n){var r=et,i=be.transition;try{be.transition=null,et=1,Ov(e,t,n,r)}finally{be.transition=i,et=r}return null}function Ov(e,t,n,r){do oi();while(Rn!==null);if(K&6)throw Error(_(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(l0(e,s),e===At&&(_t=At=null,Tt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ro||(ro=!0,ly(ko,function(){return oi(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=be.transition,be.transition=null;var o=et;et=1;var l=K;K|=4,Dc.current=null,Sv(e,n),Zp(n,e),Q0(lu),xo=!!ou,lu=ou=null,e.current=n,Iv(n),Zg(),K=l,et=o,be.transition=s}else e.current=n;if(ro&&(ro=!1,Rn=e,Jo=i),s=e.pendingLanes,s===0&&(Wn=null),e0(n.stateNode),qt(e,wt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ko)throw Ko=!1,e=Ou,Ou=null,e;return Jo&1&&e.tag!==0&&oi(),s=e.pendingLanes,s&1?e===Au?ts++:(ts=0,Au=e):ts=0,rr(),null}function oi(){if(Rn!==null){var e=Uh(Jo),t=be.transition,n=et;try{if(be.transition=null,et=16>e?16:e,Rn===null)var r=!1;else{if(e=Rn,Rn=null,Jo=0,K&6)throw Error(_(331));var i=K;for(K|=4,B=e.current;B!==null;){var s=B,o=s.child;if(B.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(B=u;B!==null;){var c=B;switch(c.tag){case 0:case 11:case 15:Zi(8,c,s)}var f=c.child;if(f!==null)f.return=c,B=f;else for(;B!==null;){c=B;var m=c.sibling,g=c.return;if(Jp(c),c===u){B=null;break}if(m!==null){m.return=g,B=m;break}B=g}}}var v=s.alternate;if(v!==null){var S=v.child;if(S!==null){v.child=null;do{var Q=S.sibling;S.sibling=null,S=Q}while(S!==null)}}B=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,B=o;else t:for(;B!==null;){if(s=B,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Zi(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,B=h;break t}B=s.return}}var d=e.current;for(B=d;B!==null;){o=B;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,B=y;else t:for(o=d;B!==null;){if(l=B,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ll(9,l)}}catch(I){gt(l,l.return,I)}if(l===o){B=null;break t}var w=l.sibling;if(w!==null){w.return=l.return,B=w;break t}B=l.return}}if(K=i,rr(),qe&&typeof qe.onPostCommitFiberRoot=="function")try{qe.onPostCommitFiberRoot(Al,e)}catch{}r=!0}return r}finally{et=n,be.transition=t}}return!1}function Ff(e,t,n){t=gi(n,t),t=Up(e,t,1),e=$n(e,t,1),t=Vt(),e!==null&&(Ds(e,1,t),qt(e,t))}function gt(e,t,n){if(e.tag===3)Ff(e,e,n);else for(;t!==null;){if(t.tag===3){Ff(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wn===null||!Wn.has(r))){e=gi(n,e),e=Pp(t,e,1),t=$n(t,e,1),e=Vt(),t!==null&&(Ds(t,1,e),qt(t,e));break}}t=t.return}}function Av(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Vt(),e.pingedLanes|=e.suspendedLanes&n,At===e&&(Tt&n)===n&&(Et===4||Et===3&&(Tt&130023424)===Tt&&500>wt()-kc?Ir(e,0):Nc|=n),qt(e,t)}function sy(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Vt();e=In(e,t),e!==null&&(Ds(e,t,n),qt(e,n))}function Dv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sy(e,n)}function Nv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),sy(e,n)}var oy;oy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Gt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Gt=!1,gv(e,t,n);Gt=!!(e.flags&131072)}else Gt=!1,ct&&t.flags&1048576&&cp(t,zo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;go(e,t),e=t.pendingProps;var i=hi(t,Rt.current);si(t,n),i=Bc(null,t,r,e,i,n);var s=Ec();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zt(r)?(s=!0,Uo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wc(t),i.updater=Ml,t.stateNode=i,i._reactInternals=t,mu(t,r,e,n),t=wu(null,t,r,!0,s,n)):(t.tag=0,ct&&s&&fc(t),Ut(null,t,i,n),t=t.child),t;case 16:r=t.elementType;t:{switch(go(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Tv(r),e=Ae(r,e),i){case 0:t=vu(null,t,r,e,n);break t;case 1:t=mf(null,t,r,e,n);break t;case 11:t=pf(null,t,r,e,n);break t;case 14:t=yf(null,t,r,Ae(r.type,e),n);break t}throw Error(_(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),vu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),mf(e,t,r,i,n);case 3:t:{if($p(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,i=s.element,mp(e,t),$o(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=gi(Error(_(423)),t),t=gf(e,t,r,n,i);break t}else if(r!==i){i=gi(Error(_(424)),t),t=gf(e,t,r,n,i);break t}else for(ae=Vn(t.stateNode.containerInfo.firstChild),ue=t,ct=!0,ke=null,n=pp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pi(),r===i){t=bn(e,t,n);break t}Ut(e,t,r,n)}t=t.child}return t;case 5:return gp(t),e===null&&hu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,au(r,i)?o=null:s!==null&&au(r,s)&&(t.flags|=32),Vp(e,t),Ut(e,t,o,n),t.child;case 6:return e===null&&hu(t),null;case 13:return Wp(e,t,n);case 4:return _c(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=yi(t,null,r,n):Ut(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),pf(e,t,r,i,n);case 7:return Ut(e,t,t.pendingProps,n),t.child;case 8:return Ut(e,t,t.pendingProps.children,n),t.child;case 12:return Ut(e,t,t.pendingProps.children,n),t.child;case 10:t:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ot(jo,r._currentValue),r._currentValue=o,s!==null)if(Me(s.value,o)){if(s.children===i.children&&!Xt.current){t=bn(e,t,n);break t}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=gn(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),pu(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(_(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),pu(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ut(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,si(t,n),i=Be(i),r=r(i),t.flags|=1,Ut(e,t,r,n),t.child;case 14:return r=t.type,i=Ae(r,t.pendingProps),i=Ae(r.type,i),yf(e,t,r,i,n);case 15:return zp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),go(e,t),t.tag=1,Zt(r)?(e=!0,Uo(t)):e=!1,si(t,n),Rp(t,r,i),mu(t,r,i,n),wu(null,t,r,!0,e,n);case 19:return Hp(e,t,n);case 22:return jp(e,t,n)}throw Error(_(156,t.tag))};function ly(e,t){return Ch(e,t)}function kv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ie(e,t,n,r){return new kv(e,t,n,r)}function Mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tv(e){if(typeof e=="function")return Mc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tc)return 11;if(e===ec)return 14}return 2}function Yn(e,t){var n=e.alternate;return n===null?(n=Ie(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _o(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Mc(e)&&(o=1);else if(typeof e=="string")o=5;else t:switch(e){case $r:return br(n.children,i,s,t);case qu:o=8,i|=8;break;case za:return e=Ie(12,n,t,i|2),e.elementType=za,e.lanes=s,e;case ja:return e=Ie(13,n,t,i),e.elementType=ja,e.lanes=s,e;case Va:return e=Ie(19,n,t,i),e.elementType=Va,e.lanes=s,e;case gh:return Ul(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yh:o=10;break t;case mh:o=9;break t;case tc:o=11;break t;case ec:o=14;break t;case Nn:o=16,r=null;break t}throw Error(_(130,e==null?e:typeof e,""))}return t=Ie(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function br(e,t,n,r){return e=Ie(7,e,r,t),e.lanes=n,e}function Ul(e,t,n,r){return e=Ie(22,e,r,t),e.elementType=gh,e.lanes=n,e.stateNode={isHidden:!1},e}function Na(e,t,n){return e=Ie(6,e,null,t),e.lanes=n,e}function ka(e,t,n){return t=Ie(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=da(0),this.expirationTimes=da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=da(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lc(e,t,n,r,i,s,o,l,a){return e=new xv(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ie(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wc(s),e}function Cv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ay(e){if(!e)return Kn;e=e._reactInternals;t:{if(xr(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break t;case 1:if(Zt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break t}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Zt(n))return ap(e,n,t)}return t}function uy(e,t,n,r,i,s,o,l,a){return e=Lc(n,r,!0,e,i,s,o,l,a),e.context=ay(null),n=e.current,r=Vt(),i=Hn(n),s=gn(r,i),s.callback=t??null,$n(n,s,i),e.current.lanes=i,Ds(e,i,r),qt(e,r),e}function Pl(e,t,n,r){var i=t.current,s=Vt(),o=Hn(i);return n=ay(n),t.context===null?t.context=n:t.pendingContext=n,t=gn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$n(i,t,o),e!==null&&(xe(e,i,o,s),po(e,i,o)),o}function Xo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Of(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Rc(e,t){Of(e,t),(e=e.alternate)&&Of(e,t)}function Mv(){return null}var cy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uc(e){this._internalRoot=e}zl.prototype.render=Uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Pl(e,t,null,null)};zl.prototype.unmount=Uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nr(function(){Pl(null,e,null,null)}),t[Sn]=null}};function zl(e){this._internalRoot=e}zl.prototype.unstable_scheduleHydration=function(e){if(e){var t=jh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cn.length&&t!==0&&t<Cn[n].priority;n++);Cn.splice(n,0,e),n===0&&$h(e)}};function Pc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Af(){}function Lv(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Xo(o);s.call(u)}}var o=uy(t,r,e,0,null,!1,!1,"",Af);return e._reactRootContainer=o,e[Sn]=o.current,fs(e.nodeType===8?e.parentNode:e),Nr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Xo(a);l.call(u)}}var a=Lc(e,0,!1,null,null,!1,!1,"",Af);return e._reactRootContainer=a,e[Sn]=a.current,fs(e.nodeType===8?e.parentNode:e),Nr(function(){Pl(t,a,n,r)}),a}function Vl(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=Xo(o);l.call(a)}}Pl(t,o,e,i)}else o=Lv(n,t,e,i,r);return Xo(o)}Ph=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Vi(t.pendingLanes);n!==0&&(ic(t,n|1),qt(t,wt()),!(K&6)&&(vi=wt()+500,rr()))}break;case 13:Nr(function(){var r=In(e,1);if(r!==null){var i=Vt();xe(r,e,1,i)}}),Rc(e,1)}};sc=function(e){if(e.tag===13){var t=In(e,134217728);if(t!==null){var n=Vt();xe(t,e,134217728,n)}Rc(e,134217728)}};zh=function(e){if(e.tag===13){var t=Hn(e),n=In(e,t);if(n!==null){var r=Vt();xe(n,e,t,r)}Rc(e,t)}};jh=function(){return et};Vh=function(e,t){var n=et;try{return et=e,t()}finally{et=n}};Za=function(e,t,n){switch(t){case"input":if(Ha(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Tl(r);if(!i)throw Error(_(90));wh(r),Ha(r,i)}}}break;case"textarea":Sh(e,n);break;case"select":t=n.value,t!=null&&ei(e,!!n.multiple,t,!1)}};Ah=Tc;Dh=Nr;var Rv={usingClientEntryPoint:!1,Events:[ks,Qr,Tl,Fh,Oh,Tc]},Ui={findFiberByHostInstance:hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Uv={bundleType:Ui.bundleType,version:Ui.version,rendererPackageName:Ui.rendererPackageName,rendererConfig:Ui.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:En.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Th(e),e===null?null:e.stateNode},findFiberByHostInstance:Ui.findFiberByHostInstance||Mv,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 io=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!io.isDisabled&&io.supportsFiber)try{Al=io.inject(Uv),qe=io}catch{}}he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rv;he.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pc(t))throw Error(_(200));return Cv(e,t,null,n)};he.createRoot=function(e,t){if(!Pc(e))throw Error(_(299));var n=!1,r="",i=cy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Lc(e,1,!1,null,null,n,!1,r,i),e[Sn]=t.current,fs(e.nodeType===8?e.parentNode:e),new Uc(t)};he.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=Th(t),e=e===null?null:e.stateNode,e};he.flushSync=function(e){return Nr(e)};he.hydrate=function(e,t,n){if(!jl(t))throw Error(_(200));return Vl(null,e,t,!0,n)};he.hydrateRoot=function(e,t,n){if(!Pc(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=cy;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=uy(t,null,e,1,n??null,i,!1,s,o),e[Sn]=t.current,fs(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new zl(t)};he.render=function(e,t,n){if(!jl(t))throw Error(_(200));return Vl(null,e,t,!1,n)};he.unmountComponentAtNode=function(e){if(!jl(e))throw Error(_(40));return e._reactRootContainer?(Nr(function(){Vl(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1};he.unstable_batchedUpdates=Tc;he.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jl(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Vl(e,t,n,!1,r)};he.version="18.3.1-next-f1338f8080-20240426";function dy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dy)}catch(e){console.error(e)}}dy(),dh.exports=he;var Pv=dh.exports;const zv=Hu(Pv);var fy={exports:{}},nt={};/** @license React v16.13.1
|
41
41
|
* react-is.production.min.js
|
42
42
|
*
|
43
43
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
44
44
|
*
|
45
45
|
* This source code is licensed under the MIT license found in the
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
47
|
-
*/var Dt=typeof Symbol=="function"&&Symbol.for,zc=Dt?Symbol.for("react.element"):60103,jc=Dt?Symbol.for("react.portal"):60106,$l=Dt?Symbol.for("react.fragment"):60107,Wl=Dt?Symbol.for("react.strict_mode"):60108,Hl=Dt?Symbol.for("react.profiler"):60114,Yl=Dt?Symbol.for("react.provider"):60109,Ql=Dt?Symbol.for("react.context"):60110,Vc=Dt?Symbol.for("react.async_mode"):60111,Kl=Dt?Symbol.for("react.concurrent_mode"):60111,Jl=Dt?Symbol.for("react.forward_ref"):60112,Gl=Dt?Symbol.for("react.suspense"):60113,jv=Dt?Symbol.for("react.suspense_list"):60120,Xl=Dt?Symbol.for("react.memo"):60115,Zl=Dt?Symbol.for("react.lazy"):60116,Vv=Dt?Symbol.for("react.block"):60121,$v=Dt?Symbol.for("react.fundamental"):60117,Wv=Dt?Symbol.for("react.responder"):60118,Hv=Dt?Symbol.for("react.scope"):60119;function ye(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zc:switch(e=e.type,e){case Vc:case Kl:case $l:case Hl:case Wl:case Gl:return e;default:switch(e=e&&e.$$typeof,e){case Ql:case Jl:case Zl:case Xl:case Yl:return e;default:return t}}case jc:return t}}}function hy(e){return ye(e)===Kl}nt.AsyncMode=Vc;nt.ConcurrentMode=Kl;nt.ContextConsumer=Ql;nt.ContextProvider=Yl;nt.Element=zc;nt.ForwardRef=Jl;nt.Fragment=$l;nt.Lazy=Zl;nt.Memo=Xl;nt.Portal=jc;nt.Profiler=Hl;nt.StrictMode=Wl;nt.Suspense=Gl;nt.isAsyncMode=function(e){return hy(e)||ye(e)===Vc};nt.isConcurrentMode=hy;nt.isContextConsumer=function(e){return ye(e)===Ql};nt.isContextProvider=function(e){return ye(e)===Yl};nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zc};nt.isForwardRef=function(e){return ye(e)===Jl};nt.isFragment=function(e){return ye(e)===$l};nt.isLazy=function(e){return ye(e)===Zl};nt.isMemo=function(e){return ye(e)===Xl};nt.isPortal=function(e){return ye(e)===jc};nt.isProfiler=function(e){return ye(e)===Hl};nt.isStrictMode=function(e){return ye(e)===Wl};nt.isSuspense=function(e){return ye(e)===Gl};nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$l||e===Kl||e===Hl||e===Wl||e===Gl||e===jv||typeof e=="object"&&e!==null&&(e.$$typeof===Zl||e.$$typeof===Xl||e.$$typeof===Yl||e.$$typeof===Ql||e.$$typeof===Jl||e.$$typeof===$v||e.$$typeof===Wv||e.$$typeof===Hv||e.$$typeof===Vv)};nt.typeOf=ye;fy.exports=nt;var Yv=fy.exports,$c=Yv,Qv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Kv={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jv={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},py={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wc={};Wc[$c.ForwardRef]=Jv;Wc[$c.Memo]=py;function Df(e){return $c.isMemo(e)?py:Wc[e.$$typeof]||Qv}var Gv=Object.defineProperty,Xv=Object.getOwnPropertyNames,kf=Object.getOwnPropertySymbols,Zv=Object.getOwnPropertyDescriptor,qv=Object.getPrototypeOf,Nf=Object.prototype;function yy(e,t,n){if(typeof t!="string"){if(Nf){var r=qv(t);r&&r!==Nf&&yy(e,r,n)}var i=Xv(t);kf&&(i=i.concat(kf(t)));for(var s=Df(e),o=Df(t),l=0;l<i.length;++l){var a=i[l];if(!Kv[a]&&!(n&&n[a])&&!(o&&o[a])&&!(s&&s[a])){var u=Zv(t,a);try{Gv(e,a,u)}catch{}}}}return e}var tw=yy;const ew=Hu(tw);function D(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(f){o(f)}}function a(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function Tf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(e){return this instanceof z?(this.v=e,this):new z(e)}function Xe(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(g){return function(v){return Promise.resolve(v).then(g,f)}}function l(g,v){r[g]&&(i[g]=function(S){return new Promise(function(Q,h){s.push([g,S,Q,h])>1||a(g,S)})},v&&(i[g]=v(i[g])))}function a(g,v){try{u(r[g](v))}catch(S){p(s[0][3],S)}}function u(g){g.value instanceof z?Promise.resolve(g.value.v).then(c,f):p(s[0][2],g)}function c(g){a("next",g)}function f(g){a("throw",g)}function p(g,v){g(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function So(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(o){return(n=!n)?{value:z(e[i](o)),done:!1}:s?s(o):o}:s}}function Br(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Tf=="function"?Tf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(l,a){o=e[s](o),i(l,a,o.done,o.value)})}}function i(s,o,l,a){Promise.resolve(a).then(function(u){s({value:u,done:l})},o)}}const nw=new TextDecoder("utf-8"),Nu=e=>nw.decode(e),rw=new TextEncoder,Hc=e=>rw.encode(e),[eS,iw]=(()=>{const e=()=>{throw new Error("BigInt is not available in this environment")};function t(){throw e()}return t.asIntN=()=>{throw e()},t.asUintN=()=>{throw e()},typeof BigInt<"u"?[BigInt,!0]:[t,!1]})(),[xs]=(()=>{const e=()=>{throw new Error("BigInt64Array is not available in this environment")};class t{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}}return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[t,!1]})(),[Cs]=(()=>{const e=()=>{throw new Error("BigUint64Array is not available in this environment")};class t{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}}return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[t,!1]})(),sw=e=>typeof e=="number",my=e=>typeof e=="boolean",bt=e=>typeof e=="function",ee=e=>e!=null&&Object(e)===e,Jn=e=>ee(e)&&bt(e.then),Ms=e=>ee(e)&&bt(e[Symbol.iterator]),Di=e=>ee(e)&&bt(e[Symbol.asyncIterator]),Tu=e=>ee(e)&&ee(e.schema),gy=e=>ee(e)&&"done"in e&&"value"in e,vy=e=>ee(e)&&bt(e.stat)&&sw(e.fd),wy=e=>ee(e)&&Yc(e.body),ql=e=>"_getDOMStream"in e&&"_getNodeStream"in e,ow=e=>ee(e)&&bt(e.abort)&&bt(e.getWriter)&&!ql(e),Yc=e=>ee(e)&&bt(e.cancel)&&bt(e.getReader)&&!ql(e),lw=e=>ee(e)&&bt(e.end)&&bt(e.write)&&my(e.writable)&&!ql(e),_y=e=>ee(e)&&bt(e.read)&&bt(e.pipe)&&my(e.readable)&&!ql(e),aw=e=>ee(e)&&bt(e.clear)&&bt(e.bytes)&&bt(e.position)&&bt(e.setPosition)&&bt(e.capacity)&&bt(e.getBufferIdentifier)&&bt(e.createLong),Qc=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function uw(e){const t=e[0]?[e[0]]:[];let n,r,i,s;for(let o,l,a=0,u=0,c=e.length;++a<c;){if(o=t[u],l=e[a],!o||!l||o.buffer!==l.buffer||l.byteOffset<o.byteOffset){l&&(t[++u]=l);continue}if({byteOffset:n,byteLength:i}=o,{byteOffset:r,byteLength:s}=l,n+i<r||r+s<n){l&&(t[++u]=l);continue}t[u]=new Uint8Array(o.buffer,n,r-n+s)}return t}function xf(e,t,n=0,r=t.byteLength){const i=e.byteLength,s=new Uint8Array(e.buffer,e.byteOffset,i),o=new Uint8Array(t.buffer,t.byteOffset,Math.min(r,i));return s.set(o,n),e}function en(e,t){const n=uw(e),r=n.reduce((c,f)=>c+f.byteLength,0);let i,s,o,l=0,a=-1;const u=Math.min(t||Number.POSITIVE_INFINITY,r);for(const c=n.length;++a<c;){if(i=n[a],s=i.subarray(0,Math.min(i.length,u-l)),u<=l+s.length){s.length<i.length?n[a]=i.subarray(s.length):s.length===i.length&&a++,o?xf(o,s,l):o=s;break}xf(o||(o=new Uint8Array(u)),s,l),l+=s.length}return[o||new Uint8Array(0),n.slice(a),r-(o?o.byteLength:0)]}function rt(e,t){let n=gy(t)?t.value:t;return n instanceof e?e===Uint8Array?new e(n.buffer,n.byteOffset,n.byteLength):n:n?(typeof n=="string"&&(n=Hc(n)),n instanceof ArrayBuffer?new e(n):n instanceof Qc?new e(n):aw(n)?rt(e,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new e(0):new e(n.buffer,n.byteOffset,n.byteLength/e.BYTES_PER_ELEMENT):e.from(n)):new e(0)}const Pi=e=>rt(Int32Array,e),J=e=>rt(Uint8Array,e),xu=e=>(e.next(),e);function*cw(e,t){const n=function*(i){yield i},r=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Qc?n(t):Ms(t)?t:n(t);return yield*xu(function*(i){let s=null;do s=i.next(yield rt(e,s));while(!s.done)}(r[Symbol.iterator]())),new e}const dw=e=>cw(Uint8Array,e);function Sy(e,t){return Xe(this,arguments,function*(){if(Jn(t))return yield z(yield z(yield*So(Br(Sy(e,yield z(t))))));const r=function(o){return Xe(this,arguments,function*(){yield yield z(yield z(o))})},i=function(o){return Xe(this,arguments,function*(){yield z(yield*So(Br(xu(function*(l){let a=null;do a=l.next(yield a==null?void 0:a.value);while(!a.done)}(o[Symbol.iterator]())))))})},s=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Qc?r(t):Ms(t)?i(t):Di(t)?t:r(t);return yield z(yield*So(Br(xu(function(o){return Xe(this,arguments,function*(){let l=null;do l=yield z(o.next(yield yield z(rt(e,l))));while(!l.done)})}(s[Symbol.asyncIterator]()))))),yield z(new e)})}const fw=e=>Sy(Uint8Array,e);function Kc(e,t,n){if(e!==0){n=n.slice(0,t+1);for(let r=-1;++r<=t;)n[r]+=e}return n}function hw(e,t){let n=0;const r=e.length;if(r!==t.length)return!1;if(r>0)do if(e[n]!==t[n])return!1;while(++n<r);return!0}const ge={fromIterable(e){return so(pw(e))},fromAsyncIterable(e){return so(yw(e))},fromDOMStream(e){return so(mw(e))},fromNodeStream(e){return so(vw(e))},toDOMStream(e,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(e,t){throw new Error('"toNodeStream" not available in this environment')}},so=e=>(e.next(),e);function*pw(e){let t,n=!1,r=[],i,s,o,l=0;function a(){return s==="peek"?en(r,o)[0]:([i,r,l]=en(r,o),i)}({cmd:s,size:o}=yield null);const u=dw(e)[Symbol.iterator]();try{do if({done:t,value:i}=Number.isNaN(o-l)?u.next():u.next(o-l),!t&&i.byteLength>0&&(r.push(i),l+=i.byteLength),t||o<=l)do({cmd:s,size:o}=yield a());while(o<l);while(!t)}catch(c){(n=!0)&&typeof u.throw=="function"&&u.throw(c)}finally{n===!1&&typeof u.return=="function"&&u.return(null)}return null}function yw(e){return Xe(this,arguments,function*(){let n,r=!1,i=[],s,o,l,a=0;function u(){return o==="peek"?en(i,l)[0]:([s,i,a]=en(i,l),s)}({cmd:o,size:l}=yield yield z(null));const c=fw(e)[Symbol.asyncIterator]();try{do if({done:n,value:s}=Number.isNaN(l-a)?yield z(c.next()):yield z(c.next(l-a)),!n&&s.byteLength>0&&(i.push(s),a+=s.byteLength),n||l<=a)do({cmd:o,size:l}=yield yield z(u()));while(l<a);while(!n)}catch(f){(r=!0)&&typeof c.throw=="function"&&(yield z(c.throw(f)))}finally{r===!1&&typeof c.return=="function"&&(yield z(c.return(new Uint8Array(0))))}return yield z(null)})}function mw(e){return Xe(this,arguments,function*(){let n=!1,r=!1,i=[],s,o,l,a=0;function u(){return o==="peek"?en(i,l)[0]:([s,i,a]=en(i,l),s)}({cmd:o,size:l}=yield yield z(null));const c=new gw(e);try{do if({done:n,value:s}=Number.isNaN(l-a)?yield z(c.read()):yield z(c.read(l-a)),!n&&s.byteLength>0&&(i.push(J(s)),a+=s.byteLength),n||l<=a)do({cmd:o,size:l}=yield yield z(u()));while(l<a);while(!n)}catch(f){(r=!0)&&(yield z(c.cancel(f)))}finally{r===!1?yield z(c.cancel()):e.locked&&c.releaseLock()}return yield z(null)})}class gw{constructor(t){this.source=t,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(t){return D(this,void 0,void 0,function*(){const{reader:n,source:r}=this;n&&(yield n.cancel(t).catch(()=>{})),r&&r.locked&&this.releaseLock()})}read(t){return D(this,void 0,void 0,function*(){if(t===0)return{done:this.reader==null,value:new Uint8Array(0)};const n=yield this.reader.read();return!n.done&&(n.value=J(n)),n})}}const Ta=(e,t)=>{const n=i=>r([t,i]);let r;return[t,n,new Promise(i=>(r=i)&&e.once(t,n))]};function vw(e){return Xe(this,arguments,function*(){const n=[];let r="error",i=!1,s=null,o,l,a=0,u=[],c;function f(){return o==="peek"?en(u,l)[0]:([c,u,a]=en(u,l),c)}if({cmd:o,size:l}=yield yield z(null),e.isTTY)return yield yield z(new Uint8Array(0)),yield z(null);try{n[0]=Ta(e,"end"),n[1]=Ta(e,"error");do{if(n[2]=Ta(e,"readable"),[r,s]=yield z(Promise.race(n.map(g=>g[2]))),r==="error")break;if((i=r==="end")||(Number.isFinite(l-a)?(c=J(e.read(l-a)),c.byteLength<l-a&&(c=J(e.read()))):c=J(e.read()),c.byteLength>0&&(u.push(c),a+=c.byteLength)),i||l<=a)do({cmd:o,size:l}=yield yield z(f()));while(l<a)}while(!i)}finally{yield z(p(n,r==="error"?s:null))}return yield z(null);function p(g,v){return c=u=null,new Promise((S,Q)=>{for(const[h,d]of g)e.off(h,d);try{const h=e.destroy;h&&h.call(e,v),v=void 0}catch(h){v=h||v}finally{v!=null?Q(v):S()}})}})}var le;(function(e){e[e.V1=0]="V1",e[e.V2=1]="V2",e[e.V3=2]="V3",e[e.V4=3]="V4",e[e.V5=4]="V5"})(le||(le={}));var de;(function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"})(de||(de={}));var te;(function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"})(te||(te={}));var Bn;(function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"})(Bn||(Bn={}));var G;(function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"})(G||(G={}));var Gn;(function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME",e[e.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Gn||(Gn={}));var X;(function(e){e[e.NONE=0]="NONE",e[e.Schema=1]="Schema",e[e.DictionaryBatch=2]="DictionaryBatch",e[e.RecordBatch=3]="RecordBatch",e[e.Tensor=4]="Tensor",e[e.SparseTensor=5]="SparseTensor"})(X||(X={}));var y;(function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth"})(y||(y={}));var un;(function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"})(un||(un={}));const ww=void 0;function Ss(e){if(e===null)return"null";if(e===ww)return"undefined";switch(typeof e){case"number":return`${e}`;case"bigint":return`${e}`;case"string":return`"${e}"`}return typeof e[Symbol.toPrimitive]=="function"?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?e instanceof xs||e instanceof Cs?`[${[...e].map(t=>Ss(t))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(t,n)=>typeof n=="bigint"?`${n}`:n)}const _w=Symbol.for("isArrowBigNum");function Le(e,...t){return t.length===0?Object.setPrototypeOf(rt(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}Le.prototype[_w]=!0;Le.prototype.toJSON=function(){return`"${Er(this)}"`};Le.prototype.valueOf=function(){return Iy(this)};Le.prototype.toString=function(){return Er(this)};Le.prototype[Symbol.toPrimitive]=function(e="default"){switch(e){case"number":return Iy(this);case"string":return Er(this);case"default":return Cu(this)}return Er(this)};function li(...e){return Le.apply(this,e)}function ai(...e){return Le.apply(this,e)}function Is(...e){return Le.apply(this,e)}Object.setPrototypeOf(li.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(ai.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Is.prototype,Object.create(Uint32Array.prototype));Object.assign(li.prototype,Le.prototype,{constructor:li,signed:!0,TypedArray:Int32Array,BigIntArray:xs});Object.assign(ai.prototype,Le.prototype,{constructor:ai,signed:!1,TypedArray:Uint32Array,BigIntArray:Cs});Object.assign(Is.prototype,Le.prototype,{constructor:Is,signed:!0,TypedArray:Uint32Array,BigIntArray:Cs});function Iy(e){const{buffer:t,byteOffset:n,length:r,signed:i}=e,s=new Cs(t,n,r),o=i&&s[s.length-1]&BigInt(1)<<BigInt(63);let l=BigInt(o?1:0),a=BigInt(0);if(o){for(const u of s)l+=~u*(BigInt(1)<<BigInt(32)*a++);l*=BigInt(-1)}else for(const u of s)l+=u*(BigInt(1)<<BigInt(32)*a++);return l}let Er,Cu;iw?(Cu=e=>e.byteLength===8?new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:xa(e),Er=e=>e.byteLength===8?`${new e.BigIntArray(e.buffer,e.byteOffset,1)[0]}`:xa(e)):(Er=xa,Cu=Er);function xa(e){let t="";const n=new Uint32Array(2);let r=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2);const i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer);let s=-1;const o=r.length-1;do{for(n[0]=r[s=0];s<o;)r[s++]=n[1]=n[0]/10,n[0]=(n[0]-n[1]*10<<16)+r[s];r[s]=n[1]=n[0]/10,n[0]=n[0]-n[1]*10,t=`${n[0]}${t}`}while(i[0]||i[1]||i[2]||i[3]);return t??"0"}class Jc{static new(t,n){switch(n){case!0:return new li(t);case!1:return new ai(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case xs:return new li(t)}return t.byteLength===16?new Is(t):new ai(t)}static signed(t){return new li(t)}static unsigned(t){return new ai(t)}static decimal(t){return new Is(t)}constructor(t,n){return Jc.new(t,n)}}var by,By,Ey,Fy,Oy,Ay,Dy,ky,Ny,Ty,xy,Cy,My,Ly,Ry,Uy,Py,zy,jy;class k{static isNull(t){return(t==null?void 0:t.typeId)===y.Null}static isInt(t){return(t==null?void 0:t.typeId)===y.Int}static isFloat(t){return(t==null?void 0:t.typeId)===y.Float}static isBinary(t){return(t==null?void 0:t.typeId)===y.Binary}static isUtf8(t){return(t==null?void 0:t.typeId)===y.Utf8}static isBool(t){return(t==null?void 0:t.typeId)===y.Bool}static isDecimal(t){return(t==null?void 0:t.typeId)===y.Decimal}static isDate(t){return(t==null?void 0:t.typeId)===y.Date}static isTime(t){return(t==null?void 0:t.typeId)===y.Time}static isTimestamp(t){return(t==null?void 0:t.typeId)===y.Timestamp}static isInterval(t){return(t==null?void 0:t.typeId)===y.Interval}static isList(t){return(t==null?void 0:t.typeId)===y.List}static isStruct(t){return(t==null?void 0:t.typeId)===y.Struct}static isUnion(t){return(t==null?void 0:t.typeId)===y.Union}static isFixedSizeBinary(t){return(t==null?void 0:t.typeId)===y.FixedSizeBinary}static isFixedSizeList(t){return(t==null?void 0:t.typeId)===y.FixedSizeList}static isMap(t){return(t==null?void 0:t.typeId)===y.Map}static isDictionary(t){return(t==null?void 0:t.typeId)===y.Dictionary}static isDenseUnion(t){return k.isUnion(t)&&t.mode===de.Dense}static isSparseUnion(t){return k.isUnion(t)&&t.mode===de.Sparse}get typeId(){return y.NONE}}by=Symbol.toStringTag;k[by]=(e=>(e.children=null,e.ArrayType=Array,e[Symbol.toStringTag]="DataType"))(k.prototype);let Xn=class extends k{toString(){return"Null"}get typeId(){return y.Null}};By=Symbol.toStringTag;Xn[By]=(e=>e[Symbol.toStringTag]="Null")(Xn.prototype);class Zn extends k{constructor(t,n){super(),this.isSigned=t,this.bitWidth=n}get typeId(){return y.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?xs:Cs}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}Ey=Symbol.toStringTag;Zn[Ey]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(Zn.prototype);class bs extends Zn{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(bs.prototype,"ArrayType",{value:Int32Array});class Bs extends k{constructor(t){super(),this.precision=t}get typeId(){return y.Float}get ArrayType(){switch(this.precision){case te.HALF:return Uint16Array;case te.SINGLE:return Float32Array;case te.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}Fy=Symbol.toStringTag;Bs[Fy]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(Bs.prototype);let Zo=class extends k{constructor(){super()}get typeId(){return y.Binary}toString(){return"Binary"}};Oy=Symbol.toStringTag;Zo[Oy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(Zo.prototype);let qo=class extends k{constructor(){super()}get typeId(){return y.Utf8}toString(){return"Utf8"}};Ay=Symbol.toStringTag;qo[Ay]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(qo.prototype);let tl=class extends k{constructor(){super()}get typeId(){return y.Bool}toString(){return"Bool"}};Dy=Symbol.toStringTag;tl[Dy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(tl.prototype);let el=class extends k{constructor(t,n,r=128){super(),this.scale=t,this.precision=n,this.bitWidth=r}get typeId(){return y.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};ky=Symbol.toStringTag;el[ky]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(el.prototype);class nl extends k{constructor(t){super(),this.unit=t}get typeId(){return y.Date}toString(){return`Date${(this.unit+1)*32}<${Bn[this.unit]}>`}}Ny=Symbol.toStringTag;nl[Ny]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Date"))(nl.prototype);class Es extends k{constructor(t,n){super(),this.unit=t,this.bitWidth=n}get typeId(){return y.Time}toString(){return`Time${this.bitWidth}<${G[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return xs}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}Ty=Symbol.toStringTag;Es[Ty]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]="Time"))(Es.prototype);class rl extends k{constructor(t,n){super(),this.unit=t,this.timezone=n}get typeId(){return y.Timestamp}toString(){return`Timestamp<${G[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}xy=Symbol.toStringTag;rl[xy]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Timestamp"))(rl.prototype);class il extends k{constructor(t){super(),this.unit=t}get typeId(){return y.Interval}toString(){return`Interval<${Gn[this.unit]}>`}}Cy=Symbol.toStringTag;il[Cy]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(il.prototype);let sl=class extends k{constructor(t){super(),this.children=[t]}get typeId(){return y.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}};My=Symbol.toStringTag;sl[My]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(sl.prototype);class zt extends k{constructor(t){super(),this.children=t}get typeId(){return y.Struct}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}}Ly=Symbol.toStringTag;zt[Ly]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(zt.prototype);class ol extends k{constructor(t,n,r){super(),this.mode=t,this.children=r,this.typeIds=n=Int32Array.from(n),this.typeIdToChildIndex=n.reduce((i,s,o)=>(i[s]=o)&&i||i,Object.create(null))}get typeId(){return y.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(t=>`${t.type}`).join(" | ")}>`}}Ry=Symbol.toStringTag;ol[Ry]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(ol.prototype);let ll=class extends k{constructor(t){super(),this.byteWidth=t}get typeId(){return y.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};Uy=Symbol.toStringTag;ll[Uy]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(ll.prototype);let al=class extends k{constructor(t,n){super(),this.listSize=t,this.children=[n]}get typeId(){return y.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}>`}};Py=Symbol.toStringTag;al[Py]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(al.prototype);class ul extends k{constructor(t,n=!1){super(),this.children=[t],this.keysSorted=n}get typeId(){return y.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(t=>`${t.name}:${t.type}`).join(", ")}}>`}}zy=Symbol.toStringTag;ul[zy]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(ul.prototype);const Sw=(e=>()=>++e)(-1);class wi extends k{constructor(t,n,r,i){super(),this.indices=n,this.dictionary=t,this.isOrdered=i||!1,this.id=r==null?Sw():typeof r=="number"?r:r.low}get typeId(){return y.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}>`}}jy=Symbol.toStringTag;wi[jy]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(wi.prototype);function cn(e){const t=e;switch(e.typeId){case y.Decimal:return e.bitWidth/32;case y.Timestamp:return 2;case y.Date:return 1+t.unit;case y.Interval:return 1+t.unit;case y.FixedSizeList:return t.listSize;case y.FixedSizeBinary:return t.byteWidth;default:return 1}}class Y{visitMany(t,...n){return t.map((r,i)=>this.visit(r,...n.map(s=>s[i])))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,n=!0){return Iw(this,t,n)}getVisitFnByTypeId(t,n=!0){return Ur(this,t,n)}visitNull(t,...n){return null}visitBool(t,...n){return null}visitInt(t,...n){return null}visitFloat(t,...n){return null}visitUtf8(t,...n){return null}visitBinary(t,...n){return null}visitFixedSizeBinary(t,...n){return null}visitDate(t,...n){return null}visitTimestamp(t,...n){return null}visitTime(t,...n){return null}visitDecimal(t,...n){return null}visitList(t,...n){return null}visitStruct(t,...n){return null}visitUnion(t,...n){return null}visitDictionary(t,...n){return null}visitInterval(t,...n){return null}visitFixedSizeList(t,...n){return null}visitMap(t,...n){return null}}function Iw(e,t,n=!0){return typeof t=="number"?Ur(e,t,n):typeof t=="string"&&t in y?Ur(e,y[t],n):t&&t instanceof k?Ur(e,Cf(t),n):t!=null&&t.type&&t.type instanceof k?Ur(e,Cf(t.type),n):Ur(e,y.NONE,n)}function Ur(e,t,n=!0){let r=null;switch(t){case y.Null:r=e.visitNull;break;case y.Bool:r=e.visitBool;break;case y.Int:r=e.visitInt;break;case y.Int8:r=e.visitInt8||e.visitInt;break;case y.Int16:r=e.visitInt16||e.visitInt;break;case y.Int32:r=e.visitInt32||e.visitInt;break;case y.Int64:r=e.visitInt64||e.visitInt;break;case y.Uint8:r=e.visitUint8||e.visitInt;break;case y.Uint16:r=e.visitUint16||e.visitInt;break;case y.Uint32:r=e.visitUint32||e.visitInt;break;case y.Uint64:r=e.visitUint64||e.visitInt;break;case y.Float:r=e.visitFloat;break;case y.Float16:r=e.visitFloat16||e.visitFloat;break;case y.Float32:r=e.visitFloat32||e.visitFloat;break;case y.Float64:r=e.visitFloat64||e.visitFloat;break;case y.Utf8:r=e.visitUtf8;break;case y.Binary:r=e.visitBinary;break;case y.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case y.Date:r=e.visitDate;break;case y.DateDay:r=e.visitDateDay||e.visitDate;break;case y.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case y.Timestamp:r=e.visitTimestamp;break;case y.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case y.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case y.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case y.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case y.Time:r=e.visitTime;break;case y.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case y.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case y.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case y.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case y.Decimal:r=e.visitDecimal;break;case y.List:r=e.visitList;break;case y.Struct:r=e.visitStruct;break;case y.Union:r=e.visitUnion;break;case y.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case y.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case y.Dictionary:r=e.visitDictionary;break;case y.Interval:r=e.visitInterval;break;case y.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case y.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case y.FixedSizeList:r=e.visitFixedSizeList;break;case y.Map:r=e.visitMap;break}if(typeof r=="function")return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${y[t]}'`)}function Cf(e){switch(e.typeId){case y.Null:return y.Null;case y.Int:{const{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?y.Int8:y.Uint8;case 16:return n?y.Int16:y.Uint16;case 32:return n?y.Int32:y.Uint32;case 64:return n?y.Int64:y.Uint64}return y.Int}case y.Float:switch(e.precision){case te.HALF:return y.Float16;case te.SINGLE:return y.Float32;case te.DOUBLE:return y.Float64}return y.Float;case y.Binary:return y.Binary;case y.Utf8:return y.Utf8;case y.Bool:return y.Bool;case y.Decimal:return y.Decimal;case y.Time:switch(e.unit){case G.SECOND:return y.TimeSecond;case G.MILLISECOND:return y.TimeMillisecond;case G.MICROSECOND:return y.TimeMicrosecond;case G.NANOSECOND:return y.TimeNanosecond}return y.Time;case y.Timestamp:switch(e.unit){case G.SECOND:return y.TimestampSecond;case G.MILLISECOND:return y.TimestampMillisecond;case G.MICROSECOND:return y.TimestampMicrosecond;case G.NANOSECOND:return y.TimestampNanosecond}return y.Timestamp;case y.Date:switch(e.unit){case Bn.DAY:return y.DateDay;case Bn.MILLISECOND:return y.DateMillisecond}return y.Date;case y.Interval:switch(e.unit){case Gn.DAY_TIME:return y.IntervalDayTime;case Gn.YEAR_MONTH:return y.IntervalYearMonth}return y.Interval;case y.Map:return y.Map;case y.List:return y.List;case y.Struct:return y.Struct;case y.Union:switch(e.mode){case de.Dense:return y.DenseUnion;case de.Sparse:return y.SparseUnion}return y.Union;case y.FixedSizeBinary:return y.FixedSizeBinary;case y.FixedSizeList:return y.FixedSizeList;case y.Dictionary:return y.Dictionary}throw new Error(`Unrecognized type '${y[e.typeId]}'`)}Y.prototype.visitInt8=null;Y.prototype.visitInt16=null;Y.prototype.visitInt32=null;Y.prototype.visitInt64=null;Y.prototype.visitUint8=null;Y.prototype.visitUint16=null;Y.prototype.visitUint32=null;Y.prototype.visitUint64=null;Y.prototype.visitFloat16=null;Y.prototype.visitFloat32=null;Y.prototype.visitFloat64=null;Y.prototype.visitDateDay=null;Y.prototype.visitDateMillisecond=null;Y.prototype.visitTimestampSecond=null;Y.prototype.visitTimestampMillisecond=null;Y.prototype.visitTimestampMicrosecond=null;Y.prototype.visitTimestampNanosecond=null;Y.prototype.visitTimeSecond=null;Y.prototype.visitTimeMillisecond=null;Y.prototype.visitTimeMicrosecond=null;Y.prototype.visitTimeNanosecond=null;Y.prototype.visitDenseUnion=null;Y.prototype.visitSparseUnion=null;Y.prototype.visitIntervalDayTime=null;Y.prototype.visitIntervalYearMonth=null;const Vy=new Float64Array(1),Rr=new Uint32Array(Vy.buffer);function $y(e){const t=(e&31744)>>10,n=(e&1023)/1024,r=Math.pow(-1,(e&32768)>>15);switch(t){case 31:return r*(n?Number.NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,t-15)*(1+n)}function bw(e){if(e!==e)return 32256;Vy[0]=e;const t=(Rr[1]&2147483648)>>16&65535;let n=Rr[1]&2146435072,r=0;return n>=1089470464?Rr[0]>0?n=31744:(n=(n&2080374784)>>16,r=(Rr[1]&1048575)>>10):n<=1056964608?(r=1048576+(Rr[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(Rr[1]&1048575)+512>>10),t|n|r&65535}class M extends Y{}function U(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}const Bw=(e,t,n)=>{e[t]=Math.trunc(n/864e5)},Gc=(e,t,n)=>{e[t]=Math.trunc(n%4294967296),e[t+1]=Math.trunc(n/4294967296)},Ew=(e,t,n)=>{e[t]=Math.trunc(n*1e3%4294967296),e[t+1]=Math.trunc(n*1e3/4294967296)},Fw=(e,t,n)=>{e[t]=Math.trunc(n*1e6%4294967296),e[t+1]=Math.trunc(n*1e6/4294967296)},Wy=(e,t,n,r)=>{if(n+1<t.length){const{[n]:i,[n+1]:s}=t;e.set(r.subarray(0,s-i),i)}},Ow=({offset:e,values:t},n,r)=>{const i=e+n;r?t[i>>3]|=1<<i%8:t[i>>3]&=~(1<<i%8)},Fn=({values:e},t,n)=>{e[t]=n},Xc=({values:e},t,n)=>{e[t]=n},Hy=({values:e},t,n)=>{e[t]=bw(n)},Aw=(e,t,n)=>{switch(e.type.precision){case te.HALF:return Hy(e,t,n);case te.SINGLE:case te.DOUBLE:return Xc(e,t,n)}},Yy=({values:e},t,n)=>{Bw(e,t,n.valueOf())},Qy=({values:e},t,n)=>{Gc(e,t*2,n.valueOf())},Dw=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},kw=({values:e,valueOffsets:t},n,r)=>Wy(e,t,n,r),Nw=({values:e,valueOffsets:t},n,r)=>{Wy(e,t,n,Hc(r))},Tw=(e,t,n)=>{e.type.unit===Bn.DAY?Yy(e,t,n):Qy(e,t,n)},Ky=({values:e},t,n)=>Gc(e,t*2,n/1e3),Jy=({values:e},t,n)=>Gc(e,t*2,n),Gy=({values:e},t,n)=>Ew(e,t*2,n),Xy=({values:e},t,n)=>Fw(e,t*2,n),xw=(e,t,n)=>{switch(e.type.unit){case G.SECOND:return Ky(e,t,n);case G.MILLISECOND:return Jy(e,t,n);case G.MICROSECOND:return Gy(e,t,n);case G.NANOSECOND:return Xy(e,t,n)}},Zy=({values:e},t,n)=>{e[t]=n},qy=({values:e},t,n)=>{e[t]=n},tm=({values:e},t,n)=>{e[t]=n},em=({values:e},t,n)=>{e[t]=n},Cw=(e,t,n)=>{switch(e.type.unit){case G.SECOND:return Zy(e,t,n);case G.MILLISECOND:return qy(e,t,n);case G.MICROSECOND:return tm(e,t,n);case G.NANOSECOND:return em(e,t,n)}},Mw=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},Lw=(e,t,n)=>{const r=e.children[0],i=e.valueOffsets,s=Fe.getVisitFn(r);if(Array.isArray(n))for(let o=-1,l=i[t],a=i[t+1];l<a;)s(r,l++,n[++o]);else for(let o=-1,l=i[t],a=i[t+1];l<a;)s(r,l++,n.get(++o))},Rw=(e,t,n)=>{const r=e.children[0],{valueOffsets:i}=e,s=Fe.getVisitFn(r);let{[t]:o,[t+1]:l}=i;const a=n instanceof Map?n.entries():Object.entries(n);for(const u of a)if(s(r,o,u),++o>=l)break},Uw=(e,t)=>(n,r,i,s)=>r&&n(r,e,t[s]),Pw=(e,t)=>(n,r,i,s)=>r&&n(r,e,t.get(s)),zw=(e,t)=>(n,r,i,s)=>r&&n(r,e,t.get(i.name)),jw=(e,t)=>(n,r,i,s)=>r&&n(r,e,t[i.name]),Vw=(e,t,n)=>{const r=e.type.children.map(s=>Fe.getVisitFn(s.type)),i=n instanceof Map?zw(t,n):n instanceof Z?Pw(t,n):Array.isArray(n)?Uw(t,n):jw(t,n);e.type.children.forEach((s,o)=>i(r[o],e.children[o],s,o))},$w=(e,t,n)=>{e.type.mode===de.Dense?nm(e,t,n):rm(e,t,n)},nm=(e,t,n)=>{const r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Fe.visit(i,e.valueOffsets[t],n)},rm=(e,t,n)=>{const r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Fe.visit(i,t,n)},Ww=(e,t,n)=>{var r;(r=e.dictionary)===null||r===void 0||r.set(e.values[t],n)},Hw=(e,t,n)=>{e.type.unit===Gn.DAY_TIME?im(e,t,n):sm(e,t,n)},im=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},sm=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},Yw=(e,t,n)=>{const{stride:r}=e,i=e.children[0],s=Fe.getVisitFn(i);if(Array.isArray(n))for(let o=-1,l=t*r;++o<r;)s(i,l+o,n[o]);else for(let o=-1,l=t*r;++o<r;)s(i,l+o,n.get(o))};M.prototype.visitBool=U(Ow);M.prototype.visitInt=U(Fn);M.prototype.visitInt8=U(Fn);M.prototype.visitInt16=U(Fn);M.prototype.visitInt32=U(Fn);M.prototype.visitInt64=U(Fn);M.prototype.visitUint8=U(Fn);M.prototype.visitUint16=U(Fn);M.prototype.visitUint32=U(Fn);M.prototype.visitUint64=U(Fn);M.prototype.visitFloat=U(Aw);M.prototype.visitFloat16=U(Hy);M.prototype.visitFloat32=U(Xc);M.prototype.visitFloat64=U(Xc);M.prototype.visitUtf8=U(Nw);M.prototype.visitBinary=U(kw);M.prototype.visitFixedSizeBinary=U(Dw);M.prototype.visitDate=U(Tw);M.prototype.visitDateDay=U(Yy);M.prototype.visitDateMillisecond=U(Qy);M.prototype.visitTimestamp=U(xw);M.prototype.visitTimestampSecond=U(Ky);M.prototype.visitTimestampMillisecond=U(Jy);M.prototype.visitTimestampMicrosecond=U(Gy);M.prototype.visitTimestampNanosecond=U(Xy);M.prototype.visitTime=U(Cw);M.prototype.visitTimeSecond=U(Zy);M.prototype.visitTimeMillisecond=U(qy);M.prototype.visitTimeMicrosecond=U(tm);M.prototype.visitTimeNanosecond=U(em);M.prototype.visitDecimal=U(Mw);M.prototype.visitList=U(Lw);M.prototype.visitStruct=U(Vw);M.prototype.visitUnion=U($w);M.prototype.visitDenseUnion=U(nm);M.prototype.visitSparseUnion=U(rm);M.prototype.visitDictionary=U(Ww);M.prototype.visitInterval=U(Hw);M.prototype.visitIntervalDayTime=U(im);M.prototype.visitIntervalYearMonth=U(sm);M.prototype.visitFixedSizeList=U(Yw);M.prototype.visitMap=U(Rw);const Fe=new M,ke=Symbol.for("parent"),ui=Symbol.for("rowIndex");class Zc{constructor(t,n){return this[ke]=t,this[ui]=n,new Proxy(this,new Kw)}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[ui],n=this[ke],r=n.type.children,i={};for(let s=-1,o=r.length;++s<o;)i[r[s].name]=ne.visit(n.children[s],t);return i}toString(){return`{${[...this].map(([t,n])=>`${Ss(t)}: ${Ss(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Qw(this[ke],this[ui])}}class Qw{constructor(t,n){this.childIndex=0,this.children=t.children,this.rowIndex=n,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const t=this.childIndex;return t<this.numChildren?(this.childIndex=t+1,{done:!1,value:[this.childFields[t].name,ne.visit(this.children[t],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Zc.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[ke]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ui]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class Kw{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[ke].type.children.map(n=>n.name)}has(t,n){return t[ke].type.children.findIndex(r=>r.name===n)!==-1}getOwnPropertyDescriptor(t,n){if(t[ke].type.children.findIndex(r=>r.name===n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(t,n){if(Reflect.has(t,n))return t[n];const r=t[ke].type.children.findIndex(i=>i.name===n);if(r!==-1){const i=ne.visit(t[ke].children[r],t[ui]);return Reflect.set(t,n,i),i}}set(t,n,r){const i=t[ke].type.children.findIndex(s=>s.name===n);return i!==-1?(Fe.visit(t[ke].children[i],t[ui],r),Reflect.set(t,n,r)):Reflect.has(t,n)||typeof n=="symbol"?Reflect.set(t,n,r):!1}}class N extends Y{}function L(e){return(t,n)=>t.getValid(n)?e(t,n):null}const Jw=(e,t)=>864e5*e[t],qc=(e,t)=>4294967296*e[t+1]+(e[t]>>>0),Gw=(e,t)=>4294967296*(e[t+1]/1e3)+(e[t]>>>0)/1e3,Xw=(e,t)=>4294967296*(e[t+1]/1e6)+(e[t]>>>0)/1e6,om=e=>new Date(e),Zw=(e,t)=>om(Jw(e,t)),qw=(e,t)=>om(qc(e,t)),t_=(e,t)=>null,lm=(e,t,n)=>{if(n+1>=t.length)return null;const r=t[n],i=t[n+1];return e.subarray(r,i)},e_=({offset:e,values:t},n)=>{const r=e+n;return(t[r>>3]&1<<r%8)!==0},am=({values:e},t)=>Zw(e,t),um=({values:e},t)=>qw(e,t*2),ir=({stride:e,values:t},n)=>t[e*n],n_=({stride:e,values:t},n)=>$y(t[e*n]),cm=({values:e},t)=>e[t],r_=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),i_=({values:e,valueOffsets:t},n)=>lm(e,t,n),s_=({values:e,valueOffsets:t},n)=>{const r=lm(e,t,n);return r!==null?Nu(r):null},o_=({values:e},t)=>e[t],l_=({type:e,values:t},n)=>e.precision!==te.HALF?t[n]:$y(t[n]),a_=(e,t)=>e.type.unit===Bn.DAY?am(e,t):um(e,t),dm=({values:e},t)=>1e3*qc(e,t*2),fm=({values:e},t)=>qc(e,t*2),hm=({values:e},t)=>Gw(e,t*2),pm=({values:e},t)=>Xw(e,t*2),u_=(e,t)=>{switch(e.type.unit){case G.SECOND:return dm(e,t);case G.MILLISECOND:return fm(e,t);case G.MICROSECOND:return hm(e,t);case G.NANOSECOND:return pm(e,t)}},ym=({values:e},t)=>e[t],mm=({values:e},t)=>e[t],gm=({values:e},t)=>e[t],vm=({values:e},t)=>e[t],c_=(e,t)=>{switch(e.type.unit){case G.SECOND:return ym(e,t);case G.MILLISECOND:return mm(e,t);case G.MICROSECOND:return gm(e,t);case G.NANOSECOND:return vm(e,t)}},d_=({values:e,stride:t},n)=>Jc.decimal(e.subarray(t*n,t*(n+1))),f_=(e,t)=>{const{valueOffsets:n,stride:r,children:i}=e,{[t*r]:s,[t*r+1]:o}=n,a=i[0].slice(s,o-s);return new Z([a])},h_=(e,t)=>{const{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:s}=n,o=r[0];return new td(o.slice(i,s-i))},p_=(e,t)=>new Zc(e,t),y_=(e,t)=>e.type.mode===de.Dense?wm(e,t):_m(e,t),wm=(e,t)=>{const n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return ne.visit(r,e.valueOffsets[t])},_m=(e,t)=>{const n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return ne.visit(r,t)},m_=(e,t)=>{var n;return(n=e.dictionary)===null||n===void 0?void 0:n.get(e.values[t])},g_=(e,t)=>e.type.unit===Gn.DAY_TIME?Sm(e,t):Im(e,t),Sm=({values:e},t)=>e.subarray(2*t,2*(t+1)),Im=({values:e},t)=>{const n=e[t],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},v_=(e,t)=>{const{stride:n,children:r}=e,s=r[0].slice(t*n,n);return new Z([s])};N.prototype.visitNull=L(t_);N.prototype.visitBool=L(e_);N.prototype.visitInt=L(o_);N.prototype.visitInt8=L(ir);N.prototype.visitInt16=L(ir);N.prototype.visitInt32=L(ir);N.prototype.visitInt64=L(cm);N.prototype.visitUint8=L(ir);N.prototype.visitUint16=L(ir);N.prototype.visitUint32=L(ir);N.prototype.visitUint64=L(cm);N.prototype.visitFloat=L(l_);N.prototype.visitFloat16=L(n_);N.prototype.visitFloat32=L(ir);N.prototype.visitFloat64=L(ir);N.prototype.visitUtf8=L(s_);N.prototype.visitBinary=L(i_);N.prototype.visitFixedSizeBinary=L(r_);N.prototype.visitDate=L(a_);N.prototype.visitDateDay=L(am);N.prototype.visitDateMillisecond=L(um);N.prototype.visitTimestamp=L(u_);N.prototype.visitTimestampSecond=L(dm);N.prototype.visitTimestampMillisecond=L(fm);N.prototype.visitTimestampMicrosecond=L(hm);N.prototype.visitTimestampNanosecond=L(pm);N.prototype.visitTime=L(c_);N.prototype.visitTimeSecond=L(ym);N.prototype.visitTimeMillisecond=L(mm);N.prototype.visitTimeMicrosecond=L(gm);N.prototype.visitTimeNanosecond=L(vm);N.prototype.visitDecimal=L(d_);N.prototype.visitList=L(f_);N.prototype.visitStruct=L(p_);N.prototype.visitUnion=L(y_);N.prototype.visitDenseUnion=L(wm);N.prototype.visitSparseUnion=L(_m);N.prototype.visitDictionary=L(m_);N.prototype.visitInterval=L(g_);N.prototype.visitIntervalDayTime=L(Sm);N.prototype.visitIntervalYearMonth=L(Im);N.prototype.visitFixedSizeList=L(v_);N.prototype.visitMap=L(h_);const ne=new N,He=Symbol.for("keys"),ci=Symbol.for("vals");class td{constructor(t){return this[He]=new Z([t.children[0]]).memoize(),this[ci]=t.children[1],new Proxy(this,new __)}[Symbol.iterator](){return new w_(this[He],this[ci])}get size(){return this[He].length}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[He],n=this[ci],r={};for(let i=-1,s=t.length;++i<s;)r[t.get(i)]=ne.visit(n,i);return r}toString(){return`{${[...this].map(([t,n])=>`${Ss(t)}: ${Ss(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class w_{constructor(t,n){this.keys=t,this.vals=n,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){const t=this.keyIndex;return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),ne.visit(this.vals,t)]})}}class __{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[He].toArray().map(String)}has(t,n){return t[He].includes(n)}getOwnPropertyDescriptor(t,n){if(t[He].indexOf(n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(t,n){if(Reflect.has(t,n))return t[n];const r=t[He].indexOf(n);if(r!==-1){const i=ne.visit(Reflect.get(t,ci),r);return Reflect.set(t,n,i),i}}set(t,n,r){const i=t[He].indexOf(n);return i!==-1?(Fe.visit(Reflect.get(t,ci),i,r),Reflect.set(t,n,r)):Reflect.has(t,n)?Reflect.set(t,n,r):!1}}Object.defineProperties(td.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[He]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ci]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let Mf;function bm(e,t,n,r){const{length:i=0}=e;let s=typeof t!="number"?0:t,o=typeof n!="number"?i:n;return s<0&&(s=(s%i+i)%i),o<0&&(o=(o%i+i)%i),o<s&&(Mf=s,s=o,o=Mf),o>i&&(o=i),r?r(e,s,o):[s,o]}const Lf=e=>e!==e;function ki(e){if(typeof e!=="object"||e===null)return Lf(e)?Lf:n=>n===e;if(e instanceof Date){const n=e.valueOf();return r=>r instanceof Date?r.valueOf()===n:!1}return ArrayBuffer.isView(e)?n=>n?hw(e,n):!1:e instanceof Map?I_(e):Array.isArray(e)?S_(e):e instanceof Z?b_(e):B_(e,!0)}function S_(e){const t=[];for(let n=-1,r=e.length;++n<r;)t[n]=ki(e[n]);return ta(t)}function I_(e){let t=-1;const n=[];for(const r of e.values())n[++t]=ki(r);return ta(n)}function b_(e){const t=[];for(let n=-1,r=e.length;++n<r;)t[n]=ki(e.get(n));return ta(t)}function B_(e,t=!1){const n=Object.keys(e);if(!t&&n.length===0)return()=>!1;const r=[];for(let i=-1,s=n.length;++i<s;)r[i]=ki(e[n[i]]);return ta(r,n)}function ta(e,t){return n=>{if(!n||typeof n!="object")return!1;switch(n.constructor){case Array:return E_(e,n);case Map:return Rf(e,n,n.keys());case td:case Zc:case Object:case void 0:return Rf(e,n,t||Object.keys(n))}return n instanceof Z?F_(e,n):!1}}function E_(e,t){const n=e.length;if(t.length!==n)return!1;for(let r=-1;++r<n;)if(!e[r](t[r]))return!1;return!0}function F_(e,t){const n=e.length;if(t.length!==n)return!1;for(let r=-1;++r<n;)if(!e[r](t.get(r)))return!1;return!0}function Rf(e,t,n){const r=n[Symbol.iterator](),i=t instanceof Map?t.keys():Object.keys(t)[Symbol.iterator](),s=t instanceof Map?t.values():Object.values(t)[Symbol.iterator]();let o=0;const l=e.length;let a=s.next(),u=r.next(),c=i.next();for(;o<l&&!u.done&&!c.done&&!a.done&&!(u.value!==c.value||!e[o](a.value));++o,u=r.next(),c=i.next(),a=s.next());return o===l&&u.done&&c.done&&a.done?!0:(r.return&&r.return(),i.return&&i.return(),s.return&&s.return(),!1)}function Bm(e,t,n,r){return(n&1<<r)!==0}function O_(e,t,n,r){return(n&1<<r)>>r}function ed(e,t,n){const r=n.byteLength+7&-8;if(e>0||n.byteLength<r){const i=new Uint8Array(r);return i.set(e%8===0?n.subarray(e>>3):cl(new nd(n,e,t,null,Bm)).subarray(0,r)),i}return n}function cl(e){const t=[];let n=0,r=0,i=0;for(const o of e)o&&(i|=1<<r),++r===8&&(t[n++]=i,i=r=0);(n===0||r>0)&&(t[n++]=i);const s=new Uint8Array(t.length+7&-8);return s.set(t),s}class nd{constructor(t,n,r,i,s){this.bytes=t,this.length=r,this.context=i,this.get=s,this.bit=n%8,this.byteIndex=n>>3,this.byte=t[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 Mu(e,t,n){if(n-t<=0)return 0;if(n-t<8){let s=0;for(const o of new nd(e,t,n-t,e,O_))s+=o;return s}const r=n>>3<<3,i=t+(t%8===0?0:8-t%8);return Mu(e,t,i)+Mu(e,r,n)+A_(e,i>>3,r-i>>3)}function A_(e,t,n){let r=0,i=Math.trunc(t);const s=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n===void 0?e.byteLength:i+n;for(;o-i>=4;)r+=Ca(s.getUint32(i)),i+=4;for(;o-i>=2;)r+=Ca(s.getUint16(i)),i+=2;for(;o-i>=1;)r+=Ca(s.getUint8(i)),i+=1;return r}function Ca(e){let t=Math.trunc(e);return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}const D_=-1;class st{constructor(t,n,r,i,s,o=[],l){this.type=t,this.children=o,this.dictionary=l,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1));let a;s instanceof st?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=cn(t),s&&((a=s[0])&&(this.valueOffsets=a),(a=s[1])&&(this.values=a),(a=s[2])&&(this.nullBitmap=a),(a=s[3])&&(this.typeIds=a))),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 t=0;const{valueOffsets:n,values:r,nullBitmap:i,typeIds:s}=this;return n&&(t+=n.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),s&&(t+=s.byteLength),this.children.reduce((o,l)=>o+l.byteLength,t)}get nullCount(){let t=this._nullCount,n;return t<=D_&&(n=this.nullBitmap)&&(this._nullCount=t=this.length-Mu(n,this.offset,this.offset+this.length)),t}getValid(t){if(this.nullable&&this.nullCount>0){const n=this.offset+t;return(this.nullBitmap[n>>3]&1<<n%8)!==0}return!0}setValid(t,n){if(!this.nullable)return n;if(!this.nullBitmap||this.nullBitmap.byteLength<=t>>3){const{nullBitmap:a}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:a,_nullCount:0})}const{nullBitmap:r,offset:i}=this,s=i+t>>3,o=(i+t)%8,l=r[s]>>o&1;return n?l===0&&(r[s]|=1<<o,this._nullCount=this.nullCount+1):l===1&&(r[s]&=~(1<<o),this._nullCount=this.nullCount-1),n}clone(t=this.type,n=this.offset,r=this.length,i=this._nullCount,s=this,o=this.children){return new st(t,n,r,i,s,o,this.dictionary)}slice(t,n){const{stride:r,typeId:i,children:s}=this,o=+(this._nullCount===0)-1,l=i===16?r:1,a=this._sliceBuffers(t,n,r,i);return this.clone(this.type,this.offset+t,n,o,a,s.length===0||this.valueOffsets?s:this._sliceChildren(s,l*t,l*n))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===y.Null)return this.clone(this.type,0,t,0);const{length:n,nullCount:r}=this,i=new Uint8Array((t+63&-64)>>3).fill(255,0,n>>3);i[n>>3]=(1<<n-(n&-8))-1,r>0&&i.set(ed(this.offset,n,this.nullBitmap),0);const s=this.buffers;return s[un.VALIDITY]=i,this.clone(this.type,0,t,r+(t-n),s)}_sliceBuffers(t,n,r,i){let s;const{buffers:o}=this;return(s=o[un.TYPE])&&(o[un.TYPE]=s.subarray(t,t+n)),(s=o[un.OFFSET])&&(o[un.OFFSET]=s.subarray(t,t+n+1))||(s=o[un.DATA])&&(o[un.DATA]=i===6?s:s.subarray(r*t,r*(t+n))),o}_sliceChildren(t,n,r){return t.map(i=>i.slice(n,r))}}st.prototype.children=Object.freeze([]);class es extends Y{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){const{["type"]:n,["offset"]:r=0,["length"]:i=0}=t;return new st(n,r,i,0)}visitBool(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length>>3,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitInt(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitFloat(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitUtf8(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.data),s=J(t.nullBitmap),o=Pi(t.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new st(n,r,l,a,[o,i,s])}visitBinary(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.data),s=J(t.nullBitmap),o=Pi(t.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new st(n,r,l,a,[o,i,s])}visitFixedSizeBinary(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitDate(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitTimestamp(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitTime(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitDecimal(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitList(t){const{["type"]:n,["offset"]:r=0,["child"]:i}=t,s=J(t.nullBitmap),o=Pi(t.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new st(n,r,l,a,[o,void 0,s],[i])}visitStruct(t){const{["type"]:n,["offset"]:r=0,["children"]:i=[]}=t,s=J(t.nullBitmap),{length:o=i.reduce((a,{length:u})=>Math.max(a,u),0),nullCount:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,void 0,s],i)}visitUnion(t){const{["type"]:n,["offset"]:r=0,["children"]:i=[]}=t,s=J(t.nullBitmap),o=rt(n.ArrayType,t.typeIds),{["length"]:l=o.length,["nullCount"]:a=t.nullBitmap?-1:0}=t;if(k.isSparseUnion(n))return new st(n,r,l,a,[void 0,void 0,s,o],i);const u=Pi(t.valueOffsets);return new st(n,r,l,a,[u,void 0,s,o],i)}visitDictionary(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.indices.ArrayType,t.data),{["dictionary"]:o=new Z([new es().visit({type:n.dictionary})])}=t,{["length"]:l=s.length,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new st(n,r,l,a,[void 0,s,i],[],o)}visitInterval(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitFixedSizeList(t){const{["type"]:n,["offset"]:r=0,["child"]:i=new es().visit({type:n.valueType})}=t,s=J(t.nullBitmap),{["length"]:o=i.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,void 0,s],[i])}visitMap(t){const{["type"]:n,["offset"]:r=0,["child"]:i=new es().visit({type:n.childType})}=t,s=J(t.nullBitmap),o=Pi(t.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new st(n,r,l,a,[o,void 0,s],[i])}}function H(e){return new es().visit(e)}class Uf{constructor(t=0,n){this.numChunks=t,this.getChunkIterator=n,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const t=this.chunkIterator.next();if(!t.done)return t;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function Em(e){return e.reduce((t,n)=>t+n.nullCount,0)}function Fm(e){return e.reduce((t,n,r)=>(t[r+1]=t[r]+n.length,t),new Uint32Array(e.length+1))}function Om(e,t,n,r){const i=[];for(let s=-1,o=e.length;++s<o;){const l=e[s],a=t[s],{length:u}=l;if(a>=r)break;if(n>=a+u)continue;if(a>=n&&a+u<=r){i.push(l);continue}const c=Math.max(0,n-a),f=Math.min(r-a,u);i.push(l.slice(c,f-c))}return i.length===0&&i.push(e[0].slice(0,0)),i}function rd(e,t,n,r){let i=0,s=0,o=t.length-1;do{if(i>=o-1)return n<t[o]?r(e,i,n-t[i]):null;s=i+Math.trunc((o-i)*.5),n<t[s]?o=s:i=s}while(i<o)}function id(e,t){return e.getValid(t)}function di(e){function t(n,r,i){return e(n[r],i)}return function(n){const r=this.data;return rd(r,this._offsets,n,t)}}function Am(e){let t;function n(r,i,s){return e(r[i],s,t)}return function(r,i){const s=this.data;t=i;const o=rd(s,this._offsets,r,n);return t=void 0,o}}function Dm(e){let t;function n(r,i,s){let o=s,l=0,a=0;for(let u=i-1,c=r.length;++u<c;){const f=r[u];if(~(l=e(f,t,o)))return a+l;o=0,a+=f.length}return-1}return function(r,i){t=r;const s=this.data,o=typeof i!="number"?n(s,0,0):rd(s,this._offsets,i,n);return t=void 0,o}}class T extends Y{}function k_(e,t){return t===null&&e.length>0?0:-1}function N_(e,t){const{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(const i of new nd(n,e.offset+(t||0),e.length,n,Bm)){if(!i)return r;++r}return-1}function j(e,t,n){if(t===void 0)return-1;if(t===null)return N_(e,n);const r=ne.getVisitFn(e),i=ki(t);for(let s=(n||0)-1,o=e.length;++s<o;)if(i(r(e,s)))return s;return-1}function km(e,t,n){const r=ne.getVisitFn(e),i=ki(t);for(let s=(n||0)-1,o=e.length;++s<o;)if(i(r(e,s)))return s;return-1}T.prototype.visitNull=k_;T.prototype.visitBool=j;T.prototype.visitInt=j;T.prototype.visitInt8=j;T.prototype.visitInt16=j;T.prototype.visitInt32=j;T.prototype.visitInt64=j;T.prototype.visitUint8=j;T.prototype.visitUint16=j;T.prototype.visitUint32=j;T.prototype.visitUint64=j;T.prototype.visitFloat=j;T.prototype.visitFloat16=j;T.prototype.visitFloat32=j;T.prototype.visitFloat64=j;T.prototype.visitUtf8=j;T.prototype.visitBinary=j;T.prototype.visitFixedSizeBinary=j;T.prototype.visitDate=j;T.prototype.visitDateDay=j;T.prototype.visitDateMillisecond=j;T.prototype.visitTimestamp=j;T.prototype.visitTimestampSecond=j;T.prototype.visitTimestampMillisecond=j;T.prototype.visitTimestampMicrosecond=j;T.prototype.visitTimestampNanosecond=j;T.prototype.visitTime=j;T.prototype.visitTimeSecond=j;T.prototype.visitTimeMillisecond=j;T.prototype.visitTimeMicrosecond=j;T.prototype.visitTimeNanosecond=j;T.prototype.visitDecimal=j;T.prototype.visitList=j;T.prototype.visitStruct=j;T.prototype.visitUnion=j;T.prototype.visitDenseUnion=km;T.prototype.visitSparseUnion=km;T.prototype.visitDictionary=j;T.prototype.visitInterval=j;T.prototype.visitIntervalDayTime=j;T.prototype.visitIntervalYearMonth=j;T.prototype.visitFixedSizeList=j;T.prototype.visitMap=j;const dl=new T;class x extends Y{}function R(e){const{type:t}=e;if(e.nullCount===0&&e.stride===1&&(t.typeId===y.Timestamp||t instanceof Zn&&t.bitWidth!==64||t instanceof Es&&t.bitWidth!==64||t instanceof Bs&&t.precision!==te.HALF))return new Uf(e.data.length,r=>{const i=e.data[r];return i.values.subarray(0,i.length)[Symbol.iterator]()});let n=0;return new Uf(e.data.length,r=>{const s=e.data[r].length,o=e.slice(n,n+s);return n+=s,new T_(o)})}class T_{constructor(t){this.vector=t,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}x.prototype.visitNull=R;x.prototype.visitBool=R;x.prototype.visitInt=R;x.prototype.visitInt8=R;x.prototype.visitInt16=R;x.prototype.visitInt32=R;x.prototype.visitInt64=R;x.prototype.visitUint8=R;x.prototype.visitUint16=R;x.prototype.visitUint32=R;x.prototype.visitUint64=R;x.prototype.visitFloat=R;x.prototype.visitFloat16=R;x.prototype.visitFloat32=R;x.prototype.visitFloat64=R;x.prototype.visitUtf8=R;x.prototype.visitBinary=R;x.prototype.visitFixedSizeBinary=R;x.prototype.visitDate=R;x.prototype.visitDateDay=R;x.prototype.visitDateMillisecond=R;x.prototype.visitTimestamp=R;x.prototype.visitTimestampSecond=R;x.prototype.visitTimestampMillisecond=R;x.prototype.visitTimestampMicrosecond=R;x.prototype.visitTimestampNanosecond=R;x.prototype.visitTime=R;x.prototype.visitTimeSecond=R;x.prototype.visitTimeMillisecond=R;x.prototype.visitTimeMicrosecond=R;x.prototype.visitTimeNanosecond=R;x.prototype.visitDecimal=R;x.prototype.visitList=R;x.prototype.visitStruct=R;x.prototype.visitUnion=R;x.prototype.visitDenseUnion=R;x.prototype.visitSparseUnion=R;x.prototype.visitDictionary=R;x.prototype.visitInterval=R;x.prototype.visitIntervalDayTime=R;x.prototype.visitIntervalYearMonth=R;x.prototype.visitFixedSizeList=R;x.prototype.visitMap=R;const sd=new x,x_=(e,t)=>e+t;class sr extends Y{visitNull(t,n){return 0}visitInt(t,n){return t.type.bitWidth/8}visitFloat(t,n){return t.type.ArrayType.BYTES_PER_ELEMENT}visitBool(t,n){return 1/8}visitDecimal(t,n){return t.type.bitWidth/8}visitDate(t,n){return(t.type.unit+1)*4}visitTime(t,n){return t.type.bitWidth/8}visitTimestamp(t,n){return t.type.unit===G.SECOND?4:8}visitInterval(t,n){return(t.type.unit+1)*4}visitStruct(t,n){return t.children.reduce((r,i)=>r+nn.visit(i,n),0)}visitFixedSizeBinary(t,n){return t.type.byteWidth}visitMap(t,n){return 8+t.children.reduce((r,i)=>r+nn.visit(i,n),0)}visitDictionary(t,n){var r;return t.type.indices.bitWidth/8+(((r=t.dictionary)===null||r===void 0?void 0:r.getByteLength(t.values[n]))||0)}}const C_=({valueOffsets:e},t)=>8+(e[t+1]-e[t]),M_=({valueOffsets:e},t)=>8+(e[t+1]-e[t]),L_=({valueOffsets:e,stride:t,children:n},r)=>{const i=n[0],{[r*t]:s}=e,{[r*t+1]:o}=e,l=nn.getVisitFn(i.type),a=i.slice(s,o-s);let u=8;for(let c=-1,f=o-s;++c<f;)u+=l(a,c);return u},R_=({stride:e,children:t},n)=>{const r=t[0],i=r.slice(n*e,e),s=nn.getVisitFn(r.type);let o=0;for(let l=-1,a=i.length;++l<a;)o+=s(i,l);return o},U_=(e,t)=>e.type.mode===de.Dense?Nm(e,t):Tm(e,t),Nm=({type:e,children:t,typeIds:n,valueOffsets:r},i)=>{const s=e.typeIdToChildIndex[n[i]];return 8+nn.visit(t[s],r[i])},Tm=({children:e},t)=>4+nn.visitMany(e,e.map(()=>t)).reduce(x_,0);sr.prototype.visitUtf8=C_;sr.prototype.visitBinary=M_;sr.prototype.visitList=L_;sr.prototype.visitFixedSizeList=R_;sr.prototype.visitUnion=U_;sr.prototype.visitDenseUnion=Nm;sr.prototype.visitSparseUnion=Tm;const nn=new sr;var xm;const Cm={},Mm={};class Z{constructor(t){var n,r,i;const s=t[0]instanceof Z?t.flatMap(l=>l.data):t;if(s.length===0||s.some(l=>!(l instanceof st)))throw new TypeError("Vector constructor expects an Array of Data instances.");const o=(n=s[0])===null||n===void 0?void 0:n.type;switch(s.length){case 0:this._offsets=[0];break;case 1:{const{get:l,set:a,indexOf:u,byteLength:c}=Cm[o.typeId],f=s[0];this.isValid=p=>id(f,p),this.get=p=>l(f,p),this.set=(p,g)=>a(f,p,g),this.indexOf=p=>u(f,p),this.getByteLength=p=>c(f,p),this._offsets=[0,f.length];break}default:Object.setPrototypeOf(this,Mm[o.typeId]),this._offsets=Fm(s);break}this.data=s,this.type=o,this.stride=cn(o),this.numChildren=(i=(r=o.children)===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return this._byteLength===-1&&(this._byteLength=this.data.reduce((t,n)=>t+n.byteLength,0)),this._byteLength}get nullCount(){return this._nullCount===-1&&(this._nullCount=Em(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${y[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}set(t,n){}indexOf(t,n){return-1}includes(t,n){return this.indexOf(t,n)>0}getByteLength(t){return 0}[Symbol.iterator](){return sd.visit(this)}concat(...t){return new Z(this.data.concat(t.flatMap(n=>n.data).flat(Number.POSITIVE_INFINITY)))}slice(t,n){return new Z(bm(this,t,n,({data:r,_offsets:i},s,o)=>Om(r,i,s,o)))}toJSON(){return[...this]}toArray(){const{type:t,data:n,length:r,stride:i,ArrayType:s}=this;switch(t.typeId){case y.Int:case y.Float:case y.Decimal:case y.Time:case y.Timestamp:switch(n.length){case 0:return new s;case 1:return n[0].values.subarray(0,r*i);default:return n.reduce((o,{values:l,length:a})=>(o.array.set(l.subarray(0,a*i),o.offset),o.offset+=a*i,o),{array:new s(r*i),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var n;return this.getChildAt((n=this.type.children)===null||n===void 0?void 0:n.findIndex(r=>r.name===t))}getChildAt(t){return t>-1&&t<this.numChildren?new Z(this.data.map(({children:n})=>n[t])):null}get isMemoized(){return k.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(k.isDictionary(this.type)){const t=new fl(this.data[0].dictionary),n=this.data.map(r=>{const i=r.clone();return i.dictionary=t,i});return new Z(n)}return new fl(this)}unmemoize(){if(k.isDictionary(this.type)&&this.isMemoized){const t=this.data[0].dictionary.unmemoize(),n=this.data.map(r=>{const i=r.clone();return i.dictionary=t,i});return new Z(n)}return this}}xm=Symbol.toStringTag;Z[xm]=(e=>{e.type=k.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._nullCount=-1,e._byteLength=-1,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;const t=Object.keys(y).map(n=>y[n]).filter(n=>typeof n=="number"&&n!==y.NONE);for(const n of t){const r=ne.getVisitFnByTypeId(n),i=Fe.getVisitFnByTypeId(n),s=dl.getVisitFnByTypeId(n),o=nn.getVisitFnByTypeId(n);Cm[n]={get:r,set:i,indexOf:s,byteLength:o},Mm[n]=Object.create(e,{isValid:{value:di(id)},get:{value:di(ne.getVisitFnByTypeId(n))},set:{value:Am(Fe.getVisitFnByTypeId(n))},indexOf:{value:Dm(dl.getVisitFnByTypeId(n))},getByteLength:{value:di(nn.getVisitFnByTypeId(n))}})}return"Vector"})(Z.prototype);class fl extends Z{constructor(t){super(t.data);const n=this.get,r=this.set,i=this.slice,s=new Array(this.length);Object.defineProperty(this,"get",{value(o){const l=s[o];if(l!==void 0)return l;const a=n.call(this,o);return s[o]=a,a}}),Object.defineProperty(this,"set",{value(o,l){r.call(this,o,l),s[o]=l}}),Object.defineProperty(this,"slice",{value:(o,l)=>new fl(i.call(this,o,l))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new Z(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class Lu{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,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(t,n,r,i){return t.prep(8,24),t.writeInt64(i),t.pad(4),t.writeInt32(r),t.writeInt64(n),t.offset()}}const Ma=2,Ye=4,hn=4,it=4,Tn=new Int32Array(2),Pf=new Float32Array(Tn.buffer),zf=new Float64Array(Tn.buffer),oo=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;let vn=class Ru{constructor(t,n){this.low=t|0,this.high=n|0}static create(t,n){return t==0&&n==0?Ru.ZERO:new Ru(t,n)}toFloat64(){return(this.low>>>0)+this.high*4294967296}equals(t){return this.low==t.low&&this.high==t.high}};vn.ZERO=new vn(0,0);var Uu;(function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"})(Uu||(Uu={}));let _i=class Lm{constructor(t){this.bytes_=t,this.position_=0}static allocate(t){return new Lm(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return new vn(this.readInt32(t),this.readInt32(t+4))}readUint64(t){return new vn(this.readUint32(t),this.readUint32(t+4))}readFloat32(t){return Tn[0]=this.readInt32(t),Pf[0]}readFloat64(t){return Tn[oo?0:1]=this.readInt32(t),Tn[oo?1:0]=this.readInt32(t+4),zf[0]}writeInt8(t,n){this.bytes_[t]=n}writeUint8(t,n){this.bytes_[t]=n}writeInt16(t,n){this.bytes_[t]=n,this.bytes_[t+1]=n>>8}writeUint16(t,n){this.bytes_[t]=n,this.bytes_[t+1]=n>>8}writeInt32(t,n){this.bytes_[t]=n,this.bytes_[t+1]=n>>8,this.bytes_[t+2]=n>>16,this.bytes_[t+3]=n>>24}writeUint32(t,n){this.bytes_[t]=n,this.bytes_[t+1]=n>>8,this.bytes_[t+2]=n>>16,this.bytes_[t+3]=n>>24}writeInt64(t,n){this.writeInt32(t,n.low),this.writeInt32(t+4,n.high)}writeUint64(t,n){this.writeUint32(t,n.low),this.writeUint32(t+4,n.high)}writeFloat32(t,n){Pf[0]=n,this.writeInt32(t,Tn[0])}writeFloat64(t,n){zf[0]=n,this.writeInt32(t,Tn[oo?0:1]),this.writeInt32(t+4,Tn[oo?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+Ye+hn)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let t="";for(let n=0;n<hn;n++)t+=String.fromCharCode(this.readInt8(this.position_+Ye+n));return t}__offset(t,n){const r=t-this.readInt32(t);return n<this.readInt16(r)?this.readInt16(r+n):0}__union(t,n){return t.bb_pos=n+this.readInt32(n),t.bb=this,t}__string(t,n){t+=this.readInt32(t);const r=this.readInt32(t);let i="",s=0;if(t+=Ye,n===Uu.UTF8_BYTES)return this.bytes_.subarray(t,t+r);for(;s<r;){let o;const l=this.readUint8(t+s++);if(l<192)o=l;else{const a=this.readUint8(t+s++);if(l<224)o=(l&31)<<6|a&63;else{const u=this.readUint8(t+s++);if(l<240)o=(l&15)<<12|(a&63)<<6|u&63;else{const c=this.readUint8(t+s++);o=(l&7)<<18|(a&63)<<12|(u&63)<<6|c&63}}}o<65536?i+=String.fromCharCode(o):(o-=65536,i+=String.fromCharCode((o>>10)+55296,(o&1023)+56320))}return i}__union_with_string(t,n){return typeof t=="string"?this.__string(n):this.__union(t,n)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+Ye}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(t.length!=hn)throw new Error("FlatBuffers: file identifier must be length "+hn);for(let n=0;n<hn;n++)if(t.charCodeAt(n)!=this.readInt8(this.position()+Ye+n))return!1;return!0}createLong(t,n){return vn.create(t,n)}createScalarList(t,n){const r=[];for(let i=0;i<n;++i)t(i)!==null&&r.push(t(i));return r}createObjList(t,n){const r=[];for(let i=0;i<n;++i){const s=t(i);s!==null&&r.push(s.unpack())}return r}},Rm=class Um{constructor(t){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;t?n=t:n=1024,this.bb=_i.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(t){this.force_defaults=t}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(t,n){t>this.minalign&&(this.minalign=t);const r=~(this.bb.capacity()-this.space+n)+1&t-1;for(;this.space<r+t+n;){const i=this.bb.capacity();this.bb=Um.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(r)}pad(t){for(let n=0;n<t;n++)this.bb.writeInt8(--this.space,0)}writeInt8(t){this.bb.writeInt8(this.space-=1,t)}writeInt16(t){this.bb.writeInt16(this.space-=2,t)}writeInt32(t){this.bb.writeInt32(this.space-=4,t)}writeInt64(t){this.bb.writeInt64(this.space-=8,t)}writeFloat32(t){this.bb.writeFloat32(this.space-=4,t)}writeFloat64(t){this.bb.writeFloat64(this.space-=8,t)}addInt8(t){this.prep(1,0),this.writeInt8(t)}addInt16(t){this.prep(2,0),this.writeInt16(t)}addInt32(t){this.prep(4,0),this.writeInt32(t)}addInt64(t){this.prep(8,0),this.writeInt64(t)}addFloat32(t){this.prep(4,0),this.writeFloat32(t)}addFloat64(t){this.prep(8,0),this.writeFloat64(t)}addFieldInt8(t,n,r){(this.force_defaults||n!=r)&&(this.addInt8(n),this.slot(t))}addFieldInt16(t,n,r){(this.force_defaults||n!=r)&&(this.addInt16(n),this.slot(t))}addFieldInt32(t,n,r){(this.force_defaults||n!=r)&&(this.addInt32(n),this.slot(t))}addFieldInt64(t,n,r){(this.force_defaults||!n.equals(r))&&(this.addInt64(n),this.slot(t))}addFieldFloat32(t,n,r){(this.force_defaults||n!=r)&&(this.addFloat32(n),this.slot(t))}addFieldFloat64(t,n,r){(this.force_defaults||n!=r)&&(this.addFloat64(n),this.slot(t))}addFieldOffset(t,n,r){(this.force_defaults||n!=r)&&(this.addOffset(n),this.slot(t))}addFieldStruct(t,n,r){n!=r&&(this.nested(n),this.slot(t))}nested(t){if(t!=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(t){this.vtable!==null&&(this.vtable[t]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(t){const n=t.capacity();if(n&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const r=n<<1,i=_i.allocate(r);return i.setPosition(r-n),i.bytes().set(t.bytes(),r-n),i}addOffset(t){this.prep(Ye,0),this.writeInt32(this.offset()-t+Ye)}startObject(t){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=t;for(let n=0;n<t;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 t=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?t-this.vtable[n]:0);const i=2;this.addInt16(t-this.object_start);const s=(r+i)*Ma;this.addInt16(s);let o=0;const l=this.space;t:for(n=0;n<this.vtables.length;n++){const a=this.bb.capacity()-this.vtables[n];if(s==this.bb.readInt16(a)){for(let u=Ma;u<s;u+=Ma)if(this.bb.readInt16(l+u)!=this.bb.readInt16(a+u))continue t;o=this.vtables[n];break}}return o?(this.space=this.bb.capacity()-t,this.bb.writeInt32(this.space,o-t)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-t,this.offset()-t)),this.isNested=!1,t}finish(t,n,r){const i=r?it:0;if(n){const s=n;if(this.prep(this.minalign,Ye+hn+i),s.length!=hn)throw new Error("FlatBuffers: file identifier must be length "+hn);for(let o=hn-1;o>=0;o--)this.writeInt8(s.charCodeAt(o))}this.prep(this.minalign,Ye+i),this.addOffset(t),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,n){this.finish(t,n,!0)}requiredField(t,n){const r=this.bb.capacity()-t,i=r-this.bb.readInt32(r);if(!(this.bb.readInt16(i+n)!=0))throw new Error("FlatBuffers: field "+n+" must be set")}startVector(t,n,r){this.notNested(),this.vector_num_elems=n,this.prep(Ye,t*n),this.prep(r,t*n)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(t){if(!t)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(t))return this.string_maps.get(t);const n=this.createString(t);return this.string_maps.set(t,n),n}createString(t){if(!t)return 0;let n;if(t instanceof Uint8Array)n=t;else{n=[];let r=0;for(;r<t.length;){let i;const s=t.charCodeAt(r++);if(s<55296||s>=56320)i=s;else{const o=t.charCodeAt(r++);i=(s<<10)+o+-56613888}i<128?n.push(i):(i<2048?n.push(i>>6&31|192):(i<65536?n.push(i>>12&15|224):n.push(i>>18&7|240,i>>12&63|128),n.push(i>>6&63|128)),n.push(i&63|128))}}this.addInt8(0),this.startVector(1,n.length,1),this.bb.setPosition(this.space-=n.length);for(let r=0,i=this.space,s=this.bb.bytes();r<n.length;r++)s[i++]=n[r];return this.endVector()}createLong(t,n){return vn.create(t,n)}createObjectOffset(t){return t===null?0:typeof t=="string"?this.createString(t):t.pack(this)}createObjectOffsetList(t){const n=[];for(let r=0;r<t.length;++r){const i=t[r];if(i!==null)n.push(this.createObjectOffset(i));else throw new Error("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return n}createStructOffsetList(t,n){return n(this,t.length),this.createObjectOffsetList(t),this.endVector()}};class Bt{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsKeyValue(t,n){return(n||new Bt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,n){return t.setPosition(t.position()+it),(n||new Bt).__init(t.readInt32(t.position())+t.position(),t)}key(t){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,t):null}value(t){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,t):null}static startKeyValue(t){t.startObject(2)}static addKey(t,n){t.addFieldOffset(0,n,0)}static addValue(t,n){t.addFieldOffset(1,n,0)}static endKeyValue(t){return t.endObject()}static createKeyValue(t,n,r){return Bt.startKeyValue(t),Bt.addKey(t,n),Bt.addValue(t,r),Bt.endKeyValue(t)}}var Si;(function(e){e[e.V1=0]="V1",e[e.V2=1]="V2",e[e.V3=2]="V3",e[e.V4=3]="V4",e[e.V5=4]="V5"})(Si||(Si={}));var Ii;(function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"})(Ii||(Ii={}));var hl;(function(e){e[e.DenseArray=0]="DenseArray"})(hl||(hl={}));class oe{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsInt(t,n){return(n||new oe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,n){return t.setPosition(t.position()+it),(n||new oe).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}isSigned(){const t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startInt(t){t.startObject(2)}static addBitWidth(t,n){t.addFieldInt32(0,n,0)}static addIsSigned(t,n){t.addFieldInt8(1,+n,0)}static endInt(t){return t.endObject()}static createInt(t,n,r){return oe.startInt(t),oe.addBitWidth(t,n),oe.addIsSigned(t,r),oe.endInt(t)}}class pn{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsDictionaryEncoding(t,n){return(n||new pn).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,n){return t.setPosition(t.position()+it),(n||new pn).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}indexType(t){const n=this.bb.__offset(this.bb_pos,6);return n?(t||new oe).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isOrdered(){const t=this.bb.__offset(this.bb_pos,8);return t?!!this.bb.readInt8(this.bb_pos+t):!1}dictionaryKind(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):hl.DenseArray}static startDictionaryEncoding(t){t.startObject(4)}static addId(t,n){t.addFieldInt64(0,n,t.createLong(0,0))}static addIndexType(t,n){t.addFieldOffset(1,n,0)}static addIsOrdered(t,n){t.addFieldInt8(2,+n,0)}static addDictionaryKind(t,n){t.addFieldInt16(3,n,hl.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}class mr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsBinary(t,n){return(n||new mr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBinary(t,n){return t.setPosition(t.position()+it),(n||new mr).__init(t.readInt32(t.position())+t.position(),t)}static startBinary(t){t.startObject(0)}static endBinary(t){return t.endObject()}static createBinary(t){return mr.startBinary(t),mr.endBinary(t)}}class gr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsBool(t,n){return(n||new gr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBool(t,n){return t.setPosition(t.position()+it),(n||new gr).__init(t.readInt32(t.position())+t.position(),t)}static startBool(t){t.startObject(0)}static endBool(t){return t.endObject()}static createBool(t){return gr.startBool(t),gr.endBool(t)}}var pl;(function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"})(pl||(pl={}));let Io=class Pr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsDate(t,n){return(n||new Pr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDate(t,n){return t.setPosition(t.position()+it),(n||new Pr).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):pl.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,n){t.addFieldInt16(0,n,pl.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(t,n){return Pr.startDate(t),Pr.addUnit(t,n),Pr.endDate(t)}};class Yt{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsDecimal(t,n){return(n||new Yt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDecimal(t,n){return t.setPosition(t.position()+it),(n||new Yt).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}scale(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}bitWidth(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt32(this.bb_pos+t):128}static startDecimal(t){t.startObject(3)}static addPrecision(t,n){t.addFieldInt32(0,n,0)}static addScale(t,n){t.addFieldInt32(1,n,0)}static addBitWidth(t,n){t.addFieldInt32(2,n,128)}static endDecimal(t){return t.endObject()}static createDecimal(t,n,r,i){return Yt.startDecimal(t),Yt.addPrecision(t,n),Yt.addScale(t,r),Yt.addBitWidth(t,i),Yt.endDecimal(t)}}var bi;(function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"})(bi||(bi={}));class Qe{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsFixedSizeBinary(t,n){return(n||new Qe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeBinary(t,n){return t.setPosition(t.position()+it),(n||new Qe).__init(t.readInt32(t.position())+t.position(),t)}byteWidth(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeBinary(t){t.startObject(1)}static addByteWidth(t,n){t.addFieldInt32(0,n,0)}static endFixedSizeBinary(t){return t.endObject()}static createFixedSizeBinary(t,n){return Qe.startFixedSizeBinary(t),Qe.addByteWidth(t,n),Qe.endFixedSizeBinary(t)}}class Ke{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsFixedSizeList(t,n){return(n||new Ke).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeList(t,n){return t.setPosition(t.position()+it),(n||new Ke).__init(t.readInt32(t.position())+t.position(),t)}listSize(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeList(t){t.startObject(1)}static addListSize(t,n){t.addFieldInt32(0,n,0)}static endFixedSizeList(t){return t.endObject()}static createFixedSizeList(t,n){return Ke.startFixedSizeList(t),Ke.addListSize(t,n),Ke.endFixedSizeList(t)}}var yl;(function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"})(yl||(yl={}));class Je{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsFloatingPoint(t,n){return(n||new Je).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,n){return t.setPosition(t.position()+it),(n||new Je).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):yl.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,n){t.addFieldInt16(0,n,yl.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,n){return Je.startFloatingPoint(t),Je.addPrecision(t,n),Je.endFloatingPoint(t)}}var ml;(function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME",e[e.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(ml||(ml={}));class Ge{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsInterval(t,n){return(n||new Ge).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,n){return t.setPosition(t.position()+it),(n||new Ge).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):ml.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,n){t.addFieldInt16(0,n,ml.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,n){return Ge.startInterval(t),Ge.addUnit(t,n),Ge.endInterval(t)}}class vr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsList(t,n){return(n||new vr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsList(t,n){return t.setPosition(t.position()+it),(n||new vr).__init(t.readInt32(t.position())+t.position(),t)}static startList(t){t.startObject(0)}static endList(t){return t.endObject()}static createList(t){return vr.startList(t),vr.endList(t)}}let bo=class zr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsMap(t,n){return(n||new zr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMap(t,n){return t.setPosition(t.position()+it),(n||new zr).__init(t.readInt32(t.position())+t.position(),t)}keysSorted(){const t=this.bb.__offset(this.bb_pos,4);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startMap(t){t.startObject(1)}static addKeysSorted(t,n){t.addFieldInt8(0,+n,0)}static endMap(t){return t.endObject()}static createMap(t,n){return zr.startMap(t),zr.addKeysSorted(t,n),zr.endMap(t)}};class wr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsNull(t,n){return(n||new wr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsNull(t,n){return t.setPosition(t.position()+it),(n||new wr).__init(t.readInt32(t.position())+t.position(),t)}static startNull(t){t.startObject(0)}static endNull(t){return t.endObject()}static createNull(t){return wr.startNull(t),wr.endNull(t)}}class _r{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsStruct_(t,n){return(n||new _r).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,n){return t.setPosition(t.position()+it),(n||new _r).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return _r.startStruct_(t),_r.endStruct_(t)}}class _e{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsTime(t,n){return(n||new _e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,n){return t.setPosition(t.position()+it),(n||new _e).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):bi.MILLISECOND}bitWidth(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,n){t.addFieldInt16(0,n,bi.MILLISECOND)}static addBitWidth(t,n){t.addFieldInt32(1,n,32)}static endTime(t){return t.endObject()}static createTime(t,n,r){return _e.startTime(t),_e.addUnit(t,n),_e.addBitWidth(t,r),_e.endTime(t)}}class Se{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsTimestamp(t,n){return(n||new Se).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,n){return t.setPosition(t.position()+it),(n||new Se).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):bi.SECOND}timezone(t){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,t):null}static startTimestamp(t){t.startObject(2)}static addUnit(t,n){t.addFieldInt16(0,n,bi.SECOND)}static addTimezone(t,n){t.addFieldOffset(1,n,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,n,r){return Se.startTimestamp(t),Se.addUnit(t,n),Se.addTimezone(t,r),Se.endTimestamp(t)}}var gl;(function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"})(gl||(gl={}));class Kt{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsUnion(t,n){return(n||new Kt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,n){return t.setPosition(t.position()+it),(n||new Kt).__init(t.readInt32(t.position())+t.position(),t)}mode(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):gl.Sparse}typeIds(t){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.readInt32(this.bb.__vector(this.bb_pos+n)+t*4):0}typeIdsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}typeIdsArray(){const t=this.bb.__offset(this.bb_pos,6);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startUnion(t){t.startObject(2)}static addMode(t,n){t.addFieldInt16(0,n,gl.Sparse)}static addTypeIds(t,n){t.addFieldOffset(1,n,0)}static createTypeIdsVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addInt32(n[r]);return t.endVector()}static startTypeIdsVector(t,n){t.startVector(4,n,4)}static endUnion(t){return t.endObject()}static createUnion(t,n,r){return Kt.startUnion(t),Kt.addMode(t,n),Kt.addTypeIds(t,r),Kt.endUnion(t)}}class Sr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsUtf8(t,n){return(n||new Sr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,n){return t.setPosition(t.position()+it),(n||new Sr).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(t){return Sr.startUtf8(t),Sr.endUtf8(t)}}var dt;(function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.FloatingPoint=3]="FloatingPoint",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct_=13]="Struct_",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.LargeList=21]="LargeList"})(dt||(dt={}));let me=class Bo{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsField(t,n){return(n||new Bo).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,n){return t.setPosition(t.position()+it),(n||new Bo).__init(t.readInt32(t.position())+t.position(),t)}name(t){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,t):null}nullable(){const t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}typeType(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):dt.NONE}type(t){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.__union(t,this.bb_pos+n):null}dictionary(t){const n=this.bb.__offset(this.bb_pos,12);return n?(t||new pn).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}children(t,n){const r=this.bb.__offset(this.bb_pos,14);return r?(n||new Bo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}childrenLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,n){const r=this.bb.__offset(this.bb_pos,16);return r?(n||new Bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,n){t.addFieldOffset(0,n,0)}static addNullable(t,n){t.addFieldInt8(1,+n,0)}static addTypeType(t,n){t.addFieldInt8(2,n,dt.NONE)}static addType(t,n){t.addFieldOffset(3,n,0)}static addDictionary(t,n){t.addFieldOffset(4,n,0)}static addChildren(t,n){t.addFieldOffset(5,n,0)}static createChildrenVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startChildrenVector(t,n){t.startVector(4,n,4)}static addCustomMetadata(t,n){t.addFieldOffset(6,n,0)}static createCustomMetadataVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startCustomMetadataVector(t,n){t.startVector(4,n,4)}static endField(t){return t.endObject()}},je=class ln{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsSchema(t,n){return(n||new ln).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,n){return t.setPosition(t.position()+it),(n||new ln).__init(t.readInt32(t.position())+t.position(),t)}endianness(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Ii.Little}fields(t,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new me).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}fieldsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new Bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.readInt64(this.bb.__vector(this.bb_pos+n)+t*8):this.bb.createLong(0,0)}featuresLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,n){t.addFieldInt16(0,n,Ii.Little)}static addFields(t,n){t.addFieldOffset(1,n,0)}static createFieldsVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startFieldsVector(t,n){t.startVector(4,n,4)}static addCustomMetadata(t,n){t.addFieldOffset(2,n,0)}static createCustomMetadataVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startCustomMetadataVector(t,n){t.startVector(4,n,4)}static addFeatures(t,n){t.addFieldOffset(3,n,0)}static createFeaturesVector(t,n){t.startVector(8,n.length,8);for(let r=n.length-1;r>=0;r--)t.addInt64(n[r]);return t.endVector()}static startFeaturesVector(t,n){t.startVector(8,n,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,n){t.finish(n)}static finishSizePrefixedSchemaBuffer(t,n){t.finish(n,void 0,!0)}static createSchema(t,n,r,i,s){return ln.startSchema(t),ln.addEndianness(t,n),ln.addFields(t,r),ln.addCustomMetadata(t,i),ln.addFeatures(t,s),ln.endSchema(t)}};class ie{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsFooter(t,n){return(n||new ie).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,n){return t.setPosition(t.position()+it),(n||new ie).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Si.V1}schema(t){const n=this.bb.__offset(this.bb_pos,6);return n?(t||new je).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}dictionaries(t,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new Lu).__init(this.bb.__vector(this.bb_pos+r)+t*24,this.bb):null}dictionariesLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,n){const r=this.bb.__offset(this.bb_pos,10);return r?(n||new Lu).__init(this.bb.__vector(this.bb_pos+r)+t*24,this.bb):null}recordBatchesLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new Bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,n){t.addFieldInt16(0,n,Si.V1)}static addSchema(t,n){t.addFieldOffset(1,n,0)}static addDictionaries(t,n){t.addFieldOffset(2,n,0)}static startDictionariesVector(t,n){t.startVector(24,n,8)}static addRecordBatches(t,n){t.addFieldOffset(3,n,0)}static startRecordBatchesVector(t,n){t.startVector(24,n,8)}static addCustomMetadata(t,n){t.addFieldOffset(4,n,0)}static createCustomMetadataVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startCustomMetadataVector(t,n){t.startVector(4,n,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,n){t.finish(n)}static finishSizePrefixedFooterBuffer(t,n){t.finish(n,void 0,!0)}}class q{constructor(t=[],n,r){this.fields=t||[],this.metadata=n||new Map,r||(r=Pu(t)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(t=>t.name)}toString(){return`Schema<{ ${this.fields.map((t,n)=>`${n}: ${t}`).join(", ")} }>`}select(t){const n=new Set(t),r=this.fields.filter(i=>n.has(i.name));return new q(r,this.metadata)}selectAt(t){const n=t.map(r=>this.fields[r]).filter(Boolean);return new q(n,this.metadata)}assign(...t){const n=t[0]instanceof q?t[0]:Array.isArray(t[0])?new q(t[0]):new q(t),r=[...this.fields],i=lo(lo(new Map,this.metadata),n.metadata),s=n.fields.filter(l=>{const a=r.findIndex(u=>u.name===l.name);return~a?(r[a]=l.clone({metadata:lo(lo(new Map,r[a].metadata),l.metadata)}))&&!1:!0}),o=Pu(s,new Map);return new q([...r,...s],i,new Map([...this.dictionaries,...o]))}}q.prototype.fields=null;q.prototype.metadata=null;q.prototype.dictionaries=null;class ut{constructor(t,n,r=!1,i){this.name=t,this.type=n,this.nullable=r,this.metadata=i||new Map}static new(...t){let[n,r,i,s]=t;return t[0]&&typeof t[0]=="object"&&({name:n}=t[0],r===void 0&&(r=t[0].type),i===void 0&&(i=t[0].nullable),s===void 0&&(s=t[0].metadata)),new ut(`${n}`,r,i,s)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[n,r,i,s]=t;return!t[0]||typeof t[0]!="object"?[n=this.name,r=this.type,i=this.nullable,s=this.metadata]=t:{name:n=this.name,type:r=this.type,nullable:i=this.nullable,metadata:s=this.metadata}=t[0],ut.new(n,r,i,s)}}ut.prototype.type=null;ut.prototype.name=null;ut.prototype.nullable=null;ut.prototype.metadata=null;function lo(e,t){return new Map([...e||new Map,...t||new Map])}function Pu(e,t=new Map){for(let n=-1,r=e.length;++n<r;){const s=e[n].type;if(k.isDictionary(s)){if(!t.has(s.id))t.set(s.id,s.dictionary);else if(t.get(s.id)!==s.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}s.children&&s.children.length>0&&Pu(s.children,t)}return t}var jf=vn,P_=Rm,z_=_i;class Fs{constructor(t,n=le.V4,r,i){this.schema=t,this.version=n,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}static decode(t){t=new z_(J(t));const n=ie.getRootAsFooter(t),r=q.decode(n.schema());return new j_(r,n)}static encode(t){const n=new P_,r=q.encode(n,t.schema);ie.startRecordBatchesVector(n,t.numRecordBatches);for(const o of[...t.recordBatches()].slice().reverse())qn.encode(n,o);const i=n.endVector();ie.startDictionariesVector(n,t.numDictionaries);for(const o of[...t.dictionaryBatches()].slice().reverse())qn.encode(n,o);const s=n.endVector();return ie.startFooter(n),ie.addSchema(n,r),ie.addVersion(n,le.V4),ie.addRecordBatches(n,i),ie.addDictionaries(n,s),ie.finishFooterBuffer(n,ie.endFooter(n)),n.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let t,n=-1,r=this.numRecordBatches;++n<r;)(t=this.getRecordBatch(n))&&(yield t)}*dictionaryBatches(){for(let t,n=-1,r=this.numDictionaries;++n<r;)(t=this.getDictionaryBatch(n))&&(yield t)}getRecordBatch(t){return t>=0&&t<this.numRecordBatches&&this._recordBatches[t]||null}getDictionaryBatch(t){return t>=0&&t<this.numDictionaries&&this._dictionaryBatches[t]||null}}class j_ extends Fs{constructor(t,n){super(t,n.version()),this._footer=n}get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}getRecordBatch(t){if(t>=0&&t<this.numRecordBatches){const n=this._footer.recordBatches(t);if(n)return qn.decode(n)}return null}getDictionaryBatch(t){if(t>=0&&t<this.numDictionaries){const n=this._footer.dictionaries(t);if(n)return qn.decode(n)}return null}}class qn{constructor(t,n,r){this.metaDataLength=t,this.offset=typeof r=="number"?r:r.low,this.bodyLength=typeof n=="number"?n:n.low}static decode(t){return new qn(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(t,n){const{metaDataLength:r}=n,i=new jf(n.offset,0),s=new jf(n.bodyLength,0);return Lu.createBlock(t,i,r,s)}}const pt=Object.freeze({done:!0,value:void 0});class Vf{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class od{tee(){return this._getDOMStream().tee()}pipe(t,n){return this._getNodeStream().pipe(t,n)}pipeTo(t,n){return this._getDOMStream().pipeTo(t,n)}pipeThrough(t,n){return this._getDOMStream().pipeThrough(t,n)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class V_ extends od{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}get closed(){return this._closedPromise}cancel(t){return D(this,void 0,void 0,function*(){yield this.return(t)})}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){const{resolvers:t}=this;for(;t.length>0;)t.shift().resolve(pt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return ge.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return ge.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return D(this,void 0,void 0,function*(){return yield this.abort(t),pt})}return(t){return D(this,void 0,void 0,function*(){return yield this.close(),pt})}read(t){return D(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return D(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(...t){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(pt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class Eo extends V_{write(t){if((t=J(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?Nu(this.toUint8Array(!0)):this.toUint8Array(!1).then(Nu)}toUint8Array(t=!1){return t?en(this._values)[0]:D(this,void 0,void 0,function*(){var n,r;const i=[];let s=0;try{for(var o=Br(this),l;l=yield o.next(),!l.done;){const a=l.value;i.push(a),s+=a.byteLength}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=o.return)&&(yield r.call(o))}finally{if(n)throw n.error}}return en(i,s)[0]})}}class vl{constructor(t){t&&(this.source=new $_(ge.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class Bi{constructor(t){t instanceof Bi?this.source=t.source:t instanceof Eo?this.source=new ur(ge.fromAsyncIterable(t)):_y(t)?this.source=new ur(ge.fromNodeStream(t)):Yc(t)?this.source=new ur(ge.fromDOMStream(t)):wy(t)?this.source=new ur(ge.fromDOMStream(t.body)):Ms(t)?this.source=new ur(ge.fromIterable(t)):Jn(t)?this.source=new ur(ge.fromAsyncIterable(t)):Di(t)&&(this.source=new ur(ge.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class $_{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,n="read"){return this.source.next({cmd:n,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||pt)}return(t){return Object.create(this.source.return&&this.source.return(t)||pt)}}class ur{constructor(t){this.source=t,this._closedPromise=new Promise(n=>this._closedPromiseResolve=n)}cancel(t){return D(this,void 0,void 0,function*(){yield this.return(t)})}get closed(){return this._closedPromise}read(t){return D(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return D(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(t,n="read"){return D(this,void 0,void 0,function*(){return yield this.source.next({cmd:n,size:t})})}throw(t){return D(this,void 0,void 0,function*(){const n=this.source.throw&&(yield this.source.throw(t))||pt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}return(t){return D(this,void 0,void 0,function*(){const n=this.source.return&&(yield this.source.return(t))||pt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}}class $f extends vl{constructor(t,n){super(),this.position=0,this.buffer=J(t),this.size=typeof n>"u"?this.buffer.byteLength:n}readInt32(t){const{buffer:n,byteOffset:r}=this.readAt(t,4);return new DataView(n,r).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),t<this.size}read(t){const{buffer:n,size:r,position:i}=this;return n&&i<r?(typeof t!="number"&&(t=Number.POSITIVE_INFINITY),this.position=Math.min(r,i+Math.min(r-i,t)),n.subarray(i,this.position)):null}readAt(t,n){const r=this.buffer,i=Math.min(this.size,t+n);return r?r.subarray(t,i):new Uint8Array(n)}close(){this.buffer&&(this.buffer=null)}throw(t){return this.close(),{done:!0,value:t}}return(t){return this.close(),{done:!0,value:t}}}class wl extends Bi{constructor(t,n){super(),this.position=0,this._handle=t,typeof n=="number"?this.size=n:this._pending=D(this,void 0,void 0,function*(){this.size=(yield t.stat()).size,delete this._pending})}readInt32(t){return D(this,void 0,void 0,function*(){const{buffer:n,byteOffset:r}=yield this.readAt(t,4);return new DataView(n,r).getInt32(0,!0)})}seek(t){return D(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),t<this.size})}read(t){return D(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:n,size:r,position:i}=this;if(n&&i<r){typeof t!="number"&&(t=Number.POSITIVE_INFINITY);let s=i,o=0,l=0;const a=Math.min(r,s+Math.min(r-s,t)),u=new Uint8Array(Math.max(0,(this.position=a)-s));for(;(s+=l)<a&&(o+=l)<u.byteLength;)({bytesRead:l}=yield n.read(u,o,u.byteLength-o,s));return u}return null})}readAt(t,n){return D(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:r,size:i}=this;if(r&&t+n<i){const s=Math.min(i,t+n),o=new Uint8Array(s-t);return(yield r.read(o,0,n,t)).buffer}return new Uint8Array(n)})}close(){return D(this,void 0,void 0,function*(){const t=this._handle;this._handle=null,t&&(yield t.close())})}throw(t){return D(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}return(t){return D(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}}const W_=65536;function ti(e){return e<0&&(e=4294967295+e+1),`0x${e.toString(16)}`}const Ei=8,ld=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class Pm{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){const n=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),r=new Uint32Array([t.buffer[1]>>>16,t.buffer[1]&65535,t.buffer[0]>>>16,t.buffer[0]&65535]);let i=n[3]*r[3];this.buffer[0]=i&65535;let s=i>>>16;return i=n[2]*r[3],s+=i,i=n[3]*r[2]>>>0,s+=i,this.buffer[0]+=s<<16,this.buffer[1]=s>>>0<i?W_:0,this.buffer[1]+=s>>>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(t){const n=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],n<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=n}lessThan(t){return this.buffer[1]<t.buffer[1]||this.buffer[1]===t.buffer[1]&&this.buffer[0]<t.buffer[0]}equals(t){return this.buffer[1]===t.buffer[1]&&this.buffer[0]==t.buffer[0]}greaterThan(t){return t.lessThan(this)}hex(){return`${ti(this.buffer[1])} ${ti(this.buffer[0])}`}}class tt extends Pm{times(t){return this._times(t),this}plus(t){return this._plus(t),this}static from(t,n=new Uint32Array(2)){return tt.fromString(typeof t=="string"?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(2)){return tt.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(2)){const r=t.length,i=new tt(n);for(let s=0;s<r;){const o=Ei<r-s?Ei:r-s,l=new tt(new Uint32Array([Number.parseInt(t.slice(s,s+o),10),0])),a=new tt(new Uint32Array([ld[o],0]));i.times(a),i.plus(l),s+=o}return i}static convertArray(t){const n=new Uint32Array(t.length*2);for(let r=-1,i=t.length;++r<i;)tt.from(t[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(t,n){return new tt(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new tt(new Uint32Array(t.buffer)).plus(n)}}class Ht extends Pm{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(t){return this._times(t),this}plus(t){return this._plus(t),this}lessThan(t){const n=this.buffer[1]<<0,r=t.buffer[1]<<0;return n<r||n===r&&this.buffer[0]<t.buffer[0]}static from(t,n=new Uint32Array(2)){return Ht.fromString(typeof t=="string"?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(2)){return Ht.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(2)){const r=t.startsWith("-"),i=t.length,s=new Ht(n);for(let o=r?1:0;o<i;){const l=Ei<i-o?Ei:i-o,a=new Ht(new Uint32Array([Number.parseInt(t.slice(o,o+l),10),0])),u=new Ht(new Uint32Array([ld[l],0]));s.times(u),s.plus(a),o+=l}return r?s.negate():s}static convertArray(t){const n=new Uint32Array(t.length*2);for(let r=-1,i=t.length;++r<i;)Ht.from(t[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(t,n){return new Ht(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new Ht(new Uint32Array(t.buffer)).plus(n)}}class Ve{constructor(t){this.buffer=t}high(){return new Ht(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Ht(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(t){const n=new tt(new Uint32Array([this.buffer[3],0])),r=new tt(new Uint32Array([this.buffer[2],0])),i=new tt(new Uint32Array([this.buffer[1],0])),s=new tt(new Uint32Array([this.buffer[0],0])),o=new tt(new Uint32Array([t.buffer[3],0])),l=new tt(new Uint32Array([t.buffer[2],0])),a=new tt(new Uint32Array([t.buffer[1],0])),u=new tt(new Uint32Array([t.buffer[0],0]));let c=tt.multiply(s,u);this.buffer[0]=c.low();const f=new tt(new Uint32Array([c.high(),0]));return c=tt.multiply(i,u),f.plus(c),c=tt.multiply(s,a),f.plus(c),this.buffer[1]=f.low(),this.buffer[3]=f.lessThan(c)?1:0,this.buffer[2]=f.high(),new tt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(tt.multiply(r,u)).plus(tt.multiply(i,a)).plus(tt.multiply(s,l)),this.buffer[3]+=tt.multiply(n,u).plus(tt.multiply(r,a)).plus(tt.multiply(i,l)).plus(tt.multiply(s,o)).low(),this}plus(t){const n=new Uint32Array(4);return n[3]=this.buffer[3]+t.buffer[3]>>>0,n[2]=this.buffer[2]+t.buffer[2]>>>0,n[1]=this.buffer[1]+t.buffer[1]>>>0,n[0]=this.buffer[0]+t.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`${ti(this.buffer[3])} ${ti(this.buffer[2])} ${ti(this.buffer[1])} ${ti(this.buffer[0])}`}static multiply(t,n){return new Ve(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new Ve(new Uint32Array(t.buffer)).plus(n)}static from(t,n=new Uint32Array(4)){return Ve.fromString(typeof t=="string"?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(4)){return Ve.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(4)){const r=t.startsWith("-"),i=t.length,s=new Ve(n);for(let o=r?1:0;o<i;){const l=Ei<i-o?Ei:i-o,a=new Ve(new Uint32Array([Number.parseInt(t.slice(o,o+l),10),0,0,0])),u=new Ve(new Uint32Array([ld[l],0,0,0]));s.times(u),s.plus(a),o+=l}return r?s.negate():s}static convertArray(t){const n=new Uint32Array(t.length*4);for(let r=-1,i=t.length;++r<i;)Ve.from(t[r],new Uint32Array(n.buffer,n.byteOffset+4*4*r,4));return n}}class zm extends Y{constructor(t,n,r,i){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=t,this.nodes=n,this.buffers=r,this.dictionaries=i}visit(t){return super.visit(t instanceof ut?t.type:t)}visitNull(t,{length:n}=this.nextFieldNode()){return H({type:t,length:n})}visitBool(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitInt(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitFloat(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitUtf8(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitBinary(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitFixedSizeBinary(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitDate(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitTimestamp(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitTime(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitDecimal(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitList(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}visitStruct(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),children:this.visitMany(t.children)})}visitUnion(t){return t.mode===de.Sparse?this.visitSparseUnion(t):this.visitDenseUnion(t)}visitDenseUnion(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),typeIds:this.readTypeIds(t),valueOffsets:this.readOffsets(t),children:this.visitMany(t.children)})}visitSparseUnion(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),typeIds:this.readTypeIds(t),children:this.visitMany(t.children)})}visitDictionary(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t.indices),dictionary:this.readDictionary(t)})}visitInterval(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitFixedSizeList(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),child:this.visit(t.children[0])})}visitMap(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(t,n,r=this.nextBufferRange()){return n>0&&this.readData(t,r)||new Uint8Array(0)}readOffsets(t,n){return this.readData(t,n)}readTypeIds(t,n){return this.readData(t,n)}readData(t,{length:n,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+n)}readDictionary(t){return this.dictionaries.get(t.id)}}class H_ extends zm{constructor(t,n,r,i){super(new Uint8Array(0),n,r,i),this.sources=t}readNullBitmap(t,n,{offset:r}=this.nextBufferRange()){return n<=0?new Uint8Array(0):cl(this.sources[r])}readOffsets(t,{offset:n}=this.nextBufferRange()){return rt(Uint8Array,rt(Int32Array,this.sources[n]))}readTypeIds(t,{offset:n}=this.nextBufferRange()){return rt(Uint8Array,rt(t.ArrayType,this.sources[n]))}readData(t,{offset:n}=this.nextBufferRange()){const{sources:r}=this;return k.isTimestamp(t)||(k.isInt(t)||k.isTime(t))&&t.bitWidth===64||k.isDate(t)&&t.unit===Bn.MILLISECOND?rt(Uint8Array,Ht.convertArray(r[n])):k.isDecimal(t)?rt(Uint8Array,Ve.convertArray(r[n])):k.isBinary(t)||k.isFixedSizeBinary(t)?Y_(r[n]):k.isBool(t)?cl(r[n]):k.isUtf8(t)?Hc(r[n].join("")):rt(Uint8Array,rt(t.ArrayType,r[n].map(i=>+i)))}}function Y_(e){const t=e.join(""),n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r>>1]=Number.parseInt(t.slice(r,r+2),16);return n}class C extends Y{compareSchemas(t,n){return t===n||n instanceof t.constructor&&this.compareManyFields(t.fields,n.fields)}compareManyFields(t,n){return t===n||Array.isArray(t)&&Array.isArray(n)&&t.length===n.length&&t.every((r,i)=>this.compareFields(r,n[i]))}compareFields(t,n){return t===n||n instanceof t.constructor&&t.name===n.name&&t.nullable===n.nullable&&this.visit(t.type,n.type)}}function re(e,t){return t instanceof e.constructor}function Ls(e,t){return e===t||re(e,t)}function On(e,t){return e===t||re(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function ea(e,t){return e===t||re(e,t)&&e.precision===t.precision}function Q_(e,t){return e===t||re(e,t)&&e.byteWidth===t.byteWidth}function ad(e,t){return e===t||re(e,t)&&e.unit===t.unit}function Rs(e,t){return e===t||re(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Us(e,t){return e===t||re(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function K_(e,t){return e===t||re(e,t)&&e.children.length===t.children.length&&tr.compareManyFields(e.children,t.children)}function J_(e,t){return e===t||re(e,t)&&e.children.length===t.children.length&&tr.compareManyFields(e.children,t.children)}function ud(e,t){return e===t||re(e,t)&&e.mode===t.mode&&e.typeIds.every((n,r)=>n===t.typeIds[r])&&tr.compareManyFields(e.children,t.children)}function G_(e,t){return e===t||re(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&tr.visit(e.indices,t.indices)&&tr.visit(e.dictionary,t.dictionary)}function cd(e,t){return e===t||re(e,t)&&e.unit===t.unit}function X_(e,t){return e===t||re(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&tr.compareManyFields(e.children,t.children)}function Z_(e,t){return e===t||re(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&tr.compareManyFields(e.children,t.children)}C.prototype.visitNull=Ls;C.prototype.visitBool=Ls;C.prototype.visitInt=On;C.prototype.visitInt8=On;C.prototype.visitInt16=On;C.prototype.visitInt32=On;C.prototype.visitInt64=On;C.prototype.visitUint8=On;C.prototype.visitUint16=On;C.prototype.visitUint32=On;C.prototype.visitUint64=On;C.prototype.visitFloat=ea;C.prototype.visitFloat16=ea;C.prototype.visitFloat32=ea;C.prototype.visitFloat64=ea;C.prototype.visitUtf8=Ls;C.prototype.visitBinary=Ls;C.prototype.visitFixedSizeBinary=Q_;C.prototype.visitDate=ad;C.prototype.visitDateDay=ad;C.prototype.visitDateMillisecond=ad;C.prototype.visitTimestamp=Rs;C.prototype.visitTimestampSecond=Rs;C.prototype.visitTimestampMillisecond=Rs;C.prototype.visitTimestampMicrosecond=Rs;C.prototype.visitTimestampNanosecond=Rs;C.prototype.visitTime=Us;C.prototype.visitTimeSecond=Us;C.prototype.visitTimeMillisecond=Us;C.prototype.visitTimeMicrosecond=Us;C.prototype.visitTimeNanosecond=Us;C.prototype.visitDecimal=Ls;C.prototype.visitList=K_;C.prototype.visitStruct=J_;C.prototype.visitUnion=ud;C.prototype.visitDenseUnion=ud;C.prototype.visitSparseUnion=ud;C.prototype.visitDictionary=G_;C.prototype.visitInterval=cd;C.prototype.visitIntervalDayTime=cd;C.prototype.visitIntervalYearMonth=cd;C.prototype.visitFixedSizeList=X_;C.prototype.visitMap=Z_;const tr=new C;function zu(e,t){return tr.compareSchemas(e,t)}function La(e,t){return q_(e,t.map(n=>n.data.concat()))}function q_(e,t){const n=[...e.fields],r=[],i={numBatches:t.reduce((f,p)=>Math.max(f,p.length),0)};let s=0,o=0,l=-1;const a=t.length;let u,c=[];for(;i.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,l=-1;++l<a;)c[l]=u=t[l].shift(),o=Math.min(o,u?u.length:o);Number.isFinite(o)&&(c=t1(n,o,c,t,i),o>0&&(r[s++]=H({type:new zt(n),length:o,nullCount:0,children:c.slice()})))}return[e=e.assign(n),r.map(f=>new Jt(e,f))]}function t1(e,t,n,r,i){var s;const o=(t+63&-64)>>3;for(let l=-1,a=r.length;++l<a;){const u=n[l],c=u==null?void 0:u.length;if(c>=t)c===t?n[l]=u:(n[l]=u.slice(0,t),i.numBatches=Math.max(i.numBatches,r[l].unshift(u.slice(t,c-t))));else{const f=e[l];e[l]=f.clone({nullable:!0}),n[l]=(s=u==null?void 0:u._changeLengthAndBackfillNullBitmap(t))!==null&&s!==void 0?s:H({type:f.type,length:t,nullCount:t,nullBitmap:new Uint8Array(o)})}}return n}var jm;class Pt{constructor(...t){var n,r;if(t.length===0)return this.batches=[],this.schema=new q([]),this._offsets=[0],this;let i,s;t[0]instanceof q&&(i=t.shift()),t[t.length-1]instanceof Uint32Array&&(s=t.pop());const o=a=>{if(a){if(a instanceof Jt)return[a];if(a instanceof Pt)return a.batches;if(a instanceof st){if(a.type instanceof zt)return[new Jt(new q(a.type.children),a)]}else{if(Array.isArray(a))return a.flatMap(u=>o(u));if(typeof a[Symbol.iterator]=="function")return[...a].flatMap(u=>o(u));if(typeof a=="object"){const u=Object.keys(a),c=u.map(g=>new Z([a[g]])),f=new q(u.map((g,v)=>new ut(String(g),c[v].type))),[,p]=La(f,c);return p.length===0?[new Jt(a)]:p}}}return[]},l=t.flatMap(a=>o(a));if(i=(r=i??((n=l[0])===null||n===void 0?void 0:n.schema))!==null&&r!==void 0?r:new q([]),!(i instanceof q))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const a of l){if(!(a instanceof Jt))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!zu(i,a.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=l,this._offsets=s??Fm(this.data)}get data(){return this.batches.map(({data:t})=>t)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((t,n)=>t+n.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=Em(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}set(t,n){}indexOf(t,n){return-1}getByteLength(t){return 0}[Symbol.iterator](){return this.batches.length>0?sd.visit(new Z(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
47
|
+
*/var Dt=typeof Symbol=="function"&&Symbol.for,zc=Dt?Symbol.for("react.element"):60103,jc=Dt?Symbol.for("react.portal"):60106,$l=Dt?Symbol.for("react.fragment"):60107,Wl=Dt?Symbol.for("react.strict_mode"):60108,Hl=Dt?Symbol.for("react.profiler"):60114,Yl=Dt?Symbol.for("react.provider"):60109,Ql=Dt?Symbol.for("react.context"):60110,Vc=Dt?Symbol.for("react.async_mode"):60111,Kl=Dt?Symbol.for("react.concurrent_mode"):60111,Jl=Dt?Symbol.for("react.forward_ref"):60112,Gl=Dt?Symbol.for("react.suspense"):60113,jv=Dt?Symbol.for("react.suspense_list"):60120,Xl=Dt?Symbol.for("react.memo"):60115,Zl=Dt?Symbol.for("react.lazy"):60116,Vv=Dt?Symbol.for("react.block"):60121,$v=Dt?Symbol.for("react.fundamental"):60117,Wv=Dt?Symbol.for("react.responder"):60118,Hv=Dt?Symbol.for("react.scope"):60119;function ye(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zc:switch(e=e.type,e){case Vc:case Kl:case $l:case Hl:case Wl:case Gl:return e;default:switch(e=e&&e.$$typeof,e){case Ql:case Jl:case Zl:case Xl:case Yl:return e;default:return t}}case jc:return t}}}function hy(e){return ye(e)===Kl}nt.AsyncMode=Vc;nt.ConcurrentMode=Kl;nt.ContextConsumer=Ql;nt.ContextProvider=Yl;nt.Element=zc;nt.ForwardRef=Jl;nt.Fragment=$l;nt.Lazy=Zl;nt.Memo=Xl;nt.Portal=jc;nt.Profiler=Hl;nt.StrictMode=Wl;nt.Suspense=Gl;nt.isAsyncMode=function(e){return hy(e)||ye(e)===Vc};nt.isConcurrentMode=hy;nt.isContextConsumer=function(e){return ye(e)===Ql};nt.isContextProvider=function(e){return ye(e)===Yl};nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zc};nt.isForwardRef=function(e){return ye(e)===Jl};nt.isFragment=function(e){return ye(e)===$l};nt.isLazy=function(e){return ye(e)===Zl};nt.isMemo=function(e){return ye(e)===Xl};nt.isPortal=function(e){return ye(e)===jc};nt.isProfiler=function(e){return ye(e)===Hl};nt.isStrictMode=function(e){return ye(e)===Wl};nt.isSuspense=function(e){return ye(e)===Gl};nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$l||e===Kl||e===Hl||e===Wl||e===Gl||e===jv||typeof e=="object"&&e!==null&&(e.$$typeof===Zl||e.$$typeof===Xl||e.$$typeof===Yl||e.$$typeof===Ql||e.$$typeof===Jl||e.$$typeof===$v||e.$$typeof===Wv||e.$$typeof===Hv||e.$$typeof===Vv)};nt.typeOf=ye;fy.exports=nt;var Yv=fy.exports,$c=Yv,Qv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Kv={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jv={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},py={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wc={};Wc[$c.ForwardRef]=Jv;Wc[$c.Memo]=py;function Df(e){return $c.isMemo(e)?py:Wc[e.$$typeof]||Qv}var Gv=Object.defineProperty,Xv=Object.getOwnPropertyNames,Nf=Object.getOwnPropertySymbols,Zv=Object.getOwnPropertyDescriptor,qv=Object.getPrototypeOf,kf=Object.prototype;function yy(e,t,n){if(typeof t!="string"){if(kf){var r=qv(t);r&&r!==kf&&yy(e,r,n)}var i=Xv(t);Nf&&(i=i.concat(Nf(t)));for(var s=Df(e),o=Df(t),l=0;l<i.length;++l){var a=i[l];if(!Kv[a]&&!(n&&n[a])&&!(o&&o[a])&&!(s&&s[a])){var u=Zv(t,a);try{Gv(e,a,u)}catch{}}}}return e}var tw=yy;const ew=Hu(tw);function D(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(f){o(f)}}function a(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function Tf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(e){return this instanceof z?(this.v=e,this):new z(e)}function Xe(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(g){return function(v){return Promise.resolve(v).then(g,f)}}function l(g,v){r[g]&&(i[g]=function(S){return new Promise(function(Q,h){s.push([g,S,Q,h])>1||a(g,S)})},v&&(i[g]=v(i[g])))}function a(g,v){try{u(r[g](v))}catch(S){m(s[0][3],S)}}function u(g){g.value instanceof z?Promise.resolve(g.value.v).then(c,f):m(s[0][2],g)}function c(g){a("next",g)}function f(g){a("throw",g)}function m(g,v){g(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function So(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(o){return(n=!n)?{value:z(e[i](o)),done:!1}:s?s(o):o}:s}}function Br(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Tf=="function"?Tf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(l,a){o=e[s](o),i(l,a,o.done,o.value)})}}function i(s,o,l,a){Promise.resolve(a).then(function(u){s({value:u,done:l})},o)}}const nw=new TextDecoder("utf-8"),ku=e=>nw.decode(e),rw=new TextEncoder,Hc=e=>rw.encode(e),[eS,iw]=(()=>{const e=()=>{throw new Error("BigInt is not available in this environment")};function t(){throw e()}return t.asIntN=()=>{throw e()},t.asUintN=()=>{throw e()},typeof BigInt<"u"?[BigInt,!0]:[t,!1]})(),[xs]=(()=>{const e=()=>{throw new Error("BigInt64Array is not available in this environment")};class t{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}}return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[t,!1]})(),[Cs]=(()=>{const e=()=>{throw new Error("BigUint64Array is not available in this environment")};class t{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}}return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[t,!1]})(),sw=e=>typeof e=="number",my=e=>typeof e=="boolean",bt=e=>typeof e=="function",ee=e=>e!=null&&Object(e)===e,Jn=e=>ee(e)&&bt(e.then),Ms=e=>ee(e)&&bt(e[Symbol.iterator]),Di=e=>ee(e)&&bt(e[Symbol.asyncIterator]),Tu=e=>ee(e)&&ee(e.schema),gy=e=>ee(e)&&"done"in e&&"value"in e,vy=e=>ee(e)&&bt(e.stat)&&sw(e.fd),wy=e=>ee(e)&&Yc(e.body),ql=e=>"_getDOMStream"in e&&"_getNodeStream"in e,ow=e=>ee(e)&&bt(e.abort)&&bt(e.getWriter)&&!ql(e),Yc=e=>ee(e)&&bt(e.cancel)&&bt(e.getReader)&&!ql(e),lw=e=>ee(e)&&bt(e.end)&&bt(e.write)&&my(e.writable)&&!ql(e),_y=e=>ee(e)&&bt(e.read)&&bt(e.pipe)&&my(e.readable)&&!ql(e),aw=e=>ee(e)&&bt(e.clear)&&bt(e.bytes)&&bt(e.position)&&bt(e.setPosition)&&bt(e.capacity)&&bt(e.getBufferIdentifier)&&bt(e.createLong),Qc=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function uw(e){const t=e[0]?[e[0]]:[];let n,r,i,s;for(let o,l,a=0,u=0,c=e.length;++a<c;){if(o=t[u],l=e[a],!o||!l||o.buffer!==l.buffer||l.byteOffset<o.byteOffset){l&&(t[++u]=l);continue}if({byteOffset:n,byteLength:i}=o,{byteOffset:r,byteLength:s}=l,n+i<r||r+s<n){l&&(t[++u]=l);continue}t[u]=new Uint8Array(o.buffer,n,r-n+s)}return t}function xf(e,t,n=0,r=t.byteLength){const i=e.byteLength,s=new Uint8Array(e.buffer,e.byteOffset,i),o=new Uint8Array(t.buffer,t.byteOffset,Math.min(r,i));return s.set(o,n),e}function en(e,t){const n=uw(e),r=n.reduce((c,f)=>c+f.byteLength,0);let i,s,o,l=0,a=-1;const u=Math.min(t||Number.POSITIVE_INFINITY,r);for(const c=n.length;++a<c;){if(i=n[a],s=i.subarray(0,Math.min(i.length,u-l)),u<=l+s.length){s.length<i.length?n[a]=i.subarray(s.length):s.length===i.length&&a++,o?xf(o,s,l):o=s;break}xf(o||(o=new Uint8Array(u)),s,l),l+=s.length}return[o||new Uint8Array(0),n.slice(a),r-(o?o.byteLength:0)]}function rt(e,t){let n=gy(t)?t.value:t;return n instanceof e?e===Uint8Array?new e(n.buffer,n.byteOffset,n.byteLength):n:n?(typeof n=="string"&&(n=Hc(n)),n instanceof ArrayBuffer?new e(n):n instanceof Qc?new e(n):aw(n)?rt(e,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new e(0):new e(n.buffer,n.byteOffset,n.byteLength/e.BYTES_PER_ELEMENT):e.from(n)):new e(0)}const Pi=e=>rt(Int32Array,e),J=e=>rt(Uint8Array,e),xu=e=>(e.next(),e);function*cw(e,t){const n=function*(i){yield i},r=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Qc?n(t):Ms(t)?t:n(t);return yield*xu(function*(i){let s=null;do s=i.next(yield rt(e,s));while(!s.done)}(r[Symbol.iterator]())),new e}const dw=e=>cw(Uint8Array,e);function Sy(e,t){return Xe(this,arguments,function*(){if(Jn(t))return yield z(yield z(yield*So(Br(Sy(e,yield z(t))))));const r=function(o){return Xe(this,arguments,function*(){yield yield z(yield z(o))})},i=function(o){return Xe(this,arguments,function*(){yield z(yield*So(Br(xu(function*(l){let a=null;do a=l.next(yield a==null?void 0:a.value);while(!a.done)}(o[Symbol.iterator]())))))})},s=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Qc?r(t):Ms(t)?i(t):Di(t)?t:r(t);return yield z(yield*So(Br(xu(function(o){return Xe(this,arguments,function*(){let l=null;do l=yield z(o.next(yield yield z(rt(e,l))));while(!l.done)})}(s[Symbol.asyncIterator]()))))),yield z(new e)})}const fw=e=>Sy(Uint8Array,e);function Kc(e,t,n){if(e!==0){n=n.slice(0,t+1);for(let r=-1;++r<=t;)n[r]+=e}return n}function hw(e,t){let n=0;const r=e.length;if(r!==t.length)return!1;if(r>0)do if(e[n]!==t[n])return!1;while(++n<r);return!0}const ge={fromIterable(e){return so(pw(e))},fromAsyncIterable(e){return so(yw(e))},fromDOMStream(e){return so(mw(e))},fromNodeStream(e){return so(vw(e))},toDOMStream(e,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(e,t){throw new Error('"toNodeStream" not available in this environment')}},so=e=>(e.next(),e);function*pw(e){let t,n=!1,r=[],i,s,o,l=0;function a(){return s==="peek"?en(r,o)[0]:([i,r,l]=en(r,o),i)}({cmd:s,size:o}=yield null);const u=dw(e)[Symbol.iterator]();try{do if({done:t,value:i}=Number.isNaN(o-l)?u.next():u.next(o-l),!t&&i.byteLength>0&&(r.push(i),l+=i.byteLength),t||o<=l)do({cmd:s,size:o}=yield a());while(o<l);while(!t)}catch(c){(n=!0)&&typeof u.throw=="function"&&u.throw(c)}finally{n===!1&&typeof u.return=="function"&&u.return(null)}return null}function yw(e){return Xe(this,arguments,function*(){let n,r=!1,i=[],s,o,l,a=0;function u(){return o==="peek"?en(i,l)[0]:([s,i,a]=en(i,l),s)}({cmd:o,size:l}=yield yield z(null));const c=fw(e)[Symbol.asyncIterator]();try{do if({done:n,value:s}=Number.isNaN(l-a)?yield z(c.next()):yield z(c.next(l-a)),!n&&s.byteLength>0&&(i.push(s),a+=s.byteLength),n||l<=a)do({cmd:o,size:l}=yield yield z(u()));while(l<a);while(!n)}catch(f){(r=!0)&&typeof c.throw=="function"&&(yield z(c.throw(f)))}finally{r===!1&&typeof c.return=="function"&&(yield z(c.return(new Uint8Array(0))))}return yield z(null)})}function mw(e){return Xe(this,arguments,function*(){let n=!1,r=!1,i=[],s,o,l,a=0;function u(){return o==="peek"?en(i,l)[0]:([s,i,a]=en(i,l),s)}({cmd:o,size:l}=yield yield z(null));const c=new gw(e);try{do if({done:n,value:s}=Number.isNaN(l-a)?yield z(c.read()):yield z(c.read(l-a)),!n&&s.byteLength>0&&(i.push(J(s)),a+=s.byteLength),n||l<=a)do({cmd:o,size:l}=yield yield z(u()));while(l<a);while(!n)}catch(f){(r=!0)&&(yield z(c.cancel(f)))}finally{r===!1?yield z(c.cancel()):e.locked&&c.releaseLock()}return yield z(null)})}class gw{constructor(t){this.source=t,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(t){return D(this,void 0,void 0,function*(){const{reader:n,source:r}=this;n&&(yield n.cancel(t).catch(()=>{})),r&&r.locked&&this.releaseLock()})}read(t){return D(this,void 0,void 0,function*(){if(t===0)return{done:this.reader==null,value:new Uint8Array(0)};const n=yield this.reader.read();return!n.done&&(n.value=J(n)),n})}}const Ta=(e,t)=>{const n=i=>r([t,i]);let r;return[t,n,new Promise(i=>(r=i)&&e.once(t,n))]};function vw(e){return Xe(this,arguments,function*(){const n=[];let r="error",i=!1,s=null,o,l,a=0,u=[],c;function f(){return o==="peek"?en(u,l)[0]:([c,u,a]=en(u,l),c)}if({cmd:o,size:l}=yield yield z(null),e.isTTY)return yield yield z(new Uint8Array(0)),yield z(null);try{n[0]=Ta(e,"end"),n[1]=Ta(e,"error");do{if(n[2]=Ta(e,"readable"),[r,s]=yield z(Promise.race(n.map(g=>g[2]))),r==="error")break;if((i=r==="end")||(Number.isFinite(l-a)?(c=J(e.read(l-a)),c.byteLength<l-a&&(c=J(e.read()))):c=J(e.read()),c.byteLength>0&&(u.push(c),a+=c.byteLength)),i||l<=a)do({cmd:o,size:l}=yield yield z(f()));while(l<a)}while(!i)}finally{yield z(m(n,r==="error"?s:null))}return yield z(null);function m(g,v){return c=u=null,new Promise((S,Q)=>{for(const[h,d]of g)e.off(h,d);try{const h=e.destroy;h&&h.call(e,v),v=void 0}catch(h){v=h||v}finally{v!=null?Q(v):S()}})}})}var le;(function(e){e[e.V1=0]="V1",e[e.V2=1]="V2",e[e.V3=2]="V3",e[e.V4=3]="V4",e[e.V5=4]="V5"})(le||(le={}));var de;(function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"})(de||(de={}));var te;(function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"})(te||(te={}));var Bn;(function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"})(Bn||(Bn={}));var G;(function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"})(G||(G={}));var Gn;(function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME",e[e.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Gn||(Gn={}));var X;(function(e){e[e.NONE=0]="NONE",e[e.Schema=1]="Schema",e[e.DictionaryBatch=2]="DictionaryBatch",e[e.RecordBatch=3]="RecordBatch",e[e.Tensor=4]="Tensor",e[e.SparseTensor=5]="SparseTensor"})(X||(X={}));var p;(function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth"})(p||(p={}));var un;(function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"})(un||(un={}));const ww=void 0;function Ss(e){if(e===null)return"null";if(e===ww)return"undefined";switch(typeof e){case"number":return`${e}`;case"bigint":return`${e}`;case"string":return`"${e}"`}return typeof e[Symbol.toPrimitive]=="function"?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?e instanceof xs||e instanceof Cs?`[${[...e].map(t=>Ss(t))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(t,n)=>typeof n=="bigint"?`${n}`:n)}const _w=Symbol.for("isArrowBigNum");function Le(e,...t){return t.length===0?Object.setPrototypeOf(rt(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}Le.prototype[_w]=!0;Le.prototype.toJSON=function(){return`"${Er(this)}"`};Le.prototype.valueOf=function(){return Iy(this)};Le.prototype.toString=function(){return Er(this)};Le.prototype[Symbol.toPrimitive]=function(e="default"){switch(e){case"number":return Iy(this);case"string":return Er(this);case"default":return Cu(this)}return Er(this)};function li(...e){return Le.apply(this,e)}function ai(...e){return Le.apply(this,e)}function Is(...e){return Le.apply(this,e)}Object.setPrototypeOf(li.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(ai.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Is.prototype,Object.create(Uint32Array.prototype));Object.assign(li.prototype,Le.prototype,{constructor:li,signed:!0,TypedArray:Int32Array,BigIntArray:xs});Object.assign(ai.prototype,Le.prototype,{constructor:ai,signed:!1,TypedArray:Uint32Array,BigIntArray:Cs});Object.assign(Is.prototype,Le.prototype,{constructor:Is,signed:!0,TypedArray:Uint32Array,BigIntArray:Cs});function Iy(e){const{buffer:t,byteOffset:n,length:r,signed:i}=e,s=new Cs(t,n,r),o=i&&s[s.length-1]&BigInt(1)<<BigInt(63);let l=BigInt(o?1:0),a=BigInt(0);if(o){for(const u of s)l+=~u*(BigInt(1)<<BigInt(32)*a++);l*=BigInt(-1)}else for(const u of s)l+=u*(BigInt(1)<<BigInt(32)*a++);return l}let Er,Cu;iw?(Cu=e=>e.byteLength===8?new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:xa(e),Er=e=>e.byteLength===8?`${new e.BigIntArray(e.buffer,e.byteOffset,1)[0]}`:xa(e)):(Er=xa,Cu=Er);function xa(e){let t="";const n=new Uint32Array(2);let r=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2);const i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer);let s=-1;const o=r.length-1;do{for(n[0]=r[s=0];s<o;)r[s++]=n[1]=n[0]/10,n[0]=(n[0]-n[1]*10<<16)+r[s];r[s]=n[1]=n[0]/10,n[0]=n[0]-n[1]*10,t=`${n[0]}${t}`}while(i[0]||i[1]||i[2]||i[3]);return t??"0"}class Jc{static new(t,n){switch(n){case!0:return new li(t);case!1:return new ai(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case xs:return new li(t)}return t.byteLength===16?new Is(t):new ai(t)}static signed(t){return new li(t)}static unsigned(t){return new ai(t)}static decimal(t){return new Is(t)}constructor(t,n){return Jc.new(t,n)}}var by,By,Ey,Fy,Oy,Ay,Dy,Ny,ky,Ty,xy,Cy,My,Ly,Ry,Uy,Py,zy,jy;class N{static isNull(t){return(t==null?void 0:t.typeId)===p.Null}static isInt(t){return(t==null?void 0:t.typeId)===p.Int}static isFloat(t){return(t==null?void 0:t.typeId)===p.Float}static isBinary(t){return(t==null?void 0:t.typeId)===p.Binary}static isUtf8(t){return(t==null?void 0:t.typeId)===p.Utf8}static isBool(t){return(t==null?void 0:t.typeId)===p.Bool}static isDecimal(t){return(t==null?void 0:t.typeId)===p.Decimal}static isDate(t){return(t==null?void 0:t.typeId)===p.Date}static isTime(t){return(t==null?void 0:t.typeId)===p.Time}static isTimestamp(t){return(t==null?void 0:t.typeId)===p.Timestamp}static isInterval(t){return(t==null?void 0:t.typeId)===p.Interval}static isList(t){return(t==null?void 0:t.typeId)===p.List}static isStruct(t){return(t==null?void 0:t.typeId)===p.Struct}static isUnion(t){return(t==null?void 0:t.typeId)===p.Union}static isFixedSizeBinary(t){return(t==null?void 0:t.typeId)===p.FixedSizeBinary}static isFixedSizeList(t){return(t==null?void 0:t.typeId)===p.FixedSizeList}static isMap(t){return(t==null?void 0:t.typeId)===p.Map}static isDictionary(t){return(t==null?void 0:t.typeId)===p.Dictionary}static isDenseUnion(t){return N.isUnion(t)&&t.mode===de.Dense}static isSparseUnion(t){return N.isUnion(t)&&t.mode===de.Sparse}get typeId(){return p.NONE}}by=Symbol.toStringTag;N[by]=(e=>(e.children=null,e.ArrayType=Array,e[Symbol.toStringTag]="DataType"))(N.prototype);let Xn=class extends N{toString(){return"Null"}get typeId(){return p.Null}};By=Symbol.toStringTag;Xn[By]=(e=>e[Symbol.toStringTag]="Null")(Xn.prototype);class Zn extends N{constructor(t,n){super(),this.isSigned=t,this.bitWidth=n}get typeId(){return p.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?xs:Cs}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}Ey=Symbol.toStringTag;Zn[Ey]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(Zn.prototype);class bs extends Zn{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(bs.prototype,"ArrayType",{value:Int32Array});class Bs extends N{constructor(t){super(),this.precision=t}get typeId(){return p.Float}get ArrayType(){switch(this.precision){case te.HALF:return Uint16Array;case te.SINGLE:return Float32Array;case te.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}Fy=Symbol.toStringTag;Bs[Fy]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(Bs.prototype);let Zo=class extends N{constructor(){super()}get typeId(){return p.Binary}toString(){return"Binary"}};Oy=Symbol.toStringTag;Zo[Oy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(Zo.prototype);let qo=class extends N{constructor(){super()}get typeId(){return p.Utf8}toString(){return"Utf8"}};Ay=Symbol.toStringTag;qo[Ay]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(qo.prototype);let tl=class extends N{constructor(){super()}get typeId(){return p.Bool}toString(){return"Bool"}};Dy=Symbol.toStringTag;tl[Dy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(tl.prototype);let el=class extends N{constructor(t,n,r=128){super(),this.scale=t,this.precision=n,this.bitWidth=r}get typeId(){return p.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};Ny=Symbol.toStringTag;el[Ny]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(el.prototype);class nl extends N{constructor(t){super(),this.unit=t}get typeId(){return p.Date}toString(){return`Date${(this.unit+1)*32}<${Bn[this.unit]}>`}}ky=Symbol.toStringTag;nl[ky]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Date"))(nl.prototype);class Es extends N{constructor(t,n){super(),this.unit=t,this.bitWidth=n}get typeId(){return p.Time}toString(){return`Time${this.bitWidth}<${G[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return xs}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}Ty=Symbol.toStringTag;Es[Ty]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]="Time"))(Es.prototype);class rl extends N{constructor(t,n){super(),this.unit=t,this.timezone=n}get typeId(){return p.Timestamp}toString(){return`Timestamp<${G[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}xy=Symbol.toStringTag;rl[xy]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Timestamp"))(rl.prototype);class il extends N{constructor(t){super(),this.unit=t}get typeId(){return p.Interval}toString(){return`Interval<${Gn[this.unit]}>`}}Cy=Symbol.toStringTag;il[Cy]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(il.prototype);let sl=class extends N{constructor(t){super(),this.children=[t]}get typeId(){return p.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}};My=Symbol.toStringTag;sl[My]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(sl.prototype);class zt extends N{constructor(t){super(),this.children=t}get typeId(){return p.Struct}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}}Ly=Symbol.toStringTag;zt[Ly]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(zt.prototype);class ol extends N{constructor(t,n,r){super(),this.mode=t,this.children=r,this.typeIds=n=Int32Array.from(n),this.typeIdToChildIndex=n.reduce((i,s,o)=>(i[s]=o)&&i||i,Object.create(null))}get typeId(){return p.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(t=>`${t.type}`).join(" | ")}>`}}Ry=Symbol.toStringTag;ol[Ry]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(ol.prototype);let ll=class extends N{constructor(t){super(),this.byteWidth=t}get typeId(){return p.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};Uy=Symbol.toStringTag;ll[Uy]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(ll.prototype);let al=class extends N{constructor(t,n){super(),this.listSize=t,this.children=[n]}get typeId(){return p.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}>`}};Py=Symbol.toStringTag;al[Py]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(al.prototype);class ul extends N{constructor(t,n=!1){super(),this.children=[t],this.keysSorted=n}get typeId(){return p.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(t=>`${t.name}:${t.type}`).join(", ")}}>`}}zy=Symbol.toStringTag;ul[zy]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(ul.prototype);const Sw=(e=>()=>++e)(-1);class wi extends N{constructor(t,n,r,i){super(),this.indices=n,this.dictionary=t,this.isOrdered=i||!1,this.id=r==null?Sw():typeof r=="number"?r:r.low}get typeId(){return p.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}>`}}jy=Symbol.toStringTag;wi[jy]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(wi.prototype);function cn(e){const t=e;switch(e.typeId){case p.Decimal:return e.bitWidth/32;case p.Timestamp:return 2;case p.Date:return 1+t.unit;case p.Interval:return 1+t.unit;case p.FixedSizeList:return t.listSize;case p.FixedSizeBinary:return t.byteWidth;default:return 1}}class Y{visitMany(t,...n){return t.map((r,i)=>this.visit(r,...n.map(s=>s[i])))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,n=!0){return Iw(this,t,n)}getVisitFnByTypeId(t,n=!0){return Ur(this,t,n)}visitNull(t,...n){return null}visitBool(t,...n){return null}visitInt(t,...n){return null}visitFloat(t,...n){return null}visitUtf8(t,...n){return null}visitBinary(t,...n){return null}visitFixedSizeBinary(t,...n){return null}visitDate(t,...n){return null}visitTimestamp(t,...n){return null}visitTime(t,...n){return null}visitDecimal(t,...n){return null}visitList(t,...n){return null}visitStruct(t,...n){return null}visitUnion(t,...n){return null}visitDictionary(t,...n){return null}visitInterval(t,...n){return null}visitFixedSizeList(t,...n){return null}visitMap(t,...n){return null}}function Iw(e,t,n=!0){return typeof t=="number"?Ur(e,t,n):typeof t=="string"&&t in p?Ur(e,p[t],n):t&&t instanceof N?Ur(e,Cf(t),n):t!=null&&t.type&&t.type instanceof N?Ur(e,Cf(t.type),n):Ur(e,p.NONE,n)}function Ur(e,t,n=!0){let r=null;switch(t){case p.Null:r=e.visitNull;break;case p.Bool:r=e.visitBool;break;case p.Int:r=e.visitInt;break;case p.Int8:r=e.visitInt8||e.visitInt;break;case p.Int16:r=e.visitInt16||e.visitInt;break;case p.Int32:r=e.visitInt32||e.visitInt;break;case p.Int64:r=e.visitInt64||e.visitInt;break;case p.Uint8:r=e.visitUint8||e.visitInt;break;case p.Uint16:r=e.visitUint16||e.visitInt;break;case p.Uint32:r=e.visitUint32||e.visitInt;break;case p.Uint64:r=e.visitUint64||e.visitInt;break;case p.Float:r=e.visitFloat;break;case p.Float16:r=e.visitFloat16||e.visitFloat;break;case p.Float32:r=e.visitFloat32||e.visitFloat;break;case p.Float64:r=e.visitFloat64||e.visitFloat;break;case p.Utf8:r=e.visitUtf8;break;case p.Binary:r=e.visitBinary;break;case p.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case p.Date:r=e.visitDate;break;case p.DateDay:r=e.visitDateDay||e.visitDate;break;case p.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case p.Timestamp:r=e.visitTimestamp;break;case p.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case p.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case p.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case p.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case p.Time:r=e.visitTime;break;case p.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case p.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case p.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case p.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case p.Decimal:r=e.visitDecimal;break;case p.List:r=e.visitList;break;case p.Struct:r=e.visitStruct;break;case p.Union:r=e.visitUnion;break;case p.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case p.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case p.Dictionary:r=e.visitDictionary;break;case p.Interval:r=e.visitInterval;break;case p.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case p.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case p.FixedSizeList:r=e.visitFixedSizeList;break;case p.Map:r=e.visitMap;break}if(typeof r=="function")return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${p[t]}'`)}function Cf(e){switch(e.typeId){case p.Null:return p.Null;case p.Int:{const{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?p.Int8:p.Uint8;case 16:return n?p.Int16:p.Uint16;case 32:return n?p.Int32:p.Uint32;case 64:return n?p.Int64:p.Uint64}return p.Int}case p.Float:switch(e.precision){case te.HALF:return p.Float16;case te.SINGLE:return p.Float32;case te.DOUBLE:return p.Float64}return p.Float;case p.Binary:return p.Binary;case p.Utf8:return p.Utf8;case p.Bool:return p.Bool;case p.Decimal:return p.Decimal;case p.Time:switch(e.unit){case G.SECOND:return p.TimeSecond;case G.MILLISECOND:return p.TimeMillisecond;case G.MICROSECOND:return p.TimeMicrosecond;case G.NANOSECOND:return p.TimeNanosecond}return p.Time;case p.Timestamp:switch(e.unit){case G.SECOND:return p.TimestampSecond;case G.MILLISECOND:return p.TimestampMillisecond;case G.MICROSECOND:return p.TimestampMicrosecond;case G.NANOSECOND:return p.TimestampNanosecond}return p.Timestamp;case p.Date:switch(e.unit){case Bn.DAY:return p.DateDay;case Bn.MILLISECOND:return p.DateMillisecond}return p.Date;case p.Interval:switch(e.unit){case Gn.DAY_TIME:return p.IntervalDayTime;case Gn.YEAR_MONTH:return p.IntervalYearMonth}return p.Interval;case p.Map:return p.Map;case p.List:return p.List;case p.Struct:return p.Struct;case p.Union:switch(e.mode){case de.Dense:return p.DenseUnion;case de.Sparse:return p.SparseUnion}return p.Union;case p.FixedSizeBinary:return p.FixedSizeBinary;case p.FixedSizeList:return p.FixedSizeList;case p.Dictionary:return p.Dictionary}throw new Error(`Unrecognized type '${p[e.typeId]}'`)}Y.prototype.visitInt8=null;Y.prototype.visitInt16=null;Y.prototype.visitInt32=null;Y.prototype.visitInt64=null;Y.prototype.visitUint8=null;Y.prototype.visitUint16=null;Y.prototype.visitUint32=null;Y.prototype.visitUint64=null;Y.prototype.visitFloat16=null;Y.prototype.visitFloat32=null;Y.prototype.visitFloat64=null;Y.prototype.visitDateDay=null;Y.prototype.visitDateMillisecond=null;Y.prototype.visitTimestampSecond=null;Y.prototype.visitTimestampMillisecond=null;Y.prototype.visitTimestampMicrosecond=null;Y.prototype.visitTimestampNanosecond=null;Y.prototype.visitTimeSecond=null;Y.prototype.visitTimeMillisecond=null;Y.prototype.visitTimeMicrosecond=null;Y.prototype.visitTimeNanosecond=null;Y.prototype.visitDenseUnion=null;Y.prototype.visitSparseUnion=null;Y.prototype.visitIntervalDayTime=null;Y.prototype.visitIntervalYearMonth=null;const Vy=new Float64Array(1),Rr=new Uint32Array(Vy.buffer);function $y(e){const t=(e&31744)>>10,n=(e&1023)/1024,r=Math.pow(-1,(e&32768)>>15);switch(t){case 31:return r*(n?Number.NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,t-15)*(1+n)}function bw(e){if(e!==e)return 32256;Vy[0]=e;const t=(Rr[1]&2147483648)>>16&65535;let n=Rr[1]&2146435072,r=0;return n>=1089470464?Rr[0]>0?n=31744:(n=(n&2080374784)>>16,r=(Rr[1]&1048575)>>10):n<=1056964608?(r=1048576+(Rr[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(Rr[1]&1048575)+512>>10),t|n|r&65535}class M extends Y{}function U(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}const Bw=(e,t,n)=>{e[t]=Math.trunc(n/864e5)},Gc=(e,t,n)=>{e[t]=Math.trunc(n%4294967296),e[t+1]=Math.trunc(n/4294967296)},Ew=(e,t,n)=>{e[t]=Math.trunc(n*1e3%4294967296),e[t+1]=Math.trunc(n*1e3/4294967296)},Fw=(e,t,n)=>{e[t]=Math.trunc(n*1e6%4294967296),e[t+1]=Math.trunc(n*1e6/4294967296)},Wy=(e,t,n,r)=>{if(n+1<t.length){const{[n]:i,[n+1]:s}=t;e.set(r.subarray(0,s-i),i)}},Ow=({offset:e,values:t},n,r)=>{const i=e+n;r?t[i>>3]|=1<<i%8:t[i>>3]&=~(1<<i%8)},Fn=({values:e},t,n)=>{e[t]=n},Xc=({values:e},t,n)=>{e[t]=n},Hy=({values:e},t,n)=>{e[t]=bw(n)},Aw=(e,t,n)=>{switch(e.type.precision){case te.HALF:return Hy(e,t,n);case te.SINGLE:case te.DOUBLE:return Xc(e,t,n)}},Yy=({values:e},t,n)=>{Bw(e,t,n.valueOf())},Qy=({values:e},t,n)=>{Gc(e,t*2,n.valueOf())},Dw=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},Nw=({values:e,valueOffsets:t},n,r)=>Wy(e,t,n,r),kw=({values:e,valueOffsets:t},n,r)=>{Wy(e,t,n,Hc(r))},Tw=(e,t,n)=>{e.type.unit===Bn.DAY?Yy(e,t,n):Qy(e,t,n)},Ky=({values:e},t,n)=>Gc(e,t*2,n/1e3),Jy=({values:e},t,n)=>Gc(e,t*2,n),Gy=({values:e},t,n)=>Ew(e,t*2,n),Xy=({values:e},t,n)=>Fw(e,t*2,n),xw=(e,t,n)=>{switch(e.type.unit){case G.SECOND:return Ky(e,t,n);case G.MILLISECOND:return Jy(e,t,n);case G.MICROSECOND:return Gy(e,t,n);case G.NANOSECOND:return Xy(e,t,n)}},Zy=({values:e},t,n)=>{e[t]=n},qy=({values:e},t,n)=>{e[t]=n},tm=({values:e},t,n)=>{e[t]=n},em=({values:e},t,n)=>{e[t]=n},Cw=(e,t,n)=>{switch(e.type.unit){case G.SECOND:return Zy(e,t,n);case G.MILLISECOND:return qy(e,t,n);case G.MICROSECOND:return tm(e,t,n);case G.NANOSECOND:return em(e,t,n)}},Mw=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},Lw=(e,t,n)=>{const r=e.children[0],i=e.valueOffsets,s=Fe.getVisitFn(r);if(Array.isArray(n))for(let o=-1,l=i[t],a=i[t+1];l<a;)s(r,l++,n[++o]);else for(let o=-1,l=i[t],a=i[t+1];l<a;)s(r,l++,n.get(++o))},Rw=(e,t,n)=>{const r=e.children[0],{valueOffsets:i}=e,s=Fe.getVisitFn(r);let{[t]:o,[t+1]:l}=i;const a=n instanceof Map?n.entries():Object.entries(n);for(const u of a)if(s(r,o,u),++o>=l)break},Uw=(e,t)=>(n,r,i,s)=>r&&n(r,e,t[s]),Pw=(e,t)=>(n,r,i,s)=>r&&n(r,e,t.get(s)),zw=(e,t)=>(n,r,i,s)=>r&&n(r,e,t.get(i.name)),jw=(e,t)=>(n,r,i,s)=>r&&n(r,e,t[i.name]),Vw=(e,t,n)=>{const r=e.type.children.map(s=>Fe.getVisitFn(s.type)),i=n instanceof Map?zw(t,n):n instanceof Z?Pw(t,n):Array.isArray(n)?Uw(t,n):jw(t,n);e.type.children.forEach((s,o)=>i(r[o],e.children[o],s,o))},$w=(e,t,n)=>{e.type.mode===de.Dense?nm(e,t,n):rm(e,t,n)},nm=(e,t,n)=>{const r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Fe.visit(i,e.valueOffsets[t],n)},rm=(e,t,n)=>{const r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Fe.visit(i,t,n)},Ww=(e,t,n)=>{var r;(r=e.dictionary)===null||r===void 0||r.set(e.values[t],n)},Hw=(e,t,n)=>{e.type.unit===Gn.DAY_TIME?im(e,t,n):sm(e,t,n)},im=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},sm=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},Yw=(e,t,n)=>{const{stride:r}=e,i=e.children[0],s=Fe.getVisitFn(i);if(Array.isArray(n))for(let o=-1,l=t*r;++o<r;)s(i,l+o,n[o]);else for(let o=-1,l=t*r;++o<r;)s(i,l+o,n.get(o))};M.prototype.visitBool=U(Ow);M.prototype.visitInt=U(Fn);M.prototype.visitInt8=U(Fn);M.prototype.visitInt16=U(Fn);M.prototype.visitInt32=U(Fn);M.prototype.visitInt64=U(Fn);M.prototype.visitUint8=U(Fn);M.prototype.visitUint16=U(Fn);M.prototype.visitUint32=U(Fn);M.prototype.visitUint64=U(Fn);M.prototype.visitFloat=U(Aw);M.prototype.visitFloat16=U(Hy);M.prototype.visitFloat32=U(Xc);M.prototype.visitFloat64=U(Xc);M.prototype.visitUtf8=U(kw);M.prototype.visitBinary=U(Nw);M.prototype.visitFixedSizeBinary=U(Dw);M.prototype.visitDate=U(Tw);M.prototype.visitDateDay=U(Yy);M.prototype.visitDateMillisecond=U(Qy);M.prototype.visitTimestamp=U(xw);M.prototype.visitTimestampSecond=U(Ky);M.prototype.visitTimestampMillisecond=U(Jy);M.prototype.visitTimestampMicrosecond=U(Gy);M.prototype.visitTimestampNanosecond=U(Xy);M.prototype.visitTime=U(Cw);M.prototype.visitTimeSecond=U(Zy);M.prototype.visitTimeMillisecond=U(qy);M.prototype.visitTimeMicrosecond=U(tm);M.prototype.visitTimeNanosecond=U(em);M.prototype.visitDecimal=U(Mw);M.prototype.visitList=U(Lw);M.prototype.visitStruct=U(Vw);M.prototype.visitUnion=U($w);M.prototype.visitDenseUnion=U(nm);M.prototype.visitSparseUnion=U(rm);M.prototype.visitDictionary=U(Ww);M.prototype.visitInterval=U(Hw);M.prototype.visitIntervalDayTime=U(im);M.prototype.visitIntervalYearMonth=U(sm);M.prototype.visitFixedSizeList=U(Yw);M.prototype.visitMap=U(Rw);const Fe=new M,Ne=Symbol.for("parent"),ui=Symbol.for("rowIndex");class Zc{constructor(t,n){return this[Ne]=t,this[ui]=n,new Proxy(this,new Kw)}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[ui],n=this[Ne],r=n.type.children,i={};for(let s=-1,o=r.length;++s<o;)i[r[s].name]=ne.visit(n.children[s],t);return i}toString(){return`{${[...this].map(([t,n])=>`${Ss(t)}: ${Ss(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Qw(this[Ne],this[ui])}}class Qw{constructor(t,n){this.childIndex=0,this.children=t.children,this.rowIndex=n,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const t=this.childIndex;return t<this.numChildren?(this.childIndex=t+1,{done:!1,value:[this.childFields[t].name,ne.visit(this.children[t],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Zc.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Ne]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ui]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class Kw{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Ne].type.children.map(n=>n.name)}has(t,n){return t[Ne].type.children.findIndex(r=>r.name===n)!==-1}getOwnPropertyDescriptor(t,n){if(t[Ne].type.children.findIndex(r=>r.name===n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(t,n){if(Reflect.has(t,n))return t[n];const r=t[Ne].type.children.findIndex(i=>i.name===n);if(r!==-1){const i=ne.visit(t[Ne].children[r],t[ui]);return Reflect.set(t,n,i),i}}set(t,n,r){const i=t[Ne].type.children.findIndex(s=>s.name===n);return i!==-1?(Fe.visit(t[Ne].children[i],t[ui],r),Reflect.set(t,n,r)):Reflect.has(t,n)||typeof n=="symbol"?Reflect.set(t,n,r):!1}}class k extends Y{}function L(e){return(t,n)=>t.getValid(n)?e(t,n):null}const Jw=(e,t)=>864e5*e[t],qc=(e,t)=>4294967296*e[t+1]+(e[t]>>>0),Gw=(e,t)=>4294967296*(e[t+1]/1e3)+(e[t]>>>0)/1e3,Xw=(e,t)=>4294967296*(e[t+1]/1e6)+(e[t]>>>0)/1e6,om=e=>new Date(e),Zw=(e,t)=>om(Jw(e,t)),qw=(e,t)=>om(qc(e,t)),t_=(e,t)=>null,lm=(e,t,n)=>{if(n+1>=t.length)return null;const r=t[n],i=t[n+1];return e.subarray(r,i)},e_=({offset:e,values:t},n)=>{const r=e+n;return(t[r>>3]&1<<r%8)!==0},am=({values:e},t)=>Zw(e,t),um=({values:e},t)=>qw(e,t*2),ir=({stride:e,values:t},n)=>t[e*n],n_=({stride:e,values:t},n)=>$y(t[e*n]),cm=({values:e},t)=>e[t],r_=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),i_=({values:e,valueOffsets:t},n)=>lm(e,t,n),s_=({values:e,valueOffsets:t},n)=>{const r=lm(e,t,n);return r!==null?ku(r):null},o_=({values:e},t)=>e[t],l_=({type:e,values:t},n)=>e.precision!==te.HALF?t[n]:$y(t[n]),a_=(e,t)=>e.type.unit===Bn.DAY?am(e,t):um(e,t),dm=({values:e},t)=>1e3*qc(e,t*2),fm=({values:e},t)=>qc(e,t*2),hm=({values:e},t)=>Gw(e,t*2),pm=({values:e},t)=>Xw(e,t*2),u_=(e,t)=>{switch(e.type.unit){case G.SECOND:return dm(e,t);case G.MILLISECOND:return fm(e,t);case G.MICROSECOND:return hm(e,t);case G.NANOSECOND:return pm(e,t)}},ym=({values:e},t)=>e[t],mm=({values:e},t)=>e[t],gm=({values:e},t)=>e[t],vm=({values:e},t)=>e[t],c_=(e,t)=>{switch(e.type.unit){case G.SECOND:return ym(e,t);case G.MILLISECOND:return mm(e,t);case G.MICROSECOND:return gm(e,t);case G.NANOSECOND:return vm(e,t)}},d_=({values:e,stride:t},n)=>Jc.decimal(e.subarray(t*n,t*(n+1))),f_=(e,t)=>{const{valueOffsets:n,stride:r,children:i}=e,{[t*r]:s,[t*r+1]:o}=n,a=i[0].slice(s,o-s);return new Z([a])},h_=(e,t)=>{const{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:s}=n,o=r[0];return new td(o.slice(i,s-i))},p_=(e,t)=>new Zc(e,t),y_=(e,t)=>e.type.mode===de.Dense?wm(e,t):_m(e,t),wm=(e,t)=>{const n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return ne.visit(r,e.valueOffsets[t])},_m=(e,t)=>{const n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return ne.visit(r,t)},m_=(e,t)=>{var n;return(n=e.dictionary)===null||n===void 0?void 0:n.get(e.values[t])},g_=(e,t)=>e.type.unit===Gn.DAY_TIME?Sm(e,t):Im(e,t),Sm=({values:e},t)=>e.subarray(2*t,2*(t+1)),Im=({values:e},t)=>{const n=e[t],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},v_=(e,t)=>{const{stride:n,children:r}=e,s=r[0].slice(t*n,n);return new Z([s])};k.prototype.visitNull=L(t_);k.prototype.visitBool=L(e_);k.prototype.visitInt=L(o_);k.prototype.visitInt8=L(ir);k.prototype.visitInt16=L(ir);k.prototype.visitInt32=L(ir);k.prototype.visitInt64=L(cm);k.prototype.visitUint8=L(ir);k.prototype.visitUint16=L(ir);k.prototype.visitUint32=L(ir);k.prototype.visitUint64=L(cm);k.prototype.visitFloat=L(l_);k.prototype.visitFloat16=L(n_);k.prototype.visitFloat32=L(ir);k.prototype.visitFloat64=L(ir);k.prototype.visitUtf8=L(s_);k.prototype.visitBinary=L(i_);k.prototype.visitFixedSizeBinary=L(r_);k.prototype.visitDate=L(a_);k.prototype.visitDateDay=L(am);k.prototype.visitDateMillisecond=L(um);k.prototype.visitTimestamp=L(u_);k.prototype.visitTimestampSecond=L(dm);k.prototype.visitTimestampMillisecond=L(fm);k.prototype.visitTimestampMicrosecond=L(hm);k.prototype.visitTimestampNanosecond=L(pm);k.prototype.visitTime=L(c_);k.prototype.visitTimeSecond=L(ym);k.prototype.visitTimeMillisecond=L(mm);k.prototype.visitTimeMicrosecond=L(gm);k.prototype.visitTimeNanosecond=L(vm);k.prototype.visitDecimal=L(d_);k.prototype.visitList=L(f_);k.prototype.visitStruct=L(p_);k.prototype.visitUnion=L(y_);k.prototype.visitDenseUnion=L(wm);k.prototype.visitSparseUnion=L(_m);k.prototype.visitDictionary=L(m_);k.prototype.visitInterval=L(g_);k.prototype.visitIntervalDayTime=L(Sm);k.prototype.visitIntervalYearMonth=L(Im);k.prototype.visitFixedSizeList=L(v_);k.prototype.visitMap=L(h_);const ne=new k,He=Symbol.for("keys"),ci=Symbol.for("vals");class td{constructor(t){return this[He]=new Z([t.children[0]]).memoize(),this[ci]=t.children[1],new Proxy(this,new __)}[Symbol.iterator](){return new w_(this[He],this[ci])}get size(){return this[He].length}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[He],n=this[ci],r={};for(let i=-1,s=t.length;++i<s;)r[t.get(i)]=ne.visit(n,i);return r}toString(){return`{${[...this].map(([t,n])=>`${Ss(t)}: ${Ss(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class w_{constructor(t,n){this.keys=t,this.vals=n,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){const t=this.keyIndex;return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),ne.visit(this.vals,t)]})}}class __{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[He].toArray().map(String)}has(t,n){return t[He].includes(n)}getOwnPropertyDescriptor(t,n){if(t[He].indexOf(n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(t,n){if(Reflect.has(t,n))return t[n];const r=t[He].indexOf(n);if(r!==-1){const i=ne.visit(Reflect.get(t,ci),r);return Reflect.set(t,n,i),i}}set(t,n,r){const i=t[He].indexOf(n);return i!==-1?(Fe.visit(Reflect.get(t,ci),i,r),Reflect.set(t,n,r)):Reflect.has(t,n)?Reflect.set(t,n,r):!1}}Object.defineProperties(td.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[He]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ci]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let Mf;function bm(e,t,n,r){const{length:i=0}=e;let s=typeof t!="number"?0:t,o=typeof n!="number"?i:n;return s<0&&(s=(s%i+i)%i),o<0&&(o=(o%i+i)%i),o<s&&(Mf=s,s=o,o=Mf),o>i&&(o=i),r?r(e,s,o):[s,o]}const Lf=e=>e!==e;function Ni(e){if(typeof e!=="object"||e===null)return Lf(e)?Lf:n=>n===e;if(e instanceof Date){const n=e.valueOf();return r=>r instanceof Date?r.valueOf()===n:!1}return ArrayBuffer.isView(e)?n=>n?hw(e,n):!1:e instanceof Map?I_(e):Array.isArray(e)?S_(e):e instanceof Z?b_(e):B_(e,!0)}function S_(e){const t=[];for(let n=-1,r=e.length;++n<r;)t[n]=Ni(e[n]);return ta(t)}function I_(e){let t=-1;const n=[];for(const r of e.values())n[++t]=Ni(r);return ta(n)}function b_(e){const t=[];for(let n=-1,r=e.length;++n<r;)t[n]=Ni(e.get(n));return ta(t)}function B_(e,t=!1){const n=Object.keys(e);if(!t&&n.length===0)return()=>!1;const r=[];for(let i=-1,s=n.length;++i<s;)r[i]=Ni(e[n[i]]);return ta(r,n)}function ta(e,t){return n=>{if(!n||typeof n!="object")return!1;switch(n.constructor){case Array:return E_(e,n);case Map:return Rf(e,n,n.keys());case td:case Zc:case Object:case void 0:return Rf(e,n,t||Object.keys(n))}return n instanceof Z?F_(e,n):!1}}function E_(e,t){const n=e.length;if(t.length!==n)return!1;for(let r=-1;++r<n;)if(!e[r](t[r]))return!1;return!0}function F_(e,t){const n=e.length;if(t.length!==n)return!1;for(let r=-1;++r<n;)if(!e[r](t.get(r)))return!1;return!0}function Rf(e,t,n){const r=n[Symbol.iterator](),i=t instanceof Map?t.keys():Object.keys(t)[Symbol.iterator](),s=t instanceof Map?t.values():Object.values(t)[Symbol.iterator]();let o=0;const l=e.length;let a=s.next(),u=r.next(),c=i.next();for(;o<l&&!u.done&&!c.done&&!a.done&&!(u.value!==c.value||!e[o](a.value));++o,u=r.next(),c=i.next(),a=s.next());return o===l&&u.done&&c.done&&a.done?!0:(r.return&&r.return(),i.return&&i.return(),s.return&&s.return(),!1)}function Bm(e,t,n,r){return(n&1<<r)!==0}function O_(e,t,n,r){return(n&1<<r)>>r}function ed(e,t,n){const r=n.byteLength+7&-8;if(e>0||n.byteLength<r){const i=new Uint8Array(r);return i.set(e%8===0?n.subarray(e>>3):cl(new nd(n,e,t,null,Bm)).subarray(0,r)),i}return n}function cl(e){const t=[];let n=0,r=0,i=0;for(const o of e)o&&(i|=1<<r),++r===8&&(t[n++]=i,i=r=0);(n===0||r>0)&&(t[n++]=i);const s=new Uint8Array(t.length+7&-8);return s.set(t),s}class nd{constructor(t,n,r,i,s){this.bytes=t,this.length=r,this.context=i,this.get=s,this.bit=n%8,this.byteIndex=n>>3,this.byte=t[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 Mu(e,t,n){if(n-t<=0)return 0;if(n-t<8){let s=0;for(const o of new nd(e,t,n-t,e,O_))s+=o;return s}const r=n>>3<<3,i=t+(t%8===0?0:8-t%8);return Mu(e,t,i)+Mu(e,r,n)+A_(e,i>>3,r-i>>3)}function A_(e,t,n){let r=0,i=Math.trunc(t);const s=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n===void 0?e.byteLength:i+n;for(;o-i>=4;)r+=Ca(s.getUint32(i)),i+=4;for(;o-i>=2;)r+=Ca(s.getUint16(i)),i+=2;for(;o-i>=1;)r+=Ca(s.getUint8(i)),i+=1;return r}function Ca(e){let t=Math.trunc(e);return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}const D_=-1;class st{constructor(t,n,r,i,s,o=[],l){this.type=t,this.children=o,this.dictionary=l,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1));let a;s instanceof st?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=cn(t),s&&((a=s[0])&&(this.valueOffsets=a),(a=s[1])&&(this.values=a),(a=s[2])&&(this.nullBitmap=a),(a=s[3])&&(this.typeIds=a))),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 t=0;const{valueOffsets:n,values:r,nullBitmap:i,typeIds:s}=this;return n&&(t+=n.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),s&&(t+=s.byteLength),this.children.reduce((o,l)=>o+l.byteLength,t)}get nullCount(){let t=this._nullCount,n;return t<=D_&&(n=this.nullBitmap)&&(this._nullCount=t=this.length-Mu(n,this.offset,this.offset+this.length)),t}getValid(t){if(this.nullable&&this.nullCount>0){const n=this.offset+t;return(this.nullBitmap[n>>3]&1<<n%8)!==0}return!0}setValid(t,n){if(!this.nullable)return n;if(!this.nullBitmap||this.nullBitmap.byteLength<=t>>3){const{nullBitmap:a}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:a,_nullCount:0})}const{nullBitmap:r,offset:i}=this,s=i+t>>3,o=(i+t)%8,l=r[s]>>o&1;return n?l===0&&(r[s]|=1<<o,this._nullCount=this.nullCount+1):l===1&&(r[s]&=~(1<<o),this._nullCount=this.nullCount-1),n}clone(t=this.type,n=this.offset,r=this.length,i=this._nullCount,s=this,o=this.children){return new st(t,n,r,i,s,o,this.dictionary)}slice(t,n){const{stride:r,typeId:i,children:s}=this,o=+(this._nullCount===0)-1,l=i===16?r:1,a=this._sliceBuffers(t,n,r,i);return this.clone(this.type,this.offset+t,n,o,a,s.length===0||this.valueOffsets?s:this._sliceChildren(s,l*t,l*n))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===p.Null)return this.clone(this.type,0,t,0);const{length:n,nullCount:r}=this,i=new Uint8Array((t+63&-64)>>3).fill(255,0,n>>3);i[n>>3]=(1<<n-(n&-8))-1,r>0&&i.set(ed(this.offset,n,this.nullBitmap),0);const s=this.buffers;return s[un.VALIDITY]=i,this.clone(this.type,0,t,r+(t-n),s)}_sliceBuffers(t,n,r,i){let s;const{buffers:o}=this;return(s=o[un.TYPE])&&(o[un.TYPE]=s.subarray(t,t+n)),(s=o[un.OFFSET])&&(o[un.OFFSET]=s.subarray(t,t+n+1))||(s=o[un.DATA])&&(o[un.DATA]=i===6?s:s.subarray(r*t,r*(t+n))),o}_sliceChildren(t,n,r){return t.map(i=>i.slice(n,r))}}st.prototype.children=Object.freeze([]);class es extends Y{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){const{["type"]:n,["offset"]:r=0,["length"]:i=0}=t;return new st(n,r,i,0)}visitBool(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length>>3,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitInt(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitFloat(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitUtf8(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.data),s=J(t.nullBitmap),o=Pi(t.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new st(n,r,l,a,[o,i,s])}visitBinary(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.data),s=J(t.nullBitmap),o=Pi(t.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new st(n,r,l,a,[o,i,s])}visitFixedSizeBinary(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitDate(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitTimestamp(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitTime(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitDecimal(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitList(t){const{["type"]:n,["offset"]:r=0,["child"]:i}=t,s=J(t.nullBitmap),o=Pi(t.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new st(n,r,l,a,[o,void 0,s],[i])}visitStruct(t){const{["type"]:n,["offset"]:r=0,["children"]:i=[]}=t,s=J(t.nullBitmap),{length:o=i.reduce((a,{length:u})=>Math.max(a,u),0),nullCount:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,void 0,s],i)}visitUnion(t){const{["type"]:n,["offset"]:r=0,["children"]:i=[]}=t,s=J(t.nullBitmap),o=rt(n.ArrayType,t.typeIds),{["length"]:l=o.length,["nullCount"]:a=t.nullBitmap?-1:0}=t;if(N.isSparseUnion(n))return new st(n,r,l,a,[void 0,void 0,s,o],i);const u=Pi(t.valueOffsets);return new st(n,r,l,a,[u,void 0,s,o],i)}visitDictionary(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.indices.ArrayType,t.data),{["dictionary"]:o=new Z([new es().visit({type:n.dictionary})])}=t,{["length"]:l=s.length,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new st(n,r,l,a,[void 0,s,i],[],o)}visitInterval(t){const{["type"]:n,["offset"]:r=0}=t,i=J(t.nullBitmap),s=rt(n.ArrayType,t.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,s,i])}visitFixedSizeList(t){const{["type"]:n,["offset"]:r=0,["child"]:i=new es().visit({type:n.valueType})}=t,s=J(t.nullBitmap),{["length"]:o=i.length/cn(n),["nullCount"]:l=t.nullBitmap?-1:0}=t;return new st(n,r,o,l,[void 0,void 0,s],[i])}visitMap(t){const{["type"]:n,["offset"]:r=0,["child"]:i=new es().visit({type:n.childType})}=t,s=J(t.nullBitmap),o=Pi(t.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new st(n,r,l,a,[o,void 0,s],[i])}}function H(e){return new es().visit(e)}class Uf{constructor(t=0,n){this.numChunks=t,this.getChunkIterator=n,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const t=this.chunkIterator.next();if(!t.done)return t;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function Em(e){return e.reduce((t,n)=>t+n.nullCount,0)}function Fm(e){return e.reduce((t,n,r)=>(t[r+1]=t[r]+n.length,t),new Uint32Array(e.length+1))}function Om(e,t,n,r){const i=[];for(let s=-1,o=e.length;++s<o;){const l=e[s],a=t[s],{length:u}=l;if(a>=r)break;if(n>=a+u)continue;if(a>=n&&a+u<=r){i.push(l);continue}const c=Math.max(0,n-a),f=Math.min(r-a,u);i.push(l.slice(c,f-c))}return i.length===0&&i.push(e[0].slice(0,0)),i}function rd(e,t,n,r){let i=0,s=0,o=t.length-1;do{if(i>=o-1)return n<t[o]?r(e,i,n-t[i]):null;s=i+Math.trunc((o-i)*.5),n<t[s]?o=s:i=s}while(i<o)}function id(e,t){return e.getValid(t)}function di(e){function t(n,r,i){return e(n[r],i)}return function(n){const r=this.data;return rd(r,this._offsets,n,t)}}function Am(e){let t;function n(r,i,s){return e(r[i],s,t)}return function(r,i){const s=this.data;t=i;const o=rd(s,this._offsets,r,n);return t=void 0,o}}function Dm(e){let t;function n(r,i,s){let o=s,l=0,a=0;for(let u=i-1,c=r.length;++u<c;){const f=r[u];if(~(l=e(f,t,o)))return a+l;o=0,a+=f.length}return-1}return function(r,i){t=r;const s=this.data,o=typeof i!="number"?n(s,0,0):rd(s,this._offsets,i,n);return t=void 0,o}}class T extends Y{}function N_(e,t){return t===null&&e.length>0?0:-1}function k_(e,t){const{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(const i of new nd(n,e.offset+(t||0),e.length,n,Bm)){if(!i)return r;++r}return-1}function j(e,t,n){if(t===void 0)return-1;if(t===null)return k_(e,n);const r=ne.getVisitFn(e),i=Ni(t);for(let s=(n||0)-1,o=e.length;++s<o;)if(i(r(e,s)))return s;return-1}function Nm(e,t,n){const r=ne.getVisitFn(e),i=Ni(t);for(let s=(n||0)-1,o=e.length;++s<o;)if(i(r(e,s)))return s;return-1}T.prototype.visitNull=N_;T.prototype.visitBool=j;T.prototype.visitInt=j;T.prototype.visitInt8=j;T.prototype.visitInt16=j;T.prototype.visitInt32=j;T.prototype.visitInt64=j;T.prototype.visitUint8=j;T.prototype.visitUint16=j;T.prototype.visitUint32=j;T.prototype.visitUint64=j;T.prototype.visitFloat=j;T.prototype.visitFloat16=j;T.prototype.visitFloat32=j;T.prototype.visitFloat64=j;T.prototype.visitUtf8=j;T.prototype.visitBinary=j;T.prototype.visitFixedSizeBinary=j;T.prototype.visitDate=j;T.prototype.visitDateDay=j;T.prototype.visitDateMillisecond=j;T.prototype.visitTimestamp=j;T.prototype.visitTimestampSecond=j;T.prototype.visitTimestampMillisecond=j;T.prototype.visitTimestampMicrosecond=j;T.prototype.visitTimestampNanosecond=j;T.prototype.visitTime=j;T.prototype.visitTimeSecond=j;T.prototype.visitTimeMillisecond=j;T.prototype.visitTimeMicrosecond=j;T.prototype.visitTimeNanosecond=j;T.prototype.visitDecimal=j;T.prototype.visitList=j;T.prototype.visitStruct=j;T.prototype.visitUnion=j;T.prototype.visitDenseUnion=Nm;T.prototype.visitSparseUnion=Nm;T.prototype.visitDictionary=j;T.prototype.visitInterval=j;T.prototype.visitIntervalDayTime=j;T.prototype.visitIntervalYearMonth=j;T.prototype.visitFixedSizeList=j;T.prototype.visitMap=j;const dl=new T;class x extends Y{}function R(e){const{type:t}=e;if(e.nullCount===0&&e.stride===1&&(t.typeId===p.Timestamp||t instanceof Zn&&t.bitWidth!==64||t instanceof Es&&t.bitWidth!==64||t instanceof Bs&&t.precision!==te.HALF))return new Uf(e.data.length,r=>{const i=e.data[r];return i.values.subarray(0,i.length)[Symbol.iterator]()});let n=0;return new Uf(e.data.length,r=>{const s=e.data[r].length,o=e.slice(n,n+s);return n+=s,new T_(o)})}class T_{constructor(t){this.vector=t,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}x.prototype.visitNull=R;x.prototype.visitBool=R;x.prototype.visitInt=R;x.prototype.visitInt8=R;x.prototype.visitInt16=R;x.prototype.visitInt32=R;x.prototype.visitInt64=R;x.prototype.visitUint8=R;x.prototype.visitUint16=R;x.prototype.visitUint32=R;x.prototype.visitUint64=R;x.prototype.visitFloat=R;x.prototype.visitFloat16=R;x.prototype.visitFloat32=R;x.prototype.visitFloat64=R;x.prototype.visitUtf8=R;x.prototype.visitBinary=R;x.prototype.visitFixedSizeBinary=R;x.prototype.visitDate=R;x.prototype.visitDateDay=R;x.prototype.visitDateMillisecond=R;x.prototype.visitTimestamp=R;x.prototype.visitTimestampSecond=R;x.prototype.visitTimestampMillisecond=R;x.prototype.visitTimestampMicrosecond=R;x.prototype.visitTimestampNanosecond=R;x.prototype.visitTime=R;x.prototype.visitTimeSecond=R;x.prototype.visitTimeMillisecond=R;x.prototype.visitTimeMicrosecond=R;x.prototype.visitTimeNanosecond=R;x.prototype.visitDecimal=R;x.prototype.visitList=R;x.prototype.visitStruct=R;x.prototype.visitUnion=R;x.prototype.visitDenseUnion=R;x.prototype.visitSparseUnion=R;x.prototype.visitDictionary=R;x.prototype.visitInterval=R;x.prototype.visitIntervalDayTime=R;x.prototype.visitIntervalYearMonth=R;x.prototype.visitFixedSizeList=R;x.prototype.visitMap=R;const sd=new x,x_=(e,t)=>e+t;class sr extends Y{visitNull(t,n){return 0}visitInt(t,n){return t.type.bitWidth/8}visitFloat(t,n){return t.type.ArrayType.BYTES_PER_ELEMENT}visitBool(t,n){return 1/8}visitDecimal(t,n){return t.type.bitWidth/8}visitDate(t,n){return(t.type.unit+1)*4}visitTime(t,n){return t.type.bitWidth/8}visitTimestamp(t,n){return t.type.unit===G.SECOND?4:8}visitInterval(t,n){return(t.type.unit+1)*4}visitStruct(t,n){return t.children.reduce((r,i)=>r+nn.visit(i,n),0)}visitFixedSizeBinary(t,n){return t.type.byteWidth}visitMap(t,n){return 8+t.children.reduce((r,i)=>r+nn.visit(i,n),0)}visitDictionary(t,n){var r;return t.type.indices.bitWidth/8+(((r=t.dictionary)===null||r===void 0?void 0:r.getByteLength(t.values[n]))||0)}}const C_=({valueOffsets:e},t)=>8+(e[t+1]-e[t]),M_=({valueOffsets:e},t)=>8+(e[t+1]-e[t]),L_=({valueOffsets:e,stride:t,children:n},r)=>{const i=n[0],{[r*t]:s}=e,{[r*t+1]:o}=e,l=nn.getVisitFn(i.type),a=i.slice(s,o-s);let u=8;for(let c=-1,f=o-s;++c<f;)u+=l(a,c);return u},R_=({stride:e,children:t},n)=>{const r=t[0],i=r.slice(n*e,e),s=nn.getVisitFn(r.type);let o=0;for(let l=-1,a=i.length;++l<a;)o+=s(i,l);return o},U_=(e,t)=>e.type.mode===de.Dense?km(e,t):Tm(e,t),km=({type:e,children:t,typeIds:n,valueOffsets:r},i)=>{const s=e.typeIdToChildIndex[n[i]];return 8+nn.visit(t[s],r[i])},Tm=({children:e},t)=>4+nn.visitMany(e,e.map(()=>t)).reduce(x_,0);sr.prototype.visitUtf8=C_;sr.prototype.visitBinary=M_;sr.prototype.visitList=L_;sr.prototype.visitFixedSizeList=R_;sr.prototype.visitUnion=U_;sr.prototype.visitDenseUnion=km;sr.prototype.visitSparseUnion=Tm;const nn=new sr;var xm;const Cm={},Mm={};class Z{constructor(t){var n,r,i;const s=t[0]instanceof Z?t.flatMap(l=>l.data):t;if(s.length===0||s.some(l=>!(l instanceof st)))throw new TypeError("Vector constructor expects an Array of Data instances.");const o=(n=s[0])===null||n===void 0?void 0:n.type;switch(s.length){case 0:this._offsets=[0];break;case 1:{const{get:l,set:a,indexOf:u,byteLength:c}=Cm[o.typeId],f=s[0];this.isValid=m=>id(f,m),this.get=m=>l(f,m),this.set=(m,g)=>a(f,m,g),this.indexOf=m=>u(f,m),this.getByteLength=m=>c(f,m),this._offsets=[0,f.length];break}default:Object.setPrototypeOf(this,Mm[o.typeId]),this._offsets=Fm(s);break}this.data=s,this.type=o,this.stride=cn(o),this.numChildren=(i=(r=o.children)===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return this._byteLength===-1&&(this._byteLength=this.data.reduce((t,n)=>t+n.byteLength,0)),this._byteLength}get nullCount(){return this._nullCount===-1&&(this._nullCount=Em(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${p[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}set(t,n){}indexOf(t,n){return-1}includes(t,n){return this.indexOf(t,n)>0}getByteLength(t){return 0}[Symbol.iterator](){return sd.visit(this)}concat(...t){return new Z(this.data.concat(t.flatMap(n=>n.data).flat(Number.POSITIVE_INFINITY)))}slice(t,n){return new Z(bm(this,t,n,({data:r,_offsets:i},s,o)=>Om(r,i,s,o)))}toJSON(){return[...this]}toArray(){const{type:t,data:n,length:r,stride:i,ArrayType:s}=this;switch(t.typeId){case p.Int:case p.Float:case p.Decimal:case p.Time:case p.Timestamp:switch(n.length){case 0:return new s;case 1:return n[0].values.subarray(0,r*i);default:return n.reduce((o,{values:l,length:a})=>(o.array.set(l.subarray(0,a*i),o.offset),o.offset+=a*i,o),{array:new s(r*i),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var n;return this.getChildAt((n=this.type.children)===null||n===void 0?void 0:n.findIndex(r=>r.name===t))}getChildAt(t){return t>-1&&t<this.numChildren?new Z(this.data.map(({children:n})=>n[t])):null}get isMemoized(){return N.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(N.isDictionary(this.type)){const t=new fl(this.data[0].dictionary),n=this.data.map(r=>{const i=r.clone();return i.dictionary=t,i});return new Z(n)}return new fl(this)}unmemoize(){if(N.isDictionary(this.type)&&this.isMemoized){const t=this.data[0].dictionary.unmemoize(),n=this.data.map(r=>{const i=r.clone();return i.dictionary=t,i});return new Z(n)}return this}}xm=Symbol.toStringTag;Z[xm]=(e=>{e.type=N.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._nullCount=-1,e._byteLength=-1,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;const t=Object.keys(p).map(n=>p[n]).filter(n=>typeof n=="number"&&n!==p.NONE);for(const n of t){const r=ne.getVisitFnByTypeId(n),i=Fe.getVisitFnByTypeId(n),s=dl.getVisitFnByTypeId(n),o=nn.getVisitFnByTypeId(n);Cm[n]={get:r,set:i,indexOf:s,byteLength:o},Mm[n]=Object.create(e,{isValid:{value:di(id)},get:{value:di(ne.getVisitFnByTypeId(n))},set:{value:Am(Fe.getVisitFnByTypeId(n))},indexOf:{value:Dm(dl.getVisitFnByTypeId(n))},getByteLength:{value:di(nn.getVisitFnByTypeId(n))}})}return"Vector"})(Z.prototype);class fl extends Z{constructor(t){super(t.data);const n=this.get,r=this.set,i=this.slice,s=new Array(this.length);Object.defineProperty(this,"get",{value(o){const l=s[o];if(l!==void 0)return l;const a=n.call(this,o);return s[o]=a,a}}),Object.defineProperty(this,"set",{value(o,l){r.call(this,o,l),s[o]=l}}),Object.defineProperty(this,"slice",{value:(o,l)=>new fl(i.call(this,o,l))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new Z(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class Lu{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,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(t,n,r,i){return t.prep(8,24),t.writeInt64(i),t.pad(4),t.writeInt32(r),t.writeInt64(n),t.offset()}}const Ma=2,Ye=4,hn=4,it=4,Tn=new Int32Array(2),Pf=new Float32Array(Tn.buffer),zf=new Float64Array(Tn.buffer),oo=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;let vn=class Ru{constructor(t,n){this.low=t|0,this.high=n|0}static create(t,n){return t==0&&n==0?Ru.ZERO:new Ru(t,n)}toFloat64(){return(this.low>>>0)+this.high*4294967296}equals(t){return this.low==t.low&&this.high==t.high}};vn.ZERO=new vn(0,0);var Uu;(function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"})(Uu||(Uu={}));let _i=class Lm{constructor(t){this.bytes_=t,this.position_=0}static allocate(t){return new Lm(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return new vn(this.readInt32(t),this.readInt32(t+4))}readUint64(t){return new vn(this.readUint32(t),this.readUint32(t+4))}readFloat32(t){return Tn[0]=this.readInt32(t),Pf[0]}readFloat64(t){return Tn[oo?0:1]=this.readInt32(t),Tn[oo?1:0]=this.readInt32(t+4),zf[0]}writeInt8(t,n){this.bytes_[t]=n}writeUint8(t,n){this.bytes_[t]=n}writeInt16(t,n){this.bytes_[t]=n,this.bytes_[t+1]=n>>8}writeUint16(t,n){this.bytes_[t]=n,this.bytes_[t+1]=n>>8}writeInt32(t,n){this.bytes_[t]=n,this.bytes_[t+1]=n>>8,this.bytes_[t+2]=n>>16,this.bytes_[t+3]=n>>24}writeUint32(t,n){this.bytes_[t]=n,this.bytes_[t+1]=n>>8,this.bytes_[t+2]=n>>16,this.bytes_[t+3]=n>>24}writeInt64(t,n){this.writeInt32(t,n.low),this.writeInt32(t+4,n.high)}writeUint64(t,n){this.writeUint32(t,n.low),this.writeUint32(t+4,n.high)}writeFloat32(t,n){Pf[0]=n,this.writeInt32(t,Tn[0])}writeFloat64(t,n){zf[0]=n,this.writeInt32(t,Tn[oo?0:1]),this.writeInt32(t+4,Tn[oo?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+Ye+hn)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let t="";for(let n=0;n<hn;n++)t+=String.fromCharCode(this.readInt8(this.position_+Ye+n));return t}__offset(t,n){const r=t-this.readInt32(t);return n<this.readInt16(r)?this.readInt16(r+n):0}__union(t,n){return t.bb_pos=n+this.readInt32(n),t.bb=this,t}__string(t,n){t+=this.readInt32(t);const r=this.readInt32(t);let i="",s=0;if(t+=Ye,n===Uu.UTF8_BYTES)return this.bytes_.subarray(t,t+r);for(;s<r;){let o;const l=this.readUint8(t+s++);if(l<192)o=l;else{const a=this.readUint8(t+s++);if(l<224)o=(l&31)<<6|a&63;else{const u=this.readUint8(t+s++);if(l<240)o=(l&15)<<12|(a&63)<<6|u&63;else{const c=this.readUint8(t+s++);o=(l&7)<<18|(a&63)<<12|(u&63)<<6|c&63}}}o<65536?i+=String.fromCharCode(o):(o-=65536,i+=String.fromCharCode((o>>10)+55296,(o&1023)+56320))}return i}__union_with_string(t,n){return typeof t=="string"?this.__string(n):this.__union(t,n)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+Ye}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(t.length!=hn)throw new Error("FlatBuffers: file identifier must be length "+hn);for(let n=0;n<hn;n++)if(t.charCodeAt(n)!=this.readInt8(this.position()+Ye+n))return!1;return!0}createLong(t,n){return vn.create(t,n)}createScalarList(t,n){const r=[];for(let i=0;i<n;++i)t(i)!==null&&r.push(t(i));return r}createObjList(t,n){const r=[];for(let i=0;i<n;++i){const s=t(i);s!==null&&r.push(s.unpack())}return r}},Rm=class Um{constructor(t){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;t?n=t:n=1024,this.bb=_i.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(t){this.force_defaults=t}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(t,n){t>this.minalign&&(this.minalign=t);const r=~(this.bb.capacity()-this.space+n)+1&t-1;for(;this.space<r+t+n;){const i=this.bb.capacity();this.bb=Um.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(r)}pad(t){for(let n=0;n<t;n++)this.bb.writeInt8(--this.space,0)}writeInt8(t){this.bb.writeInt8(this.space-=1,t)}writeInt16(t){this.bb.writeInt16(this.space-=2,t)}writeInt32(t){this.bb.writeInt32(this.space-=4,t)}writeInt64(t){this.bb.writeInt64(this.space-=8,t)}writeFloat32(t){this.bb.writeFloat32(this.space-=4,t)}writeFloat64(t){this.bb.writeFloat64(this.space-=8,t)}addInt8(t){this.prep(1,0),this.writeInt8(t)}addInt16(t){this.prep(2,0),this.writeInt16(t)}addInt32(t){this.prep(4,0),this.writeInt32(t)}addInt64(t){this.prep(8,0),this.writeInt64(t)}addFloat32(t){this.prep(4,0),this.writeFloat32(t)}addFloat64(t){this.prep(8,0),this.writeFloat64(t)}addFieldInt8(t,n,r){(this.force_defaults||n!=r)&&(this.addInt8(n),this.slot(t))}addFieldInt16(t,n,r){(this.force_defaults||n!=r)&&(this.addInt16(n),this.slot(t))}addFieldInt32(t,n,r){(this.force_defaults||n!=r)&&(this.addInt32(n),this.slot(t))}addFieldInt64(t,n,r){(this.force_defaults||!n.equals(r))&&(this.addInt64(n),this.slot(t))}addFieldFloat32(t,n,r){(this.force_defaults||n!=r)&&(this.addFloat32(n),this.slot(t))}addFieldFloat64(t,n,r){(this.force_defaults||n!=r)&&(this.addFloat64(n),this.slot(t))}addFieldOffset(t,n,r){(this.force_defaults||n!=r)&&(this.addOffset(n),this.slot(t))}addFieldStruct(t,n,r){n!=r&&(this.nested(n),this.slot(t))}nested(t){if(t!=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(t){this.vtable!==null&&(this.vtable[t]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(t){const n=t.capacity();if(n&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const r=n<<1,i=_i.allocate(r);return i.setPosition(r-n),i.bytes().set(t.bytes(),r-n),i}addOffset(t){this.prep(Ye,0),this.writeInt32(this.offset()-t+Ye)}startObject(t){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=t;for(let n=0;n<t;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 t=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?t-this.vtable[n]:0);const i=2;this.addInt16(t-this.object_start);const s=(r+i)*Ma;this.addInt16(s);let o=0;const l=this.space;t:for(n=0;n<this.vtables.length;n++){const a=this.bb.capacity()-this.vtables[n];if(s==this.bb.readInt16(a)){for(let u=Ma;u<s;u+=Ma)if(this.bb.readInt16(l+u)!=this.bb.readInt16(a+u))continue t;o=this.vtables[n];break}}return o?(this.space=this.bb.capacity()-t,this.bb.writeInt32(this.space,o-t)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-t,this.offset()-t)),this.isNested=!1,t}finish(t,n,r){const i=r?it:0;if(n){const s=n;if(this.prep(this.minalign,Ye+hn+i),s.length!=hn)throw new Error("FlatBuffers: file identifier must be length "+hn);for(let o=hn-1;o>=0;o--)this.writeInt8(s.charCodeAt(o))}this.prep(this.minalign,Ye+i),this.addOffset(t),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,n){this.finish(t,n,!0)}requiredField(t,n){const r=this.bb.capacity()-t,i=r-this.bb.readInt32(r);if(!(this.bb.readInt16(i+n)!=0))throw new Error("FlatBuffers: field "+n+" must be set")}startVector(t,n,r){this.notNested(),this.vector_num_elems=n,this.prep(Ye,t*n),this.prep(r,t*n)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(t){if(!t)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(t))return this.string_maps.get(t);const n=this.createString(t);return this.string_maps.set(t,n),n}createString(t){if(!t)return 0;let n;if(t instanceof Uint8Array)n=t;else{n=[];let r=0;for(;r<t.length;){let i;const s=t.charCodeAt(r++);if(s<55296||s>=56320)i=s;else{const o=t.charCodeAt(r++);i=(s<<10)+o+-56613888}i<128?n.push(i):(i<2048?n.push(i>>6&31|192):(i<65536?n.push(i>>12&15|224):n.push(i>>18&7|240,i>>12&63|128),n.push(i>>6&63|128)),n.push(i&63|128))}}this.addInt8(0),this.startVector(1,n.length,1),this.bb.setPosition(this.space-=n.length);for(let r=0,i=this.space,s=this.bb.bytes();r<n.length;r++)s[i++]=n[r];return this.endVector()}createLong(t,n){return vn.create(t,n)}createObjectOffset(t){return t===null?0:typeof t=="string"?this.createString(t):t.pack(this)}createObjectOffsetList(t){const n=[];for(let r=0;r<t.length;++r){const i=t[r];if(i!==null)n.push(this.createObjectOffset(i));else throw new Error("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return n}createStructOffsetList(t,n){return n(this,t.length),this.createObjectOffsetList(t),this.endVector()}};class Bt{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsKeyValue(t,n){return(n||new Bt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,n){return t.setPosition(t.position()+it),(n||new Bt).__init(t.readInt32(t.position())+t.position(),t)}key(t){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,t):null}value(t){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,t):null}static startKeyValue(t){t.startObject(2)}static addKey(t,n){t.addFieldOffset(0,n,0)}static addValue(t,n){t.addFieldOffset(1,n,0)}static endKeyValue(t){return t.endObject()}static createKeyValue(t,n,r){return Bt.startKeyValue(t),Bt.addKey(t,n),Bt.addValue(t,r),Bt.endKeyValue(t)}}var Si;(function(e){e[e.V1=0]="V1",e[e.V2=1]="V2",e[e.V3=2]="V3",e[e.V4=3]="V4",e[e.V5=4]="V5"})(Si||(Si={}));var Ii;(function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"})(Ii||(Ii={}));var hl;(function(e){e[e.DenseArray=0]="DenseArray"})(hl||(hl={}));class oe{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsInt(t,n){return(n||new oe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,n){return t.setPosition(t.position()+it),(n||new oe).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}isSigned(){const t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startInt(t){t.startObject(2)}static addBitWidth(t,n){t.addFieldInt32(0,n,0)}static addIsSigned(t,n){t.addFieldInt8(1,+n,0)}static endInt(t){return t.endObject()}static createInt(t,n,r){return oe.startInt(t),oe.addBitWidth(t,n),oe.addIsSigned(t,r),oe.endInt(t)}}class pn{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsDictionaryEncoding(t,n){return(n||new pn).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,n){return t.setPosition(t.position()+it),(n||new pn).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}indexType(t){const n=this.bb.__offset(this.bb_pos,6);return n?(t||new oe).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isOrdered(){const t=this.bb.__offset(this.bb_pos,8);return t?!!this.bb.readInt8(this.bb_pos+t):!1}dictionaryKind(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):hl.DenseArray}static startDictionaryEncoding(t){t.startObject(4)}static addId(t,n){t.addFieldInt64(0,n,t.createLong(0,0))}static addIndexType(t,n){t.addFieldOffset(1,n,0)}static addIsOrdered(t,n){t.addFieldInt8(2,+n,0)}static addDictionaryKind(t,n){t.addFieldInt16(3,n,hl.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}class mr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsBinary(t,n){return(n||new mr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBinary(t,n){return t.setPosition(t.position()+it),(n||new mr).__init(t.readInt32(t.position())+t.position(),t)}static startBinary(t){t.startObject(0)}static endBinary(t){return t.endObject()}static createBinary(t){return mr.startBinary(t),mr.endBinary(t)}}class gr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsBool(t,n){return(n||new gr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBool(t,n){return t.setPosition(t.position()+it),(n||new gr).__init(t.readInt32(t.position())+t.position(),t)}static startBool(t){t.startObject(0)}static endBool(t){return t.endObject()}static createBool(t){return gr.startBool(t),gr.endBool(t)}}var pl;(function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"})(pl||(pl={}));let Io=class Pr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsDate(t,n){return(n||new Pr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDate(t,n){return t.setPosition(t.position()+it),(n||new Pr).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):pl.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,n){t.addFieldInt16(0,n,pl.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(t,n){return Pr.startDate(t),Pr.addUnit(t,n),Pr.endDate(t)}};class Yt{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsDecimal(t,n){return(n||new Yt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDecimal(t,n){return t.setPosition(t.position()+it),(n||new Yt).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}scale(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}bitWidth(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt32(this.bb_pos+t):128}static startDecimal(t){t.startObject(3)}static addPrecision(t,n){t.addFieldInt32(0,n,0)}static addScale(t,n){t.addFieldInt32(1,n,0)}static addBitWidth(t,n){t.addFieldInt32(2,n,128)}static endDecimal(t){return t.endObject()}static createDecimal(t,n,r,i){return Yt.startDecimal(t),Yt.addPrecision(t,n),Yt.addScale(t,r),Yt.addBitWidth(t,i),Yt.endDecimal(t)}}var bi;(function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"})(bi||(bi={}));class Qe{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsFixedSizeBinary(t,n){return(n||new Qe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeBinary(t,n){return t.setPosition(t.position()+it),(n||new Qe).__init(t.readInt32(t.position())+t.position(),t)}byteWidth(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeBinary(t){t.startObject(1)}static addByteWidth(t,n){t.addFieldInt32(0,n,0)}static endFixedSizeBinary(t){return t.endObject()}static createFixedSizeBinary(t,n){return Qe.startFixedSizeBinary(t),Qe.addByteWidth(t,n),Qe.endFixedSizeBinary(t)}}class Ke{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsFixedSizeList(t,n){return(n||new Ke).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeList(t,n){return t.setPosition(t.position()+it),(n||new Ke).__init(t.readInt32(t.position())+t.position(),t)}listSize(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeList(t){t.startObject(1)}static addListSize(t,n){t.addFieldInt32(0,n,0)}static endFixedSizeList(t){return t.endObject()}static createFixedSizeList(t,n){return Ke.startFixedSizeList(t),Ke.addListSize(t,n),Ke.endFixedSizeList(t)}}var yl;(function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"})(yl||(yl={}));class Je{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsFloatingPoint(t,n){return(n||new Je).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,n){return t.setPosition(t.position()+it),(n||new Je).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):yl.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,n){t.addFieldInt16(0,n,yl.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,n){return Je.startFloatingPoint(t),Je.addPrecision(t,n),Je.endFloatingPoint(t)}}var ml;(function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME",e[e.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(ml||(ml={}));class Ge{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsInterval(t,n){return(n||new Ge).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,n){return t.setPosition(t.position()+it),(n||new Ge).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):ml.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,n){t.addFieldInt16(0,n,ml.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,n){return Ge.startInterval(t),Ge.addUnit(t,n),Ge.endInterval(t)}}class vr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsList(t,n){return(n||new vr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsList(t,n){return t.setPosition(t.position()+it),(n||new vr).__init(t.readInt32(t.position())+t.position(),t)}static startList(t){t.startObject(0)}static endList(t){return t.endObject()}static createList(t){return vr.startList(t),vr.endList(t)}}let bo=class zr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsMap(t,n){return(n||new zr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMap(t,n){return t.setPosition(t.position()+it),(n||new zr).__init(t.readInt32(t.position())+t.position(),t)}keysSorted(){const t=this.bb.__offset(this.bb_pos,4);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startMap(t){t.startObject(1)}static addKeysSorted(t,n){t.addFieldInt8(0,+n,0)}static endMap(t){return t.endObject()}static createMap(t,n){return zr.startMap(t),zr.addKeysSorted(t,n),zr.endMap(t)}};class wr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsNull(t,n){return(n||new wr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsNull(t,n){return t.setPosition(t.position()+it),(n||new wr).__init(t.readInt32(t.position())+t.position(),t)}static startNull(t){t.startObject(0)}static endNull(t){return t.endObject()}static createNull(t){return wr.startNull(t),wr.endNull(t)}}class _r{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsStruct_(t,n){return(n||new _r).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,n){return t.setPosition(t.position()+it),(n||new _r).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return _r.startStruct_(t),_r.endStruct_(t)}}class _e{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsTime(t,n){return(n||new _e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,n){return t.setPosition(t.position()+it),(n||new _e).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):bi.MILLISECOND}bitWidth(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,n){t.addFieldInt16(0,n,bi.MILLISECOND)}static addBitWidth(t,n){t.addFieldInt32(1,n,32)}static endTime(t){return t.endObject()}static createTime(t,n,r){return _e.startTime(t),_e.addUnit(t,n),_e.addBitWidth(t,r),_e.endTime(t)}}class Se{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsTimestamp(t,n){return(n||new Se).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,n){return t.setPosition(t.position()+it),(n||new Se).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):bi.SECOND}timezone(t){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,t):null}static startTimestamp(t){t.startObject(2)}static addUnit(t,n){t.addFieldInt16(0,n,bi.SECOND)}static addTimezone(t,n){t.addFieldOffset(1,n,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,n,r){return Se.startTimestamp(t),Se.addUnit(t,n),Se.addTimezone(t,r),Se.endTimestamp(t)}}var gl;(function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"})(gl||(gl={}));class Kt{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsUnion(t,n){return(n||new Kt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,n){return t.setPosition(t.position()+it),(n||new Kt).__init(t.readInt32(t.position())+t.position(),t)}mode(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):gl.Sparse}typeIds(t){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.readInt32(this.bb.__vector(this.bb_pos+n)+t*4):0}typeIdsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}typeIdsArray(){const t=this.bb.__offset(this.bb_pos,6);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startUnion(t){t.startObject(2)}static addMode(t,n){t.addFieldInt16(0,n,gl.Sparse)}static addTypeIds(t,n){t.addFieldOffset(1,n,0)}static createTypeIdsVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addInt32(n[r]);return t.endVector()}static startTypeIdsVector(t,n){t.startVector(4,n,4)}static endUnion(t){return t.endObject()}static createUnion(t,n,r){return Kt.startUnion(t),Kt.addMode(t,n),Kt.addTypeIds(t,r),Kt.endUnion(t)}}class Sr{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsUtf8(t,n){return(n||new Sr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,n){return t.setPosition(t.position()+it),(n||new Sr).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(t){return Sr.startUtf8(t),Sr.endUtf8(t)}}var dt;(function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.FloatingPoint=3]="FloatingPoint",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct_=13]="Struct_",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.LargeList=21]="LargeList"})(dt||(dt={}));let me=class Bo{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsField(t,n){return(n||new Bo).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,n){return t.setPosition(t.position()+it),(n||new Bo).__init(t.readInt32(t.position())+t.position(),t)}name(t){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,t):null}nullable(){const t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}typeType(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):dt.NONE}type(t){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.__union(t,this.bb_pos+n):null}dictionary(t){const n=this.bb.__offset(this.bb_pos,12);return n?(t||new pn).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}children(t,n){const r=this.bb.__offset(this.bb_pos,14);return r?(n||new Bo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}childrenLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,n){const r=this.bb.__offset(this.bb_pos,16);return r?(n||new Bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,n){t.addFieldOffset(0,n,0)}static addNullable(t,n){t.addFieldInt8(1,+n,0)}static addTypeType(t,n){t.addFieldInt8(2,n,dt.NONE)}static addType(t,n){t.addFieldOffset(3,n,0)}static addDictionary(t,n){t.addFieldOffset(4,n,0)}static addChildren(t,n){t.addFieldOffset(5,n,0)}static createChildrenVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startChildrenVector(t,n){t.startVector(4,n,4)}static addCustomMetadata(t,n){t.addFieldOffset(6,n,0)}static createCustomMetadataVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startCustomMetadataVector(t,n){t.startVector(4,n,4)}static endField(t){return t.endObject()}},je=class ln{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsSchema(t,n){return(n||new ln).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,n){return t.setPosition(t.position()+it),(n||new ln).__init(t.readInt32(t.position())+t.position(),t)}endianness(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Ii.Little}fields(t,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new me).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}fieldsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new Bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.readInt64(this.bb.__vector(this.bb_pos+n)+t*8):this.bb.createLong(0,0)}featuresLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,n){t.addFieldInt16(0,n,Ii.Little)}static addFields(t,n){t.addFieldOffset(1,n,0)}static createFieldsVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startFieldsVector(t,n){t.startVector(4,n,4)}static addCustomMetadata(t,n){t.addFieldOffset(2,n,0)}static createCustomMetadataVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startCustomMetadataVector(t,n){t.startVector(4,n,4)}static addFeatures(t,n){t.addFieldOffset(3,n,0)}static createFeaturesVector(t,n){t.startVector(8,n.length,8);for(let r=n.length-1;r>=0;r--)t.addInt64(n[r]);return t.endVector()}static startFeaturesVector(t,n){t.startVector(8,n,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,n){t.finish(n)}static finishSizePrefixedSchemaBuffer(t,n){t.finish(n,void 0,!0)}static createSchema(t,n,r,i,s){return ln.startSchema(t),ln.addEndianness(t,n),ln.addFields(t,r),ln.addCustomMetadata(t,i),ln.addFeatures(t,s),ln.endSchema(t)}};class ie{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsFooter(t,n){return(n||new ie).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,n){return t.setPosition(t.position()+it),(n||new ie).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Si.V1}schema(t){const n=this.bb.__offset(this.bb_pos,6);return n?(t||new je).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}dictionaries(t,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new Lu).__init(this.bb.__vector(this.bb_pos+r)+t*24,this.bb):null}dictionariesLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,n){const r=this.bb.__offset(this.bb_pos,10);return r?(n||new Lu).__init(this.bb.__vector(this.bb_pos+r)+t*24,this.bb):null}recordBatchesLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new Bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,n){t.addFieldInt16(0,n,Si.V1)}static addSchema(t,n){t.addFieldOffset(1,n,0)}static addDictionaries(t,n){t.addFieldOffset(2,n,0)}static startDictionariesVector(t,n){t.startVector(24,n,8)}static addRecordBatches(t,n){t.addFieldOffset(3,n,0)}static startRecordBatchesVector(t,n){t.startVector(24,n,8)}static addCustomMetadata(t,n){t.addFieldOffset(4,n,0)}static createCustomMetadataVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startCustomMetadataVector(t,n){t.startVector(4,n,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,n){t.finish(n)}static finishSizePrefixedFooterBuffer(t,n){t.finish(n,void 0,!0)}}class q{constructor(t=[],n,r){this.fields=t||[],this.metadata=n||new Map,r||(r=Pu(t)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(t=>t.name)}toString(){return`Schema<{ ${this.fields.map((t,n)=>`${n}: ${t}`).join(", ")} }>`}select(t){const n=new Set(t),r=this.fields.filter(i=>n.has(i.name));return new q(r,this.metadata)}selectAt(t){const n=t.map(r=>this.fields[r]).filter(Boolean);return new q(n,this.metadata)}assign(...t){const n=t[0]instanceof q?t[0]:Array.isArray(t[0])?new q(t[0]):new q(t),r=[...this.fields],i=lo(lo(new Map,this.metadata),n.metadata),s=n.fields.filter(l=>{const a=r.findIndex(u=>u.name===l.name);return~a?(r[a]=l.clone({metadata:lo(lo(new Map,r[a].metadata),l.metadata)}))&&!1:!0}),o=Pu(s,new Map);return new q([...r,...s],i,new Map([...this.dictionaries,...o]))}}q.prototype.fields=null;q.prototype.metadata=null;q.prototype.dictionaries=null;class ut{constructor(t,n,r=!1,i){this.name=t,this.type=n,this.nullable=r,this.metadata=i||new Map}static new(...t){let[n,r,i,s]=t;return t[0]&&typeof t[0]=="object"&&({name:n}=t[0],r===void 0&&(r=t[0].type),i===void 0&&(i=t[0].nullable),s===void 0&&(s=t[0].metadata)),new ut(`${n}`,r,i,s)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[n,r,i,s]=t;return!t[0]||typeof t[0]!="object"?[n=this.name,r=this.type,i=this.nullable,s=this.metadata]=t:{name:n=this.name,type:r=this.type,nullable:i=this.nullable,metadata:s=this.metadata}=t[0],ut.new(n,r,i,s)}}ut.prototype.type=null;ut.prototype.name=null;ut.prototype.nullable=null;ut.prototype.metadata=null;function lo(e,t){return new Map([...e||new Map,...t||new Map])}function Pu(e,t=new Map){for(let n=-1,r=e.length;++n<r;){const s=e[n].type;if(N.isDictionary(s)){if(!t.has(s.id))t.set(s.id,s.dictionary);else if(t.get(s.id)!==s.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}s.children&&s.children.length>0&&Pu(s.children,t)}return t}var jf=vn,P_=Rm,z_=_i;class Fs{constructor(t,n=le.V4,r,i){this.schema=t,this.version=n,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}static decode(t){t=new z_(J(t));const n=ie.getRootAsFooter(t),r=q.decode(n.schema());return new j_(r,n)}static encode(t){const n=new P_,r=q.encode(n,t.schema);ie.startRecordBatchesVector(n,t.numRecordBatches);for(const o of[...t.recordBatches()].slice().reverse())qn.encode(n,o);const i=n.endVector();ie.startDictionariesVector(n,t.numDictionaries);for(const o of[...t.dictionaryBatches()].slice().reverse())qn.encode(n,o);const s=n.endVector();return ie.startFooter(n),ie.addSchema(n,r),ie.addVersion(n,le.V4),ie.addRecordBatches(n,i),ie.addDictionaries(n,s),ie.finishFooterBuffer(n,ie.endFooter(n)),n.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let t,n=-1,r=this.numRecordBatches;++n<r;)(t=this.getRecordBatch(n))&&(yield t)}*dictionaryBatches(){for(let t,n=-1,r=this.numDictionaries;++n<r;)(t=this.getDictionaryBatch(n))&&(yield t)}getRecordBatch(t){return t>=0&&t<this.numRecordBatches&&this._recordBatches[t]||null}getDictionaryBatch(t){return t>=0&&t<this.numDictionaries&&this._dictionaryBatches[t]||null}}class j_ extends Fs{constructor(t,n){super(t,n.version()),this._footer=n}get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}getRecordBatch(t){if(t>=0&&t<this.numRecordBatches){const n=this._footer.recordBatches(t);if(n)return qn.decode(n)}return null}getDictionaryBatch(t){if(t>=0&&t<this.numDictionaries){const n=this._footer.dictionaries(t);if(n)return qn.decode(n)}return null}}class qn{constructor(t,n,r){this.metaDataLength=t,this.offset=typeof r=="number"?r:r.low,this.bodyLength=typeof n=="number"?n:n.low}static decode(t){return new qn(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(t,n){const{metaDataLength:r}=n,i=new jf(n.offset,0),s=new jf(n.bodyLength,0);return Lu.createBlock(t,i,r,s)}}const pt=Object.freeze({done:!0,value:void 0});class Vf{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class od{tee(){return this._getDOMStream().tee()}pipe(t,n){return this._getNodeStream().pipe(t,n)}pipeTo(t,n){return this._getDOMStream().pipeTo(t,n)}pipeThrough(t,n){return this._getDOMStream().pipeThrough(t,n)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class V_ extends od{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}get closed(){return this._closedPromise}cancel(t){return D(this,void 0,void 0,function*(){yield this.return(t)})}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){const{resolvers:t}=this;for(;t.length>0;)t.shift().resolve(pt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return ge.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return ge.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return D(this,void 0,void 0,function*(){return yield this.abort(t),pt})}return(t){return D(this,void 0,void 0,function*(){return yield this.close(),pt})}read(t){return D(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return D(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(...t){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(pt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class Eo extends V_{write(t){if((t=J(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?ku(this.toUint8Array(!0)):this.toUint8Array(!1).then(ku)}toUint8Array(t=!1){return t?en(this._values)[0]:D(this,void 0,void 0,function*(){var n,r;const i=[];let s=0;try{for(var o=Br(this),l;l=yield o.next(),!l.done;){const a=l.value;i.push(a),s+=a.byteLength}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=o.return)&&(yield r.call(o))}finally{if(n)throw n.error}}return en(i,s)[0]})}}class vl{constructor(t){t&&(this.source=new $_(ge.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class Bi{constructor(t){t instanceof Bi?this.source=t.source:t instanceof Eo?this.source=new ur(ge.fromAsyncIterable(t)):_y(t)?this.source=new ur(ge.fromNodeStream(t)):Yc(t)?this.source=new ur(ge.fromDOMStream(t)):wy(t)?this.source=new ur(ge.fromDOMStream(t.body)):Ms(t)?this.source=new ur(ge.fromIterable(t)):Jn(t)?this.source=new ur(ge.fromAsyncIterable(t)):Di(t)&&(this.source=new ur(ge.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class $_{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,n="read"){return this.source.next({cmd:n,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||pt)}return(t){return Object.create(this.source.return&&this.source.return(t)||pt)}}class ur{constructor(t){this.source=t,this._closedPromise=new Promise(n=>this._closedPromiseResolve=n)}cancel(t){return D(this,void 0,void 0,function*(){yield this.return(t)})}get closed(){return this._closedPromise}read(t){return D(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return D(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(t,n="read"){return D(this,void 0,void 0,function*(){return yield this.source.next({cmd:n,size:t})})}throw(t){return D(this,void 0,void 0,function*(){const n=this.source.throw&&(yield this.source.throw(t))||pt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}return(t){return D(this,void 0,void 0,function*(){const n=this.source.return&&(yield this.source.return(t))||pt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}}class $f extends vl{constructor(t,n){super(),this.position=0,this.buffer=J(t),this.size=typeof n>"u"?this.buffer.byteLength:n}readInt32(t){const{buffer:n,byteOffset:r}=this.readAt(t,4);return new DataView(n,r).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),t<this.size}read(t){const{buffer:n,size:r,position:i}=this;return n&&i<r?(typeof t!="number"&&(t=Number.POSITIVE_INFINITY),this.position=Math.min(r,i+Math.min(r-i,t)),n.subarray(i,this.position)):null}readAt(t,n){const r=this.buffer,i=Math.min(this.size,t+n);return r?r.subarray(t,i):new Uint8Array(n)}close(){this.buffer&&(this.buffer=null)}throw(t){return this.close(),{done:!0,value:t}}return(t){return this.close(),{done:!0,value:t}}}class wl extends Bi{constructor(t,n){super(),this.position=0,this._handle=t,typeof n=="number"?this.size=n:this._pending=D(this,void 0,void 0,function*(){this.size=(yield t.stat()).size,delete this._pending})}readInt32(t){return D(this,void 0,void 0,function*(){const{buffer:n,byteOffset:r}=yield this.readAt(t,4);return new DataView(n,r).getInt32(0,!0)})}seek(t){return D(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),t<this.size})}read(t){return D(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:n,size:r,position:i}=this;if(n&&i<r){typeof t!="number"&&(t=Number.POSITIVE_INFINITY);let s=i,o=0,l=0;const a=Math.min(r,s+Math.min(r-s,t)),u=new Uint8Array(Math.max(0,(this.position=a)-s));for(;(s+=l)<a&&(o+=l)<u.byteLength;)({bytesRead:l}=yield n.read(u,o,u.byteLength-o,s));return u}return null})}readAt(t,n){return D(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:r,size:i}=this;if(r&&t+n<i){const s=Math.min(i,t+n),o=new Uint8Array(s-t);return(yield r.read(o,0,n,t)).buffer}return new Uint8Array(n)})}close(){return D(this,void 0,void 0,function*(){const t=this._handle;this._handle=null,t&&(yield t.close())})}throw(t){return D(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}return(t){return D(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}}const W_=65536;function ti(e){return e<0&&(e=4294967295+e+1),`0x${e.toString(16)}`}const Ei=8,ld=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class Pm{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){const n=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),r=new Uint32Array([t.buffer[1]>>>16,t.buffer[1]&65535,t.buffer[0]>>>16,t.buffer[0]&65535]);let i=n[3]*r[3];this.buffer[0]=i&65535;let s=i>>>16;return i=n[2]*r[3],s+=i,i=n[3]*r[2]>>>0,s+=i,this.buffer[0]+=s<<16,this.buffer[1]=s>>>0<i?W_:0,this.buffer[1]+=s>>>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(t){const n=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],n<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=n}lessThan(t){return this.buffer[1]<t.buffer[1]||this.buffer[1]===t.buffer[1]&&this.buffer[0]<t.buffer[0]}equals(t){return this.buffer[1]===t.buffer[1]&&this.buffer[0]==t.buffer[0]}greaterThan(t){return t.lessThan(this)}hex(){return`${ti(this.buffer[1])} ${ti(this.buffer[0])}`}}class tt extends Pm{times(t){return this._times(t),this}plus(t){return this._plus(t),this}static from(t,n=new Uint32Array(2)){return tt.fromString(typeof t=="string"?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(2)){return tt.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(2)){const r=t.length,i=new tt(n);for(let s=0;s<r;){const o=Ei<r-s?Ei:r-s,l=new tt(new Uint32Array([Number.parseInt(t.slice(s,s+o),10),0])),a=new tt(new Uint32Array([ld[o],0]));i.times(a),i.plus(l),s+=o}return i}static convertArray(t){const n=new Uint32Array(t.length*2);for(let r=-1,i=t.length;++r<i;)tt.from(t[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(t,n){return new tt(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new tt(new Uint32Array(t.buffer)).plus(n)}}class Ht extends Pm{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(t){return this._times(t),this}plus(t){return this._plus(t),this}lessThan(t){const n=this.buffer[1]<<0,r=t.buffer[1]<<0;return n<r||n===r&&this.buffer[0]<t.buffer[0]}static from(t,n=new Uint32Array(2)){return Ht.fromString(typeof t=="string"?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(2)){return Ht.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(2)){const r=t.startsWith("-"),i=t.length,s=new Ht(n);for(let o=r?1:0;o<i;){const l=Ei<i-o?Ei:i-o,a=new Ht(new Uint32Array([Number.parseInt(t.slice(o,o+l),10),0])),u=new Ht(new Uint32Array([ld[l],0]));s.times(u),s.plus(a),o+=l}return r?s.negate():s}static convertArray(t){const n=new Uint32Array(t.length*2);for(let r=-1,i=t.length;++r<i;)Ht.from(t[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(t,n){return new Ht(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new Ht(new Uint32Array(t.buffer)).plus(n)}}class Ve{constructor(t){this.buffer=t}high(){return new Ht(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Ht(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(t){const n=new tt(new Uint32Array([this.buffer[3],0])),r=new tt(new Uint32Array([this.buffer[2],0])),i=new tt(new Uint32Array([this.buffer[1],0])),s=new tt(new Uint32Array([this.buffer[0],0])),o=new tt(new Uint32Array([t.buffer[3],0])),l=new tt(new Uint32Array([t.buffer[2],0])),a=new tt(new Uint32Array([t.buffer[1],0])),u=new tt(new Uint32Array([t.buffer[0],0]));let c=tt.multiply(s,u);this.buffer[0]=c.low();const f=new tt(new Uint32Array([c.high(),0]));return c=tt.multiply(i,u),f.plus(c),c=tt.multiply(s,a),f.plus(c),this.buffer[1]=f.low(),this.buffer[3]=f.lessThan(c)?1:0,this.buffer[2]=f.high(),new tt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(tt.multiply(r,u)).plus(tt.multiply(i,a)).plus(tt.multiply(s,l)),this.buffer[3]+=tt.multiply(n,u).plus(tt.multiply(r,a)).plus(tt.multiply(i,l)).plus(tt.multiply(s,o)).low(),this}plus(t){const n=new Uint32Array(4);return n[3]=this.buffer[3]+t.buffer[3]>>>0,n[2]=this.buffer[2]+t.buffer[2]>>>0,n[1]=this.buffer[1]+t.buffer[1]>>>0,n[0]=this.buffer[0]+t.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`${ti(this.buffer[3])} ${ti(this.buffer[2])} ${ti(this.buffer[1])} ${ti(this.buffer[0])}`}static multiply(t,n){return new Ve(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new Ve(new Uint32Array(t.buffer)).plus(n)}static from(t,n=new Uint32Array(4)){return Ve.fromString(typeof t=="string"?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(4)){return Ve.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(4)){const r=t.startsWith("-"),i=t.length,s=new Ve(n);for(let o=r?1:0;o<i;){const l=Ei<i-o?Ei:i-o,a=new Ve(new Uint32Array([Number.parseInt(t.slice(o,o+l),10),0,0,0])),u=new Ve(new Uint32Array([ld[l],0,0,0]));s.times(u),s.plus(a),o+=l}return r?s.negate():s}static convertArray(t){const n=new Uint32Array(t.length*4);for(let r=-1,i=t.length;++r<i;)Ve.from(t[r],new Uint32Array(n.buffer,n.byteOffset+4*4*r,4));return n}}class zm extends Y{constructor(t,n,r,i){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=t,this.nodes=n,this.buffers=r,this.dictionaries=i}visit(t){return super.visit(t instanceof ut?t.type:t)}visitNull(t,{length:n}=this.nextFieldNode()){return H({type:t,length:n})}visitBool(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitInt(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitFloat(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitUtf8(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitBinary(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitFixedSizeBinary(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitDate(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitTimestamp(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitTime(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitDecimal(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitList(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}visitStruct(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),children:this.visitMany(t.children)})}visitUnion(t){return t.mode===de.Sparse?this.visitSparseUnion(t):this.visitDenseUnion(t)}visitDenseUnion(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),typeIds:this.readTypeIds(t),valueOffsets:this.readOffsets(t),children:this.visitMany(t.children)})}visitSparseUnion(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),typeIds:this.readTypeIds(t),children:this.visitMany(t.children)})}visitDictionary(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t.indices),dictionary:this.readDictionary(t)})}visitInterval(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitFixedSizeList(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),child:this.visit(t.children[0])})}visitMap(t,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:t,length:n,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(t,n,r=this.nextBufferRange()){return n>0&&this.readData(t,r)||new Uint8Array(0)}readOffsets(t,n){return this.readData(t,n)}readTypeIds(t,n){return this.readData(t,n)}readData(t,{length:n,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+n)}readDictionary(t){return this.dictionaries.get(t.id)}}class H_ extends zm{constructor(t,n,r,i){super(new Uint8Array(0),n,r,i),this.sources=t}readNullBitmap(t,n,{offset:r}=this.nextBufferRange()){return n<=0?new Uint8Array(0):cl(this.sources[r])}readOffsets(t,{offset:n}=this.nextBufferRange()){return rt(Uint8Array,rt(Int32Array,this.sources[n]))}readTypeIds(t,{offset:n}=this.nextBufferRange()){return rt(Uint8Array,rt(t.ArrayType,this.sources[n]))}readData(t,{offset:n}=this.nextBufferRange()){const{sources:r}=this;return N.isTimestamp(t)||(N.isInt(t)||N.isTime(t))&&t.bitWidth===64||N.isDate(t)&&t.unit===Bn.MILLISECOND?rt(Uint8Array,Ht.convertArray(r[n])):N.isDecimal(t)?rt(Uint8Array,Ve.convertArray(r[n])):N.isBinary(t)||N.isFixedSizeBinary(t)?Y_(r[n]):N.isBool(t)?cl(r[n]):N.isUtf8(t)?Hc(r[n].join("")):rt(Uint8Array,rt(t.ArrayType,r[n].map(i=>+i)))}}function Y_(e){const t=e.join(""),n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r>>1]=Number.parseInt(t.slice(r,r+2),16);return n}class C extends Y{compareSchemas(t,n){return t===n||n instanceof t.constructor&&this.compareManyFields(t.fields,n.fields)}compareManyFields(t,n){return t===n||Array.isArray(t)&&Array.isArray(n)&&t.length===n.length&&t.every((r,i)=>this.compareFields(r,n[i]))}compareFields(t,n){return t===n||n instanceof t.constructor&&t.name===n.name&&t.nullable===n.nullable&&this.visit(t.type,n.type)}}function re(e,t){return t instanceof e.constructor}function Ls(e,t){return e===t||re(e,t)}function On(e,t){return e===t||re(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function ea(e,t){return e===t||re(e,t)&&e.precision===t.precision}function Q_(e,t){return e===t||re(e,t)&&e.byteWidth===t.byteWidth}function ad(e,t){return e===t||re(e,t)&&e.unit===t.unit}function Rs(e,t){return e===t||re(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Us(e,t){return e===t||re(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function K_(e,t){return e===t||re(e,t)&&e.children.length===t.children.length&&tr.compareManyFields(e.children,t.children)}function J_(e,t){return e===t||re(e,t)&&e.children.length===t.children.length&&tr.compareManyFields(e.children,t.children)}function ud(e,t){return e===t||re(e,t)&&e.mode===t.mode&&e.typeIds.every((n,r)=>n===t.typeIds[r])&&tr.compareManyFields(e.children,t.children)}function G_(e,t){return e===t||re(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&tr.visit(e.indices,t.indices)&&tr.visit(e.dictionary,t.dictionary)}function cd(e,t){return e===t||re(e,t)&&e.unit===t.unit}function X_(e,t){return e===t||re(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&tr.compareManyFields(e.children,t.children)}function Z_(e,t){return e===t||re(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&tr.compareManyFields(e.children,t.children)}C.prototype.visitNull=Ls;C.prototype.visitBool=Ls;C.prototype.visitInt=On;C.prototype.visitInt8=On;C.prototype.visitInt16=On;C.prototype.visitInt32=On;C.prototype.visitInt64=On;C.prototype.visitUint8=On;C.prototype.visitUint16=On;C.prototype.visitUint32=On;C.prototype.visitUint64=On;C.prototype.visitFloat=ea;C.prototype.visitFloat16=ea;C.prototype.visitFloat32=ea;C.prototype.visitFloat64=ea;C.prototype.visitUtf8=Ls;C.prototype.visitBinary=Ls;C.prototype.visitFixedSizeBinary=Q_;C.prototype.visitDate=ad;C.prototype.visitDateDay=ad;C.prototype.visitDateMillisecond=ad;C.prototype.visitTimestamp=Rs;C.prototype.visitTimestampSecond=Rs;C.prototype.visitTimestampMillisecond=Rs;C.prototype.visitTimestampMicrosecond=Rs;C.prototype.visitTimestampNanosecond=Rs;C.prototype.visitTime=Us;C.prototype.visitTimeSecond=Us;C.prototype.visitTimeMillisecond=Us;C.prototype.visitTimeMicrosecond=Us;C.prototype.visitTimeNanosecond=Us;C.prototype.visitDecimal=Ls;C.prototype.visitList=K_;C.prototype.visitStruct=J_;C.prototype.visitUnion=ud;C.prototype.visitDenseUnion=ud;C.prototype.visitSparseUnion=ud;C.prototype.visitDictionary=G_;C.prototype.visitInterval=cd;C.prototype.visitIntervalDayTime=cd;C.prototype.visitIntervalYearMonth=cd;C.prototype.visitFixedSizeList=X_;C.prototype.visitMap=Z_;const tr=new C;function zu(e,t){return tr.compareSchemas(e,t)}function La(e,t){return q_(e,t.map(n=>n.data.concat()))}function q_(e,t){const n=[...e.fields],r=[],i={numBatches:t.reduce((f,m)=>Math.max(f,m.length),0)};let s=0,o=0,l=-1;const a=t.length;let u,c=[];for(;i.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,l=-1;++l<a;)c[l]=u=t[l].shift(),o=Math.min(o,u?u.length:o);Number.isFinite(o)&&(c=t1(n,o,c,t,i),o>0&&(r[s++]=H({type:new zt(n),length:o,nullCount:0,children:c.slice()})))}return[e=e.assign(n),r.map(f=>new Jt(e,f))]}function t1(e,t,n,r,i){var s;const o=(t+63&-64)>>3;for(let l=-1,a=r.length;++l<a;){const u=n[l],c=u==null?void 0:u.length;if(c>=t)c===t?n[l]=u:(n[l]=u.slice(0,t),i.numBatches=Math.max(i.numBatches,r[l].unshift(u.slice(t,c-t))));else{const f=e[l];e[l]=f.clone({nullable:!0}),n[l]=(s=u==null?void 0:u._changeLengthAndBackfillNullBitmap(t))!==null&&s!==void 0?s:H({type:f.type,length:t,nullCount:t,nullBitmap:new Uint8Array(o)})}}return n}var jm;class Pt{constructor(...t){var n,r;if(t.length===0)return this.batches=[],this.schema=new q([]),this._offsets=[0],this;let i,s;t[0]instanceof q&&(i=t.shift()),t[t.length-1]instanceof Uint32Array&&(s=t.pop());const o=a=>{if(a){if(a instanceof Jt)return[a];if(a instanceof Pt)return a.batches;if(a instanceof st){if(a.type instanceof zt)return[new Jt(new q(a.type.children),a)]}else{if(Array.isArray(a))return a.flatMap(u=>o(u));if(typeof a[Symbol.iterator]=="function")return[...a].flatMap(u=>o(u));if(typeof a=="object"){const u=Object.keys(a),c=u.map(g=>new Z([a[g]])),f=new q(u.map((g,v)=>new ut(String(g),c[v].type))),[,m]=La(f,c);return m.length===0?[new Jt(a)]:m}}}return[]},l=t.flatMap(a=>o(a));if(i=(r=i??((n=l[0])===null||n===void 0?void 0:n.schema))!==null&&r!==void 0?r:new q([]),!(i instanceof q))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const a of l){if(!(a instanceof Jt))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!zu(i,a.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=l,this._offsets=s??Fm(this.data)}get data(){return this.batches.map(({data:t})=>t)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((t,n)=>t+n.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=Em(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}set(t,n){}indexOf(t,n){return-1}getByteLength(t){return 0}[Symbol.iterator](){return this.batches.length>0?sd.visit(new Z(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
48
48
|
${this.toArray().join(`,
|
49
49
|
`)}
|
50
|
-
]`}concat(...t){const n=this.schema,r=this.data.concat(t.flatMap(({data:i})=>i));return new Pt(n,r.map(i=>new Jt(n,i)))}slice(t,n){const r=this.schema;[t,n]=bm({length:this.numRows},t,n);const i=Om(this.data,this._offsets,t,n);return new Pt(r,i.map(s=>new Jt(r,s)))}getChild(t){return this.getChildAt(this.schema.fields.findIndex(n=>n.name===t))}getChildAt(t){if(t>-1&&t<this.schema.fields.length){const n=this.data.map(r=>r.children[t]);if(n.length===0){const{type:r}=this.schema.fields[t],i=H({type:r,length:0,nullCount:0});n.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new Z(n)}return null}setChild(t,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===t),n)}setChildAt(t,n){let r=this.schema,i=[...this.batches];if(t>-1&&t<this.numCols){n||(n=new Z([H({type:new Xn,length:this.numRows})]));const s=r.fields.slice(),o=s[t].clone({type:n.type}),l=this.schema.fields.map((a,u)=>this.getChildAt(u));[s[t],l[t]]=[o,n],[r,i]=La(r,l)}return new Pt(r,i)}select(t){const n=this.schema.fields.reduce((r,i,s)=>r.set(i.name,s),new Map);return this.selectAt(t.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(t){const n=this.schema.selectAt(t),r=this.batches.map(i=>i.selectAt(t));return new Pt(n,r)}assign(t){const n=this.schema.fields,[r,i]=t.schema.fields.reduce((l,a,u)=>{const[c,f]=l,p=n.findIndex(g=>g.name===a.name);return~p?f[p]=u:c.push(u),l},[[],[]]),s=this.schema.assign(t.schema),o=[...n.map((l,a)=>[a,i[a]]).map(([l,a])=>a===void 0?this.getChildAt(l):t.getChildAt(a)),...r.map(l=>t.getChildAt(l))].filter(Boolean);return new Pt(...La(s,o))}}jm=Symbol.toStringTag;Pt[jm]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=di(id),e.get=di(ne.getVisitFn(y.Struct)),e.set=Am(Fe.getVisitFn(y.Struct)),e.indexOf=Dm(dl.getVisitFn(y.Struct)),e.getByteLength=di(nn.getVisitFn(y.Struct)),"Table"))(Pt.prototype);var Vm;let Jt=class Wi{constructor(...t){switch(t.length){case 2:{if([this.schema]=t,!(this.schema instanceof q))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=H({nullCount:0,type:new zt(this.schema.fields),children:this.schema.fields.map(n=>H({type:n.type,nullCount:0}))})]=t,!(this.data instanceof st))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=Wf(this.schema,this.data.children);break}case 1:{const[n]=t,{fields:r,children:i,length:s}=Object.keys(n).reduce((a,u,c)=>(a.children[c]=n[u],a.length=Math.max(a.length,n[u].length),a.fields[c]=ut.new({name:u,type:n[u].type,nullable:!0}),a),{length:0,fields:new Array,children:new Array}),o=new q(r),l=H({type:new zt(r),length:s,children:i,nullCount:0});[this.schema,this.data]=Wf(o,l.children,s);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=$m(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(t){return this.data.getValid(t)}get(t){return ne.visit(this.data,t)}set(t,n){return Fe.visit(this.data,t,n)}indexOf(t,n){return dl.visit(this.data,t,n)}getByteLength(t){return nn.visit(this.data,t)}[Symbol.iterator](){return sd.visit(new Z([this.data]))}toArray(){return[...this]}concat(...t){return new Pt(this.schema,[this,...t])}slice(t,n){const[r]=new Z([this.data]).slice(t,n).data;return new Wi(this.schema,r)}getChild(t){var n;return this.getChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(r=>r.name===t))}getChildAt(t){return t>-1&&t<this.schema.fields.length?new Z([this.data.children[t]]):null}setChild(t,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===t),n)}setChildAt(t,n){let r=this.schema,i=this.data;if(t>-1&&t<this.numCols){n||(n=new Z([H({type:new Xn,length:this.numRows})]));const s=r.fields.slice(),o=i.children.slice(),l=s[t].clone({type:n.type});[s[t],o[t]]=[l,n.data[0]],r=new q(s,new Map(this.schema.metadata)),i=H({type:new zt(s),children:o})}return new Wi(r,i)}select(t){const n=this.schema.select(t),r=new zt(n.fields),i=[];for(const s of t){const o=this.schema.fields.findIndex(l=>l.name===s);~o&&(i[o]=this.data.children[o])}return new Wi(n,H({type:r,length:this.numRows,children:i}))}selectAt(t){const n=this.schema.selectAt(t),r=t.map(s=>this.data.children[s]).filter(Boolean),i=H({type:new zt(n.fields),length:this.numRows,children:r});return new Wi(n,i)}};Vm=Symbol.toStringTag;Jt[Vm]=(e=>(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(Jt.prototype);function Wf(e,t,n=t.reduce((r,i)=>Math.max(r,i.length),0)){var r;const i=[...e.fields],s=[...t],o=(n+63&-64)>>3;for(const[l,a]of e.fields.entries()){const u=t[l];(!u||u.length!==n)&&(i[l]=a.clone({nullable:!0}),s[l]=(r=u==null?void 0:u._changeLengthAndBackfillNullBitmap(n))!==null&&r!==void 0?r:H({type:a.type,length:n,nullCount:n,nullBitmap:new Uint8Array(o)}))}return[e.assign(i),H({type:new zt(i),length:n,children:s})]}function $m(e,t,n=new Map){for(let r=-1,i=e.length;++r<i;){const o=e[r].type,l=t[r];if(k.isDictionary(o)){if(!n.has(o.id))l.dictionary&&n.set(o.id,l.dictionary);else if(n.get(o.id)!==l.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}o.children&&o.children.length>0&&$m(o.children,l.children,n)}return n}class dd extends Jt{constructor(t){const n=t.fields.map(i=>H({type:i.type})),r=H({type:new zt(t.fields),nullCount:0,children:n});super(t,r)}}var _l;(function(e){e[e.BUFFER=0]="BUFFER"})(_l||(_l={}));var Sl;(function(e){e[e.LZ4_FRAME=0]="LZ4_FRAME",e[e.ZSTD=1]="ZSTD"})(Sl||(Sl={}));class xn{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsBodyCompression(t,n){return(n||new xn).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,n){return t.setPosition(t.position()+it),(n||new xn).__init(t.readInt32(t.position())+t.position(),t)}codec(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):Sl.LZ4_FRAME}method(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt8(this.bb_pos+t):_l.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,n){t.addFieldInt8(0,n,Sl.LZ4_FRAME)}static addMethod(t,n){t.addFieldInt8(1,n,_l.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,n,r){return xn.startBodyCompression(t),xn.addCodec(t,n),xn.addMethod(t,r),xn.endBodyCompression(t)}}class Wm{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,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(t,n,r){return t.prep(8,16),t.writeInt64(r),t.writeInt64(n),t.offset()}}let Hm=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,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(t,n,r){return t.prep(8,16),t.writeInt64(r),t.writeInt64(n),t.offset()}},dn=class ju{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsRecordBatch(t,n){return(n||new ju).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,n){return t.setPosition(t.position()+it),(n||new ju).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}nodes(t,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new Hm).__init(this.bb.__vector(this.bb_pos+r)+t*16,this.bb):null}nodesLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new Wm).__init(this.bb.__vector(this.bb_pos+r)+t*16,this.bb):null}buffersLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){const n=this.bb.__offset(this.bb_pos,10);return n?(t||new xn).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,n){t.addFieldInt64(0,n,t.createLong(0,0))}static addNodes(t,n){t.addFieldOffset(1,n,0)}static startNodesVector(t,n){t.startVector(16,n,8)}static addBuffers(t,n){t.addFieldOffset(2,n,0)}static startBuffersVector(t,n){t.startVector(16,n,8)}static addCompression(t,n){t.addFieldOffset(3,n,0)}static endRecordBatch(t){return t.endObject()}},jr=class Vu{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsDictionaryBatch(t,n){return(n||new Vu).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,n){return t.setPosition(t.position()+it),(n||new Vu).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}data(t){const n=this.bb.__offset(this.bb_pos,6);return n?(t||new dn).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isDelta(){const t=this.bb.__offset(this.bb_pos,8);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startDictionaryBatch(t){t.startObject(3)}static addId(t,n){t.addFieldInt64(0,n,t.createLong(0,0))}static addData(t,n){t.addFieldOffset(1,n,0)}static addIsDelta(t,n){t.addFieldInt8(2,+n,0)}static endDictionaryBatch(t){return t.endObject()}};var Il;(function(e){e[e.NONE=0]="NONE",e[e.Schema=1]="Schema",e[e.DictionaryBatch=2]="DictionaryBatch",e[e.RecordBatch=3]="RecordBatch",e[e.Tensor=4]="Tensor",e[e.SparseTensor=5]="SparseTensor"})(Il||(Il={}));let Dn=class Pe{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsMessage(t,n){return(n||new Pe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,n){return t.setPosition(t.position()+it),(n||new Pe).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Si.V1}headerType(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):Il.NONE}header(t){const n=this.bb.__offset(this.bb_pos,8);return n?this.bb.__union(t,this.bb_pos+n):null}bodyLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}customMetadata(t,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new Bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,n){t.addFieldInt16(0,n,Si.V1)}static addHeaderType(t,n){t.addFieldInt8(1,n,Il.NONE)}static addHeader(t,n){t.addFieldOffset(2,n,0)}static addBodyLength(t,n){t.addFieldInt64(3,n,t.createLong(0,0))}static addCustomMetadata(t,n){t.addFieldOffset(4,n,0)}static createCustomMetadataVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startCustomMetadataVector(t,n){t.startVector(4,n,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,n){t.finish(n)}static finishSizePrefixedMessageBuffer(t,n){t.finish(n,void 0,!0)}static createMessage(t,n,r,i,s,o){return Pe.startMessage(t),Pe.addVersion(t,n),Pe.addHeaderType(t,r),Pe.addHeader(t,i),Pe.addBodyLength(t,s),Pe.addCustomMetadata(t,o),Pe.endMessage(t)}};var e1=vn;class n1 extends Y{visit(t,n){return t==null||n==null?void 0:super.visit(t,n)}visitNull(t,n){return wr.startNull(n),wr.endNull(n)}visitInt(t,n){return oe.startInt(n),oe.addBitWidth(n,t.bitWidth),oe.addIsSigned(n,t.isSigned),oe.endInt(n)}visitFloat(t,n){return Je.startFloatingPoint(n),Je.addPrecision(n,t.precision),Je.endFloatingPoint(n)}visitBinary(t,n){return mr.startBinary(n),mr.endBinary(n)}visitBool(t,n){return gr.startBool(n),gr.endBool(n)}visitUtf8(t,n){return Sr.startUtf8(n),Sr.endUtf8(n)}visitDecimal(t,n){return Yt.startDecimal(n),Yt.addScale(n,t.scale),Yt.addPrecision(n,t.precision),Yt.addBitWidth(n,t.bitWidth),Yt.endDecimal(n)}visitDate(t,n){return Io.startDate(n),Io.addUnit(n,t.unit),Io.endDate(n)}visitTime(t,n){return _e.startTime(n),_e.addUnit(n,t.unit),_e.addBitWidth(n,t.bitWidth),_e.endTime(n)}visitTimestamp(t,n){const r=t.timezone&&n.createString(t.timezone)||void 0;return Se.startTimestamp(n),Se.addUnit(n,t.unit),r!==void 0&&Se.addTimezone(n,r),Se.endTimestamp(n)}visitInterval(t,n){return Ge.startInterval(n),Ge.addUnit(n,t.unit),Ge.endInterval(n)}visitList(t,n){return vr.startList(n),vr.endList(n)}visitStruct(t,n){return _r.startStruct_(n),_r.endStruct_(n)}visitUnion(t,n){Kt.startTypeIdsVector(n,t.typeIds.length);const r=Kt.createTypeIdsVector(n,t.typeIds);return Kt.startUnion(n),Kt.addMode(n,t.mode),Kt.addTypeIds(n,r),Kt.endUnion(n)}visitDictionary(t,n){const r=this.visit(t.indices,n);return pn.startDictionaryEncoding(n),pn.addId(n,new e1(t.id,0)),pn.addIsOrdered(n,t.isOrdered),r!==void 0&&pn.addIndexType(n,r),pn.endDictionaryEncoding(n)}visitFixedSizeBinary(t,n){return Qe.startFixedSizeBinary(n),Qe.addByteWidth(n,t.byteWidth),Qe.endFixedSizeBinary(n)}visitFixedSizeList(t,n){return Ke.startFixedSizeList(n),Ke.addListSize(n,t.listSize),Ke.endFixedSizeList(n)}visitMap(t,n){return bo.startMap(n),bo.addKeysSorted(n,t.keysSorted),bo.endMap(n)}}const Ra=new n1;function r1(e,t=new Map){return new q(s1(e,t),Fo(e.customMetadata),t)}function Ym(e){return new fe(e.count,Qm(e.columns),Km(e.columns))}function i1(e){return new rn(Ym(e.data),e.id,e.isDelta)}function s1(e,t){return(e.fields||[]).filter(Boolean).map(n=>ut.fromJSON(n,t))}function Hf(e,t){return(e.children||[]).filter(Boolean).map(n=>ut.fromJSON(n,t))}function Qm(e){return(e||[]).reduce((t,n)=>[...t,new Cr(n.count,o1(n.VALIDITY)),...Qm(n.children)],[])}function Km(e,t=[]){for(let n=-1,r=(e||[]).length;++n<r;){const i=e[n];i.VALIDITY&&t.push(new Ze(t.length,i.VALIDITY.length)),i.TYPE&&t.push(new Ze(t.length,i.TYPE.length)),i.OFFSET&&t.push(new Ze(t.length,i.OFFSET.length)),i.DATA&&t.push(new Ze(t.length,i.DATA.length)),t=Km(i.children,t)}return t}function o1(e){return(e||[]).reduce((t,n)=>t+ +(n===0),0)}function l1(e,t){let n,r,i,s,o,l;return!t||!(s=e.dictionary)?(o=Qf(e,Hf(e,t)),i=new ut(e.name,o,e.nullable,Fo(e.customMetadata))):t.has(n=s.id)?(r=(r=s.indexType)?Yf(r):new bs,l=new wi(t.get(n),r,n,s.isOrdered),i=new ut(e.name,l,e.nullable,Fo(e.customMetadata))):(r=(r=s.indexType)?Yf(r):new bs,t.set(n,o=Qf(e,Hf(e,t))),l=new wi(o,r,n,s.isOrdered),i=new ut(e.name,l,e.nullable,Fo(e.customMetadata))),i||null}function Fo(e){return new Map(Object.entries(e||{}))}function Yf(e){return new Zn(e.isSigned,e.bitWidth)}function Qf(e,t){const n=e.type.name;switch(n){case"NONE":return new Xn;case"null":return new Xn;case"binary":return new Zo;case"utf8":return new qo;case"bool":return new tl;case"list":return new sl((t||[])[0]);case"struct":return new zt(t||[]);case"struct_":return new zt(t||[])}switch(n){case"int":{const r=e.type;return new Zn(r.isSigned,r.bitWidth)}case"floatingpoint":{const r=e.type;return new Bs(te[r.precision])}case"decimal":{const r=e.type;return new el(r.scale,r.precision,r.bitWidth)}case"date":{const r=e.type;return new nl(Bn[r.unit])}case"time":{const r=e.type;return new Es(G[r.unit],r.bitWidth)}case"timestamp":{const r=e.type;return new rl(G[r.unit],r.timezone)}case"interval":{const r=e.type;return new il(Gn[r.unit])}case"union":{const r=e.type;return new ol(de[r.mode],r.typeIds||[],t||[])}case"fixedsizebinary":{const r=e.type;return new ll(r.byteWidth)}case"fixedsizelist":{const r=e.type;return new al(r.listSize,(t||[])[0])}case"map":{const r=e.type;return new ul((t||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var Nr=vn,a1=Rm,u1=_i;class jt{constructor(t,n,r,i){this._version=n,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength=typeof t=="number"?t:t.low}static fromJSON(t,n){const r=new jt(0,le.V4,n);return r._createHeader=c1(t,n),r}static decode(t){t=new u1(J(t));const n=Dn.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),s=n.headerType(),o=new jt(r,i,s);return o._createHeader=d1(n,s),o}static encode(t){const n=new a1;let r=-1;return t.isSchema()?r=q.encode(n,t.header()):t.isRecordBatch()?r=fe.encode(n,t.header()):t.isDictionaryBatch()&&(r=rn.encode(n,t.header())),Dn.startMessage(n),Dn.addVersion(n,le.V4),Dn.addHeader(n,r),Dn.addHeaderType(n,t.headerType),Dn.addBodyLength(n,new Nr(t.bodyLength,0)),Dn.finishMessageBuffer(n,Dn.endMessage(n)),n.asUint8Array()}static from(t,n=0){if(t instanceof q)return new jt(0,le.V4,X.Schema,t);if(t instanceof fe)return new jt(n,le.V4,X.RecordBatch,t);if(t instanceof rn)return new jt(n,le.V4,X.DictionaryBatch,t);throw new Error(`Unrecognized Message header: ${t}`)}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===X.Schema}isRecordBatch(){return this.headerType===X.RecordBatch}isDictionaryBatch(){return this.headerType===X.DictionaryBatch}}class fe{constructor(t,n,r){this._nodes=n,this._buffers=r,this._length=typeof t=="number"?t:t.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}}class rn{constructor(t,n,r=!1){this._data=t,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 Ze{constructor(t,n){this.offset=typeof t=="number"?t:t.low,this.length=typeof n=="number"?n:n.low}}class Cr{constructor(t,n){this.length=typeof t=="number"?t:t.low,this.nullCount=typeof n=="number"?n:n.low}}function c1(e,t){return()=>{switch(t){case X.Schema:return q.fromJSON(e);case X.RecordBatch:return fe.fromJSON(e);case X.DictionaryBatch:return rn.fromJSON(e)}throw new Error(`Unrecognized Message type: { name: ${X[t]}, type: ${t} }`)}}function d1(e,t){return()=>{switch(t){case X.Schema:return q.decode(e.header(new je));case X.RecordBatch:return fe.decode(e.header(new dn),e.version());case X.DictionaryBatch:return rn.decode(e.header(new jr),e.version())}throw new Error(`Unrecognized Message type: { name: ${X[t]}, type: ${t} }`)}}ut.encode=I1;ut.decode=_1;ut.fromJSON=l1;q.encode=S1;q.decode=f1;q.fromJSON=r1;fe.encode=b1;fe.decode=h1;fe.fromJSON=Ym;rn.encode=B1;rn.decode=p1;rn.fromJSON=i1;Cr.encode=E1;Cr.decode=m1;Ze.encode=F1;Ze.decode=y1;function f1(e,t=new Map){const n=w1(e,t);return new q(n,Oo(e),t)}function h1(e,t=le.V4){if(e.compression()!==null)throw new Error("Record batch compression not implemented");return new fe(e.length(),g1(e),v1(e,t))}function p1(e,t=le.V4){return new rn(fe.decode(e.data(),t),e.id(),e.isDelta())}function y1(e){return new Ze(e.offset(),e.length())}function m1(e){return new Cr(e.length(),e.nullCount())}function g1(e){const t=[];for(let n,r=-1,i=-1,s=e.nodesLength();++r<s;)(n=e.nodes(r))&&(t[++i]=Cr.decode(n));return t}function v1(e,t){const n=[];for(let r,i=-1,s=-1,o=e.buffersLength();++i<o;)(r=e.buffers(i))&&(t<le.V4&&(r.bb_pos+=8*(i+1)),n[++s]=Ze.decode(r));return n}function w1(e,t){const n=[];for(let r,i=-1,s=-1,o=e.fieldsLength();++i<o;)(r=e.fields(i))&&(n[++s]=ut.decode(r,t));return n}function Kf(e,t){const n=[];for(let r,i=-1,s=-1,o=e.childrenLength();++i<o;)(r=e.children(i))&&(n[++s]=ut.decode(r,t));return n}function _1(e,t){let n,r,i,s,o,l;return!t||!(l=e.dictionary())?(i=Gf(e,Kf(e,t)),r=new ut(e.name(),i,e.nullable(),Oo(e))):t.has(n=l.id().low)?(s=(s=l.indexType())?Jf(s):new bs,o=new wi(t.get(n),s,n,l.isOrdered()),r=new ut(e.name(),o,e.nullable(),Oo(e))):(s=(s=l.indexType())?Jf(s):new bs,t.set(n,i=Gf(e,Kf(e,t))),o=new wi(i,s,n,l.isOrdered()),r=new ut(e.name(),o,e.nullable(),Oo(e))),r||null}function Oo(e){const t=new Map;if(e)for(let n,r,i=-1,s=Math.trunc(e.customMetadataLength());++i<s;)(n=e.customMetadata(i))&&(r=n.key())!=null&&t.set(r,n.value());return t}function Jf(e){return new Zn(e.isSigned(),e.bitWidth())}function Gf(e,t){const n=e.typeType();switch(n){case dt.NONE:return new Xn;case dt.Null:return new Xn;case dt.Binary:return new Zo;case dt.Utf8:return new qo;case dt.Bool:return new tl;case dt.List:return new sl((t||[])[0]);case dt.Struct_:return new zt(t||[])}switch(n){case dt.Int:{const r=e.type(new oe);return new Zn(r.isSigned(),r.bitWidth())}case dt.FloatingPoint:{const r=e.type(new Je);return new Bs(r.precision())}case dt.Decimal:{const r=e.type(new Yt);return new el(r.scale(),r.precision(),r.bitWidth())}case dt.Date:{const r=e.type(new Io);return new nl(r.unit())}case dt.Time:{const r=e.type(new _e);return new Es(r.unit(),r.bitWidth())}case dt.Timestamp:{const r=e.type(new Se);return new rl(r.unit(),r.timezone())}case dt.Interval:{const r=e.type(new Ge);return new il(r.unit())}case dt.Union:{const r=e.type(new Kt);return new ol(r.mode(),r.typeIdsArray()||[],t||[])}case dt.FixedSizeBinary:{const r=e.type(new Qe);return new ll(r.byteWidth())}case dt.FixedSizeList:{const r=e.type(new Ke);return new al(r.listSize(),(t||[])[0])}case dt.Map:{const r=e.type(new bo);return new ul((t||[])[0],r.keysSorted())}}throw new Error(`Unrecognized type: "${dt[n]}" (${n})`)}function S1(e,t){const n=t.fields.map(s=>ut.encode(e,s));je.startFieldsVector(e,n.length);const r=je.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?je.createCustomMetadataVector(e,[...t.metadata].map(([s,o])=>{const l=e.createString(`${s}`),a=e.createString(`${o}`);return Bt.startKeyValue(e),Bt.addKey(e,l),Bt.addValue(e,a),Bt.endKeyValue(e)})):-1;return je.startSchema(e),je.addFields(e,r),je.addEndianness(e,O1?Ii.Little:Ii.Big),i!==-1&&je.addCustomMetadata(e,i),je.endSchema(e)}function I1(e,t){let n=-1,r=-1,i=-1;const s=t.type;let o=t.typeId;k.isDictionary(s)?(o=s.dictionary.typeId,i=Ra.visit(s,e),r=Ra.visit(s.dictionary,e)):r=Ra.visit(s,e);const l=(s.children||[]).map(c=>ut.encode(e,c)),a=me.createChildrenVector(e,l),u=t.metadata&&t.metadata.size>0?me.createCustomMetadataVector(e,[...t.metadata].map(([c,f])=>{const p=e.createString(`${c}`),g=e.createString(`${f}`);return Bt.startKeyValue(e),Bt.addKey(e,p),Bt.addValue(e,g),Bt.endKeyValue(e)})):-1;return t.name&&(n=e.createString(t.name)),me.startField(e),me.addType(e,r),me.addTypeType(e,o),me.addChildren(e,a),me.addNullable(e,!!t.nullable),n!==-1&&me.addName(e,n),i!==-1&&me.addDictionary(e,i),u!==-1&&me.addCustomMetadata(e,u),me.endField(e)}function b1(e,t){const n=t.nodes||[],r=t.buffers||[];dn.startNodesVector(e,n.length);for(const o of n.slice().reverse())Cr.encode(e,o);const i=e.endVector();dn.startBuffersVector(e,r.length);for(const o of r.slice().reverse())Ze.encode(e,o);const s=e.endVector();return dn.startRecordBatch(e),dn.addLength(e,new Nr(t.length,0)),dn.addNodes(e,i),dn.addBuffers(e,s),dn.endRecordBatch(e)}function B1(e,t){const n=fe.encode(e,t.data);return jr.startDictionaryBatch(e),jr.addId(e,new Nr(t.id,0)),jr.addIsDelta(e,t.isDelta),jr.addData(e,n),jr.endDictionaryBatch(e)}function E1(e,t){return Hm.createFieldNode(e,new Nr(t.length,0),new Nr(t.nullCount,0))}function F1(e,t){return Wm.createBuffer(e,new Nr(t.offset,0),new Nr(t.length,0))}const O1=(()=>{const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),new Int16Array(e)[0]===256})(),fd=e=>`Expected ${X[e]} Message in stream, but was null or length 0.`,hd=e=>`Header pointer of flatbuffer-encoded ${X[e]} Message is null or length 0.`,Jm=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,Gm=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;class Xm{constructor(t){this.source=t instanceof vl?t:new vl(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done||t.value===-1&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?pt:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let n;if((n=this.next()).done)return null;if(t!=null&&n.value.headerType!==t)throw new Error(fd(t));return n.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);const n=J(this.source.read(t));if(n.byteLength<t)throw new Error(Gm(t,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()}readSchema(t=!1){const n=X.Schema,r=this.readMessage(n),i=r==null?void 0:r.header();if(t&&!i)throw new Error(hd(n));return i}readMetadataLength(){const t=this.source.read(na),n=t&&new _i(t),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}}readMetadata(t){const n=this.source.read(t);if(!n)return pt;if(n.byteLength<t)throw new Error(Jm(t,n.byteLength));return{done:!1,value:jt.decode(n)}}}class A1{constructor(t,n){this.source=t instanceof Bi?t:vy(t)?new wl(t,n):new Bi(t)}[Symbol.asyncIterator](){return this}next(){return D(this,void 0,void 0,function*(){let t;return(t=yield this.readMetadataLength()).done||t.value===-1&&(t=yield this.readMetadataLength()).done||(t=yield this.readMetadata(t.value)).done?pt:t})}throw(t){return D(this,void 0,void 0,function*(){return yield this.source.throw(t)})}return(t){return D(this,void 0,void 0,function*(){return yield this.source.return(t)})}readMessage(t){return D(this,void 0,void 0,function*(){let n;if((n=yield this.next()).done)return null;if(t!=null&&n.value.headerType!==t)throw new Error(fd(t));return n.value})}readMessageBody(t){return D(this,void 0,void 0,function*(){if(t<=0)return new Uint8Array(0);const n=J(yield this.source.read(t));if(n.byteLength<t)throw new Error(Gm(t,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()})}readSchema(t=!1){return D(this,void 0,void 0,function*(){const n=X.Schema,r=yield this.readMessage(n),i=r==null?void 0:r.header();if(t&&!i)throw new Error(hd(n));return i})}readMetadataLength(){return D(this,void 0,void 0,function*(){const t=yield this.source.read(na),n=t&&new _i(t),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}})}readMetadata(t){return D(this,void 0,void 0,function*(){const n=yield this.source.read(t);if(!n)return pt;if(n.byteLength<t)throw new Error(Jm(t,n.byteLength));return{done:!1,value:jt.decode(n)}})}}class D1 extends Xm{constructor(t){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=t instanceof Vf?t:new Vf(t)}next(){const{_json:t}=this;if(!this._schema)return this._schema=!0,{done:!1,value:jt.fromJSON(t.schema,X.Schema)};if(this._dictionaryIndex<t.dictionaries.length){const n=t.dictionaries[this._dictionaryIndex++];return this._body=n.data.columns,{done:!1,value:jt.fromJSON(n,X.DictionaryBatch)}}if(this._batchIndex<t.batches.length){const n=t.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:jt.fromJSON(n,X.RecordBatch)}}return this._body=[],pt}readMessageBody(t){return n(this._body);function n(r){return(r||[]).reduce((i,s)=>[...i,...s.VALIDITY&&[s.VALIDITY]||[],...s.TYPE&&[s.TYPE]||[],...s.OFFSET&&[s.OFFSET]||[],...s.DATA&&[s.DATA]||[],...n(s.children)],[])}}readMessage(t){let n;if((n=this.next()).done)return null;if(t!=null&&n.value.headerType!==t)throw new Error(fd(t));return n.value}readSchema(){const t=X.Schema,n=this.readMessage(t),r=n==null?void 0:n.header();if(!n||!r)throw new Error(hd(t));return r}}const na=4,$u="ARROW1",Os=new Uint8Array($u.length);for(let e=0;e<$u.length;e+=1)Os[e]=$u.codePointAt(e);function pd(e,t=0){for(let n=-1,r=Os.length;++n<r;)if(Os[n]!==e[t+n])return!1;return!0}const Ps=Os.length,Zm=Ps+na,k1=Ps*2+na;class wn extends od{constructor(t){super(),this._impl=t}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(t){return this._impl.throw(t)}return(t){return this._impl.return(t)}cancel(){return this._impl.cancel()}reset(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}open(t){const n=this._impl.open(t);return Jn(n)?n.then(()=>this):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return ge.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return ge.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,n){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof wn?t:Tu(t)?C1(t):vy(t)?R1(t):Jn(t)?D(this,void 0,void 0,function*(){return yield wn.from(yield t)}):wy(t)||Yc(t)||_y(t)||Di(t)?L1(new Bi(t)):M1(new vl(t))}static readAll(t){return t instanceof wn?t.isSync()?Xf(t):Zf(t):Tu(t)||ArrayBuffer.isView(t)||Ms(t)||gy(t)?Xf(t):Zf(t)}}class bl extends wn{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Xe(this,arguments,function*(){yield z(yield*So(Br(this[Symbol.iterator]())))})}}class Bl extends wn{constructor(t){super(t),this._impl=t}readAll(){var t,n;return D(this,void 0,void 0,function*(){const r=new Array;try{for(var i=Br(this),s;s=yield i.next(),!s.done;){const o=s.value;r.push(o)}}catch(o){t={error:o}}finally{try{s&&!s.done&&(n=i.return)&&(yield n.call(i))}finally{if(t)throw t.error}}return r})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class qm extends bl{constructor(t){super(t),this._impl=t}}class N1 extends Bl{constructor(t){super(t),this._impl=t}}class tg{constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,n){const r=this._loadVectors(t,n,this.schema.fields),i=H({type:new zt(this.schema.fields),length:t.length,children:r});return new Jt(this.schema,i)}_loadDictionaryBatch(t,n){const{id:r,isDelta:i}=t,{dictionaries:s,schema:o}=this,l=s.get(r);if(i||!l){const a=o.dictionaries.get(r),u=this._loadVectors(t.data,n,[a]);return(l&&i?l.concat(new Z(u)):new Z(u)).memoize()}return l.memoize()}_loadVectors(t,n,r){return new zm(n,t.nodes,t.buffers,this.dictionaries).visitMany(r)}}class El extends tg{constructor(t,n){super(n),this._reader=Tu(t)?new D1(this._handle=t):new Xm(this._handle=t)}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(t){return this.closed||(this.autoDestroy=ng(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):pt}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):pt}next(){if(this.closed)return pt;let t;const{_reader:n}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;const r=t.header(),i=n.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;const r=t.header(),i=n.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new dd(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class Fl extends tg{constructor(t,n){super(n),this._reader=new A1(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return D(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(t){return D(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=ng(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(t){return D(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):pt})}return(t){return D(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):pt})}next(){return D(this,void 0,void 0,function*(){if(this.closed)return pt;let t;const{_reader:n}=this;for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;const r=t.header(),i=yield n.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;const r=t.header(),i=yield n.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new dd(this.schema)}):yield this.return()})}_readNextMessageAndValidate(t){return D(this,void 0,void 0,function*(){return yield this._reader.readMessage(t)})}}class eg extends El{constructor(t,n){super(t instanceof $f?t:new $f(t),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(t){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(t)}readRecordBatch(t){var n;if(this.closed)return null;this._footer||this.open();const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(t);if(r&&this._handle.seek(r.offset)){const i=this._reader.readMessage(X.RecordBatch);if(i!=null&&i.isRecordBatch()){const s=i.header(),o=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null}_readDictionaryBatch(t){var n;const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(t);if(r&&this._handle.seek(r.offset)){const i=this._reader.readMessage(X.DictionaryBatch);if(i!=null&&i.isDictionaryBatch()){const s=i.header(),o=this._reader.readMessageBody(i.bodyLength),l=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,l)}}}_readFooter(){const{_handle:t}=this,n=t.size-Zm,r=t.readInt32(n),i=t.readAt(n-r,r);return Fs.decode(i)}_readNextMessageAndValidate(t){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(t)}return null}}class T1 extends Fl{constructor(t,...n){const r=typeof n[0]!="number"?n.shift():void 0,i=n[0]instanceof Map?n.shift():void 0;super(t instanceof wl?t:new wl(t,r),i)}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(t){const n=Object.create(null,{open:{get:()=>super.open}});return D(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,t)})}readRecordBatch(t){var n;return D(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(t);if(r&&(yield this._handle.seek(r.offset))){const i=yield this._reader.readMessage(X.RecordBatch);if(i!=null&&i.isRecordBatch()){const s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null})}_readDictionaryBatch(t){var n;return D(this,void 0,void 0,function*(){const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(t);if(r&&(yield this._handle.seek(r.offset))){const i=yield this._reader.readMessage(X.DictionaryBatch);if(i!=null&&i.isDictionaryBatch()){const s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength),l=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,l)}}})}_readFooter(){return D(this,void 0,void 0,function*(){const{_handle:t}=this;t._pending&&(yield t._pending);const n=t.size-Zm,r=yield t.readInt32(n),i=yield t.readAt(n-r,r);return Fs.decode(i)})}_readNextMessageAndValidate(t){return D(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(t)}return null})}}class x1 extends El{constructor(t,n){super(t,n)}_loadVectors(t,n,r){return new H_(n,t.nodes,t.buffers,this.dictionaries).visitMany(r)}}function ng(e,t){return t&&typeof t.autoDestroy=="boolean"?t.autoDestroy:e.autoDestroy}function*Xf(e){const t=wn.from(e);try{if(!t.open({autoDestroy:!1}).closed)do yield t;while(!t.reset().open().closed)}finally{t.cancel()}}function Zf(e){return Xe(this,arguments,function*(){const n=yield z(wn.from(e));try{if(!(yield z(n.open({autoDestroy:!1}))).closed)do yield yield z(n);while(!(yield z(n.reset().open())).closed)}finally{yield z(n.cancel())}})}function C1(e){return new bl(new x1(e))}function M1(e){const t=e.peek(Ps+7&-8);return t&&t.byteLength>=4?pd(t)?new qm(new eg(e.read())):new bl(new El(e)):new bl(new El(function*(){}()))}function L1(e){return D(this,void 0,void 0,function*(){const t=yield e.peek(Ps+7&-8);return t&&t.byteLength>=4?pd(t)?new qm(new eg(yield e.read())):new Bl(new Fl(e)):new Bl(new Fl(function(){return Xe(this,arguments,function*(){})}()))})}function R1(e){return D(this,void 0,void 0,function*(){const{size:t}=yield e.stat(),n=new wl(e,t);return t>=k1&&pd(yield n.readAt(0,Ps+7&-8))?new N1(new T1(n)):new Bl(new Fl(n))})}class St extends Y{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...t){const n=i=>i.flatMap(s=>Array.isArray(s)?n(s):s instanceof Jt?s.data.children:s.data),r=new St;return r.visitMany(n(t)),r}visit(t){if(t instanceof Z)return this.visitMany(t.data),this;const{type:n}=t;if(!k.isDictionary(n)){const{length:r,nullCount:i}=t;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");k.isNull(n)||Ce.call(this,i<=0?new Uint8Array(0):ed(t.offset,r,t.nullBitmap)),this.nodes.push(new Cr(r,i))}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.clone(t.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function Ce(e){const t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new Ze(this._byteLength,t)),this._byteLength+=t,this}function U1(e){const{type:t,length:n,typeIds:r,valueOffsets:i}=e;if(Ce.call(this,r),t.mode===de.Sparse)return Wu.call(this,e);if(t.mode===de.Dense){if(e.offset<=0)return Ce.call(this,i),Wu.call(this,e);{const s=r.reduce((c,f)=>Math.max(c,f),r[0]),o=new Int32Array(s+1),l=new Int32Array(s+1).fill(-1),a=new Int32Array(n),u=Kc(-i[0],n,i);for(let c,f,p=-1;++p<n;)(f=l[c=r[p]])===-1&&(f=l[c]=u[c]),a[p]=u[p]-f,++o[c];Ce.call(this,a);for(let c,f=-1,p=t.children.length;++f<p;)if(c=e.children[f]){const g=t.typeIds[f],v=Math.min(n,o[g]);this.visit(c.slice(l[g],v))}}}return this}function P1(e){let t;return e.nullCount>=e.length?Ce.call(this,new Uint8Array(0)):(t=e.values)instanceof Uint8Array?Ce.call(this,ed(e.offset,e.length,t)):Ce.call(this,cl(e.values))}function or(e){return Ce.call(this,e.values.subarray(0,e.length*e.stride))}function rg(e){const{length:t,values:n,valueOffsets:r}=e,i=r[0],s=r[t],o=Math.min(s-i,n.byteLength-i);return Ce.call(this,Kc(-r[0],t,r)),Ce.call(this,n.subarray(i,i+o)),this}function yd(e){const{length:t,valueOffsets:n}=e;return n&&Ce.call(this,Kc(n[0],t,n)),this.visit(e.children[0])}function Wu(e){return this.visitMany(e.type.children.map((t,n)=>e.children[n]).filter(Boolean))[0]}St.prototype.visitBool=P1;St.prototype.visitInt=or;St.prototype.visitFloat=or;St.prototype.visitUtf8=rg;St.prototype.visitBinary=rg;St.prototype.visitFixedSizeBinary=or;St.prototype.visitDate=or;St.prototype.visitTimestamp=or;St.prototype.visitTime=or;St.prototype.visitDecimal=or;St.prototype.visitList=yd;St.prototype.visitStruct=Wu;St.prototype.visitUnion=U1;St.prototype.visitInterval=or;St.prototype.visitFixedSizeList=yd;St.prototype.visitMap=yd;class ig extends od{constructor(t){super(),this._position=0,this._started=!1,this._sink=new Eo,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,ee(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof t.autoDestroy=="boolean"?t.autoDestroy:!0,this._writeLegacyIpcFormat=typeof t.writeLegacyIpcFormat=="boolean"?t.writeLegacyIpcFormat:!1}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,n){throw new Error('"throughDOM" not available in this environment')}toString(t=!1){return this._sink.toString(t)}toUint8Array(t=!1){return this._sink.toUint8Array(t)}writeAll(t){return Jn(t)?t.then(n=>this.writeAll(n)):Di(t)?wd(this,t):vd(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,n=null){return t===this._sink||t instanceof Eo?this._sink=t:(this._sink=new Eo,t&&ow(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&lw(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,(!n||!zu(n,this._schema))&&(n==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=n,this._writeSchema(n))),this}write(t){let n=null;if(this._sink){if(t==null)return this.finish()&&void 0;if(t instanceof Pt&&!(n=t.schema))return this.finish()&&void 0;if(t instanceof Jt&&!(n=t.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(n&&!zu(n,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,n)}t instanceof Jt?t instanceof dd||this._writeRecordBatch(t):t instanceof Pt?this.writeAll(t.batches):Ms(t)&&this.writeAll(t)}_writeMessage(t,n=8){const r=n-1,i=jt.encode(t),s=i.byteLength,o=this._writeLegacyIpcFormat?4:8,l=s+o+r&~r,a=l-s-o;return t.headerType===X.RecordBatch?this._recordBatchBlocks.push(new qn(l,t.bodyLength,this._position)):t.headerType===X.DictionaryBatch&&this._dictionaryBlocks.push(new qn(l,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(l-o)),s>0&&this._write(i),this._writePadding(a)}_write(t){if(this._started){const n=J(t);n&&n.byteLength>0&&(this._sink.write(n),this._position+=n.byteLength)}return this}_writeSchema(t){return this._writeMessage(jt.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Os)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){const{byteLength:n,nodes:r,bufferRegions:i,buffers:s}=St.assemble(t),o=new fe(t.numRows,r,i),l=jt.from(o,n);return this._writeDictionaries(t)._writeMessage(l)._writeBodyBuffers(s)}_writeDictionaryBatch(t,n,r=!1){this._dictionaryDeltaOffsets.set(n,t.length+(this._dictionaryDeltaOffsets.get(n)||0));const{byteLength:i,nodes:s,bufferRegions:o,buffers:l}=St.assemble(new Z([t])),a=new fe(t.length,s,o),u=new rn(a,n,r),c=jt.from(u,i);return this._writeMessage(c)._writeBodyBuffers(l)}_writeBodyBuffers(t){let n,r,i;for(let s=-1,o=t.length;++s<o;)(n=t[s])&&(r=n.byteLength)>0&&(this._write(n),(i=(r+7&-8)-r)>0&&this._writePadding(i));return this}_writeDictionaries(t){for(let[n,r]of t.dictionaries){let i=this._dictionaryDeltaOffsets.get(n)||0;if(i===0||(r=r==null?void 0:r.slice(i)).length>0)for(const s of r.data)this._writeDictionaryBatch(s,n,i>0),i+=s.length}return this}}class md extends ig{static writeAll(t,n){const r=new md(n);return Jn(t)?t.then(i=>r.writeAll(i)):Di(t)?wd(r,t):vd(r,t)}}class gd extends ig{static writeAll(t){const n=new gd;return Jn(t)?t.then(r=>n.writeAll(r)):Di(t)?wd(n,t):vd(n,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeFooter(t){const n=Fs.encode(new Fs(t,le.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(n)._write(Int32Array.of(n.byteLength))._writeMagic()}}function vd(e,t){let n=t;t instanceof Pt&&(n=t.batches,e.reset(void 0,t.schema));for(const r of n)e.write(r);return e.finish()}function wd(e,t){var n,r,i,s;return D(this,void 0,void 0,function*(){try{for(n=Br(t);r=yield n.next(),!r.done;){const o=r.value;e.write(o)}}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(i)throw i.error}}return e.finish()})}function Hi(e){const t=wn.from(e);return Jn(t)?t.then(n=>Hi(n)):t.isAsync()?t.readAll().then(n=>new Pt(n)):new Pt(t.readAll())}function Ua(e,t="stream"){return(t==="stream"?md:gd).writeAll(e).toUint8Array(!0)}var qf=function(){function e(t,n,r,i){var s=this;this.getCell=function(o,l){var a=o<s.headerRows&&l<s.headerColumns,u=o>=s.headerRows&&l<s.headerColumns,c=o<s.headerRows&&l>=s.headerColumns;if(a){var f=["blank"];return l>0&&f.push("level"+o),{type:"blank",classNames:f.join(" "),content:""}}else if(c){var p=l-s.headerColumns,f=["col_heading","level"+o,"col"+p];return{type:"columns",classNames:f.join(" "),content:s.getContent(s.columnsTable,p,o)}}else if(u){var g=o-s.headerRows,f=["row_heading","level"+l,"row"+g];return{type:"index",id:"T_".concat(s.uuid,"level").concat(l,"_row").concat(g),classNames:f.join(" "),content:s.getContent(s.indexTable,g,l)}}else{var g=o-s.headerRows,p=l-s.headerColumns,f=["data","row"+g,"col"+p],v=s.styler?s.getContent(s.styler.displayValuesTable,g,p):s.getContent(s.dataTable,g,p);return{type:"data",id:"T_".concat(s.uuid,"row").concat(g,"_col").concat(p),classNames:f.join(" "),content:v}}},this.getContent=function(o,l,a){var u=o.getChildAt(a);if(u===null)return"";var c=s.getColumnTypeId(o,a);switch(c){case y.Timestamp:return s.nanosToDate(u.get(l));default:return u.get(l)}},this.dataTable=Hi(t),this.indexTable=Hi(n),this.columnsTable=Hi(r),this.styler=i?{caption:i.caption,displayValuesTable:Hi(i.displayValues),styles:i.styles,uuid:i.uuid}:void 0}return Object.defineProperty(e.prototype,"rows",{get:function(){return this.indexTable.numRows+this.columnsTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataRows",{get:function(){return this.dataTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"table",{get:function(){return this.dataTable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.indexTable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!1,configurable:!0}),e.prototype.serialize=function(){return{data:Ua(this.dataTable),index:Ua(this.indexTable),columns:Ua(this.columnsTable)}},e.prototype.getColumnTypeId=function(t,n){return t.schema.fields[n].type.typeId},e.prototype.nanosToDate=function(t){return new Date(t/1e6)},e}(),ns=function(){return ns=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ns.apply(this,arguments)},rs;(function(e){e.COMPONENT_READY="streamlit:componentReady",e.SET_COMPONENT_VALUE="streamlit:setComponentValue",e.SET_FRAME_HEIGHT="streamlit:setFrameHeight"})(rs||(rs={}));var $e=function(){function e(){}return e.API_VERSION=1,e.RENDER_EVENT="streamlit:render",e.events=new EventTarget,e.registeredMessageListener=!1,e.setComponentReady=function(){e.registeredMessageListener||(window.addEventListener("message",e.onMessageEvent),e.registeredMessageListener=!0),e.sendBackMsg(rs.COMPONENT_READY,{apiVersion:e.API_VERSION})},e.setFrameHeight=function(t){t===void 0&&(t=document.body.scrollHeight),t!==e.lastFrameHeight&&(e.lastFrameHeight=t,e.sendBackMsg(rs.SET_FRAME_HEIGHT,{height:t}))},e.setComponentValue=function(t){var n;t instanceof qf?(n="dataframe",t=t.serialize()):j1(t)?(n="bytes",t=new Uint8Array(t.buffer)):t instanceof ArrayBuffer?(n="bytes",t=new Uint8Array(t)):n="json",e.sendBackMsg(rs.SET_COMPONENT_VALUE,{value:t,dataType:n})},e.onMessageEvent=function(t){var n=t.data.type;switch(n){case e.RENDER_EVENT:e.onRenderMessage(t.data);break}},e.onRenderMessage=function(t){var n=t.args;n==null&&(console.error("Got null args in onRenderMessage. This should never happen"),n={});var r=t.dfs&&t.dfs.length>0?e.argsDataframeToObject(t.dfs):{};n=ns(ns({},n),r);var i=!!t.disabled,s=t.theme;s&&z1(s);var o={disabled:i,args:n,theme:s},l=new CustomEvent(e.RENDER_EVENT,{detail:o});e.events.dispatchEvent(l)},e.argsDataframeToObject=function(t){var n=t.map(function(r){var i=r.key,s=r.value;return[i,e.toArrowTable(s)]});return Object.fromEntries(n)},e.toArrowTable=function(t){var n,r=(n=t.data,n.data),i=n.index,s=n.columns,o=n.styler;return new qf(r,i,s,o)},e.sendBackMsg=function(t,n){window.parent.postMessage(ns({isStreamlitMessage:!0,type:t},n),"*")},e}(),z1=function(e){var t=document.createElement("style");document.head.appendChild(t),t.innerHTML=`
|
50
|
+
]`}concat(...t){const n=this.schema,r=this.data.concat(t.flatMap(({data:i})=>i));return new Pt(n,r.map(i=>new Jt(n,i)))}slice(t,n){const r=this.schema;[t,n]=bm({length:this.numRows},t,n);const i=Om(this.data,this._offsets,t,n);return new Pt(r,i.map(s=>new Jt(r,s)))}getChild(t){return this.getChildAt(this.schema.fields.findIndex(n=>n.name===t))}getChildAt(t){if(t>-1&&t<this.schema.fields.length){const n=this.data.map(r=>r.children[t]);if(n.length===0){const{type:r}=this.schema.fields[t],i=H({type:r,length:0,nullCount:0});n.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new Z(n)}return null}setChild(t,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===t),n)}setChildAt(t,n){let r=this.schema,i=[...this.batches];if(t>-1&&t<this.numCols){n||(n=new Z([H({type:new Xn,length:this.numRows})]));const s=r.fields.slice(),o=s[t].clone({type:n.type}),l=this.schema.fields.map((a,u)=>this.getChildAt(u));[s[t],l[t]]=[o,n],[r,i]=La(r,l)}return new Pt(r,i)}select(t){const n=this.schema.fields.reduce((r,i,s)=>r.set(i.name,s),new Map);return this.selectAt(t.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(t){const n=this.schema.selectAt(t),r=this.batches.map(i=>i.selectAt(t));return new Pt(n,r)}assign(t){const n=this.schema.fields,[r,i]=t.schema.fields.reduce((l,a,u)=>{const[c,f]=l,m=n.findIndex(g=>g.name===a.name);return~m?f[m]=u:c.push(u),l},[[],[]]),s=this.schema.assign(t.schema),o=[...n.map((l,a)=>[a,i[a]]).map(([l,a])=>a===void 0?this.getChildAt(l):t.getChildAt(a)),...r.map(l=>t.getChildAt(l))].filter(Boolean);return new Pt(...La(s,o))}}jm=Symbol.toStringTag;Pt[jm]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=di(id),e.get=di(ne.getVisitFn(p.Struct)),e.set=Am(Fe.getVisitFn(p.Struct)),e.indexOf=Dm(dl.getVisitFn(p.Struct)),e.getByteLength=di(nn.getVisitFn(p.Struct)),"Table"))(Pt.prototype);var Vm;let Jt=class Wi{constructor(...t){switch(t.length){case 2:{if([this.schema]=t,!(this.schema instanceof q))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=H({nullCount:0,type:new zt(this.schema.fields),children:this.schema.fields.map(n=>H({type:n.type,nullCount:0}))})]=t,!(this.data instanceof st))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=Wf(this.schema,this.data.children);break}case 1:{const[n]=t,{fields:r,children:i,length:s}=Object.keys(n).reduce((a,u,c)=>(a.children[c]=n[u],a.length=Math.max(a.length,n[u].length),a.fields[c]=ut.new({name:u,type:n[u].type,nullable:!0}),a),{length:0,fields:new Array,children:new Array}),o=new q(r),l=H({type:new zt(r),length:s,children:i,nullCount:0});[this.schema,this.data]=Wf(o,l.children,s);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=$m(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(t){return this.data.getValid(t)}get(t){return ne.visit(this.data,t)}set(t,n){return Fe.visit(this.data,t,n)}indexOf(t,n){return dl.visit(this.data,t,n)}getByteLength(t){return nn.visit(this.data,t)}[Symbol.iterator](){return sd.visit(new Z([this.data]))}toArray(){return[...this]}concat(...t){return new Pt(this.schema,[this,...t])}slice(t,n){const[r]=new Z([this.data]).slice(t,n).data;return new Wi(this.schema,r)}getChild(t){var n;return this.getChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(r=>r.name===t))}getChildAt(t){return t>-1&&t<this.schema.fields.length?new Z([this.data.children[t]]):null}setChild(t,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===t),n)}setChildAt(t,n){let r=this.schema,i=this.data;if(t>-1&&t<this.numCols){n||(n=new Z([H({type:new Xn,length:this.numRows})]));const s=r.fields.slice(),o=i.children.slice(),l=s[t].clone({type:n.type});[s[t],o[t]]=[l,n.data[0]],r=new q(s,new Map(this.schema.metadata)),i=H({type:new zt(s),children:o})}return new Wi(r,i)}select(t){const n=this.schema.select(t),r=new zt(n.fields),i=[];for(const s of t){const o=this.schema.fields.findIndex(l=>l.name===s);~o&&(i[o]=this.data.children[o])}return new Wi(n,H({type:r,length:this.numRows,children:i}))}selectAt(t){const n=this.schema.selectAt(t),r=t.map(s=>this.data.children[s]).filter(Boolean),i=H({type:new zt(n.fields),length:this.numRows,children:r});return new Wi(n,i)}};Vm=Symbol.toStringTag;Jt[Vm]=(e=>(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(Jt.prototype);function Wf(e,t,n=t.reduce((r,i)=>Math.max(r,i.length),0)){var r;const i=[...e.fields],s=[...t],o=(n+63&-64)>>3;for(const[l,a]of e.fields.entries()){const u=t[l];(!u||u.length!==n)&&(i[l]=a.clone({nullable:!0}),s[l]=(r=u==null?void 0:u._changeLengthAndBackfillNullBitmap(n))!==null&&r!==void 0?r:H({type:a.type,length:n,nullCount:n,nullBitmap:new Uint8Array(o)}))}return[e.assign(i),H({type:new zt(i),length:n,children:s})]}function $m(e,t,n=new Map){for(let r=-1,i=e.length;++r<i;){const o=e[r].type,l=t[r];if(N.isDictionary(o)){if(!n.has(o.id))l.dictionary&&n.set(o.id,l.dictionary);else if(n.get(o.id)!==l.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}o.children&&o.children.length>0&&$m(o.children,l.children,n)}return n}class dd extends Jt{constructor(t){const n=t.fields.map(i=>H({type:i.type})),r=H({type:new zt(t.fields),nullCount:0,children:n});super(t,r)}}var _l;(function(e){e[e.BUFFER=0]="BUFFER"})(_l||(_l={}));var Sl;(function(e){e[e.LZ4_FRAME=0]="LZ4_FRAME",e[e.ZSTD=1]="ZSTD"})(Sl||(Sl={}));class xn{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsBodyCompression(t,n){return(n||new xn).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,n){return t.setPosition(t.position()+it),(n||new xn).__init(t.readInt32(t.position())+t.position(),t)}codec(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):Sl.LZ4_FRAME}method(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt8(this.bb_pos+t):_l.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,n){t.addFieldInt8(0,n,Sl.LZ4_FRAME)}static addMethod(t,n){t.addFieldInt8(1,n,_l.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,n,r){return xn.startBodyCompression(t),xn.addCodec(t,n),xn.addMethod(t,r),xn.endBodyCompression(t)}}class Wm{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,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(t,n,r){return t.prep(8,16),t.writeInt64(r),t.writeInt64(n),t.offset()}}let Hm=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,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(t,n,r){return t.prep(8,16),t.writeInt64(r),t.writeInt64(n),t.offset()}},dn=class ju{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsRecordBatch(t,n){return(n||new ju).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,n){return t.setPosition(t.position()+it),(n||new ju).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}nodes(t,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new Hm).__init(this.bb.__vector(this.bb_pos+r)+t*16,this.bb):null}nodesLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new Wm).__init(this.bb.__vector(this.bb_pos+r)+t*16,this.bb):null}buffersLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){const n=this.bb.__offset(this.bb_pos,10);return n?(t||new xn).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,n){t.addFieldInt64(0,n,t.createLong(0,0))}static addNodes(t,n){t.addFieldOffset(1,n,0)}static startNodesVector(t,n){t.startVector(16,n,8)}static addBuffers(t,n){t.addFieldOffset(2,n,0)}static startBuffersVector(t,n){t.startVector(16,n,8)}static addCompression(t,n){t.addFieldOffset(3,n,0)}static endRecordBatch(t){return t.endObject()}},jr=class Vu{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsDictionaryBatch(t,n){return(n||new Vu).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,n){return t.setPosition(t.position()+it),(n||new Vu).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}data(t){const n=this.bb.__offset(this.bb_pos,6);return n?(t||new dn).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isDelta(){const t=this.bb.__offset(this.bb_pos,8);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startDictionaryBatch(t){t.startObject(3)}static addId(t,n){t.addFieldInt64(0,n,t.createLong(0,0))}static addData(t,n){t.addFieldOffset(1,n,0)}static addIsDelta(t,n){t.addFieldInt8(2,+n,0)}static endDictionaryBatch(t){return t.endObject()}};var Il;(function(e){e[e.NONE=0]="NONE",e[e.Schema=1]="Schema",e[e.DictionaryBatch=2]="DictionaryBatch",e[e.RecordBatch=3]="RecordBatch",e[e.Tensor=4]="Tensor",e[e.SparseTensor=5]="SparseTensor"})(Il||(Il={}));let Dn=class Pe{constructor(){this.bb=null,this.bb_pos=0}__init(t,n){return this.bb_pos=t,this.bb=n,this}static getRootAsMessage(t,n){return(n||new Pe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,n){return t.setPosition(t.position()+it),(n||new Pe).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Si.V1}headerType(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):Il.NONE}header(t){const n=this.bb.__offset(this.bb_pos,8);return n?this.bb.__union(t,this.bb_pos+n):null}bodyLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}customMetadata(t,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new Bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,n){t.addFieldInt16(0,n,Si.V1)}static addHeaderType(t,n){t.addFieldInt8(1,n,Il.NONE)}static addHeader(t,n){t.addFieldOffset(2,n,0)}static addBodyLength(t,n){t.addFieldInt64(3,n,t.createLong(0,0))}static addCustomMetadata(t,n){t.addFieldOffset(4,n,0)}static createCustomMetadataVector(t,n){t.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)t.addOffset(n[r]);return t.endVector()}static startCustomMetadataVector(t,n){t.startVector(4,n,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,n){t.finish(n)}static finishSizePrefixedMessageBuffer(t,n){t.finish(n,void 0,!0)}static createMessage(t,n,r,i,s,o){return Pe.startMessage(t),Pe.addVersion(t,n),Pe.addHeaderType(t,r),Pe.addHeader(t,i),Pe.addBodyLength(t,s),Pe.addCustomMetadata(t,o),Pe.endMessage(t)}};var e1=vn;class n1 extends Y{visit(t,n){return t==null||n==null?void 0:super.visit(t,n)}visitNull(t,n){return wr.startNull(n),wr.endNull(n)}visitInt(t,n){return oe.startInt(n),oe.addBitWidth(n,t.bitWidth),oe.addIsSigned(n,t.isSigned),oe.endInt(n)}visitFloat(t,n){return Je.startFloatingPoint(n),Je.addPrecision(n,t.precision),Je.endFloatingPoint(n)}visitBinary(t,n){return mr.startBinary(n),mr.endBinary(n)}visitBool(t,n){return gr.startBool(n),gr.endBool(n)}visitUtf8(t,n){return Sr.startUtf8(n),Sr.endUtf8(n)}visitDecimal(t,n){return Yt.startDecimal(n),Yt.addScale(n,t.scale),Yt.addPrecision(n,t.precision),Yt.addBitWidth(n,t.bitWidth),Yt.endDecimal(n)}visitDate(t,n){return Io.startDate(n),Io.addUnit(n,t.unit),Io.endDate(n)}visitTime(t,n){return _e.startTime(n),_e.addUnit(n,t.unit),_e.addBitWidth(n,t.bitWidth),_e.endTime(n)}visitTimestamp(t,n){const r=t.timezone&&n.createString(t.timezone)||void 0;return Se.startTimestamp(n),Se.addUnit(n,t.unit),r!==void 0&&Se.addTimezone(n,r),Se.endTimestamp(n)}visitInterval(t,n){return Ge.startInterval(n),Ge.addUnit(n,t.unit),Ge.endInterval(n)}visitList(t,n){return vr.startList(n),vr.endList(n)}visitStruct(t,n){return _r.startStruct_(n),_r.endStruct_(n)}visitUnion(t,n){Kt.startTypeIdsVector(n,t.typeIds.length);const r=Kt.createTypeIdsVector(n,t.typeIds);return Kt.startUnion(n),Kt.addMode(n,t.mode),Kt.addTypeIds(n,r),Kt.endUnion(n)}visitDictionary(t,n){const r=this.visit(t.indices,n);return pn.startDictionaryEncoding(n),pn.addId(n,new e1(t.id,0)),pn.addIsOrdered(n,t.isOrdered),r!==void 0&&pn.addIndexType(n,r),pn.endDictionaryEncoding(n)}visitFixedSizeBinary(t,n){return Qe.startFixedSizeBinary(n),Qe.addByteWidth(n,t.byteWidth),Qe.endFixedSizeBinary(n)}visitFixedSizeList(t,n){return Ke.startFixedSizeList(n),Ke.addListSize(n,t.listSize),Ke.endFixedSizeList(n)}visitMap(t,n){return bo.startMap(n),bo.addKeysSorted(n,t.keysSorted),bo.endMap(n)}}const Ra=new n1;function r1(e,t=new Map){return new q(s1(e,t),Fo(e.customMetadata),t)}function Ym(e){return new fe(e.count,Qm(e.columns),Km(e.columns))}function i1(e){return new rn(Ym(e.data),e.id,e.isDelta)}function s1(e,t){return(e.fields||[]).filter(Boolean).map(n=>ut.fromJSON(n,t))}function Hf(e,t){return(e.children||[]).filter(Boolean).map(n=>ut.fromJSON(n,t))}function Qm(e){return(e||[]).reduce((t,n)=>[...t,new Cr(n.count,o1(n.VALIDITY)),...Qm(n.children)],[])}function Km(e,t=[]){for(let n=-1,r=(e||[]).length;++n<r;){const i=e[n];i.VALIDITY&&t.push(new Ze(t.length,i.VALIDITY.length)),i.TYPE&&t.push(new Ze(t.length,i.TYPE.length)),i.OFFSET&&t.push(new Ze(t.length,i.OFFSET.length)),i.DATA&&t.push(new Ze(t.length,i.DATA.length)),t=Km(i.children,t)}return t}function o1(e){return(e||[]).reduce((t,n)=>t+ +(n===0),0)}function l1(e,t){let n,r,i,s,o,l;return!t||!(s=e.dictionary)?(o=Qf(e,Hf(e,t)),i=new ut(e.name,o,e.nullable,Fo(e.customMetadata))):t.has(n=s.id)?(r=(r=s.indexType)?Yf(r):new bs,l=new wi(t.get(n),r,n,s.isOrdered),i=new ut(e.name,l,e.nullable,Fo(e.customMetadata))):(r=(r=s.indexType)?Yf(r):new bs,t.set(n,o=Qf(e,Hf(e,t))),l=new wi(o,r,n,s.isOrdered),i=new ut(e.name,l,e.nullable,Fo(e.customMetadata))),i||null}function Fo(e){return new Map(Object.entries(e||{}))}function Yf(e){return new Zn(e.isSigned,e.bitWidth)}function Qf(e,t){const n=e.type.name;switch(n){case"NONE":return new Xn;case"null":return new Xn;case"binary":return new Zo;case"utf8":return new qo;case"bool":return new tl;case"list":return new sl((t||[])[0]);case"struct":return new zt(t||[]);case"struct_":return new zt(t||[])}switch(n){case"int":{const r=e.type;return new Zn(r.isSigned,r.bitWidth)}case"floatingpoint":{const r=e.type;return new Bs(te[r.precision])}case"decimal":{const r=e.type;return new el(r.scale,r.precision,r.bitWidth)}case"date":{const r=e.type;return new nl(Bn[r.unit])}case"time":{const r=e.type;return new Es(G[r.unit],r.bitWidth)}case"timestamp":{const r=e.type;return new rl(G[r.unit],r.timezone)}case"interval":{const r=e.type;return new il(Gn[r.unit])}case"union":{const r=e.type;return new ol(de[r.mode],r.typeIds||[],t||[])}case"fixedsizebinary":{const r=e.type;return new ll(r.byteWidth)}case"fixedsizelist":{const r=e.type;return new al(r.listSize,(t||[])[0])}case"map":{const r=e.type;return new ul((t||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var kr=vn,a1=Rm,u1=_i;class jt{constructor(t,n,r,i){this._version=n,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength=typeof t=="number"?t:t.low}static fromJSON(t,n){const r=new jt(0,le.V4,n);return r._createHeader=c1(t,n),r}static decode(t){t=new u1(J(t));const n=Dn.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),s=n.headerType(),o=new jt(r,i,s);return o._createHeader=d1(n,s),o}static encode(t){const n=new a1;let r=-1;return t.isSchema()?r=q.encode(n,t.header()):t.isRecordBatch()?r=fe.encode(n,t.header()):t.isDictionaryBatch()&&(r=rn.encode(n,t.header())),Dn.startMessage(n),Dn.addVersion(n,le.V4),Dn.addHeader(n,r),Dn.addHeaderType(n,t.headerType),Dn.addBodyLength(n,new kr(t.bodyLength,0)),Dn.finishMessageBuffer(n,Dn.endMessage(n)),n.asUint8Array()}static from(t,n=0){if(t instanceof q)return new jt(0,le.V4,X.Schema,t);if(t instanceof fe)return new jt(n,le.V4,X.RecordBatch,t);if(t instanceof rn)return new jt(n,le.V4,X.DictionaryBatch,t);throw new Error(`Unrecognized Message header: ${t}`)}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===X.Schema}isRecordBatch(){return this.headerType===X.RecordBatch}isDictionaryBatch(){return this.headerType===X.DictionaryBatch}}class fe{constructor(t,n,r){this._nodes=n,this._buffers=r,this._length=typeof t=="number"?t:t.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}}class rn{constructor(t,n,r=!1){this._data=t,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 Ze{constructor(t,n){this.offset=typeof t=="number"?t:t.low,this.length=typeof n=="number"?n:n.low}}class Cr{constructor(t,n){this.length=typeof t=="number"?t:t.low,this.nullCount=typeof n=="number"?n:n.low}}function c1(e,t){return()=>{switch(t){case X.Schema:return q.fromJSON(e);case X.RecordBatch:return fe.fromJSON(e);case X.DictionaryBatch:return rn.fromJSON(e)}throw new Error(`Unrecognized Message type: { name: ${X[t]}, type: ${t} }`)}}function d1(e,t){return()=>{switch(t){case X.Schema:return q.decode(e.header(new je));case X.RecordBatch:return fe.decode(e.header(new dn),e.version());case X.DictionaryBatch:return rn.decode(e.header(new jr),e.version())}throw new Error(`Unrecognized Message type: { name: ${X[t]}, type: ${t} }`)}}ut.encode=I1;ut.decode=_1;ut.fromJSON=l1;q.encode=S1;q.decode=f1;q.fromJSON=r1;fe.encode=b1;fe.decode=h1;fe.fromJSON=Ym;rn.encode=B1;rn.decode=p1;rn.fromJSON=i1;Cr.encode=E1;Cr.decode=m1;Ze.encode=F1;Ze.decode=y1;function f1(e,t=new Map){const n=w1(e,t);return new q(n,Oo(e),t)}function h1(e,t=le.V4){if(e.compression()!==null)throw new Error("Record batch compression not implemented");return new fe(e.length(),g1(e),v1(e,t))}function p1(e,t=le.V4){return new rn(fe.decode(e.data(),t),e.id(),e.isDelta())}function y1(e){return new Ze(e.offset(),e.length())}function m1(e){return new Cr(e.length(),e.nullCount())}function g1(e){const t=[];for(let n,r=-1,i=-1,s=e.nodesLength();++r<s;)(n=e.nodes(r))&&(t[++i]=Cr.decode(n));return t}function v1(e,t){const n=[];for(let r,i=-1,s=-1,o=e.buffersLength();++i<o;)(r=e.buffers(i))&&(t<le.V4&&(r.bb_pos+=8*(i+1)),n[++s]=Ze.decode(r));return n}function w1(e,t){const n=[];for(let r,i=-1,s=-1,o=e.fieldsLength();++i<o;)(r=e.fields(i))&&(n[++s]=ut.decode(r,t));return n}function Kf(e,t){const n=[];for(let r,i=-1,s=-1,o=e.childrenLength();++i<o;)(r=e.children(i))&&(n[++s]=ut.decode(r,t));return n}function _1(e,t){let n,r,i,s,o,l;return!t||!(l=e.dictionary())?(i=Gf(e,Kf(e,t)),r=new ut(e.name(),i,e.nullable(),Oo(e))):t.has(n=l.id().low)?(s=(s=l.indexType())?Jf(s):new bs,o=new wi(t.get(n),s,n,l.isOrdered()),r=new ut(e.name(),o,e.nullable(),Oo(e))):(s=(s=l.indexType())?Jf(s):new bs,t.set(n,i=Gf(e,Kf(e,t))),o=new wi(i,s,n,l.isOrdered()),r=new ut(e.name(),o,e.nullable(),Oo(e))),r||null}function Oo(e){const t=new Map;if(e)for(let n,r,i=-1,s=Math.trunc(e.customMetadataLength());++i<s;)(n=e.customMetadata(i))&&(r=n.key())!=null&&t.set(r,n.value());return t}function Jf(e){return new Zn(e.isSigned(),e.bitWidth())}function Gf(e,t){const n=e.typeType();switch(n){case dt.NONE:return new Xn;case dt.Null:return new Xn;case dt.Binary:return new Zo;case dt.Utf8:return new qo;case dt.Bool:return new tl;case dt.List:return new sl((t||[])[0]);case dt.Struct_:return new zt(t||[])}switch(n){case dt.Int:{const r=e.type(new oe);return new Zn(r.isSigned(),r.bitWidth())}case dt.FloatingPoint:{const r=e.type(new Je);return new Bs(r.precision())}case dt.Decimal:{const r=e.type(new Yt);return new el(r.scale(),r.precision(),r.bitWidth())}case dt.Date:{const r=e.type(new Io);return new nl(r.unit())}case dt.Time:{const r=e.type(new _e);return new Es(r.unit(),r.bitWidth())}case dt.Timestamp:{const r=e.type(new Se);return new rl(r.unit(),r.timezone())}case dt.Interval:{const r=e.type(new Ge);return new il(r.unit())}case dt.Union:{const r=e.type(new Kt);return new ol(r.mode(),r.typeIdsArray()||[],t||[])}case dt.FixedSizeBinary:{const r=e.type(new Qe);return new ll(r.byteWidth())}case dt.FixedSizeList:{const r=e.type(new Ke);return new al(r.listSize(),(t||[])[0])}case dt.Map:{const r=e.type(new bo);return new ul((t||[])[0],r.keysSorted())}}throw new Error(`Unrecognized type: "${dt[n]}" (${n})`)}function S1(e,t){const n=t.fields.map(s=>ut.encode(e,s));je.startFieldsVector(e,n.length);const r=je.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?je.createCustomMetadataVector(e,[...t.metadata].map(([s,o])=>{const l=e.createString(`${s}`),a=e.createString(`${o}`);return Bt.startKeyValue(e),Bt.addKey(e,l),Bt.addValue(e,a),Bt.endKeyValue(e)})):-1;return je.startSchema(e),je.addFields(e,r),je.addEndianness(e,O1?Ii.Little:Ii.Big),i!==-1&&je.addCustomMetadata(e,i),je.endSchema(e)}function I1(e,t){let n=-1,r=-1,i=-1;const s=t.type;let o=t.typeId;N.isDictionary(s)?(o=s.dictionary.typeId,i=Ra.visit(s,e),r=Ra.visit(s.dictionary,e)):r=Ra.visit(s,e);const l=(s.children||[]).map(c=>ut.encode(e,c)),a=me.createChildrenVector(e,l),u=t.metadata&&t.metadata.size>0?me.createCustomMetadataVector(e,[...t.metadata].map(([c,f])=>{const m=e.createString(`${c}`),g=e.createString(`${f}`);return Bt.startKeyValue(e),Bt.addKey(e,m),Bt.addValue(e,g),Bt.endKeyValue(e)})):-1;return t.name&&(n=e.createString(t.name)),me.startField(e),me.addType(e,r),me.addTypeType(e,o),me.addChildren(e,a),me.addNullable(e,!!t.nullable),n!==-1&&me.addName(e,n),i!==-1&&me.addDictionary(e,i),u!==-1&&me.addCustomMetadata(e,u),me.endField(e)}function b1(e,t){const n=t.nodes||[],r=t.buffers||[];dn.startNodesVector(e,n.length);for(const o of n.slice().reverse())Cr.encode(e,o);const i=e.endVector();dn.startBuffersVector(e,r.length);for(const o of r.slice().reverse())Ze.encode(e,o);const s=e.endVector();return dn.startRecordBatch(e),dn.addLength(e,new kr(t.length,0)),dn.addNodes(e,i),dn.addBuffers(e,s),dn.endRecordBatch(e)}function B1(e,t){const n=fe.encode(e,t.data);return jr.startDictionaryBatch(e),jr.addId(e,new kr(t.id,0)),jr.addIsDelta(e,t.isDelta),jr.addData(e,n),jr.endDictionaryBatch(e)}function E1(e,t){return Hm.createFieldNode(e,new kr(t.length,0),new kr(t.nullCount,0))}function F1(e,t){return Wm.createBuffer(e,new kr(t.offset,0),new kr(t.length,0))}const O1=(()=>{const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),new Int16Array(e)[0]===256})(),fd=e=>`Expected ${X[e]} Message in stream, but was null or length 0.`,hd=e=>`Header pointer of flatbuffer-encoded ${X[e]} Message is null or length 0.`,Jm=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,Gm=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;class Xm{constructor(t){this.source=t instanceof vl?t:new vl(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done||t.value===-1&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?pt:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let n;if((n=this.next()).done)return null;if(t!=null&&n.value.headerType!==t)throw new Error(fd(t));return n.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);const n=J(this.source.read(t));if(n.byteLength<t)throw new Error(Gm(t,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()}readSchema(t=!1){const n=X.Schema,r=this.readMessage(n),i=r==null?void 0:r.header();if(t&&!i)throw new Error(hd(n));return i}readMetadataLength(){const t=this.source.read(na),n=t&&new _i(t),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}}readMetadata(t){const n=this.source.read(t);if(!n)return pt;if(n.byteLength<t)throw new Error(Jm(t,n.byteLength));return{done:!1,value:jt.decode(n)}}}class A1{constructor(t,n){this.source=t instanceof Bi?t:vy(t)?new wl(t,n):new Bi(t)}[Symbol.asyncIterator](){return this}next(){return D(this,void 0,void 0,function*(){let t;return(t=yield this.readMetadataLength()).done||t.value===-1&&(t=yield this.readMetadataLength()).done||(t=yield this.readMetadata(t.value)).done?pt:t})}throw(t){return D(this,void 0,void 0,function*(){return yield this.source.throw(t)})}return(t){return D(this,void 0,void 0,function*(){return yield this.source.return(t)})}readMessage(t){return D(this,void 0,void 0,function*(){let n;if((n=yield this.next()).done)return null;if(t!=null&&n.value.headerType!==t)throw new Error(fd(t));return n.value})}readMessageBody(t){return D(this,void 0,void 0,function*(){if(t<=0)return new Uint8Array(0);const n=J(yield this.source.read(t));if(n.byteLength<t)throw new Error(Gm(t,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()})}readSchema(t=!1){return D(this,void 0,void 0,function*(){const n=X.Schema,r=yield this.readMessage(n),i=r==null?void 0:r.header();if(t&&!i)throw new Error(hd(n));return i})}readMetadataLength(){return D(this,void 0,void 0,function*(){const t=yield this.source.read(na),n=t&&new _i(t),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}})}readMetadata(t){return D(this,void 0,void 0,function*(){const n=yield this.source.read(t);if(!n)return pt;if(n.byteLength<t)throw new Error(Jm(t,n.byteLength));return{done:!1,value:jt.decode(n)}})}}class D1 extends Xm{constructor(t){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=t instanceof Vf?t:new Vf(t)}next(){const{_json:t}=this;if(!this._schema)return this._schema=!0,{done:!1,value:jt.fromJSON(t.schema,X.Schema)};if(this._dictionaryIndex<t.dictionaries.length){const n=t.dictionaries[this._dictionaryIndex++];return this._body=n.data.columns,{done:!1,value:jt.fromJSON(n,X.DictionaryBatch)}}if(this._batchIndex<t.batches.length){const n=t.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:jt.fromJSON(n,X.RecordBatch)}}return this._body=[],pt}readMessageBody(t){return n(this._body);function n(r){return(r||[]).reduce((i,s)=>[...i,...s.VALIDITY&&[s.VALIDITY]||[],...s.TYPE&&[s.TYPE]||[],...s.OFFSET&&[s.OFFSET]||[],...s.DATA&&[s.DATA]||[],...n(s.children)],[])}}readMessage(t){let n;if((n=this.next()).done)return null;if(t!=null&&n.value.headerType!==t)throw new Error(fd(t));return n.value}readSchema(){const t=X.Schema,n=this.readMessage(t),r=n==null?void 0:n.header();if(!n||!r)throw new Error(hd(t));return r}}const na=4,$u="ARROW1",Os=new Uint8Array($u.length);for(let e=0;e<$u.length;e+=1)Os[e]=$u.codePointAt(e);function pd(e,t=0){for(let n=-1,r=Os.length;++n<r;)if(Os[n]!==e[t+n])return!1;return!0}const Ps=Os.length,Zm=Ps+na,N1=Ps*2+na;class wn extends od{constructor(t){super(),this._impl=t}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(t){return this._impl.throw(t)}return(t){return this._impl.return(t)}cancel(){return this._impl.cancel()}reset(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}open(t){const n=this._impl.open(t);return Jn(n)?n.then(()=>this):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return ge.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return ge.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,n){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof wn?t:Tu(t)?C1(t):vy(t)?R1(t):Jn(t)?D(this,void 0,void 0,function*(){return yield wn.from(yield t)}):wy(t)||Yc(t)||_y(t)||Di(t)?L1(new Bi(t)):M1(new vl(t))}static readAll(t){return t instanceof wn?t.isSync()?Xf(t):Zf(t):Tu(t)||ArrayBuffer.isView(t)||Ms(t)||gy(t)?Xf(t):Zf(t)}}class bl extends wn{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Xe(this,arguments,function*(){yield z(yield*So(Br(this[Symbol.iterator]())))})}}class Bl extends wn{constructor(t){super(t),this._impl=t}readAll(){var t,n;return D(this,void 0,void 0,function*(){const r=new Array;try{for(var i=Br(this),s;s=yield i.next(),!s.done;){const o=s.value;r.push(o)}}catch(o){t={error:o}}finally{try{s&&!s.done&&(n=i.return)&&(yield n.call(i))}finally{if(t)throw t.error}}return r})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class qm extends bl{constructor(t){super(t),this._impl=t}}class k1 extends Bl{constructor(t){super(t),this._impl=t}}class tg{constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,n){const r=this._loadVectors(t,n,this.schema.fields),i=H({type:new zt(this.schema.fields),length:t.length,children:r});return new Jt(this.schema,i)}_loadDictionaryBatch(t,n){const{id:r,isDelta:i}=t,{dictionaries:s,schema:o}=this,l=s.get(r);if(i||!l){const a=o.dictionaries.get(r),u=this._loadVectors(t.data,n,[a]);return(l&&i?l.concat(new Z(u)):new Z(u)).memoize()}return l.memoize()}_loadVectors(t,n,r){return new zm(n,t.nodes,t.buffers,this.dictionaries).visitMany(r)}}class El extends tg{constructor(t,n){super(n),this._reader=Tu(t)?new D1(this._handle=t):new Xm(this._handle=t)}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(t){return this.closed||(this.autoDestroy=ng(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):pt}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):pt}next(){if(this.closed)return pt;let t;const{_reader:n}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;const r=t.header(),i=n.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;const r=t.header(),i=n.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new dd(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class Fl extends tg{constructor(t,n){super(n),this._reader=new A1(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return D(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(t){return D(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=ng(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(t){return D(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):pt})}return(t){return D(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):pt})}next(){return D(this,void 0,void 0,function*(){if(this.closed)return pt;let t;const{_reader:n}=this;for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;const r=t.header(),i=yield n.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;const r=t.header(),i=yield n.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new dd(this.schema)}):yield this.return()})}_readNextMessageAndValidate(t){return D(this,void 0,void 0,function*(){return yield this._reader.readMessage(t)})}}class eg extends El{constructor(t,n){super(t instanceof $f?t:new $f(t),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(t){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(t)}readRecordBatch(t){var n;if(this.closed)return null;this._footer||this.open();const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(t);if(r&&this._handle.seek(r.offset)){const i=this._reader.readMessage(X.RecordBatch);if(i!=null&&i.isRecordBatch()){const s=i.header(),o=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null}_readDictionaryBatch(t){var n;const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(t);if(r&&this._handle.seek(r.offset)){const i=this._reader.readMessage(X.DictionaryBatch);if(i!=null&&i.isDictionaryBatch()){const s=i.header(),o=this._reader.readMessageBody(i.bodyLength),l=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,l)}}}_readFooter(){const{_handle:t}=this,n=t.size-Zm,r=t.readInt32(n),i=t.readAt(n-r,r);return Fs.decode(i)}_readNextMessageAndValidate(t){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(t)}return null}}class T1 extends Fl{constructor(t,...n){const r=typeof n[0]!="number"?n.shift():void 0,i=n[0]instanceof Map?n.shift():void 0;super(t instanceof wl?t:new wl(t,r),i)}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(t){const n=Object.create(null,{open:{get:()=>super.open}});return D(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,t)})}readRecordBatch(t){var n;return D(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(t);if(r&&(yield this._handle.seek(r.offset))){const i=yield this._reader.readMessage(X.RecordBatch);if(i!=null&&i.isRecordBatch()){const s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null})}_readDictionaryBatch(t){var n;return D(this,void 0,void 0,function*(){const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(t);if(r&&(yield this._handle.seek(r.offset))){const i=yield this._reader.readMessage(X.DictionaryBatch);if(i!=null&&i.isDictionaryBatch()){const s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength),l=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,l)}}})}_readFooter(){return D(this,void 0,void 0,function*(){const{_handle:t}=this;t._pending&&(yield t._pending);const n=t.size-Zm,r=yield t.readInt32(n),i=yield t.readAt(n-r,r);return Fs.decode(i)})}_readNextMessageAndValidate(t){return D(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(t)}return null})}}class x1 extends El{constructor(t,n){super(t,n)}_loadVectors(t,n,r){return new H_(n,t.nodes,t.buffers,this.dictionaries).visitMany(r)}}function ng(e,t){return t&&typeof t.autoDestroy=="boolean"?t.autoDestroy:e.autoDestroy}function*Xf(e){const t=wn.from(e);try{if(!t.open({autoDestroy:!1}).closed)do yield t;while(!t.reset().open().closed)}finally{t.cancel()}}function Zf(e){return Xe(this,arguments,function*(){const n=yield z(wn.from(e));try{if(!(yield z(n.open({autoDestroy:!1}))).closed)do yield yield z(n);while(!(yield z(n.reset().open())).closed)}finally{yield z(n.cancel())}})}function C1(e){return new bl(new x1(e))}function M1(e){const t=e.peek(Ps+7&-8);return t&&t.byteLength>=4?pd(t)?new qm(new eg(e.read())):new bl(new El(e)):new bl(new El(function*(){}()))}function L1(e){return D(this,void 0,void 0,function*(){const t=yield e.peek(Ps+7&-8);return t&&t.byteLength>=4?pd(t)?new qm(new eg(yield e.read())):new Bl(new Fl(e)):new Bl(new Fl(function(){return Xe(this,arguments,function*(){})}()))})}function R1(e){return D(this,void 0,void 0,function*(){const{size:t}=yield e.stat(),n=new wl(e,t);return t>=N1&&pd(yield n.readAt(0,Ps+7&-8))?new k1(new T1(n)):new Bl(new Fl(n))})}class St extends Y{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...t){const n=i=>i.flatMap(s=>Array.isArray(s)?n(s):s instanceof Jt?s.data.children:s.data),r=new St;return r.visitMany(n(t)),r}visit(t){if(t instanceof Z)return this.visitMany(t.data),this;const{type:n}=t;if(!N.isDictionary(n)){const{length:r,nullCount:i}=t;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");N.isNull(n)||Ce.call(this,i<=0?new Uint8Array(0):ed(t.offset,r,t.nullBitmap)),this.nodes.push(new Cr(r,i))}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.clone(t.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function Ce(e){const t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new Ze(this._byteLength,t)),this._byteLength+=t,this}function U1(e){const{type:t,length:n,typeIds:r,valueOffsets:i}=e;if(Ce.call(this,r),t.mode===de.Sparse)return Wu.call(this,e);if(t.mode===de.Dense){if(e.offset<=0)return Ce.call(this,i),Wu.call(this,e);{const s=r.reduce((c,f)=>Math.max(c,f),r[0]),o=new Int32Array(s+1),l=new Int32Array(s+1).fill(-1),a=new Int32Array(n),u=Kc(-i[0],n,i);for(let c,f,m=-1;++m<n;)(f=l[c=r[m]])===-1&&(f=l[c]=u[c]),a[m]=u[m]-f,++o[c];Ce.call(this,a);for(let c,f=-1,m=t.children.length;++f<m;)if(c=e.children[f]){const g=t.typeIds[f],v=Math.min(n,o[g]);this.visit(c.slice(l[g],v))}}}return this}function P1(e){let t;return e.nullCount>=e.length?Ce.call(this,new Uint8Array(0)):(t=e.values)instanceof Uint8Array?Ce.call(this,ed(e.offset,e.length,t)):Ce.call(this,cl(e.values))}function or(e){return Ce.call(this,e.values.subarray(0,e.length*e.stride))}function rg(e){const{length:t,values:n,valueOffsets:r}=e,i=r[0],s=r[t],o=Math.min(s-i,n.byteLength-i);return Ce.call(this,Kc(-r[0],t,r)),Ce.call(this,n.subarray(i,i+o)),this}function yd(e){const{length:t,valueOffsets:n}=e;return n&&Ce.call(this,Kc(n[0],t,n)),this.visit(e.children[0])}function Wu(e){return this.visitMany(e.type.children.map((t,n)=>e.children[n]).filter(Boolean))[0]}St.prototype.visitBool=P1;St.prototype.visitInt=or;St.prototype.visitFloat=or;St.prototype.visitUtf8=rg;St.prototype.visitBinary=rg;St.prototype.visitFixedSizeBinary=or;St.prototype.visitDate=or;St.prototype.visitTimestamp=or;St.prototype.visitTime=or;St.prototype.visitDecimal=or;St.prototype.visitList=yd;St.prototype.visitStruct=Wu;St.prototype.visitUnion=U1;St.prototype.visitInterval=or;St.prototype.visitFixedSizeList=yd;St.prototype.visitMap=yd;class ig extends od{constructor(t){super(),this._position=0,this._started=!1,this._sink=new Eo,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,ee(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof t.autoDestroy=="boolean"?t.autoDestroy:!0,this._writeLegacyIpcFormat=typeof t.writeLegacyIpcFormat=="boolean"?t.writeLegacyIpcFormat:!1}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,n){throw new Error('"throughDOM" not available in this environment')}toString(t=!1){return this._sink.toString(t)}toUint8Array(t=!1){return this._sink.toUint8Array(t)}writeAll(t){return Jn(t)?t.then(n=>this.writeAll(n)):Di(t)?wd(this,t):vd(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,n=null){return t===this._sink||t instanceof Eo?this._sink=t:(this._sink=new Eo,t&&ow(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&lw(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,(!n||!zu(n,this._schema))&&(n==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=n,this._writeSchema(n))),this}write(t){let n=null;if(this._sink){if(t==null)return this.finish()&&void 0;if(t instanceof Pt&&!(n=t.schema))return this.finish()&&void 0;if(t instanceof Jt&&!(n=t.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(n&&!zu(n,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,n)}t instanceof Jt?t instanceof dd||this._writeRecordBatch(t):t instanceof Pt?this.writeAll(t.batches):Ms(t)&&this.writeAll(t)}_writeMessage(t,n=8){const r=n-1,i=jt.encode(t),s=i.byteLength,o=this._writeLegacyIpcFormat?4:8,l=s+o+r&~r,a=l-s-o;return t.headerType===X.RecordBatch?this._recordBatchBlocks.push(new qn(l,t.bodyLength,this._position)):t.headerType===X.DictionaryBatch&&this._dictionaryBlocks.push(new qn(l,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(l-o)),s>0&&this._write(i),this._writePadding(a)}_write(t){if(this._started){const n=J(t);n&&n.byteLength>0&&(this._sink.write(n),this._position+=n.byteLength)}return this}_writeSchema(t){return this._writeMessage(jt.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Os)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){const{byteLength:n,nodes:r,bufferRegions:i,buffers:s}=St.assemble(t),o=new fe(t.numRows,r,i),l=jt.from(o,n);return this._writeDictionaries(t)._writeMessage(l)._writeBodyBuffers(s)}_writeDictionaryBatch(t,n,r=!1){this._dictionaryDeltaOffsets.set(n,t.length+(this._dictionaryDeltaOffsets.get(n)||0));const{byteLength:i,nodes:s,bufferRegions:o,buffers:l}=St.assemble(new Z([t])),a=new fe(t.length,s,o),u=new rn(a,n,r),c=jt.from(u,i);return this._writeMessage(c)._writeBodyBuffers(l)}_writeBodyBuffers(t){let n,r,i;for(let s=-1,o=t.length;++s<o;)(n=t[s])&&(r=n.byteLength)>0&&(this._write(n),(i=(r+7&-8)-r)>0&&this._writePadding(i));return this}_writeDictionaries(t){for(let[n,r]of t.dictionaries){let i=this._dictionaryDeltaOffsets.get(n)||0;if(i===0||(r=r==null?void 0:r.slice(i)).length>0)for(const s of r.data)this._writeDictionaryBatch(s,n,i>0),i+=s.length}return this}}class md extends ig{static writeAll(t,n){const r=new md(n);return Jn(t)?t.then(i=>r.writeAll(i)):Di(t)?wd(r,t):vd(r,t)}}class gd extends ig{static writeAll(t){const n=new gd;return Jn(t)?t.then(r=>n.writeAll(r)):Di(t)?wd(n,t):vd(n,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeFooter(t){const n=Fs.encode(new Fs(t,le.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(n)._write(Int32Array.of(n.byteLength))._writeMagic()}}function vd(e,t){let n=t;t instanceof Pt&&(n=t.batches,e.reset(void 0,t.schema));for(const r of n)e.write(r);return e.finish()}function wd(e,t){var n,r,i,s;return D(this,void 0,void 0,function*(){try{for(n=Br(t);r=yield n.next(),!r.done;){const o=r.value;e.write(o)}}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(i)throw i.error}}return e.finish()})}function Hi(e){const t=wn.from(e);return Jn(t)?t.then(n=>Hi(n)):t.isAsync()?t.readAll().then(n=>new Pt(n)):new Pt(t.readAll())}function Ua(e,t="stream"){return(t==="stream"?md:gd).writeAll(e).toUint8Array(!0)}var qf=function(){function e(t,n,r,i){var s=this;this.getCell=function(o,l){var a=o<s.headerRows&&l<s.headerColumns,u=o>=s.headerRows&&l<s.headerColumns,c=o<s.headerRows&&l>=s.headerColumns;if(a){var f=["blank"];return l>0&&f.push("level"+o),{type:"blank",classNames:f.join(" "),content:""}}else if(c){var m=l-s.headerColumns,f=["col_heading","level"+o,"col"+m];return{type:"columns",classNames:f.join(" "),content:s.getContent(s.columnsTable,m,o)}}else if(u){var g=o-s.headerRows,f=["row_heading","level"+l,"row"+g];return{type:"index",id:"T_".concat(s.uuid,"level").concat(l,"_row").concat(g),classNames:f.join(" "),content:s.getContent(s.indexTable,g,l)}}else{var g=o-s.headerRows,m=l-s.headerColumns,f=["data","row"+g,"col"+m],v=s.styler?s.getContent(s.styler.displayValuesTable,g,m):s.getContent(s.dataTable,g,m);return{type:"data",id:"T_".concat(s.uuid,"row").concat(g,"_col").concat(m),classNames:f.join(" "),content:v}}},this.getContent=function(o,l,a){var u=o.getChildAt(a);if(u===null)return"";var c=s.getColumnTypeId(o,a);switch(c){case p.Timestamp:return s.nanosToDate(u.get(l));default:return u.get(l)}},this.dataTable=Hi(t),this.indexTable=Hi(n),this.columnsTable=Hi(r),this.styler=i?{caption:i.caption,displayValuesTable:Hi(i.displayValues),styles:i.styles,uuid:i.uuid}:void 0}return Object.defineProperty(e.prototype,"rows",{get:function(){return this.indexTable.numRows+this.columnsTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataRows",{get:function(){return this.dataTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"table",{get:function(){return this.dataTable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.indexTable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!1,configurable:!0}),e.prototype.serialize=function(){return{data:Ua(this.dataTable),index:Ua(this.indexTable),columns:Ua(this.columnsTable)}},e.prototype.getColumnTypeId=function(t,n){return t.schema.fields[n].type.typeId},e.prototype.nanosToDate=function(t){return new Date(t/1e6)},e}(),ns=function(){return ns=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ns.apply(this,arguments)},rs;(function(e){e.COMPONENT_READY="streamlit:componentReady",e.SET_COMPONENT_VALUE="streamlit:setComponentValue",e.SET_FRAME_HEIGHT="streamlit:setFrameHeight"})(rs||(rs={}));var $e=function(){function e(){}return e.API_VERSION=1,e.RENDER_EVENT="streamlit:render",e.events=new EventTarget,e.registeredMessageListener=!1,e.setComponentReady=function(){e.registeredMessageListener||(window.addEventListener("message",e.onMessageEvent),e.registeredMessageListener=!0),e.sendBackMsg(rs.COMPONENT_READY,{apiVersion:e.API_VERSION})},e.setFrameHeight=function(t){t===void 0&&(t=document.body.scrollHeight),t!==e.lastFrameHeight&&(e.lastFrameHeight=t,e.sendBackMsg(rs.SET_FRAME_HEIGHT,{height:t}))},e.setComponentValue=function(t){var n;t instanceof qf?(n="dataframe",t=t.serialize()):j1(t)?(n="bytes",t=new Uint8Array(t.buffer)):t instanceof ArrayBuffer?(n="bytes",t=new Uint8Array(t)):n="json",e.sendBackMsg(rs.SET_COMPONENT_VALUE,{value:t,dataType:n})},e.onMessageEvent=function(t){var n=t.data.type;switch(n){case e.RENDER_EVENT:e.onRenderMessage(t.data);break}},e.onRenderMessage=function(t){var n=t.args;n==null&&(console.error("Got null args in onRenderMessage. This should never happen"),n={});var r=t.dfs&&t.dfs.length>0?e.argsDataframeToObject(t.dfs):{};n=ns(ns({},n),r);var i=!!t.disabled,s=t.theme;s&&z1(s);var o={disabled:i,args:n,theme:s},l=new CustomEvent(e.RENDER_EVENT,{detail:o});e.events.dispatchEvent(l)},e.argsDataframeToObject=function(t){var n=t.map(function(r){var i=r.key,s=r.value;return[i,e.toArrowTable(s)]});return Object.fromEntries(n)},e.toArrowTable=function(t){var n,r=(n=t.data,n.data),i=n.index,s=n.columns,o=n.styler;return new qf(r,i,s,o)},e.sendBackMsg=function(t,n){window.parent.postMessage(ns({isStreamlitMessage:!0,type:t},n),"*")},e}(),z1=function(e){var t=document.createElement("style");document.head.appendChild(t),t.innerHTML=`
|
51
51
|
:root {
|
52
52
|
--primary-color: `.concat(e.primaryColor,`;
|
53
53
|
--background-color: `).concat(e.backgroundColor,`;
|
@@ -60,4 +60,4 @@ Error generating stack: `+s.message+`
|
|
60
60
|
background-color: var(--background-color);
|
61
61
|
color: var(--text-color);
|
62
62
|
}
|
63
|
-
`)};function j1(e){var t=!1;try{t=e instanceof BigInt64Array||e instanceof BigUint64Array}catch{}return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array||t}var sg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),V1=function(e){sg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){$e.setFrameHeight()},t.prototype.componentDidUpdate=function(){$e.setFrameHeight()},t}(fr.PureComponent);function $1(e){var t=function(n){sg(r,n);function r(i){var s=n.call(this,i)||this;return s.componentDidMount=function(){$e.events.addEventListener($e.RENDER_EVENT,s.onRenderEvent),$e.setComponentReady()},s.componentDidUpdate=function(){s.state.componentError!=null&&$e.setFrameHeight()},s.componentWillUnmount=function(){$e.events.removeEventListener($e.RENDER_EVENT,s.onRenderEvent)},s.onRenderEvent=function(o){s.setState({renderData:o.detail})},s.state={renderData:void 0,componentError:void 0},s}return r.prototype.render=function(){return this.state.componentError!=null?fr.createElement("div",null,fr.createElement("h1",null,"Component Error"),fr.createElement("span",null,this.state.componentError.message)):this.state.renderData==null?null:fr.createElement(e,{width:window.innerWidth,disabled:this.state.renderData.disabled,args:this.state.renderData.args,theme:this.state.renderData.theme})},r.getDerivedStateFromError=function(i){return{componentError:i}},r}(fr.PureComponent);return ew(t,e)}function og(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=og(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function W1(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=og(e))&&(r&&(r+=" "),r+=t);return r}function lg(...e){return W1(e)}function H1(e,t={}){const n=new(window.AudioContext||window.webkitAudioContext),r=n.createMediaStreamSource(e),i=n.createAnalyser();return t.fftSize&&(i.fftSize=t.fftSize),t.smoothingTimeConstant!==void 0&&(i.smoothingTimeConstant=t.smoothingTimeConstant),t.minDecibels!==void 0&&(i.minDecibels=t.minDecibels),t.maxDecibels!==void 0&&(i.maxDecibels=t.maxDecibels),r.connect(i),{analyser:i,audioContext:n,cleanup:()=>{r.disconnect(),n.close()}}}const Y1={bands:5,loPass:100,hiPass:600,updateInterval:32,analyserOptions:{fftSize:2048}},Q1=e=>{if(e===-1/0)return 0;const r=1-Math.max(-100,Math.min(-10,e))*-1/100;return Math.sqrt(r)};function K1(e,t={}){var l,a,u,c;const n=ht.useMemo(()=>({...Y1,...t}),[t.bands,t.loPass,t.hiPass,t.updateInterval,(l=t.analyserOptions)==null?void 0:l.fftSize,(a=t.analyserOptions)==null?void 0:a.smoothingTimeConstant,(u=t.analyserOptions)==null?void 0:u.minDecibels,(c=t.analyserOptions)==null?void 0:c.maxDecibels]),[r,i]=ht.useState(()=>new Array(n.bands).fill(0)),s=ht.useRef(new Array(n.bands).fill(0)),o=ht.useRef(void 0);return ht.useEffect(()=>{if(!e){const b=new Array(n.bands).fill(0);i(b),s.current=b;return}const{analyser:f,cleanup:p}=H1(e,n.analyserOptions),g=f.frequencyBinCount,v=new Float32Array(g),S=n.loPass,Q=n.hiPass,h=Q-S,d=Math.ceil(h/n.bands);let m=0;const w=n.updateInterval,I=b=>{if(b-m>=w){f.getFloatFrequencyData(v);const E=new Array(n.bands);for(let W=0;W<n.bands;W++){let A=0,kt=0;const sn=S+W*d,on=Math.min(S+(W+1)*d,Q);for(let Mr=sn;Mr<on;Mr++)A+=Q1(v[Mr]),kt++;E[W]=kt>0?A/kt:0}let O=!1;for(let W=0;W<E.length;W++)if(Math.abs(E[W]-s.current[W])>.01){O=!0;break}O&&(s.current=E,i(E)),m=b}o.current=requestAnimationFrame(I)};return o.current=requestAnimationFrame(I),()=>{p(),o.current&&cancelAnimationFrame(o.current)}},[e,n]),r}const J1=(e,t,n)=>{const r=ht.useRef(0),[i,s]=ht.useState([]),o=ht.useRef(null),l=ht.useMemo(()=>e==="thinking"||e==="listening"?X1(t):e==="connecting"||e==="initializing"?G1(t):e===void 0||e==="speaking"?[new Array(t).fill(0).map((a,u)=>u)]:[[]],[e,t]);return ht.useEffect(()=>{r.current=0,s(l[0]||[])},[l]),ht.useEffect(()=>{let a=performance.now();const u=c=>{c-a>=n&&(r.current=(r.current+1)%l.length,s(l[r.current]||[]),a=c),o.current=requestAnimationFrame(u)};return o.current=requestAnimationFrame(u),()=>{o.current!==null&&cancelAnimationFrame(o.current)}},[n,l]),i},G1=e=>{const t=[];for(let n=0;n<e;n++)t.push([n,e-1-n]);return t},X1=e=>[[Math.floor(e/2)],[-1]],ag=ht.forwardRef(({state:e,barCount:t=15,mediaStream:n,minHeight:r=20,maxHeight:i=100,demo:s=!1,centerAlign:o=!1,className:l,style:a,...u},c)=>{const f=K1(n,{bands:t,loPass:100,hiPass:200}),p=ht.useRef(new Array(t).fill(.2)),[g,v]=ht.useState(()=>new Array(t).fill(.2)),S=ht.useRef(void 0);ht.useEffect(()=>{if(!s)return;if(e!=="speaking"&&e!=="listening"){const b=new Array(t).fill(.2);p.current=b,v(b);return}let d=0;const m=50,w=Date.now()/1e3,I=b=>{if(b-d>=m){const E=Date.now()/1e3-w,O=new Array(t);for(let A=0;A<t;A++){const kt=A*.5,sn=Math.sin(E*2+kt)*.3+.5,on=Math.random()*.2;O[A]=Math.max(.1,Math.min(1,sn+on))}let W=!1;for(let A=0;A<t;A++)if(Math.abs(O[A]-p.current[A])>.05){W=!0;break}W&&(p.current=O,v(O)),d=b}S.current=requestAnimationFrame(I)};return S.current=requestAnimationFrame(I),()=>{S.current&&cancelAnimationFrame(S.current)}},[s,e,t]);const Q=ht.useMemo(()=>s?g:f,[s,g,f]),h=J1(e,t,e==="connecting"?2e3/t:e==="thinking"?150:e==="listening"?500:1e3);return Un.jsx("div",{ref:c,"data-state":e,className:lg("relative flex justify-center gap-1.5",o?"items-center":"items-end","bg-muted h-28 w-full overflow-hidden rounded-lg",l),style:{...a},...u,children:Q.map((d,m)=>{const w=Math.min(i,Math.max(r,d*100+5)),I=(h==null?void 0:h.includes(m))??!1;return Un.jsx(ug,{heightPct:w,isHighlighted:I,state:e},m)})})}),ug=ht.memo(({heightPct:e,isHighlighted:t,state:n})=>Un.jsx("div",{"data-highlighted":t,className:lg("max-w-[12px] min-w-[8px] flex-1 transition-all duration-150","rounded-full","bg-border data-[highlighted=true]:bg-primary",n==="speaking"&&"bg-primary",n==="thinking"&&t&&"animate-pulse"),style:{height:`${e}%`,animationDuration:n==="thinking"?"300ms":void 0}}));ug.displayName="Bar";const cg=ht.memo(ag,(e,t)=>e.state===t.state&&e.barCount===t.barCount&&e.mediaStream===t.mediaStream&&e.minHeight===t.minHeight&&e.maxHeight===t.maxHeight&&e.demo===t.demo&&e.centerAlign===t.centerAlign&&e.className===t.className&&JSON.stringify(e.style)===JSON.stringify(t.style));ag.displayName="BarVisualizerComponent";cg.displayName="BarVisualizer";class Z1 extends V1{constructor(){super(...arguments);Re(this,"state",{mediaStream:null,audioState:"idle"});Re(this,"audioRef",ht.createRef());Re(this,"render",()=>{const n=this.props.args.state||"listening",r=this.props.args.barCount||20,i=this.props.args.minHeight||15,s=this.props.args.maxHeight||90,o=this.props.args.demo!==!1,l=this.props.args.centerAlign||!1,a=this.props.args.streamUrl;let u;if(n==="auto"){switch(this.state.audioState){case"loading":u="thinking";break;case"playing":u="speaking";break;case"ended":u="initializing";break;case"idle":default:u="listening";break}console.log("🤖 Auto mode: audioState =",this.state.audioState,"→ displayState =",u)}else u=n;const c=o||a&&!this.state.mediaStream;return a&&!this.state.mediaStream&&console.log("⏳ 音頻加載中... (UI 已顯示,使用假數據動畫,狀態:",u,")"),Un.jsxs("div",{className:"streamlit-bar-visualizer",children:[a&&Un.jsx("audio",{ref:this.audioRef,src:a,controls:!1,autoPlay:!0,crossOrigin:"anonymous",style:{display:"none"}}),Un.jsx(cg,{mediaStream:this.state.mediaStream,state:u,barCount:r,minHeight:i,maxHeight:s,demo:c,centerAlign:l})]})});Re(this,"componentDidMount",async()=>{const n=this.props.args.streamUrl,r=this.props.args.demo!==!1;if(n&&this.audioRef.current){console.log("🎵 Attempting to load audio stream:",n);const i=this.audioRef.current;this.setState({audioState:"loading"}),i.addEventListener("loadstart",this.handleLoadStart),i.addEventListener("playing",this.handlePlaying),i.addEventListener("ended",this.handleEnded);try{await new Promise((o,l)=>{const a=setTimeout(()=>l(new Error("Audio load timeout")),1e4);i.oncanplay=()=>{clearTimeout(a),o(!0)},i.onerror=u=>{var c,f,p;clearTimeout(a),console.error("❌ Audio element error event:",u),console.error(" Error code:",(c=i.error)==null?void 0:c.code),console.error(" Error message:",(f=i.error)==null?void 0:f.message),console.error(" Network state:",i.networkState),console.error(" Ready state:",i.readyState),l(new Error(`Audio load error: ${((p=i.error)==null?void 0:p.message)||"Unknown error"}`))}}),i.muted=!0,await i.play(),console.log("✅ Audio stream is playing (initially muted)"),await new Promise(o=>setTimeout(o,100));const s=i;if(typeof s.captureStream=="function"){const o=s.captureStream();this.setState({mediaStream:o}),console.log("✅ Audio stream captured successfully via captureStream()"),i.muted=!1,console.log("🔊 Audio unmuted - you should now hear the sound")}else if(typeof s.mozCaptureStream=="function"){const o=s.mozCaptureStream();this.setState({mediaStream:o}),console.log("✅ Audio stream captured successfully via mozCaptureStream() (Firefox)"),i.muted=!1,console.log("🔊 Audio unmuted - you should now hear the sound")}else console.error("❌ HTMLAudioElement.captureStream() is not supported in this browser.")}catch(s){console.error("❌ Error playing or capturing audio stream:",s),console.warn("⚠️ Audio stream failed. Not falling back to microphone. Check console for errors.")}}else if(r)console.log("🎭 Running in demo mode (using fake audio data)");else{console.log("🎤 Attempting to access microphone...");try{const i=await navigator.mediaDevices.getUserMedia({audio:!0});this.setState({mediaStream:i}),console.log("✅ Microphone access granted")}catch(i){console.error("❌ Error accessing microphone:",i)}}$e.setFrameHeight()});Re(this,"componentWillUnmount",()=>{if(this.state.mediaStream&&!this.props.args.streamUrl&&this.state.mediaStream.getTracks().forEach(n=>n.stop()),this.audioRef.current){const n=this.audioRef.current;n.pause(),n.removeEventListener("loadstart",this.handleLoadStart),n.removeEventListener("playing",this.handlePlaying),n.removeEventListener("ended",this.handleEnded)}});Re(this,"componentDidUpdate",async n=>{const r=n.args.streamUrl,i=this.props.args.streamUrl;if(i&&r!==i&&this.audioRef.current){console.log("🔄 Stream URL changed, updating audio source..."),this.setState({mediaStream:null,audioState:"loading"});const s=this.audioRef.current;s.removeEventListener("loadstart",this.handleLoadStart),s.removeEventListener("playing",this.handlePlaying),s.removeEventListener("ended",this.handleEnded),s.addEventListener("loadstart",this.handleLoadStart),s.addEventListener("playing",this.handlePlaying),s.addEventListener("ended",this.handleEnded),s.src=i;try{s.muted=!0,await s.play();const o=s;if(typeof o.captureStream=="function"){const l=o.captureStream();this.setState({mediaStream:l}),console.log("✅ Audio stream updated and captured successfully"),s.muted=!1,console.log("🔊 Audio unmuted")}else if(typeof o.mozCaptureStream=="function"){const l=o.mozCaptureStream();this.setState({mediaStream:l}),console.log("✅ Audio stream updated and captured successfully (Firefox)"),s.muted=!1,console.log("🔊 Audio unmuted")}}catch(o){console.error("❌ Error updating audio stream:",o)}}$e.setFrameHeight()});Re(this,"handleLoadStart",()=>{console.log("📥 Audio loadstart"),this.setState({audioState:"loading"})});Re(this,"handlePlaying",()=>{console.log("▶️ Audio playing"),this.setState({audioState:"playing"})});Re(this,"handleEnded",()=>{console.log("⏹️ Audio ended"),this.setState({audioState:"ended"})})}}const q1=$1(Z1);zv.render(Un.jsx(fr.StrictMode,{children:Un.jsx(q1,{})}),document.getElementById("root"));
|
63
|
+
`)};function j1(e){var t=!1;try{t=e instanceof BigInt64Array||e instanceof BigUint64Array}catch{}return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array||t}var sg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),V1=function(e){sg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){$e.setFrameHeight()},t.prototype.componentDidUpdate=function(){$e.setFrameHeight()},t}(fr.PureComponent);function $1(e){var t=function(n){sg(r,n);function r(i){var s=n.call(this,i)||this;return s.componentDidMount=function(){$e.events.addEventListener($e.RENDER_EVENT,s.onRenderEvent),$e.setComponentReady()},s.componentDidUpdate=function(){s.state.componentError!=null&&$e.setFrameHeight()},s.componentWillUnmount=function(){$e.events.removeEventListener($e.RENDER_EVENT,s.onRenderEvent)},s.onRenderEvent=function(o){s.setState({renderData:o.detail})},s.state={renderData:void 0,componentError:void 0},s}return r.prototype.render=function(){return this.state.componentError!=null?fr.createElement("div",null,fr.createElement("h1",null,"Component Error"),fr.createElement("span",null,this.state.componentError.message)):this.state.renderData==null?null:fr.createElement(e,{width:window.innerWidth,disabled:this.state.renderData.disabled,args:this.state.renderData.args,theme:this.state.renderData.theme})},r.getDerivedStateFromError=function(i){return{componentError:i}},r}(fr.PureComponent);return ew(t,e)}function og(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=og(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function W1(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=og(e))&&(r&&(r+=" "),r+=t);return r}function lg(...e){return W1(e)}function H1(e,t={}){const n=new(window.AudioContext||window.webkitAudioContext),r=n.createMediaStreamSource(e),i=n.createAnalyser();return t.fftSize&&(i.fftSize=t.fftSize),t.smoothingTimeConstant!==void 0&&(i.smoothingTimeConstant=t.smoothingTimeConstant),t.minDecibels!==void 0&&(i.minDecibels=t.minDecibels),t.maxDecibels!==void 0&&(i.maxDecibels=t.maxDecibels),r.connect(i),{analyser:i,audioContext:n,cleanup:()=>{r.disconnect(),n.close()}}}const Y1={bands:5,loPass:100,hiPass:600,updateInterval:32,analyserOptions:{fftSize:2048}},Q1=e=>{if(e===-1/0)return 0;const r=1-Math.max(-100,Math.min(-10,e))*-1/100;return Math.sqrt(r)};function K1(e,t={}){var l,a,u,c;const n=ht.useMemo(()=>({...Y1,...t}),[t.bands,t.loPass,t.hiPass,t.updateInterval,(l=t.analyserOptions)==null?void 0:l.fftSize,(a=t.analyserOptions)==null?void 0:a.smoothingTimeConstant,(u=t.analyserOptions)==null?void 0:u.minDecibels,(c=t.analyserOptions)==null?void 0:c.maxDecibels]),[r,i]=ht.useState(()=>new Array(n.bands).fill(0)),s=ht.useRef(new Array(n.bands).fill(0)),o=ht.useRef(void 0);return ht.useEffect(()=>{if(!e){const b=new Array(n.bands).fill(0);i(b),s.current=b;return}const{analyser:f,cleanup:m}=H1(e,n.analyserOptions),g=f.frequencyBinCount,v=new Float32Array(g),S=n.loPass,Q=n.hiPass,h=Q-S,d=Math.ceil(h/n.bands);let y=0;const w=n.updateInterval,I=b=>{if(b-y>=w){f.getFloatFrequencyData(v);const E=new Array(n.bands);for(let W=0;W<n.bands;W++){let A=0,Nt=0;const sn=S+W*d,on=Math.min(S+(W+1)*d,Q);for(let Mr=sn;Mr<on;Mr++)A+=Q1(v[Mr]),Nt++;E[W]=Nt>0?A/Nt:0}let O=!1;for(let W=0;W<E.length;W++)if(Math.abs(E[W]-s.current[W])>.01){O=!0;break}O&&(s.current=E,i(E)),y=b}o.current=requestAnimationFrame(I)};return o.current=requestAnimationFrame(I),()=>{m(),o.current&&cancelAnimationFrame(o.current)}},[e,n]),r}const J1=(e,t,n)=>{const r=ht.useRef(0),[i,s]=ht.useState([]),o=ht.useRef(null),l=ht.useMemo(()=>e==="thinking"||e==="listening"?X1(t):e==="connecting"||e==="initializing"?G1(t):e===void 0||e==="speaking"?[new Array(t).fill(0).map((a,u)=>u)]:[[]],[e,t]);return ht.useEffect(()=>{r.current=0,s(l[0]||[])},[l]),ht.useEffect(()=>{let a=performance.now();const u=c=>{c-a>=n&&(r.current=(r.current+1)%l.length,s(l[r.current]||[]),a=c),o.current=requestAnimationFrame(u)};return o.current=requestAnimationFrame(u),()=>{o.current!==null&&cancelAnimationFrame(o.current)}},[n,l]),i},G1=e=>{const t=[];for(let n=0;n<e;n++)t.push([n,e-1-n]);return t},X1=e=>[[Math.floor(e/2)],[-1]],ag=ht.forwardRef(({state:e,barCount:t=15,mediaStream:n,minHeight:r=20,maxHeight:i=100,demo:s=!1,centerAlign:o=!1,className:l,style:a,...u},c)=>{const f=K1(n,{bands:t,loPass:100,hiPass:200}),m=ht.useRef(new Array(t).fill(.2)),[g,v]=ht.useState(()=>new Array(t).fill(.2)),S=ht.useRef(void 0);ht.useEffect(()=>{if(!s)return;if(e!=="speaking"&&e!=="listening"){const b=new Array(t).fill(.2);m.current=b,v(b);return}let d=0;const y=50,w=Date.now()/1e3,I=b=>{if(b-d>=y){const E=Date.now()/1e3-w,O=new Array(t);for(let A=0;A<t;A++){const Nt=A*.5,sn=Math.sin(E*2+Nt)*.3+.5,on=Math.random()*.2;O[A]=Math.max(.1,Math.min(1,sn+on))}let W=!1;for(let A=0;A<t;A++)if(Math.abs(O[A]-m.current[A])>.05){W=!0;break}W&&(m.current=O,v(O)),d=b}S.current=requestAnimationFrame(I)};return S.current=requestAnimationFrame(I),()=>{S.current&&cancelAnimationFrame(S.current)}},[s,e,t]);const Q=ht.useMemo(()=>s?g:f,[s,g,f]),h=J1(e,t,e==="connecting"?2e3/t:e==="thinking"?150:e==="listening"?500:1e3);return Un.jsx("div",{ref:c,"data-state":e,className:lg("relative flex justify-center gap-1.5",o?"items-center":"items-end","bg-muted h-28 w-full overflow-hidden rounded-lg",l),style:{...a},...u,children:Q.map((d,y)=>{const w=Math.min(i,Math.max(r,d*100+5)),I=(h==null?void 0:h.includes(y))??!1;return Un.jsx(ug,{heightPct:w,isHighlighted:I,state:e},y)})})}),ug=ht.memo(({heightPct:e,isHighlighted:t,state:n})=>Un.jsx("div",{"data-highlighted":t,className:lg("max-w-[12px] min-w-[8px] flex-1 transition-all duration-150","rounded-full","bg-border data-[highlighted=true]:bg-primary",n==="speaking"&&"bg-primary",n==="thinking"&&t&&"animate-pulse"),style:{height:`${e}%`,animationDuration:n==="thinking"?"300ms":void 0}}));ug.displayName="Bar";const cg=ht.memo(ag,(e,t)=>e.state===t.state&&e.barCount===t.barCount&&e.mediaStream===t.mediaStream&&e.minHeight===t.minHeight&&e.maxHeight===t.maxHeight&&e.demo===t.demo&&e.centerAlign===t.centerAlign&&e.className===t.className&&JSON.stringify(e.style)===JSON.stringify(t.style));ag.displayName="BarVisualizerComponent";cg.displayName="BarVisualizer";class Z1 extends V1{constructor(){super(...arguments);Re(this,"state",{mediaStream:null,audioState:"idle"});Re(this,"audioRef",ht.createRef());Re(this,"render",()=>{const n=this.props.args.state||"listening",r=this.props.args.barCount||20,i=this.props.args.minHeight||15,s=this.props.args.maxHeight||90,o=this.props.args.demo!==!1,l=this.props.args.centerAlign||!1,a=this.props.args.streamUrl;let u;if(n==="auto"){switch(this.state.audioState){case"loading":u="thinking";break;case"playing":u="speaking";break;case"ended":u="initializing";break;case"idle":default:u="listening";break}console.log("🤖 Auto mode: audioState =",this.state.audioState,"→ displayState =",u)}else u=n;const c=o||a&&!this.state.mediaStream;return a&&!this.state.mediaStream&&console.log("⏳ 音頻加載中... (UI 已顯示,使用假數據動畫,狀態:",u,")"),Un.jsxs("div",{className:"streamlit-bar-visualizer",children:[a&&Un.jsx("audio",{ref:this.audioRef,src:a,controls:!1,autoPlay:!0,crossOrigin:"anonymous",style:{display:"none"}}),Un.jsx(cg,{mediaStream:this.state.mediaStream,state:u,barCount:r,minHeight:i,maxHeight:s,demo:c,centerAlign:l})]})});Re(this,"componentDidMount",async()=>{const n=this.props.args.streamUrl;if(this.props.args.demo,n&&this.audioRef.current){console.log("🎵 Attempting to load audio stream:",n);const r=this.audioRef.current;this.setState({audioState:"loading"}),r.addEventListener("loadstart",this.handleLoadStart),r.addEventListener("playing",this.handlePlaying),r.addEventListener("ended",this.handleEnded);try{await new Promise((s,o)=>{const l=setTimeout(()=>o(new Error("Audio load timeout")),1e4);r.oncanplay=()=>{clearTimeout(l),s(!0)},r.onerror=a=>{var u,c,f;clearTimeout(l),console.error("❌ Audio element error event:",a),console.error(" Error code:",(u=r.error)==null?void 0:u.code),console.error(" Error message:",(c=r.error)==null?void 0:c.message),console.error(" Network state:",r.networkState),console.error(" Ready state:",r.readyState),o(new Error(`Audio load error: ${((f=r.error)==null?void 0:f.message)||"Unknown error"}`))}}),r.muted=!0,await r.play(),console.log("✅ Audio stream is playing (initially muted)"),await new Promise(s=>setTimeout(s,100));const i=r;if(typeof i.captureStream=="function"){const s=i.captureStream();this.setState({mediaStream:s}),console.log("✅ Audio stream captured successfully via captureStream()"),r.muted=!1,console.log("🔊 Audio unmuted - you should now hear the sound")}else if(typeof i.mozCaptureStream=="function"){const s=i.mozCaptureStream();this.setState({mediaStream:s}),console.log("✅ Audio stream captured successfully via mozCaptureStream() (Firefox)"),r.muted=!1,console.log("🔊 Audio unmuted - you should now hear the sound")}else console.error("❌ HTMLAudioElement.captureStream() is not supported in this browser.")}catch(i){console.error("❌ Error playing or capturing audio stream:",i),console.warn("⚠️ Audio stream failed. Not falling back to microphone. Check console for errors.")}}else console.log("🎭 No audio stream provided - running in demo mode (using fake audio data)");$e.setFrameHeight()});Re(this,"componentWillUnmount",()=>{if(this.state.mediaStream&&!this.props.args.streamUrl&&this.state.mediaStream.getTracks().forEach(n=>n.stop()),this.audioRef.current){const n=this.audioRef.current;n.pause(),n.removeEventListener("loadstart",this.handleLoadStart),n.removeEventListener("playing",this.handlePlaying),n.removeEventListener("ended",this.handleEnded)}});Re(this,"componentDidUpdate",async n=>{const r=n.args.streamUrl,i=this.props.args.streamUrl;if(i&&r!==i&&this.audioRef.current){console.log("🔄 Stream URL changed, updating audio source..."),this.setState({mediaStream:null,audioState:"loading"});const s=this.audioRef.current;s.removeEventListener("loadstart",this.handleLoadStart),s.removeEventListener("playing",this.handlePlaying),s.removeEventListener("ended",this.handleEnded),s.addEventListener("loadstart",this.handleLoadStart),s.addEventListener("playing",this.handlePlaying),s.addEventListener("ended",this.handleEnded),s.src=i;try{s.muted=!0,await s.play();const o=s;if(typeof o.captureStream=="function"){const l=o.captureStream();this.setState({mediaStream:l}),console.log("✅ Audio stream updated and captured successfully"),s.muted=!1,console.log("🔊 Audio unmuted")}else if(typeof o.mozCaptureStream=="function"){const l=o.mozCaptureStream();this.setState({mediaStream:l}),console.log("✅ Audio stream updated and captured successfully (Firefox)"),s.muted=!1,console.log("🔊 Audio unmuted")}}catch(o){console.error("❌ Error updating audio stream:",o)}}$e.setFrameHeight()});Re(this,"handleLoadStart",()=>{console.log("📥 Audio loadstart"),this.setState({audioState:"loading"})});Re(this,"handlePlaying",()=>{console.log("▶️ Audio playing"),this.setState({audioState:"playing"})});Re(this,"handleEnded",()=>{console.log("⏹️ Audio ended"),this.setState({audioState:"ended"})})}}const q1=$1(Z1);zv.render(Un.jsx(fr.StrictMode,{children:Un.jsx(q1,{})}),document.getElementById("root"));
|