Xenova's picture
Xenova HF staff
Upload 6 files
8cc012d verified
var cp=Object.defineProperty;var fp=(d,s,o)=>s in d?cp(d,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[s]=o;var Re=(d,s,o)=>fp(d,typeof s!="symbol"?s+"":s,o);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))a(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const y of p.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&a(y)}).observe(document,{childList:!0,subtree:!0});function o(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function a(f){if(f.ep)return;f.ep=!0;const p=o(f);fetch(f.href,p)}})();function dp(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Qs={exports:{}},Pl={},Gs={exports:{}},oe={};/**
* @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 Fc;function pp(){if(Fc)return oe;Fc=1;var d=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),I=Symbol.iterator;function A(v){return v===null||typeof v!="object"?null:(v=I&&v[I]||v["@@iterator"],typeof v=="function"?v:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,F={};function K(v,C,Y){this.props=v,this.context=C,this.refs=F,this.updater=Y||D}K.prototype.isReactComponent={},K.prototype.setState=function(v,C){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,C,"setState")},K.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function he(){}he.prototype=K.prototype;function ae(v,C,Y){this.props=v,this.context=C,this.refs=F,this.updater=Y||D}var Ee=ae.prototype=new he;Ee.constructor=ae,V(Ee,K.prototype),Ee.isPureReactComponent=!0;var te=Array.isArray,me=Object.prototype.hasOwnProperty,ne={current:null},Ne={key:!0,ref:!0,__self:!0,__source:!0};function ce(v,C,Y){var re,Z={},ie=null,ke=null;if(C!=null)for(re in C.ref!==void 0&&(ke=C.ref),C.key!==void 0&&(ie=""+C.key),C)me.call(C,re)&&!Ne.hasOwnProperty(re)&&(Z[re]=C[re]);var ge=arguments.length-2;if(ge===1)Z.children=Y;else if(1<ge){for(var Te=Array(ge),Ze=0;Ze<ge;Ze++)Te[Ze]=arguments[Ze+2];Z.children=Te}if(v&&v.defaultProps)for(re in ge=v.defaultProps,ge)Z[re]===void 0&&(Z[re]=ge[re]);return{$$typeof:d,type:v,key:ie,ref:ke,props:Z,_owner:ne.current}}function kt(v,C){return{$$typeof:d,type:v.type,key:C,ref:v.ref,props:v.props,_owner:v._owner}}function nt(v){return typeof v=="object"&&v!==null&&v.$$typeof===d}function ze(v){var C={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(Y){return C[Y]})}var J=/\/+/g;function fe(v,C){return typeof v=="object"&&v!==null&&v.key!=null?ze(""+v.key):C.toString(36)}function ue(v,C,Y,re,Z){var ie=typeof v;(ie==="undefined"||ie==="boolean")&&(v=null);var ke=!1;if(v===null)ke=!0;else switch(ie){case"string":case"number":ke=!0;break;case"object":switch(v.$$typeof){case d:case s:ke=!0}}if(ke)return ke=v,Z=Z(ke),v=re===""?"."+fe(ke,0):re,te(Z)?(Y="",v!=null&&(Y=v.replace(J,"$&/")+"/"),ue(Z,C,Y,"",function(Ze){return Ze})):Z!=null&&(nt(Z)&&(Z=kt(Z,Y+(!Z.key||ke&&ke.key===Z.key?"":(""+Z.key).replace(J,"$&/")+"/")+v)),C.push(Z)),1;if(ke=0,re=re===""?".":re+":",te(v))for(var ge=0;ge<v.length;ge++){ie=v[ge];var Te=re+fe(ie,ge);ke+=ue(ie,C,Y,Te,Z)}else if(Te=A(v),typeof Te=="function")for(v=Te.call(v),ge=0;!(ie=v.next()).done;)ie=ie.value,Te=re+fe(ie,ge++),ke+=ue(ie,C,Y,Te,Z);else if(ie==="object")throw C=String(v),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.");return ke}function de(v,C,Y){if(v==null)return v;var re=[],Z=0;return ue(v,re,"","",function(ie){return C.call(Y,ie,Z++)}),re}function we(v){if(v._status===-1){var C=v._result;C=C(),C.then(function(Y){(v._status===0||v._status===-1)&&(v._status=1,v._result=Y)},function(Y){(v._status===0||v._status===-1)&&(v._status=2,v._result=Y)}),v._status===-1&&(v._status=0,v._result=C)}if(v._status===1)return v._result.default;throw v._result}var _e={current:null},O={transition:null},Q={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:O,ReactCurrentOwner:ne};function j(){throw Error("act(...) is not supported in production builds of React.")}return oe.Children={map:de,forEach:function(v,C,Y){de(v,function(){C.apply(this,arguments)},Y)},count:function(v){var C=0;return de(v,function(){C++}),C},toArray:function(v){return de(v,function(C){return C})||[]},only:function(v){if(!nt(v))throw Error("React.Children.only expected to receive a single React element child.");return v}},oe.Component=K,oe.Fragment=o,oe.Profiler=f,oe.PureComponent=ae,oe.StrictMode=a,oe.Suspense=T,oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,oe.act=j,oe.cloneElement=function(v,C,Y){if(v==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+v+".");var re=V({},v.props),Z=v.key,ie=v.ref,ke=v._owner;if(C!=null){if(C.ref!==void 0&&(ie=C.ref,ke=ne.current),C.key!==void 0&&(Z=""+C.key),v.type&&v.type.defaultProps)var ge=v.type.defaultProps;for(Te in C)me.call(C,Te)&&!Ne.hasOwnProperty(Te)&&(re[Te]=C[Te]===void 0&&ge!==void 0?ge[Te]:C[Te])}var Te=arguments.length-2;if(Te===1)re.children=Y;else if(1<Te){ge=Array(Te);for(var Ze=0;Ze<Te;Ze++)ge[Ze]=arguments[Ze+2];re.children=ge}return{$$typeof:d,type:v.type,key:Z,ref:ie,props:re,_owner:ke}},oe.createContext=function(v){return v={$$typeof:y,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},v.Provider={$$typeof:p,_context:v},v.Consumer=v},oe.createElement=ce,oe.createFactory=function(v){var C=ce.bind(null,v);return C.type=v,C},oe.createRef=function(){return{current:null}},oe.forwardRef=function(v){return{$$typeof:k,render:v}},oe.isValidElement=nt,oe.lazy=function(v){return{$$typeof:S,_payload:{_status:-1,_result:v},_init:we}},oe.memo=function(v,C){return{$$typeof:_,type:v,compare:C===void 0?null:C}},oe.startTransition=function(v){var C=O.transition;O.transition={};try{v()}finally{O.transition=C}},oe.unstable_act=j,oe.useCallback=function(v,C){return _e.current.useCallback(v,C)},oe.useContext=function(v){return _e.current.useContext(v)},oe.useDebugValue=function(){},oe.useDeferredValue=function(v){return _e.current.useDeferredValue(v)},oe.useEffect=function(v,C){return _e.current.useEffect(v,C)},oe.useId=function(){return _e.current.useId()},oe.useImperativeHandle=function(v,C,Y){return _e.current.useImperativeHandle(v,C,Y)},oe.useInsertionEffect=function(v,C){return _e.current.useInsertionEffect(v,C)},oe.useLayoutEffect=function(v,C){return _e.current.useLayoutEffect(v,C)},oe.useMemo=function(v,C){return _e.current.useMemo(v,C)},oe.useReducer=function(v,C,Y){return _e.current.useReducer(v,C,Y)},oe.useRef=function(v){return _e.current.useRef(v)},oe.useState=function(v){return _e.current.useState(v)},oe.useSyncExternalStore=function(v,C,Y){return _e.current.useSyncExternalStore(v,C,Y)},oe.useTransition=function(){return _e.current.useTransition()},oe.version="18.3.1",oe}var Uc;function ou(){return Uc||(Uc=1,Gs.exports=pp()),Gs.exports}/**
* @license React
* react-jsx-runtime.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 $c;function hp(){if($c)return Pl;$c=1;var d=ou(),s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,f=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function y(k,T,_){var S,I={},A=null,D=null;_!==void 0&&(A=""+_),T.key!==void 0&&(A=""+T.key),T.ref!==void 0&&(D=T.ref);for(S in T)a.call(T,S)&&!p.hasOwnProperty(S)&&(I[S]=T[S]);if(k&&k.defaultProps)for(S in T=k.defaultProps,T)I[S]===void 0&&(I[S]=T[S]);return{$$typeof:s,type:k,key:A,ref:D,props:I,_owner:f.current}}return Pl.Fragment=o,Pl.jsx=y,Pl.jsxs=y,Pl}var Bc;function mp(){return Bc||(Bc=1,Qs.exports=hp()),Qs.exports}var L=mp(),ve=ou();const ff=dp(ve);var eo={},Ys={exports:{}},ht={},Xs={exports:{}},Ks={};/**
* @license React
* scheduler.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 Hc;function gp(){return Hc||(Hc=1,function(d){function s(O,Q){var j=O.length;O.push(Q);e:for(;0<j;){var v=j-1>>>1,C=O[v];if(0<f(C,Q))O[v]=Q,O[j]=C,j=v;else break e}}function o(O){return O.length===0?null:O[0]}function a(O){if(O.length===0)return null;var Q=O[0],j=O.pop();if(j!==Q){O[0]=j;e:for(var v=0,C=O.length,Y=C>>>1;v<Y;){var re=2*(v+1)-1,Z=O[re],ie=re+1,ke=O[ie];if(0>f(Z,j))ie<C&&0>f(ke,Z)?(O[v]=ke,O[ie]=j,v=ie):(O[v]=Z,O[re]=j,v=re);else if(ie<C&&0>f(ke,j))O[v]=ke,O[ie]=j,v=ie;else break e}}return Q}function f(O,Q){var j=O.sortIndex-Q.sortIndex;return j!==0?j:O.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;d.unstable_now=function(){return p.now()}}else{var y=Date,k=y.now();d.unstable_now=function(){return y.now()-k}}var T=[],_=[],S=1,I=null,A=3,D=!1,V=!1,F=!1,K=typeof setTimeout=="function"?setTimeout:null,he=typeof clearTimeout=="function"?clearTimeout:null,ae=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ee(O){for(var Q=o(_);Q!==null;){if(Q.callback===null)a(_);else if(Q.startTime<=O)a(_),Q.sortIndex=Q.expirationTime,s(T,Q);else break;Q=o(_)}}function te(O){if(F=!1,Ee(O),!V)if(o(T)!==null)V=!0,we(me);else{var Q=o(_);Q!==null&&_e(te,Q.startTime-O)}}function me(O,Q){V=!1,F&&(F=!1,he(ce),ce=-1),D=!0;var j=A;try{for(Ee(Q),I=o(T);I!==null&&(!(I.expirationTime>Q)||O&&!ze());){var v=I.callback;if(typeof v=="function"){I.callback=null,A=I.priorityLevel;var C=v(I.expirationTime<=Q);Q=d.unstable_now(),typeof C=="function"?I.callback=C:I===o(T)&&a(T),Ee(Q)}else a(T);I=o(T)}if(I!==null)var Y=!0;else{var re=o(_);re!==null&&_e(te,re.startTime-Q),Y=!1}return Y}finally{I=null,A=j,D=!1}}var ne=!1,Ne=null,ce=-1,kt=5,nt=-1;function ze(){return!(d.unstable_now()-nt<kt)}function J(){if(Ne!==null){var O=d.unstable_now();nt=O;var Q=!0;try{Q=Ne(!0,O)}finally{Q?fe():(ne=!1,Ne=null)}}else ne=!1}var fe;if(typeof ae=="function")fe=function(){ae(J)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,de=ue.port2;ue.port1.onmessage=J,fe=function(){de.postMessage(null)}}else fe=function(){K(J,0)};function we(O){Ne=O,ne||(ne=!0,fe())}function _e(O,Q){ce=K(function(){O(d.unstable_now())},Q)}d.unstable_IdlePriority=5,d.unstable_ImmediatePriority=1,d.unstable_LowPriority=4,d.unstable_NormalPriority=3,d.unstable_Profiling=null,d.unstable_UserBlockingPriority=2,d.unstable_cancelCallback=function(O){O.callback=null},d.unstable_continueExecution=function(){V||D||(V=!0,we(me))},d.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):kt=0<O?Math.floor(1e3/O):5},d.unstable_getCurrentPriorityLevel=function(){return A},d.unstable_getFirstCallbackNode=function(){return o(T)},d.unstable_next=function(O){switch(A){case 1:case 2:case 3:var Q=3;break;default:Q=A}var j=A;A=Q;try{return O()}finally{A=j}},d.unstable_pauseExecution=function(){},d.unstable_requestPaint=function(){},d.unstable_runWithPriority=function(O,Q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var j=A;A=O;try{return Q()}finally{A=j}},d.unstable_scheduleCallback=function(O,Q,j){var v=d.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?v+j:v):j=v,O){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=j+C,O={id:S++,callback:Q,priorityLevel:O,startTime:j,expirationTime:C,sortIndex:-1},j>v?(O.sortIndex=j,s(_,O),o(T)===null&&O===o(_)&&(F?(he(ce),ce=-1):F=!0,_e(te,j-v))):(O.sortIndex=C,s(T,O),V||D||(V=!0,we(me))),O},d.unstable_shouldYield=ze,d.unstable_wrapCallback=function(O){var Q=A;return function(){var j=A;A=Q;try{return O.apply(this,arguments)}finally{A=j}}}}(Ks)),Ks}var Wc;function yp(){return Wc||(Wc=1,Xs.exports=gp()),Xs.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 Vc;function vp(){if(Vc)return ht;Vc=1;var d=ou(),s=yp();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,f={};function p(e,t){y(e,t),y(e+"Capture",t)}function y(e,t){for(f[e]=t,e=0;e<t.length;e++)a.add(t[e])}var k=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),T=Object.prototype.hasOwnProperty,_=/^[: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]*$/,S={},I={};function A(e){return T.call(I,e)?!0:T.call(S,e)?!1:_.test(e)?I[e]=!0:(S[e]=!0,!1)}function D(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function V(e,t,n,r){if(t===null||typeof t>"u"||D(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function F(e,t,n,r,l,i,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=u}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){K[e]=new F(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];K[t]=new F(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){K[e]=new F(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){K[e]=new F(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){K[e]=new F(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){K[e]=new F(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){K[e]=new F(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){K[e]=new F(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){K[e]=new F(e,5,!1,e.toLowerCase(),null,!1,!1)});var he=/[\-:]([a-z])/g;function ae(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(he,ae);K[t]=new F(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(he,ae);K[t]=new F(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(he,ae);K[t]=new F(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){K[e]=new F(e,1,!1,e.toLowerCase(),null,!1,!1)}),K.xlinkHref=new F("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){K[e]=new F(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ee(e,t,n,r){var l=K.hasOwnProperty(t)?K[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(V(t,n,l,r)&&(n=null),r||l===null?A(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var te=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,me=Symbol.for("react.element"),ne=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),ce=Symbol.for("react.strict_mode"),kt=Symbol.for("react.profiler"),nt=Symbol.for("react.provider"),ze=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),_e=Symbol.for("react.offscreen"),O=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=O&&e[O]||e["@@iterator"],typeof e=="function"?e:null)}var j=Object.assign,v;function C(e){if(v===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);v=t&&t[1]||""}return`
`+v+e}var Y=!1;function re(e,t){if(!e||Y)return"";Y=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(E){var r=E}Reflect.construct(e,[],t)}else{try{t.call()}catch(E){r=E}e.call(t.prototype)}else{try{throw Error()}catch(E){r=E}e()}}catch(E){if(E&&r&&typeof E.stack=="string"){for(var l=E.stack.split(`
`),i=r.stack.split(`
`),u=l.length-1,c=i.length-1;1<=u&&0<=c&&l[u]!==i[c];)c--;for(;1<=u&&0<=c;u--,c--)if(l[u]!==i[c]){if(u!==1||c!==1)do if(u--,c--,0>c||l[u]!==i[c]){var h=`
`+l[u].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=u&&0<=c);break}}}finally{Y=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?C(e):""}function Z(e){switch(e.tag){case 5:return C(e.type);case 16:return C("Lazy");case 13:return C("Suspense");case 19:return C("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function ie(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 Ne:return"Fragment";case ne:return"Portal";case kt:return"Profiler";case ce:return"StrictMode";case fe:return"Suspense";case ue:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ze:return(e.displayName||"Context")+".Consumer";case nt:return(e._context.displayName||"Context")+".Provider";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case de:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}function ke(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 ie(t);case 8:return t===ce?"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 ge(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=Te(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vn(e){e._valueTracker||(e._valueTracker=Ze(e))}function qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Te(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pn(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 zt(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mr(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ge(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gr(e,t){t=t.checked,t!=null&&Ee(e,"checked",t,!1)}function Wt(e,t){gr(e,t);var n=ge(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hn(e,t.type,n):t.hasOwnProperty("defaultValue")&&hn(e,t.type,ge(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qn(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function hn(e,t,n){(t!=="number"||pn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mn=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Qr(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yr(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(o(92));if(mn(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function gn(e,t){var n=ge(t.value),r=ge(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function en(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tn(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function vr(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tn(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gn,Gr=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Gn=Gn||document.createElement("div"),Gn.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yn={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},wr=["Webkit","ms","Moz","O"];Object.keys(yn).forEach(function(e){wr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yn[t]=yn[e]})});function Yn(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yn.hasOwnProperty(e)&&yn[e]?(""+t).trim():t+"px"}function xt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Yn(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var vn=j({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 Xn(e,t){if(t){if(vn[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Kn(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 Yr=null;function wn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kn=null,xn=null,St=null;function Vl(e){if(e=ml(e)){if(typeof kn!="function")throw Error(o(280));var t=e.stateNode;t&&(t=mi(t),kn(e.stateNode,e.type,t))}}function Ql(e){xn?St?St.push(e):St=[e]:xn=e}function Fe(){if(xn){var e=xn,t=St;if(St=xn=null,Vl(e),t)for(e=0;e<t.length;e++)Vl(t[e])}}function rn(e,t){return e(t)}function Gl(){}var kr=!1;function xr(e,t,n){if(kr)return e(t,n);kr=!0;try{return rn(e,t,n)}finally{kr=!1,(xn!==null||St!==null)&&(Gl(),Fe())}}function Sn(e,t){var n=e.stateNode;if(n===null)return null;var r=mi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Sr=!1;if(k)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Sr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{Sr=!1}function Et(e,t,n,r,l,i,u,c,h){var E=Array.prototype.slice.call(arguments,3);try{t.apply(n,E)}catch(N){this.onError(N)}}var Vt=!1,bn=null,qn=!1,Jn=null,Yl={onError:function(e){Vt=!0,bn=e}};function It(e,t,n,r,l,i,u,c,h){Vt=!1,bn=null,Et.apply(Yl,arguments)}function Xl(e,t,n,r,l,i,u,c,h){if(It.apply(this,arguments),Vt){if(Vt){var E=bn;Vt=!1,bn=null}else throw Error(o(198));qn||(qn=!0,Jn=E)}}function Qt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Xr(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Kr(e){if(Qt(e)!==e)throw Error(o(188))}function co(e){var t=e.alternate;if(!t){if(t=Qt(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Kr(l),e;if(i===r)return Kr(l),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=l,r=i;else{for(var u=!1,c=l.child;c;){if(c===n){u=!0,n=l,r=i;break}if(c===r){u=!0,r=l,n=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===n){u=!0,n=i,r=l;break}if(c===r){u=!0,r=i,n=l;break}c=c.sibling}if(!u)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function X(e){return e=co(e),e!==null?g(e):null}function g(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=g(e);if(t!==null)return t;e=e.sibling}return null}var M=s.unstable_scheduleCallback,H=s.unstable_cancelCallback,Le=s.unstable_shouldYield,Ve=s.unstable_requestPaint,le=s.unstable_now,be=s.unstable_getCurrentPriorityLevel,ut=s.unstable_ImmediatePriority,En=s.unstable_UserBlockingPriority,$e=s.unstable_NormalPriority,Kl=s.unstable_LowPriority,Zr=s.unstable_IdlePriority,Zl=null,Gt=null;function Cf(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Zl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ot=Math.clz32?Math.clz32:Lf,Rf=Math.log,Nf=Math.LN2;function Lf(e){return e>>>=0,e===0?32:31-(Rf(e)/Nf|0)|0}var bl=64,ql=4194304;function br(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 Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=n&268435455;if(u!==0){var c=u&~l;c!==0?r=br(c):(i&=u,i!==0&&(r=br(i)))}else u=n&~l,u!==0?r=br(u):i!==0&&(r=br(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ot(t),l=1<<n,r|=e[n],t&=~l;return r}function Pf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var u=31-Ot(i),c=1<<u,h=l[u];h===-1?(!(c&n)||c&r)&&(l[u]=Pf(c,t)):h<=t&&(e.expiredLanes|=c),i&=~c}}function fo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function mu(){var e=bl;return bl<<=1,!(bl&4194240)&&(bl=64),e}function po(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function Mf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ot(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function ho(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ot(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var xe=0;function gu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var yu,mo,vu,wu,ku,go=!1,ei=[],_n=null,Tn=null,Cn=null,Jr=new Map,el=new Map,Rn=[],zf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function xu(e,t){switch(e){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":Tn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":Jr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":el.delete(t.pointerId)}}function tl(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=ml(t),t!==null&&mo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function If(e,t,n,r,l){switch(t){case"focusin":return _n=tl(_n,e,t,n,r,l),!0;case"dragenter":return Tn=tl(Tn,e,t,n,r,l),!0;case"mouseover":return Cn=tl(Cn,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Jr.set(i,tl(Jr.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,el.set(i,tl(el.get(i)||null,e,t,n,r,l)),!0}return!1}function Su(e){var t=er(e.target);if(t!==null){var n=Qt(t);if(n!==null){if(t=n.tag,t===13){if(t=Xr(n),t!==null){e.blockedOn=t,ku(e.priority,function(){vu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ti(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Yr=r,n.target.dispatchEvent(r),Yr=null}else return t=ml(n),t!==null&&mo(t),e.blockedOn=n,!1;t.shift()}return!0}function Eu(e,t,n){ti(e)&&n.delete(t)}function Of(){go=!1,_n!==null&&ti(_n)&&(_n=null),Tn!==null&&ti(Tn)&&(Tn=null),Cn!==null&&ti(Cn)&&(Cn=null),Jr.forEach(Eu),el.forEach(Eu)}function nl(e,t){e.blockedOn===t&&(e.blockedOn=null,go||(go=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Of)))}function rl(e){function t(l){return nl(l,e)}if(0<ei.length){nl(ei[0],e);for(var n=1;n<ei.length;n++){var r=ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_n!==null&&nl(_n,e),Tn!==null&&nl(Tn,e),Cn!==null&&nl(Cn,e),Jr.forEach(t),el.forEach(t),n=0;n<Rn.length;n++)r=Rn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rn.length&&(n=Rn[0],n.blockedOn===null);)Su(n),n.blockedOn===null&&Rn.shift()}var Er=te.ReactCurrentBatchConfig,ni=!0;function Df(e,t,n,r){var l=xe,i=Er.transition;Er.transition=null;try{xe=1,yo(e,t,n,r)}finally{xe=l,Er.transition=i}}function jf(e,t,n,r){var l=xe,i=Er.transition;Er.transition=null;try{xe=4,yo(e,t,n,r)}finally{xe=l,Er.transition=i}}function yo(e,t,n,r){if(ni){var l=vo(e,t,n,r);if(l===null)Oo(e,t,r,ri,n),xu(e,r);else if(If(l,e,t,n,r))r.stopPropagation();else if(xu(e,r),t&4&&-1<zf.indexOf(e)){for(;l!==null;){var i=ml(l);if(i!==null&&yu(i),i=vo(e,t,n,r),i===null&&Oo(e,t,r,ri,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else Oo(e,t,r,null,n)}}var ri=null;function vo(e,t,n,r){if(ri=null,e=wn(r),e=er(e),e!==null)if(t=Qt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Xr(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ri=e,null}function _u(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(be()){case ut:return 1;case En:return 4;case $e:case Kl:return 16;case Zr:return 536870912;default:return 16}default:return 16}}var Nn=null,wo=null,li=null;function Tu(){if(li)return li;var e,t=wo,n=t.length,r,l="value"in Nn?Nn.value:Nn.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===l[i-r];r++);return li=l.slice(e,1<r?1-r:void 0)}function ii(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function oi(){return!0}function Cu(){return!1}function mt(e){function t(n,r,l,i,u){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(i):i[c]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?oi:Cu,this.isPropagationStopped=Cu,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=oi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var _r={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ko=mt(_r),ll=j({},_r,{view:0,detail:0}),Ff=mt(ll),xo,So,il,si=j({},ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_o,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==il&&(il&&e.type==="mousemove"?(xo=e.screenX-il.screenX,So=e.screenY-il.screenY):So=xo=0,il=e),xo)},movementY:function(e){return"movementY"in e?e.movementY:So}}),Ru=mt(si),Uf=j({},si,{dataTransfer:0}),$f=mt(Uf),Bf=j({},ll,{relatedTarget:0}),Eo=mt(Bf),Hf=j({},_r,{animationName:0,elapsedTime:0,pseudoElement:0}),Wf=mt(Hf),Vf=j({},_r,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qf=mt(Vf),Gf=j({},_r,{data:0}),Nu=mt(Gf),Yf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xf={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kf[e])?!!t[e]:!1}function _o(){return Zf}var bf=j({},ll,{key:function(e){if(e.key){var t=Yf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ii(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_o,charCode:function(e){return e.type==="keypress"?ii(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ii(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qf=mt(bf),Jf=j({},si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lu=mt(Jf),ed=j({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_o}),td=mt(ed),nd=j({},_r,{propertyName:0,elapsedTime:0,pseudoElement:0}),rd=mt(nd),ld=j({},si,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),id=mt(ld),od=[9,13,27,32],To=k&&"CompositionEvent"in window,ol=null;k&&"documentMode"in document&&(ol=document.documentMode);var sd=k&&"TextEvent"in window&&!ol,Pu=k&&(!To||ol&&8<ol&&11>=ol),Au=" ",Mu=!1;function zu(e,t){switch(e){case"keyup":return od.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Iu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function ud(e,t){switch(e){case"compositionend":return Iu(t);case"keypress":return t.which!==32?null:(Mu=!0,Au);case"textInput":return e=t.data,e===Au&&Mu?null:e;default:return null}}function ad(e,t){if(Tr)return e==="compositionend"||!To&&zu(e,t)?(e=Tu(),li=wo=Nn=null,Tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pu&&t.locale!=="ko"?null:t.data;default:return null}}var cd={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ou(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cd[e.type]:t==="textarea"}function Du(e,t,n,r){Ql(r),t=di(t,"onChange"),0<t.length&&(n=new ko("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sl=null,ul=null;function fd(e){ea(e,0)}function ui(e){var t=Pr(e);if(qt(t))return e}function dd(e,t){if(e==="change")return t}var ju=!1;if(k){var Co;if(k){var Ro="oninput"in document;if(!Ro){var Fu=document.createElement("div");Fu.setAttribute("oninput","return;"),Ro=typeof Fu.oninput=="function"}Co=Ro}else Co=!1;ju=Co&&(!document.documentMode||9<document.documentMode)}function Uu(){sl&&(sl.detachEvent("onpropertychange",$u),ul=sl=null)}function $u(e){if(e.propertyName==="value"&&ui(ul)){var t=[];Du(t,ul,e,wn(e)),xr(fd,t)}}function pd(e,t,n){e==="focusin"?(Uu(),sl=t,ul=n,sl.attachEvent("onpropertychange",$u)):e==="focusout"&&Uu()}function hd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ui(ul)}function md(e,t){if(e==="click")return ui(t)}function gd(e,t){if(e==="input"||e==="change")return ui(t)}function yd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:yd;function al(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!T.call(t,l)||!Dt(e[l],t[l]))return!1}return!0}function Bu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hu(e,t){var n=Bu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bu(n)}}function Wu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vu(){for(var e=window,t=pn();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pn(e.document)}return t}function No(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 vd(e){var t=Vu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wu(n.ownerDocument.documentElement,n)){if(r!==null&&No(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Hu(n,i);var u=Hu(n,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var wd=k&&"documentMode"in document&&11>=document.documentMode,Cr=null,Lo=null,cl=null,Po=!1;function Qu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Po||Cr==null||Cr!==pn(r)||(r=Cr,"selectionStart"in r&&No(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cl&&al(cl,r)||(cl=r,r=di(Lo,"onSelect"),0<r.length&&(t=new ko("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cr)))}function ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rr={animationend:ai("Animation","AnimationEnd"),animationiteration:ai("Animation","AnimationIteration"),animationstart:ai("Animation","AnimationStart"),transitionend:ai("Transition","TransitionEnd")},Ao={},Gu={};k&&(Gu=document.createElement("div").style,"AnimationEvent"in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),"TransitionEvent"in window||delete Rr.transitionend.transition);function ci(e){if(Ao[e])return Ao[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gu)return Ao[e]=t[n];return e}var Yu=ci("animationend"),Xu=ci("animationiteration"),Ku=ci("animationstart"),Zu=ci("transitionend"),bu=new Map,qu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ln(e,t){bu.set(e,t),p(t,[e])}for(var Mo=0;Mo<qu.length;Mo++){var zo=qu[Mo],kd=zo.toLowerCase(),xd=zo[0].toUpperCase()+zo.slice(1);Ln(kd,"on"+xd)}Ln(Yu,"onAnimationEnd"),Ln(Xu,"onAnimationIteration"),Ln(Ku,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(Zu,"onTransitionEnd"),y("onMouseEnter",["mouseout","mouseover"]),y("onMouseLeave",["mouseout","mouseover"]),y("onPointerEnter",["pointerout","pointerover"]),y("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sd=new Set("cancel close invalid load scroll toggle".split(" ").concat(fl));function Ju(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Xl(r,t,void 0,e),e.currentTarget=null}function ea(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var u=r.length-1;0<=u;u--){var c=r[u],h=c.instance,E=c.currentTarget;if(c=c.listener,h!==i&&l.isPropagationStopped())break e;Ju(l,c,E),i=h}else for(u=0;u<r.length;u++){if(c=r[u],h=c.instance,E=c.currentTarget,c=c.listener,h!==i&&l.isPropagationStopped())break e;Ju(l,c,E),i=h}}}if(qn)throw e=Jn,qn=!1,Jn=null,e}function Ae(e,t){var n=t[Bo];n===void 0&&(n=t[Bo]=new Set);var r=e+"__bubble";n.has(r)||(ta(t,e,2,!1),n.add(r))}function Io(e,t,n){var r=0;t&&(r|=4),ta(n,e,r,t)}var fi="_reactListening"+Math.random().toString(36).slice(2);function dl(e){if(!e[fi]){e[fi]=!0,a.forEach(function(n){n!=="selectionchange"&&(Sd.has(n)||Io(n,!1,e),Io(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fi]||(t[fi]=!0,Io("selectionchange",!1,t))}}function ta(e,t,n,r){switch(_u(t)){case 1:var l=Df;break;case 4:l=jf;break;default:l=yo}n=l.bind(null,t,n,e),l=void 0,!Sr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Oo(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var c=r.stateNode.containerInfo;if(c===l||c.nodeType===8&&c.parentNode===l)break;if(u===4)for(u=r.return;u!==null;){var h=u.tag;if((h===3||h===4)&&(h=u.stateNode.containerInfo,h===l||h.nodeType===8&&h.parentNode===l))return;u=u.return}for(;c!==null;){if(u=er(c),u===null)return;if(h=u.tag,h===5||h===6){r=i=u;continue e}c=c.parentNode}}r=r.return}xr(function(){var E=i,N=wn(n),P=[];e:{var R=bu.get(e);if(R!==void 0){var U=ko,B=e;switch(e){case"keypress":if(ii(n)===0)break e;case"keydown":case"keyup":U=qf;break;case"focusin":B="focus",U=Eo;break;case"focusout":B="blur",U=Eo;break;case"beforeblur":case"afterblur":U=Eo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Ru;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=$f;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=td;break;case Yu:case Xu:case Ku:U=Wf;break;case Zu:U=rd;break;case"scroll":U=Ff;break;case"wheel":U=id;break;case"copy":case"cut":case"paste":U=Qf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Lu}var W=(t&4)!==0,Ue=!W&&e==="scroll",w=W?R!==null?R+"Capture":null:R;W=[];for(var m=E,x;m!==null;){x=m;var z=x.stateNode;if(x.tag===5&&z!==null&&(x=z,w!==null&&(z=Sn(m,w),z!=null&&W.push(pl(m,z,x)))),Ue)break;m=m.return}0<W.length&&(R=new U(R,B,null,n,N),P.push({event:R,listeners:W}))}}if(!(t&7)){e:{if(R=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",R&&n!==Yr&&(B=n.relatedTarget||n.fromElement)&&(er(B)||B[ln]))break e;if((U||R)&&(R=N.window===N?N:(R=N.ownerDocument)?R.defaultView||R.parentWindow:window,U?(B=n.relatedTarget||n.toElement,U=E,B=B?er(B):null,B!==null&&(Ue=Qt(B),B!==Ue||B.tag!==5&&B.tag!==6)&&(B=null)):(U=null,B=E),U!==B)){if(W=Ru,z="onMouseLeave",w="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(W=Lu,z="onPointerLeave",w="onPointerEnter",m="pointer"),Ue=U==null?R:Pr(U),x=B==null?R:Pr(B),R=new W(z,m+"leave",U,n,N),R.target=Ue,R.relatedTarget=x,z=null,er(N)===E&&(W=new W(w,m+"enter",B,n,N),W.target=x,W.relatedTarget=Ue,z=W),Ue=z,U&&B)t:{for(W=U,w=B,m=0,x=W;x;x=Nr(x))m++;for(x=0,z=w;z;z=Nr(z))x++;for(;0<m-x;)W=Nr(W),m--;for(;0<x-m;)w=Nr(w),x--;for(;m--;){if(W===w||w!==null&&W===w.alternate)break t;W=Nr(W),w=Nr(w)}W=null}else W=null;U!==null&&na(P,R,U,W,!1),B!==null&&Ue!==null&&na(P,Ue,B,W,!0)}}e:{if(R=E?Pr(E):window,U=R.nodeName&&R.nodeName.toLowerCase(),U==="select"||U==="input"&&R.type==="file")var G=dd;else if(Ou(R))if(ju)G=gd;else{G=hd;var b=pd}else(U=R.nodeName)&&U.toLowerCase()==="input"&&(R.type==="checkbox"||R.type==="radio")&&(G=md);if(G&&(G=G(e,E))){Du(P,G,n,N);break e}b&&b(e,R,E),e==="focusout"&&(b=R._wrapperState)&&b.controlled&&R.type==="number"&&hn(R,"number",R.value)}switch(b=E?Pr(E):window,e){case"focusin":(Ou(b)||b.contentEditable==="true")&&(Cr=b,Lo=E,cl=null);break;case"focusout":cl=Lo=Cr=null;break;case"mousedown":Po=!0;break;case"contextmenu":case"mouseup":case"dragend":Po=!1,Qu(P,n,N);break;case"selectionchange":if(wd)break;case"keydown":case"keyup":Qu(P,n,N)}var q;if(To)e:{switch(e){case"compositionstart":var ee="onCompositionStart";break e;case"compositionend":ee="onCompositionEnd";break e;case"compositionupdate":ee="onCompositionUpdate";break e}ee=void 0}else Tr?zu(e,n)&&(ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ee="onCompositionStart");ee&&(Pu&&n.locale!=="ko"&&(Tr||ee!=="onCompositionStart"?ee==="onCompositionEnd"&&Tr&&(q=Tu()):(Nn=N,wo="value"in Nn?Nn.value:Nn.textContent,Tr=!0)),b=di(E,ee),0<b.length&&(ee=new Nu(ee,e,null,n,N),P.push({event:ee,listeners:b}),q?ee.data=q:(q=Iu(n),q!==null&&(ee.data=q)))),(q=sd?ud(e,n):ad(e,n))&&(E=di(E,"onBeforeInput"),0<E.length&&(N=new Nu("onBeforeInput","beforeinput",null,n,N),P.push({event:N,listeners:E}),N.data=q))}ea(P,t)})}function pl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function di(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Sn(e,n),i!=null&&r.unshift(pl(e,i,l)),i=Sn(e,t),i!=null&&r.push(pl(e,i,l))),e=e.return}return r}function Nr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function na(e,t,n,r,l){for(var i=t._reactName,u=[];n!==null&&n!==r;){var c=n,h=c.alternate,E=c.stateNode;if(h!==null&&h===r)break;c.tag===5&&E!==null&&(c=E,l?(h=Sn(n,i),h!=null&&u.unshift(pl(n,h,c))):l||(h=Sn(n,i),h!=null&&u.push(pl(n,h,c)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var Ed=/\r\n?/g,_d=/\u0000|\uFFFD/g;function ra(e){return(typeof e=="string"?e:""+e).replace(Ed,`
`).replace(_d,"")}function pi(e,t,n){if(t=ra(t),ra(e)!==t&&n)throw Error(o(425))}function hi(){}var Do=null,jo=null;function Fo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Uo=typeof setTimeout=="function"?setTimeout:void 0,Td=typeof clearTimeout=="function"?clearTimeout:void 0,la=typeof Promise=="function"?Promise:void 0,Cd=typeof queueMicrotask=="function"?queueMicrotask:typeof la<"u"?function(e){return la.resolve(null).then(e).catch(Rd)}:Uo;function Rd(e){setTimeout(function(){throw e})}function $o(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),rl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);rl(t)}function Pn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ia(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Lr=Math.random().toString(36).slice(2),Yt="__reactFiber$"+Lr,hl="__reactProps$"+Lr,ln="__reactContainer$"+Lr,Bo="__reactEvents$"+Lr,Nd="__reactListeners$"+Lr,Ld="__reactHandles$"+Lr;function er(e){var t=e[Yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ln]||n[Yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ia(e);e!==null;){if(n=e[Yt])return n;e=ia(e)}return t}e=n,n=e.parentNode}return null}function ml(e){return e=e[Yt]||e[ln],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function mi(e){return e[hl]||null}var Ho=[],Ar=-1;function An(e){return{current:e}}function Me(e){0>Ar||(e.current=Ho[Ar],Ho[Ar]=null,Ar--)}function Pe(e,t){Ar++,Ho[Ar]=e.current,e.current=t}var Mn={},qe=An(Mn),at=An(!1),tr=Mn;function Mr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ct(e){return e=e.childContextTypes,e!=null}function gi(){Me(at),Me(qe)}function oa(e,t,n){if(qe.current!==Mn)throw Error(o(168));Pe(qe,t),Pe(at,n)}function sa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(o(108,ke(e)||"Unknown",l));return j({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,tr=qe.current,Pe(qe,e),Pe(at,at.current),!0}function ua(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=sa(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,Me(at),Me(qe),Pe(qe,e)):Me(at),Pe(at,n)}var on=null,vi=!1,Wo=!1;function aa(e){on===null?on=[e]:on.push(e)}function Pd(e){vi=!0,aa(e)}function zn(){if(!Wo&&on!==null){Wo=!0;var e=0,t=xe;try{var n=on;for(xe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}on=null,vi=!1}catch(l){throw on!==null&&(on=on.slice(e+1)),M(ut,zn),l}finally{xe=t,Wo=!1}}return null}var zr=[],Ir=0,wi=null,ki=0,_t=[],Tt=0,nr=null,sn=1,un="";function rr(e,t){zr[Ir++]=ki,zr[Ir++]=wi,wi=e,ki=t}function ca(e,t,n){_t[Tt++]=sn,_t[Tt++]=un,_t[Tt++]=nr,nr=e;var r=sn;e=un;var l=32-Ot(r)-1;r&=~(1<<l),n+=1;var i=32-Ot(t)+l;if(30<i){var u=l-l%5;i=(r&(1<<u)-1).toString(32),r>>=u,l-=u,sn=1<<32-Ot(t)+l|n<<l|r,un=i+e}else sn=1<<i|n<<l|r,un=e}function Vo(e){e.return!==null&&(rr(e,1),ca(e,1,0))}function Qo(e){for(;e===wi;)wi=zr[--Ir],zr[Ir]=null,ki=zr[--Ir],zr[Ir]=null;for(;e===nr;)nr=_t[--Tt],_t[Tt]=null,un=_t[--Tt],_t[Tt]=null,sn=_t[--Tt],_t[Tt]=null}var gt=null,yt=null,Ie=!1,jt=null;function fa(e,t){var n=Lt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function da(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,gt=e,yt=Pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,gt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=nr!==null?{id:sn,overflow:un}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Lt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,gt=e,yt=null,!0):!1;default:return!1}}function Go(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yo(e){if(Ie){var t=yt;if(t){var n=t;if(!da(e,t)){if(Go(e))throw Error(o(418));t=Pn(n.nextSibling);var r=gt;t&&da(e,t)?fa(r,n):(e.flags=e.flags&-4097|2,Ie=!1,gt=e)}}else{if(Go(e))throw Error(o(418));e.flags=e.flags&-4097|2,Ie=!1,gt=e}}}function pa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;gt=e}function xi(e){if(e!==gt)return!1;if(!Ie)return pa(e),Ie=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Fo(e.type,e.memoizedProps)),t&&(t=yt)){if(Go(e))throw ha(),Error(o(418));for(;t;)fa(e,t),t=Pn(t.nextSibling)}if(pa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yt=Pn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yt=null}}else yt=gt?Pn(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=yt;e;)e=Pn(e.nextSibling)}function Or(){yt=gt=null,Ie=!1}function Xo(e){jt===null?jt=[e]:jt.push(e)}var Ad=te.ReactCurrentBatchConfig;function gl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(u){var c=l.refs;u===null?delete c[i]:c[i]=u},t._stringRef=i,t)}if(typeof e!="string")throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Si(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ma(e){var t=e._init;return t(e._payload)}function ga(e){function t(w,m){if(e){var x=w.deletions;x===null?(w.deletions=[m],w.flags|=16):x.push(m)}}function n(w,m){if(!e)return null;for(;m!==null;)t(w,m),m=m.sibling;return null}function r(w,m){for(w=new Map;m!==null;)m.key!==null?w.set(m.key,m):w.set(m.index,m),m=m.sibling;return w}function l(w,m){return w=Bn(w,m),w.index=0,w.sibling=null,w}function i(w,m,x){return w.index=x,e?(x=w.alternate,x!==null?(x=x.index,x<m?(w.flags|=2,m):x):(w.flags|=2,m)):(w.flags|=1048576,m)}function u(w){return e&&w.alternate===null&&(w.flags|=2),w}function c(w,m,x,z){return m===null||m.tag!==6?(m=Us(x,w.mode,z),m.return=w,m):(m=l(m,x),m.return=w,m)}function h(w,m,x,z){var G=x.type;return G===Ne?N(w,m,x.props.children,z,x.key):m!==null&&(m.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===we&&ma(G)===m.type)?(z=l(m,x.props),z.ref=gl(w,m,x),z.return=w,z):(z=Gi(x.type,x.key,x.props,null,w.mode,z),z.ref=gl(w,m,x),z.return=w,z)}function E(w,m,x,z){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=$s(x,w.mode,z),m.return=w,m):(m=l(m,x.children||[]),m.return=w,m)}function N(w,m,x,z,G){return m===null||m.tag!==7?(m=fr(x,w.mode,z,G),m.return=w,m):(m=l(m,x),m.return=w,m)}function P(w,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Us(""+m,w.mode,x),m.return=w,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case me:return x=Gi(m.type,m.key,m.props,null,w.mode,x),x.ref=gl(w,null,m),x.return=w,x;case ne:return m=$s(m,w.mode,x),m.return=w,m;case we:var z=m._init;return P(w,z(m._payload),x)}if(mn(m)||Q(m))return m=fr(m,w.mode,x,null),m.return=w,m;Si(w,m)}return null}function R(w,m,x,z){var G=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return G!==null?null:c(w,m,""+x,z);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case me:return x.key===G?h(w,m,x,z):null;case ne:return x.key===G?E(w,m,x,z):null;case we:return G=x._init,R(w,m,G(x._payload),z)}if(mn(x)||Q(x))return G!==null?null:N(w,m,x,z,null);Si(w,x)}return null}function U(w,m,x,z,G){if(typeof z=="string"&&z!==""||typeof z=="number")return w=w.get(x)||null,c(m,w,""+z,G);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case me:return w=w.get(z.key===null?x:z.key)||null,h(m,w,z,G);case ne:return w=w.get(z.key===null?x:z.key)||null,E(m,w,z,G);case we:var b=z._init;return U(w,m,x,b(z._payload),G)}if(mn(z)||Q(z))return w=w.get(x)||null,N(m,w,z,G,null);Si(m,z)}return null}function B(w,m,x,z){for(var G=null,b=null,q=m,ee=m=0,Ye=null;q!==null&&ee<x.length;ee++){q.index>ee?(Ye=q,q=null):Ye=q.sibling;var ye=R(w,q,x[ee],z);if(ye===null){q===null&&(q=Ye);break}e&&q&&ye.alternate===null&&t(w,q),m=i(ye,m,ee),b===null?G=ye:b.sibling=ye,b=ye,q=Ye}if(ee===x.length)return n(w,q),Ie&&rr(w,ee),G;if(q===null){for(;ee<x.length;ee++)q=P(w,x[ee],z),q!==null&&(m=i(q,m,ee),b===null?G=q:b.sibling=q,b=q);return Ie&&rr(w,ee),G}for(q=r(w,q);ee<x.length;ee++)Ye=U(q,w,ee,x[ee],z),Ye!==null&&(e&&Ye.alternate!==null&&q.delete(Ye.key===null?ee:Ye.key),m=i(Ye,m,ee),b===null?G=Ye:b.sibling=Ye,b=Ye);return e&&q.forEach(function(Hn){return t(w,Hn)}),Ie&&rr(w,ee),G}function W(w,m,x,z){var G=Q(x);if(typeof G!="function")throw Error(o(150));if(x=G.call(x),x==null)throw Error(o(151));for(var b=G=null,q=m,ee=m=0,Ye=null,ye=x.next();q!==null&&!ye.done;ee++,ye=x.next()){q.index>ee?(Ye=q,q=null):Ye=q.sibling;var Hn=R(w,q,ye.value,z);if(Hn===null){q===null&&(q=Ye);break}e&&q&&Hn.alternate===null&&t(w,q),m=i(Hn,m,ee),b===null?G=Hn:b.sibling=Hn,b=Hn,q=Ye}if(ye.done)return n(w,q),Ie&&rr(w,ee),G;if(q===null){for(;!ye.done;ee++,ye=x.next())ye=P(w,ye.value,z),ye!==null&&(m=i(ye,m,ee),b===null?G=ye:b.sibling=ye,b=ye);return Ie&&rr(w,ee),G}for(q=r(w,q);!ye.done;ee++,ye=x.next())ye=U(q,w,ee,ye.value,z),ye!==null&&(e&&ye.alternate!==null&&q.delete(ye.key===null?ee:ye.key),m=i(ye,m,ee),b===null?G=ye:b.sibling=ye,b=ye);return e&&q.forEach(function(ap){return t(w,ap)}),Ie&&rr(w,ee),G}function Ue(w,m,x,z){if(typeof x=="object"&&x!==null&&x.type===Ne&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case me:e:{for(var G=x.key,b=m;b!==null;){if(b.key===G){if(G=x.type,G===Ne){if(b.tag===7){n(w,b.sibling),m=l(b,x.props.children),m.return=w,w=m;break e}}else if(b.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===we&&ma(G)===b.type){n(w,b.sibling),m=l(b,x.props),m.ref=gl(w,b,x),m.return=w,w=m;break e}n(w,b);break}else t(w,b);b=b.sibling}x.type===Ne?(m=fr(x.props.children,w.mode,z,x.key),m.return=w,w=m):(z=Gi(x.type,x.key,x.props,null,w.mode,z),z.ref=gl(w,m,x),z.return=w,w=z)}return u(w);case ne:e:{for(b=x.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(w,m.sibling),m=l(m,x.children||[]),m.return=w,w=m;break e}else{n(w,m);break}else t(w,m);m=m.sibling}m=$s(x,w.mode,z),m.return=w,w=m}return u(w);case we:return b=x._init,Ue(w,m,b(x._payload),z)}if(mn(x))return B(w,m,x,z);if(Q(x))return W(w,m,x,z);Si(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(w,m.sibling),m=l(m,x),m.return=w,w=m):(n(w,m),m=Us(x,w.mode,z),m.return=w,w=m),u(w)):n(w,m)}return Ue}var Dr=ga(!0),ya=ga(!1),Ei=An(null),_i=null,jr=null,Ko=null;function Zo(){Ko=jr=_i=null}function bo(e){var t=Ei.current;Me(Ei),e._currentValue=t}function qo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fr(e,t){_i=e,Ko=jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ft=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Ko!==e)if(e={context:e,memoizedValue:t,next:null},jr===null){if(_i===null)throw Error(o(308));jr=e,_i.dependencies={lanes:0,firstContext:e}}else jr=jr.next=e;return t}var lr=null;function Jo(e){lr===null?lr=[e]:lr.push(e)}function va(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Jo(t)):(n.next=l.next,l.next=n),t.interleaved=n,an(e,r)}function an(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 In=!1;function es(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wa(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 cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function On(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,an(e,n)}return l=r.interleaved,l===null?(t.next=t,Jo(r)):(t.next=l.next,l.next=t),r.interleaved=t,an(e,n)}function Ti(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ho(e,n)}}function ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ci(e,t,n,r){var l=e.updateQueue;In=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var h=c,E=h.next;h.next=null,u===null?i=E:u.next=E,u=h;var N=e.alternate;N!==null&&(N=N.updateQueue,c=N.lastBaseUpdate,c!==u&&(c===null?N.firstBaseUpdate=E:c.next=E,N.lastBaseUpdate=h))}if(i!==null){var P=l.baseState;u=0,N=E=h=null,c=i;do{var R=c.lane,U=c.eventTime;if((r&R)===R){N!==null&&(N=N.next={eventTime:U,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var B=e,W=c;switch(R=t,U=n,W.tag){case 1:if(B=W.payload,typeof B=="function"){P=B.call(U,P,R);break e}P=B;break e;case 3:B.flags=B.flags&-65537|128;case 0:if(B=W.payload,R=typeof B=="function"?B.call(U,P,R):B,R==null)break e;P=j({},P,R);break e;case 2:In=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,R=l.effects,R===null?l.effects=[c]:R.push(c))}else U={eventTime:U,lane:R,tag:c.tag,payload:c.payload,callback:c.callback,next:null},N===null?(E=N=U,h=P):N=N.next=U,u|=R;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;R=c,c=R.next,R.next=null,l.lastBaseUpdate=R,l.shared.pending=null}}while(!0);if(N===null&&(h=P),l.baseState=h,l.firstBaseUpdate=E,l.lastBaseUpdate=N,t=l.shared.interleaved,t!==null){l=t;do u|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);sr|=u,e.lanes=u,e.memoizedState=P}}function xa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(o(191,l));l.call(r)}}}var yl={},Xt=An(yl),vl=An(yl),wl=An(yl);function ir(e){if(e===yl)throw Error(o(174));return e}function ts(e,t){switch(Pe(wl,t),Pe(vl,e),Pe(Xt,yl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vr(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vr(t,e)}Me(Xt),Pe(Xt,t)}function Ur(){Me(Xt),Me(vl),Me(wl)}function Sa(e){ir(wl.current);var t=ir(Xt.current),n=vr(t,e.type);t!==n&&(Pe(vl,e),Pe(Xt,n))}function ns(e){vl.current===e&&(Me(Xt),Me(vl))}var Oe=An(0);function Ri(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=[];function ls(){for(var e=0;e<rs.length;e++)rs[e]._workInProgressVersionPrimary=null;rs.length=0}var Ni=te.ReactCurrentDispatcher,is=te.ReactCurrentBatchConfig,or=0,De=null,He=null,Qe=null,Li=!1,kl=!1,xl=0,Md=0;function Je(){throw Error(o(321))}function os(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dt(e[n],t[n]))return!1;return!0}function ss(e,t,n,r,l,i){if(or=i,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ni.current=e===null||e.memoizedState===null?Dd:jd,e=n(r,l),kl){i=0;do{if(kl=!1,xl=0,25<=i)throw Error(o(301));i+=1,Qe=He=null,t.updateQueue=null,Ni.current=Fd,e=n(r,l)}while(kl)}if(Ni.current=Mi,t=He!==null&&He.next!==null,or=0,Qe=He=De=null,Li=!1,t)throw Error(o(300));return e}function us(){var e=xl!==0;return xl=0,e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?De.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Rt(){if(He===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=Qe===null?De.memoizedState:Qe.next;if(t!==null)Qe=t,He=e;else{if(e===null)throw Error(o(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Qe===null?De.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Sl(e,t){return typeof t=="function"?t(e):t}function as(e){var t=Rt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=He,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var u=l.next;l.next=i.next,i.next=u}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var c=u=null,h=null,E=i;do{var N=E.lane;if((or&N)===N)h!==null&&(h=h.next={lane:0,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),r=E.hasEagerState?E.eagerState:e(r,E.action);else{var P={lane:N,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};h===null?(c=h=P,u=r):h=h.next=P,De.lanes|=N,sr|=N}E=E.next}while(E!==null&&E!==i);h===null?u=r:h.next=c,Dt(r,t.memoizedState)||(ft=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=h,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,De.lanes|=i,sr|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function cs(e){var t=Rt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var u=l=l.next;do i=e(i,u.action),u=u.next;while(u!==l);Dt(i,t.memoizedState)||(ft=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ea(){}function _a(e,t){var n=De,r=Rt(),l=t(),i=!Dt(r.memoizedState,l);if(i&&(r.memoizedState=l,ft=!0),r=r.queue,fs(Ra.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Qe!==null&&Qe.memoizedState.tag&1){if(n.flags|=2048,El(9,Ca.bind(null,n,r,l,t),void 0,null),Ge===null)throw Error(o(349));or&30||Ta(n,t,l)}return l}function Ta(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ca(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&La(e)}function Ra(e,t,n){return n(function(){Na(t)&&La(e)})}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function La(e){var t=an(e,1);t!==null&&Bt(t,e,1,-1)}function Pa(e){var t=Kt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:e},t.queue=e,e=e.dispatch=Od.bind(null,De,e),[t.memoizedState,e]}function El(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Aa(){return Rt().memoizedState}function Pi(e,t,n,r){var l=Kt();De.flags|=e,l.memoizedState=El(1|t,n,void 0,r===void 0?null:r)}function Ai(e,t,n,r){var l=Rt();r=r===void 0?null:r;var i=void 0;if(He!==null){var u=He.memoizedState;if(i=u.destroy,r!==null&&os(r,u.deps)){l.memoizedState=El(t,n,i,r);return}}De.flags|=e,l.memoizedState=El(1|t,n,i,r)}function Ma(e,t){return Pi(8390656,8,e,t)}function fs(e,t){return Ai(2048,8,e,t)}function za(e,t){return Ai(4,2,e,t)}function Ia(e,t){return Ai(4,4,e,t)}function Oa(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Da(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4,4,Oa.bind(null,t,e),n)}function ds(){}function ja(e,t){var n=Rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&os(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fa(e,t){var n=Rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&os(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return or&21?(Dt(n,t)||(n=mu(),De.lanes|=n,sr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ft=!0),e.memoizedState=n)}function zd(e,t){var n=xe;xe=n!==0&&4>n?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{xe=n,is.transition=r}}function $a(){return Rt().memoizedState}function Id(e,t,n){var r=Un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ba(e))Ha(t,n);else if(n=va(e,t,n,r),n!==null){var l=lt();Bt(n,e,r,l),Wa(n,t,r)}}function Od(e,t,n){var r=Un(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ba(e))Ha(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,c=i(u,n);if(l.hasEagerState=!0,l.eagerState=c,Dt(c,u)){var h=t.interleaved;h===null?(l.next=l,Jo(t)):(l.next=h.next,h.next=l),t.interleaved=l;return}}catch{}finally{}n=va(e,t,l,r),n!==null&&(l=lt(),Bt(n,e,r,l),Wa(n,t,r))}}function Ba(e){var t=e.alternate;return e===De||t!==null&&t===De}function Ha(e,t){kl=Li=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wa(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ho(e,n)}}var Mi={readContext:Ct,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},Dd={readContext:Ct,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pi(4194308,4,Oa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pi(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Id.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Pa,useDebugValue:ds,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=zd.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,l=Kt();if(Ie){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ge===null)throw Error(o(349));or&30||Ta(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Ma(Ra.bind(null,r,i,e),[e]),r.flags|=2048,El(9,Ca.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Ge.identifierPrefix;if(Ie){var n=un,r=sn;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Md++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jd={readContext:Ct,useCallback:ja,useContext:Ct,useEffect:fs,useImperativeHandle:Da,useInsertionEffect:za,useLayoutEffect:Ia,useMemo:Fa,useReducer:as,useRef:Aa,useState:function(){return as(Sl)},useDebugValue:ds,useDeferredValue:function(e){var t=Rt();return Ua(t,He.memoizedState,e)},useTransition:function(){var e=as(Sl)[0],t=Rt().memoizedState;return[e,t]},useMutableSource:Ea,useSyncExternalStore:_a,useId:$a,unstable_isNewReconciler:!1},Fd={readContext:Ct,useCallback:ja,useContext:Ct,useEffect:fs,useImperativeHandle:Da,useInsertionEffect:za,useLayoutEffect:Ia,useMemo:Fa,useReducer:cs,useRef:Aa,useState:function(){return cs(Sl)},useDebugValue:ds,useDeferredValue:function(e){var t=Rt();return He===null?t.memoizedState=e:Ua(t,He.memoizedState,e)},useTransition:function(){var e=cs(Sl)[0],t=Rt().memoizedState;return[e,t]},useMutableSource:Ea,useSyncExternalStore:_a,useId:$a,unstable_isNewReconciler:!1};function Ft(e,t){if(e&&e.defaultProps){t=j({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ps(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:j({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zi={isMounted:function(e){return(e=e._reactInternals)?Qt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lt(),l=Un(e),i=cn(r,l);i.payload=t,n!=null&&(i.callback=n),t=On(e,i,l),t!==null&&(Bt(t,e,l,r),Ti(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lt(),l=Un(e),i=cn(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=On(e,i,l),t!==null&&(Bt(t,e,l,r),Ti(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lt(),r=Un(e),l=cn(n,r);l.tag=2,t!=null&&(l.callback=t),t=On(e,l,r),t!==null&&(Bt(t,e,r,n),Ti(t,e,r))}};function Va(e,t,n,r,l,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,u):t.prototype&&t.prototype.isPureReactComponent?!al(n,r)||!al(l,i):!0}function Qa(e,t,n){var r=!1,l=Mn,i=t.contextType;return typeof i=="object"&&i!==null?i=Ct(i):(l=ct(t)?tr:qe.current,r=t.contextTypes,i=(r=r!=null)?Mr(e,l):Mn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=zi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ga(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zi.enqueueReplaceState(t,t.state,null)}function hs(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},es(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Ct(i):(i=ct(t)?tr:qe.current,l.context=Mr(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ps(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&zi.enqueueReplaceState(l,l.state,null),Ci(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function $r(e,t){try{var n="",r=t;do n+=Z(r),r=r.return;while(r);var l=n}catch(i){l=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function ms(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ud=typeof WeakMap=="function"?WeakMap:Map;function Ya(e,t,n){n=cn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$i||($i=!0,As=r),gs(e,t)},n}function Xa(e,t,n){n=cn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){gs(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){gs(e,t),typeof r!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function Ka(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ud;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Jd.bind(null,e,t,n),t.then(e,e))}function Za(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ba(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=cn(-1,1),t.tag=2,On(n,t,1))),n.lanes|=1),e)}var $d=te.ReactCurrentOwner,ft=!1;function rt(e,t,n,r){t.child=e===null?ya(t,null,n,r):Dr(t,e.child,n,r)}function qa(e,t,n,r,l){n=n.render;var i=t.ref;return Fr(t,l),r=ss(e,t,n,r,i,l),n=us(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,fn(e,t,l)):(Ie&&n&&Vo(t),t.flags|=1,rt(e,t,r,l),t.child)}function Ja(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Fs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ec(e,t,i,r,l)):(e=Gi(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var u=i.memoizedProps;if(n=n.compare,n=n!==null?n:al,n(u,r)&&e.ref===t.ref)return fn(e,t,l)}return t.flags|=1,e=Bn(i,r),e.ref=t.ref,e.return=t,t.child=e}function ec(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(al(i,r)&&e.ref===t.ref)if(ft=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(ft=!0);else return t.lanes=e.lanes,fn(e,t,l)}return ys(e,t,n,r,l)}function tc(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(Hr,vt),vt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(Hr,vt),vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Pe(Hr,vt),vt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Pe(Hr,vt),vt|=r;return rt(e,t,l,n),t.child}function nc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ys(e,t,n,r,l){var i=ct(n)?tr:qe.current;return i=Mr(t,i),Fr(t,l),n=ss(e,t,n,r,i,l),r=us(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,fn(e,t,l)):(Ie&&r&&Vo(t),t.flags|=1,rt(e,t,n,l),t.child)}function rc(e,t,n,r,l){if(ct(n)){var i=!0;yi(t)}else i=!1;if(Fr(t,l),t.stateNode===null)Oi(e,t),Qa(t,n,r),hs(t,n,r,l),r=!0;else if(e===null){var u=t.stateNode,c=t.memoizedProps;u.props=c;var h=u.context,E=n.contextType;typeof E=="object"&&E!==null?E=Ct(E):(E=ct(n)?tr:qe.current,E=Mr(t,E));var N=n.getDerivedStateFromProps,P=typeof N=="function"||typeof u.getSnapshotBeforeUpdate=="function";P||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==r||h!==E)&&Ga(t,u,r,E),In=!1;var R=t.memoizedState;u.state=R,Ci(t,r,u,l),h=t.memoizedState,c!==r||R!==h||at.current||In?(typeof N=="function"&&(ps(t,n,N,r),h=t.memoizedState),(c=In||Va(t,n,c,r,R,h,E))?(P||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=h),u.props=r,u.state=h,u.context=E,r=c):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,wa(e,t),c=t.memoizedProps,E=t.type===t.elementType?c:Ft(t.type,c),u.props=E,P=t.pendingProps,R=u.context,h=n.contextType,typeof h=="object"&&h!==null?h=Ct(h):(h=ct(n)?tr:qe.current,h=Mr(t,h));var U=n.getDerivedStateFromProps;(N=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==P||R!==h)&&Ga(t,u,r,h),In=!1,R=t.memoizedState,u.state=R,Ci(t,r,u,l);var B=t.memoizedState;c!==P||R!==B||at.current||In?(typeof U=="function"&&(ps(t,n,U,r),B=t.memoizedState),(E=In||Va(t,n,E,r,R,B,h)||!1)?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,B,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,B,h)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=B),u.props=r,u.state=B,u.context=h,r=E):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),r=!1)}return vs(e,t,n,r,i,l)}function vs(e,t,n,r,l,i){nc(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return l&&ua(t,n,!1),fn(e,t,i);r=t.stateNode,$d.current=t;var c=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=Dr(t,e.child,null,i),t.child=Dr(t,null,c,i)):rt(e,t,c,i),t.memoizedState=r.state,l&&ua(t,n,!0),t.child}function lc(e){var t=e.stateNode;t.pendingContext?oa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&oa(e,t.context,!1),ts(e,t.containerInfo)}function ic(e,t,n,r,l){return Or(),Xo(l),t.flags|=256,rt(e,t,n,r),t.child}var ws={dehydrated:null,treeContext:null,retryLane:0};function ks(e){return{baseLanes:e,cachePool:null,transitions:null}}function oc(e,t,n){var r=t.pendingProps,l=Oe.current,i=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(l&2)!==0),c?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Pe(Oe,l&1),e===null)return Yo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=r.children,e=r.fallback,i?(r=t.mode,i=t.child,u={mode:"hidden",children:u},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=u):i=Yi(u,r,0,null),e=fr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ks(n),t.memoizedState=ws,e):xs(t,u));if(l=e.memoizedState,l!==null&&(c=l.dehydrated,c!==null))return Bd(e,t,u,r,c,l,n);if(i){i=r.fallback,u=t.mode,l=e.child,c=l.sibling;var h={mode:"hidden",children:r.children};return!(u&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=h,t.deletions=null):(r=Bn(l,h),r.subtreeFlags=l.subtreeFlags&14680064),c!==null?i=Bn(c,i):(i=fr(i,u,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,u=e.child.memoizedState,u=u===null?ks(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~n,t.memoizedState=ws,r}return i=e.child,e=i.sibling,r=Bn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xs(e,t){return t=Yi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ii(e,t,n,r){return r!==null&&Xo(r),Dr(t,e.child,null,n),e=xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bd(e,t,n,r,l,i,u){if(n)return t.flags&256?(t.flags&=-257,r=ms(Error(o(422))),Ii(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Yi({mode:"visible",children:r.children},l,0,null),i=fr(i,l,u,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Dr(t,e.child,null,u),t.child.memoizedState=ks(u),t.memoizedState=ws,i);if(!(t.mode&1))return Ii(e,t,u,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var c=r.dgst;return r=c,i=Error(o(419)),r=ms(i,r,void 0),Ii(e,t,u,r)}if(c=(u&e.childLanes)!==0,ft||c){if(r=Ge,r!==null){switch(u&-u){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|u)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,an(e,l),Bt(r,e,l,-1))}return js(),r=ms(Error(o(421))),Ii(e,t,u,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=ep.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,yt=Pn(l.nextSibling),gt=t,Ie=!0,jt=null,e!==null&&(_t[Tt++]=sn,_t[Tt++]=un,_t[Tt++]=nr,sn=e.id,un=e.overflow,nr=t),t=xs(t,r.children),t.flags|=4096,t)}function sc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qo(e.return,t,n)}function Ss(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function uc(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(rt(e,t,r.children,n),r=Oe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sc(e,n,t);else if(e.tag===19)sc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Pe(Oe,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ri(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ss(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ri(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ss(t,!0,n,null,i);break;case"together":Ss(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hd(e,t,n){switch(t.tag){case 3:lc(t),Or();break;case 5:Sa(t);break;case 1:ct(t.type)&&yi(t);break;case 4:ts(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Pe(Ei,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Pe(Oe,Oe.current&1),t.flags|=128,null):n&t.child.childLanes?oc(e,t,n):(Pe(Oe,Oe.current&1),e=fn(e,t,n),e!==null?e.sibling:null);Pe(Oe,Oe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Pe(Oe,Oe.current),r)break;return null;case 22:case 23:return t.lanes=0,tc(e,t,n)}return fn(e,t,n)}var ac,Es,cc,fc;ac=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Es=function(){},cc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,ir(Xt.current);var i=null;switch(n){case"input":l=zt(e,l),r=zt(e,r),i=[];break;case"select":l=j({},l,{value:void 0}),r=j({},r,{value:void 0}),i=[];break;case"textarea":l=Qr(e,l),r=Qr(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hi)}Xn(n,r);var u;n=null;for(E in l)if(!r.hasOwnProperty(E)&&l.hasOwnProperty(E)&&l[E]!=null)if(E==="style"){var c=l[E];for(u in c)c.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else E!=="dangerouslySetInnerHTML"&&E!=="children"&&E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(f.hasOwnProperty(E)?i||(i=[]):(i=i||[]).push(E,null));for(E in r){var h=r[E];if(c=l!=null?l[E]:void 0,r.hasOwnProperty(E)&&h!==c&&(h!=null||c!=null))if(E==="style")if(c){for(u in c)!c.hasOwnProperty(u)||h&&h.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in h)h.hasOwnProperty(u)&&c[u]!==h[u]&&(n||(n={}),n[u]=h[u])}else n||(i||(i=[]),i.push(E,n)),n=h;else E==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,c=c?c.__html:void 0,h!=null&&c!==h&&(i=i||[]).push(E,h)):E==="children"?typeof h!="string"&&typeof h!="number"||(i=i||[]).push(E,""+h):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&(f.hasOwnProperty(E)?(h!=null&&E==="onScroll"&&Ae("scroll",e),i||c===h||(i=[])):(i=i||[]).push(E,h))}n&&(i=i||[]).push("style",n);var E=i;(t.updateQueue=E)&&(t.flags|=4)}},fc=function(e,t,n,r){n!==r&&(t.flags|=4)};function _l(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wd(e,t,n){var r=t.pendingProps;switch(Qo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return ct(t.type)&&gi(),et(t),null;case 3:return r=t.stateNode,Ur(),Me(at),Me(qe),ls(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(Is(jt),jt=null))),Es(e,t),et(t),null;case 5:ns(t);var l=ir(wl.current);if(n=t.type,e!==null&&t.stateNode!=null)cc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(o(166));return et(t),null}if(e=ir(Xt.current),xi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Yt]=t,r[hl]=i,e=(t.mode&1)!==0,n){case"dialog":Ae("cancel",r),Ae("close",r);break;case"iframe":case"object":case"embed":Ae("load",r);break;case"video":case"audio":for(l=0;l<fl.length;l++)Ae(fl[l],r);break;case"source":Ae("error",r);break;case"img":case"image":case"link":Ae("error",r),Ae("load",r);break;case"details":Ae("toggle",r);break;case"input":mr(r,i),Ae("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ae("invalid",r);break;case"textarea":yr(r,i),Ae("invalid",r)}Xn(n,i),l=null;for(var u in i)if(i.hasOwnProperty(u)){var c=i[u];u==="children"?typeof c=="string"?r.textContent!==c&&(i.suppressHydrationWarning!==!0&&pi(r.textContent,c,e),l=["children",c]):typeof c=="number"&&r.textContent!==""+c&&(i.suppressHydrationWarning!==!0&&pi(r.textContent,c,e),l=["children",""+c]):f.hasOwnProperty(u)&&c!=null&&u==="onScroll"&&Ae("scroll",r)}switch(n){case"input":Vn(r),Qn(r,i,!0);break;case"textarea":Vn(r),en(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=hi)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tn(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Yt]=t,e[hl]=r,ac(e,t,!1,!1),t.stateNode=e;e:{switch(u=Kn(n,r),n){case"dialog":Ae("cancel",e),Ae("close",e),l=r;break;case"iframe":case"object":case"embed":Ae("load",e),l=r;break;case"video":case"audio":for(l=0;l<fl.length;l++)Ae(fl[l],e);l=r;break;case"source":Ae("error",e),l=r;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),l=r;break;case"details":Ae("toggle",e),l=r;break;case"input":mr(e,r),l=zt(e,r),Ae("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=j({},r,{value:void 0}),Ae("invalid",e);break;case"textarea":yr(e,r),l=Qr(e,r),Ae("invalid",e);break;default:l=r}Xn(n,l),c=l;for(i in c)if(c.hasOwnProperty(i)){var h=c[i];i==="style"?xt(e,h):i==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,h!=null&&Gr(e,h)):i==="children"?typeof h=="string"?(n!=="textarea"||h!=="")&&nn(e,h):typeof h=="number"&&nn(e,""+h):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(f.hasOwnProperty(i)?h!=null&&i==="onScroll"&&Ae("scroll",e):h!=null&&Ee(e,i,h,u))}switch(n){case"input":Vn(e),Qn(e,r,!1);break;case"textarea":Vn(e),en(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Jt(e,!!r.multiple,i,!1):r.defaultValue!=null&&Jt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=hi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)fc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(n=ir(wl.current),ir(Xt.current),xi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Yt]=t,(i=r.nodeValue!==n)&&(e=gt,e!==null))switch(e.tag){case 3:pi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Yt]=t,t.stateNode=r}return et(t),null;case 13:if(Me(Oe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ie&&yt!==null&&t.mode&1&&!(t.flags&128))ha(),Or(),t.flags|=98560,i=!1;else if(i=xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Yt]=t}else Or(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),i=!1}else jt!==null&&(Is(jt),jt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Oe.current&1?We===0&&(We=3):js())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return Ur(),Es(e,t),e===null&&dl(t.stateNode.containerInfo),et(t),null;case 10:return bo(t.type._context),et(t),null;case 17:return ct(t.type)&&gi(),et(t),null;case 19:if(Me(Oe),i=t.memoizedState,i===null)return et(t),null;if(r=(t.flags&128)!==0,u=i.rendering,u===null)if(r)_l(i,!1);else{if(We!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=Ri(e),u!==null){for(t.flags|=128,_l(i,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,u=i.alternate,u===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,e=u.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pe(Oe,Oe.current&1|2),t.child}e=e.sibling}i.tail!==null&&le()>Wr&&(t.flags|=128,r=!0,_l(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ri(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_l(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Ie)return et(t),null}else 2*le()-i.renderingStartTime>Wr&&n!==1073741824&&(t.flags|=128,r=!0,_l(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(n=i.last,n!==null?n.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,n=Oe.current,Pe(Oe,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Ds(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?vt&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Vd(e,t){switch(Qo(t),t.tag){case 1:return ct(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ur(),Me(at),Me(qe),ls(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ns(t),null;case 13:if(Me(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me(Oe),null;case 4:return Ur(),null;case 10:return bo(t.type._context),null;case 22:case 23:return Ds(),null;case 24:return null;default:return null}}var Di=!1,tt=!1,Qd=typeof WeakSet=="function"?WeakSet:Set,$=null;function Br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function _s(e,t,n){try{n()}catch(r){je(e,t,r)}}var dc=!1;function Gd(e,t){if(Do=ni,e=Vu(),No(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var u=0,c=-1,h=-1,E=0,N=0,P=e,R=null;t:for(;;){for(var U;P!==n||l!==0&&P.nodeType!==3||(c=u+l),P!==i||r!==0&&P.nodeType!==3||(h=u+r),P.nodeType===3&&(u+=P.nodeValue.length),(U=P.firstChild)!==null;)R=P,P=U;for(;;){if(P===e)break t;if(R===n&&++E===l&&(c=u),R===i&&++N===r&&(h=u),(U=P.nextSibling)!==null)break;P=R,R=P.parentNode}P=U}n=c===-1||h===-1?null:{start:c,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(jo={focusedElem:e,selectionRange:n},ni=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var B=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(B!==null){var W=B.memoizedProps,Ue=B.memoizedState,w=t.stateNode,m=w.getSnapshotBeforeUpdate(t.elementType===t.type?W:Ft(t.type,W),Ue);w.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(z){je(t,t.return,z)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return B=dc,dc=!1,B}function Tl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&_s(t,n,i)}l=l.next}while(l!==r)}}function ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ts(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 pc(e){var t=e.alternate;t!==null&&(e.alternate=null,pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[hl],delete t[Bo],delete t[Nd],delete t[Ld])),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 hc(e){return e.tag===5||e.tag===3||e.tag===4}function mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hc(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 Cs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hi));else if(r!==4&&(e=e.child,e!==null))for(Cs(e,t,n),e=e.sibling;e!==null;)Cs(e,t,n),e=e.sibling}function Rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rs(e,t,n),e=e.sibling;e!==null;)Rs(e,t,n),e=e.sibling}var Xe=null,Ut=!1;function Dn(e,t,n){for(n=n.child;n!==null;)gc(e,t,n),n=n.sibling}function gc(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Zl,n)}catch{}switch(n.tag){case 5:tt||Br(n,t);case 6:var r=Xe,l=Ut;Xe=null,Dn(e,t,n),Xe=r,Ut=l,Xe!==null&&(Ut?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(Ut?(e=Xe,n=n.stateNode,e.nodeType===8?$o(e.parentNode,n):e.nodeType===1&&$o(e,n),rl(e)):$o(Xe,n.stateNode));break;case 4:r=Xe,l=Ut,Xe=n.stateNode.containerInfo,Ut=!0,Dn(e,t,n),Xe=r,Ut=l;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&_s(n,t,u),l=l.next}while(l!==r)}Dn(e,t,n);break;case 1:if(!tt&&(Br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){je(n,t,c)}Dn(e,t,n);break;case 21:Dn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Dn(e,t,n),tt=r):Dn(e,t,n);break;default:Dn(e,t,n)}}function yc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qd),t.forEach(function(r){var l=tp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,u=t,c=u;e:for(;c!==null;){switch(c.tag){case 5:Xe=c.stateNode,Ut=!1;break e;case 3:Xe=c.stateNode.containerInfo,Ut=!0;break e;case 4:Xe=c.stateNode.containerInfo,Ut=!0;break e}c=c.return}if(Xe===null)throw Error(o(160));gc(i,u,l),Xe=null,Ut=!1;var h=l.alternate;h!==null&&(h.return=null),l.return=null}catch(E){je(l,t,E)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vc(t,e),t=t.sibling}function vc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($t(t,e),Zt(e),r&4){try{Tl(3,e,e.return),ji(3,e)}catch(W){je(e,e.return,W)}try{Tl(5,e,e.return)}catch(W){je(e,e.return,W)}}break;case 1:$t(t,e),Zt(e),r&512&&n!==null&&Br(n,n.return);break;case 5:if($t(t,e),Zt(e),r&512&&n!==null&&Br(n,n.return),e.flags&32){var l=e.stateNode;try{nn(l,"")}catch(W){je(e,e.return,W)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,u=n!==null?n.memoizedProps:i,c=e.type,h=e.updateQueue;if(e.updateQueue=null,h!==null)try{c==="input"&&i.type==="radio"&&i.name!=null&&gr(l,i),Kn(c,u);var E=Kn(c,i);for(u=0;u<h.length;u+=2){var N=h[u],P=h[u+1];N==="style"?xt(l,P):N==="dangerouslySetInnerHTML"?Gr(l,P):N==="children"?nn(l,P):Ee(l,N,P,E)}switch(c){case"input":Wt(l,i);break;case"textarea":gn(l,i);break;case"select":var R=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var U=i.value;U!=null?Jt(l,!!i.multiple,U,!1):R!==!!i.multiple&&(i.defaultValue!=null?Jt(l,!!i.multiple,i.defaultValue,!0):Jt(l,!!i.multiple,i.multiple?[]:"",!1))}l[hl]=i}catch(W){je(e,e.return,W)}}break;case 6:if($t(t,e),Zt(e),r&4){if(e.stateNode===null)throw Error(o(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(W){je(e,e.return,W)}}break;case 3:if($t(t,e),Zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rl(t.containerInfo)}catch(W){je(e,e.return,W)}break;case 4:$t(t,e),Zt(e);break;case 13:$t(t,e),Zt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Ps=le())),r&4&&yc(e);break;case 22:if(N=n!==null&&n.memoizedState!==null,e.mode&1?(tt=(E=tt)||N,$t(t,e),tt=E):$t(t,e),Zt(e),r&8192){if(E=e.memoizedState!==null,(e.stateNode.isHidden=E)&&!N&&e.mode&1)for($=e,N=e.child;N!==null;){for(P=$=N;$!==null;){switch(R=$,U=R.child,R.tag){case 0:case 11:case 14:case 15:Tl(4,R,R.return);break;case 1:Br(R,R.return);var B=R.stateNode;if(typeof B.componentWillUnmount=="function"){r=R,n=R.return;try{t=r,B.props=t.memoizedProps,B.state=t.memoizedState,B.componentWillUnmount()}catch(W){je(r,n,W)}}break;case 5:Br(R,R.return);break;case 22:if(R.memoizedState!==null){xc(P);continue}}U!==null?(U.return=R,$=U):xc(P)}N=N.sibling}e:for(N=null,P=e;;){if(P.tag===5){if(N===null){N=P;try{l=P.stateNode,E?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(c=P.stateNode,h=P.memoizedProps.style,u=h!=null&&h.hasOwnProperty("display")?h.display:null,c.style.display=Yn("display",u))}catch(W){je(e,e.return,W)}}}else if(P.tag===6){if(N===null)try{P.stateNode.nodeValue=E?"":P.memoizedProps}catch(W){je(e,e.return,W)}}else if((P.tag!==22&&P.tag!==23||P.memoizedState===null||P===e)&&P.child!==null){P.child.return=P,P=P.child;continue}if(P===e)break e;for(;P.sibling===null;){if(P.return===null||P.return===e)break e;N===P&&(N=null),P=P.return}N===P&&(N=null),P.sibling.return=P.return,P=P.sibling}}break;case 19:$t(t,e),Zt(e),r&4&&yc(e);break;case 21:break;default:$t(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(hc(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(nn(l,""),r.flags&=-33);var i=mc(e);Rs(e,i,l);break;case 3:case 4:var u=r.stateNode.containerInfo,c=mc(e);Cs(e,c,u);break;default:throw Error(o(161))}}catch(h){je(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yd(e,t,n){$=e,wc(e)}function wc(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var l=$,i=l.child;if(l.tag===22&&r){var u=l.memoizedState!==null||Di;if(!u){var c=l.alternate,h=c!==null&&c.memoizedState!==null||tt;c=Di;var E=tt;if(Di=u,(tt=h)&&!E)for($=l;$!==null;)u=$,h=u.child,u.tag===22&&u.memoizedState!==null?Sc(l):h!==null?(h.return=u,$=h):Sc(l);for(;i!==null;)$=i,wc(i),i=i.sibling;$=l,Di=c,tt=E}kc(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,$=i):kc(e)}}function kc(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:tt||ji(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!tt)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ft(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&xa(t,i,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}xa(t,u,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&n.focus();break;case"img":h.src&&(n.src=h.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var E=t.alternate;if(E!==null){var N=E.memoizedState;if(N!==null){var P=N.dehydrated;P!==null&&rl(P)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}tt||t.flags&512&&Ts(t)}catch(R){je(t,t.return,R)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function xc(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function Sc(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ji(4,t)}catch(h){je(t,n,h)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(h){je(t,l,h)}}var i=t.return;try{Ts(t)}catch(h){je(t,i,h)}break;case 5:var u=t.return;try{Ts(t)}catch(h){je(t,u,h)}}}catch(h){je(t,t.return,h)}if(t===e){$=null;break}var c=t.sibling;if(c!==null){c.return=t.return,$=c;break}$=t.return}}var Xd=Math.ceil,Fi=te.ReactCurrentDispatcher,Ns=te.ReactCurrentOwner,Nt=te.ReactCurrentBatchConfig,pe=0,Ge=null,Be=null,Ke=0,vt=0,Hr=An(0),We=0,Cl=null,sr=0,Ui=0,Ls=0,Rl=null,dt=null,Ps=0,Wr=1/0,dn=null,$i=!1,As=null,jn=null,Bi=!1,Fn=null,Hi=0,Nl=0,Ms=null,Wi=-1,Vi=0;function lt(){return pe&6?le():Wi!==-1?Wi:Wi=le()}function Un(e){return e.mode&1?pe&2&&Ke!==0?Ke&-Ke:Ad.transition!==null?(Vi===0&&(Vi=mu()),Vi):(e=xe,e!==0||(e=window.event,e=e===void 0?16:_u(e.type)),e):1}function Bt(e,t,n,r){if(50<Nl)throw Nl=0,Ms=null,Error(o(185));qr(e,n,r),(!(pe&2)||e!==Ge)&&(e===Ge&&(!(pe&2)&&(Ui|=n),We===4&&$n(e,Ke)),pt(e,r),n===1&&pe===0&&!(t.mode&1)&&(Wr=le()+500,vi&&zn()))}function pt(e,t){var n=e.callbackNode;Af(e,t);var r=Jl(e,e===Ge?Ke:0);if(r===0)n!==null&&H(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&H(n),t===1)e.tag===0?Pd(_c.bind(null,e)):aa(_c.bind(null,e)),Cd(function(){!(pe&6)&&zn()}),n=null;else{switch(gu(r)){case 1:n=ut;break;case 4:n=En;break;case 16:n=$e;break;case 536870912:n=Zr;break;default:n=$e}n=Mc(n,Ec.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ec(e,t){if(Wi=-1,Vi=0,pe&6)throw Error(o(327));var n=e.callbackNode;if(Vr()&&e.callbackNode!==n)return null;var r=Jl(e,e===Ge?Ke:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Qi(e,r);else{t=r;var l=pe;pe|=2;var i=Cc();(Ge!==e||Ke!==t)&&(dn=null,Wr=le()+500,ar(e,t));do try{bd();break}catch(c){Tc(e,c)}while(!0);Zo(),Fi.current=i,pe=l,Be!==null?t=0:(Ge=null,Ke=0,t=We)}if(t!==0){if(t===2&&(l=fo(e),l!==0&&(r=l,t=zs(e,l))),t===1)throw n=Cl,ar(e,0),$n(e,r),pt(e,le()),n;if(t===6)$n(e,r);else{if(l=e.current.alternate,!(r&30)&&!Kd(l)&&(t=Qi(e,r),t===2&&(i=fo(e),i!==0&&(r=i,t=zs(e,i))),t===1))throw n=Cl,ar(e,0),$n(e,r),pt(e,le()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:cr(e,dt,dn);break;case 3:if($n(e,r),(r&130023424)===r&&(t=Ps+500-le(),10<t)){if(Jl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){lt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Uo(cr.bind(null,e,dt,dn),t);break}cr(e,dt,dn);break;case 4:if($n(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var u=31-Ot(r);i=1<<u,u=t[u],u>l&&(l=u),r&=~i}if(r=l,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xd(r/1960))-r,10<r){e.timeoutHandle=Uo(cr.bind(null,e,dt,dn),r);break}cr(e,dt,dn);break;case 5:cr(e,dt,dn);break;default:throw Error(o(329))}}}return pt(e,le()),e.callbackNode===n?Ec.bind(null,e):null}function zs(e,t){var n=Rl;return e.current.memoizedState.isDehydrated&&(ar(e,t).flags|=256),e=Qi(e,t),e!==2&&(t=dt,dt=n,t!==null&&Is(t)),e}function Is(e){dt===null?dt=e:dt.push.apply(dt,e)}function Kd(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!Dt(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t){for(t&=~Ls,t&=~Ui,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ot(t),r=1<<n;e[n]=-1,t&=~r}}function _c(e){if(pe&6)throw Error(o(327));Vr();var t=Jl(e,0);if(!(t&1))return pt(e,le()),null;var n=Qi(e,t);if(e.tag!==0&&n===2){var r=fo(e);r!==0&&(t=r,n=zs(e,r))}if(n===1)throw n=Cl,ar(e,0),$n(e,t),pt(e,le()),n;if(n===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cr(e,dt,dn),pt(e,le()),null}function Os(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(Wr=le()+500,vi&&zn())}}function ur(e){Fn!==null&&Fn.tag===0&&!(pe&6)&&Vr();var t=pe;pe|=1;var n=Nt.transition,r=xe;try{if(Nt.transition=null,xe=1,e)return e()}finally{xe=r,Nt.transition=n,pe=t,!(pe&6)&&zn()}}function Ds(){vt=Hr.current,Me(Hr)}function ar(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Td(n)),Be!==null)for(n=Be.return;n!==null;){var r=n;switch(Qo(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gi();break;case 3:Ur(),Me(at),Me(qe),ls();break;case 5:ns(r);break;case 4:Ur();break;case 13:Me(Oe);break;case 19:Me(Oe);break;case 10:bo(r.type._context);break;case 22:case 23:Ds()}n=n.return}if(Ge=e,Be=e=Bn(e.current,null),Ke=vt=t,We=0,Cl=null,Ls=Ui=sr=0,dt=Rl=null,lr!==null){for(t=0;t<lr.length;t++)if(n=lr[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var u=i.next;i.next=l,r.next=u}n.pending=r}lr=null}return e}function Tc(e,t){do{var n=Be;try{if(Zo(),Ni.current=Mi,Li){for(var r=De.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Li=!1}if(or=0,Qe=He=De=null,kl=!1,xl=0,Ns.current=null,n===null||n.return===null){We=1,Cl=t,Be=null;break}e:{var i=e,u=n.return,c=n,h=t;if(t=Ke,c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){var E=h,N=c,P=N.tag;if(!(N.mode&1)&&(P===0||P===11||P===15)){var R=N.alternate;R?(N.updateQueue=R.updateQueue,N.memoizedState=R.memoizedState,N.lanes=R.lanes):(N.updateQueue=null,N.memoizedState=null)}var U=Za(u);if(U!==null){U.flags&=-257,ba(U,u,c,i,t),U.mode&1&&Ka(i,E,t),t=U,h=E;var B=t.updateQueue;if(B===null){var W=new Set;W.add(h),t.updateQueue=W}else B.add(h);break e}else{if(!(t&1)){Ka(i,E,t),js();break e}h=Error(o(426))}}else if(Ie&&c.mode&1){var Ue=Za(u);if(Ue!==null){!(Ue.flags&65536)&&(Ue.flags|=256),ba(Ue,u,c,i,t),Xo($r(h,c));break e}}i=h=$r(h,c),We!==4&&(We=2),Rl===null?Rl=[i]:Rl.push(i),i=u;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var w=Ya(i,h,t);ka(i,w);break e;case 1:c=h;var m=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(jn===null||!jn.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var z=Xa(i,c,t);ka(i,z);break e}}i=i.return}while(i!==null)}Nc(n)}catch(G){t=G,Be===n&&n!==null&&(Be=n=n.return);continue}break}while(!0)}function Cc(){var e=Fi.current;return Fi.current=Mi,e===null?Mi:e}function js(){(We===0||We===3||We===2)&&(We=4),Ge===null||!(sr&268435455)&&!(Ui&268435455)||$n(Ge,Ke)}function Qi(e,t){var n=pe;pe|=2;var r=Cc();(Ge!==e||Ke!==t)&&(dn=null,ar(e,t));do try{Zd();break}catch(l){Tc(e,l)}while(!0);if(Zo(),pe=n,Fi.current=r,Be!==null)throw Error(o(261));return Ge=null,Ke=0,We}function Zd(){for(;Be!==null;)Rc(Be)}function bd(){for(;Be!==null&&!Le();)Rc(Be)}function Rc(e){var t=Ac(e.alternate,e,vt);e.memoizedProps=e.pendingProps,t===null?Nc(e):Be=t,Ns.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Vd(n,t),n!==null){n.flags&=32767,Be=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{We=6,Be=null;return}}else if(n=Wd(n,t,vt),n!==null){Be=n;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);We===0&&(We=5)}function cr(e,t,n){var r=xe,l=Nt.transition;try{Nt.transition=null,xe=1,qd(e,t,n,r)}finally{Nt.transition=l,xe=r}return null}function qd(e,t,n,r){do Vr();while(Fn!==null);if(pe&6)throw Error(o(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Mf(e,i),e===Ge&&(Be=Ge=null,Ke=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Bi||(Bi=!0,Mc($e,function(){return Vr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Nt.transition,Nt.transition=null;var u=xe;xe=1;var c=pe;pe|=4,Ns.current=null,Gd(e,n),vc(n,e),vd(jo),ni=!!Do,jo=Do=null,e.current=n,Yd(n),Ve(),pe=c,xe=u,Nt.transition=i}else e.current=n;if(Bi&&(Bi=!1,Fn=e,Hi=l),i=e.pendingLanes,i===0&&(jn=null),Cf(n.stateNode),pt(e,le()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if($i)throw $i=!1,e=As,As=null,e;return Hi&1&&e.tag!==0&&Vr(),i=e.pendingLanes,i&1?e===Ms?Nl++:(Nl=0,Ms=e):Nl=0,zn(),null}function Vr(){if(Fn!==null){var e=gu(Hi),t=Nt.transition,n=xe;try{if(Nt.transition=null,xe=16>e?16:e,Fn===null)var r=!1;else{if(e=Fn,Fn=null,Hi=0,pe&6)throw Error(o(331));var l=pe;for(pe|=4,$=e.current;$!==null;){var i=$,u=i.child;if($.flags&16){var c=i.deletions;if(c!==null){for(var h=0;h<c.length;h++){var E=c[h];for($=E;$!==null;){var N=$;switch(N.tag){case 0:case 11:case 15:Tl(8,N,i)}var P=N.child;if(P!==null)P.return=N,$=P;else for(;$!==null;){N=$;var R=N.sibling,U=N.return;if(pc(N),N===E){$=null;break}if(R!==null){R.return=U,$=R;break}$=U}}}var B=i.alternate;if(B!==null){var W=B.child;if(W!==null){B.child=null;do{var Ue=W.sibling;W.sibling=null,W=Ue}while(W!==null)}}$=i}}if(i.subtreeFlags&2064&&u!==null)u.return=i,$=u;else e:for(;$!==null;){if(i=$,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Tl(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,$=w;break e}$=i.return}}var m=e.current;for($=m;$!==null;){u=$;var x=u.child;if(u.subtreeFlags&2064&&x!==null)x.return=u,$=x;else e:for(u=m;$!==null;){if(c=$,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:ji(9,c)}}catch(G){je(c,c.return,G)}if(c===u){$=null;break e}var z=c.sibling;if(z!==null){z.return=c.return,$=z;break e}$=c.return}}if(pe=l,zn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Zl,e)}catch{}r=!0}return r}finally{xe=n,Nt.transition=t}}return!1}function Lc(e,t,n){t=$r(n,t),t=Ya(e,t,1),e=On(e,t,1),t=lt(),e!==null&&(qr(e,1,t),pt(e,t))}function je(e,t,n){if(e.tag===3)Lc(e,e,n);else for(;t!==null;){if(t.tag===3){Lc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jn===null||!jn.has(r))){e=$r(n,e),e=Xa(t,e,1),t=On(t,e,1),e=lt(),t!==null&&(qr(t,1,e),pt(t,e));break}}t=t.return}}function Jd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=lt(),e.pingedLanes|=e.suspendedLanes&n,Ge===e&&(Ke&n)===n&&(We===4||We===3&&(Ke&130023424)===Ke&&500>le()-Ps?ar(e,0):Ls|=n),pt(e,t)}function Pc(e,t){t===0&&(e.mode&1?(t=ql,ql<<=1,!(ql&130023424)&&(ql=4194304)):t=1);var n=lt();e=an(e,t),e!==null&&(qr(e,t,n),pt(e,n))}function ep(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pc(e,n)}function tp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),Pc(e,n)}var Ac;Ac=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ft=!1,Hd(e,t,n);ft=!!(e.flags&131072)}else ft=!1,Ie&&t.flags&1048576&&ca(t,ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oi(e,t),e=t.pendingProps;var l=Mr(t,qe.current);Fr(t,n),l=ss(null,t,r,e,l,n);var i=us();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ct(r)?(i=!0,yi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,es(t),l.updater=zi,t.stateNode=l,l._reactInternals=t,hs(t,r,e,n),t=vs(null,t,r,!0,i,n)):(t.tag=0,Ie&&i&&Vo(t),rt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oi(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=rp(r),e=Ft(r,e),l){case 0:t=ys(null,t,r,e,n);break e;case 1:t=rc(null,t,r,e,n);break e;case 11:t=qa(null,t,r,e,n);break e;case 14:t=Ja(null,t,r,Ft(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),ys(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),rc(e,t,r,l,n);case 3:e:{if(lc(t),e===null)throw Error(o(387));r=t.pendingProps,i=t.memoizedState,l=i.element,wa(e,t),Ci(t,r,null,n);var u=t.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=$r(Error(o(423)),t),t=ic(e,t,r,n,l);break e}else if(r!==l){l=$r(Error(o(424)),t),t=ic(e,t,r,n,l);break e}else for(yt=Pn(t.stateNode.containerInfo.firstChild),gt=t,Ie=!0,jt=null,n=ya(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Or(),r===l){t=fn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return Sa(t),e===null&&Yo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,Fo(r,l)?u=null:i!==null&&Fo(r,i)&&(t.flags|=32),nc(e,t),rt(e,t,u,n),t.child;case 6:return e===null&&Yo(t),null;case 13:return oc(e,t,n);case 4:return ts(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Dr(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),qa(e,t,r,l,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,u=l.value,Pe(Ei,r._currentValue),r._currentValue=u,i!==null)if(Dt(i.value,u)){if(i.children===l.children&&!at.current){t=fn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){u=i.child;for(var h=c.firstContext;h!==null;){if(h.context===r){if(i.tag===1){h=cn(-1,n&-n),h.tag=2;var E=i.updateQueue;if(E!==null){E=E.shared;var N=E.pending;N===null?h.next=h:(h.next=N.next,N.next=h),E.pending=h}}i.lanes|=n,h=i.alternate,h!==null&&(h.lanes|=n),qo(i.return,n,t),c.lanes|=n;break}h=h.next}}else if(i.tag===10)u=i.type===t.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(o(341));u.lanes|=n,c=u.alternate,c!==null&&(c.lanes|=n),qo(u,n,t),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===t){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}rt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Fr(t,n),l=Ct(l),r=r(l),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,l=Ft(r,t.pendingProps),l=Ft(r.type,l),Ja(e,t,r,l,n);case 15:return ec(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),Oi(e,t),t.tag=1,ct(r)?(e=!0,yi(t)):e=!1,Fr(t,n),Qa(t,r,l),hs(t,r,l,n),vs(null,t,r,!0,e,n);case 19:return uc(e,t,n);case 22:return tc(e,t,n)}throw Error(o(156,t.tag))};function Mc(e,t){return M(e,t)}function np(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,t,n,r){return new np(e,t,n,r)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rp(e){if(typeof e=="function")return Fs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===J)return 11;if(e===de)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=Lt(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 Gi(e,t,n,r,l,i){var u=2;if(r=e,typeof e=="function")Fs(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Ne:return fr(n.children,l,i,t);case ce:u=8,l|=8;break;case kt:return e=Lt(12,n,t,l|2),e.elementType=kt,e.lanes=i,e;case fe:return e=Lt(13,n,t,l),e.elementType=fe,e.lanes=i,e;case ue:return e=Lt(19,n,t,l),e.elementType=ue,e.lanes=i,e;case _e:return Yi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nt:u=10;break e;case ze:u=9;break e;case J:u=11;break e;case de:u=14;break e;case we:u=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Lt(u,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function fr(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function Yi(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=_e,e.lanes=n,e.stateNode={isHidden:!1},e}function Us(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function $s(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lp(e,t,n,r,l){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=po(0),this.expirationTimes=po(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bs(e,t,n,r,l,i,u,c,h){return e=new lp(e,t,n,c,h),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},es(i),e}function ip(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ne,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zc(e){if(!e)return Mn;e=e._reactInternals;e:{if(Qt(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ct(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var n=e.type;if(ct(n))return sa(e,n,t)}return t}function Ic(e,t,n,r,l,i,u,c,h){return e=Bs(n,r,!0,e,l,i,u,c,h),e.context=zc(null),n=e.current,r=lt(),l=Un(n),i=cn(r,l),i.callback=t??null,On(n,i,l),e.current.lanes=l,qr(e,l,r),pt(e,r),e}function Xi(e,t,n,r){var l=t.current,i=lt(),u=Un(l);return n=zc(n),t.context===null?t.context=n:t.pendingContext=n,t=cn(i,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=On(l,t,u),e!==null&&(Bt(e,l,u,i),Ti(e,l,u)),u}function Ki(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Oc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hs(e,t){Oc(e,t),(e=e.alternate)&&Oc(e,t)}var Dc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ws(e){this._internalRoot=e}Zi.prototype.render=Ws.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));Xi(e,t,null,null)},Zi.prototype.unmount=Ws.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ur(function(){Xi(null,e,null,null)}),t[ln]=null}};function Zi(e){this._internalRoot=e}Zi.prototype.unstable_scheduleHydration=function(e){if(e){var t=wu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rn.length&&t!==0&&t<Rn[n].priority;n++);Rn.splice(n,0,e),n===0&&Su(e)}};function Vs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jc(){}function op(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var E=Ki(u);i.call(E)}}var u=Ic(t,r,e,0,null,!1,!1,"",jc);return e._reactRootContainer=u,e[ln]=u.current,dl(e.nodeType===8?e.parentNode:e),ur(),u}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var c=r;r=function(){var E=Ki(h);c.call(E)}}var h=Bs(e,0,!1,null,null,!1,!1,"",jc);return e._reactRootContainer=h,e[ln]=h.current,dl(e.nodeType===8?e.parentNode:e),ur(function(){Xi(t,h,n,r)}),h}function qi(e,t,n,r,l){var i=n._reactRootContainer;if(i){var u=i;if(typeof l=="function"){var c=l;l=function(){var h=Ki(u);c.call(h)}}Xi(t,u,e,l)}else u=op(n,t,e,l,r);return Ki(u)}yu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=br(t.pendingLanes);n!==0&&(ho(t,n|1),pt(t,le()),!(pe&6)&&(Wr=le()+500,zn()))}break;case 13:ur(function(){var r=an(e,1);if(r!==null){var l=lt();Bt(r,e,1,l)}}),Hs(e,1)}},mo=function(e){if(e.tag===13){var t=an(e,134217728);if(t!==null){var n=lt();Bt(t,e,134217728,n)}Hs(e,134217728)}},vu=function(e){if(e.tag===13){var t=Un(e),n=an(e,t);if(n!==null){var r=lt();Bt(n,e,t,r)}Hs(e,t)}},wu=function(){return xe},ku=function(e,t){var n=xe;try{return xe=e,t()}finally{xe=n}},kn=function(e,t,n){switch(t){case"input":if(Wt(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=mi(r);if(!l)throw Error(o(90));qt(r),Wt(r,l)}}}break;case"textarea":gn(e,n);break;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}},rn=Os,Gl=ur;var sp={usingClientEntryPoint:!1,Events:[ml,Pr,mi,Ql,Fe,Os]},Ll={findFiberByHostInstance:er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},up={bundleType:Ll.bundleType,version:Ll.version,rendererPackageName:Ll.rendererPackageName,rendererConfig:Ll.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:te.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=X(e),e===null?null:e.stateNode},findFiberByHostInstance:Ll.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{Zl=Ji.inject(up),Gt=Ji}catch{}}return ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sp,ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vs(t))throw Error(o(200));return ip(e,t,null,n)},ht.createRoot=function(e,t){if(!Vs(e))throw Error(o(299));var n=!1,r="",l=Dc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Bs(e,1,!1,null,null,n,!1,r,l),e[ln]=t.current,dl(e.nodeType===8?e.parentNode:e),new Ws(t)},ht.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=X(t),e=e===null?null:e.stateNode,e},ht.flushSync=function(e){return ur(e)},ht.hydrate=function(e,t,n){if(!bi(t))throw Error(o(200));return qi(null,e,t,!0,n)},ht.hydrateRoot=function(e,t,n){if(!Vs(e))throw Error(o(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",u=Dc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=Ic(t,null,e,1,n??null,l,!1,i,u),e[ln]=t.current,dl(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Zi(t)},ht.render=function(e,t,n){if(!bi(t))throw Error(o(200));return qi(null,e,t,!1,n)},ht.unmountComponentAtNode=function(e){if(!bi(e))throw Error(o(40));return e._reactRootContainer?(ur(function(){qi(null,null,e,!1,function(){e._reactRootContainer=null,e[ln]=null})}),!0):!1},ht.unstable_batchedUpdates=Os,ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bi(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return qi(e,t,n,!1,r)},ht.version="18.3.1-next-f1338f8080-20240426",ht}var Qc;function wp(){if(Qc)return Ys.exports;Qc=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(s){console.error(s)}}return d(),Ys.exports=vp(),Ys.exports}var Gc;function kp(){if(Gc)return eo;Gc=1;var d=wp();return eo.createRoot=d.createRoot,eo.hydrateRoot=d.hydrateRoot,eo}var xp=kp();function su(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let hr=su();function df(d){hr=d}const Bl={exec:()=>null};function Ce(d,s=""){let o=typeof d=="string"?d:d.source;const a={replace:(f,p)=>{let y=typeof p=="string"?p:p.source;return y=y.replace(ot.caret,"$1"),o=o.replace(f,y),a},getRegex:()=>new RegExp(o,s)};return a}const ot={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:d=>new RegExp(`^( {0,3}${d})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}#`),htmlBeginRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}<(?:[a-z].*>|!--)`,"i")},Sp=/^(?:[ \t]*(?:\n|$))+/,Ep=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_p=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Wl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Tp=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pf=/(?:[*+-]|\d{1,9}[.)])/,hf=Ce(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,pf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),uu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Cp=/^[^\n]+/,au=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Rp=Ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",au).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Np=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,pf).getRegex(),uo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",cu=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lp=Ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",cu).replace("tag",uo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mf=Ce(uu).replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex(),Pp=Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mf).getRegex(),fu={blockquote:Pp,code:Ep,def:Rp,fences:_p,heading:Tp,hr:Wl,html:Lp,lheading:hf,list:Np,newline:Sp,paragraph:mf,table:Bl,text:Cp},Yc=Ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex(),Ap={...fu,table:Yc,paragraph:Ce(uu).replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Yc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex()},Mp={...fu,html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cu).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Bl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ce(uu).replace("hr",Wl).replace("heading",` *#{1,6} *[^
]`).replace("lheading",hf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zp=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ip=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gf=/^( {2,}|\\)\n(?!\s*$)/,Op=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ao=/[\p{P}\p{S}]/u,du=/[\s\p{P}\p{S}]/u,yf=/[^\s\p{P}\p{S}]/u,Dp=Ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,du).getRegex(),jp=/(?!~)[\p{P}\p{S}]/u,Fp=/(?!~)[\s\p{P}\p{S}]/u,Up=/(?:[^\s\p{P}\p{S}]|~)/u,$p=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Bp=Ce(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,ao).getRegex(),vf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Hp=Ce(vf,"gu").replace(/notPunctSpace/g,yf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Wp=Ce(vf,"gu").replace(/notPunctSpace/g,Up).replace(/punctSpace/g,Fp).replace(/punct/g,jp).getRegex(),Vp=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Qp=Ce(/\\(punct)/,"gu").replace(/punct/g,ao).getRegex(),Gp=Ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Yp=Ce(cu).replace("(?:-->|$)","-->").getRegex(),Xp=Ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Yp).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),io=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Kp=Ce(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",io).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),wf=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",io).replace("ref",au).getRegex(),kf=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",au).getRegex(),Zp=Ce("reflink|nolink(?!\\()","g").replace("reflink",wf).replace("nolink",kf).getRegex(),pu={_backpedal:Bl,anyPunctuation:Qp,autolink:Gp,blockSkip:$p,br:gf,code:Ip,del:Bl,emStrongLDelim:Bp,emStrongRDelimAst:Hp,emStrongRDelimUnd:Vp,escape:zp,link:Kp,nolink:kf,punctuation:Dp,reflink:wf,reflinkSearch:Zp,tag:Xp,text:Op,url:Bl},bp={...pu,link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",io).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",io).getRegex()},tu={...pu,emStrongRDelimAst:Wp,url:Ce(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},qp={...tu,br:Ce(gf).replace("{2,}","*").getRegex(),text:Ce(tu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:fu,gfm:Ap,pedantic:Mp},Al={normal:pu,gfm:tu,breaks:qp,pedantic:bp},Jp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xc=d=>Jp[d];function bt(d,s){if(s){if(ot.escapeTest.test(d))return d.replace(ot.escapeReplace,Xc)}else if(ot.escapeTestNoEncode.test(d))return d.replace(ot.escapeReplaceNoEncode,Xc);return d}function Kc(d){try{d=encodeURI(d).replace(ot.percentDecode,"%")}catch{return null}return d}function Zc(d,s){var p;const o=d.replace(ot.findPipe,(y,k,T)=>{let _=!1,S=k;for(;--S>=0&&T[S]==="\\";)_=!_;return _?"|":" |"}),a=o.split(ot.splitPipe);let f=0;if(a[0].trim()||a.shift(),a.length>0&&!((p=a.at(-1))!=null&&p.trim())&&a.pop(),s)if(a.length>s)a.splice(s);else for(;a.length<s;)a.push("");for(;f<a.length;f++)a[f]=a[f].trim().replace(ot.slashPipe,"|");return a}function Ml(d,s,o){const a=d.length;if(a===0)return"";let f=0;for(;f<a&&(d.charAt(a-f-1)===s&&!o);)f++;return d.slice(0,a-f)}function eh(d,s){if(d.indexOf(s[1])===-1)return-1;let o=0;for(let a=0;a<d.length;a++)if(d[a]==="\\")a++;else if(d[a]===s[0])o++;else if(d[a]===s[1]&&(o--,o<0))return a;return-1}function bc(d,s,o,a,f){const p=s.href,y=s.title||null,k=d[1].replace(f.other.outputLinkReplace,"$1");if(d[0].charAt(0)!=="!"){a.state.inLink=!0;const T={type:"link",raw:o,href:p,title:y,text:k,tokens:a.inlineTokens(k)};return a.state.inLink=!1,T}return{type:"image",raw:o,href:p,title:y,text:k}}function th(d,s,o){const a=d.match(o.other.indentCodeCompensation);if(a===null)return s;const f=a[1];return s.split(`
`).map(p=>{const y=p.match(o.other.beginningSpace);if(y===null)return p;const[k]=y;return k.length>=f.length?p.slice(f.length):p}).join(`
`)}class oo{constructor(s){Re(this,"options");Re(this,"rules");Re(this,"lexer");this.options=s||hr}space(s){const o=this.rules.block.newline.exec(s);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(s){const o=this.rules.block.code.exec(s);if(o){const a=o[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?a:Ml(a,`
`)}}}fences(s){const o=this.rules.block.fences.exec(s);if(o){const a=o[0],f=th(a,o[3]||"",this.rules);return{type:"code",raw:a,lang:o[2]?o[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):o[2],text:f}}}heading(s){const o=this.rules.block.heading.exec(s);if(o){let a=o[2].trim();if(this.rules.other.endingHash.test(a)){const f=Ml(a,"#");(this.options.pedantic||!f||this.rules.other.endingSpaceChar.test(f))&&(a=f.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(s){const o=this.rules.block.hr.exec(s);if(o)return{type:"hr",raw:Ml(o[0],`
`)}}blockquote(s){const o=this.rules.block.blockquote.exec(s);if(o){let a=Ml(o[0],`
`).split(`
`),f="",p="";const y=[];for(;a.length>0;){let k=!1;const T=[];let _;for(_=0;_<a.length;_++)if(this.rules.other.blockquoteStart.test(a[_]))T.push(a[_]),k=!0;else if(!k)T.push(a[_]);else break;a=a.slice(_);const S=T.join(`
`),I=S.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");f=f?`${f}
${S}`:S,p=p?`${p}
${I}`:I;const A=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(I,y,!0),this.lexer.state.top=A,a.length===0)break;const D=y.at(-1);if((D==null?void 0:D.type)==="code")break;if((D==null?void 0:D.type)==="blockquote"){const V=D,F=V.raw+`
`+a.join(`
`),K=this.blockquote(F);y[y.length-1]=K,f=f.substring(0,f.length-V.raw.length)+K.raw,p=p.substring(0,p.length-V.text.length)+K.text;break}else if((D==null?void 0:D.type)==="list"){const V=D,F=V.raw+`
`+a.join(`
`),K=this.list(F);y[y.length-1]=K,f=f.substring(0,f.length-D.raw.length)+K.raw,p=p.substring(0,p.length-V.raw.length)+K.raw,a=F.substring(y.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:f,tokens:y,text:p}}}list(s){let o=this.rules.block.list.exec(s);if(o){let a=o[1].trim();const f=a.length>1,p={type:"list",raw:"",ordered:f,start:f?+a.slice(0,-1):"",loose:!1,items:[]};a=f?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=f?a:"[*+-]");const y=this.rules.other.listItemRegex(a);let k=!1;for(;s;){let _=!1,S="",I="";if(!(o=y.exec(s))||this.rules.block.hr.test(s))break;S=o[0],s=s.substring(S.length);let A=o[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,ae=>" ".repeat(3*ae.length)),D=s.split(`
`,1)[0],V=!A.trim(),F=0;if(this.options.pedantic?(F=2,I=A.trimStart()):V?F=o[1].length+1:(F=o[2].search(this.rules.other.nonSpaceChar),F=F>4?1:F,I=A.slice(F),F+=o[1].length),V&&this.rules.other.blankLine.test(D)&&(S+=D+`
`,s=s.substring(D.length+1),_=!0),!_){const ae=this.rules.other.nextBulletRegex(F),Ee=this.rules.other.hrRegex(F),te=this.rules.other.fencesBeginRegex(F),me=this.rules.other.headingBeginRegex(F),ne=this.rules.other.htmlBeginRegex(F);for(;s;){const Ne=s.split(`
`,1)[0];let ce;if(D=Ne,this.options.pedantic?(D=D.replace(this.rules.other.listReplaceNesting," "),ce=D):ce=D.replace(this.rules.other.tabCharGlobal," "),te.test(D)||me.test(D)||ne.test(D)||ae.test(D)||Ee.test(D))break;if(ce.search(this.rules.other.nonSpaceChar)>=F||!D.trim())I+=`
`+ce.slice(F);else{if(V||A.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||te.test(A)||me.test(A)||Ee.test(A))break;I+=`
`+D}!V&&!D.trim()&&(V=!0),S+=Ne+`
`,s=s.substring(Ne.length+1),A=ce.slice(F)}}p.loose||(k?p.loose=!0:this.rules.other.doubleBlankLine.test(S)&&(k=!0));let K=null,he;this.options.gfm&&(K=this.rules.other.listIsTask.exec(I),K&&(he=K[0]!=="[ ] ",I=I.replace(this.rules.other.listReplaceTask,""))),p.items.push({type:"list_item",raw:S,task:!!K,checked:he,loose:!1,text:I,tokens:[]}),p.raw+=S}const T=p.items.at(-1);if(T)T.raw=T.raw.trimEnd(),T.text=T.text.trimEnd();else return;p.raw=p.raw.trimEnd();for(let _=0;_<p.items.length;_++)if(this.lexer.state.top=!1,p.items[_].tokens=this.lexer.blockTokens(p.items[_].text,[]),!p.loose){const S=p.items[_].tokens.filter(A=>A.type==="space"),I=S.length>0&&S.some(A=>this.rules.other.anyLine.test(A.raw));p.loose=I}if(p.loose)for(let _=0;_<p.items.length;_++)p.items[_].loose=!0;return p}}html(s){const o=this.rules.block.html.exec(s);if(o)return{type:"html",block:!0,raw:o[0],pre:o[1]==="pre"||o[1]==="script"||o[1]==="style",text:o[0]}}def(s){const o=this.rules.block.def.exec(s);if(o){const a=o[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),f=o[2]?o[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",p=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):o[3];return{type:"def",tag:a,raw:o[0],href:f,title:p}}}table(s){var k;const o=this.rules.block.table.exec(s);if(!o||!this.rules.other.tableDelimiter.test(o[2]))return;const a=Zc(o[1]),f=o[2].replace(this.rules.other.tableAlignChars,"").split("|"),p=(k=o[3])!=null&&k.trim()?o[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],y={type:"table",raw:o[0],header:[],align:[],rows:[]};if(a.length===f.length){for(const T of f)this.rules.other.tableAlignRight.test(T)?y.align.push("right"):this.rules.other.tableAlignCenter.test(T)?y.align.push("center"):this.rules.other.tableAlignLeft.test(T)?y.align.push("left"):y.align.push(null);for(let T=0;T<a.length;T++)y.header.push({text:a[T],tokens:this.lexer.inline(a[T]),header:!0,align:y.align[T]});for(const T of p)y.rows.push(Zc(T,y.header.length).map((_,S)=>({text:_,tokens:this.lexer.inline(_),header:!1,align:y.align[S]})));return y}}lheading(s){const o=this.rules.block.lheading.exec(s);if(o)return{type:"heading",raw:o[0],depth:o[2].charAt(0)==="="?1:2,text:o[1],tokens:this.lexer.inline(o[1])}}paragraph(s){const o=this.rules.block.paragraph.exec(s);if(o){const a=o[1].charAt(o[1].length-1)===`
`?o[1].slice(0,-1):o[1];return{type:"paragraph",raw:o[0],text:a,tokens:this.lexer.inline(a)}}}text(s){const o=this.rules.block.text.exec(s);if(o)return{type:"text",raw:o[0],text:o[0],tokens:this.lexer.inline(o[0])}}escape(s){const o=this.rules.inline.escape.exec(s);if(o)return{type:"escape",raw:o[0],text:o[1]}}tag(s){const o=this.rules.inline.tag.exec(s);if(o)return!this.lexer.state.inLink&&this.rules.other.startATag.test(o[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(s){const o=this.rules.inline.link.exec(s);if(o){const a=o[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;const y=Ml(a.slice(0,-1),"\\");if((a.length-y.length)%2===0)return}else{const y=eh(o[2],"()");if(y>-1){const T=(o[0].indexOf("!")===0?5:4)+o[1].length+y;o[2]=o[2].substring(0,y),o[0]=o[0].substring(0,T).trim(),o[3]=""}}let f=o[2],p="";if(this.options.pedantic){const y=this.rules.other.pedanticHrefTitle.exec(f);y&&(f=y[1],p=y[3])}else p=o[3]?o[3].slice(1,-1):"";return f=f.trim(),this.rules.other.startAngleBracket.test(f)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?f=f.slice(1):f=f.slice(1,-1)),bc(o,{href:f&&f.replace(this.rules.inline.anyPunctuation,"$1"),title:p&&p.replace(this.rules.inline.anyPunctuation,"$1")},o[0],this.lexer,this.rules)}}reflink(s,o){let a;if((a=this.rules.inline.reflink.exec(s))||(a=this.rules.inline.nolink.exec(s))){const f=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),p=o[f.toLowerCase()];if(!p){const y=a[0].charAt(0);return{type:"text",raw:y,text:y}}return bc(a,p,a[0],this.lexer,this.rules)}}emStrong(s,o,a=""){let f=this.rules.inline.emStrongLDelim.exec(s);if(!f||f[3]&&a.match(this.rules.other.unicodeAlphaNumeric))return;if(!(f[1]||f[2]||"")||!a||this.rules.inline.punctuation.exec(a)){const y=[...f[0]].length-1;let k,T,_=y,S=0;const I=f[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(I.lastIndex=0,o=o.slice(-1*s.length+y);(f=I.exec(o))!=null;){if(k=f[1]||f[2]||f[3]||f[4]||f[5]||f[6],!k)continue;if(T=[...k].length,f[3]||f[4]){_+=T;continue}else if((f[5]||f[6])&&y%3&&!((y+T)%3)){S+=T;continue}if(_-=T,_>0)continue;T=Math.min(T,T+_+S);const A=[...f[0]][0].length,D=s.slice(0,y+f.index+A+T);if(Math.min(y,T)%2){const F=D.slice(1,-1);return{type:"em",raw:D,text:F,tokens:this.lexer.inlineTokens(F)}}const V=D.slice(2,-2);return{type:"strong",raw:D,text:V,tokens:this.lexer.inlineTokens(V)}}}}codespan(s){const o=this.rules.inline.code.exec(s);if(o){let a=o[2].replace(this.rules.other.newLineCharGlobal," ");const f=this.rules.other.nonSpaceChar.test(a),p=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return f&&p&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:o[0],text:a}}}br(s){const o=this.rules.inline.br.exec(s);if(o)return{type:"br",raw:o[0]}}del(s){const o=this.rules.inline.del.exec(s);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(s){const o=this.rules.inline.autolink.exec(s);if(o){let a,f;return o[2]==="@"?(a=o[1],f="mailto:"+a):(a=o[1],f=a),{type:"link",raw:o[0],text:a,href:f,tokens:[{type:"text",raw:a,text:a}]}}}url(s){var a;let o;if(o=this.rules.inline.url.exec(s)){let f,p;if(o[2]==="@")f=o[0],p="mailto:"+f;else{let y;do y=o[0],o[0]=((a=this.rules.inline._backpedal.exec(o[0]))==null?void 0:a[0])??"";while(y!==o[0]);f=o[0],o[1]==="www."?p="http://"+o[0]:p=o[0]}return{type:"link",raw:o[0],text:f,href:p,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(s){const o=this.rules.inline.text.exec(s);if(o){const a=this.lexer.state.inRawBlock;return{type:"text",raw:o[0],text:o[0],escaped:a}}}}class Pt{constructor(s){Re(this,"tokens");Re(this,"options");Re(this,"state");Re(this,"tokenizer");Re(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=s||hr,this.options.tokenizer=this.options.tokenizer||new oo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const o={other:ot,block:to.normal,inline:Al.normal};this.options.pedantic?(o.block=to.pedantic,o.inline=Al.pedantic):this.options.gfm&&(o.block=to.gfm,this.options.breaks?o.inline=Al.breaks:o.inline=Al.gfm),this.tokenizer.rules=o}static get rules(){return{block:to,inline:Al}}static lex(s,o){return new Pt(o).lex(s)}static lexInline(s,o){return new Pt(o).inlineTokens(s)}lex(s){s=s.replace(ot.carriageReturn,`
`),this.blockTokens(s,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){const a=this.inlineQueue[o];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(s,o=[],a=!1){var f,p,y;for(this.options.pedantic&&(s=s.replace(ot.tabCharGlobal," ").replace(ot.spaceLine,""));s;){let k;if((p=(f=this.options.extensions)==null?void 0:f.block)!=null&&p.some(_=>(k=_.call({lexer:this},s,o))?(s=s.substring(k.raw.length),o.push(k),!0):!1))continue;if(k=this.tokenizer.space(s)){s=s.substring(k.raw.length);const _=o.at(-1);k.raw.length===1&&_!==void 0?_.raw+=`
`:o.push(k);continue}if(k=this.tokenizer.code(s)){s=s.substring(k.raw.length);const _=o.at(-1);(_==null?void 0:_.type)==="paragraph"||(_==null?void 0:_.type)==="text"?(_.raw+=`
`+k.raw,_.text+=`
`+k.text,this.inlineQueue.at(-1).src=_.text):o.push(k);continue}if(k=this.tokenizer.fences(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.heading(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.hr(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.blockquote(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.list(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.html(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.def(s)){s=s.substring(k.raw.length);const _=o.at(-1);(_==null?void 0:_.type)==="paragraph"||(_==null?void 0:_.type)==="text"?(_.raw+=`
`+k.raw,_.text+=`
`+k.raw,this.inlineQueue.at(-1).src=_.text):this.tokens.links[k.tag]||(this.tokens.links[k.tag]={href:k.href,title:k.title});continue}if(k=this.tokenizer.table(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.lheading(s)){s=s.substring(k.raw.length),o.push(k);continue}let T=s;if((y=this.options.extensions)!=null&&y.startBlock){let _=1/0;const S=s.slice(1);let I;this.options.extensions.startBlock.forEach(A=>{I=A.call({lexer:this},S),typeof I=="number"&&I>=0&&(_=Math.min(_,I))}),_<1/0&&_>=0&&(T=s.substring(0,_+1))}if(this.state.top&&(k=this.tokenizer.paragraph(T))){const _=o.at(-1);a&&(_==null?void 0:_.type)==="paragraph"?(_.raw+=`
`+k.raw,_.text+=`
`+k.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=_.text):o.push(k),a=T.length!==s.length,s=s.substring(k.raw.length);continue}if(k=this.tokenizer.text(s)){s=s.substring(k.raw.length);const _=o.at(-1);(_==null?void 0:_.type)==="text"?(_.raw+=`
`+k.raw,_.text+=`
`+k.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=_.text):o.push(k);continue}if(s){const _="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(_);break}else throw new Error(_)}}return this.state.top=!0,o}inline(s,o=[]){return this.inlineQueue.push({src:s,tokens:o}),o}inlineTokens(s,o=[]){var k,T,_;let a=s,f=null;if(this.tokens.links){const S=Object.keys(this.tokens.links);if(S.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)S.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(f=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,f.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let p=!1,y="";for(;s;){p||(y=""),p=!1;let S;if((T=(k=this.options.extensions)==null?void 0:k.inline)!=null&&T.some(A=>(S=A.call({lexer:this},s,o))?(s=s.substring(S.raw.length),o.push(S),!0):!1))continue;if(S=this.tokenizer.escape(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.tag(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.link(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.reflink(s,this.tokens.links)){s=s.substring(S.raw.length);const A=o.at(-1);S.type==="text"&&(A==null?void 0:A.type)==="text"?(A.raw+=S.raw,A.text+=S.text):o.push(S);continue}if(S=this.tokenizer.emStrong(s,a,y)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.codespan(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.br(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.del(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.autolink(s)){s=s.substring(S.raw.length),o.push(S);continue}if(!this.state.inLink&&(S=this.tokenizer.url(s))){s=s.substring(S.raw.length),o.push(S);continue}let I=s;if((_=this.options.extensions)!=null&&_.startInline){let A=1/0;const D=s.slice(1);let V;this.options.extensions.startInline.forEach(F=>{V=F.call({lexer:this},D),typeof V=="number"&&V>=0&&(A=Math.min(A,V))}),A<1/0&&A>=0&&(I=s.substring(0,A+1))}if(S=this.tokenizer.inlineText(I)){s=s.substring(S.raw.length),S.raw.slice(-1)!=="_"&&(y=S.raw.slice(-1)),p=!0;const A=o.at(-1);(A==null?void 0:A.type)==="text"?(A.raw+=S.raw,A.text+=S.text):o.push(S);continue}if(s){const A="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(A);break}else throw new Error(A)}}return o}}class so{constructor(s){Re(this,"options");Re(this,"parser");this.options=s||hr}space(s){return""}code({text:s,lang:o,escaped:a}){var y;const f=(y=(o||"").match(ot.notSpaceStart))==null?void 0:y[0],p=s.replace(ot.endingNewline,"")+`
`;return f?'<pre><code class="language-'+bt(f)+'">'+(a?p:bt(p,!0))+`</code></pre>
`:"<pre><code>"+(a?p:bt(p,!0))+`</code></pre>
`}blockquote({tokens:s}){return`<blockquote>
${this.parser.parse(s)}</blockquote>
`}html({text:s}){return s}heading({tokens:s,depth:o}){return`<h${o}>${this.parser.parseInline(s)}</h${o}>
`}hr(s){return`<hr>
`}list(s){const o=s.ordered,a=s.start;let f="";for(let k=0;k<s.items.length;k++){const T=s.items[k];f+=this.listitem(T)}const p=o?"ol":"ul",y=o&&a!==1?' start="'+a+'"':"";return"<"+p+y+`>
`+f+"</"+p+`>
`}listitem(s){var a;let o="";if(s.task){const f=this.checkbox({checked:!!s.checked});s.loose?((a=s.tokens[0])==null?void 0:a.type)==="paragraph"?(s.tokens[0].text=f+" "+s.tokens[0].text,s.tokens[0].tokens&&s.tokens[0].tokens.length>0&&s.tokens[0].tokens[0].type==="text"&&(s.tokens[0].tokens[0].text=f+" "+bt(s.tokens[0].tokens[0].text),s.tokens[0].tokens[0].escaped=!0)):s.tokens.unshift({type:"text",raw:f+" ",text:f+" ",escaped:!0}):o+=f+" "}return o+=this.parser.parse(s.tokens,!!s.loose),`<li>${o}</li>
`}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
`}table(s){let o="",a="";for(let p=0;p<s.header.length;p++)a+=this.tablecell(s.header[p]);o+=this.tablerow({text:a});let f="";for(let p=0;p<s.rows.length;p++){const y=s.rows[p];a="";for(let k=0;k<y.length;k++)a+=this.tablecell(y[k]);f+=this.tablerow({text:a})}return f&&(f=`<tbody>${f}</tbody>`),`<table>
<thead>
`+o+`</thead>
`+f+`</table>
`}tablerow({text:s}){return`<tr>
${s}</tr>
`}tablecell(s){const o=this.parser.parseInline(s.tokens),a=s.header?"th":"td";return(s.align?`<${a} align="${s.align}">`:`<${a}>`)+o+`</${a}>
`}strong({tokens:s}){return`<strong>${this.parser.parseInline(s)}</strong>`}em({tokens:s}){return`<em>${this.parser.parseInline(s)}</em>`}codespan({text:s}){return`<code>${bt(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:o,tokens:a}){const f=this.parser.parseInline(a),p=Kc(s);if(p===null)return f;s=p;let y='<a href="'+s+'"';return o&&(y+=' title="'+bt(o)+'"'),y+=">"+f+"</a>",y}image({href:s,title:o,text:a}){const f=Kc(s);if(f===null)return bt(a);s=f;let p=`<img src="${s}" alt="${a}"`;return o&&(p+=` title="${bt(o)}"`),p+=">",p}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:bt(s.text)}}class hu{strong({text:s}){return s}em({text:s}){return s}codespan({text:s}){return s}del({text:s}){return s}html({text:s}){return s}text({text:s}){return s}link({text:s}){return""+s}image({text:s}){return""+s}br(){return""}}class At{constructor(s){Re(this,"options");Re(this,"renderer");Re(this,"textRenderer");this.options=s||hr,this.options.renderer=this.options.renderer||new so,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new hu}static parse(s,o){return new At(o).parse(s)}static parseInline(s,o){return new At(o).parseInline(s)}parse(s,o=!0){var f,p;let a="";for(let y=0;y<s.length;y++){const k=s[y];if((p=(f=this.options.extensions)==null?void 0:f.renderers)!=null&&p[k.type]){const _=k,S=this.options.extensions.renderers[_.type].call({parser:this},_);if(S!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(_.type)){a+=S||"";continue}}const T=k;switch(T.type){case"space":{a+=this.renderer.space(T);continue}case"hr":{a+=this.renderer.hr(T);continue}case"heading":{a+=this.renderer.heading(T);continue}case"code":{a+=this.renderer.code(T);continue}case"table":{a+=this.renderer.table(T);continue}case"blockquote":{a+=this.renderer.blockquote(T);continue}case"list":{a+=this.renderer.list(T);continue}case"html":{a+=this.renderer.html(T);continue}case"paragraph":{a+=this.renderer.paragraph(T);continue}case"text":{let _=T,S=this.renderer.text(_);for(;y+1<s.length&&s[y+1].type==="text";)_=s[++y],S+=`
`+this.renderer.text(_);o?a+=this.renderer.paragraph({type:"paragraph",raw:S,text:S,tokens:[{type:"text",raw:S,text:S,escaped:!0}]}):a+=S;continue}default:{const _='Token with "'+T.type+'" type was not found.';if(this.options.silent)return console.error(_),"";throw new Error(_)}}}return a}parseInline(s,o=this.renderer){var f,p;let a="";for(let y=0;y<s.length;y++){const k=s[y];if((p=(f=this.options.extensions)==null?void 0:f.renderers)!=null&&p[k.type]){const _=this.options.extensions.renderers[k.type].call({parser:this},k);if(_!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(k.type)){a+=_||"";continue}}const T=k;switch(T.type){case"escape":{a+=o.text(T);break}case"html":{a+=o.html(T);break}case"link":{a+=o.link(T);break}case"image":{a+=o.image(T);break}case"strong":{a+=o.strong(T);break}case"em":{a+=o.em(T);break}case"codespan":{a+=o.codespan(T);break}case"br":{a+=o.br(T);break}case"del":{a+=o.del(T);break}case"text":{a+=o.text(T);break}default:{const _='Token with "'+T.type+'" type was not found.';if(this.options.silent)return console.error(_),"";throw new Error(_)}}}return a}}class Hl{constructor(s){Re(this,"options");Re(this,"block");this.options=s||hr}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}provideLexer(){return this.block?Pt.lex:Pt.lexInline}provideParser(){return this.block?At.parse:At.parseInline}}Re(Hl,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class nh{constructor(...s){Re(this,"defaults",su());Re(this,"options",this.setOptions);Re(this,"parse",this.parseMarkdown(!0));Re(this,"parseInline",this.parseMarkdown(!1));Re(this,"Parser",At);Re(this,"Renderer",so);Re(this,"TextRenderer",hu);Re(this,"Lexer",Pt);Re(this,"Tokenizer",oo);Re(this,"Hooks",Hl);this.use(...s)}walkTokens(s,o){var f,p;let a=[];for(const y of s)switch(a=a.concat(o.call(this,y)),y.type){case"table":{const k=y;for(const T of k.header)a=a.concat(this.walkTokens(T.tokens,o));for(const T of k.rows)for(const _ of T)a=a.concat(this.walkTokens(_.tokens,o));break}case"list":{const k=y;a=a.concat(this.walkTokens(k.items,o));break}default:{const k=y;(p=(f=this.defaults.extensions)==null?void 0:f.childTokens)!=null&&p[k.type]?this.defaults.extensions.childTokens[k.type].forEach(T=>{const _=k[T].flat(1/0);a=a.concat(this.walkTokens(_,o))}):k.tokens&&(a=a.concat(this.walkTokens(k.tokens,o)))}}return a}use(...s){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(a=>{const f={...a};if(f.async=this.defaults.async||f.async||!1,a.extensions&&(a.extensions.forEach(p=>{if(!p.name)throw new Error("extension name required");if("renderer"in p){const y=o.renderers[p.name];y?o.renderers[p.name]=function(...k){let T=p.renderer.apply(this,k);return T===!1&&(T=y.apply(this,k)),T}:o.renderers[p.name]=p.renderer}if("tokenizer"in p){if(!p.level||p.level!=="block"&&p.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const y=o[p.level];y?y.unshift(p.tokenizer):o[p.level]=[p.tokenizer],p.start&&(p.level==="block"?o.startBlock?o.startBlock.push(p.start):o.startBlock=[p.start]:p.level==="inline"&&(o.startInline?o.startInline.push(p.start):o.startInline=[p.start]))}"childTokens"in p&&p.childTokens&&(o.childTokens[p.name]=p.childTokens)}),f.extensions=o),a.renderer){const p=this.defaults.renderer||new so(this.defaults);for(const y in a.renderer){if(!(y in p))throw new Error(`renderer '${y}' does not exist`);if(["options","parser"].includes(y))continue;const k=y,T=a.renderer[k],_=p[k];p[k]=(...S)=>{let I=T.apply(p,S);return I===!1&&(I=_.apply(p,S)),I||""}}f.renderer=p}if(a.tokenizer){const p=this.defaults.tokenizer||new oo(this.defaults);for(const y in a.tokenizer){if(!(y in p))throw new Error(`tokenizer '${y}' does not exist`);if(["options","rules","lexer"].includes(y))continue;const k=y,T=a.tokenizer[k],_=p[k];p[k]=(...S)=>{let I=T.apply(p,S);return I===!1&&(I=_.apply(p,S)),I}}f.tokenizer=p}if(a.hooks){const p=this.defaults.hooks||new Hl;for(const y in a.hooks){if(!(y in p))throw new Error(`hook '${y}' does not exist`);if(["options","block"].includes(y))continue;const k=y,T=a.hooks[k],_=p[k];Hl.passThroughHooks.has(y)?p[k]=S=>{if(this.defaults.async)return Promise.resolve(T.call(p,S)).then(A=>_.call(p,A));const I=T.call(p,S);return _.call(p,I)}:p[k]=(...S)=>{let I=T.apply(p,S);return I===!1&&(I=_.apply(p,S)),I}}f.hooks=p}if(a.walkTokens){const p=this.defaults.walkTokens,y=a.walkTokens;f.walkTokens=function(k){let T=[];return T.push(y.call(this,k)),p&&(T=T.concat(p.call(this,k))),T}}this.defaults={...this.defaults,...f}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,o){return Pt.lex(s,o??this.defaults)}parser(s,o){return At.parse(s,o??this.defaults)}parseMarkdown(s){return(a,f)=>{const p={...f},y={...this.defaults,...p},k=this.onError(!!y.silent,!!y.async);if(this.defaults.async===!0&&p.async===!1)return k(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return k(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return k(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));y.hooks&&(y.hooks.options=y,y.hooks.block=s);const T=y.hooks?y.hooks.provideLexer():s?Pt.lex:Pt.lexInline,_=y.hooks?y.hooks.provideParser():s?At.parse:At.parseInline;if(y.async)return Promise.resolve(y.hooks?y.hooks.preprocess(a):a).then(S=>T(S,y)).then(S=>y.hooks?y.hooks.processAllTokens(S):S).then(S=>y.walkTokens?Promise.all(this.walkTokens(S,y.walkTokens)).then(()=>S):S).then(S=>_(S,y)).then(S=>y.hooks?y.hooks.postprocess(S):S).catch(k);try{y.hooks&&(a=y.hooks.preprocess(a));let S=T(a,y);y.hooks&&(S=y.hooks.processAllTokens(S)),y.walkTokens&&this.walkTokens(S,y.walkTokens);let I=_(S,y);return y.hooks&&(I=y.hooks.postprocess(I)),I}catch(S){return k(S)}}}onError(s,o){return a=>{if(a.message+=`
Please report this to https://github.com/markedjs/marked.`,s){const f="<p>An error occurred:</p><pre>"+bt(a.message+"",!0)+"</pre>";return o?Promise.resolve(f):f}if(o)return Promise.reject(a);throw a}}}const pr=new nh;function Se(d,s){return pr.parse(d,s)}Se.options=Se.setOptions=function(d){return pr.setOptions(d),Se.defaults=pr.defaults,df(Se.defaults),Se};Se.getDefaults=su;Se.defaults=hr;Se.use=function(...d){return pr.use(...d),Se.defaults=pr.defaults,df(Se.defaults),Se};Se.walkTokens=function(d,s){return pr.walkTokens(d,s)};Se.parseInline=pr.parseInline;Se.Parser=At;Se.parser=At.parse;Se.Renderer=so;Se.TextRenderer=hu;Se.Lexer=Pt;Se.lexer=Pt.lex;Se.Tokenizer=oo;Se.Hooks=Hl;Se.parse=Se;Se.options;Se.setOptions;Se.use;Se.walkTokens;Se.parseInline;At.parse;Pt.lex;/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:xf,setPrototypeOf:qc,isFrozen:rh,getPrototypeOf:lh,getOwnPropertyDescriptor:ih}=Object;let{freeze:st,seal:Mt,create:Sf}=Object,{apply:nu,construct:ru}=typeof Reflect<"u"&&Reflect;st||(st=function(s){return s});Mt||(Mt=function(s){return s});nu||(nu=function(s,o,a){return s.apply(o,a)});ru||(ru=function(s,o){return new s(...o)});const no=wt(Array.prototype.forEach),Jc=wt(Array.prototype.pop),zl=wt(Array.prototype.push),lo=wt(String.prototype.toLowerCase),Zs=wt(String.prototype.toString),ef=wt(String.prototype.match),Il=wt(String.prototype.replace),oh=wt(String.prototype.indexOf),sh=wt(String.prototype.trim),Ht=wt(Object.prototype.hasOwnProperty),it=wt(RegExp.prototype.test),Ol=uh(TypeError);function wt(d){return function(s){for(var o=arguments.length,a=new Array(o>1?o-1:0),f=1;f<o;f++)a[f-1]=arguments[f];return nu(d,s,a)}}function uh(d){return function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];return ru(d,o)}}function se(d,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lo;qc&&qc(d,null);let a=s.length;for(;a--;){let f=s[a];if(typeof f=="string"){const p=o(f);p!==f&&(rh(s)||(s[a]=p),f=p)}d[f]=!0}return d}function ah(d){for(let s=0;s<d.length;s++)Ht(d,s)||(d[s]=null);return d}function dr(d){const s=Sf(null);for(const[o,a]of xf(d))Ht(d,o)&&(Array.isArray(a)?s[o]=ah(a):a&&typeof a=="object"&&a.constructor===Object?s[o]=dr(a):s[o]=a);return s}function Dl(d,s){for(;d!==null;){const a=ih(d,s);if(a){if(a.get)return wt(a.get);if(typeof a.value=="function")return wt(a.value)}d=lh(d)}function o(){return null}return o}const tf=st(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bs=st(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),qs=st(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ch=st(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Js=st(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),fh=st(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),nf=st(["#text"]),rf=st(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),eu=st(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lf=st(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ro=st(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dh=Mt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ph=Mt(/<%[\w\W]*|[\w\W]*%>/gm),hh=Mt(/\$\{[\w\W]*}/gm),mh=Mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),gh=Mt(/^aria-[\-\w]+$/),Ef=Mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yh=Mt(/^(?:\w+script|data):/i),vh=Mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_f=Mt(/^html$/i),wh=Mt(/^[a-z][.\w]*(-[.\w]+)+$/i);var of=Object.freeze({__proto__:null,ARIA_ATTR:gh,ATTR_WHITESPACE:vh,CUSTOM_ELEMENT:wh,DATA_ATTR:mh,DOCTYPE_NAME:_f,ERB_EXPR:ph,IS_ALLOWED_URI:Ef,IS_SCRIPT_OR_DATA:yh,MUSTACHE_EXPR:dh,TMPLIT_EXPR:hh});const jl={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},kh=function(){return typeof window>"u"?null:window},xh=function(s,o){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let a=null;const f="data-tt-policy-suffix";o&&o.hasAttribute(f)&&(a=o.getAttribute(f));const p="dompurify"+(a?"#"+a:"");try{return s.createPolicy(p,{createHTML(y){return y},createScriptURL(y){return y}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},sf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Tf(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kh();const s=X=>Tf(X);if(s.version="3.2.3",s.removed=[],!d||!d.document||d.document.nodeType!==jl.document)return s.isSupported=!1,s;let{document:o}=d;const a=o,f=a.currentScript,{DocumentFragment:p,HTMLTemplateElement:y,Node:k,Element:T,NodeFilter:_,NamedNodeMap:S=d.NamedNodeMap||d.MozNamedAttrMap,HTMLFormElement:I,DOMParser:A,trustedTypes:D}=d,V=T.prototype,F=Dl(V,"cloneNode"),K=Dl(V,"remove"),he=Dl(V,"nextSibling"),ae=Dl(V,"childNodes"),Ee=Dl(V,"parentNode");if(typeof y=="function"){const X=o.createElement("template");X.content&&X.content.ownerDocument&&(o=X.content.ownerDocument)}let te,me="";const{implementation:ne,createNodeIterator:Ne,createDocumentFragment:ce,getElementsByTagName:kt}=o,{importNode:nt}=a;let ze=sf();s.isSupported=typeof xf=="function"&&typeof Ee=="function"&&ne&&ne.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:J,ERB_EXPR:fe,TMPLIT_EXPR:ue,DATA_ATTR:de,ARIA_ATTR:we,IS_SCRIPT_OR_DATA:_e,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:Q}=of;let{IS_ALLOWED_URI:j}=of,v=null;const C=se({},[...tf,...bs,...qs,...Js,...nf]);let Y=null;const re=se({},[...rf,...eu,...lf,...ro]);let Z=Object.seal(Sf(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,ke=null,ge=!0,Te=!0,Ze=!1,Vn=!0,qt=!1,pn=!0,zt=!1,mr=!1,gr=!1,Wt=!1,Qn=!1,hn=!1,mn=!0,Jt=!1;const Qr="user-content-";let yr=!0,gn=!1,en={},tn=null;const vr=se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gn=null;const Gr=se({},["audio","video","img","source","image","track"]);let nn=null;const yn=se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wr="http://www.w3.org/1998/Math/MathML",Yn="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml";let vn=xt,Xn=!1,Kn=null;const Yr=se({},[wr,Yn,xt],Zs);let wn=se({},["mi","mo","mn","ms","mtext"]),kn=se({},["annotation-xml"]);const xn=se({},["title","style","font","a","script"]);let St=null;const Vl=["application/xhtml+xml","text/html"],Ql="text/html";let Fe=null,rn=null;const Gl=o.createElement("form"),kr=function(g){return g instanceof RegExp||g instanceof Function},xr=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(rn&&rn===g)){if((!g||typeof g!="object")&&(g={}),g=dr(g),St=Vl.indexOf(g.PARSER_MEDIA_TYPE)===-1?Ql:g.PARSER_MEDIA_TYPE,Fe=St==="application/xhtml+xml"?Zs:lo,v=Ht(g,"ALLOWED_TAGS")?se({},g.ALLOWED_TAGS,Fe):C,Y=Ht(g,"ALLOWED_ATTR")?se({},g.ALLOWED_ATTR,Fe):re,Kn=Ht(g,"ALLOWED_NAMESPACES")?se({},g.ALLOWED_NAMESPACES,Zs):Yr,nn=Ht(g,"ADD_URI_SAFE_ATTR")?se(dr(yn),g.ADD_URI_SAFE_ATTR,Fe):yn,Gn=Ht(g,"ADD_DATA_URI_TAGS")?se(dr(Gr),g.ADD_DATA_URI_TAGS,Fe):Gr,tn=Ht(g,"FORBID_CONTENTS")?se({},g.FORBID_CONTENTS,Fe):vr,ie=Ht(g,"FORBID_TAGS")?se({},g.FORBID_TAGS,Fe):{},ke=Ht(g,"FORBID_ATTR")?se({},g.FORBID_ATTR,Fe):{},en=Ht(g,"USE_PROFILES")?g.USE_PROFILES:!1,ge=g.ALLOW_ARIA_ATTR!==!1,Te=g.ALLOW_DATA_ATTR!==!1,Ze=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Vn=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qt=g.SAFE_FOR_TEMPLATES||!1,pn=g.SAFE_FOR_XML!==!1,zt=g.WHOLE_DOCUMENT||!1,Wt=g.RETURN_DOM||!1,Qn=g.RETURN_DOM_FRAGMENT||!1,hn=g.RETURN_TRUSTED_TYPE||!1,gr=g.FORCE_BODY||!1,mn=g.SANITIZE_DOM!==!1,Jt=g.SANITIZE_NAMED_PROPS||!1,yr=g.KEEP_CONTENT!==!1,gn=g.IN_PLACE||!1,j=g.ALLOWED_URI_REGEXP||Ef,vn=g.NAMESPACE||xt,wn=g.MATHML_TEXT_INTEGRATION_POINTS||wn,kn=g.HTML_INTEGRATION_POINTS||kn,Z=g.CUSTOM_ELEMENT_HANDLING||{},g.CUSTOM_ELEMENT_HANDLING&&kr(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=g.CUSTOM_ELEMENT_HANDLING.tagNameCheck),g.CUSTOM_ELEMENT_HANDLING&&kr(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qt&&(Te=!1),Qn&&(Wt=!0),en&&(v=se({},nf),Y=[],en.html===!0&&(se(v,tf),se(Y,rf)),en.svg===!0&&(se(v,bs),se(Y,eu),se(Y,ro)),en.svgFilters===!0&&(se(v,qs),se(Y,eu),se(Y,ro)),en.mathMl===!0&&(se(v,Js),se(Y,lf),se(Y,ro))),g.ADD_TAGS&&(v===C&&(v=dr(v)),se(v,g.ADD_TAGS,Fe)),g.ADD_ATTR&&(Y===re&&(Y=dr(Y)),se(Y,g.ADD_ATTR,Fe)),g.ADD_URI_SAFE_ATTR&&se(nn,g.ADD_URI_SAFE_ATTR,Fe),g.FORBID_CONTENTS&&(tn===vr&&(tn=dr(tn)),se(tn,g.FORBID_CONTENTS,Fe)),yr&&(v["#text"]=!0),zt&&se(v,["html","head","body"]),v.table&&(se(v,["tbody"]),delete ie.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ol('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ol('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=g.TRUSTED_TYPES_POLICY,me=te.createHTML("")}else te===void 0&&(te=xh(D,f)),te!==null&&typeof me=="string"&&(me=te.createHTML(""));st&&st(g),rn=g}},Sn=se({},[...bs,...qs,...ch]),Sr=se({},[...Js,...fh]),Zn=function(g){let M=Ee(g);(!M||!M.tagName)&&(M={namespaceURI:vn,tagName:"template"});const H=lo(g.tagName),Le=lo(M.tagName);return Kn[g.namespaceURI]?g.namespaceURI===Yn?M.namespaceURI===xt?H==="svg":M.namespaceURI===wr?H==="svg"&&(Le==="annotation-xml"||wn[Le]):!!Sn[H]:g.namespaceURI===wr?M.namespaceURI===xt?H==="math":M.namespaceURI===Yn?H==="math"&&kn[Le]:!!Sr[H]:g.namespaceURI===xt?M.namespaceURI===Yn&&!kn[Le]||M.namespaceURI===wr&&!wn[Le]?!1:!Sr[H]&&(xn[H]||!Sn[H]):!!(St==="application/xhtml+xml"&&Kn[g.namespaceURI]):!1},Et=function(g){zl(s.removed,{element:g});try{Ee(g).removeChild(g)}catch{K(g)}},Vt=function(g,M){try{zl(s.removed,{attribute:M.getAttributeNode(g),from:M})}catch{zl(s.removed,{attribute:null,from:M})}if(M.removeAttribute(g),g==="is")if(Wt||Qn)try{Et(M)}catch{}else try{M.setAttribute(g,"")}catch{}},bn=function(g){let M=null,H=null;if(gr)g="<remove></remove>"+g;else{const le=ef(g,/^[\r\n\t ]+/);H=le&&le[0]}St==="application/xhtml+xml"&&vn===xt&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const Le=te?te.createHTML(g):g;if(vn===xt)try{M=new A().parseFromString(Le,St)}catch{}if(!M||!M.documentElement){M=ne.createDocument(vn,"template",null);try{M.documentElement.innerHTML=Xn?me:Le}catch{}}const Ve=M.body||M.documentElement;return g&&H&&Ve.insertBefore(o.createTextNode(H),Ve.childNodes[0]||null),vn===xt?kt.call(M,zt?"html":"body")[0]:zt?M.documentElement:Ve},qn=function(g){return Ne.call(g.ownerDocument||g,g,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)},Jn=function(g){return g instanceof I&&(typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||!(g.attributes instanceof S)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function")},Yl=function(g){return typeof k=="function"&&g instanceof k};function It(X,g,M){no(X,H=>{H.call(s,g,M,rn)})}const Xl=function(g){let M=null;if(It(ze.beforeSanitizeElements,g,null),Jn(g))return Et(g),!0;const H=Fe(g.nodeName);if(It(ze.uponSanitizeElement,g,{tagName:H,allowedTags:v}),g.hasChildNodes()&&!Yl(g.firstElementChild)&&it(/<[/\w]/g,g.innerHTML)&&it(/<[/\w]/g,g.textContent)||g.nodeType===jl.progressingInstruction||pn&&g.nodeType===jl.comment&&it(/<[/\w]/g,g.data))return Et(g),!0;if(!v[H]||ie[H]){if(!ie[H]&&Xr(H)&&(Z.tagNameCheck instanceof RegExp&&it(Z.tagNameCheck,H)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(H)))return!1;if(yr&&!tn[H]){const Le=Ee(g)||g.parentNode,Ve=ae(g)||g.childNodes;if(Ve&&Le){const le=Ve.length;for(let be=le-1;be>=0;--be){const ut=F(Ve[be],!0);ut.__removalCount=(g.__removalCount||0)+1,Le.insertBefore(ut,he(g))}}}return Et(g),!0}return g instanceof T&&!Zn(g)||(H==="noscript"||H==="noembed"||H==="noframes")&&it(/<\/no(script|embed|frames)/i,g.innerHTML)?(Et(g),!0):(qt&&g.nodeType===jl.text&&(M=g.textContent,no([J,fe,ue],Le=>{M=Il(M,Le," ")}),g.textContent!==M&&(zl(s.removed,{element:g.cloneNode()}),g.textContent=M)),It(ze.afterSanitizeElements,g,null),!1)},Qt=function(g,M,H){if(mn&&(M==="id"||M==="name")&&(H in o||H in Gl))return!1;if(!(Te&&!ke[M]&&it(de,M))){if(!(ge&&it(we,M))){if(!Y[M]||ke[M]){if(!(Xr(g)&&(Z.tagNameCheck instanceof RegExp&&it(Z.tagNameCheck,g)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(g))&&(Z.attributeNameCheck instanceof RegExp&&it(Z.attributeNameCheck,M)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(M))||M==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&it(Z.tagNameCheck,H)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(H))))return!1}else if(!nn[M]){if(!it(j,Il(H,O,""))){if(!((M==="src"||M==="xlink:href"||M==="href")&&g!=="script"&&oh(H,"data:")===0&&Gn[g])){if(!(Ze&&!it(_e,Il(H,O,"")))){if(H)return!1}}}}}}return!0},Xr=function(g){return g!=="annotation-xml"&&ef(g,Q)},Kr=function(g){It(ze.beforeSanitizeAttributes,g,null);const{attributes:M}=g;if(!M||Jn(g))return;const H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Le=M.length;for(;Le--;){const Ve=M[Le],{name:le,namespaceURI:be,value:ut}=Ve,En=Fe(le);let $e=le==="value"?ut:sh(ut);if(H.attrName=En,H.attrValue=$e,H.keepAttr=!0,H.forceKeepAttr=void 0,It(ze.uponSanitizeAttribute,g,H),$e=H.attrValue,Jt&&(En==="id"||En==="name")&&(Vt(le,g),$e=Qr+$e),pn&&it(/((--!?|])>)|<\/(style|title)/i,$e)){Vt(le,g);continue}if(H.forceKeepAttr||(Vt(le,g),!H.keepAttr))continue;if(!Vn&&it(/\/>/i,$e)){Vt(le,g);continue}qt&&no([J,fe,ue],Zr=>{$e=Il($e,Zr," ")});const Kl=Fe(g.nodeName);if(Qt(Kl,En,$e)){if(te&&typeof D=="object"&&typeof D.getAttributeType=="function"&&!be)switch(D.getAttributeType(Kl,En)){case"TrustedHTML":{$e=te.createHTML($e);break}case"TrustedScriptURL":{$e=te.createScriptURL($e);break}}try{be?g.setAttributeNS(be,le,$e):g.setAttribute(le,$e),Jn(g)?Et(g):Jc(s.removed)}catch{}}}It(ze.afterSanitizeAttributes,g,null)},co=function X(g){let M=null;const H=qn(g);for(It(ze.beforeSanitizeShadowDOM,g,null);M=H.nextNode();)It(ze.uponSanitizeShadowNode,M,null),Xl(M),Kr(M),M.content instanceof p&&X(M.content);It(ze.afterSanitizeShadowDOM,g,null)};return s.sanitize=function(X){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,H=null,Le=null,Ve=null;if(Xn=!X,Xn&&(X="<!-->"),typeof X!="string"&&!Yl(X))if(typeof X.toString=="function"){if(X=X.toString(),typeof X!="string")throw Ol("dirty is not a string, aborting")}else throw Ol("toString is not a function");if(!s.isSupported)return X;if(mr||xr(g),s.removed=[],typeof X=="string"&&(gn=!1),gn){if(X.nodeName){const ut=Fe(X.nodeName);if(!v[ut]||ie[ut])throw Ol("root node is forbidden and cannot be sanitized in-place")}}else if(X instanceof k)M=bn("<!---->"),H=M.ownerDocument.importNode(X,!0),H.nodeType===jl.element&&H.nodeName==="BODY"||H.nodeName==="HTML"?M=H:M.appendChild(H);else{if(!Wt&&!qt&&!zt&&X.indexOf("<")===-1)return te&&hn?te.createHTML(X):X;if(M=bn(X),!M)return Wt?null:hn?me:""}M&&gr&&Et(M.firstChild);const le=qn(gn?X:M);for(;Le=le.nextNode();)Xl(Le),Kr(Le),Le.content instanceof p&&co(Le.content);if(gn)return X;if(Wt){if(Qn)for(Ve=ce.call(M.ownerDocument);M.firstChild;)Ve.appendChild(M.firstChild);else Ve=M;return(Y.shadowroot||Y.shadowrootmode)&&(Ve=nt.call(a,Ve,!0)),Ve}let be=zt?M.outerHTML:M.innerHTML;return zt&&v["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&it(_f,M.ownerDocument.doctype.name)&&(be="<!DOCTYPE "+M.ownerDocument.doctype.name+`>
`+be),qt&&no([J,fe,ue],ut=>{be=Il(be,ut," ")}),te&&hn?te.createHTML(be):be},s.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xr(X),mr=!0},s.clearConfig=function(){rn=null,mr=!1},s.isValidAttribute=function(X,g,M){rn||xr({});const H=Fe(X),Le=Fe(g);return Qt(H,Le,M)},s.addHook=function(X,g){typeof g=="function"&&zl(ze[X],g)},s.removeHook=function(X){return Jc(ze[X])},s.removeHooks=function(X){ze[X]=[]},s.removeAllHooks=function(){ze=sf()},s}var Sh=Tf();function Eh(d){return L.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M12 8V4H8"}),L.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),L.jsx("path",{d:"M2 14h2"}),L.jsx("path",{d:"M20 14h2"}),L.jsx("path",{d:"M15 13v2"}),L.jsx("path",{d:"M9 13v2"})]})}function _h(d){return L.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),L.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}var lu=function(){return(lu=Object.assign||function(d){for(var s,o=1,a=arguments.length;o<a;o++)for(var f in s=arguments[o])Object.prototype.hasOwnProperty.call(s,f)&&(d[f]=s[f]);return d}).apply(this,arguments)},Fl,Ul,iu=ve.createContext(void 0),uf="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML",af="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js",Th=function(S){var s=S.config,o=S.version,o=o===void 0?3:o,a=S.src,a=a===void 0?o===2?uf:af:a,f=S.onStartup,p=S.onLoad,y=S.onError,k=S.typesettingOptions,T=S.renderMode,T=T===void 0?"post":T,_=S.hideUntilTypeset,S=S.children,A=ve.useContext(iu);if((A==null?void 0:A.version)!==void 0&&(A==null?void 0:A.version)!==o)throw Error("Cannot nest MathJaxContexts with different versions. MathJaxContexts should not be nested at all but if they are, they cannot have different versions. Stick with one version of MathJax in your app and avoid using more than one MathJaxContext.");if(o===2&&Ul!==void 0||o===3&&Fl!==void 0)throw Error("Cannot use MathJax versions 2 and 3 simultaneously in the same app due to how MathJax is set up in the browser; either you have multiple MathJaxContexts with different versions or you have mounted and unmounted MathJaxContexts with different versions. Please stick with one version of MathJax in your app. File an issue in the project Github page if you need this feature.");var I=ve.useRef(A),A=ve.useRef((A==null?void 0:A.version)||null);if(A.current===null)A.current=o;else if(A.current!==o)throw Error("Cannot change version of MathJax in a MathJaxContext after it has mounted. Reload the page with a new version when this must happen.");var D=a||(o===2?uf:af);function V(F,K){s&&(window.MathJax=s);var he=document.createElement("script");he.type="text/javascript",he.src=D,he.async=!1,he.addEventListener("load",function(){var ae=window.MathJax;f&&f(ae),F(ae),p&&p()}),he.addEventListener("error",function(ae){return K(ae)}),document.getElementsByTagName("head")[0].appendChild(he)}return I.current===void 0&&(A={typesettingOptions:k,renderMode:T,hideUntilTypeset:_},o===2?Fl===void 0&&(typeof window<"u"?(Fl=new Promise(V)).catch(function(F){if(!y)throw Error("Failed to download MathJax version 2 from '".concat(D,"' due to: ").concat(F));y(F)}):(Fl=Promise.reject()).catch(function(F){})):Ul===void 0&&(typeof window<"u"?(Ul=new Promise(V)).catch(function(F){if(!y)throw Error("Failed to download MathJax version 3 from '".concat(D,"' due to: ").concat(F));y(F)}):(Ul=Promise.reject()).catch(function(F){})),I.current=lu(lu({},A),o===2?{version:2,promise:Fl}:{version:3,promise:Ul})),ff.createElement(iu.Provider,{value:I.current},S)},Wn=function(){return(Wn=Object.assign||function(d){for(var s,o=1,a=arguments.length;o<a;o++)for(var f in s=arguments[o])Object.prototype.hasOwnProperty.call(s,f)&&(d[f]=s[f]);return d}).apply(this,arguments)},Ch=function(d,s){var o={};for(f in d)Object.prototype.hasOwnProperty.call(d,f)&&s.indexOf(f)<0&&(o[f]=d[f]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,f=Object.getOwnPropertySymbols(d);a<f.length;a++)s.indexOf(f[a])<0&&Object.prototype.propertyIsEnumerable.call(d,f[a])&&(o[f[a]]=d[f[a]]);return o},$l=function(d){return"Typesetting failed: ".concat(d.message!==void 0?d.message:d.toString())},Rh=function(d){function s(){var me;F==="every"&&ae&&K==="post"&&D.current!==null&&(D.current.style.visibility=(me=(me=I.style)==null?void 0:me.visibility)!=null?me:"visible"),Ee.current||(F==="first"&&D.current!==null&&(D.current.style.visibility="visible"),f&&f(),Ee.current=!0),p&&p(),te.current=!1}var a=d.inline,o=a!==void 0&&a,a=d.hideUntilTypeset,f=d.onInitTypeset,p=d.onTypeset,y=d.text,k=d.dynamic,T=d.typesettingOptions,_=d.renderMode,S=d.children,I=Ch(d,["inline","hideUntilTypeset","onInitTypeset","onTypeset","text","dynamic","typesettingOptions","renderMode","children"]),A=ve.useRef(""),D=ve.useRef(null),V=ve.useContext(iu),F=a??(V==null?void 0:V.hideUntilTypeset),K=_??(V==null?void 0:V.renderMode),he=T??(V==null?void 0:V.typesettingOptions),ae=k!==!1&&(k||!1),Ee=ve.useRef(!1),te=ve.useRef(!1);return!te.current&&D.current!==null&&ae&&F==="every"&&K==="post"&&(D.current.style.visibility="hidden"),(typeof window<"u"?ve.useLayoutEffect:ve.useEffect)(function(){if((ae||!Ee.current)&&D.current!==null){if(!V)throw Error("MathJax was not loaded, did you use the MathJax component outside of a MathJaxContext?");if(K==="pre"){if(!(typeof(me=y)=="string"&&0<me.length))throw Error(`Render mode 'pre' requires text prop to be set and non-empty, which was currently "`.concat(y,'"'));if(!T||!T.fn)throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");if(V.version===2)throw Error("Render mode 'pre' only available with MathJax 3, and version 2 is currently in use")}K!=="post"&&y===A.current||te.current||(te.current=!0,V.version===3?V.promise.then(function(ne){var Ne;K==="pre"?(Ne=function(ce){A.current=y,ne.startup.document.clear(),ne.startup.document.updateDocument(),D.current!==null&&(D.current.innerHTML=ce.outerHTML),s()},T.fn.endsWith("Promise")?ne.startup.promise.then(function(){return ne[he.fn](y,Wn(Wn({},(he==null?void 0:he.options)||{}),{display:!o}))}).then(Ne).catch(function(ce){throw s(),Error($l(ce))}):ne.startup.promise.then(function(){var ce=ne[he.fn](y,Wn(Wn({},(he==null?void 0:he.options)||{}),{display:!o}));Ne(ce)}).catch(function(ce){throw s(),Error($l(ce))})):ne.startup.promise.then(function(){return ne.typesetClear([D.current]),ne.typesetPromise([D.current])}).then(s).catch(function(ce){throw s(),Error($l(ce))})}).catch(function(ne){throw s(),Error($l(ne))}):V.promise.then(function(ne){ne.Hub.Queue(["Typeset",ne.Hub,D.current]),ne.Hub.Queue(s)}).catch(function(ne){throw s(),Error($l(ne))}))}var me}),ff.createElement("span",Wn({},I,{style:Wn(Wn({display:o?"inline":"block"},I.style),{visibility:F?"hidden":(d=I.style)==null?void 0:d.visibility}),ref:D}),S)};function Nh(d){return d=d.replace(/\\([\[\]\(\)])/g,"\\\\$1"),Sh.sanitize(Se.parse(d,{async:!1,breaks:!0}))}function Lh({role:d,content:s}){const o=d==="assistant",a=o?Eh:_h;return L.jsxs("div",{className:"flex items-start space-x-4",children:[L.jsx(a,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),L.jsx("div",{className:`rounded-lg p-4 ${o?"bg-gray-200 dark:bg-gray-700":"bg-blue-500 text-white"}`,children:L.jsx("div",{className:"flex flex-col min-h-6 overflow-wrap-anywhere gap-2",children:s.map((f,p)=>f.type==="text"?f.text.length>0?L.jsx(Rh,{dynamic:!0,children:L.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:Nh(f.text)}})},p):L.jsxs("span",{className:"h-6 flex items-center gap-1",children:[L.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse"}),L.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-200"}),L.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-400"})]},p):f.type==="image"?L.jsx("img",{src:f.image,className:"w-full max-w-[384px] h-auto max-h-[300px] object-contain rounded-md"},p):null)})})]})}function Ph({messages:d}){const s=d.length===0;return L.jsx("div",{className:`flex-1 p-6 max-w-[960px] w-full ${s?"flex flex-col items-center justify-end":"space-y-4"}`,children:L.jsx(Th,{children:s?L.jsx("div",{className:"text-xl",children:"Ready!"}):d.map((o,a)=>L.jsx(Lh,{...o},`message-${a}`))})})}function cf(d){return L.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M5 12h14"}),L.jsx("path",{d:"m12 5 7 7-7 7"})]})}function Ah(d){return L.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),L.jsx("path",{fill:"currentColor",d:"M9 9.563C9 9.252 9.252 9 9.563 9h4.874c.311 0 .563.252.563.563v4.874c0 .311-.252.563-.563.563H9.564A.562.562 0 0 1 9 14.437V9.564Z"})]})}function Mh(d){const s=d==0?0:Math.floor(Math.log(d)/Math.log(1024));return+(d/Math.pow(1024,s)).toFixed(2)*1+["B","kB","MB","GB","TB"][s]}function zh({text:d,percentage:s,total:o}){return s??(s=0),L.jsx("div",{className:"w-full bg-gray-100 dark:bg-gray-700 text-left rounded-lg overflow-hidden mb-0.5",children:L.jsxs("div",{className:"bg-blue-400 whitespace-nowrap px-1 text-sm",style:{width:`${s}%`},children:[d," (",s.toFixed(2),"%",isNaN(o)?"":` of ${Mh(o)}`,")"]})})}function Ih(d){return L.jsx("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})})}function Oh(d){return L.jsx("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})}function Dh({src:d,onRemove:s,...o}){const[a,f]=ve.useState(!1);return L.jsxs("div",{...o,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[L.jsx(Oh,{onClick:s,className:`absolute top-0 right-0 cursor-pointer dark:fill-gray-400 dark:text-gray-100 fill-gray-200 text-gray-800 ${a?"":"hidden"}`}),L.jsx("img",{src:d,alt:"Upload preview",className:"w-full h-full object-cover rounded-md"})]})}const jh=!!navigator.gpu,Fh=120,Uh=[{title:"Describe this image",text:"Can you describe this image?",images:["https://huggingface.co./datasets/Xenova/transformers.js-docs/resolve/main/new-york.jpg"]},{title:"Handwriting recognition",text:"What does this say?",images:["https://huggingface.co./datasets/Xenova/transformers.js-docs/resolve/main/handwritten-math.jpg"]},{title:"Chart analysis",text:"Where do the severe droughts happen according to this diagram?",images:["https://huggingface.co./datasets/Xenova/transformers.js-docs/resolve/main/weather-events-diagram.png"]}];function $h(){const d=ve.useRef(null),s=ve.useRef(null),o=ve.useRef(null),a=ve.useRef(null),[f,p]=ve.useState(null),[y,k]=ve.useState(null),[T,_]=ve.useState(""),[S,I]=ve.useState([]),[A,D]=ve.useState(!1),[V,F]=ve.useState(""),[K,he]=ve.useState([]),[ae,Ee]=ve.useState([]),[te,me]=ve.useState(null),[ne,Ne]=ve.useState(null);function ce(J,fe){const ue=[...fe.map(de=>({type:"image",image:de})),{type:"text",text:J}];Ee(de=>[...de,{role:"user",content:ue}]),me(null),D(!0),F(""),he([])}function kt(){d.current.postMessage({type:"interrupt"})}ve.useEffect(()=>{nt()},[V]);function nt(){if(!s.current)return;const J=s.current;J.style.height="auto";const fe=Math.min(Math.max(J.scrollHeight,24),200);J.style.height=`${fe}px`}ve.useEffect(()=>{d.current||(d.current=new Worker(new URL("/assets/worker-Ds2leBRF.js",import.meta.url),{type:"module"}),d.current.postMessage({type:"check"}));const J=ue=>{switch(ue.data.status){case"loading":p("loading"),_(ue.data.data);break;case"initiate":I(de=>[...de,ue.data]);break;case"progress":I(de=>de.map(we=>we.file===ue.data.file?{...we,...ue.data}:we));break;case"done":I(de=>de.filter(we=>we.file!==ue.data.file));break;case"ready":p("ready");break;case"start":Ee(de=>[...de,{role:"assistant",content:[{type:"text",text:""}]}]);break;case"update":{const{output:de,tps:we,numTokens:_e}=ue.data;me(we),Ne(_e),Ee(O=>{const Q=[...O],j=Q.at(-1);return Q[Q.length-1]={...j,content:[{type:"text",text:j.content[0].text+de}]},Q})}break;case"complete":D(!1);break;case"error":k(ue.data.data);break}},fe=ue=>{console.error("Worker error:",ue)};return d.current.addEventListener("message",J),d.current.addEventListener("error",fe),window.addEventListener("resize",nt),()=>{d.current.removeEventListener("message",J),d.current.removeEventListener("error",fe),window.removeEventListener("resize",nt)}},[]),ve.useEffect(()=>{ae.filter(J=>J.role==="user").length!==0&&ae.at(-1).role!=="assistant"&&(me(null),d.current.postMessage({type:"generate",data:ae}))},[ae,A]),ve.useEffect(()=>{if(!o.current||!A)return;const J=o.current;J.scrollHeight-J.scrollTop-J.clientHeight<Fh&&(J.scrollTop=J.scrollHeight)},[ae,A]);const ze=V.length>0&&K.length>0;return jh?L.jsxs("div",{className:"flex flex-col h-screen mx-auto items justify-end text-gray-800 dark:text-gray-200 bg-white dark:bg-gray-900",children:[f===null&&ae.length===0&&L.jsxs("div",{className:"h-full overflow-auto scrollbar-thin flex justify-center items-center flex-col relative",children:[L.jsxs("div",{className:"flex flex-col items-center mb-1 max-w-[360px] text-center",children:[L.jsx("img",{src:"logo.png",width:"100%",height:"auto",className:"block drop-shadow-lg bg-transparent"}),L.jsx("h1",{className:"text-4xl font-bold mb-1",children:"SmolVLM WebGPU"}),L.jsxs("h2",{className:"font-semibold",children:["The smallest multimodal model in the world.",L.jsx("br",{}),"Designed for efficiency."]})]}),L.jsxs("div",{className:"flex flex-col items-center px-4",children:[L.jsxs("p",{className:"max-w-[500px] mb-4",children:[L.jsx("br",{}),"You are about to load"," ",L.jsx("a",{href:"https://huggingface.co./HuggingFaceTB/SmolVLM-500M-Instruct",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"SmolVLM-500M-Instruct"}),", a 500M parameter multimodal model optimized for in-browser inference. Everything runs entirely in your browser with"," ",L.jsx("a",{href:"https://huggingface.co./docs/transformers.js",target:"_blank",rel:"noreferrer",className:"underline",children:"🤗 Transformers.js"})," ","and ONNX Runtime Web, meaning no data is sent to a server. Once loaded, it can even be used offline. The source code for the demo is available on"," ",L.jsx("a",{href:"https://github.com/huggingface/transformers.js-examples/tree/main/smolvlm-webgpu",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"GitHub"}),"."]}),y&&L.jsxs("div",{className:"text-red-500 text-center mb-2",children:[L.jsx("p",{className:"mb-1",children:"Unable to load model due to the following error:"}),L.jsx("p",{className:"text-sm",children:y})]}),L.jsx("button",{className:"border border-gray-300 dark:border-gray-600 px-4 py-2 rounded-lg bg-blue-400 text-white hover:bg-blue-500 disabled:bg-blue-100 cursor-pointer disabled:cursor-not-allowed select-none",onClick:()=>{d.current.postMessage({type:"load"}),p("loading")},disabled:f!==null||y!==null,children:"Load model"})]})]}),f==="loading"&&L.jsx(L.Fragment,{children:L.jsxs("div",{className:"w-full max-w-[500px] text-left mx-auto p-4 bottom-0 mt-auto",children:[L.jsx("p",{className:"text-center mb-1",children:T}),S.map(({file:J,progress:fe,total:ue},de)=>L.jsx(zh,{text:J,percentage:fe,total:ue},de))]})}),f==="ready"&&L.jsxs("div",{ref:o,className:"overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full",children:[L.jsx(Ph,{messages:ae}),ae.length===0&&L.jsx("div",{className:"flex",children:Uh.map((J,fe)=>L.jsxs("div",{className:"max-w-[250px] m-1 border border-gray-300 dark:border-gray-600 rounded-md p-2 bg-gray-100 dark:bg-gray-700 cursor-pointer",onClick:()=>ce(J.text,J.images),children:[J.text,J.images.map((ue,de)=>L.jsx("img",{src:ue,className:"w-full h-auto mt-2",alt:"Example"},de))]},fe))}),L.jsx("p",{className:"text-center text-sm min-h-6 text-gray-500 dark:text-gray-300",children:te&&ae.length>0&&L.jsxs(L.Fragment,{children:[!A&&L.jsxs("span",{children:["Generated ",ne," tokens in"," ",(ne/te).toFixed(2)," seconds ("]}),L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"font-medium text-center mr-1 text-black dark:text-white",children:te.toFixed(2)}),L.jsx("span",{className:"text-gray-500 dark:text-gray-300",children:"tokens/second"})]}),!A&&L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"mr-1",children:")."}),L.jsx("span",{className:"underline cursor-pointer",onClick:()=>{d.current.postMessage({type:"reset"}),Ee([])},children:"Reset"})]})]})})]}),L.jsxs("div",{className:"mt-2 border border-gray-300 dark:bg-gray-700 rounded-lg w-[600px] max-w-[80%] max-h-[200px] mx-auto relative mb-3 flex",children:[L.jsxs("label",{htmlFor:"file-upload",className:f==="ready"?"cursor-pointer":"cursor-not-allowed pointer-events-none",children:[L.jsx(Ih,{className:`h-8 w-8 p-1 rounded-md ${f==="ready"?"text-gray-800 dark:text-gray-100":"text-gray-400 dark:text-gray-500"} absolute bottom-3 left-1.5`}),L.jsx("input",{ref:a,id:"file-upload",type:"file",accept:"image/*",className:"hidden",multiple:!0,onInput:async J=>{const fe=Array.from(J.target.files);if(fe.length===0)return;const ue=fe.map(we=>new Promise((_e,O)=>{const Q=new FileReader;Q.onload=j=>_e(j.target.result),Q.onerror=O,Q.readAsDataURL(we)})),de=await Promise.all(ue);he(we=>[...we,...de]),J.target.value=""}})]}),L.jsxs("div",{className:"w-full flex flex-col",children:[L.jsx("div",{className:"flex w-full",children:K.map((J,fe)=>L.jsx(Dh,{onRemove:()=>{he(ue=>ue.filter((de,we)=>we!==fe))},src:J,className:"w-20 h-20 min-w-20 min-h-20 relative p-2"},fe))}),L.jsx("textarea",{ref:s,className:"scrollbar-thin w-full pl-11 pr-12 dark:bg-gray-700 py-4 rounded-lg bg-transparent border-none outline-none text-gray-800 disabled:text-gray-400 dark:text-gray-100 placeholder-gray-500 disabled:placeholder-gray-200 dark:placeholder-gray-300 dark:disabled:placeholder-gray-500 resize-none disabled:cursor-not-allowed",placeholder:"Select at least one image and enter message here...",type:"text",rows:1,value:V,disabled:f!=="ready",title:f==="ready"?"Model is ready":"Model not loaded yet",onKeyDown:J=>{ze&&!A&&J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),ce(V,K))},onInput:J=>F(J.target.value)})]}),A?L.jsx("div",{className:"cursor-pointer",onClick:kt,children:L.jsx(Ah,{className:"h-8 w-8 p-1 rounded-md text-gray-800 dark:text-gray-100 absolute right-3 bottom-3"})}):ze?L.jsx("div",{className:"cursor-pointer",onClick:()=>ce(V,K),children:L.jsx(cf,{className:"h-8 w-8 p-1 bg-gray-800 dark:bg-gray-100 text-white dark:text-black rounded-md absolute right-3 bottom-3"})}):L.jsx("div",{children:L.jsx(cf,{className:"h-8 w-8 p-1 bg-gray-200 dark:bg-gray-600 text-gray-50 dark:text-gray-800 rounded-md absolute right-3 bottom-3"})})]}),L.jsx("p",{className:"text-xs text-gray-400 text-center mb-3",children:"Disclaimer: Generated content may be inaccurate or false."})]}):L.jsxs("div",{className:"fixed w-screen h-screen bg-black z-10 bg-opacity-[92%] text-white text-2xl font-semibold flex justify-center items-center text-center",children:["WebGPU is not supported",L.jsx("br",{}),"by this browser :("]})}xp.createRoot(document.getElementById("root")).render(L.jsx(ve.StrictMode,{children:L.jsx($h,{})}));