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