Spaces:
Running
Running
var wp=Object.defineProperty;var ra=e=>{throw TypeError(e)};var kp=(e,t,n)=>t in e?wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var X=(e,t,n)=>kp(e,typeof t!="symbol"?t+"":t,n),xp=(e,t,n)=>t.has(e)||ra("Cannot "+n);var la=(e,t,n)=>t.has(e)?ra("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);var kl=(e,t,n)=>(xp(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Sp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zc={exports:{}},Ri={},Oc={exports:{}},F={};/** | |
* @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 il=Symbol.for("react.element"),Ep=Symbol.for("react.portal"),_p=Symbol.for("react.fragment"),Tp=Symbol.for("react.strict_mode"),Cp=Symbol.for("react.profiler"),Ap=Symbol.for("react.provider"),Rp=Symbol.for("react.context"),Np=Symbol.for("react.forward_ref"),Ip=Symbol.for("react.suspense"),Lp=Symbol.for("react.memo"),Pp=Symbol.for("react.lazy"),ia=Symbol.iterator;function zp(e){return e===null||typeof e!="object"?null:(e=ia&&e[ia]||e["@@iterator"],typeof e=="function"?e:null)}var Mc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dc=Object.assign,jc={};function lr(e,t,n){this.props=e,this.context=t,this.refs=jc,this.updater=n||Mc}lr.prototype.isReactComponent={};lr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};lr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fc(){}Fc.prototype=lr.prototype;function Ps(e,t,n){this.props=e,this.context=t,this.refs=jc,this.updater=n||Mc}var zs=Ps.prototype=new Fc;zs.constructor=Ps;Dc(zs,lr.prototype);zs.isPureReactComponent=!0;var oa=Array.isArray,Uc=Object.prototype.hasOwnProperty,Os={current:null},$c={key:!0,ref:!0,__self:!0,__source:!0};function Bc(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Uc.call(t,r)&&!$c.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1<s){for(var u=Array(s),a=0;a<s;a++)u[a]=arguments[a+2];l.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)l[r]===void 0&&(l[r]=s[r]);return{$$typeof:il,type:e,key:i,ref:o,props:l,_owner:Os.current}}function Op(e,t){return{$$typeof:il,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ms(e){return typeof e=="object"&&e!==null&&e.$$typeof===il}function Mp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var sa=/\/+/g;function eo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Mp(""+e.key):t.toString(36)}function Hl(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case il:case Ep:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+eo(o,0):r,oa(l)?(n="",e!=null&&(n=e.replace(sa,"$&/")+"/"),Hl(l,t,n,"",function(a){return a})):l!=null&&(Ms(l)&&(l=Op(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(sa,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",oa(e))for(var s=0;s<e.length;s++){i=e[s];var u=r+eo(i,s);o+=Hl(i,t,n,u,l)}else if(u=zp(e),typeof u=="function")for(e=u.call(e),s=0;!(i=e.next()).done;)i=i.value,u=r+eo(i,s++),o+=Hl(i,t,n,u,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function xl(e,t,n){if(e==null)return e;var r=[],l=0;return Hl(e,r,"","",function(i){return t.call(n,i,l++)}),r}function Dp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ze={current:null},Wl={transition:null},jp={ReactCurrentDispatcher:ze,ReactCurrentBatchConfig:Wl,ReactCurrentOwner:Os};function Hc(){throw Error("act(...) is not supported in production builds of React.")}F.Children={map:xl,forEach:function(e,t,n){xl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xl(e,function(){t++}),t},toArray:function(e){return xl(e,function(t){return t})||[]},only:function(e){if(!Ms(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};F.Component=lr;F.Fragment=_p;F.Profiler=Cp;F.PureComponent=Ps;F.StrictMode=Tp;F.Suspense=Ip;F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jp;F.act=Hc;F.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dc({},e.props),l=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Os.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)Uc.call(t,u)&&!$c.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var a=0;a<u;a++)s[a]=arguments[a+2];r.children=s}return{$$typeof:il,type:e.type,key:l,ref:i,props:r,_owner:o}};F.createContext=function(e){return e={$$typeof:Rp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ap,_context:e},e.Consumer=e};F.createElement=Bc;F.createFactory=function(e){var t=Bc.bind(null,e);return t.type=e,t};F.createRef=function(){return{current:null}};F.forwardRef=function(e){return{$$typeof:Np,render:e}};F.isValidElement=Ms;F.lazy=function(e){return{$$typeof:Pp,_payload:{_status:-1,_result:e},_init:Dp}};F.memo=function(e,t){return{$$typeof:Lp,type:e,compare:t===void 0?null:t}};F.startTransition=function(e){var t=Wl.transition;Wl.transition={};try{e()}finally{Wl.transition=t}};F.unstable_act=Hc;F.useCallback=function(e,t){return ze.current.useCallback(e,t)};F.useContext=function(e){return ze.current.useContext(e)};F.useDebugValue=function(){};F.useDeferredValue=function(e){return ze.current.useDeferredValue(e)};F.useEffect=function(e,t){return ze.current.useEffect(e,t)};F.useId=function(){return ze.current.useId()};F.useImperativeHandle=function(e,t,n){return ze.current.useImperativeHandle(e,t,n)};F.useInsertionEffect=function(e,t){return ze.current.useInsertionEffect(e,t)};F.useLayoutEffect=function(e,t){return ze.current.useLayoutEffect(e,t)};F.useMemo=function(e,t){return ze.current.useMemo(e,t)};F.useReducer=function(e,t,n){return ze.current.useReducer(e,t,n)};F.useRef=function(e){return ze.current.useRef(e)};F.useState=function(e){return ze.current.useState(e)};F.useSyncExternalStore=function(e,t,n){return ze.current.useSyncExternalStore(e,t,n)};F.useTransition=function(){return ze.current.useTransition()};F.version="18.3.1";Oc.exports=F;var te=Oc.exports;const Fp=Sp(te);/** | |
* @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 Up=te,$p=Symbol.for("react.element"),Bp=Symbol.for("react.fragment"),Hp=Object.prototype.hasOwnProperty,Wp=Up.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vp={key:!0,ref:!0,__self:!0,__source:!0};function Wc(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Hp.call(t,r)&&!Vp.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:$p,type:e,key:i,ref:o,props:l,_owner:Wp.current}}Ri.Fragment=Bp;Ri.jsx=Wc;Ri.jsxs=Wc;zc.exports=Ri;var w=zc.exports,Mo={},Vc={exports:{}},Qe={},bc={exports:{}},Zc={};/** | |
* @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. | |
*/(function(e){function t(S,I){var z=S.length;S.push(I);e:for(;0<z;){var O=z-1>>>1,V=S[O];if(0<l(V,I))S[O]=I,S[z]=V,z=O;else break e}}function n(S){return S.length===0?null:S[0]}function r(S){if(S.length===0)return null;var I=S[0],z=S.pop();if(z!==I){S[0]=z;e:for(var O=0,V=S.length,Q=V>>>1;O<Q;){var Be=2*(O+1)-1,B=S[Be],pe=Be+1,Et=S[pe];if(0>l(B,z))pe<V&&0>l(Et,B)?(S[O]=Et,S[pe]=z,O=pe):(S[O]=B,S[Be]=z,O=Be);else if(pe<V&&0>l(Et,z))S[O]=Et,S[pe]=z,O=pe;else break e}}return I}function l(S,I){var z=S.sortIndex-I.sortIndex;return z!==0?z:S.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],h=1,g=null,m=3,v=!1,x=!1,_=!1,D=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(S){for(var I=n(a);I!==null;){if(I.callback===null)r(a);else if(I.startTime<=S)r(a),I.sortIndex=I.expirationTime,t(u,I);else break;I=n(a)}}function y(S){if(_=!1,p(S),!x)if(n(u)!==null)x=!0,ae(T);else{var I=n(a);I!==null&&W(y,I.startTime-S)}}function T(S,I){x=!1,_&&(_=!1,d(L),L=-1),v=!0;var z=m;try{for(p(I),g=n(u);g!==null&&(!(g.expirationTime>I)||S&&!H());){var O=g.callback;if(typeof O=="function"){g.callback=null,m=g.priorityLevel;var V=O(g.expirationTime<=I);I=e.unstable_now(),typeof V=="function"?g.callback=V:g===n(u)&&r(u),p(I)}else r(u);g=n(u)}if(g!==null)var Q=!0;else{var Be=n(a);Be!==null&&W(y,Be.startTime-I),Q=!1}return Q}finally{g=null,m=z,v=!1}}var A=!1,R=null,L=-1,q=5,M=-1;function H(){return!(e.unstable_now()-M<q)}function Xe(){if(R!==null){var S=e.unstable_now();M=S;var I=!0;try{I=R(!0,S)}finally{I?lt():(A=!1,R=null)}}else A=!1}var lt;if(typeof c=="function")lt=function(){c(Xe)};else if(typeof MessageChannel<"u"){var Dt=new MessageChannel,U=Dt.port2;Dt.port1.onmessage=Xe,lt=function(){U.postMessage(null)}}else lt=function(){D(Xe,0)};function ae(S){R=S,A||(A=!0,lt())}function W(S,I){L=D(function(){S(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(S){S.callback=null},e.unstable_continueExecution=function(){x||v||(x=!0,ae(T))},e.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<S?Math.floor(1e3/S):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(S){switch(m){case 1:case 2:case 3:var I=3;break;default:I=m}var z=m;m=I;try{return S()}finally{m=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(S,I){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var z=m;m=S;try{return I()}finally{m=z}},e.unstable_scheduleCallback=function(S,I,z){var O=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?O+z:O):z=O,S){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=z+V,S={id:h++,callback:I,priorityLevel:S,startTime:z,expirationTime:V,sortIndex:-1},z>O?(S.sortIndex=z,t(a,S),n(u)===null&&S===n(a)&&(_?(d(L),L=-1):_=!0,W(y,z-O))):(S.sortIndex=V,t(u,S),x||v||(x=!0,ae(T))),S},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(S){var I=m;return function(){var z=m;m=I;try{return S.apply(this,arguments)}finally{m=z}}}})(Zc);bc.exports=Zc;var bp=bc.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 Zp=te,Ze=bp;function k(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 Gc=new Set,Hr={};function Sn(e,t){Kn(e,t),Kn(e+"Capture",t)}function Kn(e,t){for(Hr[e]=t,e=0;e<t.length;e++)Gc.add(t[e])}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=Object.prototype.hasOwnProperty,Gp=/^[: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]*$/,ua={},aa={};function Qp(e){return Do.call(aa,e)?!0:Do.call(ua,e)?!1:Gp.test(e)?aa[e]=!0:(ua[e]=!0,!1)}function Yp(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 Xp(e,t,n,r){if(t===null||typeof t>"u"||Yp(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 Oe(e,t,n,r,l,i,o){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=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Oe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Oe(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){xe[e]=new Oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ds=/[\-:]([a-z])/g;function js(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(Ds,js);xe[t]=new Oe(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(Ds,js);xe[t]=new Oe(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(Ds,js);xe[t]=new Oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Oe(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Oe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fs(e,t,n,r){var l=xe.hasOwnProperty(t)?xe[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Xp(t,n,l,r)&&(n=null),r||l===null?Qp(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 Mt=Zp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sl=Symbol.for("react.element"),zn=Symbol.for("react.portal"),On=Symbol.for("react.fragment"),Us=Symbol.for("react.strict_mode"),jo=Symbol.for("react.profiler"),Qc=Symbol.for("react.provider"),Yc=Symbol.for("react.context"),$s=Symbol.for("react.forward_ref"),Fo=Symbol.for("react.suspense"),Uo=Symbol.for("react.suspense_list"),Bs=Symbol.for("react.memo"),Ft=Symbol.for("react.lazy"),Xc=Symbol.for("react.offscreen"),ca=Symbol.iterator;function pr(e){return e===null||typeof e!="object"?null:(e=ca&&e[ca]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Object.assign,to;function Ar(e){if(to===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);to=t&&t[1]||""}return` | |
`+to+e}var no=!1;function ro(e,t){if(!e||no)return"";no=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var l=a.stack.split(` | |
`),i=r.stack.split(` | |
`),o=l.length-1,s=i.length-1;1<=o&&0<=s&&l[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(l[o]!==i[s]){if(o!==1||s!==1)do if(o--,s--,0>s||l[o]!==i[s]){var u=` | |
`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{no=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ar(e):""}function Kp(e){switch(e.tag){case 5:return Ar(e.type);case 16:return Ar("Lazy");case 13:return Ar("Suspense");case 19:return Ar("SuspenseList");case 0:case 2:case 15:return e=ro(e.type,!1),e;case 11:return e=ro(e.type.render,!1),e;case 1:return e=ro(e.type,!0),e;default:return""}}function $o(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 On:return"Fragment";case zn:return"Portal";case jo:return"Profiler";case Us:return"StrictMode";case Fo:return"Suspense";case Uo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yc:return(e.displayName||"Context")+".Consumer";case Qc:return(e._context.displayName||"Context")+".Provider";case $s:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bs:return t=e.displayName||null,t!==null?t:$o(e.type)||"Memo";case Ft:t=e._payload,e=e._init;try{return $o(e(t))}catch{}}return null}function Jp(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 $o(t);case 8:return t===Us?"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 Jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qp(e){var t=Kc(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(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function El(e){e._valueTracker||(e._valueTracker=qp(e))}function Jc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ti(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 Bo(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jt(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 qc(e,t){t=t.checked,t!=null&&Fs(e,"checked",t,!1)}function Ho(e,t){qc(e,t);var n=Jt(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")?Wo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wo(e,t.type,Jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function da(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 Wo(e,t,n){(t!=="number"||ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rr=Array.isArray;function bn(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=""+Jt(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 Vo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(Rr(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jt(n)}}function ef(e,t){var n=Jt(t.value),r=Jt(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 ha(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tf(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 bo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var _l,nf=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(_l=_l||document.createElement("div"),_l.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_l.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={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},eh=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){eh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function rf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function lf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=rf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var th=ie({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 Zo(e,t){if(t){if(th[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Go(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 Qo=null;function Hs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yo=null,Zn=null,Gn=null;function ma(e){if(e=ul(e)){if(typeof Yo!="function")throw Error(k(280));var t=e.stateNode;t&&(t=zi(t),Yo(e.stateNode,e.type,t))}}function of(e){Zn?Gn?Gn.push(e):Gn=[e]:Zn=e}function sf(){if(Zn){var e=Zn,t=Gn;if(Gn=Zn=null,ma(e),t)for(e=0;e<t.length;e++)ma(t[e])}}function uf(e,t){return e(t)}function af(){}var lo=!1;function cf(e,t,n){if(lo)return e(t,n);lo=!0;try{return uf(e,t,n)}finally{lo=!1,(Zn!==null||Gn!==null)&&(af(),sf())}}function Vr(e,t){var n=e.stateNode;if(n===null)return null;var r=zi(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(k(231,t,typeof n));return n}var Xo=!1;if(Lt)try{var hr={};Object.defineProperty(hr,"passive",{get:function(){Xo=!0}}),window.addEventListener("test",hr,hr),window.removeEventListener("test",hr,hr)}catch{Xo=!1}function nh(e,t,n,r,l,i,o,s,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(h){this.onError(h)}}var Pr=!1,ni=null,ri=!1,Ko=null,rh={onError:function(e){Pr=!0,ni=e}};function lh(e,t,n,r,l,i,o,s,u){Pr=!1,ni=null,nh.apply(rh,arguments)}function ih(e,t,n,r,l,i,o,s,u){if(lh.apply(this,arguments),Pr){if(Pr){var a=ni;Pr=!1,ni=null}else throw Error(k(198));ri||(ri=!0,Ko=a)}}function En(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 ff(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 ga(e){if(En(e)!==e)throw Error(k(188))}function oh(e){var t=e.alternate;if(!t){if(t=En(e),t===null)throw Error(k(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 ga(l),e;if(i===r)return ga(l),t;i=i.sibling}throw Error(k(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function df(e){return e=oh(e),e!==null?pf(e):null}function pf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pf(e);if(t!==null)return t;e=e.sibling}return null}var hf=Ze.unstable_scheduleCallback,ya=Ze.unstable_cancelCallback,sh=Ze.unstable_shouldYield,uh=Ze.unstable_requestPaint,se=Ze.unstable_now,ah=Ze.unstable_getCurrentPriorityLevel,Ws=Ze.unstable_ImmediatePriority,mf=Ze.unstable_UserBlockingPriority,li=Ze.unstable_NormalPriority,ch=Ze.unstable_LowPriority,gf=Ze.unstable_IdlePriority,Ni=null,kt=null;function fh(e){if(kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(Ni,e,void 0,(e.current.flags&128)===128)}catch{}}var ct=Math.clz32?Math.clz32:hh,dh=Math.log,ph=Math.LN2;function hh(e){return e>>>=0,e===0?32:31-(dh(e)/ph|0)|0}var Tl=64,Cl=4194304;function Nr(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 ii(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=Nr(s):(i&=o,i!==0&&(r=Nr(i)))}else o=n&~l,o!==0?r=Nr(o):i!==0&&(r=Nr(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-ct(t),l=1<<n,r|=e[n],t&=~l;return r}function mh(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 gh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-ct(i),s=1<<o,u=l[o];u===-1?(!(s&n)||s&r)&&(l[o]=mh(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}function Jo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yf(){var e=Tl;return Tl<<=1,!(Tl&4194240)&&(Tl=64),e}function io(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ol(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function yh(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-ct(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function Vs(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ct(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var Z=0;function vf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var wf,bs,kf,xf,Sf,qo=!1,Al=[],Vt=null,bt=null,Zt=null,br=new Map,Zr=new Map,$t=[],vh="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 va(e,t){switch(e){case"focusin":case"focusout":Vt=null;break;case"dragenter":case"dragleave":bt=null;break;case"mouseover":case"mouseout":Zt=null;break;case"pointerover":case"pointerout":br.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(t.pointerId)}}function mr(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=ul(t),t!==null&&bs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function wh(e,t,n,r,l){switch(t){case"focusin":return Vt=mr(Vt,e,t,n,r,l),!0;case"dragenter":return bt=mr(bt,e,t,n,r,l),!0;case"mouseover":return Zt=mr(Zt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return br.set(i,mr(br.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,Zr.set(i,mr(Zr.get(i)||null,e,t,n,r,l)),!0}return!1}function Ef(e){var t=an(e.target);if(t!==null){var n=En(t);if(n!==null){if(t=n.tag,t===13){if(t=ff(n),t!==null){e.blockedOn=t,Sf(e.priority,function(){kf(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 Vl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=es(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Qo=r,n.target.dispatchEvent(r),Qo=null}else return t=ul(n),t!==null&&bs(t),e.blockedOn=n,!1;t.shift()}return!0}function wa(e,t,n){Vl(e)&&n.delete(t)}function kh(){qo=!1,Vt!==null&&Vl(Vt)&&(Vt=null),bt!==null&&Vl(bt)&&(bt=null),Zt!==null&&Vl(Zt)&&(Zt=null),br.forEach(wa),Zr.forEach(wa)}function gr(e,t){e.blockedOn===t&&(e.blockedOn=null,qo||(qo=!0,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,kh)))}function Gr(e){function t(l){return gr(l,e)}if(0<Al.length){gr(Al[0],e);for(var n=1;n<Al.length;n++){var r=Al[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Vt!==null&&gr(Vt,e),bt!==null&&gr(bt,e),Zt!==null&&gr(Zt,e),br.forEach(t),Zr.forEach(t),n=0;n<$t.length;n++)r=$t[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<$t.length&&(n=$t[0],n.blockedOn===null);)Ef(n),n.blockedOn===null&&$t.shift()}var Qn=Mt.ReactCurrentBatchConfig,oi=!0;function xh(e,t,n,r){var l=Z,i=Qn.transition;Qn.transition=null;try{Z=1,Zs(e,t,n,r)}finally{Z=l,Qn.transition=i}}function Sh(e,t,n,r){var l=Z,i=Qn.transition;Qn.transition=null;try{Z=4,Zs(e,t,n,r)}finally{Z=l,Qn.transition=i}}function Zs(e,t,n,r){if(oi){var l=es(e,t,n,r);if(l===null)go(e,t,r,si,n),va(e,r);else if(wh(l,e,t,n,r))r.stopPropagation();else if(va(e,r),t&4&&-1<vh.indexOf(e)){for(;l!==null;){var i=ul(l);if(i!==null&&wf(i),i=es(e,t,n,r),i===null&&go(e,t,r,si,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else go(e,t,r,null,n)}}var si=null;function es(e,t,n,r){if(si=null,e=Hs(r),e=an(e),e!==null)if(t=En(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ff(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 si=e,null}function _f(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(ah()){case Ws:return 1;case mf:return 4;case li:case ch:return 16;case gf:return 536870912;default:return 16}default:return 16}}var Ht=null,Gs=null,bl=null;function Tf(){if(bl)return bl;var e,t=Gs,n=t.length,r,l="value"in Ht?Ht.value:Ht.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[i-r];r++);return bl=l.slice(e,1<r?1-r:void 0)}function Zl(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 Rl(){return!0}function ka(){return!1}function Ye(e){function t(n,r,l,i,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Rl:ka,this.isPropagationStopped=ka,this}return ie(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=Rl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rl)},persist:function(){},isPersistent:Rl}),t}var ir={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qs=Ye(ir),sl=ie({},ir,{view:0,detail:0}),Eh=Ye(sl),oo,so,yr,Ii=ie({},sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ys,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!==yr&&(yr&&e.type==="mousemove"?(oo=e.screenX-yr.screenX,so=e.screenY-yr.screenY):so=oo=0,yr=e),oo)},movementY:function(e){return"movementY"in e?e.movementY:so}}),xa=Ye(Ii),_h=ie({},Ii,{dataTransfer:0}),Th=Ye(_h),Ch=ie({},sl,{relatedTarget:0}),uo=Ye(Ch),Ah=ie({},ir,{animationName:0,elapsedTime:0,pseudoElement:0}),Rh=Ye(Ah),Nh=ie({},ir,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ih=Ye(Nh),Lh=ie({},ir,{data:0}),Sa=Ye(Lh),Ph={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zh={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"},Oh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Oh[e])?!!t[e]:!1}function Ys(){return Mh}var Dh=ie({},sl,{key:function(e){if(e.key){var t=Ph[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ys,charCode:function(e){return e.type==="keypress"?Zl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jh=Ye(Dh),Fh=ie({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ea=Ye(Fh),Uh=ie({},sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ys}),$h=Ye(Uh),Bh=ie({},ir,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hh=Ye(Bh),Wh=ie({},Ii,{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}),Vh=Ye(Wh),bh=[9,13,27,32],Xs=Lt&&"CompositionEvent"in window,zr=null;Lt&&"documentMode"in document&&(zr=document.documentMode);var Zh=Lt&&"TextEvent"in window&&!zr,Cf=Lt&&(!Xs||zr&&8<zr&&11>=zr),_a=" ",Ta=!1;function Af(e,t){switch(e){case"keyup":return bh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mn=!1;function Gh(e,t){switch(e){case"compositionend":return Rf(t);case"keypress":return t.which!==32?null:(Ta=!0,_a);case"textInput":return e=t.data,e===_a&&Ta?null:e;default:return null}}function Qh(e,t){if(Mn)return e==="compositionend"||!Xs&&Af(e,t)?(e=Tf(),bl=Gs=Ht=null,Mn=!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 Cf&&t.locale!=="ko"?null:t.data;default:return null}}var Yh={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 Ca(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Yh[e.type]:t==="textarea"}function Nf(e,t,n,r){of(r),t=ui(t,"onChange"),0<t.length&&(n=new Qs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Or=null,Qr=null;function Xh(e){$f(e,0)}function Li(e){var t=Fn(e);if(Jc(t))return e}function Kh(e,t){if(e==="change")return t}var If=!1;if(Lt){var ao;if(Lt){var co="oninput"in document;if(!co){var Aa=document.createElement("div");Aa.setAttribute("oninput","return;"),co=typeof Aa.oninput=="function"}ao=co}else ao=!1;If=ao&&(!document.documentMode||9<document.documentMode)}function Ra(){Or&&(Or.detachEvent("onpropertychange",Lf),Qr=Or=null)}function Lf(e){if(e.propertyName==="value"&&Li(Qr)){var t=[];Nf(t,Qr,e,Hs(e)),cf(Xh,t)}}function Jh(e,t,n){e==="focusin"?(Ra(),Or=t,Qr=n,Or.attachEvent("onpropertychange",Lf)):e==="focusout"&&Ra()}function qh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Li(Qr)}function em(e,t){if(e==="click")return Li(t)}function tm(e,t){if(e==="input"||e==="change")return Li(t)}function nm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dt=typeof Object.is=="function"?Object.is:nm;function Yr(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(!Do.call(t,l)||!dt(e[l],t[l]))return!1}return!0}function Na(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ia(e,t){var n=Na(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=Na(n)}}function Pf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zf(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ti(e.document)}return t}function Ks(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 rm(e){var t=zf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pf(n.ownerDocument.documentElement,n)){if(r!==null&&Ks(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=Ia(n,i);var o=Ia(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lm=Lt&&"documentMode"in document&&11>=document.documentMode,Dn=null,ts=null,Mr=null,ns=!1;function La(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ns||Dn==null||Dn!==ti(r)||(r=Dn,"selectionStart"in r&&Ks(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}),Mr&&Yr(Mr,r)||(Mr=r,r=ui(ts,"onSelect"),0<r.length&&(t=new Qs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Dn)))}function Nl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jn={animationend:Nl("Animation","AnimationEnd"),animationiteration:Nl("Animation","AnimationIteration"),animationstart:Nl("Animation","AnimationStart"),transitionend:Nl("Transition","TransitionEnd")},fo={},Of={};Lt&&(Of=document.createElement("div").style,"AnimationEvent"in window||(delete jn.animationend.animation,delete jn.animationiteration.animation,delete jn.animationstart.animation),"TransitionEvent"in window||delete jn.transitionend.transition);function Pi(e){if(fo[e])return fo[e];if(!jn[e])return e;var t=jn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Of)return fo[e]=t[n];return e}var Mf=Pi("animationend"),Df=Pi("animationiteration"),jf=Pi("animationstart"),Ff=Pi("transitionend"),Uf=new Map,Pa="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 en(e,t){Uf.set(e,t),Sn(t,[e])}for(var po=0;po<Pa.length;po++){var ho=Pa[po],im=ho.toLowerCase(),om=ho[0].toUpperCase()+ho.slice(1);en(im,"on"+om)}en(Mf,"onAnimationEnd");en(Df,"onAnimationIteration");en(jf,"onAnimationStart");en("dblclick","onDoubleClick");en("focusin","onFocus");en("focusout","onBlur");en(Ff,"onTransitionEnd");Kn("onMouseEnter",["mouseout","mouseover"]);Kn("onMouseLeave",["mouseout","mouseover"]);Kn("onPointerEnter",["pointerout","pointerover"]);Kn("onPointerLeave",["pointerout","pointerover"]);Sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Sn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="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(" "),sm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function za(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ih(r,t,void 0,e),e.currentTarget=null}function $f(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 o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,a=s.currentTarget;if(s=s.listener,u!==i&&l.isPropagationStopped())break e;za(l,s,a),i=u}else for(o=0;o<r.length;o++){if(s=r[o],u=s.instance,a=s.currentTarget,s=s.listener,u!==i&&l.isPropagationStopped())break e;za(l,s,a),i=u}}}if(ri)throw e=Ko,ri=!1,Ko=null,e}function K(e,t){var n=t[ss];n===void 0&&(n=t[ss]=new Set);var r=e+"__bubble";n.has(r)||(Bf(t,e,2,!1),n.add(r))}function mo(e,t,n){var r=0;t&&(r|=4),Bf(n,e,r,t)}var Il="_reactListening"+Math.random().toString(36).slice(2);function Xr(e){if(!e[Il]){e[Il]=!0,Gc.forEach(function(n){n!=="selectionchange"&&(sm.has(n)||mo(n,!1,e),mo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Il]||(t[Il]=!0,mo("selectionchange",!1,t))}}function Bf(e,t,n,r){switch(_f(t)){case 1:var l=xh;break;case 4:l=Sh;break;default:l=Zs}n=l.bind(null,t,n,e),l=void 0,!Xo||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 go(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===l||s.nodeType===8&&s.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;o=o.return}for(;s!==null;){if(o=an(s),o===null)return;if(u=o.tag,u===5||u===6){r=i=o;continue e}s=s.parentNode}}r=r.return}cf(function(){var a=i,h=Hs(n),g=[];e:{var m=Uf.get(e);if(m!==void 0){var v=Qs,x=e;switch(e){case"keypress":if(Zl(n)===0)break e;case"keydown":case"keyup":v=jh;break;case"focusin":x="focus",v=uo;break;case"focusout":x="blur",v=uo;break;case"beforeblur":case"afterblur":v=uo;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":v=xa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Th;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=$h;break;case Mf:case Df:case jf:v=Rh;break;case Ff:v=Hh;break;case"scroll":v=Eh;break;case"wheel":v=Vh;break;case"copy":case"cut":case"paste":v=Ih;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Ea}var _=(t&4)!==0,D=!_&&e==="scroll",d=_?m!==null?m+"Capture":null:m;_=[];for(var c=a,p;c!==null;){p=c;var y=p.stateNode;if(p.tag===5&&y!==null&&(p=y,d!==null&&(y=Vr(c,d),y!=null&&_.push(Kr(c,y,p)))),D)break;c=c.return}0<_.length&&(m=new v(m,x,null,n,h),g.push({event:m,listeners:_}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==Qo&&(x=n.relatedTarget||n.fromElement)&&(an(x)||x[Pt]))break e;if((v||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=a,x=x?an(x):null,x!==null&&(D=En(x),x!==D||x.tag!==5&&x.tag!==6)&&(x=null)):(v=null,x=a),v!==x)){if(_=xa,y="onMouseLeave",d="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(_=Ea,y="onPointerLeave",d="onPointerEnter",c="pointer"),D=v==null?m:Fn(v),p=x==null?m:Fn(x),m=new _(y,c+"leave",v,n,h),m.target=D,m.relatedTarget=p,y=null,an(h)===a&&(_=new _(d,c+"enter",x,n,h),_.target=p,_.relatedTarget=D,y=_),D=y,v&&x)t:{for(_=v,d=x,c=0,p=_;p;p=Ln(p))c++;for(p=0,y=d;y;y=Ln(y))p++;for(;0<c-p;)_=Ln(_),c--;for(;0<p-c;)d=Ln(d),p--;for(;c--;){if(_===d||d!==null&&_===d.alternate)break t;_=Ln(_),d=Ln(d)}_=null}else _=null;v!==null&&Oa(g,m,v,_,!1),x!==null&&D!==null&&Oa(g,D,x,_,!0)}}e:{if(m=a?Fn(a):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var T=Kh;else if(Ca(m))if(If)T=tm;else{T=qh;var A=Jh}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(T=em);if(T&&(T=T(e,a))){Nf(g,T,n,h);break e}A&&A(e,m,a),e==="focusout"&&(A=m._wrapperState)&&A.controlled&&m.type==="number"&&Wo(m,"number",m.value)}switch(A=a?Fn(a):window,e){case"focusin":(Ca(A)||A.contentEditable==="true")&&(Dn=A,ts=a,Mr=null);break;case"focusout":Mr=ts=Dn=null;break;case"mousedown":ns=!0;break;case"contextmenu":case"mouseup":case"dragend":ns=!1,La(g,n,h);break;case"selectionchange":if(lm)break;case"keydown":case"keyup":La(g,n,h)}var R;if(Xs)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Mn?Af(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Cf&&n.locale!=="ko"&&(Mn||L!=="onCompositionStart"?L==="onCompositionEnd"&&Mn&&(R=Tf()):(Ht=h,Gs="value"in Ht?Ht.value:Ht.textContent,Mn=!0)),A=ui(a,L),0<A.length&&(L=new Sa(L,e,null,n,h),g.push({event:L,listeners:A}),R?L.data=R:(R=Rf(n),R!==null&&(L.data=R)))),(R=Zh?Gh(e,n):Qh(e,n))&&(a=ui(a,"onBeforeInput"),0<a.length&&(h=new Sa("onBeforeInput","beforeinput",null,n,h),g.push({event:h,listeners:a}),h.data=R))}$f(g,t)})}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ui(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Vr(e,n),i!=null&&r.unshift(Kr(e,i,l)),i=Vr(e,t),i!=null&&r.push(Kr(e,i,l))),e=e.return}return r}function Ln(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Oa(e,t,n,r,l){for(var i=t._reactName,o=[];n!==null&&n!==r;){var s=n,u=s.alternate,a=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&a!==null&&(s=a,l?(u=Vr(n,i),u!=null&&o.unshift(Kr(n,u,s))):l||(u=Vr(n,i),u!=null&&o.push(Kr(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var um=/\r\n?/g,am=/\u0000|\uFFFD/g;function Ma(e){return(typeof e=="string"?e:""+e).replace(um,` | |
`).replace(am,"")}function Ll(e,t,n){if(t=Ma(t),Ma(e)!==t&&n)throw Error(k(425))}function ai(){}var rs=null,ls=null;function is(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 os=typeof setTimeout=="function"?setTimeout:void 0,cm=typeof clearTimeout=="function"?clearTimeout:void 0,Da=typeof Promise=="function"?Promise:void 0,fm=typeof queueMicrotask=="function"?queueMicrotask:typeof Da<"u"?function(e){return Da.resolve(null).then(e).catch(dm)}:os;function dm(e){setTimeout(function(){throw e})}function yo(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),Gr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Gr(t)}function Gt(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 ja(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 or=Math.random().toString(36).slice(2),yt="__reactFiber$"+or,Jr="__reactProps$"+or,Pt="__reactContainer$"+or,ss="__reactEvents$"+or,pm="__reactListeners$"+or,hm="__reactHandles$"+or;function an(e){var t=e[yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pt]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ja(e);e!==null;){if(n=e[yt])return n;e=ja(e)}return t}e=n,n=e.parentNode}return null}function ul(e){return e=e[yt]||e[Pt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function zi(e){return e[Jr]||null}var us=[],Un=-1;function tn(e){return{current:e}}function J(e){0>Un||(e.current=us[Un],us[Un]=null,Un--)}function Y(e,t){Un++,us[Un]=e.current,e.current=t}var qt={},Ce=tn(qt),Fe=tn(!1),hn=qt;function Jn(e,t){var n=e.type.contextTypes;if(!n)return qt;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 Ue(e){return e=e.childContextTypes,e!=null}function ci(){J(Fe),J(Ce)}function Fa(e,t,n){if(Ce.current!==qt)throw Error(k(168));Y(Ce,t),Y(Fe,n)}function Hf(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(k(108,Jp(e)||"Unknown",l));return ie({},n,r)}function fi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,hn=Ce.current,Y(Ce,e),Y(Fe,Fe.current),!0}function Ua(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Hf(e,t,hn),r.__reactInternalMemoizedMergedChildContext=e,J(Fe),J(Ce),Y(Ce,e)):J(Fe),Y(Fe,n)}var At=null,Oi=!1,vo=!1;function Wf(e){At===null?At=[e]:At.push(e)}function mm(e){Oi=!0,Wf(e)}function nn(){if(!vo&&At!==null){vo=!0;var e=0,t=Z;try{var n=At;for(Z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}At=null,Oi=!1}catch(l){throw At!==null&&(At=At.slice(e+1)),hf(Ws,nn),l}finally{Z=t,vo=!1}}return null}var $n=[],Bn=0,di=null,pi=0,Ke=[],Je=0,mn=null,Rt=1,Nt="";function ln(e,t){$n[Bn++]=pi,$n[Bn++]=di,di=e,pi=t}function Vf(e,t,n){Ke[Je++]=Rt,Ke[Je++]=Nt,Ke[Je++]=mn,mn=e;var r=Rt;e=Nt;var l=32-ct(r)-1;r&=~(1<<l),n+=1;var i=32-ct(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Rt=1<<32-ct(t)+l|n<<l|r,Nt=i+e}else Rt=1<<i|n<<l|r,Nt=e}function Js(e){e.return!==null&&(ln(e,1),Vf(e,1,0))}function qs(e){for(;e===di;)di=$n[--Bn],$n[Bn]=null,pi=$n[--Bn],$n[Bn]=null;for(;e===mn;)mn=Ke[--Je],Ke[Je]=null,Nt=Ke[--Je],Ke[Je]=null,Rt=Ke[--Je],Ke[Je]=null}var be=null,Ve=null,ne=!1,at=null;function bf(e,t){var n=qe(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 $a(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,be=e,Ve=Gt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,be=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=mn!==null?{id:Rt,overflow:Nt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,be=e,Ve=null,!0):!1;default:return!1}}function as(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cs(e){if(ne){var t=Ve;if(t){var n=t;if(!$a(e,t)){if(as(e))throw Error(k(418));t=Gt(n.nextSibling);var r=be;t&&$a(e,t)?bf(r,n):(e.flags=e.flags&-4097|2,ne=!1,be=e)}}else{if(as(e))throw Error(k(418));e.flags=e.flags&-4097|2,ne=!1,be=e}}}function Ba(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;be=e}function Pl(e){if(e!==be)return!1;if(!ne)return Ba(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!is(e.type,e.memoizedProps)),t&&(t=Ve)){if(as(e))throw Zf(),Error(k(418));for(;t;)bf(e,t),t=Gt(t.nextSibling)}if(Ba(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ve=Gt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ve=null}}else Ve=be?Gt(e.stateNode.nextSibling):null;return!0}function Zf(){for(var e=Ve;e;)e=Gt(e.nextSibling)}function qn(){Ve=be=null,ne=!1}function eu(e){at===null?at=[e]:at.push(e)}var gm=Mt.ReactCurrentBatchConfig;function vr(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(k(309));var r=n.stateNode}if(!r)throw Error(k(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(o){var s=l.refs;o===null?delete s[i]:s[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function zl(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ha(e){var t=e._init;return t(e._payload)}function Gf(e){function t(d,c){if(e){var p=d.deletions;p===null?(d.deletions=[c],d.flags|=16):p.push(c)}}function n(d,c){if(!e)return null;for(;c!==null;)t(d,c),c=c.sibling;return null}function r(d,c){for(d=new Map;c!==null;)c.key!==null?d.set(c.key,c):d.set(c.index,c),c=c.sibling;return d}function l(d,c){return d=Kt(d,c),d.index=0,d.sibling=null,d}function i(d,c,p){return d.index=p,e?(p=d.alternate,p!==null?(p=p.index,p<c?(d.flags|=2,c):p):(d.flags|=2,c)):(d.flags|=1048576,c)}function o(d){return e&&d.alternate===null&&(d.flags|=2),d}function s(d,c,p,y){return c===null||c.tag!==6?(c=To(p,d.mode,y),c.return=d,c):(c=l(c,p),c.return=d,c)}function u(d,c,p,y){var T=p.type;return T===On?h(d,c,p.props.children,y,p.key):c!==null&&(c.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ft&&Ha(T)===c.type)?(y=l(c,p.props),y.ref=vr(d,c,p),y.return=d,y):(y=ql(p.type,p.key,p.props,null,d.mode,y),y.ref=vr(d,c,p),y.return=d,y)}function a(d,c,p,y){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=Co(p,d.mode,y),c.return=d,c):(c=l(c,p.children||[]),c.return=d,c)}function h(d,c,p,y,T){return c===null||c.tag!==7?(c=pn(p,d.mode,y,T),c.return=d,c):(c=l(c,p),c.return=d,c)}function g(d,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=To(""+c,d.mode,p),c.return=d,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Sl:return p=ql(c.type,c.key,c.props,null,d.mode,p),p.ref=vr(d,null,c),p.return=d,p;case zn:return c=Co(c,d.mode,p),c.return=d,c;case Ft:var y=c._init;return g(d,y(c._payload),p)}if(Rr(c)||pr(c))return c=pn(c,d.mode,p,null),c.return=d,c;zl(d,c)}return null}function m(d,c,p,y){var T=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return T!==null?null:s(d,c,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Sl:return p.key===T?u(d,c,p,y):null;case zn:return p.key===T?a(d,c,p,y):null;case Ft:return T=p._init,m(d,c,T(p._payload),y)}if(Rr(p)||pr(p))return T!==null?null:h(d,c,p,y,null);zl(d,p)}return null}function v(d,c,p,y,T){if(typeof y=="string"&&y!==""||typeof y=="number")return d=d.get(p)||null,s(c,d,""+y,T);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Sl:return d=d.get(y.key===null?p:y.key)||null,u(c,d,y,T);case zn:return d=d.get(y.key===null?p:y.key)||null,a(c,d,y,T);case Ft:var A=y._init;return v(d,c,p,A(y._payload),T)}if(Rr(y)||pr(y))return d=d.get(p)||null,h(c,d,y,T,null);zl(c,y)}return null}function x(d,c,p,y){for(var T=null,A=null,R=c,L=c=0,q=null;R!==null&&L<p.length;L++){R.index>L?(q=R,R=null):q=R.sibling;var M=m(d,R,p[L],y);if(M===null){R===null&&(R=q);break}e&&R&&M.alternate===null&&t(d,R),c=i(M,c,L),A===null?T=M:A.sibling=M,A=M,R=q}if(L===p.length)return n(d,R),ne&&ln(d,L),T;if(R===null){for(;L<p.length;L++)R=g(d,p[L],y),R!==null&&(c=i(R,c,L),A===null?T=R:A.sibling=R,A=R);return ne&&ln(d,L),T}for(R=r(d,R);L<p.length;L++)q=v(R,d,L,p[L],y),q!==null&&(e&&q.alternate!==null&&R.delete(q.key===null?L:q.key),c=i(q,c,L),A===null?T=q:A.sibling=q,A=q);return e&&R.forEach(function(H){return t(d,H)}),ne&&ln(d,L),T}function _(d,c,p,y){var T=pr(p);if(typeof T!="function")throw Error(k(150));if(p=T.call(p),p==null)throw Error(k(151));for(var A=T=null,R=c,L=c=0,q=null,M=p.next();R!==null&&!M.done;L++,M=p.next()){R.index>L?(q=R,R=null):q=R.sibling;var H=m(d,R,M.value,y);if(H===null){R===null&&(R=q);break}e&&R&&H.alternate===null&&t(d,R),c=i(H,c,L),A===null?T=H:A.sibling=H,A=H,R=q}if(M.done)return n(d,R),ne&&ln(d,L),T;if(R===null){for(;!M.done;L++,M=p.next())M=g(d,M.value,y),M!==null&&(c=i(M,c,L),A===null?T=M:A.sibling=M,A=M);return ne&&ln(d,L),T}for(R=r(d,R);!M.done;L++,M=p.next())M=v(R,d,L,M.value,y),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?L:M.key),c=i(M,c,L),A===null?T=M:A.sibling=M,A=M);return e&&R.forEach(function(Xe){return t(d,Xe)}),ne&&ln(d,L),T}function D(d,c,p,y){if(typeof p=="object"&&p!==null&&p.type===On&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Sl:e:{for(var T=p.key,A=c;A!==null;){if(A.key===T){if(T=p.type,T===On){if(A.tag===7){n(d,A.sibling),c=l(A,p.props.children),c.return=d,d=c;break e}}else if(A.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ft&&Ha(T)===A.type){n(d,A.sibling),c=l(A,p.props),c.ref=vr(d,A,p),c.return=d,d=c;break e}n(d,A);break}else t(d,A);A=A.sibling}p.type===On?(c=pn(p.props.children,d.mode,y,p.key),c.return=d,d=c):(y=ql(p.type,p.key,p.props,null,d.mode,y),y.ref=vr(d,c,p),y.return=d,d=y)}return o(d);case zn:e:{for(A=p.key;c!==null;){if(c.key===A)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(d,c.sibling),c=l(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=Co(p,d.mode,y),c.return=d,d=c}return o(d);case Ft:return A=p._init,D(d,c,A(p._payload),y)}if(Rr(p))return x(d,c,p,y);if(pr(p))return _(d,c,p,y);zl(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,p),c.return=d,d=c):(n(d,c),c=To(p,d.mode,y),c.return=d,d=c),o(d)):n(d,c)}return D}var er=Gf(!0),Qf=Gf(!1),hi=tn(null),mi=null,Hn=null,tu=null;function nu(){tu=Hn=mi=null}function ru(e){var t=hi.current;J(hi),e._currentValue=t}function fs(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 Yn(e,t){mi=e,tu=Hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function tt(e){var t=e._currentValue;if(tu!==e)if(e={context:e,memoizedValue:t,next:null},Hn===null){if(mi===null)throw Error(k(308));Hn=e,mi.dependencies={lanes:0,firstContext:e}}else Hn=Hn.next=e;return t}var cn=null;function lu(e){cn===null?cn=[e]:cn.push(e)}function Yf(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,lu(t)):(n.next=l.next,l.next=n),t.interleaved=n,zt(e,r)}function zt(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 Ut=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xf(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 It(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,zt(e,n)}return l=r.interleaved,l===null?(t.next=t,lu(r)):(t.next=l.next,l.next=t),r.interleaved=t,zt(e,n)}function Gl(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,Vs(e,n)}}function Wa(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 o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,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 gi(e,t,n,r){var l=e.updateQueue;Ut=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,a=u.next;u.next=null,o===null?i=a:o.next=a,o=u;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==o&&(s===null?h.firstBaseUpdate=a:s.next=a,h.lastBaseUpdate=u))}if(i!==null){var g=l.baseState;o=0,h=a=u=null,s=i;do{var m=s.lane,v=s.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,_=s;switch(m=t,v=n,_.tag){case 1:if(x=_.payload,typeof x=="function"){g=x.call(v,g,m);break e}g=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=_.payload,m=typeof x=="function"?x.call(v,g,m):x,m==null)break e;g=ie({},g,m);break e;case 2:Ut=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else v={eventTime:v,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(a=h=v,u=g):h=h.next=v,o|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(u=g),l.baseState=u,l.firstBaseUpdate=a,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);yn|=o,e.lanes=o,e.memoizedState=g}}function Va(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(k(191,l));l.call(r)}}}var al={},xt=tn(al),qr=tn(al),el=tn(al);function fn(e){if(e===al)throw Error(k(174));return e}function ou(e,t){switch(Y(el,t),Y(qr,e),Y(xt,al),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bo(t,e)}J(xt),Y(xt,t)}function tr(){J(xt),J(qr),J(el)}function Kf(e){fn(el.current);var t=fn(xt.current),n=bo(t,e.type);t!==n&&(Y(qr,e),Y(xt,n))}function su(e){qr.current===e&&(J(xt),J(qr))}var re=tn(0);function yi(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 wo=[];function uu(){for(var e=0;e<wo.length;e++)wo[e]._workInProgressVersionPrimary=null;wo.length=0}var Ql=Mt.ReactCurrentDispatcher,ko=Mt.ReactCurrentBatchConfig,gn=0,le=null,ce=null,me=null,vi=!1,Dr=!1,tl=0,ym=0;function Ee(){throw Error(k(321))}function au(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 cu(e,t,n,r,l,i){if(gn=i,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ql.current=e===null||e.memoizedState===null?xm:Sm,e=n(r,l),Dr){i=0;do{if(Dr=!1,tl=0,25<=i)throw Error(k(301));i+=1,me=ce=null,t.updateQueue=null,Ql.current=Em,e=n(r,l)}while(Dr)}if(Ql.current=wi,t=ce!==null&&ce.next!==null,gn=0,me=ce=le=null,vi=!1,t)throw Error(k(300));return e}function fu(){var e=tl!==0;return tl=0,e}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return me===null?le.memoizedState=me=e:me=me.next=e,me}function nt(){if(ce===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=ce.next;var t=me===null?le.memoizedState:me.next;if(t!==null)me=t,ce=e;else{if(e===null)throw Error(k(310));ce=e,e={memoizedState:ce.memoizedState,baseState:ce.baseState,baseQueue:ce.baseQueue,queue:ce.queue,next:null},me===null?le.memoizedState=me=e:me=me.next=e}return me}function nl(e,t){return typeof t=="function"?t(e):t}function xo(e){var t=nt(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=ce,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var o=l.next;l.next=i.next,i.next=o}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var s=o=null,u=null,a=i;do{var h=a.lane;if((gn&h)===h)u!==null&&(u=u.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var g={lane:h,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};u===null?(s=u=g,o=r):u=u.next=g,le.lanes|=h,yn|=h}a=a.next}while(a!==null&&a!==i);u===null?o=r:u.next=s,dt(r,t.memoizedState)||(je=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,le.lanes|=i,yn|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function So(e){var t=nt(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do i=e(i,o.action),o=o.next;while(o!==l);dt(i,t.memoizedState)||(je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Jf(){}function qf(e,t){var n=le,r=nt(),l=t(),i=!dt(r.memoizedState,l);if(i&&(r.memoizedState=l,je=!0),r=r.queue,du(nd.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||me!==null&&me.memoizedState.tag&1){if(n.flags|=2048,rl(9,td.bind(null,n,r,l,t),void 0,null),ge===null)throw Error(k(349));gn&30||ed(n,t,l)}return l}function ed(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=le.updateQueue,t===null?(t={lastEffect:null,stores:null},le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function td(e,t,n,r){t.value=n,t.getSnapshot=r,rd(t)&&ld(e)}function nd(e,t,n){return n(function(){rd(t)&&ld(e)})}function rd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dt(e,n)}catch{return!0}}function ld(e){var t=zt(e,1);t!==null&&ft(t,e,1,-1)}function ba(e){var t=gt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:e},t.queue=e,e=e.dispatch=km.bind(null,le,e),[t.memoizedState,e]}function rl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=le.updateQueue,t===null?(t={lastEffect:null,stores:null},le.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 id(){return nt().memoizedState}function Yl(e,t,n,r){var l=gt();le.flags|=e,l.memoizedState=rl(1|t,n,void 0,r===void 0?null:r)}function Mi(e,t,n,r){var l=nt();r=r===void 0?null:r;var i=void 0;if(ce!==null){var o=ce.memoizedState;if(i=o.destroy,r!==null&&au(r,o.deps)){l.memoizedState=rl(t,n,i,r);return}}le.flags|=e,l.memoizedState=rl(1|t,n,i,r)}function Za(e,t){return Yl(8390656,8,e,t)}function du(e,t){return Mi(2048,8,e,t)}function od(e,t){return Mi(4,2,e,t)}function sd(e,t){return Mi(4,4,e,t)}function ud(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 ad(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4,4,ud.bind(null,t,e),n)}function pu(){}function cd(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&au(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fd(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&au(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function dd(e,t,n){return gn&21?(dt(n,t)||(n=yf(),le.lanes|=n,yn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,je=!0),e.memoizedState=n)}function vm(e,t){var n=Z;Z=n!==0&&4>n?n:4,e(!0);var r=ko.transition;ko.transition={};try{e(!1),t()}finally{Z=n,ko.transition=r}}function pd(){return nt().memoizedState}function wm(e,t,n){var r=Xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hd(e))md(t,n);else if(n=Yf(e,t,n,r),n!==null){var l=Le();ft(n,e,r,l),gd(n,t,r)}}function km(e,t,n){var r=Xt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hd(e))md(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,dt(s,o)){var u=t.interleaved;u===null?(l.next=l,lu(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Yf(e,t,l,r),n!==null&&(l=Le(),ft(n,e,r,l),gd(n,t,r))}}function hd(e){var t=e.alternate;return e===le||t!==null&&t===le}function md(e,t){Dr=vi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vs(e,n)}}var wi={readContext:tt,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},xm={readContext:tt,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:Za,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yl(4194308,4,ud.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yl(4,2,e,t)},useMemo:function(e,t){var n=gt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gt();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=wm.bind(null,le,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:ba,useDebugValue:pu,useDeferredValue:function(e){return gt().memoizedState=e},useTransition:function(){var e=ba(!1),t=e[0];return e=vm.bind(null,e[1]),gt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=le,l=gt();if(ne){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ge===null)throw Error(k(349));gn&30||ed(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Za(nd.bind(null,r,i,e),[e]),r.flags|=2048,rl(9,td.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=gt(),t=ge.identifierPrefix;if(ne){var n=Nt,r=Rt;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=tl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ym++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Sm={readContext:tt,useCallback:cd,useContext:tt,useEffect:du,useImperativeHandle:ad,useInsertionEffect:od,useLayoutEffect:sd,useMemo:fd,useReducer:xo,useRef:id,useState:function(){return xo(nl)},useDebugValue:pu,useDeferredValue:function(e){var t=nt();return dd(t,ce.memoizedState,e)},useTransition:function(){var e=xo(nl)[0],t=nt().memoizedState;return[e,t]},useMutableSource:Jf,useSyncExternalStore:qf,useId:pd,unstable_isNewReconciler:!1},Em={readContext:tt,useCallback:cd,useContext:tt,useEffect:du,useImperativeHandle:ad,useInsertionEffect:od,useLayoutEffect:sd,useMemo:fd,useReducer:So,useRef:id,useState:function(){return So(nl)},useDebugValue:pu,useDeferredValue:function(e){var t=nt();return ce===null?t.memoizedState=e:dd(t,ce.memoizedState,e)},useTransition:function(){var e=So(nl)[0],t=nt().memoizedState;return[e,t]},useMutableSource:Jf,useSyncExternalStore:qf,useId:pd,unstable_isNewReconciler:!1};function st(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ds(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Di={isMounted:function(e){return(e=e._reactInternals)?En(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Le(),l=Xt(e),i=It(r,l);i.payload=t,n!=null&&(i.callback=n),t=Qt(e,i,l),t!==null&&(ft(t,e,l,r),Gl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Le(),l=Xt(e),i=It(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Qt(e,i,l),t!==null&&(ft(t,e,l,r),Gl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Le(),r=Xt(e),l=It(n,r);l.tag=2,t!=null&&(l.callback=t),t=Qt(e,l,r),t!==null&&(ft(t,e,r,n),Gl(t,e,r))}};function Ga(e,t,n,r,l,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Yr(n,r)||!Yr(l,i):!0}function yd(e,t,n){var r=!1,l=qt,i=t.contextType;return typeof i=="object"&&i!==null?i=tt(i):(l=Ue(t)?hn:Ce.current,r=t.contextTypes,i=(r=r!=null)?Jn(e,l):qt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Di,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Qa(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&&Di.enqueueReplaceState(t,t.state,null)}function ps(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},iu(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=tt(i):(i=Ue(t)?hn:Ce.current,l.context=Jn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ds(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&&Di.enqueueReplaceState(l,l.state,null),gi(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function nr(e,t){try{var n="",r=t;do n+=Kp(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 Eo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _m=typeof WeakMap=="function"?WeakMap:Map;function vd(e,t,n){n=It(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xi||(xi=!0,_s=r),hs(e,t)},n}function wd(e,t,n){n=It(-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(){hs(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){hs(e,t),typeof r!="function"&&(Yt===null?Yt=new Set([this]):Yt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ya(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _m;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=Fm.bind(null,e,t,n),t.then(e,e))}function Xa(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 Ka(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=It(-1,1),t.tag=2,Qt(n,t,1))),n.lanes|=1),e)}var Tm=Mt.ReactCurrentOwner,je=!1;function Ie(e,t,n,r){t.child=e===null?Qf(t,null,n,r):er(t,e.child,n,r)}function Ja(e,t,n,r,l){n=n.render;var i=t.ref;return Yn(t,l),r=cu(e,t,n,r,i,l),n=fu(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ot(e,t,l)):(ne&&n&&Js(t),t.flags|=1,Ie(e,t,r,l),t.child)}function qa(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!xu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,kd(e,t,i,r,l)):(e=ql(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 o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Yr,n(o,r)&&e.ref===t.ref)return Ot(e,t,l)}return t.flags|=1,e=Kt(i,r),e.ref=t.ref,e.return=t,t.child=e}function kd(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(Yr(i,r)&&e.ref===t.ref)if(je=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(je=!0);else return t.lanes=e.lanes,Ot(e,t,l)}return ms(e,t,n,r,l)}function xd(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},Y(Vn,He),He|=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,Y(Vn,He),He|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Y(Vn,He),He|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Y(Vn,He),He|=r;return Ie(e,t,l,n),t.child}function Sd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ms(e,t,n,r,l){var i=Ue(n)?hn:Ce.current;return i=Jn(t,i),Yn(t,l),n=cu(e,t,n,r,i,l),r=fu(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ot(e,t,l)):(ne&&r&&Js(t),t.flags|=1,Ie(e,t,n,l),t.child)}function ec(e,t,n,r,l){if(Ue(n)){var i=!0;fi(t)}else i=!1;if(Yn(t,l),t.stateNode===null)Xl(e,t),yd(t,n,r),ps(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,a=n.contextType;typeof a=="object"&&a!==null?a=tt(a):(a=Ue(n)?hn:Ce.current,a=Jn(t,a));var h=n.getDerivedStateFromProps,g=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==a)&&Qa(t,o,r,a),Ut=!1;var m=t.memoizedState;o.state=m,gi(t,r,o,l),u=t.memoizedState,s!==r||m!==u||Fe.current||Ut?(typeof h=="function"&&(ds(t,n,h,r),u=t.memoizedState),(s=Ut||Ga(t,n,s,r,m,u,a))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Xf(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:st(t.type,s),o.props=a,g=t.pendingProps,m=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=tt(u):(u=Ue(n)?hn:Ce.current,u=Jn(t,u));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==g||m!==u)&&Qa(t,o,r,u),Ut=!1,m=t.memoizedState,o.state=m,gi(t,r,o,l);var x=t.memoizedState;s!==g||m!==x||Fe.current||Ut?(typeof v=="function"&&(ds(t,n,v,r),x=t.memoizedState),(a=Ut||Ga(t,n,a,r,m,x,u)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=u,r=a):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return gs(e,t,n,r,i,l)}function gs(e,t,n,r,l,i){Sd(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Ua(t,n,!1),Ot(e,t,i);r=t.stateNode,Tm.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=er(t,e.child,null,i),t.child=er(t,null,s,i)):Ie(e,t,s,i),t.memoizedState=r.state,l&&Ua(t,n,!0),t.child}function Ed(e){var t=e.stateNode;t.pendingContext?Fa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Fa(e,t.context,!1),ou(e,t.containerInfo)}function tc(e,t,n,r,l){return qn(),eu(l),t.flags|=256,Ie(e,t,n,r),t.child}var ys={dehydrated:null,treeContext:null,retryLane:0};function vs(e){return{baseLanes:e,cachePool:null,transitions:null}}function _d(e,t,n){var r=t.pendingProps,l=re.current,i=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Y(re,l&1),e===null)return cs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ui(o,r,0,null),e=pn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=vs(n),t.memoizedState=ys,e):hu(t,o));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return Cm(e,t,o,r,s,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Kt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?i=Kt(s,i):(i=pn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?vs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=ys,r}return i=e.child,e=i.sibling,r=Kt(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 hu(e,t){return t=Ui({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ol(e,t,n,r){return r!==null&&eu(r),er(t,e.child,null,n),e=hu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cm(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Eo(Error(k(422))),Ol(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Ui({mode:"visible",children:r.children},l,0,null),i=pn(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&er(t,e.child,null,o),t.child.memoizedState=vs(o),t.memoizedState=ys,i);if(!(t.mode&1))return Ol(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(k(419)),r=Eo(i,r,void 0),Ol(e,t,o,r)}if(s=(o&e.childLanes)!==0,je||s){if(r=ge,r!==null){switch(o&-o){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|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,zt(e,l),ft(r,e,l,-1))}return ku(),r=Eo(Error(k(421))),Ol(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Um.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,Ve=Gt(l.nextSibling),be=t,ne=!0,at=null,e!==null&&(Ke[Je++]=Rt,Ke[Je++]=Nt,Ke[Je++]=mn,Rt=e.id,Nt=e.overflow,mn=t),t=hu(t,r.children),t.flags|=4096,t)}function nc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fs(e.return,t,n)}function _o(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 Td(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(Ie(e,t,r.children,n),r=re.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&&nc(e,n,t);else if(e.tag===19)nc(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(Y(re,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&&yi(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),_o(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&&yi(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}_o(t,!0,n,null,i);break;case"together":_o(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ot(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=Kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Am(e,t,n){switch(t.tag){case 3:Ed(t),qn();break;case 5:Kf(t);break;case 1:Ue(t.type)&&fi(t);break;case 4:ou(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Y(hi,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Y(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?_d(e,t,n):(Y(re,re.current&1),e=Ot(e,t,n),e!==null?e.sibling:null);Y(re,re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Td(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Y(re,re.current),r)break;return null;case 22:case 23:return t.lanes=0,xd(e,t,n)}return Ot(e,t,n)}var Cd,ws,Ad,Rd;Cd=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}};ws=function(){};Ad=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,fn(xt.current);var i=null;switch(n){case"input":l=Bo(e,l),r=Bo(e,r),i=[];break;case"select":l=ie({},l,{value:void 0}),r=ie({},r,{value:void 0}),i=[];break;case"textarea":l=Vo(e,l),r=Vo(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ai)}Zo(n,r);var o;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var s=l[a];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Hr.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var u=r[a];if(s=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Hr.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&K("scroll",e),i||s===u||(i=[])):(i=i||[]).push(a,u))}n&&(i=i||[]).push("style",n);var a=i;(t.updateQueue=a)&&(t.flags|=4)}};Rd=function(e,t,n,r){n!==r&&(t.flags|=4)};function wr(e,t){if(!ne)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 _e(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 Rm(e,t,n){var r=t.pendingProps;switch(qs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return Ue(t.type)&&ci(),_e(t),null;case 3:return r=t.stateNode,tr(),J(Fe),J(Ce),uu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Pl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,at!==null&&(As(at),at=null))),ws(e,t),_e(t),null;case 5:su(t);var l=fn(el.current);if(n=t.type,e!==null&&t.stateNode!=null)Ad(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return _e(t),null}if(e=fn(xt.current),Pl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[yt]=t,r[Jr]=i,e=(t.mode&1)!==0,n){case"dialog":K("cancel",r),K("close",r);break;case"iframe":case"object":case"embed":K("load",r);break;case"video":case"audio":for(l=0;l<Ir.length;l++)K(Ir[l],r);break;case"source":K("error",r);break;case"img":case"image":case"link":K("error",r),K("load",r);break;case"details":K("toggle",r);break;case"input":fa(r,i),K("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},K("invalid",r);break;case"textarea":pa(r,i),K("invalid",r)}Zo(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Ll(r.textContent,s,e),l=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Ll(r.textContent,s,e),l=["children",""+s]):Hr.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&K("scroll",r)}switch(n){case"input":El(r),da(r,i,!0);break;case"textarea":El(r),ha(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ai)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[yt]=t,e[Jr]=r,Cd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Go(n,r),n){case"dialog":K("cancel",e),K("close",e),l=r;break;case"iframe":case"object":case"embed":K("load",e),l=r;break;case"video":case"audio":for(l=0;l<Ir.length;l++)K(Ir[l],e);l=r;break;case"source":K("error",e),l=r;break;case"img":case"image":case"link":K("error",e),K("load",e),l=r;break;case"details":K("toggle",e),l=r;break;case"input":fa(e,r),l=Bo(e,r),K("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=ie({},r,{value:void 0}),K("invalid",e);break;case"textarea":pa(e,r),l=Vo(e,r),K("invalid",e);break;default:l=r}Zo(n,l),s=l;for(i in s)if(s.hasOwnProperty(i)){var u=s[i];i==="style"?lf(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&nf(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Wr(e,u):typeof u=="number"&&Wr(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Hr.hasOwnProperty(i)?u!=null&&i==="onScroll"&&K("scroll",e):u!=null&&Fs(e,i,u,o))}switch(n){case"input":El(e),da(e,r,!1);break;case"textarea":El(e),ha(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?bn(e,!!r.multiple,i,!1):r.defaultValue!=null&&bn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=ai)}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 _e(t),null;case 6:if(e&&t.stateNode!=null)Rd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=fn(el.current),fn(xt.current),Pl(t)){if(r=t.stateNode,n=t.memoizedProps,r[yt]=t,(i=r.nodeValue!==n)&&(e=be,e!==null))switch(e.tag){case 3:Ll(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ll(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 _e(t),null;case 13:if(J(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&Ve!==null&&t.mode&1&&!(t.flags&128))Zf(),qn(),t.flags|=98560,i=!1;else if(i=Pl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(k(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(k(317));i[yt]=t}else qn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),i=!1}else at!==null&&(As(at),at=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||re.current&1?fe===0&&(fe=3):ku())),t.updateQueue!==null&&(t.flags|=4),_e(t),null);case 4:return tr(),ws(e,t),e===null&&Xr(t.stateNode.containerInfo),_e(t),null;case 10:return ru(t.type._context),_e(t),null;case 17:return Ue(t.type)&&ci(),_e(t),null;case 19:if(J(re),i=t.memoizedState,i===null)return _e(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)wr(i,!1);else{if(fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=yi(e),o!==null){for(t.flags|=128,wr(i,!1),r=o.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,o=i.alternate,o===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=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Y(re,re.current&1|2),t.child}e=e.sibling}i.tail!==null&&se()>rr&&(t.flags|=128,r=!0,wr(i,!1),t.lanes=4194304)}else{if(!r)if(e=yi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ne)return _e(t),null}else 2*se()-i.renderingStartTime>rr&&n!==1073741824&&(t.flags|=128,r=!0,wr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=se(),t.sibling=null,n=re.current,Y(re,r?n&1|2:n&1),t):(_e(t),null);case 22:case 23:return wu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?He&1073741824&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Nm(e,t){switch(qs(t),t.tag){case 1:return Ue(t.type)&&ci(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tr(),J(Fe),J(Ce),uu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return su(t),null;case 13:if(J(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));qn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(re),null;case 4:return tr(),null;case 10:return ru(t.type._context),null;case 22:case 23:return wu(),null;case 24:return null;default:return null}}var Ml=!1,Te=!1,Im=typeof WeakSet=="function"?WeakSet:Set,C=null;function Wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function ks(e,t,n){try{n()}catch(r){oe(e,t,r)}}var rc=!1;function Lm(e,t){if(rs=oi,e=zf(),Ks(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 o=0,s=-1,u=-1,a=0,h=0,g=e,m=null;t:for(;;){for(var v;g!==n||l!==0&&g.nodeType!==3||(s=o+l),g!==i||r!==0&&g.nodeType!==3||(u=o+r),g.nodeType===3&&(o+=g.nodeValue.length),(v=g.firstChild)!==null;)m=g,g=v;for(;;){if(g===e)break t;if(m===n&&++a===l&&(s=o),m===i&&++h===r&&(u=o),(v=g.nextSibling)!==null)break;g=m,m=g.parentNode}g=v}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ls={focusedElem:e,selectionRange:n},oi=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var _=x.memoizedProps,D=x.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?_:st(t.type,_),D);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(y){oe(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return x=rc,rc=!1,x}function jr(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&&ks(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 xs(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 Nd(e){var t=e.alternate;t!==null&&(e.alternate=null,Nd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yt],delete t[Jr],delete t[ss],delete t[pm],delete t[hm])),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 Id(e){return e.tag===5||e.tag===3||e.tag===4}function lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Id(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 Ss(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=ai));else if(r!==4&&(e=e.child,e!==null))for(Ss(e,t,n),e=e.sibling;e!==null;)Ss(e,t,n),e=e.sibling}function Es(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(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}var ve=null,ut=!1;function jt(e,t,n){for(n=n.child;n!==null;)Ld(e,t,n),n=n.sibling}function Ld(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(Ni,n)}catch{}switch(n.tag){case 5:Te||Wn(n,t);case 6:var r=ve,l=ut;ve=null,jt(e,t,n),ve=r,ut=l,ve!==null&&(ut?(e=ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ve.removeChild(n.stateNode));break;case 18:ve!==null&&(ut?(e=ve,n=n.stateNode,e.nodeType===8?yo(e.parentNode,n):e.nodeType===1&&yo(e,n),Gr(e)):yo(ve,n.stateNode));break;case 4:r=ve,l=ut,ve=n.stateNode.containerInfo,ut=!0,jt(e,t,n),ve=r,ut=l;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&ks(n,t,o),l=l.next}while(l!==r)}jt(e,t,n);break;case 1:if(!Te&&(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){oe(n,t,s)}jt(e,t,n);break;case 21:jt(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,jt(e,t,n),Te=r):jt(e,t,n);break;default:jt(e,t,n)}}function ic(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Im),t.forEach(function(r){var l=$m.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function it(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,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:ve=s.stateNode,ut=!1;break e;case 3:ve=s.stateNode.containerInfo,ut=!0;break e;case 4:ve=s.stateNode.containerInfo,ut=!0;break e}s=s.return}if(ve===null)throw Error(k(160));Ld(i,o,l),ve=null,ut=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(a){oe(l,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pd(t,e),t=t.sibling}function Pd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(it(t,e),mt(e),r&4){try{jr(3,e,e.return),ji(3,e)}catch(_){oe(e,e.return,_)}try{jr(5,e,e.return)}catch(_){oe(e,e.return,_)}}break;case 1:it(t,e),mt(e),r&512&&n!==null&&Wn(n,n.return);break;case 5:if(it(t,e),mt(e),r&512&&n!==null&&Wn(n,n.return),e.flags&32){var l=e.stateNode;try{Wr(l,"")}catch(_){oe(e,e.return,_)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&qc(l,i),Go(s,o);var a=Go(s,i);for(o=0;o<u.length;o+=2){var h=u[o],g=u[o+1];h==="style"?lf(l,g):h==="dangerouslySetInnerHTML"?nf(l,g):h==="children"?Wr(l,g):Fs(l,h,g,a)}switch(s){case"input":Ho(l,i);break;case"textarea":ef(l,i);break;case"select":var m=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?bn(l,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?bn(l,!!i.multiple,i.defaultValue,!0):bn(l,!!i.multiple,i.multiple?[]:"",!1))}l[Jr]=i}catch(_){oe(e,e.return,_)}}break;case 6:if(it(t,e),mt(e),r&4){if(e.stateNode===null)throw Error(k(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(_){oe(e,e.return,_)}}break;case 3:if(it(t,e),mt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Gr(t.containerInfo)}catch(_){oe(e,e.return,_)}break;case 4:it(t,e),mt(e);break;case 13:it(t,e),mt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(yu=se())),r&4&&ic(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Te=(a=Te)||h,it(t,e),Te=a):it(t,e),mt(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!h&&e.mode&1)for(C=e,h=e.child;h!==null;){for(g=C=h;C!==null;){switch(m=C,v=m.child,m.tag){case 0:case 11:case 14:case 15:jr(4,m,m.return);break;case 1:Wn(m,m.return);var x=m.stateNode;if(typeof x.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(_){oe(r,n,_)}}break;case 5:Wn(m,m.return);break;case 22:if(m.memoizedState!==null){sc(g);continue}}v!==null?(v.return=m,C=v):sc(g)}h=h.sibling}e:for(h=null,g=e;;){if(g.tag===5){if(h===null){h=g;try{l=g.stateNode,a?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=g.stateNode,u=g.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=rf("display",o))}catch(_){oe(e,e.return,_)}}}else if(g.tag===6){if(h===null)try{g.stateNode.nodeValue=a?"":g.memoizedProps}catch(_){oe(e,e.return,_)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;h===g&&(h=null),g=g.return}h===g&&(h=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:it(t,e),mt(e),r&4&&ic(e);break;case 21:break;default:it(t,e),mt(e)}}function mt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Id(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Wr(l,""),r.flags&=-33);var i=lc(e);Es(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,s=lc(e);Ss(e,s,o);break;default:throw Error(k(161))}}catch(u){oe(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pm(e,t,n){C=e,zd(e)}function zd(e,t,n){for(var r=(e.mode&1)!==0;C!==null;){var l=C,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Ml;if(!o){var s=l.alternate,u=s!==null&&s.memoizedState!==null||Te;s=Ml;var a=Te;if(Ml=o,(Te=u)&&!a)for(C=l;C!==null;)o=C,u=o.child,o.tag===22&&o.memoizedState!==null?uc(l):u!==null?(u.return=o,C=u):uc(l);for(;i!==null;)C=i,zd(i),i=i.sibling;C=l,Ml=s,Te=a}oc(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,C=i):oc(e)}}function oc(e){for(;C!==null;){var t=C;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Te||ji(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Te)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:st(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Va(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Va(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var h=a.memoizedState;if(h!==null){var g=h.dehydrated;g!==null&&Gr(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}Te||t.flags&512&&xs(t)}catch(m){oe(t,t.return,m)}}if(t===e){C=null;break}if(n=t.sibling,n!==null){n.return=t.return,C=n;break}C=t.return}}function sc(e){for(;C!==null;){var t=C;if(t===e){C=null;break}var n=t.sibling;if(n!==null){n.return=t.return,C=n;break}C=t.return}}function uc(e){for(;C!==null;){var t=C;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ji(4,t)}catch(u){oe(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){oe(t,l,u)}}var i=t.return;try{xs(t)}catch(u){oe(t,i,u)}break;case 5:var o=t.return;try{xs(t)}catch(u){oe(t,o,u)}}}catch(u){oe(t,t.return,u)}if(t===e){C=null;break}var s=t.sibling;if(s!==null){s.return=t.return,C=s;break}C=t.return}}var zm=Math.ceil,ki=Mt.ReactCurrentDispatcher,mu=Mt.ReactCurrentOwner,et=Mt.ReactCurrentBatchConfig,$=0,ge=null,ue=null,ke=0,He=0,Vn=tn(0),fe=0,ll=null,yn=0,Fi=0,gu=0,Fr=null,De=null,yu=0,rr=1/0,Ct=null,xi=!1,_s=null,Yt=null,Dl=!1,Wt=null,Si=0,Ur=0,Ts=null,Kl=-1,Jl=0;function Le(){return $&6?se():Kl!==-1?Kl:Kl=se()}function Xt(e){return e.mode&1?$&2&&ke!==0?ke&-ke:gm.transition!==null?(Jl===0&&(Jl=yf()),Jl):(e=Z,e!==0||(e=window.event,e=e===void 0?16:_f(e.type)),e):1}function ft(e,t,n,r){if(50<Ur)throw Ur=0,Ts=null,Error(k(185));ol(e,n,r),(!($&2)||e!==ge)&&(e===ge&&(!($&2)&&(Fi|=n),fe===4&&Bt(e,ke)),$e(e,r),n===1&&$===0&&!(t.mode&1)&&(rr=se()+500,Oi&&nn()))}function $e(e,t){var n=e.callbackNode;gh(e,t);var r=ii(e,e===ge?ke:0);if(r===0)n!==null&&ya(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ya(n),t===1)e.tag===0?mm(ac.bind(null,e)):Wf(ac.bind(null,e)),fm(function(){!($&6)&&nn()}),n=null;else{switch(vf(r)){case 1:n=Ws;break;case 4:n=mf;break;case 16:n=li;break;case 536870912:n=gf;break;default:n=li}n=Bd(n,Od.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Od(e,t){if(Kl=-1,Jl=0,$&6)throw Error(k(327));var n=e.callbackNode;if(Xn()&&e.callbackNode!==n)return null;var r=ii(e,e===ge?ke:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ei(e,r);else{t=r;var l=$;$|=2;var i=Dd();(ge!==e||ke!==t)&&(Ct=null,rr=se()+500,dn(e,t));do try{Dm();break}catch(s){Md(e,s)}while(!0);nu(),ki.current=i,$=l,ue!==null?t=0:(ge=null,ke=0,t=fe)}if(t!==0){if(t===2&&(l=Jo(e),l!==0&&(r=l,t=Cs(e,l))),t===1)throw n=ll,dn(e,0),Bt(e,r),$e(e,se()),n;if(t===6)Bt(e,r);else{if(l=e.current.alternate,!(r&30)&&!Om(l)&&(t=Ei(e,r),t===2&&(i=Jo(e),i!==0&&(r=i,t=Cs(e,i))),t===1))throw n=ll,dn(e,0),Bt(e,r),$e(e,se()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:on(e,De,Ct);break;case 3:if(Bt(e,r),(r&130023424)===r&&(t=yu+500-se(),10<t)){if(ii(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){Le(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=os(on.bind(null,e,De,Ct),t);break}on(e,De,Ct);break;case 4:if(Bt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-ct(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zm(r/1960))-r,10<r){e.timeoutHandle=os(on.bind(null,e,De,Ct),r);break}on(e,De,Ct);break;case 5:on(e,De,Ct);break;default:throw Error(k(329))}}}return $e(e,se()),e.callbackNode===n?Od.bind(null,e):null}function Cs(e,t){var n=Fr;return e.current.memoizedState.isDehydrated&&(dn(e,t).flags|=256),e=Ei(e,t),e!==2&&(t=De,De=n,t!==null&&As(t)),e}function As(e){De===null?De=e:De.push.apply(De,e)}function Om(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 Bt(e,t){for(t&=~gu,t&=~Fi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ct(t),r=1<<n;e[n]=-1,t&=~r}}function ac(e){if($&6)throw Error(k(327));Xn();var t=ii(e,0);if(!(t&1))return $e(e,se()),null;var n=Ei(e,t);if(e.tag!==0&&n===2){var r=Jo(e);r!==0&&(t=r,n=Cs(e,r))}if(n===1)throw n=ll,dn(e,0),Bt(e,t),$e(e,se()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e,De,Ct),$e(e,se()),null}function vu(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(rr=se()+500,Oi&&nn())}}function vn(e){Wt!==null&&Wt.tag===0&&!($&6)&&Xn();var t=$;$|=1;var n=et.transition,r=Z;try{if(et.transition=null,Z=1,e)return e()}finally{Z=r,et.transition=n,$=t,!($&6)&&nn()}}function wu(){He=Vn.current,J(Vn)}function dn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,cm(n)),ue!==null)for(n=ue.return;n!==null;){var r=n;switch(qs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ci();break;case 3:tr(),J(Fe),J(Ce),uu();break;case 5:su(r);break;case 4:tr();break;case 13:J(re);break;case 19:J(re);break;case 10:ru(r.type._context);break;case 22:case 23:wu()}n=n.return}if(ge=e,ue=e=Kt(e.current,null),ke=He=t,fe=0,ll=null,gu=Fi=yn=0,De=Fr=null,cn!==null){for(t=0;t<cn.length;t++)if(n=cn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=l,r.next=o}n.pending=r}cn=null}return e}function Md(e,t){do{var n=ue;try{if(nu(),Ql.current=wi,vi){for(var r=le.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}vi=!1}if(gn=0,me=ce=le=null,Dr=!1,tl=0,mu.current=null,n===null||n.return===null){fe=1,ll=t,ue=null;break}e:{var i=e,o=n.return,s=n,u=t;if(t=ke,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u,h=s,g=h.tag;if(!(h.mode&1)&&(g===0||g===11||g===15)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=Xa(o);if(v!==null){v.flags&=-257,Ka(v,o,s,i,t),v.mode&1&&Ya(i,a,t),t=v,u=a;var x=t.updateQueue;if(x===null){var _=new Set;_.add(u),t.updateQueue=_}else x.add(u);break e}else{if(!(t&1)){Ya(i,a,t),ku();break e}u=Error(k(426))}}else if(ne&&s.mode&1){var D=Xa(o);if(D!==null){!(D.flags&65536)&&(D.flags|=256),Ka(D,o,s,i,t),eu(nr(u,s));break e}}i=u=nr(u,s),fe!==4&&(fe=2),Fr===null?Fr=[i]:Fr.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var d=vd(i,u,t);Wa(i,d);break e;case 1:s=u;var c=i.type,p=i.stateNode;if(!(i.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Yt===null||!Yt.has(p)))){i.flags|=65536,t&=-t,i.lanes|=t;var y=wd(i,s,t);Wa(i,y);break e}}i=i.return}while(i!==null)}Fd(n)}catch(T){t=T,ue===n&&n!==null&&(ue=n=n.return);continue}break}while(!0)}function Dd(){var e=ki.current;return ki.current=wi,e===null?wi:e}function ku(){(fe===0||fe===3||fe===2)&&(fe=4),ge===null||!(yn&268435455)&&!(Fi&268435455)||Bt(ge,ke)}function Ei(e,t){var n=$;$|=2;var r=Dd();(ge!==e||ke!==t)&&(Ct=null,dn(e,t));do try{Mm();break}catch(l){Md(e,l)}while(!0);if(nu(),$=n,ki.current=r,ue!==null)throw Error(k(261));return ge=null,ke=0,fe}function Mm(){for(;ue!==null;)jd(ue)}function Dm(){for(;ue!==null&&!sh();)jd(ue)}function jd(e){var t=$d(e.alternate,e,He);e.memoizedProps=e.pendingProps,t===null?Fd(e):ue=t,mu.current=null}function Fd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Nm(n,t),n!==null){n.flags&=32767,ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{fe=6,ue=null;return}}else if(n=Rm(n,t,He),n!==null){ue=n;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);fe===0&&(fe=5)}function on(e,t,n){var r=Z,l=et.transition;try{et.transition=null,Z=1,jm(e,t,n,r)}finally{et.transition=l,Z=r}return null}function jm(e,t,n,r){do Xn();while(Wt!==null);if($&6)throw Error(k(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(k(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(yh(e,i),e===ge&&(ue=ge=null,ke=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Dl||(Dl=!0,Bd(li,function(){return Xn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=et.transition,et.transition=null;var o=Z;Z=1;var s=$;$|=4,mu.current=null,Lm(e,n),Pd(n,e),rm(ls),oi=!!rs,ls=rs=null,e.current=n,Pm(n),uh(),$=s,Z=o,et.transition=i}else e.current=n;if(Dl&&(Dl=!1,Wt=e,Si=l),i=e.pendingLanes,i===0&&(Yt=null),fh(n.stateNode),$e(e,se()),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(xi)throw xi=!1,e=_s,_s=null,e;return Si&1&&e.tag!==0&&Xn(),i=e.pendingLanes,i&1?e===Ts?Ur++:(Ur=0,Ts=e):Ur=0,nn(),null}function Xn(){if(Wt!==null){var e=vf(Si),t=et.transition,n=Z;try{if(et.transition=null,Z=16>e?16:e,Wt===null)var r=!1;else{if(e=Wt,Wt=null,Si=0,$&6)throw Error(k(331));var l=$;for($|=4,C=e.current;C!==null;){var i=C,o=i.child;if(C.flags&16){var s=i.deletions;if(s!==null){for(var u=0;u<s.length;u++){var a=s[u];for(C=a;C!==null;){var h=C;switch(h.tag){case 0:case 11:case 15:jr(8,h,i)}var g=h.child;if(g!==null)g.return=h,C=g;else for(;C!==null;){h=C;var m=h.sibling,v=h.return;if(Nd(h),h===a){C=null;break}if(m!==null){m.return=v,C=m;break}C=v}}}var x=i.alternate;if(x!==null){var _=x.child;if(_!==null){x.child=null;do{var D=_.sibling;_.sibling=null,_=D}while(_!==null)}}C=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,C=o;else e:for(;C!==null;){if(i=C,i.flags&2048)switch(i.tag){case 0:case 11:case 15:jr(9,i,i.return)}var d=i.sibling;if(d!==null){d.return=i.return,C=d;break e}C=i.return}}var c=e.current;for(C=c;C!==null;){o=C;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,C=p;else e:for(o=c;C!==null;){if(s=C,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:ji(9,s)}}catch(T){oe(s,s.return,T)}if(s===o){C=null;break e}var y=s.sibling;if(y!==null){y.return=s.return,C=y;break e}C=s.return}}if($=l,nn(),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(Ni,e)}catch{}r=!0}return r}finally{Z=n,et.transition=t}}return!1}function cc(e,t,n){t=nr(n,t),t=vd(e,t,1),e=Qt(e,t,1),t=Le(),e!==null&&(ol(e,1,t),$e(e,t))}function oe(e,t,n){if(e.tag===3)cc(e,e,n);else for(;t!==null;){if(t.tag===3){cc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Yt===null||!Yt.has(r))){e=nr(n,e),e=wd(t,e,1),t=Qt(t,e,1),e=Le(),t!==null&&(ol(t,1,e),$e(t,e));break}}t=t.return}}function Fm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Le(),e.pingedLanes|=e.suspendedLanes&n,ge===e&&(ke&n)===n&&(fe===4||fe===3&&(ke&130023424)===ke&&500>se()-yu?dn(e,0):gu|=n),$e(e,t)}function Ud(e,t){t===0&&(e.mode&1?(t=Cl,Cl<<=1,!(Cl&130023424)&&(Cl=4194304)):t=1);var n=Le();e=zt(e,t),e!==null&&(ol(e,t,n),$e(e,n))}function Um(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ud(e,n)}function $m(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(k(314))}r!==null&&r.delete(t),Ud(e,n)}var $d;$d=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,Am(e,t,n);je=!!(e.flags&131072)}else je=!1,ne&&t.flags&1048576&&Vf(t,pi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xl(e,t),e=t.pendingProps;var l=Jn(t,Ce.current);Yn(t,n),l=cu(null,t,r,e,l,n);var i=fu();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,Ue(r)?(i=!0,fi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,iu(t),l.updater=Di,t.stateNode=l,l._reactInternals=t,ps(t,r,e,n),t=gs(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&Js(t),Ie(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Hm(r),e=st(r,e),l){case 0:t=ms(null,t,r,e,n);break e;case 1:t=ec(null,t,r,e,n);break e;case 11:t=Ja(null,t,r,e,n);break e;case 14:t=qa(null,t,r,st(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),ms(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),ec(e,t,r,l,n);case 3:e:{if(Ed(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Xf(e,t),gi(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=nr(Error(k(423)),t),t=tc(e,t,r,n,l);break e}else if(r!==l){l=nr(Error(k(424)),t),t=tc(e,t,r,n,l);break e}else for(Ve=Gt(t.stateNode.containerInfo.firstChild),be=t,ne=!0,at=null,n=Qf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qn(),r===l){t=Ot(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return Kf(t),e===null&&cs(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,is(r,l)?o=null:i!==null&&is(r,i)&&(t.flags|=32),Sd(e,t),Ie(e,t,o,n),t.child;case 6:return e===null&&cs(t),null;case 13:return _d(e,t,n);case 4:return ou(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=er(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),Ja(e,t,r,l,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,Y(hi,r._currentValue),r._currentValue=o,i!==null)if(dt(i.value,o)){if(i.children===l.children&&!Fe.current){t=Ot(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=It(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?u.next=u:(u.next=h.next,h.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),fs(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(k(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),fs(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ie(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Yn(t,n),l=tt(l),r=r(l),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,l=st(r,t.pendingProps),l=st(r.type,l),qa(e,t,r,l,n);case 15:return kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),Xl(e,t),t.tag=1,Ue(r)?(e=!0,fi(t)):e=!1,Yn(t,n),yd(t,r,l),ps(t,r,l,n),gs(null,t,r,!0,e,n);case 19:return Td(e,t,n);case 22:return xd(e,t,n)}throw Error(k(156,t.tag))};function Bd(e,t){return hf(e,t)}function Bm(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 qe(e,t,n,r){return new Bm(e,t,n,r)}function xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hm(e){if(typeof e=="function")return xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$s)return 11;if(e===Bs)return 14}return 2}function Kt(e,t){var n=e.alternate;return n===null?(n=qe(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 ql(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")xu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case On:return pn(n.children,l,i,t);case Us:o=8,l|=8;break;case jo:return e=qe(12,n,t,l|2),e.elementType=jo,e.lanes=i,e;case Fo:return e=qe(13,n,t,l),e.elementType=Fo,e.lanes=i,e;case Uo:return e=qe(19,n,t,l),e.elementType=Uo,e.lanes=i,e;case Xc:return Ui(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qc:o=10;break e;case Yc:o=9;break e;case $s:o=11;break e;case Bs:o=14;break e;case Ft:o=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=qe(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function pn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function Ui(e,t,n,r){return e=qe(22,e,r,t),e.elementType=Xc,e.lanes=n,e.stateNode={isHidden:!1},e}function To(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function Co(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wm(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=io(0),this.expirationTimes=io(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=io(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Su(e,t,n,r,l,i,o,s,u){return e=new Wm(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=qe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iu(i),e}function Vm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Hd(e){if(!e)return qt;e=e._reactInternals;e:{if(En(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ue(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(Ue(n))return Hf(e,n,t)}return t}function Wd(e,t,n,r,l,i,o,s,u){return e=Su(n,r,!0,e,l,i,o,s,u),e.context=Hd(null),n=e.current,r=Le(),l=Xt(n),i=It(r,l),i.callback=t??null,Qt(n,i,l),e.current.lanes=l,ol(e,l,r),$e(e,r),e}function $i(e,t,n,r){var l=t.current,i=Le(),o=Xt(l);return n=Hd(n),t.context===null?t.context=n:t.pendingContext=n,t=It(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Qt(l,t,o),e!==null&&(ft(e,l,o,i),Gl(e,l,o)),o}function _i(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 fc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Eu(e,t){fc(e,t),(e=e.alternate)&&fc(e,t)}var Vd=typeof reportError=="function"?reportError:function(e){console.error(e)};function _u(e){this._internalRoot=e}Bi.prototype.render=_u.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));$i(e,t,null,null)};Bi.prototype.unmount=_u.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vn(function(){$i(null,e,null,null)}),t[Pt]=null}};function Bi(e){this._internalRoot=e}Bi.prototype.unstable_scheduleHydration=function(e){if(e){var t=xf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$t.length&&t!==0&&t<$t[n].priority;n++);$t.splice(n,0,e),n===0&&Ef(e)}};function Tu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dc(){}function bm(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var a=_i(o);i.call(a)}}var o=Wd(t,r,e,0,null,!1,!1,"",dc);return e._reactRootContainer=o,e[Pt]=o.current,Xr(e.nodeType===8?e.parentNode:e),vn(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var s=r;r=function(){var a=_i(u);s.call(a)}}var u=Su(e,0,!1,null,null,!1,!1,"",dc);return e._reactRootContainer=u,e[Pt]=u.current,Xr(e.nodeType===8?e.parentNode:e),vn(function(){$i(t,u,n,r)}),u}function Wi(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var s=l;l=function(){var u=_i(o);s.call(u)}}$i(t,o,e,l)}else o=bm(n,t,e,l,r);return _i(o)}wf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Nr(t.pendingLanes);n!==0&&(Vs(t,n|1),$e(t,se()),!($&6)&&(rr=se()+500,nn()))}break;case 13:vn(function(){var r=zt(e,1);if(r!==null){var l=Le();ft(r,e,1,l)}}),Eu(e,1)}};bs=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=Le();ft(t,e,134217728,n)}Eu(e,134217728)}};kf=function(e){if(e.tag===13){var t=Xt(e),n=zt(e,t);if(n!==null){var r=Le();ft(n,e,t,r)}Eu(e,t)}};xf=function(){return Z};Sf=function(e,t){var n=Z;try{return Z=e,t()}finally{Z=n}};Yo=function(e,t,n){switch(t){case"input":if(Ho(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=zi(r);if(!l)throw Error(k(90));Jc(r),Ho(r,l)}}}break;case"textarea":ef(e,n);break;case"select":t=n.value,t!=null&&bn(e,!!n.multiple,t,!1)}};uf=vu;af=vn;var Zm={usingClientEntryPoint:!1,Events:[ul,Fn,zi,of,sf,vu]},kr={findFiberByHostInstance:an,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Gm={bundleType:kr.bundleType,version:kr.version,rendererPackageName:kr.rendererPackageName,rendererConfig:kr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=df(e),e===null?null:e.stateNode},findFiberByHostInstance:kr.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 jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jl.isDisabled&&jl.supportsFiber)try{Ni=jl.inject(Gm),kt=jl}catch{}}Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zm;Qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tu(t))throw Error(k(200));return Vm(e,t,null,n)};Qe.createRoot=function(e,t){if(!Tu(e))throw Error(k(299));var n=!1,r="",l=Vd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Su(e,1,!1,null,null,n,!1,r,l),e[Pt]=t.current,Xr(e.nodeType===8?e.parentNode:e),new _u(t)};Qe.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=df(t),e=e===null?null:e.stateNode,e};Qe.flushSync=function(e){return vn(e)};Qe.hydrate=function(e,t,n){if(!Hi(t))throw Error(k(200));return Wi(null,e,t,!0,n)};Qe.hydrateRoot=function(e,t,n){if(!Tu(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=Vd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Wd(t,null,e,1,n??null,l,!1,i,o),e[Pt]=t.current,Xr(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 Bi(t)};Qe.render=function(e,t,n){if(!Hi(t))throw Error(k(200));return Wi(null,e,t,!1,n)};Qe.unmountComponentAtNode=function(e){if(!Hi(e))throw Error(k(40));return e._reactRootContainer?(vn(function(){Wi(null,null,e,!1,function(){e._reactRootContainer=null,e[Pt]=null})}),!0):!1};Qe.unstable_batchedUpdates=vu;Qe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hi(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return Wi(e,t,n,!1,r)};Qe.version="18.3.1-next-f1338f8080-20240426";function bd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bd)}catch(e){console.error(e)}}bd(),Vc.exports=Qe;var Qm=Vc.exports,pc=Qm;Mo.createRoot=pc.createRoot,Mo.hydrateRoot=pc.hydrateRoot;function Cu(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let _n=Cu();function Zd(e){_n=e}const Gd=/[&<>"']/,Ym=new RegExp(Gd.source,"g"),Qd=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xm=new RegExp(Qd.source,"g"),Km={"&":"&","<":"<",">":">",'"':""","'":"'"},hc=e=>Km[e];function We(e,t){if(t){if(Gd.test(e))return e.replace(Ym,hc)}else if(Qd.test(e))return e.replace(Xm,hc);return e}const Jm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function qm(e){return e.replace(Jm,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const eg=/(^|[^\[])\^/g;function G(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(l,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(eg,"$1"),n=n.replace(l,o),r},getRegex:()=>new RegExp(n,t)};return r}function mc(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const $r={exec:()=>null};function gc(e,t){const n=e.replace(/\|/g,(i,o,s)=>{let u=!1,a=o;for(;--a>=0&&s[a]==="\\";)u=!u;return u?"|":" |"}),r=n.split(/ \|/);let l=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;l<r.length;l++)r[l]=r[l].trim().replace(/\\\|/g,"|");return r}function Fl(e,t,n){const r=e.length;if(r===0)return"";let l=0;for(;l<r&&e.charAt(r-l-1)===t;)l++;return e.slice(0,r-l)}function tg(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function yc(e,t,n,r){const l=t.href,i=t.title?We(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const s={type:"link",raw:n,href:l,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,s}return{type:"image",raw:n,href:l,title:i,text:We(o)}}function ng(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(` | |
`).map(l=>{const i=l.match(/^\s+/);if(i===null)return l;const[o]=i;return o.length>=r.length?l.slice(r.length):l}).join(` | |
`)}class Ti{constructor(t){X(this,"options");X(this,"rules");X(this,"lexer");this.options=t||_n}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Fl(r,` | |
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],l=ng(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:l}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const l=Fl(r,"#");(this.options.pedantic||!l||/ $/.test(l))&&(r=l.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` | |
$1`);r=Fl(r.replace(/^ *>[ \t]?/gm,""),` | |
`);const l=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=l,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const l=r.length>1,i={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?r:"[*+-]");const o=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let s="",u="",a=!1;for(;t;){let h=!1;if(!(n=o.exec(t))||this.rules.block.hr.test(t))break;s=n[0],t=t.substring(s.length);let g=n[2].split(` | |
`,1)[0].replace(/^\t+/,d=>" ".repeat(3*d.length)),m=t.split(` | |
`,1)[0],v=0;this.options.pedantic?(v=2,u=g.trimStart()):(v=n[2].search(/[^ ]/),v=v>4?1:v,u=g.slice(v),v+=n[1].length);let x=!1;if(!g&&/^ *$/.test(m)&&(s+=m+` | |
`,t=t.substring(m.length+1),h=!0),!h){const d=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),c=new RegExp(`^ {0,${Math.min(3,v-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),p=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,v-1)}}#`);for(;t;){const T=t.split(` | |
`,1)[0];if(m=T,this.options.pedantic&&(m=m.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),p.test(m)||y.test(m)||d.test(m)||c.test(t))break;if(m.search(/[^ ]/)>=v||!m.trim())u+=` | |
`+m.slice(v);else{if(x||g.search(/[^ ]/)>=4||p.test(g)||y.test(g)||c.test(g))break;u+=` | |
`+m}!x&&!m.trim()&&(x=!0),s+=T+` | |
`,t=t.substring(T.length+1),g=m.slice(v)}}i.loose||(a?i.loose=!0:/\n *\n *$/.test(s)&&(a=!0));let _=null,D;this.options.gfm&&(_=/^\[[ xX]\] /.exec(u),_&&(D=_[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:s,task:!!_,checked:D,loose:!1,text:u,tokens:[]}),i.raw+=s}i.items[i.items.length-1].raw=s.trimEnd(),i.items[i.items.length-1].text=u.trimEnd(),i.raw=i.raw.trimEnd();for(let h=0;h<i.items.length;h++)if(this.lexer.state.top=!1,i.items[h].tokens=this.lexer.blockTokens(i.items[h].text,[]),!i.loose){const g=i.items[h].tokens.filter(v=>v.type==="space"),m=g.length>0&&g.some(v=>/\n.*\n/.test(v.raw));i.loose=m}if(i.loose)for(let h=0;h<i.items.length;h++)i.items[h].loose=!0;return i}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),l=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:l,title:i}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=gc(n[1]),l=n[2].replace(/^\||\| *$/g,"").split("|"),i=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` | |
`):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===l.length){for(const s of l)/^ *-+: *$/.test(s)?o.align.push("right"):/^ *:-+: *$/.test(s)?o.align.push("center"):/^ *:-+ *$/.test(s)?o.align.push("left"):o.align.push(null);for(const s of r)o.header.push({text:s,tokens:this.lexer.inline(s)});for(const s of i)o.rows.push(gc(s,o.header.length).map(u=>({text:u,tokens:this.lexer.inline(u)})));return o}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===` | |
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:We(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=Fl(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=tg(n[2],"()");if(o>-1){const u=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,u).trim(),n[3]=""}}let l=n[2],i="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);o&&(l=o[1],i=o[3])}else i=n[3]?n[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(this.options.pedantic&&!/>$/.test(r)?l=l.slice(1):l=l.slice(1,-1)),yc(n,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const l=(r[2]||r[1]).replace(/\s+/g," "),i=n[l.toLowerCase()];if(!i){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return yc(r,i,r[0],this.lexer)}}emStrong(t,n,r=""){let l=this.rules.inline.emStrongLDelim.exec(t);if(!l||l[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(l[1]||l[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...l[0]].length-1;let s,u,a=o,h=0;const g=l[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,n=n.slice(-1*t.length+o);(l=g.exec(n))!=null;){if(s=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!s)continue;if(u=[...s].length,l[3]||l[4]){a+=u;continue}else if((l[5]||l[6])&&o%3&&!((o+u)%3)){h+=u;continue}if(a-=u,a>0)continue;u=Math.min(u,u+a+h);const m=[...l[0]][0].length,v=t.slice(0,o+l.index+m+u);if(Math.min(o,u)%2){const _=v.slice(1,-1);return{type:"em",raw:v,text:_,tokens:this.lexer.inlineTokens(_)}}const x=v.slice(2,-2);return{type:"strong",raw:v,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const l=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return l&&i&&(r=r.substring(1,r.length-1)),r=We(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,l;return n[2]==="@"?(r=We(n[1]),l="mailto:"+r):(r=We(n[1]),l=r),{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let l,i;if(n[2]==="@")l=We(n[0]),i="mailto:"+l;else{let o;do o=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(o!==n[0]);l=We(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:l,href:i,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=We(n[0]),{type:"text",raw:n[0],text:r}}}}const rg=/^(?: *(?:\n|$))+/,lg=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,ig=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,og=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Yd=/(?:[*+-]|\d{1,9}[.)])/,Xd=G(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Yd).replace(/blockCode/g,/ {4}/).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(),Au=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,sg=/^[^\n]+/,Ru=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ug=G(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Ru).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ag=G(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Yd).getRegex(),Vi="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",Nu=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,cg=G("^ {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",Nu).replace("tag",Vi).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Kd=G(Au).replace("hr",cl).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",Vi).getRegex(),fg=G(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Kd).getRegex(),Iu={blockquote:fg,code:lg,def:ug,fences:ig,heading:og,hr:cl,html:cg,lheading:Xd,list:ag,newline:rg,paragraph:Kd,table:$r,text:sg},vc=G("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",Vi).getRegex(),dg={...Iu,table:vc,paragraph:G(Au).replace("hr",cl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",vc).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",Vi).getRegex()},pg={...Iu,html:G(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Nu).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:$r,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:G(Au).replace("hr",cl).replace("heading",` *#{1,6} *[^ | |
]`).replace("lheading",Xd).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Jd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hg=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,qd=/^( {2,}|\\)\n(?!\s*$)/,mg=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,fl="\\p{P}\\p{S}",gg=G(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,fl).getRegex(),yg=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,vg=G(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,fl).getRegex(),wg=G("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,fl).getRegex(),kg=G("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,fl).getRegex(),xg=G(/\\([punct])/,"gu").replace(/punct/g,fl).getRegex(),Sg=G(/^<(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(),Eg=G(Nu).replace("(?:-->|$)","-->").getRegex(),_g=G("^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",Eg).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ci=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Tg=G(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ci).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ep=G(/^!?\[(label)\]\[(ref)\]/).replace("label",Ci).replace("ref",Ru).getRegex(),tp=G(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ru).getRegex(),Cg=G("reflink|nolink(?!\\()","g").replace("reflink",ep).replace("nolink",tp).getRegex(),Lu={_backpedal:$r,anyPunctuation:xg,autolink:Sg,blockSkip:yg,br:qd,code:hg,del:$r,emStrongLDelim:vg,emStrongRDelimAst:wg,emStrongRDelimUnd:kg,escape:Jd,link:Tg,nolink:tp,punctuation:gg,reflink:ep,reflinkSearch:Cg,tag:_g,text:mg,url:$r},Ag={...Lu,link:G(/^!?\[(label)\]\((.*?)\)/).replace("label",Ci).getRegex(),reflink:G(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ci).getRegex()},Rs={...Lu,escape:G(Jd).replace("])","~|])").getRegex(),url:G(/^((?: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\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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Rg={...Rs,br:G(qd).replace("{2,}","*").getRegex(),text:G(Rs.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ul={normal:Iu,gfm:dg,pedantic:pg},xr={normal:Lu,gfm:Rs,breaks:Rg,pedantic:Ag};class vt{constructor(t){X(this,"tokens");X(this,"options");X(this,"state");X(this,"tokenizer");X(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||_n,this.options.tokenizer=this.options.tokenizer||new Ti,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 n={block:Ul.normal,inline:xr.normal};this.options.pedantic?(n.block=Ul.pedantic,n.inline=xr.pedantic):this.options.gfm&&(n.block=Ul.gfm,this.options.breaks?n.inline=xr.breaks:n.inline=xr.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ul,inline:xr}}static lex(t,n){return new vt(n).lex(t)}static lexInline(t,n){return new vt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,` | |
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(s,u,a)=>u+" ".repeat(a.length));let r,l,i,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>(r=s.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=` | |
`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=` | |
`+r.raw,l.text+=` | |
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=` | |
`+r.raw,l.text+=` | |
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(i=t,this.options.extensions&&this.options.extensions.startBlock){let s=1/0;const u=t.slice(1);let a;this.options.extensions.startBlock.forEach(h=>{a=h.call({lexer:this},u),typeof a=="number"&&a>=0&&(s=Math.min(s,a))}),s<1/0&&s>=0&&(i=t.substring(0,s+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){l=n[n.length-1],o&&l.type==="paragraph"?(l.raw+=` | |
`+r.raw,l.text+=` | |
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):n.push(r),o=i.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&l.type==="text"?(l.raw+=` | |
`+r.raw,l.text+=` | |
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):n.push(r);continue}if(t){const s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,l,i,o=t,s,u,a;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)h.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,s.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(u||(a=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(r=h.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&r.type==="text"&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),l=n[n.length-1],l&&r.type==="text"&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,o,a)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const g=t.slice(1);let m;this.options.extensions.startInline.forEach(v=>{m=v.call({lexer:this},g),typeof m=="number"&&m>=0&&(h=Math.min(h,m))}),h<1/0&&h>=0&&(i=t.substring(0,h+1))}if(r=this.tokenizer.inlineText(i)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(a=r.raw.slice(-1)),u=!0,l=n[n.length-1],l&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return n}}class Ai{constructor(t){X(this,"options");this.options=t||_n}code(t,n,r){var i;const l=(i=(n||"").match(/^\S*/))==null?void 0:i[0];return t=t.replace(/\n$/,"")+` | |
`,l?'<pre><code class="language-'+We(l)+'">'+(r?t:We(t,!0))+`</code></pre> | |
`:"<pre><code>"+(r?t:We(t,!0))+`</code></pre> | |
`}blockquote(t){return`<blockquote> | |
${t}</blockquote> | |
`}html(t,n){return t}heading(t,n,r){return`<h${n}>${t}</h${n}> | |
`}hr(){return`<hr> | |
`}list(t,n,r){const l=n?"ol":"ul",i=n&&r!==1?' start="'+r+'"':"";return"<"+l+i+`> | |
`+t+"</"+l+`> | |
`}listitem(t,n,r){return`<li>${t}</li> | |
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p> | |
`}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table> | |
<thead> | |
`+t+`</thead> | |
`+n+`</table> | |
`}tablerow(t){return`<tr> | |
${t}</tr> | |
`}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+`</${r}> | |
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,r){const l=mc(t);if(l===null)return r;t=l;let i='<a href="'+t+'"';return n&&(i+=' title="'+n+'"'),i+=">"+r+"</a>",i}image(t,n,r){const l=mc(t);if(l===null)return r;t=l;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${n}"`),i+=">",i}text(t){return t}}class Pu{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,r){return""+r}image(t,n,r){return""+r}br(){return""}}class wt{constructor(t){X(this,"options");X(this,"renderer");X(this,"textRenderer");this.options=t||_n,this.options.renderer=this.options.renderer||new Ai,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Pu}static parse(t,n){return new wt(n).parse(t)}static parseInline(t,n){return new wt(n).parseInline(t)}parse(t,n=!0){let r="";for(let l=0;l<t.length;l++){const i=t[l];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const o=i,s=this.options.extensions.renderers[o.type].call({parser:this},o);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){r+=s||"";continue}}switch(i.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const o=i;r+=this.renderer.heading(this.parseInline(o.tokens),o.depth,qm(this.parseInline(o.tokens,this.textRenderer)));continue}case"code":{const o=i;r+=this.renderer.code(o.text,o.lang,!!o.escaped);continue}case"table":{const o=i;let s="",u="";for(let h=0;h<o.header.length;h++)u+=this.renderer.tablecell(this.parseInline(o.header[h].tokens),{header:!0,align:o.align[h]});s+=this.renderer.tablerow(u);let a="";for(let h=0;h<o.rows.length;h++){const g=o.rows[h];u="";for(let m=0;m<g.length;m++)u+=this.renderer.tablecell(this.parseInline(g[m].tokens),{header:!1,align:o.align[m]});a+=this.renderer.tablerow(u)}r+=this.renderer.table(s,a);continue}case"blockquote":{const o=i,s=this.parse(o.tokens);r+=this.renderer.blockquote(s);continue}case"list":{const o=i,s=o.ordered,u=o.start,a=o.loose;let h="";for(let g=0;g<o.items.length;g++){const m=o.items[g],v=m.checked,x=m.task;let _="";if(m.task){const D=this.renderer.checkbox(!!v);a?m.tokens.length>0&&m.tokens[0].type==="paragraph"?(m.tokens[0].text=D+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&m.tokens[0].tokens[0].type==="text"&&(m.tokens[0].tokens[0].text=D+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:D+" "}):_+=D+" "}_+=this.parse(m.tokens,a),h+=this.renderer.listitem(_,x,!!v)}r+=this.renderer.list(h,s,u);continue}case"html":{const o=i;r+=this.renderer.html(o.text,o.block);continue}case"paragraph":{const o=i;r+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=i,s=o.tokens?this.parseInline(o.tokens):o.text;for(;l+1<t.length&&t[l+1].type==="text";)o=t[++l],s+=` | |
`+(o.tokens?this.parseInline(o.tokens):o.text);r+=n?this.renderer.paragraph(s):s;continue}default:{const o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let l=0;l<t.length;l++){const i=t[l];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=o||"";continue}}switch(i.type){case"escape":{const o=i;r+=n.text(o.text);break}case"html":{const o=i;r+=n.html(o.text);break}case"link":{const o=i;r+=n.link(o.href,o.title,this.parseInline(o.tokens,n));break}case"image":{const o=i;r+=n.image(o.href,o.title,o.text);break}case"strong":{const o=i;r+=n.strong(this.parseInline(o.tokens,n));break}case"em":{const o=i;r+=n.em(this.parseInline(o.tokens,n));break}case"codespan":{const o=i;r+=n.codespan(o.text);break}case"br":{r+=n.br();break}case"del":{const o=i;r+=n.del(this.parseInline(o.tokens,n));break}case"text":{const o=i;r+=n.text(o.text);break}default:{const o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}}class Br{constructor(t){X(this,"options");this.options=t||_n}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}X(Br,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var xn,Ns,np;class Ng{constructor(...t){la(this,xn);X(this,"defaults",Cu());X(this,"options",this.setOptions);X(this,"parse",kl(this,xn,Ns).call(this,vt.lex,wt.parse));X(this,"parseInline",kl(this,xn,Ns).call(this,vt.lexInline,wt.parseInline));X(this,"Parser",wt);X(this,"Renderer",Ai);X(this,"TextRenderer",Pu);X(this,"Lexer",vt);X(this,"Tokenizer",Ti);X(this,"Hooks",Br);this.use(...t)}walkTokens(t,n){var l,i;let r=[];for(const o of t)switch(r=r.concat(n.call(this,o)),o.type){case"table":{const s=o;for(const u of s.header)r=r.concat(this.walkTokens(u.tokens,n));for(const u of s.rows)for(const a of u)r=r.concat(this.walkTokens(a.tokens,n));break}case"list":{const s=o;r=r.concat(this.walkTokens(s.items,n));break}default:{const s=o;(i=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(u=>{const a=s[u].flat(1/0);r=r.concat(this.walkTokens(a,n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const o=n.renderers[i.name];o?n.renderers[i.name]=function(...s){let u=i.renderer.apply(this,s);return u===!1&&(u=o.apply(this,s)),u}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[i.level];o?o.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),l.extensions=n),r.renderer){const i=this.defaults.renderer||new Ai(this.defaults);for(const o in r.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(o==="options")continue;const s=o,u=r.renderer[s],a=i[s];i[s]=(...h)=>{let g=u.apply(i,h);return g===!1&&(g=a.apply(i,h)),g||""}}l.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new Ti(this.defaults);for(const o in r.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const s=o,u=r.tokenizer[s],a=i[s];i[s]=(...h)=>{let g=u.apply(i,h);return g===!1&&(g=a.apply(i,h)),g}}l.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Br;for(const o in r.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const s=o,u=r.hooks[s],a=i[s];Br.passThroughHooks.has(o)?i[s]=h=>{if(this.defaults.async)return Promise.resolve(u.call(i,h)).then(m=>a.call(i,m));const g=u.call(i,h);return a.call(i,g)}:i[s]=(...h)=>{let g=u.apply(i,h);return g===!1&&(g=a.apply(i,h)),g}}l.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,o=r.walkTokens;l.walkTokens=function(s){let u=[];return u.push(o.call(this,s)),i&&(u=u.concat(i.call(this,s))),u}}this.defaults={...this.defaults,...l}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return vt.lex(t,n??this.defaults)}parser(t,n){return wt.parse(t,n??this.defaults)}}xn=new WeakSet,Ns=function(t,n){return(r,l)=>{const i={...l},o={...this.defaults,...i};this.defaults.async===!0&&i.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const s=kl(this,xn,np).call(this,!!o.silent,!!o.async);if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(u=>t(u,o)).then(u=>o.hooks?o.hooks.processAllTokens(u):u).then(u=>o.walkTokens?Promise.all(this.walkTokens(u,o.walkTokens)).then(()=>u):u).then(u=>n(u,o)).then(u=>o.hooks?o.hooks.postprocess(u):u).catch(s);try{o.hooks&&(r=o.hooks.preprocess(r));let u=t(r,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let a=n(u,o);return o.hooks&&(a=o.hooks.postprocess(a)),a}catch(u){return s(u)}}},np=function(t,n){return r=>{if(r.message+=` | |
Please report this to https://github.com/markedjs/marked.`,t){const l="<p>An error occurred:</p><pre>"+We(r.message+"",!0)+"</pre>";return n?Promise.resolve(l):l}if(n)return Promise.reject(r);throw r}};const wn=new Ng;function b(e,t){return wn.parse(e,t)}b.options=b.setOptions=function(e){return wn.setOptions(e),b.defaults=wn.defaults,Zd(b.defaults),b};b.getDefaults=Cu;b.defaults=_n;b.use=function(...e){return wn.use(...e),b.defaults=wn.defaults,Zd(b.defaults),b};b.walkTokens=function(e,t){return wn.walkTokens(e,t)};b.parseInline=wn.parseInline;b.Parser=wt;b.parser=wt.parse;b.Renderer=Ai;b.TextRenderer=Pu;b.Lexer=vt;b.lexer=vt.lex;b.Tokenizer=Ti;b.Hooks=Br;b.parse=b;b.options;b.setOptions;b.use;b.walkTokens;b.parseInline;wt.parse;vt.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:rp,setPrototypeOf:wc,isFrozen:Ig,getPrototypeOf:Lg,getOwnPropertyDescriptor:Pg}=Object;let{freeze:Pe,seal:rt,create:lp}=Object,{apply:Is,construct:Ls}=typeof Reflect<"u"&&Reflect;Pe||(Pe=function(t){return t});rt||(rt=function(t){return t});Is||(Is=function(t,n,r){return t.apply(n,r)});Ls||(Ls=function(t,n){return new t(...n)});const $l=Ge(Array.prototype.forEach),kc=Ge(Array.prototype.pop),Sr=Ge(Array.prototype.push),ei=Ge(String.prototype.toLowerCase),Ao=Ge(String.prototype.toString),xc=Ge(String.prototype.match),Er=Ge(String.prototype.replace),zg=Ge(String.prototype.indexOf),Og=Ge(String.prototype.trim),ot=Ge(Object.prototype.hasOwnProperty),Re=Ge(RegExp.prototype.test),_r=Mg(TypeError);function Ge(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];return Is(e,t,r)}}function Mg(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ls(e,n)}}function j(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ei;wc&&wc(e,null);let r=t.length;for(;r--;){let l=t[r];if(typeof l=="string"){const i=n(l);i!==l&&(Ig(t)||(t[r]=i),l=i)}e[l]=!0}return e}function Dg(e){for(let t=0;t<e.length;t++)ot(e,t)||(e[t]=null);return e}function sn(e){const t=lp(null);for(const[n,r]of rp(e))ot(e,n)&&(Array.isArray(r)?t[n]=Dg(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=sn(r):t[n]=r);return t}function Tr(e,t){for(;e!==null;){const r=Pg(e,t);if(r){if(r.get)return Ge(r.get);if(typeof r.value=="function")return Ge(r.value)}e=Lg(e)}function n(){return null}return n}const Sc=Pe(["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"]),Ro=Pe(["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"]),No=Pe(["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"]),jg=Pe(["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"]),Io=Pe(["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"]),Fg=Pe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ec=Pe(["#text"]),_c=Pe(["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"]),Lo=Pe(["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"]),Tc=Pe(["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"]),Bl=Pe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ug=rt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$g=rt(/<%[\w\W]*|[\w\W]*%>/gm),Bg=rt(/\$\{[\w\W]*}/gm),Hg=rt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Wg=rt(/^aria-[\-\w]+$/),ip=rt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vg=rt(/^(?:\w+script|data):/i),bg=rt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),op=rt(/^html$/i),Zg=rt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Cc=Object.freeze({__proto__:null,ARIA_ATTR:Wg,ATTR_WHITESPACE:bg,CUSTOM_ELEMENT:Zg,DATA_ATTR:Hg,DOCTYPE_NAME:op,ERB_EXPR:$g,IS_ALLOWED_URI:ip,IS_SCRIPT_OR_DATA:Vg,MUSTACHE_EXPR:Ug,TMPLIT_EXPR:Bg});const Cr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Gg=function(){return typeof window>"u"?null:window},Qg=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const l="data-tt-policy-suffix";n&&n.hasAttribute(l)&&(r=n.getAttribute(l));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Ac=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function sp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gg();const t=P=>sp(P);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==Cr.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,l=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:a,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:m,trustedTypes:v}=e,x=u.prototype,_=Tr(x,"cloneNode"),D=Tr(x,"remove"),d=Tr(x,"nextSibling"),c=Tr(x,"childNodes"),p=Tr(x,"parentNode");if(typeof o=="function"){const P=n.createElement("template");P.content&&P.content.ownerDocument&&(n=P.content.ownerDocument)}let y,T="";const{implementation:A,createNodeIterator:R,createDocumentFragment:L,getElementsByTagName:q}=n,{importNode:M}=r;let H=Ac();t.isSupported=typeof rp=="function"&&typeof p=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Xe,ERB_EXPR:lt,TMPLIT_EXPR:Dt,DATA_ATTR:U,ARIA_ATTR:ae,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:S,CUSTOM_ELEMENT:I}=Cc;let{IS_ALLOWED_URI:z}=Cc,O=null;const V=j({},[...Sc,...Ro,...No,...Io,...Ec]);let Q=null;const Be=j({},[..._c,...Lo,...Tc,...Bl]);let B=Object.seal(lp(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}})),pe=null,Et=null,ur=!0,ar=!0,dl=!1,Fu=!0,Tn=!1,bi=!0,rn=!1,Zi=!1,Gi=!1,Cn=!1,pl=!1,hl=!1,Uu=!0,$u=!1;const fp="user-content-";let Qi=!0,cr=!1,An={},Rn=null;const Bu=j({},["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 Hu=null;const Wu=j({},["audio","video","img","source","image","track"]);let Yi=null;const Vu=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ml="http://www.w3.org/1998/Math/MathML",gl="http://www.w3.org/2000/svg",_t="http://www.w3.org/1999/xhtml";let Nn=_t,Xi=!1,Ki=null;const dp=j({},[ml,gl,_t],Ao);let yl=j({},["mi","mo","mn","ms","mtext"]),vl=j({},["annotation-xml"]);const pp=j({},["title","style","font","a","script"]);let fr=null;const hp=["application/xhtml+xml","text/html"],mp="text/html";let he=null,In=null;const gp=n.createElement("form"),bu=function(f){return f instanceof RegExp||f instanceof Function},Ji=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(In&&In===f)){if((!f||typeof f!="object")&&(f={}),f=sn(f),fr=hp.indexOf(f.PARSER_MEDIA_TYPE)===-1?mp:f.PARSER_MEDIA_TYPE,he=fr==="application/xhtml+xml"?Ao:ei,O=ot(f,"ALLOWED_TAGS")?j({},f.ALLOWED_TAGS,he):V,Q=ot(f,"ALLOWED_ATTR")?j({},f.ALLOWED_ATTR,he):Be,Ki=ot(f,"ALLOWED_NAMESPACES")?j({},f.ALLOWED_NAMESPACES,Ao):dp,Yi=ot(f,"ADD_URI_SAFE_ATTR")?j(sn(Vu),f.ADD_URI_SAFE_ATTR,he):Vu,Hu=ot(f,"ADD_DATA_URI_TAGS")?j(sn(Wu),f.ADD_DATA_URI_TAGS,he):Wu,Rn=ot(f,"FORBID_CONTENTS")?j({},f.FORBID_CONTENTS,he):Bu,pe=ot(f,"FORBID_TAGS")?j({},f.FORBID_TAGS,he):{},Et=ot(f,"FORBID_ATTR")?j({},f.FORBID_ATTR,he):{},An=ot(f,"USE_PROFILES")?f.USE_PROFILES:!1,ur=f.ALLOW_ARIA_ATTR!==!1,ar=f.ALLOW_DATA_ATTR!==!1,dl=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Fu=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Tn=f.SAFE_FOR_TEMPLATES||!1,bi=f.SAFE_FOR_XML!==!1,rn=f.WHOLE_DOCUMENT||!1,Cn=f.RETURN_DOM||!1,pl=f.RETURN_DOM_FRAGMENT||!1,hl=f.RETURN_TRUSTED_TYPE||!1,Gi=f.FORCE_BODY||!1,Uu=f.SANITIZE_DOM!==!1,$u=f.SANITIZE_NAMED_PROPS||!1,Qi=f.KEEP_CONTENT!==!1,cr=f.IN_PLACE||!1,z=f.ALLOWED_URI_REGEXP||ip,Nn=f.NAMESPACE||_t,yl=f.MATHML_TEXT_INTEGRATION_POINTS||yl,vl=f.HTML_INTEGRATION_POINTS||vl,B=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&bu(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&bu(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(B.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Tn&&(ar=!1),pl&&(Cn=!0),An&&(O=j({},Ec),Q=[],An.html===!0&&(j(O,Sc),j(Q,_c)),An.svg===!0&&(j(O,Ro),j(Q,Lo),j(Q,Bl)),An.svgFilters===!0&&(j(O,No),j(Q,Lo),j(Q,Bl)),An.mathMl===!0&&(j(O,Io),j(Q,Tc),j(Q,Bl))),f.ADD_TAGS&&(O===V&&(O=sn(O)),j(O,f.ADD_TAGS,he)),f.ADD_ATTR&&(Q===Be&&(Q=sn(Q)),j(Q,f.ADD_ATTR,he)),f.ADD_URI_SAFE_ATTR&&j(Yi,f.ADD_URI_SAFE_ATTR,he),f.FORBID_CONTENTS&&(Rn===Bu&&(Rn=sn(Rn)),j(Rn,f.FORBID_CONTENTS,he)),Qi&&(O["#text"]=!0),rn&&j(O,["html","head","body"]),O.table&&(j(O,["tbody"]),delete pe.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=f.TRUSTED_TYPES_POLICY,T=y.createHTML("")}else y===void 0&&(y=Qg(v,l)),y!==null&&typeof T=="string"&&(T=y.createHTML(""));Pe&&Pe(f),In=f}},Zu=j({},[...Ro,...No,...jg]),Gu=j({},[...Io,...Fg]),yp=function(f){let E=p(f);(!E||!E.tagName)&&(E={namespaceURI:Nn,tagName:"template"});const N=ei(f.tagName),ee=ei(E.tagName);return Ki[f.namespaceURI]?f.namespaceURI===gl?E.namespaceURI===_t?N==="svg":E.namespaceURI===ml?N==="svg"&&(ee==="annotation-xml"||yl[ee]):!!Zu[N]:f.namespaceURI===ml?E.namespaceURI===_t?N==="math":E.namespaceURI===gl?N==="math"&&vl[ee]:!!Gu[N]:f.namespaceURI===_t?E.namespaceURI===gl&&!vl[ee]||E.namespaceURI===ml&&!yl[ee]?!1:!Gu[N]&&(pp[N]||!Zu[N]):!!(fr==="application/xhtml+xml"&&Ki[f.namespaceURI]):!1},pt=function(f){Sr(t.removed,{element:f});try{p(f).removeChild(f)}catch{D(f)}},wl=function(f,E){try{Sr(t.removed,{attribute:E.getAttributeNode(f),from:E})}catch{Sr(t.removed,{attribute:null,from:E})}if(E.removeAttribute(f),f==="is")if(Cn||pl)try{pt(E)}catch{}else try{E.setAttribute(f,"")}catch{}},Qu=function(f){let E=null,N=null;if(Gi)f="<remove></remove>"+f;else{const ye=xc(f,/^[\r\n\t ]+/);N=ye&&ye[0]}fr==="application/xhtml+xml"&&Nn===_t&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const ee=y?y.createHTML(f):f;if(Nn===_t)try{E=new m().parseFromString(ee,fr)}catch{}if(!E||!E.documentElement){E=A.createDocument(Nn,"template",null);try{E.documentElement.innerHTML=Xi?T:ee}catch{}}const Se=E.body||E.documentElement;return f&&N&&Se.insertBefore(n.createTextNode(N),Se.childNodes[0]||null),Nn===_t?q.call(E,rn?"html":"body")[0]:rn?E.documentElement:Se},Yu=function(f){return R.call(f.ownerDocument||f,f,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},qi=function(f){return f instanceof g&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof h)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Xu=function(f){return typeof s=="function"&&f instanceof s};function Tt(P,f,E){$l(P,N=>{N.call(t,f,E,In)})}const Ku=function(f){let E=null;if(Tt(H.beforeSanitizeElements,f,null),qi(f))return pt(f),!0;const N=he(f.nodeName);if(Tt(H.uponSanitizeElement,f,{tagName:N,allowedTags:O}),f.hasChildNodes()&&!Xu(f.firstElementChild)&&Re(/<[/\w]/g,f.innerHTML)&&Re(/<[/\w]/g,f.textContent)||f.nodeType===Cr.progressingInstruction||bi&&f.nodeType===Cr.comment&&Re(/<[/\w]/g,f.data))return pt(f),!0;if(!O[N]||pe[N]){if(!pe[N]&&qu(N)&&(B.tagNameCheck instanceof RegExp&&Re(B.tagNameCheck,N)||B.tagNameCheck instanceof Function&&B.tagNameCheck(N)))return!1;if(Qi&&!Rn[N]){const ee=p(f)||f.parentNode,Se=c(f)||f.childNodes;if(Se&&ee){const ye=Se.length;for(let Me=ye-1;Me>=0;--Me){const ht=_(Se[Me],!0);ht.__removalCount=(f.__removalCount||0)+1,ee.insertBefore(ht,d(f))}}}return pt(f),!0}return f instanceof u&&!yp(f)||(N==="noscript"||N==="noembed"||N==="noframes")&&Re(/<\/no(script|embed|frames)/i,f.innerHTML)?(pt(f),!0):(Tn&&f.nodeType===Cr.text&&(E=f.textContent,$l([Xe,lt,Dt],ee=>{E=Er(E,ee," ")}),f.textContent!==E&&(Sr(t.removed,{element:f.cloneNode()}),f.textContent=E)),Tt(H.afterSanitizeElements,f,null),!1)},Ju=function(f,E,N){if(Uu&&(E==="id"||E==="name")&&(N in n||N in gp))return!1;if(!(ar&&!Et[E]&&Re(U,E))){if(!(ur&&Re(ae,E))){if(!Q[E]||Et[E]){if(!(qu(f)&&(B.tagNameCheck instanceof RegExp&&Re(B.tagNameCheck,f)||B.tagNameCheck instanceof Function&&B.tagNameCheck(f))&&(B.attributeNameCheck instanceof RegExp&&Re(B.attributeNameCheck,E)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(E))||E==="is"&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Re(B.tagNameCheck,N)||B.tagNameCheck instanceof Function&&B.tagNameCheck(N))))return!1}else if(!Yi[E]){if(!Re(z,Er(N,S,""))){if(!((E==="src"||E==="xlink:href"||E==="href")&&f!=="script"&&zg(N,"data:")===0&&Hu[f])){if(!(dl&&!Re(W,Er(N,S,"")))){if(N)return!1}}}}}}return!0},qu=function(f){return f!=="annotation-xml"&&xc(f,I)},ea=function(f){Tt(H.beforeSanitizeAttributes,f,null);const{attributes:E}=f;if(!E||qi(f))return;const N={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let ee=E.length;for(;ee--;){const Se=E[ee],{name:ye,namespaceURI:Me,value:ht}=Se,dr=he(ye);let Ae=ye==="value"?ht:Og(ht);if(N.attrName=dr,N.attrValue=Ae,N.keepAttr=!0,N.forceKeepAttr=void 0,Tt(H.uponSanitizeAttribute,f,N),Ae=N.attrValue,$u&&(dr==="id"||dr==="name")&&(wl(ye,f),Ae=fp+Ae),bi&&Re(/((--!?|])>)|<\/(style|title)/i,Ae)){wl(ye,f);continue}if(N.forceKeepAttr||(wl(ye,f),!N.keepAttr))continue;if(!Fu&&Re(/\/>/i,Ae)){wl(ye,f);continue}Tn&&$l([Xe,lt,Dt],na=>{Ae=Er(Ae,na," ")});const ta=he(f.nodeName);if(Ju(ta,dr,Ae)){if(y&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Me)switch(v.getAttributeType(ta,dr)){case"TrustedHTML":{Ae=y.createHTML(Ae);break}case"TrustedScriptURL":{Ae=y.createScriptURL(Ae);break}}try{Me?f.setAttributeNS(Me,ye,Ae):f.setAttribute(ye,Ae),qi(f)?pt(f):kc(t.removed)}catch{}}}Tt(H.afterSanitizeAttributes,f,null)},vp=function P(f){let E=null;const N=Yu(f);for(Tt(H.beforeSanitizeShadowDOM,f,null);E=N.nextNode();)Tt(H.uponSanitizeShadowNode,E,null),Ku(E),ea(E),E.content instanceof i&&P(E.content);Tt(H.afterSanitizeShadowDOM,f,null)};return t.sanitize=function(P){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=null,N=null,ee=null,Se=null;if(Xi=!P,Xi&&(P="<!-->"),typeof P!="string"&&!Xu(P))if(typeof P.toString=="function"){if(P=P.toString(),typeof P!="string")throw _r("dirty is not a string, aborting")}else throw _r("toString is not a function");if(!t.isSupported)return P;if(Zi||Ji(f),t.removed=[],typeof P=="string"&&(cr=!1),cr){if(P.nodeName){const ht=he(P.nodeName);if(!O[ht]||pe[ht])throw _r("root node is forbidden and cannot be sanitized in-place")}}else if(P instanceof s)E=Qu("<!---->"),N=E.ownerDocument.importNode(P,!0),N.nodeType===Cr.element&&N.nodeName==="BODY"||N.nodeName==="HTML"?E=N:E.appendChild(N);else{if(!Cn&&!Tn&&!rn&&P.indexOf("<")===-1)return y&&hl?y.createHTML(P):P;if(E=Qu(P),!E)return Cn?null:hl?T:""}E&&Gi&&pt(E.firstChild);const ye=Yu(cr?P:E);for(;ee=ye.nextNode();)Ku(ee),ea(ee),ee.content instanceof i&&vp(ee.content);if(cr)return P;if(Cn){if(pl)for(Se=L.call(E.ownerDocument);E.firstChild;)Se.appendChild(E.firstChild);else Se=E;return(Q.shadowroot||Q.shadowrootmode)&&(Se=M.call(r,Se,!0)),Se}let Me=rn?E.outerHTML:E.innerHTML;return rn&&O["!doctype"]&&E.ownerDocument&&E.ownerDocument.doctype&&E.ownerDocument.doctype.name&&Re(op,E.ownerDocument.doctype.name)&&(Me="<!DOCTYPE "+E.ownerDocument.doctype.name+`> | |
`+Me),Tn&&$l([Xe,lt,Dt],ht=>{Me=Er(Me,ht," ")}),y&&hl?y.createHTML(Me):Me},t.setConfig=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ji(P),Zi=!0},t.clearConfig=function(){In=null,Zi=!1},t.isValidAttribute=function(P,f,E){In||Ji({});const N=he(P),ee=he(f);return Ju(N,ee,E)},t.addHook=function(P,f){typeof f=="function"&&Sr(H[P],f)},t.removeHook=function(P){return kc(H[P])},t.removeHooks=function(P){H[P]=[]},t.removeAllHooks=function(){H=Ac()},t}var Yg=sp();function Xg(e){return w.jsxs("svg",{...e,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:[w.jsx("path",{d:"M12 8V4H8"}),w.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),w.jsx("path",{d:"M2 14h2"}),w.jsx("path",{d:"M20 14h2"}),w.jsx("path",{d:"M15 13v2"}),w.jsx("path",{d:"M9 13v2"})]})}function Kg(e){return w.jsxs("svg",{...e,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:[w.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),w.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Jg(e){return Yg.sanitize(b.parse(e))}function qg({messages:e}){const t=e.length===0;return te.useEffect(()=>{window.MathJax.typeset()},[e]),w.jsx("div",{className:`flex-1 p-6 max-w-[960px] w-full ${t?"flex flex-col items-center justify-end":"space-y-4"}`,children:t?w.jsx("div",{className:"text-xl",children:"Ready!"}):e.map((n,r)=>w.jsx("div",{className:"flex items-start space-x-4",children:n.role==="assistant"?w.jsxs(w.Fragment,{children:[w.jsx(Xg,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),w.jsx("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-lg p-4",children:w.jsx("p",{className:"min-h-6 text-gray-800 dark:text-gray-200 overflow-wrap-anywhere",children:n.content.length>0?w.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:Jg(n.content)}}):w.jsxs("span",{className:"h-6 flex items-center gap-1",children:[w.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse"}),w.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-200"}),w.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-400"})]})})})]}):w.jsxs(w.Fragment,{children:[w.jsx(Kg,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),w.jsx("div",{className:"bg-blue-500 text-white rounded-lg p-4",children:w.jsx("p",{className:"min-h-6 overflow-wrap-anywhere",children:n.content})})]})},`message-${r}`))})}function Rc(e){return w.jsxs("svg",{...e,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:[w.jsx("path",{d:"M5 12h14"}),w.jsx("path",{d:"m12 5 7 7-7 7"})]})}function Nc(e){return w.jsxs("svg",{...e,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:[w.jsx("path",{d:"M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3z"}),w.jsx("path",{d:"M19 11a1 1 0 1 0-2 0 5 5 0 1 1-10 0 1 1 0 1 0-2 0 7 7 0 0 0 14 0z"}),w.jsx("path",{d:"M13 20.93v-3.23a1 1 0 0 0-2 0v3.23a1 1 0 0 0 .67.94c.09.03.19.06.29.06s.2-.02.29-.06a1 1 0 0 0 .67-.94z"})]})}function ey(e){return w.jsxs("svg",{...e,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:[w.jsx("path",{d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),w.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 ty(e){const t=e==0?0:Math.floor(Math.log(e)/Math.log(1024));return+(e/Math.pow(1024,t)).toFixed(2)*1+["B","kB","MB","GB","TB"][t]}function ny({text:e,percentage:t,total:n}){return t??(t=0),w.jsx("div",{className:"w-full bg-gray-100 dark:bg-gray-700 text-left rounded-lg overflow-hidden mb-0.5",children:w.jsxs("div",{className:"bg-blue-400 whitespace-nowrap px-1 text-sm",style:{width:`${t}%`},children:[e," (",t.toFixed(2),"%",isNaN(n)?"":` of ${ty(n)}`,")"]})})}var we=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},Ne={searchParams:"URLSearchParams"in we,iterable:"Symbol"in we&&"iterator"in Symbol,blob:"FileReader"in we&&"Blob"in we&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in we,arrayBuffer:"ArrayBuffer"in we};function ry(e){return e&&DataView.prototype.isPrototypeOf(e)}if(Ne.arrayBuffer)var ly=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],iy=ArrayBuffer.isView||function(e){return e&&ly.indexOf(Object.prototype.toString.call(e))>-1};function sr(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function zu(e){return typeof e!="string"&&(e=String(e)),e}function Ou(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return Ne.iterable&&(t[Symbol.iterator]=function(){return t}),t}function de(e){this.map={},e instanceof de?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}de.prototype.append=function(e,t){e=sr(e),t=zu(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};de.prototype.delete=function(e){delete this.map[sr(e)]};de.prototype.get=function(e){return e=sr(e),this.has(e)?this.map[e]:null};de.prototype.has=function(e){return this.map.hasOwnProperty(sr(e))};de.prototype.set=function(e,t){this.map[sr(e)]=zu(t)};de.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};de.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),Ou(e)};de.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Ou(e)};de.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),Ou(e)};Ne.iterable&&(de.prototype[Symbol.iterator]=de.prototype.entries);function Po(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function up(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function oy(e){var t=new FileReader,n=up(t);return t.readAsArrayBuffer(e),n}function sy(e){var t=new FileReader,n=up(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),l=r?r[1]:"utf-8";return t.readAsText(e,l),n}function uy(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function Ic(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ap(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:Ne.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Ne.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Ne.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Ne.arrayBuffer&&Ne.blob&&ry(e)?(this._bodyArrayBuffer=Ic(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ne.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||iy(e))?this._bodyArrayBuffer=Ic(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Ne.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ne.blob&&(this.blob=function(){var e=Po(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Po(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(Ne.blob)return this.blob().then(oy);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=Po(this);if(e)return e;if(this._bodyBlob)return sy(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(uy(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Ne.formData&&(this.formData=function(){return this.text().then(fy)}),this.json=function(){return this.text().then(JSON.parse)},this}var ay=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function cy(e){var t=e.toUpperCase();return ay.indexOf(t)>-1?t:e}function kn(e,t){if(!(this instanceof kn))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof kn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new de(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new de(t.headers)),this.method=cy(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in we){var i=new AbortController;return i.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var l=/\?/;this.url+=(l.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}kn.prototype.clone=function(){return new kn(this,{body:this._bodyInit})};function fy(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),l=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(l),decodeURIComponent(i))}}),t}function dy(e){var t=new de,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(` | |
`)===0?r.substr(1,r.length):r}).forEach(function(r){var l=r.split(":"),i=l.shift().trim();if(i){var o=l.join(":").trim();try{t.append(i,o)}catch(s){console.warn("Response "+s.message)}}}),t}ap.call(kn.prototype);function St(e,t){if(!(this instanceof St))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new de(t.headers),this.url=t.url||"",this._initBody(e)}ap.call(St.prototype);St.prototype.clone=function(){return new St(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new de(this.headers),url:this.url})};St.error=function(){var e=new St(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var py=[301,302,303,307,308];St.redirect=function(e,t){if(py.indexOf(t)===-1)throw new RangeError("Invalid status code");return new St(null,{status:t,headers:{location:e}})};var un=we.DOMException;try{new un}catch{un=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},un.prototype=Object.create(Error.prototype),un.prototype.constructor=un}function cp(e,t){return new Promise(function(n,r){var l=new kn(e,t);if(l.signal&&l.signal.aborted)return r(new un("Aborted","AbortError"));var i=new XMLHttpRequest;function o(){i.abort()}i.onload=function(){var a={statusText:i.statusText,headers:dy(i.getAllResponseHeaders()||"")};l.url.indexOf("file://")===0&&(i.status<200||i.status>599)?a.status=200:a.status=i.status,a.url="responseURL"in i?i.responseURL:a.headers.get("X-Request-URL");var h="response"in i?i.response:i.responseText;setTimeout(function(){n(new St(h,a))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){r(new un("Aborted","AbortError"))},0)};function s(a){try{return a===""&&we.location.href?we.location.href:a}catch{return a}}if(i.open(l.method,s(l.url),!0),l.credentials==="include"?i.withCredentials=!0:l.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(Ne.blob?i.responseType="blob":Ne.arrayBuffer&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof de||we.Headers&&t.headers instanceof we.Headers)){var u=[];Object.getOwnPropertyNames(t.headers).forEach(function(a){u.push(sr(a)),i.setRequestHeader(a,zu(t.headers[a]))}),l.headers.forEach(function(a,h){u.indexOf(h)===-1&&i.setRequestHeader(h,a)})}else l.headers.forEach(function(a,h){i.setRequestHeader(h,a)});l.signal&&(l.signal.addEventListener("abort",o),i.onreadystatechange=function(){i.readyState===4&&l.signal.removeEventListener("abort",o)}),i.send(typeof l._bodyInit>"u"?null:l._bodyInit)})}cp.polyfill=!0;we.fetch||(we.fetch=cp,we.Headers=de,we.Request=kn,we.Response=St);const hy="0.5.11";var my=Object.defineProperty,gy=(e,t,n)=>t in e?my(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zo=(e,t,n)=>(gy(e,typeof t!="symbol"?t+"":t,n),n);class Mu extends Error{constructor(t,n){super(t),this.error=t,this.status_code=n,this.name="ResponseError",Error.captureStackTrace&&Error.captureStackTrace(this,Mu)}}class yy{constructor(t,n,r){zo(this,"abortController"),zo(this,"itr"),zo(this,"doneCallback"),this.abortController=t,this.itr=n,this.doneCallback=r}abort(){this.abortController.abort()}async*[Symbol.asyncIterator](){for await(const t of this.itr){if("error"in t)throw new Error(t.error);if(yield t,t.done||t.status==="success"){this.doneCallback();return}}throw new Error("Did not receive done or success response in stream.")}}const Du=async e=>{var r;if(e.ok)return;let t=`Error ${e.status}: ${e.statusText}`,n=null;if((r=e.headers.get("content-type"))!=null&&r.includes("application/json"))try{n=await e.json(),t=n.error||t}catch{console.log("Failed to parse error response as JSON")}else try{console.log("Getting text from response"),t=await e.text()||t}catch{console.log("Failed to get text from error response")}throw new Mu(t,e.status)};function vy(){return typeof window<"u"&&window.navigator?`${window.navigator.platform.toLowerCase()} Browser/${navigator.userAgent};`:typeof process<"u"?`${process.arch} ${process.platform} Node.js/${process.version}`:""}const ju=async(e,t,n={})=>{const r={"Content-Type":"application/json",Accept:"application/json","User-Agent":`ollama-js/${hy} (${vy()})`};n.headers||(n.headers={});const l=Object.fromEntries(Object.entries(n.headers).filter(([i])=>!Object.keys(r).some(o=>o.toLowerCase()===i.toLowerCase())));return n.headers={...r,...l},e(t,n)},Lc=async(e,t,n)=>{const r=await ju(e,t,{headers:n==null?void 0:n.headers});return await Du(r),r},Pn=async(e,t,n,r)=>{const i=(s=>s!==null&&typeof s=="object"&&!Array.isArray(s))(n)?JSON.stringify(n):n,o=await ju(e,t,{method:"POST",body:i,signal:r==null?void 0:r.signal,headers:r==null?void 0:r.headers});return await Du(o),o},wy=async(e,t,n,r)=>{const l=await ju(e,t,{method:"DELETE",body:JSON.stringify(n),headers:r==null?void 0:r.headers});return await Du(l),l},ky=async function*(e){const t=new TextDecoder("utf-8");let n="";const r=e.getReader();for(;;){const{done:l,value:i}=await r.read();if(l)break;n+=t.decode(i);const o=n.split(` | |
`);n=o.pop()??"";for(const s of o)try{yield JSON.parse(s)}catch{console.warn("invalid json: ",s)}}for(const l of n.split(` | |
`).filter(i=>i!==""))try{yield JSON.parse(l)}catch{console.warn("invalid json: ",l)}},xy=e=>{if(!e)return"http://127.0.0.1:11434";let t=e.includes("://");e.startsWith(":")&&(e=`http://127.0.0.1${e}`,t=!0),t||(e=`http://${e}`);const n=new URL(e);let r=n.port;r||(t?r=n.protocol==="https:"?"443":"80":r="11434");let l=`${n.protocol}//${n.hostname}:${r}${n.pathname}`;return l.endsWith("/")&&(l=l.slice(0,-1)),l};var Sy=Object.defineProperty,Ey=(e,t,n)=>t in e?Sy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oo=(e,t,n)=>(Ey(e,typeof t!="symbol"?t+"":t,n),n);let _y=class{constructor(t){Oo(this,"config"),Oo(this,"fetch"),Oo(this,"ongoingStreamedRequests",[]),this.config={host:"",headers:t==null?void 0:t.headers},t!=null&&t.proxy||(this.config.host=xy((t==null?void 0:t.host)??"http://127.0.0.1:11434")),this.fetch=(t==null?void 0:t.fetch)??fetch}abort(){for(const t of this.ongoingStreamedRequests)t.abort();this.ongoingStreamedRequests.length=0}async processStreamableRequest(t,n){n.stream=n.stream??!1;const r=`${this.config.host}/api/${t}`;if(n.stream){const i=new AbortController,o=await Pn(this.fetch,r,n,{signal:i.signal,headers:this.config.headers});if(!o.body)throw new Error("Missing body");const s=ky(o.body),u=new yy(i,s,()=>{const a=this.ongoingStreamedRequests.indexOf(u);a>-1&&this.ongoingStreamedRequests.splice(a,1)});return this.ongoingStreamedRequests.push(u),u}return await(await Pn(this.fetch,r,n,{headers:this.config.headers})).json()}async encodeImage(t){if(typeof t!="string"){const n=new Uint8Array(t);let r="";const l=n.byteLength;for(let i=0;i<l;i++)r+=String.fromCharCode(n[i]);return btoa(r)}return t}async generate(t){return t.images&&(t.images=await Promise.all(t.images.map(this.encodeImage.bind(this)))),this.processStreamableRequest("generate",t)}async chat(t){if(t.messages)for(const n of t.messages)n.images&&(n.images=await Promise.all(n.images.map(this.encodeImage.bind(this))));return this.processStreamableRequest("chat",t)}async create(t){return this.processStreamableRequest("create",{name:t.model,stream:t.stream,modelfile:t.modelfile,quantize:t.quantize})}async pull(t){return this.processStreamableRequest("pull",{name:t.model,stream:t.stream,insecure:t.insecure})}async push(t){return this.processStreamableRequest("push",{name:t.model,stream:t.stream,insecure:t.insecure})}async delete(t){return await wy(this.fetch,`${this.config.host}/api/delete`,{name:t.model},{headers:this.config.headers}),{status:"success"}}async copy(t){return await Pn(this.fetch,`${this.config.host}/api/copy`,{...t},{headers:this.config.headers}),{status:"success"}}async list(){return await(await Lc(this.fetch,`${this.config.host}/api/tags`,{headers:this.config.headers})).json()}async show(t){return await(await Pn(this.fetch,`${this.config.host}/api/show`,{...t},{headers:this.config.headers})).json()}async embed(t){return await(await Pn(this.fetch,`${this.config.host}/api/embed`,{...t},{headers:this.config.headers})).json()}async embeddings(t){return await(await Pn(this.fetch,`${this.config.host}/api/embeddings`,{...t},{headers:this.config.headers})).json()}async ps(){return await(await Lc(this.fetch,`${this.config.host}/api/ps`,{headers:this.config.headers})).json()}};new _y;const Pc=16e3,Ty=!!navigator.gpu,Cy=120,Ay=["Tell me about Constantinople.","Tell me about the Lighthouse of Alexandria."];async function Ry(){try{return(await navigator.gpu.requestAdapter()).features.has("shader-f16")}catch{return!1}}function Ny(){const e=te.useRef(null),t=te.useRef(null),n=te.useRef(null),[r,l]=te.useState(null),[i,o]=te.useState(null),[s,u]=te.useState(""),[a,h]=te.useState([]),[g,m]=te.useState(!1),[v,x]=te.useState(!1),[_,D]=te.useState(!1),[d,c]=te.useState(""),[p,y]=te.useState([]),[T,A]=te.useState(null),[R,L]=te.useState(null),[q,M]=te.useState(0);function H(U){y(ae=>[...ae,{role:"user",content:U}]),A(null),m(!0),c("")}function Xe(U){x(!v)}function lt(){e.current.postMessage({type:"interrupt"}),D(!0)}te.useEffect(()=>{Dt()},[d]);function Dt(){if(!t.current)return;const U=t.current;U.style.height="auto";const ae=Math.min(Math.max(U.scrollHeight,24),200);U.style.height=`${ae}px`}return te.useEffect(()=>{let U=!1;if(r==="ready"){const ae=navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,autoGainControl:!0,noiseSuppression:!0,sampleRate:Pc}});let W,S,I;return ae.then(async z=>{if(U)return;S=new(window.AudioContext||window.webkitAudioContext)({sampleRate:Pc,latencyHint:"interactive"});const O=S.createAnalyser();O.fftSize=32,I=S.createMediaStreamSource(z),I.connect(O);const V=new Uint8Array(O.frequencyBinCount),Q=()=>(O.getByteFrequencyData(V),V.reduce((B,pe)=>B+pe,0)/V.length),Be=()=>{const B=Q();M(B),requestAnimationFrame(Be)};Be(),await S.audioWorklet.addModule(new URL("data:text/javascript;base64,Y29uc3QgTUlOX0NIVU5LX1NJWkUgPSAxNjAwMCAvIDI7IC8vIDUwMCBtcyBjaHVua3MKCmxldCBnbG9iYWxQb2ludGVyID0gMDsKbGV0IGdsb2JhbEJ1ZmZlciA9IG5ldyBGbG9hdDMyQXJyYXkoTUlOX0NIVU5LX1NJWkUpOwoKY2xhc3MgVkFEUHJvY2Vzc29yIGV4dGVuZHMgQXVkaW9Xb3JrbGV0UHJvY2Vzc29yIHsKICBwcm9jZXNzKGlucHV0cywgb3V0cHV0cywgcGFyYW1ldGVycykgewogICAgY29uc3QgYnVmZmVyID0gaW5wdXRzWzBdWzBdOwogICAgaWYgKCFidWZmZXIpIHJldHVybjsgLy8gYnVmZmVyIGlzIG51bGwgd2hlbiB0aGUgc3RyZWFtIGVuZHMKCiAgICBpZiAoYnVmZmVyLmxlbmd0aCA+IE1JTl9DSFVOS19TSVpFKSB7CiAgICAgIC8vIElmIHRoZSBidWZmZXIgaXMgbGFyZ2VyIHRoYW4gdGhlIG1pbmltdW0gY2h1bmsgc2l6ZSwgc2VuZCB0aGUgZW50aXJlIGJ1ZmZlcgogICAgICB0aGlzLnBvcnQucG9zdE1lc3NhZ2UoeyBidWZmZXIgfSk7CiAgICB9IGVsc2UgewogICAgICBjb25zdCByZW1haW5pbmcgPSBNSU5fQ0hVTktfU0laRSAtIGdsb2JhbFBvaW50ZXI7CiAgICAgIGlmIChidWZmZXIubGVuZ3RoID49IHJlbWFpbmluZykgewogICAgICAgIC8vIElmIHRoZSBidWZmZXIgaXMgbGFyZ2VyIHRoYW4gKG9yIGVxdWFsIHRvKSB0aGUgcmVtYWluaW5nIHNwYWNlIGluIHRoZSBnbG9iYWwgYnVmZmVyLCBjb3B5IHRoZSByZW1haW5pbmcgc3BhY2UKICAgICAgICBnbG9iYWxCdWZmZXIuc2V0KGJ1ZmZlci5zdWJhcnJheSgwLCByZW1haW5pbmcpLCBnbG9iYWxQb2ludGVyKTsKCiAgICAgICAgLy8gU2VuZCB0aGUgZ2xvYmFsIGJ1ZmZlcgogICAgICAgIHRoaXMucG9ydC5wb3N0TWVzc2FnZSh7IGJ1ZmZlcjogZ2xvYmFsQnVmZmVyIH0pOwoKICAgICAgICAvLyBSZXNldCB0aGUgZ2xvYmFsIGJ1ZmZlciBhbmQgc2V0IHRoZSByZW1haW5pbmcgYnVmZmVyCiAgICAgICAgZ2xvYmFsQnVmZmVyLmZpbGwoMCk7CiAgICAgICAgZ2xvYmFsQnVmZmVyLnNldChidWZmZXIuc3ViYXJyYXkocmVtYWluaW5nKSwgMCk7CiAgICAgICAgZ2xvYmFsUG9pbnRlciA9IGJ1ZmZlci5sZW5ndGggLSByZW1haW5pbmc7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgLy8gSWYgdGhlIGJ1ZmZlciBpcyBzbWFsbGVyIHRoYW4gdGhlIHJlbWFpbmluZyBzcGFjZSBpbiB0aGUgZ2xvYmFsIGJ1ZmZlciwgY29weSB0aGUgYnVmZmVyIHRvIHRoZSBnbG9iYWwgYnVmZmVyCiAgICAgICAgZ2xvYmFsQnVmZmVyLnNldChidWZmZXIsIGdsb2JhbFBvaW50ZXIpOwogICAgICAgIGdsb2JhbFBvaW50ZXIgKz0gYnVmZmVyLmxlbmd0aDsKICAgICAgfQogICAgfQoKICAgIHJldHVybiB0cnVlOyAvLyBLZWVwIHRoZSBwcm9jZXNzb3IgYWxpdmUKICB9Cn0KCnJlZ2lzdGVyUHJvY2Vzc29yKCJ2YWQtcHJvY2Vzc29yIiwgVkFEUHJvY2Vzc29yKTsK",import.meta.url)),W=new AudioWorkletNode(S,"vad-processor",{numberOfInputs:1,numberOfOutputs:0,channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"}),I.connect(W),W.port.onmessage=B=>{var ur;if(v===!1)return;const{buffer:pe}=B.data;pe.reduce((ar,dl)=>ar+(dl!=0),0)>0&&((ur=e.current)==null||ur.postMessage({type:"audio",data:pe}))}}).catch(z=>{o(z.message),console.error(z)}),()=>{U=!0,ae.then(z=>z.getTracks().forEach(O=>O.stop())),I==null||I.disconnect(),W==null||W.disconnect(),S==null||S.close()}}},[v,r]),te.useEffect(()=>{e.current||(e.current=new Worker(new URL("/assets/worker-DtJ6T77l.js",import.meta.url),{type:"module"}));const U=W=>{switch(W.data.status){case"loading":l("loading"),u(W.data.data);break;case"initiate":h(S=>[...S,W.data]);break;case"progress":h(S=>S.map(I=>I.file===W.data.file?{...I,...W.data}:I));break;case"done":h(S=>S.filter(I=>I.file!==W.data.file));break;case"ready":l("ready");break;case"start":y(S=>[...S,{role:"assistant",content:""}]);break;case"update":{const{output:S,tps:I,numTokens:z}=W.data;A(I),L(z),y(O=>{const V=[...O],Q=V.at(-1);return V[V.length-1]={...Q,content:Q.content+S},V})}break;case"whisper-update":W.data.cont?c(d+W.data.output):W.data.output.toLowerCase().startsWith(" reset")?(e.current.postMessage({type:"reset"}),y([])):(c(W.data.output),H(W.data.output));break;case"complete":m(!1);break;case"error":o(W.data.data);break}},ae=W=>{console.error("Worker error:",W)};return e.current.addEventListener("message",U),e.current.addEventListener("error",ae),()=>{e.current.removeEventListener("message",U),e.current.removeEventListener("error",ae)}},[v,d]),te.useEffect(()=>{p.filter(U=>U.role==="user").length!==0&&p.at(-1).role!=="assistant"&&(A(null),D(!1),e.current.postMessage({type:"generate",data:p}))},[p,g,_]),te.useEffect(()=>{if(!n.current||!g)return;const U=n.current;U.scrollHeight-U.scrollTop-U.clientHeight<Cy&&(U.scrollTop=U.scrollHeight)},[p,g]),Ty&&Ry()?w.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:[r===null&&p.length===0&&w.jsxs("div",{className:"h-full overflow-auto scrollbar-thin flex justify-center items-center flex-col relative",children:[w.jsxs("div",{className:"flex flex-col items-center mb-1 max-w-[300px] text-center",children:[w.jsx("img",{src:"logo.png",width:"85%",height:"auto",className:"block"}),w.jsx("h1",{className:"text-4xl font-bold mb-1",children:"llm-speech"}),w.jsx("h2",{className:"font-semibold",children:"A private and powerful chatbot that runs locally in your browser."}),w.jsxs("p",{className:"text-center text-sm",children:["Powered by ",w.jsx("a",{href:"https://github.com/microsoft/onnxruntime",children:"Onnxruntime"})," and ",w.jsx("a",{href:"https://github.com/huggingface/transformers.js",children:"transformers.js"}),"."]}),w.jsx("br",{}),w.jsx("p",{className:"text-center text-sm",children:"Click on the Microphone icon to enable speech input."})]}),w.jsxs("div",{className:"flex flex-col items-center px-6",children:[i&&w.jsxs("div",{className:"text-red-500 text-center mb-2",children:[w.jsx("p",{className:"mb-1",children:"Unable to load model due to the following error:"}),w.jsx("p",{className:"text-sm",children:i})]}),w.jsx("button",{className:"border px-4 py-2 rounded-lg bg-blue-400 text-white hover:bg-blue-500 disabled:bg-blue-100 disabled:cursor-not-allowed select-none",onClick:()=>{e.current.postMessage({type:"load",data:"llm,vad,whisper"}),l("loading")},disabled:r!==null||i!==null,children:"Load model"})]})]}),r==="loading"&&w.jsx(w.Fragment,{children:w.jsxs("div",{className:"w-full max-w-[500px] text-left mx-auto p-4 bottom-0 mt-auto",children:[w.jsx("p",{className:"text-center mb-1",children:s}),a.map(({file:U,progress:ae,total:W},S)=>w.jsx(ny,{text:U,percentage:ae,total:W},S))]})}),r==="ready"&&w.jsxs("div",{ref:n,className:"overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full",children:[w.jsx(qg,{messages:p}),p.length===0&&w.jsx("div",{children:Ay.map((U,ae)=>w.jsx("div",{className:"m-1 border dark:border-gray-600 rounded-md p-2 bg-gray-100 dark:bg-gray-700 cursor-pointer",onClick:()=>H(U),children:U},ae))}),w.jsx("p",{className:"text-center text-sm min-h-6 text-gray-500 dark:text-gray-300",children:T&&p.length>0&&w.jsxs(w.Fragment,{children:[!g&&w.jsxs("span",{children:["Generated ",R," tokens in"," ",(R/T).toFixed(2)," seconds ("]}),w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"font-medium text-center mr-1 text-black dark:text-white",children:T.toFixed(2)}),w.jsx("span",{className:"text-gray-500 dark:text-gray-300",children:"tokens/second"})]}),!g&&w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"mr-1",children:")."}),w.jsx("span",{className:"underline cursor-pointer",onClick:()=>{e.current.postMessage({type:"reset"}),y([])},children:"Reset"})]})]})})]}),w.jsxs("div",{className:"mt-2 border dark:bg-gray-700 rounded-lg w-[800px] max-w-[90%] max-h-[200px] mx-auto relative mb-3 flex",children:[w.jsx("textarea",{ref:t,className:"scrollbar-thin w-[550px] dark:bg-gray-700 px-3 py-4 rounded-lg bg-transparent border-none outline-none text-gray-800 disabled:text-gray-400 dark:text-gray-200 placeholder-gray-500 dark:placeholder-gray-400 disabled:placeholder-gray-200 resize-none disabled:cursor-not-allowed",placeholder:"Type your message...",type:"text",rows:1,value:d,disabled:r!=="ready",title:r==="ready"?"Model is ready":"Model not loaded yet",onKeyDown:U=>{d.length>0&&!g&&U.key==="Enter"&&!U.shiftKey&&(U.preventDefault(),H(d))},onInput:U=>c(U.target.value)}),g?w.jsx("div",{className:"cursor-pointer",onClick:lt,children:w.jsx(ey,{className:"h-8 w-8 p-1 rounded-md text-gray-800 dark:text-gray-100 absolute right-12 bottom-3"})}):d.length>0?w.jsx("div",{className:"cursor-pointer",onClick:()=>H(d),children:w.jsx(Rc,{className:"h-8 w-8 p-1 bg-gray-800 dark:bg-gray-100 text-white dark:text-black rounded-md absolute right-12 bottom-3"})}):w.jsx("div",{children:w.jsx(Rc,{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-12 bottom-3"})}),v?w.jsx("div",{className:"cursor-pointer",onClick:()=>Xe(),children:w.jsx(Nc,{className:"h-8 w-8 p-1 bg-red-800 dark:bg-red-600 text-white dark:text-black rounded-md absolute right-3 bottom-3"})}):w.jsx("div",{className:"cursor-pointer",onClick:()=>Xe(),children:w.jsx(Nc,{className:"h-8 w-8 p-1 bg-gray-200 dark:bg-gray-600 text-gray-800 dark:text-gray-100 rounded-md absolute right-2 bottom-3"})})]}),w.jsx("p",{className:"text-xs text-gray-400 text-center mb-3",children:"Disclaimer: Generated content may be inaccurate or false."})]}):w.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 or FP16 is not supported",w.jsx("br",{}),"by this browser :("]})}Mo.createRoot(document.getElementById("root")).render(w.jsx(Fp.StrictMode,{children:w.jsx(Ny,{})})); | |