lua-cli 1.3.2-alpha.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +2 -2
- package/dist/commands/agents.js +1 -1
- package/dist/commands/apiKey.js +2 -4
- package/dist/commands/compile.js +280 -216
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/dev.js +352 -81
- package/dist/commands/init.js +43 -79
- package/dist/commands/push.js +1 -1
- package/dist/commands/test.js +49 -11
- package/dist/index.js +7 -9
- package/dist/services/api.d.ts +4 -1
- package/dist/services/api.js +7 -6
- package/dist/services/auth.d.ts +0 -4
- package/dist/services/auth.js +2 -129
- package/dist/skill.d.ts +5 -0
- package/dist/skill.js +6 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/utils/files.d.ts +1 -1
- package/dist/utils/files.js +12 -25
- package/dist/utils/sandbox.d.ts +7 -0
- package/dist/utils/sandbox.js +44 -8
- package/dist/web/app.css +4709 -796
- package/dist/web/app.js +22 -20
- package/dist/web/tools-page.css +0 -13
- package/package.json +3 -2
- package/template/env.example +17 -0
- package/template/lua.skill.yaml +14 -16
- package/template/package.json +1 -1
- package/template/src/index.ts +42 -13
- package/template/src/tools/PaymentTool.ts +2 -3
- package/dist/commands/deploy-new.d.ts +0 -0
- package/dist/commands/deploy-new.js +0 -130
- package/template/create-test.cjs +0 -39
- package/template/package-lock.json +0 -1555
package/dist/web/app.js
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
"use strict";var LuaApp=(()=>{var hE=Object.create;var Wa=Object.defineProperty,mE=Object.defineProperties,gE=Object.getOwnPropertyDescriptor,yE=Object.getOwnPropertyDescriptors,bE=Object.getOwnPropertyNames,Fa=Object.getOwnPropertySymbols,xE=Object.getPrototypeOf,ks=Object.prototype.hasOwnProperty,uh=Object.prototype.propertyIsEnumerable;var sh=Math.pow,oh=(e,t,n)=>t in e?Wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t)=>{for(var n in t||(t={}))ks.call(t,n)&&oh(e,n,t[n]);if(Fa)for(var n of Fa(t))uh.call(t,n)&&oh(e,n,t[n]);return e},Hn=(e,t)=>mE(e,yE(t));var ch=(e,t)=>{var n={};for(var i in e)ks.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Fa)for(var i of Fa(e))t.indexOf(i)<0&&uh.call(e,i)&&(n[i]=e[i]);return n};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var $e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),As=(e,t)=>{for(var n in t)Wa(e,n,{get:t[n],enumerable:!0})},vE=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of bE(t))!ks.call(e,r)&&r!==n&&Wa(e,r,{get:()=>t[r],enumerable:!(i=gE(t,r))||i.enumerable});return e};var de=(e,t,n)=>(n=e!=null?hE(xE(e)):{},vE(t||!e||!e.__esModule?Wa(n,"default",{value:e,enumerable:!0}):n,e));var P=(e,t,n)=>new Promise((i,r)=>{var l=u=>{try{o(n.next(u))}catch(c){r(c)}},a=u=>{try{o(n.throw(u))}catch(c){r(c)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(l,a);o((n=n.apply(e,t)).next())});var Eh=$e(K=>{"use strict";var Cs=Symbol.for("react.transitional.element"),SE=Symbol.for("react.portal"),EE=Symbol.for("react.fragment"),TE=Symbol.for("react.strict_mode"),wE=Symbol.for("react.profiler"),kE=Symbol.for("react.consumer"),AE=Symbol.for("react.context"),_E=Symbol.for("react.forward_ref"),CE=Symbol.for("react.suspense"),zE=Symbol.for("react.memo"),gh=Symbol.for("react.lazy"),fh=Symbol.iterator;function OE(e){return e===null||typeof e!="object"?null:(e=fh&&e[fh]||e["@@iterator"],typeof e=="function"?e:null)}var yh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bh=Object.assign,xh={};function ar(e,t,n){this.props=e,this.context=t,this.refs=xh,this.updater=n||yh}ar.prototype.isReactComponent={};ar.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};ar.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function vh(){}vh.prototype=ar.prototype;function zs(e,t,n){this.props=e,this.context=t,this.refs=xh,this.updater=n||yh}var Os=zs.prototype=new vh;Os.constructor=zs;bh(Os,ar.prototype);Os.isPureReactComponent=!0;var dh=Array.isArray,ve={H:null,A:null,T:null,S:null,V:null},Sh=Object.prototype.hasOwnProperty;function Ns(e,t,n,i,r,l){return n=l.ref,{$$typeof:Cs,type:e,key:t,ref:n!==void 0?n:null,props:l}}function NE(e,t){return Ns(e.type,t,void 0,void 0,void 0,e.props)}function Rs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cs}function RE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ph=/\/+/g;function _s(e,t){return typeof e=="object"&&e!==null&&e.key!=null?RE(""+e.key):t.toString(36)}function hh(){}function DE(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(hh,hh):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function lr(e,t,n,i,r){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(l){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Cs:case SE:a=!0;break;case gh:return a=e._init,lr(a(e._payload),t,n,i,r)}}if(a)return r=r(e),a=i===""?"."+_s(e,0):i,dh(r)?(n="",a!=null&&(n=a.replace(ph,"$&/")+"/"),lr(r,t,n,"",function(c){return c})):r!=null&&(Rs(r)&&(r=NE(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(ph,"$&/")+"/")+a)),t.push(r)),1;a=0;var o=i===""?".":i+":";if(dh(e))for(var u=0;u<e.length;u++)i=e[u],l=o+_s(i,u),a+=lr(i,t,n,l,r);else if(u=OE(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,l=o+_s(i,u++),a+=lr(i,t,n,l,r);else if(l==="object"){if(typeof e.then=="function")return lr(DE(e),t,n,i,r);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 a}function $a(e,t,n){if(e==null)return e;var i=[],r=0;return lr(e,i,"","",function(l){return t.call(n,l,r++)}),i}function ME(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 mh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function UE(){}K.Children={map:$a,forEach:function(e,t,n){$a(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $a(e,function(){t++}),t},toArray:function(e){return $a(e,function(t){return t})||[]},only:function(e){if(!Rs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};K.Component=ar;K.Fragment=EE;K.Profiler=wE;K.PureComponent=zs;K.StrictMode=TE;K.Suspense=CE;K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ve;K.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ve.H.useMemoCache(e)}};K.cache=function(e){return function(){return e.apply(null,arguments)}};K.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=bh({},e.props),r=e.key,l=void 0;if(t!=null)for(a in t.ref!==void 0&&(l=void 0),t.key!==void 0&&(r=""+t.key),t)!Sh.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(i[a]=t[a]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),u=0;u<a;u++)o[u]=arguments[u+2];i.children=o}return Ns(e.type,r,void 0,void 0,l,i)};K.createContext=function(e){return e={$$typeof:AE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:kE,_context:e},e};K.createElement=function(e,t,n){var i,r={},l=null;if(t!=null)for(i in t.key!==void 0&&(l=""+t.key),t)Sh.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(r[i]=t[i]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),u=0;u<a;u++)o[u]=arguments[u+2];r.children=o}if(e&&e.defaultProps)for(i in a=e.defaultProps,a)r[i]===void 0&&(r[i]=a[i]);return Ns(e,l,void 0,void 0,null,r)};K.createRef=function(){return{current:null}};K.forwardRef=function(e){return{$$typeof:_E,render:e}};K.isValidElement=Rs;K.lazy=function(e){return{$$typeof:gh,_payload:{_status:-1,_result:e},_init:ME}};K.memo=function(e,t){return{$$typeof:zE,type:e,compare:t===void 0?null:t}};K.startTransition=function(e){var t=ve.T,n={};ve.T=n;try{var i=e(),r=ve.S;r!==null&&r(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(UE,mh)}catch(l){mh(l)}finally{ve.T=t}};K.unstable_useCacheRefresh=function(){return ve.H.useCacheRefresh()};K.use=function(e){return ve.H.use(e)};K.useActionState=function(e,t,n){return ve.H.useActionState(e,t,n)};K.useCallback=function(e,t){return ve.H.useCallback(e,t)};K.useContext=function(e){return ve.H.useContext(e)};K.useDebugValue=function(){};K.useDeferredValue=function(e,t){return ve.H.useDeferredValue(e,t)};K.useEffect=function(e,t,n){var i=ve.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return i.useEffect(e,t)};K.useId=function(){return ve.H.useId()};K.useImperativeHandle=function(e,t,n){return ve.H.useImperativeHandle(e,t,n)};K.useInsertionEffect=function(e,t){return ve.H.useInsertionEffect(e,t)};K.useLayoutEffect=function(e,t){return ve.H.useLayoutEffect(e,t)};K.useMemo=function(e,t){return ve.H.useMemo(e,t)};K.useOptimistic=function(e,t){return ve.H.useOptimistic(e,t)};K.useReducer=function(e,t,n){return ve.H.useReducer(e,t,n)};K.useRef=function(e){return ve.H.useRef(e)};K.useState=function(e){return ve.H.useState(e)};K.useSyncExternalStore=function(e,t,n){return ve.H.useSyncExternalStore(e,t,n)};K.useTransition=function(){return ve.H.useTransition()};K.version="19.1.1"});var Qt=$e((I_,Th)=>{"use strict";Th.exports=Eh()});var Dh=$e(Se=>{"use strict";function Ls(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(0<eo(r,t))e[i]=t,e[n]=r,n=i;else break e}}function Wt(e){return e.length===0?null:e[0]}function no(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,l=r>>>1;i<l;){var a=2*(i+1)-1,o=e[a],u=a+1,c=e[u];if(0>eo(o,n))u<r&&0>eo(c,o)?(e[i]=c,e[u]=n,i=u):(e[i]=o,e[a]=n,i=a);else if(u<r&&0>eo(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function eo(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Se.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(wh=performance,Se.unstable_now=function(){return wh.now()}):(Ds=Date,kh=Ds.now(),Se.unstable_now=function(){return Ds.now()-kh});var wh,Ds,kh,gn=[],qn=[],LE=1,Rt=null,et=3,Bs=!1,ml=!1,gl=!1,Hs=!1,Ch=typeof setTimeout=="function"?setTimeout:null,zh=typeof clearTimeout=="function"?clearTimeout:null,Ah=typeof setImmediate!="undefined"?setImmediate:null;function to(e){for(var t=Wt(qn);t!==null;){if(t.callback===null)no(qn);else if(t.startTime<=e)no(qn),t.sortIndex=t.expirationTime,Ls(gn,t);else break;t=Wt(qn)}}function qs(e){if(gl=!1,to(e),!ml)if(Wt(gn)!==null)ml=!0,ur||(ur=!0,or());else{var t=Wt(qn);t!==null&&js(qs,t.startTime-e)}}var ur=!1,yl=-1,Oh=5,Nh=-1;function Rh(){return Hs?!0:!(Se.unstable_now()-Nh<Oh)}function Ms(){if(Hs=!1,ur){var e=Se.unstable_now();Nh=e;var t=!0;try{e:{ml=!1,gl&&(gl=!1,zh(yl),yl=-1),Bs=!0;var n=et;try{t:{for(to(e),Rt=Wt(gn);Rt!==null&&!(Rt.expirationTime>e&&Rh());){var i=Rt.callback;if(typeof i=="function"){Rt.callback=null,et=Rt.priorityLevel;var r=i(Rt.expirationTime<=e);if(e=Se.unstable_now(),typeof r=="function"){Rt.callback=r,to(e),t=!0;break t}Rt===Wt(gn)&&no(gn),to(e)}else no(gn);Rt=Wt(gn)}if(Rt!==null)t=!0;else{var l=Wt(qn);l!==null&&js(qs,l.startTime-e),t=!1}}break e}finally{Rt=null,et=n,Bs=!1}t=void 0}}finally{t?or():ur=!1}}}var or;typeof Ah=="function"?or=function(){Ah(Ms)}:typeof MessageChannel!="undefined"?(Us=new MessageChannel,_h=Us.port2,Us.port1.onmessage=Ms,or=function(){_h.postMessage(null)}):or=function(){Ch(Ms,0)};var Us,_h;function js(e,t){yl=Ch(function(){e(Se.unstable_now())},t)}Se.unstable_IdlePriority=5;Se.unstable_ImmediatePriority=1;Se.unstable_LowPriority=4;Se.unstable_NormalPriority=3;Se.unstable_Profiling=null;Se.unstable_UserBlockingPriority=2;Se.unstable_cancelCallback=function(e){e.callback=null};Se.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"):Oh=0<e?Math.floor(1e3/e):5};Se.unstable_getCurrentPriorityLevel=function(){return et};Se.unstable_next=function(e){switch(et){case 1:case 2:case 3:var t=3;break;default:t=et}var n=et;et=t;try{return e()}finally{et=n}};Se.unstable_requestPaint=function(){Hs=!0};Se.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=et;et=e;try{return t()}finally{et=n}};Se.unstable_scheduleCallback=function(e,t,n){var i=Se.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=n+r,e={id:LE++,callback:t,priorityLevel:e,startTime:n,expirationTime:r,sortIndex:-1},n>i?(e.sortIndex=n,Ls(qn,e),Wt(gn)===null&&e===Wt(qn)&&(gl?(zh(yl),yl=-1):gl=!0,js(qs,n-i))):(e.sortIndex=r,Ls(gn,e),ml||Bs||(ml=!0,ur||(ur=!0,or()))),e};Se.unstable_shouldYield=Rh;Se.unstable_wrapCallback=function(e){var t=et;return function(){var n=et;et=t;try{return e.apply(this,arguments)}finally{et=n}}}});var Uh=$e((P_,Mh)=>{"use strict";Mh.exports=Dh()});var Bh=$e(at=>{"use strict";var BE=Qt();function Lh(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function jn(){}var lt={d:{f:jn,r:function(){throw Error(Lh(522))},D:jn,C:jn,L:jn,m:jn,X:jn,S:jn,M:jn},p:0,findDOMNode:null},HE=Symbol.for("react.portal");function qE(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:HE,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var bl=BE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function io(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}at.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=lt;at.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Lh(299));return qE(e,t,null,n)};at.flushSync=function(e){var t=bl.T,n=lt.p;try{if(bl.T=null,lt.p=2,e)return e()}finally{bl.T=t,lt.p=n,lt.d.f()}};at.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,lt.d.C(e,t))};at.prefetchDNS=function(e){typeof e=="string"&<.d.D(e)};at.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=io(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,l=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?lt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:r,fetchPriority:l}):n==="script"&<.d.X(e,{crossOrigin:i,integrity:r,fetchPriority:l,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};at.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=io(t.as,t.crossOrigin);lt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&<.d.M(e)};at.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=io(n,t.crossOrigin);lt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};at.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=io(t.as,t.crossOrigin);lt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else lt.d.m(e)};at.requestFormReset=function(e){lt.d.r(e)};at.unstable_batchedUpdates=function(e,t){return e(t)};at.useFormState=function(e,t,n){return bl.H.useFormState(e,t,n)};at.useFormStatus=function(){return bl.H.useHostTransitionStatus()};at.version="19.1.1"});var jh=$e((W_,qh)=>{"use strict";function Hh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hh)}catch(e){console.error(e)}}Hh(),qh.exports=Bh()});var V0=$e(Au=>{"use strict";var Le=Uh(),ug=Qt(),jE=jh();function C(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function sg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function la(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function cg(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 Yh(e){if(la(e)!==e)throw Error(C(188))}function YE(e){var t=e.alternate;if(!t){if(t=la(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var l=r.alternate;if(l===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===l.child){for(l=r.child;l;){if(l===n)return Yh(r),e;if(l===i)return Yh(r),t;l=l.sibling}throw Error(C(188))}if(n.return!==i.return)n=r,i=l;else{for(var a=!1,o=r.child;o;){if(o===n){a=!0,n=r,i=l;break}if(o===i){a=!0,i=r,n=l;break}o=o.sibling}if(!a){for(o=l.child;o;){if(o===n){a=!0,n=l,i=r;break}if(o===i){a=!0,i=l,n=r;break}o=o.sibling}if(!a)throw Error(C(189))}}if(n.alternate!==i)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function fg(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=fg(e),t!==null)return t;e=e.sibling}return null}var xe=Object.assign,VE=Symbol.for("react.element"),ro=Symbol.for("react.transitional.element"),_l=Symbol.for("react.portal"),mr=Symbol.for("react.fragment"),dg=Symbol.for("react.strict_mode"),bc=Symbol.for("react.profiler"),XE=Symbol.for("react.provider"),pg=Symbol.for("react.consumer"),Sn=Symbol.for("react.context"),hf=Symbol.for("react.forward_ref"),xc=Symbol.for("react.suspense"),vc=Symbol.for("react.suspense_list"),mf=Symbol.for("react.memo"),Xn=Symbol.for("react.lazy");Symbol.for("react.scope");var Sc=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var GE=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var Vh=Symbol.iterator;function xl(e){return e===null||typeof e!="object"?null:(e=Vh&&e[Vh]||e["@@iterator"],typeof e=="function"?e:null)}var QE=Symbol.for("react.client.reference");function Ec(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===QE?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case mr:return"Fragment";case bc:return"Profiler";case dg:return"StrictMode";case xc:return"Suspense";case vc:return"SuspenseList";case Sc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _l:return"Portal";case Sn:return(e.displayName||"Context")+".Provider";case pg:return(e._context.displayName||"Context")+".Consumer";case hf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mf:return t=e.displayName||null,t!==null?t:Ec(e.type)||"Memo";case Xn:t=e._payload,e=e._init;try{return Ec(e(t))}catch(n){}}return null}var Cl=Array.isArray,Y=ug.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=jE.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ci={pending:!1,data:null,method:null,action:null},Tc=[],gr=-1;function an(e){return{current:e}}function Ve(e){0>gr||(e.current=Tc[gr],Tc[gr]=null,gr--)}function Te(e,t){gr++,Tc[gr]=e.current,e.current=t}var nn=an(null),Ql=an(null),$n=an(null),Uo=an(null);function Lo(e,t){switch(Te($n,t),Te(Ql,e),Te(nn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Im(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Im(t),e=O0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ve(nn),Te(nn,e)}function Ur(){Ve(nn),Ve(Ql),Ve($n)}function wc(e){e.memoizedState!==null&&Te(Uo,e);var t=nn.current,n=O0(t,e.type);t!==n&&(Te(Ql,e),Te(nn,n))}function Bo(e){Ql.current===e&&(Ve(nn),Ve(Ql)),Uo.current===e&&(Ve(Uo),ta._currentValue=Ci)}var kc=Object.prototype.hasOwnProperty,gf=Le.unstable_scheduleCallback,Ys=Le.unstable_cancelCallback,ZE=Le.unstable_shouldYield,KE=Le.unstable_requestPaint,rn=Le.unstable_now,IE=Le.unstable_getCurrentPriorityLevel,hg=Le.unstable_ImmediatePriority,mg=Le.unstable_UserBlockingPriority,Ho=Le.unstable_NormalPriority,JE=Le.unstable_LowPriority,gg=Le.unstable_IdlePriority,PE=Le.log,FE=Le.unstable_setDisableYieldValue,aa=null,wt=null;function Jn(e){if(typeof PE=="function"&&FE(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(aa,e)}catch(t){}}var kt=Math.clz32?Math.clz32:e2,WE=Math.log,$E=Math.LN2;function e2(e){return e>>>=0,e===0?32:31-(WE(e)/$E|0)|0}var lo=256,ao=4194304;function ki(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 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&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function fu(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var o=i&134217727;return o!==0?(i=o&~l,i!==0?r=ki(i):(a&=o,a!==0?r=ki(a):n||(n=o&~e,n!==0&&(r=ki(n))))):(o=i&~l,o!==0?r=ki(o):a!==0?r=ki(a):n||(n=i&~e,n!==0&&(r=ki(n)))),r===0?0:t!==0&&t!==r&&(t&l)===0&&(l=r&-r,n=t&-t,l>=n||l===32&&(n&4194048)!==0)?t:r}function oa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function t2(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yg(){var e=lo;return lo<<=1,(lo&4194048)===0&&(lo=256),e}function bg(){var e=ao;return ao<<=1,(ao&62914560)===0&&(ao=4194304),e}function Vs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ua(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function n2(e,t,n,i,r,l){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var s=31-kt(n),p=1<<s;o[s]=0,u[s]=-1;var d=c[s];if(d!==null)for(c[s]=null,s=0;s<d.length;s++){var f=d[s];f!==null&&(f.lane&=-536870913)}n&=~p}i!==0&&xg(e,i,0),l!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=l&~(a&~t))}function xg(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-kt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function vg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-kt(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function yf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function bf(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sg(){var e=le.p;return e!==0?e:(e=window.event,e===void 0?32:j0(e.type))}function i2(e,t){var n=le.p;try{return le.p=e,t()}finally{le.p=n}}var ci=Math.random().toString(36).slice(2),tt="__reactFiber$"+ci,pt="__reactProps$"+ci,Zr="__reactContainer$"+ci,Ac="__reactEvents$"+ci,r2="__reactListeners$"+ci,l2="__reactHandles$"+ci,Xh="__reactResources$"+ci,sa="__reactMarker$"+ci;function xf(e){delete e[tt],delete e[pt],delete e[Ac],delete e[r2],delete e[l2]}function yr(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fm(e);e!==null;){if(n=e[tt])return n;e=Fm(e)}return t}e=n,n=e.parentNode}return null}function Kr(e){if(e=e[tt]||e[Zr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function zl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(C(33))}function _r(e){var t=e[Xh];return t||(t=e[Xh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function je(e){e[sa]=!0}var Eg=new Set,Tg={};function qi(e,t){Lr(e,t),Lr(e+"Capture",t)}function Lr(e,t){for(Tg[e]=t,e=0;e<t.length;e++)Eg.add(t[e])}var a2=RegExp("^[: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]*$"),Gh={},Qh={};function o2(e){return kc.call(Qh,e)?!0:kc.call(Gh,e)?!1:a2.test(e)?Qh[e]=!0:(Gh[e]=!0,!1)}function Eo(e,t,n){if(o2(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function oo(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function yn(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}var Xs,Zh;function dr(e){if(Xs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xs=t&&t[1]||"",Zh=-1<n.stack.indexOf(`
|
|
1
|
+
"use strict";var LuaApp=(()=>{var xE=Object.create;var Us=Object.defineProperty,NE=Object.defineProperties,EE=Object.getOwnPropertyDescriptor,kE=Object.getOwnPropertyDescriptors,TE=Object.getOwnPropertyNames,Ms=Object.getOwnPropertySymbols,wE=Object.getPrototypeOf,sc=Object.prototype.hasOwnProperty,lh=Object.prototype.propertyIsEnumerable;var sh=Math.pow,rh=(e,t,n)=>t in e?Us(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t)=>{for(var n in t||(t={}))sc.call(t,n)&&rh(e,n,t[n]);if(Ms)for(var n of Ms(t))lh.call(t,n)&&rh(e,n,t[n]);return e},ut=(e,t)=>NE(e,kE(t));var oh=(e,t)=>{var n={};for(var a in e)sc.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Ms)for(var a of Ms(e))t.indexOf(a)<0&&lh.call(e,a)&&(n[a]=e[a]);return n};var b=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ut=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oc=(e,t)=>{for(var n in t)Us(e,n,{get:t[n],enumerable:!0})},AE=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of TE(t))!sc.call(e,i)&&i!==n&&Us(e,i,{get:()=>t[i],enumerable:!(a=EE(t,i))||a.enumerable});return e};var F=(e,t,n)=>(n=e!=null?xE(wE(e)):{},AE(t||!e||!e.__esModule?Us(n,"default",{value:e,enumerable:!0}):n,e));var z=(e,t,n)=>new Promise((a,i)=>{var r=o=>{try{s(n.next(o))}catch(u){i(u)}},l=o=>{try{s(n.throw(o))}catch(u){i(u)}},s=o=>o.done?a(o.value):Promise.resolve(o.value).then(r,l);s((n=n.apply(e,t)).next())});var Sh=Ut(me=>{"use strict";var cc=Symbol.for("react.transitional.element"),CE=Symbol.for("react.portal"),RE=Symbol.for("react.fragment"),_E=Symbol.for("react.strict_mode"),DE=Symbol.for("react.profiler"),OE=Symbol.for("react.consumer"),LE=Symbol.for("react.context"),zE=Symbol.for("react.forward_ref"),ME=Symbol.for("react.suspense"),UE=Symbol.for("react.memo"),mh=Symbol.for("react.lazy"),uh=Symbol.iterator;function BE(e){return e===null||typeof e!="object"?null:(e=uh&&e[uh]||e["@@iterator"],typeof e=="function"?e:null)}var hh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gh=Object.assign,vh={};function qi(e,t,n){this.props=e,this.context=t,this.refs=vh,this.updater=n||hh}qi.prototype.isReactComponent={};qi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};qi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yh(){}yh.prototype=qi.prototype;function fc(e,t,n){this.props=e,this.context=t,this.refs=vh,this.updater=n||hh}var dc=fc.prototype=new yh;dc.constructor=fc;gh(dc,qi.prototype);dc.isPureReactComponent=!0;var ch=Array.isArray,Xe={H:null,A:null,T:null,S:null,V:null},bh=Object.prototype.hasOwnProperty;function pc(e,t,n,a,i,r){return n=r.ref,{$$typeof:cc,type:e,key:t,ref:n!==void 0?n:null,props:r}}function VE(e,t){return pc(e.type,t,void 0,void 0,void 0,e.props)}function mc(e){return typeof e=="object"&&e!==null&&e.$$typeof===cc}function HE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var fh=/\/+/g;function uc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?HE(""+e.key):t.toString(36)}function dh(){}function PE(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(dh,dh):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Pi(e,t,n,a,i){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(r){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case cc:case CE:l=!0;break;case mh:return l=e._init,Pi(l(e._payload),t,n,a,i)}}if(l)return i=i(e),l=a===""?"."+uc(e,0):a,ch(i)?(n="",l!=null&&(n=l.replace(fh,"$&/")+"/"),Pi(i,t,n,"",function(u){return u})):i!=null&&(mc(i)&&(i=VE(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(fh,"$&/")+"/")+l)),t.push(i)),1;l=0;var s=a===""?".":a+":";if(ch(e))for(var o=0;o<e.length;o++)a=e[o],r=s+uc(a,o),l+=Pi(a,t,n,r,i);else if(o=BE(e),typeof o=="function")for(e=o.call(e),o=0;!(a=e.next()).done;)a=a.value,r=s+uc(a,o++),l+=Pi(a,t,n,r,i);else if(r==="object"){if(typeof e.then=="function")return Pi(PE(e),t,n,a,i);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 l}function Bs(e,t,n){if(e==null)return e;var a=[],i=0;return Pi(e,a,"","",function(r){return t.call(n,r,i++)}),a}function qE(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 ph=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function jE(){}me.Children={map:Bs,forEach:function(e,t,n){Bs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Bs(e,function(){t++}),t},toArray:function(e){return Bs(e,function(t){return t})||[]},only:function(e){if(!mc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};me.Component=qi;me.Fragment=RE;me.Profiler=DE;me.PureComponent=fc;me.StrictMode=_E;me.Suspense=ME;me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Xe;me.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Xe.H.useMemoCache(e)}};me.cache=function(e){return function(){return e.apply(null,arguments)}};me.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=gh({},e.props),i=e.key,r=void 0;if(t!=null)for(l in t.ref!==void 0&&(r=void 0),t.key!==void 0&&(i=""+t.key),t)!bh.call(t,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&t.ref===void 0||(a[l]=t[l]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var s=Array(l),o=0;o<l;o++)s[o]=arguments[o+2];a.children=s}return pc(e.type,i,void 0,void 0,r,a)};me.createContext=function(e){return e={$$typeof:LE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:OE,_context:e},e};me.createElement=function(e,t,n){var a,i={},r=null;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)bh.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(i[a]=t[a]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var s=Array(l),o=0;o<l;o++)s[o]=arguments[o+2];i.children=s}if(e&&e.defaultProps)for(a in l=e.defaultProps,l)i[a]===void 0&&(i[a]=l[a]);return pc(e,r,void 0,void 0,null,i)};me.createRef=function(){return{current:null}};me.forwardRef=function(e){return{$$typeof:zE,render:e}};me.isValidElement=mc;me.lazy=function(e){return{$$typeof:mh,_payload:{_status:-1,_result:e},_init:qE}};me.memo=function(e,t){return{$$typeof:UE,type:e,compare:t===void 0?null:t}};me.startTransition=function(e){var t=Xe.T,n={};Xe.T=n;try{var a=e(),i=Xe.S;i!==null&&i(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(jE,ph)}catch(r){ph(r)}finally{Xe.T=t}};me.unstable_useCacheRefresh=function(){return Xe.H.useCacheRefresh()};me.use=function(e){return Xe.H.use(e)};me.useActionState=function(e,t,n){return Xe.H.useActionState(e,t,n)};me.useCallback=function(e,t){return Xe.H.useCallback(e,t)};me.useContext=function(e){return Xe.H.useContext(e)};me.useDebugValue=function(){};me.useDeferredValue=function(e,t){return Xe.H.useDeferredValue(e,t)};me.useEffect=function(e,t,n){var a=Xe.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return a.useEffect(e,t)};me.useId=function(){return Xe.H.useId()};me.useImperativeHandle=function(e,t,n){return Xe.H.useImperativeHandle(e,t,n)};me.useInsertionEffect=function(e,t){return Xe.H.useInsertionEffect(e,t)};me.useLayoutEffect=function(e,t){return Xe.H.useLayoutEffect(e,t)};me.useMemo=function(e,t){return Xe.H.useMemo(e,t)};me.useOptimistic=function(e,t){return Xe.H.useOptimistic(e,t)};me.useReducer=function(e,t,n){return Xe.H.useReducer(e,t,n)};me.useRef=function(e){return Xe.H.useRef(e)};me.useState=function(e){return Xe.H.useState(e)};me.useSyncExternalStore=function(e,t,n){return Xe.H.useSyncExternalStore(e,t,n)};me.useTransition=function(){return Xe.H.useTransition()};me.version="19.1.1"});var Je=Ut((f_,xh)=>{"use strict";xh.exports=Sh()});var Dh=Ut(Qe=>{"use strict";function yc(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,i=e[a];if(0<Vs(i,t))e[a]=t,e[n]=i,n=a;else break e}}function Yn(e){return e.length===0?null:e[0]}function Ps(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,i=e.length,r=i>>>1;a<r;){var l=2*(a+1)-1,s=e[l],o=l+1,u=e[o];if(0>Vs(s,n))o<i&&0>Vs(u,s)?(e[a]=u,e[o]=n,a=o):(e[a]=s,e[l]=n,a=l);else if(o<i&&0>Vs(u,n))e[a]=u,e[o]=n,a=o;else break e}}return t}function Vs(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Qe.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Nh=performance,Qe.unstable_now=function(){return Nh.now()}):(hc=Date,Eh=hc.now(),Qe.unstable_now=function(){return hc.now()-Eh});var Nh,hc,Eh,ea=[],Na=[],YE=1,En=null,Bt=3,bc=!1,Kr=!1,Wr=!1,Sc=!1,wh=typeof setTimeout=="function"?setTimeout:null,Ah=typeof clearTimeout=="function"?clearTimeout:null,kh=typeof setImmediate!="undefined"?setImmediate:null;function Hs(e){for(var t=Yn(Na);t!==null;){if(t.callback===null)Ps(Na);else if(t.startTime<=e)Ps(Na),t.sortIndex=t.expirationTime,yc(ea,t);else break;t=Yn(Na)}}function xc(e){if(Wr=!1,Hs(e),!Kr)if(Yn(ea)!==null)Kr=!0,Yi||(Yi=!0,ji());else{var t=Yn(Na);t!==null&&Nc(xc,t.startTime-e)}}var Yi=!1,el=-1,Ch=5,Rh=-1;function _h(){return Sc?!0:!(Qe.unstable_now()-Rh<Ch)}function gc(){if(Sc=!1,Yi){var e=Qe.unstable_now();Rh=e;var t=!0;try{e:{Kr=!1,Wr&&(Wr=!1,Ah(el),el=-1),bc=!0;var n=Bt;try{t:{for(Hs(e),En=Yn(ea);En!==null&&!(En.expirationTime>e&&_h());){var a=En.callback;if(typeof a=="function"){En.callback=null,Bt=En.priorityLevel;var i=a(En.expirationTime<=e);if(e=Qe.unstable_now(),typeof i=="function"){En.callback=i,Hs(e),t=!0;break t}En===Yn(ea)&&Ps(ea),Hs(e)}else Ps(ea);En=Yn(ea)}if(En!==null)t=!0;else{var r=Yn(Na);r!==null&&Nc(xc,r.startTime-e),t=!1}}break e}finally{En=null,Bt=n,bc=!1}t=void 0}}finally{t?ji():Yi=!1}}}var ji;typeof kh=="function"?ji=function(){kh(gc)}:typeof MessageChannel!="undefined"?(vc=new MessageChannel,Th=vc.port2,vc.port1.onmessage=gc,ji=function(){Th.postMessage(null)}):ji=function(){wh(gc,0)};var vc,Th;function Nc(e,t){el=wh(function(){e(Qe.unstable_now())},t)}Qe.unstable_IdlePriority=5;Qe.unstable_ImmediatePriority=1;Qe.unstable_LowPriority=4;Qe.unstable_NormalPriority=3;Qe.unstable_Profiling=null;Qe.unstable_UserBlockingPriority=2;Qe.unstable_cancelCallback=function(e){e.callback=null};Qe.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"):Ch=0<e?Math.floor(1e3/e):5};Qe.unstable_getCurrentPriorityLevel=function(){return Bt};Qe.unstable_next=function(e){switch(Bt){case 1:case 2:case 3:var t=3;break;default:t=Bt}var n=Bt;Bt=t;try{return e()}finally{Bt=n}};Qe.unstable_requestPaint=function(){Sc=!0};Qe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Bt;Bt=e;try{return t()}finally{Bt=n}};Qe.unstable_scheduleCallback=function(e,t,n){var a=Qe.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:YE++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>a?(e.sortIndex=n,yc(Na,e),Yn(ea)===null&&e===Yn(Na)&&(Wr?(Ah(el),el=-1):Wr=!0,Nc(xc,n-a))):(e.sortIndex=i,yc(ea,e),Kr||bc||(Kr=!0,Yi||(Yi=!0,ji()))),e};Qe.unstable_shouldYield=_h;Qe.unstable_wrapCallback=function(e){var t=Bt;return function(){var n=Bt;Bt=t;try{return e.apply(this,arguments)}finally{Bt=n}}}});var Lh=Ut((p_,Oh)=>{"use strict";Oh.exports=Dh()});var Mh=Ut(It=>{"use strict";var IE=Je();function zh(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function Ea(){}var Yt={d:{f:Ea,r:function(){throw Error(zh(522))},D:Ea,C:Ea,L:Ea,m:Ea,X:Ea,S:Ea,M:Ea},p:0,findDOMNode:null},GE=Symbol.for("react.portal");function XE(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:GE,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var tl=IE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function qs(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Yt;It.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(zh(299));return XE(e,t,null,n)};It.flushSync=function(e){var t=tl.T,n=Yt.p;try{if(tl.T=null,Yt.p=2,e)return e()}finally{tl.T=t,Yt.p=n,Yt.d.f()}};It.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Yt.d.C(e,t))};It.prefetchDNS=function(e){typeof e=="string"&&Yt.d.D(e)};It.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=qs(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Yt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:i,fetchPriority:r}):n==="script"&&Yt.d.X(e,{crossOrigin:a,integrity:i,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};It.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=qs(t.as,t.crossOrigin);Yt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Yt.d.M(e)};It.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=qs(n,t.crossOrigin);Yt.d.L(e,n,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};It.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=qs(t.as,t.crossOrigin);Yt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Yt.d.m(e)};It.requestFormReset=function(e){Yt.d.r(e)};It.unstable_batchedUpdates=function(e,t){return e(t)};It.useFormState=function(e,t,n){return tl.H.useFormState(e,t,n)};It.useFormStatus=function(){return tl.H.useHostTransitionStatus()};It.version="19.1.1"});var Vh=Ut((h_,Bh)=>{"use strict";function Uh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uh)}catch(e){console.error(e)}}Uh(),Bh.exports=Mh()});var Pb=Ut(cu=>{"use strict";var vt=Lh(),lv=Je(),QE=Vh();function M(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function sv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ov(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 Hh(e){if(jl(e)!==e)throw Error(M(188))}function FE(e){var t=e.alternate;if(!t){if(t=jl(e),t===null)throw Error(M(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var r=i.alternate;if(r===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===n)return Hh(i),e;if(r===a)return Hh(i),t;r=r.sibling}throw Error(M(188))}if(n.return!==a.return)n=i,a=r;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,a=r;break}if(s===a){l=!0,a=i,n=r;break}s=s.sibling}if(!l){for(s=r.child;s;){if(s===n){l=!0,n=r,a=i;break}if(s===a){l=!0,a=r,n=i;break}s=s.sibling}if(!l)throw Error(M(189))}}if(n.alternate!==a)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function uv(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=uv(e),t!==null)return t;e=e.sibling}return null}var Ge=Object.assign,ZE=Symbol.for("react.element"),js=Symbol.for("react.transitional.element"),cl=Symbol.for("react.portal"),Ji=Symbol.for("react.fragment"),cv=Symbol.for("react.strict_mode"),ef=Symbol.for("react.profiler"),JE=Symbol.for("react.provider"),fv=Symbol.for("react.consumer"),ra=Symbol.for("react.context"),Jf=Symbol.for("react.forward_ref"),tf=Symbol.for("react.suspense"),nf=Symbol.for("react.suspense_list"),$f=Symbol.for("react.memo"),wa=Symbol.for("react.lazy");Symbol.for("react.scope");var af=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var $E=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var Ph=Symbol.iterator;function nl(e){return e===null||typeof e!="object"?null:(e=Ph&&e[Ph]||e["@@iterator"],typeof e=="function"?e:null)}var KE=Symbol.for("react.client.reference");function rf(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===KE?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ji:return"Fragment";case ef:return"Profiler";case cv:return"StrictMode";case tf:return"Suspense";case nf:return"SuspenseList";case af:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case cl:return"Portal";case ra:return(e.displayName||"Context")+".Provider";case fv:return(e._context.displayName||"Context")+".Consumer";case Jf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $f:return t=e.displayName||null,t!==null?t:rf(e.type)||"Memo";case wa:t=e._payload,e=e._init;try{return rf(e(t))}catch(n){}}return null}var fl=Array.isArray,ue=lv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te=QE.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ui={pending:!1,data:null,method:null,action:null},lf=[],$i=-1;function Jn(e){return{current:e}}function xt(e){0>$i||(e.current=lf[$i],lf[$i]=null,$i--)}function Ze(e,t){$i++,lf[$i]=e.current,e.current=t}var Qn=Jn(null),Cl=Jn(null),Ua=Jn(null),bo=Jn(null);function So(e,t){switch(Ze(Ua,t),Ze(Cl,e),Ze(Qn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xg(t),e=Cb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}xt(Qn),Ze(Qn,e)}function gr(){xt(Qn),xt(Cl),xt(Ua)}function sf(e){e.memoizedState!==null&&Ze(bo,e);var t=Qn.current,n=Cb(t,e.type);t!==n&&(Ze(Cl,e),Ze(Qn,n))}function xo(e){Cl.current===e&&(xt(Qn),xt(Cl)),bo.current===e&&(xt(bo),Vl._currentValue=ui)}var of=Object.prototype.hasOwnProperty,Kf=vt.unstable_scheduleCallback,Ec=vt.unstable_cancelCallback,WE=vt.unstable_shouldYield,ek=vt.unstable_requestPaint,Fn=vt.unstable_now,tk=vt.unstable_getCurrentPriorityLevel,dv=vt.unstable_ImmediatePriority,pv=vt.unstable_UserBlockingPriority,No=vt.unstable_NormalPriority,nk=vt.unstable_LowPriority,mv=vt.unstable_IdlePriority,ak=vt.log,ik=vt.unstable_setDisableYieldValue,Yl=null,hn=null;function Oa(e){if(typeof ak=="function"&&ik(e),hn&&typeof hn.setStrictMode=="function")try{hn.setStrictMode(Yl,e)}catch(t){}}var gn=Math.clz32?Math.clz32:sk,rk=Math.log,lk=Math.LN2;function sk(e){return e>>>=0,e===0?32:31-(rk(e)/lk|0)|0}var Ys=256,Is=4194304;function li(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 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&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Zo(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,r=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~r,a!==0?i=li(a):(l&=s,l!==0?i=li(l):n||(n=s&~e,n!==0&&(i=li(n))))):(s=a&~r,s!==0?i=li(s):l!==0?i=li(l):n||(n=a&~e,n!==0&&(i=li(n)))),i===0?0:t!==0&&t!==i&&(t&r)===0&&(r=i&-i,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:i}function Il(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ok(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hv(){var e=Ys;return Ys<<=1,(Ys&4194048)===0&&(Ys=256),e}function gv(){var e=Is;return Is<<=1,(Is&62914560)===0&&(Is=4194304),e}function kc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Gl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uk(e,t,n,a,i,r){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,o=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var c=31-gn(n),p=1<<c;s[c]=0,o[c]=-1;var d=u[c];if(d!==null)for(u[c]=null,c=0;c<d.length;c++){var f=d[c];f!==null&&(f.lane&=-536870913)}n&=~p}a!==0&&vv(e,a,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(l&~t))}function vv(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-gn(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&4194090}function yv(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-gn(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function Wf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ed(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function bv(){var e=Te.p;return e!==0?e:(e=window.event,e===void 0?32:Vb(e.type))}function ck(e,t){var n=Te.p;try{return Te.p=e,t()}finally{Te.p=n}}var Qa=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Qa,en="__reactProps$"+Qa,Ar="__reactContainer$"+Qa,uf="__reactEvents$"+Qa,fk="__reactListeners$"+Qa,dk="__reactHandles$"+Qa,qh="__reactResources$"+Qa,Xl="__reactMarker$"+Qa;function td(e){delete e[Vt],delete e[en],delete e[uf],delete e[fk],delete e[dk]}function Ki(e){var t=e[Vt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ar]||n[Vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zg(e);e!==null;){if(n=e[Vt])return n;e=Zg(e)}return t}e=n,n=e.parentNode}return null}function Cr(e){if(e=e[Vt]||e[Ar]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function dl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(M(33))}function or(e){var t=e[qh];return t||(t=e[qh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function bt(e){e[Xl]=!0}var Sv=new Set,xv={};function Si(e,t){vr(e,t),vr(e+"Capture",t)}function vr(e,t){for(xv[e]=t,e=0;e<t.length;e++)Sv.add(t[e])}var pk=RegExp("^[: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]*$"),jh={},Yh={};function mk(e){return of.call(Yh,e)?!0:of.call(jh,e)?!1:pk.test(e)?Yh[e]=!0:(jh[e]=!0,!1)}function ro(e,t,n){if(mk(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Gs(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ta(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}var Tc,Ih;function Qi(e){if(Tc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Tc=t&&t[1]||"",Ih=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
4
|
-
`),
|
|
5
|
-
`);for(
|
|
6
|
-
`+
|
|
3
|
+
`+Tc+e+Ih}var wc=!1;function Ac(e,t){if(!e||wc)return"";wc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(f){var d=f}Reflect.construct(e,[],p)}else{try{p.call()}catch(f){d=f}e.call(p.prototype)}}else{try{throw Error()}catch(f){d=f}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(f){if(f&&d&&typeof f.stack=="string")return[f.stack,d.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),l=r[0],s=r[1];if(l&&s){var o=l.split(`
|
|
4
|
+
`),u=s.split(`
|
|
5
|
+
`);for(i=a=0;a<o.length&&!o[a].includes("DetermineComponentFrameRoot");)a++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(a===o.length||i===u.length)for(a=o.length-1,i=u.length-1;1<=a&&0<=i&&o[a]!==u[i];)i--;for(;1<=a&&0<=i;a--,i--)if(o[a]!==u[i]){if(a!==1||i!==1)do if(a--,i--,0>i||o[a]!==u[i]){var c=`
|
|
6
|
+
`+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=i);break}}}finally{wc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Qi(n):""}function hk(e){switch(e.tag){case 26:case 27:case 5:return Qi(e.type);case 16:return Qi("Lazy");case 13:return Qi("Suspense");case 19:return Qi("SuspenseList");case 0:case 15:return Ac(e.type,!1);case 11:return Ac(e.type.render,!1);case 1:return Ac(e.type,!0);case 31:return Qi("Activity");default:return""}}function Gh(e){try{var t="";do t+=hk(e),e=e.return;while(e);return t}catch(n){return`
|
|
7
7
|
Error generating stack: `+n.message+`
|
|
8
|
-
`+n.stack}}function Mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s2(e){var t=wg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(a){i=""+a,l.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(a){i=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qo(e){e._valueTracker||(e._valueTracker=s2(e))}function kg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=wg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function jo(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var c2=/[\n"\\]/g;function Bt(e){return e.replace(c2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _c(e,t,n,i,r,l,a,o){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Mt(t)):e.value!==""+Mt(t)&&(e.value=""+Mt(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?Cc(e,a,Mt(t)):n!=null?Cc(e,a,Mt(n)):i!=null&&e.removeAttribute("value"),r==null&&l!=null&&(e.defaultChecked=!!l),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Mt(o):e.removeAttribute("name")}function Ag(e,t,n,i,r,l,a,o){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),t!=null||n!=null){if(!(l!=="submit"&&l!=="reset"||t!=null))return;n=n!=null?""+Mt(n):"",t=t!=null?""+Mt(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}i=i!=null?i:r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=o?e.checked:!!i,e.defaultChecked=!!i,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a)}function Cc(e,t,n){t==="number"&&jo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Cr(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Mt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function _g(e,t,n){if(t!=null&&(t=""+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Mt(n):""}function Cg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(C(92));if(Cl(i)){if(1<i.length)throw Error(C(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Mt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function Br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var f2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ih(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||f2.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function zg(e,t,n){if(t!=null&&typeof t!="object")throw Error(C(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&n[r]!==i&&Ih(e,r,i)}else for(var l in t)t.hasOwnProperty(l)&&Ih(e,l,t[l])}function vf(e){if(e.indexOf("-")===-1)return!1;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 d2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),p2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function To(e){return p2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var zc=null;function Sf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var br=null,zr=null;function Jh(e){var t=Kr(e);if(t&&(e=t.stateNode)){var n=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(_c(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[pt]||null;if(!r)throw Error(C(90));_c(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&kg(i)}break e;case"textarea":_g(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Cr(e,!!n.multiple,t,!1)}}}var Zs=!1;function Og(e,t,n){if(Zs)return e(t,n);Zs=!0;try{var i=e(t);return i}finally{if(Zs=!1,(br!==null||zr!==null)&&(Su(),br&&(t=br,e=zr,zr=br=null,Jh(t),e)))for(t=0;t<e.length;t++)Jh(e[t])}}function Zl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[pt]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(C(231,t,typeof n));return n}var Cn=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Oc=!1;if(Cn)try{sr={},Object.defineProperty(sr,"passive",{get:function(){Oc=!0}}),window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch(e){Oc=!1}var sr,Pn=null,Ef=null,wo=null;function Ng(){if(wo)return wo;var e,t=Ef,n=t.length,i,r="value"in Pn?Pn.value:Pn.textContent,l=r.length;for(e=0;e<n&&t[e]===r[e];e++);var a=n-e;for(i=1;i<=a&&t[n-i]===r[l-i];i++);return wo=r.slice(e,1<i?1-i:void 0)}function ko(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 uo(){return!0}function Ph(){return!1}function ht(e){function t(n,i,r,l,a){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=l,this.target=a,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(l):l[o]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?uo:Ph,this.isPropagationStopped=Ph,this}return xe(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=uo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=uo)},persist:function(){},isPersistent:uo}),t}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},du=ht(ji),ca=xe({},ji,{view:0,detail:0}),h2=ht(ca),Ks,Is,vl,pu=xe({},ca,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tf,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!==vl&&(vl&&e.type==="mousemove"?(Ks=e.screenX-vl.screenX,Is=e.screenY-vl.screenY):Is=Ks=0,vl=e),Ks)},movementY:function(e){return"movementY"in e?e.movementY:Is}}),Fh=ht(pu),m2=xe({},pu,{dataTransfer:0}),g2=ht(m2),y2=xe({},ca,{relatedTarget:0}),Js=ht(y2),b2=xe({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),x2=ht(b2),v2=xe({},ji,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),S2=ht(v2),E2=xe({},ji,{data:0}),Wh=ht(E2),T2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w2={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"},k2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function A2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=k2[e])?!!t[e]:!1}function Tf(){return A2}var _2=xe({},ca,{key:function(e){if(e.key){var t=T2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ko(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tf,charCode:function(e){return e.type==="keypress"?ko(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ko(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),C2=ht(_2),z2=xe({},pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$h=ht(z2),O2=xe({},ca,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tf}),N2=ht(O2),R2=xe({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),D2=ht(R2),M2=xe({},pu,{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}),U2=ht(M2),L2=xe({},ji,{newState:0,oldState:0}),B2=ht(L2),H2=[9,13,27,32],wf=Cn&&"CompositionEvent"in window,Nl=null;Cn&&"documentMode"in document&&(Nl=document.documentMode);var q2=Cn&&"TextEvent"in window&&!Nl,Rg=Cn&&(!wf||Nl&&8<Nl&&11>=Nl),em=" ",tm=!1;function Dg(e,t){switch(e){case"keyup":return H2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xr=!1;function j2(e,t){switch(e){case"compositionend":return Mg(t);case"keypress":return t.which!==32?null:(tm=!0,em);case"textInput":return e=t.data,e===em&&tm?null:e;default:return null}}function Y2(e,t){if(xr)return e==="compositionend"||!wf&&Dg(e,t)?(e=Ng(),wo=Ef=Pn=null,xr=!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 Rg&&t.locale!=="ko"?null:t.data;default:return null}}var V2={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 nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!V2[e.type]:t==="textarea"}function Ug(e,t,n,i){br?zr?zr.push(i):zr=[i]:br=i,t=ru(t,"onChange"),0<t.length&&(n=new du("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Rl=null,Kl=null;function X2(e){_0(e,0)}function hu(e){var t=zl(e);if(kg(t))return e}function im(e,t){if(e==="change")return t}var Lg=!1;Cn&&(Cn?(co="oninput"in document,co||(Ps=document.createElement("div"),Ps.setAttribute("oninput","return;"),co=typeof Ps.oninput=="function"),so=co):so=!1,Lg=so&&(!document.documentMode||9<document.documentMode));var so,co,Ps;function rm(){Rl&&(Rl.detachEvent("onpropertychange",Bg),Kl=Rl=null)}function Bg(e){if(e.propertyName==="value"&&hu(Kl)){var t=[];Ug(t,Kl,e,Sf(e)),Og(X2,t)}}function G2(e,t,n){e==="focusin"?(rm(),Rl=t,Kl=n,Rl.attachEvent("onpropertychange",Bg)):e==="focusout"&&rm()}function Q2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hu(Kl)}function Z2(e,t){if(e==="click")return hu(t)}function K2(e,t){if(e==="input"||e==="change")return hu(t)}function I2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:I2;function Il(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!kc.call(t,r)||!Ct(e[r],t[r]))return!1}return!0}function lm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function am(e,t){var n=lm(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lm(n)}}function Hg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=jo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(i){n=!1}if(n)e=t.contentWindow;else break;t=jo(e.document)}return t}function kf(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")}var J2=Cn&&"documentMode"in document&&11>=document.documentMode,vr=null,Nc=null,Dl=null,Rc=!1;function om(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||vr==null||vr!==jo(i)||(i=vr,"selectionStart"in i&&kf(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Dl&&Il(Dl,i)||(Dl=i,i=ru(Nc,"onSelect"),0<i.length&&(t=new du("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=vr)))}function wi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wi("Animation","AnimationEnd"),animationiteration:wi("Animation","AnimationIteration"),animationstart:wi("Animation","AnimationStart"),transitionrun:wi("Transition","TransitionRun"),transitionstart:wi("Transition","TransitionStart"),transitioncancel:wi("Transition","TransitionCancel"),transitionend:wi("Transition","TransitionEnd")},Fs={},jg={};Cn&&(jg=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);function Yi(e){if(Fs[e])return Fs[e];if(!Sr[e])return e;var t=Sr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jg)return Fs[e]=t[n];return e}var Yg=Yi("animationend"),Vg=Yi("animationiteration"),Xg=Yi("animationstart"),P2=Yi("transitionrun"),F2=Yi("transitionstart"),W2=Yi("transitioncancel"),Gg=Yi("transitionend"),Qg=new Map,Dc="abort auxClick beforeToggle 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(" ");Dc.push("scrollEnd");function It(e,t){Qg.set(e,t),qi(t,[e])}var um=new WeakMap;function Ht(e,t){if(typeof e=="object"&&e!==null){var n=um.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Kh(t)},um.set(e,t),t)}return{value:e,source:t,stack:Kh(t)}}var Dt=[],Er=0,Af=0;function mu(){for(var e=Er,t=Af=Er=0;t<e;){var n=Dt[t];Dt[t++]=null;var i=Dt[t];Dt[t++]=null;var r=Dt[t];Dt[t++]=null;var l=Dt[t];if(Dt[t++]=null,i!==null&&r!==null){var a=i.pending;a===null?r.next=r:(r.next=a.next,a.next=r),i.pending=r}l!==0&&Zg(n,r,l)}}function gu(e,t,n,i){Dt[Er++]=e,Dt[Er++]=t,Dt[Er++]=n,Dt[Er++]=i,Af|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function _f(e,t,n,i){return gu(e,t,n,i),Yo(e)}function Ir(e,t){return gu(e,null,null,t),Yo(e)}function Zg(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var r=!1,l=e.return;l!==null;)l.childLanes|=n,i=l.alternate,i!==null&&(i.childLanes|=n),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(r=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,r&&t!==null&&(r=31-kt(n),e=l.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),l):null}function Yo(e){if(50<Xl)throw Xl=0,ef=null,Error(C(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Tr={};function $2(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,i){return new $2(e,t,n,i)}function Cf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function An(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,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.refCleanup=e.refCleanup,n}function Kg(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ao(e,t,n,i,r,l){var a=0;if(i=e,typeof e=="function")Cf(e)&&(a=1);else if(typeof e=="string")a=$T(e,n,nn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Sc:return e=Tt(31,n,t,r),e.elementType=Sc,e.lanes=l,e;case mr:return zi(n.children,r,l,t);case dg:a=8,r|=24;break;case bc:return e=Tt(12,n,t,r|2),e.elementType=bc,e.lanes=l,e;case xc:return e=Tt(13,n,t,r),e.elementType=xc,e.lanes=l,e;case vc:return e=Tt(19,n,t,r),e.elementType=vc,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case XE:case Sn:a=10;break e;case pg:a=9;break e;case hf:a=11;break e;case mf:a=14;break e;case Xn:a=16,i=null;break e}a=29,n=Error(C(130,e===null?"null":typeof e,"")),i=null}return t=Tt(a,n,t,r),t.elementType=e,t.type=i,t.lanes=l,t}function zi(e,t,n,i){return e=Tt(7,e,i,t),e.lanes=n,e}function Ws(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function $s(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var wr=[],kr=0,Vo=null,Xo=0,Ut=[],Lt=0,Oi=null,En=1,Tn="";function Ai(e,t){wr[kr++]=Xo,wr[kr++]=Vo,Vo=e,Xo=t}function Ig(e,t,n){Ut[Lt++]=En,Ut[Lt++]=Tn,Ut[Lt++]=Oi,Oi=e;var i=En;e=Tn;var r=32-kt(i)-1;i&=~(1<<r),n+=1;var l=32-kt(t)+r;if(30<l){var a=r-r%5;l=(i&(1<<a)-1).toString(32),i>>=a,r-=a,En=1<<32-kt(t)+r|n<<r|i,Tn=l+e}else En=1<<l|n<<r|i,Tn=e}function zf(e){e.return!==null&&(Ai(e,1),Ig(e,1,0))}function Of(e){for(;e===Vo;)Vo=wr[--kr],wr[kr]=null,Xo=wr[--kr],wr[kr]=null;for(;e===Oi;)Oi=Ut[--Lt],Ut[Lt]=null,Tn=Ut[--Lt],Ut[Lt]=null,En=Ut[--Lt],Ut[Lt]=null}var ot=null,ke=null,re=!1,Ni=null,en=!1,Mc=Error(C(519));function Ui(e){var t=Error(C(418,""));throw Jl(Ht(t,e)),Mc}function sm(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[tt]=e,t[pt]=i,n){case"dialog":F("cancel",t),F("close",t);break;case"iframe":case"object":case"embed":F("load",t);break;case"video":case"audio":for(n=0;n<Wl.length;n++)F(Wl[n],t);break;case"source":F("error",t);break;case"img":case"image":case"link":F("error",t),F("load",t);break;case"details":F("toggle",t);break;case"input":F("invalid",t),Ag(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),qo(t);break;case"select":F("invalid",t);break;case"textarea":F("invalid",t),Cg(t,i.value,i.defaultValue,i.children),qo(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||z0(t.textContent,n)?(i.popover!=null&&(F("beforetoggle",t),F("toggle",t)),i.onScroll!=null&&F("scroll",t),i.onScrollEnd!=null&&F("scrollend",t),i.onClick!=null&&(t.onclick=wu),t=!0):t=!1,t||Ui(e)}function cm(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 13:en=!1;return;case 27:case 3:en=!0;return;default:ot=ot.return}}function Sl(e){if(e!==ot)return!1;if(!re)return cm(e),re=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||of(e.type,e.memoizedProps)),n=!n),n&&ke&&Ui(e),cm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){ke=Kt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}ke=null}}else t===27?(t=ke,fi(e.type)?(e=cf,cf=null,ke=e):ke=t):ke=ot?Kt(e.stateNode.nextSibling):null;return!0}function fa(){ke=ot=null,re=!1}function fm(){var e=Ni;return e!==null&&(dt===null?dt=e:dt.push.apply(dt,e),Ni=null),e}function Jl(e){Ni===null?Ni=[e]:Ni.push(e)}var Uc=an(null),Vi=null,wn=null;function Qn(e,t,n){Te(Uc,t._currentValue),t._currentValue=n}function _n(e){e._currentValue=Uc.current,Ve(Uc)}function Lc(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Bc(e,t,n,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var l=r.dependencies;if(l!==null){var a=r.child;l=l.firstContext;e:for(;l!==null;){var o=l;l=r;for(var u=0;u<t.length;u++)if(o.context===t[u]){l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Lc(l.return,n,e),i||(a=null);break e}l=o.next}}else if(r.tag===18){if(a=r.return,a===null)throw Error(C(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Lc(a,n,e),a=null}else a=r.child;if(a!==null)a.return=r;else for(a=r;a!==null;){if(a===e){a=null;break}if(r=a.sibling,r!==null){r.return=a.return,a=r;break}a=a.return}r=a}}function da(e,t,n,i){e=null;for(var r=t,l=!1;r!==null;){if(!l){if((r.flags&524288)!==0)l=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var a=r.alternate;if(a===null)throw Error(C(387));if(a=a.memoizedProps,a!==null){var o=r.type;Ct(r.pendingProps.value,a.value)||(e!==null?e.push(o):e=[o])}}else if(r===Uo.current){if(a=r.alternate,a===null)throw Error(C(387));a.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(ta):e=[ta])}r=r.return}e!==null&&Bc(t,e,n,i),t.flags|=262144}function Go(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Li(e){Vi=e,wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return Jg(Vi,e)}function fo(e,t){return Vi===null&&Li(e),Jg(e,t)}function Jg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},wn===null){if(e===null)throw Error(C(308));wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wn=wn.next=t;return n}var eT=typeof AbortController!="undefined"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},tT=Le.unstable_scheduleCallback,nT=Le.unstable_NormalPriority,Me={$$typeof:Sn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nf(){return{controller:new eT,data:new Map,refCount:0}}function pa(e){e.refCount--,e.refCount===0&&tT(nT,function(){e.controller.abort()})}var Ml=null,Hc=0,Hr=0,Or=null;function iT(e,t){if(Ml===null){var n=Ml=[];Hc=0,Hr=ed(),Or={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Hc++,t.then(dm,dm),t}function dm(){if(--Hc===0&&Ml!==null){Or!==null&&(Or.status="fulfilled");var e=Ml;Ml=null,Hr=0,Or=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rT(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var pm=Y.S;Y.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&iT(e,t),pm!==null&&pm(e,t)};var Ri=an(null);function Rf(){var e=Ri.current;return e!==null?e:ye.pooledCache}function _o(e,t){t===null?Te(Ri,Ri.current):Te(Ri,t.pool)}function Pg(){var e=Rf();return e===null?null:{parent:Me._currentValue,pool:e}}var ha=Error(C(460)),Fg=Error(C(474)),yu=Error(C(542)),qc={then:function(){}};function hm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function po(){}function Wg(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(po,po),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gm(e),e;default:if(typeof t.status=="string")t.then(po,po);else{if(e=ye,e!==null&&100<e.shellSuspendCounter)throw Error(C(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gm(e),e}throw Ul=t,ha}}var Ul=null;function mm(){if(Ul===null)throw Error(C(459));var e=Ul;return Ul=null,e}function gm(e){if(e===ha||e===yu)throw Error(C(483))}var Gn=!1;function Df(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ei(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ti(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ue&2)!==0){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=Yo(e),Zg(e,null,n),t}return gu(e,i,t,n),Yo(e)}function Ll(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,vg(e,n)}}function ec(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};l===null?r=l=a:l=l.next=a,n=n.next}while(n!==null);l===null?r=l=t:l=l.next=t}else r=l=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:l,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Yc=!1;function Bl(){if(Yc){var e=Or;if(e!==null)throw e}}function Hl(e,t,n,i){Yc=!1;var r=e.updateQueue;Gn=!1;var l=r.firstBaseUpdate,a=r.lastBaseUpdate,o=r.shared.pending;if(o!==null){r.shared.pending=null;var u=o,c=u.next;u.next=null,a===null?l=c:a.next=c,a=u;var s=e.alternate;s!==null&&(s=s.updateQueue,o=s.lastBaseUpdate,o!==a&&(o===null?s.firstBaseUpdate=c:o.next=c,s.lastBaseUpdate=u))}if(l!==null){var p=r.baseState;a=0,s=c=u=null,o=l;do{var d=o.lane&-536870913,f=d!==o.lane;if(f?(te&d)===d:(i&d)===d){d!==0&&d===Hr&&(Yc=!0),s!==null&&(s=s.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var w=e,E=o;d=t;var A=n;switch(E.tag){case 1:if(w=E.payload,typeof w=="function"){p=w.call(A,p,d);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=E.payload,d=typeof w=="function"?w.call(A,p,d):w,d==null)break e;p=xe({},p,d);break e;case 2:Gn=!0}}d=o.callback,d!==null&&(e.flags|=64,f&&(e.flags|=8192),f=r.callbacks,f===null?r.callbacks=[d]:f.push(d))}else f={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},s===null?(c=s=f,u=p):s=s.next=f,a|=d;if(o=o.next,o===null){if(o=r.shared.pending,o===null)break;f=o,o=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);s===null&&(u=p),r.baseState=u,r.firstBaseUpdate=c,r.lastBaseUpdate=s,l===null&&(r.shared.lanes=0),si|=a,e.lanes=a,e.memoizedState=p}}function $g(e,t){if(typeof e!="function")throw Error(C(191,e));e.call(t)}function ey(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)$g(n[e],t)}var qr=an(null),Qo=an(0);function ym(e,t){e=Nn,Te(Qo,e),Te(qr,t),Nn=e|t.baseLanes}function Vc(){Te(Qo,Nn),Te(qr,qr.current)}function Mf(){Nn=Qo.current,Ve(qr),Ve(Qo)}var oi=0,J=null,he=null,Re=null,Zo=!1,Nr=!1,Bi=!1,Ko=0,Pl=0,Rr=null,lT=0;function Ce(){throw Error(C(321))}function Uf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ct(e[n],t[n]))return!1;return!0}function Lf(e,t,n,i,r,l){return oi=l,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Y.H=e===null||e.memoizedState===null?Ny:Ry,Bi=!1,l=n(i,r),Bi=!1,Nr&&(l=ny(t,n,i,r)),ty(e),l}function ty(e){Y.H=Io;var t=he!==null&&he.next!==null;if(oi=0,Re=he=J=null,Zo=!1,Pl=0,Rr=null,t)throw Error(C(300));e===null||Ye||(e=e.dependencies,e!==null&&Go(e)&&(Ye=!0))}function ny(e,t,n,i){J=e;var r=0;do{if(Nr&&(Rr=null),Pl=0,Nr=!1,25<=r)throw Error(C(301));if(r+=1,Re=he=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}Y.H=dT,l=t(n,i)}while(Nr);return l}function aT(){var e=Y.H,t=e.useState()[0];return t=typeof t.then=="function"?ma(t):t,e=e.useState()[0],(he!==null?he.memoizedState:null)!==e&&(J.flags|=1024),t}function Bf(){var e=Ko!==0;return Ko=0,e}function Hf(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function qf(e){if(Zo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zo=!1}oi=0,Re=he=J=null,Nr=!1,Pl=Ko=0,Rr=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?J.memoizedState=Re=e:Re=Re.next=e,Re}function De(){if(he===null){var e=J.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=Re===null?J.memoizedState:Re.next;if(t!==null)Re=t,he=e;else{if(e===null)throw J.alternate===null?Error(C(467)):Error(C(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},Re===null?J.memoizedState=Re=e:Re=Re.next=e}return Re}function jf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ma(e){var t=Pl;return Pl+=1,Rr===null&&(Rr=[]),e=Wg(Rr,e,t),t=J,(Re===null?t.memoizedState:Re.next)===null&&(t=t.alternate,Y.H=t===null||t.memoizedState===null?Ny:Ry),e}function bu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ma(e);if(e.$$typeof===Sn)return nt(e)}throw Error(C(438,String(e)))}function Yf(e){var t=null,n=J.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=J.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=jf(),J.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=GE;return t.index++,n}function zn(e,t){return typeof t=="function"?t(e):t}function Co(e){var t=De();return Vf(t,he,e)}function Vf(e,t,n){var i=e.queue;if(i===null)throw Error(C(311));i.lastRenderedReducer=n;var r=e.baseQueue,l=i.pending;if(l!==null){if(r!==null){var a=r.next;r.next=l.next,l.next=a}t.baseQueue=r=l,i.pending=null}if(l=e.baseState,r===null)e.memoizedState=l;else{t=r.next;var o=a=null,u=null,c=t,s=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(te&p)===p:(oi&p)===p){var d=c.revertLane;if(d===0)u!==null&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===Hr&&(s=!0);else if((oi&d)===d){c=c.next,d===Hr&&(s=!0);continue}else p={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(o=u=p,a=l):u=u.next=p,J.lanes|=d,si|=d;p=c.action,Bi&&n(l,p),l=c.hasEagerState?c.eagerState:n(l,p)}else d={lane:p,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(o=u=d,a=l):u=u.next=d,J.lanes|=p,si|=p;c=c.next}while(c!==null&&c!==t);if(u===null?a=l:u.next=o,!Ct(l,e.memoizedState)&&(Ye=!0,s&&(n=Or,n!==null)))throw n;e.memoizedState=l,e.baseState=a,e.baseQueue=u,i.lastRenderedState=l}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function tc(e){var t=De(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,l=t.memoizedState;if(r!==null){n.pending=null;var a=r=r.next;do l=e(l,a.action),a=a.next;while(a!==r);Ct(l,t.memoizedState)||(Ye=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,i]}function iy(e,t,n){var i=J,r=De(),l=re;if(l){if(n===void 0)throw Error(C(407));n=n()}else n=t();var a=!Ct((he||r).memoizedState,n);a&&(r.memoizedState=n,Ye=!0),r=r.queue;var o=ay.bind(null,i,r,e);if(ga(2048,8,o,[e]),r.getSnapshot!==t||a||Re!==null&&Re.memoizedState.tag&1){if(i.flags|=2048,jr(9,xu(),ly.bind(null,i,r,n,t),null),ye===null)throw Error(C(349));l||(oi&124)!==0||ry(i,t,n)}return n}function ry(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t=jf(),J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ly(e,t,n,i){t.value=n,t.getSnapshot=i,oy(t)&&uy(e)}function ay(e,t,n){return n(function(){oy(t)&&uy(e)})}function oy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ct(e,n)}catch(i){return!0}}function uy(e){var t=Ir(e,2);t!==null&&_t(t,e,2)}function Xc(e){var t=ct();if(typeof e=="function"){var n=e;if(e=n(),Bi){Jn(!0);try{n()}finally{Jn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:e},t}function sy(e,t,n,i){return e.baseState=n,Vf(e,he,typeof i=="function"?i:zn)}function oT(e,t,n,i,r){if(vu(e))throw Error(C(485));if(e=t.action,e!==null){var l={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){l.listeners.push(a)}};Y.T!==null?n(!0):l.isTransition=!1,i(l),n=t.pending,n===null?(l.next=t.pending=l,cy(t,l)):(l.next=n.next,t.pending=n.next=l)}}function cy(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var l=Y.T,a={};Y.T=a;try{var o=n(r,i),u=Y.S;u!==null&&u(a,o),bm(e,t,o)}catch(c){Gc(e,t,c)}finally{Y.T=l}}else try{l=n(r,i),bm(e,t,l)}catch(c){Gc(e,t,c)}}function bm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){xm(e,t,i)},function(i){return Gc(e,t,i)}):xm(e,t,n)}function xm(e,t,n){t.status="fulfilled",t.value=n,fy(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,cy(e,n)))}function Gc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,fy(t),t=t.next;while(t!==i)}e.action=null}function fy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function dy(e,t){return t}function vm(e,t){if(re){var n=ye.formState;if(n!==null){e:{var i=J;if(re){if(ke){t:{for(var r=ke,l=en;r.nodeType!==8;){if(!l){r=null;break t}if(r=Kt(r.nextSibling),r===null){r=null;break t}}l=r.data,r=l==="F!"||l==="F"?r:null}if(r){ke=Kt(r.nextSibling),i=r.data==="F!";break e}}Ui(i)}i=!1}i&&(t=n[0])}}return n=ct(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dy,lastRenderedState:t},n.queue=i,n=Cy.bind(null,J,i),i.dispatch=n,i=Xc(!1),l=Zf.bind(null,J,!1,i.queue),i=ct(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=oT.bind(null,J,r,l,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function Sm(e){var t=De();return py(t,he,e)}function py(e,t,n){if(t=Vf(e,t,dy)[0],e=Co(zn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ma(t)}catch(a){throw a===ha?yu:a}else i=t;t=De();var r=t.queue,l=r.dispatch;return n!==t.memoizedState&&(J.flags|=2048,jr(9,xu(),uT.bind(null,r,n),null)),[i,l,e]}function uT(e,t){e.action=t}function Em(e){var t=De(),n=he;if(n!==null)return py(t,n,e);De(),t=t.memoizedState,n=De();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function jr(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=J.updateQueue,t===null&&(t=jf(),J.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function xu(){return{destroy:void 0,resource:void 0}}function hy(){return De().memoizedState}function zo(e,t,n,i){var r=ct();i=i===void 0?null:i,J.flags|=e,r.memoizedState=jr(1|t,xu(),n,i)}function ga(e,t,n,i){var r=De();i=i===void 0?null:i;var l=r.memoizedState.inst;he!==null&&i!==null&&Uf(i,he.memoizedState.deps)?r.memoizedState=jr(t,l,n,i):(J.flags|=e,r.memoizedState=jr(1|t,l,n,i))}function Tm(e,t){zo(8390656,8,e,t)}function my(e,t){ga(2048,8,e,t)}function gy(e,t){return ga(4,2,e,t)}function yy(e,t){return ga(4,4,e,t)}function by(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xy(e,t,n){n=n!=null?n.concat([e]):null,ga(4,4,by.bind(null,t,e),n)}function Xf(){}function vy(e,t){var n=De();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Uf(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Sy(e,t){var n=De();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Uf(t,i[1]))return i[0];if(i=e(),Bi){Jn(!0);try{e()}finally{Jn(!1)}}return n.memoizedState=[i,t],i}function Gf(e,t,n){return n===void 0||(oi&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=f0(),J.lanes|=e,si|=e,n)}function Ey(e,t,n,i){return Ct(n,t)?n:qr.current!==null?(e=Gf(e,n,i),Ct(e,t)||(Ye=!0),e):(oi&42)===0?(Ye=!0,e.memoizedState=n):(e=f0(),J.lanes|=e,si|=e,t)}function Ty(e,t,n,i,r){var l=le.p;le.p=l!==0&&8>l?l:8;var a=Y.T,o={};Y.T=o,Zf(e,!1,t,n);try{var u=r(),c=Y.S;if(c!==null&&c(o,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var s=rT(u,i);ql(e,t,s,At(e))}else ql(e,t,i,At(e))}catch(p){ql(e,t,{then:function(){},status:"rejected",reason:p},At())}finally{le.p=l,Y.T=a}}function sT(){}function Qc(e,t,n,i){if(e.tag!==5)throw Error(C(476));var r=wy(e).queue;Ty(e,r,t,Ci,n===null?sT:function(){return ky(e),n(i)})}function wy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ci,baseState:Ci,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:Ci},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ky(e){var t=wy(e).next.queue;ql(e,t,{},At())}function Qf(){return nt(ta)}function Ay(){return De().memoizedState}function _y(){return De().memoizedState}function cT(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=At();e=ei(n);var i=ti(t,e,n);i!==null&&(_t(i,t,n),Ll(i,t,n)),t={cache:Nf()},e.payload=t;return}t=t.return}}function fT(e,t,n){var i=At();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},vu(e)?zy(t,n):(n=_f(e,t,n,i),n!==null&&(_t(n,e,i),Oy(n,t,i)))}function Cy(e,t,n){var i=At();ql(e,t,n,i)}function ql(e,t,n,i){var r={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(vu(e))zy(t,r);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var a=t.lastRenderedState,o=l(a,n);if(r.hasEagerState=!0,r.eagerState=o,Ct(o,a))return gu(e,t,r,0),ye===null&&mu(),!1}catch(u){}finally{}if(n=_f(e,t,r,i),n!==null)return _t(n,e,i),Oy(n,t,i),!0}return!1}function Zf(e,t,n,i){if(i={lane:2,revertLane:ed(),action:i,hasEagerState:!1,eagerState:null,next:null},vu(e)){if(t)throw Error(C(479))}else t=_f(e,n,i,2),t!==null&&_t(t,e,2)}function vu(e){var t=e.alternate;return e===J||t!==null&&t===J}function zy(e,t){Nr=Zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Oy(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,vg(e,n)}}var Io={readContext:nt,use:bu,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useInsertionEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useSyncExternalStore:Ce,useId:Ce,useHostTransitionStatus:Ce,useFormState:Ce,useActionState:Ce,useOptimistic:Ce,useMemoCache:Ce,useCacheRefresh:Ce},Ny={readContext:nt,use:bu,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Tm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,zo(4194308,4,by.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){zo(4,2,e,t)},useMemo:function(e,t){var n=ct();t=t===void 0?null:t;var i=e();if(Bi){Jn(!0);try{e()}finally{Jn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=ct();if(n!==void 0){var r=n(t);if(Bi){Jn(!0);try{n(t)}finally{Jn(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=fT.bind(null,J,e),[i.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Xc(e);var t=e.queue,n=Cy.bind(null,J,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Xf,useDeferredValue:function(e,t){var n=ct();return Gf(n,e,t)},useTransition:function(){var e=Xc(!1);return e=Ty.bind(null,J,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=J,r=ct();if(re){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ye===null)throw Error(C(349));(te&124)!==0||ry(i,t,n)}r.memoizedState=n;var l={value:n,getSnapshot:t};return r.queue=l,Tm(ay.bind(null,i,l,e),[e]),i.flags|=2048,jr(9,xu(),ly.bind(null,i,l,n,t),null),n},useId:function(){var e=ct(),t=ye.identifierPrefix;if(re){var n=Tn,i=En;n=(i&~(1<<32-kt(i)-1)).toString(32)+n,t="\xAB"+t+"R"+n,n=Ko++,0<n&&(t+="H"+n.toString(32)),t+="\xBB"}else n=lT++,t="\xAB"+t+"r"+n.toString(32)+"\xBB";return e.memoizedState=t},useHostTransitionStatus:Qf,useFormState:vm,useActionState:vm,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Zf.bind(null,J,!0,n),n.dispatch=t,[e,t]},useMemoCache:Yf,useCacheRefresh:function(){return ct().memoizedState=cT.bind(null,J)}},Ry={readContext:nt,use:bu,useCallback:vy,useContext:nt,useEffect:my,useImperativeHandle:xy,useInsertionEffect:gy,useLayoutEffect:yy,useMemo:Sy,useReducer:Co,useRef:hy,useState:function(){return Co(zn)},useDebugValue:Xf,useDeferredValue:function(e,t){var n=De();return Ey(n,he.memoizedState,e,t)},useTransition:function(){var e=Co(zn)[0],t=De().memoizedState;return[typeof e=="boolean"?e:ma(e),t]},useSyncExternalStore:iy,useId:Ay,useHostTransitionStatus:Qf,useFormState:Sm,useActionState:Sm,useOptimistic:function(e,t){var n=De();return sy(n,he,e,t)},useMemoCache:Yf,useCacheRefresh:_y},dT={readContext:nt,use:bu,useCallback:vy,useContext:nt,useEffect:my,useImperativeHandle:xy,useInsertionEffect:gy,useLayoutEffect:yy,useMemo:Sy,useReducer:tc,useRef:hy,useState:function(){return tc(zn)},useDebugValue:Xf,useDeferredValue:function(e,t){var n=De();return he===null?Gf(n,e,t):Ey(n,he.memoizedState,e,t)},useTransition:function(){var e=tc(zn)[0],t=De().memoizedState;return[typeof e=="boolean"?e:ma(e),t]},useSyncExternalStore:iy,useId:Ay,useHostTransitionStatus:Qf,useFormState:Em,useActionState:Em,useOptimistic:function(e,t){var n=De();return he!==null?sy(n,he,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Yf,useCacheRefresh:_y},Dr=null,Fl=0;function ho(e){var t=Fl;return Fl+=1,Dr===null&&(Dr=[]),Wg(Dr,e,t)}function El(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mo(e,t){throw t.$$typeof===VE?Error(C(525)):(e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wm(e){var t=e._init;return t(e._payload)}function Dy(e){function t(h,g){if(e){var m=h.deletions;m===null?(h.deletions=[g],h.flags|=16):m.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function i(h){for(var g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function r(h,g){return h=An(h,g),h.index=0,h.sibling=null,h}function l(h,g,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<g?(h.flags|=67108866,g):m):(h.flags|=67108866,g)):(h.flags|=1048576,g)}function a(h){return e&&h.alternate===null&&(h.flags|=67108866),h}function o(h,g,m,S){return g===null||g.tag!==6?(g=Ws(m,h.mode,S),g.return=h,g):(g=r(g,m),g.return=h,g)}function u(h,g,m,S){var T=m.type;return T===mr?s(h,g,m.props.children,S,m.key):g!==null&&(g.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xn&&wm(T)===g.type)?(g=r(g,m.props),El(g,m),g.return=h,g):(g=Ao(m.type,m.key,m.props,null,h.mode,S),El(g,m),g.return=h,g)}function c(h,g,m,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==m.containerInfo||g.stateNode.implementation!==m.implementation?(g=$s(m,h.mode,S),g.return=h,g):(g=r(g,m.children||[]),g.return=h,g)}function s(h,g,m,S,T){return g===null||g.tag!==7?(g=zi(m,h.mode,S,T),g.return=h,g):(g=r(g,m),g.return=h,g)}function p(h,g,m){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Ws(""+g,h.mode,m),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ro:return m=Ao(g.type,g.key,g.props,null,h.mode,m),El(m,g),m.return=h,m;case _l:return g=$s(g,h.mode,m),g.return=h,g;case Xn:var S=g._init;return g=S(g._payload),p(h,g,m)}if(Cl(g)||xl(g))return g=zi(g,h.mode,m,null),g.return=h,g;if(typeof g.then=="function")return p(h,ho(g),m);if(g.$$typeof===Sn)return p(h,fo(h,g),m);mo(h,g)}return null}function d(h,g,m,S){var T=g!==null?g.key:null;if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return T!==null?null:o(h,g,""+m,S);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ro:return m.key===T?u(h,g,m,S):null;case _l:return m.key===T?c(h,g,m,S):null;case Xn:return T=m._init,m=T(m._payload),d(h,g,m,S)}if(Cl(m)||xl(m))return T!==null?null:s(h,g,m,S,null);if(typeof m.then=="function")return d(h,g,ho(m),S);if(m.$$typeof===Sn)return d(h,g,fo(h,m),S);mo(h,m)}return null}function f(h,g,m,S,T){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return h=h.get(m)||null,o(g,h,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ro:return h=h.get(S.key===null?m:S.key)||null,u(g,h,S,T);case _l:return h=h.get(S.key===null?m:S.key)||null,c(g,h,S,T);case Xn:var v=S._init;return S=v(S._payload),f(h,g,m,S,T)}if(Cl(S)||xl(S))return h=h.get(m)||null,s(g,h,S,T,null);if(typeof S.then=="function")return f(h,g,m,ho(S),T);if(S.$$typeof===Sn)return f(h,g,m,fo(g,S),T);mo(g,S)}return null}function w(h,g,m,S){for(var T=null,v=null,_=g,z=g=0,B=null;_!==null&&z<m.length;z++){_.index>z?(B=_,_=null):B=_.sibling;var O=d(h,_,m[z],S);if(O===null){_===null&&(_=B);break}e&&_&&O.alternate===null&&t(h,_),g=l(O,g,z),v===null?T=O:v.sibling=O,v=O,_=B}if(z===m.length)return n(h,_),re&&Ai(h,z),T;if(_===null){for(;z<m.length;z++)_=p(h,m[z],S),_!==null&&(g=l(_,g,z),v===null?T=_:v.sibling=_,v=_);return re&&Ai(h,z),T}for(_=i(_);z<m.length;z++)B=f(_,h,z,m[z],S),B!==null&&(e&&B.alternate!==null&&_.delete(B.key===null?z:B.key),g=l(B,g,z),v===null?T=B:v.sibling=B,v=B);return e&&_.forEach(function(R){return t(h,R)}),re&&Ai(h,z),T}function E(h,g,m,S){if(m==null)throw Error(C(151));for(var T=null,v=null,_=g,z=g=0,B=null,O=m.next();_!==null&&!O.done;z++,O=m.next()){_.index>z?(B=_,_=null):B=_.sibling;var R=d(h,_,O.value,S);if(R===null){_===null&&(_=B);break}e&&_&&R.alternate===null&&t(h,_),g=l(R,g,z),v===null?T=R:v.sibling=R,v=R,_=B}if(O.done)return n(h,_),re&&Ai(h,z),T;if(_===null){for(;!O.done;z++,O=m.next())O=p(h,O.value,S),O!==null&&(g=l(O,g,z),v===null?T=O:v.sibling=O,v=O);return re&&Ai(h,z),T}for(_=i(_);!O.done;z++,O=m.next())O=f(_,h,z,O.value,S),O!==null&&(e&&O.alternate!==null&&_.delete(O.key===null?z:O.key),g=l(O,g,z),v===null?T=O:v.sibling=O,v=O);return e&&_.forEach(function(L){return t(h,L)}),re&&Ai(h,z),T}function A(h,g,m,S){if(typeof m=="object"&&m!==null&&m.type===mr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ro:e:{for(var T=m.key;g!==null;){if(g.key===T){if(T=m.type,T===mr){if(g.tag===7){n(h,g.sibling),S=r(g,m.props.children),S.return=h,h=S;break e}}else if(g.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xn&&wm(T)===g.type){n(h,g.sibling),S=r(g,m.props),El(S,m),S.return=h,h=S;break e}n(h,g);break}else t(h,g);g=g.sibling}m.type===mr?(S=zi(m.props.children,h.mode,S,m.key),S.return=h,h=S):(S=Ao(m.type,m.key,m.props,null,h.mode,S),El(S,m),S.return=h,h=S)}return a(h);case _l:e:{for(T=m.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===m.containerInfo&&g.stateNode.implementation===m.implementation){n(h,g.sibling),S=r(g,m.children||[]),S.return=h,h=S;break e}else{n(h,g);break}else t(h,g);g=g.sibling}S=$s(m,h.mode,S),S.return=h,h=S}return a(h);case Xn:return T=m._init,m=T(m._payload),A(h,g,m,S)}if(Cl(m))return w(h,g,m,S);if(xl(m)){if(T=xl(m),typeof T!="function")throw Error(C(150));return m=T.call(m),E(h,g,m,S)}if(typeof m.then=="function")return A(h,g,ho(m),S);if(m.$$typeof===Sn)return A(h,g,fo(h,m),S);mo(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,g!==null&&g.tag===6?(n(h,g.sibling),S=r(g,m),S.return=h,h=S):(n(h,g),S=Ws(m,h.mode,S),S.return=h,h=S),a(h)):n(h,g)}return function(h,g,m,S){try{Fl=0;var T=A(h,g,m,S);return Dr=null,T}catch(_){if(_===ha||_===yu)throw _;var v=Tt(29,_,null,h.mode);return v.lanes=S,v.return=h,v}finally{}}}var Yr=Dy(!0),My=Dy(!1),jt=an(null),ln=null;function Zn(e){var t=e.alternate;Te(Ue,Ue.current&1),Te(jt,e),ln===null&&(t===null||qr.current!==null||t.memoizedState!==null)&&(ln=e)}function Uy(e){if(e.tag===22){if(Te(Ue,Ue.current),Te(jt,e),ln===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(ln=e)}}else Kn(e)}function Kn(){Te(Ue,Ue.current),Te(jt,jt.current)}function kn(e){Ve(jt),ln===e&&(ln=null),Ve(Ue)}var Ue=an(0);function Jo(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==="$?"||sf(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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}function nc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zc={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=At(),r=ei(i);r.payload=t,n!=null&&(r.callback=n),t=ti(e,r,i),t!==null&&(_t(t,e,i),Ll(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=At(),r=ei(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=ti(e,r,i),t!==null&&(_t(t,e,i),Ll(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=At(),i=ei(n);i.tag=2,t!=null&&(i.callback=t),t=ti(e,i,n),t!==null&&(_t(t,e,n),Ll(t,e,n))}};function km(e,t,n,i,r,l,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,l,a):t.prototype&&t.prototype.isPureReactComponent?!Il(n,i)||!Il(r,l):!0}function Am(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Zc.enqueueReplaceState(t,t.state,null)}function Hi(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=xe({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}var Po=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Ly(e){Po(e)}function By(e){console.error(e)}function Hy(e){Po(e)}function Fo(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function _m(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Kc(e,t,n){return n=ei(n),n.tag=3,n.payload={element:null},n.callback=function(){Fo(e,t)},n}function qy(e){return e=ei(e),e.tag=3,e}function jy(e,t,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var l=i.value;e.payload=function(){return r(l)},e.callback=function(){_m(t,n,i)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){_m(t,n,i),typeof r!="function"&&(ni===null?ni=new Set([this]):ni.add(this));var o=i.stack;this.componentDidCatch(i.value,{componentStack:o!==null?o:""})})}function pT(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&da(t,n,r,!0),n=jt.current,n!==null){switch(n.tag){case 13:return ln===null?tf():n.alternate===null&&Ae===0&&(Ae=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===qc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),pc(e,i,r)),!1;case 22:return n.flags|=65536,i===qc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),pc(e,i,r)),!1}throw Error(C(435,n.tag))}return pc(e,i,r),tf(),!1}if(re)return t=jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==Mc&&(e=Error(C(422),{cause:i}),Jl(Ht(e,n)))):(i!==Mc&&(t=Error(C(423),{cause:i}),Jl(Ht(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=Ht(i,n),r=Kc(e.stateNode,i,r),ec(e,r),Ae!==4&&(Ae=2)),!1;var l=Error(C(520),{cause:i});if(l=Ht(l,n),Vl===null?Vl=[l]:Vl.push(l),Ae!==4&&(Ae=2),t===null)return!0;i=Ht(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=Kc(n.stateNode,i,e),ec(n,e),!1;case 1:if(t=n.type,l=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(ni===null||!ni.has(l))))return n.flags|=65536,r&=-r,n.lanes|=r,r=qy(r),jy(r,e,n,i),ec(n,r),!1}n=n.return}while(n!==null);return!1}var Yy=Error(C(461)),Ye=!1;function Ie(e,t,n,i){t.child=e===null?My(t,null,n,i):Yr(t,e.child,n,i)}function Cm(e,t,n,i,r){n=n.render;var l=t.ref;if("ref"in i){var a={};for(var o in i)o!=="ref"&&(a[o]=i[o])}else a=i;return Li(t),i=Lf(e,t,n,a,l,r),o=Bf(),e!==null&&!Ye?(Hf(e,t,r),On(e,t,r)):(re&&o&&zf(t),t.flags|=1,Ie(e,t,i,r),t.child)}function zm(e,t,n,i,r){if(e===null){var l=n.type;return typeof l=="function"&&!Cf(l)&&l.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=l,Vy(e,t,l,i,r)):(e=Ao(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!Kf(e,r)){var a=l.memoizedProps;if(n=n.compare,n=n!==null?n:Il,n(a,i)&&e.ref===t.ref)return On(e,t,r)}return t.flags|=1,e=An(l,i),e.ref=t.ref,e.return=t,t.child=e}function Vy(e,t,n,i,r){if(e!==null){var l=e.memoizedProps;if(Il(l,i)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=i=l,Kf(e,r))(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,On(e,t,r)}return Ic(e,t,n,i,r)}function Xy(e,t,n){var i=t.pendingProps,r=i.children,l=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=l!==null?l.baseLanes|n:n,e!==null){for(r=t.child=e.child,l=0;r!==null;)l=l|r.lanes|r.childLanes,r=r.sibling;t.childLanes=l&~i}else t.childLanes=0,t.child=null;return Om(e,t,i,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_o(t,l!==null?l.cachePool:null),l!==null?ym(t,l):Vc(),Uy(t);else return t.lanes=t.childLanes=536870912,Om(e,t,l!==null?l.baseLanes|n:n,n)}else l!==null?(_o(t,l.cachePool),ym(t,l),Kn(t),t.memoizedState=null):(e!==null&&_o(t,null),Vc(),Kn(t));return Ie(e,t,r,n),t.child}function Om(e,t,n,i){var r=Rf();return r=r===null?null:{parent:Me._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&_o(t,null),Vc(),Uy(t),e!==null&&da(e,t,i,!0),null}function Oo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(C(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ic(e,t,n,i,r){return Li(t),n=Lf(e,t,n,i,void 0,r),i=Bf(),e!==null&&!Ye?(Hf(e,t,r),On(e,t,r)):(re&&i&&zf(t),t.flags|=1,Ie(e,t,n,r),t.child)}function Nm(e,t,n,i,r,l){return Li(t),t.updateQueue=null,n=ny(t,i,n,r),ty(e),i=Bf(),e!==null&&!Ye?(Hf(e,t,l),On(e,t,l)):(re&&i&&zf(t),t.flags|=1,Ie(e,t,n,l),t.child)}function Rm(e,t,n,i,r){if(Li(t),t.stateNode===null){var l=Tr,a=n.contextType;typeof a=="object"&&a!==null&&(l=nt(a)),l=new n(i,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Zc,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=i,l.state=t.memoizedState,l.refs={},Df(t),a=n.contextType,l.context=typeof a=="object"&&a!==null?nt(a):Tr,l.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(nc(t,n,a,i),l.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(a=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),a!==l.state&&Zc.enqueueReplaceState(l,l.state,null),Hl(t,i,l,r),Bl(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){l=t.stateNode;var o=t.memoizedProps,u=Hi(n,o);l.props=u;var c=l.context,s=n.contextType;a=Tr,typeof s=="object"&&s!==null&&(a=nt(s));var p=n.getDerivedStateFromProps;s=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,s||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o||c!==a)&&Am(t,l,i,a),Gn=!1;var d=t.memoizedState;l.state=d,Hl(t,i,l,r),Bl(),c=t.memoizedState,o||d!==c||Gn?(typeof p=="function"&&(nc(t,n,p,i),c=t.memoizedState),(u=Gn||km(t,n,u,i,d,c,a))?(s||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),l.props=i,l.state=c,l.context=a,i=u):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{l=t.stateNode,jc(e,t),a=t.memoizedProps,s=Hi(n,a),l.props=s,p=t.pendingProps,d=l.context,c=n.contextType,u=Tr,typeof c=="object"&&c!==null&&(u=nt(c)),o=n.getDerivedStateFromProps,(c=typeof o=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==p||d!==u)&&Am(t,l,i,u),Gn=!1,d=t.memoizedState,l.state=d,Hl(t,i,l,r),Bl();var f=t.memoizedState;a!==p||d!==f||Gn||e!==null&&e.dependencies!==null&&Go(e.dependencies)?(typeof o=="function"&&(nc(t,n,o,i),f=t.memoizedState),(s=Gn||km(t,n,s,i,d,f,u)||e!==null&&e.dependencies!==null&&Go(e.dependencies))?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(i,f,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(i,f,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=f),l.props=i,l.state=f,l.context=u,i=s):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),i=!1)}return l=i,Oo(e,t),i=(t.flags&128)!==0,l||i?(l=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&i?(t.child=Yr(t,e.child,null,r),t.child=Yr(t,null,n,r)):Ie(e,t,n,r),t.memoizedState=l.state,e=t.child):e=On(e,t,r),e}function Dm(e,t,n,i){return fa(),t.flags|=256,Ie(e,t,n,i),t.child}var ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rc(e){return{baseLanes:e,cachePool:Pg()}}function lc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=qt),e}function Gy(e,t,n){var i=t.pendingProps,r=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(Ue.current&2)!==0),a&&(r=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(re){if(r?Zn(t):Kn(t),re){var o=ke,u;if(u=o){e:{for(u=o,o=en;u.nodeType!==8;){if(!o){o=null;break e}if(u=Kt(u.nextSibling),u===null){o=null;break e}}o=u}o!==null?(t.memoizedState={dehydrated:o,treeContext:Oi!==null?{id:En,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},u=Tt(18,null,null,0),u.stateNode=o,u.return=t,t.child=u,ot=t,ke=null,u=!0):u=!1}u||Ui(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return sf(o)?t.lanes=32:t.lanes=536870912,null;kn(t)}return o=i.children,i=i.fallback,r?(Kn(t),r=t.mode,o=Wo({mode:"hidden",children:o},r),i=zi(i,r,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,r=t.child,r.memoizedState=rc(n),r.childLanes=lc(e,a,n),t.memoizedState=ic,i):(Zn(t),Jc(t,o))}if(u=e.memoizedState,u!==null&&(o=u.dehydrated,o!==null)){if(l)t.flags&256?(Zn(t),t.flags&=-257,t=ac(e,t,n)):t.memoizedState!==null?(Kn(t),t.child=e.child,t.flags|=128,t=null):(Kn(t),r=i.fallback,o=t.mode,i=Wo({mode:"visible",children:i.children},o),r=zi(r,o,n,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,Yr(t,e.child,null,n),i=t.child,i.memoizedState=rc(n),i.childLanes=lc(e,a,n),t.memoizedState=ic,t=r);else if(Zn(t),sf(o)){if(a=o.nextSibling&&o.nextSibling.dataset,a)var c=a.dgst;a=c,i=Error(C(419)),i.stack="",i.digest=a,Jl({value:i,source:null,stack:null}),t=ac(e,t,n)}else if(Ye||da(e,t,n,!1),a=(n&e.childLanes)!==0,Ye||a){if(a=ye,a!==null&&(i=n&-n,i=(i&42)!==0?1:yf(i),i=(i&(a.suspendedLanes|n))!==0?0:i,i!==0&&i!==u.retryLane))throw u.retryLane=i,Ir(e,i),_t(a,e,i),Yy;o.data==="$?"||tf(),t=ac(e,t,n)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,ke=Kt(o.nextSibling),ot=t,re=!0,Ni=null,en=!1,e!==null&&(Ut[Lt++]=En,Ut[Lt++]=Tn,Ut[Lt++]=Oi,En=e.id,Tn=e.overflow,Oi=t),t=Jc(t,i.children),t.flags|=4096);return t}return r?(Kn(t),r=i.fallback,o=t.mode,u=e.child,c=u.sibling,i=An(u,{mode:"hidden",children:i.children}),i.subtreeFlags=u.subtreeFlags&65011712,c!==null?r=An(c,r):(r=zi(r,o,n,null),r.flags|=2),r.return=t,i.return=t,i.sibling=r,t.child=i,i=r,r=t.child,o=e.child.memoizedState,o===null?o=rc(n):(u=o.cachePool,u!==null?(c=Me._currentValue,u=u.parent!==c?{parent:c,pool:c}:u):u=Pg(),o={baseLanes:o.baseLanes|n,cachePool:u}),r.memoizedState=o,r.childLanes=lc(e,a,n),t.memoizedState=ic,i):(Zn(t),n=e.child,e=n.sibling,n=An(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Jc(e,t){return t=Wo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Wo(e,t){return e=Tt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ac(e,t,n){return Yr(t,e.child,null,n),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mm(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Lc(e.return,t,n)}function oc(e,t,n,i,r){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=i,l.tail=n,l.tailMode=r)}function Qy(e,t,n){var i=t.pendingProps,r=i.revealOrder,l=i.tail;if(Ie(e,t,i.children,n),i=Ue.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mm(e,n,t);else if(e.tag===19)Mm(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}i&=1}switch(Te(Ue,i),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Jo(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),oc(t,!1,r,n,l);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Jo(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}oc(t,!0,n,null,l);break;case"together":oc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function On(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),si|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(da(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=An(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=An(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Kf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Go(e)))}function hT(e,t,n){switch(t.tag){case 3:Lo(t,t.stateNode.containerInfo),Qn(t,Me,e.memoizedState.cache),fa();break;case 27:case 5:wc(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:Qn(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Zn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Gy(e,t,n):(Zn(t),e=On(e,t,n),e!==null?e.sibling:null);Zn(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(da(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return Qy(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Te(Ue,Ue.current),i)break;return null;case 22:case 23:return t.lanes=0,Xy(e,t,n);case 24:Qn(t,Me,e.memoizedState.cache)}return On(e,t,n)}function Zy(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ye=!0;else{if(!Kf(e,n)&&(t.flags&128)===0)return Ye=!1,hT(e,t,n);Ye=(e.flags&131072)!==0}else Ye=!1,re&&(t.flags&1048576)!==0&&Ig(t,Xo,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,r=i._init;if(i=r(i._payload),t.type=i,typeof i=="function")Cf(i)?(e=Hi(i,e),t.tag=1,t=Rm(null,t,i,e,n)):(t.tag=0,t=Ic(null,t,i,e,n));else{if(i!=null){if(r=i.$$typeof,r===hf){t.tag=11,t=Cm(null,t,i,e,n);break e}else if(r===mf){t.tag=14,t=zm(null,t,i,e,n);break e}}throw t=Ec(i)||i,Error(C(306,t,""))}}return t;case 0:return Ic(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=Hi(i,t.pendingProps),Rm(e,t,i,r,n);case 3:e:{if(Lo(t,t.stateNode.containerInfo),e===null)throw Error(C(387));i=t.pendingProps;var l=t.memoizedState;r=l.element,jc(e,t),Hl(t,i,null,n);var a=t.memoizedState;if(i=a.cache,Qn(t,Me,i),i!==l.cache&&Bc(t,[Me],n,!0),Bl(),i=a.element,l.isDehydrated)if(l={element:i,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=Dm(e,t,i,n);break e}else if(i!==r){r=Ht(Error(C(424)),t),Jl(r),t=Dm(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ke=Kt(e.firstChild),ot=t,re=!0,Ni=null,en=!0,n=My(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(fa(),i===r){t=On(e,t,n);break e}Ie(e,t,i,n)}t=t.child}return t;case 26:return Oo(e,t),e===null?(n=$m(t.type,null,t.pendingProps,null))?t.memoizedState=n:re||(n=t.type,e=t.pendingProps,i=lu($n.current).createElement(n),i[tt]=t,i[pt]=e,Pe(i,n,e),je(i),t.stateNode=i):t.memoizedState=$m(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return wc(t),e===null&&re&&(i=t.stateNode=R0(t.type,t.pendingProps,$n.current),ot=t,en=!0,r=ke,fi(t.type)?(cf=r,ke=Kt(i.firstChild)):ke=r),Ie(e,t,t.pendingProps.children,n),Oo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&re&&((r=i=ke)&&(i=jT(i,t.type,t.pendingProps,en),i!==null?(t.stateNode=i,ot=t,ke=Kt(i.firstChild),en=!1,r=!0):r=!1),r||Ui(t)),wc(t),r=t.type,l=t.pendingProps,a=e!==null?e.memoizedProps:null,i=l.children,of(r,l)?i=null:a!==null&&of(r,a)&&(t.flags|=32),t.memoizedState!==null&&(r=Lf(e,t,aT,null,null,n),ta._currentValue=r),Oo(e,t),Ie(e,t,i,n),t.child;case 6:return e===null&&re&&((e=n=ke)&&(n=YT(n,t.pendingProps,en),n!==null?(t.stateNode=n,ot=t,ke=null,e=!0):e=!1),e||Ui(t)),null;case 13:return Gy(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Yr(t,null,i,n):Ie(e,t,i,n),t.child;case 11:return Cm(e,t,t.type,t.pendingProps,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Qn(t,t.type,i.value),Ie(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,Li(t),r=nt(r),i=i(r),t.flags|=1,Ie(e,t,i,n),t.child;case 14:return zm(e,t,t.type,t.pendingProps,n);case 15:return Vy(e,t,t.type,t.pendingProps,n);case 19:return Qy(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=Wo(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=An(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Xy(e,t,n);case 24:return Li(t),i=nt(Me),e===null?(r=Rf(),r===null&&(r=ye,l=Nf(),r.pooledCache=l,l.refCount++,l!==null&&(r.pooledCacheLanes|=n),r=l),t.memoizedState={parent:i,cache:r},Df(t),Qn(t,Me,r)):((e.lanes&n)!==0&&(jc(e,t),Hl(t,null,null,n),Bl()),r=e.memoizedState,l=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Qn(t,Me,i)):(i=l.cache,Qn(t,Me,i),i!==r.cache&&Bc(t,[Me],n,!0))),Ie(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(C(156,t.tag))}function bn(e){e.flags|=4}function Um(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!U0(t)){if(t=jt.current,t!==null&&((te&4194048)===te?ln!==null:(te&62914560)!==te&&(te&536870912)===0||t!==ln))throw Ul=qc,Fg;e.flags|=8192}}function go(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bg():536870912,e.lanes|=t,Vr|=t)}function Tl(e,t){if(!re)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function we(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function mT(e,t,n){var i=t.pendingProps;switch(Of(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(t),null;case 1:return we(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),_n(Me),Ur(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Sl(t)?bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fm())),we(t),null;case 26:return n=t.memoizedState,e===null?(bn(t),n!==null?(we(t),Um(t,n)):(we(t),t.flags&=-16777217)):n?n!==e.memoizedState?(bn(t),we(t),Um(t,n)):(we(t),t.flags&=-16777217):(e.memoizedProps!==i&&bn(t),we(t),t.flags&=-16777217),null;case 27:Bo(t),n=$n.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&bn(t);else{if(!i){if(t.stateNode===null)throw Error(C(166));return we(t),null}e=nn.current,Sl(t)?sm(t,e):(e=R0(r,i,n),t.stateNode=e,bn(t))}return we(t),null;case 5:if(Bo(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&bn(t);else{if(!i){if(t.stateNode===null)throw Error(C(166));return we(t),null}if(e=nn.current,Sl(t))sm(t,e);else{switch(r=lu($n.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?r.createElement("select",{is:i.is}):r.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?r.createElement(n,{is:i.is}):r.createElement(n)}}e[tt]=t,e[pt]=i;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Pe(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&bn(t)}}return we(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&bn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(C(166));if(e=$n.current,Sl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=ot,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||z0(e.nodeValue,n)),e||Ui(t)}else e=lu(e).createTextNode(i),e[tt]=t,t.stateNode=e}return we(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Sl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(C(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(C(317));r[tt]=t}else fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;we(t),r=!1}else r=fm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(kn(t),t):(kn(t),null)}if(kn(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=i!==null,e=e!==null&&e.memoizedState!==null,n){i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool);var l=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==r&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),go(t,t.updateQueue),we(t),null;case 4:return Ur(),e===null&&td(t.stateNode.containerInfo),we(t),null;case 10:return _n(t.type),we(t),null;case 19:if(Ve(Ue),r=t.memoizedState,r===null)return we(t),null;if(i=(t.flags&128)!==0,l=r.rendering,l===null)if(i)Tl(r,!1);else{if(Ae!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=Jo(e),l!==null){for(t.flags|=128,Tl(r,!1),e=l.updateQueue,t.updateQueue=e,go(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Kg(n,e),n=n.sibling;return Te(Ue,Ue.current&1|2),t.child}e=e.sibling}r.tail!==null&&rn()>eu&&(t.flags|=128,i=!0,Tl(r,!1),t.lanes=4194304)}else{if(!i)if(e=Jo(l),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,go(t,e),Tl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!l.alternate&&!re)return we(t),null}else 2*rn()-r.renderingStartTime>eu&&n!==536870912&&(t.flags|=128,i=!0,Tl(r,!1),t.lanes=4194304);r.isBackwards?(l.sibling=t.child,t.child=l):(e=r.last,e!==null?e.sibling=l:t.child=l,r.last=l)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=rn(),t.sibling=null,e=Ue.current,Te(Ue,i?e&1|2:e&1),t):(we(t),null);case 22:case 23:return kn(t),Mf(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),n=t.updateQueue,n!==null&&go(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Ve(Ri),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_n(Me),we(t),null;case 25:return null;case 30:return null}throw Error(C(156,t.tag))}function gT(e,t){switch(Of(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(Me),Ur(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Bo(t),null;case 13:if(kn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ve(Ue),null;case 4:return Ur(),null;case 10:return _n(t.type),null;case 22:case 23:return kn(t),Mf(),e!==null&&Ve(Ri),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(Me),null;case 25:return null;default:return null}}function Ky(e,t){switch(Of(t),t.tag){case 3:_n(Me),Ur();break;case 26:case 27:case 5:Bo(t);break;case 4:Ur();break;case 13:kn(t);break;case 19:Ve(Ue);break;case 10:_n(t.type);break;case 22:case 23:kn(t),Mf(),e!==null&&Ve(Ri);break;case 24:_n(Me)}}function ya(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){i=void 0;var l=n.create,a=n.inst;i=l(),a.destroy=i}n=n.next}while(n!==r)}}catch(o){ge(t,t.return,o)}}function ui(e,t,n){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var l=r.next;i=l;do{if((i.tag&e)===e){var a=i.inst,o=a.destroy;if(o!==void 0){a.destroy=void 0,r=t;var u=n,c=o;try{c()}catch(s){ge(r,u,s)}}}i=i.next}while(i!==l)}}catch(s){ge(t,t.return,s)}}function Iy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ey(t,n)}catch(i){ge(e,e.return,i)}}}function Jy(e,t,n){n.props=Hi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){ge(e,t,i)}}function jl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){ge(e,t,r)}}function tn(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){ge(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function Py(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){ge(e,e.return,r)}}function uc(e,t,n){try{var i=e.stateNode;UT(i,e.type,n,t),i[pt]=t}catch(r){ge(e,e.return,r)}}function Fy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fi(e.type)||e.tag===4}function sc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fy(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.tag===27&&fi(e.type)||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 Pc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wu));else if(i!==4&&(i===27&&fi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Pc(e,t,n),e=e.sibling;e!==null;)Pc(e,t,n),e=e.sibling}function $o(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&fi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($o(e,t,n),e=e.sibling;e!==null;)$o(e,t,n),e=e.sibling}function Wy(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Pe(t,i,n),t[tt]=e,t[pt]=n}catch(l){ge(e,e.return,l)}}var vn=!1,ze=!1,cc=!1,Lm=typeof WeakSet=="function"?WeakSet:Set,qe=null;function yT(e,t){if(e=e.containerInfo,lf=su,e=qg(e),kf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,l=i.focusNode;i=i.focusOffset;try{n.nodeType,l.nodeType}catch(E){n=null;break e}var a=0,o=-1,u=-1,c=0,s=0,p=e,d=null;t:for(;;){for(var f;p!==n||r!==0&&p.nodeType!==3||(o=a+r),p!==l||i!==0&&p.nodeType!==3||(u=a+i),p.nodeType===3&&(a+=p.nodeValue.length),(f=p.firstChild)!==null;)d=p,p=f;for(;;){if(p===e)break t;if(d===n&&++c===r&&(o=a),d===l&&++s===i&&(u=a),(f=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=f}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(af={focusedElem:e,selectionRange:n},su=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){switch(t=qe,l=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&l!==null){e=void 0,n=t,r=l.memoizedProps,l=l.memoizedState,i=n.stateNode;try{var w=Hi(n.type,r,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(w,l),i.__reactInternalSnapshotBeforeUpdate=e}catch(E){ge(n,n.return,E)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)uf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":uf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(C(163))}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}}function $y(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Yn(e,n),i&4&&ya(5,n);break;case 1:if(Yn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(a){ge(n,n.return,a)}else{var r=Hi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){ge(n,n.return,a)}}i&64&&Iy(n),i&512&&jl(n,n.return);break;case 3:if(Yn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ey(e,t)}catch(a){ge(n,n.return,a)}}break;case 27:t===null&&i&4&&Wy(n);case 26:case 5:Yn(e,n),t===null&&i&4&&Py(n),i&512&&jl(n,n.return);break;case 12:Yn(e,n);break;case 13:Yn(e,n),i&4&&n0(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=AT.bind(null,n),VT(e,n))));break;case 22:if(i=n.memoizedState!==null||vn,!i){t=t!==null&&t.memoizedState!==null||ze,r=vn;var l=ze;vn=i,(ze=t)&&!l?Vn(e,n,(n.subtreeFlags&8772)!==0):Yn(e,n),vn=r,ze=l}break;case 30:break;default:Yn(e,n)}}function e0(e){var t=e.alternate;t!==null&&(e.alternate=null,e0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xf(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ee=null,ft=!1;function xn(e,t,n){for(n=n.child;n!==null;)t0(e,t,n),n=n.sibling}function t0(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(aa,n)}catch(l){}switch(n.tag){case 26:ze||tn(n,t),xn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ze||tn(n,t);var i=Ee,r=ft;fi(n.type)&&(Ee=n.stateNode,ft=!1),xn(e,t,n),Gl(n.stateNode),Ee=i,ft=r;break;case 5:ze||tn(n,t);case 6:if(i=Ee,r=ft,Ee=null,xn(e,t,n),Ee=i,ft=r,Ee!==null)if(ft)try{(Ee.nodeType===9?Ee.body:Ee.nodeName==="HTML"?Ee.ownerDocument.body:Ee).removeChild(n.stateNode)}catch(l){ge(n,t,l)}else try{Ee.removeChild(n.stateNode)}catch(l){ge(n,t,l)}break;case 18:Ee!==null&&(ft?(e=Ee,Pm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ra(e)):Pm(Ee,n.stateNode));break;case 4:i=Ee,r=ft,Ee=n.stateNode.containerInfo,ft=!0,xn(e,t,n),Ee=i,ft=r;break;case 0:case 11:case 14:case 15:ze||ui(2,n,t),ze||ui(4,n,t),xn(e,t,n);break;case 1:ze||(tn(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Jy(n,t,i)),xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:ze=(i=ze)||n.memoizedState!==null,xn(e,t,n),ze=i;break;default:xn(e,t,n)}}function n0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ra(e)}catch(n){ge(t,t.return,n)}}function bT(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Lm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Lm),t;default:throw Error(C(435,e.tag))}}function fc(e,t){var n=bT(e);t.forEach(function(i){var r=_T.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}function vt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],l=e,a=t,o=a;e:for(;o!==null;){switch(o.tag){case 27:if(fi(o.type)){Ee=o.stateNode,ft=!1;break e}break;case 5:Ee=o.stateNode,ft=!1;break e;case 3:case 4:Ee=o.stateNode.containerInfo,ft=!0;break e}o=o.return}if(Ee===null)throw Error(C(160));t0(l,a,r),Ee=null,ft=!1,l=r.alternate,l!==null&&(l.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)i0(t,e),t=t.sibling}var Zt=null;function i0(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),St(e),i&4&&(ui(3,e,e.return),ya(3,e),ui(5,e,e.return));break;case 1:vt(t,e),St(e),i&512&&(ze||n===null||tn(n,n.return)),i&64&&vn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=Zt;if(vt(t,e),St(e),i&512&&(ze||n===null||tn(n,n.return)),i&4){var l=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":l=r.getElementsByTagName("title")[0],(!l||l[sa]||l[tt]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=r.createElement(i),r.head.insertBefore(l,r.querySelector("head > title"))),Pe(l,i,n),l[tt]=e,je(l),i=l;break e;case"link":var a=tg("link","href",r).get(i+(n.href||""));if(a){for(var o=0;o<a.length;o++)if(l=a[o],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(o,1);break t}}l=r.createElement(i),Pe(l,i,n),r.head.appendChild(l);break;case"meta":if(a=tg("meta","content",r).get(i+(n.content||""))){for(o=0;o<a.length;o++)if(l=a[o],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(o,1);break t}}l=r.createElement(i),Pe(l,i,n),r.head.appendChild(l);break;default:throw Error(C(468,i))}l[tt]=e,je(l),i=l}e.stateNode=i}else ng(r,e.type,e.stateNode);else e.stateNode=eg(r,i,e.memoizedProps);else l!==i?(l===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):l.count--,i===null?ng(r,e.type,e.stateNode):eg(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&uc(e,e.memoizedProps,n.memoizedProps)}break;case 27:vt(t,e),St(e),i&512&&(ze||n===null||tn(n,n.return)),n!==null&&i&4&&uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vt(t,e),St(e),i&512&&(ze||n===null||tn(n,n.return)),e.flags&32){r=e.stateNode;try{Br(r,"")}catch(f){ge(e,e.return,f)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,uc(e,r,n!==null?n.memoizedProps:r)),i&1024&&(cc=!0);break;case 6:if(vt(t,e),St(e),i&4){if(e.stateNode===null)throw Error(C(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(f){ge(e,e.return,f)}}break;case 3:if(Do=null,r=Zt,Zt=au(t.containerInfo),vt(t,e),Zt=r,St(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{ra(t.containerInfo)}catch(f){ge(e,e.return,f)}cc&&(cc=!1,r0(e));break;case 4:i=Zt,Zt=au(e.stateNode.containerInfo),vt(t,e),St(e),Zt=i;break;case 12:vt(t,e),St(e);break;case 13:vt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Wf=rn()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,fc(e,i)));break;case 22:r=e.memoizedState!==null;var u=n!==null&&n.memoizedState!==null,c=vn,s=ze;if(vn=c||r,ze=s||u,vt(t,e),ze=s,vn=c,St(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||u||vn||ze||_i(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){u=n=t;try{if(l=u.stateNode,r)a=l.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{o=u.stateNode;var p=u.memoizedProps.style,d=p!=null&&p.hasOwnProperty("display")?p.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(f){ge(u,u.return,f)}}}else if(t.tag===6){if(n===null){u=t;try{u.stateNode.nodeValue=r?"":u.memoizedProps}catch(f){ge(u,u.return,f)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,fc(e,n))));break;case 19:vt(t,e),St(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,fc(e,i)));break;case 30:break;case 21:break;default:vt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Fy(i)){n=i;break}i=i.return}if(n==null)throw Error(C(160));switch(n.tag){case 27:var r=n.stateNode,l=sc(e);$o(e,l,r);break;case 5:var a=n.stateNode;n.flags&32&&(Br(a,""),n.flags&=-33);var o=sc(e);$o(e,o,a);break;case 3:case 4:var u=n.stateNode.containerInfo,c=sc(e);Pc(e,c,u);break;default:throw Error(C(161))}}catch(s){ge(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function r0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;r0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$y(e,t.alternate,t),t=t.sibling}function _i(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ui(4,t,t.return),_i(t);break;case 1:tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Jy(t,t.return,n),_i(t);break;case 27:Gl(t.stateNode);case 26:case 5:tn(t,t.return),_i(t);break;case 22:t.memoizedState===null&&_i(t);break;case 30:_i(t);break;default:_i(t)}e=e.sibling}}function Vn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,l=t,a=l.flags;switch(l.tag){case 0:case 11:case 15:Vn(r,l,n),ya(4,l);break;case 1:if(Vn(r,l,n),i=l,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){ge(i,i.return,c)}if(i=l,r=i.updateQueue,r!==null){var o=i.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)$g(u[r],o)}catch(c){ge(i,i.return,c)}}n&&a&64&&Iy(l),jl(l,l.return);break;case 27:Wy(l);case 26:case 5:Vn(r,l,n),n&&i===null&&a&4&&Py(l),jl(l,l.return);break;case 12:Vn(r,l,n);break;case 13:Vn(r,l,n),n&&a&4&&n0(r,l);break;case 22:l.memoizedState===null&&Vn(r,l,n),jl(l,l.return);break;case 30:break;default:Vn(r,l,n)}t=t.sibling}}function If(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&pa(n))}function Jf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e))}function $t(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)l0(e,t,n,i),t=t.sibling}function l0(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,n,i),r&2048&&ya(9,t);break;case 1:$t(e,t,n,i);break;case 3:$t(e,t,n,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e)));break;case 12:if(r&2048){$t(e,t,n,i),e=t.stateNode;try{var l=t.memoizedProps,a=l.id,o=l.onPostCommit;typeof o=="function"&&o(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(u){ge(t,t.return,u)}}else $t(e,t,n,i);break;case 13:$t(e,t,n,i);break;case 23:break;case 22:l=t.stateNode,a=t.alternate,t.memoizedState!==null?l._visibility&2?$t(e,t,n,i):Yl(e,t):l._visibility&2?$t(e,t,n,i):(l._visibility|=2,pr(e,t,n,i,(t.subtreeFlags&10256)!==0)),r&2048&&If(a,t);break;case 24:$t(e,t,n,i),r&2048&&Jf(t.alternate,t);break;default:$t(e,t,n,i)}}function pr(e,t,n,i,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var l=e,a=t,o=n,u=i,c=a.flags;switch(a.tag){case 0:case 11:case 15:pr(l,a,o,u,r),ya(8,a);break;case 23:break;case 22:var s=a.stateNode;a.memoizedState!==null?s._visibility&2?pr(l,a,o,u,r):Yl(l,a):(s._visibility|=2,pr(l,a,o,u,r)),r&&c&2048&&If(a.alternate,a);break;case 24:pr(l,a,o,u,r),r&&c&2048&&Jf(a.alternate,a);break;default:pr(l,a,o,u,r)}t=t.sibling}}function Yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,r=i.flags;switch(i.tag){case 22:Yl(n,i),r&2048&&If(i.alternate,i);break;case 24:Yl(n,i),r&2048&&Jf(i.alternate,i);break;default:Yl(n,i)}t=t.sibling}}var Ol=8192;function cr(e){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)a0(e),e=e.sibling}function a0(e){switch(e.tag){case 26:cr(e),e.flags&Ol&&e.memoizedState!==null&&tw(Zt,e.memoizedState,e.memoizedProps);break;case 5:cr(e);break;case 3:case 4:var t=Zt;Zt=au(e.stateNode.containerInfo),cr(e),Zt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ol,Ol=16777216,cr(e),Ol=t):cr(e));break;default:cr(e)}}function o0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function wl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];qe=i,s0(i,e)}o0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)u0(e),e=e.sibling}function u0(e){switch(e.tag){case 0:case 11:case 15:wl(e),e.flags&2048&&ui(9,e,e.return);break;case 3:wl(e);break;case 12:wl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,No(e)):wl(e);break;default:wl(e)}}function No(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];qe=i,s0(i,e)}o0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ui(8,t,t.return),No(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,No(t));break;default:No(t)}e=e.sibling}}function s0(e,t){for(;qe!==null;){var n=qe;switch(n.tag){case 0:case 11:case 15:ui(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:pa(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,qe=i;else e:for(n=e;qe!==null;){i=qe;var r=i.sibling,l=i.return;if(e0(i),i===n){qe=null;break e}if(r!==null){r.return=l,qe=r;break e}qe=l}}}var xT={getCacheForType:function(e){var t=nt(Me),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},vT=typeof WeakMap=="function"?WeakMap:Map,ue=0,ye=null,W=null,te=0,oe=0,Et=null,Fn=!1,Jr=!1,Pf=!1,Nn=0,Ae=0,si=0,Di=0,Ff=0,qt=0,Vr=0,Vl=null,dt=null,Fc=!1,Wf=0,eu=1/0,tu=null,ni=null,Je=0,ii=null,Xr=null,Mr=0,Wc=0,$c=null,c0=null,Xl=0,ef=null;function At(){if((ue&2)!==0&&te!==0)return te&-te;if(Y.T!==null){var e=Hr;return e!==0?e:ed()}return Sg()}function f0(){qt===0&&(qt=(te&536870912)===0||re?yg():536870912);var e=jt.current;return e!==null&&(e.flags|=32),qt}function _t(e,t,n){(e===ye&&(oe===2||oe===9)||e.cancelPendingCommit!==null)&&(Gr(e,0),Wn(e,te,qt,!1)),ua(e,n),((ue&2)===0||e!==ye)&&(e===ye&&((ue&2)===0&&(Di|=n),Ae===4&&Wn(e,te,qt,!1)),on(e))}function d0(e,t,n){if((ue&6)!==0)throw Error(C(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||oa(e,t),r=i?TT(e,t):dc(e,t,!0),l=i;do{if(r===0){Jr&&!i&&Wn(e,t,0,!1);break}else{if(n=e.current.alternate,l&&!ST(n)){r=dc(e,t,!1),l=!1;continue}if(r===2){if(l=t,e.errorRecoveryDisabledLanes&l)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var o=e;r=Vl;var u=o.current.memoizedState.isDehydrated;if(u&&(Gr(o,a).flags|=256),a=dc(o,a,!1),a!==2){if(Pf&&!u){o.errorRecoveryDisabledLanes|=l,Di|=l,r=4;break e}l=dt,dt=r,l!==null&&(dt===null?dt=l:dt.push.apply(dt,l))}r=a}if(l=!1,r!==2)continue}}if(r===1){Gr(e,0),Wn(e,t,0,!0);break}e:{switch(i=e,l=r,l){case 0:case 1:throw Error(C(345));case 4:if((t&4194048)!==t)break;case 6:Wn(i,t,qt,!Fn);break e;case 2:dt=null;break;case 3:case 5:break;default:throw Error(C(329))}if((t&62914560)===t&&(r=Wf+300-rn(),10<r)){if(Wn(i,t,qt,!Fn),fu(i,0,!0)!==0)break e;i.timeoutHandle=N0(Bm.bind(null,i,n,dt,tu,Fc,t,qt,Di,Vr,Fn,l,2,-0,0),r);break e}Bm(i,n,dt,tu,Fc,t,qt,Di,Vr,Fn,l,0,-0,0)}}break}while(!0);on(e)}function Bm(e,t,n,i,r,l,a,o,u,c,s,p,d,f){if(e.timeoutHandle=-1,p=t.subtreeFlags,(p&8192||(p&16785408)===16785408)&&(ea={stylesheets:null,count:0,unsuspend:ew},a0(t),p=nw(),p!==null)){e.cancelPendingCommit=p(qm.bind(null,e,t,l,n,i,r,a,o,u,s,1,d,f)),Wn(e,l,a,!c);return}qm(e,t,l,n,i,r,a,o,u)}function ST(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],l=r.getSnapshot;r=r.value;try{if(!Ct(l(),r))return!1}catch(a){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 Wn(e,t,n,i){t&=~Ff,t&=~Di,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var l=31-kt(r),a=1<<l;i[l]=-1,r&=~a}n!==0&&xg(e,n,t)}function Su(){return(ue&6)===0?(ba(0,!1),!1):!0}function $f(){if(W!==null){if(oe===0)var e=W.return;else e=W,wn=Vi=null,qf(e),Dr=null,Fl=0,e=W;for(;e!==null;)Ky(e.alternate,e),e=e.return;W=null}}function Gr(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,BT(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),$f(),ye=e,W=n=An(e.current,null),te=t,oe=0,Et=null,Fn=!1,Jr=oa(e,t),Pf=!1,Vr=qt=Ff=Di=si=Ae=0,dt=Vl=null,Fc=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-kt(i),l=1<<r;t|=e[r],i&=~l}return Nn=t,mu(),n}function p0(e,t){J=null,Y.H=Io,t===ha||t===yu?(t=mm(),oe=3):t===Fg?(t=mm(),oe=4):oe=t===Yy?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,W===null&&(Ae=1,Fo(e,Ht(t,e.current)))}function h0(){var e=Y.H;return Y.H=Io,e===null?Io:e}function m0(){var e=Y.A;return Y.A=xT,e}function tf(){Ae=4,Fn||(te&4194048)!==te&&jt.current!==null||(Jr=!0),(si&134217727)===0&&(Di&134217727)===0||ye===null||Wn(ye,te,qt,!1)}function dc(e,t,n){var i=ue;ue|=2;var r=h0(),l=m0();(ye!==e||te!==t)&&(tu=null,Gr(e,t)),t=!1;var a=Ae;e:do try{if(oe!==0&&W!==null){var o=W,u=Et;switch(oe){case 8:$f(),a=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(t=!0);var c=oe;if(oe=0,Et=null,Ar(e,o,u,c),n&&Jr){a=0;break e}break;default:c=oe,oe=0,Et=null,Ar(e,o,u,c)}}ET(),a=Ae;break}catch(s){p0(e,s)}while(!0);return t&&e.shellSuspendCounter++,wn=Vi=null,ue=i,Y.H=r,Y.A=l,W===null&&(ye=null,te=0,mu()),a}function ET(){for(;W!==null;)g0(W)}function TT(e,t){var n=ue;ue|=2;var i=h0(),r=m0();ye!==e||te!==t?(tu=null,eu=rn()+500,Gr(e,t)):Jr=oa(e,t);e:do try{if(oe!==0&&W!==null){t=W;var l=Et;t:switch(oe){case 1:oe=0,Et=null,Ar(e,t,l,1);break;case 2:case 9:if(hm(l)){oe=0,Et=null,Hm(t);break}t=function(){oe!==2&&oe!==9||ye!==e||(oe=7),on(e)},l.then(t,t);break e;case 3:oe=7;break e;case 4:oe=5;break e;case 7:hm(l)?(oe=0,Et=null,Hm(t)):(oe=0,Et=null,Ar(e,t,l,7));break;case 5:var a=null;switch(W.tag){case 26:a=W.memoizedState;case 5:case 27:var o=W;if(!a||U0(a)){oe=0,Et=null;var u=o.sibling;if(u!==null)W=u;else{var c=o.return;c!==null?(W=c,Eu(c)):W=null}break t}}oe=0,Et=null,Ar(e,t,l,5);break;case 6:oe=0,Et=null,Ar(e,t,l,6);break;case 8:$f(),Ae=6;break e;default:throw Error(C(462))}}wT();break}catch(s){p0(e,s)}while(!0);return wn=Vi=null,Y.H=i,Y.A=r,ue=n,W!==null?0:(ye=null,te=0,mu(),Ae)}function wT(){for(;W!==null&&!ZE();)g0(W)}function g0(e){var t=Zy(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?Eu(e):W=t}function Hm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Nm(n,t,t.pendingProps,t.type,void 0,te);break;case 11:t=Nm(n,t,t.pendingProps,t.type.render,t.ref,te);break;case 5:qf(t);default:Ky(n,t),t=W=Kg(t,Nn),t=Zy(n,t,Nn)}e.memoizedProps=e.pendingProps,t===null?Eu(e):W=t}function Ar(e,t,n,i){wn=Vi=null,qf(t),Dr=null,Fl=0;var r=t.return;try{if(pT(e,r,t,n,te)){Ae=1,Fo(e,Ht(n,e.current)),W=null;return}}catch(l){if(r!==null)throw W=r,l;Ae=1,Fo(e,Ht(n,e.current)),W=null;return}t.flags&32768?(re||i===1?e=!0:Jr||(te&536870912)!==0?e=!1:(Fn=e=!0,(i===2||i===9||i===3||i===6)&&(i=jt.current,i!==null&&i.tag===13&&(i.flags|=16384))),y0(t,e)):Eu(t)}function Eu(e){var t=e;do{if((t.flags&32768)!==0){y0(t,Fn);return}e=t.return;var n=mT(t.alternate,t,Nn);if(n!==null){W=n;return}if(t=t.sibling,t!==null){W=t;return}W=t=e}while(t!==null);Ae===0&&(Ae=5)}function y0(e,t){do{var n=gT(e.alternate,e);if(n!==null){n.flags&=32767,W=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){W=e;return}W=e=n}while(e!==null);Ae=6,W=null}function qm(e,t,n,i,r,l,a,o,u){e.cancelPendingCommit=null;do Tu();while(Je!==0);if((ue&6)!==0)throw Error(C(327));if(t!==null){if(t===e.current)throw Error(C(177));if(l=t.lanes|t.childLanes,l|=Af,n2(e,n,l,a,o,u),e===ye&&(W=ye=null,te=0),Xr=t,ii=e,Mr=n,Wc=l,$c=r,c0=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,CT(Ho,function(){return E0(!0),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=Y.T,Y.T=null,r=le.p,le.p=2,a=ue,ue|=4;try{yT(e,t,n)}finally{ue=a,le.p=r,Y.T=i}}Je=1,b0(),x0(),v0()}}function b0(){if(Je===1){Je=0;var e=ii,t=Xr,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=Y.T,Y.T=null;var i=le.p;le.p=2;var r=ue;ue|=4;try{i0(t,e);var l=af,a=qg(e.containerInfo),o=l.focusedElem,u=l.selectionRange;if(a!==o&&o&&o.ownerDocument&&Hg(o.ownerDocument.documentElement,o)){if(u!==null&&kf(o)){var c=u.start,s=u.end;if(s===void 0&&(s=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(s,o.value.length);else{var p=o.ownerDocument||document,d=p&&p.defaultView||window;if(d.getSelection){var f=d.getSelection(),w=o.textContent.length,E=Math.min(u.start,w),A=u.end===void 0?E:Math.min(u.end,w);!f.extend&&E>A&&(a=A,A=E,E=a);var h=am(o,E),g=am(o,A);if(h&&g&&(f.rangeCount!==1||f.anchorNode!==h.node||f.anchorOffset!==h.offset||f.focusNode!==g.node||f.focusOffset!==g.offset)){var m=p.createRange();m.setStart(h.node,h.offset),f.removeAllRanges(),E>A?(f.addRange(m),f.extend(g.node,g.offset)):(m.setEnd(g.node,g.offset),f.addRange(m))}}}}for(p=[],f=o;f=f.parentNode;)f.nodeType===1&&p.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<p.length;o++){var S=p[o];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}su=!!lf,af=lf=null}finally{ue=r,le.p=i,Y.T=n}}e.current=t,Je=2}}function x0(){if(Je===2){Je=0;var e=ii,t=Xr,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Y.T,Y.T=null;var i=le.p;le.p=2;var r=ue;ue|=4;try{$y(e,t.alternate,t)}finally{ue=r,le.p=i,Y.T=n}}Je=3}}function v0(){if(Je===4||Je===3){Je=0,KE();var e=ii,t=Xr,n=Mr,i=c0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Je=5:(Je=0,Xr=ii=null,S0(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(ni=null),bf(n),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(aa,t,void 0,(t.current.flags&128)===128)}catch(u){}if(i!==null){t=Y.T,r=le.p,le.p=2,Y.T=null;try{for(var l=e.onRecoverableError,a=0;a<i.length;a++){var o=i[a];l(o.value,{componentStack:o.stack})}}finally{Y.T=t,le.p=r}}(Mr&3)!==0&&Tu(),on(e),r=e.pendingLanes,(n&4194090)!==0&&(r&42)!==0?e===ef?Xl++:(Xl=0,ef=e):Xl=0,ba(0,!1)}}function S0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pa(t)))}function Tu(e){return b0(),x0(),v0(),E0(e)}function E0(){if(Je!==5)return!1;var e=ii,t=Wc;Wc=0;var n=bf(Mr),i=Y.T,r=le.p;try{le.p=32>n?32:n,Y.T=null,n=$c,$c=null;var l=ii,a=Mr;if(Je=0,Xr=ii=null,Mr=0,(ue&6)!==0)throw Error(C(331));var o=ue;if(ue|=4,u0(l.current),l0(l,l.current,a,n),ue=o,ba(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(aa,l)}catch(u){}return!0}finally{le.p=r,Y.T=i,S0(e,t)}}function jm(e,t,n){t=Ht(n,t),t=Kc(e.stateNode,t,2),e=ti(e,t,2),e!==null&&(ua(e,2),on(e))}function ge(e,t,n){if(e.tag===3)jm(e,e,n);else for(;t!==null;){if(t.tag===3){jm(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ni===null||!ni.has(i))){e=Ht(n,e),n=qy(2),i=ti(t,n,2),i!==null&&(jy(n,i,t,e),ua(i,2),on(i));break}}t=t.return}}function pc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new vT;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(Pf=!0,r.add(n),e=kT.bind(null,e,t,n),t.then(e,e))}function kT(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ye===e&&(te&n)===n&&(Ae===4||Ae===3&&(te&62914560)===te&&300>rn()-Wf?(ue&2)===0&&Gr(e,0):Ff|=n,Vr===te&&(Vr=0)),on(e)}function T0(e,t){t===0&&(t=bg()),e=Ir(e,t),e!==null&&(ua(e,t),on(e))}function AT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T0(e,n)}function _T(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(C(314))}i!==null&&i.delete(t),T0(e,n)}function CT(e,t){return gf(e,t)}var nu=null,hr=null,nf=!1,iu=!1,hc=!1,Mi=0;function on(e){e!==hr&&e.next===null&&(hr===null?nu=hr=e:hr=hr.next=e),iu=!0,nf||(nf=!0,OT())}function ba(e,t){if(!hc&&iu){hc=!0;do for(var n=!1,i=nu;i!==null;){if(!t)if(e!==0){var r=i.pendingLanes;if(r===0)var l=0;else{var a=i.suspendedLanes,o=i.pingedLanes;l=(1<<31-kt(42|e)+1)-1,l&=r&~(a&~o),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,Ym(i,l))}else l=te,l=fu(i,i===ye?l:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(l&3)===0||oa(i,l)||(n=!0,Ym(i,l));i=i.next}while(n);hc=!1}}function zT(){w0()}function w0(){iu=nf=!1;var e=0;Mi!==0&&(LT()&&(e=Mi),Mi=0);for(var t=rn(),n=null,i=nu;i!==null;){var r=i.next,l=k0(i,t);l===0?(i.next=null,n===null?nu=r:n.next=r,r===null&&(hr=n)):(n=i,(e!==0||(l&3)!==0)&&(iu=!0)),i=r}ba(e,!1)}function k0(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var a=31-kt(l),o=1<<a,u=r[a];u===-1?((o&n)===0||(o&i)!==0)&&(r[a]=t2(o,t)):u<=t&&(e.expiredLanes|=o),l&=~o}if(t=ye,n=te,n=fu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(oe===2||oe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ys(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||oa(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Ys(i),bf(n)){case 2:case 8:n=mg;break;case 32:n=Ho;break;case 268435456:n=gg;break;default:n=Ho}return i=A0.bind(null,e),n=gf(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Ys(i),e.callbackPriority=2,e.callbackNode=null,2}function A0(e,t){if(Je!==0&&Je!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Tu(!0)&&e.callbackNode!==n)return null;var i=te;return i=fu(e,e===ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(d0(e,i,t),k0(e,rn()),e.callbackNode!=null&&e.callbackNode===n?A0.bind(null,e):null)}function Ym(e,t){if(Tu())return null;d0(e,t,!0)}function OT(){HT(function(){(ue&6)!==0?gf(hg,zT):w0()})}function ed(){return Mi===0&&(Mi=yg()),Mi}function Vm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:To(""+e)}function Xm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function NT(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var l=Vm((r[pt]||null).action),a=i.submitter;a&&(t=(t=a[pt]||null)?Vm(t.formAction):a.getAttribute("formAction"),t!==null&&(l=t,a=null));var o=new du("action","action",null,i,r);e.push({event:o,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Mi!==0){var u=a?Xm(r,a):new FormData(r);Qc(n,{pending:!0,data:u,method:r.method,action:l},null,u)}}else typeof l=="function"&&(o.preventDefault(),u=a?Xm(r,a):new FormData(r),Qc(n,{pending:!0,data:u,method:r.method,action:l},l,u))},currentTarget:r}]})}}for(yo=0;yo<Dc.length;yo++)bo=Dc[yo],Gm=bo.toLowerCase(),Qm=bo[0].toUpperCase()+bo.slice(1),It(Gm,"on"+Qm);var bo,Gm,Qm,yo;It(Yg,"onAnimationEnd");It(Vg,"onAnimationIteration");It(Xg,"onAnimationStart");It("dblclick","onDoubleClick");It("focusin","onFocus");It("focusout","onBlur");It(P2,"onTransitionRun");It(F2,"onTransitionStart");It(W2,"onTransitionCancel");It(Gg,"onTransitionEnd");Lr("onMouseEnter",["mouseout","mouseover"]);Lr("onMouseLeave",["mouseout","mouseover"]);Lr("onPointerEnter",["pointerout","pointerover"]);Lr("onPointerLeave",["pointerout","pointerover"]);qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qi("onBeforeInput",["compositionend","keypress","textInput","paste"]);qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wl="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(" "),RT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wl));function _0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var l=void 0;if(t)for(var a=i.length-1;0<=a;a--){var o=i[a],u=o.instance,c=o.currentTarget;if(o=o.listener,u!==l&&r.isPropagationStopped())break e;l=o,r.currentTarget=c;try{l(r)}catch(s){Po(s)}r.currentTarget=null,l=u}else for(a=0;a<i.length;a++){if(o=i[a],u=o.instance,c=o.currentTarget,o=o.listener,u!==l&&r.isPropagationStopped())break e;l=o,r.currentTarget=c;try{l(r)}catch(s){Po(s)}r.currentTarget=null,l=u}}}}function F(e,t){var n=t[Ac];n===void 0&&(n=t[Ac]=new Set);var i=e+"__bubble";n.has(i)||(C0(t,e,2,!1),n.add(i))}function mc(e,t,n){var i=0;t&&(i|=4),C0(n,e,i,t)}var xo="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[xo]){e[xo]=!0,Eg.forEach(function(n){n!=="selectionchange"&&(RT.has(n)||mc(n,!1,e),mc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xo]||(t[xo]=!0,mc("selectionchange",!1,t))}}function C0(e,t,n,i){switch(j0(t)){case 2:var r=lw;break;case 8:r=aw;break;default:r=ld}n=r.bind(null,t,n,e),r=void 0,!Oc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function gc(e,t,n,i,r){var l=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var o=i.stateNode.containerInfo;if(o===r)break;if(a===4)for(a=i.return;a!==null;){var u=a.tag;if((u===3||u===4)&&a.stateNode.containerInfo===r)return;a=a.return}for(;o!==null;){if(a=yr(o),a===null)return;if(u=a.tag,u===5||u===6||u===26||u===27){i=l=a;continue e}o=o.parentNode}}i=i.return}Og(function(){var c=l,s=Sf(n),p=[];e:{var d=Qg.get(e);if(d!==void 0){var f=du,w=e;switch(e){case"keypress":if(ko(n)===0)break e;case"keydown":case"keyup":f=C2;break;case"focusin":w="focus",f=Js;break;case"focusout":w="blur",f=Js;break;case"beforeblur":case"afterblur":f=Js;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":f=Fh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=g2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=N2;break;case Yg:case Vg:case Xg:f=x2;break;case Gg:f=D2;break;case"scroll":case"scrollend":f=h2;break;case"wheel":f=U2;break;case"copy":case"cut":case"paste":f=S2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=$h;break;case"toggle":case"beforetoggle":f=B2}var E=(t&4)!==0,A=!E&&(e==="scroll"||e==="scrollend"),h=E?d!==null?d+"Capture":null:d;E=[];for(var g=c,m;g!==null;){var S=g;if(m=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||m===null||h===null||(S=Zl(g,h),S!=null&&E.push($l(g,S,m))),A)break;g=g.return}0<E.length&&(d=new f(d,w,null,n,s),p.push({event:d,listeners:E}))}}if((t&7)===0){e:{if(d=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",d&&n!==zc&&(w=n.relatedTarget||n.fromElement)&&(yr(w)||w[Zr]))break e;if((f||d)&&(d=s.window===s?s:(d=s.ownerDocument)?d.defaultView||d.parentWindow:window,f?(w=n.relatedTarget||n.toElement,f=c,w=w?yr(w):null,w!==null&&(A=la(w),E=w.tag,w!==A||E!==5&&E!==27&&E!==6)&&(w=null)):(f=null,w=c),f!==w)){if(E=Fh,S="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(E=$h,S="onPointerLeave",h="onPointerEnter",g="pointer"),A=f==null?d:zl(f),m=w==null?d:zl(w),d=new E(S,g+"leave",f,n,s),d.target=A,d.relatedTarget=m,S=null,yr(s)===c&&(E=new E(h,g+"enter",w,n,s),E.target=m,E.relatedTarget=A,S=E),A=S,f&&w)t:{for(E=f,h=w,g=0,m=E;m;m=fr(m))g++;for(m=0,S=h;S;S=fr(S))m++;for(;0<g-m;)E=fr(E),g--;for(;0<m-g;)h=fr(h),m--;for(;g--;){if(E===h||h!==null&&E===h.alternate)break t;E=fr(E),h=fr(h)}E=null}else E=null;f!==null&&Zm(p,d,f,E,!1),w!==null&&A!==null&&Zm(p,A,w,E,!0)}}e:{if(d=c?zl(c):window,f=d.nodeName&&d.nodeName.toLowerCase(),f==="select"||f==="input"&&d.type==="file")var T=im;else if(nm(d))if(Lg)T=K2;else{T=Q2;var v=G2}else f=d.nodeName,!f||f.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?c&&vf(c.elementType)&&(T=im):T=Z2;if(T&&(T=T(e,c))){Ug(p,T,n,s);break e}v&&v(e,d,c),e==="focusout"&&c&&d.type==="number"&&c.memoizedProps.value!=null&&Cc(d,"number",d.value)}switch(v=c?zl(c):window,e){case"focusin":(nm(v)||v.contentEditable==="true")&&(vr=v,Nc=c,Dl=null);break;case"focusout":Dl=Nc=vr=null;break;case"mousedown":Rc=!0;break;case"contextmenu":case"mouseup":case"dragend":Rc=!1,om(p,n,s);break;case"selectionchange":if(J2)break;case"keydown":case"keyup":om(p,n,s)}var _;if(wf)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else xr?Dg(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(Rg&&n.locale!=="ko"&&(xr||z!=="onCompositionStart"?z==="onCompositionEnd"&&xr&&(_=Ng()):(Pn=s,Ef="value"in Pn?Pn.value:Pn.textContent,xr=!0)),v=ru(c,z),0<v.length&&(z=new Wh(z,e,null,n,s),p.push({event:z,listeners:v}),_?z.data=_:(_=Mg(n),_!==null&&(z.data=_)))),(_=q2?j2(e,n):Y2(e,n))&&(z=ru(c,"onBeforeInput"),0<z.length&&(v=new Wh("onBeforeInput","beforeinput",null,n,s),p.push({event:v,listeners:z}),v.data=_)),NT(p,e,c,n,s)}_0(p,t)})}function $l(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ru(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,l=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||l===null||(r=Zl(e,n),r!=null&&i.unshift($l(e,r,l)),r=Zl(e,t),r!=null&&i.push($l(e,r,l))),e.tag===3)return i;e=e.return}return[]}function fr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zm(e,t,n,i,r){for(var l=t._reactName,a=[];n!==null&&n!==i;){var o=n,u=o.alternate,c=o.stateNode;if(o=o.tag,u!==null&&u===i)break;o!==5&&o!==26&&o!==27||c===null||(u=c,r?(c=Zl(n,l),c!=null&&a.unshift($l(n,c,u))):r||(c=Zl(n,l),c!=null&&a.push($l(n,c,u)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var DT=/\r\n?/g,MT=/\u0000|\uFFFD/g;function Km(e){return(typeof e=="string"?e:""+e).replace(DT,`
|
|
9
|
-
`).replace(MT,"")}function z0(e,t){return t=Km(t),Km(e)===t}function wu(){}function pe(e,t,n,i,r,l){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Br(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Br(e,""+i);break;case"className":oo(e,"class",i);break;case"tabIndex":oo(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":oo(e,n,i);break;case"style":zg(e,i,l);break;case"data":if(t!=="object"){oo(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=To(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof l=="function"&&(n==="formAction"?(t!=="input"&&pe(e,t,"name",r.name,r,null),pe(e,t,"formEncType",r.formEncType,r,null),pe(e,t,"formMethod",r.formMethod,r,null),pe(e,t,"formTarget",r.formTarget,r,null)):(pe(e,t,"encType",r.encType,r,null),pe(e,t,"method",r.method,r,null),pe(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=To(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=wu);break;case"onScroll":i!=null&&F("scroll",e);break;case"onScrollEnd":i!=null&&F("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(C(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(C(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=To(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":F("beforetoggle",e),F("toggle",e),Eo(e,"popover",i);break;case"xlinkActuate":yn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":yn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":yn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":yn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":yn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":yn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":yn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":yn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":yn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Eo(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=d2.get(n)||n,Eo(e,n,i))}}function rf(e,t,n,i,r,l){switch(n){case"style":zg(e,i,l);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(C(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(C(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Br(e,i):(typeof i=="number"||typeof i=="bigint")&&Br(e,""+i);break;case"onScroll":i!=null&&F("scroll",e);break;case"onScrollEnd":i!=null&&F("scrollend",e);break;case"onClick":i!=null&&(e.onclick=wu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),l=e[pt]||null,l=l!=null?l[n]:null,typeof l=="function"&&e.removeEventListener(t,l,r),typeof i=="function")){typeof l!="function"&&l!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,r);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Eo(e,n,i)}}}function Pe(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":F("error",e),F("load",e);var i=!1,r=!1,l;for(l in n)if(n.hasOwnProperty(l)){var a=n[l];if(a!=null)switch(l){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(C(137,t));default:pe(e,t,l,a,n,null)}}r&&pe(e,t,"srcSet",n.srcSet,n,null),i&&pe(e,t,"src",n.src,n,null);return;case"input":F("invalid",e);var o=l=a=r=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var s=n[i];if(s!=null)switch(i){case"name":r=s;break;case"type":a=s;break;case"checked":u=s;break;case"defaultChecked":c=s;break;case"value":l=s;break;case"defaultValue":o=s;break;case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(C(137,t));break;default:pe(e,t,i,s,n,null)}}Ag(e,l,o,u,c,a,r,!1),qo(e);return;case"select":F("invalid",e),i=a=l=null;for(r in n)if(n.hasOwnProperty(r)&&(o=n[r],o!=null))switch(r){case"value":l=o;break;case"defaultValue":a=o;break;case"multiple":i=o;default:pe(e,t,r,o,n,null)}t=l,n=a,e.multiple=!!i,t!=null?Cr(e,!!i,t,!1):n!=null&&Cr(e,!!i,n,!0);return;case"textarea":F("invalid",e),l=r=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":r=o;break;case"children":l=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(C(91));break;default:pe(e,t,a,o,n,null)}Cg(e,i,r,l),qo(e);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:pe(e,t,u,i,n,null)}return;case"dialog":F("beforetoggle",e),F("toggle",e),F("cancel",e),F("close",e);break;case"iframe":case"object":F("load",e);break;case"video":case"audio":for(i=0;i<Wl.length;i++)F(Wl[i],e);break;case"image":F("error",e),F("load",e);break;case"details":F("toggle",e);break;case"embed":case"source":case"link":F("error",e),F("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(C(137,t));default:pe(e,t,c,i,n,null)}return;default:if(vf(t)){for(s in n)n.hasOwnProperty(s)&&(i=n[s],i!==void 0&&rf(e,t,s,i,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(i=n[o],i!=null&&pe(e,t,o,i,n,null))}function UT(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,l=null,a=null,o=null,u=null,c=null,s=null;for(f in n){var p=n[f];if(n.hasOwnProperty(f)&&p!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(f)||pe(e,t,f,null,i,p)}}for(var d in i){var f=i[d];if(p=n[d],i.hasOwnProperty(d)&&(f!=null||p!=null))switch(d){case"type":l=f;break;case"name":r=f;break;case"checked":c=f;break;case"defaultChecked":s=f;break;case"value":a=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(C(137,t));break;default:f!==p&&pe(e,t,d,f,i,p)}}_c(e,a,o,u,c,s,l,r);return;case"select":f=a=o=d=null;for(l in n)if(u=n[l],n.hasOwnProperty(l)&&u!=null)switch(l){case"value":break;case"multiple":f=u;default:i.hasOwnProperty(l)||pe(e,t,l,null,i,u)}for(r in i)if(l=i[r],u=n[r],i.hasOwnProperty(r)&&(l!=null||u!=null))switch(r){case"value":d=l;break;case"defaultValue":o=l;break;case"multiple":a=l;default:l!==u&&pe(e,t,r,l,i,u)}t=o,n=a,i=f,d!=null?Cr(e,!!n,d,!1):!!i!=!!n&&(t!=null?Cr(e,!!n,t,!0):Cr(e,!!n,n?[]:"",!1));return;case"textarea":f=d=null;for(o in n)if(r=n[o],n.hasOwnProperty(o)&&r!=null&&!i.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:pe(e,t,o,null,i,r)}for(a in i)if(r=i[a],l=n[a],i.hasOwnProperty(a)&&(r!=null||l!=null))switch(a){case"value":d=r;break;case"defaultValue":f=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(C(91));break;default:r!==l&&pe(e,t,a,r,i,l)}_g(e,d,f);return;case"option":for(var w in n)if(d=n[w],n.hasOwnProperty(w)&&d!=null&&!i.hasOwnProperty(w))switch(w){case"selected":e.selected=!1;break;default:pe(e,t,w,null,i,d)}for(u in i)if(d=i[u],f=n[u],i.hasOwnProperty(u)&&d!==f&&(d!=null||f!=null))switch(u){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:pe(e,t,u,d,i,f)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var E in n)d=n[E],n.hasOwnProperty(E)&&d!=null&&!i.hasOwnProperty(E)&&pe(e,t,E,null,i,d);for(c in i)if(d=i[c],f=n[c],i.hasOwnProperty(c)&&d!==f&&(d!=null||f!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(C(137,t));break;default:pe(e,t,c,d,i,f)}return;default:if(vf(t)){for(var A in n)d=n[A],n.hasOwnProperty(A)&&d!==void 0&&!i.hasOwnProperty(A)&&rf(e,t,A,void 0,i,d);for(s in i)d=i[s],f=n[s],!i.hasOwnProperty(s)||d===f||d===void 0&&f===void 0||rf(e,t,s,d,i,f);return}}for(var h in n)d=n[h],n.hasOwnProperty(h)&&d!=null&&!i.hasOwnProperty(h)&&pe(e,t,h,null,i,d);for(p in i)d=i[p],f=n[p],!i.hasOwnProperty(p)||d===f||d==null&&f==null||pe(e,t,p,d,i,f)}var lf=null,af=null;function lu(e){return e.nodeType===9?e:e.ownerDocument}function Im(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function O0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function of(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yc=null;function LT(){var e=window.event;return e&&e.type==="popstate"?e===yc?!1:(yc=e,!0):(yc=null,!1)}var N0=typeof setTimeout=="function"?setTimeout:void 0,BT=typeof clearTimeout=="function"?clearTimeout:void 0,Jm=typeof Promise=="function"?Promise:void 0,HT=typeof queueMicrotask=="function"?queueMicrotask:typeof Jm!="undefined"?function(e){return Jm.resolve(null).then(e).catch(qT)}:N0;function qT(e){setTimeout(function(){throw e})}function fi(e){return e==="head"}function Pm(e,t){var n=t,i=0,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(0<i&&8>i){n=i;var a=e.ownerDocument;if(n&1&&Gl(a.documentElement),n&2&&Gl(a.body),n&4)for(n=a.head,Gl(n),a=n.firstChild;a;){var o=a.nextSibling,u=a.nodeName;a[sa]||u==="SCRIPT"||u==="STYLE"||u==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=o}}if(r===0){e.removeChild(l),ra(t);return}r--}else n==="$"||n==="$?"||n==="$!"?r++:i=n.charCodeAt(0)-48;else i=0;n=l}while(n);ra(t)}function uf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":uf(n),xf(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function jT(e,t,n,i){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[sa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=Kt(e.nextSibling),e===null)break}return null}function YT(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Kt(e.nextSibling),e===null))return null;return e}function sf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function VT(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Kt(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==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var cf=null;function Fm(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}function R0(e,t,n){switch(t=lu(n),e){case"html":if(e=t.documentElement,!e)throw Error(C(452));return e;case"head":if(e=t.head,!e)throw Error(C(453));return e;case"body":if(e=t.body,!e)throw Error(C(454));return e;default:throw Error(C(451))}}function Gl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xf(e)}var Yt=new Map,Wm=new Set;function au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Rn=le.d;le.d={f:XT,r:GT,D:QT,C:ZT,L:KT,m:IT,X:PT,S:JT,M:FT};function XT(){var e=Rn.f(),t=Su();return e||t}function GT(e){var t=Kr(e);t!==null&&t.tag===5&&t.type==="form"?ky(t):Rn.r(e)}var Pr=typeof document=="undefined"?null:document;function D0(e,t,n){var i=Pr;if(i&&typeof t=="string"&&t){var r=Bt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Wm.has(r)||(Wm.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),Pe(t,"link",e),je(t),i.head.appendChild(t)))}}function QT(e){Rn.D(e),D0("dns-prefetch",e,null)}function ZT(e,t){Rn.C(e,t),D0("preconnect",e,t)}function KT(e,t,n){Rn.L(e,t,n);var i=Pr;if(i&&e&&t){var r='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Bt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Bt(n.imageSizes)+'"]')):r+='[href="'+Bt(e)+'"]';var l=r;switch(t){case"style":l=Qr(e);break;case"script":l=Fr(e)}Yt.has(l)||(e=xe({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Yt.set(l,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(xa(l))||t==="script"&&i.querySelector(va(l))||(t=i.createElement("link"),Pe(t,"link",e),je(t),i.head.appendChild(t)))}}function IT(e,t){Rn.m(e,t);var n=Pr;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Bt(i)+'"][href="'+Bt(e)+'"]',l=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Fr(e)}if(!Yt.has(l)&&(e=xe({rel:"modulepreload",href:e},t),Yt.set(l,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(va(l)))return}i=n.createElement("link"),Pe(i,"link",e),je(i),n.head.appendChild(i)}}}function JT(e,t,n){Rn.S(e,t,n);var i=Pr;if(i&&e){var r=_r(i).hoistableStyles,l=Qr(e);t=t||"default";var a=r.get(l);if(!a){var o={loading:0,preload:null};if(a=i.querySelector(xa(l)))o.loading=5;else{e=xe({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Yt.get(l))&&nd(e,n);var u=a=i.createElement("link");je(u),Pe(u,"link",e),u._p=new Promise(function(c,s){u.onload=c,u.onerror=s}),u.addEventListener("load",function(){o.loading|=1}),u.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Ro(a,t,i)}a={type:"stylesheet",instance:a,count:1,state:o},r.set(l,a)}}}function PT(e,t){Rn.X(e,t);var n=Pr;if(n&&e){var i=_r(n).hoistableScripts,r=Fr(e),l=i.get(r);l||(l=n.querySelector(va(r)),l||(e=xe({src:e,async:!0},t),(t=Yt.get(r))&&id(e,t),l=n.createElement("script"),je(l),Pe(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},i.set(r,l))}}function FT(e,t){Rn.M(e,t);var n=Pr;if(n&&e){var i=_r(n).hoistableScripts,r=Fr(e),l=i.get(r);l||(l=n.querySelector(va(r)),l||(e=xe({src:e,async:!0,type:"module"},t),(t=Yt.get(r))&&id(e,t),l=n.createElement("script"),je(l),Pe(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},i.set(r,l))}}function $m(e,t,n,i){var r=(r=$n.current)?au(r):null;if(!r)throw Error(C(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Qr(n.href),n=_r(r).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Qr(n.href);var l=_r(r).hoistableStyles,a=l.get(e);if(a||(r=r.ownerDocument||r,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,a),(l=r.querySelector(xa(e)))&&!l._p&&(a.instance=l,a.state.loading=5),Yt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Yt.set(e,n),l||WT(r,e,n,a.state))),t&&i===null)throw Error(C(528,""));return a}if(t&&i!==null)throw Error(C(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fr(n),n=_r(r).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(C(444,e))}}function Qr(e){return'href="'+Bt(e)+'"'}function xa(e){return'link[rel="stylesheet"]['+e+"]"}function M0(e){return xe({},e,{"data-precedence":e.precedence,precedence:null})}function WT(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Pe(t,"link",n),je(t),e.head.appendChild(t))}function Fr(e){return'[src="'+Bt(e)+'"]'}function va(e){return"script[async]"+e}function eg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Bt(n.href)+'"]');if(i)return t.instance=i,je(i),i;var r=xe({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),je(i),Pe(i,"style",r),Ro(i,n.precedence,e),t.instance=i;case"stylesheet":r=Qr(n.href);var l=e.querySelector(xa(r));if(l)return t.state.loading|=4,t.instance=l,je(l),l;i=M0(n),(r=Yt.get(r))&&nd(i,r),l=(e.ownerDocument||e).createElement("link"),je(l);var a=l;return a._p=new Promise(function(o,u){a.onload=o,a.onerror=u}),Pe(l,"link",i),t.state.loading|=4,Ro(l,n.precedence,e),t.instance=l;case"script":return l=Fr(n.src),(r=e.querySelector(va(l)))?(t.instance=r,je(r),r):(i=n,(r=Yt.get(l))&&(i=xe({},n),id(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),je(r),Pe(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(C(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ro(i,n.precedence,e));return t.instance}function Ro(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,l=r,a=0;a<i.length;a++){var o=i[a];if(o.dataset.precedence===t)l=o;else if(l!==r)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function nd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Do=null;function tg(e,t,n){if(Do===null){var i=new Map,r=Do=new Map;r.set(n,i)}else r=Do,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var l=n[r];if(!(l[sa]||l[tt]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var a=l.getAttribute(t)||"";a=e+a;var o=i.get(a);o?o.push(l):i.set(a,[l])}}return i}function ng(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function $T(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function U0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var ea=null;function ew(){}function tw(e,t,n){if(ea===null)throw Error(C(475));var i=ea;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var r=Qr(n.href),l=e.querySelector(xa(r));if(l){e=l._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=ou.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=l,je(l);return}l=e.ownerDocument||e,n=M0(n),(r=Yt.get(r))&&nd(n,r),l=l.createElement("link"),je(l);var a=l;a._p=new Promise(function(o,u){a.onload=o,a.onerror=u}),Pe(l,"link",n),t.instance=l}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(i.count++,t=ou.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function nw(){if(ea===null)throw Error(C(475));var e=ea;return e.stylesheets&&e.count===0&&ff(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&ff(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function ou(){if(this.count--,this.count===0){if(this.stylesheets)ff(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var uu=null;function ff(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uu=new Map,t.forEach(iw,e),uu=null,ou.call(e))}function iw(e,t){if(!(t.state.loading&4)){var n=uu.get(e);if(n)var i=n.get(null);else{n=new Map,uu.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<r.length;l++){var a=r[l];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),i=a)}i&&n.set(null,i)}r=t.instance,a=r.getAttribute("data-precedence"),l=n.get(a)||i,l===i&&n.set(null,r),n.set(a,r),this.count++,i=ou.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),l?l.parentNode.insertBefore(r,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var ta={$$typeof:Sn,Provider:null,Consumer:null,_currentValue:Ci,_currentValue2:Ci,_threadCount:0};function rw(e,t,n,i,r,l,a,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vs(0),this.hiddenUpdates=Vs(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=l,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function L0(e,t,n,i,r,l,a,o,u,c,s,p){return e=new rw(e,t,n,a,o,u,c,p),t=1,l===!0&&(t|=24),l=Tt(3,null,null,t),e.current=l,l.stateNode=e,t=Nf(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:i,isDehydrated:n,cache:t},Df(l),e}function B0(e){return e?(e=Tr,e):Tr}function H0(e,t,n,i,r,l){r=B0(r),i.context===null?i.context=r:i.pendingContext=r,i=ei(t),i.payload={element:n},l=l===void 0?null:l,l!==null&&(i.callback=l),n=ti(e,i,t),n!==null&&(_t(n,e,t),Ll(n,e,t))}function ig(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function rd(e,t){ig(e,t),(e=e.alternate)&&ig(e,t)}function q0(e){if(e.tag===13){var t=Ir(e,67108864);t!==null&&_t(t,e,67108864),rd(e,67108864)}}var su=!0;function lw(e,t,n,i){var r=Y.T;Y.T=null;var l=le.p;try{le.p=2,ld(e,t,n,i)}finally{le.p=l,Y.T=r}}function aw(e,t,n,i){var r=Y.T;Y.T=null;var l=le.p;try{le.p=8,ld(e,t,n,i)}finally{le.p=l,Y.T=r}}function ld(e,t,n,i){if(su){var r=df(i);if(r===null)gc(e,t,i,cu,n),rg(e,i);else if(uw(r,e,t,n,i))i.stopPropagation();else if(rg(e,i),t&4&&-1<ow.indexOf(e)){for(;r!==null;){var l=Kr(r);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var a=ki(l.pendingLanes);if(a!==0){var o=l;for(o.pendingLanes|=2,o.entangledLanes|=2;a;){var u=1<<31-kt(a);o.entanglements[1]|=u,a&=~u}on(l),(ue&6)===0&&(eu=rn()+500,ba(0,!1))}}break;case 13:o=Ir(l,2),o!==null&&_t(o,l,2),Su(),rd(l,2)}if(l=df(i),l===null&&gc(e,t,i,cu,n),l===r)break;r=l}r!==null&&i.stopPropagation()}else gc(e,t,i,null,n)}}function df(e){return e=Sf(e),ad(e)}var cu=null;function ad(e){if(cu=null,e=yr(e),e!==null){var t=la(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=cg(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 cu=e,null}function j0(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(IE()){case hg:return 2;case mg:return 8;case Ho:case JE:return 32;case gg:return 268435456;default:return 32}default:return 32}}var pf=!1,ri=null,li=null,ai=null,na=new Map,ia=new Map,In=[],ow="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".split(" ");function rg(e,t){switch(e){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":ai=null;break;case"pointerover":case"pointerout":na.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ia.delete(t.pointerId)}}function kl(e,t,n,i,r,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:l,targetContainers:[r]},t!==null&&(t=Kr(t),t!==null&&q0(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function uw(e,t,n,i,r){switch(t){case"focusin":return ri=kl(ri,e,t,n,i,r),!0;case"dragenter":return li=kl(li,e,t,n,i,r),!0;case"mouseover":return ai=kl(ai,e,t,n,i,r),!0;case"pointerover":var l=r.pointerId;return na.set(l,kl(na.get(l)||null,e,t,n,i,r)),!0;case"gotpointercapture":return l=r.pointerId,ia.set(l,kl(ia.get(l)||null,e,t,n,i,r)),!0}return!1}function Y0(e){var t=yr(e.target);if(t!==null){var n=la(t);if(n!==null){if(t=n.tag,t===13){if(t=cg(n),t!==null){e.blockedOn=t,i2(e.priority,function(){if(n.tag===13){var i=At();i=yf(i);var r=Ir(n,i);r!==null&&_t(r,n,i),rd(n,i)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=df(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);zc=i,n.target.dispatchEvent(i),zc=null}else return t=Kr(n),t!==null&&q0(t),e.blockedOn=n,!1;t.shift()}return!0}function lg(e,t,n){Mo(e)&&n.delete(t)}function sw(){pf=!1,ri!==null&&Mo(ri)&&(ri=null),li!==null&&Mo(li)&&(li=null),ai!==null&&Mo(ai)&&(ai=null),na.forEach(lg),ia.forEach(lg)}function vo(e,t){e.blockedOn===t&&(e.blockedOn=null,pf||(pf=!0,Le.unstable_scheduleCallback(Le.unstable_NormalPriority,sw)))}var So=null;function ag(e){So!==e&&(So=e,Le.unstable_scheduleCallback(Le.unstable_NormalPriority,function(){So===e&&(So=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(ad(i||n)===null)continue;break}var l=Kr(n);l!==null&&(e.splice(t,3),t-=3,Qc(l,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function ra(e){function t(u){return vo(u,e)}ri!==null&&vo(ri,e),li!==null&&vo(li,e),ai!==null&&vo(ai,e),na.forEach(t),ia.forEach(t);for(var n=0;n<In.length;n++){var i=In[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<In.length&&(n=In[0],n.blockedOn===null);)Y0(n),n.blockedOn===null&&In.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],l=n[i+1],a=r[pt]||null;if(typeof l=="function")a||ag(n);else if(a){var o=null;if(l&&l.hasAttribute("formAction")){if(r=l,a=l[pt]||null)o=a.formAction;else if(ad(r)!==null)continue}else o=a.action;typeof o=="function"?n[i+1]=o:(n.splice(i,3),i-=3),ag(n)}}}function od(e){this._internalRoot=e}ku.prototype.render=od.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));var n=t.current,i=At();H0(n,i,e,t,null,null)};ku.prototype.unmount=od.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;H0(e.current,2,null,e,null,null),Su(),t[Zr]=null}};function ku(e){this._internalRoot=e}ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<In.length&&t!==0&&t<In[n].priority;n++);In.splice(n,0,e),n===0&&Y0(e)}};var og=ug.version;if(og!=="19.1.1")throw Error(C(527,og,"19.1.1"));le.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=YE(t),e=e!==null?fg(e):null,e=e===null?null:e.stateNode,e};var cw={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&(Al=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Al.isDisabled&&Al.supportsFiber))try{aa=Al.inject(cw),wt=Al}catch(e){}var Al;Au.createRoot=function(e,t){if(!sg(e))throw Error(C(299));var n=!1,i="",r=Ly,l=By,a=Hy,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=L0(e,1,!1,null,null,n,i,r,l,a,o,null),e[Zr]=t.current,td(e),new od(t)};Au.hydrateRoot=function(e,t,n){if(!sg(e))throw Error(C(299));var i=!1,r="",l=Ly,a=By,o=Hy,u=null,c=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(u=n.unstable_transitionCallbacks),n.formState!==void 0&&(c=n.formState)),t=L0(e,1,!0,t,n!=null?n:null,i,r,l,a,o,u,c),t.context=B0(null),n=t.current,i=At(),i=yf(i),r=ei(i),r.callback=null,ti(n,r,i),n=i,t.current.lanes=n,ua(t,n),on(t),e[Zr]=t.current,td(e),new ku(t)};Au.version="19.1.1"});var Q0=$e((e3,G0)=>{"use strict";function X0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X0)}catch(e){console.error(e)}}X0(),G0.exports=V0()});function Z0(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var K0=x(()=>{});function _u(e,t){return((t||pw).jsx?dw:fw).test(e)}var fw,dw,pw,I0=x(()=>{fw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pw={}});var J0=x(()=>{I0()});function ud(e){return typeof e=="object"?e.type==="text"?P0(e.value):!1:P0(e)}function P0(e){return e.replace(hw,"")===""}var hw,F0=x(()=>{hw=/[ \t\n\f\r]/g});var W0=x(()=>{F0()});var Dn,sd=x(()=>{Dn=class{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}};Dn.prototype.normal={};Dn.prototype.property={};Dn.prototype.space=void 0});function cd(e,t){let n={},i={};for(let r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new Dn(n,i,t)}var $0=x(()=>{sd()});function Sa(e){return e.toLowerCase()}var fd=x(()=>{});var Xe,dd=x(()=>{Xe=class{constructor(t,n){this.attribute=n,this.property=t}};Xe.prototype.attribute="";Xe.prototype.booleanish=!1;Xe.prototype.boolean=!1;Xe.prototype.commaOrSpaceSeparated=!1;Xe.prototype.commaSeparated=!1;Xe.prototype.defined=!1;Xe.prototype.mustUseProperty=!1;Xe.prototype.number=!1;Xe.prototype.overloadedBoolean=!1;Xe.prototype.property="";Xe.prototype.spaceSeparated=!1;Xe.prototype.space=void 0});var Ea={};As(Ea,{boolean:()=>Q,booleanish:()=>_e,commaOrSpaceSeparated:()=>mt,commaSeparated:()=>di,number:()=>N,overloadedBoolean:()=>Cu,spaceSeparated:()=>se});function Xi(){return sh(2,++mw)}var mw,Q,_e,Cu,N,se,di,mt,Ta=x(()=>{mw=0,Q=Xi(),_e=Xi(),Cu=Xi(),N=Xi(),se=Xi(),di=Xi(),mt=Xi()});function eb(e,t,n){n&&(e[t]=n)}var pd,Gi,hd=x(()=>{dd();Ta();pd=Object.keys(Ea),Gi=class extends Xe{constructor(t,n,i,r){let l=-1;if(super(t,n),eb(this,"space",r),typeof i=="number")for(;++l<pd.length;){let a=pd[l];eb(this,pd[l],(i&Ea[a])===Ea[a])}}};Gi.prototype.defined=!0});function Vt(e){let t={},n={};for(let[i,r]of Object.entries(e.properties)){let l=new Gi(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[Sa(i)]=i,n[Sa(l.attribute)]=i}return new Dn(t,n,e.space)}var Qi=x(()=>{fd();hd();sd()});var md,tb=x(()=>{Qi();Ta();md=Vt({properties:{ariaActiveDescendant:null,ariaAtomic:_e,ariaAutoComplete:null,ariaBusy:_e,ariaChecked:_e,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:se,ariaCurrent:null,ariaDescribedBy:se,ariaDetails:null,ariaDisabled:_e,ariaDropEffect:se,ariaErrorMessage:null,ariaExpanded:_e,ariaFlowTo:se,ariaGrabbed:_e,ariaHasPopup:null,ariaHidden:_e,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:se,ariaLevel:N,ariaLive:null,ariaModal:_e,ariaMultiLine:_e,ariaMultiSelectable:_e,ariaOrientation:null,ariaOwns:se,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:_e,ariaReadOnly:_e,ariaRelevant:null,ariaRequired:_e,ariaRoleDescription:se,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:_e,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}})});function zu(e,t){return t in e?e[t]:t}var gd=x(()=>{});function Ou(e,t){return zu(e,t.toLowerCase())}var yd=x(()=>{gd()});var nb,ib=x(()=>{yd();Qi();Ta();nb=Vt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:di,acceptCharset:se,accessKey:se,action:null,allow:null,allowFullScreen:Q,allowPaymentRequest:Q,allowUserMedia:Q,alt:null,as:null,async:Q,autoCapitalize:null,autoComplete:se,autoFocus:Q,autoPlay:Q,blocking:se,capture:null,charSet:null,checked:Q,cite:null,className:se,cols:N,colSpan:null,content:null,contentEditable:_e,controls:Q,controlsList:se,coords:N|di,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Q,defer:Q,dir:null,dirName:null,disabled:Q,download:Cu,draggable:_e,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Q,formTarget:null,headers:se,height:N,hidden:Cu,high:N,href:null,hrefLang:null,htmlFor:se,httpEquiv:se,id:null,imageSizes:null,imageSrcSet:null,inert:Q,inputMode:null,integrity:null,is:null,isMap:Q,itemId:null,itemProp:se,itemRef:se,itemScope:Q,itemType:se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Q,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:Q,muted:Q,name:null,nonce:null,noModule:Q,noValidate:Q,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Q,optimum:N,pattern:null,ping:se,placeholder:null,playsInline:Q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Q,referrerPolicy:null,rel:se,required:Q,reversed:Q,rows:N,rowSpan:N,sandbox:se,scope:null,scoped:Q,seamless:Q,selected:Q,shadowRootClonable:Q,shadowRootDelegatesFocus:Q,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:_e,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:Q,useMap:null,value:_e,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:se,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Q,declare:Q,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:Q,noHref:Q,noShade:Q,noWrap:Q,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:_e,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Q,disableRemotePlayback:Q,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:Ou})});var rb,lb=x(()=>{gd();Qi();Ta();rb=Vt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:mt,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:Q,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:di,g2:di,glyphName:di,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:mt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:N,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mt,rev:mt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mt,requiredFeatures:mt,requiredFonts:mt,requiredFormats:mt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:mt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mt,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:zu})});var bd,ab=x(()=>{Qi();bd=Vt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}})});var xd,ob=x(()=>{Qi();yd();xd=Vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ou})});var vd,ub=x(()=>{Qi();vd=Vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}})});var Sd,sb=x(()=>{Sd={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"}});function Ed(e,t){let n=Sa(t),i=t,r=Xe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&yw.test(t)){if(t.charAt(4)==="-"){let l=t.slice(5).replace(cb,xw);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{let l=t.slice(4);if(!cb.test(l)){let a=l.replace(gw,bw);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}r=Gi}return new r(i,t)}function bw(e){return"-"+e.toLowerCase()}function xw(e){return e.charAt(1).toUpperCase()}var gw,cb,yw,fb=x(()=>{hd();dd();fd();gw=/[A-Z]/g,cb=/-[a-z]/g,yw=/^data[-\w.:]+$/i});var db,Nu,pb=x(()=>{$0();tb();ib();lb();ab();ob();ub();sb();fb();db=cd([md,nb,bd,xd,vd],"html"),Nu=cd([md,rb,bd,xd,vd],"svg")});function hb(e){return e.join(" ").trim()}var mb=x(()=>{});var Sb=$e((l4,vb)=>{var gb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vw=/\n/g,Sw=/^\s*/,Ew=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Tw=/^:\s*/,ww=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,kw=/^[;\s]*/,Aw=/^\s+|\s+$/g,_w=`
|
|
10
|
-
`,yb="/",bb="*",Zi="",Cw="comment",zw="declaration";vb.exports=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function r(E){var A=E.match(vw);A&&(n+=A.length);var h=E.lastIndexOf(_w);i=~h?E.length-h:i+E.length}function l(){var E={line:n,column:i};return function(A){return A.position=new a(E),s(),A}}function a(E){this.start=E,this.end={line:n,column:i},this.source=t.source}a.prototype.content=e;var o=[];function u(E){var A=new Error(t.source+":"+n+":"+i+": "+E);if(A.reason=E,A.filename=t.source,A.line=n,A.column=i,A.source=e,t.silent)o.push(A);else throw A}function c(E){var A=E.exec(e);if(A){var h=A[0];return r(h),e=e.slice(h.length),A}}function s(){c(Sw)}function p(E){var A;for(E=E||[];A=d();)A!==!1&&E.push(A);return E}function d(){var E=l();if(!(yb!=e.charAt(0)||bb!=e.charAt(1))){for(var A=2;Zi!=e.charAt(A)&&(bb!=e.charAt(A)||yb!=e.charAt(A+1));)++A;if(A+=2,Zi===e.charAt(A-1))return u("End of comment missing");var h=e.slice(2,A-2);return i+=2,r(h),e=e.slice(A),i+=2,E({type:Cw,comment:h})}}function f(){var E=l(),A=c(Ew);if(A){if(d(),!c(Tw))return u("property missing ':'");var h=c(ww),g=E({type:zw,property:xb(A[0].replace(gb,Zi)),value:h?xb(h[0].replace(gb,Zi)):Zi});return c(kw),g}}function w(){var E=[];p(E);for(var A;A=f();)A!==!1&&(E.push(A),p(E));return E}return s(),w()};function xb(e){return e?e.replace(Aw,Zi):Zi}});var Eb=$e(wa=>{"use strict";var Ow=wa&&wa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wa,"__esModule",{value:!0});wa.default=Rw;var Nw=Ow(Sb());function Rw(e,t){var n=null;if(!e||typeof e!="string")return n;var i=(0,Nw.default)(e),r=typeof t=="function";return i.forEach(function(l){if(l.type==="declaration"){var a=l.property,o=l.value;r?t(a,o,l):o&&(n=n||{},n[a]=o)}}),n}});var wb=$e(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.camelCase=void 0;var Dw=/^--[a-zA-Z0-9_-]+$/,Mw=/-([a-z])/g,Uw=/^[^-]+$/,Lw=/^-(webkit|moz|ms|o|khtml)-/,Bw=/^-(ms)-/,Hw=function(e){return!e||Uw.test(e)||Dw.test(e)},qw=function(e,t){return t.toUpperCase()},Tb=function(e,t){return"".concat(t,"-")},jw=function(e,t){return t===void 0&&(t={}),Hw(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Bw,Tb):e=e.replace(Lw,Tb),e.replace(Mw,qw))};Ru.camelCase=jw});var Ab=$e((wd,kb)=>{"use strict";var Yw=wd&&wd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Vw=Yw(Eb()),Xw=wb();function Td(e,t){var n={};return!e||typeof e!="string"||(0,Vw.default)(e,function(i,r){i&&r&&(n[(0,Xw.camelCase)(i,t)]=r)}),n}Td.default=Td;kb.exports=Td});function _b(e){return t;function t(n){let i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function kd(e){let t=Wr(e),n=Du(e);if(t&&n)return{start:t,end:n}}var Du,Wr,Cb=x(()=>{Du=_b("end"),Wr=_b("start")});var Mu=x(()=>{Cb()});function pi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zb(e.position):"start"in e||"end"in e?zb(e):"line"in e||"column"in e?Ad(e):""}function Ad(e){return Ob(e&&e.line)+":"+Ob(e&&e.column)}function zb(e){return Ad(e&&e.start)+"-"+Ad(e&&e.end)}function Ob(e){return e&&typeof e=="number"?e:1}var Nb=x(()=>{});var _d=x(()=>{Nb()});var Oe,Rb=x(()=>{_d();Oe=class extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",l={},a=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l=H({},n)),typeof t=="string"?r=t:!l.cause&&t&&(a=!0,r=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){let u=i.indexOf(":");u===-1?l.ruleId=i:(l.source=i.slice(0,u),l.ruleId=i.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){let u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}let o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=pi(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=a&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Oe.prototype.file="";Oe.prototype.name="";Oe.prototype.reason="";Oe.prototype.message="";Oe.prototype.stack="";Oe.prototype.column=void 0;Oe.prototype.line=void 0;Oe.prototype.ancestors=void 0;Oe.prototype.cause=void 0;Oe.prototype.fatal=void 0;Oe.prototype.place=void 0;Oe.prototype.ruleId=void 0;Oe.prototype.source=void 0});var Cd=x(()=>{Rb()});function Od(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=tk(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=ek(n,t.jsx,t.jsxs)}let r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Nu:db,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Ub(r,e,void 0);return l&&typeof l!="string"?l:r.create(e,r.Fragment,{children:l||void 0},void 0)}function Ub(e,t,n){if(t.type==="element")return Iw(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Jw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Fw(e,t,n);if(t.type==="mdxjsEsm")return Pw(e,t);if(t.type==="root")return Ww(e,t,n);if(t.type==="text")return $w(e,t)}function Iw(e,t,n){let i=e.schema,r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=Nu,e.schema=r),e.ancestors.push(t);let l=Bb(e,t.tagName,!1),a=nk(e,t),o=Rd(e,t);return Zw.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!ud(u):!0})),Lb(e,a,l,t),Nd(a,o),e.ancestors.pop(),e.schema=i,e.create(t,l,a,n)}function Jw(e,t){if(t.data&&t.data.estree&&e.evaluater){let i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}ka(e,t.position)}function Pw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ka(e,t.position)}function Fw(e,t,n){let i=e.schema,r=i;t.name==="svg"&&i.space==="html"&&(r=Nu,e.schema=r),e.ancestors.push(t);let l=t.name===null?e.Fragment:Bb(e,t.name,!0),a=ik(e,t),o=Rd(e,t);return Lb(e,a,l,t),Nd(a,o),e.ancestors.pop(),e.schema=i,e.create(t,l,a,n)}function Ww(e,t,n){let i={};return Nd(i,Rd(e,t)),e.create(t,e.Fragment,i,n)}function $w(e,t){return t.value}function Lb(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Nd(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ek(e,t,n){return i;function i(r,l,a,o){let c=Array.isArray(a.children)?n:t;return o?c(l,a,o):c(l,a)}}function tk(e,t){return n;function n(i,r,l,a){let o=Array.isArray(l.children),u=Wr(i);return t(r,l,a,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function nk(e,t){let n={},i,r;for(r in t.properties)if(r!=="children"&&zd.call(t.properties,r)){let l=rk(e,r,t.properties[r]);if(l){let[a,o]=l;e.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&Kw.has(t.tagName)?i=o:n[a]=o}}if(i){let l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function ik(e,t){let n={};for(let i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){let l=i.data.estree.body[0];l.type;let a=l.expression;a.type;let o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ka(e,t.position);else{let r=i.name,l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){let o=i.value.data.estree.body[0];o.type,l=e.evaluater.evaluateExpression(o.expression)}else ka(e,t.position);else l=i.value===null?!0:i.value;n[r]=l}return n}function Rd(e,t){let n=[],i=-1,r=e.passKeys?new Map:Gw;for(;++i<t.children.length;){let l=t.children[i],a;if(e.passKeys){let u=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(u){let c=r.get(u)||0;a=u+"-"+c,r.set(u,c+1)}}let o=Ub(e,l,a);o!==void 0&&n.push(o)}return n}function rk(e,t,n){let i=Ed(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Z0(n):hb(n)),i.property==="style"){let r=typeof n=="object"?n:lk(e,String(n));return e.stylePropertyNameCase==="css"&&(r=ak(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?Sd[i.property]||i.property:i.attribute,n]}}function lk(e,t){try{return(0,Db.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let i=n,r=new Oe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Mb+"#cannot-parse-style-attribute",r}}function Bb(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){let r=t.split("."),l=-1,a;for(;++l<r.length;){let o=_u(r[l])?{type:"Identifier",name:r[l]}:{type:"Literal",value:r[l]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(l&&o.type==="Literal"),optional:!1}:o}i=a}else i=_u(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){let r=i.value;return zd.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);ka(e)}function ka(e,t){let n=new Oe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Mb+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ak(e){let t={},n;for(n in e)zd.call(e,n)&&(t[ok(n)]=e[n]);return t}function ok(e){let t=e.replace(Qw,uk);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function uk(e){return"-"+e.toLowerCase()}var Db,zd,Gw,Qw,Zw,Kw,Mb,Hb=x(()=>{K0();J0();W0();pb();mb();Db=de(Ab(),1);Mu();Cd();zd={}.hasOwnProperty,Gw=new Map,Qw=/[A-Z]/g,Zw=new Set(["table","tbody","thead","tfoot","tr"]),Kw=new Set(["td","th"]),Mb="https://github.com/syntax-tree/hast-util-to-jsx-runtime"});var qb=x(()=>{Hb()});var Aa,jb=x(()=>{Aa={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]}});var Yb=x(()=>{jb()});var Xb=$e(Uu=>{"use strict";var sk=Symbol.for("react.transitional.element"),ck=Symbol.for("react.fragment");function Vb(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:sk,type:e,key:i,ref:t!==void 0?t:null,props:n}}Uu.Fragment=ck;Uu.jsx=Vb;Uu.jsxs=Vb});var Ge=$e((D4,Gb)=>{"use strict";Gb.exports=Xb()});function Dd(e,t){let n=t||fk,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Zb(e,i,r)}function Zb(e,t,n){if(dk(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qb(e.children,t,n)}return Array.isArray(e)?Qb(e,t,n):""}function Qb(e,t,n){let i=[],r=-1;for(;++r<e.length;)i[r]=Zb(e[r],t,n);return i.join("")}function dk(e){return!!(e&&typeof e=="object")}var fk,Kb=x(()=>{fk={}});var Ib=x(()=>{Kb()});function $r(e){let t="&"+e+";";Jb.innerHTML=t;let n=Jb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}var Jb,Lu=x(()=>{Jb=document.createElement("i")});function Fe(e,t,n,i){let r=e.length,l=0,a;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)a=Array.from(i),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);l<i.length;)a=i.slice(l,l+1e4),a.unshift(t,0),e.splice(...a),l+=1e4,t+=1e4}function ut(e,t){return e.length>0?(Fe(e,e.length,0,t),e):t}var hi=x(()=>{});function Fb(e){let t={},n=-1;for(;++n<e.length;)pk(t,e[n]);return t}function pk(e,t){let n;for(n in t){let r=(Pb.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n],a;if(l)for(a in l){Pb.call(r,a)||(r[a]=[]);let o=l[a];hk(r[a],Array.isArray(o)?o:o?[o]:[])}}}function hk(e,t){let n=-1,i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Fe(e,0,0,i)}var Pb,Wb=x(()=>{hi();Pb={}.hasOwnProperty});function Bu(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}var Md=x(()=>{});function Mn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Hu=x(()=>{});function _a(e){return e!==null&&(e<32||e===127)}function U(e){return e!==null&&e<-2}function Ne(e){return e!==null&&(e<0||e===32)}function X(e){return e===-2||e===-1||e===32}function mi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}var zt,Qe,$b,Ca,e1,t1,n1,i1,ce=x(()=>{zt=mi(/[A-Za-z]/),Qe=mi(/[\dA-Za-z]/),$b=mi(/[#-'*+\--9=?A-Z^-~]/);Ca=mi(/\d/),e1=mi(/[\dA-Fa-f]/),t1=mi(/[!-/:-@[-`{-~]/);n1=mi(new RegExp("\\p{P}|\\p{S}","u")),i1=mi(/\s/)});function Xt(e){let t=[],n=-1,i=0,r=0;for(;++n<e.length;){let l=e.charCodeAt(n),a="";if(l===37&&Qe(e.charCodeAt(n+1))&&Qe(e.charCodeAt(n+2)))r=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){let o=e.charCodeAt(n+1);l<56320&&o>56319&&o<57344?(a=String.fromCharCode(l,o),r=1):a="\uFFFD"}else a=String.fromCharCode(l);a&&(t.push(e.slice(i,n),encodeURIComponent(a)),i=n+r+1,a=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}var Ki=x(()=>{ce()});function Z(e,t,n,i){let r=i?i-1:Number.POSITIVE_INFINITY,l=0;return a;function a(u){return X(u)?(e.enter(n),o(u)):t(u)}function o(u){return X(u)&&l++<r?(e.consume(u),o):(e.exit(n),t(u))}}var Ze=x(()=>{ce()});function mk(e){let t=e.attempt(this.parser.constructs.contentInitial,i,r),n;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Z(e,t,"linePrefix")}function r(o){return e.enter("paragraph"),l(o)}function l(o){let u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return U(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),a)}}var r1,l1=x(()=>{Ze();ce();r1={tokenize:mk}});function gk(e){let t=this,n=[],i=0,r,l,a;return o;function o(m){if(i<n.length){let S=n[i];return t.containerState=S[1],e.attempt(S[0].continuation,u,c)(m)}return c(m)}function u(m){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&g();let S=t.events.length,T=S,v;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){v=t.events[T][1].end;break}h(i);let _=S;for(;_<t.events.length;)t.events[_][1].end=H({},v),_++;return Fe(t.events,T+1,0,t.events.slice(S)),t.events.length=_,c(m)}return o(m)}function c(m){if(i===n.length){if(!r)return d(m);if(r.currentConstruct&&r.currentConstruct.concrete)return w(m);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(a1,s,p)(m)}function s(m){return r&&g(),h(i),d(m)}function p(m){return t.parser.lazy[t.now().line]=i!==n.length,a=t.now().offset,w(m)}function d(m){return t.containerState={},e.attempt(a1,f,w)(m)}function f(m){return i++,n.push([t.currentConstruct,t.containerState]),d(m)}function w(m){if(m===null){r&&g(),h(0),e.consume(m);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:l}),E(m)}function E(m){if(m===null){A(e.exit("chunkFlow"),!0),h(0),e.consume(m);return}return U(m)?(e.consume(m),A(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(m),E)}function A(m,S){let T=t.sliceStream(m);if(S&&T.push(null),m.previous=l,l&&(l.next=m),l=m,r.defineSkip(m.start),r.write(T),t.parser.lazy[m.start.line]){let v=r.events.length;for(;v--;)if(r.events[v][1].start.offset<a&&(!r.events[v][1].end||r.events[v][1].end.offset>a))return;let _=t.events.length,z=_,B,O;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(B){O=t.events[z][1].end;break}B=!0}for(h(i),v=_;v<t.events.length;)t.events[v][1].end=H({},O),v++;Fe(t.events,z+1,0,t.events.slice(_)),t.events.length=v}}function h(m){let S=n.length;for(;S-- >m;){let T=n[S];t.containerState=T[1],T[0].exit.call(t,e)}n.length=m}function g(){r.write([null]),l=void 0,r=void 0,t.containerState._closeFlow=void 0}}function yk(e,t,n){return Z(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var o1,a1,u1=x(()=>{Ze();ce();hi();o1={tokenize:gk},a1={tokenize:yk}});function Ud(e){if(e===null||Ne(e)||i1(e))return 1;if(n1(e))return 2}var s1=x(()=>{ce()});function el(e,t,n){let i=[],r=-1;for(;++r<e.length;){let l=e[r].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}var qu=x(()=>{});function bk(e,t){let n=-1,i,r,l,a,o,u,c,s;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let p=H({},e[i][1].end),d=H({},e[n][1].start);c1(p,-u),c1(d,u),a={type:u>1?"strongSequence":"emphasisSequence",start:p,end:H({},e[i][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:H({},e[n][1].start),end:d},l={type:u>1?"strongText":"emphasisText",start:H({},e[i][1].end),end:H({},e[n][1].start)},r={type:u>1?"strong":"emphasis",start:H({},a.start),end:H({},o.end)},e[i][1].end=H({},a.start),e[n][1].start=H({},o.end),c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=ut(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=ut(c,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",l,t]]),c=ut(c,el(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),c=ut(c,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(s=2,c=ut(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):s=0,Fe(e,i-1,n-i+3,c),n=i+c.length-s-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function xk(e,t){let n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Ud(i),l;return a;function a(u){return l=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===l)return e.consume(u),o;let c=e.exit("attentionSequence"),s=Ud(u),p=!s||s===2&&r||n.includes(u),d=!r||r===2&&s||n.includes(i);return c._open=!!(l===42?p:p&&(r||!d)),c._close=!!(l===42?d:d&&(s||!p)),t(u)}}function c1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var za,f1=x(()=>{hi();s1();qu();za={name:"attention",resolveAll:bk,tokenize:xk}});function vk(e,t,n){let i=0;return r;function r(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return zt(f)?(e.consume(f),a):f===64?n(f):c(f)}function a(f){return f===43||f===45||f===46||Qe(f)?(i=1,o(f)):c(f)}function o(f){return f===58?(e.consume(f),i=0,u):(f===43||f===45||f===46||Qe(f))&&i++<32?(e.consume(f),o):(i=0,c(f))}function u(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||_a(f)?n(f):(e.consume(f),u)}function c(f){return f===64?(e.consume(f),s):$b(f)?(e.consume(f),c):n(f)}function s(f){return Qe(f)?p(f):n(f)}function p(f){return f===46?(e.consume(f),i=0,s):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||Qe(f))&&i++<63){let w=f===45?d:p;return e.consume(f),w}return n(f)}}var Ld,d1=x(()=>{ce();Ld={name:"autolink",tokenize:vk}});function Sk(e,t,n){return i;function i(l){return X(l)?Z(e,r,"linePrefix")(l):r(l)}function r(l){return l===null||U(l)?t(l):n(l)}}var gi,ju=x(()=>{Ze();ce();gi={partial:!0,tokenize:Sk}});function Ek(e,t,n){let i=this;return r;function r(a){if(a===62){let o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return n(a)}function l(a){return X(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Tk(e,t,n){let i=this;return r;function r(a){return X(a)?Z(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(Yu,t,n)(a)}}function wk(e){e.exit("blockQuote")}var Yu,p1=x(()=>{Ze();ce();Yu={continuation:{tokenize:Tk},exit:wk,name:"blockQuote",tokenize:Ek}});function kk(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),r}function r(l){return t1(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}var Vu,h1=x(()=>{ce();Vu={name:"characterEscape",tokenize:kk}});function Ak(e,t,n){let i=this,r=0,l,a;return o;function o(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),u}function u(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),l=31,a=Qe,s(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=e1,s):(e.enter("characterReferenceValue"),l=7,a=Ca,s(p))}function s(p){if(p===59&&r){let d=e.exit("characterReferenceValue");return a===Qe&&!$r(i.sliceSerialize(d))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(p)&&r++<l?(e.consume(p),s):n(p)}}var Xu,m1=x(()=>{Lu();ce();Xu={name:"characterReference",tokenize:Ak}});function _k(e,t,n){let i=this,r={partial:!0,tokenize:T},l=0,a=0,o;return u;function u(v){return c(v)}function c(v){let _=i.events[i.events.length-1];return l=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,o=v,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(v)}function s(v){return v===o?(a++,e.consume(v),s):a<3?n(v):(e.exit("codeFencedFenceSequence"),X(v)?Z(e,p,"whitespace")(v):p(v))}function p(v){return v===null||U(v)?(e.exit("codeFencedFence"),i.interrupt?t(v):e.check(g1,E,S)(v)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(v))}function d(v){return v===null||U(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(v)):X(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Z(e,f,"whitespace")(v)):v===96&&v===o?n(v):(e.consume(v),d)}function f(v){return v===null||U(v)?p(v):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(v))}function w(v){return v===null||U(v)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(v)):v===96&&v===o?n(v):(e.consume(v),w)}function E(v){return e.attempt(r,S,A)(v)}function A(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),h}function h(v){return l>0&&X(v)?Z(e,g,"linePrefix",l+1)(v):g(v)}function g(v){return v===null||U(v)?e.check(g1,E,S)(v):(e.enter("codeFlowValue"),m(v))}function m(v){return v===null||U(v)?(e.exit("codeFlowValue"),g(v)):(e.consume(v),m)}function S(v){return e.exit("codeFenced"),t(v)}function T(v,_,z){let B=0;return O;function O(V){return v.enter("lineEnding"),v.consume(V),v.exit("lineEnding"),R}function R(V){return v.enter("codeFencedFence"),X(V)?Z(v,L,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):L(V)}function L(V){return V===o?(v.enter("codeFencedFenceSequence"),D(V)):z(V)}function D(V){return V===o?(B++,v.consume(V),D):B>=a?(v.exit("codeFencedFenceSequence"),X(V)?Z(v,j,"whitespace")(V):j(V)):z(V)}function j(V){return V===null||U(V)?(v.exit("codeFencedFence"),_(V)):z(V)}}}function Ck(e,t,n){let i=this;return r;function r(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return i.parser.lazy[i.now().line]?n(a):t(a)}}var g1,Gu,y1=x(()=>{Ze();ce();g1={partial:!0,tokenize:Ck},Gu={concrete:!0,name:"codeFenced",tokenize:_k}});function Ok(e,t,n){let i=this;return r;function r(c){return e.enter("codeIndented"),Z(e,l,"linePrefix",5)(c)}function l(c){let s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?u(c):U(c)?e.attempt(zk,a,u)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||U(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function u(c){return e.exit("codeIndented"),t(c)}}function Nk(e,t,n){let i=this;return r;function r(a){return i.parser.lazy[i.now().line]?n(a):U(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r):Z(e,l,"linePrefix",5)(a)}function l(a){let o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):U(a)?r(a):n(a)}}var Oa,zk,b1=x(()=>{Ze();ce();Oa={name:"codeIndented",tokenize:Ok},zk={partial:!0,tokenize:Nk}});function Rk(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function Dk(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Mk(e,t,n){let i=this,r=0,l,a;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),r++,u):(e.exit("codeTextSequence"),c(d))}function c(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),c):d===96?(a=e.enter("codeTextSequence"),l=0,p(d)):U(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("codeTextData"),s(d))}function s(d){return d===null||d===32||d===96||U(d)?(e.exit("codeTextData"),c(d)):(e.consume(d),s)}function p(d){return d===96?(e.consume(d),l++,p):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",s(d))}}var Bd,x1=x(()=>{ce();Bd={name:"codeText",previous:Dk,resolve:Rk,tokenize:Mk}});function Na(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}var Qu,v1=x(()=>{Qu=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){let i=n==null?Number.POSITIVE_INFINITY:n;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){let r=n||0;this.setCursor(Math.trunc(t));let l=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Na(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Na(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Na(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let n=this.left.splice(t,Number.POSITIVE_INFINITY);Na(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Na(this.left,n.reverse())}}}});function Zu(e){let t={},n=-1,i,r,l,a,o,u,c,s=new Qu(e);for(;++n<s.length;){for(;n in t;)n=t[n];if(i=s.get(n),n&&i[1].type==="chunkFlow"&&s.get(n-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,Uk(s,n)),n=t[n],c=!0);else if(i[1]._container){for(l=n,r=void 0;l--;)if(a=s.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(r&&(s.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;r&&(i[1].end=H({},s.get(r)[1].start),o=s.slice(r,n),o.unshift(i),s.splice(r,n-r+1,o))}}return Fe(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!c}function Uk(e,t){let n=e.get(t)[1],i=e.get(t)[2],r=t-1,l=[],a=n._tokenizer;a||(a=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let o=a.events,u=[],c={},s,p,d=-1,f=n,w=0,E=0,A=[E];for(;f;){for(;e.get(++r)[1]!==f;);l.push(r),f._tokenizer||(s=i.sliceStream(f),f.next||s.push(null),p&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(s),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=n;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(E=d+1,A.push(E),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):A.pop(),d=A.length;d--;){let h=o.slice(A[d],A[d+1]),g=l.pop();u.push([g,g+h.length-1]),e.splice(g,2,h)}for(u.reverse(),d=-1;++d<u.length;)c[w+u[d][0]]=w+u[d][1],w+=u[d][1]-u[d][0]-1;return c}var Hd=x(()=>{hi();v1()});function Bk(e){return Zu(e),e}function Hk(e,t){let n;return i;function i(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(o)}function r(o){return o===null?l(o):U(o)?e.check(Lk,a,l)(o):(e.consume(o),r)}function l(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function a(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function qk(e,t,n){let i=this;return r;function r(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Z(e,l,"linePrefix")}function l(a){if(a===null||U(a))return n(a);let o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(i.parser.constructs.flow,n,t)(a)}}var qd,Lk,S1=x(()=>{Ze();ce();Hd();qd={resolve:Bk,tokenize:Hk},Lk={partial:!0,tokenize:qk}});function Ku(e,t,n,i,r,l,a,o,u){let c=u||Number.POSITIVE_INFINITY,s=0;return p;function p(h){return h===60?(e.enter(i),e.enter(r),e.enter(l),e.consume(h),e.exit(l),d):h===null||h===32||h===41||_a(h)?n(h):(e.enter(i),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),E(h))}function d(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(r),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===62?(e.exit("chunkString"),e.exit(o),d(h)):h===null||h===60||U(h)?n(h):(e.consume(h),h===92?w:f)}function w(h){return h===60||h===62||h===92?(e.consume(h),f):f(h)}function E(h){return!s&&(h===null||h===41||Ne(h))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(i),t(h)):s<c&&h===40?(e.consume(h),s++,E):h===41?(e.consume(h),s--,E):h===null||h===32||h===40||_a(h)?n(h):(e.consume(h),h===92?A:E)}function A(h){return h===40||h===41||h===92?(e.consume(h),E):E(h)}}var jd=x(()=>{ce()});function Iu(e,t,n,i,r,l){let a=this,o=0,u;return c;function c(f){return e.enter(i),e.enter(r),e.consume(f),e.exit(r),e.enter(l),s}function s(f){return o>999||f===null||f===91||f===93&&!u||f===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):f===93?(e.exit(l),e.enter(r),e.consume(f),e.exit(r),e.exit(i),t):U(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===null||f===91||f===93||U(f)||o++>999?(e.exit("chunkString"),s(f)):(e.consume(f),u||(u=!X(f)),f===92?d:p)}function d(f){return f===91||f===92||f===93?(e.consume(f),o++,p):p(f)}}var Yd=x(()=>{ce()});function Ju(e,t,n,i,r,l){let a;return o;function o(d){return d===34||d===39||d===40?(e.enter(i),e.enter(r),e.consume(d),e.exit(r),a=d===40?41:d,u):n(d)}function u(d){return d===a?(e.enter(r),e.consume(d),e.exit(r),e.exit(i),t):(e.enter(l),c(d))}function c(d){return d===a?(e.exit(l),u(a)):d===null?n(d):U(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Z(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===a||d===null||U(d)?(e.exit("chunkString"),c(d)):(e.consume(d),d===92?p:s)}function p(d){return d===a||d===92?(e.consume(d),s):s(d)}}var Vd=x(()=>{Ze();ce()});function Ii(e,t){let n;return i;function i(r){return U(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):X(r)?Z(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}var Xd=x(()=>{Ze();ce()});function Yk(e,t,n){let i=this,r;return l;function l(f){return e.enter("definition"),a(f)}function a(f){return Iu.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return r=Mn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),u):n(f)}function u(f){return Ne(f)?Ii(e,c)(f):c(f)}function c(f){return Ku(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function s(f){return e.attempt(jk,p,p)(f)}function p(f){return X(f)?Z(e,d,"whitespace")(f):d(f)}function d(f){return f===null||U(f)?(e.exit("definition"),i.parser.defined.push(r),t(f)):n(f)}}function Vk(e,t,n){return i;function i(o){return Ne(o)?Ii(e,r)(o):n(o)}function r(o){return Ju(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return X(o)?Z(e,a,"whitespace")(o):a(o)}function a(o){return o===null||U(o)?t(o):n(o)}}var Gd,jk,E1=x(()=>{jd();Yd();Ze();Vd();Xd();ce();Hu();Gd={name:"definition",tokenize:Yk},jk={partial:!0,tokenize:Vk}});function Xk(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),r}function r(l){return U(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}var Qd,T1=x(()=>{ce();Qd={name:"hardBreakEscape",tokenize:Xk}});function Gk(e,t){let n=e.length-2,i=3,r,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Fe(e,i,n-i+1,[["enter",r,t],["enter",l,t],["exit",l,t],["exit",r,t]])),e}function Qk(e,t,n){let i=0;return r;function r(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),a(s)}function a(s){return s===35&&i++<6?(e.consume(s),a):s===null||Ne(s)?(e.exit("atxHeadingSequence"),o(s)):n(s)}function o(s){return s===35?(e.enter("atxHeadingSequence"),u(s)):s===null||U(s)?(e.exit("atxHeading"),t(s)):X(s)?Z(e,o,"whitespace")(s):(e.enter("atxHeadingText"),c(s))}function u(s){return s===35?(e.consume(s),u):(e.exit("atxHeadingSequence"),o(s))}function c(s){return s===null||s===35||Ne(s)?(e.exit("atxHeadingText"),o(s)):(e.consume(s),c)}}var Zd,w1=x(()=>{Ze();ce();hi();Zd={name:"headingAtx",resolve:Gk,tokenize:Qk}});var k1,Kd,A1=x(()=>{k1=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Kd=["pre","script","style","textarea"]});function Ik(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Jk(e,t,n){let i=this,r,l,a,o,u;return c;function c(b){return s(b)}function s(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),p}function p(b){return b===33?(e.consume(b),d):b===47?(e.consume(b),l=!0,E):b===63?(e.consume(b),r=3,i.interrupt?t:y):zt(b)?(e.consume(b),a=String.fromCharCode(b),A):n(b)}function d(b){return b===45?(e.consume(b),r=2,f):b===91?(e.consume(b),r=5,o=0,w):zt(b)?(e.consume(b),r=4,i.interrupt?t:y):n(b)}function f(b){return b===45?(e.consume(b),i.interrupt?t:y):n(b)}function w(b){let bt="CDATA[";return b===bt.charCodeAt(o++)?(e.consume(b),o===bt.length?i.interrupt?t:L:w):n(b)}function E(b){return zt(b)?(e.consume(b),a=String.fromCharCode(b),A):n(b)}function A(b){if(b===null||b===47||b===62||Ne(b)){let bt=b===47,Si=a.toLowerCase();return!bt&&!l&&Kd.includes(Si)?(r=1,i.interrupt?t(b):L(b)):k1.includes(a.toLowerCase())?(r=6,bt?(e.consume(b),h):i.interrupt?t(b):L(b)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(b):l?g(b):m(b))}return b===45||Qe(b)?(e.consume(b),a+=String.fromCharCode(b),A):n(b)}function h(b){return b===62?(e.consume(b),i.interrupt?t:L):n(b)}function g(b){return X(b)?(e.consume(b),g):O(b)}function m(b){return b===47?(e.consume(b),O):b===58||b===95||zt(b)?(e.consume(b),S):X(b)?(e.consume(b),m):O(b)}function S(b){return b===45||b===46||b===58||b===95||Qe(b)?(e.consume(b),S):T(b)}function T(b){return b===61?(e.consume(b),v):X(b)?(e.consume(b),T):m(b)}function v(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),u=b,_):X(b)?(e.consume(b),v):z(b)}function _(b){return b===u?(e.consume(b),u=null,B):b===null||U(b)?n(b):(e.consume(b),_)}function z(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||Ne(b)?T(b):(e.consume(b),z)}function B(b){return b===47||b===62||X(b)?m(b):n(b)}function O(b){return b===62?(e.consume(b),R):n(b)}function R(b){return b===null||U(b)?L(b):X(b)?(e.consume(b),R):n(b)}function L(b){return b===45&&r===2?(e.consume(b),ne):b===60&&r===1?(e.consume(b),ie):b===62&&r===4?(e.consume(b),Nt):b===63&&r===3?(e.consume(b),y):b===93&&r===5?(e.consume(b),He):U(b)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Zk,dn,D)(b)):b===null||U(b)?(e.exit("htmlFlowData"),D(b)):(e.consume(b),L)}function D(b){return e.check(Kk,j,dn)(b)}function j(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),V}function V(b){return b===null||U(b)?D(b):(e.enter("htmlFlowData"),L(b))}function ne(b){return b===45?(e.consume(b),y):L(b)}function ie(b){return b===47?(e.consume(b),a="",fe):L(b)}function fe(b){if(b===62){let bt=a.toLowerCase();return Kd.includes(bt)?(e.consume(b),Nt):L(b)}return zt(b)&&a.length<8?(e.consume(b),a+=String.fromCharCode(b),fe):L(b)}function He(b){return b===93?(e.consume(b),y):L(b)}function y(b){return b===62?(e.consume(b),Nt):b===45&&r===2?(e.consume(b),y):L(b)}function Nt(b){return b===null||U(b)?(e.exit("htmlFlowData"),dn(b)):(e.consume(b),Nt)}function dn(b){return e.exit("htmlFlow"),t(b)}}function Pk(e,t,n){let i=this;return r;function r(a){return U(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):n(a)}function l(a){return i.parser.lazy[i.now().line]?n(a):t(a)}}function Fk(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(gi,t,n)}}var Id,Zk,Kk,_1=x(()=>{ce();A1();ju();Id={concrete:!0,name:"htmlFlow",resolveTo:Ik,tokenize:Jk},Zk={partial:!0,tokenize:Fk},Kk={partial:!0,tokenize:Pk}});function Wk(e,t,n){let i=this,r,l,a;return o;function o(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),u}function u(y){return y===33?(e.consume(y),c):y===47?(e.consume(y),T):y===63?(e.consume(y),m):zt(y)?(e.consume(y),z):n(y)}function c(y){return y===45?(e.consume(y),s):y===91?(e.consume(y),l=0,w):zt(y)?(e.consume(y),g):n(y)}function s(y){return y===45?(e.consume(y),f):n(y)}function p(y){return y===null?n(y):y===45?(e.consume(y),d):U(y)?(a=p,ie(y)):(e.consume(y),p)}function d(y){return y===45?(e.consume(y),f):p(y)}function f(y){return y===62?ne(y):y===45?d(y):p(y)}function w(y){let Nt="CDATA[";return y===Nt.charCodeAt(l++)?(e.consume(y),l===Nt.length?E:w):n(y)}function E(y){return y===null?n(y):y===93?(e.consume(y),A):U(y)?(a=E,ie(y)):(e.consume(y),E)}function A(y){return y===93?(e.consume(y),h):E(y)}function h(y){return y===62?ne(y):y===93?(e.consume(y),h):E(y)}function g(y){return y===null||y===62?ne(y):U(y)?(a=g,ie(y)):(e.consume(y),g)}function m(y){return y===null?n(y):y===63?(e.consume(y),S):U(y)?(a=m,ie(y)):(e.consume(y),m)}function S(y){return y===62?ne(y):m(y)}function T(y){return zt(y)?(e.consume(y),v):n(y)}function v(y){return y===45||Qe(y)?(e.consume(y),v):_(y)}function _(y){return U(y)?(a=_,ie(y)):X(y)?(e.consume(y),_):ne(y)}function z(y){return y===45||Qe(y)?(e.consume(y),z):y===47||y===62||Ne(y)?B(y):n(y)}function B(y){return y===47?(e.consume(y),ne):y===58||y===95||zt(y)?(e.consume(y),O):U(y)?(a=B,ie(y)):X(y)?(e.consume(y),B):ne(y)}function O(y){return y===45||y===46||y===58||y===95||Qe(y)?(e.consume(y),O):R(y)}function R(y){return y===61?(e.consume(y),L):U(y)?(a=R,ie(y)):X(y)?(e.consume(y),R):B(y)}function L(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),r=y,D):U(y)?(a=L,ie(y)):X(y)?(e.consume(y),L):(e.consume(y),j)}function D(y){return y===r?(e.consume(y),r=void 0,V):y===null?n(y):U(y)?(a=D,ie(y)):(e.consume(y),D)}function j(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||Ne(y)?B(y):(e.consume(y),j)}function V(y){return y===47||y===62||Ne(y)?B(y):n(y)}function ne(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function ie(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),fe}function fe(y){return X(y)?Z(e,He,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):He(y)}function He(y){return e.enter("htmlTextData"),a(y)}}var Jd,C1=x(()=>{Ze();ce();Jd={name:"htmlText",tokenize:Wk}});function nA(e){let t=-1,n=[];for(;++t<e.length;){let i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){let r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&Fe(e,0,e.length,n),e}function iA(e,t){let n=e.length,i=0,r,l,a,o;for(;n--;)if(r=e[n][1],l){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(l=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(a=n);let u={type:e[l][1].type==="labelLink"?"link":"image",start:H({},e[l][1].start),end:H({},e[e.length-1][1].end)},c={type:"label",start:H({},e[l][1].start),end:H({},e[a][1].end)},s={type:"labelText",start:H({},e[l+i+2][1].end),end:H({},e[a-2][1].start)};return o=[["enter",u,t],["enter",c,t]],o=ut(o,e.slice(l+1,l+i+3)),o=ut(o,[["enter",s,t]]),o=ut(o,el(t.parser.constructs.insideSpan.null,e.slice(l+i+4,a-3),t)),o=ut(o,[["exit",s,t],e[a-2],e[a-1],["exit",c,t]]),o=ut(o,e.slice(a+1)),o=ut(o,[["exit",u,t]]),Fe(e,l,e.length,o),e}function rA(e,t,n){let i=this,r=i.events.length,l,a;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){l=i.events[r][1];break}return o;function o(d){return l?l._inactive?p(d):(a=i.parser.defined.includes(Mn(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),u):n(d)}function u(d){return d===40?e.attempt($k,s,a?s:p)(d):d===91?e.attempt(eA,s,a?c:p)(d):a?s(d):p(d)}function c(d){return e.attempt(tA,s,p)(d)}function s(d){return t(d)}function p(d){return l._balanced=!0,n(d)}}function lA(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),r}function r(p){return Ne(p)?Ii(e,l)(p):l(p)}function l(p){return p===41?s(p):Ku(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return Ne(p)?Ii(e,u)(p):s(p)}function o(p){return n(p)}function u(p){return p===34||p===39||p===40?Ju(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):s(p)}function c(p){return Ne(p)?Ii(e,s)(p):s(p)}function s(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function aA(e,t,n){let i=this;return r;function r(o){return Iu.call(i,e,l,a,"reference","referenceMarker","referenceString")(o)}function l(o){return i.parser.defined.includes(Mn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function a(o){return n(o)}}function oA(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),r}function r(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}var Ji,$k,eA,tA,Pu=x(()=>{jd();Yd();Vd();Xd();ce();hi();Hu();qu();Ji={name:"labelEnd",resolveAll:nA,resolveTo:iA,tokenize:rA},$k={tokenize:lA},eA={tokenize:aA},tA={tokenize:oA}});function uA(e,t,n){let i=this;return r;function r(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}var Pd,z1=x(()=>{Pu();Pd={name:"labelStartImage",resolveAll:Ji.resolveAll,tokenize:uA}});function sA(e,t,n){let i=this;return r;function r(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(a):t(a)}}var Fd,O1=x(()=>{Pu();Fd={name:"labelStartLink",resolveAll:Ji.resolveAll,tokenize:sA}});function cA(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Z(e,t,"linePrefix")}}var Ra,N1=x(()=>{Ze();Ra={name:"lineEnding",tokenize:cA}});function fA(e,t,n){let i=0,r;return l;function l(c){return e.enter("thematicBreak"),a(c)}function a(c){return r=c,o(c)}function o(c){return c===r?(e.enter("thematicBreakSequence"),u(c)):i>=3&&(c===null||U(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===r?(e.consume(c),i++,u):(e.exit("thematicBreakSequence"),X(c)?Z(e,o,"whitespace")(c):o(c))}}var Pi,Wd=x(()=>{Ze();ce();Pi={name:"thematicBreak",tokenize:fA}});function hA(e,t,n){let i=this,r=i.events[i.events.length-1],l=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,a=0;return o;function o(f){let w=i.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||f===i.containerState.marker:Ca(f)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Pi,n,c)(f):c(f);if(!i.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return n(f)}function u(f){return Ca(f)&&++a<10?(e.consume(f),u):(!i.interrupt||a<2)&&(i.containerState.marker?f===i.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),c(f)):n(f)}function c(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||f,e.check(gi,i.interrupt?n:s,e.attempt(dA,d,p))}function s(f){return i.containerState.initialBlankLine=!0,l++,d(f)}function p(f){return X(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):n(f)}function d(f){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function mA(e,t,n){let i=this;return i.containerState._closeFlow=void 0,e.check(gi,r,l);function r(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Z(e,t,"listItemIndent",i.containerState.size+1)(o)}function l(o){return i.containerState.furtherBlankLines||!X(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(pA,t,a)(o))}function a(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Z(e,e.attempt(it,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function gA(e,t,n){let i=this;return Z(e,r,"listItemIndent",i.containerState.size+1);function r(l){let a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(l):n(l)}}function yA(e){e.exit(this.containerState.type)}function bA(e,t,n){let i=this;return Z(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(l){let a=i.events[i.events.length-1];return!X(l)&&a&&a[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}var it,dA,pA,R1=x(()=>{Ze();ce();ju();Wd();it={continuation:{tokenize:mA},exit:yA,name:"list",tokenize:hA},dA={partial:!0,tokenize:bA},pA={partial:!0,tokenize:gA}});function xA(e,t){let n=e.length,i,r,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);let a={type:"setextHeading",start:H({},e[i][1].start),end:H({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",a,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end=H({},e[l][1].end)):e[i][1]=a,e.push(["exit",a,t]),e}function vA(e,t,n){let i=this,r;return l;function l(c){let s=i.events.length,p;for(;s--;)if(i.events[s][1].type!=="lineEnding"&&i.events[s][1].type!=="linePrefix"&&i.events[s][1].type!=="content"){p=i.events[s][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),r=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===r?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),X(c)?Z(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||U(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}var Fu,D1=x(()=>{Ze();ce();Fu={name:"setextUnderline",resolveTo:xA,tokenize:vA}});var $d=x(()=>{f1();d1();ju();p1();h1();m1();y1();b1();x1();S1();E1();T1();w1();_1();C1();Pu();z1();O1();N1();R1();D1();Wd()});function SA(e){let t=this,n=e.attempt(gi,i,e.attempt(this.parser.constructs.flowInitial,r,Z(e,e.attempt(this.parser.constructs.flow,r,e.attempt(qd,r)),"linePrefix")));return n;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}var M1,U1=x(()=>{$d();Ze();M1={tokenize:SA}});function q1(e){return{resolveAll:j1(e==="text"?EA:void 0),tokenize:t};function t(n){let i=this,r=this.parser.constructs[e],l=n.attempt(r,a,o);return a;function a(s){return c(s)?l(s):o(s)}function o(s){if(s===null){n.consume(s);return}return n.enter("data"),n.consume(s),u}function u(s){return c(s)?(n.exit("data"),l(s)):(n.consume(s),u)}function c(s){if(s===null)return!0;let p=r[s],d=-1;if(p)for(;++d<p.length;){let f=p[d];if(!f.previous||f.previous.call(i,i.previous))return!0}return!1}}}function j1(e){return t;function t(n,i){let r=-1,l;for(;++r<=n.length;)l===void 0?n[r]&&n[r][1].type==="data"&&(l=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==l+2&&(n[l][1].end=n[r-1][1].end,n.splice(l+2,r-l-2),r=l+2),l=void 0);return e?e(n,i):n}}function EA(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){let i=e[n-1][1],r=t.sliceStream(i),l=r.length,a=-1,o=0,u;for(;l--;){let c=r[l];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)u=!0,o++;else if(c!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){let c={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:H({},i.end)};i.end=H({},c.start),i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}var L1,B1,H1,ep=x(()=>{L1={resolveAll:j1()},B1=q1("string"),H1=q1("text")});var tp={};As(tp,{attentionMarkers:()=>OA,contentInitial:()=>wA,disable:()=>NA,document:()=>TA,flow:()=>AA,flowInitial:()=>kA,insideSpan:()=>zA,string:()=>_A,text:()=>CA});var TA,wA,kA,AA,_A,CA,zA,OA,NA,Y1=x(()=>{$d();ep();TA={42:it,43:it,45:it,48:it,49:it,50:it,51:it,52:it,53:it,54:it,55:it,56:it,57:it,62:Yu},wA={91:Gd},kA={[-2]:Oa,[-1]:Oa,32:Oa},AA={35:Zd,42:Pi,45:[Fu,Pi],60:Id,61:Fu,95:Pi,96:Gu,126:Gu},_A={38:Xu,92:Vu},CA={[-5]:Ra,[-4]:Ra,[-3]:Ra,33:Pd,38:Xu,42:za,60:[Ld,Jd],91:Fd,92:[Qd,Vu],93:Ji,95:za,96:Bd},zA={null:[za,L1]},OA={null:[42,95]},NA={null:[]}});function V1(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},r={},l=[],a=[],o=[],u=!0,c={attempt:B(_),check:B(z),consume:S,enter:T,exit:v,interrupt:B(z,{interrupt:!0})},s={code:null,containerState:{},defineSkip:h,events:[],now:A,parser:e,previous:null,sliceSerialize:w,sliceStream:E,write:f},p=t.tokenize.call(s,c),d;return t.resolveAll&&l.push(t),s;function f(D){return a=ut(a,D),g(),a[a.length-1]!==null?[]:(O(t,0),s.events=el(l,s.events,s),s.events)}function w(D,j){return DA(E(D),j)}function E(D){return RA(a,D)}function A(){let{_bufferIndex:D,_index:j,line:V,column:ne,offset:ie}=i;return{_bufferIndex:D,_index:j,line:V,column:ne,offset:ie}}function h(D){r[D.line]=D.column,L()}function g(){let D;for(;i._index<a.length;){let j=a[i._index];if(typeof j=="string")for(D=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===D&&i._bufferIndex<j.length;)m(j.charCodeAt(i._bufferIndex));else m(j)}}function m(D){u=void 0,d=D,p=p(D)}function S(D){U(D)?(i.line++,i.column=1,i.offset+=D===-3?2:1,L()):D!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===a[i._index].length&&(i._bufferIndex=-1,i._index++)),s.previous=D,u=!0}function T(D,j){let V=j||{};return V.type=D,V.start=A(),s.events.push(["enter",V,s]),o.push(V),V}function v(D){let j=o.pop();return j.end=A(),s.events.push(["exit",j,s]),j}function _(D,j){O(D,j.from)}function z(D,j){j.restore()}function B(D,j){return V;function V(ne,ie,fe){let He,y,Nt,dn;return Array.isArray(ne)?bt(ne):"tokenize"in ne?bt([ne]):b(ne);function b(Ke){return dl;function dl(pn){let Ei=pn!==null&&Ke[pn],ir=pn!==null&&Ke.null,ws=[...Array.isArray(Ei)?Ei:Ei?[Ei]:[],...Array.isArray(ir)?ir:ir?[ir]:[]];return bt(ws)(pn)}}function bt(Ke){return He=Ke,y=0,Ke.length===0?fe:Si(Ke[y])}function Si(Ke){return dl;function dl(pn){return dn=R(),Nt=Ke,Ke.partial||(s.currentConstruct=Ke),Ke.name&&s.parser.constructs.disable.null.includes(Ke.name)?Pa(pn):Ke.tokenize.call(j?Object.assign(Object.create(s),j):s,c,Ts,Pa)(pn)}}function Ts(Ke){return u=!0,D(Nt,dn),ie}function Pa(Ke){return u=!0,dn.restore(),++y<He.length?Si(He[y]):fe}}}function O(D,j){D.resolveAll&&!l.includes(D)&&l.push(D),D.resolve&&Fe(s.events,j,s.events.length-j,D.resolve(s.events.slice(j),s)),D.resolveTo&&(s.events=D.resolveTo(s.events,s))}function R(){let D=A(),j=s.previous,V=s.currentConstruct,ne=s.events.length,ie=Array.from(o);return{from:ne,restore:fe};function fe(){i=D,s.previous=j,s.currentConstruct=V,s.events.length=ne,o=ie,L()}}function L(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function RA(e,t){let n=t.start._index,i=t.start._bufferIndex,r=t.end._index,l=t.end._bufferIndex,a;if(n===r)a=[e[n].slice(i,l)];else{if(a=e.slice(n,r),i>-1){let o=a[0];typeof o=="string"?a[0]=o.slice(i):a.shift()}l>0&&a.push(e[r].slice(0,l))}return a}function DA(e,t){let n=-1,i=[],r;for(;++n<e.length;){let l=e[n],a;if(typeof l=="string")a=l;else switch(l){case-5:{a="\r";break}case-4:{a=`
|
|
11
|
-
`;break}case-3:{
|
|
12
|
-
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&r)continue;a=" ";break}default:a=String.fromCharCode(l)}r=l===-2,i.push(a)}return i.join("")}var X1=x(()=>{ce();hi();qu()});function np(e){let i={constructs:Fb([tp,...(e||{}).extensions||[]]),content:r(r1),defined:[],document:r(o1),flow:r(M1),lazy:{},string:r(B1),text:r(H1)};return i;function r(l){return a;function a(o){return V1(i,l,o)}}}var G1=x(()=>{Wb();l1();u1();U1();ep();Y1();X1()});function ip(e){for(;!Zu(e););return e}var Q1=x(()=>{Hd()});function rp(){let e=1,t="",n=!0,i;return r;function r(l,a,o){let u=[],c,s,p,d,f;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),p=0,t="",n&&(l.charCodeAt(0)===65279&&p++,n=void 0);p<l.length;){if(Z1.lastIndex=p,c=Z1.exec(l),d=c&&c.index!==void 0?c.index:l.length,f=l.charCodeAt(d),!c){t=l.slice(p);break}if(f===10&&p===d&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),p<d&&(u.push(l.slice(p,d)),e+=d-p),f){case 0:{u.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,u.push(-2);e++<s;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:i=!0,e=1}p=d+1}return o&&(i&&u.push(-5),t&&u.push(t),u.push(null)),u}}var Z1,K1=x(()=>{Z1=/[\0\t\n\r]/g});var I1=x(()=>{G1();Q1();K1()});function J1(e){return e.replace(MA,UA)}function UA(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let r=n.charCodeAt(1),l=r===120||r===88;return Bu(n.slice(l?2:1),l?16:10)}return $r(n)||e}var MA,P1=x(()=>{Lu();Md();MA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi});function lp(e,t,n){return typeof t!="string"&&(n=t,t=void 0),LA(n)(ip(np(n).document().write(rp()(e,t,!0))))}function LA(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(lh),autolinkProtocol:B,autolinkEmail:B,atxHeading:l(nh),blockQuote:l(pn),characterEscape:B,characterReference:B,codeFenced:l(Ei),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(Ei,a),codeText:l(ir,a),codeTextData:B,data:B,codeFlowValue:B,definition:l(ws),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(oE),hardBreakEscape:l(ih),hardBreakTrailing:l(ih),htmlFlow:l(rh,a),htmlFlowData:B,htmlText:l(rh,a),htmlTextData:B,image:l(uE),label:a,link:l(lh),listItem:l(sE),listItemValue:d,listOrdered:l(ah,p),listUnordered:l(ah),paragraph:l(cE),reference:b,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(nh),strong:l(fE),thematicBreak:l(pE)},exit:{atxHeading:u(),atxHeadingSequence:T,autolink:u(),autolinkEmail:dl,autolinkProtocol:Ke,blockQuote:u(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Si,characterReferenceMarkerNumeric:Si,characterReferenceValue:Ts,characterReference:Pa,codeFenced:u(A),codeFencedFence:E,codeFencedFenceInfo:f,codeFencedFenceMeta:w,codeFlowValue:O,codeIndented:u(h),codeText:u(V),codeTextData:O,data:O,definition:u(),definitionDestinationString:S,definitionLabelString:g,definitionTitleString:m,emphasis:u(),hardBreakEscape:u(L),hardBreakTrailing:u(L),htmlFlow:u(D),htmlFlowData:O,htmlText:u(j),htmlTextData:O,image:u(ie),label:He,labelText:fe,lineEnding:R,link:u(ne),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:bt,resourceDestinationString:y,resourceTitleString:Nt,resource:dn,setextHeading:u(z),setextHeadingLineSequence:_,setextHeadingText:v,strong:u(),thematicBreak:u()}};$1(t,(e||{}).mdastExtensions||[]);let n={};return i;function i(k){let M={type:"root",children:[]},G={stack:[M],tokenStack:[],config:t,enter:o,exit:c,buffer:a,resume:s,data:n},ee=[],me=-1;for(;++me<k.length;)if(k[me][1].type==="listOrdered"||k[me][1].type==="listUnordered")if(k[me][0]==="enter")ee.push(me);else{let Gt=ee.pop();me=r(k,Gt,me)}for(me=-1;++me<k.length;){let Gt=t[k[me][0]];W1.call(Gt,k[me][1].type)&&Gt[k[me][1].type].call(Object.assign({sliceSerialize:k[me][2].sliceSerialize},G),k[me][1])}if(G.tokenStack.length>0){let Gt=G.tokenStack[G.tokenStack.length-1];(Gt[1]||F1).call(G,void 0,Gt[0])}for(M.position={start:yi(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:yi(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)M=t.transforms[me](M)||M;return M}function r(k,M,G){let ee=M-1,me=-1,Gt=!1,Ti,hn,pl,hl;for(;++ee<=G;){let xt=k[ee];switch(xt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xt[0]==="enter"?me++:me--,hl=void 0;break}case"lineEndingBlank":{xt[0]==="enter"&&(Ti&&!hl&&!me&&!pl&&(pl=ee),hl=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:hl=void 0}if(!me&&xt[0]==="enter"&&xt[1].type==="listItemPrefix"||me===-1&&xt[0]==="exit"&&(xt[1].type==="listUnordered"||xt[1].type==="listOrdered")){if(Ti){let rr=ee;for(hn=void 0;rr--;){let mn=k[rr];if(mn[1].type==="lineEnding"||mn[1].type==="lineEndingBlank"){if(mn[0]==="exit")continue;hn&&(k[hn][1].type="lineEndingBlank",Gt=!0),mn[1].type="lineEnding",hn=rr}else if(!(mn[1].type==="linePrefix"||mn[1].type==="blockQuotePrefix"||mn[1].type==="blockQuotePrefixWhitespace"||mn[1].type==="blockQuoteMarker"||mn[1].type==="listItemIndent"))break}pl&&(!hn||pl<hn)&&(Ti._spread=!0),Ti.end=Object.assign({},hn?k[hn][1].start:xt[1].end),k.splice(hn||ee,0,["exit",Ti,xt[2]]),ee++,G++}if(xt[1].type==="listItemPrefix"){let rr={type:"listItem",_spread:!1,start:Object.assign({},xt[1].start),end:void 0};Ti=rr,k.splice(ee,0,["enter",rr,xt[2]]),ee++,G++,pl=void 0,hl=!0}}}return k[M][1]._spread=Gt,G}function l(k,M){return G;function G(ee){o.call(this,k(ee),ee),M&&M.call(this,ee)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(k,M,G){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([M,G||void 0]),k.position={start:yi(M.start),end:void 0}}function u(k){return M;function M(G){k&&k.call(this,G),c.call(this,G)}}function c(k,M){let G=this.stack.pop(),ee=this.tokenStack.pop();if(ee)ee[0].type!==k.type&&(M?M.call(this,k,ee[0]):(ee[1]||F1).call(this,k,ee[0]));else throw new Error("Cannot close `"+k.type+"` ("+pi({start:k.start,end:k.end})+"): it\u2019s not open");G.position.end=yi(k.end)}function s(){return Dd(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function d(k){if(this.data.expectingFirstListItemValue){let M=this.stack[this.stack.length-2];M.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function f(){let k=this.resume(),M=this.stack[this.stack.length-1];M.lang=k}function w(){let k=this.resume(),M=this.stack[this.stack.length-1];M.meta=k}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){let k=this.resume(),M=this.stack[this.stack.length-1];M.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){let k=this.resume(),M=this.stack[this.stack.length-1];M.value=k.replace(/(\r?\n|\r)$/g,"")}function g(k){let M=this.resume(),G=this.stack[this.stack.length-1];G.label=M,G.identifier=Mn(this.sliceSerialize(k)).toLowerCase()}function m(){let k=this.resume(),M=this.stack[this.stack.length-1];M.title=k}function S(){let k=this.resume(),M=this.stack[this.stack.length-1];M.url=k}function T(k){let M=this.stack[this.stack.length-1];if(!M.depth){let G=this.sliceSerialize(k).length;M.depth=G}}function v(){this.data.setextHeadingSlurpLineEnding=!0}function _(k){let M=this.stack[this.stack.length-1];M.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function B(k){let G=this.stack[this.stack.length-1].children,ee=G[G.length-1];(!ee||ee.type!=="text")&&(ee=dE(),ee.position={start:yi(k.start),end:void 0},G.push(ee)),this.stack.push(ee)}function O(k){let M=this.stack.pop();M.value+=this.sliceSerialize(k),M.position.end=yi(k.end)}function R(k){let M=this.stack[this.stack.length-1];if(this.data.atHardBreak){let G=M.children[M.children.length-1];G.position.end=yi(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(M.type)&&(B.call(this,k),O.call(this,k))}function L(){this.data.atHardBreak=!0}function D(){let k=this.resume(),M=this.stack[this.stack.length-1];M.value=k}function j(){let k=this.resume(),M=this.stack[this.stack.length-1];M.value=k}function V(){let k=this.resume(),M=this.stack[this.stack.length-1];M.value=k}function ne(){let k=this.stack[this.stack.length-1];if(this.data.inReference){let M=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=M,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function ie(){let k=this.stack[this.stack.length-1];if(this.data.inReference){let M=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=M,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function fe(k){let M=this.sliceSerialize(k),G=this.stack[this.stack.length-2];G.label=J1(M),G.identifier=Mn(M).toLowerCase()}function He(){let k=this.stack[this.stack.length-1],M=this.resume(),G=this.stack[this.stack.length-1];if(this.data.inReference=!0,G.type==="link"){let ee=k.children;G.children=ee}else G.alt=M}function y(){let k=this.resume(),M=this.stack[this.stack.length-1];M.url=k}function Nt(){let k=this.resume(),M=this.stack[this.stack.length-1];M.title=k}function dn(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function bt(k){let M=this.resume(),G=this.stack[this.stack.length-1];G.label=M,G.identifier=Mn(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function Si(k){this.data.characterReferenceType=k.type}function Ts(k){let M=this.sliceSerialize(k),G=this.data.characterReferenceType,ee;G?(ee=Bu(M,G==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ee=$r(M);let me=this.stack[this.stack.length-1];me.value+=ee}function Pa(k){let M=this.stack.pop();M.position.end=yi(k.end)}function Ke(k){O.call(this,k);let M=this.stack[this.stack.length-1];M.url=this.sliceSerialize(k)}function dl(k){O.call(this,k);let M=this.stack[this.stack.length-1];M.url="mailto:"+this.sliceSerialize(k)}function pn(){return{type:"blockquote",children:[]}}function Ei(){return{type:"code",lang:null,meta:null,value:""}}function ir(){return{type:"inlineCode",value:""}}function ws(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function oE(){return{type:"emphasis",children:[]}}function nh(){return{type:"heading",depth:0,children:[]}}function ih(){return{type:"break"}}function rh(){return{type:"html",value:""}}function uE(){return{type:"image",title:null,url:"",alt:null}}function lh(){return{type:"link",title:null,url:"",children:[]}}function ah(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function sE(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function cE(){return{type:"paragraph",children:[]}}function fE(){return{type:"strong",children:[]}}function dE(){return{type:"text",value:""}}function pE(){return{type:"thematicBreak"}}}function yi(e){return{line:e.line,column:e.column,offset:e.offset}}function $1(e,t){let n=-1;for(;++n<t.length;){let i=t[n];Array.isArray(i)?$1(e,i):BA(e,i)}}function BA(e,t){let n;for(n in t)if(W1.call(t,n))switch(n){case"canContainEols":{let i=t[n];i&&e[n].push(...i);break}case"transforms":{let i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{let i=t[n];i&&Object.assign(e[n],i);break}}}function F1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+pi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+pi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+pi({start:t.start,end:t.end})+") is still open")}var W1,ex=x(()=>{Ib();I1();Md();P1();Hu();Lu();_d();W1={}.hasOwnProperty});var tx=x(()=>{ex()});function Wu(e){let t=this;t.parser=n;function n(i){return lp(i,Hn(H(H({},t.data("settings")),e),{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}var nx=x(()=>{tx()});var ix=x(()=>{nx()});function rx(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}var lx=x(()=>{""});function ax(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
13
|
-
`}]}var
|
|
14
|
-
`:"",
|
|
15
|
-
`}),
|
|
16
|
-
`});let
|
|
17
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(
|
|
18
|
-
`}]}}var
|
|
19
|
-
`});++
|
|
20
|
-
`}),n.push(e[
|
|
21
|
-
`}),n}function
|
|
22
|
-
`},r)),l}var vv=x(()=>{cv();xv()});var Sv=x(()=>{vv()});function os(e,t){return e&&"run"in e?function(n,i){return P(this,null,function*(){let r=as(n,H({file:i},t));yield e.run(r,i)})}:function(n,i){return as(n,H({file:i},e||t))}}var Ev=x(()=>{Sv()});var Tv=x(()=>{Ev()});function yp(e){if(e)throw e}var wv=x(()=>{});var Dv=$e((KR,Rv)=>{"use strict";var us=Object.prototype.hasOwnProperty,Nv=Object.prototype.toString,kv=Object.defineProperty,Av=Object.getOwnPropertyDescriptor,_v=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Nv.call(t)==="[object Array]"},Cv=function(t){if(!t||Nv.call(t)!=="[object Object]")return!1;var n=us.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&us.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r=="undefined"||us.call(t,r)},zv=function(t,n){kv&&n.name==="__proto__"?kv(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ov=function(t,n){if(n==="__proto__")if(us.call(t,n)){if(Av)return Av(t,n).value}else return;return t[n]};Rv.exports=function e(){var t,n,i,r,l,a,o=arguments[0],u=1,c=arguments.length,s=!1;for(typeof o=="boolean"&&(s=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});u<c;++u)if(t=arguments[u],t!=null)for(n in t)i=Ov(o,n),r=Ov(t,n),o!==r&&(s&&r&&(Cv(r)||(l=_v(r)))?(l?(l=!1,a=i&&_v(i)?i:[]):a=i&&Cv(i)?i:{},zv(o,{name:n,newValue:e(s,a,r)})):typeof r!="undefined"&&zv(o,{name:n,newValue:r}));return o}});function Ua(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var Mv=x(()=>{});function bp(){let e=[],t={run:n,use:i};return t;function n(...r){let l=-1,a=r.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...r);function o(u,...c){let s=e[++l],p=-1;if(u){a(u);return}for(;++p<r.length;)(c[p]===null||c[p]===void 0)&&(c[p]=r[p]);r=c,s?Uv(s,o)(...c):a(null,...c)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function Uv(e,t){let n;return i;function i(...a){let o=e.length>a.length,u;o&&a.push(r);try{u=e.apply(this,a)}catch(c){let s=c;if(o&&n)throw s;return r(s)}o||(u&&u.then&&typeof u.then=="function"?u.then(l,r):u instanceof Error?r(u):l(u))}function r(a,...o){n||(n=!0,t(a,...o))}function l(a){r(null,a)}}var Lv=x(()=>{});var Bv=x(()=>{Lv()});function l_(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');La(e);let n=0,i=-1,r=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(l){n=r+1;break}}else i<0&&(l=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let a=-1,o=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(l){n=r+1;break}}else a<0&&(l=!0,a=r+1),o>-1&&(e.codePointAt(r)===t.codePointAt(o--)?o<0&&(i=r):(o=-1,i=a));return n===i?i=a:i<0&&(i=e.length),e.slice(n,i)}function a_(e){if(La(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function o_(e){La(e);let t=e.length,n=-1,i=0,r=-1,l=0,a;for(;t--;){let o=e.codePointAt(t);if(o===47){if(a){i=t+1;break}continue}n<0&&(a=!0,n=t+1),o===46?r<0?r=t:l!==1&&(l=1):r>-1&&(l=-1)}return r<0||n<0||l===0||l===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function u_(...e){let t=-1,n;for(;++t<e.length;)La(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":s_(n)}function s_(e){La(e);let t=e.codePointAt(0)===47,n=c_(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function c_(e,t){let n="",i=0,r=-1,l=0,a=-1,o,u;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(r===a-1||l===1))if(r!==a-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",i=0):(n=n.slice(0,u),i=n.length-1-n.lastIndexOf("/")),r=a,l=0;continue}}else if(n.length>0){n="",i=0,r=a,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,a):n=e.slice(r+1,a),i=a-r-1;r=a,l=0}else o===46&&l>-1?l++:l=-1}return n}function La(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var Jt,Hv=x(()=>{Jt={basename:l_,dirname:a_,extname:o_,join:u_,sep:"/"}});function f_(){return"/"}var qv,jv=x(()=>{qv={cwd:f_}});function il(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}var xp=x(()=>{});function Yv(e){if(typeof e=="string")e=new URL(e);else if(!il(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return d_(e)}function d_(e){if(e.hostname!==""){let i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let i=t.codePointAt(n+2);if(i===70||i===102){let r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}var Vv=x(()=>{xp();xp()});function Sp(e,t){if(e&&e.includes(Jt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Jt.sep+"`")}function Ep(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Xv(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function p_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var vp,Fi,Gv=x(()=>{Cd();Hv();jv();Vv();vp=["history","path","basename","stem","extname","dirname"],Fi=class{constructor(t){let n;t?il(t)?n={path:t}:typeof t=="string"||p_(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":qv.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<vp.length;){let l=vp[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let r;for(r in n)vp.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Jt.basename(this.path):void 0}set basename(t){Ep(t,"basename"),Sp(t,"basename"),this.path=Jt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Jt.dirname(this.path):void 0}set dirname(t){Xv(this.basename,"dirname"),this.path=Jt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Jt.extname(this.path):void 0}set extname(t){if(Sp(t,"extname"),Xv(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Jt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){il(t)&&(t=Yv(t)),Ep(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Jt.basename(this.path,this.extname):void 0}set stem(t){Ep(t,"stem"),Sp(t,"stem"),this.path=Jt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){let r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){let r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){let r=new Oe(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}});var Tp=x(()=>{Gv()});var Qv,Zv=x(()=>{Qv=(function(e){let i=this.constructor.prototype,r=i[e],l=function(){return r.apply(l,arguments)};return Object.setPrototypeOf(l,i),l})});function wp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ap(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Kv(e){if(!Ua(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Iv(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ss(e){return m_(e)?e:new Fi(e)}function m_(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function g_(e){return typeof e=="string"||y_(e)}function y_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var cs,h_,_p,Cp,Jv=x(()=>{wv();cs=de(Dv(),1);Mv();Bv();Tp();Zv();h_={}.hasOwnProperty,_p=class e extends Qv{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=bp()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let i=this.attachers[n];t.use(...i)}return t.data((0,cs.default)(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ap("data",this.frozen),this.namespace[t]=n,this):h_.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ap("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);let r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let n=ss(t),i=this.parser||this.Parser;return wp("parse",i),i(String(n),n)}process(t,n){let i=this;return this.freeze(),wp("process",this.parser||this.Parser),kp("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(l,a){let o=ss(t),u=i.parse(o);i.run(u,o,function(s,p,d){if(s||!p||!d)return c(s);let f=p,w=i.stringify(f,d);g_(w)?d.value=w:d.result=w,c(s,d)});function c(s,p){s||!p?a(s):l?l(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),wp("processSync",this.parser||this.Parser),kp("processSync",this.compiler||this.Compiler),this.process(t,r),Iv("processSync","process",n),i;function r(l,a){n=!0,yp(l),i=a}}run(t,n,i){Kv(t),this.freeze();let r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(a,o){let u=ss(n);r.run(t,u,c);function c(s,p,d){let f=p||t;s?o(s):a?a(f):i(void 0,f,d)}}}runSync(t,n){let i=!1,r;return this.run(t,n,l),Iv("runSync","run",i),r;function l(a,o){yp(a),r=o,i=!0}}stringify(t,n){this.freeze();let i=ss(n),r=this.compiler||this.Compiler;return kp("stringify",r),Kv(t),r(t,i)}use(t,...n){let i=this.attachers,r=this.namespace;if(Ap("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){let[s,...p]=c;u(s,p)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(r.settings=(0,cs.default)(!0,r.settings,c.settings))}function o(c){let s=-1;if(c!=null)if(Array.isArray(c))for(;++s<c.length;){let p=c[s];l(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,s){let p=-1,d=-1;for(;++p<i.length;)if(i[p][0]===c){d=p;break}if(d===-1)i.push([c,...s]);else if(s.length>0){let[f,...w]=s,E=i[d][1];Ua(E)&&Ua(f)&&(f=(0,cs.default)(!0,E,f)),i[d]=[c,f,...w]}}}},Cp=new _p().freeze()});var Pv=x(()=>{Jv()});function zp(e){let t=S_(e),n=E_(e);return T_(t.runSync(t.parse(n),n),e)}function S_(e){let t=e.rehypePlugins||Fv,n=e.remarkPlugins||Fv,i=e.remarkRehypeOptions?H(H({},e.remarkRehypeOptions),Wv):Wv;return Cp().use(Wu).use(n).use(os,i).use(t)}function E_(e){let t=e.children||"",n=new Fi;return typeof t=="string"?n.value=t:(""+t,void 0),n}function T_(e,t){let n=t.allowedElements,i=t.allowElement,r=t.components,l=t.disallowedElements,a=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||eS;for(let s of v_)Object.hasOwn(t,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+b_+s.id,void 0);return n&&l&&void 0,Ma(e,c),Od(e,{Fragment:rl.Fragment,components:r,ignoreInvalidStyle:!0,jsx:rl.jsx,jsxs:rl.jsxs,passKeys:!0,passNode:!0});function c(s,p,d){if(s.type==="raw"&&d&&typeof p=="number")return a?d.children.splice(p,1):d.children[p]={type:"text",value:s.value},p;if(s.type==="element"){let f;for(f in Aa)if(Object.hasOwn(Aa,f)&&Object.hasOwn(s.properties,f)){let w=s.properties[f],E=Aa[f];(E===null||E.includes(s.tagName))&&(s.properties[f]=u(String(w||""),f,s))}}if(s.type==="element"){let f=n?!n.includes(s.tagName):l?l.includes(s.tagName):!1;if(!f&&i&&typeof p=="number"&&(f=!i(s,p,d)),f&&d&&typeof p=="number")return o&&s.children?d.children.splice(p,1,...s.children):d.children.splice(p,1),p}}}function eS(e){let t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||i!==-1&&t>i||x_.test(e.slice(0,t))?e:""}var rl,$v,b_,Fv,Wv,x_,v_,tS=x(()=>{qb();Yb();rl=de(Ge(),1),$v=de(Qt(),1);ix();Tv();Pv();mp();Tp();b_="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Fv=[],Wv={allowDangerousHtml:!0},x_=/^(https?|ircs?|mailto|xmpp)$/i,v_=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}]});var nS=x(()=>{tS()});var Op,rt,ll=x(()=>{"use strict";Op=class{constructor(t=""){this.baseUrl=t}sendChatMessage(t,n,i,r,l,a){return P(this,null,function*(){try{let o=H({messages:[{type:"text",text:t}],navigate:!0,skillOverride:[{skillId:i,sandboxId:r}]},a&&{personaOverride:a}),u=yield fetch(`https://api.lua.dev/chat/generate/${n}?channel=dev`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify(o)});if(!u.ok)throw new Error(`HTTP error! status: ${u.status}`);return{success:!0,text:(yield u.json()).text||"No response received"}}catch(o){return console.error("Chat API error:",o),{success:!1,error:o instanceof Error?o.message:"Unknown error occurred"}}})}sendLocalChatMessage(t,n){return P(this,null,function*(){try{let i=yield fetch("/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:t,persona:n})});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return yield i.json()}catch(i){return console.error("Local chat API error:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}loadPersona(){return P(this,null,function*(){try{let t=yield fetch("/persona");if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return yield t.json()}catch(t){return console.error("Load persona error:",t),{success:!1,error:t instanceof Error?t.message:"Failed to load persona"}}})}savePersona(t){return P(this,null,function*(){try{let n=yield fetch("/persona",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:t})});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return yield n.json()}catch(n){return console.error("Save persona error:",n),{success:!1,error:n instanceof Error?n.message:"Failed to save persona"}}})}loadTools(){return P(this,null,function*(){try{let t=yield fetch("/tools");if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return yield t.json()}catch(t){return console.error("Load tools error:",t),{success:!1,error:t instanceof Error?t.message:"Failed to load tools"}}})}testTool(t,n,i,r,l,a){return P(this,null,function*(){try{let o={toolName:t,inputs:n,skillOverride:[{skillId:r,sandboxId:l}]},u=yield fetch(`https://api.lua.dev/tools/test/${i}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify(o)});if(!u.ok)throw new Error(`HTTP error! status: ${u.status}`);let c=yield u.json();return{success:!0,result:c.result||c}}catch(o){return console.error("Tool test error:",o),{success:!1,error:o instanceof Error?o.message:"Unknown error occurred"}}})}testLocalTool(t,n){return P(this,null,function*(){try{let i=yield fetch("/tools/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolName:t,inputs:n})});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return yield i.json()}catch(i){return console.error("Local tool test error:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}loadChatHistory(t,n){return P(this,null,function*(){try{console.log("ApiService: Loading chat history with API key:",t,"agentId:",n);let i=yield fetch(`https://api.lua.dev/chat/history/${n}`,{method:"GET",headers:{accept:"*/*",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Response status:",i.status),console.log("ApiService: Response headers:",i.headers),!i.ok){let l=yield i.text();throw console.error("ApiService: HTTP error response:",l),new Error(`HTTP error! status: ${i.status}`)}let r=yield i.json();return console.log("ApiService: Received data:",r),{success:!0,data:r}}catch(i){return console.error("ApiService: Chat history load error:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}clearChatHistory(t,n){return P(this,null,function*(){try{console.log("ApiService: Clearing chat history with API key:",t,"agentId:",n);let i=yield fetch(`https://api.lua.dev/chat/history/${n}`,{method:"DELETE",headers:{accept:"*/*",Authorization:`Bearer ${t}`}});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return{success:!0}}catch(i){return console.error("Clear chat history error:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}clearSandboxLogs(t,n,i){return P(this,null,function*(){try{console.log("ApiService: Clearing sandbox logs with API key:",t,"agentId:",n,"sandboxId:",i);let r=yield fetch(`http://localhost:3022/developer/skills/${n}/${i}/logs`,{method:"DELETE",headers:{accept:"application/json",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Clear logs response status:",r.status),!r.ok){let a=yield r.text();throw console.error("ApiService: HTTP error response:",a),new Error(`HTTP error! status: ${r.status}`)}let l=yield r.json();return console.log("ApiService: Clear logs response:",l),{success:!0,data:l}}catch(r){return console.error("ApiService: Clear sandbox logs error:",r),{success:!1,error:r instanceof Error?r.message:"Unknown error occurred"}}})}loadSandboxLogs(t,n,i,r=20){return P(this,null,function*(){try{console.log("ApiService: Loading sandbox logs with API key:",t,"agentId:",n,"sandboxId:",i);let l=yield fetch(`http://localhost:3022/developer/skills/${n}/${i}/logs?limit=${r}`,{method:"GET",headers:{accept:"application/json",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Logs response status:",l.status),!l.ok){let o=yield l.text();throw console.error("ApiService: HTTP error response:",o),new Error(`HTTP error! status: ${l.status}`)}let a=yield l.json();return console.log("ApiService: Received logs data:",a),{success:!0,data:a}}catch(l){return console.error("ApiService: Sandbox logs load error:",l),{success:!1,error:l instanceof Error?l.message:"Unknown error occurred"}}})}loadUserData(t,n){return P(this,null,function*(){try{console.log("ApiService: Loading user data with API key:",t,"agentId:",n),console.log("ApiService: API key length:",t==null?void 0:t.length),console.log("ApiService: API key starts with:",t==null?void 0:t.substring(0,10));let i=yield fetch(`http://localhost:3022/developer/user/data/agent/${n}`,{method:"GET",headers:{accept:"*/*",Authorization:`Bearer ${t}`}});if(console.log("ApiService: User data response status:",i.status),console.log("ApiService: Response headers:",Object.fromEntries(i.headers.entries())),!i.ok){let l=yield i.text();if(console.error("ApiService: HTTP error response:",l),i.status===401){console.log("ApiService: Trying alternative authentication method...");let a=yield fetch(`http://localhost:3022/developer/user/data/agent/${n}`,{method:"GET",headers:{accept:"*/*",Authorization:t}});if(a.ok){let o=yield a.json();return console.log("ApiService: Alternative auth successful:",o),{success:!0,data:o}}}throw new Error(`HTTP error! status: ${i.status}`)}let r=yield i.json();return console.log("ApiService: Received user data:",r),{success:!0,data:r}}catch(i){return console.error("ApiService: User data load error:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}updateUserData(t,n,i){return P(this,null,function*(){try{console.log("ApiService: Updating user data with API key:",t,"agentId:",n,"data:",i);let r=yield fetch(`http://localhost:3022/developer/user/data/agent/${n}`,{method:"PUT",headers:{accept:"*/*",Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify(i)});if(console.log("ApiService: Update user data response status:",r.status),!r.ok){let a=yield r.text();throw console.error("ApiService: HTTP error response:",a),new Error(`HTTP error! status: ${r.status}`)}let l=yield r.json();return console.log("ApiService: Updated user data response:",l),{success:!0,data:l}}catch(r){return console.error("ApiService: Update user data error:",r),{success:!1,error:r instanceof Error?r.message:"Unknown error occurred"}}})}clearUserData(t,n){return P(this,null,function*(){try{console.log("ApiService: Clearing user data with API key:",t,"agentId:",n);let i=yield fetch(`http://localhost:3022/developer/user/data/agent/${n}`,{method:"DELETE",headers:{accept:"*/*",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Clear user data response status:",i.status),!i.ok){let l=yield i.text();throw console.error("ApiService: HTTP error response:",l),new Error(`HTTP error! status: ${i.status}`)}let r=yield i.json();return console.log("ApiService: Clear user data response:",r),{success:!0,data:r}}catch(i){return console.error("ApiService: Clear user data error:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}},rt=new Op});var un,We,iS,rS=x(()=>{"use strict";un=de(Qt());nS();ll();We=de(Ge()),iS=({apiKey:e,agentId:t,skillId:n,sandboxId:i,persona:r})=>{let[l,a]=(0,un.useState)([]),[o,u]=(0,un.useState)(""),[c,s]=(0,un.useState)(!1),[p,d]=(0,un.useState)(!0),f=(0,un.useRef)(null),w=()=>{var T;(T=f.current)==null||T.scrollIntoView({behavior:"smooth"})};(0,un.useEffect)(()=>{w()},[l]),(0,un.useEffect)(()=>{E()},[e]);let E=()=>P(null,null,function*(){try{console.log("Loading chat history with API key:",e,"agentId:",t),d(!0);let T=yield rt.loadChatHistory(e,t);if(console.log("Chat history response:",T),T.success&&T.data){let v=T.data.map(_=>{var z;return{text:((z=_.content[0])==null?void 0:z.text)||"",isUser:_.role==="user",timestamp:new Date(_.createdAt)}});console.log("Converted history messages:",v),a(v)}else console.log("No history data or error:",T.error),a([{text:"\u{1F44B} Welcome! Start chatting to test your Lua skill. Your messages will be sent to the sandbox environment.",isUser:!1,timestamp:new Date}])}catch(T){console.error("Failed to load chat history:",T),a([{text:"\u{1F44B} Welcome! Start chatting to test your Lua skill. Your messages will be sent to the sandbox environment.",isUser:!1,timestamp:new Date}])}finally{d(!1)}}),A=()=>P(null,null,function*(){try{console.log("Clearing chat history with API key:",e,"agentId:",t);let T=yield rt.clearChatHistory(e,t);T.success?a([{text:"\u{1F44B} Welcome! Start chatting to test your Lua skill. Your messages will be sent to the sandbox environment.",isUser:!1,timestamp:new Date}]):alert("Failed to clear chat history: "+(T.error||"Unknown error"))}catch(T){console.error("Failed to clear chat history:",T),alert("Failed to clear chat history")}}),h=(T,v)=>{let _={text:T,isUser:v,timestamp:new Date};a(z=>[...z,_])},g=T=>P(null,null,function*(){if(T.trim()){h(T,!0),u(""),s(!0);try{let v=yield rt.sendLocalChatMessage(T,r);v.success?h(v.text||"No response received",!1):h(`\u274C ${v.error||"Failed to send message"}`,!1)}catch(v){h(`\u274C Error: ${v instanceof Error?v.message:"Unknown error"}`,!1)}finally{s(!1)}}}),m=T=>{T.preventDefault(),g(o)},S=T=>{T.key==="Enter"&&!T.shiftKey&&(T.preventDefault(),g(o))};return(0,We.jsxs)("div",{className:"chat-container",children:[(0,We.jsxs)("div",{className:"chat-header",children:[(0,We.jsx)("h1",{children:"Skill Dev Chat"}),(0,We.jsx)("p",{children:"Test your sandbox skill in real-time"}),(0,We.jsx)("button",{className:"clear-chat-button",onClick:A,disabled:p,title:"Clear chat history",children:"\u{1F5D1}\uFE0F"})]}),(0,We.jsxs)("div",{className:"chat-messages",children:[l.map((T,v)=>(0,We.jsx)("div",{className:`message ${T.isUser?"user":"assistant"}`,children:(0,We.jsx)("div",{className:"message-bubble",children:(0,We.jsx)(zp,{children:T.text})})},v)),c&&(0,We.jsx)("div",{className:"loading",children:"\u{1F916} Agent is typing..."}),(0,We.jsx)("div",{ref:f})]}),(0,We.jsx)("div",{className:"chat-input-container",children:(0,We.jsxs)("form",{className:"chat-input-form",onSubmit:m,children:[(0,We.jsx)("input",{type:"text",className:"chat-input",value:o,onChange:T=>u(T.target.value),onKeyDown:S,placeholder:"Type your message...",disabled:c}),(0,We.jsx)("button",{type:"submit",className:"send-button",disabled:c||!o.trim(),children:"Send"})]})})]})}});var Pt,Ba,Ha,fs=x(()=>{Pt=Object.create(null);Pt.open="0";Pt.close="1";Pt.ping="2";Pt.pong="3";Pt.message="4";Pt.upgrade="5";Pt.noop="6";Ba=Object.create(null);Object.keys(Pt).forEach(e=>{Ba[Pt[e]]=e});Ha={type:"error",data:"parser error"}});function aS(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function cS(e,t){if(oS&&e.data instanceof Blob)return e.data.arrayBuffer().then(aS).then(t);if(uS&&(e.data instanceof ArrayBuffer||sS(e.data)))return t(aS(e.data));qa(e,!1,n=>{Np||(Np=new TextEncoder),t(Np.encode(n))})}var oS,uS,sS,qa,lS,Np,fS=x(()=>{fs();oS=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",uS=typeof ArrayBuffer=="function",sS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,qa=({type:e,data:t},n,i)=>oS&&t instanceof Blob?n?i(t):lS(t,i):uS&&(t instanceof ArrayBuffer||sS(t))?n?i(t):lS(new Blob([t]),i):i(Pt[e]+(t||"")),lS=(e,t)=>{let n=new FileReader;return n.onload=function(){let i=n.result.split(",")[1];t("b"+(i||""))},n.readAsDataURL(e)}});var dS,ja,pS,hS=x(()=>{dS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ja=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let e=0;e<dS.length;e++)ja[dS.charCodeAt(e)]=e;pS=e=>{let t=e.length*.75,n=e.length,i,r=0,l,a,o,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),s=new Uint8Array(c);for(i=0;i<n;i+=4)l=ja[e.charCodeAt(i)],a=ja[e.charCodeAt(i+1)],o=ja[e.charCodeAt(i+2)],u=ja[e.charCodeAt(i+3)],s[r++]=l<<2|a>>4,s[r++]=(a&15)<<4|o>>2,s[r++]=(o&3)<<6|u&63;return c}});var w_,Ya,k_,mS,gS=x(()=>{fs();hS();w_=typeof ArrayBuffer=="function",Ya=(e,t)=>{if(typeof e!="string")return{type:"message",data:mS(e,t)};let n=e.charAt(0);return n==="b"?{type:"message",data:k_(e.substring(1),t)}:Ba[n]?e.length>1?{type:Ba[n],data:e.substring(1)}:{type:Ba[n]}:Ha},k_=(e,t)=>{if(w_){let n=pS(e);return mS(n,t)}else return{base64:!0,data:e}},mS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}}});function vS(){return new TransformStream({transform(e,t){cS(e,n=>{let i=n.length,r;if(i<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,i);else if(i<65536){r=new Uint8Array(3);let l=new DataView(r.buffer);l.setUint8(0,126),l.setUint16(1,i)}else{r=new Uint8Array(9);let l=new DataView(r.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(i))}e.data&&typeof e.data!="string"&&(r[0]|=128),t.enqueue(r),t.enqueue(n)})}})}function ds(e){return e.reduce((t,n)=>t+n.length,0)}function ps(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),i=0;for(let r=0;r<t;r++)n[r]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),n}function SS(e,t){Rp||(Rp=new TextDecoder);let n=[],i=0,r=-1,l=!1;return new TransformStream({transform(a,o){for(n.push(a);;){if(i===0){if(ds(n)<1)break;let u=ps(n,1);l=(u[0]&128)===128,r=u[0]&127,r<126?i=3:r===126?i=1:i=2}else if(i===1){if(ds(n)<2)break;let u=ps(n,2);r=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),i=3}else if(i===2){if(ds(n)<8)break;let u=ps(n,8),c=new DataView(u.buffer,u.byteOffset,u.length),s=c.getUint32(0);if(s>Math.pow(2,21)-1){o.enqueue(Ha);break}r=s*Math.pow(2,32)+c.getUint32(4),i=3}else{if(ds(n)<r)break;let u=ps(n,r);o.enqueue(Ya(l?u:Rp.decode(u),t)),i=0}if(r===0||r>e){o.enqueue(Ha);break}}}})}var yS,bS,xS,Rp,Dp,al=x(()=>{fS();gS();fs();yS="",bS=(e,t)=>{let n=e.length,i=new Array(n),r=0;e.forEach((l,a)=>{qa(l,!1,o=>{i[a]=o,++r===n&&t(i.join(yS))})})},xS=(e,t)=>{let n=e.split(yS),i=[];for(let r=0;r<n.length;r++){let l=Ya(n[r],t);if(i.push(l),l.type==="error")break}return i};Dp=4});function be(e){if(e)return A_(e)}function A_(e){for(var t in be.prototype)e[t]=be.prototype[t];return e}var Wi=x(()=>{be.prototype.on=be.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};be.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};be.prototype.off=be.prototype.removeListener=be.prototype.removeAllListeners=be.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,r=0;r<n.length;r++)if(i=n[r],i===t||i.fn===t){n.splice(r,1);break}return n.length===0&&delete this._callbacks["$"+e],this};be.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,r=n.length;i<r;++i)n[i].apply(this,t)}return this};be.prototype.emitReserved=be.prototype.emit;be.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};be.prototype.hasListeners=function(e){return!!this.listeners(e).length}});var Un,st,ES,$i=x(()=>{Un=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),st=typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")(),ES="arraybuffer"});function hs(e,...t){return t.reduce((n,i)=>(e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}function Ln(e,t){t.useNativeTimers?(e.setTimeoutFn=__.bind(st),e.clearTimeoutFn=C_.bind(st)):(e.setTimeoutFn=st.setTimeout.bind(st),e.clearTimeoutFn=st.clearTimeout.bind(st))}function TS(e){return typeof e=="string"?O_(e):Math.ceil((e.byteLength||e.size)*z_)}function O_(e){let t=0,n=0;for(let i=0,r=e.length;i<r;i++)t=e.charCodeAt(i),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(i++,n+=4);return n}function ms(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var __,C_,z_,er=x(()=>{$i();__=st.setTimeout,C_=st.clearTimeout;z_=1.33});function wS(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function kS(e){let t={},n=e.split("&");for(let i=0,r=n.length;i<r;i++){let l=n[i].split("=");t[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return t}var Mp=x(()=>{});var gs,Bn,Va=x(()=>{al();Wi();er();Mp();gs=class extends Error{constructor(t,n,i){super(t),this.description=n,this.context=i,this.type="TransportError"}},Bn=class extends be{constructor(t){super(),this.writable=!1,Ln(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,i){return super.emitReserved("error",new gs(t,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let n=Ya(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let n=wS(t);return n.length?"?"+n:""}}});var Xa,Up=x(()=>{Va();er();al();Xa=class extends Bn{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};xS(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,bS(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=ms()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}});var AS,_S,CS=x(()=>{AS=!1;try{AS=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){}_S=AS});function N_(){}function zS(){for(let e in bi.requests)bi.requests.hasOwnProperty(e)&&bi.requests[e].abort()}function OS(e){let t=e.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!t||_S))return new XMLHttpRequest}catch(n){}if(!t)try{return new st[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(n){}}var Lp,bi,R_,xi,ys=x(()=>{Up();Wi();er();$i();CS();Lp=class extends Xa{constructor(t){if(super(t),typeof location!="undefined"){let n=location.protocol==="https:",i=location.port;i||(i=n?"443":"80"),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,n){let i=this.request({method:"POST",data:t});i.on("success",n),i.on("error",(r,l)=>{this.onError("xhr post error",r,l)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=t}},bi=class e extends be{constructor(t,n,i){super(),this.createRequest=t,Ln(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;let n=hs(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&i.setRequestHeader(r,this._opts.extraHeaders[r])}}catch(r){}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{i.setRequestHeader("Accept","*/*")}catch(r){}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var r;i.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document!="undefined"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr=="undefined"||this._xhr===null)){if(this._xhr.onreadystatechange=N_,t)try{this._xhr.abort()}catch(n){}typeof document!="undefined"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};bi.requestsCount=0;bi.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",zS);else if(typeof addEventListener=="function"){let e="onpagehide"in st?"pagehide":"unload";addEventListener(e,zS,!1)}}R_=(function(){let e=OS({xdomain:!1});return e&&e.responseType!==null})(),xi=class extends Lp{constructor(t){super(t);let n=t&&t.forceBase64;this.supportsBinary=R_&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new bi(OS,this.uri(),t)}}});var NS,Hp,Bp,vi,bs=x(()=>{Va();er();al();$i();NS=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Hp=class extends Bn{get name(){return"websocket"}doOpen(){let t=this.uri(),n=this.opts.protocols,i=NS?{}:hs(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,i)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){let i=t[n],r=n===t.length-1;qa(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch(a){}r&&Un(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=ms()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}},Bp=st.WebSocket||st.MozWebSocket,vi=class extends Hp{createSocket(t,n,i){return NS?new Bp(t,n,i):n?new Bp(t,n):new Bp(t)}doWrite(t,n){this.ws.send(n)}}});var ol,qp=x(()=>{Va();$i();al();ol=class extends Bn{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let n=SS(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=t.readable.pipeThrough(n).getReader(),r=vS();r.readable.pipeTo(t.writable),this._writer=r.writable.getWriter();let l=()=>{i.read().then(({done:o,value:u})=>{o||(this.onPacket(u),l())}).catch(o=>{})};l();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){let i=t[n],r=n===t.length-1;this._writer.write(i).then(()=>{r&&Un(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}});var jp,Yp=x(()=>{ys();bs();qp();jp={websocket:vi,webtransport:ol,polling:xi}});function ul(e){if(e.length>8e3)throw"URI too long";let t=e,n=e.indexOf("["),i=e.indexOf("]");n!=-1&&i!=-1&&(e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length));let r=D_.exec(e||""),l={},a=14;for(;a--;)l[M_[a]]=r[a]||"";return n!=-1&&i!=-1&&(l.source=t,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=U_(l,l.path),l.queryKey=L_(l,l.query),l}function U_(e,t){let n=/\/{2,9}/g,i=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&i.splice(0,1),t.slice(-1)=="/"&&i.splice(i.length-1,1),i}function L_(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,r,l){r&&(n[r]=l)}),n}var D_,M_,Vp=x(()=>{D_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,M_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]});var Xp,xs,tr,vs,sl,Gp=x(()=>{Yp();er();Mp();Vp();Wi();al();$i();Xp=typeof addEventListener=="function"&&typeof removeEventListener=="function",xs=[];Xp&&addEventListener("offline",()=>{xs.forEach(e=>e())},!1);tr=class e extends be{constructor(t,n){if(super(),this.binaryType=ES,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){let i=ul(t);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=ul(n.host).host);Ln(this,n),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(i=>{let r=i.prototype.name;this.transports.push(r),this._transportsByName[r]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=kS(this.opts.query)),Xp&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},xs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let n=Object.assign({},this.opts.query);n.EIO=Dp,n.transport=t,this.id&&(n.sid=this.id);let i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){let r=this.writeBuffer[i].data;if(r&&(n+=TS(r)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Un(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,i){return this._sendPacket("message",t,n,i),this}send(t,n,i){return this._sendPacket("message",t,n,i),this}_sendPacket(t,n,i,r){if(typeof n=="function"&&(r=n,n=void 0),typeof i=="function"&&(r=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;let l={type:t,data:n,options:i};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),r&&this.once("flush",r),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Xp&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let i=xs.indexOf(this._offlineEventListener);i!==-1&&xs.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}};tr.protocol=Dp;vs=class extends tr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),i=!1;tr.priorWebsocketSuccess=!1;let r=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",p=>{if(!i)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;tr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(s(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function l(){i||(i=!0,s(),n.close(),n=null)}let a=p=>{let d=new Error("probe error: "+p);d.transport=n.name,l(),this.emitReserved("upgradeError",d)};function o(){a("transport closed")}function u(){a("socket closed")}function c(p){n&&p.name!==n.name&&l()}let s=()=>{n.removeListener("open",r),n.removeListener("error",a),n.removeListener("close",o),this.off("close",u),this.off("upgrading",c)};n.once("open",r),n.once("error",a),n.once("close",o),this.once("close",u),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let n=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&n.push(t[i]);return n}},sl=class extends vs{constructor(t,n={}){let i=typeof t=="object"?t:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(r=>jp[r]).filter(r=>!!r)),super(t,i)}}});var RS=x(()=>{Up()});var QD,Ss=x(()=>{Gp();Gp();Va();Yp();er();Vp();$i();RS();ys();ys();bs();bs();qp();QD=sl.protocol});function DS(e,t="",n){let i=e;n=n||typeof location!="undefined"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n!="undefined"?e=n.protocol+"//"+e:e="https://"+e),i=ul(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";let l=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+l+":"+i.port+t,i.href=i.protocol+"://"+l+(n&&n.port===i.port?"":":"+i.port),i}var MS=x(()=>{Ss()});function Qa(e){return H_&&(e instanceof ArrayBuffer||q_(e))||j_&&e instanceof Blob||Y_&&e instanceof File}function Ga(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(Ga(e[n]))return!0;return!1}if(Qa(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ga(e.toJSON(),!0);for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Ga(e[n]))return!0;return!1}var H_,q_,US,j_,Y_,Qp=x(()=>{H_=typeof ArrayBuffer=="function",q_=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,US=Object.prototype.toString,j_=typeof Blob=="function"||typeof Blob!="undefined"&&US.call(Blob)==="[object BlobConstructor]",Y_=typeof File=="function"||typeof File!="undefined"&&US.call(File)==="[object FileConstructor]"});function LS(e){let t=[],n=e.data,i=e;return i.data=Zp(n,t),i.attachments=t.length,{packet:i,buffers:t}}function Zp(e,t){if(!e)return e;if(Qa(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=new Array(e.length);for(let i=0;i<e.length;i++)n[i]=Zp(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){let n={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=Zp(e[i],t));return n}return e}function BS(e,t){return e.data=Kp(e.data,t),delete e.attachments,e}function Kp(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Kp(e[n],t);else if(typeof e=="object")for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Kp(e[n],t));return e}var HS=x(()=>{Qp()});var Fp={};As(Fp,{Decoder:()=>Jp,Encoder:()=>Ip,PacketType:()=>$,protocol:()=>jS});function qS(e){return Object.prototype.toString.call(e)==="[object Object]"}var V_,jS,$,Ip,Jp,Pp,Es=x(()=>{Wi();HS();Qp();V_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],jS=5;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})($||($={}));Ip=class{constructor(t){this.replacer=t}encode(t){return(t.type===$.EVENT||t.type===$.ACK)&&Ga(t)?this.encodeAsBinary({type:t.type===$.EVENT?$.BINARY_EVENT:$.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===$.BINARY_EVENT||t.type===$.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){let n=LS(t),i=this.encodeAsString(n.packet),r=n.buffers;return r.unshift(i),r}};Jp=class e extends be{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);let i=n.type===$.BINARY_EVENT;i||n.type===$.BINARY_ACK?(n.type=i?$.EVENT:$.ACK,this.reconstructor=new Pp(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Qa(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0,i={type:Number(t.charAt(0))};if($[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===$.BINARY_EVENT||i.type===$.BINARY_ACK){let l=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);let a=t.substring(l,n);if(a!=Number(a)||t.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(a)}if(t.charAt(n+1)==="/"){let l=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););i.nsp=t.substring(l,n)}else i.nsp="/";let r=t.charAt(n+1);if(r!==""&&Number(r)==r){let l=n+1;for(;++n;){let a=t.charAt(n);if(a==null||Number(a)!=a){--n;break}if(n===t.length)break}i.id=Number(t.substring(l,n+1))}if(t.charAt(++n)){let l=this.tryParse(t.substr(n));if(e.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(n){return!1}}static isPayloadValid(t,n){switch(t){case $.CONNECT:return qS(n);case $.DISCONNECT:return n===void 0;case $.CONNECT_ERROR:return typeof n=="string"||qS(n);case $.EVENT:case $.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&V_.indexOf(n[0])===-1);case $.ACK:case $.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Pp=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let n=BS(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}});function Ot(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Wp=x(()=>{});var X_,cl,$p=x(()=>{Es();Wp();Wi();X_=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),cl=class extends be{constructor(t,n,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[Ot(t,"open",this.onopen.bind(this)),Ot(t,"packet",this.onpacket.bind(this)),Ot(t,"error",this.onerror.bind(this)),Ot(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var i,r,l;if(X_.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let a={type:$.EVENT,data:n};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){let s=this.ids++,p=n.pop();this._registerAckCallback(s,p),a.id=s}let o=(r=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||r===void 0?void 0:r.writable,u=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!o||(u?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,n){var i;let r=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(r===void 0){this.acks[t]=n;return}let l=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===t&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},r),a=(...o)=>{this.io.clearTimeoutFn(l),n.apply(this,o)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((i,r)=>{let l=(a,o)=>a?r(a):i(o);l.withError=!0,n.push(l),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());let i={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((r,...l)=>i!==this._queue[0]?void 0:(r!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(r)):(this._queue.shift(),n&&n(null,...l)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:$.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(i=>String(i.id)===t)){let i=this.acks[t];delete this.acks[t],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case $.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case $.EVENT:case $.BINARY_EVENT:this.onevent(t);break;case $.ACK:case $.BINARY_ACK:this.onack(t);break;case $.DISCONNECT:this.ondisconnect();break;case $.CONNECT_ERROR:this.destroy();let i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){let n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let i of n)i.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let n=this,i=!1;return function(...r){i||(i=!0,n.packet({type:$.ACK,id:t,data:r}))}}onack(t){let n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:$.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let n=this._anyListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let i of n)i.apply(this,t.data)}}}});function nr(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}var YS=x(()=>{nr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};nr.prototype.reset=function(){this.attempts=0};nr.prototype.setMin=function(e){this.ms=e};nr.prototype.setMax=function(e){this.max=e};nr.prototype.setJitter=function(e){this.jitter=e}});var fl,VS=x(()=>{Ss();$p();Es();Wp();YS();Wi();fl=class extends be{constructor(t,n){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ln(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new nr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;let r=n.parser||Fp;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new sl(this.uri,this.opts);let n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;let r=Ot(n,"open",function(){i.onopen(),t&&t()}),l=o=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",o),t?t(o):this.maybeReconnectOnOpen()},a=Ot(n,"error",l);if(this._timeout!==!1){let o=this._timeout,u=this.setTimeoutFn(()=>{r(),l(new Error("timeout")),n.close()},o);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(r),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(Ot(t,"ping",this.onping.bind(this)),Ot(t,"data",this.ondata.bind(this)),Ot(t,"error",this.onerror.bind(this)),Ot(t,"close",this.onclose.bind(this)),Ot(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Un(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let i=this.nsps[t];return i?this._autoConnect&&!i.active&&i.connect():(i=new cl(this,t,n),this.nsps[t]=i),i}_destroy(t){let n=Object.keys(this.nsps);for(let i of n)if(this.nsps[i].active)return;this._close()}_packet(t){let n=this.encoder.encode(t);for(let i=0;i<n.length;i++)this.engine.write(n[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let n=this.backoff.duration();this._reconnecting=!0;let i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(r=>{r?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",r)):t.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}});function Ka(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let n=DS(e,t.path||"/socket.io"),i=n.source,r=n.id,l=n.path,a=Za[r]&&l in Za[r].nsps,o=t.forceNew||t["force new connection"]||t.multiplex===!1||a,u;return o?u=new fl(i,t):(Za[r]||(Za[r]=new fl(i,t)),u=Za[r]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}var Za,XS=x(()=>{MS();VS();$p();Es();Ss();Za={};Object.assign(Ka,{Manager:fl,Socket:cl,io:Ka,connect:Ka})});var gt,I,GS,QS=x(()=>{"use strict";gt=de(Qt());XS();ll();I=de(Ge()),GS=({apiKey:e,agentId:t,sandboxId:n})=>{let[i,r]=(0,gt.useState)([]),[l,a]=(0,gt.useState)(!1),[o,u]=(0,gt.useState)(new Set),[c,s]=(0,gt.useState)(!0),[p,d]=(0,gt.useState)(!1),f=(0,gt.useRef)(null),w=(0,gt.useRef)(null),E=(0,gt.useRef)(null),A=()=>{var m;(m=f.current)==null||m.scrollIntoView({behavior:"smooth"})},h=m=>{u(S=>{let T=new Set(S);return T.has(m)?T.delete(m):T.add(m),T})},g=()=>P(null,null,function*(){try{console.log("Clearing logs with API key:",e,"agentId:",t,"sandboxId:",n),d(!0);let m=yield rt.clearSandboxLogs(e,t,n);console.log("Clear logs response:",m),m.success?(r([]),u(new Set),console.log("Logs cleared successfully")):(console.error("Failed to clear logs:",m.error),alert("Failed to clear logs: "+(m.error||"Unknown error")))}catch(m){console.error("Failed to clear logs:",m),alert("Failed to clear logs")}finally{d(!1)}});return(0,gt.useEffect)(()=>{A()},[i]),(0,gt.useEffect)(()=>{e&&t&&n&&P(null,null,function*(){try{console.log("Loading initial logs with API key:",e,"agentId:",t,"sandboxId:",n),s(!0);let S=yield rt.loadSandboxLogs(e,t,n,100);if(console.log("Initial logs response:",S),S.success&&S.data){let T=S.data.logs.map(v=>({_id:v._id,id:v.id,timestamp:new Date(v.timestamp).toLocaleTimeString(),type:v.type,subType:v.subType,message:v.message,duration:v.duration,error:v.error,metadata:v.metadata}));console.log("Converted initial logs:",T),r(T)}else console.log("No initial logs or error:",S.error)}catch(S){console.error("Failed to load initial logs:",S)}finally{s(!1)}})},[e,t,n]),(0,gt.useEffect)(()=>{let m=()=>{try{let v=new WebSocket("ws://localhost:3000");w.current=v,v.onopen=()=>{console.log("Connected to CLI dev server"),a(!0)},v.onclose=()=>{console.log("Disconnected from CLI dev server")},v.onmessage=_=>{try{let z=JSON.parse(_.data);if(console.log("Received message from CLI:",z),z.type==="log"){let B={id:z.id||Date.now().toString(),timestamp:new Date(z.timestamp||Date.now()).toLocaleTimeString(),type:z.type||"log",subType:z.subType||"info",message:z.message||"No message",metadata:z.metadata||{},error:z.error};r(O=>[...O,B])}}catch(z){console.error("Failed to parse CLI WebSocket message:",z)}},v.onerror=_=>{console.error("CLI WebSocket error:",_)}}catch(v){console.error("Failed to connect to CLI dev server:",v)}},S=()=>{try{let v=Ka("wss://api.lua.dev/feed",{query:{apiKey:e,channel:"logs"}});E.current=v,v.on("connect",()=>{console.log("Connected to server log feed"),a(!0),T("\u{1F7E2} Connected to log feed","connected")}),v.on("disconnect",()=>{console.log("Disconnected from server log feed"),a(!1),T("\u{1F534} Disconnected from log feed","disconnected")}),v.on("log",_=>{let z="info",B="No message",O={},R="";if(_&&typeof _=="object"){let D=_.data||_;z=D.subType||"info",B=D.message||"No message",O=D.metadata||{},R=D.error||D.details||"",R&&typeof R=="object"&&(R=JSON.stringify(R,null,2))}else typeof _=="string"&&(B=_,z="info");let L={id:Date.now().toString(),timestamp:new Date().toLocaleTimeString(),type:"log",subType:z,message:B,metadata:O,error:R};r(D=>[...D,L])}),v.on("connect_error",_=>{T("\u{1F534} Connection failed","disconnected")})}catch(v){T("\u{1F534} Connection error","disconnected")}},T=(v,_)=>{let z=document.getElementById("logConnectionStatus");z&&(z.textContent=v,z.className=`log-connection-status ${_}`)};return m(),e&&t&&n&&S(),()=>{w.current&&w.current.close(),E.current&&E.current.disconnect()}},[e,t,n]),(0,I.jsxs)("div",{className:"log-messages",children:[(0,I.jsxs)("div",{className:"logs-header",children:[(0,I.jsxs)("div",{className:"logs-title",children:["Console Logs (",i.length,")"]}),(0,I.jsx)("div",{className:"logs-actions",children:(0,I.jsx)("button",{className:"clear-logs-button",onClick:g,disabled:p,title:"Clear all logs",children:p?"\u27F3":"\u{1F5D1}\uFE0F"})})]}),(0,I.jsxs)("div",{className:"log-content",children:[c?(0,I.jsxs)("div",{className:"no-logs",children:[(0,I.jsx)("div",{className:"no-logs-icon",children:"\u23F3"}),(0,I.jsx)("div",{className:"no-logs-text",children:"Loading logs..."}),(0,I.jsx)("div",{className:"no-logs-subtext",children:"Fetching recent logs from sandbox"})]}):i.length===0?(0,I.jsxs)("div",{className:"no-logs",children:[(0,I.jsx)("div",{className:"no-logs-icon",children:"\u{1F4CB}"}),(0,I.jsx)("div",{className:"no-logs-text",children:"No logs yet"}),(0,I.jsx)("div",{className:"no-logs-subtext",children:"Console logs will appear here when your skill runs"})]}):(0,I.jsx)(I.Fragment,{children:i.map(m=>{let S=o.has(m.id),T=m.metadata&&Object.keys(m.metadata).length>0,v=m.error&&m.error.trim()!=="",_=T||v;return(0,I.jsxs)("div",{className:`log-entry ${m.subType}`,children:[(0,I.jsxs)("div",{className:"log-main",onClick:()=>h(m.id),children:[(0,I.jsxs)("span",{className:"log-timestamp",children:["[",m.timestamp,"]"]}),(0,I.jsxs)("span",{className:"log-type",children:["[",m.subType.toUpperCase(),"]"]}),(0,I.jsx)("span",{className:`log-message ${S?"expanded":"ellipsed"}`,children:m.message}),(0,I.jsx)("span",{className:`expand-arrow ${S?"expanded":""}`,children:"\u25B6"})]}),S&&(0,I.jsxs)("div",{className:"log-details",children:[(0,I.jsxs)("div",{className:"full-message",children:[(0,I.jsx)("div",{className:"detail-label",children:"Message:"}),(0,I.jsx)("div",{className:"detail-content",children:m.message})]}),v&&(0,I.jsxs)("div",{className:"error-details",children:[(0,I.jsx)("div",{className:"detail-label",children:"Error:"}),(0,I.jsx)("div",{className:"detail-content",children:m.error})]}),T&&(0,I.jsxs)("div",{className:"metadata",children:[(0,I.jsx)("div",{className:"detail-label",children:"Metadata:"}),Object.entries(m.metadata).map(([z,B])=>(0,I.jsxs)("div",{className:"metadata-item",children:[(0,I.jsxs)("span",{className:"metadata-key",children:[z,":"]}),(0,I.jsx)("span",{className:"metadata-value",children:String(B)})]},z))]})]})]},m.id)})}),(0,I.jsx)("div",{ref:f})]}),(0,I.jsx)("div",{className:"log-footer-status",children:(0,I.jsx)("div",{id:"logConnectionStatus",className:"log-connection-status",children:"\u{1F7E1} Connecting..."})})]})}});var Ia,sn,ZS,KS=x(()=>{"use strict";Ia=de(Qt()),sn=de(Ge()),ZS=({persona:e,onSavePersona:t})=>{let[n,i]=(0,Ia.useState)(e),[r,l]=(0,Ia.useState)(!1);return(0,Ia.useEffect)(()=>{i(e)},[e]),(0,sn.jsxs)("div",{className:"persona-section",children:[(0,sn.jsxs)("div",{className:"persona-header",children:[(0,sn.jsx)("h3",{children:"Agent Persona"}),(0,sn.jsx)("div",{className:"persona-actions",children:(0,sn.jsx)("button",{className:"save-btn",onClick:()=>P(null,null,function*(){let o=n.trim();if(!o){alert("Persona cannot be empty");return}l(!0);try{(yield t(o))&&i(o)}finally{l(!1)}}),disabled:r,title:"Save persona",children:r?"\u27F3":"\u{1F4BE}"})})]}),(0,sn.jsx)("div",{className:"persona-content",children:(0,sn.jsx)("div",{className:"persona-edit",children:(0,sn.jsx)("textarea",{value:n,onChange:o=>i(o.target.value),placeholder:"Enter agent persona...",className:"persona-textarea"})})})]})}});var IS=x(()=>{});var cn,q,JS,PS=x(()=>{"use strict";cn=de(Qt());ll();IS();q=de(Ge()),JS=({apiKey:e,agentId:t,skillId:n,sandboxId:i})=>{let[r,l]=(0,cn.useState)([]),[a,o]=(0,cn.useState)(null),[u,c]=(0,cn.useState)({}),[s,p]=(0,cn.useState)(null),[d,f]=(0,cn.useState)(!1),[w,E]=(0,cn.useState)(!0),[A,h]=(0,cn.useState)(!1);(0,cn.useEffect)(()=>{g()},[]);let g=()=>P(null,null,function*(){try{E(!0);let L=yield(yield fetch("/tools")).json();L.success&&L.tools?l(L.tools):console.error("Failed to load tools:",L.error)}catch(R){console.error("Error loading tools:",R)}finally{E(!1)}}),m=R=>{let L={};R.inputSchema.properties&&Object.keys(R.inputSchema.properties).forEach(D=>{let j=R.inputSchema.properties[D];L[D]=S(j)}),c(L)},S=R=>{if(R.type==="object"&&R.properties){let L={};return Object.keys(R.properties).forEach(D=>{L[D]=S(R.properties[D])}),L}else return R.type==="number"?0:R.type==="boolean"?!1:""},T=R=>{o(R),m(R),p(null),h(!0)},v=()=>{h(!1),o(null),p(null)},_=(R,L,D)=>{c(j=>D?Hn(H({},j),{[R]:Hn(H({},j[R]),{[D]:L})}):Hn(H({},j),{[R]:L}))},z=()=>P(null,null,function*(){if(a){f(!0),p(null);try{let R=B(u,a.inputSchema),L=yield rt.testLocalTool(a.name,R);p(L)}catch(R){p({success:!1,error:R instanceof Error?R.message:"Unknown error occurred"})}finally{f(!1)}}}),B=(R,L)=>{var j,V;let D={};for(let[ne,ie]of Object.entries(R))if(ie&&typeof ie=="object"&&!Array.isArray(ie)){let fe=(j=L.properties)==null?void 0:j[ne];if(fe&&fe.type==="object"&&fe.properties){let He=B(ie,fe);Object.keys(He).length>0&&(D[ne]=He)}else D[ne]=ie}else{let fe=(V=L.properties)==null?void 0:V[ne];if((!L.required||!L.required.includes(ne))&&(ie===""||ie===null||ie===void 0))continue;D[ne]=ie}return D},O=(R,L,D)=>{var ne,ie;let j=D?((ne=u[R])==null?void 0:ne[D])||"":u[R]||"",V=D?(ie=L.required)==null?void 0:ie.includes(D):a==null?void 0:a.inputSchema.required.includes(R);if(L.type==="object"&&L.properties)return(0,q.jsxs)("div",{className:"nested-object",children:[(0,q.jsx)("div",{className:"nested-object-label",children:R}),(0,q.jsx)("div",{className:"nested-fields",children:Object.entries(L.properties).map(([fe,He])=>{var y;return(0,q.jsxs)("div",{className:"nested-field",children:[(0,q.jsxs)("label",{className:"nested-label",children:[fe,((y=L.required)==null?void 0:y.includes(fe))&&(0,q.jsx)("span",{className:"required",children:"*"})]}),O(R,He,fe),He.description&&(0,q.jsx)("div",{className:"input-description",children:He.description})]},fe)})})]});switch(L.type){case"number":return(0,q.jsx)("input",{type:"number",value:j,onChange:fe=>_(R,parseFloat(fe.target.value)||0,D),placeholder:L.description||`Enter ${D||R}`,className:"tool-input",required:V});case"boolean":return(0,q.jsx)("input",{type:"checkbox",checked:j,onChange:fe=>_(R,fe.target.checked,D),className:"tool-checkbox"});case"string":default:return(0,q.jsx)("input",{type:"text",value:j,onChange:fe=>_(R,fe.target.value,D),placeholder:L.description||`Enter ${D||R}`,className:"tool-input",required:V})}};return w?(0,q.jsx)("div",{className:"tools-page",children:(0,q.jsxs)("div",{className:"tools-loading",children:[(0,q.jsx)("div",{className:"loading-spinner"}),(0,q.jsx)("p",{children:"Loading tools..."})]})}):(0,q.jsx)("div",{className:"tools-page",children:A&&a?(0,q.jsxs)("div",{className:"tool-form",children:[(0,q.jsxs)("div",{className:"tool-form-header",children:[(0,q.jsx)("button",{className:"back-button",onClick:v,title:"Back to tools list",children:"\u2190"}),(0,q.jsx)("h3",{children:a.name})]}),(0,q.jsxs)("div",{className:"tool-form-content",children:[(0,q.jsx)("div",{className:"tool-info",children:(0,q.jsx)("p",{children:a.description})}),(0,q.jsxs)("div",{className:"tool-inputs",children:[(0,q.jsx)("h4",{children:"Input Parameters"}),Object.keys(a.inputSchema.properties||{}).length>0?(0,q.jsx)("div",{className:"input-fields",children:Object.entries(a.inputSchema.properties).map(([R,L])=>(0,q.jsxs)("div",{className:"input-field",children:[(0,q.jsxs)("label",{children:[R,a.inputSchema.required.includes(R)&&(0,q.jsx)("span",{className:"required",children:"*"})]}),O(R,L),L.description&&(0,q.jsx)("div",{className:"input-description",children:L.description})]},R))}):(0,q.jsx)("p",{className:"no-inputs",children:"This tool requires no input parameters."})]}),(0,q.jsx)("div",{className:"tool-actions",children:(0,q.jsx)("button",{onClick:z,disabled:d,className:"test-button",children:d?"Testing...":"Test Tool"})}),s&&(0,q.jsxs)("div",{className:"test-result",children:[(0,q.jsx)("h4",{children:"Test Result"}),(0,q.jsx)("div",{className:`result-content ${s.success?"success":"error"}`,children:s.success?(0,q.jsxs)("div",{children:[(0,q.jsx)("div",{className:"result-label",children:"\u2705 Success"}),(0,q.jsx)("pre",{className:"result-data",children:JSON.stringify(s.result,null,2)})]}):(0,q.jsxs)("div",{children:[(0,q.jsx)("div",{className:"result-label",children:"\u274C Error"}),(0,q.jsx)("div",{className:"result-error",children:s.error})]})})]})]})]}):(0,q.jsxs)("div",{className:"tools-list-view",children:[(0,q.jsxs)("div",{className:"tools-header",children:[(0,q.jsx)("h3",{children:"Available Tools"}),(0,q.jsx)("p",{children:"Click on a tool to test it"})]}),(0,q.jsx)("div",{className:"tools-grid",children:r.map(R=>(0,q.jsxs)("div",{className:"tool-card",onClick:()=>T(R),children:[(0,q.jsx)("div",{className:"tool-card-header",children:(0,q.jsx)("h4",{children:R.name})}),(0,q.jsx)("div",{className:"tool-card-body"})]},R.name))})]})})}});var yt,ae,eh,FS,WS=x(()=>{"use strict";yt=de(Qt());ll();ae=de(Ge()),eh=e=>e.trim()?e.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,t=>{let n="json-number";return/^"/.test(t)?/:$/.test(t)?n="json-key":n="json-string":/true|false/.test(t)?n="json-boolean":/null/.test(t)&&(n="json-null"),`<span class="${n}">${t}</span>`}):e,FS=({apiKey:e,agentId:t})=>{let[n,i]=(0,yt.useState)(null),[r,l]=(0,yt.useState)(!0),[a,o]=(0,yt.useState)(!1),[u,c]=(0,yt.useState)(!1),[s,p]=(0,yt.useState)(""),[d,f]=(0,yt.useState)(null),[w,E]=(0,yt.useState)(null),[A,h]=(0,yt.useState)(!1),g=(0,yt.useRef)(null),m=(0,yt.useRef)(null);(0,yt.useEffect)(()=>{S()},[e,t]);let S=()=>P(null,null,function*(){try{if(console.log("Loading user data with API key:",e,"agentId:",t),l(!0),f(null),!e||!t){console.error("Missing API key or agentId:",{apiKey:!!e,agentId:!!t}),f("Missing API key or agent ID"),p("{}");return}let O=yield rt.loadUserData(e,t);if(console.log("User data response:",O),O.success&&O.data){i(O.data);let R=O.data;p(JSON.stringify(R,null,2)),console.log("User data loaded successfully:",O.data),console.log("Data to display:",R)}else console.log("No user data or error:",O.error),f(O.error||"No user data found"),p("{}")}catch(O){console.error("Failed to load user data:",O),f(`Failed to load user data: ${O instanceof Error?O.message:"Unknown error"}`),p("{}")}finally{l(!1)}}),T=()=>P(null,null,function*(){try{console.log("Saving user data:",s),o(!0),f(null),E(null);let O=JSON.parse(s),R=yield rt.updateUserData(e,t,O);console.log("Save user data response:",R),R.success&&R.data?(i(R.data),p(JSON.stringify(R.data.data,null,2)),E("User data saved successfully!"),h(!1),setTimeout(()=>E(null),3e3)):f("Failed to save user data: "+(R.error||"Unknown error"))}catch(O){console.error("Failed to save user data:",O),O instanceof SyntaxError?f("Invalid JSON format. Please check your syntax."):f("Failed to save user data")}finally{o(!1)}}),v=()=>P(null,null,function*(){try{console.log("Clearing user data"),c(!0),f(null),E(null);let O=yield rt.clearUserData(e,t);console.log("Clear user data response:",O),O.success?(i(null),p("{}"),E("User data cleared successfully!"),h(!1),setTimeout(()=>E(null),3e3)):f("Failed to clear user data: "+(O.error||"Unknown error"))}catch(O){console.error("Failed to clear user data:",O),f("Failed to clear user data")}finally{c(!1)}}),_=O=>{p(O),h(!0),f(null),E(null),m.current&&(m.current.innerHTML=eh(O))},z=()=>{h(!0),setTimeout(()=>{g.current&&g.current.focus()},0)},B=()=>{g.current&&m.current&&(m.current.scrollTop=g.current.scrollTop,m.current.scrollLeft=g.current.scrollLeft)};return r?(0,ae.jsx)("div",{className:"user-data-panel",children:(0,ae.jsxs)("div",{className:"user-data-loading",children:[(0,ae.jsx)("div",{className:"loading-spinner"}),(0,ae.jsx)("p",{children:"Loading user data..."})]})}):(0,ae.jsxs)("div",{className:"user-data-panel",children:[(0,ae.jsxs)("div",{className:"user-data-header",children:[(0,ae.jsx)("h3",{children:"User Data"}),(0,ae.jsxs)("div",{className:"user-data-actions",children:[(0,ae.jsx)("button",{className:"refresh-button",onClick:S,disabled:r,title:"Refresh user data",children:r?"\u27F3":"\u21BB"}),(0,ae.jsx)("button",{className:"save-button",onClick:T,disabled:a,title:"Save user data",children:a?"\u27F3":"\u{1F4BE}"}),(0,ae.jsx)("button",{className:"clear-button",onClick:v,disabled:u,title:"Clear all user data",children:u?"\u27F3":"\u{1F5D1}\uFE0F"})]})]}),d&&(0,ae.jsxs)("div",{className:"error-message",children:["\u274C ",d]}),w&&(0,ae.jsxs)("div",{className:"success-message",children:["\u2705 ",w]}),(0,ae.jsx)("div",{className:"user-data-content",children:(0,ae.jsx)("div",{className:"json-editor",children:A?(0,ae.jsxs)("div",{className:"json-editor-container",children:[(0,ae.jsx)("div",{ref:m,className:"json-highlight-background",dangerouslySetInnerHTML:{__html:eh(s)}}),(0,ae.jsx)("textarea",{ref:g,value:s,onChange:O=>_(O.target.value),onScroll:B,placeholder:"Enter JSON data...",className:"json-textarea-overlay",spellCheck:!1})]}):(0,ae.jsx)("div",{className:"json-display",onClick:z,dangerouslySetInnerHTML:{__html:eh(s)}})})}),n&&(0,ae.jsxs)("div",{className:"user-data-info",children:[(0,ae.jsxs)("div",{className:"info-item",children:[(0,ae.jsx)("span",{className:"info-label",children:"User ID:"}),(0,ae.jsx)("span",{className:"info-value",children:n.userId})]}),(0,ae.jsxs)("div",{className:"info-item",children:[(0,ae.jsx)("span",{className:"info-label",children:"Agent ID:"}),(0,ae.jsx)("span",{className:"info-value",children:n.agentId})]}),(0,ae.jsxs)("div",{className:"info-item",children:[(0,ae.jsx)("span",{className:"info-label",children:"Last Updated:"}),(0,ae.jsx)("span",{className:"info-value",children:new Date(n.updatedAt).toLocaleString()})]})]})]})}});var Be,$S,eE=x(()=>{"use strict";QS();KS();PS();WS();Be=de(Ge()),$S=({activeTab:e,onTabChange:t,persona:n,onSavePersona:i,apiKey:r,agentId:l,skillId:a,sandboxId:o,width:u})=>(0,Be.jsxs)("div",{className:"log-container",style:{width:`${u}px`},children:[(0,Be.jsxs)("div",{className:"top-section",children:[(0,Be.jsx)("div",{className:"log-header",children:(0,Be.jsxs)("div",{className:"tab-buttons",children:[(0,Be.jsx)("button",{className:`tab-button ${e==="persona"?"active":""}`,onClick:()=>t("persona"),children:"Persona"}),(0,Be.jsx)("button",{className:`tab-button ${e==="tools"?"active":""}`,onClick:()=>t("tools"),children:"Tools"}),(0,Be.jsx)("button",{className:`tab-button ${e==="userdata"?"active":""}`,onClick:()=>t("userdata"),children:"User Data"})]})}),(0,Be.jsx)("div",{className:`tab-content ${e==="persona"?"active":""}`,children:(0,Be.jsx)(ZS,{persona:n,onSavePersona:i})}),(0,Be.jsx)("div",{className:`tab-content ${e==="tools"?"active":""}`,children:(0,Be.jsx)(JS,{apiKey:r,agentId:l,skillId:a,sandboxId:o})}),(0,Be.jsx)("div",{className:`tab-content ${e==="userdata"?"active":""}`,children:(0,Be.jsx)(FS,{apiKey:r,agentId:l})})]}),(0,Be.jsxs)("div",{className:"bottom-section",children:[(0,Be.jsx)("div",{className:"console-header",children:(0,Be.jsx)("div",{className:"console-title",children:"Console"})}),(0,Be.jsx)(GS,{apiKey:r,agentId:l,sandboxId:o})]})]})});var tE=x(()=>{});var fn,Ft,nE,iE=x(()=>{"use strict";fn=de(Qt());rS();eE();ll();tE();Ft=de(Ge()),nE=({apiKey:e,agentId:t,skillId:n,sandboxId:i})=>{let[r,l]=(0,fn.useState)("persona"),[a,o]=(0,fn.useState)(""),[u,c]=(0,fn.useState)(400),s=(0,fn.useRef)(!1),p=(0,fn.useRef)(null);(0,fn.useEffect)(()=>{d()},[]),(0,fn.useEffect)(()=>{let w=h=>{h.target===p.current&&(s.current=!0,document.body.style.cursor="col-resize",document.body.style.userSelect="none")},E=h=>{if(s.current){let g=window.innerWidth,m=g-h.clientX,S=300,T=g-300;m>=S&&m<=T&&c(m)}},A=()=>{s.current&&(s.current=!1,document.body.style.cursor="",document.body.style.userSelect="")};return document.addEventListener("mousedown",w),document.addEventListener("mousemove",E),document.addEventListener("mouseup",A),()=>{document.removeEventListener("mousedown",w),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",A)}},[]);let d=()=>P(null,null,function*(){try{let w=yield rt.loadPersona();w.success&&w.persona&&o(w.persona)}catch(w){console.error("Failed to load persona:",w)}});return(0,Ft.jsxs)("div",{className:"main-container",children:[(0,Ft.jsx)("div",{className:"page-navigation",children:(0,Ft.jsxs)("div",{className:"nav-logo",children:[(0,Ft.jsx)("div",{className:"logo-icon"}),(0,Ft.jsx)("span",{className:"logo-text",children:" - Your Development Playground"})]})}),(0,Ft.jsxs)("div",{className:"main-content",children:[(0,Ft.jsx)(iS,{apiKey:e,agentId:t,skillId:n,sandboxId:i,persona:a}),(0,Ft.jsx)("div",{ref:p,className:"resize-handle"}),(0,Ft.jsx)($S,{activeTab:r,onTabChange:l,persona:a,onSavePersona:w=>P(null,null,function*(){try{let E=yield rt.savePersona(w);return E.success?(o(w),!0):(alert("Failed to save persona: "+(E.error||"Unknown error")),!1)}catch(E){return console.error("Failed to save persona:",E),alert("Failed to save persona"),!1}}),apiKey:e,agentId:t,skillId:n,sandboxId:i,width:u})]})]})}});var Q_=$e(()=>{var rE=de(Qt()),lE=de(Q0());iE();var th=de(Ge()),Ja=window.__LUA_CONFIG__;if(!Ja)throw new Error("Lua configuration not found");var aE=document.getElementById("root");if(!aE)throw new Error("Root container not found");var G_=(0,lE.createRoot)(aE);G_.render((0,th.jsx)(rE.default.StrictMode,{children:(0,th.jsx)(nE,{apiKey:Ja.apiKey,agentId:Ja.agentId,skillId:Ja.skillId,sandboxId:Ja.sandboxId})}))});return Q_();})();
|
|
8
|
+
`+n.stack}}function Tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gk(e){var t=Nv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){a=""+l,r.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(l){a=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eo(e){e._valueTracker||(e._valueTracker=gk(e))}function Ev(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Nv(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ko(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var vk=/[\n"\\]/g;function Cn(e){return e.replace(vk,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cf(e,t,n,a,i,r,l,s){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tn(t)):e.value!==""+Tn(t)&&(e.value=""+Tn(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?ff(e,l,Tn(t)):n!=null?ff(e,l,Tn(n)):a!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Tn(s):e.removeAttribute("name")}function kv(e,t,n,a,i,r,l,s){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null))return;n=n!=null?""+Tn(n):"",t=t!=null?""+Tn(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}a=a!=null?a:i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l)}function ff(e,t,n){t==="number"&&ko(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ur(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Tn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Tv(e,t,n){if(t!=null&&(t=""+Tn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Tn(n):""}function wv(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(M(92));if(fl(a)){if(1<a.length)throw Error(M(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Tn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a)}function yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yk=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Xh(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||yk.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Av(e,t,n){if(t!=null&&typeof t!="object")throw Error(M(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&Xh(e,i,a)}else for(var r in t)t.hasOwnProperty(r)&&Xh(e,r,t[r])}function nd(e){if(e.indexOf("-")===-1)return!1;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 bk=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Sk=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lo(e){return Sk.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var df=null;function ad(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wi=null,cr=null;function Qh(e){var t=Cr(e);if(t&&(e=t.stateNode)){var n=e[en]||null;e:switch(e=t.stateNode,t.type){case"input":if(cf(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Cn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[en]||null;if(!i)throw Error(M(90));cf(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Ev(a)}break e;case"textarea":Tv(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ur(e,!!n.multiple,t,!1)}}}var Cc=!1;function Cv(e,t,n){if(Cc)return e(t,n);Cc=!0;try{var a=e(t);return a}finally{if(Cc=!1,(Wi!==null||cr!==null)&&(ru(),Wi&&(t=Wi,e=cr,cr=Wi=null,Qh(t),e)))for(t=0;t<e.length;t++)Qh(e[t])}}function Rl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[en]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(M(231,t,typeof n));return n}var da=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),pf=!1;if(da)try{Ii={},Object.defineProperty(Ii,"passive",{get:function(){pf=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch(e){pf=!1}var Ii,La=null,id=null,so=null;function Rv(){if(so)return so;var e,t=id,n=t.length,a,i="value"in La?La.value:La.textContent,r=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(a=1;a<=l&&t[n-a]===i[r-a];a++);return so=i.slice(e,1<a?1-a:void 0)}function oo(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 Xs(){return!0}function Fh(){return!1}function tn(e){function t(n,a,i,r,l){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=r,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(r):r[s]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Xs:Fh,this.isPropagationStopped=Fh,this}return Ge(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=Xs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xs)},persist:function(){},isPersistent:Xs}),t}var xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jo=tn(xi),Ql=Ge({},xi,{view:0,detail:0}),xk=tn(Ql),Rc,_c,al,$o=Ge({},Ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rd,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!==al&&(al&&e.type==="mousemove"?(Rc=e.screenX-al.screenX,_c=e.screenY-al.screenY):_c=Rc=0,al=e),Rc)},movementY:function(e){return"movementY"in e?e.movementY:_c}}),Zh=tn($o),Nk=Ge({},$o,{dataTransfer:0}),Ek=tn(Nk),kk=Ge({},Ql,{relatedTarget:0}),Dc=tn(kk),Tk=Ge({},xi,{animationName:0,elapsedTime:0,pseudoElement:0}),wk=tn(Tk),Ak=Ge({},xi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ck=tn(Ak),Rk=Ge({},xi,{data:0}),Jh=tn(Rk),_k={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dk={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"},Ok={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ok[e])?!!t[e]:!1}function rd(){return Lk}var zk=Ge({},Ql,{key:function(e){if(e.key){var t=_k[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Dk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rd,charCode:function(e){return e.type==="keypress"?oo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mk=tn(zk),Uk=Ge({},$o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$h=tn(Uk),Bk=Ge({},Ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rd}),Vk=tn(Bk),Hk=Ge({},xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pk=tn(Hk),qk=Ge({},$o,{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}),jk=tn(qk),Yk=Ge({},xi,{newState:0,oldState:0}),Ik=tn(Yk),Gk=[9,13,27,32],ld=da&&"CompositionEvent"in window,ml=null;da&&"documentMode"in document&&(ml=document.documentMode);var Xk=da&&"TextEvent"in window&&!ml,_v=da&&(!ld||ml&&8<ml&&11>=ml),Kh=" ",Wh=!1;function Dv(e,t){switch(e){case"keyup":return Gk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ov(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var er=!1;function Qk(e,t){switch(e){case"compositionend":return Ov(t);case"keypress":return t.which!==32?null:(Wh=!0,Kh);case"textInput":return e=t.data,e===Kh&&Wh?null:e;default:return null}}function Fk(e,t){if(er)return e==="compositionend"||!ld&&Dv(e,t)?(e=Rv(),so=id=La=null,er=!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 _v&&t.locale!=="ko"?null:t.data;default:return null}}var Zk={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 eg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zk[e.type]:t==="textarea"}function Lv(e,t,n,a){Wi?cr?cr.push(a):cr=[a]:Wi=a,t=jo(t,"onChange"),0<t.length&&(n=new Jo("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var hl=null,_l=null;function Jk(e){Tb(e,0)}function Ko(e){var t=dl(e);if(Ev(t))return e}function tg(e,t){if(e==="change")return t}var zv=!1;da&&(da?(Fs="oninput"in document,Fs||(Oc=document.createElement("div"),Oc.setAttribute("oninput","return;"),Fs=typeof Oc.oninput=="function"),Qs=Fs):Qs=!1,zv=Qs&&(!document.documentMode||9<document.documentMode));var Qs,Fs,Oc;function ng(){hl&&(hl.detachEvent("onpropertychange",Mv),_l=hl=null)}function Mv(e){if(e.propertyName==="value"&&Ko(_l)){var t=[];Lv(t,_l,e,ad(e)),Cv(Jk,t)}}function $k(e,t,n){e==="focusin"?(ng(),hl=t,_l=n,hl.attachEvent("onpropertychange",Mv)):e==="focusout"&&ng()}function Kk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ko(_l)}function Wk(e,t){if(e==="click")return Ko(t)}function eT(e,t){if(e==="input"||e==="change")return Ko(t)}function tT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bn=typeof Object.is=="function"?Object.is:tT;function Dl(e,t){if(bn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!of.call(t,i)||!bn(e[i],t[i]))return!1}return!0}function ag(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ig(e,t){var n=ag(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ag(n)}}function Uv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ko(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(a){n=!1}if(n)e=t.contentWindow;else break;t=ko(e.document)}return t}function sd(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")}var nT=da&&"documentMode"in document&&11>=document.documentMode,tr=null,mf=null,gl=null,hf=!1;function rg(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hf||tr==null||tr!==ko(a)||(a=tr,"selectionStart"in a&&sd(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),gl&&Dl(gl,a)||(gl=a,a=jo(mf,"onSelect"),0<a.length&&(t=new Jo("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=tr)))}function ri(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nr={animationend:ri("Animation","AnimationEnd"),animationiteration:ri("Animation","AnimationIteration"),animationstart:ri("Animation","AnimationStart"),transitionrun:ri("Transition","TransitionRun"),transitionstart:ri("Transition","TransitionStart"),transitioncancel:ri("Transition","TransitionCancel"),transitionend:ri("Transition","TransitionEnd")},Lc={},Vv={};da&&(Vv=document.createElement("div").style,"AnimationEvent"in window||(delete nr.animationend.animation,delete nr.animationiteration.animation,delete nr.animationstart.animation),"TransitionEvent"in window||delete nr.transitionend.transition);function Ni(e){if(Lc[e])return Lc[e];if(!nr[e])return e;var t=nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vv)return Lc[e]=t[n];return e}var Hv=Ni("animationend"),Pv=Ni("animationiteration"),qv=Ni("animationstart"),aT=Ni("transitionrun"),iT=Ni("transitionstart"),rT=Ni("transitioncancel"),jv=Ni("transitionend"),Yv=new Map,gf="abort auxClick beforeToggle 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(" ");gf.push("scrollEnd");function Pn(e,t){Yv.set(e,t),Si(t,[e])}var lg=new WeakMap;function Rn(e,t){if(typeof e=="object"&&e!==null){var n=lg.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Gh(t)},lg.set(e,t),t)}return{value:e,source:t,stack:Gh(t)}}var kn=[],ar=0,od=0;function Wo(){for(var e=ar,t=od=ar=0;t<e;){var n=kn[t];kn[t++]=null;var a=kn[t];kn[t++]=null;var i=kn[t];kn[t++]=null;var r=kn[t];if(kn[t++]=null,a!==null&&i!==null){var l=a.pending;l===null?i.next=i:(i.next=l.next,l.next=i),a.pending=i}r!==0&&Iv(n,i,r)}}function eu(e,t,n,a){kn[ar++]=e,kn[ar++]=t,kn[ar++]=n,kn[ar++]=a,od|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ud(e,t,n,a){return eu(e,t,n,a),To(e)}function Rr(e,t){return eu(e,null,null,t),To(e)}function Iv(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,r=e.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-gn(n),e=r.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),r):null}function To(e){if(50<wl)throw wl=0,Bf=null,Error(M(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ir={};function lT(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(e,t,n,a){return new lT(e,t,n,a)}function cd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ca(e,t){var n=e.alternate;return n===null?(n=mn(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&65011712,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.refCleanup=e.refCleanup,n}function Gv(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function uo(e,t,n,a,i,r){var l=0;if(a=e,typeof e=="function")cd(e)&&(l=1);else if(typeof e=="string")l=lw(e,n,Qn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case af:return e=mn(31,n,t,i),e.elementType=af,e.lanes=r,e;case Ji:return ci(n.children,i,r,t);case cv:l=8,i|=24;break;case ef:return e=mn(12,n,t,i|2),e.elementType=ef,e.lanes=r,e;case tf:return e=mn(13,n,t,i),e.elementType=tf,e.lanes=r,e;case nf:return e=mn(19,n,t,i),e.elementType=nf,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case JE:case ra:l=10;break e;case fv:l=9;break e;case Jf:l=11;break e;case $f:l=14;break e;case wa:l=16,a=null;break e}l=29,n=Error(M(130,e===null?"null":typeof e,"")),a=null}return t=mn(l,n,t,i),t.elementType=e,t.type=a,t.lanes=r,t}function ci(e,t,n,a){return e=mn(7,e,a,t),e.lanes=n,e}function zc(e,t,n){return e=mn(6,e,null,t),e.lanes=n,e}function Mc(e,t,n){return t=mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var rr=[],lr=0,wo=null,Ao=0,wn=[],An=0,fi=null,la=1,sa="";function si(e,t){rr[lr++]=Ao,rr[lr++]=wo,wo=e,Ao=t}function Xv(e,t,n){wn[An++]=la,wn[An++]=sa,wn[An++]=fi,fi=e;var a=la;e=sa;var i=32-gn(a)-1;a&=~(1<<i),n+=1;var r=32-gn(t)+i;if(30<r){var l=i-i%5;r=(a&(1<<l)-1).toString(32),a>>=l,i-=l,la=1<<32-gn(t)+i|n<<i|a,sa=r+e}else la=1<<r|n<<i|a,sa=e}function fd(e){e.return!==null&&(si(e,1),Xv(e,1,0))}function dd(e){for(;e===wo;)wo=rr[--lr],rr[lr]=null,Ao=rr[--lr],rr[lr]=null;for(;e===fi;)fi=wn[--An],wn[An]=null,sa=wn[--An],wn[An]=null,la=wn[--An],wn[An]=null}var Gt=null,et=null,ke=!1,di=null,Gn=!1,vf=Error(M(519));function gi(e){var t=Error(M(418,""));throw Ol(Rn(t,e)),vf}function sg(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Vt]=e,t[en]=a,n){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(n=0;n<Ml.length;n++)ve(Ml[n],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),kv(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Eo(t);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),wv(t,a.value,a.defaultValue,a.children),Eo(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Ab(t.textContent,n)?(a.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),a.onScroll!=null&&ve("scroll",t),a.onScrollEnd!=null&&ve("scrollend",t),a.onClick!=null&&(t.onclick=ou),t=!0):t=!1,t||gi(e)}function og(e){for(Gt=e.return;Gt;)switch(Gt.tag){case 5:case 13:Gn=!1;return;case 27:case 3:Gn=!0;return;default:Gt=Gt.return}}function il(e){if(e!==Gt)return!1;if(!ke)return og(e),ke=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Yf(e.type,e.memoizedProps)),n=!n),n&&et&&gi(e),og(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){et=Hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}et=null}}else t===27?(t=et,Fa(e.type)?(e=Xf,Xf=null,et=e):et=t):et=Gt?Hn(e.stateNode.nextSibling):null;return!0}function Fl(){et=Gt=null,ke=!1}function ug(){var e=di;return e!==null&&(Wt===null?Wt=e:Wt.push.apply(Wt,e),di=null),e}function Ol(e){di===null?di=[e]:di.push(e)}var yf=Jn(null),Ei=null,oa=null;function Ca(e,t,n){Ze(yf,t._currentValue),t._currentValue=n}function fa(e){e._currentValue=yf.current,xt(yf)}function bf(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Sf(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var l=i.child;r=r.firstContext;e:for(;r!==null;){var s=r;r=i;for(var o=0;o<t.length;o++)if(s.context===t[o]){r.lanes|=n,s=r.alternate,s!==null&&(s.lanes|=n),bf(r.return,n,e),a||(l=null);break e}r=s.next}}else if(i.tag===18){if(l=i.return,l===null)throw Error(M(341));l.lanes|=n,r=l.alternate,r!==null&&(r.lanes|=n),bf(l,n,e),l=null}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===e){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}}function Zl(e,t,n,a){e=null;for(var i=t,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var l=i.alternate;if(l===null)throw Error(M(387));if(l=l.memoizedProps,l!==null){var s=i.type;bn(i.pendingProps.value,l.value)||(e!==null?e.push(s):e=[s])}}else if(i===bo.current){if(l=i.alternate,l===null)throw Error(M(387));l.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Vl):e=[Vl])}i=i.return}e!==null&&Sf(t,e,n,a),t.flags|=262144}function Co(e){for(e=e.firstContext;e!==null;){if(!bn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function vi(e){Ei=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ht(e){return Qv(Ei,e)}function Zs(e,t){return Ei===null&&vi(e),Qv(e,t)}function Qv(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},oa===null){if(e===null)throw Error(M(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return n}var sT=typeof AbortController!="undefined"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},oT=vt.unstable_scheduleCallback,uT=vt.unstable_NormalPriority,ht={$$typeof:ra,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pd(){return{controller:new sT,data:new Map,refCount:0}}function Jl(e){e.refCount--,e.refCount===0&&oT(uT,function(){e.controller.abort()})}var vl=null,xf=0,br=0,fr=null;function cT(e,t){if(vl===null){var n=vl=[];xf=0,br=Ud(),fr={status:"pending",value:void 0,then:function(a){n.push(a)}}}return xf++,t.then(cg,cg),t}function cg(){if(--xf===0&&vl!==null){fr!==null&&(fr.status="fulfilled");var e=vl;vl=null,br=0,fr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function fT(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var fg=ue.S;ue.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&cT(e,t),fg!==null&&fg(e,t)};var pi=Jn(null);function md(){var e=pi.current;return e!==null?e:Ye.pooledCache}function co(e,t){t===null?Ze(pi,pi.current):Ze(pi,t.pool)}function Fv(){var e=md();return e===null?null:{parent:ht._currentValue,pool:e}}var $l=Error(M(460)),Zv=Error(M(474)),tu=Error(M(542)),Nf={then:function(){}};function dg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Js(){}function Jv(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Js,Js),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mg(e),e;default:if(typeof t.status=="string")t.then(Js,Js);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(M(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mg(e),e}throw yl=t,$l}}var yl=null;function pg(){if(yl===null)throw Error(M(459));var e=yl;return yl=null,e}function mg(e){if(e===$l||e===tu)throw Error(M(483))}var Aa=!1;function hd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks: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,callbacks:null})}function Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Va(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ce&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=To(e),Iv(e,null,n),t}return eu(e,a,t,n),To(e)}function bl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,yv(e,n)}}function Uc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?i=r=l:r=r.next=l,n=n.next}while(n!==null);r===null?i=r=t:r=r.next=t}else i=r=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var kf=!1;function Sl(){if(kf){var e=fr;if(e!==null)throw e}}function xl(e,t,n,a){kf=!1;var i=e.updateQueue;Aa=!1;var r=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var o=s,u=o.next;o.next=null,l===null?r=u:l.next=u,l=o;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=o))}if(r!==null){var p=i.baseState;l=0,c=u=o=null,s=r;do{var d=s.lane&-536870913,f=d!==s.lane;if(f?(Ne&d)===d:(a&d)===d){d!==0&&d===br&&(kf=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var S=e,x=s;d=t;var k=n;switch(x.tag){case 1:if(S=x.payload,typeof S=="function"){p=S.call(k,p,d);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=x.payload,d=typeof S=="function"?S.call(k,p,d):S,d==null)break e;p=Ge({},p,d);break e;case 2:Aa=!0}}d=s.callback,d!==null&&(e.flags|=64,f&&(e.flags|=8192),f=i.callbacks,f===null?i.callbacks=[d]:f.push(d))}else f={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=f,o=p):c=c.next=f,l|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);c===null&&(o=p),i.baseState=o,i.firstBaseUpdate=u,i.lastBaseUpdate=c,r===null&&(i.shared.lanes=0),Xa|=l,e.lanes=l,e.memoizedState=p}}function $v(e,t){if(typeof e!="function")throw Error(M(191,e));e.call(t)}function Kv(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)$v(n[e],t)}var Sr=Jn(null),Ro=Jn(0);function hg(e,t){e=ha,Ze(Ro,e),Ze(Sr,t),ha=e|t.baseLanes}function Tf(){Ze(Ro,ha),Ze(Sr,Sr.current)}function gd(){ha=Ro.current,xt(Sr),xt(Ro)}var Ia=0,he=null,Le=null,ct=null,_o=!1,dr=!1,yi=!1,Do=0,Ll=0,pr=null,dT=0;function rt(){throw Error(M(321))}function vd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bn(e[n],t[n]))return!1;return!0}function yd(e,t,n,a,i,r){return Ia=r,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ue.H=e===null||e.memoizedState===null?Ry:_y,yi=!1,r=n(a,i),yi=!1,dr&&(r=ey(t,n,a,i)),Wv(e),r}function Wv(e){ue.H=Oo;var t=Le!==null&&Le.next!==null;if(Ia=0,ct=Le=he=null,_o=!1,Ll=0,pr=null,t)throw Error(M(300));e===null||St||(e=e.dependencies,e!==null&&Co(e)&&(St=!0))}function ey(e,t,n,a){he=e;var i=0;do{if(dr&&(pr=null),Ll=0,dr=!1,25<=i)throw Error(M(301));if(i+=1,ct=Le=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}ue.H=bT,r=t(n,a)}while(dr);return r}function pT(){var e=ue.H,t=e.useState()[0];return t=typeof t.then=="function"?Kl(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(he.flags|=1024),t}function bd(){var e=Do!==0;return Do=0,e}function Sd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function xd(e){if(_o){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_o=!1}Ia=0,ct=Le=he=null,dr=!1,Ll=Do=0,pr=null}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?he.memoizedState=ct=e:ct=ct.next=e,ct}function ft(){if(Le===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=ct===null?he.memoizedState:ct.next;if(t!==null)ct=t,Le=e;else{if(e===null)throw he.alternate===null?Error(M(467)):Error(M(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},ct===null?he.memoizedState=ct=e:ct=ct.next=e}return ct}function Nd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(e){var t=Ll;return Ll+=1,pr===null&&(pr=[]),e=Jv(pr,e,t),t=he,(ct===null?t.memoizedState:ct.next)===null&&(t=t.alternate,ue.H=t===null||t.memoizedState===null?Ry:_y),e}function nu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kl(e);if(e.$$typeof===ra)return Ht(e)}throw Error(M(438,String(e)))}function Ed(e){var t=null,n=he.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=he.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Nd(),he.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=$E;return t.index++,n}function pa(e,t){return typeof t=="function"?t(e):t}function fo(e){var t=ft();return kd(t,Le,e)}function kd(e,t,n){var a=e.queue;if(a===null)throw Error(M(311));a.lastRenderedReducer=n;var i=e.baseQueue,r=a.pending;if(r!==null){if(i!==null){var l=i.next;i.next=r.next,r.next=l}t.baseQueue=i=r,a.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var s=l=null,o=null,u=t,c=!1;do{var p=u.lane&-536870913;if(p!==u.lane?(Ne&p)===p:(Ia&p)===p){var d=u.revertLane;if(d===0)o!==null&&(o=o.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),p===br&&(c=!0);else if((Ia&d)===d){u=u.next,d===br&&(c=!0);continue}else p={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},o===null?(s=o=p,l=r):o=o.next=p,he.lanes|=d,Xa|=d;p=u.action,yi&&n(r,p),r=u.hasEagerState?u.eagerState:n(r,p)}else d={lane:p,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},o===null?(s=o=d,l=r):o=o.next=d,he.lanes|=p,Xa|=p;u=u.next}while(u!==null&&u!==t);if(o===null?l=r:o.next=s,!bn(r,e.memoizedState)&&(St=!0,c&&(n=fr,n!==null)))throw n;e.memoizedState=r,e.baseState=l,e.baseQueue=o,a.lastRenderedState=r}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Bc(e){var t=ft(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,r=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do r=e(r,l.action),l=l.next;while(l!==i);bn(r,t.memoizedState)||(St=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,a]}function ty(e,t,n){var a=he,i=ft(),r=ke;if(r){if(n===void 0)throw Error(M(407));n=n()}else n=t();var l=!bn((Le||i).memoizedState,n);l&&(i.memoizedState=n,St=!0),i=i.queue;var s=iy.bind(null,a,i,e);if(Wl(2048,8,s,[e]),i.getSnapshot!==t||l||ct!==null&&ct.memoizedState.tag&1){if(a.flags|=2048,xr(9,au(),ay.bind(null,a,i,n,t),null),Ye===null)throw Error(M(349));r||(Ia&124)!==0||ny(a,t,n)}return n}function ny(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=Nd(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ay(e,t,n,a){t.value=n,t.getSnapshot=a,ry(t)&&ly(e)}function iy(e,t,n){return n(function(){ry(t)&&ly(e)})}function ry(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bn(e,n)}catch(a){return!0}}function ly(e){var t=Rr(e,2);t!==null&&yn(t,e,2)}function wf(e){var t=$t();if(typeof e=="function"){var n=e;if(e=n(),yi){Oa(!0);try{n()}finally{Oa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function sy(e,t,n,a){return e.baseState=n,kd(e,Le,typeof a=="function"?a:pa)}function mT(e,t,n,a,i){if(iu(e))throw Error(M(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){r.listeners.push(l)}};ue.T!==null?n(!0):r.isTransition=!1,a(r),n=t.pending,n===null?(r.next=t.pending=r,oy(t,r)):(r.next=n.next,t.pending=n.next=r)}}function oy(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var r=ue.T,l={};ue.T=l;try{var s=n(i,a),o=ue.S;o!==null&&o(l,s),gg(e,t,s)}catch(u){Af(e,t,u)}finally{ue.T=r}}else try{r=n(i,a),gg(e,t,r)}catch(u){Af(e,t,u)}}function gg(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){vg(e,t,a)},function(a){return Af(e,t,a)}):vg(e,t,n)}function vg(e,t,n){t.status="fulfilled",t.value=n,uy(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,oy(e,n)))}function Af(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,uy(t),t=t.next;while(t!==a)}e.action=null}function uy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function cy(e,t){return t}function yg(e,t){if(ke){var n=Ye.formState;if(n!==null){e:{var a=he;if(ke){if(et){t:{for(var i=et,r=Gn;i.nodeType!==8;){if(!r){i=null;break t}if(i=Hn(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){et=Hn(i.nextSibling),a=i.data==="F!";break e}}gi(a)}a=!1}a&&(t=n[0])}}return n=$t(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cy,lastRenderedState:t},n.queue=a,n=wy.bind(null,he,a),a.dispatch=n,a=wf(!1),r=Cd.bind(null,he,!1,a.queue),a=$t(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=mT.bind(null,he,i,r,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function bg(e){var t=ft();return fy(t,Le,e)}function fy(e,t,n){if(t=kd(e,t,cy)[0],e=fo(pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Kl(t)}catch(l){throw l===$l?tu:l}else a=t;t=ft();var i=t.queue,r=i.dispatch;return n!==t.memoizedState&&(he.flags|=2048,xr(9,au(),hT.bind(null,i,n),null)),[a,r,e]}function hT(e,t){e.action=t}function Sg(e){var t=ft(),n=Le;if(n!==null)return fy(t,n,e);ft(),t=t.memoizedState,n=ft();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function xr(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=Nd(),he.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function au(){return{destroy:void 0,resource:void 0}}function dy(){return ft().memoizedState}function po(e,t,n,a){var i=$t();a=a===void 0?null:a,he.flags|=e,i.memoizedState=xr(1|t,au(),n,a)}function Wl(e,t,n,a){var i=ft();a=a===void 0?null:a;var r=i.memoizedState.inst;Le!==null&&a!==null&&vd(a,Le.memoizedState.deps)?i.memoizedState=xr(t,r,n,a):(he.flags|=e,i.memoizedState=xr(1|t,r,n,a))}function xg(e,t){po(8390656,8,e,t)}function py(e,t){Wl(2048,8,e,t)}function my(e,t){return Wl(4,2,e,t)}function hy(e,t){return Wl(4,4,e,t)}function gy(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vy(e,t,n){n=n!=null?n.concat([e]):null,Wl(4,4,gy.bind(null,t,e),n)}function Td(){}function yy(e,t){var n=ft();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&vd(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function by(e,t){var n=ft();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&vd(t,a[1]))return a[0];if(a=e(),yi){Oa(!0);try{e()}finally{Oa(!1)}}return n.memoizedState=[a,t],a}function wd(e,t,n){return n===void 0||(Ia&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=ub(),he.lanes|=e,Xa|=e,n)}function Sy(e,t,n,a){return bn(n,t)?n:Sr.current!==null?(e=wd(e,n,a),bn(e,t)||(St=!0),e):(Ia&42)===0?(St=!0,e.memoizedState=n):(e=ub(),he.lanes|=e,Xa|=e,t)}function xy(e,t,n,a,i){var r=Te.p;Te.p=r!==0&&8>r?r:8;var l=ue.T,s={};ue.T=s,Cd(e,!1,t,n);try{var o=i(),u=ue.S;if(u!==null&&u(s,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var c=fT(o,a);Nl(e,t,c,vn(e))}else Nl(e,t,a,vn(e))}catch(p){Nl(e,t,{then:function(){},status:"rejected",reason:p},vn())}finally{Te.p=r,ue.T=l}}function gT(){}function Cf(e,t,n,a){if(e.tag!==5)throw Error(M(476));var i=Ny(e).queue;xy(e,i,t,ui,n===null?gT:function(){return Ey(e),n(a)})}function Ny(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ui,baseState:ui,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:ui},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ey(e){var t=Ny(e).next.queue;Nl(e,t,{},vn())}function Ad(){return Ht(Vl)}function ky(){return ft().memoizedState}function Ty(){return ft().memoizedState}function vT(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vn();e=Ba(n);var a=Va(t,e,n);a!==null&&(yn(a,t,n),bl(a,t,n)),t={cache:pd()},e.payload=t;return}t=t.return}}function yT(e,t,n){var a=vn();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},iu(e)?Ay(t,n):(n=ud(e,t,n,a),n!==null&&(yn(n,e,a),Cy(n,t,a)))}function wy(e,t,n){var a=vn();Nl(e,t,n,a)}function Nl(e,t,n,a){var i={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(iu(e))Ay(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var l=t.lastRenderedState,s=r(l,n);if(i.hasEagerState=!0,i.eagerState=s,bn(s,l))return eu(e,t,i,0),Ye===null&&Wo(),!1}catch(o){}finally{}if(n=ud(e,t,i,a),n!==null)return yn(n,e,a),Cy(n,t,a),!0}return!1}function Cd(e,t,n,a){if(a={lane:2,revertLane:Ud(),action:a,hasEagerState:!1,eagerState:null,next:null},iu(e)){if(t)throw Error(M(479))}else t=ud(e,n,a,2),t!==null&&yn(t,e,2)}function iu(e){var t=e.alternate;return e===he||t!==null&&t===he}function Ay(e,t){dr=_o=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cy(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,yv(e,n)}}var Oo={readContext:Ht,use:nu,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt},Ry={readContext:Ht,use:nu,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:xg,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,po(4194308,4,gy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return po(4194308,4,e,t)},useInsertionEffect:function(e,t){po(4,2,e,t)},useMemo:function(e,t){var n=$t();t=t===void 0?null:t;var a=e();if(yi){Oa(!0);try{e()}finally{Oa(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=$t();if(n!==void 0){var i=n(t);if(yi){Oa(!0);try{n(t)}finally{Oa(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=yT.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:function(e){e=wf(e);var t=e.queue,n=wy.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Td,useDeferredValue:function(e,t){var n=$t();return wd(n,e,t)},useTransition:function(){var e=wf(!1);return e=xy.bind(null,he,e.queue,!0,!1),$t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=he,i=$t();if(ke){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Ye===null)throw Error(M(349));(Ne&124)!==0||ny(a,t,n)}i.memoizedState=n;var r={value:n,getSnapshot:t};return i.queue=r,xg(iy.bind(null,a,r,e),[e]),a.flags|=2048,xr(9,au(),ay.bind(null,a,r,n,t),null),n},useId:function(){var e=$t(),t=Ye.identifierPrefix;if(ke){var n=sa,a=la;n=(a&~(1<<32-gn(a)-1)).toString(32)+n,t="\xAB"+t+"R"+n,n=Do++,0<n&&(t+="H"+n.toString(32)),t+="\xBB"}else n=dT++,t="\xAB"+t+"r"+n.toString(32)+"\xBB";return e.memoizedState=t},useHostTransitionStatus:Ad,useFormState:yg,useActionState:yg,useOptimistic:function(e){var t=$t();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Cd.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ed,useCacheRefresh:function(){return $t().memoizedState=vT.bind(null,he)}},_y={readContext:Ht,use:nu,useCallback:yy,useContext:Ht,useEffect:py,useImperativeHandle:vy,useInsertionEffect:my,useLayoutEffect:hy,useMemo:by,useReducer:fo,useRef:dy,useState:function(){return fo(pa)},useDebugValue:Td,useDeferredValue:function(e,t){var n=ft();return Sy(n,Le.memoizedState,e,t)},useTransition:function(){var e=fo(pa)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:Kl(e),t]},useSyncExternalStore:ty,useId:ky,useHostTransitionStatus:Ad,useFormState:bg,useActionState:bg,useOptimistic:function(e,t){var n=ft();return sy(n,Le,e,t)},useMemoCache:Ed,useCacheRefresh:Ty},bT={readContext:Ht,use:nu,useCallback:yy,useContext:Ht,useEffect:py,useImperativeHandle:vy,useInsertionEffect:my,useLayoutEffect:hy,useMemo:by,useReducer:Bc,useRef:dy,useState:function(){return Bc(pa)},useDebugValue:Td,useDeferredValue:function(e,t){var n=ft();return Le===null?wd(n,e,t):Sy(n,Le.memoizedState,e,t)},useTransition:function(){var e=Bc(pa)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:Kl(e),t]},useSyncExternalStore:ty,useId:ky,useHostTransitionStatus:Ad,useFormState:Sg,useActionState:Sg,useOptimistic:function(e,t){var n=ft();return Le!==null?sy(n,Le,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ed,useCacheRefresh:Ty},mr=null,zl=0;function $s(e){var t=zl;return zl+=1,mr===null&&(mr=[]),Jv(mr,e,t)}function rl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ks(e,t){throw t.$$typeof===ZE?Error(M(525)):(e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ng(e){var t=e._init;return t(e._payload)}function Dy(e){function t(m,h){if(e){var g=m.deletions;g===null?(m.deletions=[h],m.flags|=16):g.push(h)}}function n(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function a(m){for(var h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function i(m,h){return m=ca(m,h),m.index=0,m.sibling=null,m}function r(m,h,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<h?(m.flags|=67108866,h):g):(m.flags|=67108866,h)):(m.flags|=1048576,h)}function l(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function s(m,h,g,E){return h===null||h.tag!==6?(h=zc(g,m.mode,E),h.return=m,h):(h=i(h,g),h.return=m,h)}function o(m,h,g,E){var T=g.type;return T===Ji?c(m,h,g.props.children,E,g.key):h!==null&&(h.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===wa&&Ng(T)===h.type)?(h=i(h,g.props),rl(h,g),h.return=m,h):(h=uo(g.type,g.key,g.props,null,m.mode,E),rl(h,g),h.return=m,h)}function u(m,h,g,E){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=Mc(g,m.mode,E),h.return=m,h):(h=i(h,g.children||[]),h.return=m,h)}function c(m,h,g,E,T){return h===null||h.tag!==7?(h=ci(g,m.mode,E,T),h.return=m,h):(h=i(h,g),h.return=m,h)}function p(m,h,g){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=zc(""+h,m.mode,g),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case js:return g=uo(h.type,h.key,h.props,null,m.mode,g),rl(g,h),g.return=m,g;case cl:return h=Mc(h,m.mode,g),h.return=m,h;case wa:var E=h._init;return h=E(h._payload),p(m,h,g)}if(fl(h)||nl(h))return h=ci(h,m.mode,g,null),h.return=m,h;if(typeof h.then=="function")return p(m,$s(h),g);if(h.$$typeof===ra)return p(m,Zs(m,h),g);Ks(m,h)}return null}function d(m,h,g,E){var T=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return T!==null?null:s(m,h,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case js:return g.key===T?o(m,h,g,E):null;case cl:return g.key===T?u(m,h,g,E):null;case wa:return T=g._init,g=T(g._payload),d(m,h,g,E)}if(fl(g)||nl(g))return T!==null?null:c(m,h,g,E,null);if(typeof g.then=="function")return d(m,h,$s(g),E);if(g.$$typeof===ra)return d(m,h,Zs(m,g),E);Ks(m,g)}return null}function f(m,h,g,E,T){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return m=m.get(g)||null,s(h,m,""+E,T);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case js:return m=m.get(E.key===null?g:E.key)||null,o(h,m,E,T);case cl:return m=m.get(E.key===null?g:E.key)||null,u(h,m,E,T);case wa:var N=E._init;return E=N(E._payload),f(m,h,g,E,T)}if(fl(E)||nl(E))return m=m.get(g)||null,c(h,m,E,T,null);if(typeof E.then=="function")return f(m,h,g,$s(E),T);if(E.$$typeof===ra)return f(m,h,g,Zs(h,E),T);Ks(h,E)}return null}function S(m,h,g,E){for(var T=null,N=null,A=h,C=h=0,U=null;A!==null&&C<g.length;C++){A.index>C?(U=A,A=null):U=A.sibling;var P=d(m,A,g[C],E);if(P===null){A===null&&(A=U);break}e&&A&&P.alternate===null&&t(m,A),h=r(P,h,C),N===null?T=P:N.sibling=P,N=P,A=U}if(C===g.length)return n(m,A),ke&&si(m,C),T;if(A===null){for(;C<g.length;C++)A=p(m,g[C],E),A!==null&&(h=r(A,h,C),N===null?T=A:N.sibling=A,N=A);return ke&&si(m,C),T}for(A=a(A);C<g.length;C++)U=f(A,m,C,g[C],E),U!==null&&(e&&U.alternate!==null&&A.delete(U.key===null?C:U.key),h=r(U,h,C),N===null?T=U:N.sibling=U,N=U);return e&&A.forEach(function(_){return t(m,_)}),ke&&si(m,C),T}function x(m,h,g,E){if(g==null)throw Error(M(151));for(var T=null,N=null,A=h,C=h=0,U=null,P=g.next();A!==null&&!P.done;C++,P=g.next()){A.index>C?(U=A,A=null):U=A.sibling;var _=d(m,A,P.value,E);if(_===null){A===null&&(A=U);break}e&&A&&_.alternate===null&&t(m,A),h=r(_,h,C),N===null?T=_:N.sibling=_,N=_,A=U}if(P.done)return n(m,A),ke&&si(m,C),T;if(A===null){for(;!P.done;C++,P=g.next())P=p(m,P.value,E),P!==null&&(h=r(P,h,C),N===null?T=P:N.sibling=P,N=P);return ke&&si(m,C),T}for(A=a(A);!P.done;C++,P=g.next())P=f(A,m,C,P.value,E),P!==null&&(e&&P.alternate!==null&&A.delete(P.key===null?C:P.key),h=r(P,h,C),N===null?T=P:N.sibling=P,N=P);return e&&A.forEach(function(R){return t(m,R)}),ke&&si(m,C),T}function k(m,h,g,E){if(typeof g=="object"&&g!==null&&g.type===Ji&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case js:e:{for(var T=g.key;h!==null;){if(h.key===T){if(T=g.type,T===Ji){if(h.tag===7){n(m,h.sibling),E=i(h,g.props.children),E.return=m,m=E;break e}}else if(h.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===wa&&Ng(T)===h.type){n(m,h.sibling),E=i(h,g.props),rl(E,g),E.return=m,m=E;break e}n(m,h);break}else t(m,h);h=h.sibling}g.type===Ji?(E=ci(g.props.children,m.mode,E,g.key),E.return=m,m=E):(E=uo(g.type,g.key,g.props,null,m.mode,E),rl(E,g),E.return=m,m=E)}return l(m);case cl:e:{for(T=g.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),E=i(h,g.children||[]),E.return=m,m=E;break e}else{n(m,h);break}else t(m,h);h=h.sibling}E=Mc(g,m.mode,E),E.return=m,m=E}return l(m);case wa:return T=g._init,g=T(g._payload),k(m,h,g,E)}if(fl(g))return S(m,h,g,E);if(nl(g)){if(T=nl(g),typeof T!="function")throw Error(M(150));return g=T.call(g),x(m,h,g,E)}if(typeof g.then=="function")return k(m,h,$s(g),E);if(g.$$typeof===ra)return k(m,h,Zs(m,g),E);Ks(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),E=i(h,g),E.return=m,m=E):(n(m,h),E=zc(g,m.mode,E),E.return=m,m=E),l(m)):n(m,h)}return function(m,h,g,E){try{zl=0;var T=k(m,h,g,E);return mr=null,T}catch(A){if(A===$l||A===tu)throw A;var N=mn(29,A,null,m.mode);return N.lanes=E,N.return=m,N}finally{}}}var Nr=Dy(!0),Oy=Dy(!1),Dn=Jn(null),Zn=null;function Ra(e){var t=e.alternate;Ze(gt,gt.current&1),Ze(Dn,e),Zn===null&&(t===null||Sr.current!==null||t.memoizedState!==null)&&(Zn=e)}function Ly(e){if(e.tag===22){if(Ze(gt,gt.current),Ze(Dn,e),Zn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Zn=e)}}else _a(e)}function _a(){Ze(gt,gt.current),Ze(Dn,Dn.current)}function ua(e){xt(Dn),Zn===e&&(Zn=null),xt(gt)}var gt=Jn(0);function Lo(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==="$?"||Gf(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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}function Vc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:Ge({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Rf={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=vn(),i=Ba(a);i.payload=t,n!=null&&(i.callback=n),t=Va(e,i,a),t!==null&&(yn(t,e,a),bl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=vn(),i=Ba(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Va(e,i,a),t!==null&&(yn(t,e,a),bl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vn(),a=Ba(n);a.tag=2,t!=null&&(a.callback=t),t=Va(e,a,n),t!==null&&(yn(t,e,n),bl(t,e,n))}};function Eg(e,t,n,a,i,r,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,r,l):t.prototype&&t.prototype.isPureReactComponent?!Dl(n,a)||!Dl(i,r):!0}function kg(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Rf.enqueueReplaceState(t,t.state,null)}function bi(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=Ge({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}var zo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function zy(e){zo(e)}function My(e){console.error(e)}function Uy(e){zo(e)}function Mo(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Tg(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function _f(e,t,n){return n=Ba(n),n.tag=3,n.payload={element:null},n.callback=function(){Mo(e,t)},n}function By(e){return e=Ba(e),e.tag=3,e}function Vy(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var r=a.value;e.payload=function(){return i(r)},e.callback=function(){Tg(t,n,a)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Tg(t,n,a),typeof i!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function ST(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Zl(t,n,i,!0),n=Dn.current,n!==null){switch(n.tag){case 13:return Zn===null?Vf():n.alternate===null&&tt===0&&(tt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===Nf?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Zc(e,a,i)),!1;case 22:return n.flags|=65536,a===Nf?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Zc(e,a,i)),!1}throw Error(M(435,n.tag))}return Zc(e,a,i),Vf(),!1}if(ke)return t=Dn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==vf&&(e=Error(M(422),{cause:a}),Ol(Rn(e,n)))):(a!==vf&&(t=Error(M(423),{cause:a}),Ol(Rn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Rn(a,n),i=_f(e.stateNode,a,i),Uc(e,i),tt!==4&&(tt=2)),!1;var r=Error(M(520),{cause:a});if(r=Rn(r,n),Tl===null?Tl=[r]:Tl.push(r),tt!==4&&(tt=2),t===null)return!0;a=Rn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=_f(n.stateNode,a,e),Uc(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Ha===null||!Ha.has(r))))return n.flags|=65536,i&=-i,n.lanes|=i,i=By(i),Vy(i,e,n,a),Uc(n,i),!1}n=n.return}while(n!==null);return!1}var Hy=Error(M(461)),St=!1;function Rt(e,t,n,a){t.child=e===null?Oy(t,null,n,a):Nr(t,e.child,n,a)}function wg(e,t,n,a,i){n=n.render;var r=t.ref;if("ref"in a){var l={};for(var s in a)s!=="ref"&&(l[s]=a[s])}else l=a;return vi(t),a=yd(e,t,n,l,r,i),s=bd(),e!==null&&!St?(Sd(e,t,i),ma(e,t,i)):(ke&&s&&fd(t),t.flags|=1,Rt(e,t,a,i),t.child)}function Ag(e,t,n,a,i){if(e===null){var r=n.type;return typeof r=="function"&&!cd(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,Py(e,t,r,a,i)):(e=uo(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Rd(e,i)){var l=r.memoizedProps;if(n=n.compare,n=n!==null?n:Dl,n(l,a)&&e.ref===t.ref)return ma(e,t,i)}return t.flags|=1,e=ca(r,a),e.ref=t.ref,e.return=t,t.child=e}function Py(e,t,n,a,i){if(e!==null){var r=e.memoizedProps;if(Dl(r,a)&&e.ref===t.ref)if(St=!1,t.pendingProps=a=r,Rd(e,i))(e.flags&131072)!==0&&(St=!0);else return t.lanes=e.lanes,ma(e,t,i)}return Df(e,t,n,a,i)}function qy(e,t,n){var a=t.pendingProps,i=a.children,r=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=r!==null?r.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;t.childLanes=r&~a}else t.childLanes=0,t.child=null;return Cg(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&co(t,r!==null?r.cachePool:null),r!==null?hg(t,r):Tf(),Ly(t);else return t.lanes=t.childLanes=536870912,Cg(e,t,r!==null?r.baseLanes|n:n,n)}else r!==null?(co(t,r.cachePool),hg(t,r),_a(t),t.memoizedState=null):(e!==null&&co(t,null),Tf(),_a(t));return Rt(e,t,i,n),t.child}function Cg(e,t,n,a){var i=md();return i=i===null?null:{parent:ht._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&co(t,null),Tf(),Ly(t),e!==null&&Zl(e,t,a,!0),null}function mo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(M(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Df(e,t,n,a,i){return vi(t),n=yd(e,t,n,a,void 0,i),a=bd(),e!==null&&!St?(Sd(e,t,i),ma(e,t,i)):(ke&&a&&fd(t),t.flags|=1,Rt(e,t,n,i),t.child)}function Rg(e,t,n,a,i,r){return vi(t),t.updateQueue=null,n=ey(t,a,n,i),Wv(e),a=bd(),e!==null&&!St?(Sd(e,t,r),ma(e,t,r)):(ke&&a&&fd(t),t.flags|=1,Rt(e,t,n,r),t.child)}function _g(e,t,n,a,i){if(vi(t),t.stateNode===null){var r=ir,l=n.contextType;typeof l=="object"&&l!==null&&(r=Ht(l)),r=new n(a,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Rf,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},hd(t),l=n.contextType,r.context=typeof l=="object"&&l!==null?Ht(l):ir,r.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(Vc(t,n,l,a),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(l=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),l!==r.state&&Rf.enqueueReplaceState(r,r.state,null),xl(t,a,r,i),Sl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){r=t.stateNode;var s=t.memoizedProps,o=bi(n,s);r.props=o;var u=r.context,c=n.contextType;l=ir,typeof c=="object"&&c!==null&&(l=Ht(c));var p=n.getDerivedStateFromProps;c=typeof p=="function"||typeof r.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s||u!==l)&&kg(t,r,a,l),Aa=!1;var d=t.memoizedState;r.state=d,xl(t,a,r,i),Sl(),u=t.memoizedState,s||d!==u||Aa?(typeof p=="function"&&(Vc(t,n,p,a),u=t.memoizedState),(o=Aa||Eg(t,n,o,a,d,u,l))?(c||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=u),r.props=a,r.state=u,r.context=l,a=o):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,Ef(e,t),l=t.memoizedProps,c=bi(n,l),r.props=c,p=t.pendingProps,d=r.context,u=n.contextType,o=ir,typeof u=="object"&&u!==null&&(o=Ht(u)),s=n.getDerivedStateFromProps,(u=typeof s=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(l!==p||d!==o)&&kg(t,r,a,o),Aa=!1,d=t.memoizedState,r.state=d,xl(t,a,r,i),Sl();var f=t.memoizedState;l!==p||d!==f||Aa||e!==null&&e.dependencies!==null&&Co(e.dependencies)?(typeof s=="function"&&(Vc(t,n,s,a),f=t.memoizedState),(c=Aa||Eg(t,n,c,a,d,f,o)||e!==null&&e.dependencies!==null&&Co(e.dependencies))?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,f,o),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,f,o)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=f),r.props=a,r.state=f,r.context=o,a=c):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),a=!1)}return r=a,mo(e,t),a=(t.flags&128)!==0,r||a?(r=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&a?(t.child=Nr(t,e.child,null,i),t.child=Nr(t,null,n,i)):Rt(e,t,n,i),t.memoizedState=r.state,e=t.child):e=ma(e,t,i),e}function Dg(e,t,n,a){return Fl(),t.flags|=256,Rt(e,t,n,a),t.child}var Hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pc(e){return{baseLanes:e,cachePool:Fv()}}function qc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=_n),e}function jy(e,t,n){var a=t.pendingProps,i=!1,r=(t.flags&128)!==0,l;if((l=r)||(l=e!==null&&e.memoizedState===null?!1:(gt.current&2)!==0),l&&(i=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(i?Ra(t):_a(t),ke){var s=et,o;if(o=s){e:{for(o=s,s=Gn;o.nodeType!==8;){if(!s){s=null;break e}if(o=Hn(o.nextSibling),o===null){s=null;break e}}s=o}s!==null?(t.memoizedState={dehydrated:s,treeContext:fi!==null?{id:la,overflow:sa}:null,retryLane:536870912,hydrationErrors:null},o=mn(18,null,null,0),o.stateNode=s,o.return=t,t.child=o,Gt=t,et=null,o=!0):o=!1}o||gi(t)}if(s=t.memoizedState,s!==null&&(s=s.dehydrated,s!==null))return Gf(s)?t.lanes=32:t.lanes=536870912,null;ua(t)}return s=a.children,a=a.fallback,i?(_a(t),i=t.mode,s=Uo({mode:"hidden",children:s},i),a=ci(a,i,n,null),s.return=t,a.return=t,s.sibling=a,t.child=s,i=t.child,i.memoizedState=Pc(n),i.childLanes=qc(e,l,n),t.memoizedState=Hc,a):(Ra(t),Of(t,s))}if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null)){if(r)t.flags&256?(Ra(t),t.flags&=-257,t=jc(e,t,n)):t.memoizedState!==null?(_a(t),t.child=e.child,t.flags|=128,t=null):(_a(t),i=a.fallback,s=t.mode,a=Uo({mode:"visible",children:a.children},s),i=ci(i,s,n,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,Nr(t,e.child,null,n),a=t.child,a.memoizedState=Pc(n),a.childLanes=qc(e,l,n),t.memoizedState=Hc,t=i);else if(Ra(t),Gf(s)){if(l=s.nextSibling&&s.nextSibling.dataset,l)var u=l.dgst;l=u,a=Error(M(419)),a.stack="",a.digest=l,Ol({value:a,source:null,stack:null}),t=jc(e,t,n)}else if(St||Zl(e,t,n,!1),l=(n&e.childLanes)!==0,St||l){if(l=Ye,l!==null&&(a=n&-n,a=(a&42)!==0?1:Wf(a),a=(a&(l.suspendedLanes|n))!==0?0:a,a!==0&&a!==o.retryLane))throw o.retryLane=a,Rr(e,a),yn(l,e,a),Hy;s.data==="$?"||Vf(),t=jc(e,t,n)}else s.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=o.treeContext,et=Hn(s.nextSibling),Gt=t,ke=!0,di=null,Gn=!1,e!==null&&(wn[An++]=la,wn[An++]=sa,wn[An++]=fi,la=e.id,sa=e.overflow,fi=t),t=Of(t,a.children),t.flags|=4096);return t}return i?(_a(t),i=a.fallback,s=t.mode,o=e.child,u=o.sibling,a=ca(o,{mode:"hidden",children:a.children}),a.subtreeFlags=o.subtreeFlags&65011712,u!==null?i=ca(u,i):(i=ci(i,s,n,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,s=e.child.memoizedState,s===null?s=Pc(n):(o=s.cachePool,o!==null?(u=ht._currentValue,o=o.parent!==u?{parent:u,pool:u}:o):o=Fv(),s={baseLanes:s.baseLanes|n,cachePool:o}),i.memoizedState=s,i.childLanes=qc(e,l,n),t.memoizedState=Hc,a):(Ra(t),n=e.child,e=n.sibling,n=ca(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function Of(e,t){return t=Uo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Uo(e,t){return e=mn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function jc(e,t,n){return Nr(t,e.child,null,n),e=Of(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Og(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),bf(e.return,t,n)}function Yc(e,t,n,a,i){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=n,r.tailMode=i)}function Yy(e,t,n){var a=t.pendingProps,i=a.revealOrder,r=a.tail;if(Rt(e,t,a.children,n),a=gt.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Og(e,n,t);else if(e.tag===19)Og(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}a&=1}switch(Ze(gt,a),i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Lo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Yc(t,!1,i,n,r);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Yc(t,!0,n,null,r);break;case"together":Yc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ma(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Zl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=ca(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ca(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Rd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Co(e)))}function xT(e,t,n){switch(t.tag){case 3:So(t,t.stateNode.containerInfo),Ca(t,ht,e.memoizedState.cache),Fl();break;case 27:case 5:sf(t);break;case 4:So(t,t.stateNode.containerInfo);break;case 10:Ca(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ra(t),t.flags|=128,null):(n&t.child.childLanes)!==0?jy(e,t,n):(Ra(t),e=ma(e,t,n),e!==null?e.sibling:null);Ra(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Zl(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return Yy(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ze(gt,gt.current),a)break;return null;case 22:case 23:return t.lanes=0,qy(e,t,n);case 24:Ca(t,ht,e.memoizedState.cache)}return ma(e,t,n)}function Iy(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)St=!0;else{if(!Rd(e,n)&&(t.flags&128)===0)return St=!1,xT(e,t,n);St=(e.flags&131072)!==0}else St=!1,ke&&(t.flags&1048576)!==0&&Xv(t,Ao,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,i=a._init;if(a=i(a._payload),t.type=a,typeof a=="function")cd(a)?(e=bi(a,e),t.tag=1,t=_g(null,t,a,e,n)):(t.tag=0,t=Df(null,t,a,e,n));else{if(a!=null){if(i=a.$$typeof,i===Jf){t.tag=11,t=wg(null,t,a,e,n);break e}else if(i===$f){t.tag=14,t=Ag(null,t,a,e,n);break e}}throw t=rf(a)||a,Error(M(306,t,""))}}return t;case 0:return Df(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=bi(a,t.pendingProps),_g(e,t,a,i,n);case 3:e:{if(So(t,t.stateNode.containerInfo),e===null)throw Error(M(387));a=t.pendingProps;var r=t.memoizedState;i=r.element,Ef(e,t),xl(t,a,null,n);var l=t.memoizedState;if(a=l.cache,Ca(t,ht,a),a!==r.cache&&Sf(t,[ht],n,!0),Sl(),a=l.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Dg(e,t,a,n);break e}else if(a!==i){i=Rn(Error(M(424)),t),Ol(i),t=Dg(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=Hn(e.firstChild),Gt=t,ke=!0,di=null,Gn=!0,n=Oy(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fl(),a===i){t=ma(e,t,n);break e}Rt(e,t,a,n)}t=t.child}return t;case 26:return mo(e,t),e===null?(n=$g(t.type,null,t.pendingProps,null))?t.memoizedState=n:ke||(n=t.type,e=t.pendingProps,a=Yo(Ua.current).createElement(n),a[Vt]=t,a[en]=e,Dt(a,n,e),bt(a),t.stateNode=a):t.memoizedState=$g(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return sf(t),e===null&&ke&&(a=t.stateNode=_b(t.type,t.pendingProps,Ua.current),Gt=t,Gn=!0,i=et,Fa(t.type)?(Xf=i,et=Hn(a.firstChild)):et=i),Rt(e,t,t.pendingProps.children,n),mo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ke&&((i=a=et)&&(a=QT(a,t.type,t.pendingProps,Gn),a!==null?(t.stateNode=a,Gt=t,et=Hn(a.firstChild),Gn=!1,i=!0):i=!1),i||gi(t)),sf(t),i=t.type,r=t.pendingProps,l=e!==null?e.memoizedProps:null,a=r.children,Yf(i,r)?a=null:l!==null&&Yf(i,l)&&(t.flags|=32),t.memoizedState!==null&&(i=yd(e,t,pT,null,null,n),Vl._currentValue=i),mo(e,t),Rt(e,t,a,n),t.child;case 6:return e===null&&ke&&((e=n=et)&&(n=FT(n,t.pendingProps,Gn),n!==null?(t.stateNode=n,Gt=t,et=null,e=!0):e=!1),e||gi(t)),null;case 13:return jy(e,t,n);case 4:return So(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Nr(t,null,a,n):Rt(e,t,a,n),t.child;case 11:return wg(e,t,t.type,t.pendingProps,n);case 7:return Rt(e,t,t.pendingProps,n),t.child;case 8:return Rt(e,t,t.pendingProps.children,n),t.child;case 12:return Rt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Ca(t,t.type,a.value),Rt(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,vi(t),i=Ht(i),a=a(i),t.flags|=1,Rt(e,t,a,n),t.child;case 14:return Ag(e,t,t.type,t.pendingProps,n);case 15:return Py(e,t,t.type,t.pendingProps,n);case 19:return Yy(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=Uo(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=ca(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return qy(e,t,n);case 24:return vi(t),a=Ht(ht),e===null?(i=md(),i===null&&(i=Ye,r=pd(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=n),i=r),t.memoizedState={parent:a,cache:i},hd(t),Ca(t,ht,i)):((e.lanes&n)!==0&&(Ef(e,t),xl(t,null,null,n),Sl()),i=e.memoizedState,r=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ca(t,ht,a)):(a=r.cache,Ca(t,ht,a),a!==i.cache&&Sf(t,[ht],n,!0))),Rt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(M(156,t.tag))}function na(e){e.flags|=4}function Lg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lb(t)){if(t=Dn.current,t!==null&&((Ne&4194048)===Ne?Zn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||t!==Zn))throw yl=Nf,Zv;e.flags|=8192}}function Ws(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gv():536870912,e.lanes|=t,Er|=t)}function ll(e,t){if(!ke)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function $e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function NT(e,t,n){var a=t.pendingProps;switch(dd(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(t),null;case 1:return $e(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fa(ht),gr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(il(t)?na(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ug())),$e(t),null;case 26:return n=t.memoizedState,e===null?(na(t),n!==null?($e(t),Lg(t,n)):($e(t),t.flags&=-16777217)):n?n!==e.memoizedState?(na(t),$e(t),Lg(t,n)):($e(t),t.flags&=-16777217):(e.memoizedProps!==a&&na(t),$e(t),t.flags&=-16777217),null;case 27:xo(t),n=Ua.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&na(t);else{if(!a){if(t.stateNode===null)throw Error(M(166));return $e(t),null}e=Qn.current,il(t)?sg(t,e):(e=_b(i,a,n),t.stateNode=e,na(t))}return $e(t),null;case 5:if(xo(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&na(t);else{if(!a){if(t.stateNode===null)throw Error(M(166));return $e(t),null}if(e=Qn.current,il(t))sg(t,e);else{switch(i=Yo(Ua.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}e[Vt]=t,e[en]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(Dt(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&na(t)}}return $e(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&na(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(M(166));if(e=Ua.current,il(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=Gt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[Vt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Ab(e.nodeValue,n)),e||gi(t)}else e=Yo(e).createTextNode(a),e[Vt]=t,t.stateNode=e}return $e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=il(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(M(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(M(317));i[Vt]=t}else Fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;$e(t),i=!1}else i=ug(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ua(t),t):(ua(t),null)}if(ua(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool);var r=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==i&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Ws(t,t.updateQueue),$e(t),null;case 4:return gr(),e===null&&Bd(t.stateNode.containerInfo),$e(t),null;case 10:return fa(t.type),$e(t),null;case 19:if(xt(gt),i=t.memoizedState,i===null)return $e(t),null;if(a=(t.flags&128)!==0,r=i.rendering,r===null)if(a)ll(i,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Lo(e),r!==null){for(t.flags|=128,ll(i,!1),e=r.updateQueue,t.updateQueue=e,Ws(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Gv(n,e),n=n.sibling;return Ze(gt,gt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Fn()>Vo&&(t.flags|=128,a=!0,ll(i,!1),t.lanes=4194304)}else{if(!a)if(e=Lo(r),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ws(t,e),ll(i,!0),i.tail===null&&i.tailMode==="hidden"&&!r.alternate&&!ke)return $e(t),null}else 2*Fn()-i.renderingStartTime>Vo&&n!==536870912&&(t.flags|=128,a=!0,ll(i,!1),t.lanes=4194304);i.isBackwards?(r.sibling=t.child,t.child=r):(e=i.last,e!==null?e.sibling=r:t.child=r,i.last=r)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fn(),t.sibling=null,e=gt.current,Ze(gt,a?e&1|2:e&1),t):($e(t),null);case 22:case 23:return ua(t),gd(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),n=t.updateQueue,n!==null&&Ws(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&xt(pi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fa(ht),$e(t),null;case 25:return null;case 30:return null}throw Error(M(156,t.tag))}function ET(e,t){switch(dd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(ht),gr(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xo(t),null;case 13:if(ua(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));Fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xt(gt),null;case 4:return gr(),null;case 10:return fa(t.type),null;case 22:case 23:return ua(t),gd(),e!==null&&xt(pi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(ht),null;case 25:return null;default:return null}}function Gy(e,t){switch(dd(t),t.tag){case 3:fa(ht),gr();break;case 26:case 27:case 5:xo(t);break;case 4:gr();break;case 13:ua(t);break;case 19:xt(gt);break;case 10:fa(t.type);break;case 22:case 23:ua(t),gd(),e!==null&&xt(pi);break;case 24:fa(ht)}}function es(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var r=n.create,l=n.inst;a=r(),l.destroy=a}n=n.next}while(n!==i)}}catch(s){He(t,t.return,s)}}function Ga(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var r=i.next;a=r;do{if((a.tag&e)===e){var l=a.inst,s=l.destroy;if(s!==void 0){l.destroy=void 0,i=t;var o=n,u=s;try{u()}catch(c){He(i,o,c)}}}a=a.next}while(a!==r)}}catch(c){He(t,t.return,c)}}function Xy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Kv(t,n)}catch(a){He(e,e.return,a)}}}function Qy(e,t,n){n.props=bi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){He(e,t,a)}}function El(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){He(e,t,i)}}function Xn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){He(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){He(e,t,i)}else n.current=null}function Fy(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){He(e,e.return,i)}}function Ic(e,t,n){try{var a=e.stateNode;jT(a,e.type,n,t),a[en]=t}catch(i){He(e,e.return,i)}}function Zy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Fa(e.type)||e.tag===4}function Gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zy(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.tag===27&&Fa(e.type)||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 Lf(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ou));else if(a!==4&&(a===27&&Fa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Lf(e,t,n),e=e.sibling;e!==null;)Lf(e,t,n),e=e.sibling}function Bo(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Fa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Bo(e,t,n),e=e.sibling;e!==null;)Bo(e,t,n),e=e.sibling}function Jy(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Dt(t,a,n),t[Vt]=e,t[en]=n}catch(r){He(e,e.return,r)}}var ia=!1,lt=!1,Xc=!1,zg=typeof WeakSet=="function"?WeakSet:Set,yt=null;function kT(e,t){if(e=e.containerInfo,qf=Qo,e=Bv(e),sd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch(x){n=null;break e}var l=0,s=-1,o=-1,u=0,c=0,p=e,d=null;t:for(;;){for(var f;p!==n||i!==0&&p.nodeType!==3||(s=l+i),p!==r||a!==0&&p.nodeType!==3||(o=l+a),p.nodeType===3&&(l+=p.nodeValue.length),(f=p.firstChild)!==null;)d=p,p=f;for(;;){if(p===e)break t;if(d===n&&++u===i&&(s=l),d===r&&++c===a&&(o=l),(f=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=f}n=s===-1||o===-1?null:{start:s,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(jf={focusedElem:e,selectionRange:n},Qo=!1,yt=t;yt!==null;)if(t=yt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,yt=e;else for(;yt!==null;){switch(t=yt,r=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,n=t,i=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var S=bi(n.type,i,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(S,r),a.__reactInternalSnapshotBeforeUpdate=e}catch(x){He(n,n.return,x)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)If(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":If(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(M(163))}if(e=t.sibling,e!==null){e.return=t.return,yt=e;break}yt=t.return}}function $y(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:ka(e,n),a&4&&es(5,n);break;case 1:if(ka(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){He(n,n.return,l)}else{var i=bi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){He(n,n.return,l)}}a&64&&Xy(n),a&512&&El(n,n.return);break;case 3:if(ka(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Kv(e,t)}catch(l){He(n,n.return,l)}}break;case 27:t===null&&a&4&&Jy(n);case 26:case 5:ka(e,n),t===null&&a&4&&Fy(n),a&512&&El(n,n.return);break;case 12:ka(e,n);break;case 13:ka(e,n),a&4&&eb(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=LT.bind(null,n),ZT(e,n))));break;case 22:if(a=n.memoizedState!==null||ia,!a){t=t!==null&&t.memoizedState!==null||lt,i=ia;var r=lt;ia=a,(lt=t)&&!r?Ta(e,n,(n.subtreeFlags&8772)!==0):ka(e,n),ia=i,lt=r}break;case 30:break;default:ka(e,n)}}function Ky(e){var t=e.alternate;t!==null&&(e.alternate=null,Ky(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&td(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Fe=null,Kt=!1;function aa(e,t,n){for(n=n.child;n!==null;)Wy(e,t,n),n=n.sibling}function Wy(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Yl,n)}catch(r){}switch(n.tag){case 26:lt||Xn(n,t),aa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:lt||Xn(n,t);var a=Fe,i=Kt;Fa(n.type)&&(Fe=n.stateNode,Kt=!1),aa(e,t,n),Al(n.stateNode),Fe=a,Kt=i;break;case 5:lt||Xn(n,t);case 6:if(a=Fe,i=Kt,Fe=null,aa(e,t,n),Fe=a,Kt=i,Fe!==null)if(Kt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(n.stateNode)}catch(r){He(n,t,r)}else try{Fe.removeChild(n.stateNode)}catch(r){He(n,t,r)}break;case 18:Fe!==null&&(Kt?(e=Fe,Fg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ql(e)):Fg(Fe,n.stateNode));break;case 4:a=Fe,i=Kt,Fe=n.stateNode.containerInfo,Kt=!0,aa(e,t,n),Fe=a,Kt=i;break;case 0:case 11:case 14:case 15:lt||Ga(2,n,t),lt||Ga(4,n,t),aa(e,t,n);break;case 1:lt||(Xn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Qy(n,t,a)),aa(e,t,n);break;case 21:aa(e,t,n);break;case 22:lt=(a=lt)||n.memoizedState!==null,aa(e,t,n),lt=a;break;default:aa(e,t,n)}}function eb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ql(e)}catch(n){He(t,t.return,n)}}function TT(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zg),t;default:throw Error(M(435,e.tag))}}function Qc(e,t){var n=TT(e);t.forEach(function(a){var i=zT.bind(null,e,a);n.has(a)||(n.add(a),a.then(i,i))})}function fn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],r=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 27:if(Fa(s.type)){Fe=s.stateNode,Kt=!1;break e}break;case 5:Fe=s.stateNode,Kt=!1;break e;case 3:case 4:Fe=s.stateNode.containerInfo,Kt=!0;break e}s=s.return}if(Fe===null)throw Error(M(160));Wy(r,l,i),Fe=null,Kt=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)tb(t,e),t=t.sibling}var Vn=null;function tb(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:fn(t,e),dn(e),a&4&&(Ga(3,e,e.return),es(3,e),Ga(5,e,e.return));break;case 1:fn(t,e),dn(e),a&512&&(lt||n===null||Xn(n,n.return)),a&64&&ia&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Vn;if(fn(t,e),dn(e),a&512&&(lt||n===null||Xn(n,n.return)),a&4){var r=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":r=i.getElementsByTagName("title")[0],(!r||r[Xl]||r[Vt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(a),i.head.insertBefore(r,i.querySelector("head > title"))),Dt(r,a,n),r[Vt]=e,bt(r),a=r;break e;case"link":var l=Wg("link","href",i).get(a+(n.href||""));if(l){for(var s=0;s<l.length;s++)if(r=l[s],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){l.splice(s,1);break t}}r=i.createElement(a),Dt(r,a,n),i.head.appendChild(r);break;case"meta":if(l=Wg("meta","content",i).get(a+(n.content||""))){for(s=0;s<l.length;s++)if(r=l[s],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){l.splice(s,1);break t}}r=i.createElement(a),Dt(r,a,n),i.head.appendChild(r);break;default:throw Error(M(468,a))}r[Vt]=e,bt(r),a=r}e.stateNode=a}else ev(i,e.type,e.stateNode);else e.stateNode=Kg(i,a,e.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?ev(i,e.type,e.stateNode):Kg(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ic(e,e.memoizedProps,n.memoizedProps)}break;case 27:fn(t,e),dn(e),a&512&&(lt||n===null||Xn(n,n.return)),n!==null&&a&4&&Ic(e,e.memoizedProps,n.memoizedProps);break;case 5:if(fn(t,e),dn(e),a&512&&(lt||n===null||Xn(n,n.return)),e.flags&32){i=e.stateNode;try{yr(i,"")}catch(f){He(e,e.return,f)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Ic(e,i,n!==null?n.memoizedProps:i)),a&1024&&(Xc=!0);break;case 6:if(fn(t,e),dn(e),a&4){if(e.stateNode===null)throw Error(M(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(f){He(e,e.return,f)}}break;case 3:if(vo=null,i=Vn,Vn=Io(t.containerInfo),fn(t,e),Vn=i,dn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ql(t.containerInfo)}catch(f){He(e,e.return,f)}Xc&&(Xc=!1,nb(e));break;case 4:a=Vn,Vn=Io(e.stateNode.containerInfo),fn(t,e),dn(e),Vn=a;break;case 12:fn(t,e),dn(e);break;case 13:fn(t,e),dn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(zd=Fn()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Qc(e,a)));break;case 22:i=e.memoizedState!==null;var o=n!==null&&n.memoizedState!==null,u=ia,c=lt;if(ia=u||i,lt=c||o,fn(t,e),lt=c,ia=u,dn(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||o||ia||lt||oi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){o=n=t;try{if(r=o.stateNode,i)l=r.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none";else{s=o.stateNode;var p=o.memoizedProps.style,d=p!=null&&p.hasOwnProperty("display")?p.display:null;s.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(f){He(o,o.return,f)}}}else if(t.tag===6){if(n===null){o=t;try{o.stateNode.nodeValue=i?"":o.memoizedProps}catch(f){He(o,o.return,f)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Qc(e,n))));break;case 19:fn(t,e),dn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Qc(e,a)));break;case 30:break;case 21:break;default:fn(t,e),dn(e)}}function dn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Zy(a)){n=a;break}a=a.return}if(n==null)throw Error(M(160));switch(n.tag){case 27:var i=n.stateNode,r=Gc(e);Bo(e,r,i);break;case 5:var l=n.stateNode;n.flags&32&&(yr(l,""),n.flags&=-33);var s=Gc(e);Bo(e,s,l);break;case 3:case 4:var o=n.stateNode.containerInfo,u=Gc(e);Lf(e,u,o);break;default:throw Error(M(161))}}catch(c){He(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function nb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;nb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ka(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$y(e,t.alternate,t),t=t.sibling}function oi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ga(4,t,t.return),oi(t);break;case 1:Xn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Qy(t,t.return,n),oi(t);break;case 27:Al(t.stateNode);case 26:case 5:Xn(t,t.return),oi(t);break;case 22:t.memoizedState===null&&oi(t);break;case 30:oi(t);break;default:oi(t)}e=e.sibling}}function Ta(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,r=t,l=r.flags;switch(r.tag){case 0:case 11:case 15:Ta(i,r,n),es(4,r);break;case 1:if(Ta(i,r,n),a=r,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){He(a,a.return,u)}if(a=r,i=a.updateQueue,i!==null){var s=a.stateNode;try{var o=i.shared.hiddenCallbacks;if(o!==null)for(i.shared.hiddenCallbacks=null,i=0;i<o.length;i++)$v(o[i],s)}catch(u){He(a,a.return,u)}}n&&l&64&&Xy(r),El(r,r.return);break;case 27:Jy(r);case 26:case 5:Ta(i,r,n),n&&a===null&&l&4&&Fy(r),El(r,r.return);break;case 12:Ta(i,r,n);break;case 13:Ta(i,r,n),n&&l&4&&eb(i,r);break;case 22:r.memoizedState===null&&Ta(i,r,n),El(r,r.return);break;case 30:break;default:Ta(i,r,n)}t=t.sibling}}function _d(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Jl(n))}function Dd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jl(e))}function In(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ab(e,t,n,a),t=t.sibling}function ab(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:In(e,t,n,a),i&2048&&es(9,t);break;case 1:In(e,t,n,a);break;case 3:In(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jl(e)));break;case 12:if(i&2048){In(e,t,n,a),e=t.stateNode;try{var r=t.memoizedProps,l=r.id,s=r.onPostCommit;typeof s=="function"&&s(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(o){He(t,t.return,o)}}else In(e,t,n,a);break;case 13:In(e,t,n,a);break;case 23:break;case 22:r=t.stateNode,l=t.alternate,t.memoizedState!==null?r._visibility&2?In(e,t,n,a):kl(e,t):r._visibility&2?In(e,t,n,a):(r._visibility|=2,Fi(e,t,n,a,(t.subtreeFlags&10256)!==0)),i&2048&&_d(l,t);break;case 24:In(e,t,n,a),i&2048&&Dd(t.alternate,t);break;default:In(e,t,n,a)}}function Fi(e,t,n,a,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var r=e,l=t,s=n,o=a,u=l.flags;switch(l.tag){case 0:case 11:case 15:Fi(r,l,s,o,i),es(8,l);break;case 23:break;case 22:var c=l.stateNode;l.memoizedState!==null?c._visibility&2?Fi(r,l,s,o,i):kl(r,l):(c._visibility|=2,Fi(r,l,s,o,i)),i&&u&2048&&_d(l.alternate,l);break;case 24:Fi(r,l,s,o,i),i&&u&2048&&Dd(l.alternate,l);break;default:Fi(r,l,s,o,i)}t=t.sibling}}function kl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:kl(n,a),i&2048&&_d(a.alternate,a);break;case 24:kl(n,a),i&2048&&Dd(a.alternate,a);break;default:kl(n,a)}t=t.sibling}}var pl=8192;function Gi(e){if(e.subtreeFlags&pl)for(e=e.child;e!==null;)ib(e),e=e.sibling}function ib(e){switch(e.tag){case 26:Gi(e),e.flags&pl&&e.memoizedState!==null&&ow(Vn,e.memoizedState,e.memoizedProps);break;case 5:Gi(e);break;case 3:case 4:var t=Vn;Vn=Io(e.stateNode.containerInfo),Gi(e),Vn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=pl,pl=16777216,Gi(e),pl=t):Gi(e));break;default:Gi(e)}}function rb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function sl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];yt=a,sb(a,e)}rb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)lb(e),e=e.sibling}function lb(e){switch(e.tag){case 0:case 11:case 15:sl(e),e.flags&2048&&Ga(9,e,e.return);break;case 3:sl(e);break;case 12:sl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ho(e)):sl(e);break;default:sl(e)}}function ho(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];yt=a,sb(a,e)}rb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ga(8,t,t.return),ho(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ho(t));break;default:ho(t)}e=e.sibling}}function sb(e,t){for(;yt!==null;){var n=yt;switch(n.tag){case 0:case 11:case 15:Ga(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Jl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,yt=a;else e:for(n=e;yt!==null;){a=yt;var i=a.sibling,r=a.return;if(Ky(a),a===n){yt=null;break e}if(i!==null){i.return=r,yt=i;break e}yt=r}}}var wT={getCacheForType:function(e){var t=Ht(ht),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},AT=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Ye=null,ye=null,Ne=0,Ae=0,pn=null,za=!1,_r=!1,Od=!1,ha=0,tt=0,Xa=0,mi=0,Ld=0,_n=0,Er=0,Tl=null,Wt=null,zf=!1,zd=0,Vo=1/0,Ho=null,Ha=null,_t=0,Pa=null,kr=null,hr=0,Mf=0,Uf=null,ob=null,wl=0,Bf=null;function vn(){if((Ce&2)!==0&&Ne!==0)return Ne&-Ne;if(ue.T!==null){var e=br;return e!==0?e:Ud()}return bv()}function ub(){_n===0&&(_n=(Ne&536870912)===0||ke?hv():536870912);var e=Dn.current;return e!==null&&(e.flags|=32),_n}function yn(e,t,n){(e===Ye&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(Tr(e,0),Ma(e,Ne,_n,!1)),Gl(e,n),((Ce&2)===0||e!==Ye)&&(e===Ye&&((Ce&2)===0&&(mi|=n),tt===4&&Ma(e,Ne,_n,!1)),$n(e))}function cb(e,t,n){if((Ce&6)!==0)throw Error(M(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Il(e,t),i=a?_T(e,t):Fc(e,t,!0),r=a;do{if(i===0){_r&&!a&&Ma(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!CT(n)){i=Fc(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var s=e;i=Tl;var o=s.current.memoizedState.isDehydrated;if(o&&(Tr(s,l).flags|=256),l=Fc(s,l,!1),l!==2){if(Od&&!o){s.errorRecoveryDisabledLanes|=r,mi|=r,i=4;break e}r=Wt,Wt=i,r!==null&&(Wt===null?Wt=r:Wt.push.apply(Wt,r))}i=l}if(r=!1,i!==2)continue}}if(i===1){Tr(e,0),Ma(e,t,0,!0);break}e:{switch(a=e,r=i,r){case 0:case 1:throw Error(M(345));case 4:if((t&4194048)!==t)break;case 6:Ma(a,t,_n,!za);break e;case 2:Wt=null;break;case 3:case 5:break;default:throw Error(M(329))}if((t&62914560)===t&&(i=zd+300-Fn(),10<i)){if(Ma(a,t,_n,!za),Zo(a,0,!0)!==0)break e;a.timeoutHandle=Rb(Mg.bind(null,a,n,Wt,Ho,zf,t,_n,mi,Er,za,r,2,-0,0),i);break e}Mg(a,n,Wt,Ho,zf,t,_n,mi,Er,za,r,0,-0,0)}}break}while(!0);$n(e)}function Mg(e,t,n,a,i,r,l,s,o,u,c,p,d,f){if(e.timeoutHandle=-1,p=t.subtreeFlags,(p&8192||(p&16785408)===16785408)&&(Bl={stylesheets:null,count:0,unsuspend:sw},ib(t),p=uw(),p!==null)){e.cancelPendingCommit=p(Bg.bind(null,e,t,r,n,a,i,l,s,o,c,1,d,f)),Ma(e,r,l,!u);return}Bg(e,t,r,n,a,i,l,s,o)}function CT(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],r=i.getSnapshot;i=i.value;try{if(!bn(r(),i))return!1}catch(l){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 Ma(e,t,n,a){t&=~Ld,t&=~mi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var r=31-gn(i),l=1<<r;a[r]=-1,i&=~l}n!==0&&vv(e,n,t)}function ru(){return(Ce&6)===0?(ts(0,!1),!1):!0}function Md(){if(ye!==null){if(Ae===0)var e=ye.return;else e=ye,oa=Ei=null,xd(e),mr=null,zl=0,e=ye;for(;e!==null;)Gy(e.alternate,e),e=e.return;ye=null}}function Tr(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,IT(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Md(),Ye=e,ye=n=ca(e.current,null),Ne=t,Ae=0,pn=null,za=!1,_r=Il(e,t),Od=!1,Er=_n=Ld=mi=Xa=tt=0,Wt=Tl=null,zf=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-gn(a),r=1<<i;t|=e[i],a&=~r}return ha=t,Wo(),n}function fb(e,t){he=null,ue.H=Oo,t===$l||t===tu?(t=pg(),Ae=3):t===Zv?(t=pg(),Ae=4):Ae=t===Hy?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,pn=t,ye===null&&(tt=1,Mo(e,Rn(t,e.current)))}function db(){var e=ue.H;return ue.H=Oo,e===null?Oo:e}function pb(){var e=ue.A;return ue.A=wT,e}function Vf(){tt=4,za||(Ne&4194048)!==Ne&&Dn.current!==null||(_r=!0),(Xa&134217727)===0&&(mi&134217727)===0||Ye===null||Ma(Ye,Ne,_n,!1)}function Fc(e,t,n){var a=Ce;Ce|=2;var i=db(),r=pb();(Ye!==e||Ne!==t)&&(Ho=null,Tr(e,t)),t=!1;var l=tt;e:do try{if(Ae!==0&&ye!==null){var s=ye,o=pn;switch(Ae){case 8:Md(),l=6;break e;case 3:case 2:case 9:case 6:Dn.current===null&&(t=!0);var u=Ae;if(Ae=0,pn=null,sr(e,s,o,u),n&&_r){l=0;break e}break;default:u=Ae,Ae=0,pn=null,sr(e,s,o,u)}}RT(),l=tt;break}catch(c){fb(e,c)}while(!0);return t&&e.shellSuspendCounter++,oa=Ei=null,Ce=a,ue.H=i,ue.A=r,ye===null&&(Ye=null,Ne=0,Wo()),l}function RT(){for(;ye!==null;)mb(ye)}function _T(e,t){var n=Ce;Ce|=2;var a=db(),i=pb();Ye!==e||Ne!==t?(Ho=null,Vo=Fn()+500,Tr(e,t)):_r=Il(e,t);e:do try{if(Ae!==0&&ye!==null){t=ye;var r=pn;t:switch(Ae){case 1:Ae=0,pn=null,sr(e,t,r,1);break;case 2:case 9:if(dg(r)){Ae=0,pn=null,Ug(t);break}t=function(){Ae!==2&&Ae!==9||Ye!==e||(Ae=7),$n(e)},r.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:dg(r)?(Ae=0,pn=null,Ug(t)):(Ae=0,pn=null,sr(e,t,r,7));break;case 5:var l=null;switch(ye.tag){case 26:l=ye.memoizedState;case 5:case 27:var s=ye;if(!l||Lb(l)){Ae=0,pn=null;var o=s.sibling;if(o!==null)ye=o;else{var u=s.return;u!==null?(ye=u,lu(u)):ye=null}break t}}Ae=0,pn=null,sr(e,t,r,5);break;case 6:Ae=0,pn=null,sr(e,t,r,6);break;case 8:Md(),tt=6;break e;default:throw Error(M(462))}}DT();break}catch(c){fb(e,c)}while(!0);return oa=Ei=null,ue.H=a,ue.A=i,Ce=n,ye!==null?0:(Ye=null,Ne=0,Wo(),tt)}function DT(){for(;ye!==null&&!WE();)mb(ye)}function mb(e){var t=Iy(e.alternate,e,ha);e.memoizedProps=e.pendingProps,t===null?lu(e):ye=t}function Ug(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Rg(n,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Rg(n,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:xd(t);default:Gy(n,t),t=ye=Gv(t,ha),t=Iy(n,t,ha)}e.memoizedProps=e.pendingProps,t===null?lu(e):ye=t}function sr(e,t,n,a){oa=Ei=null,xd(t),mr=null,zl=0;var i=t.return;try{if(ST(e,i,t,n,Ne)){tt=1,Mo(e,Rn(n,e.current)),ye=null;return}}catch(r){if(i!==null)throw ye=i,r;tt=1,Mo(e,Rn(n,e.current)),ye=null;return}t.flags&32768?(ke||a===1?e=!0:_r||(Ne&536870912)!==0?e=!1:(za=e=!0,(a===2||a===9||a===3||a===6)&&(a=Dn.current,a!==null&&a.tag===13&&(a.flags|=16384))),hb(t,e)):lu(t)}function lu(e){var t=e;do{if((t.flags&32768)!==0){hb(t,za);return}e=t.return;var n=NT(t.alternate,t,ha);if(n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);tt===0&&(tt=5)}function hb(e,t){do{var n=ET(e.alternate,e);if(n!==null){n.flags&=32767,ye=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=n}while(e!==null);tt=6,ye=null}function Bg(e,t,n,a,i,r,l,s,o){e.cancelPendingCommit=null;do su();while(_t!==0);if((Ce&6)!==0)throw Error(M(327));if(t!==null){if(t===e.current)throw Error(M(177));if(r=t.lanes|t.childLanes,r|=od,uk(e,n,r,l,s,o),e===Ye&&(ye=Ye=null,Ne=0),kr=t,Pa=e,hr=n,Mf=r,Uf=i,ob=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,MT(No,function(){return Sb(!0),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=ue.T,ue.T=null,i=Te.p,Te.p=2,l=Ce,Ce|=4;try{kT(e,t,n)}finally{Ce=l,Te.p=i,ue.T=a}}_t=1,gb(),vb(),yb()}}function gb(){if(_t===1){_t=0;var e=Pa,t=kr,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=ue.T,ue.T=null;var a=Te.p;Te.p=2;var i=Ce;Ce|=4;try{tb(t,e);var r=jf,l=Bv(e.containerInfo),s=r.focusedElem,o=r.selectionRange;if(l!==s&&s&&s.ownerDocument&&Uv(s.ownerDocument.documentElement,s)){if(o!==null&&sd(s)){var u=o.start,c=o.end;if(c===void 0&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var p=s.ownerDocument||document,d=p&&p.defaultView||window;if(d.getSelection){var f=d.getSelection(),S=s.textContent.length,x=Math.min(o.start,S),k=o.end===void 0?x:Math.min(o.end,S);!f.extend&&x>k&&(l=k,k=x,x=l);var m=ig(s,x),h=ig(s,k);if(m&&h&&(f.rangeCount!==1||f.anchorNode!==m.node||f.anchorOffset!==m.offset||f.focusNode!==h.node||f.focusOffset!==h.offset)){var g=p.createRange();g.setStart(m.node,m.offset),f.removeAllRanges(),x>k?(f.addRange(g),f.extend(h.node,h.offset)):(g.setEnd(h.node,h.offset),f.addRange(g))}}}}for(p=[],f=s;f=f.parentNode;)f.nodeType===1&&p.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<p.length;s++){var E=p[s];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}Qo=!!qf,jf=qf=null}finally{Ce=i,Te.p=a,ue.T=n}}e.current=t,_t=2}}function vb(){if(_t===2){_t=0;var e=Pa,t=kr,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=ue.T,ue.T=null;var a=Te.p;Te.p=2;var i=Ce;Ce|=4;try{$y(e,t.alternate,t)}finally{Ce=i,Te.p=a,ue.T=n}}_t=3}}function yb(){if(_t===4||_t===3){_t=0,ek();var e=Pa,t=kr,n=hr,a=ob;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?_t=5:(_t=0,kr=Pa=null,bb(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ha=null),ed(n),t=t.stateNode,hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(Yl,t,void 0,(t.current.flags&128)===128)}catch(o){}if(a!==null){t=ue.T,i=Te.p,Te.p=2,ue.T=null;try{for(var r=e.onRecoverableError,l=0;l<a.length;l++){var s=a[l];r(s.value,{componentStack:s.stack})}}finally{ue.T=t,Te.p=i}}(hr&3)!==0&&su(),$n(e),i=e.pendingLanes,(n&4194090)!==0&&(i&42)!==0?e===Bf?wl++:(wl=0,Bf=e):wl=0,ts(0,!1)}}function bb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Jl(t)))}function su(e){return gb(),vb(),yb(),Sb(e)}function Sb(){if(_t!==5)return!1;var e=Pa,t=Mf;Mf=0;var n=ed(hr),a=ue.T,i=Te.p;try{Te.p=32>n?32:n,ue.T=null,n=Uf,Uf=null;var r=Pa,l=hr;if(_t=0,kr=Pa=null,hr=0,(Ce&6)!==0)throw Error(M(331));var s=Ce;if(Ce|=4,lb(r.current),ab(r,r.current,l,n),Ce=s,ts(0,!1),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(Yl,r)}catch(o){}return!0}finally{Te.p=i,ue.T=a,bb(e,t)}}function Vg(e,t,n){t=Rn(n,t),t=_f(e.stateNode,t,2),e=Va(e,t,2),e!==null&&(Gl(e,2),$n(e))}function He(e,t,n){if(e.tag===3)Vg(e,e,n);else for(;t!==null;){if(t.tag===3){Vg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ha===null||!Ha.has(a))){e=Rn(n,e),n=By(2),a=Va(t,n,2),a!==null&&(Vy(n,a,t,e),Gl(a,2),$n(a));break}}t=t.return}}function Zc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new AT;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(Od=!0,i.add(n),e=OT.bind(null,e,t,n),t.then(e,e))}function OT(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ye===e&&(Ne&n)===n&&(tt===4||tt===3&&(Ne&62914560)===Ne&&300>Fn()-zd?(Ce&2)===0&&Tr(e,0):Ld|=n,Er===Ne&&(Er=0)),$n(e)}function xb(e,t){t===0&&(t=gv()),e=Rr(e,t),e!==null&&(Gl(e,t),$n(e))}function LT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xb(e,n)}function zT(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(M(314))}a!==null&&a.delete(t),xb(e,n)}function MT(e,t){return Kf(e,t)}var Po=null,Zi=null,Hf=!1,qo=!1,Jc=!1,hi=0;function $n(e){e!==Zi&&e.next===null&&(Zi===null?Po=Zi=e:Zi=Zi.next=e),qo=!0,Hf||(Hf=!0,BT())}function ts(e,t){if(!Jc&&qo){Jc=!0;do for(var n=!1,a=Po;a!==null;){if(!t)if(e!==0){var i=a.pendingLanes;if(i===0)var r=0;else{var l=a.suspendedLanes,s=a.pingedLanes;r=(1<<31-gn(42|e)+1)-1,r&=i&~(l&~s),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Hg(a,r))}else r=Ne,r=Zo(a,a===Ye?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||Il(a,r)||(n=!0,Hg(a,r));a=a.next}while(n);Jc=!1}}function UT(){Nb()}function Nb(){qo=Hf=!1;var e=0;hi!==0&&(YT()&&(e=hi),hi=0);for(var t=Fn(),n=null,a=Po;a!==null;){var i=a.next,r=Eb(a,t);r===0?(a.next=null,n===null?Po=i:n.next=i,i===null&&(Zi=n)):(n=a,(e!==0||(r&3)!==0)&&(qo=!0)),a=i}ts(e,!1)}function Eb(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var l=31-gn(r),s=1<<l,o=i[l];o===-1?((s&n)===0||(s&a)!==0)&&(i[l]=ok(s,t)):o<=t&&(e.expiredLanes|=s),r&=~s}if(t=Ye,n=Ne,n=Zo(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ec(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Il(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Ec(a),ed(n)){case 2:case 8:n=pv;break;case 32:n=No;break;case 268435456:n=mv;break;default:n=No}return a=kb.bind(null,e),n=Kf(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Ec(a),e.callbackPriority=2,e.callbackNode=null,2}function kb(e,t){if(_t!==0&&_t!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(su(!0)&&e.callbackNode!==n)return null;var a=Ne;return a=Zo(e,e===Ye?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(cb(e,a,t),Eb(e,Fn()),e.callbackNode!=null&&e.callbackNode===n?kb.bind(null,e):null)}function Hg(e,t){if(su())return null;cb(e,t,!0)}function BT(){GT(function(){(Ce&6)!==0?Kf(dv,UT):Nb()})}function Ud(){return hi===0&&(hi=hv()),hi}function Pg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lo(""+e)}function qg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function VT(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var r=Pg((i[en]||null).action),l=a.submitter;l&&(t=(t=l[en]||null)?Pg(t.formAction):l.getAttribute("formAction"),t!==null&&(r=t,l=null));var s=new Jo("action","action",null,a,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(hi!==0){var o=l?qg(i,l):new FormData(i);Cf(n,{pending:!0,data:o,method:i.method,action:r},null,o)}}else typeof r=="function"&&(s.preventDefault(),o=l?qg(i,l):new FormData(i),Cf(n,{pending:!0,data:o,method:i.method,action:r},r,o))},currentTarget:i}]})}}for(eo=0;eo<gf.length;eo++)to=gf[eo],jg=to.toLowerCase(),Yg=to[0].toUpperCase()+to.slice(1),Pn(jg,"on"+Yg);var to,jg,Yg,eo;Pn(Hv,"onAnimationEnd");Pn(Pv,"onAnimationIteration");Pn(qv,"onAnimationStart");Pn("dblclick","onDoubleClick");Pn("focusin","onFocus");Pn("focusout","onBlur");Pn(aT,"onTransitionRun");Pn(iT,"onTransitionStart");Pn(rT,"onTransitionCancel");Pn(jv,"onTransitionEnd");vr("onMouseEnter",["mouseout","mouseover"]);vr("onMouseLeave",["mouseout","mouseover"]);vr("onPointerEnter",["pointerout","pointerover"]);vr("onPointerLeave",["pointerout","pointerover"]);Si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Si("onBeforeInput",["compositionend","keypress","textInput","paste"]);Si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ml="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(" "),HT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ml));function Tb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var r=void 0;if(t)for(var l=a.length-1;0<=l;l--){var s=a[l],o=s.instance,u=s.currentTarget;if(s=s.listener,o!==r&&i.isPropagationStopped())break e;r=s,i.currentTarget=u;try{r(i)}catch(c){zo(c)}i.currentTarget=null,r=o}else for(l=0;l<a.length;l++){if(s=a[l],o=s.instance,u=s.currentTarget,s=s.listener,o!==r&&i.isPropagationStopped())break e;r=s,i.currentTarget=u;try{r(i)}catch(c){zo(c)}i.currentTarget=null,r=o}}}}function ve(e,t){var n=t[uf];n===void 0&&(n=t[uf]=new Set);var a=e+"__bubble";n.has(a)||(wb(t,e,2,!1),n.add(a))}function $c(e,t,n){var a=0;t&&(a|=4),wb(n,e,a,t)}var no="_reactListening"+Math.random().toString(36).slice(2);function Bd(e){if(!e[no]){e[no]=!0,Sv.forEach(function(n){n!=="selectionchange"&&(HT.has(n)||$c(n,!1,e),$c(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[no]||(t[no]=!0,$c("selectionchange",!1,t))}}function wb(e,t,n,a){switch(Vb(t)){case 2:var i=dw;break;case 8:i=pw;break;default:i=qd}n=i.bind(null,t,n,e),i=void 0,!pf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Kc(e,t,n,a,i){var r=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var l=a.tag;if(l===3||l===4){var s=a.stateNode.containerInfo;if(s===i)break;if(l===4)for(l=a.return;l!==null;){var o=l.tag;if((o===3||o===4)&&l.stateNode.containerInfo===i)return;l=l.return}for(;s!==null;){if(l=Ki(s),l===null)return;if(o=l.tag,o===5||o===6||o===26||o===27){a=r=l;continue e}s=s.parentNode}}a=a.return}Cv(function(){var u=r,c=ad(n),p=[];e:{var d=Yv.get(e);if(d!==void 0){var f=Jo,S=e;switch(e){case"keypress":if(oo(n)===0)break e;case"keydown":case"keyup":f=Mk;break;case"focusin":S="focus",f=Dc;break;case"focusout":S="blur",f=Dc;break;case"beforeblur":case"afterblur":f=Dc;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":f=Zh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Ek;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Vk;break;case Hv:case Pv:case qv:f=wk;break;case jv:f=Pk;break;case"scroll":case"scrollend":f=xk;break;case"wheel":f=jk;break;case"copy":case"cut":case"paste":f=Ck;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=$h;break;case"toggle":case"beforetoggle":f=Ik}var x=(t&4)!==0,k=!x&&(e==="scroll"||e==="scrollend"),m=x?d!==null?d+"Capture":null:d;x=[];for(var h=u,g;h!==null;){var E=h;if(g=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||g===null||m===null||(E=Rl(h,m),E!=null&&x.push(Ul(h,E,g))),k)break;h=h.return}0<x.length&&(d=new f(d,S,null,n,c),p.push({event:d,listeners:x}))}}if((t&7)===0){e:{if(d=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",d&&n!==df&&(S=n.relatedTarget||n.fromElement)&&(Ki(S)||S[Ar]))break e;if((f||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,f?(S=n.relatedTarget||n.toElement,f=u,S=S?Ki(S):null,S!==null&&(k=jl(S),x=S.tag,S!==k||x!==5&&x!==27&&x!==6)&&(S=null)):(f=null,S=u),f!==S)){if(x=Zh,E="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(x=$h,E="onPointerLeave",m="onPointerEnter",h="pointer"),k=f==null?d:dl(f),g=S==null?d:dl(S),d=new x(E,h+"leave",f,n,c),d.target=k,d.relatedTarget=g,E=null,Ki(c)===u&&(x=new x(m,h+"enter",S,n,c),x.target=g,x.relatedTarget=k,E=x),k=E,f&&S)t:{for(x=f,m=S,h=0,g=x;g;g=Xi(g))h++;for(g=0,E=m;E;E=Xi(E))g++;for(;0<h-g;)x=Xi(x),h--;for(;0<g-h;)m=Xi(m),g--;for(;h--;){if(x===m||m!==null&&x===m.alternate)break t;x=Xi(x),m=Xi(m)}x=null}else x=null;f!==null&&Ig(p,d,f,x,!1),S!==null&&k!==null&&Ig(p,k,S,x,!0)}}e:{if(d=u?dl(u):window,f=d.nodeName&&d.nodeName.toLowerCase(),f==="select"||f==="input"&&d.type==="file")var T=tg;else if(eg(d))if(zv)T=eT;else{T=Kk;var N=$k}else f=d.nodeName,!f||f.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&nd(u.elementType)&&(T=tg):T=Wk;if(T&&(T=T(e,u))){Lv(p,T,n,c);break e}N&&N(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&ff(d,"number",d.value)}switch(N=u?dl(u):window,e){case"focusin":(eg(N)||N.contentEditable==="true")&&(tr=N,mf=u,gl=null);break;case"focusout":gl=mf=tr=null;break;case"mousedown":hf=!0;break;case"contextmenu":case"mouseup":case"dragend":hf=!1,rg(p,n,c);break;case"selectionchange":if(nT)break;case"keydown":case"keyup":rg(p,n,c)}var A;if(ld)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else er?Dv(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(_v&&n.locale!=="ko"&&(er||C!=="onCompositionStart"?C==="onCompositionEnd"&&er&&(A=Rv()):(La=c,id="value"in La?La.value:La.textContent,er=!0)),N=jo(u,C),0<N.length&&(C=new Jh(C,e,null,n,c),p.push({event:C,listeners:N}),A?C.data=A:(A=Ov(n),A!==null&&(C.data=A)))),(A=Xk?Qk(e,n):Fk(e,n))&&(C=jo(u,"onBeforeInput"),0<C.length&&(N=new Jh("onBeforeInput","beforeinput",null,n,c),p.push({event:N,listeners:C}),N.data=A)),VT(p,e,u,n,c)}Tb(p,t)})}function Ul(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jo(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=Rl(e,n),i!=null&&a.unshift(Ul(e,i,r)),i=Rl(e,t),i!=null&&a.push(Ul(e,i,r))),e.tag===3)return a;e=e.return}return[]}function Xi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ig(e,t,n,a,i){for(var r=t._reactName,l=[];n!==null&&n!==a;){var s=n,o=s.alternate,u=s.stateNode;if(s=s.tag,o!==null&&o===a)break;s!==5&&s!==26&&s!==27||u===null||(o=u,i?(u=Rl(n,r),u!=null&&l.unshift(Ul(n,u,o))):i||(u=Rl(n,r),u!=null&&l.push(Ul(n,u,o)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var PT=/\r\n?/g,qT=/\u0000|\uFFFD/g;function Gg(e){return(typeof e=="string"?e:""+e).replace(PT,`
|
|
9
|
+
`).replace(qT,"")}function Ab(e,t){return t=Gg(t),Gg(e)===t}function ou(){}function Oe(e,t,n,a,i,r){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||yr(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&yr(e,""+a);break;case"className":Gs(e,"class",a);break;case"tabIndex":Gs(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Gs(e,n,a);break;case"style":Av(e,a,r);break;case"data":if(t!=="object"){Gs(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=lo(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&Oe(e,t,"name",i.name,i,null),Oe(e,t,"formEncType",i.formEncType,i,null),Oe(e,t,"formMethod",i.formMethod,i,null),Oe(e,t,"formTarget",i.formTarget,i,null)):(Oe(e,t,"encType",i.encType,i,null),Oe(e,t,"method",i.method,i,null),Oe(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=lo(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=ou);break;case"onScroll":a!=null&&ve("scroll",e);break;case"onScrollEnd":a!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(M(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(M(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=lo(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":ve("beforetoggle",e),ve("toggle",e),ro(e,"popover",a);break;case"xlinkActuate":ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ta(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ta(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ta(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ta(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ro(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=bk.get(n)||n,ro(e,n,a))}}function Pf(e,t,n,a,i,r){switch(n){case"style":Av(e,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(M(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(M(60));e.innerHTML=n}}break;case"children":typeof a=="string"?yr(e,a):(typeof a=="number"||typeof a=="bigint")&&yr(e,""+a);break;case"onScroll":a!=null&&ve("scroll",e);break;case"onScrollEnd":a!=null&&ve("scrollend",e);break;case"onClick":a!=null&&(e.onclick=ou);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xv.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),r=e[en]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof a=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):ro(e,n,a)}}}function Dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var a=!1,i=!1,r;for(r in n)if(n.hasOwnProperty(r)){var l=n[r];if(l!=null)switch(r){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(M(137,t));default:Oe(e,t,r,l,n,null)}}i&&Oe(e,t,"srcSet",n.srcSet,n,null),a&&Oe(e,t,"src",n.src,n,null);return;case"input":ve("invalid",e);var s=r=l=i=null,o=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var c=n[a];if(c!=null)switch(a){case"name":i=c;break;case"type":l=c;break;case"checked":o=c;break;case"defaultChecked":u=c;break;case"value":r=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(M(137,t));break;default:Oe(e,t,a,c,n,null)}}kv(e,r,s,o,u,l,i,!1),Eo(e);return;case"select":ve("invalid",e),a=l=r=null;for(i in n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case"value":r=s;break;case"defaultValue":l=s;break;case"multiple":a=s;default:Oe(e,t,i,s,n,null)}t=r,n=l,e.multiple=!!a,t!=null?ur(e,!!a,t,!1):n!=null&&ur(e,!!a,n,!0);return;case"textarea":ve("invalid",e),r=i=a=null;for(l in n)if(n.hasOwnProperty(l)&&(s=n[l],s!=null))switch(l){case"value":a=s;break;case"defaultValue":i=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(M(91));break;default:Oe(e,t,l,s,n,null)}wv(e,a,i,r),Eo(e);return;case"option":for(o in n)if(n.hasOwnProperty(o)&&(a=n[o],a!=null))switch(o){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Oe(e,t,o,a,n,null)}return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(a=0;a<Ml.length;a++)ve(Ml[a],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(a=n[u],a!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(M(137,t));default:Oe(e,t,u,a,n,null)}return;default:if(nd(t)){for(c in n)n.hasOwnProperty(c)&&(a=n[c],a!==void 0&&Pf(e,t,c,a,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(a=n[s],a!=null&&Oe(e,t,s,a,n,null))}function jT(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,l=null,s=null,o=null,u=null,c=null;for(f in n){var p=n[f];if(n.hasOwnProperty(f)&&p!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":o=p;default:a.hasOwnProperty(f)||Oe(e,t,f,null,a,p)}}for(var d in a){var f=a[d];if(p=n[d],a.hasOwnProperty(d)&&(f!=null||p!=null))switch(d){case"type":r=f;break;case"name":i=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":l=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(M(137,t));break;default:f!==p&&Oe(e,t,d,f,a,p)}}cf(e,l,s,o,u,c,r,i);return;case"select":f=l=s=d=null;for(r in n)if(o=n[r],n.hasOwnProperty(r)&&o!=null)switch(r){case"value":break;case"multiple":f=o;default:a.hasOwnProperty(r)||Oe(e,t,r,null,a,o)}for(i in a)if(r=a[i],o=n[i],a.hasOwnProperty(i)&&(r!=null||o!=null))switch(i){case"value":d=r;break;case"defaultValue":s=r;break;case"multiple":l=r;default:r!==o&&Oe(e,t,i,r,a,o)}t=s,n=l,a=f,d!=null?ur(e,!!n,d,!1):!!a!=!!n&&(t!=null?ur(e,!!n,t,!0):ur(e,!!n,n?[]:"",!1));return;case"textarea":f=d=null;for(s in n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Oe(e,t,s,null,a,i)}for(l in a)if(i=a[l],r=n[l],a.hasOwnProperty(l)&&(i!=null||r!=null))switch(l){case"value":d=i;break;case"defaultValue":f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(M(91));break;default:i!==r&&Oe(e,t,l,i,a,r)}Tv(e,d,f);return;case"option":for(var S in n)if(d=n[S],n.hasOwnProperty(S)&&d!=null&&!a.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:Oe(e,t,S,null,a,d)}for(o in a)if(d=a[o],f=n[o],a.hasOwnProperty(o)&&d!==f&&(d!=null||f!=null))switch(o){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Oe(e,t,o,d,a,f)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var x in n)d=n[x],n.hasOwnProperty(x)&&d!=null&&!a.hasOwnProperty(x)&&Oe(e,t,x,null,a,d);for(u in a)if(d=a[u],f=n[u],a.hasOwnProperty(u)&&d!==f&&(d!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(M(137,t));break;default:Oe(e,t,u,d,a,f)}return;default:if(nd(t)){for(var k in n)d=n[k],n.hasOwnProperty(k)&&d!==void 0&&!a.hasOwnProperty(k)&&Pf(e,t,k,void 0,a,d);for(c in a)d=a[c],f=n[c],!a.hasOwnProperty(c)||d===f||d===void 0&&f===void 0||Pf(e,t,c,d,a,f);return}}for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!a.hasOwnProperty(m)&&Oe(e,t,m,null,a,d);for(p in a)d=a[p],f=n[p],!a.hasOwnProperty(p)||d===f||d==null&&f==null||Oe(e,t,p,d,a,f)}var qf=null,jf=null;function Yo(e){return e.nodeType===9?e:e.ownerDocument}function Xg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Cb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Yf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wc=null;function YT(){var e=window.event;return e&&e.type==="popstate"?e===Wc?!1:(Wc=e,!0):(Wc=null,!1)}var Rb=typeof setTimeout=="function"?setTimeout:void 0,IT=typeof clearTimeout=="function"?clearTimeout:void 0,Qg=typeof Promise=="function"?Promise:void 0,GT=typeof queueMicrotask=="function"?queueMicrotask:typeof Qg!="undefined"?function(e){return Qg.resolve(null).then(e).catch(XT)}:Rb;function XT(e){setTimeout(function(){throw e})}function Fa(e){return e==="head"}function Fg(e,t){var n=t,a=0,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(0<a&&8>a){n=a;var l=e.ownerDocument;if(n&1&&Al(l.documentElement),n&2&&Al(l.body),n&4)for(n=l.head,Al(n),l=n.firstChild;l;){var s=l.nextSibling,o=l.nodeName;l[Xl]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&l.rel.toLowerCase()==="stylesheet"||n.removeChild(l),l=s}}if(i===0){e.removeChild(r),ql(t);return}i--}else n==="$"||n==="$?"||n==="$!"?i++:a=n.charCodeAt(0)-48;else a=0;n=r}while(n);ql(t)}function If(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":If(n),td(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function QT(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Xl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Hn(e.nextSibling),e===null)break}return null}function FT(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Hn(e.nextSibling),e===null))return null;return e}function Gf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function ZT(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Hn(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==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Xf=null;function Zg(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}function _b(e,t,n){switch(t=Yo(n),e){case"html":if(e=t.documentElement,!e)throw Error(M(452));return e;case"head":if(e=t.head,!e)throw Error(M(453));return e;case"body":if(e=t.body,!e)throw Error(M(454));return e;default:throw Error(M(451))}}function Al(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);td(e)}var On=new Map,Jg=new Set;function Io(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ga=Te.d;Te.d={f:JT,r:$T,D:KT,C:WT,L:ew,m:tw,X:aw,S:nw,M:iw};function JT(){var e=ga.f(),t=ru();return e||t}function $T(e){var t=Cr(e);t!==null&&t.tag===5&&t.type==="form"?Ey(t):ga.r(e)}var Dr=typeof document=="undefined"?null:document;function Db(e,t,n){var a=Dr;if(a&&typeof t=="string"&&t){var i=Cn(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Jg.has(i)||(Jg.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),Dt(t,"link",e),bt(t),a.head.appendChild(t)))}}function KT(e){ga.D(e),Db("dns-prefetch",e,null)}function WT(e,t){ga.C(e,t),Db("preconnect",e,t)}function ew(e,t,n){ga.L(e,t,n);var a=Dr;if(a&&e&&t){var i='link[rel="preload"][as="'+Cn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Cn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Cn(n.imageSizes)+'"]')):i+='[href="'+Cn(e)+'"]';var r=i;switch(t){case"style":r=wr(e);break;case"script":r=Or(e)}On.has(r)||(e=Ge({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),On.set(r,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(ns(r))||t==="script"&&a.querySelector(as(r))||(t=a.createElement("link"),Dt(t,"link",e),bt(t),a.head.appendChild(t)))}}function tw(e,t){ga.m(e,t);var n=Dr;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Cn(a)+'"][href="'+Cn(e)+'"]',r=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Or(e)}if(!On.has(r)&&(e=Ge({rel:"modulepreload",href:e},t),On.set(r,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(as(r)))return}a=n.createElement("link"),Dt(a,"link",e),bt(a),n.head.appendChild(a)}}}function nw(e,t,n){ga.S(e,t,n);var a=Dr;if(a&&e){var i=or(a).hoistableStyles,r=wr(e);t=t||"default";var l=i.get(r);if(!l){var s={loading:0,preload:null};if(l=a.querySelector(ns(r)))s.loading=5;else{e=Ge({rel:"stylesheet",href:e,"data-precedence":t},n),(n=On.get(r))&&Vd(e,n);var o=l=a.createElement("link");bt(o),Dt(o,"link",e),o._p=new Promise(function(u,c){o.onload=u,o.onerror=c}),o.addEventListener("load",function(){s.loading|=1}),o.addEventListener("error",function(){s.loading|=2}),s.loading|=4,go(l,t,a)}l={type:"stylesheet",instance:l,count:1,state:s},i.set(r,l)}}}function aw(e,t){ga.X(e,t);var n=Dr;if(n&&e){var a=or(n).hoistableScripts,i=Or(e),r=a.get(i);r||(r=n.querySelector(as(i)),r||(e=Ge({src:e,async:!0},t),(t=On.get(i))&&Hd(e,t),r=n.createElement("script"),bt(r),Dt(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function iw(e,t){ga.M(e,t);var n=Dr;if(n&&e){var a=or(n).hoistableScripts,i=Or(e),r=a.get(i);r||(r=n.querySelector(as(i)),r||(e=Ge({src:e,async:!0,type:"module"},t),(t=On.get(i))&&Hd(e,t),r=n.createElement("script"),bt(r),Dt(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function $g(e,t,n,a){var i=(i=Ua.current)?Io(i):null;if(!i)throw Error(M(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=wr(n.href),n=or(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=wr(n.href);var r=or(i).hoistableStyles,l=r.get(e);if(l||(i=i.ownerDocument||i,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,l),(r=i.querySelector(ns(e)))&&!r._p&&(l.instance=r,l.state.loading=5),On.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},On.set(e,n),r||rw(i,e,n,l.state))),t&&a===null)throw Error(M(528,""));return l}if(t&&a!==null)throw Error(M(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Or(n),n=or(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(M(444,e))}}function wr(e){return'href="'+Cn(e)+'"'}function ns(e){return'link[rel="stylesheet"]['+e+"]"}function Ob(e){return Ge({},e,{"data-precedence":e.precedence,precedence:null})}function rw(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Dt(t,"link",n),bt(t),e.head.appendChild(t))}function Or(e){return'[src="'+Cn(e)+'"]'}function as(e){return"script[async]"+e}function Kg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Cn(n.href)+'"]');if(a)return t.instance=a,bt(a),a;var i=Ge({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),bt(a),Dt(a,"style",i),go(a,n.precedence,e),t.instance=a;case"stylesheet":i=wr(n.href);var r=e.querySelector(ns(i));if(r)return t.state.loading|=4,t.instance=r,bt(r),r;a=Ob(n),(i=On.get(i))&&Vd(a,i),r=(e.ownerDocument||e).createElement("link"),bt(r);var l=r;return l._p=new Promise(function(s,o){l.onload=s,l.onerror=o}),Dt(r,"link",a),t.state.loading|=4,go(r,n.precedence,e),t.instance=r;case"script":return r=Or(n.src),(i=e.querySelector(as(r)))?(t.instance=i,bt(i),i):(a=n,(i=On.get(r))&&(a=Ge({},n),Hd(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),bt(i),Dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(M(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,go(a,n.precedence,e));return t.instance}function go(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,r=i,l=0;l<a.length;l++){var s=a[l];if(s.dataset.precedence===t)r=s;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Vd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Hd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vo=null;function Wg(e,t,n){if(vo===null){var a=new Map,i=vo=new Map;i.set(n,a)}else i=vo,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var r=n[i];if(!(r[Xl]||r[Vt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var l=r.getAttribute(t)||"";l=e+l;var s=a.get(l);s?s.push(r):a.set(l,[r])}}return a}function ev(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function lw(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Lb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Bl=null;function sw(){}function ow(e,t,n){if(Bl===null)throw Error(M(475));var a=Bl;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var i=wr(n.href),r=e.querySelector(ns(i));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Go.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=r,bt(r);return}r=e.ownerDocument||e,n=Ob(n),(i=On.get(i))&&Vd(n,i),r=r.createElement("link"),bt(r);var l=r;l._p=new Promise(function(s,o){l.onload=s,l.onerror=o}),Dt(r,"link",n),t.instance=r}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=Go.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function uw(){if(Bl===null)throw Error(M(475));var e=Bl;return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Go(){if(this.count--,this.count===0){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xo=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xo=new Map,t.forEach(cw,e),Xo=null,Go.call(e))}function cw(e,t){if(!(t.state.loading&4)){var n=Xo.get(e);if(n)var a=n.get(null);else{n=new Map,Xo.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var l=i[r];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),a=l)}a&&n.set(null,a)}i=t.instance,l=i.getAttribute("data-precedence"),r=n.get(l)||a,r===a&&n.set(null,i),n.set(l,i),this.count++,a=Go.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Vl={$$typeof:ra,Provider:null,Consumer:null,_currentValue:ui,_currentValue2:ui,_threadCount:0};function fw(e,t,n,a,i,r,l,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kc(0),this.hiddenUpdates=kc(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function zb(e,t,n,a,i,r,l,s,o,u,c,p){return e=new fw(e,t,n,l,s,o,u,p),t=1,r===!0&&(t|=24),r=mn(3,null,null,t),e.current=r,r.stateNode=e,t=pd(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:t},hd(r),e}function Mb(e){return e?(e=ir,e):ir}function Ub(e,t,n,a,i,r){i=Mb(i),a.context===null?a.context=i:a.pendingContext=i,a=Ba(t),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=Va(e,a,t),n!==null&&(yn(n,e,t),bl(n,e,t))}function tv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pd(e,t){tv(e,t),(e=e.alternate)&&tv(e,t)}function Bb(e){if(e.tag===13){var t=Rr(e,67108864);t!==null&&yn(t,e,67108864),Pd(e,67108864)}}var Qo=!0;function dw(e,t,n,a){var i=ue.T;ue.T=null;var r=Te.p;try{Te.p=2,qd(e,t,n,a)}finally{Te.p=r,ue.T=i}}function pw(e,t,n,a){var i=ue.T;ue.T=null;var r=Te.p;try{Te.p=8,qd(e,t,n,a)}finally{Te.p=r,ue.T=i}}function qd(e,t,n,a){if(Qo){var i=Ff(a);if(i===null)Kc(e,t,a,Fo,n),nv(e,a);else if(hw(i,e,t,n,a))a.stopPropagation();else if(nv(e,a),t&4&&-1<mw.indexOf(e)){for(;i!==null;){var r=Cr(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var l=li(r.pendingLanes);if(l!==0){var s=r;for(s.pendingLanes|=2,s.entangledLanes|=2;l;){var o=1<<31-gn(l);s.entanglements[1]|=o,l&=~o}$n(r),(Ce&6)===0&&(Vo=Fn()+500,ts(0,!1))}}break;case 13:s=Rr(r,2),s!==null&&yn(s,r,2),ru(),Pd(r,2)}if(r=Ff(a),r===null&&Kc(e,t,a,Fo,n),r===i)break;i=r}i!==null&&a.stopPropagation()}else Kc(e,t,a,null,n)}}function Ff(e){return e=ad(e),jd(e)}var Fo=null;function jd(e){if(Fo=null,e=Ki(e),e!==null){var t=jl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ov(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 Fo=e,null}function Vb(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(tk()){case dv:return 2;case pv:return 8;case No:case nk:return 32;case mv:return 268435456;default:return 32}default:return 32}}var Zf=!1,qa=null,ja=null,Ya=null,Hl=new Map,Pl=new Map,Da=[],mw="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".split(" ");function nv(e,t){switch(e){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":ja=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":Hl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(t.pointerId)}}function ol(e,t,n,a,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[i]},t!==null&&(t=Cr(t),t!==null&&Bb(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function hw(e,t,n,a,i){switch(t){case"focusin":return qa=ol(qa,e,t,n,a,i),!0;case"dragenter":return ja=ol(ja,e,t,n,a,i),!0;case"mouseover":return Ya=ol(Ya,e,t,n,a,i),!0;case"pointerover":var r=i.pointerId;return Hl.set(r,ol(Hl.get(r)||null,e,t,n,a,i)),!0;case"gotpointercapture":return r=i.pointerId,Pl.set(r,ol(Pl.get(r)||null,e,t,n,a,i)),!0}return!1}function Hb(e){var t=Ki(e.target);if(t!==null){var n=jl(t);if(n!==null){if(t=n.tag,t===13){if(t=ov(n),t!==null){e.blockedOn=t,ck(e.priority,function(){if(n.tag===13){var a=vn();a=Wf(a);var i=Rr(n,a);i!==null&&yn(i,n,a),Pd(n,a)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function yo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ff(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);df=a,n.target.dispatchEvent(a),df=null}else return t=Cr(n),t!==null&&Bb(t),e.blockedOn=n,!1;t.shift()}return!0}function av(e,t,n){yo(e)&&n.delete(t)}function gw(){Zf=!1,qa!==null&&yo(qa)&&(qa=null),ja!==null&&yo(ja)&&(ja=null),Ya!==null&&yo(Ya)&&(Ya=null),Hl.forEach(av),Pl.forEach(av)}function ao(e,t){e.blockedOn===t&&(e.blockedOn=null,Zf||(Zf=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,gw)))}var io=null;function iv(e){io!==e&&(io=e,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,function(){io===e&&(io=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(jd(a||n)===null)continue;break}var r=Cr(n);r!==null&&(e.splice(t,3),t-=3,Cf(r,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function ql(e){function t(o){return ao(o,e)}qa!==null&&ao(qa,e),ja!==null&&ao(ja,e),Ya!==null&&ao(Ya,e),Hl.forEach(t),Pl.forEach(t);for(var n=0;n<Da.length;n++){var a=Da[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Da.length&&(n=Da[0],n.blockedOn===null);)Hb(n),n.blockedOn===null&&Da.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],r=n[a+1],l=i[en]||null;if(typeof r=="function")l||iv(n);else if(l){var s=null;if(r&&r.hasAttribute("formAction")){if(i=r,l=r[en]||null)s=l.formAction;else if(jd(i)!==null)continue}else s=l.action;typeof s=="function"?n[a+1]=s:(n.splice(a,3),a-=3),iv(n)}}}function Yd(e){this._internalRoot=e}uu.prototype.render=Yd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));var n=t.current,a=vn();Ub(n,a,e,t,null,null)};uu.prototype.unmount=Yd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ub(e.current,2,null,e,null,null),ru(),t[Ar]=null}};function uu(e){this._internalRoot=e}uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=bv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Da.length&&t!==0&&t<Da[n].priority;n++);Da.splice(n,0,e),n===0&&Hb(e)}};var rv=lv.version;if(rv!=="19.1.1")throw Error(M(527,rv,"19.1.1"));Te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=FE(t),e=e!==null?uv(e):null,e=e===null?null:e.stateNode,e};var vw={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:ue,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&(ul=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ul.isDisabled&&ul.supportsFiber))try{Yl=ul.inject(vw),hn=ul}catch(e){}var ul;cu.createRoot=function(e,t){if(!sv(e))throw Error(M(299));var n=!1,a="",i=zy,r=My,l=Uy,s=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(s=t.unstable_transitionCallbacks)),t=zb(e,1,!1,null,null,n,a,i,r,l,s,null),e[Ar]=t.current,Bd(e),new Yd(t)};cu.hydrateRoot=function(e,t,n){if(!sv(e))throw Error(M(299));var a=!1,i="",r=zy,l=My,s=Uy,o=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(o=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=zb(e,1,!0,t,n!=null?n:null,a,i,r,l,s,o,u),t.context=Mb(null),n=t.current,a=vn(),a=Wf(a),i=Ba(a),i.callback=null,Va(n,i,a),n=a,t.current.lanes=n,Gl(t,n),$n(t),e[Ar]=t.current,Bd(e),new uu(t)};cu.version="19.1.1"});var Yb=Ut((v_,jb)=>{"use strict";function qb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qb)}catch(e){console.error(e)}}qb(),jb.exports=Pb()});function Ib(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var Gb=b(()=>{});function fu(e,t){return((t||Sw).jsx?bw:yw).test(e)}var yw,bw,Sw,Xb=b(()=>{yw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sw={}});var Qb=b(()=>{Xb()});function Id(e){return typeof e=="object"?e.type==="text"?Fb(e.value):!1:Fb(e)}function Fb(e){return e.replace(xw,"")===""}var xw,Zb=b(()=>{xw=/[ \t\n\f\r]/g});var Jb=b(()=>{Zb()});var va,Gd=b(()=>{va=class{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}};va.prototype.normal={};va.prototype.property={};va.prototype.space=void 0});function Xd(e,t){let n={},a={};for(let i of e)Object.assign(n,i.property),Object.assign(a,i.normal);return new va(n,a,t)}var $b=b(()=>{Gd()});function is(e){return e.toLowerCase()}var Qd=b(()=>{});var Nt,Fd=b(()=>{Nt=class{constructor(t,n){this.attribute=n,this.property=t}};Nt.prototype.attribute="";Nt.prototype.booleanish=!1;Nt.prototype.boolean=!1;Nt.prototype.commaOrSpaceSeparated=!1;Nt.prototype.commaSeparated=!1;Nt.prototype.defined=!1;Nt.prototype.mustUseProperty=!1;Nt.prototype.number=!1;Nt.prototype.overloadedBoolean=!1;Nt.prototype.property="";Nt.prototype.spaceSeparated=!1;Nt.prototype.space=void 0});var rs={};oc(rs,{boolean:()=>de,booleanish:()=>nt,commaOrSpaceSeparated:()=>nn,commaSeparated:()=>Za,number:()=>V,overloadedBoolean:()=>du,spaceSeparated:()=>Re});function ki(){return sh(2,++Nw)}var Nw,de,nt,du,V,Re,Za,nn,ls=b(()=>{Nw=0,de=ki(),nt=ki(),du=ki(),V=ki(),Re=ki(),Za=ki(),nn=ki()});function Kb(e,t,n){n&&(e[t]=n)}var Zd,Ti,Jd=b(()=>{Fd();ls();Zd=Object.keys(rs),Ti=class extends Nt{constructor(t,n,a,i){let r=-1;if(super(t,n),Kb(this,"space",i),typeof a=="number")for(;++r<Zd.length;){let l=Zd[r];Kb(this,Zd[r],(a&rs[l])===rs[l])}}};Ti.prototype.defined=!0});function Ln(e){let t={},n={};for(let[a,i]of Object.entries(e.properties)){let r=new Ti(a,e.transform(e.attributes||{},a),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(r.mustUseProperty=!0),t[a]=r,n[is(a)]=a,n[is(r.attribute)]=a}return new va(t,n,e.space)}var wi=b(()=>{Qd();Jd();Gd()});var $d,Wb=b(()=>{wi();ls();$d=Ln({properties:{ariaActiveDescendant:null,ariaAtomic:nt,ariaAutoComplete:null,ariaBusy:nt,ariaChecked:nt,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Re,ariaCurrent:null,ariaDescribedBy:Re,ariaDetails:null,ariaDisabled:nt,ariaDropEffect:Re,ariaErrorMessage:null,ariaExpanded:nt,ariaFlowTo:Re,ariaGrabbed:nt,ariaHasPopup:null,ariaHidden:nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Re,ariaLevel:V,ariaLive:null,ariaModal:nt,ariaMultiLine:nt,ariaMultiSelectable:nt,ariaOrientation:null,ariaOwns:Re,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:nt,ariaReadOnly:nt,ariaRelevant:null,ariaRequired:nt,ariaRoleDescription:Re,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:nt,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}})});function pu(e,t){return t in e?e[t]:t}var Kd=b(()=>{});function mu(e,t){return pu(e,t.toLowerCase())}var Wd=b(()=>{Kd()});var e0,t0=b(()=>{Wd();wi();ls();e0=Ln({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Za,acceptCharset:Re,accessKey:Re,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Re,autoFocus:de,autoPlay:de,blocking:Re,capture:null,charSet:null,checked:de,cite:null,className:Re,cols:V,colSpan:null,content:null,contentEditable:nt,controls:de,controlsList:Re,coords:V|Za,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:du,draggable:nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Re,height:V,hidden:du,high:V,href:null,hrefLang:null,htmlFor:Re,httpEquiv:Re,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Re,itemRef:Re,itemScope:de,itemType:Re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:de,optimum:V,pattern:null,ping:Re,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Re,required:de,reversed:de,rows:V,rowSpan:V,sandbox:Re,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:nt,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Re,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:nt,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:mu})});var n0,a0=b(()=>{Kd();wi();ls();n0=Ln({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:nn,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Re,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Za,g2:Za,glyphName:Za,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Re,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nn,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pu})});var ep,i0=b(()=>{wi();ep=Ln({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}})});var tp,r0=b(()=>{wi();Wd();tp=Ln({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mu})});var np,l0=b(()=>{wi();np=Ln({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}})});var ap,s0=b(()=>{ap={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"}});function ip(e,t){let n=is(t),a=t,i=Nt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&kw.test(t)){if(t.charAt(4)==="-"){let r=t.slice(5).replace(o0,ww);a="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{let r=t.slice(4);if(!o0.test(r)){let l=r.replace(Ew,Tw);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Ti}return new i(a,t)}function Tw(e){return"-"+e.toLowerCase()}function ww(e){return e.charAt(1).toUpperCase()}var Ew,o0,kw,u0=b(()=>{Jd();Fd();Qd();Ew=/[A-Z]/g,o0=/-[a-z]/g,kw=/^data[-\w.:]+$/i});var c0,hu,f0=b(()=>{$b();Wb();t0();a0();i0();r0();l0();s0();u0();c0=Xd([$d,e0,ep,tp,np],"html"),hu=Xd([$d,n0,ep,tp,np],"svg")});function d0(e){return e.join(" ").trim()}var p0=b(()=>{});var b0=Ut((N2,y0)=>{var m0=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Aw=/\n/g,Cw=/^\s*/,Rw=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,_w=/^:\s*/,Dw=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ow=/^[;\s]*/,Lw=/^\s+|\s+$/g,zw=`
|
|
10
|
+
`,h0="/",g0="*",Ai="",Mw="comment",Uw="declaration";y0.exports=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,a=1;function i(x){var k=x.match(Aw);k&&(n+=k.length);var m=x.lastIndexOf(zw);a=~m?x.length-m:a+x.length}function r(){var x={line:n,column:a};return function(k){return k.position=new l(x),c(),k}}function l(x){this.start=x,this.end={line:n,column:a},this.source=t.source}l.prototype.content=e;var s=[];function o(x){var k=new Error(t.source+":"+n+":"+a+": "+x);if(k.reason=x,k.filename=t.source,k.line=n,k.column=a,k.source=e,t.silent)s.push(k);else throw k}function u(x){var k=x.exec(e);if(k){var m=k[0];return i(m),e=e.slice(m.length),k}}function c(){u(Cw)}function p(x){var k;for(x=x||[];k=d();)k!==!1&&x.push(k);return x}function d(){var x=r();if(!(h0!=e.charAt(0)||g0!=e.charAt(1))){for(var k=2;Ai!=e.charAt(k)&&(g0!=e.charAt(k)||h0!=e.charAt(k+1));)++k;if(k+=2,Ai===e.charAt(k-1))return o("End of comment missing");var m=e.slice(2,k-2);return a+=2,i(m),e=e.slice(k),a+=2,x({type:Mw,comment:m})}}function f(){var x=r(),k=u(Rw);if(k){if(d(),!u(_w))return o("property missing ':'");var m=u(Dw),h=x({type:Uw,property:v0(k[0].replace(m0,Ai)),value:m?v0(m[0].replace(m0,Ai)):Ai});return u(Ow),h}}function S(){var x=[];p(x);for(var k;k=f();)k!==!1&&(x.push(k),p(x));return x}return c(),S()};function v0(e){return e?e.replace(Lw,Ai):Ai}});var S0=Ut(ss=>{"use strict";var Bw=ss&&ss.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ss,"__esModule",{value:!0});ss.default=Hw;var Vw=Bw(b0());function Hw(e,t){var n=null;if(!e||typeof e!="string")return n;var a=(0,Vw.default)(e),i=typeof t=="function";return a.forEach(function(r){if(r.type==="declaration"){var l=r.property,s=r.value;i?t(l,s,r):s&&(n=n||{},n[l]=s)}}),n}});var N0=Ut(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.camelCase=void 0;var Pw=/^--[a-zA-Z0-9_-]+$/,qw=/-([a-z])/g,jw=/^[^-]+$/,Yw=/^-(webkit|moz|ms|o|khtml)-/,Iw=/^-(ms)-/,Gw=function(e){return!e||jw.test(e)||Pw.test(e)},Xw=function(e,t){return t.toUpperCase()},x0=function(e,t){return"".concat(t,"-")},Qw=function(e,t){return t===void 0&&(t={}),Gw(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Iw,x0):e=e.replace(Yw,x0),e.replace(qw,Xw))};gu.camelCase=Qw});var k0=Ut((lp,E0)=>{"use strict";var Fw=lp&&lp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Zw=Fw(S0()),Jw=N0();function rp(e,t){var n={};return!e||typeof e!="string"||(0,Zw.default)(e,function(a,i){a&&i&&(n[(0,Jw.camelCase)(a,t)]=i)}),n}rp.default=rp;E0.exports=rp});function T0(e){return t;function t(n){let a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function sp(e){let t=Lr(e),n=vu(e);if(t&&n)return{start:t,end:n}}var vu,Lr,w0=b(()=>{vu=T0("end"),Lr=T0("start")});var yu=b(()=>{w0()});function Ja(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?A0(e.position):"start"in e||"end"in e?A0(e):"line"in e||"column"in e?op(e):""}function op(e){return C0(e&&e.line)+":"+C0(e&&e.column)}function A0(e){return op(e&&e.start)+"-"+op(e&&e.end)}function C0(e){return e&&typeof e=="number"?e:1}var R0=b(()=>{});var up=b(()=>{R0()});var st,_0=b(()=>{up();st=class extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let i="",r={},l=!1;if(n&&("line"in n&&"column"in n?r={place:n}:"start"in n&&"end"in n?r={place:n}:"type"in n?r={ancestors:[n],place:n.position}:r=K({},n)),typeof t=="string"?i=t:!r.cause&&t&&(l=!0,i=t.message,r.cause=t),!r.ruleId&&!r.source&&typeof a=="string"){let o=a.indexOf(":");o===-1?r.ruleId=a:(r.source=a.slice(0,o),r.ruleId=a.slice(o+1))}if(!r.place&&r.ancestors&&r.ancestors){let o=r.ancestors[r.ancestors.length-1];o&&(r.place=o.position)}let s=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Ja(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=l&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};st.prototype.file="";st.prototype.name="";st.prototype.reason="";st.prototype.message="";st.prototype.stack="";st.prototype.column=void 0;st.prototype.line=void 0;st.prototype.ancestors=void 0;st.prototype.cause=void 0;st.prototype.fatal=void 0;st.prototype.place=void 0;st.prototype.ruleId=void 0;st.prototype.source=void 0});var cp=b(()=>{_0()});function dp(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=oA(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=sA(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?hu:c0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},r=L0(i,e,void 0);return r&&typeof r!="string"?r:i.create(e,i.Fragment,{children:r||void 0},void 0)}function L0(e,t,n){if(t.type==="element")return tA(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return nA(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return iA(e,t,n);if(t.type==="mdxjsEsm")return aA(e,t);if(t.type==="root")return rA(e,t,n);if(t.type==="text")return lA(e,t)}function tA(e,t,n){let a=e.schema,i=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(i=hu,e.schema=i),e.ancestors.push(t);let r=M0(e,t.tagName,!1),l=uA(e,t),s=mp(e,t);return Ww.has(t.tagName)&&(s=s.filter(function(o){return typeof o=="string"?!Id(o):!0})),z0(e,l,r,t),pp(l,s),e.ancestors.pop(),e.schema=a,e.create(t,r,l,n)}function nA(e,t){if(t.data&&t.data.estree&&e.evaluater){let a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}os(e,t.position)}function aA(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);os(e,t.position)}function iA(e,t,n){let a=e.schema,i=a;t.name==="svg"&&a.space==="html"&&(i=hu,e.schema=i),e.ancestors.push(t);let r=t.name===null?e.Fragment:M0(e,t.name,!0),l=cA(e,t),s=mp(e,t);return z0(e,l,r,t),pp(l,s),e.ancestors.pop(),e.schema=a,e.create(t,r,l,n)}function rA(e,t,n){let a={};return pp(a,mp(e,t)),e.create(t,e.Fragment,a,n)}function lA(e,t){return t.value}function z0(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function pp(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function sA(e,t,n){return a;function a(i,r,l,s){let u=Array.isArray(l.children)?n:t;return s?u(r,l,s):u(r,l)}}function oA(e,t){return n;function n(a,i,r,l){let s=Array.isArray(r.children),o=Lr(a);return t(i,r,l,s,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function uA(e,t){let n={},a,i;for(i in t.properties)if(i!=="children"&&fp.call(t.properties,i)){let r=fA(e,i,t.properties[i]);if(r){let[l,s]=r;e.tableCellAlignToStyle&&l==="align"&&typeof s=="string"&&eA.has(t.tagName)?a=s:n[l]=s}}if(a){let r=n.style||(n.style={});r[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function cA(e,t){let n={};for(let a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){let r=a.data.estree.body[0];r.type;let l=r.expression;l.type;let s=l.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else os(e,t.position);else{let i=a.name,r;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){let s=a.value.data.estree.body[0];s.type,r=e.evaluater.evaluateExpression(s.expression)}else os(e,t.position);else r=a.value===null?!0:a.value;n[i]=r}return n}function mp(e,t){let n=[],a=-1,i=e.passKeys?new Map:$w;for(;++a<t.children.length;){let r=t.children[a],l;if(e.passKeys){let o=r.type==="element"?r.tagName:r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement"?r.name:void 0;if(o){let u=i.get(o)||0;l=o+"-"+u,i.set(o,u+1)}}let s=L0(e,r,l);s!==void 0&&n.push(s)}return n}function fA(e,t,n){let a=ip(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?Ib(n):d0(n)),a.property==="style"){let i=typeof n=="object"?n:dA(e,String(n));return e.stylePropertyNameCase==="css"&&(i=pA(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&a.space?ap[a.property]||a.property:a.attribute,n]}}function dA(e,t){try{return(0,D0.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let a=n,i=new st("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=O0+"#cannot-parse-style-attribute",i}}function M0(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){let i=t.split("."),r=-1,l;for(;++r<i.length;){let s=fu(i[r])?{type:"Identifier",name:i[r]}:{type:"Literal",value:i[r]};l=l?{type:"MemberExpression",object:l,property:s,computed:!!(r&&s.type==="Literal"),optional:!1}:s}a=l}else a=fu(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){let i=a.value;return fp.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(a);os(e)}function os(e,t){let n=new st("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=O0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function pA(e){let t={},n;for(n in e)fp.call(e,n)&&(t[mA(n)]=e[n]);return t}function mA(e){let t=e.replace(Kw,hA);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function hA(e){return"-"+e.toLowerCase()}var D0,fp,$w,Kw,Ww,eA,O0,U0=b(()=>{Gb();Qb();Jb();f0();p0();D0=F(k0(),1);yu();cp();fp={}.hasOwnProperty,$w=new Map,Kw=/[A-Z]/g,Ww=new Set(["table","tbody","thead","tfoot","tr"]),eA=new Set(["td","th"]),O0="https://github.com/syntax-tree/hast-util-to-jsx-runtime"});var B0=b(()=>{U0()});var us,V0=b(()=>{us={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]}});var H0=b(()=>{V0()});var q0=Ut(bu=>{"use strict";var gA=Symbol.for("react.transitional.element"),vA=Symbol.for("react.fragment");function P0(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:gA,type:e,key:a,ref:t!==void 0?t:null,props:n}}bu.Fragment=vA;bu.jsx=P0;bu.jsxs=P0});var re=Ut((J2,j0)=>{"use strict";j0.exports=q0()});function hp(e,t){let n=t||yA,a=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return I0(e,a,i)}function I0(e,t,n){if(bA(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Y0(e.children,t,n)}return Array.isArray(e)?Y0(e,t,n):""}function Y0(e,t,n){let a=[],i=-1;for(;++i<e.length;)a[i]=I0(e[i],t,n);return a.join("")}function bA(e){return!!(e&&typeof e=="object")}var yA,G0=b(()=>{yA={}});var X0=b(()=>{G0()});function zr(e){let t="&"+e+";";Q0.innerHTML=t;let n=Q0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}var Q0,Su=b(()=>{Q0=document.createElement("i")});function Ot(e,t,n,a){let i=e.length,r=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,a.length<1e4)l=Array.from(a),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);r<a.length;)l=a.slice(r,r+1e4),l.unshift(t,0),e.splice(...l),r+=1e4,t+=1e4}function Xt(e,t){return e.length>0?(Ot(e,e.length,0,t),e):t}var $a=b(()=>{});function Z0(e){let t={},n=-1;for(;++n<e.length;)SA(t,e[n]);return t}function SA(e,t){let n;for(n in t){let i=(F0.call(e,n)?e[n]:void 0)||(e[n]={}),r=t[n],l;if(r)for(l in r){F0.call(i,l)||(i[l]=[]);let s=r[l];xA(i[l],Array.isArray(s)?s:s?[s]:[])}}}function xA(e,t){let n=-1,a=[];for(;++n<t.length;)(t[n].add==="after"?e:a).push(t[n]);Ot(e,0,0,a)}var F0,J0=b(()=>{$a();F0={}.hasOwnProperty});function xu(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}var gp=b(()=>{});function ya(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Nu=b(()=>{});function cs(e){return e!==null&&(e<32||e===127)}function $(e){return e!==null&&e<-2}function ot(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}function Ka(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}var Sn,Et,$0,fs,K0,W0,eS,tS,_e=b(()=>{Sn=Ka(/[A-Za-z]/),Et=Ka(/[\dA-Za-z]/),$0=Ka(/[#-'*+\--9=?A-Z^-~]/);fs=Ka(/\d/),K0=Ka(/[\dA-Fa-f]/),W0=Ka(/[!-/:-@[-`{-~]/);eS=Ka(new RegExp("\\p{P}|\\p{S}","u")),tS=Ka(/\s/)});function zn(e){let t=[],n=-1,a=0,i=0;for(;++n<e.length;){let r=e.charCodeAt(n),l="";if(r===37&&Et(e.charCodeAt(n+1))&&Et(e.charCodeAt(n+2)))i=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(l=String.fromCharCode(r));else if(r>55295&&r<57344){let s=e.charCodeAt(n+1);r<56320&&s>56319&&s<57344?(l=String.fromCharCode(r,s),i=1):l="\uFFFD"}else l=String.fromCharCode(r);l&&(t.push(e.slice(a,n),encodeURIComponent(l)),a=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(a)}var Ci=b(()=>{_e()});function pe(e,t,n,a){let i=a?a-1:Number.POSITIVE_INFINITY,r=0;return l;function l(o){return ce(o)?(e.enter(n),s(o)):t(o)}function s(o){return ce(o)&&r++<i?(e.consume(o),s):(e.exit(n),t(o))}}var kt=b(()=>{_e()});function NA(e){let t=e.attempt(this.parser.constructs.contentInitial,a,i),n;return t;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),pe(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),r(s)}function r(s){let o=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=o),n=o,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return $(s)?(e.consume(s),e.exit("chunkText"),r):(e.consume(s),l)}}var nS,aS=b(()=>{kt();_e();nS={tokenize:NA}});function EA(e){let t=this,n=[],a=0,i,r,l;return s;function s(g){if(a<n.length){let E=n[a];return t.containerState=E[1],e.attempt(E[0].continuation,o,u)(g)}return u(g)}function o(g){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&h();let E=t.events.length,T=E,N;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){N=t.events[T][1].end;break}m(a);let A=E;for(;A<t.events.length;)t.events[A][1].end=K({},N),A++;return Ot(t.events,T+1,0,t.events.slice(E)),t.events.length=A,u(g)}return s(g)}function u(g){if(a===n.length){if(!i)return d(g);if(i.currentConstruct&&i.currentConstruct.concrete)return S(g);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(iS,c,p)(g)}function c(g){return i&&h(),m(a),d(g)}function p(g){return t.parser.lazy[t.now().line]=a!==n.length,l=t.now().offset,S(g)}function d(g){return t.containerState={},e.attempt(iS,f,S)(g)}function f(g){return a++,n.push([t.currentConstruct,t.containerState]),d(g)}function S(g){if(g===null){i&&h(),m(0),e.consume(g);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:r}),x(g)}function x(g){if(g===null){k(e.exit("chunkFlow"),!0),m(0),e.consume(g);return}return $(g)?(e.consume(g),k(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(g),x)}function k(g,E){let T=t.sliceStream(g);if(E&&T.push(null),g.previous=r,r&&(r.next=g),r=g,i.defineSkip(g.start),i.write(T),t.parser.lazy[g.start.line]){let N=i.events.length;for(;N--;)if(i.events[N][1].start.offset<l&&(!i.events[N][1].end||i.events[N][1].end.offset>l))return;let A=t.events.length,C=A,U,P;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(U){P=t.events[C][1].end;break}U=!0}for(m(a),N=A;N<t.events.length;)t.events[N][1].end=K({},P),N++;Ot(t.events,C+1,0,t.events.slice(A)),t.events.length=N}}function m(g){let E=n.length;for(;E-- >g;){let T=n[E];t.containerState=T[1],T[0].exit.call(t,e)}n.length=g}function h(){i.write([null]),r=void 0,i=void 0,t.containerState._closeFlow=void 0}}function kA(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var rS,iS,lS=b(()=>{kt();_e();$a();rS={tokenize:EA},iS={tokenize:kA}});function vp(e){if(e===null||ot(e)||tS(e))return 1;if(eS(e))return 2}var sS=b(()=>{_e()});function Mr(e,t,n){let a=[],i=-1;for(;++i<e.length;){let r=e[i].resolveAll;r&&!a.includes(r)&&(t=r(t,n),a.push(r))}return t}var Eu=b(()=>{});function TA(e,t){let n=-1,a,i,r,l,s,o,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(a=n;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[a][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;o=e[a][1].end.offset-e[a][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let p=K({},e[a][1].end),d=K({},e[n][1].start);oS(p,-o),oS(d,o),l={type:o>1?"strongSequence":"emphasisSequence",start:p,end:K({},e[a][1].end)},s={type:o>1?"strongSequence":"emphasisSequence",start:K({},e[n][1].start),end:d},r={type:o>1?"strongText":"emphasisText",start:K({},e[a][1].end),end:K({},e[n][1].start)},i={type:o>1?"strong":"emphasis",start:K({},l.start),end:K({},s.end)},e[a][1].end=K({},l.start),e[n][1].start=K({},s.end),u=[],e[a][1].end.offset-e[a][1].start.offset&&(u=Xt(u,[["enter",e[a][1],t],["exit",e[a][1],t]])),u=Xt(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",r,t]]),u=Xt(u,Mr(t.parser.constructs.insideSpan.null,e.slice(a+1,n),t)),u=Xt(u,[["exit",r,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Xt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Ot(e,a-1,n-a+3,u),n=a+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function wA(e,t){let n=this.parser.constructs.attentionMarkers.null,a=this.previous,i=vp(a),r;return l;function l(o){return r=o,e.enter("attentionSequence"),s(o)}function s(o){if(o===r)return e.consume(o),s;let u=e.exit("attentionSequence"),c=vp(o),p=!c||c===2&&i||n.includes(o),d=!i||i===2&&c||n.includes(a);return u._open=!!(r===42?p:p&&(i||!d)),u._close=!!(r===42?d:d&&(c||!p)),t(o)}}function oS(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ds,uS=b(()=>{$a();sS();Eu();ds={name:"attention",resolveAll:TA,tokenize:wA}});function AA(e,t,n){let a=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r}function r(f){return Sn(f)?(e.consume(f),l):f===64?n(f):u(f)}function l(f){return f===43||f===45||f===46||Et(f)?(a=1,s(f)):u(f)}function s(f){return f===58?(e.consume(f),a=0,o):(f===43||f===45||f===46||Et(f))&&a++<32?(e.consume(f),s):(a=0,u(f))}function o(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||cs(f)?n(f):(e.consume(f),o)}function u(f){return f===64?(e.consume(f),c):$0(f)?(e.consume(f),u):n(f)}function c(f){return Et(f)?p(f):n(f)}function p(f){return f===46?(e.consume(f),a=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||Et(f))&&a++<63){let S=f===45?d:p;return e.consume(f),S}return n(f)}}var yp,cS=b(()=>{_e();yp={name:"autolink",tokenize:AA}});function CA(e,t,n){return a;function a(r){return ce(r)?pe(e,i,"linePrefix")(r):i(r)}function i(r){return r===null||$(r)?t(r):n(r)}}var Wa,ku=b(()=>{kt();_e();Wa={partial:!0,tokenize:CA}});function RA(e,t,n){let a=this;return i;function i(l){if(l===62){let s=a.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),r}return n(l)}function r(l){return ce(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function _A(e,t,n){let a=this;return i;function i(l){return ce(l)?pe(e,r,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):r(l)}function r(l){return e.attempt(Tu,t,n)(l)}}function DA(e){e.exit("blockQuote")}var Tu,fS=b(()=>{kt();_e();Tu={continuation:{tokenize:_A},exit:DA,name:"blockQuote",tokenize:RA}});function OA(e,t,n){return a;function a(r){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(r),e.exit("escapeMarker"),i}function i(r){return W0(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}var wu,dS=b(()=>{_e();wu={name:"characterEscape",tokenize:OA}});function LA(e,t,n){let a=this,i=0,r,l;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),o}function o(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,l=Et,c(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,l=K0,c):(e.enter("characterReferenceValue"),r=7,l=fs,c(p))}function c(p){if(p===59&&i){let d=e.exit("characterReferenceValue");return l===Et&&!zr(a.sliceSerialize(d))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(p)&&i++<r?(e.consume(p),c):n(p)}}var Au,pS=b(()=>{Su();_e();Au={name:"characterReference",tokenize:LA}});function zA(e,t,n){let a=this,i={partial:!0,tokenize:T},r=0,l=0,s;return o;function o(N){return u(N)}function u(N){let A=a.events[a.events.length-1];return r=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,s=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(N)}function c(N){return N===s?(l++,e.consume(N),c):l<3?n(N):(e.exit("codeFencedFenceSequence"),ce(N)?pe(e,p,"whitespace")(N):p(N))}function p(N){return N===null||$(N)?(e.exit("codeFencedFence"),a.interrupt?t(N):e.check(mS,x,E)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(N))}function d(N){return N===null||$(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(N)):ce(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,f,"whitespace")(N)):N===96&&N===s?n(N):(e.consume(N),d)}function f(N){return N===null||$(N)?p(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(N))}function S(N){return N===null||$(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(N)):N===96&&N===s?n(N):(e.consume(N),S)}function x(N){return e.attempt(i,E,k)(N)}function k(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),m}function m(N){return r>0&&ce(N)?pe(e,h,"linePrefix",r+1)(N):h(N)}function h(N){return N===null||$(N)?e.check(mS,x,E)(N):(e.enter("codeFlowValue"),g(N))}function g(N){return N===null||$(N)?(e.exit("codeFlowValue"),h(N)):(e.consume(N),g)}function E(N){return e.exit("codeFenced"),t(N)}function T(N,A,C){let U=0;return P;function P(B){return N.enter("lineEnding"),N.consume(B),N.exit("lineEnding"),_}function _(B){return N.enter("codeFencedFence"),ce(B)?pe(N,R,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):R(B)}function R(B){return B===s?(N.enter("codeFencedFenceSequence"),O(B)):C(B)}function O(B){return B===s?(U++,N.consume(B),O):U>=l?(N.exit("codeFencedFenceSequence"),ce(B)?pe(N,I,"whitespace")(B):I(B)):C(B)}function I(B){return B===null||$(B)?(N.exit("codeFencedFence"),A(B)):C(B)}}}function MA(e,t,n){let a=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r)}function r(l){return a.parser.lazy[a.now().line]?n(l):t(l)}}var mS,Cu,hS=b(()=>{kt();_e();mS={partial:!0,tokenize:MA},Cu={concrete:!0,name:"codeFenced",tokenize:zA}});function BA(e,t,n){let a=this;return i;function i(u){return e.enter("codeIndented"),pe(e,r,"linePrefix",5)(u)}function r(u){let c=a.events[a.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?o(u):$(u)?e.attempt(UA,l,o)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||$(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function o(u){return e.exit("codeIndented"),t(u)}}function VA(e,t,n){let a=this;return i;function i(l){return a.parser.lazy[a.now().line]?n(l):$(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):pe(e,r,"linePrefix",5)(l)}function r(l){let s=a.events[a.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):$(l)?i(l):n(l)}}var ps,UA,gS=b(()=>{kt();_e();ps={name:"codeIndented",tokenize:BA},UA={partial:!0,tokenize:VA}});function HA(e){let t=e.length-4,n=3,a,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=n;++a<t;)if(e[a][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(a=n-1,t++;++a<=t;)i===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(i=a):(a===t||e[a][1].type==="lineEnding")&&(e[i][1].type="codeTextData",a!==i+2&&(e[i][1].end=e[a-1][1].end,e.splice(i+2,a-i-2),t-=a-i-2,a=i+2),i=void 0);return e}function PA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function qA(e,t,n){let a=this,i=0,r,l;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),i++,o):(e.exit("codeTextSequence"),u(d))}function u(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),u):d===96?(l=e.enter("codeTextSequence"),r=0,p(d)):$(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||$(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),c)}function p(d){return d===96?(e.consume(d),r++,p):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(l.type="codeTextData",c(d))}}var bp,vS=b(()=>{_e();bp={name:"codeText",previous:PA,resolve:HA,tokenize:qA}});function ms(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}var Ru,yS=b(()=>{Ru=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){let a=n==null?Number.POSITIVE_INFINITY:n;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,n,a){let i=n||0;this.setCursor(Math.trunc(t));let r=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return a&&ms(this.left,a),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ms(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ms(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let n=this.left.splice(t,Number.POSITIVE_INFINITY);ms(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ms(this.left,n.reverse())}}}});function _u(e){let t={},n=-1,a,i,r,l,s,o,u,c=new Ru(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(a=c.get(n),n&&a[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(o=a[1]._tokenizer.events,r=0,r<o.length&&o[r][1].type==="lineEndingBlank"&&(r+=2),r<o.length&&o[r][1].type==="content"))for(;++r<o.length&&o[r][1].type!=="content";)o[r][1].type==="chunkText"&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,jA(c,n)),n=t[n],u=!0);else if(a[1]._container){for(r=n,i=void 0;r--;)if(l=c.get(r),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=r);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(a[1].end=K({},c.get(i)[1].start),s=c.slice(i,n),s.unshift(a),c.splice(i,n-i+1,s))}}return Ot(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function jA(e,t){let n=e.get(t)[1],a=e.get(t)[2],i=t-1,r=[],l=n._tokenizer;l||(l=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let s=l.events,o=[],u={},c,p,d=-1,f=n,S=0,x=0,k=[x];for(;f;){for(;e.get(++i)[1]!==f;);r.push(i),f._tokenizer||(c=a.sliceStream(f),f.next||c.push(null),p&&l.defineSkip(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=n;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(x=d+1,k.push(x),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):k.pop(),d=k.length;d--;){let m=s.slice(k[d],k[d+1]),h=r.pop();o.push([h,h+m.length-1]),e.splice(h,2,m)}for(o.reverse(),d=-1;++d<o.length;)u[S+o[d][0]]=S+o[d][1],S+=o[d][1]-o[d][0]-1;return u}var Sp=b(()=>{$a();yS()});function IA(e){return _u(e),e}function GA(e,t){let n;return a;function a(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?r(s):$(s)?e.check(YA,l,r)(s):(e.consume(s),i)}function r(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function l(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function XA(e,t,n){let a=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),pe(e,r,"linePrefix")}function r(l){if(l===null||$(l))return n(l);let s=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):e.interrupt(a.parser.constructs.flow,n,t)(l)}}var xp,YA,bS=b(()=>{kt();_e();Sp();xp={resolve:IA,tokenize:GA},YA={partial:!0,tokenize:XA}});function Du(e,t,n,a,i,r,l,s,o){let u=o||Number.POSITIVE_INFINITY,c=0;return p;function p(m){return m===60?(e.enter(a),e.enter(i),e.enter(r),e.consume(m),e.exit(r),d):m===null||m===32||m===41||cs(m)?n(m):(e.enter(a),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(m))}function d(m){return m===62?(e.enter(r),e.consume(m),e.exit(r),e.exit(i),e.exit(a),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||$(m)?n(m):(e.consume(m),m===92?S:f)}function S(m){return m===60||m===62||m===92?(e.consume(m),f):f(m)}function x(m){return!c&&(m===null||m===41||ot(m))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(a),t(m)):c<u&&m===40?(e.consume(m),c++,x):m===41?(e.consume(m),c--,x):m===null||m===32||m===40||cs(m)?n(m):(e.consume(m),m===92?k:x)}function k(m){return m===40||m===41||m===92?(e.consume(m),x):x(m)}}var Np=b(()=>{_e()});function Ou(e,t,n,a,i,r){let l=this,s=0,o;return u;function u(f){return e.enter(a),e.enter(i),e.consume(f),e.exit(i),e.enter(r),c}function c(f){return s>999||f===null||f===91||f===93&&!o||f===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):f===93?(e.exit(r),e.enter(i),e.consume(f),e.exit(i),e.exit(a),t):$(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===null||f===91||f===93||$(f)||s++>999?(e.exit("chunkString"),c(f)):(e.consume(f),o||(o=!ce(f)),f===92?d:p)}function d(f){return f===91||f===92||f===93?(e.consume(f),s++,p):p(f)}}var Ep=b(()=>{_e()});function Lu(e,t,n,a,i,r){let l;return s;function s(d){return d===34||d===39||d===40?(e.enter(a),e.enter(i),e.consume(d),e.exit(i),l=d===40?41:d,o):n(d)}function o(d){return d===l?(e.enter(i),e.consume(d),e.exit(i),e.exit(a),t):(e.enter(r),u(d))}function u(d){return d===l?(e.exit(r),o(l)):d===null?n(d):$(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),pe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===l||d===null||$(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?p:c)}function p(d){return d===l||d===92?(e.consume(d),c):c(d)}}var kp=b(()=>{kt();_e()});function Ri(e,t){let n;return a;function a(i){return $(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,a):ce(i)?pe(e,a,n?"linePrefix":"lineSuffix")(i):t(i)}}var Tp=b(()=>{kt();_e()});function FA(e,t,n){let a=this,i;return r;function r(f){return e.enter("definition"),l(f)}function l(f){return Ou.call(a,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return i=ya(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),o):n(f)}function o(f){return ot(f)?Ri(e,u)(f):u(f)}function u(f){return Du(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(QA,p,p)(f)}function p(f){return ce(f)?pe(e,d,"whitespace")(f):d(f)}function d(f){return f===null||$(f)?(e.exit("definition"),a.parser.defined.push(i),t(f)):n(f)}}function ZA(e,t,n){return a;function a(s){return ot(s)?Ri(e,i)(s):n(s)}function i(s){return Lu(e,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function r(s){return ce(s)?pe(e,l,"whitespace")(s):l(s)}function l(s){return s===null||$(s)?t(s):n(s)}}var wp,QA,SS=b(()=>{Np();Ep();kt();kp();Tp();_e();Nu();wp={name:"definition",tokenize:FA},QA={partial:!0,tokenize:ZA}});function JA(e,t,n){return a;function a(r){return e.enter("hardBreakEscape"),e.consume(r),i}function i(r){return $(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}var Ap,xS=b(()=>{_e();Ap={name:"hardBreakEscape",tokenize:JA}});function $A(e,t){let n=e.length-2,a=3,i,r;return e[a][1].type==="whitespace"&&(a+=2),n-2>a&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(a===n-1||n-4>a&&e[n-2][1].type==="whitespace")&&(n-=a+1===n?2:4),n>a&&(i={type:"atxHeadingText",start:e[a][1].start,end:e[n][1].end},r={type:"chunkText",start:e[a][1].start,end:e[n][1].end,contentType:"text"},Ot(e,a,n-a+1,[["enter",i,t],["enter",r,t],["exit",r,t],["exit",i,t]])),e}function KA(e,t,n){let a=0;return i;function i(c){return e.enter("atxHeading"),r(c)}function r(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&a++<6?(e.consume(c),l):c===null||ot(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),o(c)):c===null||$(c)?(e.exit("atxHeading"),t(c)):ce(c)?pe(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function o(c){return c===35?(e.consume(c),o):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||ot(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}var Cp,NS=b(()=>{kt();_e();$a();Cp={name:"headingAtx",resolve:$A,tokenize:KA}});var ES,Rp,kS=b(()=>{ES=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Rp=["pre","script","style","textarea"]});function tC(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function nC(e,t,n){let a=this,i,r,l,s,o;return u;function u(y){return c(y)}function c(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),p}function p(y){return y===33?(e.consume(y),d):y===47?(e.consume(y),r=!0,x):y===63?(e.consume(y),i=3,a.interrupt?t:v):Sn(y)?(e.consume(y),l=String.fromCharCode(y),k):n(y)}function d(y){return y===45?(e.consume(y),i=2,f):y===91?(e.consume(y),i=5,s=0,S):Sn(y)?(e.consume(y),i=4,a.interrupt?t:v):n(y)}function f(y){return y===45?(e.consume(y),a.interrupt?t:v):n(y)}function S(y){let Ke="CDATA[";return y===Ke.charCodeAt(s++)?(e.consume(y),s===Ke.length?a.interrupt?t:R:S):n(y)}function x(y){return Sn(y)?(e.consume(y),l=String.fromCharCode(y),k):n(y)}function k(y){if(y===null||y===47||y===62||ot(y)){let Ke=y===47,At=l.toLowerCase();return!Ke&&!r&&Rp.includes(At)?(i=1,a.interrupt?t(y):R(y)):ES.includes(l.toLowerCase())?(i=6,Ke?(e.consume(y),m):a.interrupt?t(y):R(y)):(i=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(y):r?h(y):g(y))}return y===45||Et(y)?(e.consume(y),l+=String.fromCharCode(y),k):n(y)}function m(y){return y===62?(e.consume(y),a.interrupt?t:R):n(y)}function h(y){return ce(y)?(e.consume(y),h):P(y)}function g(y){return y===47?(e.consume(y),P):y===58||y===95||Sn(y)?(e.consume(y),E):ce(y)?(e.consume(y),g):P(y)}function E(y){return y===45||y===46||y===58||y===95||Et(y)?(e.consume(y),E):T(y)}function T(y){return y===61?(e.consume(y),N):ce(y)?(e.consume(y),T):g(y)}function N(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),o=y,A):ce(y)?(e.consume(y),N):C(y)}function A(y){return y===o?(e.consume(y),o=null,U):y===null||$(y)?n(y):(e.consume(y),A)}function C(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||ot(y)?T(y):(e.consume(y),C)}function U(y){return y===47||y===62||ce(y)?g(y):n(y)}function P(y){return y===62?(e.consume(y),_):n(y)}function _(y){return y===null||$(y)?R(y):ce(y)?(e.consume(y),_):n(y)}function R(y){return y===45&&i===2?(e.consume(y),J):y===60&&i===1?(e.consume(y),ae):y===62&&i===4?(e.consume(y),Me):y===63&&i===3?(e.consume(y),v):y===93&&i===5?(e.consume(y),je):$(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(WA,pt,O)(y)):y===null||$(y)?(e.exit("htmlFlowData"),O(y)):(e.consume(y),R)}function O(y){return e.check(eC,I,pt)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),B}function B(y){return y===null||$(y)?O(y):(e.enter("htmlFlowData"),R(y))}function J(y){return y===45?(e.consume(y),v):R(y)}function ae(y){return y===47?(e.consume(y),l="",we):R(y)}function we(y){if(y===62){let Ke=l.toLowerCase();return Rp.includes(Ke)?(e.consume(y),Me):R(y)}return Sn(y)&&l.length<8?(e.consume(y),l+=String.fromCharCode(y),we):R(y)}function je(y){return y===93?(e.consume(y),v):R(y)}function v(y){return y===62?(e.consume(y),Me):y===45&&i===2?(e.consume(y),v):R(y)}function Me(y){return y===null||$(y)?(e.exit("htmlFlowData"),pt(y)):(e.consume(y),Me)}function pt(y){return e.exit("htmlFlow"),t(y)}}function aC(e,t,n){let a=this;return i;function i(l){return $(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r):n(l)}function r(l){return a.parser.lazy[a.now().line]?n(l):t(l)}}function iC(e,t,n){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Wa,t,n)}}var _p,WA,eC,TS=b(()=>{_e();kS();ku();_p={concrete:!0,name:"htmlFlow",resolveTo:tC,tokenize:nC},WA={partial:!0,tokenize:iC},eC={partial:!0,tokenize:aC}});function rC(e,t,n){let a=this,i,r,l;return s;function s(v){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(v),o}function o(v){return v===33?(e.consume(v),u):v===47?(e.consume(v),T):v===63?(e.consume(v),g):Sn(v)?(e.consume(v),C):n(v)}function u(v){return v===45?(e.consume(v),c):v===91?(e.consume(v),r=0,S):Sn(v)?(e.consume(v),h):n(v)}function c(v){return v===45?(e.consume(v),f):n(v)}function p(v){return v===null?n(v):v===45?(e.consume(v),d):$(v)?(l=p,ae(v)):(e.consume(v),p)}function d(v){return v===45?(e.consume(v),f):p(v)}function f(v){return v===62?J(v):v===45?d(v):p(v)}function S(v){let Me="CDATA[";return v===Me.charCodeAt(r++)?(e.consume(v),r===Me.length?x:S):n(v)}function x(v){return v===null?n(v):v===93?(e.consume(v),k):$(v)?(l=x,ae(v)):(e.consume(v),x)}function k(v){return v===93?(e.consume(v),m):x(v)}function m(v){return v===62?J(v):v===93?(e.consume(v),m):x(v)}function h(v){return v===null||v===62?J(v):$(v)?(l=h,ae(v)):(e.consume(v),h)}function g(v){return v===null?n(v):v===63?(e.consume(v),E):$(v)?(l=g,ae(v)):(e.consume(v),g)}function E(v){return v===62?J(v):g(v)}function T(v){return Sn(v)?(e.consume(v),N):n(v)}function N(v){return v===45||Et(v)?(e.consume(v),N):A(v)}function A(v){return $(v)?(l=A,ae(v)):ce(v)?(e.consume(v),A):J(v)}function C(v){return v===45||Et(v)?(e.consume(v),C):v===47||v===62||ot(v)?U(v):n(v)}function U(v){return v===47?(e.consume(v),J):v===58||v===95||Sn(v)?(e.consume(v),P):$(v)?(l=U,ae(v)):ce(v)?(e.consume(v),U):J(v)}function P(v){return v===45||v===46||v===58||v===95||Et(v)?(e.consume(v),P):_(v)}function _(v){return v===61?(e.consume(v),R):$(v)?(l=_,ae(v)):ce(v)?(e.consume(v),_):U(v)}function R(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),i=v,O):$(v)?(l=R,ae(v)):ce(v)?(e.consume(v),R):(e.consume(v),I)}function O(v){return v===i?(e.consume(v),i=void 0,B):v===null?n(v):$(v)?(l=O,ae(v)):(e.consume(v),O)}function I(v){return v===null||v===34||v===39||v===60||v===61||v===96?n(v):v===47||v===62||ot(v)?U(v):(e.consume(v),I)}function B(v){return v===47||v===62||ot(v)?U(v):n(v)}function J(v){return v===62?(e.consume(v),e.exit("htmlTextData"),e.exit("htmlText"),t):n(v)}function ae(v){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),we}function we(v){return ce(v)?pe(e,je,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):je(v)}function je(v){return e.enter("htmlTextData"),l(v)}}var Dp,wS=b(()=>{kt();_e();Dp={name:"htmlText",tokenize:rC}});function uC(e){let t=-1,n=[];for(;++t<e.length;){let a=e[t][1];if(n.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){let i=a.type==="labelImage"?4:2;a.type="data",t+=i}}return e.length!==n.length&&Ot(e,0,e.length,n),e}function cC(e,t){let n=e.length,a=0,i,r,l,s;for(;n--;)if(i=e[n][1],r){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(r=n,i.type!=="labelLink")){a=2;break}}else i.type==="labelEnd"&&(l=n);let o={type:e[r][1].type==="labelLink"?"link":"image",start:K({},e[r][1].start),end:K({},e[e.length-1][1].end)},u={type:"label",start:K({},e[r][1].start),end:K({},e[l][1].end)},c={type:"labelText",start:K({},e[r+a+2][1].end),end:K({},e[l-2][1].start)};return s=[["enter",o,t],["enter",u,t]],s=Xt(s,e.slice(r+1,r+a+3)),s=Xt(s,[["enter",c,t]]),s=Xt(s,Mr(t.parser.constructs.insideSpan.null,e.slice(r+a+4,l-3),t)),s=Xt(s,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),s=Xt(s,e.slice(l+1)),s=Xt(s,[["exit",o,t]]),Ot(e,r,e.length,s),e}function fC(e,t,n){let a=this,i=a.events.length,r,l;for(;i--;)if((a.events[i][1].type==="labelImage"||a.events[i][1].type==="labelLink")&&!a.events[i][1]._balanced){r=a.events[i][1];break}return s;function s(d){return r?r._inactive?p(d):(l=a.parser.defined.includes(ya(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),o):n(d)}function o(d){return d===40?e.attempt(lC,c,l?c:p)(d):d===91?e.attempt(sC,c,l?u:p)(d):l?c(d):p(d)}function u(d){return e.attempt(oC,c,p)(d)}function c(d){return t(d)}function p(d){return r._balanced=!0,n(d)}}function dC(e,t,n){return a;function a(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return ot(p)?Ri(e,r)(p):r(p)}function r(p){return p===41?c(p):Du(e,l,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function l(p){return ot(p)?Ri(e,o)(p):c(p)}function s(p){return n(p)}function o(p){return p===34||p===39||p===40?Lu(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):c(p)}function u(p){return ot(p)?Ri(e,c)(p):c(p)}function c(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function pC(e,t,n){let a=this;return i;function i(s){return Ou.call(a,e,r,l,"reference","referenceMarker","referenceString")(s)}function r(s){return a.parser.defined.includes(ya(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function l(s){return n(s)}}function mC(e,t,n){return a;function a(r){return e.enter("reference"),e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),i}function i(r){return r===93?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}var _i,lC,sC,oC,zu=b(()=>{Np();Ep();kp();Tp();_e();$a();Nu();Eu();_i={name:"labelEnd",resolveAll:uC,resolveTo:cC,tokenize:fC},lC={tokenize:dC},sC={tokenize:pC},oC={tokenize:mC}});function hC(e,t,n){let a=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),r}function r(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),l):n(s)}function l(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(s):t(s)}}var Op,AS=b(()=>{zu();Op={name:"labelStartImage",resolveAll:_i.resolveAll,tokenize:hC}});function gC(e,t,n){let a=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),r}function r(l){return l===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(l):t(l)}}var Lp,CS=b(()=>{zu();Lp={name:"labelStartLink",resolveAll:_i.resolveAll,tokenize:gC}});function vC(e,t){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),pe(e,t,"linePrefix")}}var hs,RS=b(()=>{kt();hs={name:"lineEnding",tokenize:vC}});function yC(e,t,n){let a=0,i;return r;function r(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),o(u)):a>=3&&(u===null||$(u))?(e.exit("thematicBreak"),t(u)):n(u)}function o(u){return u===i?(e.consume(u),a++,o):(e.exit("thematicBreakSequence"),ce(u)?pe(e,s,"whitespace")(u):s(u))}}var Di,zp=b(()=>{kt();_e();Di={name:"thematicBreak",tokenize:yC}});function xC(e,t,n){let a=this,i=a.events[a.events.length-1],r=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return s;function s(f){let S=a.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!a.containerState.marker||f===a.containerState.marker:fs(f)){if(a.containerState.type||(a.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Di,n,u)(f):u(f);if(!a.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(f)}return n(f)}function o(f){return fs(f)&&++l<10?(e.consume(f),o):(!a.interrupt||l<2)&&(a.containerState.marker?f===a.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||f,e.check(Wa,a.interrupt?n:c,e.attempt(bC,d,p))}function c(f){return a.containerState.initialBlankLine=!0,r++,d(f)}function p(f){return ce(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):n(f)}function d(f){return a.containerState.size=r+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function NC(e,t,n){let a=this;return a.containerState._closeFlow=void 0,e.check(Wa,i,r);function i(s){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,pe(e,t,"listItemIndent",a.containerState.size+1)(s)}function r(s){return a.containerState.furtherBlankLines||!ce(s)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,l(s)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(SC,t,l)(s))}function l(s){return a.containerState._closeFlow=!0,a.interrupt=void 0,pe(e,e.attempt(Pt,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function EC(e,t,n){let a=this;return pe(e,i,"listItemIndent",a.containerState.size+1);function i(r){let l=a.events[a.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===a.containerState.size?t(r):n(r)}}function kC(e){e.exit(this.containerState.type)}function TC(e,t,n){let a=this;return pe(e,i,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(r){let l=a.events[a.events.length-1];return!ce(r)&&l&&l[1].type==="listItemPrefixWhitespace"?t(r):n(r)}}var Pt,bC,SC,_S=b(()=>{kt();_e();ku();zp();Pt={continuation:{tokenize:NC},exit:kC,name:"list",tokenize:xC},bC={partial:!0,tokenize:TC},SC={partial:!0,tokenize:EC}});function wC(e,t){let n=e.length,a,i,r;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){a=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!r&&e[n][1].type==="definition"&&(r=n);let l={type:"setextHeading",start:K({},e[a][1].start),end:K({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",r?(e.splice(i,0,["enter",l,t]),e.splice(r+1,0,["exit",e[a][1],t]),e[a][1].end=K({},e[r][1].end)):e[a][1]=l,e.push(["exit",l,t]),e}function AC(e,t,n){let a=this,i;return r;function r(u){let c=a.events.length,p;for(;c--;)if(a.events[c][1].type!=="lineEnding"&&a.events[c][1].type!=="linePrefix"&&a.events[c][1].type!=="content"){p=a.events[c][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||p)?(e.enter("setextHeadingLine"),i=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),ce(u)?pe(e,o,"lineSuffix")(u):o(u))}function o(u){return u===null||$(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}var Mu,DS=b(()=>{kt();_e();Mu={name:"setextUnderline",resolveTo:wC,tokenize:AC}});var Mp=b(()=>{uS();cS();ku();fS();dS();pS();hS();gS();vS();bS();SS();xS();NS();TS();wS();zu();AS();CS();RS();_S();DS();zp()});function CC(e){let t=this,n=e.attempt(Wa,a,e.attempt(this.parser.constructs.flowInitial,i,pe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xp,i)),"linePrefix")));return n;function a(r){if(r===null){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}var OS,LS=b(()=>{Mp();kt();OS={tokenize:CC}});function BS(e){return{resolveAll:VS(e==="text"?RC:void 0),tokenize:t};function t(n){let a=this,i=this.parser.constructs[e],r=n.attempt(i,l,s);return l;function l(c){return u(c)?r(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),o}function o(c){return u(c)?(n.exit("data"),r(c)):(n.consume(c),o)}function u(c){if(c===null)return!0;let p=i[c],d=-1;if(p)for(;++d<p.length;){let f=p[d];if(!f.previous||f.previous.call(a,a.previous))return!0}return!1}}}function VS(e){return t;function t(n,a){let i=-1,r;for(;++i<=n.length;)r===void 0?n[i]&&n[i][1].type==="data"&&(r=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==r+2&&(n[r][1].end=n[i-1][1].end,n.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(n,a):n}}function RC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){let a=e[n-1][1],i=t.sliceStream(a),r=i.length,l=-1,s=0,o;for(;r--;){let u=i[r];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)s++,l--;if(l)break;l=-1}else if(u===-2)o=!0,s++;else if(u!==-1){r++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let u={type:n===e.length||o||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?l:a.start._bufferIndex+l,_index:a.start._index+r,line:a.end.line,column:a.end.column-s,offset:a.end.offset-s},end:K({},a.end)};a.end=K({},u.start),a.start.offset===a.end.offset?Object.assign(a,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}var zS,MS,US,Up=b(()=>{zS={resolveAll:VS()},MS=BS("string"),US=BS("text")});var Bp={};oc(Bp,{attentionMarkers:()=>BC,contentInitial:()=>DC,disable:()=>VC,document:()=>_C,flow:()=>LC,flowInitial:()=>OC,insideSpan:()=>UC,string:()=>zC,text:()=>MC});var _C,DC,OC,LC,zC,MC,UC,BC,VC,HS=b(()=>{Mp();Up();_C={42:Pt,43:Pt,45:Pt,48:Pt,49:Pt,50:Pt,51:Pt,52:Pt,53:Pt,54:Pt,55:Pt,56:Pt,57:Pt,62:Tu},DC={91:wp},OC={[-2]:ps,[-1]:ps,32:ps},LC={35:Cp,42:Di,45:[Mu,Di],60:_p,61:Mu,95:Di,96:Cu,126:Cu},zC={38:Au,92:wu},MC={[-5]:hs,[-4]:hs,[-3]:hs,33:Op,38:Au,42:ds,60:[yp,Dp],91:Lp,92:[Ap,wu],93:_i,95:ds,96:bp},UC={null:[ds,zS]},BC={null:[42,95]},VC={null:[]}});function PS(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},r=[],l=[],s=[],o=!0,u={attempt:U(A),check:U(C),consume:E,enter:T,exit:N,interrupt:U(C,{interrupt:!0})},c={code:null,containerState:{},defineSkip:m,events:[],now:k,parser:e,previous:null,sliceSerialize:S,sliceStream:x,write:f},p=t.tokenize.call(c,u),d;return t.resolveAll&&r.push(t),c;function f(O){return l=Xt(l,O),h(),l[l.length-1]!==null?[]:(P(t,0),c.events=Mr(r,c.events,c),c.events)}function S(O,I){return PC(x(O),I)}function x(O){return HC(l,O)}function k(){let{_bufferIndex:O,_index:I,line:B,column:J,offset:ae}=a;return{_bufferIndex:O,_index:I,line:B,column:J,offset:ae}}function m(O){i[O.line]=O.column,R()}function h(){let O;for(;a._index<l.length;){let I=l[a._index];if(typeof I=="string")for(O=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===O&&a._bufferIndex<I.length;)g(I.charCodeAt(a._bufferIndex));else g(I)}}function g(O){o=void 0,d=O,p=p(O)}function E(O){$(O)?(a.line++,a.column=1,a.offset+=O===-3?2:1,R()):O!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===l[a._index].length&&(a._bufferIndex=-1,a._index++)),c.previous=O,o=!0}function T(O,I){let B=I||{};return B.type=O,B.start=k(),c.events.push(["enter",B,c]),s.push(B),B}function N(O){let I=s.pop();return I.end=k(),c.events.push(["exit",I,c]),I}function A(O,I){P(O,I.from)}function C(O,I){I.restore()}function U(O,I){return B;function B(J,ae,we){let je,v,Me,pt;return Array.isArray(J)?Ke(J):"tokenize"in J?Ke([J]):y(J);function y(Q){return ne;function ne(Y){let oe=Y!==null&&Q[Y],Ue=Y!==null&&Q.null,mt=[...Array.isArray(oe)?oe:oe?[oe]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return Ke(mt)(Y)}}function Ke(Q){return je=Q,v=0,Q.length===0?we:At(Q[v])}function At(Q){return ne;function ne(Y){return pt=_(),Me=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?X(Y):Q.tokenize.call(I?Object.assign(Object.create(c),I):c,u,se,X)(Y)}}function se(Q){return o=!0,O(Me,pt),ae}function X(Q){return o=!0,pt.restore(),++v<je.length?At(je[v]):we}}}function P(O,I){O.resolveAll&&!r.includes(O)&&r.push(O),O.resolve&&Ot(c.events,I,c.events.length-I,O.resolve(c.events.slice(I),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function _(){let O=k(),I=c.previous,B=c.currentConstruct,J=c.events.length,ae=Array.from(s);return{from:J,restore:we};function we(){a=O,c.previous=I,c.currentConstruct=B,c.events.length=J,s=ae,R()}}function R(){a.line in i&&a.column<2&&(a.column=i[a.line],a.offset+=i[a.line]-1)}}function HC(e,t){let n=t.start._index,a=t.start._bufferIndex,i=t.end._index,r=t.end._bufferIndex,l;if(n===i)l=[e[n].slice(a,r)];else{if(l=e.slice(n,i),a>-1){let s=l[0];typeof s=="string"?l[0]=s.slice(a):l.shift()}r>0&&l.push(e[i].slice(0,r))}return l}function PC(e,t){let n=-1,a=[],i;for(;++n<e.length;){let r=e[n],l;if(typeof r=="string")l=r;else switch(r){case-5:{l="\r";break}case-4:{l=`
|
|
11
|
+
`;break}case-3:{l=`\r
|
|
12
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(r)}i=r===-2,a.push(l)}return a.join("")}var qS=b(()=>{_e();$a();Eu()});function Vp(e){let a={constructs:Z0([Bp,...(e||{}).extensions||[]]),content:i(nS),defined:[],document:i(rS),flow:i(OS),lazy:{},string:i(MS),text:i(US)};return a;function i(r){return l;function l(s){return PS(a,r,s)}}}var jS=b(()=>{J0();aS();lS();LS();Up();HS();qS()});function Hp(e){for(;!_u(e););return e}var YS=b(()=>{Sp()});function Pp(){let e=1,t="",n=!0,a;return i;function i(r,l,s){let o=[],u,c,p,d,f;for(r=t+(typeof r=="string"?r.toString():new TextDecoder(l||void 0).decode(r)),p=0,t="",n&&(r.charCodeAt(0)===65279&&p++,n=void 0);p<r.length;){if(IS.lastIndex=p,u=IS.exec(r),d=u&&u.index!==void 0?u.index:r.length,f=r.charCodeAt(d),!u){t=r.slice(p);break}if(f===10&&p===d&&a)o.push(-3),a=void 0;else switch(a&&(o.push(-5),a=void 0),p<d&&(o.push(r.slice(p,d)),e+=d-p),f){case 0:{o.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,o.push(-2);e++<c;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:a=!0,e=1}p=d+1}return s&&(a&&o.push(-5),t&&o.push(t),o.push(null)),o}}var IS,GS=b(()=>{IS=/[\0\t\n\r]/g});var XS=b(()=>{jS();YS();GS()});function QS(e){return e.replace(qC,jC)}function jC(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),r=i===120||i===88;return xu(n.slice(r?2:1),r?16:10)}return zr(n)||e}var qC,FS=b(()=>{Su();gp();qC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi});function qp(e,t,n){return typeof t!="string"&&(n=t,t=void 0),YC(n)(Hp(Vp(n).document().write(Pp()(e,t,!0))))}function YC(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(le),autolinkProtocol:U,autolinkEmail:U,atxHeading:r(Fr),blockQuote:r(Y),characterEscape:U,characterReference:U,codeFenced:r(oe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:r(oe,l),codeText:r(Ue,l),codeTextData:U,data:U,codeFlowValue:U,definition:r(mt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:r(zs),hardBreakEscape:r(Zr),hardBreakTrailing:r(Zr),htmlFlow:r(q,l),htmlFlowData:U,htmlText:r(q,l),htmlTextData:U,image:r(j),label:l,link:r(le),listItem:r(Mt),listItemValue:d,listOrdered:r(Be,p),listUnordered:r(Be),paragraph:r(on),reference:y,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:r(Fr),strong:r(Ct),thematicBreak:r(un)},exit:{atxHeading:o(),atxHeadingSequence:T,autolink:o(),autolinkEmail:ne,autolinkProtocol:Q,blockQuote:o(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:At,characterReferenceMarkerNumeric:At,characterReferenceValue:se,characterReference:X,codeFenced:o(k),codeFencedFence:x,codeFencedFenceInfo:f,codeFencedFenceMeta:S,codeFlowValue:P,codeIndented:o(m),codeText:o(B),codeTextData:P,data:P,definition:o(),definitionDestinationString:E,definitionLabelString:h,definitionTitleString:g,emphasis:o(),hardBreakEscape:o(R),hardBreakTrailing:o(R),htmlFlow:o(O),htmlFlowData:P,htmlText:o(I),htmlTextData:P,image:o(ae),label:je,labelText:we,lineEnding:_,link:o(J),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:Ke,resourceDestinationString:v,resourceTitleString:Me,resource:pt,setextHeading:o(C),setextHeadingLineSequence:A,setextHeadingText:N,strong:o(),thematicBreak:o()}};$S(t,(e||{}).mdastExtensions||[]);let n={};return a;function a(D){let G={type:"root",children:[]},fe={stack:[G],tokenStack:[],config:t,enter:s,exit:u,buffer:l,resume:c,data:n},Se=[],Ve=-1;for(;++Ve<D.length;)if(D[Ve][1].type==="listOrdered"||D[Ve][1].type==="listUnordered")if(D[Ve][0]==="enter")Se.push(Ve);else{let Bn=Se.pop();Ve=i(D,Bn,Ve)}for(Ve=-1;++Ve<D.length;){let Bn=t[D[Ve][0]];JS.call(Bn,D[Ve][1].type)&&Bn[D[Ve][1].type].call(Object.assign({sliceSerialize:D[Ve][2].sliceSerialize},fe),D[Ve][1])}if(fe.tokenStack.length>0){let Bn=fe.tokenStack[fe.tokenStack.length-1];(Bn[1]||ZS).call(fe,void 0,Bn[0])}for(G.position={start:ei(D.length>0?D[0][1].start:{line:1,column:1,offset:0}),end:ei(D.length>0?D[D.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<t.transforms.length;)G=t.transforms[Ve](G)||G;return G}function i(D,G,fe){let Se=G-1,Ve=-1,Bn=!1,ii,Kn,Jr,$r;for(;++Se<=fe;){let cn=D[Se];switch(cn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{cn[0]==="enter"?Ve++:Ve--,$r=void 0;break}case"lineEndingBlank":{cn[0]==="enter"&&(ii&&!$r&&!Ve&&!Jr&&(Jr=Se),$r=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$r=void 0}if(!Ve&&cn[0]==="enter"&&cn[1].type==="listItemPrefix"||Ve===-1&&cn[0]==="exit"&&(cn[1].type==="listUnordered"||cn[1].type==="listOrdered")){if(ii){let Hi=Se;for(Kn=void 0;Hi--;){let Wn=D[Hi];if(Wn[1].type==="lineEnding"||Wn[1].type==="lineEndingBlank"){if(Wn[0]==="exit")continue;Kn&&(D[Kn][1].type="lineEndingBlank",Bn=!0),Wn[1].type="lineEnding",Kn=Hi}else if(!(Wn[1].type==="linePrefix"||Wn[1].type==="blockQuotePrefix"||Wn[1].type==="blockQuotePrefixWhitespace"||Wn[1].type==="blockQuoteMarker"||Wn[1].type==="listItemIndent"))break}Jr&&(!Kn||Jr<Kn)&&(ii._spread=!0),ii.end=Object.assign({},Kn?D[Kn][1].start:cn[1].end),D.splice(Kn||Se,0,["exit",ii,cn[2]]),Se++,fe++}if(cn[1].type==="listItemPrefix"){let Hi={type:"listItem",_spread:!1,start:Object.assign({},cn[1].start),end:void 0};ii=Hi,D.splice(Se,0,["enter",Hi,cn[2]]),Se++,fe++,Jr=void 0,$r=!0}}}return D[G][1]._spread=Bn,fe}function r(D,G){return fe;function fe(Se){s.call(this,D(Se),Se),G&&G.call(this,Se)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(D,G,fe){this.stack[this.stack.length-1].children.push(D),this.stack.push(D),this.tokenStack.push([G,fe||void 0]),D.position={start:ei(G.start),end:void 0}}function o(D){return G;function G(fe){D&&D.call(this,fe),u.call(this,fe)}}function u(D,G){let fe=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==D.type&&(G?G.call(this,D,Se[0]):(Se[1]||ZS).call(this,D,Se[0]));else throw new Error("Cannot close `"+D.type+"` ("+Ja({start:D.start,end:D.end})+"): it\u2019s not open");fe.position.end=ei(D.end)}function c(){return hp(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function d(D){if(this.data.expectingFirstListItemValue){let G=this.stack[this.stack.length-2];G.start=Number.parseInt(this.sliceSerialize(D),10),this.data.expectingFirstListItemValue=void 0}}function f(){let D=this.resume(),G=this.stack[this.stack.length-1];G.lang=D}function S(){let D=this.resume(),G=this.stack[this.stack.length-1];G.meta=D}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){let D=this.resume(),G=this.stack[this.stack.length-1];G.value=D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){let D=this.resume(),G=this.stack[this.stack.length-1];G.value=D.replace(/(\r?\n|\r)$/g,"")}function h(D){let G=this.resume(),fe=this.stack[this.stack.length-1];fe.label=G,fe.identifier=ya(this.sliceSerialize(D)).toLowerCase()}function g(){let D=this.resume(),G=this.stack[this.stack.length-1];G.title=D}function E(){let D=this.resume(),G=this.stack[this.stack.length-1];G.url=D}function T(D){let G=this.stack[this.stack.length-1];if(!G.depth){let fe=this.sliceSerialize(D).length;G.depth=fe}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function A(D){let G=this.stack[this.stack.length-1];G.depth=this.sliceSerialize(D).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function U(D){let fe=this.stack[this.stack.length-1].children,Se=fe[fe.length-1];(!Se||Se.type!=="text")&&(Se=We(),Se.position={start:ei(D.start),end:void 0},fe.push(Se)),this.stack.push(Se)}function P(D){let G=this.stack.pop();G.value+=this.sliceSerialize(D),G.position.end=ei(D.end)}function _(D){let G=this.stack[this.stack.length-1];if(this.data.atHardBreak){let fe=G.children[G.children.length-1];fe.position.end=ei(D.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(G.type)&&(U.call(this,D),P.call(this,D))}function R(){this.data.atHardBreak=!0}function O(){let D=this.resume(),G=this.stack[this.stack.length-1];G.value=D}function I(){let D=this.resume(),G=this.stack[this.stack.length-1];G.value=D}function B(){let D=this.resume(),G=this.stack[this.stack.length-1];G.value=D}function J(){let D=this.stack[this.stack.length-1];if(this.data.inReference){let G=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=G,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function ae(){let D=this.stack[this.stack.length-1];if(this.data.inReference){let G=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=G,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function we(D){let G=this.sliceSerialize(D),fe=this.stack[this.stack.length-2];fe.label=QS(G),fe.identifier=ya(G).toLowerCase()}function je(){let D=this.stack[this.stack.length-1],G=this.resume(),fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,fe.type==="link"){let Se=D.children;fe.children=Se}else fe.alt=G}function v(){let D=this.resume(),G=this.stack[this.stack.length-1];G.url=D}function Me(){let D=this.resume(),G=this.stack[this.stack.length-1];G.title=D}function pt(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function Ke(D){let G=this.resume(),fe=this.stack[this.stack.length-1];fe.label=G,fe.identifier=ya(this.sliceSerialize(D)).toLowerCase(),this.data.referenceType="full"}function At(D){this.data.characterReferenceType=D.type}function se(D){let G=this.sliceSerialize(D),fe=this.data.characterReferenceType,Se;fe?(Se=xu(G,fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Se=zr(G);let Ve=this.stack[this.stack.length-1];Ve.value+=Se}function X(D){let G=this.stack.pop();G.position.end=ei(D.end)}function Q(D){P.call(this,D);let G=this.stack[this.stack.length-1];G.url=this.sliceSerialize(D)}function ne(D){P.call(this,D);let G=this.stack[this.stack.length-1];G.url="mailto:"+this.sliceSerialize(D)}function Y(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function Ue(){return{type:"inlineCode",value:""}}function mt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zs(){return{type:"emphasis",children:[]}}function Fr(){return{type:"heading",depth:0,children:[]}}function Zr(){return{type:"break"}}function q(){return{type:"html",value:""}}function j(){return{type:"image",title:null,url:"",alt:null}}function le(){return{type:"link",title:null,url:"",children:[]}}function Be(D){return{type:"list",ordered:D.type==="listOrdered",start:null,spread:D._spread,children:[]}}function Mt(D){return{type:"listItem",spread:D._spread,checked:null,children:[]}}function on(){return{type:"paragraph",children:[]}}function Ct(){return{type:"strong",children:[]}}function We(){return{type:"text",value:""}}function un(){return{type:"thematicBreak"}}}function ei(e){return{line:e.line,column:e.column,offset:e.offset}}function $S(e,t){let n=-1;for(;++n<t.length;){let a=t[n];Array.isArray(a)?$S(e,a):IC(e,a)}}function IC(e,t){let n;for(n in t)if(JS.call(t,n))switch(n){case"canContainEols":{let a=t[n];a&&e[n].push(...a);break}case"transforms":{let a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{let a=t[n];a&&Object.assign(e[n],a);break}}}function ZS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ja({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ja({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ja({start:t.start,end:t.end})+") is still open")}var JS,KS=b(()=>{X0();XS();gp();FS();Nu();Su();up();JS={}.hasOwnProperty});var WS=b(()=>{KS()});function Uu(e){let t=this;t.parser=n;function n(a){return qp(a,ut(K(K({},t.data("settings")),e),{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}var ex=b(()=>{WS()});var tx=b(()=>{ex()});function nx(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}var ax=b(()=>{""});function ix(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
13
|
+
`}]}var rx=b(()=>{""});function lx(e,t){let n=t.value?t.value+`
|
|
14
|
+
`:"",a={};t.lang&&(a.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}var sx=b(()=>{""});function ox(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var ux=b(()=>{""});function cx(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var fx=b(()=>{""});function dx(e,t){let n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),i=zn(a.toLowerCase()),r=e.footnoteOrder.indexOf(a),l,s=e.footnoteCounts.get(a);s===void 0?(s=0,e.footnoteOrder.push(a),l=e.footnoteOrder.length):l=r+1,s+=1,e.footnoteCounts.set(a,s);let o={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,o);let u={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,u),e.applyData(t,u)}var px=b(()=>{Ci()});function mx(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var hx=b(()=>{""});function gx(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}var vx=b(()=>{""});function Bu(e,t){let n=t.referenceType,a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];let i=e.all(t),r=i[0];r&&r.type==="text"?r.value="["+r.value:i.unshift({type:"text",value:"["});let l=i[i.length-1];return l&&l.type==="text"?l.value+=a:i.push({type:"text",value:a}),i}var jp=b(()=>{""});function yx(e,t){let n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return Bu(e,t);let i={src:zn(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(i.title=a.title);let r={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,r),e.applyData(t,r)}var bx=b(()=>{Ci();jp()});function Sx(e,t){let n={src:zn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}var xx=b(()=>{Ci()});function Nx(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}var Ex=b(()=>{""});function kx(e,t){let n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return Bu(e,t);let i={href:zn(a.url||"")};a.title!==null&&a.title!==void 0&&(i.title=a.title);let r={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}var Tx=b(()=>{Ci();jp()});function wx(e,t){let n={href:zn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}var Ax=b(()=>{Ci()});function Cx(e,t,n){let a=e.all(t),i=n?GC(n):Rx(t),r={},l=[];if(typeof t.checked=="boolean"){let c=a[0],p;c&&c.type==="element"&&c.tagName==="p"?p=c:(p={type:"element",tagName:"p",properties:{},children:[]},a.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),r.className=["task-list-item"]}let s=-1;for(;++s<a.length;){let c=a[s];(i||s!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
|
|
15
|
+
`}),c.type==="element"&&c.tagName==="p"&&!i?l.push(...c.children):l.push(c)}let o=a[a.length-1];o&&(i||o.type!=="element"||o.tagName!=="p")&&l.push({type:"text",value:`
|
|
16
|
+
`});let u={type:"element",tagName:"li",properties:r,children:l};return e.patch(t,u),e.applyData(t,u)}function GC(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let n=e.children,a=-1;for(;!t&&++a<n.length;)t=Rx(n[a])}return t}function Rx(e){let t=e.spread;return t==null?e.children.length>1:t}var _x=b(()=>{""});function Dx(e,t){let n={},a=e.all(t),i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<a.length;){let l=a[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let r={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,r),e.applyData(t,r)}var Ox=b(()=>{""});function Lx(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var zx=b(()=>{""});function Mx(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}var Ux=b(()=>{""});function Bx(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Vx=b(()=>{""});function Hx(e,t){let n=e.all(t),a=n.shift(),i=[];if(a){let l={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){let l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Lr(t.children[1]),o=vu(t.children[t.children.length-1]);s&&o&&(l.position={start:s,end:o}),i.push(l)}let r={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,r),e.applyData(t,r)}var Px=b(()=>{yu()});function qx(e,t,n){let a=n?n.children:void 0,r=(a?a.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,s=l?l.length:t.children.length,o=-1,u=[];for(;++o<s;){let p=t.children[o],d={},f=l?l[o]:void 0;f&&(d.align=f);let S={type:"element",tagName:r,properties:d,children:[]};p&&(S.children=e.all(p),e.patch(p,S),S=e.applyData(p,S)),u.push(S)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}var jx=b(()=>{""});function Yx(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Ix=b(()=>{""});function Xx(e){let t=String(e),n=/\r?\n|\r/g,a=n.exec(t),i=0,r=[];for(;a;)r.push(Gx(t.slice(i,a.index),i>0,!0),a[0]),i=a.index+a[0].length,a=n.exec(t);return r.push(Gx(t.slice(i),i>0,!1)),r.join("")}function Gx(e,t,n){let a=0,i=e.length;if(t){let r=e.codePointAt(a);for(;r===9||r===32;)a++,r=e.codePointAt(a)}if(n){let r=e.codePointAt(i-1);for(;r===9||r===32;)i--,r=e.codePointAt(i-1)}return i>a?e.slice(a,i):""}var Qx=b(()=>{});function Fx(e,t){let n={type:"text",value:Xx(String(t.value))};return e.patch(t,n),e.applyData(t,n)}var Zx=b(()=>{Qx()});function Jx(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var $x=b(()=>{""});function Vu(){}var Kx,Wx=b(()=>{ax();rx();sx();ux();fx();px();hx();vx();bx();xx();Ex();Tx();Ax();_x();Ox();zx();Ux();Vx();Px();jx();Ix();Zx();$x();Kx={blockquote:nx,break:ix,code:lx,delete:ox,emphasis:cx,footnoteReference:dx,heading:mx,html:gx,imageReference:yx,image:Sx,inlineCode:Nx,linkReference:kx,link:wx,listItem:Cx,list:Dx,paragraph:Lx,root:Mx,strong:Bx,table:Hx,tableCell:Yx,tableRow:qx,text:Fx,thematicBreak:Jx,toml:Vu,yaml:Vu,definition:Vu,footnoteDefinition:Vu}});var e1,ZC,Gp,r1=b(()=>{e1=typeof self=="object"?self:globalThis,ZC=(e,t)=>{let n=(i,r)=>(e.set(r,i),i),a=i=>{if(e.has(i))return e.get(i);let[r,l]=t[i];switch(r){case 0:case-1:return n(l,i);case 1:{let s=n([],i);for(let o of l)s.push(a(o));return s}case 2:{let s=n({},i);for(let[o,u]of l)s[a(o)]=a(u);return s}case 3:return n(new Date(l),i);case 4:{let{source:s,flags:o}=l;return n(new RegExp(s,o),i)}case 5:{let s=n(new Map,i);for(let[o,u]of l)s.set(a(o),a(u));return s}case 6:{let s=n(new Set,i);for(let o of l)s.add(a(o));return s}case 7:{let{name:s,message:o}=l;return n(new e1[s](o),i)}case 8:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{let{buffer:s}=new Uint8Array(l);return n(new DataView(s),l)}}return n(new e1[r](l),i)};return a},Gp=e=>ZC(new Map,e)(0)});var Ur,JC,$C,gs,Pu,KC,Xp,l1=b(()=>{Ur="",{toString:JC}={},{keys:$C}=Object,gs=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let n=JC.call(e).slice(8,-1);switch(n){case"Array":return[1,Ur];case"Object":return[2,Ur];case"Date":return[3,Ur];case"RegExp":return[4,Ur];case"Map":return[5,Ur];case"Set":return[6,Ur];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Pu=([e,t])=>e===0&&(t==="function"||t==="symbol"),KC=(e,t,n,a)=>{let i=(l,s)=>{let o=a.push(l)-1;return n.set(s,o),o},r=l=>{if(n.has(l))return n.get(l);let[s,o]=gs(l);switch(s){case 0:{let c=l;switch(o){case"bigint":s=8,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);c=null;break;case"undefined":return i([-1],l)}return i([s,c],l)}case 1:{if(o){let d=l;return o==="DataView"?d=new Uint8Array(l.buffer):o==="ArrayBuffer"&&(d=new Uint8Array(l)),i([o,[...d]],l)}let c=[],p=i([s,c],l);for(let d of l)c.push(r(d));return p}case 2:{if(o)switch(o){case"BigInt":return i([o,l.toString()],l);case"Boolean":case"Number":case"String":return i([o,l.valueOf()],l)}if(t&&"toJSON"in l)return r(l.toJSON());let c=[],p=i([s,c],l);for(let d of $C(l))(e||!Pu(gs(l[d])))&&c.push([r(d),r(l[d])]);return p}case 3:return i([s,l.toISOString()],l);case 4:{let{source:c,flags:p}=l;return i([s,{source:c,flags:p}],l)}case 5:{let c=[],p=i([s,c],l);for(let[d,f]of l)(e||!(Pu(gs(d))||Pu(gs(f))))&&c.push([r(d),r(f)]);return p}case 6:{let c=[],p=i([s,c],l);for(let d of l)(e||!Pu(gs(d)))&&c.push(r(d));return p}}let{message:u}=l;return i([s,{name:o,message:u}],l)};return r},Xp=(e,{json:t,lossy:n}={})=>{let a=[];return KC(!(t||n),!!t,new Map,a)(e),a}});var Br,Qp=b(()=>{r1();l1();Br=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Gp(Xp(e,t)):structuredClone(e):(e,t)=>Gp(Xp(e,t))});function WC(e,t){let n=[{type:"text",value:"\u21A9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function eR(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function s1(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||WC,a=e.options.footnoteBackLabel||eR,i=e.options.footnoteLabel||"Footnotes",r=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],o=-1;for(;++o<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[o]);if(!u)continue;let c=e.all(u),p=String(u.identifier).toUpperCase(),d=zn(p.toLowerCase()),f=0,S=[],x=e.footnoteCounts.get(p);for(;x!==void 0&&++f<=x;){S.length>0&&S.push({type:"text",value:" "});let h=typeof n=="string"?n:n(o,f);typeof h=="string"&&(h={type:"text",value:h}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(o,f),className:["data-footnote-backref"]},children:Array.isArray(h)?h:[h]})}let k=c[c.length-1];if(k&&k.type==="element"&&k.tagName==="p"){let h=k.children[k.children.length-1];h&&h.type==="text"?h.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...S)}else c.push(...S);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:ut(K({},Br(l)),{id:"footnote-label"}),children:[{type:"text",value:i}]},{type:"text",value:`
|
|
17
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
18
|
+
`}]}}var o1=b(()=>{Qp();Ci()});function tR(e){let t=[],n=-1;for(;++n<e.length;)t[n]=qu(e[n]);return ju(a);function a(...i){let r=-1;for(;++r<t.length;)if(t[r].apply(this,i))return!0;return!1}}function nR(e){let t=e;return ju(n);function n(a){let i=a,r;for(r in e)if(i[r]!==t[r])return!1;return!0}}function aR(e){return ju(t);function t(n){return n&&n.type===e}}function ju(e){return t;function t(n,a,i){return!!(rR(n)&&e.call(this,n,typeof a=="number"?a:void 0,i||void 0))}}function iR(){return!0}function rR(e){return e!==null&&typeof e=="object"&&"type"in e}var qu,u1=b(()=>{qu=(function(e){if(e==null)return iR;if(typeof e=="function")return ju(e);if(typeof e=="object")return Array.isArray(e)?tR(e):nR(e);if(typeof e=="string")return aR(e);throw new Error("Expected function, string, or object as test")})});var c1=b(()=>{u1()});function Jp(e,t,n,a){let i;typeof t=="function"&&typeof n!="function"?(a=n,n=t):i=t;let r=qu(i),l=a?-1:1;s(e,void 0,[])();function s(o,u,c){let p=o&&typeof o=="object"?o:{};if(typeof p.type=="string"){let f=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(o.type+(f?"<"+f+">":""))+")"})}return d;function d(){let f=f1,S,x,k;if((!t||r(o,u,c[c.length-1]||void 0))&&(f=lR(n(o,c)),f[0]===Yu))return f;if("children"in o&&o.children){let m=o;if(m.children&&f[0]!==Zp)for(x=(a?m.children.length:-1)+l,k=c.concat(m);x>-1&&x<m.children.length;){let h=m.children[x];if(S=s(h,x,k)(),S[0]===Yu)return S;x=typeof S[1]=="number"?S[1]:x+l}}return f}}}function lR(e){return Array.isArray(e)?e:typeof e=="number"?[Fp,e]:e==null?f1:[e]}var f1,Fp,Yu,Zp,d1=b(()=>{c1();f1=[],Fp=!0,Yu=!1,Zp="skip"});var p1=b(()=>{d1()});function vs(e,t,n,a){let i,r,l;typeof t=="function"&&typeof n!="function"?(r=void 0,l=t,i=n):(r=t,l=n,i=a),Jp(e,r,s,i);function s(o,u){let c=u[u.length-1],p=c?c.children.indexOf(o):void 0;return l(o,p,c)}}var m1=b(()=>{p1()});var $p=b(()=>{m1()});function g1(e,t){let n=t||sR,a=new Map,i=new Map,r=new Map,l=K(K({},Kx),n.handlers),s={all:u,applyData:uR,definitionById:a,footnoteById:i,footnoteCounts:r,footnoteOrder:[],handlers:l,one:o,options:n,patch:oR,wrap:fR};return vs(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let p=c.type==="definition"?a:i,d=String(c.identifier).toUpperCase();p.has(d)||p.set(d,c)}}),s;function o(c,p){let d=c.type,f=s.handlers[d];if(Kp.call(s.handlers,d)&&f)return f(s,c,p);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in c){let x=c,{children:k}=x,m=oh(x,["children"]),h=Br(m);return h.children=s.all(c),h}return Br(c)}return(s.options.unknownHandler||cR)(s,c,p)}function u(c){let p=[];if("children"in c){let d=c.children,f=-1;for(;++f<d.length;){let S=s.one(d[f],c);if(S){if(f&&d[f-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=h1(S.value)),!Array.isArray(S)&&S.type==="element")){let x=S.children[0];x&&x.type==="text"&&(x.value=h1(x.value))}Array.isArray(S)?p.push(...S):p.push(S)}}}return p}}function oR(e,t){e.position&&(t.position=sp(e))}function uR(e,t){let n=t;if(e&&e.data){let a=e.data.hName,i=e.data.hChildren,r=e.data.hProperties;if(typeof a=="string")if(n.type==="element")n.tagName=a;else{let l="children"in n?n.children:[n];n={type:"element",tagName:a,properties:{},children:l}}n.type==="element"&&r&&Object.assign(n.properties,Br(r)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function cR(e,t){let n=t.data||{},a="value"in t&&!(Kp.call(n,"hProperties")||Kp.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function fR(e,t){let n=[],a=-1;for(t&&n.push({type:"text",value:`
|
|
19
|
+
`});++a<e.length;)a&&n.push({type:"text",value:`
|
|
20
|
+
`}),n.push(e[a]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
21
|
+
`}),n}function h1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}var Kp,sR,v1=b(()=>{Qp();$p();yu();Wx();Kp={}.hasOwnProperty,sR={}});function Iu(e,t){let n=g1(e,t),a=n.one(e,void 0),i=s1(n),r=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return i&&("children"in r,r.children.push({type:"text",value:`
|
|
22
|
+
`},i)),r}var y1=b(()=>{o1();v1()});var b1=b(()=>{y1()});function Gu(e,t){return e&&"run"in e?function(n,a){return z(this,null,function*(){let i=Iu(n,K({file:a},t));yield e.run(i,a)})}:function(n,a){return Iu(n,K({file:a},e||t))}}var S1=b(()=>{b1()});var x1=b(()=>{S1()});function Wp(e){if(e)throw e}var N1=b(()=>{});var D1=Ut((cz,_1)=>{"use strict";var Xu=Object.prototype.hasOwnProperty,R1=Object.prototype.toString,E1=Object.defineProperty,k1=Object.getOwnPropertyDescriptor,T1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):R1.call(t)==="[object Array]"},w1=function(t){if(!t||R1.call(t)!=="[object Object]")return!1;var n=Xu.call(t,"constructor"),a=t.constructor&&t.constructor.prototype&&Xu.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!a)return!1;var i;for(i in t);return typeof i=="undefined"||Xu.call(t,i)},A1=function(t,n){E1&&n.name==="__proto__"?E1(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},C1=function(t,n){if(n==="__proto__")if(Xu.call(t,n)){if(k1)return k1(t,n).value}else return;return t[n]};_1.exports=function e(){var t,n,a,i,r,l,s=arguments[0],o=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},o=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});o<u;++o)if(t=arguments[o],t!=null)for(n in t)a=C1(s,n),i=C1(t,n),s!==i&&(c&&i&&(w1(i)||(r=T1(i)))?(r?(r=!1,l=a&&T1(a)?a:[]):l=a&&w1(a)?a:{},A1(s,{name:n,newValue:e(c,l,i)})):typeof i!="undefined"&&A1(s,{name:n,newValue:i}));return s}});function ys(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var O1=b(()=>{});function em(){let e=[],t={run:n,use:a};return t;function n(...i){let r=-1,l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);s(null,...i);function s(o,...u){let c=e[++r],p=-1;if(o){l(o);return}for(;++p<i.length;)(u[p]===null||u[p]===void 0)&&(u[p]=i[p]);i=u,c?L1(c,s)(...u):l(null,...u)}}function a(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function L1(e,t){let n;return a;function a(...l){let s=e.length>l.length,o;s&&l.push(i);try{o=e.apply(this,l)}catch(u){let c=u;if(s&&n)throw c;return i(c)}s||(o&&o.then&&typeof o.then=="function"?o.then(r,i):o instanceof Error?i(o):r(o))}function i(l,...s){n||(n=!0,t(l,...s))}function r(l){i(null,l)}}var z1=b(()=>{});var M1=b(()=>{z1()});function dR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bs(e);let n=0,a=-1,i=e.length,r;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(r){n=i+1;break}}else a<0&&(r=!0,a=i+1);return a<0?"":e.slice(n,a)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(r){n=i+1;break}}else l<0&&(r=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(a=i):(s=-1,a=l));return n===a?a=l:a<0&&(a=e.length),e.slice(n,a)}function pR(e){if(bs(e),e.length===0)return".";let t=-1,n=e.length,a;for(;--n;)if(e.codePointAt(n)===47){if(a){t=n;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function mR(e){bs(e);let t=e.length,n=-1,a=0,i=-1,r=0,l;for(;t--;){let s=e.codePointAt(t);if(s===47){if(l){a=t+1;break}continue}n<0&&(l=!0,n=t+1),s===46?i<0?i=t:r!==1&&(r=1):i>-1&&(r=-1)}return i<0||n<0||r===0||r===1&&i===n-1&&i===a+1?"":e.slice(i,n)}function hR(...e){let t=-1,n;for(;++t<e.length;)bs(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":gR(n)}function gR(e){bs(e);let t=e.codePointAt(0)===47,n=vR(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function vR(e,t){let n="",a=0,i=-1,r=0,l=-1,s,o;for(;++l<=e.length;){if(l<e.length)s=e.codePointAt(l);else{if(s===47)break;s=47}if(s===47){if(!(i===l-1||r===1))if(i!==l-1&&r===2){if(n.length<2||a!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(o=n.lastIndexOf("/"),o!==n.length-1){o<0?(n="",a=0):(n=n.slice(0,o),a=n.length-1-n.lastIndexOf("/")),i=l,r=0;continue}}else if(n.length>0){n="",a=0,i=l,r=0;continue}}t&&(n=n.length>0?n+"/..":"..",a=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),a=l-i-1;i=l,r=0}else s===46&&r>-1?r++:r=-1}return n}function bs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var qn,U1=b(()=>{qn={basename:dR,dirname:pR,extname:mR,join:hR,sep:"/"}});function yR(){return"/"}var B1,V1=b(()=>{B1={cwd:yR}});function Vr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}var tm=b(()=>{});function H1(e){if(typeof e=="string")e=new URL(e);else if(!Vr(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return bR(e)}function bR(e){if(e.hostname!==""){let a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let a=t.codePointAt(n+2);if(a===70||a===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var P1=b(()=>{tm();tm()});function am(e,t){if(e&&e.includes(qn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qn.sep+"`")}function im(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function q1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function SR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var nm,Oi,j1=b(()=>{cp();U1();V1();P1();nm=["history","path","basename","stem","extname","dirname"],Oi=class{constructor(t){let n;t?Vr(t)?n={path:t}:typeof t=="string"||SR(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":B1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<nm.length;){let r=nm[a];r in n&&n[r]!==void 0&&n[r]!==null&&(this[r]=r==="history"?[...n[r]]:n[r])}let i;for(i in n)nm.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?qn.basename(this.path):void 0}set basename(t){im(t,"basename"),am(t,"basename"),this.path=qn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qn.dirname(this.path):void 0}set dirname(t){q1(this.basename,"dirname"),this.path=qn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qn.extname(this.path):void 0}set extname(t){if(am(t,"extname"),q1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=qn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vr(t)&&(t=H1(t)),im(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qn.basename(this.path,this.extname):void 0}set stem(t){im(t,"stem"),am(t,"stem"),this.path=qn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,a){let i=this.message(t,n,a);throw i.fatal=!0,i}info(t,n,a){let i=this.message(t,n,a);return i.fatal=void 0,i}message(t,n,a){let i=new st(t,n,a);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}});var rm=b(()=>{j1()});var Y1,I1=b(()=>{Y1=(function(e){let a=this.constructor.prototype,i=a[e],r=function(){return i.apply(r,arguments)};return Object.setPrototypeOf(r,a),r})});function lm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function sm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function om(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function G1(e){if(!ys(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function X1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qu(e){return NR(e)?e:new Oi(e)}function NR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ER(e){return typeof e=="string"||kR(e)}function kR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var Fu,xR,um,cm,Q1=b(()=>{N1();Fu=F(D1(),1);O1();M1();rm();I1();xR={}.hasOwnProperty,um=class e extends Y1{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=em()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let a=this.attachers[n];t.use(...a)}return t.data((0,Fu.default)(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(om("data",this.frozen),this.namespace[t]=n,this):xR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(om("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);let i=n.call(t,...a);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let n=Qu(t),a=this.parser||this.Parser;return lm("parse",a),a(String(n),n)}process(t,n){let a=this;return this.freeze(),lm("process",this.parser||this.Parser),sm("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(r,l){let s=Qu(t),o=a.parse(s);a.run(o,s,function(c,p,d){if(c||!p||!d)return u(c);let f=p,S=a.stringify(f,d);ER(S)?d.value=S:d.result=S,u(c,d)});function u(c,p){c||!p?l(c):r?r(p):n(void 0,p)}}}processSync(t){let n=!1,a;return this.freeze(),lm("processSync",this.parser||this.Parser),sm("processSync",this.compiler||this.Compiler),this.process(t,i),X1("processSync","process",n),a;function i(r,l){n=!0,Wp(r),a=l}}run(t,n,a){G1(t),this.freeze();let i=this.transformers;return!a&&typeof n=="function"&&(a=n,n=void 0),a?r(void 0,a):new Promise(r);function r(l,s){let o=Qu(n);i.run(t,o,u);function u(c,p,d){let f=p||t;c?s(c):l?l(f):a(void 0,f,d)}}}runSync(t,n){let a=!1,i;return this.run(t,n,r),X1("runSync","run",a),i;function r(l,s){Wp(l),i=s,a=!0}}stringify(t,n){this.freeze();let a=Qu(n),i=this.compiler||this.Compiler;return sm("stringify",i),G1(t),i(t,a)}use(t,...n){let a=this.attachers,i=this.namespace;if(om("use",this.frozen),t!=null)if(typeof t=="function")o(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function r(u){if(typeof u=="function")o(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...p]=u;o(c,p)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=(0,Fu.default)(!0,i.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let p=u[c];r(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function o(u,c){let p=-1,d=-1;for(;++p<a.length;)if(a[p][0]===u){d=p;break}if(d===-1)a.push([u,...c]);else if(c.length>0){let[f,...S]=c,x=a[d][1];ys(x)&&ys(f)&&(f=(0,Fu.default)(!0,x,f)),a[d]=[u,f,...S]}}}},cm=new um().freeze()});var F1=b(()=>{Q1()});function Ss(e){let t=CR(e),n=RR(e);return _R(t.runSync(t.parse(n),n),e)}function CR(e){let t=e.rehypePlugins||Z1,n=e.remarkPlugins||Z1,a=e.remarkRehypeOptions?K(K({},e.remarkRehypeOptions),J1):J1;return cm().use(Uu).use(n).use(Gu,a).use(t)}function RR(e){let t=e.children||"",n=new Oi;return typeof t=="string"?n.value=t:(""+t,void 0),n}function _R(e,t){let n=t.allowedElements,a=t.allowElement,i=t.components,r=t.disallowedElements,l=t.skipHtml,s=t.unwrapDisallowed,o=t.urlTransform||K1;for(let c of AR)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+TR+c.id,void 0);return n&&r&&void 0,vs(e,u),dp(e,{Fragment:Hr.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Hr.jsx,jsxs:Hr.jsxs,passKeys:!0,passNode:!0});function u(c,p,d){if(c.type==="raw"&&d&&typeof p=="number")return l?d.children.splice(p,1):d.children[p]={type:"text",value:c.value},p;if(c.type==="element"){let f;for(f in us)if(Object.hasOwn(us,f)&&Object.hasOwn(c.properties,f)){let S=c.properties[f],x=us[f];(x===null||x.includes(c.tagName))&&(c.properties[f]=o(String(S||""),f,c))}}if(c.type==="element"){let f=n?!n.includes(c.tagName):r?r.includes(c.tagName):!1;if(!f&&a&&typeof p=="number"&&(f=!a(c,p,d)),f&&d&&typeof p=="number")return s&&c.children?d.children.splice(p,1,...c.children):d.children.splice(p,1),p}}}function K1(e){let t=e.indexOf(":"),n=e.indexOf("?"),a=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||a!==-1&&t>a||wR.test(e.slice(0,t))?e:""}var Hr,$1,TR,Z1,J1,wR,AR,W1=b(()=>{B0();H0();Hr=F(re(),1),$1=F(Je(),1);tx();x1();F1();$p();rm();TR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Z1=[],J1={allowDangerousHtml:!0},wR=/^(https?|ircs?|mailto|xmpp)$/i,AR=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}]});var fm=b(()=>{W1()});var Pe,xe,dm,ie,an=b(()=>{"use strict";Pe={LUA_API:"https://api.heylua.ai",DEV_SERVER:"https://api.heylua.ai",LOCAL_DEV:""},xe={CHAT_GENERATE:e=>`${Pe.LUA_API}/chat/generate/${e}?channel=dev`,TOOLS_TEST:e=>`${Pe.LUA_API}/tools/test/${e}`,CHAT_HISTORY:e=>`${Pe.LUA_API}/chat/history/${e}`,AGENT_TYPES:`${Pe.LUA_API}/agents/self-serve/types`,CREATE_AGENT:`${Pe.LUA_API}/agents/self-serve/create`,AGENT_DETAILS:e=>`${Pe.LUA_API}/admin/agents/${e}`,SKILL_VERSIONS:(e,t)=>`${Pe.DEV_SERVER}/developer/skills/${e}/${t}/versions`,PERSONA_VERSIONS:e=>`${Pe.LUA_API}/developer/agents/${e}/persona/versions`,DEPLOY_PERSONA_VERSION:(e,t)=>`${Pe.LUA_API}/developer/agents/${e}/persona/version/${t}`,AGENT_RESOURCES:e=>`${Pe.LUA_API}/admin/agents/${e}/resources`,AGENT_RESOURCE:(e,t)=>`${Pe.LUA_API}/admin/agents/${e}/resources/${t}`,AGENT_SKILLS:e=>`${Pe.LUA_API}/developer/skills/${e}`,ACTIVATE_SKILL:(e,t)=>`${Pe.LUA_API}/developer/skills/${e}/${t}`,PUBLISH_SKILL_VERSION:(e,t,n)=>`${Pe.LUA_API}/developer/skills/${e}/${t}/${n}/publish`,PRODUCTION_LOGS:e=>`${Pe.LUA_API}/developer/agents/${e}/logs`,PRODUCTION_ENV:e=>`${Pe.LUA_API}/developer/agents/${e}/env`,CREATE_SKILL:e=>`${Pe.DEV_SERVER}/developer/skills/${e}`,DEVELOPER_LOGS:(e,t)=>`${Pe.DEV_SERVER}/developer/skills/${e}/${t}/logs`,USER_DATA:e=>`${Pe.DEV_SERVER}/developer/user/data/agent/${e}`,LOCAL_CHAT:`${Pe.LOCAL_DEV}/chat`,LOCAL_PERSONA:`${Pe.LOCAL_DEV}/persona`,LOCAL_TOOLS:`${Pe.LOCAL_DEV}/tools`,LOCAL_TOOLS_TEST:`${Pe.LOCAL_DEV}/tools/test`,LOCAL_ENV:`${Pe.LOCAL_DEV}/env`},dm=class{constructor(t=""){this.baseUrl=t}getAllSkillOverrides(){return z(this,null,function*(){try{let n=yield(yield fetch("/api/skills")).json();return n.success&&n.skills&&Array.isArray(n.skills)?n.skills.map(a=>({skillId:a.skillId,sandboxId:a.sandboxId||a.skillId})).filter(a=>a.skillId&&a.sandboxId):[]}catch(t){return console.error("Error getting skill overrides:",t),[]}})}sendChatMessage(t,n,a,i,r,l){return z(this,null,function*(){try{let s=yield this.getAllSkillOverrides(),o=s.length>0?s:[{skillId:a,sandboxId:i}],u=K({messages:[{type:"text",text:t}],navigate:!0,skillOverride:o},l&&{personaOverride:l}),c=yield fetch(xe.CHAT_GENERATE(n),{method:"POST",headers:{"Content-Type":"application/json",Authorization:r},body:JSON.stringify(u)});if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);return{success:!0,text:(yield c.json()).text||"No response received"}}catch(s){return console.error("Chat API error:",s),{success:!1,error:s instanceof Error?s.message:"Unknown error occurred"}}})}sendProductionChatMessage(t,n,a){return z(this,null,function*(){try{let i={messages:[{type:"text",text:t}],navigate:!0,skillOverride:[]},r=yield fetch(xe.CHAT_GENERATE(n),{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(i)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return{success:!0,text:(yield r.json()).text||"No response received"}}catch(i){return console.error("Production chat API error:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}sendLocalChatMessage(t,n){return z(this,null,function*(){try{let a=yield fetch(xe.LOCAL_CHAT,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:t,persona:n})});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);return yield a.json()}catch(a){return console.error("Local chat API error:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}loadPersona(){return z(this,null,function*(){try{let t=yield fetch(xe.LOCAL_PERSONA);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return yield t.json()}catch(t){return console.error("Load persona error:",t),{success:!1,error:t instanceof Error?t.message:"Failed to load persona"}}})}savePersona(t){return z(this,null,function*(){try{let n=yield fetch(xe.LOCAL_PERSONA,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:t})});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return yield n.json()}catch(n){return console.error("Save persona error:",n),{success:!1,error:n instanceof Error?n.message:"Failed to save persona"}}})}loadTools(){return z(this,null,function*(){try{let t=yield fetch(xe.LOCAL_TOOLS);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return yield t.json()}catch(t){return console.error("Load tools error:",t),{success:!1,error:t instanceof Error?t.message:"Failed to load tools"}}})}testTool(t,n,a,i,r,l){return z(this,null,function*(){try{let s={toolName:t,inputs:n,skillOverride:[{skillId:i,sandboxId:r}]},o=yield fetch(xe.TOOLS_TEST(a),{method:"POST",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify(s)});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);let u=yield o.json();return{success:!0,result:u.result||u}}catch(s){return console.error("Tool test error:",s),{success:!1,error:s instanceof Error?s.message:"Unknown error occurred"}}})}getSkillVersions(t,n,a){return z(this,null,function*(){try{let i=yield fetch(xe.SKILL_VERSIONS(n,t),{method:"GET",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"}});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return{success:!0,versions:(yield i.json()).versions||[]}}catch(i){return console.error("Error fetching skill versions:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}getPersonaVersions(t,n){return z(this,null,function*(){try{let a=yield fetch(`${Pe.DEV_SERVER}/developer/agents/${t}/persona/versions`,{method:"GET",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);return{success:!0,versions:(yield a.json()).versions||[]}}catch(a){return console.error("Error fetching persona versions:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}getProductionPersonaVersions(t,n){return z(this,null,function*(){try{let a=yield fetch(xe.PERSONA_VERSIONS(t),{method:"GET",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);return{success:!0,versions:(yield a.json()).versions||[]}}catch(a){return console.error("Error fetching production persona versions:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}deployPersonaVersion(t,n,a){return z(this,null,function*(){try{let i=yield fetch(xe.DEPLOY_PERSONA_VERSION(t,a),{method:"POST",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"},body:JSON.stringify({})});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return{success:!0,data:yield i.json()}}catch(i){return console.error("Error deploying persona version:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}createPersonaVersion(t,n,a){return z(this,null,function*(){try{let i=yield fetch(`${Pe.DEV_SERVER}/developer/agents/${t}/persona/version`,{method:"POST",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"},body:JSON.stringify({persona:a})});if(!i.ok){let l=yield i.text();throw new Error(`HTTP error! status: ${i.status}, message: ${l}`)}return{success:!0,data:yield i.json()}}catch(i){return console.error("Error creating persona version:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}createSkillVersion(t,n,a,i){return z(this,null,function*(){try{let r=yield fetch(`${Pe.DEV_SERVER}/developer/skills/${n}/${t}/version`,{method:"POST",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"},body:JSON.stringify(i)});if(!r.ok){let s=yield r.text();throw new Error(`HTTP error! status: ${r.status}, message: ${s}`)}return{success:!0,data:yield r.json()}}catch(r){return console.error("Error creating skill version:",r),{success:!1,error:r instanceof Error?r.message:"Unknown error occurred"}}})}loadEnvContent(){return z(this,null,function*(){try{let t=yield fetch(xe.LOCAL_ENV);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return yield t.json()}catch(t){return console.error("Load env error:",t),{success:!1,error:t instanceof Error?t.message:"Failed to load environment variables"}}})}saveEnvContent(t){return z(this,null,function*(){try{let n=yield fetch(xe.LOCAL_ENV,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t})});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return yield n.json()}catch(n){return console.error("Save env error:",n),{success:!1,error:n instanceof Error?n.message:"Failed to save environment variables"}}})}testLocalTool(t,n){return z(this,null,function*(){try{let a=yield fetch(xe.LOCAL_TOOLS_TEST,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolName:t,inputs:n})});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);return yield a.json()}catch(a){return console.error("Local tool test error:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}loadChatHistory(t,n){return z(this,null,function*(){try{console.log("ApiService: Loading chat history with API key:",t,"agentId:",n);let a=yield fetch(xe.CHAT_HISTORY(n),{method:"GET",headers:{accept:"*/*",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Response status:",a.status),console.log("ApiService: Response headers:",a.headers),!a.ok){let r=yield a.text();throw console.error("ApiService: HTTP error response:",r),new Error(`HTTP error! status: ${a.status}`)}let i=yield a.json();return console.log("ApiService: Received data:",i),{success:!0,data:i}}catch(a){return console.error("ApiService: Chat history load error:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}clearChatHistory(t,n){return z(this,null,function*(){try{console.log("ApiService: Clearing chat history with API key:",t,"agentId:",n);let a=yield fetch(xe.CHAT_HISTORY(n),{method:"DELETE",headers:{accept:"*/*",Authorization:`Bearer ${t}`}});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);return{success:!0}}catch(a){return console.error("Clear chat history error:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}clearSandboxLogs(t,n,a){return z(this,null,function*(){try{console.log("ApiService: Clearing sandbox logs with API key:",t,"agentId:",n,"sandboxId:",a);let i=yield fetch(xe.DEVELOPER_LOGS(n,a),{method:"DELETE",headers:{accept:"application/json",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Clear logs response status:",i.status),!i.ok){let l=yield i.text();throw console.error("ApiService: HTTP error response:",l),new Error(`HTTP error! status: ${i.status}`)}let r=yield i.json();return console.log("ApiService: Clear logs response:",r),{success:!0,data:r}}catch(i){return console.error("ApiService: Clear sandbox logs error:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}loadAllSandboxLogs(t,n,a=20){return z(this,null,function*(){try{let i=yield this.getAllSkillOverrides();if(i.length===0)return{success:!0,data:{logs:[]}};let r=i.map(o=>z(this,null,function*(){try{let u=yield this.loadSandboxLogs(t,n,o.sandboxId,a);return u.success&&u.data&&u.data.logs?u.data.logs.map(c=>ut(K({},c),{skillName:o.skillId,sandboxId:o.sandboxId})):[]}catch(u){return console.error(`Error loading logs for skill ${o.skillId}:`,u),[]}}));return{success:!0,data:{logs:(yield Promise.all(r)).flat().sort((o,u)=>new Date(u.timestamp).getTime()-new Date(o.timestamp).getTime()).slice(0,a)}}}catch(i){return console.error("Error loading all sandbox logs:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred",data:{logs:[]}}}})}loadSandboxLogs(t,n,a,i=20){return z(this,null,function*(){try{console.log("ApiService: Loading sandbox logs with API key:",t,"agentId:",n,"sandboxId:",a);let r=yield fetch(`${xe.DEVELOPER_LOGS(n,a)}?limit=${i}`,{method:"GET",headers:{accept:"application/json",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Logs response status:",r.status),!r.ok){let s=yield r.text();throw console.error("ApiService: HTTP error response:",s),new Error(`HTTP error! status: ${r.status}`)}let l=yield r.json();return console.log("ApiService: Received logs data:",l),{success:!0,data:l}}catch(r){return console.error("ApiService: Sandbox logs load error:",r),{success:!1,error:r instanceof Error?r.message:"Unknown error occurred"}}})}loadUserData(t,n){return z(this,null,function*(){try{console.log("ApiService: Loading user data with API key:",t,"agentId:",n),console.log("ApiService: API key length:",t==null?void 0:t.length),console.log("ApiService: API key starts with:",t==null?void 0:t.substring(0,10));let a=yield fetch(xe.USER_DATA(n),{method:"GET",headers:{accept:"*/*",Authorization:`Bearer ${t}`}});if(console.log("ApiService: User data response status:",a.status),console.log("ApiService: Response headers:",Object.fromEntries(a.headers.entries())),!a.ok){let r=yield a.text();if(console.error("ApiService: HTTP error response:",r),a.status===401){console.log("ApiService: Trying alternative authentication method...");let l=yield fetch(xe.USER_DATA(n),{method:"GET",headers:{accept:"*/*",Authorization:t}});if(l.ok){let s=yield l.json();return console.log("ApiService: Alternative auth successful:",s),{success:!0,data:s}}}throw new Error(`HTTP error! status: ${a.status}`)}let i=yield a.json();return console.log("ApiService: Received user data:",i),{success:!0,data:i}}catch(a){return console.error("ApiService: User data load error:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}saveUserData(t,n,a){return z(this,null,function*(){return this.updateUserData(t,n,a)})}getUserData(t,n){return z(this,null,function*(){return this.loadUserData(t,n)})}updateUserData(t,n,a){return z(this,null,function*(){try{console.log("ApiService: Updating user data with API key:",t,"agentId:",n,"data:",a);let i=yield fetch(xe.USER_DATA(n),{method:"PUT",headers:{accept:"*/*",Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify(a)});if(console.log("ApiService: Update user data response status:",i.status),!i.ok){let l=yield i.text();throw console.error("ApiService: HTTP error response:",l),new Error(`HTTP error! status: ${i.status}`)}let r=yield i.json();return console.log("ApiService: Updated user data response:",r),{success:!0,data:r}}catch(i){return console.error("ApiService: Update user data error:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}loadResources(t,n){return z(this,null,function*(){try{console.log("ApiService: Loading resources with API key:",t,"agentId:",n);let a=yield fetch(xe.AGENT_RESOURCES(n),{method:"GET",headers:{accept:"application/json",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Resources response status:",a.status),!a.ok)throw new Error(`HTTP error! status: ${a.status}`);let i=yield a.json();return console.log("ApiService: Resources data:",i),{success:!0,data:i||[]}}catch(a){return console.error("ApiService: Error loading resources:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}createResource(t,n,a){return z(this,null,function*(){try{let i=yield fetch(xe.AGENT_RESOURCES(n),{method:"POST",headers:{accept:"application/json",Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify(a)});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return{success:!0,data:yield i.json()}}catch(i){return console.error("Error creating resource:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}updateResource(t,n,a,i){return z(this,null,function*(){try{let r=yield fetch(xe.AGENT_RESOURCE(n,a),{method:"PUT",headers:{accept:"application/json",Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify(i)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return{success:!0,data:yield r.json()}}catch(r){return console.error("Error updating resource:",r),{success:!1,error:r instanceof Error?r.message:"Unknown error occurred"}}})}deleteResource(t,n,a){return z(this,null,function*(){try{let i=yield fetch(xe.AGENT_RESOURCE(n,a),{method:"DELETE",headers:{accept:"*/*",Authorization:`Bearer ${t}`}});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return{success:!0}}catch(i){return console.error("Error deleting resource:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}clearUserData(t,n){return z(this,null,function*(){try{console.log("ApiService: Clearing user data with API key:",t,"agentId:",n);let a=yield fetch(xe.USER_DATA(n),{method:"DELETE",headers:{accept:"*/*",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Clear user data response status:",a.status),!a.ok){let r=yield a.text();throw console.error("ApiService: HTTP error response:",r),new Error(`HTTP error! status: ${a.status}`)}let i=yield a.json();return console.log("ApiService: Clear user data response:",i),{success:!0,data:i}}catch(a){return console.error("ApiService: Clear user data error:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}createSkill(t,n,a){return z(this,null,function*(){try{let i=yield fetch(xe.CREATE_SKILL(n),{method:"POST",headers:{accept:"application/json",Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify({name:a.name,description:a.description||`A Lua skill for ${a.name}`,context:a.context||""})});if(!i.ok){let l=yield i.text();return{success:!1,error:{message:`HTTP ${i.status}: ${l}`}}}return{success:!0,data:yield i.json()}}catch(i){return{success:!1,error:{message:i instanceof Error?i.message:"Unknown error"}}}})}getAgentTypes(t){return z(this,null,function*(){try{let n=yield fetch(xe.AGENT_TYPES,{method:"GET",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return yield n.json()}catch(n){return console.error("Error fetching agent types:",n),[]}})}createAgent(t,n){return z(this,null,function*(){try{let a=yield fetch(xe.CREATE_AGENT,{method:"POST",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify(n)});return a.ok?{success:!0,data:yield a.json()}:{success:!1,error:yield a.json()}}catch(a){return{success:!1,error:{message:a instanceof Error?a.message:"Unknown error"}}}})}getAgentDetails(t,n){return z(this,null,function*(){try{let a=yield fetch(xe.AGENT_DETAILS(n),{method:"GET",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}});return a.ok?{success:!0,data:yield a.json()}:{success:!1,error:yield a.json()}}catch(a){return{success:!1,error:{message:a instanceof Error?a.message:"Unknown error"}}}})}getSkills(t,n){return z(this,null,function*(){try{console.log("ApiService: Loading skills with API key:",t,"agentId:",n);let a=yield fetch(xe.AGENT_SKILLS(n),{method:"GET",headers:{accept:"application/json",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Skills response status:",a.status),!a.ok){let r=yield a.text();throw console.error("ApiService: HTTP error response:",r),new Error(`HTTP error! status: ${a.status}`)}let i=yield a.json();return console.log("ApiService: Received skills data:",i),{success:!0,skills:i.skills||[]}}catch(a){return console.error("ApiService: Skills load error:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}activateSkill(t,n,a,i){return z(this,null,function*(){try{console.log(`ApiService: ${i?"Activating":"Deactivating"} skill:`,a,"for agent:",n);let r=yield fetch(xe.ACTIVATE_SKILL(n,a),{method:"PUT",headers:{accept:"application/json",Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify({active:i})});if(console.log("ApiService: Activate skill response status:",r.status),!r.ok){let s=yield r.text();throw console.error("ApiService: HTTP error response:",s),new Error(`HTTP error! status: ${r.status}`)}let l=yield r.json();return console.log("ApiService: Activate skill response:",l),{success:!0,data:l}}catch(r){return console.error("ApiService: Activate skill error:",r),{success:!1,error:r instanceof Error?r.message:"Unknown error occurred"}}})}publishSkillVersion(t,n,a,i){return z(this,null,function*(){try{console.log("ApiService: Publishing skill version:",i,"for skill:",a,"agent:",n);let r=yield fetch(xe.PUBLISH_SKILL_VERSION(n,a,i),{method:"PUT",headers:{accept:"application/json",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Publish skill version response status:",r.status),!r.ok){let s=yield r.text();throw console.error("ApiService: HTTP error response:",s),new Error(`HTTP error! status: ${r.status}`)}let l=yield r.json();return console.log("ApiService: Publish skill version response:",l),{success:!0,data:l}}catch(r){return console.error("ApiService: Publish skill version error:",r),{success:!1,error:r instanceof Error?r.message:"Unknown error occurred"}}})}loadProductionLogs(t,n,a=1,i=100){return z(this,null,function*(){try{console.log("ApiService: Loading production logs with API key:",t,"agentId:",n,"page:",a,"limit:",i);let r=yield fetch(`${xe.PRODUCTION_LOGS(n)}?page=${a}&limit=${i}`,{method:"GET",headers:{accept:"application/json",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Production logs response status:",r.status),!r.ok){let s=yield r.text();throw console.error("ApiService: HTTP error response:",s),new Error(`HTTP error! status: ${r.status}`)}let l=yield r.json();return console.log("ApiService: Production logs response:",l),{success:!0,logs:l.logs||[],pagination:l.pagination}}catch(r){return console.error("ApiService: Production logs error:",r),{success:!1,error:r instanceof Error?r.message:"Unknown error occurred"}}})}loadProductionEnv(t,n){return z(this,null,function*(){try{console.log("ApiService: Loading production env with API key:",t,"agentId:",n);let a=yield fetch(xe.PRODUCTION_ENV(n),{method:"GET",headers:{accept:"application/json",Authorization:`Bearer ${t}`}});if(console.log("ApiService: Production env response status:",a.status),!a.ok){let r=yield a.text();throw console.error("ApiService: HTTP error response:",r),new Error(`HTTP error! status: ${a.status}`)}let i=yield a.json();return console.log("ApiService: Production env response:",i),{success:!0,data:i}}catch(a){return console.error("ApiService: Production env error:",a),{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}})}updateProductionEnv(t,n,a){return z(this,null,function*(){try{console.log("ApiService: Updating production env with API key:",t,"agentId:",n,"data:",a);let i=yield fetch(xe.PRODUCTION_ENV(n),{method:"POST",headers:{accept:"application/json",Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify(a)});if(console.log("ApiService: Update production env response status:",i.status),!i.ok){let l=yield i.text();throw console.error("ApiService: HTTP error response:",l),new Error(`HTTP error! status: ${i.status}`)}let r=yield i.json();return console.log("ApiService: Update production env response:",r),{success:!0,data:r}}catch(i){return console.error("ApiService: Update production env error:",i),{success:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}})}},ie=new dm});var Pr,dt,pm,eN=b(()=>{"use strict";Pr=F(Je());fm();an();dt=F(re()),pm=({apiKey:e,agentId:t,skillId:n,sandboxId:a,persona:i,sharedChatMessages:r,onSharedSendMessage:l,onSharedClearHistory:s,isChatLoading:o,setIsChatLoading:u})=>{let[c,p]=(0,Pr.useState)(""),d=(0,Pr.useRef)(null),f=()=>{var h;(h=d.current)==null||h.scrollIntoView({behavior:"smooth"})};(0,Pr.useEffect)(()=>{f()},[r]);let S=r.length>0?r.map(h=>({text:h.text,isUser:h.sender==="user",timestamp:h.timestamp})):[{text:"\u{1F44B} Welcome! Start chatting to test your Lua skill. Your messages will be sent to the sandbox environment.",isUser:!1,timestamp:new Date}],x=h=>z(null,null,function*(){if(!h.trim())return;let g={id:Date.now().toString(),text:h,sender:"user",timestamp:new Date};l(g),p(""),u(!0);try{let E=yield ie.sendLocalChatMessage(h,i),T={id:(Date.now()+1).toString(),text:E.success?E.text||"No response received":`\u274C ${E.error||"Failed to send message"}`,sender:"assistant",timestamp:new Date};l(T)}catch(E){let T={id:(Date.now()+2).toString(),text:`\u274C Error: ${E instanceof Error?E.message:"Unknown error"}`,sender:"assistant",timestamp:new Date};l(T)}finally{u(!1)}}),k=h=>{h.preventDefault(),x(c)},m=h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),x(c))};return(0,dt.jsxs)("div",{className:"chat-container",children:[(0,dt.jsxs)("div",{className:"chat-header",children:[(0,dt.jsx)("div",{className:"chat-header-content",children:(0,dt.jsxs)("div",{children:[(0,dt.jsx)("h1",{children:"Chat to your Agent [Sandbox]"}),(0,dt.jsx)("p",{children:"Test your sandbox skill in real-time"})]})}),(0,dt.jsx)("button",{className:"clear-chat-button",onClick:s,disabled:o,title:"Clear chat history",children:"\u{1F5D1}\uFE0F"})]}),(0,dt.jsxs)("div",{className:"chat-messages",children:[S.map((h,g)=>(0,dt.jsx)("div",{className:`message ${h.isUser?"user":"assistant"}`,children:(0,dt.jsx)("div",{className:"message-bubble",children:(0,dt.jsx)(Ss,{children:h.text})})},g)),o&&(0,dt.jsx)("div",{className:"loading",children:(0,dt.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})}),(0,dt.jsx)("div",{ref:d})]}),(0,dt.jsx)("div",{className:"chat-input-container",children:(0,dt.jsxs)("form",{className:"chat-input-form",onSubmit:k,children:[(0,dt.jsx)("input",{type:"text",id:"chat-input",name:"chatMessage",className:"chat-input",value:c,onChange:h=>p(h.target.value),onKeyDown:m,placeholder:"Type your message...",disabled:o,autoComplete:"off"}),(0,dt.jsx)("button",{type:"submit",className:"send-button",disabled:o||!c.trim(),children:"Send"})]})})]})}});var Mn,Z,mm,hm=b(()=>{"use strict";Mn=F(Je());an();Z=F(re()),mm=({persona:e,onSavePersona:t,apiKey:n,agentId:a})=>{let[i,r]=(0,Mn.useState)(e),[l,s]=(0,Mn.useState)(!1),[o,u]=(0,Mn.useState)([]),[c,p]=(0,Mn.useState)(!1),[d,f]=(0,Mn.useState)("current"),[S,x]=(0,Mn.useState)(null),[k,m]=(0,Mn.useState)(!1),[h,g]=(0,Mn.useState)(!1);(0,Mn.useEffect)(()=>{r(e)},[e]),(0,Mn.useEffect)(()=>{E()},[]);let E=()=>z(null,null,function*(){p(!0);try{let R=yield ie.getPersonaVersions(a,n);if(R.success&&R.versions){let O=R.versions.sort((I,B)=>B.createdDate-I.createdDate);u(O)}else console.error("Failed to load persona versions:",R.error),u([])}catch(R){console.error("Error loading persona versions:",R),u([])}finally{p(!1)}}),T=R=>{f(R),S&&x(null)},N=R=>{x(R)},A=()=>{x(null)},C=()=>{if(!i.trim()){alert("Please enter a persona before creating a version");return}g(!0)},U=()=>z(null,null,function*(){m(!0);try{let R=yield ie.createPersonaVersion(a,n,i.trim());if(R.success)console.log("\u2705 Persona version created successfully:",R.data),yield E(),f("versions"),alert("\u2705 Persona version created successfully! You can deploy it from the Production tab.");else throw new Error(R.error||"Failed to create persona version")}catch(R){console.error("\u274C Error creating persona version:",R),alert(`\u274C Failed to create persona version: ${R instanceof Error?R.message:"Unknown error"}`)}finally{m(!1),g(!1)}}),P=()=>{g(!1)},_=()=>z(null,null,function*(){let R=i.trim();if(!R){alert("Persona cannot be empty");return}s(!0);try{(yield t(R))&&r(R)}finally{s(!1)}});return S?(0,Z.jsxs)("div",{className:"persona-section",children:[(0,Z.jsx)("div",{className:"persona-header",children:(0,Z.jsxs)("div",{className:"header-left",children:[(0,Z.jsx)("button",{className:"back-button",onClick:A,children:"\u2190"}),(0,Z.jsxs)("h3",{children:["Persona v",S.version]})]})}),(0,Z.jsxs)("div",{className:"persona-version-details",children:[(0,Z.jsx)("div",{className:"version-metadata",children:(0,Z.jsxs)("div",{className:"metadata-grid",children:[(0,Z.jsxs)("div",{className:"metadata-item",children:[(0,Z.jsx)("span",{className:"metadata-label",children:"Created By"}),(0,Z.jsx)("span",{className:"metadata-value",children:S.createdBy})]}),(0,Z.jsxs)("div",{className:"metadata-item",children:[(0,Z.jsx)("span",{className:"metadata-label",children:"Status"}),(0,Z.jsx)("span",{className:`version-status ${S.isCurrent?"active":"available"}`,children:S.isCurrent?"Active (Deployed)":"Available"})]}),(0,Z.jsxs)("div",{className:"metadata-item",children:[(0,Z.jsx)("span",{className:"metadata-label",children:"Created Date"}),(0,Z.jsx)("span",{className:"metadata-value",children:new Date(S.createdDate).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})]})}),(0,Z.jsxs)("div",{className:"persona-content",children:[(0,Z.jsx)("h4",{children:"Persona Content"}),(0,Z.jsx)("div",{className:"persona-display",children:(0,Z.jsx)("pre",{children:S.persona})})]})]})]}):(0,Z.jsxs)("div",{className:"persona-section",children:[(0,Z.jsx)("div",{className:"persona-header",children:(0,Z.jsx)("h3",{children:"Agent Persona"})}),(0,Z.jsxs)("div",{className:"persona-tabs",children:[(0,Z.jsxs)("div",{className:"tabs-header",children:[(0,Z.jsx)("button",{className:`tab-button ${d==="current"?"active":""}`,onClick:()=>T("current"),children:"Current"}),(0,Z.jsxs)("button",{className:`tab-button ${d==="versions"?"active":""}`,onClick:()=>T("versions"),children:["Versions (",o.length,")"]})]}),(0,Z.jsx)("div",{className:"tab-content",children:d==="current"?(0,Z.jsxs)("div",{className:"current-persona-tab",children:[(0,Z.jsxs)("div",{className:"persona-edit-header",children:[(0,Z.jsx)("h4",{children:"Edit Current Persona"}),(0,Z.jsxs)("div",{className:"persona-actions",children:[(0,Z.jsx)("button",{className:"save-btn",onClick:_,disabled:l,title:"Save persona to YAML",children:l?"\u27F3":"\u{1F4BE}"}),(0,Z.jsx)("button",{className:"create-version-btn",onClick:C,disabled:k||!i.trim(),title:"Create new persona version",children:k?"Creating...":"Create Version"})]})]}),(0,Z.jsx)("div",{className:"persona-edit",children:(0,Z.jsx)("textarea",{value:i,onChange:R=>r(R.target.value),placeholder:"Enter agent persona...",className:"persona-textarea"})}),(0,Z.jsx)("div",{className:"persona-help",children:(0,Z.jsxs)("p",{children:["This persona is stored in your ",(0,Z.jsx)("code",{children:"lua.skill.yaml"})," file and used for local development."]})})]}):(0,Z.jsx)("div",{className:"versions-persona-tab",children:c?(0,Z.jsx)("div",{className:"versions-loading",children:(0,Z.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})}):o.length>0?(0,Z.jsx)("div",{className:"versions-list",children:o.map((R,O)=>(0,Z.jsxs)("div",{className:`version-item ${R.isCurrent?"active":"available"}`,onClick:()=>N(R),children:[(0,Z.jsxs)("div",{className:"version-info",children:[(0,Z.jsxs)("div",{className:"version-header",children:[(0,Z.jsxs)("span",{className:"version-number",children:["v",R.version]}),(0,Z.jsx)("span",{className:`version-status ${R.isCurrent?"active":"available"}`,children:R.isCurrent?"Active":"Available"})]}),(0,Z.jsx)("div",{className:"version-date",children:new Date(R.createdDate).toLocaleDateString()})]}),(0,Z.jsx)("div",{className:"version-arrow",children:"\u2192"})]},O))}):(0,Z.jsxs)("div",{className:"no-versions",children:[(0,Z.jsx)("div",{className:"no-versions-icon",children:"\u{1F464}"}),(0,Z.jsx)("div",{className:"no-versions-text",children:"No persona versions found"}),(0,Z.jsx)("div",{className:"no-versions-subtext",children:"Persona versions will appear here when available"})]})})})]}),h&&(0,Z.jsx)("div",{className:"version-modal-overlay",children:(0,Z.jsxs)("div",{className:"version-modal",children:[(0,Z.jsx)("div",{className:"version-modal-header",children:(0,Z.jsx)("h3",{children:"Create Persona Version"})}),(0,Z.jsxs)("div",{className:"version-modal-body",children:[(0,Z.jsx)("p",{children:"This will create a new persona version that can be deployed to production."}),(0,Z.jsxs)("p",{children:[(0,Z.jsx)("strong",{children:"Note:"})," The version will be created but not automatically released. You can deploy it from the Production tab."]}),(0,Z.jsxs)("div",{className:"persona-preview-box",children:[(0,Z.jsx)("h4",{children:"Persona Content:"}),(0,Z.jsxs)("div",{className:"persona-preview-content",children:[i.substring(0,300),i.length>300?"...":""]})]})]}),(0,Z.jsxs)("div",{className:"version-modal-actions",children:[(0,Z.jsx)("button",{className:"cancel-button",onClick:P,disabled:k,children:"Cancel"}),(0,Z.jsx)("button",{className:"create-button",onClick:U,disabled:k,children:k?"Creating...":"Create Version"})]})]})})]})}});var Tt,w,gm,vm=b(()=>{"use strict";Tt=F(Je());an();w=F(re()),gm=({apiKey:e,agentId:t,skillId:n,sandboxId:a})=>{var Zr;let[i,r]=(0,Tt.useState)([]),[l,s]=(0,Tt.useState)(null),[o,u]=(0,Tt.useState)(null),[c,p]=(0,Tt.useState)([]),[d,f]=(0,Tt.useState)(!1),[S,x]=(0,Tt.useState)("current"),[k,m]=(0,Tt.useState)(!1),[h,g]=(0,Tt.useState)(!1),[E,T]=(0,Tt.useState)(""),[N,A]=(0,Tt.useState)({}),[C,U]=(0,Tt.useState)(null),[P,_]=(0,Tt.useState)(!0),[R,O]=(0,Tt.useState)(!1),[I,B]=(0,Tt.useState)(null),[J,ae]=(0,Tt.useState)([]);(0,Tt.useEffect)(()=>{we(),je()},[]);let we=()=>z(null,null,function*(){_(!0),B(null);try{console.log("Loading skills from /api/skills...");let q=yield fetch("/api/skills");if(console.log("Skills API response status:",q.status),!q.ok)throw new Error(`HTTP ${q.status}: ${q.statusText}`);let j=yield q.json();console.log("Skills API response data:",j),j.success&&j.skills&&Array.isArray(j.skills)?(console.log("Skills loaded successfully:",j.skills),r(j.skills),B(null)):(console.error("Failed to load skills:",j.error),B(j.error||"Failed to load skills - invalid data format"),r([]))}catch(q){console.error("Error loading skills:",q),B(q instanceof Error?q.message:"Failed to load skills"),r([])}finally{_(!1)}}),je=()=>z(null,null,function*(){try{let j=yield(yield fetch("/tools")).json();if(j.success&&j.tools){let le=[];Array.isArray(j.tools)?le=j.tools:typeof j.tools=="object"&&(le=Object.entries(j.tools).map(([Be,Mt])=>K({name:Be},Mt))),ae(le)}else console.error("Failed to load tools:",j.error),ae([])}catch(q){console.error("Error loading tools:",q),ae([])}}),v=q=>{let j={};q.inputSchema.properties&&Object.keys(q.inputSchema.properties).forEach(le=>{let Be=q.inputSchema.properties[le];j[le]=Me(Be)}),A(j)},Me=q=>{if(q.type==="object"&&q.properties){let j={};return Object.keys(q.properties).forEach(le=>{j[le]=Me(q.properties[le])}),j}else return q.type==="number"?0:q.type==="boolean"?!1:""},pt=q=>{let j=J.find(le=>le.name===q);j&&(u(j),v(j),U(null))},y=q=>z(null,null,function*(){f(!0);try{let j=yield ie.getSkillVersions(q.skillId,t,e);if(j.success&&j.versions){let le=j.versions.sort((Be,Mt)=>new Date(Mt.createdDate||Mt.createdAt).getTime()-new Date(Be.createdDate||Be.createdAt).getTime());p(le)}else console.error("Failed to load skill versions:",j.error),p([])}catch(j){console.error("Error loading skill versions:",j),p([])}finally{f(!1)}}),Ke=q=>{let j=i.find(le=>le.name===q);j&&(s(q),x("current"),y(j))},At=()=>{s(null),x("current"),p([]),u(null),U(null)},se=q=>{x(q),o&&(u(null),U(null))},X=()=>{u(null),U(null)},Q=()=>z(null,null,function*(){if(!l)return;let q=i.find(le=>le.name===l);if(!q)return;c.some(le=>le.version===q.version)?(T(q.version),g(!0)):yield ne(q.version)}),ne=q=>z(null,null,function*(){if(!l)return;let j=i.find(le=>le.name===l);if(j){m(!0);try{let Be=yield(yield fetch("/tools")).json();if(!Be.success||!Be.tools)throw new Error("Failed to load current tools data");let Mt=[];Array.isArray(Be.tools)?Mt=Be.tools:typeof Be.tools=="object"&&(Mt=Object.entries(Be.tools).map(([un,D])=>({name:un,description:D.description||"",inputSchema:D.inputSchema||{type:"object"},execute:D.execute||""})));let on=Mt.filter(un=>j.tools.includes(un.name)),Ct={name:j.name,version:q,description:j.description,context:j.context,tools:on};console.log("Creating version with data:",Ct);let We=yield ie.createSkillVersion(j.skillId,t,e,Ct);if(We.success)console.log("\u2705 Version created successfully:",We.data),yield y(j),alert(`\u2705 Version ${q} created successfully!`);else throw new Error(We.error||"Failed to create version")}catch(le){console.error("\u274C Error creating version:",le),alert(`\u274C Failed to create version: ${le instanceof Error?le.message:"Unknown error"}`)}finally{m(!1),g(!1)}}}),Y=()=>z(null,null,function*(){if(!E.trim()){alert("Please enter a version number");return}if(c.some(j=>j.version===E.trim())){alert("This version already exists. Please enter a different version number.");return}yield ne(E.trim())}),oe=()=>{g(!1),T("")},Ue=(q,j,le)=>{A(Be=>le?ut(K({},Be),{[q]:ut(K({},Be[q]),{[le]:j})}):ut(K({},Be),{[q]:j}))},mt=()=>z(null,null,function*(){if(o){O(!0),U(null);try{let q=zs(N,o.inputSchema),j=yield ie.testLocalTool(o.name,q);U(j)}catch(q){U({success:!1,error:q instanceof Error?q.message:"Unknown error occurred"})}finally{O(!1)}}}),zs=(q,j)=>{var Be,Mt;let le={};for(let[on,Ct]of Object.entries(q))if(Ct&&typeof Ct=="object"&&!Array.isArray(Ct)){let We=(Be=j.properties)==null?void 0:Be[on];if(We&&We.type==="object"&&We.properties){let un=zs(Ct,We);Object.keys(un).length>0&&(le[on]=un)}else le[on]=Ct}else{let We=(Mt=j.properties)==null?void 0:Mt[on];if((!j.required||!j.required.includes(on))&&(Ct===""||Ct===null||Ct===void 0))continue;le[on]=Ct}return le},Fr=(q,j,le)=>{var on,Ct;let Be=le?((on=N[q])==null?void 0:on[le])||"":N[q]||"",Mt=le?(Ct=j.required)==null?void 0:Ct.includes(le):o==null?void 0:o.inputSchema.required.includes(q);if(j.type==="object"&&j.properties)return(0,w.jsxs)("div",{className:"nested-object",children:[(0,w.jsx)("div",{className:"nested-object-label",children:q}),(0,w.jsx)("div",{className:"nested-fields",children:Object.entries(j.properties).map(([We,un])=>{var D;return(0,w.jsxs)("div",{className:"nested-field",children:[(0,w.jsxs)("label",{className:"nested-label",children:[We,((D=j.required)==null?void 0:D.includes(We))&&(0,w.jsx)("span",{className:"required",children:"*"})]}),Fr(q,un,We),un.description&&(0,w.jsx)("div",{className:"input-description",children:un.description})]},We)})})]});switch(j.type){case"number":return(0,w.jsx)("input",{type:"number",value:Be,onChange:We=>Ue(q,parseFloat(We.target.value)||0,le),placeholder:j.description||`Enter ${le||q}`,className:"tool-input",required:Mt});case"boolean":return(0,w.jsx)("input",{type:"checkbox",checked:Be,onChange:We=>Ue(q,We.target.checked,le),className:"tool-checkbox"});case"string":default:return(0,w.jsx)("input",{type:"text",value:Be,onChange:We=>Ue(q,We.target.value,le),placeholder:j.description||`Enter ${le||q}`,className:"tool-input",required:Mt})}};if(P)return(0,w.jsx)("div",{className:"skills-page",children:(0,w.jsx)("div",{className:"skills-loading",children:(0,w.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})})});if(o)return(0,w.jsx)("div",{className:"skills-page",children:(0,w.jsxs)("div",{className:"tool-form",children:[(0,w.jsxs)("div",{className:"tool-form-header",children:[(0,w.jsx)("button",{className:"back-button",onClick:X,title:"Back to skill",children:"\u2190"}),(0,w.jsx)("h3",{children:o.name})]}),(0,w.jsxs)("div",{className:"tool-form-content",children:[(0,w.jsx)("div",{className:"tool-info",children:(0,w.jsx)("p",{children:o.description})}),(0,w.jsxs)("div",{className:"tool-inputs",children:[(0,w.jsx)("h4",{children:"Input Parameters"}),Object.keys(o.inputSchema.properties||{}).length>0?(0,w.jsx)("div",{className:"input-fields",children:Object.entries(o.inputSchema.properties).map(([q,j])=>(0,w.jsxs)("div",{className:"input-field",children:[(0,w.jsxs)("label",{children:[q,o.inputSchema.required.includes(q)&&(0,w.jsx)("span",{className:"required",children:"*"})]}),Fr(q,j),j.description&&(0,w.jsx)("div",{className:"input-description",children:j.description})]},q))}):(0,w.jsx)("p",{className:"no-inputs",children:"This tool requires no input parameters."})]}),(0,w.jsx)("div",{className:"tool-actions",children:(0,w.jsx)("button",{onClick:mt,disabled:R,className:"test-button",children:R?"Testing...":"Test Tool"})}),C&&(0,w.jsxs)("div",{className:"test-result",children:[(0,w.jsx)("h4",{children:"Test Result"}),(0,w.jsx)("div",{className:`result-content ${C.success?"success":"error"}`,children:C.success?(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:"result-label",children:"\u2705 Success"}),(0,w.jsx)("pre",{className:"result-data",children:JSON.stringify(C.result,null,2)})]}):(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:"result-label",children:"\u274C Error"}),(0,w.jsx)("div",{className:"result-error",children:C.error})]})})]})]})]})});if(l){let q=i.find(j=>j.name===l);return q?(0,w.jsxs)("div",{className:"skills-page",children:[(0,w.jsxs)("div",{className:"skills-header",children:[(0,w.jsxs)("div",{className:"header-left",children:[(0,w.jsx)("button",{className:"back-button",onClick:At,children:"\u2190"}),(0,w.jsx)("h4",{children:q.name})]}),(0,w.jsx)("button",{className:"create-version-button",onClick:Q,disabled:k,title:"Create new version",children:k?"Creating...":"Create Version"})]}),(0,w.jsxs)("div",{className:"skill-tabs",children:[(0,w.jsxs)("div",{className:"tabs-header",children:[(0,w.jsx)("button",{className:`tab-button ${S==="current"?"active":""}`,onClick:()=>se("current"),children:"Current"}),(0,w.jsxs)("button",{className:`tab-button ${S==="versions"?"active":""}`,onClick:()=>se("versions"),children:["Versions (",c.length,")"]})]}),(0,w.jsx)("div",{className:"tab-content",children:S==="current"?(0,w.jsxs)("div",{className:"current-skill-tab",children:[(0,w.jsx)("div",{className:"skill-details",children:(0,w.jsxs)("div",{className:"skill-info-section",children:[(0,w.jsxs)("div",{className:"skill-meta",children:[(0,w.jsxs)("span",{className:"skill-version",children:["v",q.version]}),(0,w.jsxs)("span",{className:"skill-tools-count",children:[q.tools.length," tools"]})]}),q.description&&(0,w.jsxs)("div",{className:"skill-description-section",children:[(0,w.jsx)("h5",{children:"Description"}),(0,w.jsx)("p",{children:q.description})]}),q.context&&(0,w.jsxs)("div",{className:"skill-context-section",children:[(0,w.jsx)("h5",{children:"Context"}),(0,w.jsx)("p",{children:q.context})]})]})}),(0,w.jsxs)("div",{className:"tools-section",children:[(0,w.jsx)("div",{className:"tools-header",children:(0,w.jsxs)("h5",{children:["Available Tools (",q.tools.length,")"]})}),q.tools&&q.tools.length>0?(0,w.jsx)("div",{className:"tools-grid",children:q.tools.map((j,le)=>(0,w.jsxs)("div",{className:"tool-card",onClick:()=>pt(j),children:[(0,w.jsx)("div",{className:"tool-card-header",children:(0,w.jsx)("h4",{children:j})}),(0,w.jsx)("div",{className:"tool-card-body",children:(0,w.jsx)("span",{className:"skill-badge",children:q.name})})]},le))}):(0,w.jsxs)("div",{className:"no-tools",children:[(0,w.jsx)("div",{className:"no-tools-icon",children:"\u{1F527}"}),(0,w.jsx)("div",{className:"no-tools-text",children:"No tools in this skill"}),(0,w.jsx)("div",{className:"no-tools-subtext",children:"This skill doesn't have any tools defined"})]})]}),(0,w.jsx)("div",{className:"skills-help",children:(0,w.jsx)("p",{children:"This skill is compiled from your local code and updates automatically when you make changes. Use the tools above to test your skill's functionality."})})]}):(0,w.jsx)("div",{className:"versions-skill-tab",children:d?(0,w.jsx)("div",{className:"versions-loading",children:(0,w.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})}):c.length>0?(0,w.jsx)("div",{className:"versions-list",children:c.map((j,le)=>(0,w.jsxs)("div",{className:`version-item ${j.status}`,onClick:()=>{console.log("Selected version:",j.version)},children:[(0,w.jsxs)("div",{className:"version-info",children:[(0,w.jsxs)("div",{className:"version-header",children:[(0,w.jsxs)("span",{className:"version-number",children:["v",j.version]}),(0,w.jsx)("span",{className:`version-status ${j.status}`,children:j.status})]}),(0,w.jsxs)("div",{className:"version-meta",children:[(0,w.jsx)("span",{className:"version-date",children:new Date(j.createdDate||j.createdAt).toLocaleDateString()}),(0,w.jsxs)("span",{className:"version-author",children:["by ",j.createdByEmail||j.createdBy]})]})]}),(0,w.jsx)("div",{className:"version-arrow",children:"\u2192"})]},le))}):(0,w.jsxs)("div",{className:"no-versions",children:[(0,w.jsx)("div",{className:"no-versions-icon",children:"\u{1F4E6}"}),(0,w.jsx)("div",{className:"no-versions-text",children:"No versions found"}),(0,w.jsx)("div",{className:"no-versions-subtext",children:"Create your first version to get started"})]})})})]}),h&&(0,w.jsx)("div",{className:"version-modal-overlay",children:(0,w.jsxs)("div",{className:"version-modal",children:[(0,w.jsx)("div",{className:"version-modal-header",children:(0,w.jsx)("h3",{children:"Create New Version"})}),(0,w.jsxs)("div",{className:"version-modal-body",children:[(0,w.jsxs)("p",{children:["Version ",(0,w.jsx)("strong",{children:(Zr=i.find(j=>j.name===l))==null?void 0:Zr.version})," already exists."]}),(0,w.jsx)("p",{children:"Please enter a new version number:"}),(0,w.jsx)("input",{type:"text",value:E,onChange:j=>T(j.target.value),placeholder:"e.g., 1.0.1",className:"version-input",autoFocus:!0})]}),(0,w.jsxs)("div",{className:"version-modal-actions",children:[(0,w.jsx)("button",{className:"cancel-button",onClick:oe,disabled:k,children:"Cancel"}),(0,w.jsx)("button",{className:"create-button",onClick:Y,disabled:k||!E.trim(),children:k?"Creating...":"Create Version"})]})]})})]}):(0,w.jsxs)("div",{className:"skills-page",children:[(0,w.jsx)("div",{className:"skills-header",children:(0,w.jsxs)("div",{className:"header-left",children:[(0,w.jsx)("button",{className:"back-button",onClick:At,children:"\u2190"}),(0,w.jsx)("h4",{children:"Skill Not Found"})]})}),(0,w.jsxs)("div",{className:"no-skills",children:[(0,w.jsx)("div",{className:"no-skills-icon",children:"\u274C"}),(0,w.jsx)("div",{className:"no-skills-text",children:"Skill not found"}),(0,w.jsx)("div",{className:"no-skills-subtext",children:"The selected skill could not be loaded"})]})]})}return(0,w.jsxs)("div",{className:"skills-page",children:[(0,w.jsxs)("div",{className:"skills-header",children:[(0,w.jsx)("h3",{children:"Available Skills"}),(0,w.jsx)("button",{className:"refresh-button",onClick:we,title:"Refresh skills",children:"\u21BB"})]}),(0,w.jsx)("div",{className:"skills-content",children:I?(0,w.jsxs)("div",{className:"no-skills",children:[(0,w.jsx)("div",{className:"no-skills-icon",children:"\u274C"}),(0,w.jsx)("div",{className:"no-skills-text",children:"Error loading skills"}),(0,w.jsx)("div",{className:"no-skills-subtext",children:I}),(0,w.jsx)("button",{className:"retry-button",onClick:we,style:{marginTop:"16px"},children:"Retry"})]}):i.length===0?(0,w.jsxs)("div",{className:"no-skills",children:[(0,w.jsx)("div",{className:"no-skills-icon",children:"\u2699\uFE0F"}),(0,w.jsx)("div",{className:"no-skills-text",children:"No skills found"}),(0,w.jsx)("div",{className:"no-skills-subtext",children:"Skills will appear here when available in your project"})]}):Array.isArray(i)&&i.length>0?(0,w.jsx)("div",{className:"skills-list",children:i.map(q=>(0,w.jsxs)("div",{className:"skill-item",onClick:()=>Ke(q.name),children:[(0,w.jsxs)("div",{className:"skill-info",children:[(0,w.jsx)("div",{className:"skill-name",children:q.name}),(0,w.jsx)("div",{className:"skill-description",children:q.description}),(0,w.jsxs)("div",{className:"skill-stats",children:[(0,w.jsxs)("span",{className:"skill-stat",children:["v",q.version]}),(0,w.jsxs)("span",{className:"skill-stat",children:[q.tools.length," tools"]})]})]}),(0,w.jsx)("div",{className:"skill-arrow",children:"\u2192"})]},q.name))}):(0,w.jsxs)("div",{className:"no-skills",children:[(0,w.jsx)("div",{className:"no-skills-icon",children:"\u2699\uFE0F"}),(0,w.jsx)("div",{className:"no-skills-text",children:"No skills available"}),(0,w.jsx)("div",{className:"no-skills-subtext",children:"No valid skills data received"})]})})]})}});var qe,L,xs,DR,ym,OR,bm=b(()=>{"use strict";qe=F(Je());an();L=F(re()),xs=e=>{if(!e||!e.trim())return e||"";try{let t=JSON.parse(e);return JSON.stringify(t,null,2).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,a=>{let i="json-number";return/^"/.test(a)?/:$/.test(a)?i="json-key":i="json-string":/true|false/.test(a)?i="json-boolean":/null/.test(a)&&(i="json-null"),`<span class="${i}">${a}</span>`})}catch(t){return e.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,n=>{let a="json-number";return/^"/.test(n)?/:$/.test(n)?a="json-key":a="json-string":/true|false/.test(n)?a="json-boolean":/null/.test(n)&&(a="json-null"),`<span class="${a}">${n}</span>`})}},DR=[{id:"user",name:"User",description:"User profile and account data",icon:"\u{1F464}"},{id:"resources",name:"Resources",description:"Files, documents, and assets",icon:"\u{1F4C1}"},{id:"products",name:"Products",description:"Coming soon",icon:"\u{1F4E6}"},{id:"orders",name:"Orders",description:"Coming soon",icon:"\u{1F4CB}"},{id:"booking",name:"Booking",description:"Coming soon",icon:"\u{1F4C5}"},{id:"custom",name:"Custom",description:"Coming soon",icon:"\u2699\uFE0F"}],ym=({apiKey:e,agentId:t})=>{let[n,a]=(0,qe.useState)(null),[i,r]=(0,qe.useState)(null),[l,s]=(0,qe.useState)(null),[o,u]=(0,qe.useState)(!1),[c,p]=(0,qe.useState)(!1),[d,f]=(0,qe.useState)(!1),[S,x]=(0,qe.useState)(""),[k,m]=(0,qe.useState)(null),[h,g]=(0,qe.useState)(null),[E,T]=(0,qe.useState)(!1),[N,A]=(0,qe.useState)("list"),C=(0,qe.useRef)(null),U=(0,qe.useRef)(null),[P,_]=(0,qe.useState)(!1),[R,O]=(0,qe.useState)(""),[I,B]=(0,qe.useState)(""),[J,ae]=(0,qe.useState)(!1);(0,qe.useEffect)(()=>{we()},[e,t]),(0,qe.useEffect)(()=>{if(console.log("JSON text changed:",S),console.log("Is editing:",E),console.log("Highlight ref exists:",!!U.current),U.current&&S&&!E){let Y=xs(S);console.log("Applying highlighting:",Y.substring(0,100)+"..."),U.current.innerHTML=Y}},[S,E]);let we=()=>z(null,null,function*(){try{if(console.log("Loading user data with API key:",e,"agentId:",t),u(!0),m(null),!e||!t){console.error("Missing API key or agentId:",{apiKey:!!e,agentId:!!t}),m("Missing API key or agent ID"),x("{}");return}let Y=yield ie.loadUserData(e,t);if(console.log("User data response:",Y),Y.success&&Y.data){a(Y.data);let oe=Y.data,Ue=JSON.stringify(oe,null,2);x(Ue),setTimeout(()=>{U.current&&(U.current.innerHTML=xs(Ue))},0),console.log("User data loaded successfully:",Y.data),console.log("Data to display:",oe)}else console.log("No user data or error:",Y.error),m(Y.error||"No user data found"),x("{}")}catch(Y){console.error("Failed to load user data:",Y),m(`Failed to load user data: ${Y instanceof Error?Y.message:"Unknown error"}`),x("{}")}finally{u(!1)}}),je=()=>z(null,null,function*(){try{console.log("Saving user data:",S),p(!0),m(null),g(null);let Y=JSON.parse(S),oe=yield ie.updateUserData(e,t,Y);console.log("Save user data response:",oe),oe.success&&oe.data?(a(oe.data),x(JSON.stringify(oe.data.data,null,2)),g("User data saved successfully!"),T(!1),setTimeout(()=>g(null),3e3)):m("Failed to save user data: "+(oe.error||"Unknown error"))}catch(Y){console.error("Failed to save user data:",Y),Y instanceof SyntaxError?m("Invalid JSON format. Please check your syntax."):m("Failed to save user data")}finally{p(!1)}}),v=()=>z(null,null,function*(){try{console.log("Clearing user data"),f(!0),m(null),g(null);let Y=yield ie.clearUserData(e,t);console.log("Clear user data response:",Y),Y.success?(a(null),x("{}"),A("list"),g("User data cleared successfully!"),T(!1),setTimeout(()=>g(null),3e3)):m("Failed to clear user data: "+(Y.error||"Unknown error"))}catch(Y){console.error("Failed to clear user data:",Y),m("Failed to clear user data")}finally{f(!1)}}),Me=Y=>z(null,null,function*(){if(r(Y),A("detail"),T(!1),m(null),Y.id==="user"){u(!0);try{let oe=yield ie.loadUserData(e,t);if(oe.success&&oe.data){s(oe.data);let Ue=JSON.stringify(oe.data,null,2);x(Ue),console.log("Setting JSON text for user data:",Ue)}else s(null),x("{}"),console.log("No user data found, setting empty JSON")}catch(oe){console.error("Failed to load user data:",oe),s(null),x("{}")}finally{u(!1)}}else if(Y.id==="resources"){u(!0);try{let oe=yield ie.loadResources(e,t);oe.success&&oe.data?(s(oe.data),console.log("Loaded resources:",oe.data)):(s([]),console.log("No resources found"))}catch(oe){console.error("Failed to load resources:",oe),s([])}finally{u(!1)}}else s(null),x("{}")}),pt=()=>{A("list"),r(null),s(null),T(!1)},y=()=>{i&&(i.id==="resources"?(_(!0),O(""),B("")):console.log(`Add new item to ${i==null?void 0:i.name}`))},Ke=()=>z(null,null,function*(){if(!R.trim()||!I.trim()){alert("Name and content cannot be empty");return}ae(!0);try{let Y=yield ie.createResource(e,t,{name:R.trim(),content:I.trim()});Y.success?(_(!1),O(""),B(""),i&&Me(i)):alert("Failed to create resource: "+(Y.error||"Unknown error"))}catch(Y){console.error("Error creating resource:",Y),alert("Failed to create resource")}finally{ae(!1)}}),At=()=>{_(!1),O(""),B("")},se=()=>z(null,null,function*(){i&&console.log(`Delete all ${i.name} data`)}),X=Y=>{x(Y),T(!0),m(null),g(null),U.current&&(U.current.innerHTML=xs(Y))},Q=()=>{T(!0),setTimeout(()=>{C.current&&C.current.focus()},0)},ne=()=>{C.current&&U.current&&(U.current.scrollTop=C.current.scrollTop,U.current.scrollLeft=C.current.scrollLeft)};return o?(0,L.jsx)("div",{className:"user-data-panel",children:(0,L.jsx)("div",{className:"user-data-loading",children:(0,L.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})})}):(0,L.jsxs)("div",{className:"user-data-panel",children:[(0,L.jsxs)("div",{className:"user-data-header",children:[(0,L.jsxs)("div",{className:"header-left",children:[N==="detail"&&(0,L.jsx)("button",{className:"back-button",onClick:pt,title:"Back to data categories",children:"\u2190"}),(0,L.jsx)("h3",{children:N==="list"?"Data":(i==null?void 0:i.name)||"Data Detail"})]}),(0,L.jsxs)("div",{className:"user-data-actions",children:[N==="detail"&&(i==null?void 0:i.id)!=="user"&&(i==null?void 0:i.description)!=="Coming soon"&&(0,L.jsx)("button",{className:"add-button",onClick:y,title:`Add new ${i==null?void 0:i.name.toLowerCase()}`,children:"\u2795"}),(0,L.jsx)("button",{className:"refresh-button",onClick:N==="detail"&&i?()=>Me(i):we,disabled:o,title:`Refresh ${N==="detail"?i==null?void 0:i.name.toLowerCase():"data"}`,children:o?"\u27F3":"\u21BB"}),N==="detail"&&(i==null?void 0:i.id)==="user"&&(0,L.jsx)("button",{className:"save-button",onClick:je,disabled:c,title:"Save user data",children:c?"\u27F3":"\u{1F4BE}"}),N==="detail"&&(0,L.jsx)("button",{className:"delete-button",onClick:se,disabled:d,title:`Delete all ${i==null?void 0:i.name.toLowerCase()}`,children:"\u{1F5D1}\uFE0F"})]})]}),k&&(0,L.jsxs)("div",{className:"error-message",children:["\u274C ",k]}),h&&(0,L.jsxs)("div",{className:"success-message",children:["\u2705 ",h]}),(0,L.jsx)("div",{className:"user-data-content",children:N==="list"?(0,L.jsx)("div",{className:"data-list",children:(0,L.jsx)("div",{className:"data-categories",children:DR.map(Y=>(0,L.jsxs)("div",{className:"data-category",onClick:()=>Me(Y),children:[(0,L.jsx)("div",{className:"category-icon",children:Y.icon}),(0,L.jsxs)("div",{className:"category-info",children:[(0,L.jsx)("div",{className:"category-name",children:Y.name}),(0,L.jsx)("div",{className:"category-description",children:Y.description})]}),(0,L.jsx)("div",{className:"category-arrow",children:"\u2192"})]},Y.id))})}):(0,L.jsx)("div",{className:"data-detail",children:(i==null?void 0:i.id)==="user"&&l?(0,L.jsx)("div",{className:"json-editor",children:E?(0,L.jsxs)("div",{className:"json-editor-container",children:[(0,L.jsx)("div",{ref:U,className:"json-highlight-background",dangerouslySetInnerHTML:{__html:xs(S)}}),(0,L.jsx)("textarea",{ref:C,id:"user-data-json",name:"userDataJson",value:S,onChange:Y=>X(Y.target.value),className:"json-textarea",spellCheck:!1,placeholder:"Enter JSON data...",autoComplete:"off"})]}):(0,L.jsx)("div",{className:"json-display",onClick:Q,dangerouslySetInnerHTML:{__html:xs(S)}})}):(i==null?void 0:i.id)==="resources"&&l?(0,L.jsxs)("div",{className:"resources-container",children:[(0,L.jsxs)("div",{className:"production-warning",children:[(0,L.jsx)("div",{className:"warning-icon",children:"\u26A0\uFE0F"}),(0,L.jsxs)("div",{className:"warning-text",children:[(0,L.jsx)("strong",{children:"Production Resources:"})," Changes to resources will propagate to production and affect live users."]})]}),(0,L.jsx)("div",{className:"resources-list",children:Array.isArray(l)&&l.length>0?l.map(Y=>(0,L.jsx)(OR,{resource:Y,apiKey:e,agentId:t,onUpdate:()=>Me(i)},Y.id)):(0,L.jsxs)("div",{className:"no-resources",children:[(0,L.jsx)("div",{className:"empty-icon",children:"\u{1F4C1}"}),(0,L.jsx)("h4",{children:"No resources yet"}),(0,L.jsx)("p",{children:"Resources help provide context and information to your AI agent"})]})})]}):(0,L.jsxs)("div",{className:"category-empty-state",children:[(0,L.jsx)("div",{className:"empty-icon",children:i==null?void 0:i.icon}),(i==null?void 0:i.description)==="Coming soon"?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("h3",{children:"Coming Soon"}),(0,L.jsxs)("p",{children:[i.name," management will be available in a future update"]}),(0,L.jsx)("div",{className:"coming-soon-badge",children:"\u{1F6A7} Under Development"})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("h3",{children:["No ",i==null?void 0:i.name.toLowerCase()," yet"]}),(0,L.jsxs)("p",{children:["Start by adding your first ",i==null?void 0:i.name.toLowerCase()," entry"]}),(0,L.jsx)("div",{className:"empty-actions",children:(0,L.jsx)("button",{className:"add-button",onClick:y,children:"\u2795"})})]})]})})}),P&&(0,L.jsx)("div",{className:"resource-modal-overlay",children:(0,L.jsxs)("div",{className:"resource-modal",children:[(0,L.jsxs)("div",{className:"resource-modal-header",children:[(0,L.jsx)("h3",{children:"Create New Resource"}),(0,L.jsx)("button",{className:"modal-close-btn",onClick:At,disabled:J,children:"\u2715"})]}),(0,L.jsxs)("div",{className:"resource-modal-body",children:[(0,L.jsxs)("div",{className:"production-warning",children:[(0,L.jsx)("div",{className:"warning-icon",children:"\u26A0\uFE0F"}),(0,L.jsxs)("div",{className:"warning-text",children:[(0,L.jsx)("strong",{children:"Production Impact:"})," This resource will be available in production and affect live users."]})]}),(0,L.jsxs)("div",{className:"resource-form",children:[(0,L.jsxs)("div",{className:"form-field",children:[(0,L.jsx)("label",{htmlFor:"resource-name",children:"Resource Name"}),(0,L.jsx)("input",{id:"resource-name",type:"text",value:R,onChange:Y=>O(Y.target.value),placeholder:"e.g., FAQ, return-policy, user-guide",className:"resource-name-input",autoFocus:!0})]}),(0,L.jsxs)("div",{className:"form-field",children:[(0,L.jsx)("label",{htmlFor:"resource-content",children:"Content"}),(0,L.jsx)("textarea",{id:"resource-content",value:I,onChange:Y=>B(Y.target.value),placeholder:"Paste your content here... This can be a large text file, FAQ content, documentation, etc.",className:"resource-content-textarea",rows:12})]}),(0,L.jsxs)("div",{className:"character-count",children:[I.length," characters"]})]})]}),(0,L.jsxs)("div",{className:"resource-modal-actions",children:[(0,L.jsx)("button",{className:"cancel-button",onClick:At,disabled:J,children:"Cancel"}),(0,L.jsx)("button",{className:"create-button",onClick:Ke,disabled:J||!R.trim()||!I.trim(),children:J?"Creating...":"Create Resource"})]})]})})]})},OR=({resource:e,apiKey:t,agentId:n,onUpdate:a})=>{let[i,r]=(0,qe.useState)(!1),[l,s]=(0,qe.useState)(e.name),[o,u]=(0,qe.useState)(e.content),[c,p]=(0,qe.useState)(!1),[d,f]=(0,qe.useState)(!1),S=()=>{r(!0),s(e.name),u(e.content)},x=()=>{r(!1),s(e.name),u(e.content)},k=()=>z(null,null,function*(){if(!l.trim()||!o.trim()){alert("Name and content cannot be empty");return}p(!0);try{let h=yield ie.updateResource(t,n,e.id,{name:l.trim(),content:o.trim()});h.success?(r(!1),a()):alert("Failed to update resource: "+(h.error||"Unknown error"))}catch(h){console.error("Error updating resource:",h),alert("Failed to update resource")}finally{p(!1)}}),m=()=>z(null,null,function*(){if(confirm(`Are you sure you want to delete "${e.name}"? This will affect production.`)){f(!0);try{let h=yield ie.deleteResource(t,n,e.id);h.success?a():alert("Failed to delete resource: "+(h.error||"Unknown error"))}catch(h){console.error("Error deleting resource:",h),alert("Failed to delete resource")}finally{f(!1)}}});return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"resource-item",children:(0,L.jsxs)("div",{className:"resource-display",children:[(0,L.jsxs)("div",{className:"resource-header",children:[(0,L.jsx)("h4",{className:"resource-name",children:e.name}),(0,L.jsx)("div",{className:"resource-meta",children:(0,L.jsxs)("span",{className:"resource-date",children:["Updated ",new Date(e.updatedAt).toLocaleDateString()]})})]}),(0,L.jsx)("div",{className:"resource-content",children:(0,L.jsxs)("p",{children:[e.content.substring(0,200),e.content.length>200?"...":""]})}),(0,L.jsxs)("div",{className:"resource-actions",children:[(0,L.jsx)("button",{className:"edit-btn",onClick:S,title:"Edit resource",children:"\u270F\uFE0F"}),(0,L.jsx)("button",{className:"delete-btn",onClick:m,disabled:d,title:"Delete resource",children:d?"\u27F3":"\u{1F5D1}\uFE0F"})]})]})}),i&&(0,L.jsx)("div",{className:"resource-modal-overlay",children:(0,L.jsxs)("div",{className:"resource-modal",children:[(0,L.jsxs)("div",{className:"resource-modal-header",children:[(0,L.jsx)("h3",{children:"Edit Resource"}),(0,L.jsx)("button",{className:"modal-close-btn",onClick:x,disabled:c,children:"\u2715"})]}),(0,L.jsxs)("div",{className:"resource-modal-body",children:[(0,L.jsxs)("div",{className:"production-warning",children:[(0,L.jsx)("div",{className:"warning-icon",children:"\u26A0\uFE0F"}),(0,L.jsxs)("div",{className:"warning-text",children:[(0,L.jsx)("strong",{children:"Production Impact:"})," Changes to this resource will affect live users immediately."]})]}),(0,L.jsxs)("div",{className:"resource-form",children:[(0,L.jsxs)("div",{className:"form-field",children:[(0,L.jsx)("label",{htmlFor:"edit-resource-name",children:"Resource Name"}),(0,L.jsx)("input",{id:"edit-resource-name",type:"text",value:l,onChange:h=>s(h.target.value),placeholder:"Resource name",className:"resource-name-input",autoFocus:!0})]}),(0,L.jsxs)("div",{className:"form-field",children:[(0,L.jsx)("label",{htmlFor:"edit-resource-content",children:"Content"}),(0,L.jsx)("textarea",{id:"edit-resource-content",value:o,onChange:h=>u(h.target.value),placeholder:"Resource content",className:"resource-content-textarea",rows:12})]}),(0,L.jsxs)("div",{className:"character-count",children:[o.length," characters"]})]})]}),(0,L.jsxs)("div",{className:"resource-modal-actions",children:[(0,L.jsx)("button",{className:"cancel-button",onClick:x,disabled:c,children:"Cancel"}),(0,L.jsx)("button",{className:"create-button",onClick:k,disabled:c||!l.trim()||!o.trim(),children:c?"Saving...":"Save Changes"})]})]})})]})}});var Lt,W,Sm,LR,xm=b(()=>{"use strict";Lt=F(Je());an();W=F(re()),Sm=({apiKey:e,agentId:t})=>{let[n,a]=(0,Lt.useState)([]),[i,r]=(0,Lt.useState)(!0),[l,s]=(0,Lt.useState)(!1),[o,u]=(0,Lt.useState)(null),[c,p]=(0,Lt.useState)(null),[d,f]=(0,Lt.useState)(null),[S,x]=(0,Lt.useState)(""),[k,m]=(0,Lt.useState)(""),[h,g]=(0,Lt.useState)(!1);(0,Lt.useEffect)(()=>{C()},[]);let[E,T]=(0,Lt.useState)(!0);(0,Lt.useEffect)(()=>{if(E)return;z(null,null,function*(){console.log("Environment variables changed, auto-saving..."),s(!0),u(null),p(null);try{let J=A(n);console.log("Generated .env content:",J);let ae=yield ie.saveEnvContent(J);console.log("Save env response:",ae),ae.success?(p("Environment variables saved successfully!"),setTimeout(()=>p(null),3e3)):(console.error("Failed to save env variables:",ae.error),u(ae.error||"Failed to save environment variables"))}catch(J){console.error("Error saving env variables:",J),u("Failed to save environment variables")}finally{s(!1)}})},[n]);let N=B=>B.trim()?B.split(`
|
|
23
|
+
`).map((J,ae)=>J.trim()).filter(J=>J&&!J.startsWith("#")).map((J,ae)=>{let[we,...je]=J.split("=");return{id:`env_${ae}_${Date.now()}`,key:(we==null?void 0:we.trim())||"",value:je.join("=")||""}}).filter(J=>J.key):[],A=B=>B.map(J=>`${J.key}=${J.value}`).join(`
|
|
24
|
+
`),C=()=>z(null,null,function*(){r(!0),u(null);try{let B=yield ie.loadEnvContent();if(B.success){let J=B.content||"",ae=N(J);a(ae),T(!1)}else u(B.error||"Failed to load environment variables"),a([]),T(!1)}catch(B){console.error("Error loading env content:",B),u("Failed to load environment variables"),a([])}finally{r(!1)}}),U=()=>{if(!S.trim()){u("Please enter a variable name");return}if(n.some(J=>J.key===S.trim())){u("Variable name already exists");return}let B={id:`env_new_${Date.now()}`,key:S.trim(),value:k};a([...n,B]),x(""),m(""),g(!1),u(null)},P=(B,J,ae)=>{a(we=>we.map(je=>je.id===B?ut(K({},je),{key:J.trim(),value:ae}):je)),f(null)},_=B=>{a(J=>J.filter(ae=>ae.id!==B))},R=B=>{f(B),u(null),p(null)},O=()=>{f(null),C()},I=()=>{g(!1),x(""),m(""),u(null)};return i?(0,W.jsx)("div",{className:"env-panel",children:(0,W.jsx)("div",{className:"env-loading",children:(0,W.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})})}):(0,W.jsxs)("div",{className:"env-panel",children:[(0,W.jsxs)("div",{className:"env-header",children:[(0,W.jsx)("h3",{children:"Environment Variables"}),(0,W.jsxs)("div",{className:"env-actions",children:[(0,W.jsx)("button",{className:"refresh-btn",onClick:C,disabled:i,title:"Refresh environment variables",children:i?"\u27F3":"\u21BB"}),(0,W.jsx)("button",{className:"add-btn",onClick:()=>g(!0),disabled:h,title:"Add new environment variable",children:"\u2795"})]})]}),(0,W.jsxs)("div",{className:"env-content",children:[o&&(0,W.jsxs)("div",{className:"error-message",children:[(0,W.jsx)("strong",{children:"Error:"})," ",o]}),c&&(0,W.jsxs)("div",{className:"success-message",children:[(0,W.jsx)("strong",{children:"Success:"})," ",c]}),h&&(0,W.jsxs)("div",{className:"env-add-form",children:[(0,W.jsxs)("div",{className:"env-form-header",children:[(0,W.jsx)("h4",{children:"Add New Variable"}),(0,W.jsx)("button",{className:"form-cancel-btn",onClick:I,title:"Cancel",children:"\u2715"})]}),(0,W.jsxs)("div",{className:"env-form-fields",children:[(0,W.jsxs)("div",{className:"env-field",children:[(0,W.jsx)("label",{children:"Variable Name"}),(0,W.jsx)("input",{type:"text",value:S,onChange:B=>x(B.target.value),placeholder:"API_KEY",className:"env-input",autoFocus:!0})]}),(0,W.jsxs)("div",{className:"env-field",children:[(0,W.jsx)("label",{children:"Value"}),(0,W.jsx)("input",{type:"text",value:k,onChange:B=>m(B.target.value),placeholder:"your_api_key_here",className:"env-input"})]}),(0,W.jsx)("div",{className:"env-form-actions",children:(0,W.jsx)("button",{className:"add-variable-btn",onClick:U,disabled:!S.trim(),children:"Add Variable"})})]})]}),(0,W.jsx)("div",{className:"env-variables",children:n.length>0?(0,W.jsx)("div",{className:"env-list",children:n.map(B=>(0,W.jsx)(LR,{variable:B,isEditing:d===B.id,onEdit:()=>R(B.id),onSave:(J,ae)=>P(B.id,J,ae),onCancel:O,onDelete:()=>_(B.id)},B.id))}):(0,W.jsxs)("div",{className:"env-empty-state",children:[(0,W.jsx)("div",{className:"empty-icon",children:"\u{1F527}"}),(0,W.jsx)("h4",{children:"No environment variables"}),(0,W.jsx)("p",{children:"Add your first environment variable to get started"}),(0,W.jsx)("button",{className:"add-first-btn",onClick:()=>g(!0),children:"Add Variable"})]})}),(0,W.jsxs)("div",{className:"env-help",children:[(0,W.jsxs)("p",{children:["Environment variables are stored in your ",(0,W.jsx)("code",{children:".env"})," file and automatically included in tool execution and chat messages."]}),(0,W.jsxs)("p",{children:[(0,W.jsx)("strong",{children:"Auto-save:"})," Changes are saved automatically when you add, edit, or delete variables."]})]})]})]})},LR=({variable:e,isEditing:t,onEdit:n,onSave:a,onCancel:i,onDelete:r})=>{let[l,s]=(0,Lt.useState)(e.key),[o,u]=(0,Lt.useState)(e.value),[c,p]=(0,Lt.useState)(!1),d=e.value.length>60,f=c||!d?e.value:e.value.substring(0,60)+"...";return(0,W.jsx)("div",{className:"env-variable-item",children:t?(0,W.jsxs)("div",{className:"env-variable-edit",children:[(0,W.jsxs)("div",{className:"env-edit-fields",children:[(0,W.jsx)("input",{type:"text",value:l,onChange:k=>s(k.target.value),className:"env-key-input",placeholder:"Variable name"}),(0,W.jsx)("span",{className:"env-equals",children:"="}),(0,W.jsx)("textarea",{value:o,onChange:k=>u(k.target.value),className:"env-value-input",placeholder:"Value",rows:1})]}),(0,W.jsxs)("div",{className:"env-edit-actions",children:[(0,W.jsx)("button",{className:"save-edit-btn",onClick:()=>{if(!l.trim()){alert("Variable name cannot be empty");return}a(l,o)},title:"Save changes",children:"\u2713"}),(0,W.jsx)("button",{className:"cancel-edit-btn",onClick:()=>{s(e.key),u(e.value),i()},title:"Cancel editing",children:"\u2715"})]})]}):(0,W.jsxs)("div",{className:"env-variable-display",children:[(0,W.jsxs)("div",{className:"env-variable-content",children:[(0,W.jsx)("span",{className:"env-key",children:e.key}),(0,W.jsx)("span",{className:"env-equals",children:"="}),(0,W.jsxs)("div",{className:"env-value-container",children:[(0,W.jsx)("span",{className:"env-value",onClick:()=>d&&p(!c),style:{cursor:d?"pointer":"default"},title:d?"Click to expand/collapse":e.value,children:f||"<empty>"}),d&&(0,W.jsx)("button",{className:"expand-btn",onClick:()=>p(!c),title:c?"Collapse":"Expand",children:c?"\u25B2":"\u25BC"})]})]}),(0,W.jsxs)("div",{className:"env-variable-actions",children:[(0,W.jsx)("button",{className:"edit-variable-btn",onClick:n,title:"Edit variable",children:"\u270F\uFE0F"}),(0,W.jsx)("button",{className:"delete-variable-btn",onClick:r,title:"Delete variable",children:"\u{1F5D1}\uFE0F"})]})]})})}});var wt,Nm,tN=b(()=>{"use strict";hm();vm();bm();xm();wt=F(re()),Nm=({activeTab:e,onTabChange:t,persona:n,onSavePersona:a,apiKey:i,agentId:r,skillId:l,sandboxId:s,width:o})=>(0,wt.jsx)("div",{className:"log-container",style:{width:`${o}px`},children:(0,wt.jsxs)("div",{className:"top-section",children:[(0,wt.jsx)("div",{className:"log-header",children:(0,wt.jsxs)("div",{className:"tab-buttons",children:[(0,wt.jsx)("button",{className:`tab-button ${e==="persona"?"active":""}`,onClick:()=>t("persona"),children:"Persona"}),(0,wt.jsx)("button",{className:`tab-button ${e==="skills"?"active":""}`,onClick:()=>t("skills"),children:"Skills"}),(0,wt.jsx)("button",{className:`tab-button ${e==="userdata"?"active":""}`,onClick:()=>t("userdata"),children:"Data"}),(0,wt.jsx)("button",{className:`tab-button ${e==="env"?"active":""}`,onClick:()=>t("env"),children:"Env"})]})}),(0,wt.jsx)("div",{className:`tab-content ${e==="persona"?"active":"inactive"}`,children:(0,wt.jsx)(mm,{persona:n,onSavePersona:a,apiKey:i,agentId:r})}),(0,wt.jsx)("div",{className:`tab-content ${e==="skills"?"active":"inactive"}`,children:(0,wt.jsx)(gm,{apiKey:i,agentId:r,skillId:l,sandboxId:s})}),(0,wt.jsx)("div",{className:`tab-content ${e==="userdata"?"active":"inactive"}`,children:(0,wt.jsx)(ym,{apiKey:i,agentId:r})}),(0,wt.jsx)("div",{className:`tab-content ${e==="env"?"active":"inactive"}`,children:(0,wt.jsx)(Sm,{apiKey:i,agentId:r})})]})})});var jn,Ns,Es,Zu=b(()=>{jn=Object.create(null);jn.open="0";jn.close="1";jn.ping="2";jn.pong="3";jn.message="4";jn.upgrade="5";jn.noop="6";Ns=Object.create(null);Object.keys(jn).forEach(e=>{Ns[jn[e]]=e});Es={type:"error",data:"parser error"}});function aN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function sN(e,t){if(iN&&e.data instanceof Blob)return e.data.arrayBuffer().then(aN).then(t);if(rN&&(e.data instanceof ArrayBuffer||lN(e.data)))return t(aN(e.data));ks(e,!1,n=>{Em||(Em=new TextEncoder),t(Em.encode(n))})}var iN,rN,lN,ks,nN,Em,oN=b(()=>{Zu();iN=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",rN=typeof ArrayBuffer=="function",lN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,ks=({type:e,data:t},n,a)=>iN&&t instanceof Blob?n?a(t):nN(t,a):rN&&(t instanceof ArrayBuffer||lN(t))?n?a(t):nN(new Blob([t]),a):a(jn[e]+(t||"")),nN=(e,t)=>{let n=new FileReader;return n.onload=function(){let a=n.result.split(",")[1];t("b"+(a||""))},n.readAsDataURL(e)}});var uN,Ts,cN,fN=b(()=>{uN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ts=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let e=0;e<uN.length;e++)Ts[uN.charCodeAt(e)]=e;cN=e=>{let t=e.length*.75,n=e.length,a,i=0,r,l,s,o;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(a=0;a<n;a+=4)r=Ts[e.charCodeAt(a)],l=Ts[e.charCodeAt(a+1)],s=Ts[e.charCodeAt(a+2)],o=Ts[e.charCodeAt(a+3)],c[i++]=r<<2|l>>4,c[i++]=(l&15)<<4|s>>2,c[i++]=(s&3)<<6|o&63;return u}});var zR,ws,MR,dN,pN=b(()=>{Zu();fN();zR=typeof ArrayBuffer=="function",ws=(e,t)=>{if(typeof e!="string")return{type:"message",data:dN(e,t)};let n=e.charAt(0);return n==="b"?{type:"message",data:MR(e.substring(1),t)}:Ns[n]?e.length>1?{type:Ns[n],data:e.substring(1)}:{type:Ns[n]}:Es},MR=(e,t)=>{if(zR){let n=cN(e);return dN(n,t)}else return{base64:!0,data:e}},dN=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}}});function vN(){return new TransformStream({transform(e,t){sN(e,n=>{let a=n.length,i;if(a<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,a);else if(a<65536){i=new Uint8Array(3);let r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,a)}else{i=new Uint8Array(9);let r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(a))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}function Ju(e){return e.reduce((t,n)=>t+n.length,0)}function $u(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),a=0;for(let i=0;i<t;i++)n[i]=e[0][a++],a===e[0].length&&(e.shift(),a=0);return e.length&&a<e[0].length&&(e[0]=e[0].slice(a)),n}function yN(e,t){km||(km=new TextDecoder);let n=[],a=0,i=-1,r=!1;return new TransformStream({transform(l,s){for(n.push(l);;){if(a===0){if(Ju(n)<1)break;let o=$u(n,1);r=(o[0]&128)===128,i=o[0]&127,i<126?a=3:i===126?a=1:a=2}else if(a===1){if(Ju(n)<2)break;let o=$u(n,2);i=new DataView(o.buffer,o.byteOffset,o.length).getUint16(0),a=3}else if(a===2){if(Ju(n)<8)break;let o=$u(n,8),u=new DataView(o.buffer,o.byteOffset,o.length),c=u.getUint32(0);if(c>Math.pow(2,21)-1){s.enqueue(Es);break}i=c*Math.pow(2,32)+u.getUint32(4),a=3}else{if(Ju(n)<i)break;let o=$u(n,i);s.enqueue(ws(r?o:km.decode(o),t)),a=0}if(i===0||i>e){s.enqueue(Es);break}}}})}var mN,hN,gN,km,Tm,qr=b(()=>{oN();pN();Zu();mN="",hN=(e,t)=>{let n=e.length,a=new Array(n),i=0;e.forEach((r,l)=>{ks(r,!1,s=>{a[l]=s,++i===n&&t(a.join(mN))})})},gN=(e,t)=>{let n=e.split(mN),a=[];for(let i=0;i<n.length;i++){let r=ws(n[i],t);if(a.push(r),r.type==="error")break}return a};Tm=4});function Ie(e){if(e)return UR(e)}function UR(e){for(var t in Ie.prototype)e[t]=Ie.prototype[t];return e}var Li=b(()=>{Ie.prototype.on=Ie.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ie.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ie.prototype.off=Ie.prototype.removeListener=Ie.prototype.removeAllListeners=Ie.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var a,i=0;i<n.length;i++)if(a=n[i],a===t||a.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Ie.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(n){n=n.slice(0);for(var a=0,i=n.length;a<i;++a)n[a].apply(this,t)}return this};Ie.prototype.emitReserved=Ie.prototype.emit;Ie.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ie.prototype.hasListeners=function(e){return!!this.listeners(e).length}});var ba,Qt,bN,zi=b(()=>{ba=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Qt=typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")(),bN="arraybuffer"});function Ku(e,...t){return t.reduce((n,a)=>(e.hasOwnProperty(a)&&(n[a]=e[a]),n),{})}function Sa(e,t){t.useNativeTimers?(e.setTimeoutFn=BR.bind(Qt),e.clearTimeoutFn=VR.bind(Qt)):(e.setTimeoutFn=Qt.setTimeout.bind(Qt),e.clearTimeoutFn=Qt.clearTimeout.bind(Qt))}function SN(e){return typeof e=="string"?PR(e):Math.ceil((e.byteLength||e.size)*HR)}function PR(e){let t=0,n=0;for(let a=0,i=e.length;a<i;a++)t=e.charCodeAt(a),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(a++,n+=4);return n}function Wu(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var BR,VR,HR,Mi=b(()=>{zi();BR=Qt.setTimeout,VR=Qt.clearTimeout;HR=1.33});function xN(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function NN(e){let t={},n=e.split("&");for(let a=0,i=n.length;a<i;a++){let r=n[a].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var wm=b(()=>{});var ec,xa,As=b(()=>{qr();Li();Mi();wm();ec=class extends Error{constructor(t,n,a){super(t),this.description=n,this.context=a,this.type="TransportError"}},xa=class extends Ie{constructor(t){super(),this.writable=!1,Sa(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,a){return super.emitReserved("error",new ec(t,n,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let n=ws(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let n=xN(t);return n.length?"?"+n:""}}});var Cs,Am=b(()=>{As();Mi();qr();Cs=class extends xa{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let a=0;this._polling&&(a++,this.once("pollComplete",function(){--a||n()})),this.writable||(a++,this.once("drain",function(){--a||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let n=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};gN(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,hN(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Wu()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}});var EN,kN,TN=b(()=>{EN=!1;try{EN=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){}kN=EN});function qR(){}function wN(){for(let e in ti.requests)ti.requests.hasOwnProperty(e)&&ti.requests[e].abort()}function AN(e){let t=e.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!t||kN))return new XMLHttpRequest}catch(n){}if(!t)try{return new Qt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(n){}}var Cm,ti,jR,ni,tc=b(()=>{Am();Li();Mi();zi();TN();Cm=class extends Cs{constructor(t){if(super(t),typeof location!="undefined"){let n=location.protocol==="https:",a=location.port;a||(a=n?"443":"80"),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||a!==t.port}}doWrite(t,n){let a=this.request({method:"POST",data:t});a.on("success",n),a.on("error",(i,r)=>{this.onError("xhr post error",i,r)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,a)=>{this.onError("xhr poll error",n,a)}),this.pollXhr=t}},ti=class e extends Ie{constructor(t,n,a){super(),this.createRequest=t,Sa(this,a),this._opts=a,this._method=a.method||"GET",this._uri=n,this._data=a.data!==void 0?a.data:null,this._create()}_create(){var t;let n=Ku(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;let a=this._xhr=this.createRequest(n);try{a.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&a.setRequestHeader(i,this._opts.extraHeaders[i])}}catch(i){}if(this._method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{a.setRequestHeader("Accept","*/*")}catch(i){}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(a),"withCredentials"in a&&(a.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(a.timeout=this._opts.requestTimeout),a.onreadystatechange=()=>{var i;a.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(a.getResponseHeader("set-cookie"))),a.readyState===4&&(a.status===200||a.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof a.status=="number"?a.status:0)},0))},a.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document!="undefined"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr=="undefined"||this._xhr===null)){if(this._xhr.onreadystatechange=qR,t)try{this._xhr.abort()}catch(n){}typeof document!="undefined"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};ti.requestsCount=0;ti.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",wN);else if(typeof addEventListener=="function"){let e="onpagehide"in Qt?"pagehide":"unload";addEventListener(e,wN,!1)}}jR=(function(){let e=AN({xdomain:!1});return e&&e.responseType!==null})(),ni=class extends Cm{constructor(t){super(t);let n=t&&t.forceBase64;this.supportsBinary=jR&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ti(AN,this.uri(),t)}}});var CN,_m,Rm,ai,nc=b(()=>{As();Mi();qr();zi();CN=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",_m=class extends xa{get name(){return"websocket"}doOpen(){let t=this.uri(),n=this.opts.protocols,a=CN?{}:Ku(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,a)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){let a=t[n],i=n===t.length-1;ks(a,this.supportsBinary,r=>{try{this.doWrite(a,r)}catch(l){}i&&ba(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Wu()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}},Rm=Qt.WebSocket||Qt.MozWebSocket,ai=class extends _m{createSocket(t,n,a){return CN?new Rm(t,n,a):n?new Rm(t,n):new Rm(t)}doWrite(t,n){this.ws.send(n)}}});var jr,Dm=b(()=>{As();zi();qr();jr=class extends xa{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let n=yN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=t.readable.pipeThrough(n).getReader(),i=vN();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();let r=()=>{a.read().then(({done:s,value:o})=>{s||(this.onPacket(o),r())}).catch(s=>{})};r();let l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){let a=t[n],i=n===t.length-1;this._writer.write(a).then(()=>{i&&ba(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}});var Om,Lm=b(()=>{tc();nc();Dm();Om={websocket:ai,webtransport:jr,polling:ni}});function Yr(e){if(e.length>8e3)throw"URI too long";let t=e,n=e.indexOf("["),a=e.indexOf("]");n!=-1&&a!=-1&&(e=e.substring(0,n)+e.substring(n,a).replace(/:/g,";")+e.substring(a,e.length));let i=YR.exec(e||""),r={},l=14;for(;l--;)r[IR[l]]=i[l]||"";return n!=-1&&a!=-1&&(r.source=t,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=GR(r,r.path),r.queryKey=XR(r,r.query),r}function GR(e,t){let n=/\/{2,9}/g,a=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&a.splice(0,1),t.slice(-1)=="/"&&a.splice(a.length-1,1),a}function XR(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,i,r){i&&(n[i]=r)}),n}var YR,IR,zm=b(()=>{YR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,IR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]});var Mm,ac,Ui,ic,Ir,Um=b(()=>{Lm();Mi();wm();zm();Li();qr();zi();Mm=typeof addEventListener=="function"&&typeof removeEventListener=="function",ac=[];Mm&&addEventListener("offline",()=>{ac.forEach(e=>e())},!1);Ui=class e extends Ie{constructor(t,n){if(super(),this.binaryType=bN,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){let a=Yr(t);n.hostname=a.host,n.secure=a.protocol==="https"||a.protocol==="wss",n.port=a.port,a.query&&(n.query=a.query)}else n.host&&(n.hostname=Yr(n.host).host);Sa(this,n),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(a=>{let i=a.prototype.name;this.transports.push(i),this._transportsByName[i]=a}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=NN(this.opts.query)),Mm&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ac.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let n=Object.assign({},this.opts.query);n.EIO=Tm,n.transport=t,this.id&&(n.sid=this.id);let a=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](a)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let a=0;a<this.writeBuffer.length;a++){let i=this.writeBuffer[a].data;if(i&&(n+=SN(i)),a>0&&n>this._maxPayload)return this.writeBuffer.slice(0,a);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,ba(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,a){return this._sendPacket("message",t,n,a),this}send(t,n,a){return this._sendPacket("message",t,n,a),this}_sendPacket(t,n,a,i){if(typeof n=="function"&&(i=n,n=void 0),typeof a=="function"&&(i=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;let r={type:t,data:n,options:a};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},a=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():t()}):this.upgrading?a():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Mm&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let a=ac.indexOf(this._offlineEventListener);a!==-1&&ac.splice(a,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}};Ui.protocol=Tm;ic=class extends Ui{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),a=!1;Ui.priorWebsocketSuccess=!1;let i=()=>{a||(n.send([{type:"ping",data:"probe"}]),n.once("packet",p=>{if(!a)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ui.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{a||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function r(){a||(a=!0,c(),n.close(),n=null)}let l=p=>{let d=new Error("probe error: "+p);d.transport=n.name,r(),this.emitReserved("upgradeError",d)};function s(){l("transport closed")}function o(){l("socket closed")}function u(p){n&&p.name!==n.name&&r()}let c=()=>{n.removeListener("open",i),n.removeListener("error",l),n.removeListener("close",s),this.off("close",o),this.off("upgrading",u)};n.once("open",i),n.once("error",l),n.once("close",s),this.once("close",o),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{a||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let n=[];for(let a=0;a<t.length;a++)~this.transports.indexOf(t[a])&&n.push(t[a]);return n}},Ir=class extends ic{constructor(t,n={}){let a=typeof t=="object"?t:n;(!a.transports||a.transports&&typeof a.transports[0]=="string")&&(a.transports=(a.transports||["polling","websocket","webtransport"]).map(i=>Om[i]).filter(i=>!!i)),super(t,a)}}});var RN=b(()=>{Am()});var DU,rc=b(()=>{Um();Um();As();Lm();Mi();zm();zi();RN();tc();tc();nc();nc();Dm();DU=Ir.protocol});function _N(e,t="",n){let a=e;n=n||typeof location!="undefined"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n!="undefined"?e=n.protocol+"//"+e:e="https://"+e),a=Yr(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";let r=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+r+":"+a.port+t,a.href=a.protocol+"://"+r+(n&&n.port===a.port?"":":"+a.port),a}var DN=b(()=>{rc()});function _s(e){return FR&&(e instanceof ArrayBuffer||ZR(e))||JR&&e instanceof Blob||$R&&e instanceof File}function Rs(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,a=e.length;n<a;n++)if(Rs(e[n]))return!0;return!1}if(_s(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Rs(e.toJSON(),!0);for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Rs(e[n]))return!0;return!1}var FR,ZR,ON,JR,$R,Bm=b(()=>{FR=typeof ArrayBuffer=="function",ZR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ON=Object.prototype.toString,JR=typeof Blob=="function"||typeof Blob!="undefined"&&ON.call(Blob)==="[object BlobConstructor]",$R=typeof File=="function"||typeof File!="undefined"&&ON.call(File)==="[object FileConstructor]"});function LN(e){let t=[],n=e.data,a=e;return a.data=Vm(n,t),a.attachments=t.length,{packet:a,buffers:t}}function Vm(e,t){if(!e)return e;if(_s(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=new Array(e.length);for(let a=0;a<e.length;a++)n[a]=Vm(e[a],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){let n={};for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=Vm(e[a],t));return n}return e}function zN(e,t){return e.data=Hm(e.data,t),delete e.attachments,e}function Hm(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Hm(e[n],t);else if(typeof e=="object")for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Hm(e[n],t));return e}var MN=b(()=>{Bm()});var Ym={};oc(Ym,{Decoder:()=>qm,Encoder:()=>Pm,PacketType:()=>be,protocol:()=>BN});function UN(e){return Object.prototype.toString.call(e)==="[object Object]"}var KR,BN,be,Pm,qm,jm,lc=b(()=>{Li();MN();Bm();KR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],BN=5;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(be||(be={}));Pm=class{constructor(t){this.replacer=t}encode(t){return(t.type===be.EVENT||t.type===be.ACK)&&Rs(t)?this.encodeAsBinary({type:t.type===be.EVENT?be.BINARY_EVENT:be.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===be.BINARY_EVENT||t.type===be.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){let n=LN(t),a=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(a),i}};qm=class e extends Ie{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);let a=n.type===be.BINARY_EVENT;a||n.type===be.BINARY_ACK?(n.type=a?be.EVENT:be.ACK,this.reconstructor=new jm(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(_s(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0,a={type:Number(t.charAt(0))};if(be[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===be.BINARY_EVENT||a.type===be.BINARY_ACK){let r=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);let l=t.substring(r,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");a.attachments=Number(l)}if(t.charAt(n+1)==="/"){let r=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););a.nsp=t.substring(r,n)}else a.nsp="/";let i=t.charAt(n+1);if(i!==""&&Number(i)==i){let r=n+1;for(;++n;){let l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}a.id=Number(t.substring(r,n+1))}if(t.charAt(++n)){let r=this.tryParse(t.substr(n));if(e.isPayloadValid(a.type,r))a.data=r;else throw new Error("invalid payload")}return a}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(n){return!1}}static isPayloadValid(t,n){switch(t){case be.CONNECT:return UN(n);case be.DISCONNECT:return n===void 0;case be.CONNECT_ERROR:return typeof n=="string"||UN(n);case be.EVENT:case be.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&KR.indexOf(n[0])===-1);case be.ACK:case be.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},jm=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let n=zN(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}});function xn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Im=b(()=>{});var WR,Gr,Gm=b(()=>{lc();Im();Li();WR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Gr=class extends Ie{constructor(t,n,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[xn(t,"open",this.onopen.bind(this)),xn(t,"packet",this.onpacket.bind(this)),xn(t,"error",this.onerror.bind(this)),xn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var a,i,r;if(WR.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let l={type:be.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){let c=this.ids++,p=n.pop();this._registerAckCallback(c,p),l.id=c}let s=(i=(a=this.io.engine)===null||a===void 0?void 0:a.transport)===null||i===void 0?void 0:i.writable,o=this.connected&&!(!((r=this.io.engine)===null||r===void 0)&&r._hasPingExpired());return this.flags.volatile&&!s||(o?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(t,n){var a;let i=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},i),l=(...s)=>{this.io.clearTimeoutFn(r),n.apply(this,s)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((a,i)=>{let r=(l,s)=>l?i(l):a(s);r.withError=!0,n.push(r),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());let a={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...r)=>a!==this._queue[0]?void 0:(i!==null?a.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...r)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:be.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(a=>String(a.id)===t)){let a=this.acks[t];delete this.acks[t],a.withError&&a.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case be.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case be.EVENT:case be.BINARY_EVENT:this.onevent(t);break;case be.ACK:case be.BINARY_ACK:this.onack(t);break;case be.DISCONNECT:this.ondisconnect();break;case be.CONNECT_ERROR:this.destroy();let a=new Error(t.data.message);a.data=t.data.data,this.emitReserved("connect_error",a);break}}onevent(t){let n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let a of n)a.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let n=this,a=!1;return function(...i){a||(a=!0,n.packet({type:be.ACK,id:t,data:i}))}}onack(t){let n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:be.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let n=this._anyListeners;for(let a=0;a<n.length;a++)if(t===n[a])return n.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let n=this._anyOutgoingListeners;for(let a=0;a<n.length;a++)if(t===n[a])return n.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let a of n)a.apply(this,t.data)}}}});function Bi(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}var VN=b(()=>{Bi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Bi.prototype.reset=function(){this.attempts=0};Bi.prototype.setMin=function(e){this.ms=e};Bi.prototype.setMax=function(e){this.max=e};Bi.prototype.setJitter=function(e){this.jitter=e}});var Xr,HN=b(()=>{rc();Gm();lc();Im();VN();Li();Xr=class extends Ie{constructor(t,n){var a;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Sa(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((a=n.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new Bi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;let i=n.parser||Ym;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Ir(this.uri,this.opts);let n=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;let i=xn(n,"open",function(){a.onopen(),t&&t()}),r=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},l=xn(n,"error",r);if(this._timeout!==!1){let s=this._timeout,o=this.setTimeoutFn(()=>{i(),r(new Error("timeout")),n.close()},s);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}return this.subs.push(i),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(xn(t,"ping",this.onping.bind(this)),xn(t,"data",this.ondata.bind(this)),xn(t,"error",this.onerror.bind(this)),xn(t,"close",this.onclose.bind(this)),xn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){ba(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let a=this.nsps[t];return a?this._autoConnect&&!a.active&&a.connect():(a=new Gr(this,t,n),this.nsps[t]=a),a}_destroy(t){let n=Object.keys(this.nsps);for(let a of n)if(this.nsps[a].active)return;this._close()}_packet(t){let n=this.encoder.encode(t);for(let a=0;a<n.length;a++)this.engine.write(n[a],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var a;this.cleanup(),(a=this.engine)===null||a===void 0||a.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let n=this.backoff.duration();this._reconnecting=!0;let a=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}});function Os(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let n=_N(e,t.path||"/socket.io"),a=n.source,i=n.id,r=n.path,l=Ds[i]&&r in Ds[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||l,o;return s?o=new Xr(a,t):(Ds[i]||(Ds[i]=new Xr(a,t)),o=Ds[i]),n.query&&!t.query&&(t.query=n.queryKey),o.socket(n.path,t)}var Ds,PN=b(()=>{DN();HN();Gm();lc();rc();Ds={};Object.assign(Os,{Manager:Xr,Socket:Gr,io:Os,connect:Os})});var rn,ge,Xm,qN=b(()=>{"use strict";rn=F(Je());PN();an();ge=F(re()),Xm=({apiKey:e,agentId:t,sandboxId:n})=>{let[a,i]=(0,rn.useState)([]),[r,l]=(0,rn.useState)(!1),[s,o]=(0,rn.useState)(new Set),[u,c]=(0,rn.useState)(!0),[p,d]=(0,rn.useState)(!1),f=(0,rn.useRef)(null),S=(0,rn.useRef)(null),x=(0,rn.useRef)(null),k=()=>{var g;(g=f.current)==null||g.scrollIntoView({behavior:"smooth"})},m=g=>{o(E=>{let T=new Set(E);return T.has(g)?T.delete(g):T.add(g),T})},h=()=>z(null,null,function*(){try{console.log("Clearing logs from all sandbox skills with API key:",e,"agentId:",t),d(!0);let g=yield ie.getAllSkillOverrides();if(g.length===0){console.log("No skills found to clear logs from"),i([]),o(new Set);return}let E=g.map(A=>z(null,null,function*(){try{return yield ie.clearSandboxLogs(e,t,A.sandboxId)}catch(C){return console.error(`Error clearing logs for skill ${A.skillId}:`,C),{success:!1,error:"Failed to clear logs"}}}));(yield Promise.all(E)).every(A=>A.success)?(i([]),o(new Set),console.log("All logs cleared successfully")):(console.error("Some log clearing operations failed"),alert("Some logs could not be cleared. Check console for details."))}catch(g){console.error("Failed to clear logs:",g),alert("Failed to clear logs")}finally{d(!1)}});return(0,rn.useEffect)(()=>{k()},[a]),(0,rn.useEffect)(()=>{e&&t&&z(null,null,function*(){try{console.log("Loading logs from all sandbox skills with API key:",e,"agentId:",t),c(!0);let E=yield ie.loadAllSandboxLogs(e,t,100);if(console.log("All sandbox logs response:",E),E.success&&E.data){let T=E.data.logs.map(N=>({_id:N._id,id:N.id,timestamp:new Date(N.timestamp).toLocaleTimeString(),type:N.type,subType:N.subType,message:N.message,duration:N.duration,error:N.error,metadata:N.metadata,skillName:N.skillName,sandboxId:N.sandboxId}));console.log("Converted logs from all skills:",T),i(T)}else console.log("No logs or error:",E.error)}catch(E){console.error("Failed to load logs from all skills:",E)}finally{c(!1)}})},[e,t]),(0,rn.useEffect)(()=>{let g=()=>{try{let N=new WebSocket("ws://localhost:3000");S.current=N,N.onopen=()=>{console.log("Connected to CLI dev server"),l(!0)},N.onclose=()=>{console.log("Disconnected from CLI dev server")},N.onmessage=A=>{try{let C=JSON.parse(A.data);if(console.log("Received message from CLI:",C),C.type==="log"){let U={id:C.id||Date.now().toString(),timestamp:new Date(C.timestamp||Date.now()).toLocaleTimeString(),type:C.type||"log",subType:C.subType||"info",message:C.message||"No message",metadata:C.metadata||{},error:C.error};i(P=>[...P,U])}}catch(C){console.error("Failed to parse CLI WebSocket message:",C)}},N.onerror=A=>{console.error("CLI WebSocket error:",A)}}catch(N){console.error("Failed to connect to CLI dev server:",N)}},E=()=>{try{let N=Os("wss://api.heylua.ai/feed",{query:{apiKey:e,channel:"logs"}});x.current=N,N.on("connect",()=>{console.log("Connected to server log feed"),l(!0),T("\u{1F7E2} Connected to log feed","connected")}),N.on("disconnect",()=>{console.log("Disconnected from server log feed"),l(!1),T("\u{1F534} Disconnected from log feed","disconnected")}),N.on("log",A=>{let C="info",U="No message",P={},_="";if(A&&typeof A=="object"){let O=A.data||A;C=O.subType||"info",U=O.message||"No message",P=O.metadata||{},_=O.error||O.details||"",_&&typeof _=="object"&&(_=JSON.stringify(_,null,2))}else typeof A=="string"&&(U=A,C="info");let R={id:Date.now().toString(),timestamp:new Date().toLocaleTimeString(),type:"log",subType:C,message:U,metadata:P,error:_};i(O=>[...O,R])}),N.on("connect_error",A=>{T("\u{1F534} Connection failed","disconnected")})}catch(N){T("\u{1F534} Connection error","disconnected")}},T=(N,A)=>{let C=document.getElementById("logConnectionStatus");C&&(C.textContent=N,C.className=`log-connection-status ${A}`)};return g(),e&&t&&n&&E(),()=>{S.current&&S.current.close(),x.current&&x.current.disconnect()}},[e,t,n]),(0,ge.jsxs)("div",{className:"log-messages",children:[(0,ge.jsxs)("div",{className:"logs-header",children:[(0,ge.jsxs)("div",{className:"logs-title",children:["Console Logs (",a.length,")"]}),(0,ge.jsx)("div",{className:"logs-actions",children:(0,ge.jsx)("button",{className:"clear-logs-button",onClick:h,disabled:p,title:"Clear all logs",children:p?"\u27F3":"\u{1F5D1}\uFE0F"})})]}),(0,ge.jsxs)("div",{className:"log-content",children:[u?(0,ge.jsx)("div",{className:"no-logs",children:(0,ge.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})}):a.length===0?(0,ge.jsxs)("div",{className:"no-logs",children:[(0,ge.jsx)("div",{className:"no-logs-icon",children:"\u{1F4CB}"}),(0,ge.jsx)("div",{className:"no-logs-text",children:"No logs yet"}),(0,ge.jsx)("div",{className:"no-logs-subtext",children:"Console logs will appear here when your skill runs"})]}):(0,ge.jsx)(ge.Fragment,{children:a.map(g=>{let E=s.has(g.id),T=g.metadata&&Object.keys(g.metadata).length>0,N=g.error&&typeof g.error=="string"&&g.error.trim()!=="",A=T||N;return(0,ge.jsxs)("div",{className:`log-entry ${g.subType}`,children:[(0,ge.jsxs)("div",{className:"log-main",onClick:()=>m(g.id),children:[(0,ge.jsxs)("span",{className:"log-timestamp",children:["[",g.timestamp,"]"]}),(0,ge.jsxs)("span",{className:"log-type",children:["[",g.subType.toUpperCase(),"]"]}),g.skillName&&(0,ge.jsxs)("span",{className:"log-skill",children:["[",g.skillName,"]"]}),(0,ge.jsx)("span",{className:`log-message ${E?"expanded":"ellipsed"}`,children:g.message}),(0,ge.jsx)("span",{className:`expand-arrow ${E?"expanded":""}`,children:"\u25B6"})]}),E&&(0,ge.jsxs)("div",{className:"log-details",children:[(0,ge.jsxs)("div",{className:"full-message",children:[(0,ge.jsx)("div",{className:"detail-label",children:"Message:"}),(0,ge.jsx)("div",{className:"detail-content",children:g.message})]}),N&&(0,ge.jsxs)("div",{className:"error-details",children:[(0,ge.jsx)("div",{className:"detail-label",children:"Error:"}),(0,ge.jsx)("div",{className:"detail-content",children:typeof g.error=="string"?g.error:JSON.stringify(g.error)})]}),T&&(0,ge.jsxs)("div",{className:"metadata",children:[(0,ge.jsx)("div",{className:"detail-label",children:"Metadata:"}),Object.entries(g.metadata).map(([C,U])=>(0,ge.jsxs)("div",{className:"metadata-item",children:[(0,ge.jsxs)("span",{className:"metadata-key",children:[C,":"]}),(0,ge.jsx)("span",{className:"metadata-value",children:String(U)})]},C))]})]})]},g.id)})}),(0,ge.jsx)("div",{ref:f})]}),(0,ge.jsx)("div",{className:"log-footer-status",children:(0,ge.jsx)("div",{id:"logConnectionStatus",className:"log-connection-status",children:"\u{1F7E1} Connecting..."})})]})}});var jN=b(()=>{});var YN,IN,GN=b(()=>{"use strict";YN=F(Je());an();jN();IN=F(re())});var XN=b(()=>{"use strict";eN();tN();qN();hm();bm();xm();GN();vm()});var Nn,Un,QN,FN=b(()=>{"use strict";Nn=F(Je());XN();an();Un=F(re()),QN=({apiKey:e,agentId:t,skillId:n,sandboxId:a,sharedChatMessages:i,onSharedSendMessage:r,onSharedClearHistory:l,isChatLoading:s,setIsChatLoading:o})=>{let[u,c]=(0,Nn.useState)("persona"),[p,d]=(0,Nn.useState)(""),[f,S]=(0,Nn.useState)(window.innerWidth/2),[x,k]=(0,Nn.useState)(250),m=(0,Nn.useRef)(!1),h=(0,Nn.useRef)(!1),g=(0,Nn.useRef)(null),E=(0,Nn.useRef)(null);(0,Nn.useEffect)(()=>{T()},[]),(0,Nn.useEffect)(()=>{let A=P=>{var R,O;let _=P.target;_===g.current||(R=g.current)!=null&&R.contains(_)?(m.current=!0,document.body.style.cursor="col-resize",document.body.style.userSelect="none",P.preventDefault()):(_===E.current||(O=E.current)!=null&&O.contains(_))&&(h.current=!0,document.body.style.cursor="row-resize",document.body.style.userSelect="none",P.preventDefault())},C=P=>{if(m.current){let _=window.innerWidth,R=_-P.clientX,O=500,I=_-300;R>=O&&R<=I&&S(R)}else if(h.current){let _=window.innerHeight-60,R=_-P.clientY+60,O=150,I=_-300;R>=O&&R<=I&&k(R)}},U=()=>{m.current?(m.current=!1,document.body.style.cursor="",document.body.style.userSelect=""):h.current&&(h.current=!1,document.body.style.cursor="",document.body.style.userSelect="")};return document.addEventListener("mousedown",A),document.addEventListener("mousemove",C),document.addEventListener("mouseup",U),()=>{document.removeEventListener("mousedown",A),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",U)}},[]);let T=()=>z(null,null,function*(){try{let A=yield ie.loadPersona();A.success&&d(A.persona||"")}catch(A){console.error("Failed to load persona:",A)}}),N=A=>z(null,null,function*(){try{let C=yield ie.savePersona(A);return C.success?(d(A),!0):(alert("Failed to save persona: "+(C.error||"Unknown error")),!1)}catch(C){return console.error("Failed to save persona:",C),alert("Failed to save persona"),!1}});return(0,Un.jsxs)("div",{className:"sandbox-page",children:[(0,Un.jsxs)("div",{className:"left-side",style:{width:`calc(100% - ${f}px)`},children:[(0,Un.jsx)("div",{className:"chat-container",style:{height:`calc(100% - ${x}px)`},children:(0,Un.jsx)(pm,{apiKey:e,agentId:t,skillId:n,sandboxId:a,persona:p,sharedChatMessages:i,onSharedSendMessage:r,onSharedClearHistory:l,isChatLoading:s,setIsChatLoading:o})}),(0,Un.jsx)("div",{ref:E,className:"logs-resize-handle",children:(0,Un.jsx)("div",{className:"resize-line"})}),(0,Un.jsx)("div",{className:"logs-container",style:{height:`${x}px`},children:(0,Un.jsx)(Xm,{apiKey:e,agentId:t,sandboxId:a})})]}),(0,Un.jsx)("div",{ref:g,className:"resize-handle"}),(0,Un.jsx)(Nm,{activeTab:u,onTabChange:c,persona:p,onSavePersona:N,apiKey:e,agentId:t,skillId:n,sandboxId:a,width:f})]})}});var ZN,qt,Qm,JN=b(()=>{"use strict";ZN=F(Je());fm();qt=F(re()),Qm=({messages:e,onSendMessage:t,onClearHistory:n,isLoading:a})=>{let[i,r]=(0,ZN.useState)(""),l=e.length>0?e:[{id:"welcome",text:"Welcome to Production Management! I can help you monitor deployments, analyze performance, and manage your live environment. How can I assist you today?",sender:"assistant",timestamp:new Date}],s=()=>{!i.trim()||a||(t(i),r(""))},o=u=>{u.key==="Enter"&&!u.shiftKey&&(u.preventDefault(),s())};return(0,qt.jsxs)("div",{className:"production-chat",children:[(0,qt.jsxs)("div",{className:"chat-header",children:[(0,qt.jsx)("h3",{children:"Production Chat"}),(0,qt.jsx)("button",{onClick:n,className:"clear-history-button",title:"Clear chat history",children:"\u{1F5D1}\uFE0F"})]}),(0,qt.jsxs)("div",{className:"chat-messages",children:[l.map(u=>(0,qt.jsx)("div",{className:`message ${u.sender}`,children:(0,qt.jsx)("div",{className:"message-bubble",children:(0,qt.jsx)(Ss,{children:u.text})})},u.id)),a&&(0,qt.jsx)("div",{className:"loading",children:(0,qt.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})})]}),(0,qt.jsx)("div",{className:"chat-input-container",children:(0,qt.jsxs)("div",{className:"chat-input-form",children:[(0,qt.jsx)("input",{type:"text",id:"production-chat-input",name:"productionChatMessage",value:i,onChange:u=>r(u.target.value),onKeyPress:o,placeholder:"Type your message...",className:"chat-input",disabled:a,autoComplete:"off"}),(0,qt.jsx)("button",{onClick:s,disabled:a||!i.trim(),className:"send-button",children:"Send"})]})})]})}});var e_,$N,KN=b(()=>{"use strict";e_=F(Je()),$N=F(re())});var t_,WN,Fm=b(()=>{"use strict";t_=F(Je()),WN=F(re())});var a_,eE,tE=b(()=>{"use strict";a_=F(Je());Fm();eE=F(re())});var ln,te,Zm,nE=b(()=>{"use strict";ln=F(Je());an();te=F(re()),Zm=({apiKey:e,agentId:t})=>{let[n,a]=(0,ln.useState)([]),[i,r]=(0,ln.useState)(!0),[l,s]=(0,ln.useState)(new Set),[o,u]=(0,ln.useState)(1),[c,p]=(0,ln.useState)(1),[d,f]=(0,ln.useState)(0),[S,x]=(0,ln.useState)(!1),[k,m]=(0,ln.useState)(!1),h=(0,ln.useRef)(null),g=()=>{var _;(_=h.current)==null||_.scrollIntoView({behavior:"smooth"})},E=_=>{s(R=>{let O=new Set(R);return O.has(_)?O.delete(_):O.add(_),O})},T=(_=1)=>z(null,null,function*(){r(!0);try{console.log("Loading production logs for page:",_);let R=yield ie.loadProductionLogs(e,t,_,20);if(R.success&&R.logs){let O=[...R.logs].reverse();a(O),R.pagination&&(u(R.pagination.currentPage),p(R.pagination.totalPages),f(R.pagination.totalCount),x(R.pagination.hasNextPage),m(R.pagination.hasPrevPage))}else console.error("Failed to load production logs:",R.error),a([])}catch(R){console.error("Error loading production logs:",R),a([])}finally{r(!1)}}),N=()=>{T(o)},A=_=>{_>=1&&_<=c&&(u(_),T(_))},C=()=>{S&&A(o+1)},U=()=>{k&&A(o-1)};(0,ln.useEffect)(()=>{e&&t&&T(1)},[e,t]),(0,ln.useEffect)(()=>{g()},[n]);let P=_=>new Date(_).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});return i&&n.length===0?(0,te.jsx)("div",{className:"logs-panel",children:(0,te.jsx)("div",{className:"logs-loading",children:(0,te.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})})}):(0,te.jsxs)("div",{className:"logs-panel",children:[(0,te.jsxs)("div",{className:"logs-header",children:[(0,te.jsxs)("div",{className:"logs-header-content",children:[(0,te.jsx)("h3",{children:"Production Logs"}),(0,te.jsx)("div",{className:"logs-info",children:d>0&&(0,te.jsxs)("span",{className:"logs-count",children:[d," total logs"]})})]}),(0,te.jsx)("div",{className:"logs-actions",children:(0,te.jsx)("button",{className:"refresh-logs-button",onClick:N,disabled:i,title:"Refresh logs",children:i?(0,te.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo-button"}):"\u21BB"})})]}),(0,te.jsx)("div",{className:"logs-content",children:n.length===0?(0,te.jsxs)("div",{className:"no-logs",children:[(0,te.jsx)("div",{className:"no-logs-icon",children:"\u{1F4DD}"}),(0,te.jsx)("div",{className:"no-logs-text",children:"No logs found"}),(0,te.jsx)("div",{className:"no-logs-subtext",children:"Production logs will appear here when your skills are used"})]}):(0,te.jsxs)("div",{className:"logs-list",children:[n.map(_=>{var I,B,J,ae;let R=l.has(_.id),O=_.metadata&&(_.metadata.toolId||_.metadata.skillName);return(0,te.jsxs)("div",{className:`log-entry ${_.subType} ${R?"expanded":""}`,children:[(0,te.jsxs)("div",{className:"log-main",onClick:()=>O&&E(_.id),style:{cursor:O?"pointer":"default"},children:[(0,te.jsx)("span",{className:"log-timestamp",children:P(_.timestamp)}),(0,te.jsx)("span",{className:`log-level ${_.subType}`,children:_.subType.toUpperCase()}),(0,te.jsx)("span",{className:"log-message",children:_.message}),((I=_.metadata)==null?void 0:I.skillName)&&(0,te.jsx)("span",{className:"log-skill",children:_.metadata.skillName}),O&&(0,te.jsx)("span",{className:`expand-arrow ${R?"expanded":""}`,children:"\u25B6"})]}),R&&O&&(0,te.jsxs)("div",{className:"log-details",children:[((B=_.metadata)==null?void 0:B.toolId)&&(0,te.jsxs)("div",{className:"metadata-item",children:[(0,te.jsx)("span",{className:"metadata-key",children:"Tool:"}),(0,te.jsx)("span",{className:"metadata-value",children:_.metadata.toolId})]}),((J=_.metadata)==null?void 0:J.skillName)&&(0,te.jsxs)("div",{className:"metadata-item",children:[(0,te.jsx)("span",{className:"metadata-key",children:"Skill:"}),(0,te.jsx)("span",{className:"metadata-value",children:_.metadata.skillName})]}),((ae=_.metadata)==null?void 0:ae.userId)&&(0,te.jsxs)("div",{className:"metadata-item",children:[(0,te.jsx)("span",{className:"metadata-key",children:"User:"}),(0,te.jsx)("span",{className:"metadata-value",children:_.metadata.userId})]})]})]},_.id)}),(0,te.jsx)("div",{ref:h})]})}),c>1&&(0,te.jsxs)("div",{className:"logs-pagination",children:[(0,te.jsxs)("div",{className:"pagination-info",children:["Page ",o," of ",c]}),(0,te.jsxs)("div",{className:"pagination-controls",children:[(0,te.jsx)("button",{className:"pagination-button",onClick:U,disabled:!k||i,title:"Previous page",children:"\u2190"}),(0,te.jsxs)("span",{className:"page-numbers",children:[o>2&&(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)("button",{className:"page-number",onClick:()=>A(1),disabled:i,children:"1"}),o>3&&(0,te.jsx)("span",{className:"page-ellipsis",children:"..."})]}),o>1&&(0,te.jsx)("button",{className:"page-number",onClick:()=>A(o-1),disabled:i,children:o-1}),(0,te.jsx)("button",{className:"page-number active",disabled:!0,children:o}),o<c&&(0,te.jsx)("button",{className:"page-number",onClick:()=>A(o+1),disabled:i,children:o+1}),o<c-1&&(0,te.jsxs)(te.Fragment,{children:[o<c-2&&(0,te.jsx)("span",{className:"page-ellipsis",children:"..."}),(0,te.jsx)("button",{className:"page-number",onClick:()=>A(c),disabled:i,children:c})]})]}),(0,te.jsx)("button",{className:"pagination-button",onClick:C,disabled:!S||i,title:"Next page",children:"\u2192"})]})]})]})}});var ze,H,Jm,i_,$m,r_,aE=b(()=>{"use strict";ze=F(Je());an();H=F(re()),Jm=e=>{if(!e||!e.trim())return e||"";try{let t=JSON.parse(e);return JSON.stringify(t,null,2).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,a=>{let i="json-number";return/^"/.test(a)?/:$/.test(a)?i="json-key":i="json-string":/true|false/.test(a)?i="json-boolean":/null/.test(a)&&(i="json-null"),`<span class="${i}">${a}</span>`})}catch(t){return e.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,n=>{let a="json-number";return/^"/.test(n)?/:$/.test(n)?a="json-key":a="json-string":/true|false/.test(n)?a="json-boolean":/null/.test(n)&&(a="json-null"),`<span class="${a}">${n}</span>`})}},i_=[{id:"user",name:"User",description:"User profile and account data",icon:"\u{1F464}"},{id:"resources",name:"Resources",description:"Files, documents, and assets",icon:"\u{1F4C1}"},{id:"products",name:"Products",description:"Product catalog and inventory",icon:"\u{1F4E6}"},{id:"baskets",name:"Baskets",description:"Shopping carts and baskets",icon:"\u{1F6D2}"},{id:"orders",name:"Orders",description:"Order history and transactions",icon:"\u{1F4CB}"},{id:"booking",name:"Booking",description:"Reservations and appointments",icon:"\u{1F4C5}"},{id:"custom",name:"Custom",description:"Custom application data",icon:"\u2699\uFE0F"}],$m=({apiKey:e,agentId:t})=>{let[n,a]=(0,ze.useState)(null),[i,r]=(0,ze.useState)(null),[l,s]=(0,ze.useState)(null),[o,u]=(0,ze.useState)(!1),[c,p]=(0,ze.useState)(!1),[d,f]=(0,ze.useState)(!1),[S,x]=(0,ze.useState)(""),[k,m]=(0,ze.useState)(null),[h,g]=(0,ze.useState)(null),[E,T]=(0,ze.useState)(!1),[N,A]=(0,ze.useState)("list"),C=(0,ze.useRef)(null),U=(0,ze.useRef)(null),[P,_]=(0,ze.useState)(!1),[R,O]=(0,ze.useState)(""),[I,B]=(0,ze.useState)(""),[J,ae]=(0,ze.useState)(!1);(0,ze.useEffect)(()=>{we()},[e,t]),(0,ze.useEffect)(()=>{if(console.log("JSON text changed:",S),U.current&&C.current){let X=Jm(S);U.current.innerHTML=X,U.current.scrollTop=C.current.scrollTop,U.current.scrollLeft=C.current.scrollLeft}},[S]),(0,ze.useEffect)(()=>{if(k||h){let X=setTimeout(()=>{m(null),g(null)},5e3);return()=>clearTimeout(X)}},[k,h]);let we=()=>z(null,null,function*(){u(!0);try{let X=yield ie.loadUserData(e,t);console.log("User data response:",X),X.success&&X.data?(console.log("User data loaded successfully:",X.data),a(X.data),x(JSON.stringify(X.data,null,2))):(console.error("Failed to load user data:",X.error),a(null),x("{}"))}catch(X){console.error("Error loading user data:",X),a(null),x("{}")}finally{u(!1)}}),je=()=>z(null,null,function*(){if(S.trim()){p(!0);try{let X;try{X=JSON.parse(S)}catch(ne){m("Invalid JSON format. Please check your syntax.");return}let Q=yield ie.updateUserData(e,t,X);Q.success?(a(Q.data||null),T(!1),g("User data saved successfully"),console.log("User data saved successfully")):m("Failed to save user data: "+(Q.error||"Unknown error"))}catch(X){console.error("Error saving user data:",X),m("Failed to save user data")}finally{p(!1)}}}),v=()=>z(null,null,function*(){f(!0);try{let X=yield ie.clearUserData(e,t);X.success?(a(null),x("{}"),T(!1),g("User data cleared successfully"),console.log("User data cleared successfully")):m("Failed to clear user data: "+(X.error||"Unknown error"))}catch(X){console.error("Error clearing user data:",X),m("Failed to clear user data")}finally{f(!1)}}),Me=X=>z(null,null,function*(){if(r(X),A("detail"),T(!1),m(null),X.id==="user"){u(!0);try{let Q=yield ie.loadUserData(e,t);if(Q.success&&Q.data){s(Q.data);let ne=JSON.stringify(Q.data,null,2);x(ne),console.log("Setting JSON text for user data:",ne)}else s(null),x("{}"),console.log("No user data found, setting empty JSON")}catch(Q){console.error("Failed to load user data:",Q),s(null),x("{}")}finally{u(!1)}}else if(X.id==="resources"){u(!0);try{let Q=yield ie.loadResources(e,t);Q.success&&Q.data?(s(Q.data),console.log("Loaded resources:",Q.data)):(s([]),console.log("No resources found"))}catch(Q){console.error("Failed to load resources:",Q),s([])}finally{u(!1)}}else s(null),x("{}")}),pt=()=>{A("list"),r(null),s(null),T(!1)},y=()=>{(i==null?void 0:i.id)==="resources"?(_(!0),O(""),B("")):(x("{}"),T(!0))},Ke=()=>z(null,null,function*(){if(!R.trim()||!I.trim()){m("Please provide both name and content for the resource");return}ae(!0);try{let X=yield ie.createResource(e,t,{name:R.trim(),content:I.trim()});X.success?(_(!1),O(""),B(""),g("Resource created successfully"),(i==null?void 0:i.id)==="resources"&&(yield Me(i))):m("Failed to create resource: "+(X.error||"Unknown error"))}catch(X){console.error("Error creating resource:",X),m("Failed to create resource")}finally{ae(!1)}}),At=X=>{x(X),C.current&&U.current&&(U.current.scrollTop=C.current.scrollTop,U.current.scrollLeft=C.current.scrollLeft)},se=()=>{T(!0),setTimeout(()=>{C.current&&C.current.focus()},0)};return o&&N==="list"?(0,H.jsx)("div",{className:"user-data-panel",children:(0,H.jsx)("div",{className:"user-data-loading",children:(0,H.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})})}):(0,H.jsxs)("div",{className:"user-data-panel",children:[(0,H.jsxs)("div",{className:"user-data-header",children:[N==="detail"&&i?(0,H.jsxs)("div",{className:"header-with-back",children:[(0,H.jsx)("button",{className:"back-button",onClick:pt,title:"Back to Data",children:"\u2190"}),(0,H.jsxs)("h3",{children:[i.name," Data"]})]}):(0,H.jsx)("h3",{children:"Data Management"}),(0,H.jsxs)("div",{className:"user-data-actions",children:[N==="detail"&&(i==null?void 0:i.id)!=="user"&&(0,H.jsx)("button",{className:"add-button",onClick:y,title:`Add new ${i==null?void 0:i.name.toLowerCase()}`,children:"\u2795"}),(0,H.jsx)("button",{className:"refresh-button",onClick:N==="detail"&&i?()=>Me(i):we,disabled:o,title:`Refresh ${N==="detail"?i==null?void 0:i.name.toLowerCase():"data"}`,children:o?"\u27F3":"\u21BB"}),N==="detail"&&(i==null?void 0:i.id)==="user"&&(0,H.jsx)("button",{className:"save-button",onClick:je,disabled:c,title:"Save user data",children:c?"\u27F3":"\u{1F4BE}"}),N==="detail"&&(0,H.jsx)("button",{className:"delete-button",onClick:v,disabled:c,title:`Clear ${i==null?void 0:i.name.toLowerCase()} data`,children:"\u{1F5D1}\uFE0F"})]})]}),(0,H.jsx)("div",{className:"user-data-content",children:N==="list"?(0,H.jsx)("div",{className:"data-list",children:(0,H.jsx)("div",{className:"data-categories",children:i_.map(X=>(0,H.jsxs)("div",{className:"data-category",onClick:()=>Me(X),children:[(0,H.jsx)("div",{className:"category-icon",children:X.icon}),(0,H.jsxs)("div",{className:"category-info",children:[(0,H.jsx)("div",{className:"category-name",children:X.name}),(0,H.jsx)("div",{className:"category-description",children:X.description})]}),(0,H.jsx)("div",{className:"category-arrow",children:"\u2192"})]},X.id))})}):(i==null?void 0:i.id)==="user"?(0,H.jsx)("div",{className:"data-detail",children:o?(0,H.jsx)("div",{className:"loading-container",children:(0,H.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})}):(0,H.jsx)("div",{className:"json-editor",children:E?(0,H.jsxs)("div",{className:"json-editor-container",children:[(0,H.jsx)("div",{ref:U,className:"json-highlight-background",dangerouslySetInnerHTML:{__html:Jm(S)}}),(0,H.jsx)("textarea",{ref:C,id:"user-data-json",name:"userDataJson",value:S,onChange:X=>At(X.target.value),className:"json-textarea",spellCheck:!1,placeholder:"Enter JSON data...",autoComplete:"off"})]}):(0,H.jsx)("div",{className:"json-display",onClick:se,dangerouslySetInnerHTML:{__html:Jm(S)}})})}):(i==null?void 0:i.id)==="resources"?(0,H.jsx)("div",{className:"data-detail",children:o?(0,H.jsx)("div",{className:"loading-container",children:(0,H.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})}):(0,H.jsx)("div",{className:"resources-container",children:l&&l.length>0?(0,H.jsx)("div",{className:"resources-list",children:l.map(X=>(0,H.jsx)(r_,{resource:X,apiKey:e,agentId:t,onUpdate:()=>Me(i)},X.id))}):(0,H.jsxs)("div",{className:"no-resources",children:[(0,H.jsx)("div",{className:"empty-icon",children:"\u{1F4C1}"}),(0,H.jsx)("h4",{children:"No resources yet"}),(0,H.jsx)("p",{children:"Resources help provide context and information to your AI agent"})]})})}):(0,H.jsx)("div",{className:"data-detail",children:(0,H.jsxs)("div",{className:"coming-soon",children:[(0,H.jsx)("div",{className:"coming-soon-icon",children:i==null?void 0:i.icon}),(0,H.jsxs)("div",{className:"coming-soon-text",children:[i==null?void 0:i.name," management"]}),(0,H.jsx)("div",{className:"coming-soon-subtext",children:"This feature is coming soon"})]})})}),k&&(0,H.jsx)("div",{className:"error-message",children:k}),h&&(0,H.jsx)("div",{className:"success-message",children:h}),P&&(0,H.jsx)("div",{className:"modal-overlay",children:(0,H.jsxs)("div",{className:"modal-content",children:[(0,H.jsxs)("div",{className:"modal-header",children:[(0,H.jsx)("h4",{children:"Create New Resource"}),(0,H.jsx)("button",{className:"modal-close-btn",onClick:()=>_(!1),disabled:J,children:"\u2715"})]}),(0,H.jsxs)("div",{className:"modal-body",children:[(0,H.jsxs)("div",{className:"form-group",children:[(0,H.jsx)("label",{htmlFor:"resource-name",children:"Resource Name"}),(0,H.jsx)("input",{id:"resource-name",type:"text",value:R,onChange:X=>O(X.target.value),placeholder:"Enter resource name...",disabled:J})]}),(0,H.jsxs)("div",{className:"form-group",children:[(0,H.jsx)("label",{htmlFor:"resource-content",children:"Resource Content"}),(0,H.jsx)("textarea",{id:"resource-content",value:I,onChange:X=>B(X.target.value),placeholder:"Enter resource content...",rows:10,disabled:J})]})]}),(0,H.jsxs)("div",{className:"modal-footer",children:[(0,H.jsx)("button",{className:"cancel-button",onClick:()=>_(!1),disabled:J,children:"Cancel"}),(0,H.jsx)("button",{className:"create-button",onClick:Ke,disabled:J||!R.trim()||!I.trim(),children:J?"Creating...":"Create Resource"})]})]})})]})},r_=({resource:e,apiKey:t,agentId:n,onUpdate:a})=>{let[i,r]=(0,ze.useState)(!1),[l,s]=(0,ze.useState)(e.name),[o,u]=(0,ze.useState)(e.content),[c,p]=(0,ze.useState)(!1),[d,f]=(0,ze.useState)(!1),S=()=>{s(e.name),u(e.content),r(!0)},x=()=>z(null,null,function*(){if(!(!l.trim()||!o.trim())){p(!0);try{let h=yield ie.updateResource(t,n,e.id,{name:l.trim(),content:o.trim()});h.success?(r(!1),a()):alert("Failed to update resource: "+(h.error||"Unknown error"))}catch(h){console.error("Error updating resource:",h),alert("Failed to update resource")}finally{p(!1)}}}),k=()=>z(null,null,function*(){if(confirm(`Are you sure you want to delete "${e.name}"?`)){f(!0);try{let h=yield ie.deleteResource(t,n,e.id);h.success?a():alert("Failed to delete resource: "+(h.error||"Unknown error"))}catch(h){console.error("Error deleting resource:",h),alert("Failed to delete resource")}finally{f(!1)}}}),m=()=>{r(!1),s(e.name),u(e.content)};return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{className:"resource-item",children:(0,H.jsxs)("div",{className:"resource-display",children:[(0,H.jsxs)("div",{className:"resource-header",children:[(0,H.jsx)("h4",{className:"resource-name",children:e.name}),(0,H.jsx)("div",{className:"resource-meta",children:(0,H.jsxs)("span",{className:"resource-date",children:["Updated ",new Date(e.updatedAt).toLocaleDateString()]})})]}),(0,H.jsx)("div",{className:"resource-content",children:(0,H.jsxs)("p",{children:[e.content.substring(0,200),e.content.length>200?"...":""]})}),(0,H.jsxs)("div",{className:"resource-actions",children:[(0,H.jsx)("button",{className:"edit-btn",onClick:S,disabled:d,title:"Edit resource",children:"\u270F\uFE0F"}),(0,H.jsx)("button",{className:"delete-btn",onClick:k,disabled:d,title:"Delete resource",children:d?"\u27F3":"\u{1F5D1}\uFE0F"})]})]})}),i&&(0,H.jsx)("div",{className:"modal-overlay",children:(0,H.jsxs)("div",{className:"modal-content",children:[(0,H.jsxs)("div",{className:"modal-header",children:[(0,H.jsx)("h4",{children:"Edit Resource"}),(0,H.jsx)("button",{className:"modal-close-btn",onClick:m,disabled:c,children:"\u2715"})]}),(0,H.jsxs)("div",{className:"modal-body",children:[(0,H.jsxs)("div",{className:"form-group",children:[(0,H.jsx)("label",{htmlFor:"edit-resource-name",children:"Resource Name"}),(0,H.jsx)("input",{id:"edit-resource-name",type:"text",value:l,onChange:h=>s(h.target.value),placeholder:"Enter resource name...",disabled:c})]}),(0,H.jsxs)("div",{className:"form-group",children:[(0,H.jsx)("label",{htmlFor:"edit-resource-content",children:"Resource Content"}),(0,H.jsx)("textarea",{id:"edit-resource-content",value:o,onChange:h=>u(h.target.value),placeholder:"Enter resource content...",rows:10,disabled:c})]})]}),(0,H.jsxs)("div",{className:"modal-footer",children:[(0,H.jsx)("button",{className:"cancel-button",onClick:m,disabled:c,children:"Cancel"}),(0,H.jsx)("button",{className:"create-button",onClick:x,disabled:c||!l.trim()||!o.trim(),children:c?"Saving...":"Save Changes"})]})]})})]})}});var Ft,Km,iE=b(()=>{"use strict";Ft=F(re()),Km=({personaVersions:e,onSelectVersion:t,onDeployVersion:n,deployingVersionId:a})=>(0,Ft.jsxs)("div",{className:"persona-panel",children:[(0,Ft.jsx)("div",{className:"panel-header",children:(0,Ft.jsx)("h3",{children:"Persona Management"})}),(0,Ft.jsx)("div",{className:"panel-content",children:(0,Ft.jsxs)("div",{className:"versions-list",children:[e.map(i=>(0,Ft.jsxs)("div",{className:`version-item ${i.isDeployed?"deployed":""} clickable`,onClick:()=>t(i),children:[(0,Ft.jsxs)("div",{className:"version-info",children:[(0,Ft.jsx)("div",{className:"version-number",children:i.version}),(0,Ft.jsx)("div",{className:"version-date",children:i.deployedAt||"No date"}),i.isDeployed&&(0,Ft.jsx)("div",{className:"deployed-badge",children:"Deployed"})]}),!i.isDeployed&&i.status==="available"&&(0,Ft.jsx)("button",{className:`deploy-button ${a===i.id?"loading":""}`,onClick:r=>{r.stopPropagation(),n(i.id)},disabled:a===i.id,children:a===i.id?(0,Ft.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo-button"}):"Deploy"})]},i.id)),e.length===0&&(0,Ft.jsx)("div",{className:"no-versions",children:"No persona versions found"})]})})]})});var at,Wm,rE=b(()=>{"use strict";at=F(re()),Wm=({skills:e,onSelectSkill:t,onActivateSkill:n,activatingSkillId:a})=>(0,at.jsxs)("div",{className:"skills-panel",children:[(0,at.jsx)("div",{className:"panel-header",children:(0,at.jsx)("h3",{children:"Skills Management"})}),(0,at.jsx)("div",{className:"panel-content",children:(0,at.jsx)("div",{className:"skills-list",children:e.map(i=>(0,at.jsxs)("div",{className:`skill-item ${i.active?"active":"inactive"}`,children:[(0,at.jsxs)("div",{className:"skill-main-content",onClick:()=>t(i.name),children:[(0,at.jsxs)("div",{className:"skill-info",children:[(0,at.jsxs)("div",{className:"skill-header",children:[(0,at.jsx)("div",{className:"skill-name",children:i.name}),(0,at.jsx)("div",{className:`skill-status ${i.active?"active":"inactive"}`,children:i.active?"Active":"Inactive"})]}),(0,at.jsx)("div",{className:"skill-description",children:i.description}),(0,at.jsxs)("div",{className:"skill-stats",children:[(0,at.jsxs)("span",{className:"skill-stat",children:[i.versionsCount," versions"]}),(0,at.jsxs)("span",{className:"skill-stat",children:["Latest: ",i.latestVersion]}),i.deployedVersion&&(0,at.jsxs)("span",{className:"skill-stat deployed",children:["Deployed: ",i.deployedVersion]})]})]}),(0,at.jsx)("div",{className:"skill-arrow",children:"\u2192"})]}),(0,at.jsx)("div",{className:"skill-actions",children:(0,at.jsx)("button",{className:`activate-button ${i.active?"deactivate":"activate"} ${a===i.id?"loading":""}`,onClick:r=>{r.stopPropagation(),n(i.id,i.active)},disabled:a===i.id,children:a===i.id?(0,at.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo-button"}):i.active?"Deactivate":"Activate"})})]},i.id))})})]})});var Zt,eh,lE=b(()=>{"use strict";Zt=F(re()),eh=({selectedPersonaVersion:e,onBack:t,onDeployVersion:n,deployingVersionId:a})=>(0,Zt.jsxs)("div",{className:"persona-detail",children:[(0,Zt.jsxs)("div",{className:"persona-detail-header",children:[(0,Zt.jsx)("button",{className:"back-button",onClick:t,children:"\u2190"}),(0,Zt.jsxs)("h4",{children:["Persona ",e.version]})]}),(0,Zt.jsxs)("div",{className:"persona-section",children:[(0,Zt.jsxs)("div",{className:"persona-header",children:[(0,Zt.jsx)("h3",{children:"Agent Persona"}),(0,Zt.jsx)("div",{className:"persona-actions",children:e.isDeployed?(0,Zt.jsx)("span",{className:"deployed-badge",children:"Deployed"}):e.status==="available"?(0,Zt.jsx)("button",{className:`deploy-button ${a===e.id?"loading":""}`,onClick:()=>n(e.id),disabled:a===e.id,children:a===e.id?(0,Zt.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo-button"}):"Deploy"}):null})]}),(0,Zt.jsx)("div",{className:"persona-content",children:(0,Zt.jsx)("div",{className:"persona-display",children:e.personaContent})})]})]})});var Ee,th,sE=b(()=>{"use strict";Ee=F(re()),th=({selectedSkillVersion:e,onBack:t,onDeployVersion:n,deployingVersionId:a})=>(0,Ee.jsxs)("div",{className:"skill-detail",children:[(0,Ee.jsx)("div",{className:"skill-detail-header",children:(0,Ee.jsxs)("div",{className:"header-left",children:[(0,Ee.jsx)("button",{className:"back-button",onClick:t,children:"\u2190"}),(0,Ee.jsxs)("h4",{children:[e.skillName," ",e.version]})]})}),(0,Ee.jsx)("div",{className:"skill-details",children:(0,Ee.jsxs)("div",{className:"skill-info-section",children:[(0,Ee.jsxs)("div",{className:"skill-meta",children:[(0,Ee.jsxs)("span",{className:"skill-version",children:["v",e.version]}),e.isDeployed&&(0,Ee.jsx)("span",{className:"deployed-badge",children:"Deployed"})]}),e.skillDescription&&(0,Ee.jsxs)("div",{className:"skill-description-section",children:[(0,Ee.jsx)("h5",{children:"Description"}),(0,Ee.jsx)("p",{children:e.skillDescription})]}),e.skillContext&&(0,Ee.jsxs)("div",{className:"skill-context-section",children:[(0,Ee.jsx)("h5",{children:"Context"}),(0,Ee.jsx)("p",{children:e.skillContext})]}),!e.isDeployed&&e.status==="available"&&(0,Ee.jsx)("div",{className:"skill-actions",children:(0,Ee.jsx)("button",{className:`deploy-button ${a===e.id?"loading":""}`,onClick:()=>n(e.id),disabled:a===e.id,children:a===e.id?(0,Ee.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo-button"}):"Deploy This Version"})})]})}),(0,Ee.jsxs)("div",{className:"tools-section",children:[(0,Ee.jsx)("div",{className:"tools-header",children:(0,Ee.jsx)("h5",{children:"Available Tools"})}),(0,Ee.jsx)("div",{className:"tools-list",children:e.tools&&e.tools.length>0?e.tools.map((i,r)=>(0,Ee.jsxs)("div",{className:"tool-item",children:[(0,Ee.jsx)("div",{className:"tool-name",children:i.name}),(0,Ee.jsx)("div",{className:"tool-description",children:i.description})]},r)):(0,Ee.jsxs)("div",{className:"no-tools",children:[(0,Ee.jsx)("div",{className:"no-tools-icon",children:"\u{1F527}"}),(0,Ee.jsx)("div",{className:"no-tools-text",children:"No tools available"}),(0,Ee.jsx)("div",{className:"no-tools-subtext",children:"This version doesn't have any tools configured"})]})})]})]})});var Jt,nh,oE=b(()=>{"use strict";Jt=F(re()),nh=({selectedSkill:e,versions:t,onBack:n,onSelectVersion:a,onDeployVersion:i,formatDate:r,deployingVersionId:l})=>(0,Jt.jsxs)("div",{className:"skill-versions",children:[(0,Jt.jsx)("div",{className:"skill-versions-header",children:(0,Jt.jsxs)("div",{className:"header-left",children:[(0,Jt.jsx)("button",{className:"back-button",onClick:n,children:"\u2190"}),(0,Jt.jsx)("h4",{children:e})]})}),(0,Jt.jsx)("div",{className:"versions-list",children:t.filter(s=>s.type==="skill"&&s.skillName===e).map(s=>(0,Jt.jsxs)("div",{className:`version-item ${s.isDeployed?"deployed":""} clickable`,onClick:()=>a(s),children:[(0,Jt.jsxs)("div",{className:"version-info",children:[(0,Jt.jsx)("div",{className:"version-number",children:s.version}),(0,Jt.jsx)("div",{className:"version-date",children:r(s.deployedAt)}),s.isDeployed&&(0,Jt.jsx)("div",{className:"deployed-badge",children:"Deployed"})]}),!s.isDeployed&&s.status==="available"&&(0,Jt.jsx)("button",{className:`deploy-button ${l===s.id?"loading":""}`,onClick:o=>{o.stopPropagation(),i(s.id)},disabled:l===s.id,children:l===s.id?(0,Jt.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo-button"}):"Deploy"})]},s.id))})]})});var jt,ee,ah,l_,uE=b(()=>{"use strict";jt=F(Je());an();ee=F(re()),ah=({apiKey:e,agentId:t})=>{let[n,a]=(0,jt.useState)([]),[i,r]=(0,jt.useState)(!0),[l,s]=(0,jt.useState)(!1),[o,u]=(0,jt.useState)(null),[c,p]=(0,jt.useState)(null),[d,f]=(0,jt.useState)(null),[S,x]=(0,jt.useState)(""),[k,m]=(0,jt.useState)(""),[h,g]=(0,jt.useState)(!1);(0,jt.useEffect)(()=>{E()},[e,t]),(0,jt.useEffect)(()=>{if(o||c){let _=setTimeout(()=>{u(null),p(null)},5e3);return()=>clearTimeout(_)}},[o,c]);let E=()=>z(null,null,function*(){r(!0);try{let _=yield ie.loadProductionEnv(e,t);if(_.success&&_.data){let R=Object.entries(_.data.data||{}).map(([O,I],B)=>({id:`${B}-${O}`,key:O,value:I}));a(R)}else console.error("Failed to load production env:",_.error),a([])}catch(_){console.error("Error loading production env:",_),a([])}finally{r(!1)}}),T=_=>z(null,null,function*(){s(!0),u(null),p(null);try{let R={};_.forEach(I=>{I.key.trim()&&(R[I.key.trim()]=I.value)});let O=yield ie.updateProductionEnv(e,t,R);O.success?(p("Environment variables saved successfully!"),yield E()):u(O.error||"Failed to save environment variables")}catch(R){console.error("Error saving production env:",R),u("Failed to save environment variables")}finally{s(!1)}}),N=()=>z(null,null,function*(){if(!S.trim()){u("Variable name is required");return}let _={id:Date.now().toString(),key:S.trim(),value:k},R=[...n,_];a(R),yield T(R),x(""),m(""),g(!1)}),A=(_,R,O)=>z(null,null,function*(){let I=n.map(B=>B.id===_?ut(K({},B),{key:R.trim(),value:O}):B);a(I),f(null),yield T(I)}),C=_=>z(null,null,function*(){let R=n.filter(O=>O.id!==_);a(R),yield T(R)}),U=_=>{f(_)},P=()=>{f(null)};return i?(0,ee.jsx)("div",{className:"env-panel",children:(0,ee.jsx)("div",{className:"env-loading",children:(0,ee.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})})}):(0,ee.jsxs)("div",{className:"env-panel",children:[(0,ee.jsxs)("div",{className:"env-header",children:[(0,ee.jsx)("h3",{children:"Environment Variables"}),(0,ee.jsxs)("div",{className:"env-actions",children:[(0,ee.jsx)("button",{className:"refresh-btn",onClick:E,disabled:i,title:"Refresh environment variables",children:i?(0,ee.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo-button"}):"\u21BB"}),(0,ee.jsx)("button",{className:"add-btn",onClick:()=>g(!0),disabled:h,title:"Add new environment variable",children:"\u2795"})]})]}),(0,ee.jsxs)("div",{className:"env-content",children:[o&&(0,ee.jsxs)("div",{className:"error-message",children:[(0,ee.jsx)("strong",{children:"Error:"})," ",o]}),c&&(0,ee.jsxs)("div",{className:"success-message",children:[(0,ee.jsx)("strong",{children:"Success:"})," ",c]}),h&&(0,ee.jsxs)("div",{className:"env-add-form",children:[(0,ee.jsxs)("div",{className:"env-form-header",children:[(0,ee.jsx)("h4",{children:"Add New Variable"}),(0,ee.jsx)("button",{className:"form-cancel-btn",onClick:()=>{g(!1),x(""),m("")},title:"Cancel",children:"\u2715"})]}),(0,ee.jsxs)("div",{className:"env-form-fields",children:[(0,ee.jsxs)("div",{className:"env-field",children:[(0,ee.jsx)("label",{children:"Variable Name"}),(0,ee.jsx)("input",{type:"text",value:S,onChange:_=>x(_.target.value),placeholder:"API_KEY",className:"env-input",autoFocus:!0,autoComplete:"off"})]}),(0,ee.jsxs)("div",{className:"env-field",children:[(0,ee.jsx)("label",{children:"Value"}),(0,ee.jsx)("input",{type:"text",value:k,onChange:_=>m(_.target.value),placeholder:"your_api_key_here",className:"env-input",autoComplete:"off"})]}),(0,ee.jsx)("div",{className:"env-form-actions",children:(0,ee.jsx)("button",{className:"add-variable-btn",onClick:N,disabled:!S.trim()||l,children:l?"Adding...":"Add Variable"})})]})]}),(0,ee.jsx)("div",{className:"env-variables",children:n.length>0?(0,ee.jsx)("div",{className:"env-list",children:n.map(_=>(0,ee.jsx)(l_,{variable:_,isEditing:d===_.id,onEdit:()=>U(_.id),onSave:(R,O)=>A(_.id,R,O),onCancel:P,onDelete:()=>C(_.id),isSaving:l},_.id))}):(0,ee.jsxs)("div",{className:"env-empty-state",children:[(0,ee.jsx)("div",{className:"empty-icon",children:"\u{1F527}"}),(0,ee.jsx)("h4",{children:"No environment variables"}),(0,ee.jsx)("p",{children:"Add your first environment variable to get started"}),(0,ee.jsx)("button",{className:"add-first-btn",onClick:()=>g(!0),children:"Add Variable"})]})}),(0,ee.jsxs)("div",{className:"env-help",children:[(0,ee.jsx)("p",{children:"Environment variables are used by your production skills and are securely stored."}),(0,ee.jsxs)("p",{children:[(0,ee.jsx)("strong",{children:"Auto-save:"})," Changes are saved automatically when you add, edit, or delete variables."]})]})]})]})},l_=({variable:e,isEditing:t,onEdit:n,onSave:a,onCancel:i,onDelete:r,isSaving:l})=>{let[s,o]=(0,jt.useState)(e.key),[u,c]=(0,jt.useState)(e.value),p=()=>{s.trim()&&a(s,u)},d=()=>{o(e.key),c(e.value),i()},f=h=>{h.key==="Enter"&&!h.shiftKey?(h.preventDefault(),p()):h.key==="Escape"&&d()},[S,x]=(0,jt.useState)(!1),k=e.value.length>60,m=S||!k?e.value:e.value.substring(0,60)+"...";return(0,ee.jsx)("div",{className:"env-variable-item",children:t?(0,ee.jsxs)("div",{className:"env-variable-edit",children:[(0,ee.jsxs)("div",{className:"env-edit-fields",children:[(0,ee.jsx)("input",{type:"text",value:s,onChange:h=>o(h.target.value),onKeyPress:f,className:"env-key-input",placeholder:"Variable name",disabled:l,autoComplete:"off"}),(0,ee.jsx)("span",{className:"env-equals",children:"="}),(0,ee.jsx)("textarea",{value:u,onChange:h=>c(h.target.value),className:"env-value-input",placeholder:"Value",rows:1,disabled:l,autoComplete:"off"})]}),(0,ee.jsxs)("div",{className:"env-edit-actions",children:[(0,ee.jsx)("button",{className:"save-edit-btn",onClick:p,disabled:!s.trim()||l,title:"Save changes",children:"\u2713"}),(0,ee.jsx)("button",{className:"cancel-edit-btn",onClick:d,disabled:l,title:"Cancel editing",children:"\u2715"})]})]}):(0,ee.jsxs)("div",{className:"env-variable-display",children:[(0,ee.jsxs)("div",{className:"env-variable-content",children:[(0,ee.jsx)("span",{className:"env-key",children:e.key}),(0,ee.jsx)("span",{className:"env-equals",children:"="}),(0,ee.jsxs)("div",{className:"env-value-container",children:[(0,ee.jsx)("span",{className:"env-value",onClick:()=>k&&x(!S),style:{cursor:k?"pointer":"default"},title:k?"Click to expand/collapse":e.value,children:m||"<empty>"}),k&&(0,ee.jsx)("button",{className:"expand-btn",onClick:()=>x(!S),title:S?"Collapse":"Expand",children:S?"\u25B2":"\u25BC"})]})]}),(0,ee.jsxs)("div",{className:"env-variable-actions",children:[(0,ee.jsx)("button",{className:"edit-variable-btn",onClick:n,disabled:l,title:"Edit variable",children:"\u270F\uFE0F"}),(0,ee.jsx)("button",{className:"delete-variable-btn",onClick:r,disabled:l,title:"Delete variable",children:"\u{1F5D1}\uFE0F"})]})]})})}});var cE=b(()=>{"use strict";JN();KN();tE();nE();aE();Fm();iE();rE();lE();sE();oE();uE()});var zt,De,fE,dE=b(()=>{"use strict";zt=F(Je());cE();an();De=F(re()),fE=({apiKey:e,agentId:t,skillId:n,isActive:a=!1,sharedChatMessages:i,onSharedSendMessage:r,onSharedClearHistory:l,isChatLoading:s,setIsChatLoading:o})=>{let[u,c]=(0,zt.useState)("persona"),[p,d]=(0,zt.useState)([]),[f,S]=(0,zt.useState)([]),[x,k]=(0,zt.useState)([]),[m,h]=(0,zt.useState)(null),[g,E]=(0,zt.useState)(null),[T,N]=(0,zt.useState)(500),[A,C]=(0,zt.useState)(!1),[U,P]=(0,zt.useState)(null),[_,R]=(0,zt.useState)(null),[O,I]=(0,zt.useState)(null),B=se=>z(null,null,function*(){if(!se.trim())return;let X={id:Date.now().toString(),text:se,sender:"user",timestamp:new Date};r(X),o(!0);try{let Q=yield ie.sendProductionChatMessage(se,t,e),ne={id:(Date.now()+1).toString(),text:Q.success?Q.text||"No response received":`\u274C ${Q.error||"Failed to send message"}`,sender:"assistant",timestamp:new Date};r(ne)}catch(Q){let ne={id:(Date.now()+1).toString(),text:`\u274C Error: ${Q instanceof Error?Q.message:"Unknown error"}`,sender:"assistant",timestamp:new Date};r(ne)}finally{o(!1)}}),J=(se,X)=>z(null,null,function*(){E(se);try{let Q=!X;console.log(`${Q?"Activating":"Deactivating"} skill:`,se);let ne=yield ie.activateSkill(e,t,se,Q);ne.success?(k(Y=>Y.map(oe=>oe.id===se?ut(K({},oe),{active:Q}):oe)),yield pt(),console.log(`\u2705 Skill ${Q?"activated":"deactivated"} successfully`)):(console.error(`\u274C Failed to ${Q?"activate":"deactivate"} skill:`,ne.error),alert(`Failed to ${Q?"activate":"deactivate"} skill: ${ne.error}`))}catch(Q){console.error("Error activating skill:",Q),alert("Failed to change skill activation status")}finally{E(null)}}),ae=se=>z(null,null,function*(){h(se);try{let X=f.find(ne=>ne.id===se);if(X){console.log("Deploying persona version:",X),yield At(X);return}let Q=p.find(ne=>ne.id===se);if(Q){console.log("Publishing skill version:",Q.version,"for skill:",Q.skillName);let ne=x.find(Ue=>Ue.name===Q.skillName);if(!ne)throw new Error("Could not find skill for deployment");let Y=Q.version.replace("v",""),oe=yield ie.publishSkillVersion(e,t,ne.id,Y);if(oe.success&&oe.data)d(Ue=>Ue.map(mt=>mt.id===se?ut(K({},mt),{isDeployed:!0}):mt.type===Q.type&&mt.skillName===Q.skillName?ut(K({},mt),{isDeployed:!1}):mt)),k(Ue=>Ue.map(mt=>mt.name===Q.skillName?ut(K({},mt),{deployedVersion:Q.version}):mt)),yield pt(),console.log(`\u2705 ${oe.data.message}`),alert(`\u2705 ${oe.data.message}`);else throw new Error(oe.error||"Failed to publish skill version")}}finally{h(null)}}),we=se=>{C(!0),se.preventDefault()},je=se=>{if(!A)return;let X=document.querySelector(".production-layout-new");if(!X)return;let Q=X.getBoundingClientRect(),ne=Q.right-se.clientX,Y=500,oe=Q.width*.6;ne>=Y&&ne<=oe&&N(ne)},v=()=>{C(!1)};zt.default.useEffect(()=>(A?(document.addEventListener("mousemove",je),document.addEventListener("mouseup",v),document.body.style.cursor="col-resize",document.body.style.userSelect="none"):(document.removeEventListener("mousemove",je),document.removeEventListener("mouseup",v),document.body.style.cursor="",document.body.style.userSelect=""),()=>{document.removeEventListener("mousemove",je),document.removeEventListener("mouseup",v),document.body.style.cursor="",document.body.style.userSelect=""}),[A]);let Me=se=>new Date(se).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});(0,zt.useEffect)(()=>{y()},[e,t]),(0,zt.useEffect)(()=>{a&&y()},[a]);let pt=()=>z(null,null,function*(){try{console.log("Loading skills data with apiKey:",e,"agentId:",t);let se=yield ie.getSkills(e,t);if(se.success&&se.skills){let X=se.skills.map(ne=>{let Y=ne.versions.length>0?ne.versions.reduce((Ue,mt)=>Ue.version>mt.version?Ue:mt):null,oe=ne.versions.find(Ue=>Ue.active);return{id:ne.id,name:ne.name,description:ne.description,versionsCount:ne.versions.length,latestVersion:Y?`v${Y.version}`:"No versions",deployedVersion:oe?`v${oe.version}`:void 0,active:ne.active}});k(X);let Q=[];se.skills.forEach(ne=>{ne.versions.forEach(Y=>{Q.push({id:Y.id,version:`v${Y.version}`,type:"skill",skillName:ne.name,skillDescription:Y.description,skillContext:Y.context,deployedAt:ne.updatedAt,isDeployed:Y.active,status:Y.active?"deployed":"available",tools:Y.tools})})}),d(Q)}else console.error("Failed to load skills:",se.error),k([]),d([])}catch(se){console.error("Error loading skills data:",se),k([]),d([])}}),y=()=>z(null,null,function*(){try{console.log("Loading persona versions with apiKey:",e,"agentId:",t),yield Ke(),yield pt()}catch(se){console.error("Error loading production data:",se)}}),Ke=()=>z(null,null,function*(){try{let se=yield ie.getProductionPersonaVersions(t,e);if(se.success&&se.versions){let Q=se.versions.map(ne=>({id:`persona_${ne.version}`,version:`v${ne.version}`,type:"persona",deployedAt:new Date(ne.createdDate).toISOString(),isDeployed:ne.isCurrent,status:ne.isCurrent?"deployed":"available",personaContent:ne.persona})).sort((ne,Y)=>new Date(Y.deployedAt).getTime()-new Date(ne.deployedAt).getTime());S(Q)}else console.error("Failed to load persona versions:",se.error)}catch(se){console.error("Error loading persona versions:",se)}}),At=se=>z(null,null,function*(){try{let X=parseInt(se.version.replace("v",""));console.log(`Deploying persona version ${X} to production...`);let Q=yield ie.deployPersonaVersion(t,e,X);console.log("Deploy persona response:",Q),Q.success?(yield Ke(),alert(`\u2705 Persona version ${se.version} deployed successfully!`)):alert(`\u274C Failed to deploy persona version: ${Q.error||"Unknown error"}`)}catch(X){console.error("Error deploying persona version:",X),alert("\u274C Failed to deploy persona version")}});return(0,De.jsx)("div",{className:"production-page",children:(0,De.jsxs)("div",{className:"production-layout-new",children:[(0,De.jsx)("div",{className:"production-left",style:{width:`calc(100% - ${T}px)`},children:(0,De.jsx)(Qm,{messages:i,onSendMessage:B,onClearHistory:l,isLoading:s})}),(0,De.jsx)("div",{className:"production-resize-handle",onMouseDown:we}),(0,De.jsxs)("div",{className:"production-right",children:[(0,De.jsxs)("div",{className:"right-panel-tabs",children:[(0,De.jsx)("button",{className:`tab-button ${u==="persona"?"active":""}`,onClick:()=>{c("persona"),R(null),P(null),I(null)},children:"Persona"}),(0,De.jsx)("button",{className:`tab-button ${u==="skills"?"active":""}`,onClick:()=>{c("skills"),R(null),P(null),I(null),I(null)},children:"Skills"}),(0,De.jsx)("button",{className:`tab-button ${u==="stats"?"active":""}`,onClick:()=>{c("stats"),R(null),P(null),I(null)},children:"Stats"}),(0,De.jsx)("button",{className:`tab-button ${u==="logs"?"active":""}`,onClick:()=>{c("logs"),R(null),P(null),I(null)},children:"Logs"}),(0,De.jsx)("button",{className:`tab-button ${u==="data"?"active":""}`,onClick:()=>{c("data"),R(null),P(null),I(null)},children:"Data"}),(0,De.jsx)("button",{className:`tab-button ${u==="env"?"active":""}`,onClick:()=>{c("env"),R(null),P(null),I(null)},children:"Env"})]}),(0,De.jsxs)("div",{className:"right-panel-content",children:[u==="persona"&&(_?(0,De.jsx)(eh,{selectedPersonaVersion:_,onBack:()=>R(null),onDeployVersion:ae,deployingVersionId:m}):(0,De.jsx)(Km,{personaVersions:f,onSelectVersion:R,onDeployVersion:ae,deployingVersionId:m})),u==="skills"&&(O?(0,De.jsx)(th,{selectedSkillVersion:O,onBack:()=>I(null),onDeployVersion:ae,deployingVersionId:m}):U?(0,De.jsx)(nh,{selectedSkill:U,versions:p,onBack:()=>P(null),onSelectVersion:I,onDeployVersion:ae,formatDate:Me,deployingVersionId:m}):(0,De.jsx)(Wm,{skills:x,onSelectSkill:P,onActivateSkill:J,activatingSkillId:g})),u==="stats"&&(0,De.jsx)("div",{className:"coming-soon-panel",children:(0,De.jsxs)("div",{className:"coming-soon",children:[(0,De.jsx)("div",{className:"coming-soon-icon",children:"\u{1F4CA}"}),(0,De.jsx)("div",{className:"coming-soon-text",children:"Statistics & Analytics"}),(0,De.jsx)("div",{className:"coming-soon-subtext",children:"Performance metrics and analytics dashboard coming soon"})]})}),u==="logs"&&(0,De.jsx)(Zm,{apiKey:e,agentId:t}),u==="data"&&(0,De.jsx)($m,{apiKey:e,agentId:t}),u==="env"&&(0,De.jsx)(ah,{apiKey:e,agentId:t})]})]})]})})}});var Vi,sn,pE,mE=b(()=>{"use strict";Vi=F(Je()),sn=F(re()),pE=({apiKey:e,agentId:t})=>{let[n,a]=(0,Vi.useState)(""),[i,r]=(0,Vi.useState)(!0),[l,s]=(0,Vi.useState)(""),[o,u]=(0,Vi.useState)("");(0,Vi.useEffect)(()=>{c()},[]);let c=()=>z(null,null,function*(){var p;try{r(!0);let d=yield fetch("/api/config");if(d.ok){let f=yield d.json(),S=(p=f==null?void 0:f.agent)==null?void 0:p.orgId;if(S){a(S);let x=`https://admin.heylua.ai/validate-token/${e}?redirect=/admin/usage?&agentId=${t}&orgId=${S}&hideToolBar=true`;u(x)}else s("No orgId found in configuration")}else s("Failed to load configuration")}catch(d){console.error("Failed to load orgId:",d),s("Failed to load configuration")}finally{r(!1)}});return i?(0,sn.jsx)("div",{className:"admin-page",children:(0,sn.jsx)("div",{className:"loading-container",children:(0,sn.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})})}):l?(0,sn.jsx)("div",{className:"admin-page",children:(0,sn.jsxs)("div",{className:"error-container",children:[(0,sn.jsx)("h3",{children:"Error Loading Admin Dashboard"}),(0,sn.jsx)("p",{children:l}),(0,sn.jsx)("button",{onClick:c,className:"retry-button",children:"Retry"})]})}):(0,sn.jsx)("div",{className:"admin-page",children:o?(0,sn.jsx)("iframe",{src:o,className:"admin-iframe",title:"Lua Admin Dashboard",sandbox:"allow-same-origin allow-scripts allow-forms allow-popups allow-top-navigation"}):(0,sn.jsx)("div",{className:"loading-container",children:(0,sn.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Loading",className:"loading-logo"})})})}});var hE=b(()=>{});var Qr,it,gE,vE=b(()=>{"use strict";Qr=F(Je());FN();dE();mE();an();hE();it=F(re()),gE=({apiKey:e,agentId:t,skillId:n,sandboxId:a})=>{let[i,r]=(0,Qr.useState)("sandbox"),[l,s]=(0,Qr.useState)([]),[o,u]=(0,Qr.useState)(!1);(0,Qr.useEffect)(()=>{c()},[e,t]);let c=()=>z(null,null,function*(){try{console.log("Loading shared chat history with API key:",e,"agentId:",t);let S=yield ie.loadChatHistory(e,t);if(S.success&&S.data&&S.data.length>0){let x=S.data.map(k=>{var m;return{id:k.id||Date.now().toString(),text:((m=k.content[0])==null?void 0:m.text)||"",sender:k.role==="user"?"user":"assistant",timestamp:new Date(k.createdAt)}});s(x)}else s([])}catch(S){console.error("Failed to load shared chat history:",S),s([])}}),p=()=>z(null,null,function*(){try{let S=yield ie.clearChatHistory(e,t);S.success?s([]):alert("Failed to clear chat history: "+(S.error||"Unknown error"))}catch(S){console.error("Failed to clear shared chat history:",S),alert("Failed to clear chat history")}}),d=S=>{s(x=>[...x,S])};return(0,it.jsxs)("div",{className:"main-container",children:[(0,it.jsx)("div",{className:"page-navigation",children:(0,it.jsxs)("div",{className:"nav-logo",children:[(0,it.jsx)("img",{src:"https://admin.heylua.ai/images/logo.svg",alt:"Lua",className:"logo-icon"}),(0,it.jsxs)("span",{className:"logo-text",children:[(0,it.jsx)("strong",{children:"Lua"})," : Developer Console"]})]})}),(0,it.jsxs)("div",{className:"page-tabs",children:[(0,it.jsx)("button",{className:`page-tab ${i==="sandbox"?"active":""}`,onClick:()=>r("sandbox"),children:"Sandbox"}),(0,it.jsx)("button",{className:`page-tab ${i==="production"?"active":""}`,onClick:()=>r("production"),children:"Production"}),(0,it.jsx)("button",{className:`page-tab ${i==="admin"?"active":""}`,onClick:()=>r("admin"),children:"Admin"})]}),(0,it.jsx)("div",{className:"page-container",children:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{className:`page-content ${i==="sandbox"?"active":"hidden"}`,children:(0,it.jsx)(QN,{apiKey:e,agentId:t,skillId:n,sandboxId:a,sharedChatMessages:l,onSharedSendMessage:d,onSharedClearHistory:p,isChatLoading:o,setIsChatLoading:u})}),(0,it.jsx)("div",{className:`page-content ${i==="production"?"active":"hidden"}`,children:(0,it.jsx)(fE,{apiKey:e,agentId:t,skillId:n,isActive:i==="production",sharedChatMessages:l,onSharedSendMessage:d,onSharedClearHistory:p,isChatLoading:o,setIsChatLoading:u})}),(0,it.jsx)("div",{className:`page-content ${i==="admin"?"active":"hidden"}`,children:(0,it.jsx)(pE,{apiKey:e,agentId:t})})]})})]})}});var o_=Ut(()=>{var yE=F(Je()),bE=F(Yb());vE();var ih=F(re()),Ls=window.__LUA_CONFIG__;if(!Ls)throw new Error("Lua configuration not found");var SE=document.getElementById("root");if(!SE)throw new Error("Root container not found");var s_=(0,bE.createRoot)(SE);s_.render((0,ih.jsx)(yE.default.StrictMode,{children:(0,ih.jsx)(gE,{apiKey:Ls.apiKey,agentId:Ls.agentId,skillId:Ls.skillId,sandboxId:Ls.sandboxId})}))});return o_();})();
|
|
23
25
|
/*! Bundled license information:
|
|
24
26
|
|
|
25
27
|
react/cjs/react.production.js:
|