streamlit-webrtc 0.48.1__py3-none-any.whl → 0.49.0__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_webrtc/component.py +2 -2
- streamlit_webrtc/frontend/dist/assets/index-BfANt4tM.js +258 -0
- streamlit_webrtc/frontend/dist/index.html +15 -0
- {streamlit_webrtc-0.48.1.dist-info → streamlit_webrtc-0.49.0.dist-info}/METADATA +2 -3
- {streamlit_webrtc-0.48.1.dist-info → streamlit_webrtc-0.49.0.dist-info}/RECORD +7 -10
- streamlit_webrtc/frontend/build/asset-manifest.json +0 -10
- streamlit_webrtc/frontend/build/index.html +0 -1
- streamlit_webrtc/frontend/build/static/js/main.39438811.js +0 -103
- streamlit_webrtc/frontend/build/static/js/main.39438811.js.LICENSE.txt +0 -69
- streamlit_webrtc/frontend/build/static/js/main.39438811.js.map +0 -1
- {streamlit_webrtc-0.48.1.dist-info → streamlit_webrtc-0.49.0.dist-info}/LICENSE +0 -0
- {streamlit_webrtc-0.48.1.dist-info → streamlit_webrtc-0.49.0.dist-info}/WHEEL +0 -0
@@ -1,103 +0,0 @@
|
|
1
|
-
/*! For license information please see main.39438811.js.LICENSE.txt */
|
2
|
-
(()=>{var e={5243:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,s=Object.assign;function a(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var m=1,y=1,b=0,g=0,v=0,w="";function S(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:m,column:y,length:s,return:""}}function _(e,t){return s(S("",null,null,"",null,null,0),e,{length:-e.length},t)}function A(){return v=g>0?u(w,--g):0,y--,10===v&&(y=1,m--),v}function x(){return v=g<b?u(w,g++):0,y++,10===v&&(y=1,m++),v}function k(){return u(w,g)}function C(){return g}function T(e,t){return d(w,e,t)}function I(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E(e){return m=y=1,b=f(w=e),g=0,[]}function R(e){return w="",e}function O(e){return a(T(g-1,N(91===e?e+2:40===e?e+1:e)))}function P(e){for(;(v=k())&&v<33;)x();return I(e)>2||I(v)>3?"":" "}function M(e,t){for(;--t&&x()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return T(e,C()+(t<6&&32==k()&&32==x()))}function N(e){for(;x();)switch(v){case e:return g;case 34:case 39:34!==e&&39!==e&&N(v);break;case 40:41===e&&N(e);break;case 92:x()}return g}function D(e,t){for(;x()&&e+v!==57&&(e+v!==84||47!==k()););return"/*"+T(t,g-1)+"*"+o(47===e?e:x())}function L(e){for(;!I(k());)x();return T(e,g)}var B="-ms-",F="-moz-",j="-webkit-",z="comm",U="rule",$="decl",V="@keyframes";function W(e,t){for(var n="",r=p(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function H(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case $:return e.return=e.return||e.value;case z:return"";case V:return e.return=e.value+"{"+W(e.children,r)+"}";case U:e.value=e.props.join(",")}return f(n=W(e.children,r))?e.return=e.value+"{"+n+"}":""}function Y(e){return R(G("",null,null,null,[""],e=E(e),0,[0],e))}function G(e,t,n,r,i,s,a,d,p){for(var m=0,y=0,b=a,g=0,v=0,w=0,S=1,_=1,T=1,I=0,E="",R=i,N=s,B=r,F=E;_;)switch(w=I,I=x()){case 40:if(108!=w&&58==u(F,b-1)){-1!=c(F+=l(O(I),"&","&\f"),"&\f")&&(T=-1);break}case 34:case 39:case 91:F+=O(I);break;case 9:case 10:case 13:case 32:F+=P(w);break;case 92:F+=M(C()-1,7);continue;case 47:switch(k()){case 42:case 47:h(q(D(x(),C()),t,n),p);break;default:F+="/"}break;case 123*S:d[m++]=f(F)*T;case 125*S:case 59:case 0:switch(I){case 0:case 125:_=0;case 59+y:-1==T&&(F=l(F,/\f/g,"")),v>0&&f(F)-b&&h(v>32?X(F+";",r,n,b-1):X(l(F," ","")+";",r,n,b-2),p);break;case 59:F+=";";default:if(h(B=K(F,t,n,m,y,i,d,E,R=[],N=[],b),s),123===I)if(0===y)G(F,t,B,B,R,s,b,d,N);else switch(99===g&&110===u(F,3)?100:g){case 100:case 108:case 109:case 115:G(e,B,B,r&&h(K(e,B,B,0,0,i,d,E,i,R=[],b),N),i,N,b,d,r?R:N);break;default:G(F,B,B,B,[""],N,0,d,N)}}m=y=v=0,S=T=1,E=F="",b=a;break;case 58:b=1+f(F),v=w;default:if(S<1)if(123==I)--S;else if(125==I&&0==S++&&125==A())continue;switch(F+=o(I),I*S){case 38:T=y>0?1:(F+="\f",-1);break;case 44:d[m++]=(f(F)-1)*T,T=1;break;case 64:45===k()&&(F+=O(x())),g=k(),y=b=f(E=F+=L(C())),I++;break;case 45:45===w&&2==f(F)&&(S=0)}}return s}function K(e,t,n,r,o,s,c,u,f,h,m){for(var y=o-1,b=0===o?s:[""],g=p(b),v=0,w=0,_=0;v<r;++v)for(var A=0,x=d(e,y+1,y=i(w=c[v])),k=e;A<g;++A)(k=a(w>0?b[A]+" "+x:l(x,/&\f/g,b[A])))&&(f[_++]=k);return S(e,t,n,0===o?U:u,f,h,m)}function q(e,t,n){return S(e,t,n,z,o(v),d(e,2,-2),0)}function X(e,t,n,r){return S(e,t,n,$,d(e,0,r),d(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,i=0;r=i,i=k(),38===r&&12===i&&(t[n]=1),!I(i);)x();return T(e,g)},J=function(e,t){return R(function(e,t){var n=-1,r=44;do{switch(I(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=Q(g-1,t,n);break;case 2:e[n]+=O(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=x());return e}(E(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var i=[],o=J(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+F+e+B+e+e;case 6828:case 4268:return j+e+B+e+e;case 6165:return j+e+B+"flex-"+e+e;case 5187:return j+e+l(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+B+"flex-$1$2")+e;case 5443:return j+e+B+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return j+e+B+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+B+l(e,"shrink","negative")+e;case 5292:return j+e+B+l(e,"basis","preferred-size")+e;case 6060:return j+"box-"+l(e,"-grow","")+j+e+B+l(e,"grow","positive")+e;case 4554:return j+l(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+B+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+j)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(45===u(e,14)?"inline-":"")+"box$3$1"+j+"$2$3$1"+B+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return j+e+B+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+B+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+B+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+B+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=ne(e.value,e.length);break;case V:return W([_(e,{value:l(e.value,"@","@"+j)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([_(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([_(e,{props:[l(t,/:(plac\w+)/,":"+j+"input-$1")]}),_(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),_(e,{props:[l(t,/:(plac\w+)/,B+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var o,s,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var c,u,d=[H,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=p(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}([ee,te].concat(i,d));s=function(e,t,n,r){c=n,W(Y(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:s};return h.sheet.hydrate(l),h}},10:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,T:()=>c,i:()=>o,w:()=>l});var r=n(7565),i=n(5243),o=(n(3743),n(6714),!0),s=r.createContext("undefined"!==typeof HTMLElement?(0,i.A)({key:"css"}):null);var a=s.Provider,l=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(s);return e(t,i,n)}))};o||(l=function(e){return function(t){var n=(0,r.useContext)(s);return null===n?(n=(0,i.A)({key:"css"}),r.createElement(s.Provider,{value:n},e(t,n))):e(t,n)}});var c=r.createContext({})},4304:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(10),i=n(7565),o=n(8592),s=n(6714),a=n(3743),l=(n(5243),n(2341),(0,r.w)((function(e,t){var n=e.styles,l=(0,a.J)([n],void 0,i.useContext(r.T));if(!r.i){for(var c,u=l.name,d=l.styles,f=l.next;void 0!==f;)u+=" "+f.name,d+=f.styles,f=f.next;var p=!0===t.compat,h=t.insert("",{name:u,styles:d},t.sheet,p);return p?null:i.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:h},c.nonce=t.sheet.nonce,c))}var m=i.useRef();return(0,s.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),m.current=[n,r],function(){n.flush()}}),[t]),(0,s.i)((function(){var e=m.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.J)(t)}var u=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},3743:(e,t,n)=>{"use strict";n.d(t,{J:()=>y});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function i(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var o=!1,s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=i((function(e){return l(e)?e:e.replace(s,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(a,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},f="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function p(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return h={name:i.name,styles:i.styles,next:h},i.name;var s=n;if(void 0!==s.styles){var a=s.next;if(void 0!==a)for(;void 0!==a;)h={name:a.name,styles:a.styles,next:h},a=a.next;return s.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=p(e,t,n[i])+";";else for(var s in n){var a=n[s];if("object"!==typeof a){var l=a;null!=t&&void 0!==t[l]?r+=s+"{"+t[l]+"}":c(l)&&(r+=u(s)+":"+d(s,l)+";")}else{if("NO_COMPONENT_SELECTOR"===s&&o)throw new Error(f);if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var h=p(e,t,a);switch(s){case"animation":case"animationName":r+=u(s)+":"+h+";";break;default:r+=s+"{"+h+"}"}}else for(var m=0;m<a.length;m++)c(a[m])&&(r+=u(s)+":"+d(s,a[m])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=h,m=n(e);return h=l,p(e,t,m)}}var y=n;if(null==t)return y;var b=t[y];return void 0!==b?b:y}var h,m=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function y(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";h=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=p(n,t,o)):i+=o[0];for(var s=1;s<e.length;s++){if(i+=p(n,t,e[s]),r)i+=o[s]}m.lastIndex=0;for(var a,l="";null!==(a=m.exec(i));)l+="-"+a[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:h}}},6714:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>a,s:()=>s});var i=n(7565),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,s=o||function(e){return e()},a=o||i.useLayoutEffect},8592:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>o});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},1993:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var i=r(n(549)),o=n(7929),s=(0,i.default)((0,o.jsx)("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H3V5h18v11z"}),"VideoLabel");t.A=s},4787:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var i=r(n(549)),o=n(7929),s=(0,i.default)((0,o.jsx)("path",{d:"m21 6.5-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2 2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3.27 2z"}),"VideocamOff");t.A=s},549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(14)},2384:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});n(7565);var r=n(4964);n(7929);function i(e){return(0,r.b)(e)}},1037:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(8168),i=n(8587),o=n(1098),s=n(7874),a=n(2346),l=n(5514),c=n(6325);var u=n(2388);const d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},b={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},g={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},v=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,i):"dark"===t&&(e.dark=(0,u.e$)(e.main,o)))}function A(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,l=(0,i.A)(e,v),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[200],light:y[50],dark:y[400]}:{main:y[700],light:y[400],dark:y[800]}}(t),A=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),x=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),k=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[700],light:b[500],dark:b[900]}}(t),C=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:g[800],light:g[500],dark:g[900]}}(t),T=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function I(e){return(0,u.eM)(e,S.text.primary)>=n?S.text.primary:w.text.primary}const E=e=>{let{color:t,name:n,mainShade:i=500,lightShade:s=300,darkShade:l=700}=e;if(t=(0,r.A)({},t),!t.main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,o.A)(11,n?` (${n})`:"",i));if("string"!==typeof t.main)throw new Error((0,o.A)(12,n?` (${n})`:"",JSON.stringify(t.main)));return _(t,"light",s,a),_(t,"dark",l,a),t.contrastText||(t.contrastText=I(t.main)),t},R={dark:S,light:w};return(0,s.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:E({color:c,name:"primary"}),secondary:E({color:A,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:E({color:x,name:"error"}),warning:E({color:T,name:"warning"}),info:E({color:k,name:"info"}),success:E({color:C,name:"success"}),grey:f,contrastThreshold:n,getContrastText:I,augmentColor:E,tonalOffset:a},R[t]),l)}const x=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const k={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function T(e,t){const n="function"===typeof t?t(e):t,{fontFamily:o=C,fontSize:a=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=(0,i.A)(n,x);const y=a/14,b=h||(e=>e/f*y+"rem"),g=(e,t,n,i,s)=>{return(0,r.A)({fontFamily:o,fontWeight:e,fontSize:b(t),lineHeight:n},o===C?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},s,p);var a},v={h1:g(l,96,1.167,-1.5),h2:g(l,60,1.2,-.5),h3:g(c,48,1.167,0),h4:g(c,34,1.235,.25),h5:g(c,24,1.334,0),h6:g(u,20,1.6,.15),subtitle1:g(c,16,1.75,.15),subtitle2:g(u,14,1.57,.1),body1:g(c,16,1.5,.15),body2:g(c,14,1.43,.15),button:g(u,14,1.75,.4,k),caption:g(c,12,1.66,.4),overline:g(c,12,2.66,1,k),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.A)((0,r.A)({htmlFontSize:f,pxToRem:b,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},v),m,{clone:!1})}function I(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const E=["none",I(0,2,1,-1,0,1,1,0,0,1,3,0),I(0,3,1,-2,0,2,2,0,0,1,5,0),I(0,3,3,-2,0,3,4,0,0,1,8,0),I(0,2,4,-1,0,4,5,0,0,1,10,0),I(0,3,5,-1,0,5,8,0,0,1,14,0),I(0,3,5,-1,0,6,10,0,0,1,18,0),I(0,4,5,-2,0,7,10,1,0,2,16,1),I(0,5,5,-3,0,8,10,1,0,3,14,2),I(0,5,6,-3,0,9,12,1,0,3,16,2),I(0,6,6,-3,0,10,14,1,0,4,18,3),I(0,6,7,-4,0,11,15,1,0,4,20,3),I(0,7,8,-4,0,12,17,2,0,5,22,4),I(0,7,8,-4,0,13,19,2,0,5,24,4),I(0,7,9,-4,0,14,21,2,0,5,26,4),I(0,8,9,-5,0,15,22,2,0,6,28,5),I(0,8,10,-5,0,16,24,2,0,6,30,5),I(0,8,11,-5,0,17,26,2,0,6,32,5),I(0,9,11,-5,0,18,28,2,0,7,34,6),I(0,9,12,-6,0,19,29,2,0,7,36,6),I(0,10,13,-6,0,20,31,3,0,8,38,7),I(0,10,13,-6,0,21,33,3,0,8,40,7),I(0,10,14,-6,0,22,35,3,0,8,42,7),I(0,11,14,-7,0,23,36,3,0,9,44,8),I(0,11,15,-7,0,24,38,3,0,9,46,8)],R=["duration","easing","delay"],O={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},P={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M(e){return`${Math.round(e)}ms`}function N(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function D(e){const t=(0,r.A)({},O,e.easing),n=(0,r.A)({},P,e.duration);return(0,r.A)({getAutoHeightDuration:N,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:o=n.standard,easing:s=t.easeInOut,delay:a=0}=r;(0,i.A)(r,R);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof o?o:M(o)} ${s} ${"string"===typeof a?a:M(a)}`)).join(",")}},e,{easing:t,duration:n})}const L={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},B=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,f=(0,i.A)(e,B);if(e.vars)throw new Error((0,o.A)(18));const p=A(n),h=(0,c.A)(e);let m=(0,s.A)(h,{mixins:(y=h.breakpoints,b=t,(0,r.A)({toolbar:{minHeight:56,[y.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[y.up("sm")]:{minHeight:64}}},b)),palette:p,shadows:E.slice(),typography:T(p,d),transitions:D(u),zIndex:(0,r.A)({},L)});var y,b;m=(0,s.A)(m,f);for(var g=arguments.length,v=new Array(g>1?g-1:0),w=1;w<g;w++)v[w-1]=arguments[w];return m=v.reduce(((e,t)=>(0,s.A)(e,t)),m),m.unstable_sxConfig=(0,r.A)({},a.A,null==f?void 0:f.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const j=F},7088:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(1037).A)()},7701:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},3446:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},i=e=>r(e)&&"classes"!==e},3725:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a});var r=n(8830),i=n(7088),o=n(7701),s=n(3446);const a=(0,r.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:s.A})},3637:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(1932).A},6946:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(8168),i=n(7565),o=n(8587),s=n(1099),a=n(9360),l=n(3637),c=n(2384),u=n(3725),d=n(2458),f=n(8210);function p(e){return(0,f.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(7929);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],y=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.A)(n.color)}`],t[`fontSize${(0,l.A)(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,i,o,s,a,l,c,u,d,f,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(i=r.create)?void 0:i.call(r,"fill",{duration:null==(o=t.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(s=t.typography)||null==(a=s.pxToRem)?void 0:a.call(s,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(f=null==(p=(t.vars||t).palette)||null==(p=p[n.color])?void 0:p.main)?f:{action:null==(h=(t.vars||t).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[n.color]}})),b=i.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:f="inherit",component:b="svg",fontSize:g="medium",htmlColor:v,inheritViewBox:w=!1,titleAccess:S,viewBox:_="0 0 24 24"}=n,A=(0,o.A)(n,m),x=i.isValidElement(u)&&"svg"===u.type,k=(0,r.A)({},n,{color:f,component:b,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:_,hasSvgAsChild:x}),C={};w||(C.viewBox=_);const T=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,l.A)(t)}`,`fontSize${(0,l.A)(n)}`]};return(0,a.A)(i,p,r)})(k);return(0,h.jsxs)(y,(0,r.A)({as:b,className:(0,s.A)(T.root,d),focusable:"false",color:v,"aria-hidden":!S||void 0,role:S?"img":void 0,ref:t},C,A,x&&u.props,{ownerState:k,children:[x?u.props.children:u,S?(0,h.jsx)("title",{children:S}):null]}))}));b.muiName="SvgIcon";const g=b;function v(e,t){function n(n,i){return(0,h.jsx)(g,(0,r.A)({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return n.muiName=g.muiName,i.memo(i.forwardRef(n))}},14:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>i.A,createChainedFunction:()=>o,createSvgIcon:()=>s.A,debounce:()=>a,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u,ownerWindow:()=>d,requirePropFactory:()=>f,setRef:()=>p,unstable_ClassNameGenerator:()=>x,unstable_useEnhancedEffect:()=>h.A,unstable_useId:()=>g,unsupportedProp:()=>v,useControlled:()=>w,useEventCallback:()=>S.A,useForkRef:()=>_.A,useIsFocusVisible:()=>A.A});var r=n(896),i=n(3637);const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}),(()=>{}))};var s=n(6946);const a=n(3770).A;const l=function(e,t){return()=>null};var c=n(2039);const u=n(818).A;const d=n(7658).A;n(8168);const f=function(e,t){return()=>null};const p=n(5570).A;var h=n(1559),m=n(7565);let y=0;const b=n.t(m,2)["useId".toString()];const g=function(e){if(void 0!==b){const t=b();return null!=e?e:t}return function(e){const[t,n]=m.useState(e),r=e||t;return m.useEffect((()=>{null==t&&(y+=1,n(`mui-${y}`))}),[t]),r}(e)};const v=function(e,t,n,r,i){return null};const w=function(e){let{controlled:t,default:n,name:r,state:i="value"}=e;const{current:o}=m.useRef(void 0!==t),[s,a]=m.useState(n);return[o?t:s,m.useCallback((e=>{o||a(e)}),[])]};var S=n(2962),_=n(4847),A=n(4947);const x={configure:e=>{r.A.configure(e)}}},2039:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7565);const i=function(e,t){var n,i;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},1559:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(1998).A},2962:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7565),i=n(1998);const o=function(e){const t=r.useRef(e);return(0,i.A)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},4847:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(1876).A},4947:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(7565),i=n(1421);let o=!0,s=!1;const a=new i.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&s&&(o=!0)}function f(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const p=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!f(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(s=!0,a.start(100,(()=>{s=!1})),t.current=!1,!0)},ref:e}}},1087:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(7565);var r=n(4304),i=n(7929);function o(e){const{styles:t,defaultTheme:n={}}=e,o="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(r.mL,{styles:o})}},1076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>A.A,StyledEngineProvider:()=>_,ThemeContext:()=>l.T,css:()=>g.AH,default:()=>x,internal_processStyles:()=>k,keyframes:()=>g.i7});var r=n(8168),i=n(7565);function o(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=o((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(10),c=n(8592),u=n(3743),d=n(6714),f=a,p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:p},m=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},y=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},b=function e(t,n){var o,s,a=t.__emotion_real===t,d=a&&t.__emotion_base||t;void 0!==n&&(o=n.label,s=n.target);var f=m(t,n,a),p=f||h(d),b=!p("as");return function(){var g=arguments,v=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&v.push("label:"+o+";"),null==g[0]||void 0===g[0].raw)v.push.apply(v,g);else{v.push(g[0][0]);for(var w=g.length,S=1;S<w;S++)v.push(g[S],g[0][S])}var _=(0,l.w)((function(e,t,n){var r=b&&e.as||d,o="",a=[],m=e;if(null==e.theme){for(var g in m={},e)m[g]=e[g];m.theme=i.useContext(l.T)}"string"===typeof e.className?o=(0,c.Rk)(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var w=(0,u.J)(v.concat(a),t.registered,m);o+=t.key+"-"+w.name,void 0!==s&&(o+=" "+s);var S=b&&void 0===f?h(r):p,_={};for(var A in e)b&&"as"===A||S(A)&&(_[A]=e[A]);return _.className=o,n&&(_.ref=n),i.createElement(i.Fragment,null,i.createElement(y,{cache:t,serialized:w,isStringTag:"string"===typeof r}),i.createElement(r,_))}));return _.displayName=void 0!==o?o:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=d,_.__emotion_styles=v,_.__emotion_forwardProp=f,Object.defineProperty(_,"toString",{value:function(){return"."+s}}),_.withComponent=function(t,i){return e(t,(0,r.A)({},n,i,{shouldForwardProp:m(_,i,!0)})).apply(void 0,v)},_}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){b[e]=b(e)}));var g=n(4304),v=n(5243),w=n(7929);let S;function _(e){const{injectFirst:t,children:n}=e;return t&&S?(0,w.jsx)(l.C,{value:S,children:n}):n}"object"===typeof document&&(S=(0,v.A)({key:"css",prepend:!0}));var A=n(1087);function x(e,t){return b(e,t)}const k=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},2388:(e,t,n)=>{"use strict";var r=n(4994);t.X4=p,t.e$=h,t.eM=function(e,t){const n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=m;var i=r(n(8731)),o=r(n(2223));function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,o.default)(e,t,n)}function a(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(a(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,i.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)};let a="rgb";const c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(a+="a",c.push(t[3])),u({type:a,values:c})}function f(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=s(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function h(e,t){if(e=l(e),t=s(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=s(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?h(e,t):m(e,t)}},8830:(e,t,n)=>{"use strict";var r=n(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=h,slotShouldForwardProp:l=h}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:b((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:m,skipSx:w,overridesResolver:S=g(y(p))}=c,_=(0,o.default)(c,f),A=void 0!==m?m:p&&"Root"!==p&&"root"!==p||!1,x=w||!1;let k=h;"Root"===p||"root"===p?k=r:p?k=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const C=(0,s.default)(e,(0,i.default)({shouldForwardProp:k,label:undefined},_)),T=e=>"function"===typeof e&&e.__emotion_real!==e||(0,a.isPlainObject)(e)?r=>v(e,(0,i.default)({},r,{theme:b({theme:r.theme,defaultTheme:n,themeId:t})})):e,I=function(r){let o=T(r);for(var s=arguments.length,a=new Array(s>1?s-1:0),l=1;l<s;l++)a[l-1]=arguments[l];const c=a?a.map(T):[];d&&S&&c.push((e=>{const r=b((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const o=r.components[d].styleOverrides,s={};return Object.entries(o).forEach((t=>{let[n,o]=t;s[n]=v(o,(0,i.default)({},e,{theme:r}))})),S(e,s)})),d&&!A&&c.push((e=>{var r;const o=b((0,i.default)({},e,{defaultTheme:n,themeId:t}));return v({variants:null==o||null==(r=o.components)||null==(r=r[d])?void 0:r.variants},(0,i.default)({},e,{theme:o}))})),x||c.push(u);const f=c.length-a.length;if(Array.isArray(r)&&f>0){const e=new Array(f).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const p=C(o,...c);return e.muiName&&(p.muiName=e.muiName),p};return C.withConfig&&(I.withConfig=C.withConfig),I}};var i=r(n(4634)),o=r(n(4893)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1076)),a=n(9084),l=(r(n(7380)),r(n(3186)),r(n(7615))),c=r(n(5416));const u=["ownerState"],d=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),y=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function g(e){return e?(t,n)=>n[e]:null}function v(e,t){let{ownerState:n}=t,r=(0,o.default)(t,u);const s="function"===typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(s))return s.flatMap((e=>v(e,(0,i.default)({ownerState:n},r))));if(s&&"object"===typeof s&&Array.isArray(s.variants)){const{variants:e=[]}=s;let t=(0,o.default)(s,d);return e.forEach((e=>{let o=!0;"function"===typeof e.props?o=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))})),t}return s}},4964:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,b:()=>a});var r=n(7565),i=n(3044),o=n(7929);const s=r.createContext(void 0);function a(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?(0,i.A)(o.defaultProps,r):o.styleOverrides||o.variants?r:(0,i.A)(o,r)}({props:t,name:n,theme:{components:r.useContext(s)}})}const l=function(e){let{value:t,children:n}=e;return(0,o.jsx)(s.Provider,{value:t,children:n})}},129:(e,t,n)=>{"use strict";n.d(t,{EU:()=>a,NI:()=>s,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>i});var r=n(7874);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function s(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"===typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=a(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];const s=[t,...i].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),s)}function u(e){let{values:t,breakpoints:n,base:r}=e;const i=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),o=Object.keys(i);if(0===o.length)return t;let s;return o.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[s],s=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[s],s=n):e[n]=t,e)),{})}},8389:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},9843:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(8587),i=n(8168);const o=["values","unit","step"],s=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,i.A)({},e,{[t.key]:t.val})),{})};function a(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5}=e,l=(0,r.A)(e,o),c=s(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function f(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-a/100}${n})`}function p(e,r){const i=u.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"===typeof t[u[i]]?t[u[i]]:r)-a/100}${n})`}return(0,i.A)({keys:u,values:c,up:d,down:f,between:p,only:function(e){return u.indexOf(e)+1<u.length?p(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?f(u[t]):p(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},6325:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(8168),i=n(8587),o=n(7874),s=n(9843);const a={borderRadius:4};var l=n(3742);var c=n(5514),u=n(2346),d=n(8389);const f=["breakpoints","palette","spacing","shape"];const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:p,shape:h={}}=e,m=(0,i.A)(e,f),y=(0,s.A)(t),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(p);let g=(0,o.A)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:b,shape:(0,r.A)({},a,h)},m);g.applyStyles=d.A;for(var v=arguments.length,w=new Array(v>1?v-1:0),S=1;S<v;S++)w[S-1]=arguments[S];return g=w.reduce(((e,t)=>(0,o.A)(e,t)),g),g.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),g.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},g}},7615:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>o.A});var r=n(6325),i=n(9843),o=n(8389)},4953:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7874);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},3742:(e,t,n)=>{"use strict";n.d(t,{LX:()=>h,MA:()=>p,_W:()=>m,Lc:()=>g,Ms:()=>v});var r=n(129),i=n(2256),o=n(4953);const s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=s[t],i=a[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function p(e,t,n,r){var o;const s=null!=(o=(0,i.Yn)(e,t,!1))?o:n;return"number"===typeof s?e=>"string"===typeof e?e:s*e:Array.isArray(s)?e=>"string"===typeof e?e:s[e]:"function"===typeof s?s:()=>{}}function h(e){return p(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function y(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),i),s=e[n];return(0,r.NI)(e,s,o)}function b(e,t){const n=h(e.theme);return Object.keys(e).map((r=>y(e,t,r,n))).reduce(o.A,{})}function g(e){return b(e,u)}function v(e){return b(e,d)}function w(e){return b(e,f)}g.propTypes={},g.filterProps=u,v.propTypes={},v.filterProps=d,w.propTypes={},w.filterProps=f},2256:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,BO:()=>s,Yn:()=>o});var r=n(1932),i=n(129);function o(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function s(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:o(e,n)||i,t&&(r=t(r,i,e)),r}const a=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:a,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,a)||{};return(0,i.NI)(e,c,(e=>{let i=s(u,l,e);return e===i&&"string"===typeof e&&(i=s(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},2346:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var r=n(3742),i=n(2256),o=n(4953);const s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,o.A)(t,r[n](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i};var a=n(129);function l(e){return"number"!==typeof e?e:`${e}px solid`}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),f=c("borderRight",l),p=c("borderBottom",l),h=c("borderLeft",l),m=c("borderColor"),y=c("borderTopColor"),b=c("borderRightColor"),g=c("borderBottomColor"),v=c("borderLeftColor"),w=c("outline",l),S=c("outlineColor"),_=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,a.NI)(e,e.borderRadius,n)}return null};_.propTypes={},_.filterProps=["borderRadius"];s(u,d,f,p,h,m,y,b,g,v,_,w,S);const A=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,a.NI)(e,e.gap,n)}return null};A.propTypes={},A.filterProps=["gap"];const x=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,a.NI)(e,e.columnGap,n)}return null};x.propTypes={},x.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,a.NI)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];s(A,x,k,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));function C(e,t){return"grey"===t?t:e}s((0,i.Ay)({prop:"color",themeKey:"palette",transform:C}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:C}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:C}));function T(e){return e<=1&&0!==e?100*e+"%":e}const I=(0,i.Ay)({prop:"width",transform:T}),E=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||a.zu[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:T(t)}};return(0,a.NI)(e,e.maxWidth,t)}return null};E.filterProps=["maxWidth"];const R=(0,i.Ay)({prop:"minWidth",transform:T}),O=(0,i.Ay)({prop:"height",transform:T}),P=(0,i.Ay)({prop:"maxHeight",transform:T}),M=(0,i.Ay)({prop:"minHeight",transform:T}),N=((0,i.Ay)({prop:"size",cssProperty:"width",transform:T}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:T}),s(I,E,R,O,P,M,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_},color:{themeKey:"palette",transform:C},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:C},backgroundColor:{themeKey:"palette",transform:C},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:A},rowGap:{style:k},columnGap:{style:x},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:T},maxWidth:{style:E},minWidth:{transform:T},height:{transform:T},maxHeight:{transform:T},minHeight:{transform:T},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},5800:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),i=n(8587),o=n(7874),s=n(2346);const a=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:s.A;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,i.A)(e,a),{systemProps:s,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[s,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,o.Q)(e)?(0,r.A)({},s,e):s}:(0,r.A)({},s,t),(0,r.A)({},c,{sx:u})}},5416:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>i.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>o.A});var r=n(5514),i=n(5800),o=n(2346)},5514:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(1932),i=n(4953),o=n(2256),s=n(129),a=n(2346);function l(){function e(e,t,n,i){const a={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:f}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,o.Yn)(n,u)||{};if(f)return f(a);return(0,s.NI)(a,t,(t=>{let n=(0,o.BO)(p,d,t);return t===n&&"string"===typeof t&&(n=(0,o.BO)(p,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:a.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const o=(0,s.EU)(l.breakpoints),a=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],d=l,"function"===typeof a?a(d):a);var a,d;if(null!==o&&void 0!==o)if("object"===typeof o)if(c[n])u=(0,i.A)(u,e(n,o,l,c));else{const e=(0,s.NI)({theme:l},o,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(r);return t.every((e=>i.size===Object.keys(e).length))}(e,o)?u=(0,i.A)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.A)(u,e(n,o,l,c))})),(0,s.vf)(a,u)}return Array.isArray(o)?o.map(u):u(o)}}const c=l();c.filterProps=["sx"];const u=c},896:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},1932:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1098);function i(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7380:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(1932)},2223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},9360:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},3770:(e,t,n)=>{"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout((()=>{e.apply(this,i)}),n)}return r.clear=()=>{clearTimeout(t)},r}n.d(t,{A:()=>r})},7874:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,Q:()=>i});var r=n(8168);function i(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function o(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=o(e[n])})),t}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const a=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{i(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&i(e[r])?a[r]=s(e[r],t[r],n):n.clone?a[r]=i(t[r])?o(t[r]):t[r]:a[r]=t[r]})),a}},9084:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(7874)},1098:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},8731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(1098)},8210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(896);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o=i[t];return o?`${n}-${o}`:`${r.A.generate(e)}-${t}`}},2458:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8210);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i={};return t.forEach((t=>{i[t]=(0,r.Ay)(e,t,n)})),i}},3186:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>o});var r=n(107);const i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){const t=`${e}`.match(i);return t&&t[1]||""}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||o(e)||t}function a(e,t,n){const r=s(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return s(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.ForwardRef:return a(e,e.render,"ForwardRef");case r.Memo:return a(e,e.type,"memo");default:return}}}},818:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},7658:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(818);function i(e){return(0,r.A)(e).defaultView||window}},3044:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8168);function i(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.A)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const s=e[o]||{},a=t[o];n[o]={},a&&Object.keys(a)?s&&Object.keys(s)?(n[o]=(0,r.A)({},a),Object.keys(s).forEach((e=>{n[o][e]=i(s[e],a[e])}))):n[o]=a:n[o]=s}else void 0===n[o]&&(n[o]=e[o])})),n}},5570:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},1998:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7565);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},1876:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7565),i=n(5570);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,i.A)(t,e)}))}),t)}},1421:(e,t,n)=>{"use strict";n.d(t,{E:()=>s,A:()=>a});var r=n(7565);const i={};const o=[];class s{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new s}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function a(){const e=function(e,t){const n=r.useRef(i);return n.current===i&&(n.current=e(t)),n}(s.create).current;var t;return t=e.disposeEffect,r.useEffect(t,o),e}},431:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function b(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case s:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=h},107:(e,t,n)=>{"use strict";e.exports=n(431)},2341:(e,t,n)=>{"use strict";var r=n(325),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),y=0;y<s.length;++y){var b=s[y];if(!o[b]&&(!r||!r[b])&&(!m||!m[b])&&(!a||!a[b])){var g=f(n,b);try{c(t,b,g)}catch(v){}}}}return t}},2329:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case y:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=y,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||S(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===a},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===a||e===s||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===g||e.$$typeof===v||e.$$typeof===w||e.$$typeof===b)},t.typeOf=S},325:(e,t,n)=>{"use strict";e.exports=n(2329)},5181:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,s,a=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(a[c]=o[c]);if(t){s=t(o);for(var u=0;u<s.length;u++)r.call(o,s[u])&&(a[s[u]]=o[s[u]])}}return a}},5764:(e,t,n)=>{"use strict";var r=n(7565),i=n(5181),o=n(9611);function s(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."}if(!r)throw Error(s(227));var a=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=/^[: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]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function y(e,t,n,r,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new y(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){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function w(e,t,n,r){var i=b.hasOwnProperty(t)?b[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!p.call(m,e)||!p.call(h,e)&&(f.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(g,v);b[t]=new y(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(g,v);b[t]=new y(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(g,v);b[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,A=60106,x=60107,k=60108,C=60114,T=60109,I=60110,E=60112,R=60113,O=60120,P=60115,M=60116,N=60121,D=60128,L=60129,B=60130,F=60131;if("function"===typeof Symbol&&Symbol.for){var j=Symbol.for;_=j("react.element"),A=j("react.portal"),x=j("react.fragment"),k=j("react.strict_mode"),C=j("react.profiler"),T=j("react.provider"),I=j("react.context"),E=j("react.forward_ref"),R=j("react.suspense"),O=j("react.suspense_list"),P=j("react.memo"),M=j("react.lazy"),N=j("react.block"),j("react.scope"),D=j("react.opaque.id"),L=j("react.debug_trace_mode"),B=j("react.offscreen"),F=j("react.legacy_hidden")}var z,U="function"===typeof Symbol&&Symbol.iterator;function $(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=U&&e[U]||e["@@iterator"])?e:null}function V(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var W=!1;function H(e,t){if(!e||W)return"";W=!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()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),o=r.stack.split("\n"),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(1!==s||1!==a)do{if(s--,0>--a||i[s]!==o[a])return"\n"+i[s].replace(" at new "," at ")}while(1<=s&&0<=a);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function Y(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case A:return"Portal";case C:return"Profiler";case k:return"StrictMode";case R:return"Suspense";case O:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case P:return G(e.type);case N:return G(e._render);case M:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(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=""+K(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function ce(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function fe(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 pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,me,ye=(me=function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ge={animationIterationCount:!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},ve=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function Se(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ge).forEach((function(e){ve.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var _e=i({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 Ae(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(s(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;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}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Te=null,Ie=null;function Ee(e){if(e=ni(e)){if("function"!==typeof Ce)throw Error(s(280));var t=e.stateNode;t&&(t=ii(t),Ce(e.stateNode,e.type,t))}}function Re(e){Te?Ie?Ie.push(e):Ie=[e]:Te=e}function Oe(){if(Te){var e=Te,t=Ie;if(Ie=Te=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Pe(e,t){return e(t)}function Me(e,t,n,r,i){return e(t,n,r,i)}function Ne(){}var De=Pe,Le=!1,Be=!1;function Fe(){null===Te&&null===Ie||(Ne(),Oe())}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=ii(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(s(231,t,typeof n));return n}var ze=!1;if(d)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(me){ze=!1}function $e(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ve=!1,We=null,He=!1,Ye=null,Ge={onError:function(e){Ve=!0,We=e}};function Ke(e,t,n,r,i,o,s,a,l){Ve=!1,We=null,$e.apply(Ge,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Qe(e){if(qe(e)!==e)throw Error(s(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Qe(i),e;if(o===r)return Qe(i),t;o=o.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],st=null,at=null,lt=null,ct=new Map,ut=new Map,dt=[],ft="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 pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":at=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&(null!==(t=ni(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function yt(e){var t=ti(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ni(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){bt(e)&&n.delete(t)}function vt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ni(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==st&&bt(st)&&(st=null),null!==at&&bt(at)&&(at=null),null!==lt&&bt(lt)&&(lt=null),ct.forEach(gt),ut.forEach(gt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,vt)))}function St(e){function t(t){return wt(t,e)}if(0<ot.length){wt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&wt(st,e),null!==at&&wt(at,e),null!==lt&&wt(lt,e),ct.forEach(t),ut.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)yt(n),null===n.blockedOn&&dt.shift()}function _t(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var At={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},xt={},kt={};function Ct(e){if(xt[e])return xt[e];if(!At[e])return e;var t,n=At[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return xt[e]=n[t];return e}d&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete At.animationend.animation,delete At.animationiteration.animation,delete At.animationstart.animation),"TransitionEvent"in window||delete At.transitionend.transition);var Tt=Ct("animationend"),It=Ct("animationiteration"),Et=Ct("animationstart"),Rt=Ct("transitionend"),Ot=new Map,Pt=new Map,Mt=["abort","abort",Tt,"animationEnd",It,"animationIteration",Et,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rt,"transitionEnd","waiting","waiting"];function Nt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Pt.set(r,t),Ot.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Dt=8;function Lt(e){if(0!==(1&e))return Dt=15,1;if(0!==(2&e))return Dt=14,2;if(0!==(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!==(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!==(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!==(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!==(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!==(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Bt(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,i=0,o=e.expiredLanes,s=e.suspendedLanes,a=e.pingedLanes;if(0!==o)r=o,i=Dt=15;else if(0!==(o=134217727&n)){var l=o&~s;0!==l?(r=Lt(l),i=Dt):0!==(a&=o)&&(r=Lt(a),i=Dt)}else 0!==(o=n&~s)?(r=Lt(o),i=Dt):0!==a&&(r=Lt(a),i=Dt);if(0===r)return 0;if(r=n&((0>(r=31-Vt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&s)){if(Lt(t),i<=Dt)return t;Dt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Vt(t)),r|=e[n],t&=~i;return r}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function jt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?jt(10,t):e;case 10:return 0===(e=zt(192&~t))?jt(8,t):e;case 8:return 0===(e=zt(3584&~t))&&(0===(e=zt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function zt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Ht|0)|0},Wt=Math.log,Ht=Math.LN2;var Yt=o.unstable_UserBlockingPriority,Gt=o.unstable_runWithPriority,Kt=!0;function qt(e,t,n,r){Le||Ne();var i=Qt,o=Le;Le=!0;try{Me(i,e,t,n,r)}finally{(Le=o)||Fe()}}function Xt(e,t,n,r){Gt(Yt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var i;if(Kt)if((i=0===(4&t))&&0<ot.length&&-1<ft.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&ht(e,r);else{if(i){if(-1<ft.indexOf(e))return e=pt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=mt(st,e,t,n,r,i),!0;case"dragenter":return at=mt(at,e,t,n,r,i),!0;case"mouseover":return lt=mt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ut.set(o,mt(ut.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Nr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=ke(r);if(null!==(i=ti(i))){var o=qe(i);if(null===o)i=null;else{var s=o.tag;if(13===s){if(null!==(i=Xe(o)))return i;i=null}else if(3===s){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Nr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function sn(){return!1}function an(e){function t(t,n,r,i,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:sn,this.isPropagationStopped=sn,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,cn,un,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=an(dn),pn=i({},dn,{view:0,detail:0}),hn=an(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(ln=e.screenX-un.screenX,cn=e.screenY-un.screenY):cn=ln=0,un=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),yn=an(mn),bn=an(i({},mn,{dataTransfer:0})),gn=an(i({},pn,{relatedTarget:0})),vn=an(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sn=an(wn),_n=an(i({},dn,{data:0})),An={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Tn(){return Cn}var In=i({},pn,{key:function(e){if(e.key){var t=An[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),En=an(In),Rn=an(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=an(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Pn=an(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=i({},mn,{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}),Nn=an(Mn),Dn=[9,13,27,32],Ln=d&&"CompositionEvent"in window,Bn=null;d&&"documentMode"in document&&(Bn=document.documentMode);var Fn=d&&"TextEvent"in window&&!Bn,jn=d&&(!Ln||Bn&&8<Bn&&11>=Bn),zn=String.fromCharCode(32),Un=!1;function $n(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Hn={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 Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Gn(e,t,n,r){Re(r),0<(t=Lr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Xn(e){Ir(e,0)}function Qn(e){if(Q(ri(e)))return e}function Jn(e,t){if("change"===e)return t}var Zn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"===typeof nr.oninput}er=tr}else er=!1;Zn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Kn&&(Kn.detachEvent("onpropertychange",ir),qn=Kn=null)}function ir(e){if("value"===e.propertyName&&Qn(qn)){var t=[];if(Gn(t,qn,e,ke(e)),e=Xn,Le)e(t);else{Le=!0;try{Pe(e,t)}finally{Le=!1,Fe()}}}}function or(e,t,n){"focusin"===e?(rr(),qn=n,(Kn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&rr()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function ar(e,t){if("click"===e)return Qn(t)}function lr(e,t){if("input"===e||"change"===e)return Qn(t)}var cr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ur=Object.prototype.hasOwnProperty;function dr(e,t){if(cr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)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++)if(!ur.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var br=d&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,wr=null,Sr=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Sr||null==gr||gr!==J(r)||("selectionStart"in(r=gr)&&yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=Lr(vr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}Nt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Nt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Nt(Mt,2);for(var Ar="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<Ar.length;xr++)Pt.set(Ar[xr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Tr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,l,c){if(Ke.apply(this,arguments),Ve){if(!Ve)throw Error(s(198));var u=We;Ve=!1,We=null,He||(He=!0,Ye=u)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;Tr(i,a,c),o=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;Tr(i,a,c),o=l}}}if(He)throw e=Ye,He=!1,Ye=null,e}function Er(e,t){var n=oi(t),r=e+"__bubble";n.has(r)||(Mr(t,e,2,!1),n.add(r))}var Rr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Rr]||(e[Rr]=!0,a.forEach((function(t){Cr.has(t)||Pr(t,!1,e,null),Pr(t,!0,e,null)})))}function Pr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,o=r}var s=oi(o),a=e+"__"+(t?"capture":"bubble");s.has(a)||(t&&(i|=4),Mr(o,e,i,t),s.add(a))}function Mr(e,t,n,r){var i=Pt.get(t);switch(void 0===i?2:i){case 0:i=qt;break;case 1:i=Xt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Nr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=ti(a)))return;if(5===(l=s.tag)||6===l){r=o=s;continue e}a=a.parentNode}}r=r.return}!function(e,t,n){if(Be)return e(t,n);Be=!0;try{return De(e,t,n)}finally{Be=!1,Fe()}}((function(){var r=o,i=ke(n),s=[];e:{var a=Ot.get(e);if(void 0!==a){var l=fn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=En;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case Tt:case It:case Et:l=vn;break;case Rt:l=Pn;break;case"scroll":l=hn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=Sn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==a?a+"Capture":null:a;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=je(h,f))&&u.push(Dr(h,m,p)))),d)break;h=h.return}0<u.length&&(a=new l(a,c,null,n,i),s.push({event:a,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!ti(c)&&!c[Zr])&&(l||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ti(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=yn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Rn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?a:ri(l),p=null==c?a:ri(c),(a=new u(m,h+"leave",l,n,i)).target=d,a.relatedTarget=p,m=null,ti(i)===r&&((u=new u(f,h+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Br(p))h++;for(p=0,m=f;m;m=Br(m))p++;for(;0<h-p;)u=Br(u),h--;for(;0<p-h;)f=Br(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Br(u),f=Br(f)}u=null}else u=null;null!==l&&Fr(s,a,l,u,!1),null!==c&&null!==d&&Fr(s,d,c,u,!0)}if("select"===(l=(a=r?ri(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var y=Jn;else if(Yn(a))if(Zn)y=lr;else{y=sr;var b=or}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(y=ar);switch(y&&(y=y(e,r))?Gn(s,y,n,i):(b&&b(e,a,r),"focusout"===e&&(b=a._wrapperState)&&b.controlled&&"number"===a.type&&ie(a,"number",a.value)),b=r?ri(r):window,e){case"focusin":(Yn(b)||"true"===b.contentEditable)&&(gr=b,vr=r,wr=null);break;case"focusout":wr=vr=gr=null;break;case"mousedown":Sr=!0;break;case"contextmenu":case"mouseup":case"dragend":Sr=!1,_r(s,n,i);break;case"selectionchange":if(br)break;case"keydown":case"keyup":_r(s,n,i)}var g;if(Ln)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Wn?$n(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(jn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Wn&&(g=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Wn=!0)),0<(b=Lr(r,v)).length&&(v=new _n(v,e,null,n,i),s.push({event:v,listeners:b}),g?v.data=g:null!==(g=Vn(n))&&(v.data=g))),(g=Fn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Un=!0,zn);case"textInput":return(e=t.data)===zn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Ln&&$n(e,t)?(e=nn(),tn=en=Zt=null,Wn=!1,e):null;switch(e){case"paste":default: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 jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),s.push({event:i,listeners:r}),i.data=g))}Ir(s,t)}))}function Dr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=je(e,n))&&r.unshift(Dr(e,o,i)),null!=(o=je(e,t))&&r.push(Dr(e,o,i))),e=e.return}return r}function Br(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fr(e,t,n,r,i){for(var o=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==c&&(a=c,i?null!=(l=je(n,o))&&s.unshift(Dr(n,l,a)):i||null!=(l=je(n,o))&&s.push(Dr(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}function jr(){}var zr=null,Ur=null;function $r(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Wr="function"===typeof setTimeout?setTimeout:void 0,Hr="function"===typeof clearTimeout?clearTimeout:void 0;function Yr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var qr=0;var Xr=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Xr,Jr="__reactProps$"+Xr,Zr="__reactContainer$"+Xr,ei="__reactEvents$"+Xr;function ti(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[Qr])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}function ni(e){return!(e=e[Qr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ri(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ii(e){return e[Jr]||null}function oi(e){var t=e[ei];return void 0===t&&(t=e[ei]=new Set),t}var si=[],ai=-1;function li(e){return{current:e}}function ci(e){0>ai||(e.current=si[ai],si[ai]=null,ai--)}function ui(e,t){ai++,si[ai]=e.current,e.current=t}var di={},fi=li(di),pi=li(!1),hi=di;function mi(e,t){var n=e.type.contextTypes;if(!n)return di;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bi(){ci(pi),ci(fi)}function gi(e,t,n){if(fi.current!==di)throw Error(s(168));ui(fi,t),ui(pi,n)}function vi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(s(108,G(t)||"Unknown",o));return i({},n,r)}function wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,hi=fi.current,ui(fi,e),ui(pi,pi.current),!0}function Si(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=vi(e,t,hi),r.__reactInternalMemoizedMergedChildContext=e,ci(pi),ci(fi),ui(fi,e)):ci(pi),ui(pi,n)}var _i=null,Ai=null,xi=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,Ti=o.unstable_shouldYield,Ii=o.unstable_requestPaint,Ei=o.unstable_now,Ri=o.unstable_getCurrentPriorityLevel,Oi=o.unstable_ImmediatePriority,Pi=o.unstable_UserBlockingPriority,Mi=o.unstable_NormalPriority,Ni=o.unstable_LowPriority,Di=o.unstable_IdlePriority,Li={},Bi=void 0!==Ii?Ii:function(){},Fi=null,ji=null,zi=!1,Ui=Ei(),$i=1e4>Ui?Ei:function(){return Ei()-Ui};function Vi(){switch(Ri()){case Oi:return 99;case Pi:return 98;case Mi:return 97;case Ni:return 96;case Di:return 95;default:throw Error(s(332))}}function Wi(e){switch(e){case 99:return Oi;case 98:return Pi;case 97:return Mi;case 96:return Ni;case 95:return Di;default:throw Error(s(332))}}function Hi(e,t){return e=Wi(e),xi(e,t)}function Yi(e,t,n){return e=Wi(e),ki(e,t,n)}function Gi(){if(null!==ji){var e=ji;ji=null,Ci(e)}Ki()}function Ki(){if(!zi&&null!==Fi){zi=!0;var e=0;try{var t=Fi;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fi=null}catch(n){throw null!==Fi&&(Fi=Fi.slice(e+1)),ki(Oi,Gi),n}finally{zi=!1}}}var qi=S.ReactCurrentBatchConfig;function Xi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=li(null),Ji=null,Zi=null,eo=null;function to(){eo=Zi=Ji=null}function no(e){var t=Qi.current;ci(Qi),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function io(e,t){Ji=e,eo=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ls=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Ji)throw Error(s(308));Zi=t,Ji.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var so=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(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 co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function po(e,t,n,r){var o=e.updateQueue;so=!1;var s=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,u=c.next;c.next=null,null===a?s=u:a.next=u,a=c;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==a&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=c)}}if(null!==s){for(f=o.baseState,a=0,d=u=c=null;;){l=s.lane;var p=s.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(l=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){f=h.call(p,f,l);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"===typeof(h=m.payload)?h.call(p,f,l):h)||void 0===l)break e;f=i({},f,l);break e;case 2:so=!0}}null!==s.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[s]:l.push(s))}else p={eventTime:p,lane:l,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=p,c=f):d=d.next=p,a|=l;if(null===(s=s.next)){if(null===(l=o.shared.pending))break;s=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,Ua|=a,e.lanes=a,e.memoizedState=f}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(s(191,i));i.call(r)}}}var mo=(new r.Component).refs;function yo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var bo={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fl(),i=pl(e),o=co(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),uo(e,o),hl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fl(),i=pl(e),o=co(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),uo(e,o),hl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fl(),r=pl(e),i=co(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),uo(e,i),hl(e,r,n)}};function go(e,t,n,r,i,o,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(i,o))}function vo(e,t,n){var r=!1,i=di,o=t.contextType;return"object"===typeof o&&null!==o?o=oo(o):(i=yi(t)?hi:fi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?mi(e,i):di),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function wo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function So(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mo,ao(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=oo(o):(o=yi(t)?hi:fi.current,i.context=mi(e,o)),po(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(yo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&bo.enqueueReplaceState(i,i.state,null),po(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var _o=Array.isArray;function Ao(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===mo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function xo(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ko(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Yl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Xl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Ao(e,t,n),r.return=e,r):((r=Gl(n.type,n.key,n.props,null,e.mode,r)).ref=Ao(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ql(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Kl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Xl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Gl(t.type,t.key,t.props,null,e.mode,n)).ref=Ao(e,null,t),n.return=e,n;case A:return(t=Ql(t,e.mode,n)).return=e,t}if(_o(t)||$(t))return(t=Kl(t,e.mode,n,null)).return=e,t;xo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?n.type===x?d(e,t,n.props.children,r,i):c(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null}if(_o(n)||$(n))return null!==i?null:d(e,t,n,r,null);xo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===x?d(t,e,r.props.children,i,r.key):c(t,e,r,i);case A:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(_o(r)||$(r))return d(t,e=e.get(n)||null,r,i,null);xo(t,r)}return null}function m(i,s,a,l){for(var c=null,u=null,d=s,m=s=0,y=null;null!==d&&m<a.length;m++){d.index>m?(y=d,d=null):y=d.sibling;var b=p(i,d,a[m],l);if(null===b){null===d&&(d=y);break}e&&d&&null===b.alternate&&t(i,d),s=o(b,s,m),null===u?c=b:u.sibling=b,u=b,d=y}if(m===a.length)return n(i,d),c;if(null===d){for(;m<a.length;m++)null!==(d=f(i,a[m],l))&&(s=o(d,s,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(i,d);m<a.length;m++)null!==(y=h(d,i,m,a[m],l))&&(e&&null!==y.alternate&&d.delete(null===y.key?m:y.key),s=o(y,s,m),null===u?c=y:u.sibling=y,u=y);return e&&d.forEach((function(e){return t(i,e)})),c}function y(i,a,l,c){var u=$(l);if("function"!==typeof u)throw Error(s(150));if(null==(l=u.call(l)))throw Error(s(151));for(var d=u=null,m=a,y=a=0,b=null,g=l.next();null!==m&&!g.done;y++,g=l.next()){m.index>y?(b=m,m=null):b=m.sibling;var v=p(i,m,g.value,c);if(null===v){null===m&&(m=b);break}e&&m&&null===v.alternate&&t(i,m),a=o(v,a,y),null===d?u=v:d.sibling=v,d=v,m=b}if(g.done)return n(i,m),u;if(null===m){for(;!g.done;y++,g=l.next())null!==(g=f(i,g.value,c))&&(a=o(g,a,y),null===d?u=g:d.sibling=g,d=g);return u}for(m=r(i,m);!g.done;y++,g=l.next())null!==(g=h(m,i,y,g.value,c))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),a=o(g,a,y),null===d?u=g:d.sibling=g,d=g);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,r,o,l){var c="object"===typeof o&&null!==o&&o.type===x&&null===o.key;c&&(o=o.props.children);var u="object"===typeof o&&null!==o;if(u)switch(o.$$typeof){case _:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===x){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}}else if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=Ao(e,c,o),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}o.type===x?((r=Kl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Gl(o.type,o.key,o.props,null,e.mode,l)).ref=Ao(e,r,o),l.return=e,e=l)}return a(e);case A:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ql(o,e.mode,l)).return=e,e=r}return a(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Xl(o,e.mode,l)).return=e,e=r),a(e);if(_o(o))return m(e,r,o,l);if($(o))return y(e,r,o,l);if(u&&xo(e,o),"undefined"===typeof o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,G(e.type)||"Component"))}return n(e,r)}}var Co=ko(!0),To=ko(!1),Io={},Eo=li(Io),Ro=li(Io),Oo=li(Io);function Po(e){if(e===Io)throw Error(s(174));return e}function Mo(e,t){switch(ui(Oo,t),ui(Ro,e),ui(Eo,Io),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(Eo),ui(Eo,t)}function No(){ci(Eo),ci(Ro),ci(Oo)}function Do(e){Po(Oo.current);var t=Po(Eo.current),n=pe(t,e.type);t!==n&&(ui(Ro,e),ui(Eo,n))}function Lo(e){Ro.current===e&&(ci(Eo),ci(Ro))}var Bo=li(0);function Fo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jo=null,zo=null,Uo=!1;function $o(e,t){var n=Wl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Wo(e){if(Uo){var t=zo;if(t){var n=t;if(!Vo(e,t)){if(!(t=Gr(n.nextSibling))||!Vo(e,t))return e.flags=-1025&e.flags|2,Uo=!1,void(jo=e);$o(jo,n)}jo=e,zo=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Uo=!1,jo=e}}function Ho(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;jo=e}function Yo(e){if(e!==jo)return!1;if(!Uo)return Ho(e),Uo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=zo;t;)$o(e,t),t=Gr(t.nextSibling);if(Ho(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){zo=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}zo=null}}else zo=jo?Gr(e.stateNode.nextSibling):null;return!0}function Go(){zo=jo=null,Uo=!1}var Ko=[];function qo(){for(var e=0;e<Ko.length;e++)Ko[e]._workInProgressVersionPrimary=null;Ko.length=0}var Xo=S.ReactCurrentDispatcher,Qo=S.ReactCurrentBatchConfig,Jo=0,Zo=null,es=null,ts=null,ns=!1,rs=!1;function is(){throw Error(s(321))}function os(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function ss(e,t,n,r,i,o){if(Jo=o,Zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xo.current=null===e||null===e.memoizedState?Ps:Ms,e=n(r,i),rs){o=0;do{if(rs=!1,!(25>o))throw Error(s(301));o+=1,ts=es=null,t.updateQueue=null,Xo.current=Ns,e=n(r,i)}while(rs)}if(Xo.current=Os,t=null!==es&&null!==es.next,Jo=0,ts=es=Zo=null,ns=!1,t)throw Error(s(300));return e}function as(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ts?Zo.memoizedState=ts=e:ts=ts.next=e,ts}function ls(){if(null===es){var e=Zo.alternate;e=null!==e?e.memoizedState:null}else e=es.next;var t=null===ts?Zo.memoizedState:ts.next;if(null!==t)ts=t,es=e;else{if(null===e)throw Error(s(310));e={memoizedState:(es=e).memoizedState,baseState:es.baseState,baseQueue:es.baseQueue,queue:es.queue,next:null},null===ts?Zo.memoizedState=ts=e:ts=ts.next=e}return ts}function cs(e,t){return"function"===typeof t?t(e):t}function us(e){var t=ls(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=es,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=a=o=null,c=i;do{var u=c.lane;if((Jo&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(a=l=d,o=r):l=l.next=d,Zo.lanes|=u,Ua|=u}c=c.next}while(null!==c&&c!==i);null===l?o=r:l.next=a,cr(r,t.memoizedState)||(Ls=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ds(e){var t=ls(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);cr(o,t.memoizedState)||(Ls=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fs(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Jo&e)===e)&&(t._workInProgressVersionPrimary=r,Ko.push(t))),e)return n(t._source);throw Ko.push(t),Error(s(350))}function ps(e,t,n,r){var i=Ma;if(null===i)throw Error(s(349));var o=t._getVersion,a=o(t._source),l=Xo.current,c=l.useState((function(){return fs(i,t,n)})),u=c[1],d=c[0];c=ts;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var y=Zo;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!cr(a,e)){e=n(t._source),cr(d,e)||(u(e),e=pl(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var l=31-Vt(s),c=1<<l;r[l]|=e,s&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=pl(y);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),cr(h,n)&&cr(m,t)&&cr(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:cs,lastRenderedState:d}).dispatch=u=Rs.bind(null,Zo,e),c.queue=e,c.baseQueue=null,d=fs(i,t,n),c.memoizedState=c.baseState=d),d}function hs(e,t,n){return ps(ls(),e,t,n)}function ms(e){var t=as();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:cs,lastRenderedState:e}).dispatch=Rs.bind(null,Zo,e),[t.memoizedState,e]}function ys(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zo.updateQueue)?(t={lastEffect:null},Zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function bs(e){return e={current:e},as().memoizedState=e}function gs(){return ls().memoizedState}function vs(e,t,n,r){var i=as();Zo.flags|=e,i.memoizedState=ys(1|t,n,void 0,void 0===r?null:r)}function ws(e,t,n,r){var i=ls();r=void 0===r?null:r;var o=void 0;if(null!==es){var s=es.memoizedState;if(o=s.destroy,null!==r&&os(r,s.deps))return void ys(t,n,o,r)}Zo.flags|=e,i.memoizedState=ys(1|t,n,o,r)}function Ss(e,t){return vs(516,4,e,t)}function _s(e,t){return ws(516,4,e,t)}function As(e,t){return ws(4,2,e,t)}function xs(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ks(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ws(4,2,xs.bind(null,t,e),n)}function Cs(){}function Ts(e,t){var n=ls();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&os(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Is(e,t){var n=ls();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&os(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Es(e,t){var n=Vi();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=Qo.transition;Qo.transition=1;try{e(!1),t()}finally{Qo.transition=n}}))}function Rs(e,t,n){var r=fl(),i=pl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},s=t.pending;if(null===s?o.next=o:(o.next=s.next,s.next=o),t.pending=o,s=e.alternate,e===Zo||null!==s&&s===Zo)rs=ns=!0;else{if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=s(a,n);if(o.eagerReducer=s,o.eagerState=l,cr(l,a))return}catch(c){}hl(e,i,r)}}var Os={readContext:oo,useCallback:is,useContext:is,useEffect:is,useImperativeHandle:is,useLayoutEffect:is,useMemo:is,useReducer:is,useRef:is,useState:is,useDebugValue:is,useDeferredValue:is,useTransition:is,useMutableSource:is,useOpaqueIdentifier:is,unstable_isNewReconciler:!1},Ps={readContext:oo,useCallback:function(e,t){return as().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:Ss,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,vs(4,2,xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vs(4,2,e,t)},useMemo:function(e,t){var n=as();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=as();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Rs.bind(null,Zo,e),[r.memoizedState,e]},useRef:bs,useState:ms,useDebugValue:Cs,useDeferredValue:function(e){var t=ms(e),n=t[0],r=t[1];return Ss((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=ms(!1),t=e[0];return bs(e=Es.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=as();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ps(r,e,t,n)},useOpaqueIdentifier:function(){if(Uo){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(s(355))})),n=ms(t)[1];return 0===(2&Zo.mode)&&(Zo.flags|=516,ys(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return ms(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},Ms={readContext:oo,useCallback:Ts,useContext:oo,useEffect:_s,useImperativeHandle:ks,useLayoutEffect:As,useMemo:Is,useReducer:us,useRef:gs,useState:function(){return us(cs)},useDebugValue:Cs,useDeferredValue:function(e){var t=us(cs),n=t[0],r=t[1];return _s((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=us(cs)[0];return[gs().current,e]},useMutableSource:hs,useOpaqueIdentifier:function(){return us(cs)[0]},unstable_isNewReconciler:!1},Ns={readContext:oo,useCallback:Ts,useContext:oo,useEffect:_s,useImperativeHandle:ks,useLayoutEffect:As,useMemo:Is,useReducer:ds,useRef:gs,useState:function(){return ds(cs)},useDebugValue:Cs,useDeferredValue:function(e){var t=ds(cs),n=t[0],r=t[1];return _s((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=ds(cs)[0];return[gs().current,e]},useMutableSource:hs,useOpaqueIdentifier:function(){return ds(cs)[0]},unstable_isNewReconciler:!1},Ds=S.ReactCurrentOwner,Ls=!1;function Bs(e,t,n,r){t.child=null===e?To(t,null,n,r):Co(t,e.child,n,r)}function Fs(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=ss(e,t,n,r,o,i),null===e||Ls?(t.flags|=1,Bs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,oa(e,t,i))}function js(e,t,n,r,i,o){if(null===e){var s=n.type;return"function"!==typeof s||Hl(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,zs(e,t,s,r,i,o))}return s=e.child,0===(i&o)&&(i=s.memoizedProps,(n=null!==(n=n.compare)?n:dr)(i,r)&&e.ref===t.ref)?oa(e,t,o):(t.flags|=1,(e=Yl(s,r)).ref=t.ref,e.return=t,t.child=e)}function zs(e,t,n,r,i,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Ls=!1,0===(o&i))return t.lanes=e.lanes,oa(e,t,o);0!==(16384&e.flags)&&(Ls=!0)}return Vs(e,t,n,r,o)}function Us(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},_l(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_l(t,e),null;t.memoizedState={baseLanes:0},_l(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_l(t,r);return Bs(e,t,i,n),t.child}function $s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Vs(e,t,n,r,i){var o=yi(n)?hi:fi.current;return o=mi(t,o),io(t,i),n=ss(e,t,n,r,o,i),null===e||Ls?(t.flags|=1,Bs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,oa(e,t,i))}function Ws(e,t,n,r,i){if(yi(n)){var o=!0;wi(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),vo(t,n,r),So(t,n,r,i),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;"object"===typeof c&&null!==c?c=oo(c):c=mi(t,c=yi(n)?hi:fi.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof s.getSnapshotBeforeUpdate;d||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==r||l!==c)&&wo(t,s,r,c),so=!1;var f=t.memoizedState;s.state=f,po(t,r,s,i),l=t.memoizedState,a!==r||f!==l||pi.current||so?("function"===typeof u&&(yo(t,n,u,r),l=t.memoizedState),(a=so||go(t,n,a,r,f,l,c))?(d||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4)):("function"===typeof s.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):("function"===typeof s.componentDidMount&&(t.flags|=4),r=!1)}else{s=t.stateNode,lo(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Xi(t.type,a),s.props=c,d=t.pendingProps,f=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=oo(l):l=mi(t,l=yi(n)?hi:fi.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==d||f!==l)&&wo(t,s,r,l),so=!1,f=t.memoizedState,s.state=f,po(t,r,s,i);var h=t.memoizedState;a!==d||f!==h||pi.current||so?("function"===typeof p&&(yo(t,n,p,r),h=t.memoizedState),(c=so||go(t,n,c,r,f,h,l))?(u||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(r,h,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=l,r=c):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Hs(e,t,n,r,o,i)}function Hs(e,t,n,r,i,o){$s(e,t);var s=0!==(64&t.flags);if(!r&&!s)return i&&Si(t,n,!1),oa(e,t,o);r=t.stateNode,Ds.current=t;var a=s&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,a,o)):Bs(e,t,a,o),t.memoizedState=r.state,i&&Si(t,n,!0),t.child}function Ys(e){var t=e.stateNode;t.pendingContext?gi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&gi(0,t.context,!1),Mo(e,t.containerInfo)}var Gs,Ks,qs,Xs,Qs={dehydrated:null,retryLane:0};function Js(e,t,n){var r,i=t.pendingProps,o=Bo.current,s=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ui(Bo,1&o),null===e?(void 0!==i.fallback&&Wo(t),e=i.children,o=i.fallback,s?(e=Zs(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qs,e):"number"===typeof i.unstable_expectedLoadTime?(e=Zs(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qs,t.lanes=33554432,e):((n=ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,s?(i=ta(e,t,i.children,i.fallback,n),s=t.child,o=e.child.memoizedState,s.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},s.childLanes=e.childLanes&~n,t.memoizedState=Qs,i):(n=ea(e,t,i.children,n),t.memoizedState=null,n))}function Zs(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=ql(t,i,0,null),n=Kl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function ea(e,t,n,r){var i=e.child;return e=i.sibling,n=Yl(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ta(e,t,n,r,i){var o=t.mode,s=e.child;e=s.sibling;var a={mode:"hidden",children:n};return 0===(2&o)&&t.child!==s?((n=t.child).childLanes=0,n.pendingProps=a,null!==(s=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=s,s.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Yl(s,a),null!==e?r=Yl(e,r):(r=Kl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function na(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ro(e.return,t)}function ra(e,t,n,r,i,o){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i,s.lastEffect=o)}function ia(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Bs(e,t,r.children,n),0!==(2&(r=Bo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&na(e,n);else if(19===e.tag)na(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(Bo,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ra(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ra(t,!0,n,null,o,t.lastEffect);break;case"together":ra(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function oa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ua|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Yl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Yl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function sa(e,t){if(!Uo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function aa(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yi(t.type)&&bi(),null;case 3:return No(),ci(pi),ci(fi),qo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Yo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ks(t),null;case 5:Lo(t);var o=Po(Oo.current);if(n=t.type,null!==e&&null!=t.stateNode)qs(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=Po(Eo.current),Yo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Qr]=t,r[Jr]=a,n){case"dialog":Er("cancel",r),Er("close",r);break;case"iframe":case"object":case"embed":Er("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Er(kr[e],r);break;case"source":Er("error",r);break;case"img":case"image":case"link":Er("error",r),Er("load",r);break;case"details":Er("toggle",r);break;case"input":ee(r,a),Er("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Er("invalid",r);break;case"textarea":le(r,a),Er("invalid",r)}for(var c in Ae(n,a),e=null,a)a.hasOwnProperty(c)&&(o=a[c],"children"===c?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Er("scroll",r));switch(n){case"input":X(r),re(r,a,!0);break;case"textarea":X(r),ue(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=jr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===de.html&&(e=fe(n)),e===de.html?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Qr]=t,e[Jr]=r,Gs(e,t,!1,!1),t.stateNode=e,c=xe(n,r),n){case"dialog":Er("cancel",e),Er("close",e),o=r;break;case"iframe":case"object":case"embed":Er("load",e),o=r;break;case"video":case"audio":for(o=0;o<kr.length;o++)Er(kr[o],e);o=r;break;case"source":Er("error",e),o=r;break;case"img":case"image":case"link":Er("error",e),Er("load",e),o=r;break;case"details":Er("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Er("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Er("invalid",e);break;case"textarea":le(e,r),o=ae(e,r),Er("invalid",e);break;default:o=r}Ae(n,o);var u=o;for(a in u)if(u.hasOwnProperty(a)){var d=u[a];"style"===a?Se(e,d):"dangerouslySetInnerHTML"===a?null!=(d=d?d.__html:void 0)&&ye(e,d):"children"===a?"string"===typeof d?("textarea"!==n||""!==d)&&be(e,d):"number"===typeof d&&be(e,""+d):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=d&&"onScroll"===a&&Er("scroll",e):null!=d&&w(e,a,d,c))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?se(e,!!r.multiple,a,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=jr)}$r(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Xs(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(s(166));n=Po(Oo.current),Po(Eo.current),Yo(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return ci(Bo),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Yo(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Bo.current)?0===Fa&&(Fa=3):(0!==Fa&&3!==Fa||(Fa=4),null===Ma||0===(134217727&Ua)&&0===(134217727&$a)||gl(Ma,Da))),(r||n)&&(t.flags|=4),null);case 4:return No(),Ks(t),null===e&&Or(t.stateNode.containerInfo),null;case 10:return no(t),null;case 19:if(ci(Bo),null===(r=t.memoizedState))return null;if(a=0!==(64&t.flags),null===(c=r.rendering))if(a)sa(r,!1);else{if(0!==Fa||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Fo(e))){for(t.flags|=64,sa(r,!1),null!==(a=c.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(Bo,1&Bo.current|2),t.child}e=e.sibling}null!==r.tail&&$i()>Ya&&(t.flags|=64,a=!0,sa(r,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Fo(c))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),sa(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Uo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*$i()-r.renderingStartTime>Ya&&1073741824!==n&&(t.flags|=64,a=!0,sa(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=$i(),n.sibling=null,t=Bo.current,ui(Bo,a?1&t|2:1&t),n):null;case 23:case 24:return Al(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function la(e){switch(e.tag){case 1:yi(e.type)&&bi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(No(),ci(pi),ci(fi),qo(),0!==(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Lo(e),null;case 13:return ci(Bo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ci(Bo),null;case 4:return No(),null;case 10:return no(e),null;case 23:case 24:return Al(),null;default:return null}}function ca(e,t){try{var n="",r=t;do{n+=Y(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function ua(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Gs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ks=function(){},qs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Po(Eo.current);var s,a=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),a=[];break;case"option":o=oe(e,o),r=oe(e,r),a=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),a=[];break;case"textarea":o=ae(e,o),r=ae(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=jr)}for(d in Ae(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var c=o[d];for(s in c)c.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?a||(a=[]):(a=a||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(s in c)!c.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&c[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(a||(a=[]),a.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(a=a||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Er("scroll",e),a||c===u||(a=[])):"object"===typeof u&&null!==u&&u.$$typeof===D?u.toString():(a=a||[]).push(d,u))}n&&(a=a||[]).push("style",n);var d=a;(t.updateQueue=d)&&(t.flags|=4)}},Xs=function(e,t,n,r){n!==r&&(t.flags|=4)};var da="function"===typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=co(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xa||(Xa=!0,Qa=r),ua(0,t)},n}function pa(e,t,n){(n=co(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return ua(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Ja?Ja=new Set([this]):Ja.add(this),ua(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ha="function"===typeof WeakSet?WeakSet:Set;function ma(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){zl(e,n)}else t.current=null}function ya(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Yr(t.stateNode.containerInfo))}throw Error(s(163))}function ba(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Bl(n,e),Ll(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&$r(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&St(n)))))}throw Error(s(163))}function ga(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=we("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function va(e,t){if(Ai&&"function"===typeof Ai.onCommitFiberUnmount)try{Ai.onCommitFiberUnmount(_i,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Bl(t,n);else{r=t;try{i()}catch(o){zl(r,o)}}n=n.next}while(n!==e)}break;case 1:if(ma(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){zl(t,o)}break;case 5:ma(t);break;case 4:ka(e,t)}}function wa(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Sa(e){return 5===e.tag||3===e.tag||4===e.tag}function _a(e){e:{for(var t=e.return;null!==t;){if(Sa(t))break e;t=t.return}throw Error(s(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Sa(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Aa(e,n,t):xa(e,n,t)}function Aa(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=jr));else if(4!==r&&null!==(e=e.child))for(Aa(e,t,n),e=e.sibling;null!==e;)Aa(e,t,n),e=e.sibling}function xa(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xa(e,t,n),e=e.sibling;null!==e;)xa(e,t,n),e=e.sibling}function ka(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(s(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var a=e,l=i,c=l;;)if(va(a,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(a=n,l=i.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(va(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Ca(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,i),t=xe(e,r),i=0;i<o.length;i+=2){var a=o[i],l=o[i+1];"style"===a?Se(n,l):"dangerouslySetInnerHTML"===a?ye(n,l):"children"===a?be(n,l):w(n,a,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?se(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,St(n.containerInfo)));case 13:return null!==t.memoizedState&&(Ha=$i(),ga(t.child,!0)),void Ta(t);case 19:return void Ta(t);case 23:case 24:return void ga(t,null!==t.memoizedState)}throw Error(s(163))}function Ta(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ha),t.forEach((function(t){var r=$l.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ia(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ea=Math.ceil,Ra=S.ReactCurrentDispatcher,Oa=S.ReactCurrentOwner,Pa=0,Ma=null,Na=null,Da=0,La=0,Ba=li(0),Fa=0,ja=null,za=0,Ua=0,$a=0,Va=0,Wa=null,Ha=0,Ya=1/0;function Ga(){Ya=$i()+500}var Ka,qa=null,Xa=!1,Qa=null,Ja=null,Za=!1,el=null,tl=90,nl=[],rl=[],il=null,ol=0,sl=null,al=-1,ll=0,cl=0,ul=null,dl=!1;function fl(){return 0!==(48&Pa)?$i():-1!==al?al:al=$i()}function pl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Vi()?1:2;if(0===ll&&(ll=za),0!==qi.transition){0!==cl&&(cl=null!==Wa?Wa.pendingLanes:0),e=ll;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Vi(),0!==(4&Pa)&&98===e?e=jt(12,ll):e=jt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function hl(e,t,n){if(50<ol)throw ol=0,sl=null,Error(s(185));if(null===(e=ml(e,t)))return null;$t(e,t,n),e===Ma&&($a|=t,4===Fa&&gl(e,Da));var r=Vi();1===t?0!==(8&Pa)&&0===(48&Pa)?vl(e):(yl(e,n),0===Pa&&(Ga(),Gi())):(0===(4&Pa)||98!==r&&99!==r||(null===il?il=new Set([e]):il.add(e)),yl(e,n)),Wa=e}function ml(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function yl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-Vt(a),c=1<<l,u=o[l];if(-1===u){if(0===(c&r)||0!==(c&i)){u=t,Lt(c);var d=Dt;o[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);a&=~c}if(r=Bt(e,e===Ma?Da:0),t=Dt,0===r)null!==n&&(n!==Li&&Ci(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Li&&Ci(n)}15===t?(n=vl.bind(null,e),null===Fi?(Fi=[n],ji=ki(Oi,Ki)):Fi.push(n),n=Li):14===t?n=Yi(99,vl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),n=Yi(n,bl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function bl(e){if(al=-1,cl=ll=0,0!==(48&Pa))throw Error(s(327));var t=e.callbackNode;if(Dl()&&e.callbackNode!==t)return null;var n=Bt(e,e===Ma?Da:0);if(0===n)return null;var r=n,i=Pa;Pa|=16;var o=Cl();for(Ma===e&&Da===r||(Ga(),xl(e,r));;)try{El();break}catch(l){kl(e,l)}if(to(),Ra.current=o,Pa=i,null!==Na?r=0:(Ma=null,Da=0,r=Fa),0!==(za&$a))xl(e,0);else if(0!==r){if(2===r&&(Pa|=64,e.hydrate&&(e.hydrate=!1,Yr(e.containerInfo)),0!==(n=Ft(e))&&(r=Tl(e,n))),1===r)throw t=ja,xl(e,0),gl(e,n),yl(e,$i()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Pl(e);break;case 3:if(gl(e,n),(62914560&n)===n&&10<(r=Ha+500-$i())){if(0!==Bt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){fl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Wr(Pl.bind(null,e),r);break}Pl(e);break;case 4:if(gl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-Vt(n);o=1<<a,(a=r[a])>i&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=$i()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ea(n/1960))-n)){e.timeoutHandle=Wr(Pl.bind(null,e),n);break}Pl(e);break;default:throw Error(s(329))}}return yl(e,$i()),e.callbackNode===t?bl.bind(null,e):null}function gl(e,t){for(t&=~Va,t&=~$a,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function vl(e){if(0!==(48&Pa))throw Error(s(327));if(Dl(),e===Ma&&0!==(e.expiredLanes&Da)){var t=Da,n=Tl(e,t);0!==(za&$a)&&(n=Tl(e,t=Bt(e,t)))}else n=Tl(e,t=Bt(e,0));if(0!==e.tag&&2===n&&(Pa|=64,e.hydrate&&(e.hydrate=!1,Yr(e.containerInfo)),0!==(t=Ft(e))&&(n=Tl(e,t))),1===n)throw n=ja,xl(e,0),gl(e,t),yl(e,$i()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pl(e),yl(e,$i()),null}function wl(e,t){var n=Pa;Pa|=1;try{return e(t)}finally{0===(Pa=n)&&(Ga(),Gi())}}function Sl(e,t){var n=Pa;Pa&=-2,Pa|=8;try{return e(t)}finally{0===(Pa=n)&&(Ga(),Gi())}}function _l(e,t){ui(Ba,La),La|=t,za|=t}function Al(){La=Ba.current,ci(Ba)}function xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Na)for(n=Na.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&bi();break;case 3:No(),ci(pi),ci(fi),qo();break;case 5:Lo(r);break;case 4:No();break;case 13:case 19:ci(Bo);break;case 10:no(r);break;case 23:case 24:Al()}n=n.return}Ma=e,Na=Yl(e.current,null),Da=La=za=t,Fa=0,ja=null,Va=$a=Ua=0}function kl(e,t){for(;;){var n=Na;try{if(to(),Xo.current=Os,ns){for(var r=Zo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ns=!1}if(Jo=0,ts=es=Zo=null,rs=!1,Oa.current=null,null===n||null===n.return){Fa=1,ja=t,Na=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Da,a.flags|=2048,a.firstEffect=a.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=0!==(1&Bo.current),f=s;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=f.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var y=f.updateQueue;if(null===y){var b=new Set;b.add(c),f.updateQueue=b}else y.add(c);if(0===(2&f.mode)){if(f.flags|=64,a.flags|=16384,a.flags&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=co(-1,1);g.tag=2,uo(a,g)}a.lanes|=1;break e}l=void 0,a=t;var v=o.pingCache;if(null===v?(v=o.pingCache=new da,l=new Set,v.set(c,l)):void 0===(l=v.get(c))&&(l=new Set,v.set(c,l)),!l.has(a)){l.add(a);var w=Ul.bind(null,o,c,a);c.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((G(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Fa&&(Fa=2),l=ca(l,a),f=s;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t,fo(f,fa(0,o,t));break e;case 1:o=l;var S=f.type,_=f.stateNode;if(0===(64&f.flags)&&("function"===typeof S.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Ja||!Ja.has(_)))){f.flags|=4096,t&=-t,f.lanes|=t,fo(f,pa(f,o,t));break e}}f=f.return}while(null!==f)}Ol(n)}catch(A){t=A,Na===n&&null!==n&&(Na=n=n.return);continue}break}}function Cl(){var e=Ra.current;return Ra.current=Os,null===e?Os:e}function Tl(e,t){var n=Pa;Pa|=16;var r=Cl();for(Ma===e&&Da===t||xl(e,t);;)try{Il();break}catch(i){kl(e,i)}if(to(),Pa=n,Ra.current=r,null!==Na)throw Error(s(261));return Ma=null,Da=0,Fa}function Il(){for(;null!==Na;)Rl(Na)}function El(){for(;null!==Na&&!Ti();)Rl(Na)}function Rl(e){var t=Ka(e.alternate,e,La);e.memoizedProps=e.pendingProps,null===t?Ol(e):Na=t,Oa.current=null}function Ol(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=aa(n,t,La)))return void(Na=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&La)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=la(t)))return n.flags&=2047,void(Na=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Na=t);Na=t=e}while(null!==t);0===Fa&&(Fa=5)}function Pl(e){var t=Vi();return Hi(99,Ml.bind(null,e,t)),null}function Ml(e,t){do{Dl()}while(null!==el);if(0!==(48&Pa))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,l=e.expirationTimes;0<o;){var c=31-Vt(o),u=1<<c;i[c]=0,a[c]=-1,l[c]=-1,o&=~u}if(null!==il&&0===(24&r)&&il.has(e)&&il.delete(e),e===Ma&&(Na=Ma=null,Da=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Pa,Pa|=32,Oa.current=null,zr=Kt,yr(a=mr())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(C){l=null;break e}var d=0,f=-1,p=-1,h=0,m=0,y=a,b=null;t:for(;;){for(var g;y!==l||0!==o&&3!==y.nodeType||(f=d+o),y!==c||0!==u&&3!==y.nodeType||(p=d+u),3===y.nodeType&&(d+=y.nodeValue.length),null!==(g=y.firstChild);)b=y,y=g;for(;;){if(y===a)break t;if(b===l&&++h===o&&(f=d),b===c&&++m===u&&(p=d),null!==(g=y.nextSibling))break;b=(y=b).parentNode}y=g}l=-1===f||-1===p?null:{start:f,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Ur={focusedElem:a,selectionRange:l},Kt=!1,ul=null,dl=!1,qa=r;do{try{Nl()}catch(C){if(null===qa)throw Error(s(330));zl(qa,C),qa=qa.nextEffect}}while(null!==qa);ul=null,qa=r;do{try{for(a=e;null!==qa;){var v=qa.flags;if(16&v&&be(qa.stateNode,""),128&v){var w=qa.alternate;if(null!==w){var S=w.ref;null!==S&&("function"===typeof S?S(null):S.current=null)}}switch(1038&v){case 2:_a(qa),qa.flags&=-3;break;case 6:_a(qa),qa.flags&=-3,Ca(qa.alternate,qa);break;case 1024:qa.flags&=-1025;break;case 1028:qa.flags&=-1025,Ca(qa.alternate,qa);break;case 4:Ca(qa.alternate,qa);break;case 8:ka(a,l=qa);var _=l.alternate;wa(l),null!==_&&wa(_)}qa=qa.nextEffect}}catch(C){if(null===qa)throw Error(s(330));zl(qa,C),qa=qa.nextEffect}}while(null!==qa);if(S=Ur,w=mr(),v=S.focusedElem,a=S.selectionRange,w!==v&&v&&v.ownerDocument&&hr(v.ownerDocument.documentElement,v)){null!==a&&yr(v)&&(w=a.start,void 0===(S=a.end)&&(S=w),"selectionStart"in v?(v.selectionStart=w,v.selectionEnd=Math.min(S,v.value.length)):(S=(w=v.ownerDocument||document)&&w.defaultView||window).getSelection&&(S=S.getSelection(),l=v.textContent.length,_=Math.min(a.start,l),a=void 0===a.end?_:Math.min(a.end,l),!S.extend&&_>a&&(l=a,a=_,_=l),l=pr(v,_),o=pr(v,a),l&&o&&(1!==S.rangeCount||S.anchorNode!==l.node||S.anchorOffset!==l.offset||S.focusNode!==o.node||S.focusOffset!==o.offset)&&((w=w.createRange()).setStart(l.node,l.offset),S.removeAllRanges(),_>a?(S.addRange(w),S.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),S.addRange(w))))),w=[];for(S=v;S=S.parentNode;)1===S.nodeType&&w.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"===typeof v.focus&&v.focus(),v=0;v<w.length;v++)(S=w[v]).element.scrollLeft=S.left,S.element.scrollTop=S.top}Kt=!!zr,Ur=zr=null,e.current=n,qa=r;do{try{for(v=e;null!==qa;){var A=qa.flags;if(36&A&&ba(v,qa.alternate,qa),128&A){w=void 0;var x=qa.ref;if(null!==x){var k=qa.stateNode;qa.tag,w=k,"function"===typeof x?x(w):x.current=w}}qa=qa.nextEffect}}catch(C){if(null===qa)throw Error(s(330));zl(qa,C),qa=qa.nextEffect}}while(null!==qa);qa=null,Bi(),Pa=i}else e.current=n;if(Za)Za=!1,el=e,tl=t;else for(qa=r;null!==qa;)t=qa.nextEffect,qa.nextEffect=null,8&qa.flags&&((A=qa).sibling=null,A.stateNode=null),qa=t;if(0===(r=e.pendingLanes)&&(Ja=null),1===r?e===sl?ol++:(ol=0,sl=e):ol=0,n=n.stateNode,Ai&&"function"===typeof Ai.onCommitFiberRoot)try{Ai.onCommitFiberRoot(_i,n,void 0,64===(64&n.current.flags))}catch(C){}if(yl(e,$i()),Xa)throw Xa=!1,e=Qa,Qa=null,e;return 0!==(8&Pa)||Gi(),null}function Nl(){for(;null!==qa;){var e=qa.alternate;dl||null===ul||(0!==(8&qa.flags)?Ze(qa,ul)&&(dl=!0):13===qa.tag&&Ia(e,qa)&&Ze(qa,ul)&&(dl=!0));var t=qa.flags;0!==(256&t)&&ya(e,qa),0===(512&t)||Za||(Za=!0,Yi(97,(function(){return Dl(),null}))),qa=qa.nextEffect}}function Dl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Hi(e,Fl)}return!1}function Ll(e,t){nl.push(t,e),Za||(Za=!0,Yi(97,(function(){return Dl(),null})))}function Bl(e,t){rl.push(t,e),Za||(Za=!0,Yi(97,(function(){return Dl(),null})))}function Fl(){if(null===el)return!1;var e=el;if(el=null,0!==(48&Pa))throw Error(s(331));var t=Pa;Pa|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],a=i.destroy;if(i.destroy=void 0,"function"===typeof a)try{a()}catch(c){if(null===o)throw Error(s(330));zl(o,c)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(c){if(null===o)throw Error(s(330));zl(o,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Pa=t,Gi(),!0}function jl(e,t,n){uo(e,t=fa(0,t=ca(n,t),1)),t=fl(),null!==(e=ml(e,1))&&($t(e,1,t),yl(e,t))}function zl(e,t){if(3===e.tag)jl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){jl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ja||!Ja.has(r))){var i=pa(n,e=ca(t,e),1);if(uo(n,i),i=fl(),null!==(n=ml(n,1)))$t(n,1,i),yl(n,i);else if("function"===typeof r.componentDidCatch&&(null===Ja||!Ja.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Ul(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=fl(),e.pingedLanes|=e.suspendedLanes&n,Ma===e&&(Da&n)===n&&(4===Fa||3===Fa&&(62914560&Da)===Da&&500>$i()-Ha?xl(e,0):Va|=n),yl(e,t)}function $l(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Vi()?1:2:(0===ll&&(ll=za),0===(t=zt(62914560&~ll))&&(t=4194304))),n=fl(),null!==(e=ml(e,t))&&($t(e,t,n),yl(e,n))}function Vl(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Wl(e,t,n,r){return new Vl(e,t,n,r)}function Hl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Yl(e,t){var n=e.alternate;return null===n?((n=Wl(e.tag,t,e.key,e.mode)).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.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gl(e,t,n,r,i,o){var a=2;if(r=e,"function"===typeof e)Hl(e)&&(a=1);else if("string"===typeof e)a=5;else e:switch(e){case x:return Kl(n.children,i,o,t);case L:a=8,i|=16;break;case k:a=8,i|=1;break;case C:return(e=Wl(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=o,e;case R:return(e=Wl(13,n,t,i)).type=R,e.elementType=R,e.lanes=o,e;case O:return(e=Wl(19,n,t,i)).elementType=O,e.lanes=o,e;case B:return ql(n,i,o,t);case F:return(e=Wl(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:a=10;break e;case I:a=9;break e;case E:a=11;break e;case P:a=14;break e;case M:a=16,r=null;break e;case N:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Wl(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Kl(e,t,n,r){return(e=Wl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=Wl(23,e,r,t)).elementType=B,e.lanes=n,e}function Xl(e,t,n){return(e=Wl(6,e,null,t)).lanes=n,e}function Ql(e,t,n){return(t=Wl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Zl(e,t,n,r){var i=t.current,o=fl(),a=pl(i);e:if(n){t:{if(qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var c=n.type;if(yi(c)){n=vi(n,c,l);break e}}n=l}else n=di;return null===t.context?t.context=n:t.pendingContext=n,(t=co(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),uo(i,t),hl(i,a,o),a}function ec(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nc(e,t){tc(e,t),(e=e.alternate)&&tc(e,t)}function rc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Jl(e,t,null!=n&&!0===n.hydrate),t=Wl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ao(t),e[Zr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function oc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o._internalRoot;if("function"===typeof i){var a=i;i=function(){var e=ec(s);a.call(e)}}Zl(t,s,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new rc(e,0,t?{hydrate:!0}:void 0)}(n,r),s=o._internalRoot,"function"===typeof i){var l=i;i=function(){var e=ec(s);l.call(e)}}Sl((function(){Zl(t,s,e,i)}))}return ec(s)}function sc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(s(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:A,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ka=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||pi.current)Ls=!0;else{if(0===(n&r)){switch(Ls=!1,t.tag){case 3:Ys(t),Go();break;case 5:Do(t);break;case 1:yi(t.type)&&wi(t);break;case 4:Mo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Js(e,t,n):(ui(Bo,1&Bo.current),null!==(t=oa(e,t,n))?t.sibling:null);ui(Bo,1&Bo.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ia(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(Bo,Bo.current),r)break;return null;case 23:case 24:return t.lanes=0,Us(e,t,n)}return oa(e,t,n)}Ls=0!==(16384&e.flags)}else Ls=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=mi(t,fi.current),io(t,n),i=ss(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yi(r)){var o=!0;wi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ao(t);var a=r.getDerivedStateFromProps;"function"===typeof a&&yo(t,r,a,e),i.updater=bo,t.stateNode=i,i._reactInternals=t,So(t,r,e,n),t=Hs(null,t,r,!0,o,n)}else t.tag=0,Bs(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"===typeof e)return Hl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===E)return 11;if(e===P)return 14}return 2}(i),e=Xi(i,e),o){case 0:t=Vs(null,t,i,e,n);break e;case 1:t=Ws(null,t,i,e,n);break e;case 11:t=Fs(null,t,i,e,n);break e;case 14:t=js(null,t,i,Xi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Vs(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ws(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 3:if(Ys(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),po(t,r,null,n),(r=t.memoizedState.element)===i)Go(),t=oa(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(zo=Gr(t.stateNode.containerInfo.firstChild),jo=t,o=Uo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ko.push(o);for(n=To(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Bs(e,t,r,n),Go();t=t.child}return t;case 5:return Do(t),null===e&&Wo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,Vr(r,i)?a=null:null!==o&&Vr(r,o)&&(t.flags|=16),$s(e,t),Bs(e,t,a,n),t.child;case 6:return null===e&&Wo(t),null;case 13:return Js(e,t,n);case 4:return Mo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):Bs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Fs(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 7:return Bs(e,t,t.pendingProps,n),t.child;case 8:case 12:return Bs(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var l=t.type._context;if(ui(Qi,l._currentValue),l._currentValue=o,null!==a)if(l=a.value,0===(o=cr(l,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(a.children===i.children&&!pi.current){t=oa(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){a=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&o)){1===l.tag&&((u=co(-1,n&-n)).tag=2,uo(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ro(l.return,n),c.lanes|=n;break}u=u.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}Bs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,io(t,n),r=r(i=oo(i,o.unstable_observedBits)),t.flags|=1,Bs(e,t,r,n),t.child;case 14:return o=Xi(i=t.type,t.pendingProps),js(e,t,i,o=Xi(i.type,o),r,n);case 15:return zs(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yi(r)?(e=!0,wi(t)):e=!1,io(t,n),vo(t,r,i),So(t,r,i,n),Hs(null,t,r,!0,e,n);case 19:return ia(e,t,n);case 23:case 24:return Us(e,t,n)}throw Error(s(156,t.tag))},rc.prototype.render=function(e){Zl(e,this._internalRoot,null,null)},rc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zl(null,e,null,(function(){t[Zr]=null}))},et=function(e){13===e.tag&&(hl(e,4,fl()),nc(e,4))},tt=function(e){13===e.tag&&(hl(e,67108864,fl()),nc(e,67108864))},nt=function(e){if(13===e.tag){var t=fl(),n=pl(e);hl(e,n,t),nc(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){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=ii(r);if(!i)throw Error(s(90));Q(r),ne(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Pe=wl,Me=function(e,t,n,r,i){var o=Pa;Pa|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(Pa=o)&&(Ga(),Gi())}},Ne=function(){0===(49&Pa)&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,yl(e,$i())}))}Gi()}(),Dl())},De=function(e,t){var n=Pa;Pa|=2;try{return e(t)}finally{0===(Pa=n)&&(Ga(),Gi())}};var ac={Events:[ni,ri,ii,Re,Oe,Dl,{current:!1}]},lc={findFiberByHostInstance:ti,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cc={bundleType:lc.bundleType,version:lc.version,rendererPackageName:lc.rendererPackageName,rendererConfig:lc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:lc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{_i=uc.inject(cc),Ai=uc}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ac,t.createPortal=sc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Pa;if(0!==(48&n))return e(t);Pa|=1;try{if(e)return Hi(99,e.bind(null,t))}finally{Pa=n,Gi()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(s(200));return oc(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(s(200));return oc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(s(40));return!!e._reactRootContainer&&(Sl((function(){oc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=wl,t.unstable_createPortal=function(e,t){return sc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return oc(e,t,n,!1,r)},t.version="17.0.2"},6396:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(5764)},7643:(e,t,n)=>{"use strict";n(5181);var r=n(7565),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.jsx=c,t.jsxs=c},8540:(e,t,n)=>{"use strict";var r=n(5181),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var s=60109,a=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),s=d("react.provider"),a=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function p(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 h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var v=g.prototype=new b;v.constructor=g,r(v,y.prototype),v.isPureReactComponent=!0;var w={current:null},S=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,o={},s=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)S.call(t,r)&&!_.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:s,ref:a,props:o,_owner:w.current}}function x(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var k=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,r,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return s=s(l=e),e=""===r?"."+C(l,0):r,Array.isArray(s)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),T(s,t,n,"",(function(e){return e}))):null!=s&&(x(s)&&(s=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,n+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(k,"$&/")+"/")+e)),t.push(s)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+C(a=e[c],c);l+=T(a,t,n,u,s)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=T(a=a.value,t,n,u=r+C(a,c++),s);else if("object"===a)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function I(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function E(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var R={current:null};function O(){var e=R.current;if(null===e)throw Error(p(321));return e}var P={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=y,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var o=r({},e.props),s=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=w.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)S.call(t,u)&&!_.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:i,type:e.type,key:s,ref:a,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:E}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return O().useCallback(e,t)},t.useContext=function(e,t){return O().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return O().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return O().useLayoutEffect(e,t)},t.useMemo=function(e,t){return O().useMemo(e,t)},t.useReducer=function(e,t,n){return O().useReducer(e,t,n)},t.useRef=function(e){return O().useRef(e)},t.useState=function(e){return O().useState(e)},t.version="17.0.2"},7565:(e,t,n)=>{"use strict";e.exports=n(8540)},7929:(e,t,n)=>{"use strict";e.exports=n(7643)},7508:(e,t)=>{"use strict";var n,r,i,o;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(n){throw setTimeout(d,0),n}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,y=null,b=-1,g=5,v=0;t.unstable_shouldYield=function(){return t.unstable_now()>=v},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,S=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();v=e+g;try{y(!0,e)?S.postMessage(null):(m=!1,y=null)}catch(n){throw S.postMessage(null),n}}else m=!1},n=function(e){y=e,m||(m=!0,S.postMessage(null))},r=function(e,n){b=f((function(){e(t.unstable_now())}),n)},i=function(){p(b),b=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function A(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,s=e[o],a=o+1,l=e[a];if(void 0!==s&&0>k(s,n))void 0!==l&&0>k(l,s)?(e[r]=l,e[a]=n,r=a):(e[r]=s,e[o]=n,r=o);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[a]=n,r=a}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],T=[],I=1,E=null,R=3,O=!1,P=!1,M=!1;function N(e){for(var t=A(T);null!==t;){if(null===t.callback)x(T);else{if(!(t.startTime<=e))break;x(T),t.sortIndex=t.expirationTime,_(C,t)}t=A(T)}}function D(e){if(M=!1,N(e),!P)if(null!==A(C))P=!0,n(L);else{var t=A(T);null!==t&&r(D,t.startTime-e)}}function L(e,n){P=!1,M&&(M=!1,i()),O=!0;var o=R;try{for(N(n),E=A(C);null!==E&&(!(E.expirationTime>n)||e&&!t.unstable_shouldYield());){var s=E.callback;if("function"===typeof s){E.callback=null,R=E.priorityLevel;var a=s(E.expirationTime<=n);n=t.unstable_now(),"function"===typeof a?E.callback=a:E===A(C)&&x(C),N(n)}else x(C);E=A(C)}if(null!==E)var l=!0;else{var c=A(T);null!==c&&r(D,c.startTime-n),l=!1}return l}finally{E=null,R=o,O=!1}}var B=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){P||O||(P=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return A(C)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,o,s){var a=t.unstable_now();switch("object"===typeof s&&null!==s?s="number"===typeof(s=s.delay)&&0<s?a+s:a:s=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:I++,callback:o,priorityLevel:e,startTime:s,expirationTime:l=s+l,sortIndex:-1},s>a?(e.sortIndex=s,_(T,e),null===A(C)&&e===A(T)&&(M?i():M=!0,r(D,s-a))):(e.sortIndex=l,_(C,e),P||O||(P=!0,n(L))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},9611:(e,t,n)=>{"use strict";e.exports=n(7508)},2558:e=>{"use strict";const t={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map((e=>e.trim()))},t.splitSections=function(e){return e.split("\nm=").map(((e,t)=>(t>0?"m="+e:e).trim()+"\r\n"))},t.getDescription=function(e){const n=t.splitSections(e);return n&&n[0]},t.getMediaSections=function(e){const n=t.splitSections(e);return n.shift(),n},t.matchPrefix=function(e,n){return t.splitLines(e).filter((e=>0===e.indexOf(n)))},t.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1];break;case"ufrag":n.ufrag=t[r+1],n.usernameFragment=t[r+1];break;default:void 0===n[t[r]]&&(n[t[r]]=t[r+1])}return n},t.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const r=e.type;return t.push("typ"),t.push(r),"host"!==r&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},t.parseIceOptions=function(e){return e.substring(14).split(" ")},t.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},t.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},t.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},t.parseFmtp=function(e){const t={};let n;const r=e.substring(e.indexOf(" ")+1).split(";");for(let i=0;i<r.length;i++)n=r[i].trim().split("="),t[n[0].trim()]=n[1];return t},t.writeFmtp=function(e){let t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const r=[];Object.keys(e.parameters).forEach((t=>{void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},t.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},t.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((e=>parseInt(e,10)))}},t.getMid=function(e){const n=t.matchPrefix(e,"a=mid:")[0];if(n)return n.substring(6)},t.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},t.getDtlsParameters=function(e,n){return{role:"auto",fingerprints:t.matchPrefix(e+n,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},t.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"===typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,n){return t.matchPrefix(e+n,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,n){const r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],i=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&i?{usernameFragment:r.substring(12),password:i.substring(10)}:null},t.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},t.parseRtpParameters=function(e){const n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" ");n.profile=r[2];for(let o=3;o<r.length;o++){const i=r[o],s=t.matchPrefix(e,"a=rtpmap:"+i+" ")[0];if(s){const r=t.parseRtpMap(s),o=t.matchPrefix(e,"a=fmtp:"+i+" ");switch(r.parameters=o.length?t.parseFmtp(o[0]):{},r.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+i+" ").map(t.parseRtcpFb),n.codecs.push(r),r.name.toUpperCase()){case"RED":case"ULPFEC":n.fecMechanisms.push(r.name.toUpperCase())}}}t.matchPrefix(e,"a=extmap:").forEach((e=>{n.headerExtensions.push(t.parseExtmap(e))}));const i=t.matchPrefix(e,"a=rtcp-fb:* ").map(t.parseRtcpFb);return n.codecs.forEach((e=>{i.forEach((t=>{e.rtcpFeedback.find((e=>e.type===t.type&&e.parameter===t.parameter))||e.rtcpFeedback.push(t)}))})),n},t.writeRtpDescription=function(e,n){let r="";r+="m="+e+" ",r+=n.codecs.length>0?"9":"0",r+=" "+(n.profile||"UDP/TLS/RTP/SAVPF")+" ",r+=n.codecs.map((e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType)).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach((e=>{r+=t.writeRtpMap(e),r+=t.writeFmtp(e),r+=t.writeRtcpFb(e)}));let i=0;return n.codecs.forEach((e=>{e.maxptime>i&&(i=e.maxptime)})),i>0&&(r+="a=maxptime:"+i+"\r\n"),n.headerExtensions&&n.headerExtensions.forEach((e=>{r+=t.writeExtmap(e)})),r},t.parseRtpEncodingParameters=function(e){const n=[],r=t.parseRtpParameters(e),i=-1!==r.fecMechanisms.indexOf("RED"),o=-1!==r.fecMechanisms.indexOf("ULPFEC"),s=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute)),a=s.length>0&&s[0].ssrc;let l;const c=t.matchPrefix(e,"a=ssrc-group:FID").map((e=>e.substring(17).split(" ").map((e=>parseInt(e,10)))));c.length>0&&c[0].length>1&&c[0][0]===a&&(l=c[0][1]),r.codecs.forEach((e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let t={ssrc:a,codecPayloadType:parseInt(e.parameters.apt,10)};a&&l&&(t.rtx={ssrc:l}),n.push(t),i&&(t=JSON.parse(JSON.stringify(t)),t.fec={ssrc:a,mechanism:o?"red+ulpfec":"red"},n.push(t))}})),0===n.length&&a&&n.push({ssrc:a});let u=t.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substring(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substring(5),10)*.95-16e3:void 0,n.forEach((e=>{e.maxBitrate=u}))),n},t.parseRtcpParameters=function(e){const n={},r=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute))[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);const i=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=i.length>0,n.compound=0===i.length;const o=t.matchPrefix(e,"a=rtcp-mux");return n.mux=o.length>0,n},t.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},t.parseMsid=function(e){let n;const r=t.matchPrefix(e,"a=msid:");if(1===r.length)return n=r[0].substring(7).split(" "),{stream:n[0],track:n[1]};const i=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"msid"===e.attribute));return i.length>0?(n=i[0].value.split(" "),{stream:n[0],track:n[1]}):void 0},t.parseSctpDescription=function(e){const n=t.parseMLine(e),r=t.matchPrefix(e,"a=max-message-size:");let i;r.length>0&&(i=parseInt(r[0].substring(19),10)),isNaN(i)&&(i=65536);const o=t.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substring(12),10),protocol:n.fmt,maxMessageSize:i};const s=t.matchPrefix(e,"a=sctpmap:");if(s.length>0){const e=s[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},t.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(e,n,r){let i;const o=void 0!==n?n:2;i=e||t.generateSessionId();return"v=0\r\no="+(r||"thisisadapterortc")+" "+i+" "+o+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.getDirection=function(e,n){const r=t.splitLines(e);for(let t=0;t<r.length;t++)switch(r[t]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return r[t].substring(2)}return n?t.getDirection(n):"sendrecv"},t.getKind=function(e){return t.splitLines(e)[0].split(" ")[0].substring(2)},t.isRejected=function(e){return"0"===e.split(" ",2)[1]},t.parseMLine=function(e){const n=t.splitLines(e)[0].substring(2).split(" ");return{kind:n[0],port:parseInt(n[1],10),protocol:n[2],fmt:n.slice(3).join(" ")}},t.parseOLine=function(e){const n=t.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:n[0],sessionId:n[1],sessionVersion:parseInt(n[2],10),netType:n[3],addressType:n[4],address:n[5]}},t.isValidSDP=function(e){if("string"!==typeof e||0===e.length)return!1;const n=t.splitLines(e);for(let t=0;t<n.length;t++)if(n[t].length<2||"="!==n[t].charAt(1))return!1;return!0},e.exports=t},5573:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(7929),s=function(e){function t(t){var n=e.call(this,t)||this;return n.state={error:void 0},n}return r(t,e),t.getDerivedStateFromError=function(e){return{error:e}},t.prototype.render=function(){return null!=this.state.error?(0,o.jsxs)("div",{children:[(0,o.jsx)("h1",{children:"Component Error"},void 0),(0,o.jsx)("span",{children:this.state.error.message},void 0)]},void 0):this.props.children},t}(i(n(7565)).default.PureComponent);t.default=s},3161:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useRenderData=void 0;var l=n(7929),c=s(n(7565)),u=n(8415),d=n(6755),f=a(n(5573)),p=c.default.createContext(void 0);t.useRenderData=function(){var e=(0,c.useContext)(p);if(null==e)throw new Error("useRenderData() must be used inside <StreamlitProvider />");return e};t.default=function(e){var t=(0,d.useNullableRenderData)();return(0,c.useEffect)((function(){u.Streamlit.setFrameHeight()})),null==t?null:(0,l.jsx)(f.default,{children:(0,l.jsx)(p.Provider,r({value:t},{children:e.children}),void 0)},void 0)}},6641:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useNullableRenderData=t.StreamlitProvider=t.useRenderData=void 0;var i=n(3161);Object.defineProperty(t,"useRenderData",{enumerable:!0,get:function(){return i.useRenderData}}),Object.defineProperty(t,"StreamlitProvider",{enumerable:!0,get:function(){return r(i).default}});var o=n(6755);Object.defineProperty(t,"useNullableRenderData",{enumerable:!0,get:function(){return o.useNullableRenderData}})},6755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useNullableRenderData=void 0;var r=n(7565),i=n(8415);t.useNullableRenderData=function(){var e=(0,r.useState)(),t=e[0],n=e[1];return(0,r.useEffect)((function(){var e=function(e){n(e.detail)};i.Streamlit.events.addEventListener(i.Streamlit.RENDER_EVENT,e),i.Streamlit.setComponentReady();return function(){i.Streamlit.events.removeEventListener(i.Streamlit.RENDER_EVENT,e)}}),[]),t}},8415:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ArrowTable:()=>is,Streamlit:()=>ss,StreamlitComponentBase:()=>cs,withStreamlitConnection:()=>us});var r,i,o,s,a,l,c,u,d,f=n(2341),p=n.n(f),h=n(5946);!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"}(r||(r={})),function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(i||(i={})),function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"}(o||(o={})),function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"}(s||(s={})),function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"}(a||(a={})),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"}(l||(l={})),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"}(c||(c={})),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"}(u||(u={})),function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"}(d||(d={}));const[m,y]=(()=>{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()},"undefined"!==typeof BigInt?[BigInt,!0]:[t,!1]})(),[b,g]=(()=>{const e=()=>{throw new Error("BigInt64Array is not available in this environment")};return"undefined"!==typeof BigInt64Array?[BigInt64Array,!0]:[class{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}},!1]})(),[v,w]=(()=>{const e=()=>{throw new Error("BigUint64Array is not available in this environment")};return"undefined"!==typeof BigUint64Array?[BigUint64Array,!0]:[class{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}},!1]})(),S=e=>"number"===typeof e,_=e=>"boolean"===typeof e,A=e=>"function"===typeof e,x=e=>null!=e&&Object(e)===e,k=e=>x(e)&&A(e.then),C=e=>x(e)&&A(e[Symbol.iterator]),T=e=>x(e)&&A(e[Symbol.asyncIterator]),I=e=>x(e)&&x(e.schema),E=e=>x(e)&&"done"in e&&"value"in e,R=e=>x(e)&&A(e.stat)&&S(e.fd),O=e=>x(e)&&M(e.body),P=e=>"_getDOMStream"in e&&"_getNodeStream"in e,M=e=>x(e)&&A(e.cancel)&&A(e.getReader)&&!P(e),N=e=>x(e)&&A(e.read)&&A(e.pipe)&&_(e.readable)&&!P(e),D=e=>x(e)&&A(e.clear)&&A(e.bytes)&&A(e.position)&&A(e.setPosition)&&A(e.capacity)&&A(e.getBufferIdentifier)&&A(e.createLong);function L(e){if(null===e)return"null";if(undefined===e)return"undefined";switch(typeof e){case"number":case"bigint":return`${e}`;case"string":return`"${e}"`}return"function"===typeof e[Symbol.toPrimitive]?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?e instanceof b||e instanceof v?`[${[...e].map((e=>L(e)))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,((e,t)=>"bigint"===typeof t?`${t}`:t))}function B(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}Object.create;function F(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)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 j(e){return this instanceof j?(this.v=e,this):new j(e)}function z(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof j?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(r){u(o[0][3],r)}var n}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function U(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:j(e[r](t)),done:!1}:i?i(t):t}:i}}function $(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=F(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}Object.create;"function"===typeof SuppressedError&&SuppressedError;const V=new TextDecoder("utf-8"),W=e=>V.decode(e),H=new TextEncoder,Y=e=>H.encode(e),G="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function K(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.byteLength;const i=e.byteLength,o=new Uint8Array(e.buffer,e.byteOffset,i),s=new Uint8Array(t.buffer,t.byteOffset,Math.min(r,i));return o.set(s,n),e}function q(e,t){const n=function(e){const t=e[0]?[e[0]]:[];let n,r,i,o;for(let s,a,l=0,c=0,u=e.length;++l<u;)s=t[c],a=e[l],!s||!a||s.buffer!==a.buffer||a.byteOffset<s.byteOffset?a&&(t[++c]=a):(({byteOffset:n,byteLength:i}=s),({byteOffset:r,byteLength:o}=a),n+i<r||r+o<n?a&&(t[++c]=a):t[c]=new Uint8Array(s.buffer,n,r-n+o));return t}(e),r=n.reduce(((e,t)=>e+t.byteLength),0);let i,o,s,a=0,l=-1;const c=Math.min(t||Number.POSITIVE_INFINITY,r);for(const u=n.length;++l<u;){if(i=n[l],o=i.subarray(0,Math.min(i.length,c-a)),c<=a+o.length){o.length<i.length?n[l]=i.subarray(o.length):o.length===i.length&&l++,s?K(s,o,a):s=o;break}K(s||(s=new Uint8Array(c)),o,a),a+=o.length}return[s||new Uint8Array(0),n.slice(l),r-(s?s.byteLength:0)]}function X(e,t){let n=E(t)?t.value:t;return n instanceof e?e===Uint8Array?new e(n.buffer,n.byteOffset,n.byteLength):n:n?("string"===typeof n&&(n=Y(n)),n instanceof ArrayBuffer||n instanceof G?new e(n):D(n)?X(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 Q=e=>X(Int32Array,e),J=e=>X(Uint8Array,e),Z=e=>(e.next(),e);function*ee(e,t){const n=function*(e){yield e},r="string"===typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof G?n(t):C(t)?t:n(t);return yield*Z(function*(t){let n=null;do{n=t.next(yield X(e,n))}while(!n.done)}(r[Symbol.iterator]())),new e}function te(e,t){return z(this,arguments,(function*(){if(k(t))return yield j(yield j(yield*U($(te(e,yield j(t))))));const n=function(e){return z(this,arguments,(function*(){yield yield j(yield j(e))}))},r="string"===typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof G?n(t):C(t)?function(e){return z(this,arguments,(function*(){yield j(yield*U($(Z(function*(e){let t=null;do{t=e.next(yield null===t||void 0===t?void 0:t.value)}while(!t.done)}(e[Symbol.iterator]())))))}))}(t):T(t)?t:n(t);return yield j(yield*U($(Z(function(t){return z(this,arguments,(function*(){let n=null;do{n=yield j(t.next(yield yield j(X(e,n))))}while(!n.done)}))}(r[Symbol.asyncIterator]()))))),yield j(new e)}))}function ne(e,t,n){if(0!==e){n=n.slice(0,t+1);for(let r=-1;++r<=t;)n[r]+=e}return n}const re=Symbol.for("isArrowBigNum");function ie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return 0===n.length?Object.setPrototypeOf(X(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...n),this.constructor.prototype)}function oe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie.apply(this,t)}function se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie.apply(this,t)}function ae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie.apply(this,t)}function le(e){const{buffer:t,byteOffset:n,length:r,signed:i}=e,o=new v(t,n,r),s=i&&o[o.length-1]&BigInt(1)<<BigInt(63);let a=s?BigInt(1):BigInt(0),l=BigInt(0);if(s){for(const e of o)a+=~e*(BigInt(1)<<BigInt(32)*l++);a*=BigInt(-1)}else for(const c of o)a+=c*(BigInt(1)<<BigInt(32)*l++);return a}let ce,ue;function de(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 o=-1;const s=r.length-1;do{for(n[0]=r[o=0];o<s;)r[o++]=n[1]=n[0]/10,n[0]=(n[0]-10*n[1]<<16)+r[o];r[o]=n[1]=n[0]/10,n[0]=n[0]-10*n[1],t=`${n[0]}${t}`}while(i[0]||i[1]||i[2]||i[3]);return null!==t&&void 0!==t?t:"0"}ie.prototype[re]=!0,ie.prototype.toJSON=function(){return`"${ce(this)}"`},ie.prototype.valueOf=function(){return le(this)},ie.prototype.toString=function(){return ce(this)},ie.prototype[Symbol.toPrimitive]=function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"){case"number":return le(this);case"string":return ce(this);case"default":return ue(this)}return ce(this)},Object.setPrototypeOf(oe.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(se.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(ae.prototype,Object.create(Uint32Array.prototype)),Object.assign(oe.prototype,ie.prototype,{constructor:oe,signed:!0,TypedArray:Int32Array,BigIntArray:b}),Object.assign(se.prototype,ie.prototype,{constructor:se,signed:!1,TypedArray:Uint32Array,BigIntArray:v}),Object.assign(ae.prototype,ie.prototype,{constructor:ae,signed:!0,TypedArray:Uint32Array,BigIntArray:v}),y?(ue=e=>8===e.byteLength?new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:de(e),ce=e=>8===e.byteLength?`${new e.BigIntArray(e.buffer,e.byteOffset,1)[0]}`:de(e)):(ce=de,ue=ce);class fe{static new(e,t){switch(t){case!0:return new oe(e);case!1:return new se(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case b:return new oe(e)}return 16===e.byteLength?new ae(e):new se(e)}static signed(e){return new oe(e)}static unsigned(e){return new se(e)}static decimal(e){return new ae(e)}constructor(e,t){return fe.new(e,t)}}var pe,he,me,ye,be,ge,ve,we,Se,_e,Ae,xe,ke,Ce,Te,Ie,Ee,Re,Oe,Pe;class Me{static isNull(e){return(null===e||void 0===e?void 0:e.typeId)===u.Null}static isInt(e){return(null===e||void 0===e?void 0:e.typeId)===u.Int}static isFloat(e){return(null===e||void 0===e?void 0:e.typeId)===u.Float}static isBinary(e){return(null===e||void 0===e?void 0:e.typeId)===u.Binary}static isUtf8(e){return(null===e||void 0===e?void 0:e.typeId)===u.Utf8}static isBool(e){return(null===e||void 0===e?void 0:e.typeId)===u.Bool}static isDecimal(e){return(null===e||void 0===e?void 0:e.typeId)===u.Decimal}static isDate(e){return(null===e||void 0===e?void 0:e.typeId)===u.Date}static isTime(e){return(null===e||void 0===e?void 0:e.typeId)===u.Time}static isTimestamp(e){return(null===e||void 0===e?void 0:e.typeId)===u.Timestamp}static isInterval(e){return(null===e||void 0===e?void 0:e.typeId)===u.Interval}static isList(e){return(null===e||void 0===e?void 0:e.typeId)===u.List}static isStruct(e){return(null===e||void 0===e?void 0:e.typeId)===u.Struct}static isUnion(e){return(null===e||void 0===e?void 0:e.typeId)===u.Union}static isFixedSizeBinary(e){return(null===e||void 0===e?void 0:e.typeId)===u.FixedSizeBinary}static isFixedSizeList(e){return(null===e||void 0===e?void 0:e.typeId)===u.FixedSizeList}static isMap(e){return(null===e||void 0===e?void 0:e.typeId)===u.Map}static isDictionary(e){return(null===e||void 0===e?void 0:e.typeId)===u.Dictionary}static isDenseUnion(e){return Me.isUnion(e)&&e.mode===i.Dense}static isSparseUnion(e){return Me.isUnion(e)&&e.mode===i.Sparse}get typeId(){return u.NONE}}pe=Symbol.toStringTag,Me[pe]=((Pe=Me.prototype).children=null,Pe.ArrayType=Array,Pe[Symbol.toStringTag]="DataType");class Ne extends Me{toString(){return"Null"}get typeId(){return u.Null}}he=Symbol.toStringTag,Ne[he]=(e=>e[Symbol.toStringTag]="Null")(Ne.prototype);class De extends Me{constructor(e,t){super(),this.isSigned=e,this.bitWidth=t}get typeId(){return u.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?b:v}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}me=Symbol.toStringTag,De[me]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(De.prototype);class Le extends De{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(class extends De{constructor(){super(!0,8)}get ArrayType(){return Int8Array}}.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(class extends De{constructor(){super(!0,16)}get ArrayType(){return Int16Array}}.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(Le.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(class extends De{constructor(){super(!0,64)}get ArrayType(){return b}}.prototype,"ArrayType",{value:b}),Object.defineProperty(class extends De{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}}.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(class extends De{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}}.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(class extends De{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}}.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(class extends De{constructor(){super(!1,64)}get ArrayType(){return v}}.prototype,"ArrayType",{value:v});class Be extends Me{constructor(e){super(),this.precision=e}get typeId(){return u.Float}get ArrayType(){switch(this.precision){case o.HALF:return Uint16Array;case o.SINGLE:return Float32Array;case o.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}ye=Symbol.toStringTag,Be[ye]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(Be.prototype);Object.defineProperty(class extends Be{constructor(){super(o.HALF)}}.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(class extends Be{constructor(){super(o.SINGLE)}}.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(class extends Be{constructor(){super(o.DOUBLE)}}.prototype,"ArrayType",{value:Float64Array});class Fe extends Me{constructor(){super()}get typeId(){return u.Binary}toString(){return"Binary"}}be=Symbol.toStringTag,Fe[be]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(Fe.prototype);class je extends Me{constructor(){super()}get typeId(){return u.Utf8}toString(){return"Utf8"}}ge=Symbol.toStringTag,je[ge]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(je.prototype);class ze extends Me{constructor(){super()}get typeId(){return u.Bool}toString(){return"Bool"}}ve=Symbol.toStringTag,ze[ve]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(ze.prototype);class Ue extends Me{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;super(),this.scale=e,this.precision=t,this.bitWidth=n}get typeId(){return u.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}we=Symbol.toStringTag,Ue[we]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(Ue.prototype);class $e extends Me{constructor(e){super(),this.unit=e}get typeId(){return u.Date}toString(){return`Date${32*(this.unit+1)}<${s[this.unit]}>`}}Se=Symbol.toStringTag,$e[Se]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Date"))($e.prototype);class Ve extends Me{constructor(e,t){super(),this.unit=e,this.bitWidth=t}get typeId(){return u.Time}toString(){return`Time${this.bitWidth}<${a[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return b}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}_e=Symbol.toStringTag,Ve[_e]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]="Time"))(Ve.prototype);class We extends Me{constructor(e,t){super(),this.unit=e,this.timezone=t}get typeId(){return u.Timestamp}toString(){return`Timestamp<${a[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}Ae=Symbol.toStringTag,We[Ae]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Timestamp"))(We.prototype);class He extends Me{constructor(e){super(),this.unit=e}get typeId(){return u.Interval}toString(){return`Interval<${l[this.unit]}>`}}xe=Symbol.toStringTag,He[xe]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(He.prototype);class Ye extends Me{constructor(e){super(),this.children=[e]}get typeId(){return u.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}}ke=Symbol.toStringTag,Ye[ke]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(Ye.prototype);class Ge extends Me{constructor(e){super(),this.children=e}get typeId(){return u.Struct}toString(){return`Struct<{${this.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}Ce=Symbol.toStringTag,Ge[Ce]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(Ge.prototype);class Ke extends Me{constructor(e,t,n){super(),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce(((e,t,n)=>(e[t]=n)&&e||e),Object.create(null))}get typeId(){return u.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((e=>`${e.type}`)).join(" | ")}>`}}Te=Symbol.toStringTag,Ke[Te]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(Ke.prototype);class qe extends Me{constructor(e){super(),this.byteWidth=e}get typeId(){return u.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}Ie=Symbol.toStringTag,qe[Ie]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(qe.prototype);class Xe extends Me{constructor(e,t){super(),this.listSize=e,this.children=[t]}get typeId(){return u.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}>`}}Ee=Symbol.toStringTag,Xe[Ee]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(Xe.prototype);class Qe extends Me{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(),this.children=[e],this.keysSorted=t}get typeId(){return u.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}Re=Symbol.toStringTag,Qe[Re]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(Qe.prototype);const Je=(Ze=-1,()=>++Ze);var Ze;class et extends Me{constructor(e,t,n,r){super(),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=null==n?Je():"number"===typeof n?n:n.low}get typeId(){return u.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}>`}}function tt(e){const t=e;switch(e.typeId){case u.Decimal:return e.bitWidth/32;case u.Timestamp:return 2;case u.Date:case u.Interval:return 1+t.unit;case u.FixedSizeList:return t.listSize;case u.FixedSizeBinary:return t.byteWidth;default:return 1}}Oe=Symbol.toStringTag,et[Oe]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(et.prototype);class nt{visitMany(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.map(((e,t)=>this.visit(e,...n.map((e=>e[t])))))}visit(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(e){return function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("number"===typeof t)return rt(e,t,n);if("string"===typeof t&&t in u)return rt(e,u[t],n);if(t&&t instanceof Me)return rt(e,it(t),n);if((null===t||void 0===t?void 0:t.type)&&t.type instanceof Me)return rt(e,it(t.type),n);return rt(e,u.NONE,n)}(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}getVisitFnByTypeId(e){return rt(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}visitNull(e){return null}visitBool(e){return null}visitInt(e){return null}visitFloat(e){return null}visitUtf8(e){return null}visitBinary(e){return null}visitFixedSizeBinary(e){return null}visitDate(e){return null}visitTimestamp(e){return null}visitTime(e){return null}visitDecimal(e){return null}visitList(e){return null}visitStruct(e){return null}visitUnion(e){return null}visitDictionary(e){return null}visitInterval(e){return null}visitFixedSizeList(e){return null}visitMap(e){return null}}function rt(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=null;switch(t){case u.Null:r=e.visitNull;break;case u.Bool:r=e.visitBool;break;case u.Int:r=e.visitInt;break;case u.Int8:r=e.visitInt8||e.visitInt;break;case u.Int16:r=e.visitInt16||e.visitInt;break;case u.Int32:r=e.visitInt32||e.visitInt;break;case u.Int64:r=e.visitInt64||e.visitInt;break;case u.Uint8:r=e.visitUint8||e.visitInt;break;case u.Uint16:r=e.visitUint16||e.visitInt;break;case u.Uint32:r=e.visitUint32||e.visitInt;break;case u.Uint64:r=e.visitUint64||e.visitInt;break;case u.Float:r=e.visitFloat;break;case u.Float16:r=e.visitFloat16||e.visitFloat;break;case u.Float32:r=e.visitFloat32||e.visitFloat;break;case u.Float64:r=e.visitFloat64||e.visitFloat;break;case u.Utf8:r=e.visitUtf8;break;case u.Binary:r=e.visitBinary;break;case u.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case u.Date:r=e.visitDate;break;case u.DateDay:r=e.visitDateDay||e.visitDate;break;case u.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case u.Timestamp:r=e.visitTimestamp;break;case u.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case u.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case u.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case u.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case u.Time:r=e.visitTime;break;case u.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case u.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case u.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case u.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case u.Decimal:r=e.visitDecimal;break;case u.List:r=e.visitList;break;case u.Struct:r=e.visitStruct;break;case u.Union:r=e.visitUnion;break;case u.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case u.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case u.Dictionary:r=e.visitDictionary;break;case u.Interval:r=e.visitInterval;break;case u.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case u.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case u.FixedSizeList:r=e.visitFixedSizeList;break;case u.Map:r=e.visitMap}if("function"===typeof r)return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${u[t]}'`)}function it(e){switch(e.typeId){case u.Null:return u.Null;case u.Int:{const{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?u.Int8:u.Uint8;case 16:return n?u.Int16:u.Uint16;case 32:return n?u.Int32:u.Uint32;case 64:return n?u.Int64:u.Uint64}return u.Int}case u.Float:switch(e.precision){case o.HALF:return u.Float16;case o.SINGLE:return u.Float32;case o.DOUBLE:return u.Float64}return u.Float;case u.Binary:return u.Binary;case u.Utf8:return u.Utf8;case u.Bool:return u.Bool;case u.Decimal:return u.Decimal;case u.Time:switch(e.unit){case a.SECOND:return u.TimeSecond;case a.MILLISECOND:return u.TimeMillisecond;case a.MICROSECOND:return u.TimeMicrosecond;case a.NANOSECOND:return u.TimeNanosecond}return u.Time;case u.Timestamp:switch(e.unit){case a.SECOND:return u.TimestampSecond;case a.MILLISECOND:return u.TimestampMillisecond;case a.MICROSECOND:return u.TimestampMicrosecond;case a.NANOSECOND:return u.TimestampNanosecond}return u.Timestamp;case u.Date:switch(e.unit){case s.DAY:return u.DateDay;case s.MILLISECOND:return u.DateMillisecond}return u.Date;case u.Interval:switch(e.unit){case l.DAY_TIME:return u.IntervalDayTime;case l.YEAR_MONTH:return u.IntervalYearMonth}return u.Interval;case u.Map:return u.Map;case u.List:return u.List;case u.Struct:return u.Struct;case u.Union:switch(e.mode){case i.Dense:return u.DenseUnion;case i.Sparse:return u.SparseUnion}return u.Union;case u.FixedSizeBinary:return u.FixedSizeBinary;case u.FixedSizeList:return u.FixedSizeList;case u.Dictionary:return u.Dictionary}throw new Error(`Unrecognized type '${u[e.typeId]}'`)}nt.prototype.visitInt8=null,nt.prototype.visitInt16=null,nt.prototype.visitInt32=null,nt.prototype.visitInt64=null,nt.prototype.visitUint8=null,nt.prototype.visitUint16=null,nt.prototype.visitUint32=null,nt.prototype.visitUint64=null,nt.prototype.visitFloat16=null,nt.prototype.visitFloat32=null,nt.prototype.visitFloat64=null,nt.prototype.visitDateDay=null,nt.prototype.visitDateMillisecond=null,nt.prototype.visitTimestampSecond=null,nt.prototype.visitTimestampMillisecond=null,nt.prototype.visitTimestampMicrosecond=null,nt.prototype.visitTimestampNanosecond=null,nt.prototype.visitTimeSecond=null,nt.prototype.visitTimeMillisecond=null,nt.prototype.visitTimeMicrosecond=null,nt.prototype.visitTimeNanosecond=null,nt.prototype.visitDenseUnion=null,nt.prototype.visitSparseUnion=null,nt.prototype.visitIntervalDayTime=null,nt.prototype.visitIntervalYearMonth=null;const ot=new Float64Array(1),st=new Uint32Array(ot.buffer);function at(e){const t=(31744&e)>>10,n=(1023&e)/1024,r=Math.pow(-1,(32768&e)>>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)}class lt extends nt{}function ct(e){return(t,n,r)=>{if(t.setValid(n,null!=r))return e(t,n,r)}}const ut=(e,t,n)=>{e[t]=Math.trunc(n%4294967296),e[t+1]=Math.trunc(n/4294967296)},dt=(e,t,n,r)=>{if(n+1<t.length){const{[n]:i,[n+1]:o}=t;e.set(r.subarray(0,o-i),i)}},ft=(e,t,n)=>{let{values:r}=e;r[t]=n},pt=(e,t,n)=>{let{values:r}=e;r[t]=n},ht=(e,t,n)=>{let{values:r}=e;r[t]=function(e){if(e!==e)return 32256;ot[0]=e;const t=(2147483648&st[1])>>16&65535;let n=2146435072&st[1],r=0;return n>=1089470464?st[0]>0?n=31744:(n=(2080374784&n)>>16,r=(1048575&st[1])>>10):n<=1056964608?(r=1048576+(1048575&st[1]),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=512+(1048575&st[1])>>10),t|n|65535&r}(n)},mt=(e,t,n)=>{let{values:r}=e;((e,t,n)=>{e[t]=Math.trunc(n/864e5)})(r,t,n.valueOf())},yt=(e,t,n)=>{let{values:r}=e;ut(r,2*t,n.valueOf())},bt=(e,t,n)=>{let{values:r}=e;return ut(r,2*t,n/1e3)},gt=(e,t,n)=>{let{values:r}=e;return ut(r,2*t,n)},vt=(e,t,n)=>{let{values:r}=e;return((e,t,n)=>{e[t]=Math.trunc(1e3*n%4294967296),e[t+1]=Math.trunc(1e3*n/4294967296)})(r,2*t,n)},wt=(e,t,n)=>{let{values:r}=e;return((e,t,n)=>{e[t]=Math.trunc(1e6*n%4294967296),e[t+1]=Math.trunc(1e6*n/4294967296)})(r,2*t,n)},St=(e,t,n)=>{let{values:r}=e;r[t]=n},_t=(e,t,n)=>{let{values:r}=e;r[t]=n},At=(e,t,n)=>{let{values:r}=e;r[t]=n},xt=(e,t,n)=>{let{values:r}=e;r[t]=n},kt=(e,t,n)=>{const r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Et.visit(i,e.valueOffsets[t],n)},Ct=(e,t,n)=>{const r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Et.visit(i,t,n)},Tt=(e,t,n)=>{let{values:r}=e;r.set(n.subarray(0,2),2*t)},It=(e,t,n)=>{let{values:r}=e;r[t]=12*n[0]+n[1]%12};lt.prototype.visitBool=ct(((e,t,n)=>{let{offset:r,values:i}=e;const o=r+t;n?i[o>>3]|=1<<o%8:i[o>>3]&=~(1<<o%8)})),lt.prototype.visitInt=ct(ft),lt.prototype.visitInt8=ct(ft),lt.prototype.visitInt16=ct(ft),lt.prototype.visitInt32=ct(ft),lt.prototype.visitInt64=ct(ft),lt.prototype.visitUint8=ct(ft),lt.prototype.visitUint16=ct(ft),lt.prototype.visitUint32=ct(ft),lt.prototype.visitUint64=ct(ft),lt.prototype.visitFloat=ct(((e,t,n)=>{switch(e.type.precision){case o.HALF:return ht(e,t,n);case o.SINGLE:case o.DOUBLE:return pt(e,t,n)}})),lt.prototype.visitFloat16=ct(ht),lt.prototype.visitFloat32=ct(pt),lt.prototype.visitFloat64=ct(pt),lt.prototype.visitUtf8=ct(((e,t,n)=>{let{values:r,valueOffsets:i}=e;dt(r,i,t,Y(n))})),lt.prototype.visitBinary=ct(((e,t,n)=>{let{values:r,valueOffsets:i}=e;return dt(r,i,t,n)})),lt.prototype.visitFixedSizeBinary=ct(((e,t,n)=>{let{stride:r,values:i}=e;i.set(n.subarray(0,r),r*t)})),lt.prototype.visitDate=ct(((e,t,n)=>{e.type.unit===s.DAY?mt(e,t,n):yt(e,t,n)})),lt.prototype.visitDateDay=ct(mt),lt.prototype.visitDateMillisecond=ct(yt),lt.prototype.visitTimestamp=ct(((e,t,n)=>{switch(e.type.unit){case a.SECOND:return bt(e,t,n);case a.MILLISECOND:return gt(e,t,n);case a.MICROSECOND:return vt(e,t,n);case a.NANOSECOND:return wt(e,t,n)}})),lt.prototype.visitTimestampSecond=ct(bt),lt.prototype.visitTimestampMillisecond=ct(gt),lt.prototype.visitTimestampMicrosecond=ct(vt),lt.prototype.visitTimestampNanosecond=ct(wt),lt.prototype.visitTime=ct(((e,t,n)=>{switch(e.type.unit){case a.SECOND:return St(e,t,n);case a.MILLISECOND:return _t(e,t,n);case a.MICROSECOND:return At(e,t,n);case a.NANOSECOND:return xt(e,t,n)}})),lt.prototype.visitTimeSecond=ct(St),lt.prototype.visitTimeMillisecond=ct(_t),lt.prototype.visitTimeMicrosecond=ct(At),lt.prototype.visitTimeNanosecond=ct(xt),lt.prototype.visitDecimal=ct(((e,t,n)=>{let{values:r,stride:i}=e;r.set(n.subarray(0,i),i*t)})),lt.prototype.visitList=ct(((e,t,n)=>{const r=e.children[0],i=e.valueOffsets,o=Et.getVisitFn(r);if(Array.isArray(n))for(let s=-1,a=i[t],l=i[t+1];a<l;)o(r,a++,n[++s]);else for(let s=-1,a=i[t],l=i[t+1];a<l;)o(r,a++,n.get(++s))})),lt.prototype.visitStruct=ct(((e,t,n)=>{const r=e.type.children.map((e=>Et.getVisitFn(e.type))),i=n instanceof Map?(o=t,s=n,(e,t,n,r)=>t&&e(t,o,s.get(n.name))):n instanceof Gn?((e,t)=>(n,r,i,o)=>r&&n(r,e,t.get(o)))(t,n):Array.isArray(n)?((e,t)=>(n,r,i,o)=>r&&n(r,e,t[o]))(t,n):((e,t)=>(n,r,i,o)=>r&&n(r,e,t[i.name]))(t,n);var o,s;e.type.children.forEach(((t,n)=>i(r[n],e.children[n],t,n)))})),lt.prototype.visitUnion=ct(((e,t,n)=>{e.type.mode===i.Dense?kt(e,t,n):Ct(e,t,n)})),lt.prototype.visitDenseUnion=ct(kt),lt.prototype.visitSparseUnion=ct(Ct),lt.prototype.visitDictionary=ct(((e,t,n)=>{var r;null===(r=e.dictionary)||void 0===r||r.set(e.values[t],n)})),lt.prototype.visitInterval=ct(((e,t,n)=>{e.type.unit===l.DAY_TIME?Tt(e,t,n):It(e,t,n)})),lt.prototype.visitIntervalDayTime=ct(Tt),lt.prototype.visitIntervalYearMonth=ct(It),lt.prototype.visitFixedSizeList=ct(((e,t,n)=>{const{stride:r}=e,i=e.children[0],o=Et.getVisitFn(i);if(Array.isArray(n))for(let s=-1,a=t*r;++s<r;)o(i,a+s,n[s]);else for(let s=-1,a=t*r;++s<r;)o(i,a+s,n.get(s))})),lt.prototype.visitMap=ct(((e,t,n)=>{const r=e.children[0],{valueOffsets:i}=e,o=Et.getVisitFn(r);let{[t]:s,[t+1]:a}=i;const l=n instanceof Map?n.entries():Object.entries(n);for(const c of l)if(o(r,s,c),++s>=a)break}));const Et=new lt,Rt=Symbol.for("parent"),Ot=Symbol.for("rowIndex");class Pt{constructor(e,t){return this[Rt]=e,this[Ot]=t,new Proxy(this,new Nt)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Ot],t=this[Rt],n=t.type.children,r={};for(let i=-1,o=n.length;++i<o;)r[n[i].name]=nn.visit(t.children[i],e);return r}toString(){return`{${[...this].map((e=>{let[t,n]=e;return`${L(t)}: ${L(n)}`})).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Mt(this[Rt],this[Ot])}}class Mt{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,nn.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Pt.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Rt]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Ot]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class Nt{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Rt].type.children.map((e=>e.name))}has(e,t){return-1!==e[Rt].type.children.findIndex((e=>e.name===t))}getOwnPropertyDescriptor(e,t){if(-1!==e[Rt].type.children.findIndex((e=>e.name===t)))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const n=e[Rt].type.children.findIndex((e=>e.name===t));if(-1!==n){const r=nn.visit(e[Rt].children[n],e[Ot]);return Reflect.set(e,t,r),r}}set(e,t,n){const r=e[Rt].type.children.findIndex((e=>e.name===t));return-1!==r?(Et.visit(e[Rt].children[r],e[Ot],n),Reflect.set(e,t,n)):!(!Reflect.has(e,t)&&"symbol"!==typeof t)&&Reflect.set(e,t,n)}}class Dt extends nt{}function Lt(e){return(t,n)=>t.getValid(n)?e(t,n):null}const Bt=(e,t)=>4294967296*e[t+1]+(e[t]>>>0),Ft=e=>new Date(e),jt=(e,t,n)=>{if(n+1>=t.length)return null;const r=t[n],i=t[n+1];return e.subarray(r,i)},zt=(e,t)=>{let{values:n}=e;return((e,t)=>Ft(((e,t)=>864e5*e[t])(e,t)))(n,t)},Ut=(e,t)=>{let{values:n}=e;return((e,t)=>Ft(Bt(e,t)))(n,2*t)},$t=(e,t)=>{let{stride:n,values:r}=e;return r[n*t]},Vt=(e,t)=>{let{values:n}=e;return n[t]},Wt=(e,t)=>{let{values:n}=e;return 1e3*Bt(n,2*t)},Ht=(e,t)=>{let{values:n}=e;return Bt(n,2*t)},Yt=(e,t)=>{let{values:n}=e;return((e,t)=>e[t+1]/1e3*4294967296+(e[t]>>>0)/1e3)(n,2*t)},Gt=(e,t)=>{let{values:n}=e;return((e,t)=>e[t+1]/1e6*4294967296+(e[t]>>>0)/1e6)(n,2*t)},Kt=(e,t)=>{let{values:n}=e;return n[t]},qt=(e,t)=>{let{values:n}=e;return n[t]},Xt=(e,t)=>{let{values:n}=e;return n[t]},Qt=(e,t)=>{let{values:n}=e;return n[t]},Jt=(e,t)=>{const n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return nn.visit(r,e.valueOffsets[t])},Zt=(e,t)=>{const n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return nn.visit(r,t)},en=(e,t)=>{let{values:n}=e;return n.subarray(2*t,2*(t+1))},tn=(e,t)=>{let{values:n}=e;const r=n[t],i=new Int32Array(2);return i[0]=Math.trunc(r/12),i[1]=Math.trunc(r%12),i};Dt.prototype.visitNull=Lt(((e,t)=>null)),Dt.prototype.visitBool=Lt(((e,t)=>{let{offset:n,values:r}=e;const i=n+t;return 0!==(r[i>>3]&1<<i%8)})),Dt.prototype.visitInt=Lt(((e,t)=>{let{values:n}=e;return n[t]})),Dt.prototype.visitInt8=Lt($t),Dt.prototype.visitInt16=Lt($t),Dt.prototype.visitInt32=Lt($t),Dt.prototype.visitInt64=Lt(Vt),Dt.prototype.visitUint8=Lt($t),Dt.prototype.visitUint16=Lt($t),Dt.prototype.visitUint32=Lt($t),Dt.prototype.visitUint64=Lt(Vt),Dt.prototype.visitFloat=Lt(((e,t)=>{let{type:n,values:r}=e;return n.precision!==o.HALF?r[t]:at(r[t])})),Dt.prototype.visitFloat16=Lt(((e,t)=>{let{stride:n,values:r}=e;return at(r[n*t])})),Dt.prototype.visitFloat32=Lt($t),Dt.prototype.visitFloat64=Lt($t),Dt.prototype.visitUtf8=Lt(((e,t)=>{let{values:n,valueOffsets:r}=e;const i=jt(n,r,t);return null!==i?W(i):null})),Dt.prototype.visitBinary=Lt(((e,t)=>{let{values:n,valueOffsets:r}=e;return jt(n,r,t)})),Dt.prototype.visitFixedSizeBinary=Lt(((e,t)=>{let{stride:n,values:r}=e;return r.subarray(n*t,n*(t+1))})),Dt.prototype.visitDate=Lt(((e,t)=>e.type.unit===s.DAY?zt(e,t):Ut(e,t))),Dt.prototype.visitDateDay=Lt(zt),Dt.prototype.visitDateMillisecond=Lt(Ut),Dt.prototype.visitTimestamp=Lt(((e,t)=>{switch(e.type.unit){case a.SECOND:return Wt(e,t);case a.MILLISECOND:return Ht(e,t);case a.MICROSECOND:return Yt(e,t);case a.NANOSECOND:return Gt(e,t)}})),Dt.prototype.visitTimestampSecond=Lt(Wt),Dt.prototype.visitTimestampMillisecond=Lt(Ht),Dt.prototype.visitTimestampMicrosecond=Lt(Yt),Dt.prototype.visitTimestampNanosecond=Lt(Gt),Dt.prototype.visitTime=Lt(((e,t)=>{switch(e.type.unit){case a.SECOND:return Kt(e,t);case a.MILLISECOND:return qt(e,t);case a.MICROSECOND:return Xt(e,t);case a.NANOSECOND:return Qt(e,t)}})),Dt.prototype.visitTimeSecond=Lt(Kt),Dt.prototype.visitTimeMillisecond=Lt(qt),Dt.prototype.visitTimeMicrosecond=Lt(Xt),Dt.prototype.visitTimeNanosecond=Lt(Qt),Dt.prototype.visitDecimal=Lt(((e,t)=>{let{values:n,stride:r}=e;return fe.decimal(n.subarray(r*t,r*(t+1)))})),Dt.prototype.visitList=Lt(((e,t)=>{const{valueOffsets:n,stride:r,children:i}=e,{[t*r]:o,[t*r+1]:s}=n,a=i[0].slice(o,s-o);return new Gn([a])})),Dt.prototype.visitStruct=Lt(((e,t)=>new Pt(e,t))),Dt.prototype.visitUnion=Lt(((e,t)=>e.type.mode===i.Dense?Jt(e,t):Zt(e,t))),Dt.prototype.visitDenseUnion=Lt(Jt),Dt.prototype.visitSparseUnion=Lt(Zt),Dt.prototype.visitDictionary=Lt(((e,t)=>{var n;return null===(n=e.dictionary)||void 0===n?void 0:n.get(e.values[t])})),Dt.prototype.visitInterval=Lt(((e,t)=>e.type.unit===l.DAY_TIME?en(e,t):tn(e,t))),Dt.prototype.visitIntervalDayTime=Lt(en),Dt.prototype.visitIntervalYearMonth=Lt(tn),Dt.prototype.visitFixedSizeList=Lt(((e,t)=>{const{stride:n,children:r}=e,i=r[0].slice(t*n,n);return new Gn([i])})),Dt.prototype.visitMap=Lt(((e,t)=>{const{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:o}=n,s=r[0];return new sn(s.slice(i,o-i))}));const nn=new Dt,rn=Symbol.for("keys"),on=Symbol.for("vals");class sn{constructor(e){return this[rn]=new Gn([e.children[0]]).memoize(),this[on]=e.children[1],new Proxy(this,new ln)}[Symbol.iterator](){return new an(this[rn],this[on])}get size(){return this[rn].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[rn],t=this[on],n={};for(let r=-1,i=e.length;++r<i;)n[e.get(r)]=nn.visit(t,r);return n}toString(){return`{${[...this].map((e=>{let[t,n]=e;return`${L(t)}: ${L(n)}`})).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class an{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){const e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),nn.visit(this.vals,e)]})}}class ln{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[rn].toArray().map(String)}has(e,t){return e[rn].includes(t)}getOwnPropertyDescriptor(e,t){if(-1!==e[rn].indexOf(t))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const n=e[rn].indexOf(t);if(-1!==n){const r=nn.visit(Reflect.get(e,on),n);return Reflect.set(e,t,r),r}}set(e,t,n){const r=e[rn].indexOf(t);return-1!==r?(Et.visit(Reflect.get(e,on),r,n),Reflect.set(e,t,n)):!!Reflect.has(e,t)&&Reflect.set(e,t,n)}}let cn;function un(e,t,n,r){const{length:i=0}=e;let o="number"!==typeof t?0:t,s="number"!==typeof n?i:n;return o<0&&(o=(o%i+i)%i),s<0&&(s=(s%i+i)%i),s<o&&(cn=o,o=s,s=cn),s>i&&(s=i),r?r(e,o,s):[o,s]}Object.defineProperties(sn.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[rn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[on]:{writable:!0,enumerable:!1,configurable:!1,value:null}});const dn=e=>e!==e;function fn(e){if("object"!==typeof e||null===e)return dn(e)?dn:t=>t===e;if(e instanceof Date){const t=e.valueOf();return e=>e instanceof Date&&e.valueOf()===t}return ArrayBuffer.isView(e)?t=>!!t&&function(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}(e,t):e instanceof Map?function(e){let t=-1;const n=[];for(const r of e.values())n[++t]=fn(r);return pn(n)}(e):Array.isArray(e)?function(e){const t=[];for(let n=-1,r=e.length;++n<r;)t[n]=fn(e[n]);return pn(t)}(e):e instanceof Gn?function(e){const t=[];for(let n=-1,r=e.length;++n<r;)t[n]=fn(e.get(n));return pn(t)}(e):function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Object.keys(e);if(!t&&0===n.length)return()=>!1;const r=[];for(let i=-1,o=n.length;++i<o;)r[i]=fn(e[n[i]]);return pn(r,n)}(e,!0)}function pn(e,t){return n=>{if(!n||"object"!==typeof n)return!1;switch(n.constructor){case Array:return function(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}(e,n);case Map:return hn(e,n,n.keys());case sn:case Pt:case Object:case void 0:return hn(e,n,t||Object.keys(n))}return n instanceof Gn&&function(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}(e,n)}}function hn(e,t,n){const r=n[Symbol.iterator](),i=t instanceof Map?t.keys():Object.keys(t)[Symbol.iterator](),o=t instanceof Map?t.values():Object.values(t)[Symbol.iterator]();let s=0;const a=e.length;let l=o.next(),c=r.next(),u=i.next();for(;s<a&&!c.done&&!u.done&&!l.done&&(c.value===u.value&&e[s](l.value));++s,c=r.next(),u=i.next(),l=o.next());return!!(s===a&&c.done&&u.done&&l.done)||(r.return&&r.return(),i.return&&i.return(),o.return&&o.return(),!1)}class mn{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function yn(e){return e.reduce(((e,t)=>e+t.nullCount),0)}function bn(e){return e.reduce(((e,t,n)=>(e[n+1]=e[n]+t.length,e)),new Uint32Array(e.length+1))}function gn(e,t,n,r){const i=[];for(let o=-1,s=e.length;++o<s;){const s=e[o],a=t[o],{length:l}=s;if(a>=r)break;if(n>=a+l)continue;if(a>=n&&a+l<=r){i.push(s);continue}const c=Math.max(0,n-a),u=Math.min(r-a,l);i.push(s.slice(c,u-c))}return 0===i.length&&i.push(e[0].slice(0,0)),i}function vn(e,t,n,r){let i=0,o=0,s=t.length-1;do{if(i>=s-1)return n<t[s]?r(e,i,n-t[i]):null;o=i+Math.trunc(.5*(s-i)),n<t[o]?s=o:i=o}while(i<s)}function wn(e,t){return e.getValid(t)}function Sn(e){function t(t,n,r){return e(t[n],r)}return function(e){return vn(this.data,this._offsets,e,t)}}function _n(e){let t;function n(n,r,i){return e(n[r],i,t)}return function(e,r){const i=this.data;t=r;const o=vn(i,this._offsets,e,n);return t=void 0,o}}function An(e){let t;function n(n,r,i){let o=i,s=0,a=0;for(let l=r-1,c=n.length;++l<c;){const r=n[l];if(~(s=e(r,t,o)))return a+s;o=0,a+=r.length}return-1}return function(e,r){t=e;const i=this.data,o="number"!==typeof r?n(i,0,0):vn(i,this._offsets,r,n);return t=void 0,o}}function xn(e,t,n,r){return 0!==(n&1<<r)}function kn(e,t,n,r){return(n&1<<r)>>r}function Cn(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):Tn(new In(n,e,t,null,xn)).subarray(0,r)),i}return n}function Tn(e){const t=[];let n=0,r=0,i=0;for(const s of e)s&&(i|=1<<r),8===++r&&(t[n++]=i,i=r=0);(0===n||r>0)&&(t[n++]=i);const o=new Uint8Array(t.length+7&-8);return o.set(t),o}class In{constructor(e,t,n,r,i){this.bytes=e,this.length=n,this.context=r,this.get=i,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(8===this.bit&&(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 En(e,t,n){if(n-t<=0)return 0;if(n-t<8){let r=0;for(const i of new In(e,t,n-t,e,kn))r+=i;return r}const r=n>>3<<3,i=t+(t%8===0?0:8-t%8);return En(e,t,i)+En(e,r,n)+function(e,t,n){let r=0,i=Math.trunc(t);const o=new DataView(e.buffer,e.byteOffset,e.byteLength),s=void 0===n?e.byteLength:i+n;for(;s-i>=4;)r+=Rn(o.getUint32(i)),i+=4;for(;s-i>=2;)r+=Rn(o.getUint16(i)),i+=2;for(;s-i>=1;)r+=Rn(o.getUint8(i)),i+=1;return r}(e,i>>3,r-i>>3)}function Rn(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(858993459&t)+(t>>>2&858993459),16843009*(t+(t>>>4)&252645135)>>>24}class On extends nt{}function Pn(e,t,n){if(void 0===t)return-1;if(null===t)return function(e,t){const{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(const i of new In(n,e.offset+(t||0),e.length,n,xn)){if(!i)return r;++r}return-1}(e,n);const r=nn.getVisitFn(e),i=fn(t);for(let o=(n||0)-1,s=e.length;++o<s;)if(i(r(e,o)))return o;return-1}function Mn(e,t,n){const r=nn.getVisitFn(e),i=fn(t);for(let o=(n||0)-1,s=e.length;++o<s;)if(i(r(e,o)))return o;return-1}On.prototype.visitNull=function(e,t){return null===t&&e.length>0?0:-1},On.prototype.visitBool=Pn,On.prototype.visitInt=Pn,On.prototype.visitInt8=Pn,On.prototype.visitInt16=Pn,On.prototype.visitInt32=Pn,On.prototype.visitInt64=Pn,On.prototype.visitUint8=Pn,On.prototype.visitUint16=Pn,On.prototype.visitUint32=Pn,On.prototype.visitUint64=Pn,On.prototype.visitFloat=Pn,On.prototype.visitFloat16=Pn,On.prototype.visitFloat32=Pn,On.prototype.visitFloat64=Pn,On.prototype.visitUtf8=Pn,On.prototype.visitBinary=Pn,On.prototype.visitFixedSizeBinary=Pn,On.prototype.visitDate=Pn,On.prototype.visitDateDay=Pn,On.prototype.visitDateMillisecond=Pn,On.prototype.visitTimestamp=Pn,On.prototype.visitTimestampSecond=Pn,On.prototype.visitTimestampMillisecond=Pn,On.prototype.visitTimestampMicrosecond=Pn,On.prototype.visitTimestampNanosecond=Pn,On.prototype.visitTime=Pn,On.prototype.visitTimeSecond=Pn,On.prototype.visitTimeMillisecond=Pn,On.prototype.visitTimeMicrosecond=Pn,On.prototype.visitTimeNanosecond=Pn,On.prototype.visitDecimal=Pn,On.prototype.visitList=Pn,On.prototype.visitStruct=Pn,On.prototype.visitUnion=Pn,On.prototype.visitDenseUnion=Mn,On.prototype.visitSparseUnion=Mn,On.prototype.visitDictionary=Pn,On.prototype.visitInterval=Pn,On.prototype.visitIntervalDayTime=Pn,On.prototype.visitIntervalYearMonth=Pn,On.prototype.visitFixedSizeList=Pn,On.prototype.visitMap=Pn;const Nn=new On;class Dn extends nt{}function Ln(e){const{type:t}=e;if(0===e.nullCount&&1===e.stride&&(t.typeId===u.Timestamp||t instanceof De&&64!==t.bitWidth||t instanceof Ve&&64!==t.bitWidth||t instanceof Be&&t.precision!==o.HALF))return new mn(e.data.length,(t=>{const n=e.data[t];return n.values.subarray(0,n.length)[Symbol.iterator]()}));let n=0;return new mn(e.data.length,(t=>{const r=e.data[t].length,i=e.slice(n,n+r);return n+=r,new Bn(i)}))}class Bn{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}Dn.prototype.visitNull=Ln,Dn.prototype.visitBool=Ln,Dn.prototype.visitInt=Ln,Dn.prototype.visitInt8=Ln,Dn.prototype.visitInt16=Ln,Dn.prototype.visitInt32=Ln,Dn.prototype.visitInt64=Ln,Dn.prototype.visitUint8=Ln,Dn.prototype.visitUint16=Ln,Dn.prototype.visitUint32=Ln,Dn.prototype.visitUint64=Ln,Dn.prototype.visitFloat=Ln,Dn.prototype.visitFloat16=Ln,Dn.prototype.visitFloat32=Ln,Dn.prototype.visitFloat64=Ln,Dn.prototype.visitUtf8=Ln,Dn.prototype.visitBinary=Ln,Dn.prototype.visitFixedSizeBinary=Ln,Dn.prototype.visitDate=Ln,Dn.prototype.visitDateDay=Ln,Dn.prototype.visitDateMillisecond=Ln,Dn.prototype.visitTimestamp=Ln,Dn.prototype.visitTimestampSecond=Ln,Dn.prototype.visitTimestampMillisecond=Ln,Dn.prototype.visitTimestampMicrosecond=Ln,Dn.prototype.visitTimestampNanosecond=Ln,Dn.prototype.visitTime=Ln,Dn.prototype.visitTimeSecond=Ln,Dn.prototype.visitTimeMillisecond=Ln,Dn.prototype.visitTimeMicrosecond=Ln,Dn.prototype.visitTimeNanosecond=Ln,Dn.prototype.visitDecimal=Ln,Dn.prototype.visitList=Ln,Dn.prototype.visitStruct=Ln,Dn.prototype.visitUnion=Ln,Dn.prototype.visitDenseUnion=Ln,Dn.prototype.visitSparseUnion=Ln,Dn.prototype.visitDictionary=Ln,Dn.prototype.visitInterval=Ln,Dn.prototype.visitIntervalDayTime=Ln,Dn.prototype.visitIntervalYearMonth=Ln,Dn.prototype.visitFixedSizeList=Ln,Dn.prototype.visitMap=Ln;const Fn=new Dn,jn=(e,t)=>e+t;class zn extends nt{visitNull(e,t){return 0}visitInt(e,t){return e.type.bitWidth/8}visitFloat(e,t){return e.type.ArrayType.BYTES_PER_ELEMENT}visitBool(e,t){return 1/8}visitDecimal(e,t){return e.type.bitWidth/8}visitDate(e,t){return 4*(e.type.unit+1)}visitTime(e,t){return e.type.bitWidth/8}visitTimestamp(e,t){return e.type.unit===a.SECOND?4:8}visitInterval(e,t){return 4*(e.type.unit+1)}visitStruct(e,t){return e.children.reduce(((e,n)=>e+Vn.visit(n,t)),0)}visitFixedSizeBinary(e,t){return e.type.byteWidth}visitMap(e,t){return 8+e.children.reduce(((e,n)=>e+Vn.visit(n,t)),0)}visitDictionary(e,t){var n;return e.type.indices.bitWidth/8+((null===(n=e.dictionary)||void 0===n?void 0:n.getByteLength(e.values[t]))||0)}}const Un=(e,t)=>{let{type:n,children:r,typeIds:i,valueOffsets:o}=e;const s=n.typeIdToChildIndex[i[t]];return 8+Vn.visit(r[s],o[t])},$n=(e,t)=>{let{children:n}=e;return 4+Vn.visitMany(n,n.map((()=>t))).reduce(jn,0)};zn.prototype.visitUtf8=(e,t)=>{let{valueOffsets:n}=e;return n[t+1]-n[t]+8},zn.prototype.visitBinary=(e,t)=>{let{valueOffsets:n}=e;return n[t+1]-n[t]+8},zn.prototype.visitList=(e,t)=>{let{valueOffsets:n,stride:r,children:i}=e;const o=i[0],{[t*r]:s}=n,{[t*r+1]:a}=n,l=Vn.getVisitFn(o.type),c=o.slice(s,a-s);let u=8;for(let d=-1,f=a-s;++d<f;)u+=l(c,d);return u},zn.prototype.visitFixedSizeList=(e,t)=>{let{stride:n,children:r}=e;const i=r[0],o=i.slice(t*n,n),s=Vn.getVisitFn(i.type);let a=0;for(let l=-1,c=o.length;++l<c;)a+=s(o,l);return a},zn.prototype.visitUnion=(e,t)=>e.type.mode===i.Dense?Un(e,t):$n(e,t),zn.prototype.visitDenseUnion=Un,zn.prototype.visitSparseUnion=$n;const Vn=new zn;var Wn;const Hn={},Yn={};class Gn{constructor(e){var t,n,r;const i=e[0]instanceof Gn?e.flatMap((e=>e.data)):e;if(0===i.length||i.some((e=>!(e instanceof qn))))throw new TypeError("Vector constructor expects an Array of Data instances.");const o=null===(t=i[0])||void 0===t?void 0:t.type;switch(i.length){case 0:this._offsets=[0];break;case 1:{const{get:e,set:t,indexOf:n,byteLength:r}=Hn[o.typeId],s=i[0];this.isValid=e=>wn(s,e),this.get=t=>e(s,t),this.set=(e,n)=>t(s,e,n),this.indexOf=e=>n(s,e),this.getByteLength=e=>r(s,e),this._offsets=[0,s.length];break}default:Object.setPrototypeOf(this,Yn[o.typeId]),this._offsets=bn(i)}this.data=i,this.type=o,this.stride=tt(o),this.numChildren=null!==(r=null===(n=o.children)||void 0===n?void 0:n.length)&&void 0!==r?r:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return-1===this._byteLength&&(this._byteLength=this.data.reduce(((e,t)=>e+t.byteLength),0)),this._byteLength}get nullCount(){return-1===this._nullCount&&(this._nullCount=yn(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${u[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>0}getByteLength(e){return 0}[Symbol.iterator](){return Fn.visit(this)}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Gn(this.data.concat(t.flatMap((e=>e.data)).flat(Number.POSITIVE_INFINITY)))}slice(e,t){return new Gn(un(this,e,t,((e,t,n)=>{let{data:r,_offsets:i}=e;return gn(r,i,t,n)})))}toJSON(){return[...this]}toArray(){const{type:e,data:t,length:n,stride:r,ArrayType:i}=this;switch(e.typeId){case u.Int:case u.Float:case u.Decimal:case u.Time:case u.Timestamp:switch(t.length){case 0:return new i;case 1:return t[0].values.subarray(0,n*r);default:return t.reduce(((e,t)=>{let{values:n,length:i}=t;return e.array.set(n.subarray(0,i*r),e.offset),e.offset+=i*r,e}),{array:new i(n*r),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var t;return this.getChildAt(null===(t=this.type.children)||void 0===t?void 0:t.findIndex((t=>t.name===e)))}getChildAt(e){return e>-1&&e<this.numChildren?new Gn(this.data.map((t=>{let{children:n}=t;return n[e]}))):null}get isMemoized(){return!!Me.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(Me.isDictionary(this.type)){const e=new Kn(this.data[0].dictionary),t=this.data.map((t=>{const n=t.clone();return n.dictionary=e,n}));return new Gn(t)}return new Kn(this)}unmemoize(){if(Me.isDictionary(this.type)&&this.isMemoized){const e=this.data[0].dictionary.unmemoize(),t=this.data.map((t=>{const n=t.clone();return n.dictionary=e,n}));return new Gn(t)}return this}}Wn=Symbol.toStringTag,Gn[Wn]=(e=>{e.type=Me.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(u).map((e=>u[e])).filter((e=>"number"===typeof e&&e!==u.NONE));for(const n of t){const t=nn.getVisitFnByTypeId(n),r=Et.getVisitFnByTypeId(n),i=Nn.getVisitFnByTypeId(n),o=Vn.getVisitFnByTypeId(n);Hn[n]={get:t,set:r,indexOf:i,byteLength:o},Yn[n]=Object.create(e,{isValid:{value:Sn(wn)},get:{value:Sn(nn.getVisitFnByTypeId(n))},set:{value:_n(Et.getVisitFnByTypeId(n))},indexOf:{value:An(Nn.getVisitFnByTypeId(n))},getByteLength:{value:Sn(Vn.getVisitFnByTypeId(n))}})}return"Vector"})(Gn.prototype);class Kn extends Gn{constructor(e){super(e.data);const t=this.get,n=this.set,r=this.slice,i=new Array(this.length);Object.defineProperty(this,"get",{value(e){const n=i[e];if(void 0!==n)return n;const r=t.call(this,e);return i[e]=r,r}}),Object.defineProperty(this,"set",{value(e,t){n.call(this,e,t),i[e]=t}}),Object.defineProperty(this,"slice",{value:(e,t)=>new Kn(r.call(this,e,t))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new Gn(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class qn{constructor(e,t,n,r,i){let o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;this.type=e,this.children=s,this.dictionary=a,this.offset=Math.floor(Math.max(t||0,0)),this.length=Math.floor(Math.max(n||0,0)),this._nullCount=Math.floor(Math.max(r||0,-1)),i instanceof qn?(this.stride=i.stride,this.values=i.values,this.typeIds=i.typeIds,this.nullBitmap=i.nullBitmap,this.valueOffsets=i.valueOffsets):(this.stride=tt(e),i&&((o=i[0])&&(this.valueOffsets=o),(o=i[1])&&(this.values=o),(o=i[2])&&(this.nullBitmap=o),(o=i[3])&&(this.typeIds=o))),this.nullable=0!==this._nullCount&&this.nullBitmap&&this.nullBitmap.byteLength>0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0;const{valueOffsets:t,values:n,nullBitmap:r,typeIds:i}=this;return t&&(e+=t.byteLength),n&&(e+=n.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),this.children.reduce(((e,t)=>e+t.byteLength),e)}get nullCount(){let e,t=this._nullCount;return t<=-1&&(e=this.nullBitmap)&&(this._nullCount=t=this.length-En(e,this.offset,this.offset+this.length)),t}getValid(e){if(this.nullable&&this.nullCount>0){const t=this.offset+e;return 0!==(this.nullBitmap[t>>3]&1<<t%8)}return!0}setValid(e,t){if(!this.nullable)return t;if(!this.nullBitmap||this.nullBitmap.byteLength<=e>>3){const{nullBitmap:e}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:e,_nullCount:0})}const{nullBitmap:n,offset:r}=this,i=r+e>>3,o=(r+e)%8,s=n[i]>>o&1;return t?0===s&&(n[i]|=1<<o,this._nullCount=this.nullCount+1):1===s&&(n[i]&=~(1<<o),this._nullCount=this.nullCount-1),t}clone(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.offset,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._nullCount,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.children;return new qn(e,t,n,r,i,o,this.dictionary)}slice(e,t){const{stride:n,typeId:r,children:i}=this,o=+(0===this._nullCount)-1,s=16===r?n:1,a=this._sliceBuffers(e,t,n,r);return this.clone(this.type,this.offset+e,t,o,a,0===i.length||this.valueOffsets?i:this._sliceChildren(i,s*e,s*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===u.Null)return this.clone(this.type,0,e,0);const{length:t,nullCount:n}=this,r=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);r[t>>3]=(1<<t-(-8&t))-1,n>0&&r.set(Cn(this.offset,t,this.nullBitmap),0);const i=this.buffers;return i[d.VALIDITY]=r,this.clone(this.type,0,e,n+(e-t),i)}_sliceBuffers(e,t,n,r){let i;const{buffers:o}=this;return(i=o[d.TYPE])&&(o[d.TYPE]=i.subarray(e,e+t)),(i=o[d.OFFSET])&&(o[d.OFFSET]=i.subarray(e,e+t+1))||(i=o[d.DATA])&&(o[d.DATA]=6===r?i:i.subarray(n*e,n*(e+t))),o}_sliceChildren(e,t,n){return e.map((e=>e.slice(t,n)))}}qn.prototype.children=Object.freeze([]);class Xn extends nt{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){const{type:t,offset:n=0,length:r=0}=e;return new qn(t,n,r,0)}visitBool(e){const{type:t,offset:n=0}=e,r=J(e.nullBitmap),i=X(t.ArrayType,e.data),{length:o=i.length>>3,nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,i,r])}visitInt(e){const{type:t,offset:n=0}=e,r=J(e.nullBitmap),i=X(t.ArrayType,e.data),{length:o=i.length,nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,i,r])}visitFloat(e){const{type:t,offset:n=0}=e,r=J(e.nullBitmap),i=X(t.ArrayType,e.data),{length:o=i.length,nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,i,r])}visitUtf8(e){const{type:t,offset:n=0}=e,r=J(e.data),i=J(e.nullBitmap),o=Q(e.valueOffsets),{length:s=o.length-1,nullCount:a=(e.nullBitmap?-1:0)}=e;return new qn(t,n,s,a,[o,r,i])}visitBinary(e){const{type:t,offset:n=0}=e,r=J(e.data),i=J(e.nullBitmap),o=Q(e.valueOffsets),{length:s=o.length-1,nullCount:a=(e.nullBitmap?-1:0)}=e;return new qn(t,n,s,a,[o,r,i])}visitFixedSizeBinary(e){const{type:t,offset:n=0}=e,r=J(e.nullBitmap),i=X(t.ArrayType,e.data),{length:o=i.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,i,r])}visitDate(e){const{type:t,offset:n=0}=e,r=J(e.nullBitmap),i=X(t.ArrayType,e.data),{length:o=i.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,i,r])}visitTimestamp(e){const{type:t,offset:n=0}=e,r=J(e.nullBitmap),i=X(t.ArrayType,e.data),{length:o=i.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,i,r])}visitTime(e){const{type:t,offset:n=0}=e,r=J(e.nullBitmap),i=X(t.ArrayType,e.data),{length:o=i.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,i,r])}visitDecimal(e){const{type:t,offset:n=0}=e,r=J(e.nullBitmap),i=X(t.ArrayType,e.data),{length:o=i.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,i,r])}visitList(e){const{type:t,offset:n=0,child:r}=e,i=J(e.nullBitmap),o=Q(e.valueOffsets),{length:s=o.length-1,nullCount:a=(e.nullBitmap?-1:0)}=e;return new qn(t,n,s,a,[o,void 0,i],[r])}visitStruct(e){const{type:t,offset:n=0,children:r=[]}=e,i=J(e.nullBitmap),{length:o=r.reduce(((e,t)=>{let{length:n}=t;return Math.max(e,n)}),0),nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,void 0,i],r)}visitUnion(e){const{type:t,offset:n=0,children:r=[]}=e,i=J(e.nullBitmap),o=X(t.ArrayType,e.typeIds),{length:s=o.length,nullCount:a=(e.nullBitmap?-1:0)}=e;if(Me.isSparseUnion(t))return new qn(t,n,s,a,[void 0,void 0,i,o],r);const l=Q(e.valueOffsets);return new qn(t,n,s,a,[l,void 0,i,o],r)}visitDictionary(e){const{type:t,offset:n=0}=e,r=J(e.nullBitmap),i=X(t.indices.ArrayType,e.data),{dictionary:o=new Gn([(new Xn).visit({type:t.dictionary})])}=e,{length:s=i.length,nullCount:a=(e.nullBitmap?-1:0)}=e;return new qn(t,n,s,a,[void 0,i,r],[],o)}visitInterval(e){const{type:t,offset:n=0}=e,r=J(e.nullBitmap),i=X(t.ArrayType,e.data),{length:o=i.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,i,r])}visitFixedSizeList(e){const{type:t,offset:n=0,child:r=(new Xn).visit({type:t.valueType})}=e,i=J(e.nullBitmap),{length:o=r.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new qn(t,n,o,s,[void 0,void 0,i],[r])}visitMap(e){const{type:t,offset:n=0,child:r=(new Xn).visit({type:t.childType})}=e,i=J(e.nullBitmap),o=Q(e.valueOffsets),{length:s=o.length-1,nullCount:a=(e.nullBitmap?-1:0)}=e;return new qn(t,n,s,a,[o,void 0,i],[r])}}function Qn(e){return(new Xn).visit(e)}class Jn{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;this.fields=e||[],this.metadata=t||new Map,n||(n=tr(e)),this.dictionaries=n}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((e=>e.name))}toString(){return`Schema<{ ${this.fields.map(((e,t)=>`${t}: ${e}`)).join(", ")} }>`}select(e){const t=new Set(e),n=this.fields.filter((e=>t.has(e.name)));return new Jn(n,this.metadata)}selectAt(e){const t=e.map((e=>this.fields[e])).filter(Boolean);return new Jn(t,this.metadata)}assign(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t[0]instanceof Jn?t[0]:Array.isArray(t[0])?new Jn(t[0]):new Jn(t),i=[...this.fields],o=er(er(new Map,this.metadata),r.metadata),s=r.fields.filter((e=>{const t=i.findIndex((t=>t.name===e.name));return!~t||(i[t]=e.clone({metadata:er(er(new Map,i[t].metadata),e.metadata)}))&&!1})),a=tr(s,new Map);return new Jn([...i,...s],o,new Map([...this.dictionaries,...a]))}}Jn.prototype.fields=null,Jn.prototype.metadata=null,Jn.prototype.dictionaries=null;class Zn{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;this.name=e,this.type=t,this.nullable=n,this.metadata=r||new Map}static new(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i,o,s]=t;return t[0]&&"object"===typeof t[0]&&(({name:r}=t[0]),void 0===i&&(i=t[0].type),void 0===o&&(o=t[0].nullable),void 0===s&&(s=t[0].metadata)),new Zn(`${r}`,i,o,s)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i,o,s]=t;return t[0]&&"object"===typeof t[0]?({name:r=this.name,type:i=this.type,nullable:o=this.nullable,metadata:s=this.metadata}=t[0]):[r=this.name,i=this.type,o=this.nullable,s=this.metadata]=t,Zn.new(r,i,o,s)}}function er(e,t){return new Map([...e||new Map,...t||new Map])}function tr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;for(let n=-1,r=e.length;++n<r;){const r=e[n].type;if(Me.isDictionary(r))if(t.has(r.id)){if(t.get(r.id)!==r.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else t.set(r.id,r.dictionary);r.children&&r.children.length>0&&tr(r.children,t)}return t}Zn.prototype.type=null,Zn.prototype.name=null,Zn.prototype.nullable=null,Zn.prototype.metadata=null;class nr extends nt{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>this.compareFields(e,t[n])))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}}function rr(e,t){return t instanceof e.constructor}function ir(e,t){return e===t||rr(e,t)}function or(e,t){return e===t||rr(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function sr(e,t){return e===t||rr(e,t)&&e.precision===t.precision}function ar(e,t){return e===t||rr(e,t)&&e.unit===t.unit}function lr(e,t){return e===t||rr(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function cr(e,t){return e===t||rr(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function ur(e,t){return e===t||rr(e,t)&&e.mode===t.mode&&e.typeIds.every(((e,n)=>e===t.typeIds[n]))&&fr.compareManyFields(e.children,t.children)}function dr(e,t){return e===t||rr(e,t)&&e.unit===t.unit}nr.prototype.visitNull=ir,nr.prototype.visitBool=ir,nr.prototype.visitInt=or,nr.prototype.visitInt8=or,nr.prototype.visitInt16=or,nr.prototype.visitInt32=or,nr.prototype.visitInt64=or,nr.prototype.visitUint8=or,nr.prototype.visitUint16=or,nr.prototype.visitUint32=or,nr.prototype.visitUint64=or,nr.prototype.visitFloat=sr,nr.prototype.visitFloat16=sr,nr.prototype.visitFloat32=sr,nr.prototype.visitFloat64=sr,nr.prototype.visitUtf8=ir,nr.prototype.visitBinary=ir,nr.prototype.visitFixedSizeBinary=function(e,t){return e===t||rr(e,t)&&e.byteWidth===t.byteWidth},nr.prototype.visitDate=ar,nr.prototype.visitDateDay=ar,nr.prototype.visitDateMillisecond=ar,nr.prototype.visitTimestamp=lr,nr.prototype.visitTimestampSecond=lr,nr.prototype.visitTimestampMillisecond=lr,nr.prototype.visitTimestampMicrosecond=lr,nr.prototype.visitTimestampNanosecond=lr,nr.prototype.visitTime=cr,nr.prototype.visitTimeSecond=cr,nr.prototype.visitTimeMillisecond=cr,nr.prototype.visitTimeMicrosecond=cr,nr.prototype.visitTimeNanosecond=cr,nr.prototype.visitDecimal=ir,nr.prototype.visitList=function(e,t){return e===t||rr(e,t)&&e.children.length===t.children.length&&fr.compareManyFields(e.children,t.children)},nr.prototype.visitStruct=function(e,t){return e===t||rr(e,t)&&e.children.length===t.children.length&&fr.compareManyFields(e.children,t.children)},nr.prototype.visitUnion=ur,nr.prototype.visitDenseUnion=ur,nr.prototype.visitSparseUnion=ur,nr.prototype.visitDictionary=function(e,t){return e===t||rr(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&fr.visit(e.indices,t.indices)&&fr.visit(e.dictionary,t.dictionary)},nr.prototype.visitInterval=dr,nr.prototype.visitIntervalDayTime=dr,nr.prototype.visitIntervalYearMonth=dr,nr.prototype.visitFixedSizeList=function(e,t){return e===t||rr(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&fr.compareManyFields(e.children,t.children)},nr.prototype.visitMap=function(e,t){return e===t||rr(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&fr.compareManyFields(e.children,t.children)};const fr=new nr;function pr(e,t){return fr.compareSchemas(e,t)}var hr,mr;class yr{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];switch(t.length){case 2:if([this.schema]=t,!(this.schema instanceof Jn))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=Qn({nullCount:0,type:new Ge(this.schema.fields),children:this.schema.fields.map((e=>Qn({type:e.type,nullCount:0})))})]=t,!(this.data instanceof qn))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=br(this.schema,this.data.children);break;case 1:{const[e]=t,{fields:n,children:r,length:i}=Object.keys(e).reduce(((t,n,r)=>(t.children[r]=e[n],t.length=Math.max(t.length,e[n].length),t.fields[r]=Zn.new({name:n,type:e[n].type,nullable:!0}),t)),{length:0,fields:new Array,children:new Array}),o=new Jn(n),s=Qn({type:new Ge(n),length:i,children:r,nullCount:0});[this.schema,this.data]=br(o,s.children,i);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=gr(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return nn.visit(this.data,e)}set(e,t){return Et.visit(this.data,e,t)}indexOf(e,t){return Nn.visit(this.data,e,t)}getByteLength(e){return Vn.visit(this.data,e)}[Symbol.iterator](){return Fn.visit(new Gn([this.data]))}toArray(){return[...this]}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new _r(this.schema,[this,...t])}slice(e,t){const[n]=new Gn([this.data]).slice(e,t).data;return new yr(this.schema,n)}getChild(e){var t;return this.getChildAt(null===(t=this.schema.fields)||void 0===t?void 0:t.findIndex((t=>t.name===e)))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new Gn([this.data.children[e]]):null}setChild(e,t){var n;return this.setChildAt(null===(n=this.schema.fields)||void 0===n?void 0:n.findIndex((t=>t.name===e)),t)}setChildAt(e,t){let n=this.schema,r=this.data;if(e>-1&&e<this.numCols){t||(t=new Gn([Qn({type:new Ne,length:this.numRows})]));const i=n.fields.slice(),o=r.children.slice(),s=i[e].clone({type:t.type});[i[e],o[e]]=[s,t.data[0]],n=new Jn(i,new Map(this.schema.metadata)),r=Qn({type:new Ge(i),children:o})}return new yr(n,r)}select(e){const t=this.schema.select(e),n=new Ge(t.fields),r=[];for(const i of e){const e=this.schema.fields.findIndex((e=>e.name===i));~e&&(r[e]=this.data.children[e])}return new yr(t,Qn({type:n,length:this.numRows,children:r}))}selectAt(e){const t=this.schema.selectAt(e),n=e.map((e=>this.data.children[e])).filter(Boolean),r=Qn({type:new Ge(t.fields),length:this.numRows,children:n});return new yr(t,r)}}function br(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.reduce(((e,t)=>Math.max(e,t.length)),0);var r;const i=[...e.fields],o=[...t],s=(n+63&-64)>>3;for(const[a,l]of e.fields.entries()){const e=t[a];e&&e.length===n||(i[a]=l.clone({nullable:!0}),o[a]=null!==(r=null===e||void 0===e?void 0:e._changeLengthAndBackfillNullBitmap(n))&&void 0!==r?r:Qn({type:l.type,length:n,nullCount:n,nullBitmap:new Uint8Array(s)}))}return[e.assign(i),Qn({type:new Ge(i),length:n,children:o})]}function gr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map;for(let r=-1,i=e.length;++r<i;){const i=e[r].type,o=t[r];if(Me.isDictionary(i))if(n.has(i.id)){if(n.get(i.id)!==o.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else o.dictionary&&n.set(i.id,o.dictionary);i.children&&i.children.length>0&&gr(i.children,o.children,n)}return n}hr=Symbol.toStringTag,yr[hr]=(e=>(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(yr.prototype);class vr extends yr{constructor(e){const t=e.fields.map((e=>Qn({type:e.type})));super(e,Qn({type:new Ge(e.fields),nullCount:0,children:t}))}}function wr(e,t){return function(e,t){const n=[...e.fields],r=[],i={numBatches:t.reduce(((e,t)=>Math.max(e,t.length)),0)};let o=0,s=0,a=-1;const l=t.length;let c,u=[];for(;i.numBatches-- >0;){for(s=Number.POSITIVE_INFINITY,a=-1;++a<l;)u[a]=c=t[a].shift(),s=Math.min(s,c?c.length:s);Number.isFinite(s)&&(u=Sr(n,s,u,t,i),s>0&&(r[o++]=Qn({type:new Ge(n),length:s,nullCount:0,children:u.slice()})))}return[e=e.assign(n),r.map((t=>new yr(e,t)))]}(e,t.map((e=>e.data.concat())))}function Sr(e,t,n,r,i){var o;const s=(t+63&-64)>>3;for(let a=-1,l=r.length;++a<l;){const l=n[a],c=null===l||void 0===l?void 0:l.length;if(c>=t)c===t?n[a]=l:(n[a]=l.slice(0,t),i.numBatches=Math.max(i.numBatches,r[a].unshift(l.slice(t,c-t))));else{const r=e[a];e[a]=r.clone({nullable:!0}),n[a]=null!==(o=null===l||void 0===l?void 0:l._changeLengthAndBackfillNullBitmap(t))&&void 0!==o?o:Qn({type:r.type,length:t,nullCount:t,nullBitmap:new Uint8Array(s)})}}return n}class _r{constructor(){for(var e,t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(0===r.length)return this.batches=[],this.schema=new Jn([]),this._offsets=[0],this;let o,s;r[0]instanceof Jn&&(o=r.shift()),r[r.length-1]instanceof Uint32Array&&(s=r.pop());const a=e=>{if(e){if(e instanceof yr)return[e];if(e instanceof _r)return e.batches;if(e instanceof qn){if(e.type instanceof Ge)return[new yr(new Jn(e.type.children),e)]}else{if(Array.isArray(e))return e.flatMap((e=>a(e)));if("function"===typeof e[Symbol.iterator])return[...e].flatMap((e=>a(e)));if("object"===typeof e){const t=Object.keys(e),n=t.map((t=>new Gn([e[t]]))),r=new Jn(t.map(((e,t)=>new Zn(String(e),n[t].type)))),[,i]=wr(r,n);return 0===i.length?[new yr(e)]:i}}}return[]},l=r.flatMap((e=>a(e)));if(o=null!==(t=null!==o&&void 0!==o?o:null===(e=l[0])||void 0===e?void 0:e.schema)&&void 0!==t?t:new Jn([]),!(o instanceof Jn))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const c of l){if(!(c instanceof yr))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!pr(o,c.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=o,this.batches=l,this._offsets=null!==s&&void 0!==s?s:bn(this.data)}get data(){return this.batches.map((e=>{let{data:t}=e;return t}))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((e,t)=>e+t.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=yn(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}set(e,t){}indexOf(e,t){return-1}getByteLength(e){return 0}[Symbol.iterator](){return this.batches.length>0?Fn.visit(new Gn(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(",\n ")}\n]`}concat(){const e=this.schema;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=this.data.concat(n.flatMap((e=>{let{data:t}=e;return t})));return new _r(e,i.map((t=>new yr(e,t))))}slice(e,t){const n=this.schema;[e,t]=un({length:this.numRows},e,t);const r=gn(this.data,this._offsets,e,t);return new _r(n,r.map((e=>new yr(n,e))))}getChild(e){return this.getChildAt(this.schema.fields.findIndex((t=>t.name===e)))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){const t=this.data.map((t=>t.children[e]));if(0===t.length){const{type:n}=this.schema.fields[e],r=Qn({type:n,length:0,nullCount:0});t.push(r._changeLengthAndBackfillNullBitmap(this.numRows))}return new Gn(t)}return null}setChild(e,t){var n;return this.setChildAt(null===(n=this.schema.fields)||void 0===n?void 0:n.findIndex((t=>t.name===e)),t)}setChildAt(e,t){let n=this.schema,r=[...this.batches];if(e>-1&&e<this.numCols){t||(t=new Gn([Qn({type:new Ne,length:this.numRows})]));const i=n.fields.slice(),o=i[e].clone({type:t.type}),s=this.schema.fields.map(((e,t)=>this.getChildAt(t)));[i[e],s[e]]=[o,t],[n,r]=wr(n,s)}return new _r(n,r)}select(e){const t=this.schema.fields.reduce(((e,t,n)=>e.set(t.name,n)),new Map);return this.selectAt(e.map((e=>t.get(e))).filter((e=>e>-1)))}selectAt(e){const t=this.schema.selectAt(e),n=this.batches.map((t=>t.selectAt(e)));return new _r(t,n)}assign(e){const t=this.schema.fields,[n,r]=e.schema.fields.reduce(((e,n,r)=>{const[i,o]=e,s=t.findIndex((e=>e.name===n.name));return~s?o[s]=r:i.push(r),e}),[[],[]]),i=this.schema.assign(e.schema),o=[...t.map(((e,t)=>[t,r[t]])).map((t=>{let[n,r]=t;return void 0===r?this.getChildAt(n):e.getChildAt(r)})),...n.map((t=>e.getChildAt(t)))].filter(Boolean);return new _r(...wr(i,o))}}mr=Symbol.toStringTag,_r[mr]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=Sn(wn),e.get=Sn(nn.getVisitFn(u.Struct)),e.set=_n(Et.getVisitFn(u.Struct)),e.indexOf=An(Nn.getVisitFn(u.Struct)),e.getByteLength=Sn(Vn.getVisitFn(u.Struct)),"Table"))(_r.prototype);class Ar{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,n,r){return e.prep(8,24),e.writeInt64(r),e.pad(4),e.writeInt32(n),e.writeInt64(t),e.offset()}}const xr=new Int32Array(2),kr=new Float32Array(xr.buffer),Cr=new Float64Array(xr.buffer),Tr=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0];class Ir{constructor(e,t){this.low=0|e,this.high=0|t}static create(e,t){return 0==e&&0==t?Ir.ZERO:new Ir(e,t)}toFloat64(){return(this.low>>>0)+4294967296*this.high}equals(e){return this.low==e.low&&this.high==e.high}}var Er,Rr,Or,Pr,Mr;Ir.ZERO=new Ir(0,0),function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"}(Er||(Er={}));class Nr{constructor(e){this.bytes_=e,this.position_=0}static allocate(e){return new Nr(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return new Ir(this.readInt32(e),this.readInt32(e+4))}readUint64(e){return new Ir(this.readUint32(e),this.readUint32(e+4))}readFloat32(e){return xr[0]=this.readInt32(e),kr[0]}readFloat64(e){return xr[Tr?0:1]=this.readInt32(e),xr[Tr?1:0]=this.readInt32(e+4),Cr[0]}writeInt8(e,t){this.bytes_[e]=t}writeUint8(e,t){this.bytes_[e]=t}writeInt16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,t.low),this.writeInt32(e+4,t.high)}writeUint64(e,t){this.writeUint32(e,t.low),this.writeUint32(e+4,t.high)}writeFloat32(e,t){kr[0]=t,this.writeInt32(e,xr[0])}writeFloat64(e,t){Cr[0]=t,this.writeInt32(e,xr[Tr?0:1]),this.writeInt32(e+4,xr[Tr?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let t=0;t<4;t++)e+=String.fromCharCode(this.readInt8(this.position_+4+t));return e}__offset(e,t){const n=e-this.readInt32(e);return t<this.readInt16(n)?this.readInt16(n+t):0}__union(e,t){return e.bb_pos=t+this.readInt32(t),e.bb=this,e}__string(e,t){e+=this.readInt32(e);const n=this.readInt32(e);let r="",i=0;if(e+=4,t===Er.UTF8_BYTES)return this.bytes_.subarray(e,e+n);for(;i<n;){let t;const n=this.readUint8(e+i++);if(n<192)t=n;else{const r=this.readUint8(e+i++);if(n<224)t=(31&n)<<6|63&r;else{const o=this.readUint8(e+i++);if(n<240)t=(15&n)<<12|(63&r)<<6|63&o;else{t=(7&n)<<18|(63&r)<<12|(63&o)<<6|63&this.readUint8(e+i++)}}}t<65536?r+=String.fromCharCode(t):(t-=65536,r+=String.fromCharCode(55296+(t>>10),56320+(1023&t)))}return r}__union_with_string(e,t){return"string"===typeof e?this.__string(t):this.__union(e,t)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+4}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(4!=e.length)throw new Error("FlatBuffers: file identifier must be length 4");for(let t=0;t<4;t++)if(e.charCodeAt(t)!=this.readInt8(this.position()+4+t))return!1;return!0}createLong(e,t){return Ir.create(e,t)}createScalarList(e,t){const n=[];for(let r=0;r<t;++r)null!==e(r)&&n.push(e(r));return n}createObjList(e,t){const n=[];for(let r=0;r<t;++r){const t=e(r);null!==t&&n.push(t.unpack())}return n}}class Dr{constructor(e){let 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,t=e||1024,this.bb=Nr.allocate(t),this.space=t}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,t){e>this.minalign&&(this.minalign=e);const n=1+~(this.bb.capacity()-this.space+t)&e-1;for(;this.space<n+e+t;){const e=this.bb.capacity();this.bb=Dr.growByteBuffer(this.bb),this.space+=this.bb.capacity()-e}this.pad(n)}pad(e){for(let t=0;t<e;t++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,t,n){(this.force_defaults||t!=n)&&(this.addInt8(t),this.slot(e))}addFieldInt16(e,t,n){(this.force_defaults||t!=n)&&(this.addInt16(t),this.slot(e))}addFieldInt32(e,t,n){(this.force_defaults||t!=n)&&(this.addInt32(t),this.slot(e))}addFieldInt64(e,t,n){!this.force_defaults&&t.equals(n)||(this.addInt64(t),this.slot(e))}addFieldFloat32(e,t,n){(this.force_defaults||t!=n)&&(this.addFloat32(t),this.slot(e))}addFieldFloat64(e,t,n){(this.force_defaults||t!=n)&&(this.addFloat64(t),this.slot(e))}addFieldOffset(e,t,n){(this.force_defaults||t!=n)&&(this.addOffset(t),this.slot(e))}addFieldStruct(e,t,n){t!=n&&(this.nested(t),this.slot(e))}nested(e){if(e!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")}slot(e){null!==this.vtable&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){const t=e.capacity();if(3221225472&t)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const n=t<<1,r=Nr.allocate(n);return r.setPosition(n-t),r.bytes().set(e.bytes(),n-t),r}addOffset(e){this.prep(4,0),this.writeInt32(this.offset()-e+4)}startObject(e){this.notNested(),null==this.vtable&&(this.vtable=[]),this.vtable_in_use=e;for(let t=0;t<e;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(null==this.vtable||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const e=this.offset();let t=this.vtable_in_use-1;for(;t>=0&&0==this.vtable[t];t--);const n=t+1;for(;t>=0;t--)this.addInt16(0!=this.vtable[t]?e-this.vtable[t]:0);this.addInt16(e-this.object_start);const r=2*(n+2);this.addInt16(r);let i=0;const o=this.space;e:for(t=0;t<this.vtables.length;t++){const e=this.bb.capacity()-this.vtables[t];if(r==this.bb.readInt16(e)){for(let t=2;t<r;t+=2)if(this.bb.readInt16(o+t)!=this.bb.readInt16(e+t))continue e;i=this.vtables[t];break}}return i?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,i-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,t,n){const r=n?4:0;if(t){const e=t;if(this.prep(this.minalign,8+r),4!=e.length)throw new Error("FlatBuffers: file identifier must be length 4");for(let t=3;t>=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+r),this.addOffset(e),r&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){const n=this.bb.capacity()-e,r=n-this.bb.readInt32(n);if(!(0!=this.bb.readInt16(r+t)))throw new Error("FlatBuffers: field "+t+" must be set")}startVector(e,t,n){this.notNested(),this.vector_num_elems=t,this.prep(4,e*t),this.prep(n,e*t)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);const t=this.createString(e);return this.string_maps.set(e,t),t}createString(e){if(!e)return 0;let t;if(e instanceof Uint8Array)t=e;else{t=[];let n=0;for(;n<e.length;){let r;const i=e.charCodeAt(n++);if(i<55296||i>=56320)r=i;else{r=(i<<10)+e.charCodeAt(n++)+-56613888}r<128?t.push(r):(r<2048?t.push(r>>6&31|192):(r<65536?t.push(r>>12&15|224):t.push(r>>18&7|240,r>>12&63|128),t.push(r>>6&63|128)),t.push(63&r|128))}}this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length);for(let n=0,r=this.space,i=this.bb.bytes();n<t.length;n++)i[r++]=t[n];return this.endVector()}createLong(e,t){return Ir.create(e,t)}createObjectOffset(e){return null===e?0:"string"===typeof e?this.createString(e):e.pack(this)}createObjectOffsetList(e){const t=[];for(let n=0;n<e.length;++n){const r=e[n];if(null===r)throw new Error("FlatBuffers: Argument for createObjectOffsetList cannot contain null.");t.push(this.createObjectOffset(r))}return t}createStructOffsetList(e,t){return t(this,e.length),this.createObjectOffsetList(e),this.endVector()}}class Lr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKeyValue(e,t){return(t||new Lr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,t){return e.setPosition(e.position()+4),(t||new Lr).__init(e.readInt32(e.position())+e.position(),e)}key(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}value(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,t){e.addFieldOffset(0,t,0)}static addValue(e,t){e.addFieldOffset(1,t,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,t,n){return Lr.startKeyValue(e),Lr.addKey(e,t),Lr.addValue(e,n),Lr.endKeyValue(e)}}!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"}(Rr||(Rr={})),function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(Or||(Or={})),function(e){e[e.DenseArray=0]="DenseArray"}(Pr||(Pr={}));class Br{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInt(e,t){return(t||new Br).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,t){return e.setPosition(e.position()+4),(t||new Br).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){const e=this.bb.__offset(this.bb_pos,6);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}static startInt(e){e.startObject(2)}static addBitWidth(e,t){e.addFieldInt32(0,t,0)}static addIsSigned(e,t){e.addFieldInt8(1,+t,0)}static endInt(e){return e.endObject()}static createInt(e,t,n){return Br.startInt(e),Br.addBitWidth(e,t),Br.addIsSigned(e,n),Br.endInt(e)}}class Fr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryEncoding(e,t){return(t||new Fr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,t){return e.setPosition(e.position()+4),(t||new Fr).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}indexType(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new Br).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isOrdered(){const e=this.bb.__offset(this.bb_pos,8);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}dictionaryKind(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):Pr.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}static addIndexType(e,t){e.addFieldOffset(1,t,0)}static addIsOrdered(e,t){e.addFieldInt8(2,+t,0)}static addDictionaryKind(e,t){e.addFieldInt16(3,t,Pr.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}!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"}(Mr||(Mr={}));class jr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(e,t){return(t||new jr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,t){return e.setPosition(e.position()+4),(t||new jr).__init(e.readInt32(e.position())+e.position(),e)}name(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){const e=this.bb.__offset(this.bb_pos,6);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}typeType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):Mr.NONE}type(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){const t=this.bb.__offset(this.bb_pos,12);return t?(e||new Fr).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(e,t){const n=this.bb.__offset(this.bb_pos,14);return n?(t||new jr).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}childrenLength(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const n=this.bb.__offset(this.bb_pos,16);return n?(t||new Lr).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,Mr.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}}class zr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(e,t){return(t||new zr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,t){return e.setPosition(e.position()+4),(t||new zr).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Or.Little}fields(e,t){const n=this.bb.__offset(this.bb_pos,6);return n?(t||new jr).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const n=this.bb.__offset(this.bb_pos,8);return n?(t||new Lr).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+8*e):this.bb.createLong(0,0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,Or.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let n=t.length-1;n>=0;n--)e.addInt64(t[n]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(e,t,n,r,i){return zr.startSchema(e),zr.addEndianness(e,t),zr.addFields(e,n),zr.addCustomMetadata(e,r),zr.addFeatures(e,i),zr.endSchema(e)}}class Ur{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(e,t){return(t||new Ur).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,t){return e.setPosition(e.position()+4),(t||new Ur).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Rr.V1}schema(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new zr).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){const n=this.bb.__offset(this.bb_pos,8);return n?(t||new Ar).__init(this.bb.__vector(this.bb_pos+n)+24*e,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){const n=this.bb.__offset(this.bb_pos,10);return n?(t||new Ar).__init(this.bb.__vector(this.bb_pos+n)+24*e,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const n=this.bb.__offset(this.bb_pos,12);return n?(t||new Lr).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Rr.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}}var $r=Ir,Vr=Dr,Wr=Nr;class Hr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.V4,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;this.schema=e,this.version=t,n&&(this._recordBatches=n),i&&(this._dictionaryBatches=i)}static decode(e){e=new Wr(J(e));const t=Ur.getRootAsFooter(e),n=Jn.decode(t.schema());return new Yr(n,t)}static encode(e){const t=new Vr,n=Jn.encode(t,e.schema);Ur.startRecordBatchesVector(t,e.numRecordBatches);for(const r of[...e.recordBatches()].slice().reverse())Gr.encode(t,r);const i=t.endVector();Ur.startDictionariesVector(t,e.numDictionaries);for(const r of[...e.dictionaryBatches()].slice().reverse())Gr.encode(t,r);const o=t.endVector();return Ur.startFooter(t),Ur.addSchema(t,n),Ur.addVersion(t,r.V4),Ur.addRecordBatches(t,i),Ur.addDictionaries(t,o),Ur.finishFooterBuffer(t,Ur.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let e,t=-1,n=this.numRecordBatches;++t<n;)(e=this.getRecordBatch(t))&&(yield e)}*dictionaryBatches(){for(let e,t=-1,n=this.numDictionaries;++t<n;)(e=this.getDictionaryBatch(t))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}class Yr extends Hr{constructor(e,t){super(e,t.version()),this._footer=t}get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){const t=this._footer.recordBatches(e);if(t)return Gr.decode(t)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const t=this._footer.dictionaries(e);if(t)return Gr.decode(t)}return null}}class Gr{constructor(e,t,n){this.metaDataLength=e,this.offset="number"===typeof n?n:n.low,this.bodyLength="number"===typeof t?t:t.low}static decode(e){return new Gr(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,t){const{metaDataLength:n}=t,r=new $r(t.offset,0),i=new $r(t.bodyLength,0);return Ar.createBlock(e,r,n,i)}}const Kr={fromIterable:e=>qr(function*(e){let t,n,r,i,o=!1,s=[],a=0;function l(){return"peek"===r?q(s,i)[0]:([n,s,a]=q(s,i),n)}({cmd:r,size:i}=yield null);const c=(u=e,ee(Uint8Array,u))[Symbol.iterator]();var u;try{do{if(({done:t,value:n}=Number.isNaN(i-a)?c.next():c.next(i-a)),!t&&n.byteLength>0&&(s.push(n),a+=n.byteLength),t||i<=a)do{({cmd:r,size:i}=yield l())}while(i<a)}while(!t)}catch(d){(o=!0)&&"function"===typeof c.throw&&c.throw(d)}finally{!1===o&&"function"===typeof c.return&&c.return(null)}return null}(e)),fromAsyncIterable:e=>qr(function(e){return z(this,arguments,(function*(){let t,n,r,i,o=!1,s=[],a=0;function l(){return"peek"===r?q(s,i)[0]:([n,s,a]=q(s,i),n)}({cmd:r,size:i}=yield yield j(null));const c=(u=e,te(Uint8Array,u))[Symbol.asyncIterator]();var u;try{do{if(({done:t,value:n}=Number.isNaN(i-a)?yield j(c.next()):yield j(c.next(i-a))),!t&&n.byteLength>0&&(s.push(n),a+=n.byteLength),t||i<=a)do{({cmd:r,size:i}=yield yield j(l()))}while(i<a)}while(!t)}catch(d){(o=!0)&&"function"===typeof c.throw&&(yield j(c.throw(d)))}finally{!1===o&&"function"===typeof c.return&&(yield j(c.return(new Uint8Array(0))))}return yield j(null)}))}(e)),fromDOMStream:e=>qr(function(e){return z(this,arguments,(function*(){let t,n,r,i=!1,o=!1,s=[],a=0;function l(){return"peek"===n?q(s,r)[0]:([t,s,a]=q(s,r),t)}({cmd:n,size:r}=yield yield j(null));const c=new Xr(e);try{do{if(({done:i,value:t}=Number.isNaN(r-a)?yield j(c.read()):yield j(c.read(r-a))),!i&&t.byteLength>0&&(s.push(J(t)),a+=t.byteLength),i||r<=a)do{({cmd:n,size:r}=yield yield j(l()))}while(r<a)}while(!i)}catch(u){(o=!0)&&(yield j(c.cancel(u)))}finally{!1===o?yield j(c.cancel()):e.locked&&c.releaseLock()}return yield j(null)}))}(e)),fromNodeStream:e=>qr(function(e){return z(this,arguments,(function*(){const t=[];let n,r,i,o="error",s=!1,a=null,l=0,c=[];function u(){return"peek"===n?q(c,r)[0]:([i,c,l]=q(c,r),i)}if(({cmd:n,size:r}=yield yield j(null)),e.isTTY)return yield yield j(new Uint8Array(0)),yield j(null);try{t[0]=Qr(e,"end"),t[1]=Qr(e,"error");do{if(t[2]=Qr(e,"readable"),[o,a]=yield j(Promise.race(t.map((e=>e[2])))),"error"===o)break;if((s="end"===o)||(Number.isFinite(r-l)?(i=J(e.read(r-l)),i.byteLength<r-l&&(i=J(e.read()))):i=J(e.read()),i.byteLength>0&&(c.push(i),l+=i.byteLength)),s||r<=l)do{({cmd:n,size:r}=yield yield j(u()))}while(r<l)}while(!s)}finally{yield j(d(t,"error"===o?a:null))}return yield j(null);function d(t,n){return i=c=null,new Promise(((r,i)=>{for(const[n,s]of t)e.off(n,s);try{const t=e.destroy;t&&t.call(e,n),n=void 0}catch(o){n=o||n}finally{null!=n?i(n):r()}}))}}))}(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')}},qr=e=>(e.next(),e);class Xr{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch((()=>{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return B(this,void 0,void 0,(function*(){const{reader:t,source:n}=this;t&&(yield t.cancel(e).catch((()=>{}))),n&&n.locked&&this.releaseLock()}))}read(e){return B(this,void 0,void 0,(function*(){if(0===e)return{done:null==this.reader,value:new Uint8Array(0)};const t=yield this.reader.read();return!t.done&&(t.value=J(t)),t}))}}const Qr=(e,t)=>{const n=e=>r([t,e]);let r;return[t,n,new Promise((i=>(r=i)&&e.once(t,n)))]};const Jr=Object.freeze({done:!0,value:void 0});class Zr{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class ei{tee(){return this._getDOMStream().tee()}pipe(e,t){return this._getNodeStream().pipe(e,t)}pipeTo(e,t){return this._getDOMStream().pipeTo(e,t)}pipeThrough(e,t){return this._getDOMStream().pipeThrough(e,t)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class ti extends ei{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise((e=>this._closedPromiseResolve=e))}get closed(){return this._closedPromise}cancel(e){return B(this,void 0,void 0,(function*(){yield this.return(e)}))}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(Jr);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Kr.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Kr.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return B(this,void 0,void 0,(function*(){return yield this.abort(e),Jr}))}return(e){return B(this,void 0,void 0,(function*(){return yield this.close(),Jr}))}read(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"read")).value}))}peek(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"peek")).value}))}next(){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(((e,t)=>{this.resolvers.push({resolve:e,reject:t})})):Promise.resolve(Jr)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class ni extends ti{write(e){if((e=J(e)).byteLength>0)return super.write(e)}toString(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?W(this.toUint8Array(!0)):this.toUint8Array(!1).then(W)}toUint8Array(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?q(this._values)[0]:(()=>B(this,void 0,void 0,(function*(){var e,t;const n=[];let r=0;try{for(var i,o=$(this);!(i=yield o.next()).done;){const e=i.value;n.push(e),r+=e.byteLength}}catch(s){e={error:s}}finally{try{i&&!i.done&&(t=o.return)&&(yield t.call(o))}finally{if(e)throw e.error}}return q(n,r)[0]})))()}}class ri{constructor(e){e&&(this.source=new oi(Kr.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class ii{constructor(e){e instanceof ii?this.source=e.source:e instanceof ni?this.source=new si(Kr.fromAsyncIterable(e)):N(e)?this.source=new si(Kr.fromNodeStream(e)):M(e)?this.source=new si(Kr.fromDOMStream(e)):O(e)?this.source=new si(Kr.fromDOMStream(e.body)):C(e)?this.source=new si(Kr.fromIterable(e)):(k(e)||T(e))&&(this.source=new si(Kr.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class oi{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"read";return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||Jr)}return(e){return Object.create(this.source.return&&this.source.return(e)||Jr)}}class si{constructor(e){this.source=e,this._closedPromise=new Promise((e=>this._closedPromiseResolve=e))}cancel(e){return B(this,void 0,void 0,(function*(){yield this.return(e)}))}get closed(){return this._closedPromise}read(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"read")).value}))}peek(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"peek")).value}))}next(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"read";return B(this,void 0,void 0,(function*(){return yield this.source.next({cmd:t,size:e})}))}throw(e){return B(this,void 0,void 0,(function*(){const t=this.source.throw&&(yield this.source.throw(e))||Jr;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}))}return(e){return B(this,void 0,void 0,(function*(){const t=this.source.return&&(yield this.source.return(e))||Jr;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}))}}class ai extends ri{constructor(e,t){super(),this.position=0,this.buffer=J(e),this.size="undefined"===typeof t?this.buffer.byteLength:t}readInt32(e){const{buffer:t,byteOffset:n}=this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){const{buffer:t,size:n,position:r}=this;return t&&r<n?("number"!==typeof e&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(n,r+Math.min(n-r,e)),t.subarray(r,this.position)):null}readAt(e,t){const n=this.buffer,r=Math.min(this.size,e+t);return n?n.subarray(e,r):new Uint8Array(t)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}}class li extends ii{constructor(e,t){super(),this.position=0,this._handle=e,"number"===typeof t?this.size=t:this._pending=(()=>B(this,void 0,void 0,(function*(){this.size=(yield e.stat()).size,delete this._pending})))()}readInt32(e){return B(this,void 0,void 0,(function*(){const{buffer:t,byteOffset:n}=yield this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)}))}seek(e){return B(this,void 0,void 0,(function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size}))}read(e){return B(this,void 0,void 0,(function*(){this._pending&&(yield this._pending);const{_handle:t,size:n,position:r}=this;if(t&&r<n){"number"!==typeof e&&(e=Number.POSITIVE_INFINITY);let i=r,o=0,s=0;const a=Math.min(n,i+Math.min(n-i,e)),l=new Uint8Array(Math.max(0,(this.position=a)-i));for(;(i+=s)<a&&(o+=s)<l.byteLength;)({bytesRead:s}=yield t.read(l,o,l.byteLength-o,i));return l}return null}))}readAt(e,t){return B(this,void 0,void 0,(function*(){this._pending&&(yield this._pending);const{_handle:n,size:r}=this;if(n&&e+t<r){const i=Math.min(r,e+t),o=new Uint8Array(i-e);return(yield n.read(o,0,t,e)).buffer}return new Uint8Array(t)}))}close(){return B(this,void 0,void 0,(function*(){const e=this._handle;this._handle=null,e&&(yield e.close())}))}throw(e){return B(this,void 0,void 0,(function*(){return yield this.close(),{done:!0,value:e}}))}return(e){return B(this,void 0,void 0,(function*(){return yield this.close(),{done:!0,value:e}}))}}function ci(e){return e<0&&(e=4294967295+e+1),`0x${e.toString(16)}`}const ui=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class di{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){const t=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),n=new Uint32Array([e.buffer[1]>>>16,65535&e.buffer[1],e.buffer[0]>>>16,65535&e.buffer[0]]);let r=t[3]*n[3];this.buffer[0]=65535&r;let i=r>>>16;return r=t[2]*n[3],i+=r,r=t[3]*n[2]>>>0,i+=r,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0<r?65536:0,this.buffer[1]+=i>>>16,this.buffer[1]+=t[1]*n[3]+t[2]*n[2]+t[3]*n[1],this.buffer[1]+=t[0]*n[3]+t[1]*n[2]+t[2]*n[1]+t[3]*n[0]<<16,this}_plus(e){const t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${ci(this.buffer[1])} ${ci(this.buffer[0])}`}}class fi extends di{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return fi.fromString("string"===typeof e?e:e.toString(),t)}static fromNumber(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return fi.fromString(e.toString(),t)}static fromString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);const n=e.length,r=new fi(t);for(let i=0;i<n;){const t=8<n-i?8:n-i,o=new fi(new Uint32Array([Number.parseInt(e.slice(i,i+t),10),0])),s=new fi(new Uint32Array([ui[t],0]));r.times(s),r.plus(o),i+=t}return r}static convertArray(e){const t=new Uint32Array(2*e.length);for(let n=-1,r=e.length;++n<r;)fi.from(e[n],new Uint32Array(t.buffer,t.byteOffset+2*n*4,2));return t}static multiply(e,t){return new fi(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new fi(new Uint32Array(e.buffer)).plus(t)}}class pi extends di{negate(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],0==this.buffer[0]&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){const t=this.buffer[1]|0,n=e.buffer[1]|0;return t<n||t===n&&this.buffer[0]<e.buffer[0]}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return pi.fromString("string"===typeof e?e:e.toString(),t)}static fromNumber(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return pi.fromString(e.toString(),t)}static fromString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);const n=e.startsWith("-"),r=e.length,i=new pi(t);for(let o=n?1:0;o<r;){const t=8<r-o?8:r-o,n=new pi(new Uint32Array([Number.parseInt(e.slice(o,o+t),10),0])),s=new pi(new Uint32Array([ui[t],0]));i.times(s),i.plus(n),o+=t}return n?i.negate():i}static convertArray(e){const t=new Uint32Array(2*e.length);for(let n=-1,r=e.length;++n<r;)pi.from(e[n],new Uint32Array(t.buffer,t.byteOffset+2*n*4,2));return t}static multiply(e,t){return new pi(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new pi(new Uint32Array(e.buffer)).plus(t)}}class hi{constructor(e){this.buffer=e}high(){return new pi(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new pi(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],0==this.buffer[0]&&++this.buffer[1],0==this.buffer[1]&&++this.buffer[2],0==this.buffer[2]&&++this.buffer[3],this}times(e){const t=new fi(new Uint32Array([this.buffer[3],0])),n=new fi(new Uint32Array([this.buffer[2],0])),r=new fi(new Uint32Array([this.buffer[1],0])),i=new fi(new Uint32Array([this.buffer[0],0])),o=new fi(new Uint32Array([e.buffer[3],0])),s=new fi(new Uint32Array([e.buffer[2],0])),a=new fi(new Uint32Array([e.buffer[1],0])),l=new fi(new Uint32Array([e.buffer[0],0]));let c=fi.multiply(i,l);this.buffer[0]=c.low();const u=new fi(new Uint32Array([c.high(),0]));c=fi.multiply(r,l),u.plus(c),c=fi.multiply(i,a),u.plus(c),this.buffer[1]=u.low(),this.buffer[3]=u.lessThan(c)?1:0,this.buffer[2]=u.high();return new fi(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(fi.multiply(n,l)).plus(fi.multiply(r,a)).plus(fi.multiply(i,s)),this.buffer[3]+=fi.multiply(t,l).plus(fi.multiply(n,a)).plus(fi.multiply(r,s)).plus(fi.multiply(i,o)).low(),this}plus(e){const t=new Uint32Array(4);return t[3]=this.buffer[3]+e.buffer[3]>>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]<this.buffer[0]>>>0&&++t[1],t[1]<this.buffer[1]>>>0&&++t[2],t[2]<this.buffer[2]>>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${ci(this.buffer[3])} ${ci(this.buffer[2])} ${ci(this.buffer[1])} ${ci(this.buffer[0])}`}static multiply(e,t){return new hi(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new hi(new Uint32Array(e.buffer)).plus(t)}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);return hi.fromString("string"===typeof e?e:e.toString(),t)}static fromNumber(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);return hi.fromString(e.toString(),t)}static fromString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);const n=e.startsWith("-"),r=e.length,i=new hi(t);for(let o=n?1:0;o<r;){const t=8<r-o?8:r-o,n=new hi(new Uint32Array([Number.parseInt(e.slice(o,o+t),10),0,0,0])),s=new hi(new Uint32Array([ui[t],0,0,0]));i.times(s),i.plus(n),o+=t}return n?i.negate():i}static convertArray(e){const t=new Uint32Array(4*e.length);for(let n=-1,r=e.length;++n<r;)hi.from(e[n],new Uint32Array(t.buffer,t.byteOffset+16*n,4));return t}}class mi extends nt{constructor(e,t,n,r){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=t,this.buffers=n,this.dictionaries=r}visit(e){return super.visit(e instanceof Zn?e.type:e)}visitNull(e){let{length:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t})}visitBool(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitInt(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitFloat(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitUtf8(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDate(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitTimestamp(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitTime(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDecimal(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitList(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),children:this.visitMany(e.children)})}visitUnion(e){return e.mode===i.Sparse?this.visitSparseUnion(e):this.visitDenseUnion(e)}visitDenseUnion(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitFixedSizeList(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),child:this.visit(e.children[0])})}visitMap(e){let{length:t,nullCount:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode();return Qn({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nextBufferRange();return t>0&&this.readData(e,n)||new Uint8Array(0)}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e){let{length:t,offset:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange();return this.bytes.subarray(n,n+t)}readDictionary(e){return this.dictionaries.get(e.id)}}class yi extends mi{constructor(e,t,n,r){super(new Uint8Array(0),t,n,r),this.sources=e}readNullBitmap(e,t){let{offset:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nextBufferRange();return t<=0?new Uint8Array(0):Tn(this.sources[n])}readOffsets(e){let{offset:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange();return X(Uint8Array,X(Int32Array,this.sources[t]))}readTypeIds(e){let{offset:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange();return X(Uint8Array,X(e.ArrayType,this.sources[t]))}readData(e){let{offset:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange();const{sources:n}=this;return Me.isTimestamp(e)||(Me.isInt(e)||Me.isTime(e))&&64===e.bitWidth||Me.isDate(e)&&e.unit===s.MILLISECOND?X(Uint8Array,pi.convertArray(n[t])):Me.isDecimal(e)?X(Uint8Array,hi.convertArray(n[t])):Me.isBinary(e)||Me.isFixedSizeBinary(e)?function(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}(n[t]):Me.isBool(e)?Tn(n[t]):Me.isUtf8(e)?Y(n[t].join("")):X(Uint8Array,X(e.ArrayType,n[t].map((e=>+e))))}}var bi,gi,vi,wi,Si,_i,Ai,xi;!function(e){e[e.BUFFER=0]="BUFFER"}(bi||(bi={})),function(e){e[e.LZ4_FRAME=0]="LZ4_FRAME",e[e.ZSTD=1]="ZSTD"}(gi||(gi={}));class ki{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBodyCompression(e,t){return(t||new ki).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,t){return e.setPosition(e.position()+4),(t||new ki).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):gi.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):bi.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,gi.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,bi.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,t,n){return ki.startBodyCompression(e),ki.addCodec(e,t),ki.addMethod(e,n),ki.endBodyCompression(e)}}class Ci{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,t,n){return e.prep(8,16),e.writeInt64(n),e.writeInt64(t),e.offset()}}class Ti{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,t,n){return e.prep(8,16),e.writeInt64(n),e.writeInt64(t),e.offset()}}class Ii{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(e,t){return(t||new Ii).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,t){return e.setPosition(e.position()+4),(t||new Ii).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}nodes(e,t){const n=this.bb.__offset(this.bb_pos,6);return n?(t||new Ti).__init(this.bb.__vector(this.bb_pos+n)+16*e,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,t){const n=this.bb.__offset(this.bb_pos,8);return n?(t||new Ci).__init(this.bb.__vector(this.bb_pos+n)+16*e,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const t=this.bb.__offset(this.bb_pos,10);return t?(e||new ki).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}static addNodes(e,t){e.addFieldOffset(1,t,0)}static startNodesVector(e,t){e.startVector(16,t,8)}static addBuffers(e,t){e.addFieldOffset(2,t,0)}static startBuffersVector(e,t){e.startVector(16,t,8)}static addCompression(e,t){e.addFieldOffset(3,t,0)}static endRecordBatch(e){return e.endObject()}}class Ei{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(e,t){return(t||new Ei).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,t){return e.setPosition(e.position()+4),(t||new Ei).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}data(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new Ii).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}static startDictionaryBatch(e){e.startObject(3)}static addId(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}static addData(e,t){e.addFieldOffset(1,t,0)}static addIsDelta(e,t){e.addFieldInt8(2,+t,0)}static endDictionaryBatch(e){return e.endObject()}}!function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"}(vi||(vi={}));class Ri{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(e,t){return(t||new Ri).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,t){return e.setPosition(e.position()+4),(t||new Ri).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):vi.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,vi.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,t){return Ri.startFloatingPoint(e),Ri.addPrecision(e,t),Ri.endFloatingPoint(e)}}class Oi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(e,t){return(t||new Oi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,t){return e.setPosition(e.position()+4),(t||new Oi).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,t){e.addFieldInt32(0,t,0)}static addScale(e,t){e.addFieldInt32(1,t,0)}static addBitWidth(e,t){e.addFieldInt32(2,t,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,t,n,r){return Oi.startDecimal(e),Oi.addPrecision(e,t),Oi.addScale(e,n),Oi.addBitWidth(e,r),Oi.endDecimal(e)}}!function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"}(wi||(wi={}));class Pi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(e,t){return(t||new Pi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,t){return e.setPosition(e.position()+4),(t||new Pi).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):wi.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,wi.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,t){return Pi.startDate(e),Pi.addUnit(e,t),Pi.endDate(e)}}!function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"}(Si||(Si={}));class Mi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(e,t){return(t||new Mi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,t){return e.setPosition(e.position()+4),(t||new Mi).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Si.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,Si.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(e,t,n){return Mi.startTime(e),Mi.addUnit(e,t),Mi.addBitWidth(e,n),Mi.endTime(e)}}class Ni{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(e,t){return(t||new Ni).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,t){return e.setPosition(e.position()+4),(t||new Ni).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Si.SECOND}timezone(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,Si.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,t,n){return Ni.startTimestamp(e),Ni.addUnit(e,t),Ni.addTimezone(e,n),Ni.endTimestamp(e)}}!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"}(_i||(_i={}));class Di{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(e,t){return(t||new Di).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,t){return e.setPosition(e.position()+4),(t||new Di).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):_i.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,_i.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,t){return Di.startInterval(e),Di.addUnit(e,t),Di.endInterval(e)}}!function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(Ai||(Ai={}));class Li{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(e,t){return(t||new Li).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,t){return e.setPosition(e.position()+4),(t||new Li).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ai.Sparse}typeIds(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+4*e):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,t){e.addFieldInt16(0,t,Ai.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addInt32(t[n]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(e,t,n){return Li.startUnion(e),Li.addMode(e,t),Li.addTypeIds(e,n),Li.endUnion(e)}}class Bi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(e,t){return(t||new Bi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,t){return e.setPosition(e.position()+4),(t||new Bi).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,t){return Bi.startFixedSizeBinary(e),Bi.addByteWidth(e,t),Bi.endFixedSizeBinary(e)}}class Fi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(e,t){return(t||new Fi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,t){return e.setPosition(e.position()+4),(t||new Fi).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,t){return Fi.startFixedSizeList(e),Fi.addListSize(e,t),Fi.endFixedSizeList(e)}}class ji{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(e,t){return(t||new ji).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,t){return e.setPosition(e.position()+4),(t||new ji).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}static startMap(e){e.startObject(1)}static addKeysSorted(e,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(e,t){return ji.startMap(e),ji.addKeysSorted(e,t),ji.endMap(e)}}!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"}(xi||(xi={}));class zi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(e,t){return(t||new zi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,t){return e.setPosition(e.position()+4),(t||new zi).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Rr.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):xi.NONE}header(e){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}customMetadata(e,t){const n=this.bb.__offset(this.bb_pos,12);return n?(t||new Lr).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Rr.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,xi.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,e.createLong(0,0))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(e,t,n,r,i,o){return zi.startMessage(e),zi.addVersion(e,t),zi.addHeaderType(e,n),zi.addHeader(e,r),zi.addBodyLength(e,i),zi.addCustomMetadata(e,o),zi.endMessage(e)}}class Ui{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(e,t){return(t||new Ui).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,t){return e.setPosition(e.position()+4),(t||new Ui).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return Ui.startNull(e),Ui.endNull(e)}}class $i{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(e,t){return(t||new $i).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,t){return e.setPosition(e.position()+4),(t||new $i).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return $i.startBinary(e),$i.endBinary(e)}}class Vi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(e,t){return(t||new Vi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,t){return e.setPosition(e.position()+4),(t||new Vi).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return Vi.startBool(e),Vi.endBool(e)}}class Wi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(e,t){return(t||new Wi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+4),(t||new Wi).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return Wi.startUtf8(e),Wi.endUtf8(e)}}class Hi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(e,t){return(t||new Hi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,t){return e.setPosition(e.position()+4),(t||new Hi).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return Hi.startList(e),Hi.endList(e)}}class Yi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(e,t){return(t||new Yi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,t){return e.setPosition(e.position()+4),(t||new Yi).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Yi.startStruct_(e),Yi.endStruct_(e)}}var Gi=Ir;const Ki=new class extends nt{visit(e,t){return null==e||null==t?void 0:super.visit(e,t)}visitNull(e,t){return Ui.startNull(t),Ui.endNull(t)}visitInt(e,t){return Br.startInt(t),Br.addBitWidth(t,e.bitWidth),Br.addIsSigned(t,e.isSigned),Br.endInt(t)}visitFloat(e,t){return Ri.startFloatingPoint(t),Ri.addPrecision(t,e.precision),Ri.endFloatingPoint(t)}visitBinary(e,t){return $i.startBinary(t),$i.endBinary(t)}visitBool(e,t){return Vi.startBool(t),Vi.endBool(t)}visitUtf8(e,t){return Wi.startUtf8(t),Wi.endUtf8(t)}visitDecimal(e,t){return Oi.startDecimal(t),Oi.addScale(t,e.scale),Oi.addPrecision(t,e.precision),Oi.addBitWidth(t,e.bitWidth),Oi.endDecimal(t)}visitDate(e,t){return Pi.startDate(t),Pi.addUnit(t,e.unit),Pi.endDate(t)}visitTime(e,t){return Mi.startTime(t),Mi.addUnit(t,e.unit),Mi.addBitWidth(t,e.bitWidth),Mi.endTime(t)}visitTimestamp(e,t){const n=e.timezone&&t.createString(e.timezone)||void 0;return Ni.startTimestamp(t),Ni.addUnit(t,e.unit),void 0!==n&&Ni.addTimezone(t,n),Ni.endTimestamp(t)}visitInterval(e,t){return Di.startInterval(t),Di.addUnit(t,e.unit),Di.endInterval(t)}visitList(e,t){return Hi.startList(t),Hi.endList(t)}visitStruct(e,t){return Yi.startStruct_(t),Yi.endStruct_(t)}visitUnion(e,t){Li.startTypeIdsVector(t,e.typeIds.length);const n=Li.createTypeIdsVector(t,e.typeIds);return Li.startUnion(t),Li.addMode(t,e.mode),Li.addTypeIds(t,n),Li.endUnion(t)}visitDictionary(e,t){const n=this.visit(e.indices,t);return Fr.startDictionaryEncoding(t),Fr.addId(t,new Gi(e.id,0)),Fr.addIsOrdered(t,e.isOrdered),void 0!==n&&Fr.addIndexType(t,n),Fr.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return Bi.startFixedSizeBinary(t),Bi.addByteWidth(t,e.byteWidth),Bi.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return Fi.startFixedSizeList(t),Fi.addListSize(t,e.listSize),Fi.endFixedSizeList(t)}visitMap(e,t){return ji.startMap(t),ji.addKeysSorted(t,e.keysSorted),ji.endMap(t)}};function qi(e){return new so(e.count,Qi(e.columns),Ji(e.columns))}function Xi(e,t){return(e.children||[]).filter(Boolean).map((e=>Zn.fromJSON(e,t)))}function Qi(e){return(e||[]).reduce(((e,t)=>{return[...e,new co(t.count,(n=t.VALIDITY,(n||[]).reduce(((e,t)=>e+ +(0===t)),0))),...Qi(t.children)];var n}),[])}function Ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(let n=-1,r=(e||[]).length;++n<r;){const r=e[n];r.VALIDITY&&t.push(new lo(t.length,r.VALIDITY.length)),r.TYPE&&t.push(new lo(t.length,r.TYPE.length)),r.OFFSET&&t.push(new lo(t.length,r.OFFSET.length)),r.DATA&&t.push(new lo(t.length,r.DATA.length)),t=Ji(r.children,t)}return t}function Zi(e){return new Map(Object.entries(e||{}))}function eo(e){return new De(e.isSigned,e.bitWidth)}function to(e,t){const n=e.type.name;switch(n){case"NONE":case"null":return new Ne;case"binary":return new Fe;case"utf8":return new je;case"bool":return new ze;case"list":return new Ye((t||[])[0]);case"struct":case"struct_":return new Ge(t||[])}switch(n){case"int":{const t=e.type;return new De(t.isSigned,t.bitWidth)}case"floatingpoint":{const t=e.type;return new Be(o[t.precision])}case"decimal":{const t=e.type;return new Ue(t.scale,t.precision,t.bitWidth)}case"date":{const t=e.type;return new $e(s[t.unit])}case"time":{const t=e.type;return new Ve(a[t.unit],t.bitWidth)}case"timestamp":{const t=e.type;return new We(a[t.unit],t.timezone)}case"interval":{const t=e.type;return new He(l[t.unit])}case"union":{const n=e.type;return new Ke(i[n.mode],n.typeIds||[],t||[])}case"fixedsizebinary":{const t=e.type;return new qe(t.byteWidth)}case"fixedsizelist":{const n=e.type;return new Xe(n.listSize,(t||[])[0])}case"map":{const n=e.type;return new Qe((t||[])[0],n.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var no=Ir,ro=Dr,io=Nr;class oo{constructor(e,t,n,r){this._version=t,this._headerType=n,this.body=new Uint8Array(0),r&&(this._createHeader=()=>r),this._bodyLength="number"===typeof e?e:e.low}static fromJSON(e,t){const n=new oo(0,r.V4,t);return n._createHeader=function(e,t){return()=>{switch(t){case c.Schema:return Jn.fromJSON(e);case c.RecordBatch:return so.fromJSON(e);case c.DictionaryBatch:return ao.fromJSON(e)}throw new Error(`Unrecognized Message type: { name: ${c[t]}, type: ${t} }`)}}(e,t),n}static decode(e){e=new io(J(e));const t=zi.getRootAsMessage(e),n=t.bodyLength(),r=t.version(),i=t.headerType(),o=new oo(n,r,i);return o._createHeader=function(e,t){return()=>{switch(t){case c.Schema:return Jn.decode(e.header(new zr));case c.RecordBatch:return so.decode(e.header(new Ii),e.version());case c.DictionaryBatch:return ao.decode(e.header(new Ei),e.version())}throw new Error(`Unrecognized Message type: { name: ${c[t]}, type: ${t} }`)}}(t,i),o}static encode(e){const t=new ro;let n=-1;return e.isSchema()?n=Jn.encode(t,e.header()):e.isRecordBatch()?n=so.encode(t,e.header()):e.isDictionaryBatch()&&(n=ao.encode(t,e.header())),zi.startMessage(t),zi.addVersion(t,r.V4),zi.addHeader(t,n),zi.addHeaderType(t,e.headerType),zi.addBodyLength(t,new no(e.bodyLength,0)),zi.finishMessageBuffer(t,zi.endMessage(t)),t.asUint8Array()}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e instanceof Jn)return new oo(0,r.V4,c.Schema,e);if(e instanceof so)return new oo(t,r.V4,c.RecordBatch,e);if(e instanceof ao)return new oo(t,r.V4,c.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===c.Schema}isRecordBatch(){return this.headerType===c.RecordBatch}isDictionaryBatch(){return this.headerType===c.DictionaryBatch}}class so{constructor(e,t,n){this._nodes=t,this._buffers=n,this._length="number"===typeof e?e:e.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}}class ao{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._data=e,this._isDelta=n,this._id="number"===typeof t?t:t.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 lo{constructor(e,t){this.offset="number"===typeof e?e:e.low,this.length="number"===typeof t?t:t.low}}class co{constructor(e,t){this.length="number"===typeof e?e:e.low,this.nullCount="number"===typeof t?t:t.low}}function uo(e,t){const n=[];for(let r,i=-1,o=-1,s=e.childrenLength();++i<s;)(r=e.children(i))&&(n[++o]=Zn.decode(r,t));return n}function fo(e){const t=new Map;if(e)for(let n,r,i=-1,o=Math.trunc(e.customMetadataLength());++i<o;)(n=e.customMetadata(i))&&null!=(r=n.key())&&t.set(r,n.value());return t}function po(e){return new De(e.isSigned(),e.bitWidth())}function ho(e,t){const n=e.typeType();switch(n){case Mr.NONE:case Mr.Null:return new Ne;case Mr.Binary:return new Fe;case Mr.Utf8:return new je;case Mr.Bool:return new ze;case Mr.List:return new Ye((t||[])[0]);case Mr.Struct_:return new Ge(t||[])}switch(n){case Mr.Int:{const t=e.type(new Br);return new De(t.isSigned(),t.bitWidth())}case Mr.FloatingPoint:{const t=e.type(new Ri);return new Be(t.precision())}case Mr.Decimal:{const t=e.type(new Oi);return new Ue(t.scale(),t.precision(),t.bitWidth())}case Mr.Date:{const t=e.type(new Pi);return new $e(t.unit())}case Mr.Time:{const t=e.type(new Mi);return new Ve(t.unit(),t.bitWidth())}case Mr.Timestamp:{const t=e.type(new Ni);return new We(t.unit(),t.timezone())}case Mr.Interval:{const t=e.type(new Di);return new He(t.unit())}case Mr.Union:{const n=e.type(new Li);return new Ke(n.mode(),n.typeIdsArray()||[],t||[])}case Mr.FixedSizeBinary:{const t=e.type(new Bi);return new qe(t.byteWidth())}case Mr.FixedSizeList:{const n=e.type(new Fi);return new Xe(n.listSize(),(t||[])[0])}case Mr.Map:{const n=e.type(new ji);return new Qe((t||[])[0],n.keysSorted())}}throw new Error(`Unrecognized type: "${Mr[n]}" (${n})`)}Zn.encode=function(e,t){let n=-1,r=-1,i=-1;const o=t.type;let s=t.typeId;Me.isDictionary(o)?(s=o.dictionary.typeId,i=Ki.visit(o,e),r=Ki.visit(o.dictionary,e)):r=Ki.visit(o,e);const a=(o.children||[]).map((t=>Zn.encode(e,t))),l=jr.createChildrenVector(e,a),c=t.metadata&&t.metadata.size>0?jr.createCustomMetadataVector(e,[...t.metadata].map((t=>{let[n,r]=t;const i=e.createString(`${n}`),o=e.createString(`${r}`);return Lr.startKeyValue(e),Lr.addKey(e,i),Lr.addValue(e,o),Lr.endKeyValue(e)}))):-1;t.name&&(n=e.createString(t.name));jr.startField(e),jr.addType(e,r),jr.addTypeType(e,s),jr.addChildren(e,l),jr.addNullable(e,!!t.nullable),-1!==n&&jr.addName(e,n);-1!==i&&jr.addDictionary(e,i);-1!==c&&jr.addCustomMetadata(e,c);return jr.endField(e)},Zn.decode=function(e,t){let n,r,i,o,s,a;t&&(a=e.dictionary())?t.has(n=a.id().low)?(o=(o=a.indexType())?po(o):new Le,s=new et(t.get(n),o,n,a.isOrdered()),r=new Zn(e.name(),s,e.nullable(),fo(e))):(o=(o=a.indexType())?po(o):new Le,t.set(n,i=ho(e,uo(e,t))),s=new et(i,o,n,a.isOrdered()),r=new Zn(e.name(),s,e.nullable(),fo(e))):(i=ho(e,uo(e,t)),r=new Zn(e.name(),i,e.nullable(),fo(e)));return r||null},Zn.fromJSON=function(e,t){let n,r,i,o,s,a;return t&&(o=e.dictionary)?t.has(n=o.id)?(r=(r=o.indexType)?eo(r):new Le,a=new et(t.get(n),r,n,o.isOrdered),i=new Zn(e.name,a,e.nullable,Zi(e.customMetadata))):(r=(r=o.indexType)?eo(r):new Le,t.set(n,s=to(e,Xi(e,t))),a=new et(s,r,n,o.isOrdered),i=new Zn(e.name,a,e.nullable,Zi(e.customMetadata))):(s=to(e,Xi(e,t)),i=new Zn(e.name,s,e.nullable,Zi(e.customMetadata))),i||null},Jn.encode=function(e,t){const n=t.fields.map((t=>Zn.encode(e,t)));zr.startFieldsVector(e,n.length);const r=zr.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?zr.createCustomMetadataVector(e,[...t.metadata].map((t=>{let[n,r]=t;const i=e.createString(`${n}`),o=e.createString(`${r}`);return Lr.startKeyValue(e),Lr.addKey(e,i),Lr.addValue(e,o),Lr.endKeyValue(e)}))):-1;zr.startSchema(e),zr.addFields(e,r),zr.addEndianness(e,mo?Or.Little:Or.Big),-1!==i&&zr.addCustomMetadata(e,i);return zr.endSchema(e)},Jn.decode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;const n=function(e,t){const n=[];for(let r,i=-1,o=-1,s=e.fieldsLength();++i<s;)(r=e.fields(i))&&(n[++o]=Zn.decode(r,t));return n}(e,t);return new Jn(n,fo(e),t)},Jn.fromJSON=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return new Jn(function(e,t){return(e.fields||[]).filter(Boolean).map((e=>Zn.fromJSON(e,t)))}(e,t),Zi(e.customMetadata),t)},so.encode=function(e,t){const n=t.nodes||[],r=t.buffers||[];Ii.startNodesVector(e,n.length);for(const s of n.slice().reverse())co.encode(e,s);const i=e.endVector();Ii.startBuffersVector(e,r.length);for(const s of r.slice().reverse())lo.encode(e,s);const o=e.endVector();return Ii.startRecordBatch(e),Ii.addLength(e,new no(t.length,0)),Ii.addNodes(e,i),Ii.addBuffers(e,o),Ii.endRecordBatch(e)},so.decode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.V4;if(null!==e.compression())throw new Error("Record batch compression not implemented");return new so(e.length(),function(e){const t=[];for(let n,r=-1,i=-1,o=e.nodesLength();++r<o;)(n=e.nodes(r))&&(t[++i]=co.decode(n));return t}(e),function(e,t){const n=[];for(let i,o=-1,s=-1,a=e.buffersLength();++o<a;)(i=e.buffers(o))&&(t<r.V4&&(i.bb_pos+=8*(o+1)),n[++s]=lo.decode(i));return n}(e,t))},so.fromJSON=qi,ao.encode=function(e,t){const n=so.encode(e,t.data);return Ei.startDictionaryBatch(e),Ei.addId(e,new no(t.id,0)),Ei.addIsDelta(e,t.isDelta),Ei.addData(e,n),Ei.endDictionaryBatch(e)},ao.decode=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.V4;return new ao(so.decode(e.data(),t),e.id(),e.isDelta())},ao.fromJSON=function(e){return new ao(qi(e.data),e.id,e.isDelta)},co.encode=function(e,t){return Ti.createFieldNode(e,new no(t.length,0),new no(t.nullCount,0))},co.decode=function(e){return new co(e.length(),e.nullCount())},lo.encode=function(e,t){return Ci.createBuffer(e,new no(t.offset,0),new no(t.length,0))},lo.decode=function(e){return new lo(e.offset(),e.length())};const mo=(()=>{const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]})(),yo=e=>`Expected ${c[e]} Message in stream, but was null or length 0.`,bo=e=>`Header pointer of flatbuffer-encoded ${c[e]} Message is null or length 0.`,go=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,vo=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;class wo{constructor(e){this.source=e instanceof ri?e:new ri(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||-1===e.value&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?Jr:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(yo(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const t=J(this.source.read(e));if(t.byteLength<e)throw new Error(vo(e,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}readSchema(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=c.Schema,n=this.readMessage(t),r=null===n||void 0===n?void 0:n.header();if(e&&!r)throw new Error(bo(t));return r}readMetadataLength(){const e=this.source.read(Ao),t=e&&new Nr(e),n=(null===t||void 0===t?void 0:t.readInt32(0))||0;return{done:0===n,value:n}}readMetadata(e){const t=this.source.read(e);if(!t)return Jr;if(t.byteLength<e)throw new Error(go(e,t.byteLength));return{done:!1,value:oo.decode(t)}}}class So{constructor(e,t){this.source=e instanceof ii?e:R(e)?new li(e,t):new ii(e)}[Symbol.asyncIterator](){return this}next(){return B(this,void 0,void 0,(function*(){let e;return(e=yield this.readMetadataLength()).done||-1===e.value&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?Jr:e}))}throw(e){return B(this,void 0,void 0,(function*(){return yield this.source.throw(e)}))}return(e){return B(this,void 0,void 0,(function*(){return yield this.source.return(e)}))}readMessage(e){return B(this,void 0,void 0,(function*(){let t;if((t=yield this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(yo(e));return t.value}))}readMessageBody(e){return B(this,void 0,void 0,(function*(){if(e<=0)return new Uint8Array(0);const t=J(yield this.source.read(e));if(t.byteLength<e)throw new Error(vo(e,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}))}readSchema(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return B(this,void 0,void 0,(function*(){const t=c.Schema,n=yield this.readMessage(t),r=null===n||void 0===n?void 0:n.header();if(e&&!r)throw new Error(bo(t));return r}))}readMetadataLength(){return B(this,void 0,void 0,(function*(){const e=yield this.source.read(Ao),t=e&&new Nr(e),n=(null===t||void 0===t?void 0:t.readInt32(0))||0;return{done:0===n,value:n}}))}readMetadata(e){return B(this,void 0,void 0,(function*(){const t=yield this.source.read(e);if(!t)return Jr;if(t.byteLength<e)throw new Error(go(e,t.byteLength));return{done:!1,value:oo.decode(t)}}))}}class _o extends wo{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof Zr?e:new Zr(e)}next(){const{_json:e}=this;if(!this._schema){this._schema=!0;return{done:!1,value:oo.fromJSON(e.schema,c.Schema)}}if(this._dictionaryIndex<e.dictionaries.length){const t=e.dictionaries[this._dictionaryIndex++];this._body=t.data.columns;return{done:!1,value:oo.fromJSON(t,c.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const t=e.batches[this._batchIndex++];this._body=t.columns;return{done:!1,value:oo.fromJSON(t,c.RecordBatch)}}return this._body=[],Jr}readMessageBody(e){return function e(t){return(t||[]).reduce(((t,n)=>[...t,...n.VALIDITY&&[n.VALIDITY]||[],...n.TYPE&&[n.TYPE]||[],...n.OFFSET&&[n.OFFSET]||[],...n.DATA&&[n.DATA]||[],...e(n.children)]),[])}(this._body)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(yo(e));return t.value}readSchema(){const e=c.Schema,t=this.readMessage(e),n=null===t||void 0===t?void 0:t.header();if(!t||!n)throw new Error(bo(e));return n}}const Ao=4,xo="ARROW1",ko=new Uint8Array(6);for(let ds=0;ds<6;ds+=1)ko[ds]=xo.codePointAt(ds);function Co(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(let n=-1,r=ko.length;++n<r;)if(ko[n]!==e[t+n])return!1;return!0}const To=ko.length,Io=To+Ao,Eo=2*To+Ao;class Ro extends ei{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){const t=this._impl.open(e);return k(t)?t.then((()=>this)):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return Kr.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Kr.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof Ro?e:I(e)?function(e){return new Oo(new zo(e))}(e):R(e)?function(e){return B(this,void 0,void 0,(function*(){const{size:t}=yield e.stat(),n=new li(e,t);return t>=Eo&&Co(yield n.readAt(0,To+7&-8))?new No(new jo(n)):new Po(new Bo(n))}))}(e):k(e)?(()=>B(this,void 0,void 0,(function*(){return yield Ro.from(yield e)})))():O(e)||M(e)||N(e)||T(e)?function(e){return B(this,void 0,void 0,(function*(){const t=yield e.peek(To+7&-8);return t&&t.byteLength>=4?Co(t)?new Mo(new Fo(yield e.read())):new Po(new Bo(e)):new Po(new Bo(function(){return z(this,arguments,(function*(){}))}()))}))}(new ii(e)):function(e){const t=e.peek(To+7&-8);return t&&t.byteLength>=4?Co(t)?new Mo(new Fo(e.read())):new Oo(new Lo(e)):new Oo(new Lo(function*(){}()))}(new ri(e))}static readAll(e){return e instanceof Ro?e.isSync()?$o(e):Vo(e):I(e)||ArrayBuffer.isView(e)||C(e)||E(e)?$o(e):Vo(e)}}class Oo extends Ro{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return z(this,arguments,(function*(){yield j(yield*U($(this[Symbol.iterator]())))}))}}class Po extends Ro{constructor(e){super(e),this._impl=e}readAll(){var e,t;return B(this,void 0,void 0,(function*(){const n=new Array;try{for(var r,i=$(this);!(r=yield i.next()).done;){const e=r.value;n.push(e)}}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=i.return)&&(yield t.call(i))}finally{if(e)throw e.error}}return n}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class Mo extends Oo{constructor(e){super(e),this._impl=e}}class No extends Po{constructor(e){super(e),this._impl=e}}class Do{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map;this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){const n=this._loadVectors(e,t,this.schema.fields),r=Qn({type:new Ge(this.schema.fields),length:e.length,children:n});return new yr(this.schema,r)}_loadDictionaryBatch(e,t){const{id:n,isDelta:r}=e,{dictionaries:i,schema:o}=this,s=i.get(n);if(r||!s){const i=o.dictionaries.get(n),a=this._loadVectors(e.data,t,[i]);return(s&&r?s.concat(new Gn(a)):new Gn(a)).memoize()}return s.memoize()}_loadVectors(e,t,n){return new mi(t,e.nodes,e.buffers,this.dictionaries).visitMany(n)}}class Lo extends Do{constructor(e,t){super(t),this._reader=I(e)?new _o(this._handle=e):new wo(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=Uo(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):Jr}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Jr}next(){if(this.closed)return Jr;let e;const{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;const n=e.header(),r=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;const n=e.header(),r=t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new vr(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class Bo extends Do{constructor(e,t){super(t),this._reader=new So(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return B(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(e){return B(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=Uo(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(e){return B(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):Jr}))}return(e){return B(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):Jr}))}next(){return B(this,void 0,void 0,(function*(){if(this.closed)return Jr;let e;const{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;const n=e.header(),r=yield t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;const n=e.header(),r=yield t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new vr(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(e){return B(this,void 0,void 0,(function*(){return yield this._reader.readMessage(e)}))}}class Fo extends Lo{constructor(e,t){super(e instanceof ai?e:new ai(e),t)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var t;if(this.closed)return null;this._footer||this.open();const n=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(e);if(n&&this._handle.seek(n.offset)){const e=this._reader.readMessage(c.RecordBatch);if(null===e||void 0===e?void 0:e.isRecordBatch()){const t=e.header(),n=this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,n)}}return null}_readDictionaryBatch(e){var t;const n=null===(t=this._footer)||void 0===t?void 0:t.getDictionaryBatch(e);if(n&&this._handle.seek(n.offset)){const e=this._reader.readMessage(c.DictionaryBatch);if(null===e||void 0===e?void 0:e.isDictionaryBatch()){const t=e.header(),n=this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}}_readFooter(){const{_handle:e}=this,t=e.size-Io,n=e.readInt32(t),r=e.readAt(t-n,n);return Hr.decode(r)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const n=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(this._recordBatchIndex);if(n&&this._handle.seek(n.offset))return this._reader.readMessage(e)}return null}}class jo extends Bo{constructor(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i="number"!==typeof n[0]?n.shift():void 0,o=n[0]instanceof Map?n.shift():void 0;super(e instanceof li?e:new li(e,i),o)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}open(e){const t=Object.create(null,{open:{get:()=>super.open}});return B(this,void 0,void 0,(function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const e of this._footer.dictionaryBatches())e&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)}))}readRecordBatch(e){var t;return B(this,void 0,void 0,(function*(){if(this.closed)return null;this._footer||(yield this.open());const n=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(e);if(n&&(yield this._handle.seek(n.offset))){const e=yield this._reader.readMessage(c.RecordBatch);if(null===e||void 0===e?void 0:e.isRecordBatch()){const t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,n)}}return null}))}_readDictionaryBatch(e){var t;return B(this,void 0,void 0,(function*(){const n=null===(t=this._footer)||void 0===t?void 0:t.getDictionaryBatch(e);if(n&&(yield this._handle.seek(n.offset))){const e=yield this._reader.readMessage(c.DictionaryBatch);if(null===e||void 0===e?void 0:e.isDictionaryBatch()){const t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}}))}_readFooter(){return B(this,void 0,void 0,(function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const t=e.size-Io,n=yield e.readInt32(t),r=yield e.readAt(t-n,n);return Hr.decode(r)}))}_readNextMessageAndValidate(e){return B(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(e)}return null}))}}class zo extends Lo{constructor(e,t){super(e,t)}_loadVectors(e,t,n){return new yi(t,e.nodes,e.buffers,this.dictionaries).visitMany(n)}}function Uo(e,t){return t&&"boolean"===typeof t.autoDestroy?t.autoDestroy:e.autoDestroy}function*$o(e){const t=Ro.from(e);try{if(!t.open({autoDestroy:!1}).closed)do{yield t}while(!t.reset().open().closed)}finally{t.cancel()}}function Vo(e){return z(this,arguments,(function*(){const t=yield j(Ro.from(e));try{if(!(yield j(t.open({autoDestroy:!1}))).closed)do{yield yield j(t)}while(!(yield j(t.reset().open())).closed)}finally{yield j(t.cancel())}}))}class Wo extends nt{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(){const e=t=>t.flatMap((t=>Array.isArray(t)?e(t):t instanceof yr?t.data.children:t.data)),t=new Wo;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.visitMany(e(r)),t}visit(e){if(e instanceof Gn)return this.visitMany(e.data),this;const{type:t}=e;if(!Me.isDictionary(t)){const{length:n,nullCount:r}=e;if(n>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");Me.isNull(t)||Ho.call(this,r<=0?new Uint8Array(0):Cn(e.offset,n,e.nullBitmap)),this.nodes.push(new co(n,r))}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function Ho(e){const t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new lo(this._byteLength,t)),this._byteLength+=t,this}function Yo(e){return Ho.call(this,e.values.subarray(0,e.length*e.stride))}function Go(e){const{length:t,values:n,valueOffsets:r}=e,i=r[0],o=r[t],s=Math.min(o-i,n.byteLength-i);return Ho.call(this,ne(-r[0],t,r)),Ho.call(this,n.subarray(i,i+s)),this}function Ko(e){const{length:t,valueOffsets:n}=e;return n&&Ho.call(this,ne(n[0],t,n)),this.visit(e.children[0])}function qo(e){return this.visitMany(e.type.children.map(((t,n)=>e.children[n])).filter(Boolean))[0]}Wo.prototype.visitBool=function(e){let t;return e.nullCount>=e.length?Ho.call(this,new Uint8Array(0)):(t=e.values)instanceof Uint8Array?Ho.call(this,Cn(e.offset,e.length,t)):Ho.call(this,Tn(e.values))},Wo.prototype.visitInt=Yo,Wo.prototype.visitFloat=Yo,Wo.prototype.visitUtf8=Go,Wo.prototype.visitBinary=Go,Wo.prototype.visitFixedSizeBinary=Yo,Wo.prototype.visitDate=Yo,Wo.prototype.visitTimestamp=Yo,Wo.prototype.visitTime=Yo,Wo.prototype.visitDecimal=Yo,Wo.prototype.visitList=Ko,Wo.prototype.visitStruct=qo,Wo.prototype.visitUnion=function(e){const{type:t,length:n,typeIds:r,valueOffsets:o}=e;if(Ho.call(this,r),t.mode===i.Sparse)return qo.call(this,e);if(t.mode===i.Dense){if(e.offset<=0)return Ho.call(this,o),qo.call(this,e);{const i=r.reduce(((e,t)=>Math.max(e,t)),r[0]),s=new Int32Array(i+1),a=new Int32Array(i+1).fill(-1),l=new Int32Array(n),c=ne(-o[0],n,o);for(let e,t,o=-1;++o<n;)-1===(t=a[e=r[o]])&&(t=a[e]=c[e]),l[o]=c[o]-t,++s[e];Ho.call(this,l);for(let r,o=-1,u=t.children.length;++o<u;)if(r=e.children[o]){const e=t.typeIds[o],i=Math.min(n,s[e]);this.visit(r.slice(a[e],i))}}}return this},Wo.prototype.visitInterval=Yo,Wo.prototype.visitFixedSizeList=Ko,Wo.prototype.visitMap=Ko;class Xo extends ei{constructor(e){super(),this._position=0,this._started=!1,this._sink=new ni,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,x(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy="boolean"!==typeof e.autoDestroy||e.autoDestroy,this._writeLegacyIpcFormat="boolean"===typeof e.writeLegacyIpcFormat&&e.writeLegacyIpcFormat}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}toString(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._sink.toString(e)}toUint8Array(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._sink.toUint8Array(e)}writeAll(e){return k(e)?e.then((e=>this.writeAll(e))):T(e)?es(this,e):Zo(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._sink,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n;return e===this._sink||e instanceof ni?this._sink=e:(this._sink=new ni,e&&(x(n=e)&&A(n.abort)&&A(n.getWriter)&&!P(n))?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&(e=>x(e)&&A(e.end)&&A(e.write)&&_(e.writable)&&!P(e))(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,t&&pr(t,this._schema)||(null==t?(this._position=0,this._schema=null):(this._started=!0,this._schema=t,this._writeSchema(t))),this}write(e){let t=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null==e)return this.finish()&&void 0;if(e instanceof _r&&!(t=e.schema))return this.finish()&&void 0;if(e instanceof yr&&!(t=e.schema))return this.finish()&&void 0;if(t&&!pr(t,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof yr?e instanceof vr||this._writeRecordBatch(e):e instanceof _r?this.writeAll(e.batches):C(e)&&this.writeAll(e)}_writeMessage(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:8)-1,n=oo.encode(e),r=n.byteLength,i=this._writeLegacyIpcFormat?4:8,o=r+i+t&~t,s=o-r-i;return e.headerType===c.RecordBatch?this._recordBatchBlocks.push(new Gr(o,e.bodyLength,this._position)):e.headerType===c.DictionaryBatch&&this._dictionaryBlocks.push(new Gr(o,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(o-i)),r>0&&this._write(n),this._writePadding(s)}_write(e){if(this._started){const t=J(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}_writeSchema(e){return this._writeMessage(oo.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(ko)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){const{byteLength:t,nodes:n,bufferRegions:r,buffers:i}=Wo.assemble(e),o=new so(e.numRows,n,r),s=oo.from(o,t);return this._writeDictionaries(e)._writeMessage(s)._writeBodyBuffers(i)}_writeDictionaryBatch(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._dictionaryDeltaOffsets.set(t,e.length+(this._dictionaryDeltaOffsets.get(t)||0));const{byteLength:r,nodes:i,bufferRegions:o,buffers:s}=Wo.assemble(new Gn([e])),a=new so(e.length,i,o),l=new ao(a,t,n),c=oo.from(l,r);return this._writeMessage(c)._writeBodyBuffers(s)}_writeBodyBuffers(e){let t,n,r;for(let i=-1,o=e.length;++i<o;)(t=e[i])&&(n=t.byteLength)>0&&(this._write(t),(r=(n+7&-8)-n)>0&&this._writePadding(r));return this}_writeDictionaries(e){for(let[t,n]of e.dictionaries){let e=this._dictionaryDeltaOffsets.get(t)||0;if(0===e||(n=null===n||void 0===n?void 0:n.slice(e)).length>0)for(const r of n.data)this._writeDictionaryBatch(r,t,e>0),e+=r.length}return this}}class Qo extends Xo{static writeAll(e,t){const n=new Qo(t);return k(e)?e.then((e=>n.writeAll(e))):T(e)?es(n,e):Zo(n,e)}}class Jo extends Xo{static writeAll(e){const t=new Jo;return k(e)?e.then((e=>t.writeAll(e))):T(e)?es(t,e):Zo(t,e)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeFooter(e){const t=Hr.encode(new Hr(e,r.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}}function Zo(e,t){let n=t;t instanceof _r&&(n=t.batches,e.reset(void 0,t.schema));for(const r of n)e.write(r);return e.finish()}function es(e,t){var n,r,i,o;return B(this,void 0,void 0,(function*(){try{for(n=$(t);!(r=yield n.next()).done;){const t=r.value;e.write(t)}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}return e.finish()}))}function ts(e){const t=Ro.from(e);return k(t)?t.then((e=>ts(e))):t.isAsync()?t.readAll().then((e=>new _r(e))):new _r(t.readAll())}function ns(e){return("stream"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"stream")?Qo:Jo).writeAll(e).toUint8Array(!0)}var rs,is=function(){function e(e,t,n,r){var i=this;this.getCell=function(e,t){var n=e<i.headerRows&&t<i.headerColumns,r=e>=i.headerRows&&t<i.headerColumns,o=e<i.headerRows&&t>=i.headerColumns;if(n){var s=["blank"];return t>0&&s.push("level"+e),{type:"blank",classNames:s.join(" "),content:""}}if(o)return{type:"columns",classNames:(s=["col_heading","level"+e,"col"+(l=t-i.headerColumns)]).join(" "),content:i.getContent(i.columnsTable,l,e)};if(r){s=["row_heading","level"+t,"row"+(a=e-i.headerRows)];return{type:"index",id:"T_".concat(i.uuid,"level").concat(t,"_row").concat(a),classNames:s.join(" "),content:i.getContent(i.indexTable,a,t)}}s=["data","row"+(a=e-i.headerRows),"col"+(l=t-i.headerColumns)];var a,l,c=i.styler?i.getContent(i.styler.displayValuesTable,a,l):i.getContent(i.dataTable,a,l);return{type:"data",id:"T_".concat(i.uuid,"row").concat(a,"_col").concat(l),classNames:s.join(" "),content:c}},this.getContent=function(e,t,n){var r=e.getChildAt(n);return null===r?"":i.getColumnTypeId(e,n)===u.Timestamp?i.nanosToDate(r.get(t)):r.get(t)},this.dataTable=ts(e),this.indexTable=ts(t),this.columnsTable=ts(n),this.styler=r?{caption:r.caption,displayValuesTable:ts(r.displayValues),styles:r.styles,uuid:r.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:ns(this.dataTable),index:ns(this.indexTable),columns:ns(this.columnsTable)}},e.prototype.getColumnTypeId=function(e,t){return e.schema.fields[t].type.typeId},e.prototype.nanosToDate=function(e){return new Date(e/1e6)},e}(),os=function(){return os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},os.apply(this,arguments)};!function(e){e.COMPONENT_READY="streamlit:componentReady",e.SET_COMPONENT_VALUE="streamlit:setComponentValue",e.SET_FRAME_HEIGHT="streamlit:setFrameHeight"}(rs||(rs={}));var ss=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){void 0===t&&(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 is?(n="dataframe",t=t.serialize()):!function(e){var t=!1;try{t=e instanceof BigInt64Array||e instanceof BigUint64Array}catch(n){}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}(t)?t instanceof ArrayBuffer?(n="bytes",t=new Uint8Array(t)):n="json":(n="bytes",t=new Uint8Array(t.buffer)),e.sendBackMsg(rs.SET_COMPONENT_VALUE,{value:t,dataType:n})},e.onMessageEvent=function(t){if(t.data.type===e.RENDER_EVENT)e.onRenderMessage(t.data)},e.onRenderMessage=function(t){var n=t.args;null==n&&(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=os(os({},n),r);var i=Boolean(t.disabled),o=t.theme;o&&as(o);var s={disabled:i,args:n,theme:o},a=new CustomEvent(e.RENDER_EVENT,{detail:s});e.events.dispatchEvent(a)},e.argsDataframeToObject=function(t){var n=t.map((function(t){var n=t.key,r=t.value;return[n,e.toArrowTable(r)]}));return Object.fromEntries(n)},e.toArrowTable=function(e){var t,n=(t=e.data).data,r=t.index,i=t.columns,o=t.styler;return new is(n,r,i,o)},e.sendBackMsg=function(e,t){window.parent.postMessage(os({isStreamlitMessage:!0,type:e},t),"*")},e}(),as=function(e){var t=document.createElement("style");document.head.appendChild(t),t.innerHTML="\n :root {\n --primary-color: ".concat(e.primaryColor,";\n --background-color: ").concat(e.backgroundColor,";\n --secondary-background-color: ").concat(e.secondaryBackgroundColor,";\n --text-color: ").concat(e.textColor,";\n --font: ").concat(e.font,";\n }\n\n body {\n background-color: var(--background-color);\n color: var(--text-color);\n }\n ")};var ls=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),t.prototype.componentDidMount=function(){ss.setFrameHeight()},t.prototype.componentDidUpdate=function(){ss.setFrameHeight()},t}(h.PureComponent);function us(e){var t=function(t){function n(e){var n=t.call(this,e)||this;return n.componentDidMount=function(){ss.events.addEventListener(ss.RENDER_EVENT,n.onRenderEvent),ss.setComponentReady()},n.componentDidUpdate=function(){null!=n.state.componentError&&ss.setFrameHeight()},n.componentWillUnmount=function(){ss.events.removeEventListener(ss.RENDER_EVENT,n.onRenderEvent)},n.onRenderEvent=function(e){n.setState({renderData:e.detail})},n.state={renderData:void 0,componentError:void 0},n}return ls(n,t),n.prototype.render=function(){return null!=this.state.componentError?h.createElement("div",null,h.createElement("h1",null,"Component Error"),h.createElement("span",null,this.state.componentError.message)):null==this.state.renderData?null:h.createElement(e,{width:window.innerWidth,disabled:this.state.renderData.disabled,args:this.state.renderData.args,theme:this.state.renderData.theme})},n.getDerivedStateFromError=function(e){return{componentError:e}},n}(h.PureComponent);return p()(t,e)}},709:(e,t,n)=>{"use strict";var r=n(5181),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,y="function"===typeof Symbol&&Symbol.iterator;function b(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 g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function S(){}function _(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(b(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=w.prototype;var A=_.prototype=new S;A.constructor=_,r(A,w.prototype),A.isPureReactComponent=!0;var x={current:null},k=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},s=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)k.call(t,r)&&!C.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:s,ref:a,props:i,_owner:x.current}}function I(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var E=/\/+/g,R=[];function O(e,t,n,r){if(R.length){var i=R.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function P(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>R.length&&R.push(e)}function M(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case o:case s:a=!0}}if(a)return n(r,e,""===t?"."+D(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=t+D(i=e[l],l);a+=M(i,c,n,r)}else if(null===e||"object"!==typeof e?c=null:c="function"===typeof(c=y&&e[y]||e["@@iterator"])?c:null,"function"===typeof c)for(e=c.call(e),l=0;!(i=e.next()).done;)a+=M(i=i.value,c=t+D(i,l++),n,r);else if("object"===i)throw n=""+e,Error(b(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function N(e,t,n){return null==e?0:M(e,"",t,n)}function D(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function B(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,(function(e){return e})):null!=e&&(I(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(E,"$&/")+"/")+n)),r.push(e))}function F(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(E,"$&/")+"/"),N(e,B,t=O(t,o,r,i)),P(t)}var j={current:null};function z(){var e=j.current;if(null===e)throw Error(b(321));return e}var U={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;N(e,L,t=O(null,null,t,n)),P(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){if(!I(e))throw Error(b(143));return e}},t.Component=w,t.Fragment=a,t.Profiler=c,t.PureComponent=_,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(b(267,e));var i=r({},e.props),s=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=x.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)k.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:s,ref:a,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return z().useCallback(e,t)},t.useContext=function(e,t){return z().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return z().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return z().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return z().useLayoutEffect(e,t)},t.useMemo=function(e,t){return z().useMemo(e,t)},t.useReducer=function(e,t,n){return z().useReducer(e,t,n)},t.useRef=function(e){return z().useRef(e)},t.useState=function(e){return z().useState(e)},t.version="16.14.0"},5946:(e,t,n)=>{"use strict";e.exports=n(709)},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{A:()=>r})},1099:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>r[e]));return s.default=()=>r,n.d(o,s),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{fixNegotiationNeeded:()=>Va,shimAddTrackRemoveTrack:()=>Ua,shimAddTrackRemoveTrackWithNative:()=>za,shimGetSendersWithDtmf:()=>Fa,shimGetUserMedia:()=>Da,shimMediaStream:()=>La,shimOnTrack:()=>Ba,shimPeerConnection:()=>$a,shimSenderReceiverGetStats:()=>ja});var t={};n.r(t),n.d(t,{shimAddTransceiver:()=>Ja,shimCreateAnswer:()=>tl,shimCreateOffer:()=>el,shimGetDisplayMedia:()=>Ha,shimGetParameters:()=>Za,shimGetUserMedia:()=>Wa,shimOnTrack:()=>Ya,shimPeerConnection:()=>Ga,shimRTCDataChannel:()=>Qa,shimReceiverGetStats:()=>qa,shimRemoveStream:()=>Xa,shimSenderGetStats:()=>Ka});var r={};n.r(r),n.d(r,{shimAudioContext:()=>ul,shimCallbacksAPI:()=>il,shimConstraints:()=>sl,shimCreateOfferLegacy:()=>cl,shimGetUserMedia:()=>ol,shimLocalStreamsAPI:()=>nl,shimRTCIceServerUrls:()=>al,shimRemoteStreamsAPI:()=>rl,shimTrackEventTransceiver:()=>ll});var i={};n.r(i),n.d(i,{removeExtmapAllowMixed:()=>gl,shimAddIceCandidateNullOrEmpty:()=>vl,shimConnectionState:()=>bl,shimMaxMessageSize:()=>ml,shimParameterlessSetLocalDescription:()=>wl,shimRTCIceCandidate:()=>pl,shimRTCIceCandidateRelayProtocol:()=>hl,shimSendThrowTypeError:()=>yl});var o=n(7565),s=n.t(o,2),a=n(6396),l=n(6641),c=n(1037),u=n(8168),d=n(8587);const f=o.createContext(null);function p(){return o.useContext(f)}const h="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var m=n(7929);const y=function(e){const{children:t,theme:n}=e,r=p(),i=o.useMemo((()=>{const e=null===r?n:function(e,t){if("function"===typeof t)return t(e);return(0,u.A)({},e,t)}(r,n);return null!=e&&(e[h]=null!==r),e}),[n,r]);return(0,m.jsx)(f.Provider,{value:i,children:t})};var b=n(10);const g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=o.useContext(b.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},v=["value"],w=o.createContext();const S=function(e){let{value:t}=e,n=(0,d.A)(e,v);return(0,m.jsx)(w.Provider,(0,u.A)({value:null==t||t},n))};var _=n(4964);const A={};function x(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo((()=>{const i=e&&t[e]||t;if("function"===typeof n){const o=n(i),s=e?(0,u.A)({},t,{[e]:o}):o;return r?()=>s:s}return e?(0,u.A)({},t,{[e]:n}):(0,u.A)({},t,n)}),[e,t,n,r])}const k=function(e){const{children:t,theme:n,themeId:r}=e,i=g(A),o=p()||A,s=x(r,i,n),a=x(r,o,n,!0),l="rtl"===s.direction;return(0,m.jsx)(y,{theme:a,children:(0,m.jsx)(b.T.Provider,{value:s,children:(0,m.jsx)(S,{value:l,children:(0,m.jsx)(_.A,{value:null==s?void 0:s.components,children:t})})})})};var C=n(7701);const T=["theme"];function I(e){let{theme:t}=e,n=(0,d.A)(e,T);const r=t[C.A];return(0,m.jsx)(k,(0,u.A)({},n,{themeId:r?C.A:void 0,theme:r||t}))}const{min:E,max:R}=Math,O=function(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return E(R(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e),t)},P=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let t=0;t<=3;t++)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]=O(e[t],0,255)):3===t&&(e[t]=O(e[t],0,1));return e},M={};for(let n of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])M[`[object ${n}]`]=n.toLowerCase();function N(e){return M[Object.prototype.toString.call(e)]||"object"}const D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.length>=3?Array.prototype.slice.call(e):"object"==N(e[0])&&t?t.split("").filter((t=>void 0!==e[0][t])).map((t=>e[0][t])):e[0].slice(0)},L=e=>{if(e.length<2)return null;const t=e.length-1;return"string"==N(e[t])?e[t].toLowerCase():null},{PI:B,min:F,max:j}=Math,z=e=>Math.round(100*e)/100,U=e=>Math.round(100*e)/100,$=2*B,V=B/3,W=B/180,H=180/B;function Y(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const G={format:{},autodetect:[]};const K=class{constructor(){const e=this;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("object"===N(n[0])&&n[0].constructor&&n[0].constructor===this.constructor)return n[0];let i=L(n),o=!1;if(!i){o=!0,G.sorted||(G.autodetect=G.autodetect.sort(((e,t)=>t.p-e.p)),G.sorted=!0);for(let e of G.autodetect)if(i=e.test(...n),i)break}if(!G.format[i])throw new Error("unknown format: "+n);{const t=G.format[i].apply(null,o?n:n.slice(0,-1));e._rgb=P(t)}3===e._rgb.length&&e._rgb.push(1)}toString(){return"function"==N(this.hex)?this.hex():`[${this._rgb.join(",")}]`}},q=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t)};q.version="3.1.2";const X=q,Q={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},J=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Z=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,ee=e=>{if(e.match(J)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(Z)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return[t>>24&255,t>>16&255,t>>8&255,Math.round((255&t)/255*100)/100]}throw new Error(`unknown hex color: ${e}`)},{round:te}=Math,ne=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i,o,s]=D(t,"rgba"),a=L(t)||"auto";void 0===s&&(s=1),"auto"===a&&(a=s<1?"rgba":"rgb"),r=te(r),i=te(i),o=te(o);let l="000000"+(r<<16|i<<8|o).toString(16);l=l.substr(l.length-6);let c="0"+te(255*s).toString(16);switch(c=c.substr(c.length-2),a.toLowerCase()){case"rgba":return`#${l}${c}`;case"argb":return`#${c}${l}`;default:return`#${l}`}};K.prototype.name=function(){const e=ne(this._rgb,"rgb");for(let t of Object.keys(Q))if(Q[t]===e)return t.toLowerCase();return e},G.format.named=e=>{if(e=e.toLowerCase(),Q[e])return ee(Q[e]);throw new Error("unknown color name: "+e)},G.autodetect.push({p:5,test:function(e){if((arguments.length<=1||!(arguments.length-1))&&"string"===N(e)&&Q[e.toLowerCase()])return"named"}}),K.prototype.alpha=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return void 0!==e&&"number"===N(e)?t?(this._rgb[3]=e,this):new K([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},K.prototype.clipped=function(){return this._rgb._clipped||!1};const re={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},ie=re,oe=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function se(e){const t=oe.get(String(e).toLowerCase());if(!t)throw new Error("unknown Lab illuminant "+e);re.labWhitePoint=e,re.Xn=t[0],re.Zn=t[1]}function ae(){return re.labWhitePoint}const le=(e,t,n)=>{const{kE:r,kK:i,kKE:o,Xn:s,Yn:a,Zn:l}=ie,c=(e+16)/116,u=.002*t+c,d=c-.005*n,f=u*u*u,p=d*d*d;return[(f>r?f:(116*u-16)/i)*s,(e>o?Math.pow((e+16)/116,3):e/i)*a,(p>r?p:(116*d-16)/i)*l]},ce=e=>{const t=Math.sign(e);return((e=Math.abs(e))<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)*t},ue=(e,t,n)=>{const{MtxAdaptMa:r,MtxAdaptMaI:i,MtxXYZ2RGB:o,RefWhiteRGB:s,Xn:a,Yn:l,Zn:c}=ie,u=a*r.m00+l*r.m10+c*r.m20,d=a*r.m01+l*r.m11+c*r.m21,f=a*r.m02+l*r.m12+c*r.m22,p=s.X*r.m00+s.Y*r.m10+s.Z*r.m20,h=s.X*r.m01+s.Y*r.m11+s.Z*r.m21,m=s.X*r.m02+s.Y*r.m12+s.Z*r.m22,y=(e*r.m00+t*r.m10+n*r.m20)*(p/u),b=(e*r.m01+t*r.m11+n*r.m21)*(h/d),g=(e*r.m02+t*r.m12+n*r.m22)*(m/f),v=y*i.m00+b*i.m10+g*i.m20,w=y*i.m01+b*i.m11+g*i.m21,S=y*i.m02+b*i.m12+g*i.m22;return[255*ce(v*o.m00+w*o.m10+S*o.m20),255*ce(v*o.m01+w*o.m11+S*o.m21),255*ce(v*o.m02+w*o.m12+S*o.m22)]},de=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"lab");const[r,i,o]=t,[s,a,l]=le(r,i,o),[c,u,d]=ue(s,a,l);return[c,u,d,t.length>3?t[3]:1]};function fe(e){const t=Math.sign(e);return((e=Math.abs(e))<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*t}const pe=(e,t,n)=>{e=fe(e/255),t=fe(t/255),n=fe(n/255);const{MtxRGB2XYZ:r,MtxAdaptMa:i,MtxAdaptMaI:o,Xn:s,Yn:a,Zn:l,As:c,Bs:u,Cs:d}=ie;let f=e*r.m00+t*r.m10+n*r.m20,p=e*r.m01+t*r.m11+n*r.m21,h=e*r.m02+t*r.m12+n*r.m22;const m=s*i.m00+a*i.m10+l*i.m20,y=s*i.m01+a*i.m11+l*i.m21,b=s*i.m02+a*i.m12+l*i.m22;let g=f*i.m00+p*i.m10+h*i.m20,v=f*i.m01+p*i.m11+h*i.m21,w=f*i.m02+p*i.m12+h*i.m22;return g*=m/c,v*=y/u,w*=b/d,f=g*o.m00+v*o.m10+w*o.m20,p=g*o.m01+v*o.m11+w*o.m21,h=g*o.m02+v*o.m12+w*o.m22,[f,p,h]},he=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,i,o,...s]=D(t,"rgb"),[a,l,c]=pe(r,i,o),[u,d,f]=function(e,t,n){const{Xn:r,Yn:i,Zn:o,kE:s,kK:a}=ie,l=e/r,c=t/i,u=n/o,d=l>s?Math.pow(l,1/3):(a*l+16)/116,f=c>s?Math.pow(c,1/3):(a*c+16)/116,p=u>s?Math.pow(u,1/3):(a*u+16)/116;return[116*f-16,500*(d-f),200*(f-p)]}(a,l,c);return[u,d,f,...s.length>0&&s[0]<1?[s[0]]:[]]};K.prototype.lab=function(){return he(this._rgb)};Object.assign(X,{lab:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"lab")},getLabWhitePoint:ae,setLabWhitePoint:se}),G.format.lab=de,G.autodetect.push({p:2,test:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("array"===N(t=D(t,"lab"))&&3===t.length)return"lab"}}),K.prototype.darken=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t=this.lab();return t[0]-=ie.Kn*e,new K(t,"lab").alpha(this.alpha(),!0)},K.prototype.brighten=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.darken(-e)},K.prototype.darker=K.prototype.darken,K.prototype.brighter=K.prototype.brighten,K.prototype.get=function(e){const[t,n]=e.split("."),r=this[t]();if(n){const e=t.indexOf(n)-("ok"===t.substr(0,2)?2:0);if(e>-1)return r[e];throw new Error(`unknown channel ${n} in mode ${t}`)}return r};const{pow:me}=Math;K.prototype.luminance=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb";if(void 0!==e&&"number"===N(e)){if(0===e)return new K([0,0,0,this._rgb[3]],"rgb");if(1===e)return new K([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=20;const i=(n,o)=>{const s=n.interpolate(o,.5,t),a=s.luminance();return Math.abs(e-a)<1e-7||!r--?s:a>e?i(n,s):i(s,o)},o=(n>e?i(new K([0,0,0]),this):i(this,new K([255,255,255]))).rgb();return new K([...o,this._rgb[3]])}return ye(...this._rgb.slice(0,3))};const ye=(e,t,n)=>.2126*(e=be(e))+.7152*(t=be(t))+.0722*(n=be(n)),be=e=>(e/=255)<=.03928?e/12.92:me((e+.055)/1.055,2.4),ge={},ve=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,r=(arguments.length<=3?void 0:arguments[3])||"lrgb";if(ge[r]||!(arguments.length<=3)&&arguments.length-3||(r=Object.keys(ge)[0]),!ge[r])throw new Error(`interpolation mode ${r} is not defined`);return"object"!==N(e)&&(e=new K(e)),"object"!==N(t)&&(t=new K(t)),ge[r](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};K.prototype.mix=K.prototype.interpolate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return ve(this,e,t,...r)},K.prototype.premultiply=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new K([t[0]*n,t[1]*n,t[2]*n,n],"rgb")};const{sin:we,cos:Se}=Math,_e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i,o]=D(t,"lch");return isNaN(o)&&(o=0),o*=W,[r,Se(o)*i,we(o)*i]},Ae=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"lch");const[r,i,o]=t,[s,a,l]=_e(r,i,o),[c,u,d]=de(s,a,l);return[c,u,d,t.length>3?t[3]:1]},xe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Y(D(t,"hcl"));return Ae(...r)},{sqrt:ke,atan2:Ce,round:Te}=Math,Ie=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,i,o]=D(t,"lab"),s=ke(i*i+o*o);let a=(Ce(o,i)*H+360)%360;return 0===Te(1e4*s)&&(a=Number.NaN),[r,s,a]},Ee=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,i,o,...s]=D(t,"rgb"),[a,l,c]=he(r,i,o),[u,d,f]=Ie(a,l,c);return[u,d,f,...s.length>0&&s[0]<1?[s[0]]:[]]};K.prototype.lch=function(){return Ee(this._rgb)},K.prototype.hcl=function(){return Y(Ee(this._rgb))};Object.assign(X,{lch:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"lch")},hcl:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"hcl")}}),G.format.lch=Ae,G.format.hcl=xe,["lch","hcl"].forEach((e=>G.autodetect.push({p:2,test:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("array"===N(n=D(n,e))&&3===n.length)return e}}))),K.prototype.saturate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t=this.lch();return t[1]+=ie.Kn*e,t[1]<0&&(t[1]=0),new K(t,"lch").alpha(this.alpha(),!0)},K.prototype.desaturate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.saturate(-e)},K.prototype.set=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const[r,i]=e.split("."),o=this[r]();if(i){const e=r.indexOf(i)-("ok"===r.substr(0,2)?2:0);if(e>-1){if("string"==N(t))switch(t.charAt(0)){case"+":case"-":o[e]+=+t;break;case"*":o[e]*=+t.substr(1);break;case"/":o[e]/=+t.substr(1);break;default:o[e]=+t}else{if("number"!==N(t))throw new Error("unsupported value for Color.set");o[e]=t}const i=new K(o,r);return n?(this._rgb=i._rgb,this):i}throw new Error(`unknown channel ${i} in mode ${r}`)}return o},K.prototype.tint=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ve(this,"white",e,...n)},K.prototype.shade=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ve(this,"black",e,...n)};const Re=(e,t,n)=>{const r=e._rgb,i=t._rgb;return new K(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};ge.rgb=Re;const{sqrt:Oe,pow:Pe}=Math,Me=(e,t,n)=>{const[r,i,o]=e._rgb,[s,a,l]=t._rgb;return new K(Oe(Pe(r,2)*(1-n)+Pe(s,2)*n),Oe(Pe(i,2)*(1-n)+Pe(a,2)*n),Oe(Pe(o,2)*(1-n)+Pe(l,2)*n),"rgb")};ge.lrgb=Me;const Ne=(e,t,n)=>{const r=e.lab(),i=t.lab();return new K(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};ge.lab=Ne;const De=(e,t,n,r)=>{let i,o,s,a,l,c,u,d,f,p,h,m;return"hsl"===r?(i=e.hsl(),o=t.hsl()):"hsv"===r?(i=e.hsv(),o=t.hsv()):"hcg"===r?(i=e.hcg(),o=t.hcg()):"hsi"===r?(i=e.hsi(),o=t.hsi()):"lch"===r||"hcl"===r?(r="hcl",i=e.hcl(),o=t.hcl()):"oklch"===r&&(i=e.oklch().reverse(),o=t.oklch().reverse()),"h"!==r.substr(0,1)&&"oklch"!==r||([s,l,u]=i,[a,c,d]=o),isNaN(s)||isNaN(a)?isNaN(s)?isNaN(a)?p=Number.NaN:(p=a,1!=u&&0!=u||"hsv"==r||(f=c)):(p=s,1!=d&&0!=d||"hsv"==r||(f=l)):(m=a>s&&a-s>180?a-(s+360):a<s&&s-a>180?a+360-s:a-s,p=s+n*m),void 0===f&&(f=l+n*(c-l)),h=u+n*(d-u),new K("oklch"===r?[h,f,p]:[p,f,h],r)},Le=(e,t,n)=>De(e,t,n,"lch");ge.lch=Le,ge.hcl=Le;const Be=e=>{if("number"==N(e)&&e>=0&&e<=16777215){return[e>>16,e>>8&255,255&e,1]}throw new Error("unknown num color: "+e)},Fe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,i,o]=D(t,"rgb");return(r<<16)+(i<<8)+o};K.prototype.num=function(){return Fe(this._rgb)};Object.assign(X,{num:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"num")}}),G.format.num=Be,G.autodetect.push({p:5,test:function(){if(1===arguments.length&&"number"===N(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])>=0&&(arguments.length<=0?void 0:arguments[0])<=16777215)return"num"}});const je=(e,t,n)=>{const r=e.num(),i=t.num();return new K(r+n*(i-r),"num")};ge.num=je;const{floor:ze}=Math,Ue=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"hcg");let r,i,o,[s,a,l]=t;l*=255;const c=255*a;if(0===a)r=i=o=l;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360),s/=60;const e=ze(s),t=s-e,n=l*(1-a),u=n+c*(1-t),d=n+c*t,f=n+c;switch(e){case 0:[r,i,o]=[f,d,n];break;case 1:[r,i,o]=[u,f,n];break;case 2:[r,i,o]=[n,f,d];break;case 3:[r,i,o]=[n,u,f];break;case 4:[r,i,o]=[d,n,f];break;case 5:[r,i,o]=[f,n,u]}}return[r,i,o,t.length>3?t[3]:1]},$e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,i,o]=D(t,"rgb"),s=F(r,i,o),a=j(r,i,o),l=a-s,c=100*l/255,u=s/(255-l)*100;let d;return 0===l?d=Number.NaN:(r===a&&(d=(i-o)/l),i===a&&(d=2+(o-r)/l),o===a&&(d=4+(r-i)/l),d*=60,d<0&&(d+=360)),[d,c,u]};K.prototype.hcg=function(){return $e(this._rgb)};X.hcg=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"hcg")},G.format.hcg=Ue,G.autodetect.push({p:1,test:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("array"===N(t=D(t,"hcg"))&&3===t.length)return"hcg"}});const Ve=(e,t,n)=>De(e,t,n,"hcg");ge.hcg=Ve;const{cos:We}=Math,He=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"hsi");let r,i,o,[s,a,l]=t;return isNaN(s)&&(s=0),isNaN(a)&&(a=0),s>360&&(s-=360),s<0&&(s+=360),s/=360,s<1/3?(o=(1-a)/3,r=(1+a*We($*s)/We(V-$*s))/3,i=1-(o+r)):s<2/3?(s-=1/3,r=(1-a)/3,i=(1+a*We($*s)/We(V-$*s))/3,o=1-(r+i)):(s-=2/3,i=(1-a)/3,o=(1+a*We($*s)/We(V-$*s))/3,r=1-(i+o)),r=O(l*r*3),i=O(l*i*3),o=O(l*o*3),[255*r,255*i,255*o,t.length>3?t[3]:1]},{min:Ye,sqrt:Ge,acos:Ke}=Math,qe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,[i,o,s]=D(t,"rgb");i/=255,o/=255,s/=255;const a=Ye(i,o,s),l=(i+o+s)/3,c=l>0?1-a/l:0;return 0===c?r=NaN:(r=(i-o+(i-s))/2,r/=Ge((i-o)*(i-o)+(i-s)*(o-s)),r=Ke(r),s>o&&(r=$-r),r/=$),[360*r,c,l]};K.prototype.hsi=function(){return qe(this._rgb)};X.hsi=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"hsi")},G.format.hsi=He,G.autodetect.push({p:2,test:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("array"===N(t=D(t,"hsi"))&&3===t.length)return"hsi"}});const Xe=(e,t,n)=>De(e,t,n,"hsi");ge.hsi=Xe;const Qe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"hsl");const[r,i,o]=t;let s,a,l;if(0===i)s=a=l=255*o;else{const e=[0,0,0],t=[0,0,0],n=o<.5?o*(1+i):o+i-o*i,c=2*o-n,u=r/360;e[0]=u+1/3,e[1]=u,e[2]=u-1/3;for(let r=0;r<3;r++)e[r]<0&&(e[r]+=1),e[r]>1&&(e[r]-=1),6*e[r]<1?t[r]=c+6*(n-c)*e[r]:2*e[r]<1?t[r]=n:3*e[r]<2?t[r]=c+(n-c)*(2/3-e[r])*6:t[r]=c;[s,a,l]=[255*t[0],255*t[1],255*t[2]]}return t.length>3?[s,a,l,t[3]]:[s,a,l,1]},Je=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"rgba");let[r,i,o]=t;r/=255,i/=255,o/=255;const s=F(r,i,o),a=j(r,i,o),l=(a+s)/2;let c,u;return a===s?(c=0,u=Number.NaN):c=l<.5?(a-s)/(a+s):(a-s)/(2-a-s),r==a?u=(i-o)/(a-s):i==a?u=2+(o-r)/(a-s):o==a&&(u=4+(r-i)/(a-s)),u*=60,u<0&&(u+=360),t.length>3&&void 0!==t[3]?[u,c,l,t[3]]:[u,c,l]};K.prototype.hsl=function(){return Je(this._rgb)};X.hsl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"hsl")},G.format.hsl=Qe,G.autodetect.push({p:2,test:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("array"===N(t=D(t,"hsl"))&&3===t.length)return"hsl"}});const Ze=(e,t,n)=>De(e,t,n,"hsl");ge.hsl=Ze;const{floor:et}=Math,tt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"hsv");let r,i,o,[s,a,l]=t;if(l*=255,0===a)r=i=o=l;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360),s/=60;const e=et(s),t=s-e,n=l*(1-a),c=l*(1-a*t),u=l*(1-a*(1-t));switch(e){case 0:[r,i,o]=[l,u,n];break;case 1:[r,i,o]=[c,l,n];break;case 2:[r,i,o]=[n,l,u];break;case 3:[r,i,o]=[n,c,l];break;case 4:[r,i,o]=[u,n,l];break;case 5:[r,i,o]=[l,n,c]}}return[r,i,o,t.length>3?t[3]:1]},{min:nt,max:rt}=Math,it=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"rgb");let[r,i,o]=t;const s=nt(r,i,o),a=rt(r,i,o),l=a-s;let c,u,d;return d=a/255,0===a?(c=Number.NaN,u=0):(u=l/a,r===a&&(c=(i-o)/l),i===a&&(c=2+(o-r)/l),o===a&&(c=4+(r-i)/l),c*=60,c<0&&(c+=360)),[c,u,d]};K.prototype.hsv=function(){return it(this._rgb)};X.hsv=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"hsv")},G.format.hsv=tt,G.autodetect.push({p:2,test:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("array"===N(t=D(t,"hsv"))&&3===t.length)return"hsv"}});const ot=(e,t,n)=>De(e,t,n,"hsv");ge.hsv=ot;function st(e,t){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map((e=>[e])));let r=t[0].length,i=t[0].map(((e,n)=>t.map((e=>e[n])))),o=e.map((e=>i.map((t=>Array.isArray(e)?e.reduce(((e,n,r)=>e+n*(t[r]||0)),0):t.reduce(((t,n)=>t+n*e),0)))));return 1===n&&(o=o[0]),1===r?o.map((e=>e[0])):o}const at=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"lab");const[r,i,o,...s]=t,[a,l,c]=function(e){var t=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=st([[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],e);return st(t,n.map((e=>e**3)))}([r,i,o]),[u,d,f]=ue(a,l,c);return[u,d,f,...s.length>0&&s[0]<1?[s[0]]:[]]};const lt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,i,o,...s]=D(t,"rgb");return[...function(e){const t=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],n=st([[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],e);return st(t,n.map((e=>Math.cbrt(e))))}(pe(r,i,o)),...s.length>0&&s[0]<1?[s[0]]:[]]};K.prototype.oklab=function(){return lt(this._rgb)};Object.assign(X,{oklab:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"oklab")}}),G.format.oklab=at,G.autodetect.push({p:2,test:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("array"===N(t=D(t,"oklab"))&&3===t.length)return"oklab"}});const ct=(e,t,n)=>{const r=e.oklab(),i=t.oklab();return new K(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"oklab")};ge.oklab=ct;const ut=(e,t,n)=>De(e,t,n,"oklch");ge.oklch=ut;const{pow:dt,sqrt:ft,PI:pt,cos:ht,sin:mt,atan2:yt}=Math,bt=(e,t)=>{const n=e.length,r=[0,0,0,0];for(let i=0;i<e.length;i++){const o=e[i],s=t[i]/n,a=o._rgb;r[0]+=dt(a[0],2)*s,r[1]+=dt(a[1],2)*s,r[2]+=dt(a[2],2)*s,r[3]+=a[3]*s}return r[0]=ft(r[0]),r[1]=ft(r[1]),r[2]=ft(r[2]),r[3]>.9999999&&(r[3]=1),new K(P(r))},{pow:gt}=Math;function vt(e){let t="rgb",n=X("#ccc"),r=0,i=[0,1],o=[],s=[0,0],a=!1,l=[],c=!1,u=0,d=1,f=!1,p={},h=!0,m=1;const y=function(e){if((e=e||["#fff","#000"])&&"string"===N(e)&&X.brewer&&X.brewer[e.toLowerCase()]&&(e=X.brewer[e.toLowerCase()]),"array"===N(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(let t=0;t<e.length;t++)e[t]=X(e[t]);o.length=0;for(let t=0;t<e.length;t++)o.push(t/(e.length-1))}return w(),l=e};let b=e=>e,g=e=>e;const v=function(e,r){let i,c;if(null==r&&(r=!1),isNaN(e)||null===e)return n;if(r)c=e;else if(a&&a.length>2){c=function(e){if(null!=a){const t=a.length-1;let n=0;for(;n<t&&e>=a[n];)n++;return n-1}return 0}(e)/(a.length-2)}else c=d!==u?(e-u)/(d-u):1;c=g(c),r||(c=b(c)),1!==m&&(c=gt(c,m)),c=s[0]+c*(1-s[0]-s[1]),c=O(c,0,1);const f=Math.floor(1e4*c);if(h&&p[f])i=p[f];else{if("array"===N(l))for(let e=0;e<o.length;e++){const n=o[e];if(c<=n){i=l[e];break}if(c>=n&&e===o.length-1){i=l[e];break}if(c>n&&c<o[e+1]){c=(c-n)/(o[e+1]-n),i=X.interpolate(l[e],l[e+1],c,t);break}}else"function"===N(l)&&(i=l(c));h&&(p[f]=i)}return i};var w=()=>p={};y(e);const S=function(e){const t=X(v(e));return c&&t[c]?t[c]():t};return S.classes=function(e){if(null!=e){if("array"===N(e))a=e,i=[e[0],e[e.length-1]];else{const t=X.analyze(i);a=0===e?[t.min,t.max]:X.limits(t,"e",e)}return S}return a},S.domain=function(e){if(!arguments.length)return i;u=e[0],d=e[e.length-1],o=[];const t=l.length;if(e.length===t&&u!==d)for(let n of Array.from(e))o.push((n-u)/(d-u));else{for(let e=0;e<t;e++)o.push(e/(t-1));if(e.length>2){const t=e.map(((t,n)=>n/(e.length-1))),n=e.map((e=>(e-u)/(d-u)));n.every(((e,n)=>t[n]===e))||(g=e=>{if(e<=0||e>=1)return e;let r=0;for(;e>=n[r+1];)r++;const i=(e-n[r])/(n[r+1]-n[r]);return t[r]+i*(t[r+1]-t[r])})}}return i=[u,d],S},S.mode=function(e){return arguments.length?(t=e,w(),S):t},S.range=function(e,t){return y(e),S},S.out=function(e){return c=e,S},S.spread=function(e){return arguments.length?(r=e,S):r},S.correctLightness=function(e){return null==e&&(e=!0),f=e,w(),b=f?function(e){const t=v(0,!0).lab()[0],n=v(1,!0).lab()[0],r=t>n;let i=v(e,!0).lab()[0];const o=t+(n-t)*e;let s=i-o,a=0,l=1,c=20;for(;Math.abs(s)>.01&&c-- >0;)r&&(s*=-1),s<0?(a=e,e+=.5*(l-e)):(l=e,e+=.5*(a-e)),i=v(e,!0).lab()[0],s=i-o;return e}:e=>e,S},S.padding=function(e){return null!=e?("number"===N(e)&&(e=[e,e]),s=e,S):s},S.colors=function(t,n){arguments.length<2&&(n="hex");let r=[];if(0===arguments.length)r=l.slice(0);else if(1===t)r=[S(.5)];else if(t>1){const e=i[0],n=i[1]-e;r=function(e,t,n){let r=[],i=e<t,o=n?i?t+1:t-1:t;for(let s=e;i?s<o:s>o;i?s++:s--)r.push(s);return r}(0,t,!1).map((r=>S(e+r/(t-1)*n)))}else{e=[];let t=[];if(a&&a.length>2)for(let e=1,n=a.length,r=1<=n;r?e<n:e>n;r?e++:e--)t.push(.5*(a[e-1]+a[e]));else t=i;r=t.map((e=>S(e)))}return X[n]&&(r=r.map((e=>e[n]()))),r},S.cache=function(e){return null!=e?(h=e,S):h},S.gamma=function(e){return null!=e?(m=e,S):m},S.nodata=function(e){return null!=e?(n=X(e),S):n},S}const{round:wt}=Math;K.prototype.rgb=function(){return!1===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])?this._rgb.slice(0,3):this._rgb.slice(0,3).map(wt)},K.prototype.rgba=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._rgb.slice(0,4).map(((t,n)=>n<3?!1===e?t:wt(t):t))};Object.assign(X,{rgb:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"rgb")}}),G.format.rgb=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=D(t,"rgba");return void 0===r[3]&&(r[3]=1),r},G.autodetect.push({p:3,test:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("array"===N(t=D(t,"rgba"))&&(3===t.length||4===t.length&&"number"==N(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});const St=(e,t,n)=>{if(!St[n])throw new Error("unknown blend mode "+n);return St[n](e,t)},_t=e=>(t,n)=>{const r=X(n).rgb(),i=X(t).rgb();return X.rgb(e(r,i))},At=e=>(t,n)=>{const r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r};St.normal=_t(At((e=>e))),St.multiply=_t(At(((e,t)=>e*t/255))),St.screen=_t(At(((e,t)=>255*(1-(1-e/255)*(1-t/255))))),St.overlay=_t(At(((e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))))),St.darken=_t(At(((e,t)=>e>t?t:e))),St.lighten=_t(At(((e,t)=>e>t?e:t))),St.dodge=_t(At(((e,t)=>255===e||(e=t/255*255/(1-e/255))>255?255:e))),St.burn=_t(At(((e,t)=>255*(1-(1-t/255)/(e/255)))));const xt=St,{pow:kt,sin:Ct,cos:Tt}=Math;const{floor:It,random:Et}=Math,{log:Rt,pow:Ot,floor:Pt,abs:Mt}=Math;function Nt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===N(e)&&(e=Object.values(e)),e.forEach((e=>{t&&"object"===N(e)&&(e=e[t]),void 0===e||null===e||isNaN(e)||(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)})),n.domain=[n.min,n.max],n.limits=(e,t)=>Dt(n,e,t),n}function Dt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"equal",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7;"array"==N(e)&&(e=Nt(e));const{min:r,max:i}=e,o=e.values.sort(((e,t)=>e-t));if(1===n)return[r,i];const s=[];if("c"===t.substr(0,1)&&(s.push(r),s.push(i)),"e"===t.substr(0,1)){s.push(r);for(let e=1;e<n;e++)s.push(r+e/n*(i-r));s.push(i)}else if("l"===t.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const e=Math.LOG10E*Rt(r),t=Math.LOG10E*Rt(i);s.push(r);for(let r=1;r<n;r++)s.push(Ot(10,e+r/n*(t-e)));s.push(i)}else if("q"===t.substr(0,1)){s.push(r);for(let e=1;e<n;e++){const t=(o.length-1)*e/n,r=Pt(t);if(r===t)s.push(o[r]);else{const e=t-r;s.push(o[r]*(1-e)+o[r+1]*e)}}s.push(i)}else if("k"===t.substr(0,1)){let e;const t=o.length,a=new Array(t),l=new Array(n);let c=!0,u=0,d=null;d=[],d.push(r);for(let o=1;o<n;o++)d.push(r+o/n*(i-r));for(d.push(i);c;){for(let e=0;e<n;e++)l[e]=0;for(let e=0;e<t;e++){const t=o[e];let r,i=Number.MAX_VALUE;for(let o=0;o<n;o++){const n=Mt(d[o]-t);n<i&&(i=n,r=o),l[r]++,a[e]=r}}const r=new Array(n);for(let e=0;e<n;e++)r[e]=null;for(let n=0;n<t;n++)e=a[n],null===r[e]?r[e]=o[n]:r[e]+=o[n];for(let e=0;e<n;e++)r[e]*=1/l[e];c=!1;for(let e=0;e<n;e++)if(r[e]!==d[e]){c=!0;break}d=r,u++,u>200&&(c=!1)}const f={};for(let r=0;r<n;r++)f[r]=[];for(let n=0;n<t;n++)e=a[n],f[e].push(o[n]);let p=[];for(let r=0;r<n;r++)p.push(f[r][0]),p.push(f[r][f[r].length-1]);p=p.sort(((e,t)=>e-t)),s.push(p[0]);for(let n=1;n<p.length;n+=2){const e=p[n];isNaN(e)||-1!==s.indexOf(e)||s.push(e)}}return s}const Lt=.022;function Bt(e,t,n){return.2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(t/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:Ft,pow:jt,min:zt,max:Ut,atan2:$t,abs:Vt,cos:Wt,sin:Ht,exp:Yt,PI:Gt}=Math;const Kt={cool:()=>vt([X.hsl(180,1,.9),X.hsl(250,.7,.4)]),hot:()=>vt(["#000","#f00","#ff0","#fff"]).mode("rgb")},qt={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Xt=Object.keys(qt),Qt=new Map(Xt.map((e=>[e.toLowerCase(),e]))),Jt="function"===typeof Proxy?new Proxy(qt,{get(e,t){const n=t.toLowerCase();if(Qt.has(n))return e[Qt.get(n)]},getOwnPropertyNames:()=>Object.getOwnPropertyNames(Xt)}):qt,Zt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"cmyk");const[r,i,o,s]=t,a=t.length>4?t[4]:1;return 1===s?[0,0,0,a]:[r>=1?0:255*(1-r)*(1-s),i>=1?0:255*(1-i)*(1-s),o>=1?0:255*(1-o)*(1-s),a]},{max:en}=Math,tn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i,o]=D(t,"rgb");r/=255,i/=255,o/=255;const s=1-en(r,en(i,o)),a=s<1?1/(1-s):0;return[(1-r-s)*a,(1-i-s)*a,(1-o-s)*a,s]};K.prototype.cmyk=function(){return tn(this._rgb)};Object.assign(X,{cmyk:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"cmyk")}}),G.format.cmyk=Zt,G.autodetect.push({p:2,test:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("array"===N(t=D(t,"cmyk"))&&4===t.length)return"cmyk"}});const nn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=D(t,"hsla");let i=L(t)||"lsa";return r[0]=z(r[0]||0)+"deg",r[1]=z(100*r[1])+"%",r[2]=z(100*r[2])+"%","hsla"===i||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),i="hsla"):r.length=3,`${i.substr(0,3)}(${r.join(" ")})`},rn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=D(t,"lab");let i=L(t)||"lab";return r[0]=z(r[0])+"%",r[1]=z(r[1]),r[2]=z(r[2]),"laba"===i||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},on=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=D(t,"lch");let i=L(t)||"lab";return r[0]=z(r[0])+"%",r[1]=z(r[1]),r[2]=isNaN(r[2])?"none":z(r[2])+"deg","lcha"===i||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},sn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=D(t,"lab");return r[0]=z(100*r[0])+"%",r[1]=U(r[1]),r[2]=U(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},an=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,i,o,...s]=D(t,"rgb"),[a,l,c]=lt(r,i,o),[u,d,f]=Ie(a,l,c);return[u,d,f,...s.length>0&&s[0]<1?[s[0]]:[]]},ln=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=D(t,"lch");return r[0]=z(100*r[0])+"%",r[1]=U(r[1]),r[2]=isNaN(r[2])?"none":z(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:cn}=Math,un=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=D(t,"rgba");let i=L(t)||"rgb";if("hsl"===i.substr(0,3))return nn(Je(r),i);if("lab"===i.substr(0,3)){const e=ae();se("d50");const t=rn(he(r),i);return se(e),t}if("lch"===i.substr(0,3)){const e=ae();se("d50");const t=on(Ee(r),i);return se(e),t}return"oklab"===i.substr(0,5)?sn(lt(r)):"oklch"===i.substr(0,5)?ln(an(r)):(r[0]=cn(r[0]),r[1]=cn(r[1]),r[2]=cn(r[2]),("rgba"===i||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),i="rgba"),`${i.substr(0,3)}(${r.slice(0,"rgb"===i?3:4).join(" ")})`)},dn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=D(t,"lch");const[r,i,o,...s]=t,[a,l,c]=_e(r,i,o),[u,d,f]=at(a,l,c);return[u,d,f,...s.length>0&&s[0]<1?[s[0]]:[]]},fn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,pn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,hn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,mn=/\s*/.source,yn=/\s+/.source,bn=/\s*,\s*/.source,gn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,vn=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,wn=new RegExp("^rgba?\\("+mn+[fn,fn,fn].join(yn)+vn+"\\)$"),Sn=new RegExp("^rgb\\("+mn+[fn,fn,fn].join(bn)+mn+"\\)$"),_n=new RegExp("^rgba\\("+mn+[fn,fn,fn,pn].join(bn)+mn+"\\)$"),An=new RegExp("^hsla?\\("+mn+[gn,hn,hn].join(yn)+vn+"\\)$"),xn=new RegExp("^hsl?\\("+mn+[gn,hn,hn].join(bn)+mn+"\\)$"),kn=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Cn=new RegExp("^lab\\("+mn+[pn,pn,pn].join(yn)+vn+"\\)$"),Tn=new RegExp("^lch\\("+mn+[pn,pn,gn].join(yn)+vn+"\\)$"),In=new RegExp("^oklab\\("+mn+[pn,pn,pn].join(yn)+vn+"\\)$"),En=new RegExp("^oklch\\("+mn+[pn,pn,gn].join(yn)+vn+"\\)$"),{round:Rn}=Math,On=e=>e.map(((e,t)=>t<=2?O(Rn(e),0,255):e)),Pn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return"string"===typeof e&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,e=r?t+.5*(e+1)*(n-t):t+e*(n-t)),+e},Mn=(e,t)=>"none"===e?t:e,Nn=e=>{if("transparent"===(e=e.toLowerCase().trim()))return[0,0,0,0];let t;if(G.format.named)try{return G.format.named(e)}catch(n){}if((t=e.match(wn))||(t=e.match(Sn))){let e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=+Pn(Mn(e[t],0),0,255);e=On(e);const n=void 0!==t[4]?+Pn(t[4],0,1):1;return e[3]=n,e}if(t=e.match(_n)){const e=t.slice(1,5);for(let t=0;t<4;t++)e[t]=+Pn(e[t],0,255);return e}if((t=e.match(An))||(t=e.match(xn))){const e=t.slice(1,4);e[0]=+Mn(e[0].replace("deg",""),0),e[1]=.01*+Pn(Mn(e[1],0),0,100),e[2]=.01*+Pn(Mn(e[2],0),0,100);const n=On(Qe(e)),r=void 0!==t[4]?+Pn(t[4],0,1):1;return n[3]=r,n}if(t=e.match(kn)){const e=t.slice(1,4);e[1]*=.01,e[2]*=.01;const n=Qe(e);for(let t=0;t<3;t++)n[t]=Rn(n[t]);return n[3]=+t[4],n}if(t=e.match(Cn)){const e=t.slice(1,4);e[0]=Pn(Mn(e[0],0),0,100),e[1]=Pn(Mn(e[1],0),-125,125,!0),e[2]=Pn(Mn(e[2],0),-125,125,!0);const n=ae();se("d50");const r=On(de(e));se(n);const i=void 0!==t[4]?+Pn(t[4],0,1):1;return r[3]=i,r}if(t=e.match(Tn)){const e=t.slice(1,4);e[0]=Pn(e[0],0,100),e[1]=Pn(Mn(e[1],0),0,150,!1),e[2]=+Mn(e[2].replace("deg",""),0);const n=ae();se("d50");const r=On(Ae(e));se(n);const i=void 0!==t[4]?+Pn(t[4],0,1):1;return r[3]=i,r}if(t=e.match(In)){const e=t.slice(1,4);e[0]=Pn(Mn(e[0],0),0,1),e[1]=Pn(Mn(e[1],0),-.4,.4,!0),e[2]=Pn(Mn(e[2],0),-.4,.4,!0);const n=On(at(e)),r=void 0!==t[4]?+Pn(t[4],0,1):1;return n[3]=r,n}if(t=e.match(En)){const e=t.slice(1,4);e[0]=Pn(Mn(e[0],0),0,1),e[1]=Pn(Mn(e[1],0),0,.4,!1),e[2]=+Mn(e[2].replace("deg",""),0);const n=On(dn(e)),r=void 0!==t[4]?+Pn(t[4],0,1):1;return n[3]=r,n}};Nn.test=e=>wn.test(e)||An.test(e)||Cn.test(e)||Tn.test(e)||In.test(e)||En.test(e)||Sn.test(e)||_n.test(e)||xn.test(e)||kn.test(e)||"transparent"===e;const Dn=Nn;K.prototype.css=function(e){return un(this._rgb,e)};X.css=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"css")},G.format.css=Dn,G.autodetect.push({p:5,test:function(e){if((arguments.length<=1||!(arguments.length-1))&&"string"===N(e)&&Dn.test(e))return"css"}}),G.format.gl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=D(t,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};X.gl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"gl")},K.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},K.prototype.hex=function(e){return ne(this._rgb,e)};X.hex=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"hex")},G.format.hex=ee,G.autodetect.push({p:4,test:function(e){if((arguments.length<=1||!(arguments.length-1))&&"string"===N(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Ln}=Math,Bn=e=>{const t=e/100;let n,r,i;return t<66?(n=255,r=t<6?0:-155.25485562709179-.44596950469579133*(r=t-2)+104.49216199393888*Ln(r),i=t<20?0:.8274096064007395*(i=t-10)-254.76935184120902+115.67994401066147*Ln(i)):(n=351.97690566805693+.114206453784165*(n=t-55)-40.25366309332127*Ln(n),r=325.4494125711974+.07943456536662342*(r=t-50)-28.0852963507957*Ln(r),i=255),[n,r,i,1]},{round:Fn}=Math,jn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=D(t,"rgb"),i=r[0],o=r[2];let s=1e3,a=4e4;let l;for(;a-s>.4;){l=.5*(a+s);const e=Bn(l);e[2]/e[0]>=o/i?a=l:s=l}return Fn(l)};K.prototype.temp=K.prototype.kelvin=K.prototype.temperature=function(){return jn(this._rgb)};const zn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"temp")};Object.assign(X,{temp:zn,kelvin:zn,temperature:zn}),G.format.temp=G.format.kelvin=G.format.temperature=Bn,K.prototype.oklch=function(){return an(this._rgb)};Object.assign(X,{oklch:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t,"oklch")}}),G.format.oklch=dn,G.autodetect.push({p:2,test:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("array"===N(t=D(t,"oklch"))&&3===t.length)return"oklch"}}),Object.assign(X,{analyze:Nt,average:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"lrgb",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=e.length;n||(n=Array.from(new Array(r)).map((()=>1)));const i=r/n.reduce((function(e,t){return e+t}));if(n.forEach(((e,t)=>{n[t]*=i})),e=e.map((e=>new K(e))),"lrgb"===t)return bt(e,n);const o=e.shift(),s=o.get(t),a=[];let l=0,c=0;for(let d=0;d<s.length;d++)if(s[d]=(s[d]||0)*n[0],a.push(isNaN(s[d])?0:n[0]),"h"===t.charAt(d)&&!isNaN(s[d])){const e=s[d]/180*pt;l+=ht(e)*n[0],c+=mt(e)*n[0]}let u=o.alpha()*n[0];e.forEach(((e,r)=>{const i=e.get(t);u+=e.alpha()*n[r+1];for(let o=0;o<s.length;o++)if(!isNaN(i[o]))if(a[o]+=n[r+1],"h"===t.charAt(o)){const e=i[o]/180*pt;l+=ht(e)*n[r+1],c+=mt(e)*n[r+1]}else s[o]+=i[o]*n[r+1]}));for(let d=0;d<s.length;d++)if("h"===t.charAt(d)){let e=yt(c/a[d],l/a[d])/pt*180;for(;e<0;)e+=360;for(;e>=360;)e-=360;s[d]=e}else s[d]=s[d]/a[d];return u/=r,new K(s,t).alpha(u>.99999?1:u,!0)},bezier:e=>{const t=function(e){let t,n,r,i;if(2===(e=e.map((e=>new K(e)))).length)[n,r]=e.map((e=>e.lab())),t=function(e){const t=[0,1,2].map((t=>n[t]+e*(r[t]-n[t])));return new K(t,"lab")};else if(3===e.length)[n,r,i]=e.map((e=>e.lab())),t=function(e){const t=[0,1,2].map((t=>(1-e)*(1-e)*n[t]+2*(1-e)*e*r[t]+e*e*i[t]));return new K(t,"lab")};else if(4===e.length){let o;[n,r,i,o]=e.map((e=>e.lab())),t=function(e){const t=[0,1,2].map((t=>(1-e)*(1-e)*(1-e)*n[t]+3*(1-e)*(1-e)*e*r[t]+3*(1-e)*e*e*i[t]+e*e*e*o[t]));return new K(t,"lab")}}else{if(!(e.length>=5))throw new RangeError("No point in running bezier with only one color.");{let n,r,i;n=e.map((e=>e.lab())),i=e.length-1,r=function(e){let t=[1,1];for(let n=1;n<e;n++){let e=[1];for(let n=1;n<=t.length;n++)e[n]=(t[n]||0)+t[n-1];t=e}return t}(i),t=function(e){const t=1-e,o=[0,1,2].map((o=>n.reduce(((n,s,a)=>n+r[a]*t**(i-a)*e**a*s[o]),0)));return new K(o,"lab")}}}return t}(e);return t.scale=()=>vt(t),t},blend:xt,brewer:Jt,Color:K,colors:Q,contrast:(e,t)=>{e=new K(e),t=new K(t);const n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},contrastAPCA:(e,t)=>{e=new K(e),t=new K(t),e.alpha()<1&&(e=ve(t,e,e.alpha(),"rgb"));const n=Bt(...e.rgb()),r=Bt(...t.rgb()),i=n>=Lt?n:n+Math.pow(Lt-n,1.414),o=r>=Lt?r:r+Math.pow(Lt-r,1.414),s=Math.pow(o,.56)-Math.pow(i,.57),a=Math.pow(o,.65)-Math.pow(i,.62),l=Math.abs(o-i)<5e-4?0:i<o?1.14*s:1.14*a;return 100*(Math.abs(l)<.1?0:l>0?l-.027:l+.027)},cubehelix:function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1.5,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[0,1],s=0;"array"===N(o)?e=o[1]-o[0]:(e=0,o=[o,o]);const a=function(a){const l=$*((t+120)/360+n*a),c=kt(o[0]+e*a,i),u=(0!==s?r[0]+a*s:r)*c*(1-c)/2,d=Tt(l),f=Ct(l);return X(P([255*(c+u*(-.14861*d+1.78277*f)),255*(c+u*(-.29227*d-.90649*f)),255*(c+u*(1.97294*d)),1]))};return a.start=function(e){return null==e?t:(t=e,a)},a.rotations=function(e){return null==e?n:(n=e,a)},a.gamma=function(e){return null==e?i:(i=e,a)},a.hue=function(e){return null==e?r:(r=e,"array"===N(r)?(s=r[1]-r[0],0===s&&(r=r[1])):s=0,a)},a.lightness=function(t){return null==t?o:("array"===N(t)?(o=t,e=t[1]-t[0]):(o=[t,t],e=0),a)},a.scale=()=>X.scale(a),a.hue(r),a},deltaE:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;var o=function(e){return 360*e/(2*Gt)},s=function(e){return 2*Gt*e/360};e=new K(e),t=new K(t);const[a,l,c]=Array.from(e.lab()),[u,d,f]=Array.from(t.lab()),p=(a+u)/2,h=(Ft(jt(l,2)+jt(c,2))+Ft(jt(d,2)+jt(f,2)))/2,m=.5*(1-Ft(jt(h,7)/(jt(h,7)+jt(25,7)))),y=l*(1+m),b=d*(1+m),g=Ft(jt(y,2)+jt(c,2)),v=Ft(jt(b,2)+jt(f,2)),w=(g+v)/2,S=o($t(c,y)),_=o($t(f,b)),A=S>=0?S:S+360,x=_>=0?_:_+360,k=Vt(A-x)>180?(A+x+360)/2:(A+x)/2,C=1-.17*Wt(s(k-30))+.24*Wt(s(2*k))+.32*Wt(s(3*k+6))-.2*Wt(s(4*k-63));let T=x-A;T=Vt(T)<=180?T:x<=A?T+360:T-360,T=2*Ft(g*v)*Ht(s(T)/2);const I=u-a,E=v-g,R=1+.015*jt(p-50,2)/Ft(20+jt(p-50,2)),O=1+.045*w,P=1+.015*w*C,M=30*Yt(-jt((k-275)/25,2)),N=-(2*Ft(jt(w,7)/(jt(w,7)+jt(25,7))))*Ht(2*s(M)),D=Ft(jt(I/(n*R),2)+jt(E/(r*O),2)+jt(T/(i*P),2)+N*(E/(r*O))*(T/(i*P)));return Ut(0,zt(100,D))},distance:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"lab";e=new K(e),t=new K(t);const r=e.get(n),i=t.get(n);let o=0;for(let s in r){const e=(r[s]||0)-(i[s]||0);o+=e*e}return Math.sqrt(o)},input:G,interpolate:ve,limits:Dt,mix:ve,random:()=>{let e="#";for(let t=0;t<6;t++)e+="0123456789abcdef".charAt(It(16*Et()));return new K(e,"hex")},scale:vt,scales:Kt,valid:function(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new K(...t),!0}catch(r){return!1}}});const Un=X,$n=e=>{const{theme:t}=(0,l.useRenderData)(),n=JSON.stringify(t),r=o.useMemo((()=>{const e=JSON.parse(n);if(null==e)return;const t=Un.scale([e.textColor,e.backgroundColor]).mode("lab");return(0,c.A)({palette:{primary:{main:e.primaryColor},background:{default:e.backgroundColor,paper:e.secondaryBackgroundColor},text:{primary:e.textColor,secondary:t(.1).hex(),disabled:t(.5).hex()}},typography:{fontFamily:e.font}})}),[n]);return null==r?(0,m.jsx)(m.Fragment,{children:e.children}):(0,m.jsx)(I,{theme:r,children:e.children})};var Vn=n(2384),Wn=n(1087),Hn=n(6325);const Yn=(0,Hn.A)();const Gn=function(){return g(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yn)};const Kn=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const i=Gn(r),o="function"===typeof t?t(n&&i[n]||i):t;return(0,m.jsx)(Wn.A,{styles:o})};var qn=n(7088);const Xn=function(e){return(0,m.jsx)(Kn,(0,u.A)({},e,{defaultTheme:qn.A,themeId:C.A}))},Qn=(e,t)=>(0,u.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Jn=e=>(0,u.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});const Zn=function(e){const t=(0,Vn.b)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return(0,m.jsxs)(o.Fragment,{children:[(0,m.jsx)(Xn,{styles:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{let[n,i]=t;var o;r[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(o=i.palette)?void 0:o.mode}}));let i=(0,u.A)({html:Qn(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,u.A)({margin:0},Jn(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return o&&(i=[i,o]),i}(e,r)}),n]})},er=o.createContext(void 0),tr=e=>{const t=(0,o.useContext)(er);return null==t?null:t[e]},nr=e=>{const t=(0,l.useRenderData)(),{start:n,stop:r,select_device:i,device_ask_permission:s,device_not_available:a,device_access_denied:c,media_api_not_available:u}=t.args.translations||{},d=(0,o.useMemo)((()=>({start:n,stop:r,select_device:i,device_ask_permission:s,device_not_available:a,device_access_denied:c,media_api_not_available:u})),[n,r,i,s,a,c,u]);return(0,m.jsx)(er.Provider,{value:d,children:e.children})},rr=o.memo(nr);var ir=n(1099),or=n(1076),sr=n(5514),ar=n(5800);const lr=["className","component"];var cr=n(896),ur=n(2458);const dr=(0,ur.A)("MuiBox",["root"]),fr=(0,c.A)(),pr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=(0,or.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(sr.A);return o.forwardRef((function(e,o){const a=Gn(n),l=(0,ar.A)(e),{className:c,component:f="div"}=l,p=(0,d.A)(l,lr);return(0,m.jsx)(s,(0,u.A)({as:f,ref:o,className:(0,ir.A)(c,i?i(r):r),theme:t&&a[t]||a},p))}))}({themeId:C.A,defaultTheme:fr,defaultClassName:dr.root,generateClassName:cr.A.generate}),hr=pr;var mr=n(9360),yr=n(2388),br=n(3725),gr=n(1876);const vr=function(e){return"string"===typeof e};const wr=function(e,t,n){return void 0===e||vr(e)?t:(0,u.A)({},t,{ownerState:(0,u.A)({},t.ownerState,n)})};const Sr=function(e,t,n){return"function"===typeof e?e(t,n):e};const _r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n};const Ar=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t};const xr=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=(0,ir.A)(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=(0,u.A)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),s=(0,u.A)({},n,i,r);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=_r((0,u.A)({},i,r)),a=Ar(r),l=Ar(i),c=t(s),d=(0,ir.A)(null==c?void 0:c.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),f=(0,u.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),p=(0,u.A)({},c,n,l,a);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}},kr=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Cr=["component","slots","slotProps"],Tr=["component"];function Ir(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:a}=t,l=(0,d.A)(t,kr),{component:c,slots:f={[e]:void 0},slotProps:p={[e]:void 0}}=o,h=(0,d.A)(o,Cr),m=f[e]||r,y=Sr(p[e],i),b=xr((0,u.A)({className:n},l,{externalForwardedProps:"root"===e?h:void 0,externalSlotProps:y})),{props:{component:g},internalRef:v}=b,w=(0,d.A)(b.props,Tr),S=(0,gr.A)(v,null==y?void 0:y.ref,t.ref),_=s?s(w):{},A=(0,u.A)({},i,_),x="root"===e?g||c:g,k=wr(m,(0,u.A)({},"root"===e&&!c&&!f[e]&&a,"root"!==e&&!f[e]&&a,w,x&&{as:x},{ref:S}),A);return Object.keys(_).forEach((e=>{delete k[e]})),[m,k]}var Er=n(3637);const Rr=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var Or=n(8210);function Pr(e){return(0,Or.Ay)("MuiPaper",e)}(0,ur.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Mr=["className","component","elevation","square","variant"],Nr=(0,br.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,u.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===n.variant&&(0,u.A)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,yr.X4)("#fff",Rr(n.elevation))}, ${(0,yr.X4)("#fff",Rr(n.elevation))})`},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),Dr=o.forwardRef((function(e,t){const n=(0,Vn.b)({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:s=!1,variant:a="elevation"}=n,l=(0,d.A)(n,Mr),c=(0,u.A)({},n,{component:i,elevation:o,square:s,variant:a}),f=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,mr.A)(o,Pr,i)})(c);return(0,m.jsx)(Nr,(0,u.A)({as:i,ownerState:c,className:(0,ir.A)(f.root,r),ref:t},l))}));function Lr(e){return(0,Or.Ay)("MuiAlert",e)}const Br=(0,ur.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var Fr=n(4847),jr=n(2962),zr=n(4947);function Ur(e,t){return Ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ur(e,t)}const $r=o.createContext(null);function Vr(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function Wr(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Hr(e,t,n){var r=Vr(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];a[i[l][r]]=n(c)}a[l]=n(l)}for(r=0;r<o.length;r++)a[o[r]]=n(o[r]);return a}(t,r);return Object.keys(i).forEach((function(s){var a=i[s];if((0,o.isValidElement)(a)){var l=s in t,c=s in r,u=t[s],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[s]=(0,o.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:Wr(a,"exit",e),enter:Wr(a,"enter",e)})):i[s]=(0,o.cloneElement)(a,{in:!1}):i[s]=(0,o.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:Wr(a,"exit",e),enter:Wr(a,"enter",e)})}})),i}var Yr=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Gr=function(e){var t,n;function r(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Ur(t,n);var i=r.prototype;return i.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,s=t.handleExited;return{children:t.firstRender?(n=e,r=s,Vr(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:Wr(e,"appear",n),enter:Wr(e,"enter",n),exit:Wr(e,"exit",n)})}))):Hr(e,i,s),firstRender:!1}},i.handleExited=function(e,t){var n=Vr(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,u.A)({},t.children);return delete n[e.key],{children:n}})))},i.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,d.A)(e,["component","childFactory"]),i=this.state.contextValue,s=Yr(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement($r.Provider,{value:i},s):o.createElement($r.Provider,{value:i},o.createElement(t,r,s))},r}(o.Component);Gr.propTypes={},Gr.defaultProps={component:"div",childFactory:function(e){return e}};const Kr=Gr;var qr=n(4304),Xr=n(1421);const Qr=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,f]=o.useState(!1),p=(0,ir.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+s,left:-a/2+i},y=(0,ir.A)(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||f(!0),o.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,m.jsx)("span",{className:p,style:h,children:(0,m.jsx)("span",{className:y})})};const Jr=(0,ur.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zr=["center","classes","className"];let ei,ti,ni,ri,ii=e=>e;const oi=(0,qr.i7)(ei||(ei=ii`
|
3
|
-
0% {
|
4
|
-
transform: scale(0);
|
5
|
-
opacity: 0.1;
|
6
|
-
}
|
7
|
-
|
8
|
-
100% {
|
9
|
-
transform: scale(1);
|
10
|
-
opacity: 0.3;
|
11
|
-
}
|
12
|
-
`)),si=(0,qr.i7)(ti||(ti=ii`
|
13
|
-
0% {
|
14
|
-
opacity: 1;
|
15
|
-
}
|
16
|
-
|
17
|
-
100% {
|
18
|
-
opacity: 0;
|
19
|
-
}
|
20
|
-
`)),ai=(0,qr.i7)(ni||(ni=ii`
|
21
|
-
0% {
|
22
|
-
transform: scale(1);
|
23
|
-
}
|
24
|
-
|
25
|
-
50% {
|
26
|
-
transform: scale(0.92);
|
27
|
-
}
|
28
|
-
|
29
|
-
100% {
|
30
|
-
transform: scale(1);
|
31
|
-
}
|
32
|
-
`)),li=(0,br.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ci=(0,br.Ay)(Qr,{name:"MuiTouchRipple",slot:"Ripple"})(ri||(ri=ii`
|
33
|
-
opacity: 0;
|
34
|
-
position: absolute;
|
35
|
-
|
36
|
-
&.${0} {
|
37
|
-
opacity: 0.3;
|
38
|
-
transform: scale(1);
|
39
|
-
animation-name: ${0};
|
40
|
-
animation-duration: ${0}ms;
|
41
|
-
animation-timing-function: ${0};
|
42
|
-
}
|
43
|
-
|
44
|
-
&.${0} {
|
45
|
-
animation-duration: ${0}ms;
|
46
|
-
}
|
47
|
-
|
48
|
-
& .${0} {
|
49
|
-
opacity: 1;
|
50
|
-
display: block;
|
51
|
-
width: 100%;
|
52
|
-
height: 100%;
|
53
|
-
border-radius: 50%;
|
54
|
-
background-color: currentColor;
|
55
|
-
}
|
56
|
-
|
57
|
-
& .${0} {
|
58
|
-
opacity: 0;
|
59
|
-
animation-name: ${0};
|
60
|
-
animation-duration: ${0}ms;
|
61
|
-
animation-timing-function: ${0};
|
62
|
-
}
|
63
|
-
|
64
|
-
& .${0} {
|
65
|
-
position: absolute;
|
66
|
-
/* @noflip */
|
67
|
-
left: 0px;
|
68
|
-
top: 0;
|
69
|
-
animation-name: ${0};
|
70
|
-
animation-duration: 2500ms;
|
71
|
-
animation-timing-function: ${0};
|
72
|
-
animation-iteration-count: infinite;
|
73
|
-
animation-delay: 200ms;
|
74
|
-
}
|
75
|
-
`),Jr.rippleVisible,oi,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Jr.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),Jr.child,Jr.childLeaving,si,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Jr.childPulsate,ai,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),ui=o.forwardRef((function(e,t){const n=(0,Vn.b)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:s}=n,a=(0,d.A)(n,Zr),[l,c]=o.useState([]),f=o.useRef(0),p=o.useRef(null);o.useEffect((()=>{p.current&&(p.current(),p.current=null)}),[l]);const h=o.useRef(!1),y=(0,Xr.A)(),b=o.useRef(null),g=o.useRef(null),v=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:s}=e;c((e=>[...e,(0,m.jsx)(ci,{classes:{ripple:(0,ir.A)(i.ripple,Jr.ripple),rippleVisible:(0,ir.A)(i.rippleVisible,Jr.rippleVisible),ripplePulsate:(0,ir.A)(i.ripplePulsate,Jr.ripplePulsate),child:(0,ir.A)(i.child,Jr.child),childLeaving:(0,ir.A)(i.childLeaving,Jr.childLeaving),childPulsate:(0,ir.A)(i.childPulsate,Jr.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},f.current)])),f.current+=1,p.current=s}),[i]),w=o.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&h.current)return void(h.current=!1);"touchstart"===(null==e?void 0:e.type)&&(h.current=!0);const a=s?null:g.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===b.current&&(b.current=()=>{v({pulsate:i,rippleX:c,rippleY:u,rippleSize:d,cb:n})},y.start(80,(()=>{b.current&&(b.current(),b.current=null)}))):v({pulsate:i,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,v,y]),S=o.useCallback((()=>{w({},{pulsate:!0})}),[w]),_=o.useCallback(((e,t)=>{if(y.clear(),"touchend"===(null==e?void 0:e.type)&&b.current)return b.current(),b.current=null,void y.start(0,(()=>{_(e,t)}));b.current=null,c((e=>e.length>0?e.slice(1):e)),p.current=t}),[y]);return o.useImperativeHandle(t,(()=>({pulsate:S,start:w,stop:_})),[S,w,_]),(0,m.jsx)(li,(0,u.A)({className:(0,ir.A)(Jr.root,i.root,s),ref:g},a,{children:(0,m.jsx)(Kr,{component:null,exit:!0,children:l})}))}));function di(e){return(0,Or.Ay)("MuiButtonBase",e)}const fi=(0,ur.A)("MuiButtonBase",["root","disabled","focusVisible"]),pi=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],hi=(0,br.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fi.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mi=o.forwardRef((function(e,t){const n=(0,Vn.b)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:h=!1,LinkComponent:y="a",onBlur:b,onClick:g,onContextMenu:v,onDragLeave:w,onFocus:S,onFocusVisible:_,onKeyDown:A,onKeyUp:x,onMouseDown:k,onMouseLeave:C,onMouseUp:T,onTouchEnd:I,onTouchMove:E,onTouchStart:R,tabIndex:O=0,TouchRippleProps:P,touchRippleRef:M,type:N}=n,D=(0,d.A)(n,pi),L=o.useRef(null),B=o.useRef(null),F=(0,Fr.A)(B,M),{isFocusVisibleRef:j,onFocus:z,onBlur:U,ref:$}=(0,zr.A)(),[V,W]=o.useState(!1);c&&V&&W(!1),o.useImperativeHandle(r,(()=>({focusVisible:()=>{W(!0),L.current.focus()}})),[]);const[H,Y]=o.useState(!1);o.useEffect((()=>{Y(!0)}),[]);const G=H&&!f&&!c;function K(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;return(0,jr.A)((r=>{t&&t(r);return!n&&B.current&&B.current[e](r),!0}))}o.useEffect((()=>{V&&h&&!f&&H&&B.current.pulsate()}),[f,h,V,H]);const q=K("start",k),X=K("stop",v),Q=K("stop",w),J=K("stop",T),Z=K("stop",(e=>{V&&e.preventDefault(),C&&C(e)})),ee=K("start",R),te=K("stop",I),ne=K("stop",E),re=K("stop",(e=>{U(e),!1===j.current&&W(!1),b&&b(e)}),!1),ie=(0,jr.A)((e=>{L.current||(L.current=e.currentTarget),z(e),!0===j.current&&(W(!0),_&&_(e)),S&&S(e)})),oe=()=>{const e=L.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},se=o.useRef(!1),ae=(0,jr.A)((e=>{h&&!se.current&&V&&B.current&&" "===e.key&&(se.current=!0,B.current.stop(e,(()=>{B.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),A&&A(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!c&&(e.preventDefault(),g&&g(e))})),le=(0,jr.A)((e=>{h&&" "===e.key&&B.current&&V&&!e.defaultPrevented&&(se.current=!1,B.current.stop(e,(()=>{B.current.pulsate(e)}))),x&&x(e),g&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let ce=l;"button"===ce&&(D.href||D.to)&&(ce=y);const ue={};"button"===ce?(ue.type=void 0===N?"button":N,ue.disabled=c):(D.href||D.to||(ue.role="button"),c&&(ue["aria-disabled"]=c));const de=(0,Fr.A)(t,$,L);const fe=(0,u.A)({},n,{centerRipple:i,component:l,disabled:c,disableRipple:f,disableTouchRipple:p,focusRipple:h,tabIndex:O,focusVisible:V}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},s=(0,mr.A)(o,di,i);return n&&r&&(s.root+=` ${r}`),s})(fe);return(0,m.jsxs)(hi,(0,u.A)({as:ce,className:(0,ir.A)(pe.root,a),ownerState:fe,onBlur:re,onClick:g,onContextMenu:X,onFocus:ie,onKeyDown:ae,onKeyUp:le,onMouseDown:q,onMouseLeave:Z,onMouseUp:J,onDragLeave:Q,onTouchEnd:te,onTouchMove:ne,onTouchStart:ee,ref:de,tabIndex:c?-1:O,type:N},ue,D,{children:[s,G?(0,m.jsx)(ui,(0,u.A)({ref:F,center:i},P)):null]}))})),yi=mi;function bi(e){return(0,Or.Ay)("MuiIconButton",e)}const gi=(0,ur.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),vi=["edge","children","className","color","disabled","disableFocusRipple","size"],wi=(0,br.Ay)(yi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Er.A)(n.color)}`],n.edge&&t[`edge${(0,Er.A)(n.edge)}`],t[`size${(0,Er.A)(n.size)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,u.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,yr.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const i=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,u.A)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,u.A)({color:null==i?void 0:i.main},!n.disableRipple&&{"&:hover":(0,u.A)({},i&&{backgroundColor:t.vars?`rgba(${i.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,yr.X4)(i.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${gi.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),Si=o.forwardRef((function(e,t){const n=(0,Vn.b)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:o,color:s="default",disabled:a=!1,disableFocusRipple:l=!1,size:c="medium"}=n,f=(0,d.A)(n,vi),p=(0,u.A)({},n,{edge:r,color:s,disabled:a,disableFocusRipple:l,size:c}),h=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled","default"!==r&&`color${(0,Er.A)(r)}`,i&&`edge${(0,Er.A)(i)}`,`size${(0,Er.A)(o)}`]};return(0,mr.A)(s,bi,t)})(p);return(0,m.jsx)(wi,(0,u.A)({className:(0,ir.A)(h.root,o),centerRipple:!0,focusRipple:!l,disabled:a,ref:t},f,{ownerState:p,children:i}))}));var _i=n(6946);const Ai=(0,_i.A)((0,m.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),xi=(0,_i.A)((0,m.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),ki=(0,_i.A)((0,m.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Ci=(0,_i.A)((0,m.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Ti=(0,_i.A)((0,m.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Ii=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Ei=(0,br.Ay)(Dr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,Er.A)(n.color||n.severity)}`]]}})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?yr.e$:yr.a,r="light"===t.palette.mode?yr.a:yr.e$;return(0,u.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[i]=e;return{props:{colorSeverity:i,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${i}Color`]:n(t.palette[i].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${i}StandardBg`]:r(t.palette[i].light,.9),[`& .${Br.icon}`]:t.vars?{color:t.vars.palette.Alert[`${i}IconColor`]}:{color:t.palette[i].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:n(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${Br.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.dark})).map((e=>{let[n]=e;return{props:{colorSeverity:n,variant:"filled"},style:(0,u.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${n}FilledColor`],backgroundColor:t.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:"dark"===t.palette.mode?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)})}}))]})})),Ri=(0,br.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Oi=(0,br.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Pi=(0,br.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Mi={success:(0,m.jsx)(Ai,{fontSize:"inherit"}),warning:(0,m.jsx)(xi,{fontSize:"inherit"}),error:(0,m.jsx)(ki,{fontSize:"inherit"}),info:(0,m.jsx)(Ci,{fontSize:"inherit"})},Ni=o.forwardRef((function(e,t){const n=(0,Vn.b)({props:e,name:"MuiAlert"}),{action:r,children:i,className:o,closeText:s="Close",color:a,components:l={},componentsProps:c={},icon:f,iconMapping:p=Mi,onClose:h,role:y="alert",severity:b="success",slotProps:g={},slots:v={},variant:w="standard"}=n,S=(0,d.A)(n,Ii),_=(0,u.A)({},n,{color:a,severity:b,variant:w,colorSeverity:a||b}),A=(e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${(0,Er.A)(n||r)}`,`${t}${(0,Er.A)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,mr.A)(o,Lr,i)})(_),x={slots:(0,u.A)({closeButton:l.CloseButton,closeIcon:l.CloseIcon},v),slotProps:(0,u.A)({},c,g)},[k,C]=Ir("closeButton",{elementType:Si,externalForwardedProps:x,ownerState:_}),[T,I]=Ir("closeIcon",{elementType:Ti,externalForwardedProps:x,ownerState:_});return(0,m.jsxs)(Ei,(0,u.A)({role:y,elevation:0,ownerState:_,className:(0,ir.A)(A.root,o),ref:t},S,{children:[!1!==f?(0,m.jsx)(Ri,{ownerState:_,className:A.icon,children:f||p[b]||Mi[b]}):null,(0,m.jsx)(Oi,{ownerState:_,className:A.message,children:i}),null!=r?(0,m.jsx)(Pi,{ownerState:_,className:A.action,children:r}):null,null==r&&h?(0,m.jsx)(Pi,{ownerState:_,className:A.action,children:(0,m.jsx)(k,(0,u.A)({size:"small","aria-label":s,title:s,color:"inherit",onClick:h},C,{children:(0,m.jsx)(T,(0,u.A)({fontSize:"small"},I))}))}):null]}))}));var Di=n(3044),Li=n(3446);function Bi(e){return(0,Or.Ay)("MuiButton",e)}const Fi=(0,ur.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const ji=o.createContext({});const zi=o.createContext(void 0),Ui=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$i=e=>(0,u.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Vi=(0,br.Ay)(yi,{shouldForwardProp:e=>(0,Li.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,Er.A)(n.color)}`],t[`size${(0,Er.A)(n.size)}`],t[`${n.variant}Size${(0,Er.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;const o="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],s="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,u.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,u.A)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,yr.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,yr.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,yr.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,u.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${Fi.focusVisible}`]:(0,u.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${Fi.disabled}`]:(0,u.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,yr.X4)(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:o,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fi.disabled}`]:{boxShadow:"none"}}})),Wi=(0,br.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,Er.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,u.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},$i(t))})),Hi=(0,br.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,Er.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,u.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},$i(t))})),Yi=o.forwardRef((function(e,t){const n=o.useContext(ji),r=o.useContext(zi),i=(0,Di.A)(n,e),s=(0,Vn.b)({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:f,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:g,fullWidth:v=!1,size:w="medium",startIcon:S,type:_,variant:A="text"}=s,x=(0,d.A)(s,Ui),k=(0,u.A)({},s,{color:l,component:c,disabled:p,disableElevation:h,disableFocusRipple:y,fullWidth:v,size:w,type:_,variant:A}),C=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,a={root:["root",o,`${o}${(0,Er.A)(t)}`,`size${(0,Er.A)(i)}`,`${o}Size${(0,Er.A)(i)}`,`color${(0,Er.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,Er.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,Er.A)(i)}`]},l=(0,mr.A)(a,Bi,s);return(0,u.A)({},s,l)})(k),T=S&&(0,m.jsx)(Wi,{className:C.startIcon,ownerState:k,children:S}),I=b&&(0,m.jsx)(Hi,{className:C.endIcon,ownerState:k,children:b}),E=r||"";return(0,m.jsxs)(Vi,(0,u.A)({ownerState:k,className:(0,ir.A)(n.className,C.root,f,E),component:c,disabled:p,focusRipple:!y,focusVisibleClassName:(0,ir.A)(C.focusVisible,g),ref:t,type:_},x,{classes:C,children:[T,a,I]}))})),Gi=Yi;var Ki=n(7874);const qi=["ownerState"],Xi=["variants"],Qi=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ji(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Zi=(0,Hn.A)(),eo=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function to(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function no(e){return e?(t,n)=>n[e]:null}function ro(e,t){let{ownerState:n}=t,r=(0,d.A)(t,qi);const i="function"===typeof e?e((0,u.A)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>ro(e,(0,u.A)({ownerState:n},r))));if(i&&"object"===typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,d.A)(i,Xi);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,u.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,u.A)({ownerState:n},r,n)):e.style))})),t}return i}const io=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=Zi,rootShouldForwardProp:r=Ji,slotShouldForwardProp:i=Ji}=e,o=e=>(0,sr.A)((0,u.A)({},e,{theme:to((0,u.A)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,or.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=no(eo(l))}=s,h=(0,d.A)(s,Qi),m=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,y=f||!1;let b=Ji;"Root"===l||"root"===l?b=r:l?b=i:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(b=void 0);const g=(0,or.default)(e,(0,u.A)({shouldForwardProp:b,label:undefined},h)),v=e=>"function"===typeof e&&e.__emotion_real!==e||(0,Ki.Q)(e)?r=>ro(e,(0,u.A)({},r,{theme:to({theme:r.theme,defaultTheme:n,themeId:t})})):e,w=function(r){let i=v(r);for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];const d=l?l.map(v):[];a&&p&&d.push((e=>{const r=to((0,u.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[a]||!r.components[a].styleOverrides)return null;const i=r.components[a].styleOverrides,o={};return Object.entries(i).forEach((t=>{let[n,i]=t;o[n]=ro(i,(0,u.A)({},e,{theme:r}))})),p(e,o)})),a&&!m&&d.push((e=>{var r;const i=to((0,u.A)({},e,{defaultTheme:n,themeId:t}));return ro({variants:null==i||null==(r=i.components)||null==(r=r[a])?void 0:r.variants},(0,u.A)({},e,{theme:i}))})),y||d.push(o);const f=d.length-l.length;if(Array.isArray(r)&&f>0){const e=new Array(f).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const h=g(i,...d);return e.muiName&&(h.muiName=e.muiName),h};return g.withConfig&&(w.withConfig=g.withConfig),w}}(),oo=io;function so(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,Di.A)(t.components[n].defaultProps,r):r}var ao=n(129),lo=n(3742);const co=["component","direction","spacing","divider","children","className","useFlexGap"],uo=(0,Hn.A)(),fo=oo("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function po(e){return function(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,o=Gn(r);return i&&(o=o[i]||o),so({theme:o,name:n,props:t})}({props:e,name:"MuiStack",defaultTheme:uo})}function ho(e,t){const n=o.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,i)=>(e.push(r),i<n.length-1&&e.push(o.cloneElement(t,{key:`separator-${i}`})),e)),[])}const mo=e=>{let{ownerState:t,theme:n}=e,r=(0,u.A)({display:"flex",flexDirection:"column"},(0,ao.NI)({theme:n},(0,ao.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,lo.LX)(n),i=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),o=(0,ao.kW)({values:t.direction,base:i}),s=(0,ao.kW)({values:t.spacing,base:i});"object"===typeof o&&Object.keys(o).forEach(((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}}));const a=(n,r)=>{return t.useFlexGap?{gap:(0,lo._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=r?o[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,lo._W)(e,n)}};var i};r=(0,Ki.A)(r,(0,ao.NI)({theme:n},s,a))}return r=(0,ao.iZ)(n.breakpoints,r),r};const yo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=fo,useThemeProps:n=po,componentName:r="MuiStack"}=e,i=t(mo),s=o.forwardRef((function(e,t){const o=n(e),s=(0,ar.A)(o),{component:a="div",direction:l="column",spacing:c=0,divider:f,children:p,className:h,useFlexGap:y=!1}=s,b=(0,d.A)(s,co),g={direction:l,spacing:c,useFlexGap:y},v=(0,mr.A)({root:["root"]},(e=>(0,Or.Ay)(r,e)),{});return(0,m.jsx)(i,(0,u.A)({as:a,ownerState:g,ref:t,className:(0,ir.A)(v.root,h)},b,{children:f?ho(p,f):p}))}));return s}({createStyledComponent:(0,br.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Vn.b)({props:e,name:"MuiStack"})}),bo=yo;var go=n(8415);function vo(e){return(0,Or.Ay)("MuiNativeSelect",e)}const wo=(0,ur.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),So=["className","disabled","error","IconComponent","inputRef","variant"],_o=(0,br.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Li.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${wo.multiple}`]:t.multiple}]}})((e=>{let{ownerState:t,theme:n}=e;return(0,u.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,u.A)({},n.vars?{backgroundColor:`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${wo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})})),Ao=(0,br.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Er.A)(n.variant)}`],n.open&&t.iconOpen]}})((e=>{let{ownerState:t,theme:n}=e;return(0,u.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,[`&.${wo.disabled}`]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})})),xo=o.forwardRef((function(e,t){const{className:n,disabled:r,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=e,c=(0,d.A)(e,So),f=(0,u.A)({},e,{disabled:r,variant:l,error:i}),p=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${(0,Er.A)(n)}`,o&&"iconOpen",r&&"disabled"]};return(0,mr.A)(a,vo,t)})(f);return(0,m.jsxs)(o.Fragment,{children:[(0,m.jsx)(_o,(0,u.A)({ownerState:f,className:(0,ir.A)(p.select,n),disabled:r,ref:a||t},c)),e.multiple?null:(0,m.jsx)(Ao,{as:s,ownerState:f,className:p.icon})]})}));function ko(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}const Co=o.createContext(void 0);function To(){return o.useContext(Co)}const Io=(0,_i.A)((0,m.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var Eo=n(1098),Ro=n(7658),Oo=n(1998),Po=n(3770);const Mo=["onChange","maxRows","minRows","style","value"];function No(e){return parseInt(e,10)||0}const Do={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const Lo=o.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:i=1,style:s,value:a}=e,l=(0,d.A)(e,Mo),{current:c}=o.useRef(null!=a),f=o.useRef(null),p=(0,gr.A)(t,f),h=o.useRef(null),y=o.useRef(null),b=o.useCallback((()=>{const t=f.current,n=(0,Ro.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const o=y.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const s=n.boxSizing,a=No(n.paddingBottom)+No(n.paddingTop),l=No(n.borderBottomWidth)+No(n.borderTopWidth),c=o.scrollHeight;o.value="x";const u=o.scrollHeight;let d=c;i&&(d=Math.max(Number(i)*u,d)),r&&(d=Math.min(Number(r)*u,d)),d=Math.max(d,u);return{outerHeightStyle:d+("border-box"===s?a+l:0),overflowing:Math.abs(d-c)<=1}}),[r,i,e.placeholder]),g=o.useCallback((()=>{const e=b();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=f.current;h.current!==n&&(h.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[b]);(0,Oo.A)((()=>{const e=()=>{g()};let t;const n=(0,Po.A)(e),r=f.current,i=(0,Ro.A)(r);let o;return i.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),i.removeEventListener("resize",n),o&&o.disconnect()}}),[b,g]),(0,Oo.A)((()=>{g()}));return(0,m.jsxs)(o.Fragment,{children:[(0,m.jsx)("textarea",(0,u.A)({value:a,onChange:e=>{c||g(),n&&n(e)},ref:p,rows:i,style:s},l)),(0,m.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:(0,u.A)({},Do,s,{paddingTop:0,paddingBottom:0})})]})})),Bo=Lo;var Fo=n(1559);function jo(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function zo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(jo(e.value)&&""!==e.value||t&&jo(e.defaultValue)&&""!==e.defaultValue)}function Uo(e){return(0,Or.Ay)("MuiInputBase",e)}const $o=(0,ur.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Vo=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Wo=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,Er.A)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ho=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Yo=(0,br.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wo})((e=>{let{theme:t,ownerState:n}=e;return(0,u.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${$o.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,u.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),Go=(0,br.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ho})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,i=(0,u.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),o={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,u.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${$o.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${$o.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),Ko=(0,m.jsx)(Xn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qo=o.forwardRef((function(e,t){var n;const r=(0,Vn.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:f={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:y,endAdornment:b,fullWidth:g=!1,id:v,inputComponent:w="input",inputProps:S={},inputRef:_,maxRows:A,minRows:x,multiline:k=!1,name:C,onBlur:T,onChange:I,onClick:E,onFocus:R,onKeyDown:O,onKeyUp:P,placeholder:M,readOnly:N,renderSuffix:D,rows:L,slotProps:B={},slots:F={},startAdornment:j,type:z="text",value:U}=r,$=(0,d.A)(r,Vo),V=null!=S.value?S.value:U,{current:W}=o.useRef(null!=V),H=o.useRef(),Y=o.useCallback((e=>{0}),[]),G=(0,Fr.A)(H,_,S.ref,Y),[K,q]=o.useState(!1),X=To();const Q=ko({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=X?X.focused:K,o.useEffect((()=>{!X&&h&&K&&(q(!1),T&&T())}),[X,h,K,T]);const J=X&&X.onFilled,Z=X&&X.onEmpty,ee=o.useCallback((e=>{zo(e)?J&&J():Z&&Z()}),[J,Z]);(0,Fo.A)((()=>{W&&ee({value:V})}),[V,ee,W]);o.useEffect((()=>{ee(H.current)}),[]);let te=w,ne=S;k&&"input"===te&&(ne=L?(0,u.A)({type:void 0,minRows:L,maxRows:L},ne):(0,u.A)({type:void 0,maxRows:A,minRows:x},ne),te=Bo);o.useEffect((()=>{X&&X.setAdornedStart(Boolean(j))}),[X,j]);const re=(0,u.A)({},r,{color:Q.color||"primary",disabled:Q.disabled,endAdornment:b,error:Q.error,focused:Q.focused,formControl:X,fullWidth:g,hiddenLabel:Q.hiddenLabel,multiline:k,size:Q.size,startAdornment:j,type:z}),ie=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:p,type:h}=e,m={root:["root",`color${(0,Er.A)(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&"medium"!==f&&`size${(0,Er.A)(f)}`,u&&"multiline",p&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return(0,mr.A)(m,Uo,t)})(re),oe=F.root||c.Root||Yo,se=B.root||f.root||{},ae=F.input||c.Input||Go;return ne=(0,u.A)({},ne,null!=(n=B.input)?n:f.input),(0,m.jsxs)(o.Fragment,{children:[!y&&Ko,(0,m.jsxs)(oe,(0,u.A)({},se,!vr(oe)&&{ownerState:(0,u.A)({},re,se.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),E&&E(e)}},$,{className:(0,ir.A)(ie.root,se.className,l,N&&"MuiInputBase-readOnly"),children:[j,(0,m.jsx)(Co.Provider,{value:null,children:(0,m.jsx)(ae,(0,u.A)({ownerState:re,"aria-invalid":Q.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:p,disabled:Q.disabled,id:v,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:M,readOnly:N,required:Q.required,rows:L,value:V,onKeyDown:O,onKeyUp:P,type:z},ne,!vr(ae)&&{as:te,ownerState:(0,u.A)({},re,ne.ownerState)},{ref:G,className:(0,ir.A)(ie.input,ne.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{T&&T(e),S.onBlur&&S.onBlur(e),X&&X.onBlur?X.onBlur(e):q(!1)},onChange:function(e){if(!W){const t=e.target||H.current;if(null==t)throw new Error((0,Eo.A)(1));ee({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];S.onChange&&S.onChange(e,...n),I&&I(e,...n)},onFocus:e=>{Q.disabled?e.stopPropagation():(R&&R(e),S.onFocus&&S.onFocus(e),X&&X.onFocus?X.onFocus(e):q(!0))}}))}),b,D?D((0,u.A)({},Q,{startAdornment:j})):null]}))]})})),Xo=qo;function Qo(e){return(0,Or.Ay)("MuiInput",e)}const Jo=(0,u.A)({},$o,(0,ur.A)("MuiInput",["root","underline","input"])),Zo=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],es=(0,br.Ay)(Yo,{shouldForwardProp:e=>(0,Li.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wo(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),(0,u.A)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jo.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jo.disabled}, .${Jo.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Jo.disabled}:before`]:{borderBottomStyle:"dotted"}})})),ts=(0,br.Ay)(Go,{name:"MuiInput",slot:"Input",overridesResolver:Ho})({}),ns=o.forwardRef((function(e,t){var n,r,i,o;const s=(0,Vn.b)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:h=!1,slotProps:y,slots:b={},type:g="text"}=s,v=(0,d.A)(s,Zo),w=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,mr.A)(r,Qo,t);return(0,u.A)({},t,i)})(s),S={root:{ownerState:{disableUnderline:a}}},_=(null!=y?y:c)?(0,Ki.A)(null!=y?y:c,S):S,A=null!=(n=null!=(r=b.root)?r:l.Root)?n:es,x=null!=(i=null!=(o=b.input)?o:l.Input)?i:ts;return(0,m.jsx)(Xo,(0,u.A)({slots:{root:A,input:x},slotProps:_,fullWidth:f,inputComponent:p,multiline:h,ref:t,type:g},v,{classes:w}))}));ns.muiName="Input";const rs=ns,is=["className","children","classes","IconComponent","input","inputProps","variant"],os=["root"],ss=(0,m.jsx)(rs,{}),as=o.forwardRef((function(e,t){const n=(0,Vn.b)({name:"MuiNativeSelect",props:e}),{className:r,children:i,classes:s={},IconComponent:a=Io,input:l=ss,inputProps:c}=n,f=(0,d.A)(n,is),p=ko({props:n,muiFormControl:To(),states:["variant"]}),h=(e=>{const{classes:t}=e;return(0,mr.A)({root:["root"]},vo,t)})((0,u.A)({},n,{classes:s})),y=(0,d.A)(s,os);return(0,m.jsx)(o.Fragment,{children:o.cloneElement(l,(0,u.A)({inputComponent:xo,inputProps:(0,u.A)({children:i,classes:y,IconComponent:a,variant:p.variant,type:void 0},c,l?l.props.inputProps:{}),ref:t},f,{className:(0,ir.A)(h.root,l.props.className,r)}))})}));as.muiName="Select";const ls=as;function cs(e){return(0,Or.Ay)("MuiFormLabel",e)}const us=(0,ur.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ds=["children","className","color","component","disabled","error","filled","focused","required"],fs=(0,br.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,u.A)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,u.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${us.focused}`]:{color:(t.vars||t).palette[n.color].main},[`&.${us.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${us.error}`]:{color:(t.vars||t).palette.error.main}})})),ps=(0,br.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${us.error}`]:{color:(t.vars||t).palette.error.main}}})),hs=o.forwardRef((function(e,t){const n=(0,Vn.b)({props:e,name:"MuiFormLabel"}),{children:r,className:i,component:o="label"}=n,s=(0,d.A)(n,ds),a=ko({props:n,muiFormControl:To(),states:["color","required","focused","disabled","error","filled"]}),l=(0,u.A)({},n,{color:a.color||"primary",component:o,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:a}=e,l={root:["root",`color${(0,Er.A)(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]};return(0,mr.A)(l,cs,t)})(l);return(0,m.jsxs)(fs,(0,u.A)({as:o,ownerState:l,className:(0,ir.A)(c.root,i),ref:t},s,{children:[r,a.required&&(0,m.jsxs)(ps,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))}));function ms(e){return(0,Or.Ay)("MuiInputLabel",e)}(0,ur.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ys=["disableAnimation","margin","shrink","variant","className"],bs=(0,br.Ay)(hs,{shouldForwardProp:e=>(0,Li.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${us.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,u.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,u.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,u.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,u.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),gs=o.forwardRef((function(e,t){const n=(0,Vn.b)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:i,className:o}=n,s=(0,d.A)(n,ys),a=To();let l=i;"undefined"===typeof l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=ko({props:n,muiFormControl:a,states:["size","variant","required","focused"]}),f=(0,u.A)({},n,{disableAnimation:r,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:a}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&"normal"!==r&&`size${(0,Er.A)(r)}`,s],asterisk:[a&&"asterisk"]},c=(0,mr.A)(l,ms,t);return(0,u.A)({},t,c)})(f);return(0,m.jsx)(bs,(0,u.A)({"data-shrink":l,ownerState:f,ref:t,className:(0,ir.A)(p.root,o)},s,{classes:p}))}));var vs=n(2039);function ws(e){return(0,Or.Ay)("MuiFormControl",e)}(0,ur.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Ss=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_s=(0,br.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,u.A)({},t.root,t[`margin${(0,Er.A)(n.margin)}`],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,u.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),As=o.forwardRef((function(e,t){const n=(0,Vn.b)({props:e,name:"MuiFormControl"}),{children:r,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:f,fullWidth:p=!1,hiddenLabel:h=!1,margin:y="none",required:b=!1,size:g="medium",variant:v="outlined"}=n,w=(0,d.A)(n,Ss),S=(0,u.A)({},n,{color:s,component:a,disabled:l,error:c,fullWidth:p,hiddenLabel:h,margin:y,required:b,size:g,variant:v}),_=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,Er.A)(n)}`,r&&"fullWidth"]};return(0,mr.A)(i,ws,t)})(S),[A,x]=o.useState((()=>{let e=!1;return r&&o.Children.forEach(r,(t=>{if(!(0,vs.A)(t,["Input","Select"]))return;const n=(0,vs.A)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[k,C]=o.useState((()=>{let e=!1;return r&&o.Children.forEach(r,(t=>{(0,vs.A)(t,["Input","Select"])&&(zo(t.props,!0)||zo(t.props.inputProps,!0))&&(e=!0)})),e})),[T,I]=o.useState(!1);l&&T&&I(!1);const E=void 0===f||l?T:f;let R;const O=o.useMemo((()=>({adornedStart:A,setAdornedStart:x,color:s,disabled:l,error:c,filled:k,focused:E,fullWidth:p,hiddenLabel:h,size:g,onBlur:()=>{I(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{I(!0)},registerEffect:R,required:b,variant:v})),[A,s,l,c,k,E,p,h,R,b,g,v]);return(0,m.jsx)(Co.Provider,{value:O,children:(0,m.jsx)(_s,(0,u.A)({as:a,ownerState:S,className:(0,ir.A)(_.root,i),ref:t},w,{children:r}))})})),xs=As;function ks(e,t,n,r,i){const[s,a]=o.useState((()=>i&&n?n(e).matches:r?r(e).matches:t));return(0,Oo.A)((()=>{let t=!0;if(!n)return;const r=n(e),i=()=>{t&&a(r.matches)};return i(),r.addListener(i),()=>{t=!1,r.removeListener(i)}}),[e,n]),s}const Cs=s.useSyncExternalStore;function Ts(e,t,n,r,i){const s=o.useCallback((()=>t),[t]),a=o.useMemo((()=>{if(i&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return s}),[s,e,r,i,n]),[l,c]=o.useMemo((()=>{if(null===n)return[s,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[s,n,e]);return Cs(c,l,a)}const Is=e=>{const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=g(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(r?window.matchMedia:null),ssrMatchMedia:s=null,noSsr:a=!1}=so({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"===typeof e?e(n):e;return l=l.replace(/^@media( ?)/m,""),(void 0!==Cs?Ts:ks)(l,i,o,s,a)}(function(){const e=Gn(qn.A);return e[C.A]||e}().breakpoints.down("sm"));return(0,o.useEffect)((()=>{go.Streamlit.setFrameHeight()}),[t]),(0,m.jsx)(bo,{direction:t?"column":"row",spacing:2,children:e.children})},Es=(0,br.Ay)(hr)((e=>{let{theme:t}=e;return{position:"relative",[t.breakpoints.down("sm")]:{width:"100%"},width:t.spacing(24),height:t.spacing(16),maxHeight:t.spacing(16),display:"flex",justifyContent:"center",alignItems:"center"}})),Rs=(0,br.Ay)(Dr)((e=>{let{theme:t}=e;return{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",padding:t.spacing(2),boxSizing:"border-box"}})),Os=()=>(0,m.jsx)(Rs,{children:tr("media_api_not_available")||"Media API not available"}),Ps=()=>(0,m.jsx)(Rs,{children:tr("device_ask_permission")||"Please allow the app to use your media devices"}),Ms=e=>(0,m.jsxs)(Rs,{children:[tr("device_access_denied")||"Access denied"," (",e.error.message,")"]}),Ns=e=>(0,m.jsxs)(Rs,{children:[tr("device_not_available")||"Device not available"," (",e.error.message,")"]});var Ds=n(4787);const Ls=(0,br.Ay)(Dr)({display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),Bs=()=>(0,m.jsx)(Ls,{children:(0,m.jsx)(Ds.A,{fontSize:"large"})}),Fs=o.memo(Bs),js=(0,br.Ay)(hr,{shouldForwardProp:e=>"$transparent"!==e})((e=>{let{theme:t,$transparent:n}=e;return{margin:0,padding:0,position:"relative","&:before":{position:"absolute",content:'""',width:"100%",height:"100%",opacity:n?0:1,backgroundColor:t.palette.background.default,transition:"opacity 0.3s"}}})),zs=e=>{const[t,n]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const t=setTimeout((()=>{n(!0)}),e.time);return()=>clearTimeout(t)}),[e.time]),(0,m.jsx)(js,{$transparent:t,children:e.children})},Us=(0,br.Ay)("video")({maxWidth:"100%",maxHeight:"100%"});function $s(e){e.getVideoTracks().forEach((e=>e.stop())),e.getAudioTracks().forEach((e=>e.stop()))}const Vs=e=>{const t=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(null==e.deviceId)return;let n=null,r=!1;return navigator.mediaDevices.getUserMedia({video:{deviceId:e.deviceId},audio:!1}).then((e=>{n=e,r?$s(n):t.current&&(t.current.srcObject=n)})),()=>{r=!0,n&&$s(n)}}),[e.deviceId]),(0,m.jsx)(Us,{ref:t,autoPlay:!0,muted:!0})},Ws=o.memo(Vs);function Hs(e,t){const n=e.map((e=>e.deviceId));return t&&n.includes(t)?t:n.length>0?n[0]:void 0}const Ys=(e,t)=>{switch(t.type){case"SET_UNAVAILABLE":return{unavailable:!0,videoInputs:[],audioInputs:[],audioOutputs:[],selectedVideoInputDeviceId:void 0,selectedAudioInputDeviceId:void 0};case"UPDATE_DEVICES":{const n=t.devices,r=n.filter((e=>"videoinput"===e.kind)),i=n.filter((e=>"audioinput"===e.kind)),o=n.filter((e=>"audiooutput"===e.kind)),s=Hs(r,e.selectedVideoInputDeviceId),a=Hs(i,e.selectedAudioInputDeviceId);return{...e,videoInputs:r,audioInputs:i,audioOutputs:o,selectedVideoInputDeviceId:s,selectedAudioInputDeviceId:a}}case"UPDATE_SELECTED_DEVICE_ID":return{...e,...t.payload}}},Gs=e=>{const{video:t,audio:n,defaultVideoDeviceId:r,defaultAudioDeviceId:i,onSelect:s}=e,[a,l]=(0,o.useState)("WAITING"),[{unavailable:c,videoInputs:u,selectedVideoInputDeviceId:d,audioInputs:f,selectedAudioInputDeviceId:p},h]=(0,o.useReducer)(Ys,{unavailable:!1,videoInputs:[],audioInputs:[],audioOutputs:[],selectedVideoInputDeviceId:r,selectedAudioInputDeviceId:i}),y=(0,o.useCallback)((()=>{var e,t;if("function"===typeof(null===(e=navigator)||void 0===e||null===(t=e.mediaDevices)||void 0===t?void 0:t.enumerateDevices))return navigator.mediaDevices.enumerateDevices().then((e=>{h({type:"UPDATE_DEVICES",devices:e})}));h({type:"SET_UNAVAILABLE"})}),[]),b=(0,o.useRef)({video:r,audio:i});b.current={video:r,audio:i},(0,o.useEffect)((()=>{var e,r;if("function"!==typeof(null===(e=navigator)||void 0===e||null===(r=e.mediaDevices)||void 0===r?void 0:r.getUserMedia))return void h({type:"SET_UNAVAILABLE"});l("WAITING");const{video:i,audio:o}=b.current;navigator.mediaDevices.getUserMedia({video:t&&i?{deviceId:i}:t,audio:n&&o?{deviceId:o}:n}).then((async e=>{$s(e),await y(),l("ALLOWED")})).catch((e=>{l(e)}))}),[t,n,y]),(0,o.useEffect)((()=>{const e=()=>y();return navigator.mediaDevices.ondevicechange=e,()=>{navigator.mediaDevices.ondevicechange===e&&(navigator.mediaDevices.ondevicechange=null)}}),[y]);const g=(0,o.useCallback)((e=>{h({type:"UPDATE_SELECTED_DEVICE_ID",payload:{selectedVideoInputDeviceId:e.target.value}})}),[]),v=(0,o.useCallback)((e=>{h({type:"UPDATE_SELECTED_DEVICE_ID",payload:{selectedAudioInputDeviceId:e.target.value}})}),[]);if((0,o.useEffect)((()=>{const e=t?u.find((e=>e.deviceId===d)):null,r=n?f.find((e=>e.deviceId===p)):null;s({video:null===e||void 0===e?void 0:e.deviceId,audio:null===r||void 0===r?void 0:r.deviceId})}),[t,n,s,u,f,d,p]),(0,o.useEffect)((()=>{setTimeout((()=>go.Streamlit.setFrameHeight()))})),c)return(0,m.jsx)(Os,{});if("WAITING"===a)return(0,m.jsx)(zs,{time:1e3,children:(0,m.jsx)(Ps,{})});if(a instanceof Error){const e=a;return e instanceof DOMException&&("NotReadableError"===e.name||"NotFoundError"===e.name)?(0,m.jsx)(Ns,{error:e}):e instanceof DOMException&&"NotAllowedError"===e.name?(0,m.jsx)(Ms,{error:e}):(0,m.jsx)(Rs,{children:(0,m.jsxs)(Ni,{severity:"error",children:[e.name,": ",e.message]})})}return(0,m.jsxs)(Is,{children:[(0,m.jsx)(Es,{children:t&&d?(0,m.jsx)(Ws,{deviceId:d}):(0,m.jsx)(Fs,{})}),(0,m.jsxs)(bo,{spacing:2,justifyContent:"center",children:[t&&d&&(0,m.jsxs)(xs,{fullWidth:!0,children:[(0,m.jsx)(gs,{htmlFor:"device-select-video-input",children:"Video Input"}),(0,m.jsx)(ls,{inputProps:{name:"video-input",id:"device-select-video-input"},value:d,onChange:g,children:u.map((e=>(0,m.jsx)("option",{value:e.deviceId,children:e.label},e.deviceId)))})]}),n&&p&&(0,m.jsxs)(xs,{fullWidth:!0,children:[(0,m.jsx)(gs,{htmlFor:"device-select-audio-input",children:"Audio Input"}),(0,m.jsx)(ls,{inputProps:{name:"audio-input",id:"device-select-audio-input"},value:p,onChange:v,children:f.map((e=>(0,m.jsx)("option",{value:e.deviceId,children:e.label},e.deviceId)))})]})]})]})},Ks=e=>{let{onClose:t,...n}=e;return(0,m.jsxs)(bo,{spacing:2,children:[(0,m.jsx)(Gs,{...n}),(0,m.jsx)(hr,{children:(0,m.jsx)(Gi,{variant:"contained",color:"primary",onClick:t,children:"Done"})})]})},qs=e=>{(0,o.useEffect)((()=>{go.Streamlit.setFrameHeight()}));const t=e.stream.getVideoTracks().length>0,n=(0,o.useCallback)((t=>{t&&(t.srcObject=e.stream)}),[e.stream]),r=(0,o.useCallback)((()=>go.Streamlit.setFrameHeight()),[]);if(t){var i,s,a,l,c,u,d,f,p,h,y,b,g,v,w,S;const t={hidden:null===(i=e.userDefinedVideoAttrs)||void 0===i?void 0:i.hidden,style:null===(s=e.userDefinedVideoAttrs)||void 0===s?void 0:s.style,autoPlay:null===(a=e.userDefinedVideoAttrs)||void 0===a?void 0:a.autoPlay,controls:null===(l=e.userDefinedVideoAttrs)||void 0===l?void 0:l.controls,controlsList:null===(c=e.userDefinedVideoAttrs)||void 0===c?void 0:c.controlsList,crossOrigin:null===(u=e.userDefinedVideoAttrs)||void 0===u?void 0:u.crossOrigin,loop:null===(d=e.userDefinedVideoAttrs)||void 0===d?void 0:d.loop,mediaGroup:null===(f=e.userDefinedVideoAttrs)||void 0===f?void 0:f.mediaGroup,muted:null===(p=e.userDefinedVideoAttrs)||void 0===p?void 0:p.muted,playsInline:null===(h=e.userDefinedVideoAttrs)||void 0===h?void 0:h.playsInline,preload:null===(y=e.userDefinedVideoAttrs)||void 0===y?void 0:y.preload,height:null===(b=e.userDefinedVideoAttrs)||void 0===b?void 0:b.height,poster:null===(g=e.userDefinedVideoAttrs)||void 0===g?void 0:g.poster,width:null===(v=e.userDefinedVideoAttrs)||void 0===v?void 0:v.width,disablePictureInPicture:null===(w=e.userDefinedVideoAttrs)||void 0===w?void 0:w.disablePictureInPicture,disableRemotePlayback:null===(S=e.userDefinedVideoAttrs)||void 0===S?void 0:S.disableRemotePlayback};return(0,m.jsx)("video",{...t,ref:n,onCanPlay:r})}{var _,A,x,k,C,T,I,E,R,O,P;const t={hidden:null===(_=e.userDefinedAudioAttrs)||void 0===_?void 0:_.hidden,style:null===(A=e.userDefinedAudioAttrs)||void 0===A?void 0:A.style,autoPlay:null===(x=e.userDefinedAudioAttrs)||void 0===x?void 0:x.autoPlay,controls:null===(k=e.userDefinedAudioAttrs)||void 0===k?void 0:k.controls,controlsList:null===(C=e.userDefinedAudioAttrs)||void 0===C?void 0:C.controlsList,crossOrigin:null===(T=e.userDefinedAudioAttrs)||void 0===T?void 0:T.crossOrigin,loop:null===(I=e.userDefinedAudioAttrs)||void 0===I?void 0:I.loop,mediaGroup:null===(E=e.userDefinedAudioAttrs)||void 0===E?void 0:E.mediaGroup,muted:null===(R=e.userDefinedAudioAttrs)||void 0===R?void 0:R.muted,playsInline:null===(O=e.userDefinedAudioAttrs)||void 0===O?void 0:O.playsInline,preload:null===(P=e.userDefinedAudioAttrs)||void 0===P?void 0:P.preload};return(0,m.jsx)("audio",{ref:n,...t})}},Xs=o.memo(qs);function Qs(e){return(0,Or.Ay)("MuiCircularProgress",e)}(0,ur.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Js=["className","color","disableShrink","size","style","thickness","value","variant"];let Zs,ea,ta,na,ra=e=>e;const ia=44,oa=(0,qr.i7)(Zs||(Zs=ra`
|
76
|
-
0% {
|
77
|
-
transform: rotate(0deg);
|
78
|
-
}
|
79
|
-
|
80
|
-
100% {
|
81
|
-
transform: rotate(360deg);
|
82
|
-
}
|
83
|
-
`)),sa=(0,qr.i7)(ea||(ea=ra`
|
84
|
-
0% {
|
85
|
-
stroke-dasharray: 1px, 200px;
|
86
|
-
stroke-dashoffset: 0;
|
87
|
-
}
|
88
|
-
|
89
|
-
50% {
|
90
|
-
stroke-dasharray: 100px, 200px;
|
91
|
-
stroke-dashoffset: -15px;
|
92
|
-
}
|
93
|
-
|
94
|
-
100% {
|
95
|
-
stroke-dasharray: 100px, 200px;
|
96
|
-
stroke-dashoffset: -125px;
|
97
|
-
}
|
98
|
-
`)),aa=(0,br.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,Er.A)(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,u.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,qr.AH)(ta||(ta=ra`
|
99
|
-
animation: ${0} 1.4s linear infinite;
|
100
|
-
`),oa)})),la=(0,br.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ca=(0,br.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,Er.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,u.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,qr.AH)(na||(na=ra`
|
101
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
102
|
-
`),sa)})),ua=o.forwardRef((function(e,t){const n=(0,Vn.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:f="indeterminate"}=n,p=(0,d.A)(n,Js),h=(0,u.A)({},n,{color:i,disableShrink:o,size:s,thickness:l,value:c,variant:f}),y=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${(0,Er.A)(r)}`],svg:["svg"],circle:["circle",`circle${(0,Er.A)(n)}`,i&&"circleDisableShrink"]};return(0,mr.A)(o,Qs,t)})(h),b={},g={},v={};if("determinate"===f){const e=2*Math.PI*((ia-l)/2);b.strokeDasharray=e.toFixed(3),v["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return(0,m.jsx)(aa,(0,u.A)({className:(0,ir.A)(y.root,r),style:(0,u.A)({width:s,height:s},g,a),ownerState:h,ref:t,role:"progressbar"},v,p,{children:(0,m.jsx)(la,{className:y.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,m.jsx)(ca,{className:y.circle,style:b,ownerState:h,cx:ia,cy:ia,r:(ia-l)/2,fill:"none",strokeWidth:l})})}))})),da=ua;var fa=n(1993);const pa=(0,br.Ay)(Dr)((e=>{let{theme:t}=e;return{padding:t.spacing(4),display:"flex",justifyContent:"center",alignItems:"center",width:"100%"}})),ha=e=>((0,o.useEffect)((()=>{go.Streamlit.setFrameHeight()})),(0,m.jsx)(pa,{elevation:0,children:e.loading?(0,m.jsx)(da,{}):(0,m.jsx)(fa.A,{fontSize:"large"})})),ma=o.memo(ha);const ya={webRtcState:"STOPPED",sdpOffer:null,signallingTimedOut:!1,stream:null,error:null},ba=e=>(t,n)=>{const r=((e,t)=>{switch(t.type){case"SIGNALLING_START":return{...e,webRtcState:"SIGNALLING",stream:null,error:null,signallingTimedOut:!1};case"SIGNALLING_TIMEOUT":return{...e,signallingTimedOut:!0};case"SET_STREAM":return{...e,stream:t.stream};case"SET_OFFER":return{...e,sdpOffer:t.offer};case"STOPPING":return{...e,webRtcState:"STOPPING",sdpOffer:null};case"STOPPED":return{...e,webRtcState:"STOPPED",sdpOffer:null,stream:null};case"START_PLAYING":return{...e,webRtcState:"PLAYING",sdpOffer:null};case"PROCESS_ANSWER_ERROR":return{...e,error:t.error};case"ERROR":return{...e,webRtcState:"STOPPED",sdpOffer:null,error:t.error}}})(t,n),i="PLAYING"===r.webRtcState,o=i!==("PLAYING"===t.webRtcState),s=r.sdpOffer,a=t.sdpOffer;return(o||s!==a)&&(a&&console.log("Send SDP offer",a),e({playing:i,sdpOffer:s?s.toJSON():""})),r},ga=e=>"RECVONLY"===e||"SENDONLY"===e||"SENDRECV"===e,va=(e,t,n,r,i)=>{(0,o.useEffect)((()=>r({playing:!1,sdpOffer:""})),[]);const s=(0,o.useRef)(),a=(0,o.useRef)(),l=(0,o.useMemo)((()=>ba(r)),[r]),[c,u]=(0,o.useReducer)(l,ya),d=(0,o.useCallback)((()=>{(async()=>{if("STOPPING"===c.webRtcState)return;const e=a.current;return a.current=void 0,u({type:"STOPPING"}),null!=e?(e.getTransceivers&&e.getTransceivers().forEach((function(e){e.stop&&e.stop()})),e.getSenders().forEach((function(e){var t;null===(t=e.track)||void 0===t||t.stop()})),new Promise((t=>{setTimeout((()=>{e.close(),t()}),500)}))):void 0})().catch((e=>u({type:"ERROR",error:e}))).finally((()=>{u({type:"STOPPED"})}))}),[c.webRtcState]),f=(0,o.useRef)(d);f.current=d;const p=(0,o.useCallback)((()=>{if("STOPPED"!==c.webRtcState)return;(async()=>{u({type:"SIGNALLING_START"}),s.current=setTimeout((()=>{u({type:"SIGNALLING_TIMEOUT"})}),3e3);const r=e.mode,o=e.rtcConfiguration||{};console.log("RTCConfiguration:",o);const l=new RTCPeerConnection(o);if("SENDRECV"!==r&&"RECVONLY"!==r||l.addEventListener("track",(e=>{const t=e.streams[0];u({type:"SET_STREAM",stream:t})})),"SENDRECV"===r||"SENDONLY"===r){const o=function(e,t,n){const r=e||{};return t&&(!0===r.video?r.video={deviceId:t}:"object"!==typeof r.video&&null!=r.video||(r.video={...r.video,deviceId:t})),n&&(!0===r.audio?r.audio={deviceId:n}:"object"!==typeof r.audio&&null!=r.audio||(r.audio={...r.audio,deviceId:n})),r}(e.mediaStreamConstraints,t,n);if(console.log("MediaStreamConstraints:",o),o.audio||o.video){if(null==navigator.mediaDevices)throw new Error("navigator.mediaDevices is undefined. It seems the current document is not loaded securely.");if(null==navigator.mediaDevices.getUserMedia)throw new Error("getUserMedia is not implemented in this browser");const e={},t=await navigator.mediaDevices.getUserMedia(o);t.getTracks().forEach((n=>{l.addTrack(n,t);const r=n.kind;if("video"!==r&&"audio"!==r)return;const i=n.getSettings().deviceId;null!=i&&(e[r]=i)})),Object.keys(e).length>0&&i(e)}if("SENDONLY"===r)for(const e of l.getTransceivers())e.direction="sendonly"}else"RECVONLY"===r&&(l.addTransceiver("video",{direction:"recvonly"}),l.addTransceiver("audio",{direction:"recvonly"}));console.log("transceivers",l.getTransceivers()),l.addEventListener("iceconnectionstatechange",(()=>{console.log("iceconnectionstatechange",l.iceConnectionState),"disconnected"!==l.iceConnectionState&&"failed"!==l.iceConnectionState&&"closed"!==l.iceConnectionState||f.current()})),a.current=l,await(e=>e.createOffer().then((t=>(console.log("Created offer:",t),e.setLocalDescription(t)))).then((()=>(console.log("Wait for ICE gethering..."),new Promise((t=>{if("complete"===e.iceGatheringState)t();else{const n=()=>{"complete"===e.iceGatheringState&&(e.removeEventListener("icegatheringstatechange",n),t())};e.addEventListener("icegatheringstatechange",n)}}))))).then((()=>e.localDescription)).catch((e=>{throw console.error(e),e})))(l).then((e=>{if(null==e)throw new Error("Failed to create an offer SDP");u({type:"SET_OFFER",offer:e})}))})().catch((e=>u({type:"ERROR",error:e})))}),[n,t,e.mediaStreamConstraints,e.mode,e.rtcConfiguration,c.webRtcState,i]);return(0,o.useEffect)((()=>{const t=a.current;if(null==t)return;const n=e.sdpAnswerJson;if(null==t.remoteDescription&&n&&"SIGNALLING"===c.webRtcState){const e=JSON.parse(n);console.log("Receive answer sdpOffer",e),t.setRemoteDescription(e).then((()=>{console.log("Remote description is set"),s.current&&clearTimeout(s.current),u({type:"START_PLAYING"})})).catch((e=>{u({type:"PROCESS_ANSWER_ERROR",error:e}),d()}))}}),[e.sdpAnswerJson,c.webRtcState,d]),(0,o.useEffect)((()=>{const t=e.desiredPlayingState;null!=t&&(!0===t&&"STOPPED"===c.webRtcState?p():!1!==t||"SIGNALLING"!==c.webRtcState&&"PLAYING"!==c.webRtcState||d())}),[e.desiredPlayingState,p,c.webRtcState,d]),{start:p,stop:d,state:c}};function wa(e){return go.Streamlit.setComponentValue(e)}const Sa=e=>{let{translationKey:t,defaultText:n,...r}=e;return(0,m.jsx)(Gi,{...r,children:tr(t)||n})};let _a=!0,Aa=!0;function xa(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function ka(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);const o=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,o),i.apply(this,[e,o])};const o=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(n))return o.apply(this,arguments);const r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function Ca(e){return"boolean"!==typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(_a=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function Ta(e){return"boolean"!==typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(Aa=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Ia(){if("object"===typeof window){if(_a)return;"undefined"!==typeof console&&"function"===typeof console.log&&console.log.apply(console,arguments)}}function Ea(e,t){Aa&&console.warn(e+" is deprecated, please use "+t+" instead.")}function Ra(e){return"[object Object]"===Object.prototype.toString.call(e)}function Oa(e){return Ra(e)?Object.keys(e).reduce((function(t,n){const r=Ra(e[n]),i=r?Oa(e[n]):e[n],o=r&&!Object.keys(i).length;return void 0===i||o?t:Object.assign(t,{[n]:i})}),{}):e}function Pa(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach((r=>{r.endsWith("Id")?Pa(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach((t=>{Pa(e,e.get(t),n)}))})))}function Ma(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;const o=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)})),o.forEach((t=>{e.forEach((n=>{n.type===r&&n.trackId===t.id&&Pa(e,n,i)}))})),i}const Na=Ia;function Da(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(e){if("object"!==typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"===typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"===typeof r.exact&&(r.min=r.max=r.exact);const i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"===typeof r.ideal?(e[i("min",n)]=r.ideal,t.optional.push(e),e={},e[i("max",n)]=r.ideal,t.optional.push(e)):(e[i("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!==typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach((e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"===typeof e.video){let o=e.video.facingMode;o=o&&("object"===typeof o?o:{ideal:o});const s=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||s)){let t;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?t=["back","rear"]:"user"!==o.exact&&"user"!==o.ideal||(t=["front"]),t)return n.mediaDevices.enumerateDevices().then((n=>{let s=(n=n.filter((e=>"videoinput"===e.kind))).find((e=>t.some((t=>e.label.toLowerCase().includes(t)))));return!s&&n.length&&t.includes("back")&&(s=n[n.length-1]),s&&(e.video.deviceId=o.exact?{exact:s.deviceId}:{ideal:s.deviceId}),e.video=r(e.video),Na("chrome: "+JSON.stringify(e)),i(e)}))}e.video=r(e.video)}return Na("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=function(e,t,r){i(e,(e=>{n.webkitGetUserMedia(e,t,(e=>{r&&r(o(e))}))}))}.bind(n),n.mediaDevices.getUserMedia){const e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return i(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(o(e))))))}}}function La(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Ba(e){if("object"===typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.track.id)):{track:n.track};const i=new Event("track");i.track=n.track,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)})),t.stream.getTracks().forEach((n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.id)):{track:n};const i=new Event("track");i.track=n,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else ka(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function Fa(e){if("object"===typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._senders.indexOf(t),1)}))}}else if("object"===typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function ja(e){if(!("object"===typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>Ma(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),ka(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>Ma(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach((n=>{n.track===e&&(t?r=!0:t=n)})),this.getReceivers().forEach((t=>(t.track===e&&(n?r=!0:n=t),t.track===e))),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function za(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),i.apply(this,arguments)}}function Ua(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return za(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const i=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(i.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find((e=>e.track===t)))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const i=this._streams[n.id];if(i)i.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments;return arguments.length&&"function"===typeof arguments[0]?n.apply(this,[t=>{const n=o(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then((e=>o(this,e)))}};e.RTCPeerConnection.prototype[t]=r[t]}));const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:n})}(this,arguments[0]),s.apply(this,arguments)):s.apply(this,arguments)};const a=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=a.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(e._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((n=>{this._streams[n].getTracks().find((t=>e.track===t))&&(t=this._streams[n])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function $a(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}))}function Va(e,t){ka(e,"negotiationneeded",(e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e}))}function Wa(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){Ea("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"===typeof n&&"object"===typeof n.audio&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"===typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function Ha(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function Ya(e){"object"===typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Ga(e,t){if("object"!==typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}));const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,i,o]=arguments;return r.apply(this,[e||null]).then((e=>{if(t.version<53&&!i)try{e.forEach((e=>{e.type=n[e.type]||e.type}))}catch(r){if("TypeError"!==r.name)throw r;e.forEach(((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))}))}return e})).then(i,o)}}function Ka(e){if("object"!==typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function qa(e){if("object"!==typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),ka(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function Xa(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){Ea("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function Qa(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function Ja(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]),e=[...e];const n=e.length>0;n&&e.forEach((e=>{if("rid"in e){if(!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(n).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return r})}function Za(e){if("object"!==typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function el(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function tl(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function nl(e){if("object"===typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((n=>t.call(this,n,e))),e.getVideoTracks().forEach((n=>t.call(this,n,e)))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r&&r.forEach((e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach((e=>{n.includes(e.track)&&this.removeTrack(e)}))})}}function rl(e){if("object"===typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}))})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}))}),t.apply(e,arguments)}}}function il(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};let a=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=a,a=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=a,a=function(e,t,n){const r=s.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=a}function ol(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(sl(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function sl(e){return e&&void 0!==e.video?Object.assign({},e,{video:Oa(e.video)}):e}function al(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];void 0===r.urls&&r.url?(Ea("RTCIceServer.url","RTCIceServer.urls"),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}function ll(e){"object"===typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function cl(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){"undefined"!==typeof e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio",{direction:"recvonly"}),"undefined"!==typeof e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function ul(e){"object"!==typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var dl=n(2558),fl=n.n(dl);function pl(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"===typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){const n=new t(e),r=fl().parseCandidate(e.candidate);for(const e in r)e in n||Object.defineProperty(n,e,{value:r[e]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,ka(e,"icecandidate",(t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}function hl(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||ka(e,"icecandidate",(e=>{if(e.candidate){const t=fl().parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e}))}function ml(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return"undefined"===typeof this._sctp?null:this._sctp}});const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return"undefined"===typeof this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(function(e){if(!e||!e.sdp)return!1;const t=fl().splitSections(e.sdp);return t.shift(),t.some((e=>{const t=fl().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))}(arguments[0])){const e=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!==n?-1:n}(arguments[0]),n=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n}(e),r=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const i=fl().matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?r=parseInt(i[0].substring(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r}(arguments[0],e);let i;i=0===n&&0===r?Number.POSITIVE_INFINITY:0===n||0===r?Math.max(n,r):Math.min(n,r);const o={};Object.defineProperty(o,"maxMessageSize",{get:()=>i}),this._sctp=o}return n.apply(this,arguments)}}function yl(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],i=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},ka(e,"datachannel",(e=>(t(e.channel,e.target),e)))}function bl(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))}function gl(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const n=t.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function vl(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function wl(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.setLocalDescription;n&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!==typeof e||e.type&&e.sdp)return n.apply(this,arguments);if(e={type:e.type,sdp:e.sdp},!e.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer"}if(e.sdp||"offer"!==e.type&&"answer"!==e.type)return n.apply(this,[e]);return("offer"===e.type?this.createOffer:this.createAnswer).apply(this).then((e=>n.apply(this,[e])))})}!function(){let{window:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimSafari:!0};const s=Ia,a=function(e){const t={browser:null,version:null};if("undefined"===typeof e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const e=n.userAgentData.brands.find((e=>"Chromium"===e.brand));if(e)return{browser:"chrome",version:parseInt(e.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=xa(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=xa(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=xa(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}(n),l={browserDetails:a,commonShim:i,extractVersion:xa,disableLog:Ca,disableWarnings:Ta,sdp:dl};switch(a.browser){case"chrome":if(!e||!$a||!o.shimChrome)return s("Chrome shim is not included in this adapter release."),l;if(null===a.version)return s("Chrome shim can not determine version, not shimming."),l;s("adapter.js shimming chrome."),l.browserShim=e,vl(n,a),wl(n),Da(n,a),La(n),$a(n,a),Ba(n),Ua(n,a),Fa(n),ja(n),Va(n,a),pl(n),hl(n),bl(n),ml(n,a),yl(n),gl(n,a);break;case"firefox":if(!t||!Ga||!o.shimFirefox)return s("Firefox shim is not included in this adapter release."),l;s("adapter.js shimming firefox."),l.browserShim=t,vl(n,a),wl(n),Wa(n,a),Ga(n,a),Ya(n),Xa(n),Ka(n),qa(n),Qa(n),Ja(n),Za(n),el(n),tl(n),pl(n),bl(n),ml(n,a),yl(n);break;case"safari":if(!r||!o.shimSafari)return s("Safari shim is not included in this adapter release."),l;s("adapter.js shimming safari."),l.browserShim=r,vl(n,a),wl(n),al(n),cl(n),il(n),nl(n),rl(n),ll(n),ol(n),ul(n),pl(n),hl(n),ml(n,a),yl(n),gl(n,a);break;default:s("Unsupported browser!")}}({window:"undefined"===typeof window?void 0:window});const Sl=e=>{const[t,n]=(0,o.useState)({video:void 0,audio:void 0}),{state:r,start:i,stop:s}=va(e,t.video,t.audio,e.onComponentValueChange,n),a=e.mode,l=e.disabled||"SIGNALLING"===r.webRtcState&&!r.signallingTimedOut||"STOPPING"===r.webRtcState||null!=e.desiredPlayingState,c=ga(a)&&(e=>"SENDRECV"===e||"RECVONLY"===e)(a),u=ga(a)&&(e=>"SENDRECV"===e||"SENDONLY"===e)(a),{videoEnabled:d,audioEnabled:f}={videoEnabled:!(p=e.mediaStreamConstraints)||!!p.video,audioEnabled:!p||!!p.audio};var p;const[h,y]=(0,o.useState)(!1),b=(0,o.useCallback)((()=>{y(!0)}),[]),g=(0,o.useCallback)((()=>{y(!1)}),[]);return h?(0,m.jsx)(Ks,{video:d,audio:f,defaultVideoDeviceId:t.video,defaultAudioDeviceId:t.audio,onSelect:n,onClose:g}):(0,m.jsxs)(hr,{children:[r.error&&(0,m.jsxs)(Ni,{severity:"error",children:[r.error.name,": ",r.error.message]}),(0,m.jsx)(hr,{py:1,display:"flex",children:r.stream?(0,m.jsx)(Xs,{stream:r.stream,userDefinedVideoAttrs:e.videoHtmlAttrs,userDefinedAudioAttrs:e.audioHtmlAttrs}):c&&(0,m.jsx)(ma,{loading:"SIGNALLING"===r.webRtcState})}),(0,m.jsxs)(hr,{display:"flex",justifyContent:"space-between",children:["PLAYING"===r.webRtcState||"SIGNALLING"===r.webRtcState?(0,m.jsx)(Sa,{variant:"contained",onClick:s,disabled:l,translationKey:"stop",defaultText:"Stop"}):(0,m.jsx)(Sa,{variant:"contained",color:"primary",onClick:i,disabled:l,translationKey:"start",defaultText:"Start"}),u&&"STOPPED"===r.webRtcState&&(0,m.jsx)(Sa,{color:"inherit",onClick:b,translationKey:"select_device",defaultText:"Select Device"})]})]})},_l=()=>{const e=(0,l.useRenderData)(),t=e.args.mode,n=e.args.desired_playing_state,r=e.args.sdp_answer_json,i=e.args.rtc_configuration,o=e.args.media_stream_constraints,s=e.args.video_html_attrs,a=e.args.audio_html_attrs;if(!ga(t))throw new Error(`Invalid mode ${t}`);return(0,m.jsx)(Sl,{disabled:e.disabled,mode:t,desiredPlayingState:n,sdpAnswerJson:r,rtcConfiguration:i,mediaStreamConstraints:o,videoHtmlAttrs:s,audioHtmlAttrs:a,onComponentValueChange:wa})};a.render((0,m.jsx)(o.StrictMode,{children:(0,m.jsx)(l.StreamlitProvider,{children:(0,m.jsx)(rr,{children:(0,m.jsxs)($n,{children:[(0,m.jsx)(Zn,{}),(0,m.jsx)(_l,{})]})})})}),document.getElementById("root"))})()})();
|
103
|
-
//# sourceMappingURL=main.39438811.js.map
|