(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&u(p)}).observe(document,{childList:!0,subtree:!0});function s(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(d){if(d.ep)return;d.ep=!0;const h=s(d);fetch(d.href,h)}})();function mf(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ls={exports:{}},Ao={},is={exports:{}},Se={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var _d;function lm(){if(_d)return Se;_d=1;var r=Symbol.for("react.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),p=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),S=Symbol.iterator;function $(v){return v===null||typeof v!="object"?null:(v=S&&v[S]||v["@@iterator"],typeof v=="function"?v:null)}var W={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,M={};function j(v,I,V){this.props=v,this.context=I,this.refs=M,this.updater=V||W}j.prototype.isReactComponent={},j.prototype.setState=function(v,I){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,I,"setState")},j.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function Q(){}Q.prototype=j.prototype;function B(v,I,V){this.props=v,this.context=I,this.refs=M,this.updater=V||W}var O=B.prototype=new Q;O.constructor=B,H(O,j.prototype),O.isPureReactComponent=!0;var Z=Array.isArray,ne=Object.prototype.hasOwnProperty,G={current:null},X={key:!0,ref:!0,__self:!0,__source:!0};function Ee(v,I,V){var Y,oe={},ee=null,se=null;if(I!=null)for(Y in I.ref!==void 0&&(se=I.ref),I.key!==void 0&&(ee=""+I.key),I)ne.call(I,Y)&&!X.hasOwnProperty(Y)&&(oe[Y]=I[Y]);var ve=arguments.length-2;if(ve===1)oe.children=V;else if(1>>1,I=_[v];if(0>>1;vd(oe,U))eed(se,oe)?(_[v]=se,_[ee]=U,v=ee):(_[v]=oe,_[Y]=U,v=Y);else if(eed(se,U))_[v]=se,_[ee]=U,v=ee;else break e}}return K}function d(_,K){var U=_.sortIndex-K.sortIndex;return U!==0?U:_.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var p=Date,w=p.now();r.unstable_now=function(){return p.now()-w}}var x=[],C=[],D=1,S=null,$=3,W=!1,H=!1,M=!1,j=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(_){for(var K=s(C);K!==null;){if(K.callback===null)u(C);else if(K.startTime<=_)u(C),K.sortIndex=K.expirationTime,l(x,K);else break;K=s(C)}}function Z(_){if(M=!1,O(_),!H)if(s(x)!==null)H=!0,$e(ne);else{var K=s(C);K!==null&&xe(Z,K.startTime-_)}}function ne(_,K){H=!1,M&&(M=!1,Q(Ee),Ee=-1),W=!0;var U=$;try{for(O(K),S=s(x);S!==null&&(!(S.expirationTime>K)||_&&!ce());){var v=S.callback;if(typeof v=="function"){S.callback=null,$=S.priorityLevel;var I=v(S.expirationTime<=K);K=r.unstable_now(),typeof I=="function"?S.callback=I:S===s(x)&&u(x),O(K)}else u(x);S=s(x)}if(S!==null)var V=!0;else{var Y=s(C);Y!==null&&xe(Z,Y.startTime-K),V=!1}return V}finally{S=null,$=U,W=!1}}var G=!1,X=null,Ee=-1,q=5,me=-1;function ce(){return!(r.unstable_now()-me_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<_?Math.floor(1e3/_):5},r.unstable_getCurrentPriorityLevel=function(){return $},r.unstable_getFirstCallbackNode=function(){return s(x)},r.unstable_next=function(_){switch($){case 1:case 2:case 3:var K=3;break;default:K=$}var U=$;$=K;try{return _()}finally{$=U}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(_,K){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var U=$;$=_;try{return K()}finally{$=U}},r.unstable_scheduleCallback=function(_,K,U){var v=r.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0v?(_.sortIndex=U,l(C,_),s(x)===null&&_===s(C)&&(M?(Q(Ee),Ee=-1):M=!0,xe(Z,U-v))):(_.sortIndex=I,l(x,_),H||W||(H=!0,$e(ne))),_},r.unstable_shouldYield=ce,r.unstable_wrapCallback=function(_){var K=$;return function(){var U=$;$=K;try{return _.apply(this,arguments)}finally{$=U}}}}(us)),us}var jd;function um(){return jd||(jd=1,ss.exports=sm()),ss.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Od;function cm(){if(Od)return mt;Od=1;var r=Is(),l=um();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x=Object.prototype.hasOwnProperty,C=/^[: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]*$/,D={},S={};function $(e){return x.call(S,e)?!0:x.call(D,e)?!1:C.test(e)?S[e]=!0:(D[e]=!0,!1)}function W(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H(e,t,n,o){if(t===null||typeof t>"u"||W(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function M(e,t,n,o,i,a,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=c}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){j[e]=new M(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];j[t]=new M(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){j[e]=new M(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){j[e]=new M(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){j[e]=new M(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){j[e]=new M(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){j[e]=new M(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){j[e]=new M(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){j[e]=new M(e,5,!1,e.toLowerCase(),null,!1,!1)});var Q=/[\-:]([a-z])/g;function B(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Q,B);j[t]=new M(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(Q,B);j[t]=new M(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(Q,B);j[t]=new M(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){j[e]=new M(e,1,!1,e.toLowerCase(),null,!1,!1)}),j.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){j[e]=new M(e,1,!1,e.toLowerCase(),null,!0,!0)});function O(e,t,n,o){var i=j.hasOwnProperty(t)?j[t]:null;(i!==null?i.type!==0:o||!(2f||i[c]!==a[f]){var m=` `+i[c].replace(" at new "," at ");return e.displayName&&m.includes("")&&(m=m.replace("",e.displayName)),m}while(1<=c&&0<=f);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?I(e):""}function oe(e){switch(e.tag){case 5:return I(e.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return e=Y(e.type,!1),e;case 11:return e=Y(e.type.render,!1),e;case 1:return e=Y(e.type,!0),e;default:return""}}function ee(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case G:return"Portal";case q:return"Profiler";case Ee:return"StrictMode";case ae:return"Suspense";case ge:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ce:return(e.displayName||"Context")+".Consumer";case me:return(e._context.displayName||"Context")+".Provider";case fe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case be:return t=e.displayName||null,t!==null?t:ee(e.type)||"Memo";case $e:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}function se(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(t);case 8:return t===Ee?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ve(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function R(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function de(e){var t=R(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(c){o=""+c,a.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(c){o=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function we(e){e._valueTracker||(e._valueTracker=de(e))}function Ae(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=R(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function De(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ue(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fe(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=ve(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function at(e,t){t=t.checked,t!=null&&O(e,"checked",t,!1)}function gt(e,t){at(e,t);var n=ve(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?St(e,t.type,n):t.hasOwnProperty("defaultValue")&&St(e,t.type,ve(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function St(e,t,n){(t!=="number"||De(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xt=Array.isArray;function Bt(e,t,n,o){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Br={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},up=["Webkit","ms","Moz","O"];Object.keys(Br).forEach(function(e){up.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Br[t]=Br[e]})});function Gs(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Br.hasOwnProperty(e)&&Br[e]?(""+t).trim():t+"px"}function Ks(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,i=Gs(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,i):e[n]=i}}var cp=U({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 vi(e,t){if(t){if(cp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function yi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xi=null;function wi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ki=null,or=null,lr=null;function Ys(e){if(e=uo(e)){if(typeof ki!="function")throw Error(s(280));var t=e.stateNode;t&&(t=nl(t),ki(e.stateNode,e.type,t))}}function Xs(e){or?lr?lr.push(e):lr=[e]:or=e}function Zs(){if(or){var e=or,t=lr;if(lr=or=null,Ys(e),t)for(e=0;e>>=0,e===0?32:31-(kp(e)/Sp|0)|0}var Oo=64,Fo=4194304;function Wr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mo(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes,c=n&268435455;if(c!==0){var f=c&~i;f!==0?o=Wr(f):(a&=c,a!==0&&(o=Wr(a)))}else c=n&~i,c!==0?o=Wr(c):a!==0&&(o=Wr(a));if(o===0)return 0;if(t!==0&&t!==o&&(t&i)===0&&(i=o&-o,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if((o&4)!==0&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function Vr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function Cp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=eo),Au=" ",Cu=!1;function $u(e,t){switch(e){case"keyup":return eh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sr=!1;function nh(e,t){switch(e){case"compositionend":return Tu(t);case"keypress":return t.which!==32?null:(Cu=!0,Au);case"textInput":return e=t.data,e===Au&&Cu?null:e;default:return null}}function rh(e,t){if(sr)return e==="compositionend"||!Fi&&$u(e,t)?(e=xu(),Wo=zi=gn=null,sr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nu(n)}}function ju(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ju(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ou(){for(var e=window,t=De();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=De(e.document)}return t}function Ui(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fh(e){var t=Ou(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ju(n.ownerDocument.documentElement,n)){if(o!==null&&Ui(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(o.start,i);o=o.end===void 0?a:Math.min(o.end,i),!e.extend&&a>o&&(i=o,o=a,a=i),i=Lu(n,a);var c=Lu(n,o);i&&c&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>o?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ur=null,Hi=null,oo=null,Qi=!1;function Fu(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qi||ur==null||ur!==De(o)||(o=ur,"selectionStart"in o&&Ui(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),oo&&ro(oo,o)||(oo=o,o=Jo(Hi,"onSelect"),0hr||(e.current=na[hr],na[hr]=null,hr--)}function _e(e,t){hr++,na[hr]=e.current,e.current=t}var wn={},rt=xn(wn),ct=xn(!1),On=wn;function mr(e,t){var n=e.type.contextTypes;if(!n)return wn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dt(e){return e=e.childContextTypes,e!=null}function rl(){Pe(ct),Pe(rt)}function ec(e,t,n){if(rt.current!==wn)throw Error(s(168));_e(rt,t),_e(ct,n)}function tc(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var i in o)if(!(i in t))throw Error(s(108,se(e)||"Unknown",i));return U({},n,o)}function ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wn,On=rt.current,_e(rt,e),_e(ct,ct.current),!0}function nc(e,t,n){var o=e.stateNode;if(!o)throw Error(s(169));n?(e=tc(e,t,On),o.__reactInternalMemoizedMergedChildContext=e,Pe(ct),Pe(rt),_e(rt,e)):Pe(ct),_e(ct,n)}var Jt=null,ll=!1,ra=!1;function rc(e){Jt===null?Jt=[e]:Jt.push(e)}function bh(e){ll=!0,rc(e)}function kn(){if(!ra&&Jt!==null){ra=!0;var e=0,t=Re;try{var n=Jt;for(Re=1;e>=c,i-=c,en=1<<32-Dt(t)+i|n<ye?(Ze=he,he=null):Ze=he.sibling;var Te=z(y,he,k[ye],F);if(Te===null){he===null&&(he=Ze);break}e&&he&&Te.alternate===null&&t(y,he),g=a(Te,g,ye),pe===null?ue=Te:pe.sibling=Te,pe=Te,he=Ze}if(ye===k.length)return n(y,he),Le&&Mn(y,ye),ue;if(he===null){for(;yeye?(Ze=he,he=null):Ze=he.sibling;var Dn=z(y,he,Te.value,F);if(Dn===null){he===null&&(he=Ze);break}e&&he&&Dn.alternate===null&&t(y,he),g=a(Dn,g,ye),pe===null?ue=Dn:pe.sibling=Dn,pe=Dn,he=Ze}if(Te.done)return n(y,he),Le&&Mn(y,ye),ue;if(he===null){for(;!Te.done;ye++,Te=k.next())Te=L(y,Te.value,F),Te!==null&&(g=a(Te,g,ye),pe===null?ue=Te:pe.sibling=Te,pe=Te);return Le&&Mn(y,ye),ue}for(he=o(y,he);!Te.done;ye++,Te=k.next())Te=J(he,y,ye,Te.value,F),Te!==null&&(e&&Te.alternate!==null&&he.delete(Te.key===null?ye:Te.key),g=a(Te,g,ye),pe===null?ue=Te:pe.sibling=Te,pe=Te);return e&&he.forEach(function(om){return t(y,om)}),Le&&Mn(y,ye),ue}function Qe(y,g,k,F){if(typeof k=="object"&&k!==null&&k.type===X&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case ne:e:{for(var ue=k.key,pe=g;pe!==null;){if(pe.key===ue){if(ue=k.type,ue===X){if(pe.tag===7){n(y,pe.sibling),g=i(pe,k.props.children),g.return=y,y=g;break e}}else if(pe.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===$e&&uc(ue)===pe.type){n(y,pe.sibling),g=i(pe,k.props),g.ref=co(y,pe,k),g.return=y,y=g;break e}n(y,pe);break}else t(y,pe);pe=pe.sibling}k.type===X?(g=Kn(k.props.children,y.mode,F,k.key),g.return=y,y=g):(F=zl(k.type,k.key,k.props,null,y.mode,F),F.ref=co(y,g,k),F.return=y,y=F)}return c(y);case G:e:{for(pe=k.key;g!==null;){if(g.key===pe)if(g.tag===4&&g.stateNode.containerInfo===k.containerInfo&&g.stateNode.implementation===k.implementation){n(y,g.sibling),g=i(g,k.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=es(k,y.mode,F),g.return=y,y=g}return c(y);case $e:return pe=k._init,Qe(y,g,pe(k._payload),F)}if(Xt(k))return le(y,g,k,F);if(K(k))return ie(y,g,k,F);ul(y,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,k),g.return=y,y=g):(n(y,g),g=Ja(k,y.mode,F),g.return=y,y=g),c(y)):n(y,g)}return Qe}var xr=cc(!0),dc=cc(!1),cl=xn(null),dl=null,wr=null,ua=null;function ca(){ua=wr=dl=null}function da(e){var t=cl.current;Pe(cl),e._currentValue=t}function fa(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function kr(e,t){dl=e,ua=wr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ft=!0),e.firstContext=null)}function At(e){var t=e._currentValue;if(ua!==e)if(e={context:e,memoizedValue:t,next:null},wr===null){if(dl===null)throw Error(s(308));wr=e,dl.dependencies={lanes:0,firstContext:e}}else wr=wr.next=e;return t}var Bn=null;function pa(e){Bn===null?Bn=[e]:Bn.push(e)}function fc(e,t,n,o){var i=t.interleaved;return i===null?(n.next=n,pa(t)):(n.next=i.next,i.next=n),t.interleaved=n,nn(e,o)}function nn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Sn=!1;function ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pc(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 rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function En(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ce&2)!==0){var i=o.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),o.pending=t,nn(e,n)}return i=o.interleaved,i===null?(t.next=t,pa(o)):(t.next=i.next,i.next=t),o.interleaved=t,nn(e,n)}function fl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Ti(e,n)}}function hc(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var c={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=c:a=a.next=c,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pl(e,t,n,o){var i=e.updateQueue;Sn=!1;var a=i.firstBaseUpdate,c=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var m=f,E=m.next;m.next=null,c===null?a=E:c.next=E,c=m;var P=e.alternate;P!==null&&(P=P.updateQueue,f=P.lastBaseUpdate,f!==c&&(f===null?P.firstBaseUpdate=E:f.next=E,P.lastBaseUpdate=m))}if(a!==null){var L=i.baseState;c=0,P=E=m=null,f=a;do{var z=f.lane,J=f.eventTime;if((o&z)===z){P!==null&&(P=P.next={eventTime:J,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var le=e,ie=f;switch(z=t,J=n,ie.tag){case 1:if(le=ie.payload,typeof le=="function"){L=le.call(J,L,z);break e}L=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ie.payload,z=typeof le=="function"?le.call(J,L,z):le,z==null)break e;L=U({},L,z);break e;case 2:Sn=!0}}f.callback!==null&&f.lane!==0&&(e.flags|=64,z=i.effects,z===null?i.effects=[f]:z.push(f))}else J={eventTime:J,lane:z,tag:f.tag,payload:f.payload,callback:f.callback,next:null},P===null?(E=P=J,m=L):P=P.next=J,c|=z;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;z=f,f=z.next,z.next=null,i.lastBaseUpdate=z,i.shared.pending=null}}while(!0);if(P===null&&(m=L),i.baseState=m,i.firstBaseUpdate=E,i.lastBaseUpdate=P,t=i.shared.interleaved,t!==null){i=t;do c|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Qn|=c,e.lanes=c,e.memoizedState=L}}function mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=xa.transition;xa.transition={};try{e(!1),t()}finally{Re=n,xa.transition=o}}function Pc(){return Ct().memoizedState}function Th(e,t,n){var o=$n(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Nc(e))Lc(t,n);else if(n=fc(e,t,n,o),n!==null){var i=ut();Lt(n,e,o,i),jc(n,t,o)}}function Ih(e,t,n){var o=$n(e),i={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nc(e))Lc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var c=t.lastRenderedState,f=a(c,n);if(i.hasEagerState=!0,i.eagerState=f,Rt(f,c)){var m=t.interleaved;m===null?(i.next=i,pa(t)):(i.next=m.next,m.next=i),t.interleaved=i;return}}catch{}finally{}n=fc(e,t,i,o),n!==null&&(i=ut(),Lt(n,e,o,i),jc(n,t,o))}}function Nc(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function Lc(e,t){mo=gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jc(e,t,n){if((n&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Ti(e,n)}}var xl={readContext:At,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},Dh={readContext:At,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:Cc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vl(4194308,4,Ic.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vl(4194308,4,e,t)},useInsertionEffect:function(e,t){return vl(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Wt();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Th.bind(null,Oe,e),[o.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:bc,useDebugValue:Ca,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=bc(!1),t=e[0];return e=$h.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Oe,i=Wt();if(Le){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Xe===null)throw Error(s(349));(Hn&30)!==0||xc(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Cc(kc.bind(null,o,a,e),[e]),o.flags|=2048,yo(9,wc.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=Wt(),t=Xe.identifierPrefix;if(Le){var n=tn,o=en;n=(o&~(1<<32-Dt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=go++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=c.createElement(n,{is:o.is}):(e=c.createElement(n),n==="select"&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,n),e[Ht]=t,e[so]=o,rd(e,t,!1,!1),t.stateNode=e;e:{switch(c=yi(n,o),n){case"dialog":ze("cancel",e),ze("close",e),i=o;break;case"iframe":case"object":case"embed":ze("load",e),i=o;break;case"video":case"audio":for(i=0;iCr&&(t.flags|=128,o=!0,xo(a,!1),t.lanes=4194304)}else{if(!o)if(e=hl(c),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xo(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Le)return lt(t),null}else 2*He()-a.renderingStartTime>Cr&&n!==1073741824&&(t.flags|=128,o=!0,xo(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(n=a.last,n!==null?n.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=He(),t.sibling=null,n=je.current,_e(je,o?n&1|2:n&1),t):(lt(t),null);case 22:case 23:return Xa(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(wt&1073741824)!==0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Oh(e,t){switch(la(t),t.tag){case 1:return dt(t.type)&&rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sr(),Pe(ct),Pe(rt),ya(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ga(t),null;case 13:if(Pe(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(je),null;case 4:return Sr(),null;case 10:return da(t.type._context),null;case 22:case 23:return Xa(),null;case 24:return null;default:return null}}var El=!1,it=!1,Fh=typeof WeakSet=="function"?WeakSet:Set,re=null;function br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Me(e,t,o)}else n.current=null}function Oa(e,t,n){try{n()}catch(o){Me(e,t,o)}}var id=!1;function Mh(e,t){if(Xi=Ho,e=Ou(),Ui(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var c=0,f=-1,m=-1,E=0,P=0,L=e,z=null;t:for(;;){for(var J;L!==n||i!==0&&L.nodeType!==3||(f=c+i),L!==a||o!==0&&L.nodeType!==3||(m=c+o),L.nodeType===3&&(c+=L.nodeValue.length),(J=L.firstChild)!==null;)z=L,L=J;for(;;){if(L===e)break t;if(z===n&&++E===i&&(f=c),z===a&&++P===o&&(m=c),(J=L.nextSibling)!==null)break;L=z,z=L.parentNode}L=J}n=f===-1||m===-1?null:{start:f,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zi={focusedElem:e,selectionRange:n},Ho=!1,re=t;re!==null;)if(t=re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,re=e;else for(;re!==null;){t=re;try{var le=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(le!==null){var ie=le.memoizedProps,Qe=le.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?ie:zt(t.type,ie),Qe);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(F){Me(t,t.return,F)}if(e=t.sibling,e!==null){e.return=t.return,re=e;break}re=t.return}return le=id,id=!1,le}function wo(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var i=o=o.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Oa(t,n,a)}i=i.next}while(i!==o)}}function bl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function Fa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ad(e){var t=e.alternate;t!==null&&(e.alternate=null,ad(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[so],delete t[ta],delete t[Sh],delete t[Eh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sd(e){return e.tag===5||e.tag===3||e.tag===4}function ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ma(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tl));else if(o!==4&&(e=e.child,e!==null))for(Ma(e,t,n),e=e.sibling;e!==null;)Ma(e,t,n),e=e.sibling}function Ba(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Ba(e,t,n),e=e.sibling;e!==null;)Ba(e,t,n),e=e.sibling}var et=null,Pt=!1;function bn(e,t,n){for(n=n.child;n!==null;)cd(e,t,n),n=n.sibling}function cd(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(jo,n)}catch{}switch(n.tag){case 5:it||br(n,t);case 6:var o=et,i=Pt;et=null,bn(e,t,n),et=o,Pt=i,et!==null&&(Pt?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(Pt?(e=et,n=n.stateNode,e.nodeType===8?ea(e.parentNode,n):e.nodeType===1&&ea(e,n),Zr(e)):ea(et,n.stateNode));break;case 4:o=et,i=Pt,et=n.stateNode.containerInfo,Pt=!0,bn(e,t,n),et=o,Pt=i;break;case 0:case 11:case 14:case 15:if(!it&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){i=o=o.next;do{var a=i,c=a.destroy;a=a.tag,c!==void 0&&((a&2)!==0||(a&4)!==0)&&Oa(n,t,c),i=i.next}while(i!==o)}bn(e,t,n);break;case 1:if(!it&&(br(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(f){Me(n,t,f)}bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:n.mode&1?(it=(o=it)||n.memoizedState!==null,bn(e,t,n),it=o):bn(e,t,n);break;default:bn(e,t,n)}}function dd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fh),t.forEach(function(o){var i=Yh.bind(null,e,o);n.has(o)||(n.add(o),o.then(i,i))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var o=0;oi&&(i=c),o&=~a}if(o=i,o=He()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Uh(o/1960))-o,10e?16:e,Cn===null)var o=!1;else{if(e=Cn,Cn=null,Il=0,(Ce&6)!==0)throw Error(s(331));var i=Ce;for(Ce|=4,re=e.current;re!==null;){var a=re,c=a.child;if((re.flags&16)!==0){var f=a.deletions;if(f!==null){for(var m=0;mHe()-Qa?Vn(e,0):Ha|=n),ht(e,t)}function bd(e,t){t===0&&((e.mode&1)===0?t=1:(t=Fo,Fo<<=1,(Fo&130023424)===0&&(Fo=4194304)));var n=ut();e=nn(e,t),e!==null&&(Vr(e,t,n),ht(e,n))}function Kh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bd(e,n)}function Yh(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(s(314))}o!==null&&o.delete(t),bd(e,n)}var Ad;Ad=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)ft=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ft=!1,Lh(e,t,n);ft=(e.flags&131072)!==0}else ft=!1,Le&&(t.flags&1048576)!==0&&oc(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Sl(e,t),e=t.pendingProps;var i=mr(t,rt.current);kr(t,n),i=ka(null,t,o,e,i,n);var a=Sa();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(o)?(a=!0,ol(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ha(t),i.updater=wl,t.stateNode=i,i._reactInternals=t,Ta(t,o,e,n),t=_a(null,t,o,!0,a,n)):(t.tag=0,Le&&a&&oa(t),st(null,t,i,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Sl(e,t),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=Zh(o),e=zt(o,e),i){case 0:t=Ra(null,t,o,e,n);break e;case 1:t=Zc(null,t,o,e,n);break e;case 11:t=Vc(null,t,o,e,n);break e;case 14:t=Gc(null,t,o,zt(o.type,e),n);break e}throw Error(s(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:zt(o,i),Ra(e,t,o,i,n);case 1:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:zt(o,i),Zc(e,t,o,i,n);case 3:e:{if(qc(t),e===null)throw Error(s(387));o=t.pendingProps,a=t.memoizedState,i=a.element,pc(e,t),pl(t,o,null,n);var c=t.memoizedState;if(o=c.element,a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Er(Error(s(423)),t),t=Jc(e,t,o,n,i);break e}else if(o!==i){i=Er(Error(s(424)),t),t=Jc(e,t,o,n,i);break e}else for(xt=yn(t.stateNode.containerInfo.firstChild),yt=t,Le=!0,_t=null,n=dc(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yr(),o===i){t=on(e,t,n);break e}st(e,t,o,n)}t=t.child}return t;case 5:return gc(t),e===null&&aa(t),o=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,c=i.children,qi(o,i)?c=null:a!==null&&qi(o,a)&&(t.flags|=32),Xc(e,t),st(e,t,c,n),t.child;case 6:return e===null&&aa(t),null;case 13:return ed(e,t,n);case 4:return ma(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=xr(t,null,o,n):st(e,t,o,n),t.child;case 11:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:zt(o,i),Vc(e,t,o,i,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,c=i.value,_e(cl,o._currentValue),o._currentValue=c,a!==null)if(Rt(a.value,c)){if(a.children===i.children&&!ct.current){t=on(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var f=a.dependencies;if(f!==null){c=a.child;for(var m=f.firstContext;m!==null;){if(m.context===o){if(a.tag===1){m=rn(-1,n&-n),m.tag=2;var E=a.updateQueue;if(E!==null){E=E.shared;var P=E.pending;P===null?m.next=m:(m.next=P.next,P.next=m),E.pending=m}}a.lanes|=n,m=a.alternate,m!==null&&(m.lanes|=n),fa(a.return,n,t),f.lanes|=n;break}m=m.next}}else if(a.tag===10)c=a.type===t.type?null:a.child;else if(a.tag===18){if(c=a.return,c===null)throw Error(s(341));c.lanes|=n,f=c.alternate,f!==null&&(f.lanes|=n),fa(c,n,t),c=a.sibling}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===t){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}st(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,kr(t,n),i=At(i),o=o(i),t.flags|=1,st(e,t,o,n),t.child;case 14:return o=t.type,i=zt(o,t.pendingProps),i=zt(o.type,i),Gc(e,t,o,i,n);case 15:return Kc(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:zt(o,i),Sl(e,t),t.tag=1,dt(o)?(e=!0,ol(t)):e=!1,kr(t,n),Fc(t,o,i),Ta(t,o,i,n),_a(null,t,o,!0,e,n);case 19:return nd(e,t,n);case 22:return Yc(e,t,n)}throw Error(s(156,t.tag))};function Cd(e,t){return lu(e,t)}function Xh(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,o){return new Xh(e,t,n,o)}function qa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zh(e){if(typeof e=="function")return qa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fe)return 11;if(e===be)return 14}return 2}function In(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zl(e,t,n,o,i,a){var c=2;if(o=e,typeof e=="function")qa(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case X:return Kn(n.children,i,a,t);case Ee:c=8,i|=8;break;case q:return e=Tt(12,n,t,i|2),e.elementType=q,e.lanes=a,e;case ae:return e=Tt(13,n,t,i),e.elementType=ae,e.lanes=a,e;case ge:return e=Tt(19,n,t,i),e.elementType=ge,e.lanes=a,e;case xe:return Pl(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case me:c=10;break e;case ce:c=9;break e;case fe:c=11;break e;case be:c=14;break e;case $e:c=16,o=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Tt(c,n,t,i),t.elementType=e,t.type=o,t.lanes=a,t}function Kn(e,t,n,o){return e=Tt(7,e,o,t),e.lanes=n,e}function Pl(e,t,n,o){return e=Tt(22,e,o,t),e.elementType=xe,e.lanes=n,e.stateNode={isHidden:!1},e}function Ja(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function es(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qh(e,t,n,o,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$i(0),this.expirationTimes=$i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ts(e,t,n,o,i,a,c,f,m){return e=new qh(e,t,n,f,m),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Tt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ha(a),e}function Jh(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(l){console.error(l)}}return r(),as.exports=cm(),as.exports}var Md;function dm(){if(Md)return Bl;Md=1;var r=gf();return Bl.createRoot=r.createRoot,Bl.hydrateRoot=r.hydrateRoot,Bl}var fm=dm(),b=Is();const A=mf(b);var pm=` html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1.5; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none; } table { border-collapse: collapse; border-spacing: 0; } a { color: inherit; text-decoration: none; } ul, li { list-style-type: none; } button { outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { margin: 0; padding: 0; font-family: sans-serif; color: black; } code { font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; } input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } input[type="number"] { -moz-appearance: textfield; } `,Je=function(){return Je=Object.assign||function(l){for(var s,u=1,d=arguments.length;u0?qe(Or,--It):0,Pr--,Ve===10&&(Pr=1,ai--),Ve}function jt(){return Ve=It2||vs(Ve)>3?"":" "}function Em(r,l){for(;--l&&jt()&&!(Ve<48||Ve>102||Ve>57&&Ve<65||Ve>70&&Ve<97););return ui(r,Yl()+(l<6&&Jn()==32&&jt()==32))}function ys(r){for(;jt();)switch(Ve){case r:return It;case 34:case 39:r!==34&&r!==39&&ys(Ve);break;case 40:r===41&&ys(r);break;case 92:jt();break}return It}function bm(r,l){for(;jt()&&r+Ve!==57;)if(r+Ve===84&&Jn()===47)break;return"/*"+ui(l,It-1)+"*"+Rs(r===47?r:jt())}function Am(r){for(;!vs(Jn());)jt();return ui(r,It)}function Cm(r){return km(Xl("",null,null,null,[""],r=wm(r),0,[0],r))}function Xl(r,l,s,u,d,h,p,w,x){for(var C=0,D=0,S=p,$=0,W=0,H=0,M=1,j=1,Q=1,B=0,O="",Z=d,ne=h,G=u,X=O;j;)switch(H=B,B=jt()){case 40:if(H!=108&&qe(X,S-1)==58){Kl(X+=ke(cs(B),"&","&\f"),"&\f",xf(C?w[C-1]:0))!=-1&&(Q=-1);break}case 34:case 39:case 91:X+=cs(B);break;case 9:case 10:case 13:case 32:X+=Sm(H);break;case 92:X+=Em(Yl()-1,7);continue;case 47:switch(Jn()){case 42:case 47:$o($m(bm(jt(),Yl()),l,s,x),x);break;default:X+="/"}break;case 123*M:w[C++]=Gt(X)*Q;case 125*M:case 59:case 0:switch(B){case 0:case 125:j=0;case 59+D:Q==-1&&(X=ke(X,/\f/g,"")),W>0&&Gt(X)-S&&$o(W>32?Hd(X+";",u,s,S-1,x):Hd(ke(X," ","")+";",u,s,S-2,x),x);break;case 59:X+=";";default:if($o(G=Ud(X,l,s,C,D,d,w,O,Z=[],ne=[],S,h),h),B===123)if(D===0)Xl(X,l,G,G,Z,h,S,w,ne);else switch($===99&&qe(X,3)===110?100:$){case 100:case 108:case 109:case 115:Xl(r,G,G,u&&$o(Ud(r,G,G,0,0,d,w,O,d,Z=[],S,ne),ne),d,ne,S,w,u?Z:ne);break;default:Xl(X,G,G,G,[""],ne,0,w,ne)}}C=D=W=0,M=Q=1,O=X="",S=p;break;case 58:S=1+Gt(X),W=H;default:if(M<1){if(B==123)--M;else if(B==125&&M++==0&&xm()==125)continue}switch(X+=Rs(B),B*M){case 38:Q=D>0?1:(X+="\f",-1);break;case 44:w[C++]=(Gt(X)-1)*Q,Q=1;break;case 64:Jn()===45&&(X+=cs(jt())),$=Jn(),D=S=Gt(O=X+=Am(Yl())),B++;break;case 45:H===45&&Gt(X)==2&&(M=0)}}return h}function Ud(r,l,s,u,d,h,p,w,x,C,D,S){for(var $=d-1,W=d===0?h:[""],H=kf(W),M=0,j=0,Q=0;M0?W[B]+" "+O:ke(O,/&\f/g,W[B])))&&(x[Q++]=Z);return si(r,l,s,d===0?ii:w,x,C,D,S)}function $m(r,l,s,u){return si(r,l,s,vf,Rs(ym()),zr(r,2,-2),0,u)}function Hd(r,l,s,u,d){return si(r,l,s,Ds,zr(r,0,u),zr(r,u+1,-1),u,d)}function Ef(r,l,s){switch(gm(r,l)){case 5103:return Ie+"print-"+r+r;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 Ie+r+r;case 4789:return To+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return Ie+r+To+r+Ne+r+r;case 5936:switch(qe(r,l+11)){case 114:return Ie+r+Ne+ke(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return Ie+r+Ne+ke(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return Ie+r+Ne+ke(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return Ie+r+Ne+r+r;case 6165:return Ie+r+Ne+"flex-"+r+r;case 5187:return Ie+r+ke(r,/(\w+).+(:[^]+)/,Ie+"box-$1$2"+Ne+"flex-$1$2")+r;case 5443:return Ie+r+Ne+"flex-item-"+ke(r,/flex-|-self/g,"")+(sn(r,/flex-|baseline/)?"":Ne+"grid-row-"+ke(r,/flex-|-self/g,""))+r;case 4675:return Ie+r+Ne+"flex-line-pack"+ke(r,/align-content|flex-|-self/g,"")+r;case 5548:return Ie+r+Ne+ke(r,"shrink","negative")+r;case 5292:return Ie+r+Ne+ke(r,"basis","preferred-size")+r;case 6060:return Ie+"box-"+ke(r,"-grow","")+Ie+r+Ne+ke(r,"grow","positive")+r;case 4554:return Ie+ke(r,/([^-])(transform)/g,"$1"+Ie+"$2")+r;case 6187:return ke(ke(ke(r,/(zoom-|grab)/,Ie+"$1"),/(image-set)/,Ie+"$1"),r,"")+r;case 5495:case 3959:return ke(r,/(image-set\([^]*)/,Ie+"$1$`$1");case 4968:return ke(ke(r,/(.+:)(flex-)?(.*)/,Ie+"box-pack:$3"+Ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ie+r+r;case 4200:if(!sn(r,/flex-|baseline/))return Ne+"grid-column-align"+zr(r,l)+r;break;case 2592:case 3360:return Ne+ke(r,"template-","")+r;case 4384:case 3616:return s&&s.some(function(u,d){return l=d,sn(u.props,/grid-\w+-end/)})?~Kl(r+(s=s[l].value),"span",0)?r:Ne+ke(r,"-start","")+r+Ne+"grid-row-span:"+(~Kl(s,"span",0)?sn(s,/\d+/):+sn(s,/\d+/)-+sn(r,/\d+/))+";":Ne+ke(r,"-start","")+r;case 4896:case 4128:return s&&s.some(function(u){return sn(u.props,/grid-\w+-start/)})?r:Ne+ke(ke(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return ke(r,/(.+)-inline(.+)/,Ie+"$1$2")+r;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(Gt(r)-1-l>6)switch(qe(r,l+1)){case 109:if(qe(r,l+4)!==45)break;case 102:return ke(r,/(.+:)(.+)-([^]+)/,"$1"+Ie+"$2-$3$1"+To+(qe(r,l+3)==108?"$3":"$2-$3"))+r;case 115:return~Kl(r,"stretch",0)?Ef(ke(r,"stretch","fill-available"),l,s)+r:r}break;case 5152:case 5920:return ke(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(u,d,h,p,w,x,C){return Ne+d+":"+h+C+(p?Ne+d+"-span:"+(w?x:+x-+h)+C:"")+r});case 4949:if(qe(r,l+6)===121)return ke(r,":",":"+Ie)+r;break;case 6444:switch(qe(r,qe(r,14)===45?18:11)){case 120:return ke(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ie+(qe(r,14)===45?"inline-":"")+"box$3$1"+Ie+"$2$3$1"+Ne+"$2box$3")+r;case 100:return ke(r,":",":"+Ne)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ke(r,"scroll-","scroll-snap-")+r}return r}function Jl(r,l){for(var s="",u=0;u-1&&!r.return)switch(r.type){case Ds:r.return=Ef(r.value,r.length,s);return;case yf:return Jl([_n(r,{value:ke(r.value,"@","@"+Ie)})],u);case ii:if(r.length)return vm(s=r.props,function(d){switch(sn(d,u=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Tr(_n(r,{props:[ke(d,/:(read-\w+)/,":"+To+"$1")]})),Tr(_n(r,{props:[d]})),gs(r,{props:Bd(s,u)});break;case"::placeholder":Tr(_n(r,{props:[ke(d,/:(plac\w+)/,":"+Ie+"input-$1")]})),Tr(_n(r,{props:[ke(d,/:(plac\w+)/,":"+To+"$1")]})),Tr(_n(r,{props:[ke(d,/:(plac\w+)/,Ne+"input-$1")]})),Tr(_n(r,{props:[d]})),gs(r,{props:Bd(s,u)});break}return""})}}var _m={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,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},kt={},Nr=typeof process<"u"&&kt!==void 0&&(kt.REACT_APP_SC_ATTR||kt.SC_ATTR)||"data-styled",bf="active",Af="data-styled-version",ci="6.1.17",_s=`/*!sc*/ `,ei=typeof window<"u"&&"HTMLElement"in window,zm=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&kt!==void 0&&kt.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&kt.REACT_APP_SC_DISABLE_SPEEDY!==""?kt.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&kt.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&kt!==void 0&&kt.SC_DISABLE_SPEEDY!==void 0&&kt.SC_DISABLE_SPEEDY!==""&&kt.SC_DISABLE_SPEEDY!=="false"&&kt.SC_DISABLE_SPEEDY),Pm={},di=Object.freeze([]),Lr=Object.freeze({});function Cf(r,l,s){return s===void 0&&(s=Lr),r.theme!==s.theme&&r.theme||l||s.theme}var $f=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Nm=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Lm=/(^-|-$)/g;function Qd(r){return r.replace(Nm,"-").replace(Lm,"")}var jm=/(a)(d)/gi,Ul=52,Wd=function(r){return String.fromCharCode(r+(r>25?39:97))};function xs(r){var l,s="";for(l=Math.abs(r);l>Ul;l=l/Ul|0)s=Wd(l%Ul)+s;return(Wd(l%Ul)+s).replace(jm,"$1-$2")}var ds,Tf=5381,Rr=function(r,l){for(var s=l.length;s;)r=33*r^l.charCodeAt(--s);return r},If=function(r){return Rr(Tf,r)};function Df(r){return xs(If(r)>>>0)}function Om(r){return r.displayName||r.name||"Component"}function fs(r){return typeof r=="string"&&!0}var Rf=typeof Symbol=="function"&&Symbol.for,_f=Rf?Symbol.for("react.memo"):60115,Fm=Rf?Symbol.for("react.forward_ref"):60112,Mm={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bm={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Um=((ds={})[Fm]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ds[_f]=zf,ds);function Vd(r){return("type"in(l=r)&&l.type.$$typeof)===_f?zf:"$$typeof"in r?Um[r.$$typeof]:Mm;var l}var Hm=Object.defineProperty,Qm=Object.getOwnPropertyNames,Gd=Object.getOwnPropertySymbols,Wm=Object.getOwnPropertyDescriptor,Vm=Object.getPrototypeOf,Kd=Object.prototype;function Pf(r,l,s){if(typeof l!="string"){if(Kd){var u=Vm(l);u&&u!==Kd&&Pf(r,u,s)}var d=Qm(l);Gd&&(d=d.concat(Gd(l)));for(var h=Vd(r),p=Vd(l),w=0;w0?" Args: ".concat(l.join(", ")):""))}var Gm=function(){function r(l){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=l}return r.prototype.indexOfGroup=function(l){for(var s=0,u=0;u=this.groupSizes.length){for(var u=this.groupSizes,d=u.length,h=d;l>=h;)if((h<<=1)<0)throw tr(16,"".concat(l));this.groupSizes=new Uint32Array(h),this.groupSizes.set(u),this.length=h;for(var p=d;p=this.length||this.groupSizes[l]===0)return s;for(var u=this.groupSizes[l],d=this.indexOfGroup(l),h=d+u,p=d;p=0){var u=document.createTextNode(s);return this.element.insertBefore(u,this.nodes[l]||null),this.length++,!0}return!1},r.prototype.deleteRule=function(l){this.element.removeChild(this.nodes[l]),this.length--},r.prototype.getRule=function(l){return l0&&(j+="".concat(Q,","))}),x+="".concat(H).concat(M,'{content:"').concat(j,'"}').concat(_s)},D=0;D0?".".concat(l):$},D=x.slice();D.push(function($){$.type===ii&&$.value.includes("&")&&($.props[0]=$.props[0].replace(o0,s).replace(u,C))}),p.prefix&&D.push(Rm),D.push(Tm);var S=function($,W,H,M){W===void 0&&(W=""),H===void 0&&(H=""),M===void 0&&(M="&"),l=M,s=W,u=new RegExp("\\".concat(s,"\\b"),"g");var j=$.replace(l0,""),Q=Cm(H||W?"".concat(H," ").concat(W," { ").concat(j," }"):j);p.namespace&&(Q=Lf(Q,p.namespace));var B=[];return Jl(Q,Im(D.concat(Dm(function(O){return B.push(O)})))),B};return S.hash=x.length?x.reduce(function($,W){return W.name||tr(15),Rr($,W.name)},Tf).toString():"",S}var a0=new ni,Ss=i0(),jf=A.createContext({shouldForwardProp:void 0,styleSheet:a0,stylis:Ss});jf.Consumer;A.createContext(void 0);function Es(){return b.useContext(jf)}var s0=function(){function r(l,s){var u=this;this.inject=function(d,h){h===void 0&&(h=Ss);var p=u.name+h.hash;d.hasNameForId(u.id,p)||d.insertRules(u.id,p,h(u.rules,p,"@keyframes"))},this.name=l,this.id="sc-keyframes-".concat(l),this.rules=s,Ps(this,function(){throw tr(12,String(u.name))})}return r.prototype.getName=function(l){return l===void 0&&(l=Ss),this.name+l.hash},r}(),u0=function(r){return r>="A"&&r<="Z"};function Zd(r){for(var l="",s=0;s>>0);if(!s.hasNameForId(this.componentId,p)){var w=u(h,".".concat(p),void 0,this.componentId);s.insertRules(this.componentId,p,w)}d=Zn(d,p),this.staticRulesId=p}else{for(var x=Rr(this.baseHash,u.hash),C="",D=0;D>>0);s.hasNameForId(this.componentId,W)||s.insertRules(this.componentId,W,u(C,".".concat(W),void 0,this.componentId)),d=Zn(d,W)}}return d},r}(),Ro=A.createContext(void 0);Ro.Consumer;function f0(r){var l=A.useContext(Ro),s=b.useMemo(function(){return function(u,d){if(!u)throw tr(14);if(er(u)){var h=u(d);return h}if(Array.isArray(u)||typeof u!="object")throw tr(8);return d?Je(Je({},d),u):u}(r.theme,l)},[r.theme,l]);return r.children?A.createElement(Ro.Provider,{value:s},r.children):null}var ps={};function p0(r,l,s){var u=zs(r),d=r,h=!fs(r),p=l.attrs,w=p===void 0?di:p,x=l.componentId,C=x===void 0?function(Z,ne){var G=typeof Z!="string"?"sc":Qd(Z);ps[G]=(ps[G]||0)+1;var X="".concat(G,"-").concat(Df(ci+G+ps[G]));return ne?"".concat(ne,"-").concat(X):X}(l.displayName,l.parentComponentId):x,D=l.displayName,S=D===void 0?function(Z){return fs(Z)?"styled.".concat(Z):"Styled(".concat(Om(Z),")")}(r):D,$=l.displayName&&l.componentId?"".concat(Qd(l.displayName),"-").concat(l.componentId):l.componentId||C,W=u&&d.attrs?d.attrs.concat(w).filter(Boolean):w,H=l.shouldForwardProp;if(u&&d.shouldForwardProp){var M=d.shouldForwardProp;if(l.shouldForwardProp){var j=l.shouldForwardProp;H=function(Z,ne){return M(Z,ne)&&j(Z,ne)}}else H=M}var Q=new d0(s,$,u?d.componentStyle:void 0);function B(Z,ne){return function(G,X,Ee){var q=G.attrs,me=G.componentStyle,ce=G.defaultProps,fe=G.foldedComponentIds,ae=G.styledComponentId,ge=G.target,be=A.useContext(Ro),$e=Es(),xe=G.shouldForwardProp||$e.shouldForwardProp,_=Cf(X,be,ce)||Lr,K=function(oe,ee,se){for(var ve,R=Je(Je({},ee),{className:void 0,theme:se}),de=0;de2&&ni.registerId(this.componentId+l),this.removeStyles(l,u),this.createStyles(l,s,u,d)},r}();function m0(r){for(var l=[],s=1;ste` -webkit-text-fill-color: ${({theme:r})=>r.materialTextDisabled}; color: ${({theme:r})=>r.materialTextDisabled}; text-shadow: 1px 1px ${({theme:r})=>r.materialTextDisabledShadow}; /* filter: grayscale(100%); */ `,Ft=({background:r="material",color:l="materialText"}={})=>te` box-sizing: border-box; display: inline-block; background: ${({theme:s})=>s[r]}; color: ${({theme:s})=>s[l]}; `,_o=({mainColor:r="black",secondaryColor:l="transparent",pixelSize:s=2})=>te` background-image: ${[`linear-gradient( 45deg, ${r} 25%, transparent 25%, transparent 75%, ${r} 75% )`,`linear-gradient( 45deg, ${r} 25%, transparent 25%, transparent 75%, ${r} 75% )`].join(",")}; background-color: ${l}; background-size: ${`${s*2}px ${s*2}px`}; background-position: 0 0, ${`${s}px ${s}px`}; `,nr=()=>te` position: relative; box-sizing: border-box; display: inline-block; color: ${({theme:r})=>r.materialText}; background: ${({$disabled:r,theme:l})=>r?l.flatLight:l.canvas}; border: 2px solid ${({theme:r})=>r.canvas}; outline: 2px solid ${({theme:r})=>r.flatDark}; outline-offset: -4px; `,Ir={button:{topLeftOuter:"borderLightest",topLeftInner:"borderLight",bottomRightInner:"borderDark",bottomRightOuter:"borderDarkest"},buttonPressed:{topLeftOuter:"borderDarkest",topLeftInner:"borderDark",bottomRightInner:"borderLight",bottomRightOuter:"borderLightest"},buttonThin:{topLeftOuter:"borderLightest",topLeftInner:null,bottomRightInner:null,bottomRightOuter:"borderDark"},buttonThinPressed:{topLeftOuter:"borderDark",topLeftInner:null,bottomRightInner:null,bottomRightOuter:"borderLightest"},field:{topLeftOuter:"borderDark",topLeftInner:"borderDarkest",bottomRightInner:"borderLight",bottomRightOuter:"borderLightest"},grouping:{topLeftOuter:"borderDark",topLeftInner:"borderLightest",bottomRightInner:"borderDark",bottomRightOuter:"borderLightest"},status:{topLeftOuter:"borderDark",topLeftInner:null,bottomRightInner:null,bottomRightOuter:"borderLightest"},window:{topLeftOuter:"borderLight",topLeftInner:"borderLightest",bottomRightInner:"borderDark",bottomRightOuter:"borderDarkest"}},g0=({theme:r,topLeftInner:l,bottomRightInner:s,hasShadow:u=!1,hasInsetShadow:d=!1})=>[u?Ns:!1,d?Ls:!1,l!==null?`inset 1px 1px 0px 1px ${r[l]}`:!1,s!==null?`inset -1px -1px 0 1px ${r[s]}`:!1].filter(Boolean).join(", "),Be=({invert:r=!1,style:l="button"}={})=>{const s={topLeftOuter:r?"bottomRightOuter":"topLeftOuter",topLeftInner:r?"bottomRightInner":"topLeftInner",bottomRightInner:r?"topLeftInner":"bottomRightInner",bottomRightOuter:r?"topLeftOuter":"bottomRightOuter"};return te` border-style: solid; border-width: 2px; border-left-color: ${({theme:u})=>u[Ir[l][s.topLeftOuter]]}; border-top-color: ${({theme:u})=>u[Ir[l][s.topLeftOuter]]}; border-right-color: ${({theme:u})=>u[Ir[l][s.bottomRightOuter]]}; border-bottom-color: ${({theme:u})=>u[Ir[l][s.bottomRightOuter]]}; box-shadow: ${({theme:u,shadow:d})=>g0({theme:u,topLeftInner:Ir[l][s.topLeftInner],bottomRightInner:Ir[l][s.bottomRightInner],hasShadow:d})}; `},jr=()=>te` outline: 2px dotted ${({theme:r})=>r.materialText}; `,v0=r=>Buffer.from(r).toString("base64"),y0=typeof btoa<"u"?btoa:v0,Ql=(r,l=0)=>{const s=` `;return`url(data:image/svg+xml;base64,${y0(s)})`},js=(r="default")=>te` ::-webkit-scrollbar { width: 26px; height: 26px; } ::-webkit-scrollbar-track { ${({theme:l})=>_o({mainColor:r==="flat"?l.flatLight:l.material,secondaryColor:r==="flat"?l.canvas:l.borderLightest})} } ::-webkit-scrollbar-thumb { ${Ft()} ${r==="flat"?nr():Be({style:"window"})} outline-offset: -2px; } ::-webkit-scrollbar-corner { background-color: ${({theme:l})=>l.material}; } ::-webkit-scrollbar-button { ${Ft()} ${r==="flat"?nr():Be({style:"window"})} display: block; outline-offset: -2px; height: 26px; width: 26px; background-repeat: no-repeat; background-size: 100%; background-position: 0 0; } ::-webkit-scrollbar-button:active, ::-webkit-scrollbar-button:active { background-position: 0 1px; ${r==="default"?Be({style:"window",invert:!0}):""} } ::-webkit-scrollbar-button:horizontal:increment:start, ::-webkit-scrollbar-button:horizontal:decrement:end, ::-webkit-scrollbar-button:vertical:increment:start, ::-webkit-scrollbar-button:vertical:decrement:end { display: none; } ::-webkit-scrollbar-button:horizontal:decrement { background-image: ${({theme:l})=>Ql(l.materialText,90)}; } ::-webkit-scrollbar-button:horizontal:increment { background-image: ${({theme:l})=>Ql(l.materialText,270)}; } ::-webkit-scrollbar-button:vertical:decrement { background-image: ${({theme:l})=>Ql(l.materialText,180)}; } ::-webkit-scrollbar-button:vertical:increment { background-image: ${({theme:l})=>Ql(l.materialText,0)}; } `,x0=T.a` color: ${({theme:r})=>r.anchor}; font-size: inherit; text-decoration: ${({underline:r})=>r?"underline":"none"}; &:visited { color: ${({theme:r})=>r.anchorVisited}; } `,w0=b.forwardRef(({children:r,underline:l=!0,...s},u)=>A.createElement(x0,{ref:u,underline:l,...s},r));w0.displayName="Anchor";const k0=T.header` ${Be()}; ${Ft()}; position: ${r=>{var l;return(l=r.position)!==null&&l!==void 0?l:r.fixed?"fixed":"absolute"}}; top: 0; right: 0; left: auto; display: flex; flex-direction: column; width: 100%; `,S0=b.forwardRef(({children:r,fixed:l=!0,position:s="fixed",...u},d)=>A.createElement(k0,{fixed:l,position:l!==!1?s:void 0,ref:d,...u},r));S0.displayName="AppBar";const rr=()=>{};function qn(r,l,s){return s!==null&&r>s?s:l!==null&&r` height: ${r}; width: ${r}; `} border-radius: ${({square:r})=>r?0:"50%"}; overflow: hidden; ${({noBorder:r,theme:l})=>!r&&` border-top: 2px solid ${l.borderDark}; border-left: 2px solid ${l.borderDark}; border-bottom: 2px solid ${l.borderLightest}; border-right: 2px solid ${l.borderLightest}; background: ${l.material}; `} ${({src:r})=>!r&&` display: flex; align-items: center; justify-content: space-around; font-weight: bold; font-size: 1rem; `} `,A0=T.img` display: block; object-fit: contain; width: 100%; height: 100%; `,C0=b.forwardRef(({alt:r="",children:l,noBorder:s=!1,size:u=35,square:d=!1,src:h,...p},w)=>A.createElement(b0,{noBorder:s,ref:w,size:Pn(u),square:d,src:h,...p},h?A.createElement(A0,{src:h,alt:r}):l));C0.displayName="Avatar";const nt={sm:"28px",md:"36px",lg:"44px"},$0=te` position: relative; display: inline-flex; align-items: center; justify-content: center; height: ${({size:r="md"})=>nt[r]}; width: ${({fullWidth:r,size:l="md",square:s})=>r?"100%":s?nt[l]:"auto"}; padding: ${({square:r})=>r?0:"0 10px"}; font-size: 1rem; user-select: none; &:active { padding-top: ${({disabled:r})=>!r&&"2px"}; } padding-top: ${({active:r,disabled:l})=>r&&!l&&"2px"}; &:after { content: ''; position: absolute; display: block; top: 0; left: 0; height: 100%; width: 100%; } &:not(:disabled) { cursor: pointer; } font-family: inherit; `,fi=T.button` ${({active:r,disabled:l,primary:s,theme:u,variant:d})=>d==="flat"?te` ${nr()} ${s?` border: 2px solid ${u.checkmark}; outline: 2px solid ${u.flatDark}; outline-offset: -4px; `:` border: 2px solid ${u.flatDark}; outline: 2px solid transparent; outline-offset: -4px; `} &:focus:after, &:active:after { ${!r&&!l&&jr} outline-offset: -4px; } `:d==="menu"||d==="thin"?te` ${Ft()}; border: 2px solid transparent; &:hover, &:focus { ${!l&&!r&&Be({style:"buttonThin"})} } &:active { ${!l&&Be({style:"buttonThinPressed"})} } ${r&&Be({style:"buttonThinPressed"})} ${l&&Ot()} `:te` ${Ft()}; border: none; ${l&&Ot()} ${r?_o({mainColor:u.material,secondaryColor:u.borderLightest}):""} &:before { box-sizing: border-box; content: ''; position: absolute; ${s?te` left: 2px; top: 2px; width: calc(100% - 4px); height: calc(100% - 4px); outline: 2px solid ${u.borderDarkest}; `:te` left: 0; top: 0; width: 100%; height: 100%; `} ${Be(r?{style:d==="raised"?"window":"button",invert:!0}:{style:d==="raised"?"window":"button",invert:!1})} } &:active:before { ${!l&&Be({style:d==="raised"?"window":"button",invert:!0})} } &:focus:after, &:active:after { ${!r&&!l&&jr} outline-offset: -8px; } &:active:focus:after, &:active:after { top: ${r?"0":"1px"}; } `} ${$0} `,dn=b.forwardRef(({onClick:r,disabled:l=!1,children:s,type:u="button",fullWidth:d=!1,size:h="md",square:p=!1,active:w=!1,onTouchStart:x=rr,primary:C=!1,variant:D="default",...S},$)=>A.createElement(fi,{active:w,disabled:l,$disabled:l,fullWidth:d,onClick:l?void 0:r,onTouchStart:x,primary:C,ref:$,size:h,square:p,type:u,variant:D,...S},s));dn.displayName="Button";function Nn({defaultValue:r,onChange:l,onChangePropName:s="onChange",readOnly:u,value:d,valuePropName:h="value"}){const p=d!==void 0,[w,x]=b.useState(r),C=b.useCallback(D=>{p||x(D)},[p]);if(p&&typeof l!="function"&&!u){const D=`Warning: You provided a \`${h}\` prop to a component without an \`${s}\` handler.${h==="value"?`This will render a read-only field. If the field should be mutable use \`defaultValue\`. Otherwise, set either \`${s}\` or \`readOnly\`.`:`This breaks the component state. You must provide an \`${s}\` function that updates \`${h}\`.`}`;console.warn(D)}return[p?d:w,C]}const As=T.li` box-sizing: border-box; display: flex; align-items: center; position: relative; height: ${r=>nt[r.size]}; width: ${r=>r.square?nt[r.size]:"auto"}; padding: 0 8px; font-size: 1rem; white-space: nowrap; justify-content: ${r=>r.square?"space-around":"space-between"}; text-align: center; line-height: ${r=>nt[r.size]}; color: ${({theme:r})=>r.materialText}; pointer-events: ${({$disabled:r})=>r?"none":"auto"}; font-weight: ${({primary:r})=>r?"bold":"normal"}; &:hover { ${({theme:r,$disabled:l})=>!l&&` color: ${r.materialTextInvert}; background: ${r.hoverBackground}; `} cursor: default; } ${r=>r.$disabled&&Ot()} `,T0=b.forwardRef(({size:r="lg",disabled:l,square:s,children:u,onClick:d,primary:h,...p},w)=>A.createElement(As,{$disabled:l,size:r,square:s,onClick:l?void 0:d,primary:h,role:"menuitem",ref:w,"aria-disabled":l,...p},u));T0.displayName="MenuListItem";const I0=T.ul.attrs(()=>({role:"menu"}))` box-sizing: border-box; width: ${r=>r.fullWidth?"100%":"auto"}; padding: 4px; ${Be({style:"window"})} ${Ft()} ${r=>r.inline&&` display: inline-flex; align-items: center; `} list-style: none; position: relative; `;I0.displayName="MenuList";const Kt=20,ri=T.input` position: absolute; left: 0; margin: 0; width: ${Kt}px; height: ${Kt}px; opacity: 0; z-index: -1; `,Os=T.label` display: inline-flex; align-items: center; position: relative; margin: 8px 0; cursor: ${({$disabled:r})=>r?"auto":"pointer"}; user-select: none; font-size: 1rem; color: ${({theme:r})=>r.materialText}; ${r=>r.$disabled&&Ot()} ${As} & { margin: 0; height: 100%; } ${As}:hover & { ${({$disabled:r,theme:l})=>!r&&te` color: ${l.materialTextInvert}; `}; } `,Fs=T.span` display: inline-block; line-height: 1; padding: 2px; ${ri}:focus ~ & { ${jr} } ${ri}:not(:disabled) ~ &:active { ${jr} } `,Yt=T.div` position: relative; box-sizing: border-box; padding: 2px; font-size: 1rem; border-style: solid; border-width: 2px; border-left-color: ${({theme:r})=>r.borderDark}; border-top-color: ${({theme:r})=>r.borderDark}; border-right-color: ${({theme:r})=>r.borderLightest}; border-bottom-color: ${({theme:r})=>r.borderLightest}; line-height: 1.5; &:before { position: absolute; left: 0; top: 0; content: ''; width: calc(100% - 4px); height: calc(100% - 4px); border-style: solid; border-width: 2px; border-left-color: ${({theme:r})=>r.borderDarkest}; border-top-color: ${({theme:r})=>r.borderDarkest}; border-right-color: ${({theme:r})=>r.borderLight}; border-bottom-color: ${({theme:r})=>r.borderLight}; pointer-events: none; ${r=>r.shadow&&`box-shadow:${Ls};`} } `,D0=T.div` box-sizing: border-box; width: 100%; height: 100%; padding: 4px; overflow: auto; ${js()} `,Uf=b.forwardRef(({children:r,shadow:l=!0,...s},u)=>A.createElement(Yt,{ref:u,shadow:l,...s},A.createElement(D0,null,r)));Uf.displayName="ScrollView";const Hf=te` width: ${Kt}px; height: ${Kt}px; display: flex; align-items: center; justify-content: space-around; margin-right: 0.5rem; `,R0=T(Yt)` ${Hf} width: ${Kt}px; height: ${Kt}px; background: ${({$disabled:r,theme:l})=>r?l.material:l.canvas}; &:before { box-shadow: none; } `,_0=T.div` position: relative; box-sizing: border-box; display: inline-block; background: ${({$disabled:r,theme:l})=>r?l.flatLight:l.canvas}; ${Hf} width: ${Kt-4}px; height: ${Kt-4}px; outline: none; border: 2px solid ${({theme:r})=>r.flatDark}; background: ${({$disabled:r,theme:l})=>r?l.flatLight:l.canvas}; `,z0=T.span.attrs(()=>({"data-testid":"checkmarkIcon"}))` display: inline-block; position: relative; width: 100%; height: 100%; &:after { content: ''; display: block; position: absolute; left: 50%; top: calc(50% - 1px); width: 3px; height: 7px; border: solid ${({$disabled:r,theme:l})=>r?l.checkmarkDisabled:l.checkmark}; border-width: 0 3px 3px 0; transform: translate(-50%, -50%) rotate(45deg); border-color: ${r=>r.$disabled?r.theme.checkmarkDisabled:r.theme.checkmark}; } `,P0=T.span.attrs(()=>({"data-testid":"indeterminateIcon"}))` display: inline-block; position: relative; width: 100%; height: 100%; &:after { content: ''; display: block; width: 100%; height: 100%; ${({$disabled:r,theme:l})=>_o({mainColor:r?l.checkmarkDisabled:l.checkmark})} background-position: 0px 0px, 2px 2px; } `,N0={flat:_0,default:R0},Qf=b.forwardRef(({checked:r,className:l="",defaultChecked:s=!1,disabled:u=!1,indeterminate:d=!1,label:h="",onChange:p=rr,style:w={},value:x,variant:C="default",...D},S)=>{var $;const[W,H]=Nn({defaultValue:s,onChange:p,readOnly:($=D.readOnly)!==null&&$!==void 0?$:u,value:r}),M=b.useCallback(B=>{const O=B.target.checked;H(O),p(B)},[p,H]),j=N0[C];let Q=null;return d?Q=P0:W&&(Q=z0),A.createElement(Os,{$disabled:u,className:l,style:w},A.createElement(ri,{disabled:u,onChange:u?void 0:M,readOnly:u,type:"checkbox",value:x,checked:W,"data-indeterminate":d,ref:S,...D}),A.createElement(j,{$disabled:u,role:"presentation"},Q&&A.createElement(Q,{$disabled:u,variant:C})),h&&A.createElement(Fs,null,h))});Qf.displayName="Checkbox";const Wf=T.div` ${({orientation:r,theme:l,size:s="100%"})=>r==="vertical"?` height: ${Pn(s)}; border-left: 2px solid ${l.borderDark}; border-right: 2px solid ${l.borderLightest}; margin: 0; `:` width: ${Pn(s)}; border-bottom: 2px solid ${l.borderLightest}; border-top: 2px solid ${l.borderDark}; margin: 0; `} `;Wf.displayName="Separator";const L0=T(fi)` padding-left: 8px; `,j0=T(Wf)` height: 21px; position: relative; top: 0; `,Vf=T.input` box-sizing: border-box; width: 100%; height: 100%; position: absolute; left: 0; top: 0; opacity: 0; z-index: 1; cursor: pointer; &:disabled { cursor: default; } `,O0=T.div` box-sizing: border-box; height: 19px; display: inline-block; width: 35px; margin-right: 5px; background: ${({color:r})=>r}; ${({$disabled:r})=>r?te` border: 2px solid ${({theme:l})=>l.materialTextDisabled}; filter: drop-shadow( 1px 1px 0px ${({theme:l})=>l.materialTextDisabledShadow} ); `:te` border: 2px solid ${({theme:l})=>l.materialText}; `} ${Vf}:focus:not(:active) + &:after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; ${jr} outline-offset: -8px; } `,F0=T.span` width: 0px; height: 0px; border-left: 6px solid transparent; border-right: 6px solid transparent; display: inline-block; margin-left: 6px; ${({$disabled:r})=>r?te` border-top: 6px solid ${({theme:l})=>l.materialTextDisabled}; filter: drop-shadow( 1px 1px 0px ${({theme:l})=>l.materialTextDisabledShadow} ); `:te` border-top: 6px solid ${({theme:l})=>l.materialText}; `} &:after { content: ''; box-sizing: border-box; position: absolute; top: ${({variant:r})=>r==="flat"?"6px":"8px"}; right: 8px; width: 16px; height: 19px; } `,M0=b.forwardRef(({value:r,defaultValue:l,onChange:s=rr,disabled:u=!1,variant:d="default",...h},p)=>{var w;const[x,C]=Nn({defaultValue:l,onChange:s,readOnly:(w=h.readOnly)!==null&&w!==void 0?w:u,value:r}),D=S=>{const $=S.target.value;C($),s(S)};return A.createElement(L0,{disabled:u,as:"div",variant:d,size:"md"},A.createElement(Vf,{onChange:D,readOnly:u,disabled:u,value:x??"#008080",type:"color",ref:p,...h}),A.createElement(O0,{$disabled:u,color:x??"#008080",role:"presentation"}),d==="default"&&A.createElement(j0,{orientation:"vertical"}),A.createElement(F0,{$disabled:u,variant:d}))});M0.displayName="ColorInput";const B0=T.div` position: relative; --react95-digit-primary-color: #ff0102; --react95-digit-secondary-color: #740201; --react95-digit-bg-color: #000000; ${({pixelSize:r})=>te` width: ${11*r}px; height: ${21*r}px; margin: ${r}px; span, span:before, span:after { box-sizing: border-box; display: inline-block; position: absolute; } span.active, span.active:before, span.active:after { background: var(--react95-digit-primary-color); } span:not(.active), span:not(.active):before, span:not(.active):after { ${_o({mainColor:"var(--react95-digit-bg-color)",secondaryColor:"var(--react95-digit-secondary-color)",pixelSize:r})} } span.horizontal, span.horizontal:before, span.horizontal:after { height: ${r}px; border-left: ${r}px solid var(--react95-digit-bg-color); border-right: ${r}px solid var(--react95-digit-bg-color); } span.horizontal.active, span.horizontal.active:before, span.horizontal.active:after { height: ${r}px; border-left: ${r}px solid var(--react95-digit-primary-color); border-right: ${r}px solid var(--react95-digit-primary-color); } span.horizontal { left: ${r}px; width: ${9*r}px; } span.horizontal:before { content: ''; width: 100%; top: ${r}px; left: ${0}px; } span.horizontal:after { content: ''; width: calc(100% - ${r*2}px); top: ${2*r}px; left: ${r}px; } span.horizontal.top { top: 0; } span.horizontal.bottom { bottom: 0; transform: rotateX(180deg); } span.center, span.center:before, span.center:after { height: ${r}px; border-left: ${r}px solid var(--react95-digit-bg-color); border-right: ${r}px solid var(--react95-digit-bg-color); } span.center.active, span.center.active:before, span.center.active:after { border-left: ${r}px solid var(--react95-digit-primary-color); border-right: ${r}px solid var(--react95-digit-primary-color); } span.center { top: 50%; transform: translateY(-50%); left: ${r}px; width: ${9*r}px; } span.center:before, span.center:after { content: ''; width: 100%; } span.center:before { top: ${r}px; } span.center:after { bottom: ${r}px; } span.vertical, span.vertical:before, span.vertical:after { width: ${r}px; border-top: ${r}px solid var(--react95-digit-bg-color); border-bottom: ${r}px solid var(--react95-digit-bg-color); } span.vertical { height: ${11*r}px; } span.vertical.left { left: 0; } span.vertical.right { right: 0; transform: rotateY(180deg); } span.vertical.top { top: 0px; } span.vertical.bottom { bottom: 0px; } span.vertical:before { content: ''; height: 100%; top: ${0}px; left: ${r}px; } span.vertical:after { content: ''; height: calc(100% - ${r*2}px); top: ${r}px; left: ${r*2}px; } `} `,tf=["horizontal top","center","horizontal bottom","vertical top left","vertical top right","vertical bottom left","vertical bottom right"],U0=[[1,0,1,1,1,1,1],[0,0,0,0,1,0,1],[1,1,1,0,1,1,0],[1,1,1,0,1,0,1],[0,1,0,1,1,0,1],[1,1,1,1,0,0,1],[1,1,1,1,0,1,1],[1,0,0,0,1,0,1],[1,1,1,1,1,1,1],[1,1,1,1,1,0,1]];function H0({digit:r=0,pixelSize:l=2,...s}){const u=U0[Number(r)].map((d,h)=>d?`${tf[h]} active`:tf[h]);return A.createElement(B0,{pixelSize:l,...s},u.map((d,h)=>A.createElement("span",{className:d,key:h})))}const Q0=T.div` ${Be({style:"status"})} display: inline-flex; background: #000000; `,W0={sm:1,md:2,lg:3,xl:4},V0=b.forwardRef(({value:r=0,minLength:l=3,size:s="md",...u},d)=>{const h=b.useMemo(()=>r.toString().padStart(l,"0").split(""),[l,r]);return A.createElement(Q0,{ref:d,...u},h.map((p,w)=>A.createElement(H0,{digit:p,pixelSize:W0[s],key:w})))});V0.displayName="Counter";const Gf=te` display: flex; align-items: center; width: ${({fullWidth:r})=>r?"100%":"auto"}; min-height: ${nt.md}; `,G0=T(Yt).attrs({"data-testid":"variant-default"})` ${Gf} background: ${({$disabled:r,theme:l})=>r?l.material:l.canvas}; `,K0=T.div.attrs({"data-testid":"variant-flat"})` ${nr()} ${Gf} position: relative; `,Kf=te` display: block; box-sizing: border-box; width: 100%; height: 100%; outline: none; border: none; background: none; font-size: 1rem; min-height: 27px; font-family: inherit; color: ${({theme:r})=>r.canvasText}; ${({disabled:r,variant:l})=>l!=="flat"&&r&&Ot()} `,Y0=T.input` ${Kf} padding: 0 8px; `,X0=T.textarea` ${Kf} padding: 8px; resize: none; ${({variant:r})=>js(r)} `,Ms=b.forwardRef(({className:r,disabled:l=!1,fullWidth:s,onChange:u=rr,shadow:d=!0,style:h,variant:p="default",...w},x)=>{const C=p==="flat"?K0:G0,D=b.useMemo(()=>{var S;return w.multiline?A.createElement(X0,{disabled:l,onChange:l?void 0:u,readOnly:l,ref:x,variant:p,...w}):A.createElement(Y0,{disabled:l,onChange:l?void 0:u,readOnly:l,ref:x,type:(S=w.type)!==null&&S!==void 0?S:"text",variant:p,...w})},[l,u,w,x,p]);return A.createElement(C,{className:r,fullWidth:s,$disabled:l,shadow:d,style:h},D)});Ms.displayName="TextInput";const Z0=T.div` display: inline-flex; align-items: center; `,Cs=T(dn)` width: 30px; padding: 0; flex-shrink: 0; ${({variant:r})=>r==="flat"?te` height: calc(50% - 1px); `:te` height: 50%; `} `,q0=T.div` display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: space-between; ${({variant:r})=>r==="flat"?te` height: calc(${nt.md} - 4px); `:te` height: ${nt.md}; margin-left: 2px; `} `,nf=T.span` width: 0px; height: 0px; display: inline-block; ${({invert:r})=>r?te` border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 4px solid ${({theme:l})=>l.materialText}; `:te` border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid ${({theme:l})=>l.materialText}; `} ${Cs}:disabled & { filter: drop-shadow( 1px 1px 0px ${({theme:r})=>r.materialTextDisabledShadow} ); ${({invert:r})=>r?te` border-bottom-color: ${({theme:l})=>l.materialTextDisabled}; `:te` border-top-color: ${({theme:l})=>l.materialTextDisabled}; `} } `,Yf=b.forwardRef(({className:r,defaultValue:l,disabled:s=!1,max:u,min:d,onChange:h,readOnly:p,step:w=1,style:x,value:C,variant:D="default",width:S,...$},W)=>{const[H,M]=Nn({defaultValue:l,onChange:h,readOnly:p,value:C}),j=b.useCallback(G=>{const X=parseFloat(G.target.value);M(X)},[M]),Q=b.useCallback(G=>{const X=qn(parseFloat(((H??0)+G).toFixed(2)),d??null,u??null);M(X),h==null||h(X)},[u,d,h,M,H]),B=b.useCallback(()=>{H!==void 0&&(h==null||h(H))},[h,H]),O=b.useCallback(()=>{Q(w)},[Q,w]),Z=b.useCallback(()=>{Q(-w)},[Q,w]),ne=D==="flat"?"flat":"raised";return A.createElement(Z0,{className:r,style:{...x,width:S!==void 0?Pn(S):"auto"},...$},A.createElement(Ms,{value:H,variant:D,onChange:j,disabled:s,type:"number",readOnly:p,ref:W,fullWidth:!0,onBlur:B}),A.createElement(q0,{variant:D},A.createElement(Cs,{"data-testid":"increment",variant:ne,disabled:s||p,onClick:O},A.createElement(nf,{invert:!0})),A.createElement(Cs,{"data-testid":"decrement",variant:ne,disabled:s||p,onClick:Z},A.createElement(nf,null))))});Yf.displayName="NumberInput";function J0(){const r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";let l="";for(let s=0;s<10;s+=1)l+=r[Math.floor(Math.random()*r.length)];return l}const Xf=r=>b.useMemo(()=>J0(),[r]),Zf=te` box-sizing: border-box; padding-left: 4px; overflow: hidden; white-space: nowrap; user-select: none; line-height: 100%; `,qf=te` background: ${({theme:r})=>r.hoverBackground}; color: ${({theme:r})=>r.canvasTextInvert}; `,Bs=T.div` display: flex; align-items: center; justify-content: space-between; height: 100%; width: 100%; &:focus { outline: none; } `,eg=T.div` ${Zf} padding-right: 8px; align-items: center; display: flex; height: calc(100% - 4px); width: calc(100% - 4px); margin: 0 2px; border: 2px solid transparent; ${Bs}:focus & { ${qf} border: 2px dotted ${({theme:r})=>r.focusSecondary}; } `,Jf=te` height: ${nt.md}; display: inline-block; color: ${({$disabled:r=!1,theme:l})=>r?Ot():l.canvasText}; font-size: 1rem; cursor: ${({$disabled:r})=>r?"default":"pointer"}; `,tg=T(Yt)` ${Jf} background: ${({$disabled:r=!1,theme:l})=>r?l.material:l.canvas}; &:focus { outline: 0; } `,ng=T.div` ${nr()} ${Jf} background: ${({$disabled:r=!1,theme:l})=>r?l.flatLight:l.canvas}; `,rg=T.select` -moz-appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 100%; color: inherit; font-size: 1rem; border: 0; margin: 0; background: none; -webkit-tap-highlight-color: transparent; border-radius: 0; padding-right: 30px; ${Zf} cursor: pointer; &:disabled { ${Ot()}; background: ${({theme:r})=>r.material}; cursor: default; } `,ep=T(fi).attrs(()=>({"aria-hidden":"true"}))` width: 30px; padding: 0; flex-shrink: 0; ${({variant:r="default"})=>r==="flat"?te` height: 100%; margin-right: 0; `:te` height: 100%; `} ${({native:r=!1,variant:l="default"})=>r&&(l==="flat"?` position: absolute; right: 0; height: 100%; `:` position: absolute; top: 2px; right: 2px; height: calc(100% - 4px); `)} pointer-events: ${({$disabled:r=!1,native:l=!1})=>r||l?"none":"auto"} `,og=T.span` position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; display: inline-block; border-top: 6px solid ${({$disabled:r=!1,theme:l})=>r?l.materialTextDisabled:l.materialText}; ${({$disabled:r=!1,theme:l})=>r&&` filter: drop-shadow(1px 1px 0px ${l.materialTextDisabledShadow}); border-top-color: ${l.materialTextDisabled}; `} ${ep}:active & { margin-top: 2px; } `,lg=T.ul` box-sizing: border-box; font-size: 1rem; position: absolute; transform: translateY(100%); left: 0; background: ${({theme:r})=>r.canvas}; padding: 2px; border-top: none; cursor: default; z-index: 1; cursor: pointer; box-shadow: ${Ns}; ${({variant:r="default"})=>r==="flat"?te` bottom: 2px; width: 100%; border: 2px solid ${({theme:l})=>l.flatDark}; `:te` bottom: -2px; width: calc(100% - 2px); border: 2px solid ${({theme:l})=>l.borderDarkest}; `} ${({variant:r="default"})=>js(r)} `,ig=T.li` box-sizing: border-box; width: 100%; padding-left: 8px; height: calc(${nt.md} - 4px); line-height: calc(${nt.md} - 4px); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: ${({theme:r})=>r.canvasText}; &:focus { outline: 0; } ${({active:r})=>r?qf:""} user-select: none; `,ag=[],tp=({className:r,defaultValue:l,disabled:s,native:u,onChange:d,options:h=ag,readOnly:p,style:w,value:x,variant:C,width:D})=>{var S;const $=b.useMemo(()=>h.filter(Boolean),[h]),[W,H]=Nn({defaultValue:l??((S=$==null?void 0:$[0])===null||S===void 0?void 0:S.value),onChange:d,readOnly:p,value:x}),M=!(s||p),j=b.useMemo(()=>({className:r,style:{...w,width:D}}),[r,w,D]),Q=b.useMemo(()=>A.createElement(ep,{as:"div","data-testid":"select-button",$disabled:s,native:u,tabIndex:-1,variant:C==="flat"?"flat":"raised"},A.createElement(og,{"data-testid":"select-icon",$disabled:s})),[s,u,C]),B=b.useMemo(()=>C==="flat"?ng:tg,[C]);return b.useMemo(()=>({isEnabled:M,options:$,value:W,setValue:H,wrapperProps:j,DropdownButton:Q,Wrapper:B}),[Q,B,M,$,H,W,j])},sg={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESC:"Escape",HOME:"Home",SPACE:"Space",TAB:"Tab"},ug=1e3,cg=({onBlur:r,onChange:l,onClose:s,onFocus:u,onKeyDown:d,onMouseDown:h,onOpen:p,open:w,options:x,readOnly:C,value:D,selectRef:S,setValue:$,wrapperRef:W})=>{const H=b.useRef(null),M=b.useRef([]),j=b.useRef(0),Q=b.useRef(0),B=b.useRef(),O=b.useRef("search"),Z=b.useRef(""),ne=b.useRef(),[G,X]=Nn({defaultValue:!1,onChange:p,onChangePropName:"onOpen",readOnly:C,value:w,valuePropName:"open"}),Ee=b.useMemo(()=>{const R=x.findIndex(de=>de.value===D);return j.current=qn(R,0,null),x[R]},[x,D]),[q,me]=b.useState(x[0]),ce=b.useCallback(R=>{const de=H.current,we=M.current[R];if(!we||!de){B.current=R;return}B.current=void 0;const Ae=de.clientHeight,De=de.scrollTop,Ue=de.scrollTop+Ae,Fe=we.offsetTop,at=we.offsetHeight,gt=we.offsetTop+we.offsetHeight;FeUe&&de.scrollTo(0,Fe-Ae+at),we.focus({preventScroll:!0})},[H]),fe=b.useCallback((R,{scroll:de}={})=>{var we;const Ae=x.length-1;let De;switch(R){case"first":{De=0;break}case"last":{De=Ae;break}case"next":{De=qn(Q.current+1,0,Ae);break}case"previous":{De=qn(Q.current-1,0,Ae);break}case"selected":{De=qn((we=j.current)!==null&&we!==void 0?we:0,0,Ae);break}default:De=R}Q.current=De,me(x[De]),de&&ce(De)},[Q,x,ce]),ae=b.useCallback(({fromEvent:R})=>{X(!0),fe("selected",{scroll:!0}),p==null||p({fromEvent:R})},[fe,p,X]),ge=b.useCallback(()=>{O.current="search",Z.current="",clearTimeout(ne.current)},[]),be=b.useCallback(({focusSelect:R,fromEvent:de})=>{var we;s==null||s({fromEvent:de}),X(!1),me(x[0]),ge(),B.current=void 0,R&&((we=S.current)===null||we===void 0||we.focus())},[ge,s,x,S,X]),$e=b.useCallback(({fromEvent:R})=>{G?be({focusSelect:!1,fromEvent:R}):ae({fromEvent:R})},[be,ae,G]),xe=b.useCallback((R,{fromEvent:de})=>{j.current!==R&&(j.current=R,$(x[R].value),l==null||l(x[R],{fromEvent:de}))},[l,x,$]),_=b.useCallback(({focusSelect:R,fromEvent:de})=>{xe(Q.current,{fromEvent:de}),be({focusSelect:R,fromEvent:de})},[be,xe]),K=b.useCallback((R,{fromEvent:de,select:we})=>{var Ae;switch(O.current==="cycleFirstLetter"&&R!==Z.current&&(O.current="search"),R===Z.current?O.current="cycleFirstLetter":Z.current+=R,O.current){case"search":{let De=x.findIndex(Ue=>{var Fe;return((Fe=Ue.label)===null||Fe===void 0?void 0:Fe.toLocaleUpperCase().indexOf(Z.current))===0});De<0&&(De=x.findIndex(Ue=>{var Fe;return((Fe=Ue.label)===null||Fe===void 0?void 0:Fe.toLocaleUpperCase().indexOf(R))===0}),Z.current=R),De>=0&&(we?xe(De,{fromEvent:de}):fe(De,{scroll:!0}));break}case"cycleFirstLetter":{const De=we?(Ae=j.current)!==null&&Ae!==void 0?Ae:-1:Q.current;let Ue=x.findIndex((Fe,at)=>{var gt;return at>De&&((gt=Fe.label)===null||gt===void 0?void 0:gt.toLocaleUpperCase().indexOf(R))===0});Ue<0&&(Ue=x.findIndex(Fe=>{var at;return((at=Fe.label)===null||at===void 0?void 0:at.toLocaleUpperCase().indexOf(R))===0})),Ue>=0&&(we?xe(Ue,{fromEvent:de}):fe(Ue,{scroll:!0}));break}}clearTimeout(ne.current),ne.current=setTimeout(()=>{O.current==="search"&&(Z.current="")},ug)},[fe,x,xe]),U=b.useCallback(R=>{var de;R.button===0&&(R.preventDefault(),(de=S.current)===null||de===void 0||de.focus(),$e({fromEvent:R}),h==null||h(R))},[h,S,$e]),v=b.useCallback(R=>{_({focusSelect:!0,fromEvent:R})},[_]),I=b.useCallback(R=>{const{altKey:de,code:we,ctrlKey:Ae,metaKey:De,shiftKey:Ue}=R,{ARROW_DOWN:Fe,ARROW_UP:at,END:gt,ENTER:Mt,ESC:St,HOME:Xt,SPACE:Bt,TAB:Zt}=sg,Fr=de||Ae||De||Ue;if(!(we===Zt&&(de||Ae||De)||we!==Zt&&Fr))switch(we){case Fe:{if(R.preventDefault(),!G){ae({fromEvent:R});return}fe("next",{scroll:!0});break}case at:{if(R.preventDefault(),!G){ae({fromEvent:R});return}fe("previous",{scroll:!0});break}case gt:{if(R.preventDefault(),!G){ae({fromEvent:R});return}fe("last",{scroll:!0});break}case Mt:{if(!G)return;R.preventDefault(),_({focusSelect:!0,fromEvent:R});break}case St:{if(!G)return;R.preventDefault(),be({focusSelect:!0,fromEvent:R});break}case Xt:{if(R.preventDefault(),!G){ae({fromEvent:R});return}fe("first",{scroll:!0});break}case Bt:{R.preventDefault(),G?_({focusSelect:!0,fromEvent:R}):ae({fromEvent:R});break}case Zt:{if(!G)return;Ue||R.preventDefault(),_({focusSelect:!Ue,fromEvent:R});break}default:!Fr&&we.match(/^Key/)&&(R.preventDefault(),R.stopPropagation(),K(we.replace(/^Key/,""),{select:!G,fromEvent:R}))}},[fe,be,G,ae,K,_]),V=b.useCallback(R=>{I(R),d==null||d(R)},[I,d]),Y=b.useCallback(R=>{fe(R)},[fe]),oe=b.useCallback(R=>{G||(ge(),r==null||r(R))},[ge,r,G]),ee=b.useCallback(R=>{ge(),u==null||u(R)},[ge,u]),se=b.useCallback(R=>{H.current=R,B.current!==void 0&&ce(B.current)},[ce]),ve=b.useCallback((R,de)=>{M.current[de]=R,B.current===de&&ce(B.current)},[ce]);return b.useEffect(()=>{if(!G)return()=>{};const R=de=>{var we;const Ae=de.target;!((we=W.current)===null||we===void 0)&&we.contains(Ae)||(de.preventDefault(),be({focusSelect:!1,fromEvent:de}))};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[be,G,W]),b.useMemo(()=>({activeOption:q,handleActivateOptionIndex:Y,handleBlur:oe,handleButtonKeyDown:V,handleDropdownKeyDown:I,handleFocus:ee,handleMouseDown:U,handleOptionClick:v,handleSetDropdownRef:se,handleSetOptionRef:ve,open:G,selectedOption:Ee}),[q,Y,oe,V,ee,I,U,v,se,ve,G,Ee])},dg=b.forwardRef(({className:r,defaultValue:l,disabled:s,onChange:u,options:d,readOnly:h,style:p,value:w,variant:x,width:C,...D},S)=>{const{isEnabled:$,options:W,setValue:H,value:M,DropdownButton:j,Wrapper:Q}=tp({defaultValue:l,disabled:s,native:!0,onChange:u,options:d,readOnly:h,value:w,variant:x}),B=b.useCallback(O=>{const Z=W.find(ne=>ne.value===O.target.value);Z&&(H(Z.value),u==null||u(Z,{fromEvent:O}))},[u,W,H]);return A.createElement(Q,{className:r,style:{...p,width:C}},A.createElement(Bs,null,A.createElement(rg,{...D,disabled:s,onChange:$?B:rr,ref:S,value:M},W.map((O,Z)=>{var ne;return A.createElement("option",{key:`${O.value}-${Z}`,value:O.value},(ne=O.label)!==null&&ne!==void 0?ne:O.value)})),j))});dg.displayName="SelectNative";function fg({activateOptionIndex:r,active:l,index:s,onClick:u,option:d,selected:h,setRef:p}){const w=b.useCallback(()=>{r(s)},[r,s]),x=b.useCallback(D=>{p(D,s)},[s,p]),C=Xf();return A.createElement(ig,{active:l,"aria-selected":h?"true":void 0,"data-value":d.value,id:C,onClick:u,onMouseEnter:w,ref:x,role:"option",tabIndex:0},d.label)}function pg({"aria-label":r,"aria-labelledby":l,className:s,defaultValue:u,disabled:d=!1,formatDisplay:h,inputProps:p,labelId:w,menuMaxHeight:x,name:C,onBlur:D,onChange:S,onClose:$,onFocus:W,onKeyDown:H,onMouseDown:M,onOpen:j,open:Q,options:B,readOnly:O,shadow:Z=!0,style:ne,variant:G="default",value:X,width:Ee="auto",...q},me){const{isEnabled:ce,options:fe,setValue:ae,value:ge,wrapperProps:be,DropdownButton:$e,Wrapper:xe}=tp({className:s,defaultValue:u,disabled:d,native:!1,onChange:S,options:B,style:ne,readOnly:O,value:X,variant:G,width:Ee}),_=b.useRef(null),K=b.useRef(null),U=b.useRef(null),{activeOption:v,handleActivateOptionIndex:I,handleBlur:V,handleButtonKeyDown:Y,handleDropdownKeyDown:oe,handleFocus:ee,handleMouseDown:se,handleOptionClick:ve,handleSetDropdownRef:R,handleSetOptionRef:de,open:we,selectedOption:Ae}=cg({onBlur:D,onChange:S,onClose:$,onFocus:W,onKeyDown:H,onMouseDown:M,onOpen:j,open:Q,options:fe,value:ge,selectRef:K,setValue:ae,wrapperRef:U});b.useImperativeHandle(me,()=>({focus:Mt=>{var St;(St=K.current)===null||St===void 0||St.focus(Mt)},node:_.current,value:String(ge)}),[ge]);const De=b.useMemo(()=>Ae?typeof h=="function"?h(Ae):Ae.label:"",[h,Ae]),Ue=ce?1:void 0,Fe=b.useMemo(()=>x?{overflow:"auto",maxHeight:x}:void 0,[x]),at=Xf(),gt=b.useMemo(()=>fe.map((Mt,St)=>{const Xt=`${ge}-${St}`,Bt=Mt===v,Zt=Mt===Ae;return A.createElement(fg,{activateOptionIndex:I,active:Bt,index:St,key:Xt,onClick:ve,option:Mt,selected:Zt,setRef:de})}),[v,I,ve,de,fe,Ae,ge]);return A.createElement(xe,{...be,$disabled:d,ref:U,shadow:Z,style:{...ne,width:Ee}},A.createElement("input",{name:C,ref:_,type:"hidden",value:String(ge),...p}),A.createElement(Bs,{"aria-disabled":d,"aria-expanded":we,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":l??w,"aria-owns":ce&&we?at:void 0,onBlur:V,onFocus:ee,onKeyDown:Y,onMouseDown:ce?se:M,ref:K,role:"button",tabIndex:Ue,...q},A.createElement(eg,null,De),$e),ce&&we&&A.createElement(lg,{id:at,onKeyDown:oe,ref:R,role:"listbox",style:Fe,tabIndex:0,variant:G},gt))}const pi=b.forwardRef(pg);pi.displayName="Select";const hg=T.div` position: relative; display: flex; align-items: center; padding: ${r=>r.noPadding?"0":"4px"}; `,oi=b.forwardRef(function({children:l,noPadding:s=!1,...u},d){return A.createElement(hg,{noPadding:s,ref:d,...u},l)});oi.displayName="Toolbar";const mg=T.div` padding: 16px; `,un=b.forwardRef(function({children:l,...s},u){return A.createElement(mg,{ref:u,...s},l)});un.displayName="WindowContent";const gg=T.div` height: 33px; line-height: 33px; padding-left: 0.25rem; padding-right: 3px; font-weight: bold; border: 2px solid ${({theme:r})=>r.material}; ${({active:r})=>r===!1?te` background: ${({theme:l})=>l.headerNotActiveBackground}; color: ${({theme:l})=>l.headerNotActiveText}; `:te` background: ${({theme:l})=>l.headerBackground}; color: ${({theme:l})=>l.headerText}; `} ${fi} { padding-left: 0; padding-right: 0; height: 27px; width: 31px; } `,cn=b.forwardRef(function({active:l=!0,children:s,...u},d){return A.createElement(gg,{active:l,ref:d,...u},s)});cn.displayName="WindowHeader";const vg=T.div` position: relative; padding: 4px; font-size: 1rem; ${Be({style:"window"})} ${Ft()} `,yg=T.span` ${({theme:r})=>te` display: inline-block; position: absolute; bottom: 10px; right: 10px; width: 25px; height: 25px; background-image: linear-gradient( 135deg, ${r.borderLightest} 16.67%, ${r.material} 16.67%, ${r.material} 33.33%, ${r.borderDark} 33.33%, ${r.borderDark} 50%, ${r.borderLightest} 50%, ${r.borderLightest} 66.67%, ${r.material} 66.67%, ${r.material} 83.33%, ${r.borderDark} 83.33%, ${r.borderDark} 100% ); background-size: 8.49px 8.49px; clip-path: polygon(100% 0px, 0px 100%, 100% 100%); cursor: nwse-resize; `} `,Us=b.forwardRef(({children:r,resizable:l=!1,resizeRef:s,shadow:u=!0,...d},h)=>A.createElement(vg,{ref:h,shadow:u,...d},r,l&&A.createElement(yg,{"data-testid":"resizeHandle",ref:s})));Us.displayName="Window";const xg=T(Uf)` width: 234px; margin: 1rem 0; background: ${({theme:r})=>r.canvas}; `,wg=T.div` display: flex; background: ${({theme:r})=>r.materialDark}; color: #dfe0e3; `,kg=T.div` display: flex; flex-wrap: wrap; `,an=T.div` text-align: center; height: 1.5em; line-height: 1.5em; width: 14.28%; `,Sg=T.span` cursor: pointer; background: ${({active:r,theme:l})=>r?l.hoverBackground:"transparent"}; color: ${({active:r,theme:l})=>r?l.canvasTextInvert:l.canvasText}; &:hover { border: 2px dashed ${({theme:r,active:l})=>l?"none":r.materialDark}; } `,Eg=[{value:0,label:"January"},{value:1,label:"February"},{value:2,label:"March"},{value:3,label:"April"},{value:4,label:"May"},{value:5,label:"June"},{value:6,label:"July"},{value:7,label:"August"},{value:8,label:"September"},{value:9,label:"October"},{value:10,label:"November"},{value:11,label:"December"}];function bg(r,l){return new Date(r,l+1,0).getDate()}function Ag(r,l,s){return new Date(r,l,s).getDay()}function Cg(r){const l=new Date(Date.parse(r)),s=l.getUTCDate(),u=l.getUTCMonth(),d=l.getUTCFullYear();return{day:s,month:u,year:d}}const $g=b.forwardRef(({className:r,date:l=new Date().toISOString(),onAccept:s,onCancel:u,shadow:d=!0},h)=>{const[p,w]=b.useState(()=>Cg(l)),{year:x,month:C,day:D}=p,S=b.useCallback(({value:j})=>{w(Q=>({...Q,month:j}))},[]),$=b.useCallback(j=>{w(Q=>({...Q,year:j}))},[]),W=b.useCallback(j=>{w(Q=>({...Q,day:j}))},[]),H=b.useCallback(()=>{const j=[p.year,p.month+1,p.day].map(Q=>String(Q).padStart(2,"0")).join("-");s==null||s(j)},[p.day,p.month,p.year,s]),M=b.useMemo(()=>{const j=Array.from({length:42}),Q=Ag(x,C,1);let B=D;const O=bg(x,C);return B=B{if(ne>=Q&&ne{W(G)}},A.createElement(Sg,{active:G===B},G))}else j[ne]=A.createElement(an,{key:ne})}),j},[D,W,C,x]);return A.createElement(Us,{className:r,ref:h,shadow:d,style:{margin:20}},A.createElement(cn,null,A.createElement("span",{role:"img","aria-label":"📆"},"📆"),"Date"),A.createElement(un,null,A.createElement(oi,{noPadding:!0,style:{justifyContent:"space-between"}},A.createElement(pi,{options:Eg,value:C,onChange:S,width:128,menuMaxHeight:200}),A.createElement(Yf,{value:x,onChange:$,width:100})),A.createElement(xg,null,A.createElement(wg,null,A.createElement(an,null,"S"),A.createElement(an,null,"M"),A.createElement(an,null,"T"),A.createElement(an,null,"W"),A.createElement(an,null,"T"),A.createElement(an,null,"F"),A.createElement(an,null,"S")),A.createElement(kg,null,M)),A.createElement(oi,{noPadding:!0,style:{justifyContent:"space-between"}},A.createElement(dn,{fullWidth:!0,onClick:u,disabled:!u},"Cancel"),A.createElement(dn,{fullWidth:!0,onClick:s?H:void 0,disabled:!s},"OK"))))});$g.displayName="DatePicker";const Tg=r=>{switch(r){case"status":case"well":return te` ${Be({style:"status"})} `;case"window":case"outside":return te` ${Be({style:"window"})} `;case"field":return te` ${Be({style:"field"})} `;default:return te` ${Be()} `}},Ig=T.div` position: relative; font-size: 1rem; ${({variant:r})=>Tg(r)} ${({variant:r})=>Ft(r==="field"?{background:"canvas",color:"canvasText"}:void 0)} `,Dg=b.forwardRef(({children:r,shadow:l=!1,variant:s="window",...u},d)=>A.createElement(Ig,{ref:d,shadow:l,variant:s,...u},r));Dg.displayName="Frame";const Rg=T.fieldset` position: relative; border: 2px solid ${({theme:r,variant:l})=>l==="flat"?r.flatDark:r.borderLightest}; padding: 16px; margin-top: 8px; font-size: 1rem; color: ${({theme:r})=>r.materialText}; ${({variant:r})=>r!=="flat"&&te` box-shadow: -1px -1px 0 1px ${({theme:l})=>l.borderDark}, inset -1px -1px 0 1px ${({theme:l})=>l.borderDark}; `} ${r=>r.$disabled&&Ot()} `,_g=T.legend` display: flex; position: absolute; top: 0; left: 8px; transform: translateY(calc(-50% - 2px)); padding: 0 8px; font-size: 1rem; background: ${({theme:r,variant:l})=>l==="flat"?r.canvas:r.material}; `,np=b.forwardRef(({label:r,disabled:l=!1,variant:s="default",children:u,...d},h)=>A.createElement(Rg,{"aria-disabled":l,$disabled:l,variant:s,ref:h,...d},r&&A.createElement(_g,{variant:s},r),u));np.displayName="GroupBox";const zg=T.div` ${({theme:r,size:l="100%"})=>` display: inline-block; box-sizing: border-box; height: ${Pn(l)}; width: 5px; border-top: 2px solid ${r.borderLightest}; border-left: 2px solid ${r.borderLightest}; border-bottom: 2px solid ${r.borderDark}; border-right: 2px solid ${r.borderDark}; background: ${r.material}; `} `;zg.displayName="Handle";const Pg="url('data:image/gif;base64,R0lGODlhPAA8APQAADc3N6+vr4+Pj05OTvn5+V1dXZ+fn29vby8vLw8PD/X19d/f37S0tJSUlLq6und3d39/f9XV1c/Pz+bm5qamphkZGWZmZsbGxr+/v+rq6tra2u/v7yIiIv///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAAfACH+I1Jlc2l6ZWQgb24gaHR0cHM6Ly9lemdpZi5jb20vcmVzaXplACwAAAAAPAA8AAAF/+AnjmRpnmiqrmzrvnAsz3Rt37jr7Xzv/8BebhQsGn1D0XFZTH6YUGQySvU4fYKAdsvtdi1Cp3In6ZjP6HTawBMTyWbFYk6v18/snXvsKXciUApmeVZ7PH6ATIIdhHtPcB0TDQ1gQBCTBINthpBnAUEaa5tuh2mfQKFojZx9aRMSEhA7FLAbonqsfmoUOxFqmriknWm8Hr6/q8IeCAAAx2cTERG2aBTNHMGOj8a/v8WF2m/c3cSj4SQ8C92n4Ocm6evm7ui9CosdBPbs8yo8E2YO5PE74Q+gwIElCnYImA3hux3/Fh50yCciw3YUt2GQtiiDtGQO4f3al1GkGpIDeXlg0KDhXpoMLBtMVPaMnJlv/HjUtIkzHA8HEya4tLkhqICGV4bZVAMyaaul3ZpOUQoVz8wbpaoyvWojq1ZVXGt4/QoM49SnZMs6GktW6hC2X93mgKtVbtceWbzo9VIJKdYqUJwCPiJ4cJOzhg+/TWwko+PHkCNLdhgCACH5BAUEAB8ALAAAAAABAAEAAAUD4BcCACH5BAUEAB8ALBYADAAQAA0AAAVFYCeOZPmVaKqimeO+MPxFXv3d+F17Cm3nuJ1ic7lAdroapUjABZCfnQb4ef6k1OHGULtsNk3qjVKLiIFkj/mMIygU4VwIACH5BAUEAB8ALAAAAAABAAEAAAUD4BcCACH5BAUEAB8ALBkAIwAKAAcAAAUp4CdehrGI6Ed5XpSKa4teguBoGlVPAXuJBpam5/l9gh7NZrFQiDJMRQgAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsFgAPABAAIQAABVBgJ45kaZ5oakZB67bZ+M10bd94ru987//AoHBILNYYAsGlR/F4IkwnlLeZTBQ9UlaWwzweERHjuzAKFZkMYYZWm4mOw0ETfdanO8Vms7aFAAAh+QQFBAAfACwAAAAAAQABAAAFA+AXAgAh+QQFBAAfACwZABIACgAeAAAFUGAnjmRpnij5rerqtu4Hx3Rt33iu758iZrUZa1TDCASLGsXjiSiZzmFnM5n4TNJSdmREElfL5lO8cgwGACbgrAkwPat3+x1naggKRS+f/4QAACH5BAUEAB8ALAAAAAABAAEAAAUD4BcCACH5BAUEAB8ALBYAIwAQAA0AAAVE4CeOXdmNaGqeabu27SUIC5xSnifZKK7zl8djkCsIaylGziNaakaEzcbH/Cwl0k9kuWxyPYptzrZULA7otFpNIK1eoxAAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkECQQAHwAsDgAEACAANAAABTHgJ45kaZ5oqq5s675wLM90bd94ru987//AoHBILBqPyKRyyWw6n9CodEqtWq/Y7CoEACH5BAUEAB8ALAAAAAA8ADwAAAX/4CeOZGmeaKqubFt6biy3Xj3fuFjveU/vPJ/wBAQOj6RiEClUGpk9IMAJxQEdmQK1Grt2OhutkvurOb7f8JaM8qLT4iKbuDu/0erxfOS+4+NPex9mfn55coIfCAuFhoBLbDUAjI1vh4FkOxSVd5eQXB4GnI5rXAAbo6R6VTUFqKmWjzasNaKwsaVIHhAEt3cLTjBQA6++XwoHuUM1vMYdyMorwoN8wkC2t9A8s102204Wxana3DNAAQO1FjUCEDXhvuTT5nUdEwOiGxa8BBDwXxKaLTiAKoMFRvJy9CmmoFcHAgrQSEiwKwICDwU0pAMQIdmnboR8TfwWrJyMPrAiz1DkNs2aSRbe6hnr99LEvDJ9IB5DQ8Dhm36glNh5COGBAmQNHrbz+WXBFChOTqFx5+GBxwYCmL1ZcPHmMiWuvkTgECzBBUvrvH4tErbDWCcYDB2IBPbV2yJJ72SZ46TtXSB5v2RIp1ZXXbFkgWxCc68mk752E3tY/OZeIsiIaxi9o+BBokGH3SZ+4FPbZ8yiPQxNeDl0hNUeHWcKjYb1Zx20bd/GzRaV7t28gRSYELvw7pIfgVcLplwF8+bOo0Ffjmm6zerWrxvPzoe79w8hAAAh+QQJBAAfACwBAAEAOgA6AAAFRuAnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/D4MgQAIfkEBQQAHwAsAAAAADwAPAAABf/gJ45kaZ5oqq5s675wLM90bd94ru987//AoHBILBqPyJxnyTQym6nn0ilVSa9XGHY7jXKx2m/WK36Gy1CUVCBpu9+OtNqDeNslgip5Gej4/4ATcidLAICHHQF6c0x9iH+CXV6Gj36KZnsejgsREQSACp0Yg0ydEZWWi4RPjgdLG48apEuogJeDJVKtr7GzHrV/t5KrjX6uHhQMF4cKCwujTxHOwKmYjHzGTw+VEVIK1MGqJrrZTNuP3U/f4IniuazlSwMUFMugE/j47NW4JOQdx9bsoybMgxV4ALEIGAis4MFiCZkUaLPgUAYHGDF+Yucw0y5z3Lzt63hNUzwP5xCRpWOyDhxJYtgiStBQEVCGAAEM6MLp0p0/hMdgIZI17AOTntZgmowo9BBRgz9/EfQ54h8BBS39bKDXwBc9CrVejkNYKRLUSWGpivhXtt9PSpXEvmNiwYDdu3jzFB3LAa9fAxbUGkXjtmSZh4TPJM4kRgbhvVEL9xhTEongJJgza97MubPnz6BDix5NurTp0yJCAAAh+QQJBAAfACwEAA4ANAAgAAAFMeAnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9jsKgQAIfkEBQQAHwAsAAAAADwAPAAABf/gJ45kaZ5oqq5s6bVwLHu0bN8uXeM8rP+9YOoHFBpHRN1xmSwue02A82lrFjaOKbVl3XQ6WeWWm7x+v+HdeFj2ntHaNbL9jUAI5/RLTurWOR53eXFbfh0RgB4PCm9hfCKGiDSLb18Bjx+RiR4HjG8TA3trmkSdZxuhalSkRA2VBqpPrD+ulR0Go3SHmz8CeG8bFqJMupJNHr5nCsKxQccTg4oUNA0YCYG/HQQQYsSlnmCUFLUXgm8EAsPeP6Zf2baV2+rEmTrt8PDyzS7O9uD4b5YV2VGjGw52/wB+CaYjlQcpNBAQioHwy4QMCxe4i3BKGIQN3K7AArBATz8anUDADcgQDMGCbQkknDKAh4ABNxQ0gpnoQ8eDVAUO0ADAzUNMhbZMQiG4R4mOo0gb8eTCQgeEqJVM7juCDWvWJnI4ev2aZIwHl2PfZIBIZBXKtAsLgC1kJu0GuWXNaoB7d67ZlWP75jVLw4JXwW35PNSJFPFUrmIb402smFNCW44N5kJ5+dTkx+vuAfus+VHF0X4xzeHsObXq1ZY7ZN76mt0C0rRf1zuWW/du175PHAu+YjhxFcCPm6CsHHnv5kig6w4BACH5BAkEAB8ALAEAAQA6ADoAAAVG4CeOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8PgyBAAh+QQFBAAfACwAAAAAPAA8AAAF/+AnjmRpnmiqrmzrvnAsz3Rt37jr7Xzv/8BebhQsGn1D0XFZTH6YUGQySvU4fYKAdsvtdi1Cp3In6ZjP6HTawBMTyWbFYk6v18/snXvsKXciUApmeVZ7PH6ATIIdhHtPcB0TDQ1gQBCTBINthpBnAUEaa5tuh2mfQKFojZx9aRMSEhA7FLAbonqsfmoUOxFqmriknWm8Hr6/q8IeCAAAx2cTERG2aBTNHMGOj8a/v8WF2m/c3cSj4SQ8C92n4Ocm6evm7ui9CosdBPbs8yo8E2YO5PE74Q+gwIElCnYImA3hux3/Fh50yCciw3YUt2GQtiiDtGQO4f3al1GkGpIDeXlg0KDhXpoMLBtMVPaMnJlv/HjUtIkzHA8HEya4tLkhqICGV4bZVAMyaaul3ZpOUQoVz8wbpaoyvWojq1ZVXGt4/QoM49SnZMs6GktW6hC2X93mgKtVbtceWbzo9VIJKdYqUJwCPiJ4cJOzhg+/TWwko+PHkCNLdhgCACH5BAUEAB8ALAAAAAABAAEAAAUD4BcCADs=')",Ng=T.div` display: inline-block; height: ${({size:r})=>Pn(r)}; width: ${({size:r})=>Pn(r)}; `,Lg=T.span` display: block; background: ${Pg}; background-size: cover; width: 100%; height: 100%; `,jg=b.forwardRef(({size:r=30,...l},s)=>A.createElement(Ng,{size:r,ref:s,...l},A.createElement(Lg,null)));jg.displayName="Hourglass";const Og=T.div` position: relative; display: inline-block; padding-bottom: 26px; `,Fg=T.div` position: relative; `,Mg=T.div` position: relative; z-index: 1; box-sizing: border-box; width: 195px; height: 155px; padding: 12px; background: ${({theme:r})=>r.material}; border-top: 4px solid ${({theme:r})=>r.borderLightest}; border-left: 4px solid ${({theme:r})=>r.borderLightest}; border-bottom: 4px solid ${({theme:r})=>r.borderDark}; border-right: 4px solid ${({theme:r})=>r.borderDark}; outline: 1px dotted ${({theme:r})=>r.material}; outline-offset: -3px; &:before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; outline: 1px dotted ${({theme:r})=>r.material}; } box-shadow: 1px 1px 0 1px ${({theme:r})=>r.borderDarkest}; &:after { content: ''; display: inline-block; position: absolute; bottom: 4px; right: 12px; width: 10px; border-top: 2px solid #4d9046; border-bottom: 2px solid #07ff00; } `,Bg=T(Yt).attrs(()=>({"data-testid":"background"}))` width: 100%; height: 100%; `,Ug=T.div` box-sizing: border-box; position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); height: 10px; width: 50%; background: ${({theme:r})=>r.material}; border-left: 2px solid ${({theme:r})=>r.borderLightest}; border-bottom: 2px solid ${({theme:r})=>r.borderDarkest}; border-right: 2px solid ${({theme:r})=>r.borderDarkest}; box-shadow: inset 0px 0px 0px 2px ${({theme:r})=>r.borderDark}; &:before { content: ''; position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); width: 80%; height: 8px; background: ${({theme:r})=>r.material}; border-left: 2px solid ${({theme:r})=>r.borderLightest}; border-right: 2px solid ${({theme:r})=>r.borderDarkest}; box-shadow: inset 0px 0px 0px 2px ${({theme:r})=>r.borderDark}; } &:after { content: ''; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 150%; height: 4px; background: ${({theme:r})=>r.material}; border: 2px solid ${({theme:r})=>r.borderDark}; border-bottom: none; box-shadow: inset 1px 1px 0px 1px ${({theme:r})=>r.borderLightest}, 1px 1px 0 1px ${({theme:r})=>r.borderDarkest}; } `,Hg=b.forwardRef(({backgroundStyles:r,children:l,...s},u)=>A.createElement(Og,{ref:u,...s},A.createElement(Fg,null,A.createElement(Mg,null,A.createElement(Bg,{style:r},l)),A.createElement(Ug,null))));Hg.displayName="Monitor";const Qg=T.div` display: inline-block; height: ${nt.md}; width: 100%; `,Wg=T(Yt)` width: 100%; height: 100%; position: relative; text-align: center; padding: 0; overflow: hidden; &:before { z-index: 1; } `,rp=te` width: calc(100% - 4px); height: calc(100% - 4px); display: flex; align-items: center; justify-content: space-around; `,Vg=T.div` position: relative; top: 4px; ${rp} background: ${({theme:r})=>r.canvas}; color: #000; margin-left: 2px; margin-top: -2px; color: ${({theme:r})=>r.materialText}; `,Gg=T.div` position: absolute; top: 2px; left: 2px; ${rp} color: ${({theme:r})=>r.materialTextInvert}; background: ${({theme:r})=>r.progress}; clip-path: polygon( 0 0, ${({value:r=0})=>r}% 0, ${({value:r=0})=>r}% 100%, 0 100% ); transition: 0.4s linear clip-path; `,Kg=T.div` width: calc(100% - 6px); height: calc(100% - 8px); position: absolute; left: 3px; top: 4px; box-sizing: border-box; display: inline-flex; `,op=17,Yg=T.span` display: inline-block; width: ${op}px; box-sizing: border-box; height: 100%; background: ${({theme:r})=>r.progress}; border-color: ${({theme:r})=>r.material}; border-width: 0px 1px; border-style: solid; `,Xg=b.forwardRef(({hideValue:r=!1,shadow:l=!0,value:s,variant:u="default",...d},h)=>{const p=r?null:`${s}%`,w=b.useRef(null),[x,C]=b.useState([]),D=b.useCallback(()=>{if(!w.current||s===void 0)return;const S=w.current.getBoundingClientRect().width,$=Math.round(s/100*S/op);C(Array.from({length:$}))},[s]);return b.useEffect(()=>(D(),window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)),[D]),A.createElement(Qg,{"aria-valuenow":s!==void 0?Math.round(s):void 0,ref:h,role:"progressbar",variant:u,...d},A.createElement(Wg,{variant:u,shadow:l},u==="default"?A.createElement(A.Fragment,null,A.createElement(Vg,{"data-testid":"defaultProgress1"},p),A.createElement(Gg,{"data-testid":"defaultProgress2",value:s},p)):A.createElement(Kg,{ref:w,"data-testid":"tileProgress"},x.map((S,$)=>A.createElement(Yg,{key:$})))))});Xg.displayName="ProgressBar";const lp=te` width: ${Kt}px; height: ${Kt}px; border-radius: 50%; display: flex; align-items: center; justify-content: space-around; margin-right: 0.5rem; `,Zg=T(Yt)` ${lp} background: ${({$disabled:r,theme:l})=>r?l.material:l.canvas}; &:before { content: ''; position: absolute; left: 0px; top: 0px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 50%; box-shadow: none; } `,qg=T.div` ${nr()} ${lp} outline: none; background: ${({$disabled:r,theme:l})=>r?l.flatLight:l.canvas}; &:before { content: ''; display: inline-block; position: absolute; top: 0; left: 0; width: calc(100% - 4px); height: calc(100% - 4px); border: 2px solid ${({theme:r})=>r.flatDark}; border-radius: 50%; } `,Jg=T.span.attrs(()=>({"data-testid":"checkmarkIcon"}))` position: absolute; content: ''; display: inline-block; top: 50%; left: 50%; width: 6px; height: 6px; transform: translate(-50%, -50%); border-radius: 50%; background: ${r=>r.$disabled?r.theme.checkmarkDisabled:r.theme.checkmark}; `,ev={flat:qg,default:Zg},tv=b.forwardRef(({checked:r,className:l="",disabled:s=!1,label:u="",onChange:d,style:h={},variant:p="default",...w},x)=>{const C=ev[p];return A.createElement(Os,{$disabled:s,className:l,style:h},A.createElement(C,{$disabled:s,role:"presentation"},r&&A.createElement(Jg,{$disabled:s,variant:p})),A.createElement(ri,{disabled:s,onChange:s?void 0:d,readOnly:s,type:"radio",checked:r,ref:x,...w}),u&&A.createElement(Fs,null,u))});tv.displayName="Radio";const nv=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Yn(r){const l=b.useRef(r);return nv(()=>{l.current=r}),b.useCallback((...s)=>(0,l.current)(...s),[])}function rf(r,l){typeof r=="function"?r(l):r&&(r.current=l)}function of(r,l){return b.useMemo(()=>r==null&&l==null?null:s=>{rf(r,s),rf(l,s)},[r,l])}var rv=gf();let hi=!0,$s=!1,lf;const ov={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 lv(r){if("type"in r){const{type:l,tagName:s}=r;if(s==="INPUT"&&ov[l]&&!r.readOnly||s==="TEXTAREA"&&!r.readOnly)return!0}return!!("isContentEditable"in r&&r.isContentEditable)}function iv(r){r.metaKey||r.altKey||r.ctrlKey||(hi=!0)}function hs(){hi=!1}function av(){this.visibilityState==="hidden"&&$s&&(hi=!0)}function sv(r){r.addEventListener("keydown",iv,!0),r.addEventListener("mousedown",hs,!0),r.addEventListener("pointerdown",hs,!0),r.addEventListener("touchstart",hs,!0),r.addEventListener("visibilitychange",av,!0)}function uv(r){const{target:l}=r;try{return l.matches(":focus-visible")}catch{}return hi||lv(l)}function cv(){$s=!0,window.clearTimeout(lf),lf=window.setTimeout(()=>{$s=!1},100)}function dv(){const r=b.useCallback(l=>{const s=rv.findDOMNode(l);s!=null&&sv(s.ownerDocument)},[]);return{isFocusVisible:uv,onBlurVisible:cv,ref:r}}function fv(r,l,s){return(s-l)*r+l}function Wl(r,l){if(l!==void 0&&"changedTouches"in r){for(let s=0;s{const w=Math.abs(l-h);return d===null||wr?"41px":"39px"}; ${({isFocused:r,theme:l})=>r&&` outline: 2px dotted ${l.materialText}; `} } ${({orientation:r,size:l})=>r==="vertical"?te` height: ${l}; margin-right: 1.5rem; &:before { left: -6px; top: -15px; height: calc(100% + 30px); width: ${({hasMarks:s})=>s?"41px":"39px"}; } `:te` width: ${l}; margin-bottom: 1.5rem; &:before { top: -2px; left: -15px; width: calc(100% + 30px); height: ${({hasMarks:s})=>s?"41px":"39px"}; } `} pointer-events: ${({$disabled:r})=>r?"none":"auto"}; `,ip=()=>te` position: absolute; ${({orientation:r})=>r==="vertical"?te` bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: 8px; `:te` left: 0; top: 50%; transform: translateY(-50%); height: 8px; width: 100%; `} `,mv=T(Yt)` ${ip()} `,gv=T(Yt)` ${ip()} border-left-color: ${({theme:r})=>r.flatLight}; border-top-color: ${({theme:r})=>r.flatLight}; border-right-color: ${({theme:r})=>r.canvas}; border-bottom-color: ${({theme:r})=>r.canvas}; &:before { border-left-color: ${({theme:r})=>r.flatDark}; border-top-color: ${({theme:r})=>r.flatDark}; border-right-color: ${({theme:r})=>r.flatLight}; border-bottom-color: ${({theme:r})=>r.flatLight}; } `,vv=T.span` position: relative; ${({orientation:r})=>r==="vertical"?te` width: 32px; height: 18px; right: 2px; transform: translateY(-50%); `:te` height: 32px; width: 18px; top: 2px; transform: translateX(-50%); `} ${({variant:r})=>r==="flat"?te` ${nr()} outline: 2px solid ${({theme:l})=>l.flatDark}; background: ${({theme:l})=>l.flatLight}; `:te` ${Ft()} ${Be()} &:focus { outline: none; } `} ${({$disabled:r,theme:l})=>r&&_o({mainColor:l.material,secondaryColor:l.borderLightest})} `,li=6,yv=T.span` display: inline-block; position: absolute; ${({orientation:r})=>r==="vertical"?te` right: ${-8}px; bottom: 0px; transform: translateY(1px); width: ${li}px; border-bottom: 2px solid ${({theme:l})=>l.materialText}; `:te` bottom: ${-6}px; height: ${li}px; transform: translateX(-1px); border-left: 1px solid ${({theme:l})=>l.materialText}; border-right: 1px solid ${({theme:l})=>l.materialText}; `} color: ${({theme:r})=>r.materialText}; ${({$disabled:r,theme:l})=>r&&te` ${Ot()} box-shadow: 1px 1px 0px ${l.materialTextDisabledShadow}; border-color: ${l.materialTextDisabled}; `} `,xv=T.div` position: absolute; bottom: 0; left: 0; line-height: 1; font-size: 0.875rem; ${({orientation:r})=>r==="vertical"?te` transform: translate(${li+2}px, ${li+1}px); `:te` transform: translate(-0.5ch, calc(100% + 2px)); `} `,wv=b.forwardRef(({defaultValue:r,disabled:l=!1,marks:s=!1,max:u=100,min:d=0,name:h,onChange:p,onChangeCommitted:w,onMouseDown:x,orientation:C="horizontal",size:D="100%",step:S=1,value:$,variant:W="default",...H},M)=>{const j=W==="flat"?gv:mv,Q=C==="vertical",[B=d,O]=Nn({defaultValue:r,onChange:p??w,value:$}),{isFocusVisible:Z,onBlurVisible:ne,ref:G}=dv(),[X,Ee]=b.useState(!1),q=b.useRef(),me=b.useRef(null),ce=of(G,q),fe=of(M,ce),ae=Yn(V=>{Z(V)&&Ee(!0)}),ge=Yn(()=>{X!==!1&&(Ee(!1),ne())}),be=b.useRef(),$e=b.useMemo(()=>s===!0&&Number.isFinite(S)?[...Array(Math.round((u-d)/S)+1)].map((V,Y)=>({label:void 0,value:d+S*Y})):Array.isArray(s)?s:[],[s,u,d,S]),xe=Yn(V=>{const Y=(u-d)/10,oe=$e.map(ve=>ve.value),ee=oe.indexOf(B);let se=0;switch(V.key){case"Home":se=d;break;case"End":se=u;break;case"PageUp":S&&(se=B+Y);break;case"PageDown":S&&(se=B-Y);break;case"ArrowRight":case"ArrowUp":S?se=B+S:se=oe[ee+1]||oe[oe.length-1];break;case"ArrowLeft":case"ArrowDown":S?se=B-S:se=oe[ee-1]||oe[0];break;default:return}V.preventDefault(),S&&(se=ef(se,S,d)),se=qn(se,d,u),O(se),Ee(!0),p==null||p(se),w==null||w(se)}),_=b.useCallback(V=>{if(!q.current)return 0;const Y=q.current.getBoundingClientRect();let oe;Q?oe=(Y.bottom-V.y)/Y.height:oe=(V.x-Y.left)/Y.width;let ee;if(ee=fv(oe,d,u),S)ee=ef(ee,S,d);else{const se=$e.map(R=>R.value),ve=pv(se,ee);ee=se[ve]}return ee=qn(ee,d,u),ee},[$e,u,d,S,Q]),K=Yn(V=>{var Y;const oe=Wl(V,be.current);if(!oe)return;const ee=_(oe);(Y=me.current)===null||Y===void 0||Y.focus(),O(ee),Ee(!0),p==null||p(ee)}),U=Yn(V=>{const Y=Wl(V,be.current);if(!Y)return;const oe=_(Y);w==null||w(oe),be.current=void 0;const ee=Vl(q.current);ee.removeEventListener("mousemove",K),ee.removeEventListener("mouseup",U),ee.removeEventListener("touchmove",K),ee.removeEventListener("touchend",U)}),v=Yn(V=>{var Y;x==null||x(V),V.preventDefault(),(Y=me.current)===null||Y===void 0||Y.focus(),Ee(!0);const oe=Wl(V,be.current);if(oe){const se=_(oe);O(se),p==null||p(se)}const ee=Vl(q.current);ee.addEventListener("mousemove",K),ee.addEventListener("mouseup",U)}),I=Yn(V=>{var Y;V.preventDefault();const oe=V.changedTouches[0];oe!=null&&(be.current=oe.identifier),(Y=me.current)===null||Y===void 0||Y.focus(),Ee(!0);const ee=Wl(V,be.current);if(ee){const ve=_(ee);O(ve),p==null||p(ve)}const se=Vl(q.current);se.addEventListener("touchmove",K),se.addEventListener("touchend",U)});return b.useEffect(()=>{const{current:V}=q;V==null||V.addEventListener("touchstart",I);const Y=Vl(V);return()=>{V==null||V.removeEventListener("touchstart",I),Y.removeEventListener("mousemove",K),Y.removeEventListener("mouseup",U),Y.removeEventListener("touchmove",K),Y.removeEventListener("touchend",U)}},[U,K,I]),A.createElement(hv,{$disabled:l,hasMarks:!!$e.length,isFocused:X,onMouseDown:v,orientation:C,ref:fe,size:Pn(D),...H},A.createElement("input",{disabled:l,name:h,type:"hidden",value:B??0}),$e&&$e.map(V=>A.createElement(yv,{$disabled:l,"data-testid":"tick",key:V.value/(u-d)*100,orientation:C,style:{[Q?"bottom":"left"]:`${(V.value-d)/(u-d)*100}%`}},V.label&&A.createElement(xv,{"aria-hidden":!0,"data-testid":"mark",orientation:C},V.label))),A.createElement(j,{orientation:C,variant:W}),A.createElement(vv,{$disabled:l,"aria-disabled":l?!0:void 0,"aria-orientation":C,"aria-valuemax":u,"aria-valuemin":d,"aria-valuenow":B,onBlur:ge,onFocus:ae,onKeyDown:xe,orientation:C,ref:me,role:"slider",style:{[Q?"bottom":"left"]:`${(Q?-100:0)+100*(B-d)/(u-d)}%`},tabIndex:l?void 0:0,variant:W}))});wv.displayName="Slider";const kv=T.tbody` background: ${({theme:r})=>r.canvas}; display: table-row-group; box-shadow: ${Ls}; overflow-y: auto; `,Sv=b.forwardRef(function({children:l,...s},u){return A.createElement(kv,{ref:u,...s},l)});Sv.displayName="TableBody";const Ev=T.td` padding: 0 8px; `,bv=b.forwardRef(function({children:l,...s},u){return A.createElement(Ev,{ref:u,...s},l)});bv.displayName="TableDataCell";const Av=T.thead` display: table-header-group; `,Cv=b.forwardRef(function({children:l,...s},u){return A.createElement(Av,{ref:u,...s},l)});Cv.displayName="TableHead";const $v=T.th` position: relative; padding: 0 8px; display: table-cell; vertical-align: inherit; background: ${({theme:r})=>r.material}; cursor: default; user-select: none; &:before { box-sizing: border-box; content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; ${Be()} border-left: none; border-top: none; } ${({$disabled:r})=>!r&&te` &:active { &:before { ${Be({invert:!0,style:"window"})} border-left: none; border-top: none; padding-top: 2px; } & > div { position: relative; top: 2px; } } `} color: ${({theme:r})=>r.materialText}; ${({$disabled:r})=>r&&Ot()} &:hover { color: ${({theme:r})=>r.materialText}; ${({$disabled:r})=>r&&Ot()} } `,Tv=b.forwardRef(function({disabled:l=!1,children:s,onClick:u,onTouchStart:d=rr,sort:h,...p},w){const x=h==="asc"?"ascending":h==="desc"?"descending":void 0;return A.createElement($v,{$disabled:l,"aria-disabled":l,"aria-sort":x,onClick:l?void 0:u,onTouchStart:l?void 0:d,ref:w,...p},A.createElement("div",null,s))});Tv.displayName="TableHeadCell";const Iv=T.tr` color: inherit; display: table-row; height: calc(${nt.md} - 2px); line-height: calc(${nt.md} - 2px); vertical-align: middle; outline: none; color: ${({theme:r})=>r.canvasText}; &:hover { background: ${({theme:r})=>r.hoverBackground}; color: ${({theme:r})=>r.canvasTextInvert}; } `,Dv=b.forwardRef(function({children:l,...s},u){return A.createElement(Iv,{ref:u,...s},l)});Dv.displayName="TableRow";const Rv=T.table` display: table; width: 100%; border-collapse: collapse; border-spacing: 0; font-size: 1rem; `,_v=T(Yt)` &:before { box-shadow: none; } `,zv=b.forwardRef(({children:r,...l},s)=>A.createElement(_v,null,A.createElement(Rv,{ref:s,...l},r)));zv.displayName="Table";const Pv=T.button` ${Ft()} ${Be()} position: relative; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; height: ${nt.md}; line-height: ${nt.md}; padding: 0 8px; border-bottom: none; border-top-left-radius: 5px; border-top-right-radius: 5px; margin: 0 0 -2px 0; cursor: default; color: ${({theme:r})=>r.materialText}; user-select: none; font-family: inherit; &:focus:after, &:active:after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; ${jr} outline-offset: -6px; } ${r=>r.selected&&` z-index: 1; height: calc(${nt.md} + 4px); top: -4px; margin-bottom: -6px; padding: 0 16px; margin-left: -8px; &:not(:last-child) { margin-right: -8px; } `} &:before { content: ''; position: absolute; width: calc(100% - 4px); height: 6px; background: ${({theme:r})=>r.material}; bottom: -4px; left: 2px; } `,Nv=b.forwardRef(({value:r,onClick:l,selected:s=!1,children:u,...d},h)=>A.createElement(Pv,{"aria-selected":s,selected:s,onClick:p=>l==null?void 0:l(r,p),ref:h,role:"tab",...d},u));Nv.displayName="Tab";const Lv=T.div` ${Ft()} ${Be()} position: relative; display: block; height: 100%; padding: 16px; font-size: 1rem; `,jv=b.forwardRef(({children:r,...l},s)=>A.createElement(Lv,{ref:s,...l},r));jv.displayName="TabBody";const Ov=T.div` position: relative; ${({isMultiRow:r,theme:l})=>r&&` button { flex-grow: 1; } button:last-child:before { border-right: 2px solid ${l.borderDark}; } `} `,Fv=T.div.attrs(()=>({"data-testid":"tab-row"}))` position: relative; display: flex; flex-wrap: no-wrap; text-align: left; left: 8px; width: calc(100% - 8px); &:not(:first-child):before { content: ''; position: absolute; right: 0; left: 0; height: 100%; border-right: 2px solid ${({theme:r})=>r.borderDarkest}; border-left: 2px solid ${({theme:r})=>r.borderLightest}; } `;function Mv(r,l){const s=[];for(let u=l;u>0;u-=1)s.push(r.splice(0,Math.ceil(r.length/u)));return s}const Bv=b.forwardRef(({value:r,onChange:l=rr,children:s,rows:u=1,...d},h)=>{const p=b.useMemo(()=>{var w;const x=(w=A.Children.map(s,S=>{if(!A.isValidElement(S))return null;const $={selected:S.props.value===r,onClick:l};return A.cloneElement(S,$)}))!==null&&w!==void 0?w:[],C=Mv(x,u).map((S,$)=>({key:$,tabs:S})),D=C.findIndex(S=>S.tabs.some($=>$.props.selected));return C.push(C.splice(D,1)[0]),C},[s,l,u,r]);return A.createElement(Ov,{...d,isMultiRow:u>1,role:"tablist",ref:h},p.map(w=>A.createElement(Fv,{key:w.key},w.tabs)))});Bv.displayName="Tabs";const Uv=["blur","focus"],Hv=["click","contextmenu","doubleclick","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"];function af(r){return"nativeEvent"in r&&Uv.includes(r.type)}function sf(r){return"nativeEvent"in r&&Hv.includes(r.type)}const Qv={top:`top: -4px; left: 50%; transform: translate(-50%, -100%);`,bottom:`bottom: -4px; left: 50%; transform: translate(-50%, 100%);`,left:`left: -4px; top: 50%; transform: translate(-100%, -50%);`,right:`right: -4px; top: 50%; transform: translate(100%, -50%);`},Wv=T.span` position: absolute; z-index: 1; display: ${r=>r.show?"block":"none"}; padding: 4px; border: 2px solid ${({theme:r})=>r.borderDarkest}; background: ${({theme:r})=>r.tooltip}; box-shadow: ${Ns}; text-align: center; font-size: 1rem; ${r=>Qv[r.position]} `,Vv=T.div` position: relative; display: inline-block; white-space: nowrap; `,Gv=b.forwardRef(({className:r,children:l,disableFocusListener:s=!1,disableMouseListener:u=!1,enterDelay:d=1e3,leaveDelay:h=0,onBlur:p,onClose:w,onFocus:x,onMouseEnter:C,onMouseLeave:D,onOpen:S,style:$,text:W,position:H="top",...M},j)=>{const[Q,B]=b.useState(!1),[O,Z]=b.useState(),[ne,G]=b.useState(),X=!s,Ee=!u,q=_=>{window.clearTimeout(O),window.clearTimeout(ne);const K=window.setTimeout(()=>{B(!0),S==null||S(_)},d);Z(K)},me=_=>{_.persist(),af(_)?x==null||x(_):sf(_)&&(C==null||C(_)),q(_)},ce=_=>{window.clearTimeout(O),window.clearTimeout(ne);const K=window.setTimeout(()=>{B(!1),w==null||w(_)},h);G(K)},fe=_=>{_.persist(),af(_)?p==null||p(_):sf(_)&&(D==null||D(_)),ce(_)},ae=X?fe:void 0,ge=X?me:void 0,be=Ee?me:void 0,$e=Ee?fe:void 0,xe=X?0:void 0;return A.createElement(Vv,{"data-testid":"tooltip-wrapper",onBlur:ae,onFocus:ge,onMouseEnter:be,onMouseLeave:$e,tabIndex:xe},A.createElement(Wv,{className:r,"data-testid":"tooltip",position:H,ref:j,show:Q,style:$,...M},W),l)});Gv.displayName="Tooltip";const Ts=T(Fs)` white-space: nowrap; `,ap=te` :focus { outline: none; } ${({$disabled:r})=>r?"cursor: default;":te` cursor: pointer; :focus { ${Ts} { background: ${({theme:l})=>l.hoverBackground}; color: ${({theme:l})=>l.materialTextInvert}; outline: 2px dotted ${({theme:l})=>l.focusSecondary}; } } `} `,Kv=T.ul` position: relative; isolation: isolate; ${({isRootLevel:r})=>r&&te` &:before { content: ''; position: absolute; top: 20px; bottom: 0; left: 5.5px; width: 1px; border-left: 2px dashed ${({theme:l})=>l.borderDark}; } `} ul { padding-left: 19.5px; } li { position: relative; &:before { content: ''; position: absolute; top: 17.5px; left: 5.5px; width: 22px; border-top: 2px dashed ${({theme:r})=>r.borderDark}; font-size: 12px; } } `,Yv=T.li` position: relative; padding-left: ${({hasItems:r})=>r?"0":"13px"}; ${({isRootLevel:r})=>r?te` &:last-child { &:after { content: ''; position: absolute; top: 19.5px; left: 1px; bottom: 0; width: 10px; background: ${({theme:l})=>l.material}; } } `:te` &:last-child { &:after { content: ''; position: absolute; z-index: 1; top: 19.5px; bottom: 0; left: 1.5px; width: 10px; background: ${({theme:l})=>l.material}; } } `} & > details > ul { &:after { content: ''; position: absolute; top: -18px; bottom: 0; left: 25px; border-left: 2px dashed ${({theme:r})=>r.borderDark}; } } `,Xv=T.details` position: relative; z-index: 2; &[open] > summary:before { content: '-'; } `,Zv=T.summary` position: relative; z-index: 1; display: inline-flex; align-items: center; color: ${({theme:r})=>r.materialText}; user-select: none; padding-left: 18px; ${ap}; &::-webkit-details-marker { display: none; } &:before { content: '+'; position: absolute; left: 0; display: block; width: 8px; height: 9px; border: 2px solid #808080; padding-left: 1px; background-color: #fff; line-height: 8px; text-align: center; } `,uf=T(Os)` position: relative; z-index: 1; background: none; border: 0; font-family: inherit; padding-top: 8px; padding-bottom: 8px; margin: 0; ${ap}; `,qv=T.span` display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 6px; `;function cf(r,l){return r.includes(l)?r.filter(s=>s!==l):[...r,l]}function df(r){r.preventDefault()}function sp({className:r,disabled:l,expanded:s,innerRef:u,level:d,select:h,selected:p,style:w,tree:x=[]}){const C=d===0,D=b.useCallback(S=>{var $,W;const H=!!(S.items&&S.items.length>0),M=s.includes(S.id),j=($=l||S.disabled)!==null&&$!==void 0?$:!1,Q=j?df:ne=>h(ne,S),B=j?df:ne=>h(ne,S),O=p===S.id,Z=A.createElement(qv,{"aria-hidden":!0},S.icon);return A.createElement(Yv,{key:S.label,isRootLevel:C,role:"treeitem","aria-expanded":M,"aria-selected":O,hasItems:H},H?A.createElement(Xv,{open:M},A.createElement(Zv,{onClick:Q,$disabled:j},A.createElement(uf,{$disabled:j},Z,A.createElement(Ts,null,S.label))),M&&A.createElement(sp,{className:r,disabled:j,expanded:s,level:d+1,select:h,selected:p,style:w,tree:(W=S.items)!==null&&W!==void 0?W:[]})):A.createElement(uf,{as:"button",$disabled:j,onClick:B},Z,A.createElement(Ts,null,S.label)))},[r,l,s,C,d,h,p,w]);return A.createElement(Kv,{className:C?r:void 0,style:C?w:void 0,ref:C?u:void 0,role:C?"tree":"group",isRootLevel:C},x.map(D))}function Jv({className:r,defaultExpanded:l=[],defaultSelected:s,disabled:u=!1,expanded:d,onNodeSelect:h,onNodeToggle:p,selected:w,style:x,tree:C=[]},D){const[S,$]=Nn({defaultValue:l,onChange:p,onChangePropName:"onNodeToggle",value:d,valuePropName:"expanded"}),[W,H]=Nn({defaultValue:s,onChange:h,onChangePropName:"onNodeSelect",value:w,valuePropName:"selected"}),M=b.useCallback((B,O)=>{if(p){const Z=cf(S,O);p(B,Z)}$(Z=>cf(Z,O))},[S,p,$]),j=b.useCallback((B,O)=>{H(O),h&&h(B,O)},[h,H]),Q=b.useCallback((B,O)=>{B.preventDefault(),j(B,O.id),O.items&&O.items.length&&M(B,O.id)},[j,M]);return A.createElement(sp,{className:r,disabled:u,expanded:S,level:0,innerRef:D,select:Q,selected:W,style:x,tree:C})}const ey=b.forwardRef(Jv);ey.displayName="TreeView";const Hs=np,_r=Ms,ty=T.progress` width: 100%; height: 20px; -webkit-appearance: none; -moz-appearance: none; appearance: none; background: #c0c0c0; border: 2px solid #000000; border-radius: 0; box-shadow: none; &::-webkit-progress-bar { background: #c0c0c0; } &::-webkit-progress-value { background: #000080; } &::-moz-progress-bar { background: #000080; } `,ny=T.div` border: 2px solid #000000; padding: 10px; margin: 10px 0; background: #c0c0c0; position: relative; &::before { content: "${r=>r.label||""}"; position: absolute; top: -20px; left: 10px; background: #c0c0c0; padding: 0 5px; font-size: 14px; } `,ry=T.div` display: flex; flex-direction: column; gap: 10px; `,oy=T.div` display: flex; flex-direction: column; gap: 5px; margin-top: 10px; `,ly=T.div` font-size: 12px; color: #000000; `;function iy({onStart:r,onStop:l,onReset:s,onDownload:u,totalProcessed:d,linesCount:h}){return N.jsxs(ry,{children:[N.jsxs(oi,{children:[N.jsx(dn,{onClick:r,primary:!0,children:"Start"}),N.jsx(dn,{onClick:l,children:"Stop"}),N.jsx(dn,{onClick:s,children:"Reset"}),N.jsx(dn,{onClick:u,children:"Download"})]}),N.jsxs(oy,{children:[N.jsx(ty,{value:d,max:h}),N.jsxs(ly,{children:["Generation: ",d," / ",h]})]})]})}const ay=1e6,Rn=navigator.hardwareConcurrency||4,sy=["Arial","Times New Roman","Courier New","Georgia","Verdana","Helvetica","Impact","Comic Sans MS"],uy=[{value:"lines",label:"Lines"},{value:"words",label:"Words"}],cy=` Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est laborum `.trim(),Co=T.div` display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; `,Gl=T.label` font-size: 12px; color: #000000; `,dy=T.p` font-size: 12px; color: #000000; margin-bottom: 10px; `;function fy({inputValues:r,onTextInputChange:l,onSelectChange:s}){return N.jsxs(Hs,{label:"Font Settings",children:[N.jsx(dy,{children:"Configure how the text will appear. Adjust the font family, size range, opacity, and whether the text should be bold."}),N.jsxs(Co,{children:[N.jsx(Gl,{htmlFor:"fontFamilyInput",children:"Font Family"}),N.jsx(pi,{name:"font.family",value:r.font.family,onChange:u=>s("font.family",u.value),id:"fontFamilyInput",options:sy.map(u=>({value:u,label:u}))})]}),N.jsxs(Co,{children:[N.jsx(Gl,{htmlFor:"minSizeInput",children:"Min Size"}),N.jsx(_r,{type:"number",name:"font.minSize",value:r.font.minSize,onChange:l,placeholder:"Min Size",id:"minSizeInput"})]}),N.jsxs(Co,{children:[N.jsx(Gl,{htmlFor:"maxSizeInput",children:"Max Size"}),N.jsx(_r,{type:"number",name:"font.maxSize",value:r.font.maxSize,onChange:l,placeholder:"Max Size",id:"maxSizeInput"})]}),N.jsxs(Co,{children:[N.jsx(Gl,{htmlFor:"opacityInput",children:"Opacity"}),N.jsx(_r,{type:"number",name:"font.opacity",value:r.font.opacity,step:"0.1",min:"0",max:"1",onChange:l,placeholder:"Opacity",id:"opacityInput"})]}),N.jsx(Co,{children:N.jsx(Qf,{name:"font.bold",checked:r.font.bold==="true",onChange:u=>s("font.bold",u.target.checked?"true":"false"),label:"Bold"})})]})}const py=(r,l,s)=>{const u=r.getImageData(0,0,l,s).data,d=l*s,h=new Float32Array(d);for(let p=0;p{u.putImageData(r.iData,0,0);const d=s.font.bold?"bold":"normal";u.font=`${d} ${l.size}px ${s.font.family}`,u.fillStyle=l.color,u.textAlign="center",u.textBaseline="middle",u.translate(l.position.x,l.position.y),u.rotate(l.rotation),u.fillText(l.text,0,0),u.rotate(-l.rotation),u.translate(-l.position.x,-l.position.y)},my=T.div` display: flex; flex-direction: column; gap: 10px; `,gy=T.canvas` width: 100%; height: auto; background: white; `;function vy({selectedCanvasRef:r,selectedImage:l,setSelectedImage:s,setCurrentImage:u}){const d=p=>{const w=document.createElement("canvas");w.width=p.width,w.height=p.height;const x=w.getContext("2d",{willReadFrequently:!0});if(!x)return;x.drawImage(p,0,0);const C=py(x,p.width,p.height),D={size:{width:p.width,height:p.height},bArray:C,iData:x.getImageData(0,0,p.width,p.height)};s(D);const S=document.createElement("canvas");S.width=p.width,S.height=p.height;const $=S.getContext("2d",{willReadFrequently:!0});if(!$)return;$.fillStyle="black",$.fillRect(0,0,p.width,p.height);const W={bArray:new Float32Array(p.width*p.height),iData:$.getImageData(0,0,p.width,p.height),size:{width:p.width,height:p.height}};u(W)},h=p=>{var C;const w=(C=p.target.files)==null?void 0:C[0];if(!w)return;const x=new FileReader;x.onload=D=>{var $;const S=new Image;S.onload=()=>{S.width*S.height>ay&&alert(`Warning: Image dimensions (${S.width}x${S.height}) exceed recommended size. The app will work slow. Number of pixels: ${S.width*S.height}.`),d(S)},S.src=($=D.target)==null?void 0:$.result},x.readAsDataURL(w)};return N.jsxs(my,{children:[N.jsxs(Hs,{label:"Image Upload",children:[N.jsx("input",{type:"file",onChange:h,accept:"image/*",id:"fileInput",style:{display:"none"}}),N.jsx(dn,{onClick:()=>{var p;return(p=document.getElementById("fileInput"))==null?void 0:p.click()},primary:!0,children:l?"Change Image":"Select Image"})]}),N.jsx(gy,{ref:r,id:"selectedCanvas",width:(l==null?void 0:l.size.width)||100,height:(l==null?void 0:l.size.height)||100}),l&&N.jsx("div",{className:"image-info",children:N.jsxs("div",{children:["Dimensions: ",l.size.width,"x",l.size.height,"px"]})})]})}const ff=T.div` display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; `,pf=T.label` font-size: 12px; color: #000000; `,yy=T.p` font-size: 12px; color: #000000; margin-bottom: 10px; `;function xy({inputValues:r,onTextInputChange:l}){return N.jsxs(Hs,{label:"Processing Settings",children:[N.jsx(yy,{children:"Control how the genetic algorithm works. More iterations will find better placements for each text block, while more generations will add more text blocks to the final image."}),N.jsxs(ff,{children:[N.jsx(pf,{htmlFor:"iterationsInput",children:"Iterations"}),N.jsx(_r,{type:"number",name:"iterations",value:r.iterations,onChange:l,placeholder:"Iterations",id:"iterationsInput"})]}),N.jsxs(ff,{children:[N.jsx(pf,{htmlFor:"generationsInput",children:"Generations"}),N.jsx(_r,{type:"number",name:"generations",value:r.generations,onChange:l,placeholder:"Number of generations",id:"generationsInput"})]})]})}const wy=T.div` display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; `,ky=T.label` font-size: 12px; color: #000000; `,Sy=T.p` font-size: 12px; color: #000000; margin-bottom: 10px; `;function Ey({inputValues:r,onTextInputChange:l,onSelectChange:s}){return N.jsxs(ny,{label:"Text Content",children:[N.jsx(Sy,{children:"Enter the text blocks that will be used to draw the image. Each line will be treated as a separate block that can be placed and rotated independently."}),N.jsxs(wy,{children:[N.jsx(ky,{htmlFor:"useTypeInput",children:"Use"}),N.jsx(pi,{name:"useType",value:r.useType,onChange:u=>s("useType",u.value),id:"useTypeInput",options:uy.map(u=>({value:u.value,label:u.label}))})]}),N.jsx(_r,{name:"blocks",value:r.blocks,onChange:l,multiline:!0,rows:10,fullWidth:!0})]})}const by=T.div` display: flex; flex-direction: column; padding: 20px; background: #008080; min-height: 100vh; gap: 20px; `,Ay=T.div` display: flex; gap: 20px; flex: 1; `,Cy=T.div` width: 400px; display: flex; flex-direction: column; gap: 20px; `,$y=T.div` flex: 1; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 20px; align-self: flex-start; `,Xn=T(Us)` width: 100%; `,Ty=T.canvas` width: 100%; height: auto; background: white; `,Iy=T.ul` list-style-type: none; padding: 0; margin: 0; `,Dr=T.li` margin-bottom: 12px; line-height: 1.4; color: #000000; &:last-child { margin-bottom: 0; } a { color: #0000FF; text-decoration: underline; font-weight: bold; &:hover { color: #FF0000; text-decoration: none; } &:active { color: #FF0000; text-decoration: underline; } } `;T.progress` width: 100%; height: 20px; -webkit-appearance: none; -moz-appearance: none; appearance: none; background: #c0c0c0; border: 2px solid #000000; border-radius: 0; box-shadow: none; &::-webkit-progress-bar { background: #c0c0c0; } &::-webkit-progress-value { background: #000080; } &::-moz-progress-bar { background: #000080; } `;T.div` border: 2px solid #000000; padding: 10px; margin: 10px 0; background: #c0c0c0; position: relative; &::before { content: "${r=>r.label||""}"; position: absolute; top: -20px; left: 10px; background: #c0c0c0; padding: 0 5px; font-size: 14px; } `;function Dy(){const[r,l]=b.useState({blocks:cy,useType:"lines",font:{family:"Arial",minSize:"10",maxSize:"50",opacity:"0.5",bold:"false",shadow:{color:"#000000",blur:"0",offsetX:"0",offsetY:"0",enabled:"false"}},iterations:80,generations:800}),[s,u]=b.useState(!1),[d,h]=b.useState(0),[p,w]=b.useState({}),[x,C]=b.useState({}),[D,S]=b.useState(null),[$,W]=b.useState(null),H=b.useRef([]),M=b.useRef(null),j=b.useRef(null);b.useEffect(()=>{$&&ne()},[$]),b.useEffect(()=>{if(Object.keys(x).length!==Rn||!j.current||!$||!s)return;if(d+1>=O.generations){u(!1);return}h(ae=>ae+1);const me=Object.values(x).reduce((ae,ge)=>!ae||(ge.score??0)>(ae.score??0)?ge:ae,null);if(!me)return;console.log("Legend for next generation:",JSON.stringify(me));const ce=document.createElement("canvas");ce.width=$.size.width,ce.height=$.size.height;const fe=ce.getContext("2d",{willReadFrequently:!0});fe&&(D?fe.putImageData(D.iData,0,0):(fe.fillStyle="black",fe.fillRect(0,0,ce.width,ce.height)),hy(D||{iData:fe.getImageData(0,0,ce.width,ce.height),size:{width:ce.width,height:ce.height}},me,O,fe),S({iData:fe.getImageData(0,0,ce.width,ce.height),size:{width:ce.width,height:ce.height}}));for(let ae=0;ae{if(D&&M.current){const q=M.current.getContext("2d",{willReadFrequently:!0});q&&((M.current.width!==D.iData.width||M.current.height!==D.iData.height)&&(M.current.width=D.iData.width,M.current.height=D.iData.height),q.putImageData(D.iData,0,0))}},[D]),b.useEffect(()=>{if($&&j.current){const q=j.current.getContext("2d",{willReadFrequently:!0});if(!q)return;(j.current.width!==$.size.width||j.current.height!==$.size.height)&&(j.current.width=$.size.width,j.current.height=$.size.height),q.putImageData($.iData,0,0)}},[$]);const Q=q=>{const me=q.target,ce=me.type==="number"?Number(me.value):me.value,[,fe,ae]=me.name.split(".");l(fe&&ae?ge=>({...ge,font:{...ge.font,[fe]:{...ge.font[fe],[ae]:ce}}}):fe?ge=>({...ge,font:{...ge.font,[fe]:ce}}):ge=>({...ge,[me.name]:ce}))},B=(q,me)=>{const[,ce,fe]=q.split(".");l(ce&&fe?ae=>({...ae,font:{...ae.font,[ce]:{...ae.font[ce],[fe]:me}}}):ce?ae=>({...ae,font:{...ae.font,[ce]:me}}):ae=>({...ae,[q]:me}))},O=b.useMemo(()=>({blocks:r.blocks.split(` `).filter(q=>q.trim()!==""),font:{family:r.font.family,minSize:Number(r.font.minSize),maxSize:Number(r.font.maxSize),opacity:Number(r.font.opacity),bold:r.font.bold==="true"},iterations:r.iterations,generations:r.generations}),[r]),Z=()=>{if(M.current){const q=document.createElement("a");q.href=M.current.toDataURL("image/png"),q.download="bedri.png",document.body.appendChild(q),q.click(),document.body.removeChild(q)}},ne=()=>{if($){H.current.forEach(q=>{q&&q.terminate()}),H.current=[];for(let q=0;q{var ge;const{action:fe,workerId:ae}=ce.data;if(!("reason"in ce.data)&&ae!==void 0)switch(fe){case"ready":w(xe=>({...xe||{},[ae]:{total:0,processed:0}}));break;case"initialized":s||(ge=H.current[ae])==null||ge.postMessage({action:"battle",timestamp:Date.now(),workerId:ae});break;case"update":const be=ce.data;w(xe=>({...xe||{},[ae]:{total:be.total,processed:be.processed}}));break;case"done":const $e=ce.data;C(xe=>({...xe,[ae]:$e.victor.candidate}));break;case"error":break}},me.postMessage({action:"prepare",workerId:q,selectedImage:$,timestamp:Date.now()}),H.current[q]=me}catch{}}},G=()=>{if(!s){if(!$){alert("Please upload an image first.");return}if(!H.current||H.current.length===0){alert("Workers are not initialized yet.");return}if(O.blocks.length===0){alert("Please enter some text first.");return}if(O.font.minSize>=O.font.maxSize){alert("Minimum font size must be less than maximum font size.");return}u(!0),h(0),w({}),C({});for(let q=0;q{u(!1),H.current.forEach(q=>{q.terminate()}),ne()},Ee=()=>{u(!1),h(0),w({}),C({}),S(null),H.current.forEach(q=>{q.terminate()}),ne()};return N.jsxs(by,{children:[N.jsxs(Xn,{children:[N.jsx(cn,{children:N.jsx("span",{children:"Bedri"})}),N.jsx(un,{children:N.jsxs(Iy,{children:[N.jsx(Dr,{children:"Bedri will generate a text-based representation of the image using the provided text by using genetic algorithms. The name is inspired by the famous painter Bedri Baykam."}),N.jsx(Dr,{children:"The app is tested with google chrome and might not work with other browsers. Also, mobile devices are not supported."}),N.jsxs(Dr,{children:["The app is open source and the code is available on ",N.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/miratcan/bedri",children:"GitHub"}),". If you have any feedback, please ",N.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/miratcan/bedri/issues",children:"open an issue"}),"."]}),N.jsx(Dr,{children:"This app will use all of your CPU cores to generate the image. It can drain your battery quickly if you are using a laptop."}),N.jsx(Dr,{children:'How to use: select an image and enter text lines. Then click on the "Start" button to begin the genetic algorithm. Tweak the options to get better results.'}),N.jsxs(Dr,{children:["You can find inspiration from twitter by searching for ",N.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:`https://x.com/search?q=${encodeURIComponent("#bedriapp")}`,children:"#bedriapp"}),". Also please post your results with the hashtag ",N.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:`https://x.com/search?q=${encodeURIComponent("#bedriapp")}`,children:"#bedriapp"}),"."]})]})})]}),N.jsxs(Ay,{children:[N.jsxs(Cy,{children:[N.jsxs(Xn,{children:[N.jsx(cn,{children:N.jsx("span",{children:"Image Selection"})}),N.jsx(un,{children:N.jsx(vy,{selectedCanvasRef:j,selectedImage:$,setSelectedImage:W,setCurrentImage:S})})]}),N.jsxs(Xn,{children:[N.jsx(cn,{children:N.jsx("span",{children:"Text Content"})}),N.jsx(un,{children:N.jsx(Ey,{inputValues:r,onTextInputChange:Q,onSelectChange:B})})]}),N.jsxs(Xn,{children:[N.jsx(cn,{children:N.jsx("span",{children:"Font Settings"})}),N.jsx(un,{children:N.jsx(fy,{inputValues:r,onTextInputChange:Q,onSelectChange:B})})]}),N.jsxs(Xn,{children:[N.jsx(cn,{children:N.jsx("span",{children:"Processing Settings"})}),N.jsx(un,{children:N.jsx(xy,{inputValues:r,onTextInputChange:Q})})]})]}),N.jsxs($y,{children:[N.jsxs(Xn,{children:[N.jsx(cn,{children:N.jsx("span",{children:"Preview"})}),N.jsx(un,{children:N.jsx(Ty,{ref:M,id:"currentCanvas"})})]}),N.jsxs(Xn,{children:[N.jsx(cn,{children:N.jsx("span",{children:"Controls"})}),N.jsx(un,{children:N.jsx(iy,{onStart:G,onStop:X,onReset:Ee,onDownload:Z,totalProcessed:p?Object.values(p).reduce((q,me)=>q+me.processed,0):0,linesCount:p?Object.values(p).reduce((q,me)=>q+me.total,0):0})})]})]})]})]})}var ms,hf;function Ry(){if(hf)return ms;hf=1;var r={name:"original",anchor:"#1034a6",anchorVisited:"#440381",borderDark:"#848584",borderDarkest:"#0a0a0a",borderLight:"#dfdfdf",borderLightest:"#fefefe",canvas:"#ffffff",canvasText:"#0a0a0a",canvasTextDisabled:"#848584",canvasTextDisabledShadow:"#fefefe",canvasTextInvert:"#fefefe",checkmark:"#0a0a0a",checkmarkDisabled:"#848584",desktopBackground:"#008080",flatDark:"#9e9e9e",flatLight:"#d8d8d8",focusSecondary:"#fefe03",headerBackground:"#060084",headerNotActiveBackground:"#7f787f",headerNotActiveText:"#c6c6c6",headerText:"#fefefe",hoverBackground:"#060084",material:"#c6c6c6",materialDark:"#9a9e9c",materialText:"#0a0a0a",materialTextDisabled:"#848584",materialTextDisabledShadow:"#fefefe",materialTextInvert:"#fefefe",progress:"#060084",tooltip:"#fefbcc"};return ms=r,ms}var _y=Ry();const zy=mf(_y),Py="/bedri/assets/ms_sans_serif-Du8rjN1q.woff2",Ny="/bedri/assets/ms_sans_serif_bold-D5dpRRHG.woff2",Ly=document.getElementById("app"),jy=fm.createRoot(Ly),Oy=m0` ${pm} @font-face { font-family: 'ms_sans_serif'; src: url('${Py}') format('woff2'); font-weight: 400; font-style: normal } @font-face { font-family: 'ms_sans_serif'; src: url('${Ny}') format('woff2'); font-weight: bold; font-style: normal } body { font-family: 'ms_sans_serif'; } `;jy.render(N.jsxs(f0,{theme:zy,children:[N.jsx(Oy,{}),N.jsx(Dy,{})]}));