@clappstore/connect 0.7.7 → 0.7.9
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/dist/agent-client.d.ts +6 -0
- package/dist/agent-client.d.ts.map +1 -1
- package/dist/agent-client.js +102 -13
- package/dist/agent-client.js.map +1 -1
- package/dist/auth.d.ts +18 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +248 -0
- package/dist/auth.js.map +1 -0
- package/dist/chat-handler.d.ts +52 -0
- package/dist/chat-handler.d.ts.map +1 -0
- package/dist/chat-handler.js +453 -0
- package/dist/chat-handler.js.map +1 -0
- package/dist/defaults.d.ts +1 -1
- package/dist/defaults.d.ts.map +1 -1
- package/dist/defaults.js +36 -23
- package/dist/defaults.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -30
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +88 -7
- package/dist/server.js.map +1 -1
- package/dist/settings-handler.d.ts +76 -0
- package/dist/settings-handler.d.ts.map +1 -0
- package/dist/settings-handler.js +848 -0
- package/dist/settings-handler.js.map +1 -0
- package/package.json +4 -8
- package/web-app/assets/{index-CEpgiIwf.js → index-CWzlxjUK.js} +86 -56
- package/web-app/assets/index-Cic64hbc.css +1 -0
- package/web-app/index.html +2 -2
- package/clapps/settings/README.md +0 -74
- package/clapps/settings/clapp.json +0 -25
- package/clapps/settings/components/ProviderEditor.tsx +0 -512
- package/clapps/settings/components/ProviderList.tsx +0 -300
- package/clapps/settings/components/SessionList.tsx +0 -189
- package/clapps/settings/handlers/settings-handler.js +0 -742
- package/clapps/settings/views/default.settings.view.md +0 -35
- package/clapps/settings/views/settings.app.md +0 -12
- package/web-app/assets/index-BsI5PEAv.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var jh=Object.defineProperty;var Nh=(t,a,l)=>a in t?jh(t,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[a]=l;var
|
|
1
|
+
var jh=Object.defineProperty;var Nh=(t,a,l)=>a in t?jh(t,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[a]=l;var Vt=(t,a,l)=>Nh(t,typeof a!="symbol"?a+"":a,l);function _mergeNamespaces(t,a){for(var l=0;l<a.length;l++){const u=a[l];if(typeof u!="string"&&!Array.isArray(u)){for(const c in u)if(c!=="default"&&!(c in t)){const f=Object.getOwnPropertyDescriptor(u,c);f&&Object.defineProperty(t,c,f.get?f:{enumerable:!0,get:()=>u[c]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();function getDefaultExportFromCjs$1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getAugmentedNamespace(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var a=t.default;if(typeof a=="function"){var l=function u(){return this instanceof u?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};l.prototype=a.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(t).forEach(function(u){var c=Object.getOwnPropertyDescriptor(t,u);Object.defineProperty(l,u,c.get?c:{enumerable:!0,get:function(){return t[u]}})}),l}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var jh=Object.defineProperty;var Nh=(t,a,l)=>a in t?jh(t,a,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(u,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:t,type:u,key:d,ref:c!==void 0?c:null,props:f}}return reactJsxRuntime_production.Fragment=a,reactJsxRuntime_production.jsx=l,reactJsxRuntime_production.jsxs=l,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),react={exports:{}};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var browser={exports:{}},process=browser.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(t){if(cachedSetTimeout===setTimeout)return setTimeout(t,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(t,0);try{return cachedSetTimeout(t,0)}catch{try{return cachedSetTimeout.call(null,t,0)}catch{return cachedSetTimeout.call(this,t,0)}}}function runClearTimeout(t){if(cachedClearTimeout===clearTimeout)return clearTimeout(t);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(t);try{return cachedClearTimeout(t)}catch{try{return cachedClearTimeout.call(null,t)}catch{return cachedClearTimeout.call(this,t)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var t=runTimeout(cleanUpNextTick);draining=!0;for(var a=queue.length;a;){for(currentQueue=queue,queue=[];++queueIndex<a;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,a=queue.length}currentQueue=null,draining=!1,runClearTimeout(t)}}process.nextTick=function(t){var a=new Array(arguments.length-1);if(arguments.length>1)for(var l=1;l<arguments.length;l++)a[l-1]=arguments[l];queue.push(new Item(t,a)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(t,a){this.fun=t,this.array=a}Item.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=!0;process.env={};process.argv=[];process.version="";process.versions={};function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.prependListener=noop;process.prependOnceListener=noop;process.listeners=function(t){return[]};process.binding=function(t){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(t){throw new Error("process.chdir is not supported")};process.umask=function(){return 0};var browserExports=browser.exports;const process$1=getDefaultExportFromCjs(browserExports);var react_production={},hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),A=Symbol.iterator;function C(I){return I===null||typeof I!="object"?null:(I=A&&I[A]||I["@@iterator"],typeof I=="function"?I:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,P={};function q(I,ne,j){this.props=I,this.context=ne,this.refs=P,this.updater=j||O}q.prototype.isReactComponent={},q.prototype.setState=function(I,ne){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,ne,"setState")},q.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function ie(){}ie.prototype=q.prototype;function K(I,ne,j){this.props=I,this.context=ne,this.refs=P,this.updater=j||O}var pe=K.prototype=new ie;pe.constructor=K,F(pe,q.prototype),pe.isPureReactComponent=!0;var ye=Array.isArray;function $(){}var be={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function ke(I,ne,j){var ge=j.ref;return{$$typeof:t,type:I,key:ne,ref:ge!==void 0?ge:null,props:j}}function Z(I,ne){return ke(I.type,ne,I.props)}function ve(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function ee(I){var ne={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(j){return ne[j]})}var Ae=/\/+/g;function xe(I,ne){return typeof I=="object"&&I!==null&&I.key!=null?ee(""+I.key):ne.toString(36)}function he(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then($,$):(I.status="pending",I.then(function(ne){I.status==="pending"&&(I.status="fulfilled",I.value=ne)},function(ne){I.status==="pending"&&(I.status="rejected",I.reason=ne)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function H(I,ne,j,ge,me){var Se=typeof I;(Se==="undefined"||Se==="boolean")&&(I=null);var Oe=!1;if(I===null)Oe=!0;else switch(Se){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(I.$$typeof){case t:case a:Oe=!0;break;case x:return Oe=I._init,H(Oe(I._payload),ne,j,ge,me)}}if(Oe)return me=me(I),Oe=ge===""?"."+xe(I,0):ge,ye(me)?(j="",Oe!=null&&(j=Oe.replace(Ae,"$&/")+"/"),H(me,ne,j,"",function(nt){return nt})):me!=null&&(ve(me)&&(me=Z(me,j+(me.key==null||I&&I.key===me.key?"":(""+me.key).replace(Ae,"$&/")+"/")+Oe)),ne.push(me)),1;Oe=0;var qe=ge===""?".":ge+":";if(ye(I))for(var Re=0;Re<I.length;Re++)ge=I[Re],Se=qe+xe(ge,Re),Oe+=H(ge,ne,j,Se,me);else if(Re=C(I),typeof Re=="function")for(I=Re.call(I),Re=0;!(ge=I.next()).done;)ge=ge.value,Se=qe+xe(ge,Re++),Oe+=H(ge,ne,j,Se,me);else if(Se==="object"){if(typeof I.then=="function")return H(he(I),ne,j,ge,me);throw ne=String(I),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function de(I,ne,j){if(I==null)return I;var ge=[],me=0;return H(I,ge,"","",function(Se){return ne.call(j,Se,me++)}),ge}function oe(I){if(I._status===-1){var ne=I._result;ne=ne(),ne.then(function(j){(I._status===0||I._status===-1)&&(I._status=1,I._result=j)},function(j){(I._status===0||I._status===-1)&&(I._status=2,I._result=j)}),I._status===-1&&(I._status=0,I._result=ne)}if(I._status===1)return I._result.default;throw I._result}var Ne=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ne=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(ne))return}else if(typeof process$1=="object"&&typeof process$1.emit=="function"){process$1.emit("uncaughtException",I);return}console.error(I)},N={map:de,forEach:function(I,ne,j){de(I,function(){ne.apply(this,arguments)},j)},count:function(I){var ne=0;return de(I,function(){ne++}),ne},toArray:function(I){return de(I,function(ne){return ne})||[]},only:function(I){if(!ve(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return react_production.Activity=S,react_production.Children=N,react_production.Component=q,react_production.Fragment=l,react_production.Profiler=c,react_production.PureComponent=K,react_production.StrictMode=u,react_production.Suspense=m,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=be,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(I){return be.H.useMemoCache(I)}},react_production.cache=function(I){return function(){return I.apply(null,arguments)}},react_production.cacheSignal=function(){return null},react_production.cloneElement=function(I,ne,j){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var ge=F({},I.props),me=I.key;if(ne!=null)for(Se in ne.key!==void 0&&(me=""+ne.key),ne)!ue.call(ne,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&ne.ref===void 0||(ge[Se]=ne[Se]);var Se=arguments.length-2;if(Se===1)ge.children=j;else if(1<Se){for(var Oe=Array(Se),qe=0;qe<Se;qe++)Oe[qe]=arguments[qe+2];ge.children=Oe}return ke(I.type,me,ge)},react_production.createContext=function(I){return I={$$typeof:d,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:f,_context:I},I},react_production.createElement=function(I,ne,j){var ge,me={},Se=null;if(ne!=null)for(ge in ne.key!==void 0&&(Se=""+ne.key),ne)ue.call(ne,ge)&&ge!=="key"&&ge!=="__self"&&ge!=="__source"&&(me[ge]=ne[ge]);var Oe=arguments.length-2;if(Oe===1)me.children=j;else if(1<Oe){for(var qe=Array(Oe),Re=0;Re<Oe;Re++)qe[Re]=arguments[Re+2];me.children=qe}if(I&&I.defaultProps)for(ge in Oe=I.defaultProps,Oe)me[ge]===void 0&&(me[ge]=Oe[ge]);return ke(I,Se,me)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(I){return{$$typeof:g,render:I}},react_production.isValidElement=ve,react_production.lazy=function(I){return{$$typeof:x,_payload:{_status:-1,_result:I},_init:oe}},react_production.memo=function(I,ne){return{$$typeof:h,type:I,compare:ne===void 0?null:ne}},react_production.startTransition=function(I){var ne=be.T,j={};be.T=j;try{var ge=I(),me=be.S;me!==null&&me(j,ge),typeof ge=="object"&&ge!==null&&typeof ge.then=="function"&&ge.then($,Ne)}catch(Se){Ne(Se)}finally{ne!==null&&j.types!==null&&(ne.types=j.types),be.T=ne}},react_production.unstable_useCacheRefresh=function(){return be.H.useCacheRefresh()},react_production.use=function(I){return be.H.use(I)},react_production.useActionState=function(I,ne,j){return be.H.useActionState(I,ne,j)},react_production.useCallback=function(I,ne){return be.H.useCallback(I,ne)},react_production.useContext=function(I){return be.H.useContext(I)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(I,ne){return be.H.useDeferredValue(I,ne)},react_production.useEffect=function(I,ne){return be.H.useEffect(I,ne)},react_production.useEffectEvent=function(I){return be.H.useEffectEvent(I)},react_production.useId=function(){return be.H.useId()},react_production.useImperativeHandle=function(I,ne,j){return be.H.useImperativeHandle(I,ne,j)},react_production.useInsertionEffect=function(I,ne){return be.H.useInsertionEffect(I,ne)},react_production.useLayoutEffect=function(I,ne){return be.H.useLayoutEffect(I,ne)},react_production.useMemo=function(I,ne){return be.H.useMemo(I,ne)},react_production.useOptimistic=function(I,ne){return be.H.useOptimistic(I,ne)},react_production.useReducer=function(I,ne,j){return be.H.useReducer(I,ne,j)},react_production.useRef=function(I){return be.H.useRef(I)},react_production.useState=function(I){return be.H.useState(I)},react_production.useSyncExternalStore=function(I,ne,j){return be.H.useSyncExternalStore(I,ne,j)},react_production.useTransition=function(){return be.H.useTransition()},react_production.version="19.2.4",react_production}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production()),react.exports}var reactExports=requireReact();const React=getDefaultExportFromCjs$1(reactExports),React$1=_mergeNamespaces({__proto__:null,default:React},[reactExports]);var client={exports:{}},reactDomClient_production={},scheduler={exports:{}},scheduler_production={};/**
|
|
9
|
+
*/var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(u,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:t,type:u,key:d,ref:c!==void 0?c:null,props:f}}return reactJsxRuntime_production.Fragment=a,reactJsxRuntime_production.jsx=l,reactJsxRuntime_production.jsxs=l,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),react={exports:{}};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var browser={exports:{}},process=browser.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(t){if(cachedSetTimeout===setTimeout)return setTimeout(t,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(t,0);try{return cachedSetTimeout(t,0)}catch{try{return cachedSetTimeout.call(null,t,0)}catch{return cachedSetTimeout.call(this,t,0)}}}function runClearTimeout(t){if(cachedClearTimeout===clearTimeout)return clearTimeout(t);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(t);try{return cachedClearTimeout(t)}catch{try{return cachedClearTimeout.call(null,t)}catch{return cachedClearTimeout.call(this,t)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var t=runTimeout(cleanUpNextTick);draining=!0;for(var a=queue.length;a;){for(currentQueue=queue,queue=[];++queueIndex<a;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,a=queue.length}currentQueue=null,draining=!1,runClearTimeout(t)}}process.nextTick=function(t){var a=new Array(arguments.length-1);if(arguments.length>1)for(var l=1;l<arguments.length;l++)a[l-1]=arguments[l];queue.push(new Item(t,a)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(t,a){this.fun=t,this.array=a}Item.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=!0;process.env={};process.argv=[];process.version="";process.versions={};function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.prependListener=noop;process.prependOnceListener=noop;process.listeners=function(t){return[]};process.binding=function(t){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(t){throw new Error("process.chdir is not supported")};process.umask=function(){return 0};var browserExports=browser.exports;const process$1=getDefaultExportFromCjs(browserExports);var react_production={},hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),A=Symbol.iterator;function C(I){return I===null||typeof I!="object"?null:(I=A&&I[A]||I["@@iterator"],typeof I=="function"?I:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,P={};function q(I,ie,j){this.props=I,this.context=ie,this.refs=P,this.updater=j||O}q.prototype.isReactComponent={},q.prototype.setState=function(I,ie){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,ie,"setState")},q.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function ne(){}ne.prototype=q.prototype;function Y(I,ie,j){this.props=I,this.context=ie,this.refs=P,this.updater=j||O}var pe=Y.prototype=new ne;pe.constructor=Y,Z(pe,q.prototype),pe.isPureReactComponent=!0;var ye=Array.isArray;function Q(){}var be={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function ke(I,ie,j){var ge=j.ref;return{$$typeof:t,type:I,key:ie,ref:ge!==void 0?ge:null,props:j}}function F(I,ie){return ke(I.type,ie,I.props)}function ve(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function ee(I){var ie={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(j){return ie[j]})}var Ae=/\/+/g;function xe(I,ie){return typeof I=="object"&&I!==null&&I.key!=null?ee(""+I.key):ie.toString(36)}function he(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(Q,Q):(I.status="pending",I.then(function(ie){I.status==="pending"&&(I.status="fulfilled",I.value=ie)},function(ie){I.status==="pending"&&(I.status="rejected",I.reason=ie)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function H(I,ie,j,ge,me){var Se=typeof I;(Se==="undefined"||Se==="boolean")&&(I=null);var Oe=!1;if(I===null)Oe=!0;else switch(Se){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(I.$$typeof){case t:case a:Oe=!0;break;case x:return Oe=I._init,H(Oe(I._payload),ie,j,ge,me)}}if(Oe)return me=me(I),Oe=ge===""?"."+xe(I,0):ge,ye(me)?(j="",Oe!=null&&(j=Oe.replace(Ae,"$&/")+"/"),H(me,ie,j,"",function(nt){return nt})):me!=null&&(ve(me)&&(me=F(me,j+(me.key==null||I&&I.key===me.key?"":(""+me.key).replace(Ae,"$&/")+"/")+Oe)),ie.push(me)),1;Oe=0;var qe=ge===""?".":ge+":";if(ye(I))for(var Re=0;Re<I.length;Re++)ge=I[Re],Se=qe+xe(ge,Re),Oe+=H(ge,ie,j,Se,me);else if(Re=C(I),typeof Re=="function")for(I=Re.call(I),Re=0;!(ge=I.next()).done;)ge=ge.value,Se=qe+xe(ge,Re++),Oe+=H(ge,ie,j,Se,me);else if(Se==="object"){if(typeof I.then=="function")return H(he(I),ie,j,ge,me);throw ie=String(I),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function de(I,ie,j){if(I==null)return I;var ge=[],me=0;return H(I,ge,"","",function(Se){return ie.call(j,Se,me++)}),ge}function oe(I){if(I._status===-1){var ie=I._result;ie=ie(),ie.then(function(j){(I._status===0||I._status===-1)&&(I._status=1,I._result=j)},function(j){(I._status===0||I._status===-1)&&(I._status=2,I._result=j)}),I._status===-1&&(I._status=0,I._result=ie)}if(I._status===1)return I._result.default;throw I._result}var Ne=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ie=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(ie))return}else if(typeof process$1=="object"&&typeof process$1.emit=="function"){process$1.emit("uncaughtException",I);return}console.error(I)},N={map:de,forEach:function(I,ie,j){de(I,function(){ie.apply(this,arguments)},j)},count:function(I){var ie=0;return de(I,function(){ie++}),ie},toArray:function(I){return de(I,function(ie){return ie})||[]},only:function(I){if(!ve(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return react_production.Activity=S,react_production.Children=N,react_production.Component=q,react_production.Fragment=l,react_production.Profiler=c,react_production.PureComponent=Y,react_production.StrictMode=u,react_production.Suspense=h,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=be,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(I){return be.H.useMemoCache(I)}},react_production.cache=function(I){return function(){return I.apply(null,arguments)}},react_production.cacheSignal=function(){return null},react_production.cloneElement=function(I,ie,j){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var ge=Z({},I.props),me=I.key;if(ie!=null)for(Se in ie.key!==void 0&&(me=""+ie.key),ie)!ue.call(ie,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&ie.ref===void 0||(ge[Se]=ie[Se]);var Se=arguments.length-2;if(Se===1)ge.children=j;else if(1<Se){for(var Oe=Array(Se),qe=0;qe<Se;qe++)Oe[qe]=arguments[qe+2];ge.children=Oe}return ke(I.type,me,ge)},react_production.createContext=function(I){return I={$$typeof:d,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:f,_context:I},I},react_production.createElement=function(I,ie,j){var ge,me={},Se=null;if(ie!=null)for(ge in ie.key!==void 0&&(Se=""+ie.key),ie)ue.call(ie,ge)&&ge!=="key"&&ge!=="__self"&&ge!=="__source"&&(me[ge]=ie[ge]);var Oe=arguments.length-2;if(Oe===1)me.children=j;else if(1<Oe){for(var qe=Array(Oe),Re=0;Re<Oe;Re++)qe[Re]=arguments[Re+2];me.children=qe}if(I&&I.defaultProps)for(ge in Oe=I.defaultProps,Oe)me[ge]===void 0&&(me[ge]=Oe[ge]);return ke(I,Se,me)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(I){return{$$typeof:g,render:I}},react_production.isValidElement=ve,react_production.lazy=function(I){return{$$typeof:x,_payload:{_status:-1,_result:I},_init:oe}},react_production.memo=function(I,ie){return{$$typeof:m,type:I,compare:ie===void 0?null:ie}},react_production.startTransition=function(I){var ie=be.T,j={};be.T=j;try{var ge=I(),me=be.S;me!==null&&me(j,ge),typeof ge=="object"&&ge!==null&&typeof ge.then=="function"&&ge.then(Q,Ne)}catch(Se){Ne(Se)}finally{ie!==null&&j.types!==null&&(ie.types=j.types),be.T=ie}},react_production.unstable_useCacheRefresh=function(){return be.H.useCacheRefresh()},react_production.use=function(I){return be.H.use(I)},react_production.useActionState=function(I,ie,j){return be.H.useActionState(I,ie,j)},react_production.useCallback=function(I,ie){return be.H.useCallback(I,ie)},react_production.useContext=function(I){return be.H.useContext(I)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(I,ie){return be.H.useDeferredValue(I,ie)},react_production.useEffect=function(I,ie){return be.H.useEffect(I,ie)},react_production.useEffectEvent=function(I){return be.H.useEffectEvent(I)},react_production.useId=function(){return be.H.useId()},react_production.useImperativeHandle=function(I,ie,j){return be.H.useImperativeHandle(I,ie,j)},react_production.useInsertionEffect=function(I,ie){return be.H.useInsertionEffect(I,ie)},react_production.useLayoutEffect=function(I,ie){return be.H.useLayoutEffect(I,ie)},react_production.useMemo=function(I,ie){return be.H.useMemo(I,ie)},react_production.useOptimistic=function(I,ie){return be.H.useOptimistic(I,ie)},react_production.useReducer=function(I,ie,j){return be.H.useReducer(I,ie,j)},react_production.useRef=function(I){return be.H.useRef(I)},react_production.useState=function(I){return be.H.useState(I)},react_production.useSyncExternalStore=function(I,ie,j){return be.H.useSyncExternalStore(I,ie,j)},react_production.useTransition=function(){return be.H.useTransition()},react_production.version="19.2.4",react_production}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production()),react.exports}var reactExports=requireReact();const React=getDefaultExportFromCjs$1(reactExports),React$1=_mergeNamespaces({__proto__:null,default:React},[reactExports]);var client={exports:{}},reactDomClient_production={},scheduler={exports:{}},scheduler_production={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var jh=Object.defineProperty;var Nh=(t,a,l)=>a in t?jh(t,a,{enumerable:!0,config
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,(function(t){function a(H,de){var oe=H.length;H.push(de);e:for(;0<oe;){var Ne=oe-1>>>1,N=H[Ne];if(0<c(N,de))H[Ne]=de,H[oe]=N,oe=Ne;else break e}}function l(H){return H.length===0?null:H[0]}function u(H){if(H.length===0)return null;var de=H[0],oe=H.pop();if(oe!==de){H[0]=oe;e:for(var Ne=0,N=H.length,I=N>>>1;Ne<I;){var
|
|
17
|
+
*/var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,(function(t){function a(H,de){var oe=H.length;H.push(de);e:for(;0<oe;){var Ne=oe-1>>>1,N=H[Ne];if(0<c(N,de))H[Ne]=de,H[oe]=N,oe=Ne;else break e}}function l(H){return H.length===0?null:H[0]}function u(H){if(H.length===0)return null;var de=H[0],oe=H.pop();if(oe!==de){H[0]=oe;e:for(var Ne=0,N=H.length,I=N>>>1;Ne<I;){var ie=2*(Ne+1)-1,j=H[ie],ge=ie+1,me=H[ge];if(0>c(j,oe))ge<N&&0>c(me,j)?(H[Ne]=me,H[ge]=oe,Ne=ge):(H[Ne]=j,H[ie]=oe,Ne=ie);else if(ge<N&&0>c(me,oe))H[Ne]=me,H[ge]=oe,Ne=ge;else break e}}return de}function c(H,de){var oe=H.sortIndex-de.sortIndex;return oe!==0?oe:H.id-de.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();t.unstable_now=function(){return d.now()-g}}var h=[],m=[],x=1,S=null,A=3,C=!1,O=!1,Z=!1,P=!1,q=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function pe(H){for(var de=l(m);de!==null;){if(de.callback===null)u(m);else if(de.startTime<=H)u(m),de.sortIndex=de.expirationTime,a(h,de);else break;de=l(m)}}function ye(H){if(Z=!1,pe(H),!O)if(l(h)!==null)O=!0,Q||(Q=!0,ee());else{var de=l(m);de!==null&&he(ye,de.startTime-H)}}var Q=!1,be=-1,ue=5,ke=-1;function F(){return P?!0:!(t.unstable_now()-ke<ue)}function ve(){if(P=!1,Q){var H=t.unstable_now();ke=H;var de=!0;try{e:{O=!1,Z&&(Z=!1,ne(be),be=-1),C=!0;var oe=A;try{t:{for(pe(H),S=l(h);S!==null&&!(S.expirationTime>H&&F());){var Ne=S.callback;if(typeof Ne=="function"){S.callback=null,A=S.priorityLevel;var N=Ne(S.expirationTime<=H);if(H=t.unstable_now(),typeof N=="function"){S.callback=N,pe(H),de=!0;break t}S===l(h)&&u(h),pe(H)}else u(h);S=l(h)}if(S!==null)de=!0;else{var I=l(m);I!==null&&he(ye,I.startTime-H),de=!1}}break e}finally{S=null,A=oe,C=!1}de=void 0}}finally{de?ee():Q=!1}}}var ee;if(typeof Y=="function")ee=function(){Y(ve)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,xe=Ae.port2;Ae.port1.onmessage=ve,ee=function(){xe.postMessage(null)}}else ee=function(){q(ve,0)};function he(H,de){be=q(function(){H(t.unstable_now())},de)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_next=function(H){switch(A){case 1:case 2:case 3:var de=3;break;default:de=A}var oe=A;A=de;try{return H()}finally{A=oe}},t.unstable_requestPaint=function(){P=!0},t.unstable_runWithPriority=function(H,de){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var oe=A;A=H;try{return de()}finally{A=oe}},t.unstable_scheduleCallback=function(H,de,oe){var Ne=t.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?Ne+oe:Ne):oe=Ne,H){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=oe+N,H={id:x++,callback:de,priorityLevel:H,startTime:oe,expirationTime:N,sortIndex:-1},oe>Ne?(H.sortIndex=oe,a(m,H),l(h)===null&&H===l(m)&&(Z?(ne(be),be=-1):Z=!0,he(ye,oe-Ne))):(H.sortIndex=N,a(h,H),O||C||(O=!0,Q||(Q=!0,ee()))),H},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(H){var de=A;return function(){var oe=A;A=de;try{return H.apply(this,arguments)}finally{A=oe}}}})(scheduler_production)),scheduler_production}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production()),scheduler.exports}var reactDom={exports:{}},reactDom_production={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react-dom.production.js
|
|
20
20
|
*
|
|
@@ -22,15 +22,15 @@ var jh=Object.defineProperty;var Nh=(t,a,l)=>a in t?jh(t,a,{enumerable:!0,config
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var t=requireReact();function a(
|
|
25
|
+
*/var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var t=requireReact();function a(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var u={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(h,m,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:h,containerInfo:m,implementation:x}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,reactDom_production.createPortal=function(h,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return f(h,m,null,x)},reactDom_production.flushSync=function(h){var m=d.T,x=u.p;try{if(d.T=null,u.p=2,h)return h()}finally{d.T=m,u.p=x,u.d.f()}},reactDom_production.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(h,m))},reactDom_production.prefetchDNS=function(h){typeof h=="string"&&u.d.D(h)},reactDom_production.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var x=m.as,S=g(x,m.crossOrigin),A=typeof m.integrity=="string"?m.integrity:void 0,C=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:S,integrity:A,fetchPriority:C}):x==="script"&&u.d.X(h,{crossOrigin:S,integrity:A,fetchPriority:C,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},reactDom_production.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=g(m.as,m.crossOrigin);u.d.M(h,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(h)},reactDom_production.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,S=g(x,m.crossOrigin);u.d.L(h,x,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},reactDom_production.preloadModule=function(h,m){if(typeof h=="string")if(m){var x=g(m.as,m.crossOrigin);u.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(h)},reactDom_production.requestFormReset=function(h){u.d.r(h)},reactDom_production.unstable_batchedUpdates=function(h,m){return h(m)},reactDom_production.useFormState=function(h,m,x){return d.H.useFormState(h,m,x)},reactDom_production.useFormStatus=function(){return d.H.useHostTransitionStatus()},reactDom_production.version="19.2.4",reactDom_production}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),reactDom.exports=requireReactDom_production(),reactDom.exports}var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var t=requireScheduler(),a=requireReact(),l=requireReactDom();function u(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(u(188))}function m(e){var n=e.alternate;if(!n){if(n=f(e),n===null)throw Error(u(188));return n!==e?null:e}for(var o=e,s=n;;){var p=o.return;if(p===null)break;var y=p.alternate;if(y===null){if(s=p.return,s!==null){o=s;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===o)return h(p),e;if(y===s)return h(p),n;y=y.sibling}throw Error(u(188))}if(o.return!==s.return)o=p,s=y;else{for(var w=!1,_=p.child;_;){if(_===o){w=!0,o=p,s=y;break}if(_===s){w=!0,s=p,o=y;break}_=_.sibling}if(!w){for(_=y.child;_;){if(_===o){w=!0,o=y,s=p;break}if(_===s){w=!0,s=y,o=p;break}_=_.sibling}if(!w)throw Error(u(189))}}if(o.alternate!==s)throw Error(u(190))}if(o.tag!==3)throw Error(u(188));return o.stateNode.current===o?e:n}function x(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=x(e),n!==null)return n;e=e.sibling}return null}var S=Object.assign,A=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),ke=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),ve=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Symbol.for("react.client.reference");function xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Z:return"Fragment";case q:return"Profiler";case P:return"StrictMode";case ye:return"Suspense";case Q:return"SuspenseList";case ke:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case Y:return e.displayName||"Context";case ne:return(e._context.displayName||"Context")+".Consumer";case pe:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case be:return n=e.displayName||null,n!==null?n:xe(e.type)||"Memo";case ue:n=e._payload,e=e._init;try{return xe(e(n))}catch{}}return null}var he=Array.isArray,H=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},Ne=[],N=-1;function I(e){return{current:e}}function ie(e){0>N||(e.current=Ne[N],Ne[N]=null,N--)}function j(e,n){N++,Ne[N]=e.current,e.current=n}var ge=I(null),me=I(null),Se=I(null),Oe=I(null);function qe(e,n){switch(j(Se,n),j(me,e),j(ge,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?qf(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=qf(n),e=Zf(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ie(ge),j(ge,e)}function Re(){ie(ge),ie(me),ie(Se)}function nt(e){e.memoizedState!==null&&j(Oe,e);var n=ge.current,o=Zf(n,e.type);n!==o&&(j(me,e),j(ge,o))}function Ke(e){me.current===e&&(ie(ge),ie(me)),Oe.current===e&&(ie(Oe),Hi._currentValue=oe)}var at,kt;function st(e){if(at===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);at=n&&n[1]||"",kt=-1<o.stack.indexOf(`
|
|
26
26
|
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
-
`+at+e+kt}var Tt=!1;function mt(e,n){if(!e||Tt)return"";Tt=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(W){var
|
|
27
|
+
`+at+e+kt}var Tt=!1;function mt(e,n){if(!e||Tt)return"";Tt=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(W){var K=W}Reflect.construct(e,[],fe)}else{try{fe.call()}catch(W){K=W}e.call(fe.prototype)}}else{try{throw Error()}catch(W){K=W}(fe=e())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(W){if(W&&K&&typeof W.stack=="string")return[W.stack,K.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=s.DetermineComponentFrameRoot(),w=y[0],_=y[1];if(w&&_){var M=w.split(`
|
|
28
28
|
`),G=_.split(`
|
|
29
29
|
`);for(p=s=0;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;for(;p<G.length&&!G[p].includes("DetermineComponentFrameRoot");)p++;if(s===M.length||p===G.length)for(s=M.length-1,p=G.length-1;1<=s&&0<=p&&M[s]!==G[p];)p--;for(;1<=s&&0<=p;s--,p--)if(M[s]!==G[p]){if(s!==1||p!==1)do if(s--,p--,0>p||M[s]!==G[p]){var le=`
|
|
30
30
|
`+M[s].replace(" at new "," at ");return e.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",e.displayName)),le}while(1<=s&&0<=p);break}}}finally{Tt=!1,Error.prepareStackTrace=o}return(o=e?e.displayName||e.name:"")?st(o):""}function _t(e,n){switch(e.tag){case 26:case 27:case 5:return st(e.type);case 16:return st("Lazy");case 13:return e.child!==n&&n!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return mt(e.type,!1);case 11:return mt(e.type.render,!1);case 1:return mt(e.type,!0);case 31:return st("Activity");default:return""}}function wt(e){try{var n="",o=null;do n+=_t(e,o),o=e,e=e.return;while(e);return n}catch(s){return`
|
|
31
31
|
Error generating stack: `+s.message+`
|
|
32
|
-
`+s.stack}}var Vt=Object.prototype.hasOwnProperty,At=t.unstable_scheduleCallback,Ht=t.unstable_cancelCallback,ln=t.unstable_shouldYield,on=t.unstable_requestPaint,Je=t.unstable_now,k=t.unstable_getCurrentPriorityLevel,z=t.unstable_ImmediatePriority,U=t.unstable_UserBlockingPriority,te=t.unstable_NormalPriority,J=t.unstable_LowPriority,v=t.unstable_IdlePriority,b=t.log,E=t.unstable_setDisableYieldValue,T=null,R=null;function L(e){if(typeof b=="function"&&E(e),R&&typeof R.setStrictMode=="function")try{R.setStrictMode(T,e)}catch{}}var D=Math.clz32?Math.clz32:Ee,se=Math.log,ae=Math.LN2;function Ee(e){return e>>>=0,e===0?32:31-(se(e)/ae|0)|0}var Te=256,we=262144,lt=4194304;function tr(e){var n=e&42;if(n!==0)return n;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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 $i(e,n,o){var s=e.pendingLanes;if(s===0)return 0;var p=0,y=e.suspendedLanes,w=e.pingedLanes;e=e.warmLanes;var _=s&134217727;return _!==0?(s=_&~y,s!==0?p=tr(s):(w&=_,w!==0?p=tr(w):o||(o=_&~e,o!==0&&(p=tr(o))))):(_=s&~y,_!==0?p=tr(_):w!==0?p=tr(w):o||(o=s&~e,o!==0&&(p=tr(o)))),p===0?0:n!==0&&n!==p&&(n&y)===0&&(y=p&-p,o=n&-n,y>=o||y===32&&(o&4194048)!==0)?n:p}function ri(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function yd(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 vu(){var e=lt;return lt<<=1,(lt&62914560)===0&&(lt=4194304),e}function ol(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function ii(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xd(e,n,o,s,p,y){var w=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var _=e.entanglements,M=e.expirationTimes,G=e.hiddenUpdates;for(o=w&~o;0<o;){var le=31-D(o),fe=1<<le;_[le]=0,M[le]=-1;var Q=G[le];if(Q!==null)for(G[le]=null,le=0;le<Q.length;le++){var W=Q[le];W!==null&&(W.lane&=-536870913)}o&=~fe}s!==0&&Su(e,s,0),y!==0&&p===0&&e.tag!==0&&(e.suspendedLanes|=y&~(w&~n))}function Su(e,n,o){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-D(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|o&261930}function Eu(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var s=31-D(o),p=1<<s;p&n|e[s]&n&&(e[s]|=n),o&=~p}}function ku(e,n){var o=n&-n;return o=(o&42)!==0?1:ul(o),(o&(e.suspendedLanes|n))!==0?0:o}function ul(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 sl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function wu(){var e=de.p;return e!==0?e:(e=window.event,e===void 0?32:cd(e.type))}function Au(e,n){var o=de.p;try{return de.p=e,n()}finally{de.p=o}}var Nn=Math.random().toString(36).slice(2),xt="__reactFiber$"+Nn,Rt="__reactProps$"+Nn,br="__reactContainer$"+Nn,cl="__reactEvents$"+Nn,bd="__reactListeners$"+Nn,vd="__reactHandles$"+Nn,Cu="__reactResources$"+Nn,ai="__reactMarker$"+Nn;function fl(e){delete e[xt],delete e[Rt],delete e[cl],delete e[bd],delete e[vd]}function vr(e){var n=e[xt];if(n)return n;for(var o=e.parentNode;o;){if(n=o[br]||o[xt]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=$f(e);e!==null;){if(o=e[xt])return o;e=$f(e)}return n}e=o,o=e.parentNode}return null}function Sr(e){if(e=e[xt]||e[br]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function li(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(u(33))}function Er(e){var n=e[Cu];return n||(n=e[Cu]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function gt(e){e[ai]=!0}var Tu=new Set,_u={};function nr(e,n){kr(e,n),kr(e+"Capture",n)}function kr(e,n){for(_u[e]=n,e=0;e<n.length;e++)Tu.add(n[e])}var Sd=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]*$"),Ru={},ju={};function Ed(e){return Vt.call(ju,e)?!0:Vt.call(Ru,e)?!1:Sd.test(e)?ju[e]=!0:(Ru[e]=!0,!1)}function Qi(e,n,o){if(Ed(n))if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+o)}}function Xi(e,n,o){if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+o)}}function pn(e,n,o,s){if(s===null)e.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}e.setAttributeNS(n,o,""+s)}}function Pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nu(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function kd(e,n,o){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,y=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return p.call(this)},set:function(w){o=""+w,y.call(this,w)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(w){o=""+w},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function dl(e){if(!e._valueTracker){var n=Nu(e)?"checked":"value";e._valueTracker=kd(e,n,""+e[n])}}function Ou(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),s="";return e&&(s=Nu(e)?e.checked?"true":"false":e.value),e=s,e!==o?(n.setValue(e),!0):!1}function Ki(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var wd=/[\n"\\]/g;function Yt(e){return e.replace(wd,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function pl(e,n,o,s,p,y,w,_){e.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.type=w:e.removeAttribute("type"),n!=null?w==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Pt(n)):e.value!==""+Pt(n)&&(e.value=""+Pt(n)):w!=="submit"&&w!=="reset"||e.removeAttribute("value"),n!=null?hl(e,w,Pt(n)):o!=null?hl(e,w,Pt(o)):s!=null&&e.removeAttribute("value"),p==null&&y!=null&&(e.defaultChecked=!!y),p!=null&&(e.checked=p&&typeof p!="function"&&typeof p!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+Pt(_):e.removeAttribute("name")}function zu(e,n,o,s,p,y,w,_){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.type=y),n!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||n!=null)){dl(e);return}o=o!=null?""+Pt(o):"",n=n!=null?""+Pt(n):o,_||n===e.value||(e.value=n),e.defaultValue=n}s=s??p,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=_?e.checked:!!s,e.defaultChecked=!!s,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(e.name=w),dl(e)}function hl(e,n,o){n==="number"&&Ki(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function wr(e,n,o,s){if(e=e.options,n){n={};for(var p=0;p<o.length;p++)n["$"+o[p]]=!0;for(o=0;o<e.length;o++)p=n.hasOwnProperty("$"+e[o].value),e[o].selected!==p&&(e[o].selected=p),p&&s&&(e[o].defaultSelected=!0)}else{for(o=""+Pt(o),n=null,p=0;p<e.length;p++){if(e[p].value===o){e[p].selected=!0,s&&(e[p].defaultSelected=!0);return}n!==null||e[p].disabled||(n=e[p])}n!==null&&(n.selected=!0)}}function Du(e,n,o){if(n!=null&&(n=""+Pt(n),n!==e.value&&(e.value=n),o==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=o!=null?""+Pt(o):""}function Lu(e,n,o,s){if(n==null){if(s!=null){if(o!=null)throw Error(u(92));if(he(s)){if(1<s.length)throw Error(u(93));s=s[0]}o=s}o==null&&(o=""),n=o}o=Pt(n),e.defaultValue=o,s=e.textContent,s===o&&s!==""&&s!==null&&(e.value=s),dl(e)}function Ar(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Ad=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 Mu(e,n,o){var s=n.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,o):typeof o!="number"||o===0||Ad.has(n)?n==="float"?e.cssFloat=o:e[n]=(""+o).trim():e[n]=o+"px"}function Iu(e,n,o){if(n!=null&&typeof n!="object")throw Error(u(62));if(e=e.style,o!=null){for(var s in o)!o.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var p in n)s=n[p],n.hasOwnProperty(p)&&o[p]!==s&&Mu(e,p,s)}else for(var y in n)n.hasOwnProperty(y)&&Mu(e,y,n[y])}function ml(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 Cd=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"]]),Td=/^[\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 Ji(e){return Td.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function hn(){}var gl=null;function yl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cr=null,Tr=null;function Bu(e){var n=Sr(e);if(n&&(e=n.stateNode)){var o=e[Rt]||null;e:switch(e=n.stateNode,n.type){case"input":if(pl(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Yt(""+n)+'"][type="radio"]'),n=0;n<o.length;n++){var s=o[n];if(s!==e&&s.form===e.form){var p=s[Rt]||null;if(!p)throw Error(u(90));pl(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(n=0;n<o.length;n++)s=o[n],s.form===e.form&&Ou(s)}break e;case"textarea":Du(e,o.value,o.defaultValue);break e;case"select":n=o.value,n!=null&&wr(e,!!o.multiple,n,!1)}}}var xl=!1;function Uu(e,n,o){if(xl)return e(n,o);xl=!0;try{var s=e(n);return s}finally{if(xl=!1,(Cr!==null||Tr!==null)&&(Ua(),Cr&&(n=Cr,e=Tr,Tr=Cr=null,Bu(n),e)))for(n=0;n<e.length;n++)Bu(e[n])}}function oi(e,n){var o=e.stateNode;if(o===null)return null;var s=o[Rt]||null;if(s===null)return null;o=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(u(231,n,typeof o));return o}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bl=!1;if(mn)try{var ui={};Object.defineProperty(ui,"passive",{get:function(){bl=!0}}),window.addEventListener("test",ui,ui),window.removeEventListener("test",ui,ui)}catch{bl=!1}var On=null,vl=null,Wi=null;function qu(){if(Wi)return Wi;var e,n=vl,o=n.length,s,p="value"in On?On.value:On.textContent,y=p.length;for(e=0;e<o&&n[e]===p[e];e++);var w=o-e;for(s=1;s<=w&&n[o-s]===p[y-s];s++);return Wi=p.slice(e,1<s?1-s:void 0)}function ea(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ta(){return!0}function Zu(){return!1}function jt(e){function n(o,s,p,y,w){this._reactName=o,this._targetInst=p,this.type=s,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(o=e[_],this[_]=o?o(y):y[_]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ta:Zu,this.isPropagationStopped=Zu,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ta)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ta)},persist:function(){},isPersistent:ta}),n}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},na=jt(rr),si=S({},rr,{view:0,detail:0}),_d=jt(si),Sl,El,ci,ra=S({},si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wl,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!==ci&&(ci&&e.type==="mousemove"?(Sl=e.screenX-ci.screenX,El=e.screenY-ci.screenY):El=Sl=0,ci=e),Sl)},movementY:function(e){return"movementY"in e?e.movementY:El}}),Fu=jt(ra),Rd=S({},ra,{dataTransfer:0}),jd=jt(Rd),Nd=S({},si,{relatedTarget:0}),kl=jt(Nd),Od=S({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),zd=jt(Od),Dd=S({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ld=jt(Dd),Md=S({},rr,{data:0}),Vu=jt(Md),Id={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bd={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"},Ud={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qd(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Ud[e])?!!n[e]:!1}function wl(){return qd}var Zd=S({},si,{key:function(e){if(e.key){var n=Id[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ea(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Bd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wl,charCode:function(e){return e.type==="keypress"?ea(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ea(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fd=jt(Zd),Vd=S({},ra,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hu=jt(Vd),Hd=S({},si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wl}),Pd=jt(Hd),Yd=S({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gd=jt(Yd),$d=S({},ra,{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}),Qd=jt($d),Xd=S({},rr,{newState:0,oldState:0}),Kd=jt(Xd),Jd=[9,13,27,32],Al=mn&&"CompositionEvent"in window,fi=null;mn&&"documentMode"in document&&(fi=document.documentMode);var Wd=mn&&"TextEvent"in window&&!fi,Pu=mn&&(!Al||fi&&8<fi&&11>=fi),Yu=" ",Gu=!1;function $u(e,n){switch(e){case"keyup":return Jd.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _r=!1;function ep(e,n){switch(e){case"compositionend":return Qu(n);case"keypress":return n.which!==32?null:(Gu=!0,Yu);case"textInput":return e=n.data,e===Yu&&Gu?null:e;default:return null}}function tp(e,n){if(_r)return e==="compositionend"||!Al&&$u(e,n)?(e=qu(),Wi=vl=On=null,_r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Pu&&n.locale!=="ko"?null:n.data;default:return null}}var np={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 Xu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!np[e.type]:n==="textarea"}function Ku(e,n,o,s){Cr?Tr?Tr.push(s):Tr=[s]:Cr=s,n=Ya(n,"onChange"),0<n.length&&(o=new na("onChange","change",null,o,s),e.push({event:o,listeners:n}))}var di=null,pi=null;function rp(e){Df(e,0)}function ia(e){var n=li(e);if(Ou(n))return e}function Ju(e,n){if(e==="change")return n}var Wu=!1;if(mn){var Cl;if(mn){var Tl="oninput"in document;if(!Tl){var es=document.createElement("div");es.setAttribute("oninput","return;"),Tl=typeof es.oninput=="function"}Cl=Tl}else Cl=!1;Wu=Cl&&(!document.documentMode||9<document.documentMode)}function ts(){di&&(di.detachEvent("onpropertychange",ns),pi=di=null)}function ns(e){if(e.propertyName==="value"&&ia(pi)){var n=[];Ku(n,pi,e,yl(e)),Uu(rp,n)}}function ip(e,n,o){e==="focusin"?(ts(),di=n,pi=o,di.attachEvent("onpropertychange",ns)):e==="focusout"&&ts()}function ap(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ia(pi)}function lp(e,n){if(e==="click")return ia(n)}function op(e,n){if(e==="input"||e==="change")return ia(n)}function up(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Mt=typeof Object.is=="function"?Object.is:up;function hi(e,n){if(Mt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var p=o[s];if(!Vt.call(n,p)||!Mt(e[p],n[p]))return!1}return!0}function rs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function is(e,n){var o=rs(e);e=0;for(var s;o;){if(o.nodeType===3){if(s=e+o.textContent.length,e<=n&&s>=n)return{node:o,offset:n-e};e=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=rs(o)}}function as(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?as(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ls(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ki(e.document);n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Ki(e.document)}return n}function _l(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var sp=mn&&"documentMode"in document&&11>=document.documentMode,Rr=null,Rl=null,mi=null,jl=!1;function os(e,n,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;jl||Rr==null||Rr!==Ki(s)||(s=Rr,"selectionStart"in s&&_l(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),mi&&hi(mi,s)||(mi=s,s=Ya(Rl,"onSelect"),0<s.length&&(n=new na("onSelect","select",null,n,o),e.push({event:n,listeners:s}),n.target=Rr)))}function ir(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var jr={animationend:ir("Animation","AnimationEnd"),animationiteration:ir("Animation","AnimationIteration"),animationstart:ir("Animation","AnimationStart"),transitionrun:ir("Transition","TransitionRun"),transitionstart:ir("Transition","TransitionStart"),transitioncancel:ir("Transition","TransitionCancel"),transitionend:ir("Transition","TransitionEnd")},Nl={},us={};mn&&(us=document.createElement("div").style,"AnimationEvent"in window||(delete jr.animationend.animation,delete jr.animationiteration.animation,delete jr.animationstart.animation),"TransitionEvent"in window||delete jr.transitionend.transition);function ar(e){if(Nl[e])return Nl[e];if(!jr[e])return e;var n=jr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in us)return Nl[e]=n[o];return e}var ss=ar("animationend"),cs=ar("animationiteration"),fs=ar("animationstart"),cp=ar("transitionrun"),fp=ar("transitionstart"),dp=ar("transitioncancel"),ds=ar("transitionend"),ps=new Map,Ol="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(" ");Ol.push("scrollEnd");function nn(e,n){ps.set(e,n),nr(n,[e])}var aa=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process$1=="object"&&typeof process$1.emit=="function"){process$1.emit("uncaughtException",e);return}console.error(e)},Gt=[],Nr=0,zl=0;function la(){for(var e=Nr,n=zl=Nr=0;n<e;){var o=Gt[n];Gt[n++]=null;var s=Gt[n];Gt[n++]=null;var p=Gt[n];Gt[n++]=null;var y=Gt[n];if(Gt[n++]=null,s!==null&&p!==null){var w=s.pending;w===null?p.next=p:(p.next=w.next,w.next=p),s.pending=p}y!==0&&hs(o,p,y)}}function oa(e,n,o,s){Gt[Nr++]=e,Gt[Nr++]=n,Gt[Nr++]=o,Gt[Nr++]=s,zl|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Dl(e,n,o,s){return oa(e,n,o,s),ua(e)}function lr(e,n){return oa(e,null,null,n),ua(e)}function hs(e,n,o){e.lanes|=o;var s=e.alternate;s!==null&&(s.lanes|=o);for(var p=!1,y=e.return;y!==null;)y.childLanes|=o,s=y.alternate,s!==null&&(s.childLanes|=o),y.tag===22&&(e=y.stateNode,e===null||e._visibility&1||(p=!0)),e=y,y=y.return;return e.tag===3?(y=e.stateNode,p&&n!==null&&(p=31-D(o),e=y.hiddenUpdates,s=e[p],s===null?e[p]=[n]:s.push(n),n.lane=o|536870912),y):null}function ua(e){if(50<Ii)throw Ii=0,Ho=null,Error(u(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Or={};function pp(e,n,o,s){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,n,o,s){return new pp(e,n,o,s)}function Ll(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gn(e,n){var o=e.alternate;return o===null?(o=It(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o}function ms(e,n){e.flags&=65011714;var o=e.alternate;return o===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,n=o.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function sa(e,n,o,s,p,y){var w=0;if(s=e,typeof e=="function")Ll(e)&&(w=1);else if(typeof e=="string")w=xh(e,o,ge.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ke:return e=It(31,o,n,p),e.elementType=ke,e.lanes=y,e;case F:return or(o.children,p,y,n);case P:w=8,p|=24;break;case q:return e=It(12,o,n,p|2),e.elementType=q,e.lanes=y,e;case ye:return e=It(13,o,n,p),e.elementType=ye,e.lanes=y,e;case $:return e=It(19,o,n,p),e.elementType=$,e.lanes=y,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:w=10;break e;case ie:w=9;break e;case pe:w=11;break e;case be:w=14;break e;case ue:w=16,s=null;break e}w=29,o=Error(u(130,e===null?"null":typeof e,"")),s=null}return n=It(w,o,n,p),n.elementType=e,n.type=s,n.lanes=y,n}function or(e,n,o,s){return e=It(7,e,s,n),e.lanes=o,e}function Ml(e,n,o){return e=It(6,e,null,n),e.lanes=o,e}function gs(e){var n=It(18,null,null,0);return n.stateNode=e,n}function Il(e,n,o){return n=It(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ys=new WeakMap;function $t(e,n){if(typeof e=="object"&&e!==null){var o=ys.get(e);return o!==void 0?o:(n={value:e,source:n,stack:wt(n)},ys.set(e,n),n)}return{value:e,source:n,stack:wt(n)}}var zr=[],Dr=0,ca=null,gi=0,Qt=[],Xt=0,zn=null,un=1,sn="";function yn(e,n){zr[Dr++]=gi,zr[Dr++]=ca,ca=e,gi=n}function xs(e,n,o){Qt[Xt++]=un,Qt[Xt++]=sn,Qt[Xt++]=zn,zn=e;var s=un;e=sn;var p=32-D(s)-1;s&=~(1<<p),o+=1;var y=32-D(n)+p;if(30<y){var w=p-p%5;y=(s&(1<<w)-1).toString(32),s>>=w,p-=w,un=1<<32-D(n)+p|o<<p|s,sn=y+e}else un=1<<y|o<<p|s,sn=e}function Bl(e){e.return!==null&&(yn(e,1),xs(e,1,0))}function Ul(e){for(;e===ca;)ca=zr[--Dr],zr[Dr]=null,gi=zr[--Dr],zr[Dr]=null;for(;e===zn;)zn=Qt[--Xt],Qt[Xt]=null,sn=Qt[--Xt],Qt[Xt]=null,un=Qt[--Xt],Qt[Xt]=null}function bs(e,n){Qt[Xt++]=un,Qt[Xt++]=sn,Qt[Xt++]=zn,un=n.id,sn=n.overflow,zn=e}var bt=null,We=null,Ze=!1,Dn=null,Kt=!1,ql=Error(u(519));function Ln(e){var n=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yi($t(n,e)),ql}function vs(e){var n=e.stateNode,o=e.type,s=e.memoizedProps;switch(n[xt]=e,n[Rt]=s,o){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(o=0;o<Ui.length;o++)Ie(Ui[o],n);break;case"source":Ie("error",n);break;case"img":case"image":case"link":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"input":Ie("invalid",n),zu(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ie("invalid",n);break;case"textarea":Ie("invalid",n),Lu(n,s.value,s.defaultValue,s.children)}o=s.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||n.textContent===""+o||s.suppressHydrationWarning===!0||Bf(n.textContent,o)?(s.popover!=null&&(Ie("beforetoggle",n),Ie("toggle",n)),s.onScroll!=null&&Ie("scroll",n),s.onScrollEnd!=null&&Ie("scrollend",n),s.onClick!=null&&(n.onclick=hn),n=!0):n=!1,n||Ln(e,!0)}function Ss(e){for(bt=e.return;bt;)switch(bt.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:bt=bt.return}}function Lr(e){if(e!==bt)return!1;if(!Ze)return Ss(e),Ze=!0,!1;var n=e.tag,o;if((o=n!==3&&n!==27)&&((o=n===5)&&(o=e.type,o=!(o!=="form"&&o!=="button")||au(e.type,e.memoizedProps)),o=!o),o&&We&&Ln(e),Ss(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));We=Gf(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));We=Gf(e)}else n===27?(n=We,Qn(e.type)?(e=cu,cu=null,We=e):We=n):We=bt?Wt(e.stateNode.nextSibling):null;return!0}function ur(){We=bt=null,Ze=!1}function Zl(){var e=Dn;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),Dn=null),e}function yi(e){Dn===null?Dn=[e]:Dn.push(e)}var Fl=I(null),sr=null,xn=null;function Mn(e,n,o){j(Fl,n._currentValue),n._currentValue=o}function bn(e){e._currentValue=Fl.current,ne(Fl)}function Vl(e,n,o){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===o)break;e=e.return}}function Hl(e,n,o,s){var p=e.child;for(p!==null&&(p.return=e);p!==null;){var y=p.dependencies;if(y!==null){var w=p.child;y=y.firstContext;e:for(;y!==null;){var _=y;y=p;for(var M=0;M<n.length;M++)if(_.context===n[M]){y.lanes|=o,_=y.alternate,_!==null&&(_.lanes|=o),Vl(y.return,o,e),s||(w=null);break e}y=_.next}}else if(p.tag===18){if(w=p.return,w===null)throw Error(u(341));w.lanes|=o,y=w.alternate,y!==null&&(y.lanes|=o),Vl(w,o,e),w=null}else w=p.child;if(w!==null)w.return=p;else for(w=p;w!==null;){if(w===e){w=null;break}if(p=w.sibling,p!==null){p.return=w.return,w=p;break}w=w.return}p=w}}function Mr(e,n,o,s){e=null;for(var p=n,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var w=p.alternate;if(w===null)throw Error(u(387));if(w=w.memoizedProps,w!==null){var _=p.type;Mt(p.pendingProps.value,w.value)||(e!==null?e.push(_):e=[_])}}else if(p===Oe.current){if(w=p.alternate,w===null)throw Error(u(387));w.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(e!==null?e.push(Hi):e=[Hi])}p=p.return}e!==null&&Hl(n,e,o,s),n.flags|=262144}function fa(e){for(e=e.firstContext;e!==null;){if(!Mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cr(e){sr=e,xn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Es(sr,e)}function da(e,n){return sr===null&&cr(e),Es(e,n)}function Es(e,n){var o=n._currentValue;if(n={context:n,memoizedValue:o,next:null},xn===null){if(e===null)throw Error(u(308));xn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else xn=xn.next=n;return o}var hp=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(o,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(o){return o()})}},mp=t.unstable_scheduleCallback,gp=t.unstable_NormalPriority,ct={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pl(){return{controller:new hp,data:new Map,refCount:0}}function xi(e){e.refCount--,e.refCount===0&&mp(gp,function(){e.controller.abort()})}var bi=null,Yl=0,Ir=0,Br=null;function yp(e,n){if(bi===null){var o=bi=[];Yl=0,Ir=Xo(),Br={status:"pending",value:void 0,then:function(s){o.push(s)}}}return Yl++,n.then(ks,ks),n}function ks(){if(--Yl===0&&bi!==null){Br!==null&&(Br.status="fulfilled");var e=bi;bi=null,Ir=0,Br=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function xp(e,n){var o=[],s={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var p=0;p<o.length;p++)(0,o[p])(n)},function(p){for(s.status="rejected",s.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),s}var ws=H.S;H.S=function(e,n){uf=Je(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&yp(e,n),ws!==null&&ws(e,n)};var fr=I(null);function Gl(){var e=fr.current;return e!==null?e:Xe.pooledCache}function pa(e,n){n===null?j(fr,fr.current):j(fr,n.pool)}function As(){var e=Gl();return e===null?null:{parent:ct._currentValue,pool:e}}var Ur=Error(u(460)),$l=Error(u(474)),ha=Error(u(542)),ma={then:function(){}};function Cs(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ts(e,n,o){switch(o=e[o],o===void 0?e.push(n):o!==n&&(n.then(hn,hn),n=o),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Rs(e),e;default:if(typeof n.status=="string")n.then(hn,hn);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var p=n;p.status="fulfilled",p.value=s}},function(s){if(n.status==="pending"){var p=n;p.status="rejected",p.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Rs(e),e}throw pr=n,Ur}}function dr(e){try{var n=e._init;return n(e._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(pr=o,Ur):o}}var pr=null;function _s(){if(pr===null)throw Error(u(459));var e=pr;return pr=null,e}function Rs(e){if(e===Ur||e===ha)throw Error(u(483))}var qr=null,vi=0;function ga(e){var n=vi;return vi+=1,qr===null&&(qr=[]),Ts(qr,e,n)}function Si(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function ya(e,n){throw n.$$typeof===A?Error(u(525)):(e=Object.prototype.toString.call(n),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function js(e){function n(V,B){if(e){var Y=V.deletions;Y===null?(V.deletions=[B],V.flags|=16):Y.push(B)}}function o(V,B){if(!e)return null;for(;B!==null;)n(V,B),B=B.sibling;return null}function s(V){for(var B=new Map;V!==null;)V.key!==null?B.set(V.key,V):B.set(V.index,V),V=V.sibling;return B}function p(V,B){return V=gn(V,B),V.index=0,V.sibling=null,V}function y(V,B,Y){return V.index=Y,e?(Y=V.alternate,Y!==null?(Y=Y.index,Y<B?(V.flags|=67108866,B):Y):(V.flags|=67108866,B)):(V.flags|=1048576,B)}function w(V){return e&&V.alternate===null&&(V.flags|=67108866),V}function _(V,B,Y,ce){return B===null||B.tag!==6?(B=Ml(Y,V.mode,ce),B.return=V,B):(B=p(B,Y),B.return=V,B)}function M(V,B,Y,ce){var je=Y.type;return je===F?le(V,B,Y.props.children,ce,Y.key):B!==null&&(B.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===ue&&dr(je)===B.type)?(B=p(B,Y.props),Si(B,Y),B.return=V,B):(B=sa(Y.type,Y.key,Y.props,null,V.mode,ce),Si(B,Y),B.return=V,B)}function G(V,B,Y,ce){return B===null||B.tag!==4||B.stateNode.containerInfo!==Y.containerInfo||B.stateNode.implementation!==Y.implementation?(B=Il(Y,V.mode,ce),B.return=V,B):(B=p(B,Y.children||[]),B.return=V,B)}function le(V,B,Y,ce,je){return B===null||B.tag!==7?(B=or(Y,V.mode,ce,je),B.return=V,B):(B=p(B,Y),B.return=V,B)}function fe(V,B,Y){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=Ml(""+B,V.mode,Y),B.return=V,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case C:return Y=sa(B.type,B.key,B.props,null,V.mode,Y),Si(Y,B),Y.return=V,Y;case O:return B=Il(B,V.mode,Y),B.return=V,B;case ue:return B=dr(B),fe(V,B,Y)}if(he(B)||ee(B))return B=or(B,V.mode,Y,null),B.return=V,B;if(typeof B.then=="function")return fe(V,ga(B),Y);if(B.$$typeof===K)return fe(V,da(V,B),Y);ya(V,B)}return null}function Q(V,B,Y,ce){var je=B!==null?B.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return je!==null?null:_(V,B,""+Y,ce);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case C:return Y.key===je?M(V,B,Y,ce):null;case O:return Y.key===je?G(V,B,Y,ce):null;case ue:return Y=dr(Y),Q(V,B,Y,ce)}if(he(Y)||ee(Y))return je!==null?null:le(V,B,Y,ce,null);if(typeof Y.then=="function")return Q(V,B,ga(Y),ce);if(Y.$$typeof===K)return Q(V,B,da(V,Y),ce);ya(V,Y)}return null}function W(V,B,Y,ce,je){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return V=V.get(Y)||null,_(B,V,""+ce,je);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case C:return V=V.get(ce.key===null?Y:ce.key)||null,M(B,V,ce,je);case O:return V=V.get(ce.key===null?Y:ce.key)||null,G(B,V,ce,je);case ue:return ce=dr(ce),W(V,B,Y,ce,je)}if(he(ce)||ee(ce))return V=V.get(Y)||null,le(B,V,ce,je,null);if(typeof ce.then=="function")return W(V,B,Y,ga(ce),je);if(ce.$$typeof===K)return W(V,B,Y,da(B,ce),je);ya(B,ce)}return null}function Ce(V,B,Y,ce){for(var je=null,Fe=null,_e=B,Le=B=0,Ue=null;_e!==null&&Le<Y.length;Le++){_e.index>Le?(Ue=_e,_e=null):Ue=_e.sibling;var Ve=Q(V,_e,Y[Le],ce);if(Ve===null){_e===null&&(_e=Ue);break}e&&_e&&Ve.alternate===null&&n(V,_e),B=y(Ve,B,Le),Fe===null?je=Ve:Fe.sibling=Ve,Fe=Ve,_e=Ue}if(Le===Y.length)return o(V,_e),Ze&&yn(V,Le),je;if(_e===null){for(;Le<Y.length;Le++)_e=fe(V,Y[Le],ce),_e!==null&&(B=y(_e,B,Le),Fe===null?je=_e:Fe.sibling=_e,Fe=_e);return Ze&&yn(V,Le),je}for(_e=s(_e);Le<Y.length;Le++)Ue=W(_e,V,Le,Y[Le],ce),Ue!==null&&(e&&Ue.alternate!==null&&_e.delete(Ue.key===null?Le:Ue.key),B=y(Ue,B,Le),Fe===null?je=Ue:Fe.sibling=Ue,Fe=Ue);return e&&_e.forEach(function(er){return n(V,er)}),Ze&&yn(V,Le),je}function ze(V,B,Y,ce){if(Y==null)throw Error(u(151));for(var je=null,Fe=null,_e=B,Le=B=0,Ue=null,Ve=Y.next();_e!==null&&!Ve.done;Le++,Ve=Y.next()){_e.index>Le?(Ue=_e,_e=null):Ue=_e.sibling;var er=Q(V,_e,Ve.value,ce);if(er===null){_e===null&&(_e=Ue);break}e&&_e&&er.alternate===null&&n(V,_e),B=y(er,B,Le),Fe===null?je=er:Fe.sibling=er,Fe=er,_e=Ue}if(Ve.done)return o(V,_e),Ze&&yn(V,Le),je;if(_e===null){for(;!Ve.done;Le++,Ve=Y.next())Ve=fe(V,Ve.value,ce),Ve!==null&&(B=y(Ve,B,Le),Fe===null?je=Ve:Fe.sibling=Ve,Fe=Ve);return Ze&&yn(V,Le),je}for(_e=s(_e);!Ve.done;Le++,Ve=Y.next())Ve=W(_e,V,Le,Ve.value,ce),Ve!==null&&(e&&Ve.alternate!==null&&_e.delete(Ve.key===null?Le:Ve.key),B=y(Ve,B,Le),Fe===null?je=Ve:Fe.sibling=Ve,Fe=Ve);return e&&_e.forEach(function(Rh){return n(V,Rh)}),Ze&&yn(V,Le),je}function Qe(V,B,Y,ce){if(typeof Y=="object"&&Y!==null&&Y.type===F&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case C:e:{for(var je=Y.key;B!==null;){if(B.key===je){if(je=Y.type,je===F){if(B.tag===7){o(V,B.sibling),ce=p(B,Y.props.children),ce.return=V,V=ce;break e}}else if(B.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===ue&&dr(je)===B.type){o(V,B.sibling),ce=p(B,Y.props),Si(ce,Y),ce.return=V,V=ce;break e}o(V,B);break}else n(V,B);B=B.sibling}Y.type===F?(ce=or(Y.props.children,V.mode,ce,Y.key),ce.return=V,V=ce):(ce=sa(Y.type,Y.key,Y.props,null,V.mode,ce),Si(ce,Y),ce.return=V,V=ce)}return w(V);case O:e:{for(je=Y.key;B!==null;){if(B.key===je)if(B.tag===4&&B.stateNode.containerInfo===Y.containerInfo&&B.stateNode.implementation===Y.implementation){o(V,B.sibling),ce=p(B,Y.children||[]),ce.return=V,V=ce;break e}else{o(V,B);break}else n(V,B);B=B.sibling}ce=Il(Y,V.mode,ce),ce.return=V,V=ce}return w(V);case ue:return Y=dr(Y),Qe(V,B,Y,ce)}if(he(Y))return Ce(V,B,Y,ce);if(ee(Y)){if(je=ee(Y),typeof je!="function")throw Error(u(150));return Y=je.call(Y),ze(V,B,Y,ce)}if(typeof Y.then=="function")return Qe(V,B,ga(Y),ce);if(Y.$$typeof===K)return Qe(V,B,da(V,Y),ce);ya(V,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,B!==null&&B.tag===6?(o(V,B.sibling),ce=p(B,Y),ce.return=V,V=ce):(o(V,B),ce=Ml(Y,V.mode,ce),ce.return=V,V=ce),w(V)):o(V,B)}return function(V,B,Y,ce){try{vi=0;var je=Qe(V,B,Y,ce);return qr=null,je}catch(_e){if(_e===Ur||_e===ha)throw _e;var Fe=It(29,_e,null,V.mode);return Fe.lanes=ce,Fe.return=V,Fe}finally{}}}var hr=js(!0),Ns=js(!1),In=!1;function Ql(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xl(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Bn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Un(e,n,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(He&2)!==0){var p=s.pending;return p===null?n.next=n:(n.next=p.next,p.next=n),s.pending=n,n=ua(e),hs(e,null,o),n}return oa(e,s,n,o),ua(e)}function Ei(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,Eu(e,o)}}function Kl(e,n){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var p=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var w={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?p=y=w:y=y.next=w,o=o.next}while(o!==null);y===null?p=y=n:y=y.next=n}else p=y=n;o={baseState:s.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:s.shared,callbacks:s.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}var Jl=!1;function ki(){if(Jl){var e=Br;if(e!==null)throw e}}function wi(e,n,o,s){Jl=!1;var p=e.updateQueue;In=!1;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,_=p.shared.pending;if(_!==null){p.shared.pending=null;var M=_,G=M.next;M.next=null,w===null?y=G:w.next=G,w=M;var le=e.alternate;le!==null&&(le=le.updateQueue,_=le.lastBaseUpdate,_!==w&&(_===null?le.firstBaseUpdate=G:_.next=G,le.lastBaseUpdate=M))}if(y!==null){var fe=p.baseState;w=0,le=G=M=null,_=y;do{var Q=_.lane&-536870913,W=Q!==_.lane;if(W?(Be&Q)===Q:(s&Q)===Q){Q!==0&&Q===Ir&&(Jl=!0),le!==null&&(le=le.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var Ce=e,ze=_;Q=n;var Qe=o;switch(ze.tag){case 1:if(Ce=ze.payload,typeof Ce=="function"){fe=Ce.call(Qe,fe,Q);break e}fe=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=ze.payload,Q=typeof Ce=="function"?Ce.call(Qe,fe,Q):Ce,Q==null)break e;fe=S({},fe,Q);break e;case 2:In=!0}}Q=_.callback,Q!==null&&(e.flags|=64,W&&(e.flags|=8192),W=p.callbacks,W===null?p.callbacks=[Q]:W.push(Q))}else W={lane:Q,tag:_.tag,payload:_.payload,callback:_.callback,next:null},le===null?(G=le=W,M=fe):le=le.next=W,w|=Q;if(_=_.next,_===null){if(_=p.shared.pending,_===null)break;W=_,_=W.next,W.next=null,p.lastBaseUpdate=W,p.shared.pending=null}}while(!0);le===null&&(M=fe),p.baseState=M,p.firstBaseUpdate=G,p.lastBaseUpdate=le,y===null&&(p.shared.lanes=0),Hn|=w,e.lanes=w,e.memoizedState=fe}}function Os(e,n){if(typeof e!="function")throw Error(u(191,e));e.call(n)}function zs(e,n){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)Os(o[e],n)}var Zr=I(null),xa=I(0);function Ds(e,n){e=_n,j(xa,e),j(Zr,n),_n=e|n.baseLanes}function Wl(){j(xa,_n),j(Zr,Zr.current)}function eo(){_n=xa.current,ne(Zr),ne(xa)}var Bt=I(null),Jt=null;function qn(e){var n=e.alternate;j(ot,ot.current&1),j(Bt,e),Jt===null&&(n===null||Zr.current!==null||n.memoizedState!==null)&&(Jt=e)}function to(e){j(ot,ot.current),j(Bt,e),Jt===null&&(Jt=e)}function Ls(e){e.tag===22?(j(ot,ot.current),j(Bt,e),Jt===null&&(Jt=e)):Zn()}function Zn(){j(ot,ot.current),j(Bt,Bt.current)}function Ut(e){ne(Bt),Jt===e&&(Jt=null),ne(ot)}var ot=I(0);function ba(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||uu(o)||su(o)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var vn=0,De=null,Ge=null,ft=null,va=!1,Fr=!1,mr=!1,Sa=0,Ai=0,Vr=null,bp=0;function rt(){throw Error(u(321))}function no(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!Mt(e[o],n[o]))return!1;return!0}function ro(e,n,o,s,p,y){return vn=y,De=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,H.H=e===null||e.memoizedState===null?xc:bo,mr=!1,y=o(s,p),mr=!1,Fr&&(y=Is(n,o,s,p)),Ms(e),y}function Ms(e){H.H=_i;var n=Ge!==null&&Ge.next!==null;if(vn=0,ft=Ge=De=null,va=!1,Ai=0,Vr=null,n)throw Error(u(300));e===null||dt||(e=e.dependencies,e!==null&&fa(e)&&(dt=!0))}function Is(e,n,o,s){De=e;var p=0;do{if(Fr&&(Vr=null),Ai=0,Fr=!1,25<=p)throw Error(u(301));if(p+=1,ft=Ge=null,e.updateQueue!=null){var y=e.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}H.H=bc,y=n(o,s)}while(Fr);return y}function vp(){var e=H.H,n=e.useState()[0];return n=typeof n.then=="function"?Ci(n):n,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(De.flags|=1024),n}function io(){var e=Sa!==0;return Sa=0,e}function ao(e,n,o){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~o}function lo(e){if(va){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}va=!1}vn=0,ft=Ge=De=null,Fr=!1,Ai=Sa=0,Vr=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?De.memoizedState=ft=e:ft=ft.next=e,ft}function ut(){if(Ge===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var n=ft===null?De.memoizedState:ft.next;if(n!==null)ft=n,Ge=e;else{if(e===null)throw De.alternate===null?Error(u(467)):Error(u(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},ft===null?De.memoizedState=ft=e:ft=ft.next=e}return ft}function Ea(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ci(e){var n=Ai;return Ai+=1,Vr===null&&(Vr=[]),e=Ts(Vr,e,n),n=De,(ft===null?n.memoizedState:ft.next)===null&&(n=n.alternate,H.H=n===null||n.memoizedState===null?xc:bo),e}function ka(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ci(e);if(e.$$typeof===K)return vt(e)}throw Error(u(438,String(e)))}function oo(e){var n=null,o=De.updateQueue;if(o!==null&&(n=o.memoCache),n==null){var s=De.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(p){return p.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),o===null&&(o=Ea(),De.updateQueue=o),o.memoCache=n,o=n.data[n.index],o===void 0)for(o=n.data[n.index]=Array(e),s=0;s<e;s++)o[s]=Z;return n.index++,o}function Sn(e,n){return typeof n=="function"?n(e):n}function wa(e){var n=ut();return uo(n,Ge,e)}function uo(e,n,o){var s=e.queue;if(s===null)throw Error(u(311));s.lastRenderedReducer=o;var p=e.baseQueue,y=s.pending;if(y!==null){if(p!==null){var w=p.next;p.next=y.next,y.next=w}n.baseQueue=p=y,s.pending=null}if(y=e.baseState,p===null)e.memoizedState=y;else{n=p.next;var _=w=null,M=null,G=n,le=!1;do{var fe=G.lane&-536870913;if(fe!==G.lane?(Be&fe)===fe:(vn&fe)===fe){var Q=G.revertLane;if(Q===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),fe===Ir&&(le=!0);else if((vn&Q)===Q){G=G.next,Q===Ir&&(le=!0);continue}else fe={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},M===null?(_=M=fe,w=y):M=M.next=fe,De.lanes|=Q,Hn|=Q;fe=G.action,mr&&o(y,fe),y=G.hasEagerState?G.eagerState:o(y,fe)}else Q={lane:fe,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},M===null?(_=M=Q,w=y):M=M.next=Q,De.lanes|=fe,Hn|=fe;G=G.next}while(G!==null&&G!==n);if(M===null?w=y:M.next=_,!Mt(y,e.memoizedState)&&(dt=!0,le&&(o=Br,o!==null)))throw o;e.memoizedState=y,e.baseState=w,e.baseQueue=M,s.lastRenderedState=y}return p===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function so(e){var n=ut(),o=n.queue;if(o===null)throw Error(u(311));o.lastRenderedReducer=e;var s=o.dispatch,p=o.pending,y=n.memoizedState;if(p!==null){o.pending=null;var w=p=p.next;do y=e(y,w.action),w=w.next;while(w!==p);Mt(y,n.memoizedState)||(dt=!0),n.memoizedState=y,n.baseQueue===null&&(n.baseState=y),o.lastRenderedState=y}return[y,s]}function Bs(e,n,o){var s=De,p=ut(),y=Ze;if(y){if(o===void 0)throw Error(u(407));o=o()}else o=n();var w=!Mt((Ge||p).memoizedState,o);if(w&&(p.memoizedState=o,dt=!0),p=p.queue,po(Zs.bind(null,s,p,e),[e]),p.getSnapshot!==n||w||ft!==null&&ft.memoizedState.tag&1){if(s.flags|=2048,Hr(9,{destroy:void 0},qs.bind(null,s,p,o,n),null),Xe===null)throw Error(u(349));y||(vn&127)!==0||Us(s,n,o)}return o}function Us(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=De.updateQueue,n===null?(n=Ea(),De.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function qs(e,n,o,s){n.value=o,n.getSnapshot=s,Fs(n)&&Vs(e)}function Zs(e,n,o){return o(function(){Fs(n)&&Vs(e)})}function Fs(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!Mt(e,o)}catch{return!0}}function Vs(e){var n=lr(e,2);n!==null&&Lt(n,e,2)}function co(e){var n=Ct();if(typeof e=="function"){var o=e;if(e=o(),mr){L(!0);try{o()}finally{L(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:e},n}function Hs(e,n,o,s){return e.baseState=o,uo(e,Ge,typeof s=="function"?s:Sn)}function Sp(e,n,o,s,p){if(Ta(e))throw Error(u(485));if(e=n.action,e!==null){var y={payload:p,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){y.listeners.push(w)}};H.T!==null?o(!0):y.isTransition=!1,s(y),o=n.pending,o===null?(y.next=n.pending=y,Ps(n,y)):(y.next=o.next,n.pending=o.next=y)}}function Ps(e,n){var o=n.action,s=n.payload,p=e.state;if(n.isTransition){var y=H.T,w={};H.T=w;try{var _=o(p,s),M=H.S;M!==null&&M(w,_),Ys(e,n,_)}catch(G){fo(e,n,G)}finally{y!==null&&w.types!==null&&(y.types=w.types),H.T=y}}else try{y=o(p,s),Ys(e,n,y)}catch(G){fo(e,n,G)}}function Ys(e,n,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(s){Gs(e,n,s)},function(s){return fo(e,n,s)}):Gs(e,n,o)}function Gs(e,n,o){n.status="fulfilled",n.value=o,$s(n),e.state=o,n=e.pending,n!==null&&(o=n.next,o===n?e.pending=null:(o=o.next,n.next=o,Ps(e,o)))}function fo(e,n,o){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=o,$s(n),n=n.next;while(n!==s)}e.action=null}function $s(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Qs(e,n){return n}function Xs(e,n){if(Ze){var o=Xe.formState;if(o!==null){e:{var s=De;if(Ze){if(We){t:{for(var p=We,y=Kt;p.nodeType!==8;){if(!y){p=null;break t}if(p=Wt(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){We=Wt(p.nextSibling),s=p.data==="F!";break e}}Ln(s)}s=!1}s&&(n=o[0])}}return o=Ct(),o.memoizedState=o.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qs,lastRenderedState:n},o.queue=s,o=mc.bind(null,De,s),s.dispatch=o,s=co(!1),y=xo.bind(null,De,!1,s.queue),s=Ct(),p={state:n,dispatch:null,action:e,pending:null},s.queue=p,o=Sp.bind(null,De,p,y,o),p.dispatch=o,s.memoizedState=e,[n,o,!1]}function Ks(e){var n=ut();return Js(n,Ge,e)}function Js(e,n,o){if(n=uo(e,n,Qs)[0],e=wa(Sn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=Ci(n)}catch(w){throw w===Ur?ha:w}else s=n;n=ut();var p=n.queue,y=p.dispatch;return o!==n.memoizedState&&(De.flags|=2048,Hr(9,{destroy:void 0},Ep.bind(null,p,o),null)),[s,y,e]}function Ep(e,n){e.action=n}function Ws(e){var n=ut(),o=Ge;if(o!==null)return Js(n,o,e);ut(),n=n.memoizedState,o=ut();var s=o.queue.dispatch;return o.memoizedState=e,[n,s,!1]}function Hr(e,n,o,s){return e={tag:e,create:o,deps:s,inst:n,next:null},n=De.updateQueue,n===null&&(n=Ea(),De.updateQueue=n),o=n.lastEffect,o===null?n.lastEffect=e.next=e:(s=o.next,o.next=e,e.next=s,n.lastEffect=e),e}function ec(){return ut().memoizedState}function Aa(e,n,o,s){var p=Ct();De.flags|=e,p.memoizedState=Hr(1|n,{destroy:void 0},o,s===void 0?null:s)}function Ca(e,n,o,s){var p=ut();s=s===void 0?null:s;var y=p.memoizedState.inst;Ge!==null&&s!==null&&no(s,Ge.memoizedState.deps)?p.memoizedState=Hr(n,y,o,s):(De.flags|=e,p.memoizedState=Hr(1|n,y,o,s))}function tc(e,n){Aa(8390656,8,e,n)}function po(e,n){Ca(2048,8,e,n)}function kp(e){De.flags|=4;var n=De.updateQueue;if(n===null)n=Ea(),De.updateQueue=n,n.events=[e];else{var o=n.events;o===null?n.events=[e]:o.push(e)}}function nc(e){var n=ut().memoizedState;return kp({ref:n,nextImpl:e}),function(){if((He&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}function rc(e,n){return Ca(4,2,e,n)}function ic(e,n){return Ca(4,4,e,n)}function ac(e,n){if(typeof n=="function"){e=e();var o=n(e);return function(){typeof o=="function"?o():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function lc(e,n,o){o=o!=null?o.concat([e]):null,Ca(4,4,ac.bind(null,n,e),o)}function ho(){}function oc(e,n){var o=ut();n=n===void 0?null:n;var s=o.memoizedState;return n!==null&&no(n,s[1])?s[0]:(o.memoizedState=[e,n],e)}function uc(e,n){var o=ut();n=n===void 0?null:n;var s=o.memoizedState;if(n!==null&&no(n,s[1]))return s[0];if(s=e(),mr){L(!0);try{e()}finally{L(!1)}}return o.memoizedState=[s,n],s}function mo(e,n,o){return o===void 0||(vn&1073741824)!==0&&(Be&261930)===0?e.memoizedState=n:(e.memoizedState=o,e=cf(),De.lanes|=e,Hn|=e,o)}function sc(e,n,o,s){return Mt(o,n)?o:Zr.current!==null?(e=mo(e,o,s),Mt(e,n)||(dt=!0),e):(vn&42)===0||(vn&1073741824)!==0&&(Be&261930)===0?(dt=!0,e.memoizedState=o):(e=cf(),De.lanes|=e,Hn|=e,n)}function cc(e,n,o,s,p){var y=de.p;de.p=y!==0&&8>y?y:8;var w=H.T,_={};H.T=_,xo(e,!1,n,o);try{var M=p(),G=H.S;if(G!==null&&G(_,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var le=xp(M,s);Ti(e,n,le,Ft(e))}else Ti(e,n,s,Ft(e))}catch(fe){Ti(e,n,{then:function(){},status:"rejected",reason:fe},Ft())}finally{de.p=y,w!==null&&_.types!==null&&(w.types=_.types),H.T=w}}function wp(){}function go(e,n,o,s){if(e.tag!==5)throw Error(u(476));var p=fc(e).queue;cc(e,p,n,oe,o===null?wp:function(){return dc(e),o(s)})}function fc(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:oe},next:null};var o={};return n.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:o},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function dc(e){var n=fc(e);n.next===null&&(n=e.alternate.memoizedState),Ti(e,n.next.queue,{},Ft())}function yo(){return vt(Hi)}function pc(){return ut().memoizedState}function hc(){return ut().memoizedState}function Ap(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var o=Ft();e=Bn(o);var s=Un(n,e,o);s!==null&&(Lt(s,n,o),Ei(s,n,o)),n={cache:Pl()},e.payload=n;return}n=n.return}}function Cp(e,n,o){var s=Ft();o={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ta(e)?gc(n,o):(o=Dl(e,n,o,s),o!==null&&(Lt(o,e,s),yc(o,n,s)))}function mc(e,n,o){var s=Ft();Ti(e,n,o,s)}function Ti(e,n,o,s){var p={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ta(e))gc(n,p);else{var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=n.lastRenderedReducer,y!==null))try{var w=n.lastRenderedState,_=y(w,o);if(p.hasEagerState=!0,p.eagerState=_,Mt(_,w))return oa(e,n,p,0),Xe===null&&la(),!1}catch{}finally{}if(o=Dl(e,n,p,s),o!==null)return Lt(o,e,s),yc(o,n,s),!0}return!1}function xo(e,n,o,s){if(s={lane:2,revertLane:Xo(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ta(e)){if(n)throw Error(u(479))}else n=Dl(e,o,s,2),n!==null&&Lt(n,e,2)}function Ta(e){var n=e.alternate;return e===De||n!==null&&n===De}function gc(e,n){Fr=va=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function yc(e,n,o){if((o&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,Eu(e,o)}}var _i={readContext:vt,use:ka,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};_i.useEffectEvent=rt;var xc={readContext:vt,use:ka,useCallback:function(e,n){return Ct().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:tc,useImperativeHandle:function(e,n,o){o=o!=null?o.concat([e]):null,Aa(4194308,4,ac.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Aa(4194308,4,e,n)},useInsertionEffect:function(e,n){Aa(4,2,e,n)},useMemo:function(e,n){var o=Ct();n=n===void 0?null:n;var s=e();if(mr){L(!0);try{e()}finally{L(!1)}}return o.memoizedState=[s,n],s},useReducer:function(e,n,o){var s=Ct();if(o!==void 0){var p=o(n);if(mr){L(!0);try{o(n)}finally{L(!1)}}}else p=n;return s.memoizedState=s.baseState=p,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:p},s.queue=e,e=e.dispatch=Cp.bind(null,De,e),[s.memoizedState,e]},useRef:function(e){var n=Ct();return e={current:e},n.memoizedState=e},useState:function(e){e=co(e);var n=e.queue,o=mc.bind(null,De,n);return n.dispatch=o,[e.memoizedState,o]},useDebugValue:ho,useDeferredValue:function(e,n){var o=Ct();return mo(o,e,n)},useTransition:function(){var e=co(!1);return e=cc.bind(null,De,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,o){var s=De,p=Ct();if(Ze){if(o===void 0)throw Error(u(407));o=o()}else{if(o=n(),Xe===null)throw Error(u(349));(Be&127)!==0||Us(s,n,o)}p.memoizedState=o;var y={value:o,getSnapshot:n};return p.queue=y,tc(Zs.bind(null,s,y,e),[e]),s.flags|=2048,Hr(9,{destroy:void 0},qs.bind(null,s,y,o,n),null),o},useId:function(){var e=Ct(),n=Xe.identifierPrefix;if(Ze){var o=sn,s=un;o=(s&~(1<<32-D(s)-1)).toString(32)+o,n="_"+n+"R_"+o,o=Sa++,0<o&&(n+="H"+o.toString(32)),n+="_"}else o=bp++,n="_"+n+"r_"+o.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:yo,useFormState:Xs,useActionState:Xs,useOptimistic:function(e){var n=Ct();n.memoizedState=n.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=o,n=xo.bind(null,De,!0,o),o.dispatch=n,[e,n]},useMemoCache:oo,useCacheRefresh:function(){return Ct().memoizedState=Ap.bind(null,De)},useEffectEvent:function(e){var n=Ct(),o={impl:e};return n.memoizedState=o,function(){if((He&2)!==0)throw Error(u(440));return o.impl.apply(void 0,arguments)}}},bo={readContext:vt,use:ka,useCallback:oc,useContext:vt,useEffect:po,useImperativeHandle:lc,useInsertionEffect:rc,useLayoutEffect:ic,useMemo:uc,useReducer:wa,useRef:ec,useState:function(){return wa(Sn)},useDebugValue:ho,useDeferredValue:function(e,n){var o=ut();return sc(o,Ge.memoizedState,e,n)},useTransition:function(){var e=wa(Sn)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:Ci(e),n]},useSyncExternalStore:Bs,useId:pc,useHostTransitionStatus:yo,useFormState:Ks,useActionState:Ks,useOptimistic:function(e,n){var o=ut();return Hs(o,Ge,e,n)},useMemoCache:oo,useCacheRefresh:hc};bo.useEffectEvent=nc;var bc={readContext:vt,use:ka,useCallback:oc,useContext:vt,useEffect:po,useImperativeHandle:lc,useInsertionEffect:rc,useLayoutEffect:ic,useMemo:uc,useReducer:so,useRef:ec,useState:function(){return so(Sn)},useDebugValue:ho,useDeferredValue:function(e,n){var o=ut();return Ge===null?mo(o,e,n):sc(o,Ge.memoizedState,e,n)},useTransition:function(){var e=so(Sn)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:Ci(e),n]},useSyncExternalStore:Bs,useId:pc,useHostTransitionStatus:yo,useFormState:Ws,useActionState:Ws,useOptimistic:function(e,n){var o=ut();return Ge!==null?Hs(o,Ge,e,n):(o.baseState=e,[e,o.queue.dispatch])},useMemoCache:oo,useCacheRefresh:hc};bc.useEffectEvent=nc;function vo(e,n,o,s){n=e.memoizedState,o=o(s,n),o=o==null?n:S({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var So={enqueueSetState:function(e,n,o){e=e._reactInternals;var s=Ft(),p=Bn(s);p.payload=n,o!=null&&(p.callback=o),n=Un(e,p,s),n!==null&&(Lt(n,e,s),Ei(n,e,s))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var s=Ft(),p=Bn(s);p.tag=1,p.payload=n,o!=null&&(p.callback=o),n=Un(e,p,s),n!==null&&(Lt(n,e,s),Ei(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=Ft(),s=Bn(o);s.tag=2,n!=null&&(s.callback=n),n=Un(e,s,o),n!==null&&(Lt(n,e,o),Ei(n,e,o))}};function vc(e,n,o,s,p,y,w){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,y,w):n.prototype&&n.prototype.isPureReactComponent?!hi(o,s)||!hi(p,y):!0}function Sc(e,n,o,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,s),n.state!==e&&So.enqueueReplaceState(n,n.state,null)}function gr(e,n){var o=n;if("ref"in n){o={};for(var s in n)s!=="ref"&&(o[s]=n[s])}if(e=e.defaultProps){o===n&&(o=S({},o));for(var p in e)o[p]===void 0&&(o[p]=e[p])}return o}function Ec(e){aa(e)}function kc(e){console.error(e)}function wc(e){aa(e)}function _a(e,n){try{var o=e.onUncaughtError;o(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Ac(e,n,o){try{var s=e.onCaughtError;s(o.value,{componentStack:o.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Eo(e,n,o){return o=Bn(o),o.tag=3,o.payload={element:null},o.callback=function(){_a(e,n)},o}function Cc(e){return e=Bn(e),e.tag=3,e}function Tc(e,n,o,s){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var y=s.value;e.payload=function(){return p(y)},e.callback=function(){Ac(n,o,s)}}var w=o.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(e.callback=function(){Ac(n,o,s),typeof p!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var _=s.stack;this.componentDidCatch(s.value,{componentStack:_!==null?_:""})})}function Tp(e,n,o,s,p){if(o.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=o.alternate,n!==null&&Mr(n,o,p,!0),o=Bt.current,o!==null){switch(o.tag){case 31:case 13:return Jt===null?qa():o.alternate===null&&it===0&&(it=3),o.flags&=-257,o.flags|=65536,o.lanes=p,s===ma?o.flags|=16384:(n=o.updateQueue,n===null?o.updateQueue=new Set([s]):n.add(s),Go(e,s,p)),!1;case 22:return o.flags|=65536,s===ma?o.flags|=16384:(n=o.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},o.updateQueue=n):(o=n.retryQueue,o===null?n.retryQueue=new Set([s]):o.add(s)),Go(e,s,p)),!1}throw Error(u(435,o.tag))}return Go(e,s,p),qa(),!1}if(Ze)return n=Bt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=p,s!==ql&&(e=Error(u(422),{cause:s}),yi($t(e,o)))):(s!==ql&&(n=Error(u(423),{cause:s}),yi($t(n,o))),e=e.current.alternate,e.flags|=65536,p&=-p,e.lanes|=p,s=$t(s,o),p=Eo(e.stateNode,s,p),Kl(e,p),it!==4&&(it=2)),!1;var y=Error(u(520),{cause:s});if(y=$t(y,o),Mi===null?Mi=[y]:Mi.push(y),it!==4&&(it=2),n===null)return!0;s=$t(s,o),o=n;do{switch(o.tag){case 3:return o.flags|=65536,e=p&-p,o.lanes|=e,e=Eo(o.stateNode,s,e),Kl(o,e),!1;case 1:if(n=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Pn===null||!Pn.has(y))))return o.flags|=65536,p&=-p,o.lanes|=p,p=Cc(p),Tc(p,e,o,s),Kl(o,p),!1}o=o.return}while(o!==null);return!1}var ko=Error(u(461)),dt=!1;function St(e,n,o,s){n.child=e===null?Ns(n,null,o,s):hr(n,e.child,o,s)}function _c(e,n,o,s,p){o=o.render;var y=n.ref;if("ref"in s){var w={};for(var _ in s)_!=="ref"&&(w[_]=s[_])}else w=s;return cr(n),s=ro(e,n,o,w,y,p),_=io(),e!==null&&!dt?(ao(e,n,p),En(e,n,p)):(Ze&&_&&Bl(n),n.flags|=1,St(e,n,s,p),n.child)}function Rc(e,n,o,s,p){if(e===null){var y=o.type;return typeof y=="function"&&!Ll(y)&&y.defaultProps===void 0&&o.compare===null?(n.tag=15,n.type=y,jc(e,n,y,s,p)):(e=sa(o.type,null,s,n,n.mode,p),e.ref=n.ref,e.return=n,n.child=e)}if(y=e.child,!No(e,p)){var w=y.memoizedProps;if(o=o.compare,o=o!==null?o:hi,o(w,s)&&e.ref===n.ref)return En(e,n,p)}return n.flags|=1,e=gn(y,s),e.ref=n.ref,e.return=n,n.child=e}function jc(e,n,o,s,p){if(e!==null){var y=e.memoizedProps;if(hi(y,s)&&e.ref===n.ref)if(dt=!1,n.pendingProps=s=y,No(e,p))(e.flags&131072)!==0&&(dt=!0);else return n.lanes=e.lanes,En(e,n,p)}return wo(e,n,o,s,p)}function Nc(e,n,o,s){var p=s.children,y=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(y=y!==null?y.baseLanes|o:o,e!==null){for(s=n.child=e.child,p=0;s!==null;)p=p|s.lanes|s.childLanes,s=s.sibling;s=p&~y}else s=0,n.child=null;return Oc(e,n,y,o,s)}if((o&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&pa(n,y!==null?y.cachePool:null),y!==null?Ds(n,y):Wl(),Ls(n);else return s=n.lanes=536870912,Oc(e,n,y!==null?y.baseLanes|o:o,o,s)}else y!==null?(pa(n,y.cachePool),Ds(n,y),Zn(),n.memoizedState=null):(e!==null&&pa(n,null),Wl(),Zn());return St(e,n,p,o),n.child}function Ri(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Oc(e,n,o,s,p){var y=Gl();return y=y===null?null:{parent:ct._currentValue,pool:y},n.memoizedState={baseLanes:o,cachePool:y},e!==null&&pa(n,null),Wl(),Ls(n),e!==null&&Mr(e,n,s,!0),n.childLanes=p,null}function Ra(e,n){return n=Na({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function zc(e,n,o){return hr(n,e.child,null,o),e=Ra(n,n.pendingProps),e.flags|=2,Ut(n),n.memoizedState=null,e}function _p(e,n,o){var s=n.pendingProps,p=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Ze){if(s.mode==="hidden")return e=Ra(n,s),n.lanes=536870912,Ri(null,e);if(to(n),(e=We)?(e=Yf(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:zn!==null?{id:un,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},o=gs(e),o.return=n,n.child=o,bt=n,We=null)):e=null,e===null)throw Ln(n);return n.lanes=536870912,null}return Ra(n,s)}var y=e.memoizedState;if(y!==null){var w=y.dehydrated;if(to(n),p)if(n.flags&256)n.flags&=-257,n=zc(e,n,o);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(u(558));else if(dt||Mr(e,n,o,!1),p=(o&e.childLanes)!==0,dt||p){if(s=Xe,s!==null&&(w=ku(s,o),w!==0&&w!==y.retryLane))throw y.retryLane=w,lr(e,w),Lt(s,e,w),ko;qa(),n=zc(e,n,o)}else e=y.treeContext,We=Wt(w.nextSibling),bt=n,Ze=!0,Dn=null,Kt=!1,e!==null&&bs(n,e),n=Ra(n,s),n.flags|=4096;return n}return e=gn(e.child,{mode:s.mode,children:s.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ja(e,n){var o=n.ref;if(o===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(u(284));(e===null||e.ref!==o)&&(n.flags|=4194816)}}function wo(e,n,o,s,p){return cr(n),o=ro(e,n,o,s,void 0,p),s=io(),e!==null&&!dt?(ao(e,n,p),En(e,n,p)):(Ze&&s&&Bl(n),n.flags|=1,St(e,n,o,p),n.child)}function Dc(e,n,o,s,p,y){return cr(n),n.updateQueue=null,o=Is(n,s,o,p),Ms(e),s=io(),e!==null&&!dt?(ao(e,n,y),En(e,n,y)):(Ze&&s&&Bl(n),n.flags|=1,St(e,n,o,y),n.child)}function Lc(e,n,o,s,p){if(cr(n),n.stateNode===null){var y=Or,w=o.contextType;typeof w=="object"&&w!==null&&(y=vt(w)),y=new o(s,y),n.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=So,n.stateNode=y,y._reactInternals=n,y=n.stateNode,y.props=s,y.state=n.memoizedState,y.refs={},Ql(n),w=o.contextType,y.context=typeof w=="object"&&w!==null?vt(w):Or,y.state=n.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(vo(n,o,w,s),y.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(w=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),w!==y.state&&So.enqueueReplaceState(y,y.state,null),wi(n,s,y,p),ki(),y.state=n.memoizedState),typeof y.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){y=n.stateNode;var _=n.memoizedProps,M=gr(o,_);y.props=M;var G=y.context,le=o.contextType;w=Or,typeof le=="object"&&le!==null&&(w=vt(le));var fe=o.getDerivedStateFromProps;le=typeof fe=="function"||typeof y.getSnapshotBeforeUpdate=="function",_=n.pendingProps!==_,le||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(_||G!==w)&&Sc(n,y,s,w),In=!1;var Q=n.memoizedState;y.state=Q,wi(n,s,y,p),ki(),G=n.memoizedState,_||Q!==G||In?(typeof fe=="function"&&(vo(n,o,fe,s),G=n.memoizedState),(M=In||vc(n,o,M,s,Q,G,w))?(le||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(n.flags|=4194308)):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=G),y.props=s,y.state=G,y.context=w,s=M):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{y=n.stateNode,Xl(e,n),w=n.memoizedProps,le=gr(o,w),y.props=le,fe=n.pendingProps,Q=y.context,G=o.contextType,M=Or,typeof G=="object"&&G!==null&&(M=vt(G)),_=o.getDerivedStateFromProps,(G=typeof _=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==fe||Q!==M)&&Sc(n,y,s,M),In=!1,Q=n.memoizedState,y.state=Q,wi(n,s,y,p),ki();var W=n.memoizedState;w!==fe||Q!==W||In||e!==null&&e.dependencies!==null&&fa(e.dependencies)?(typeof _=="function"&&(vo(n,o,_,s),W=n.memoizedState),(le=In||vc(n,o,le,s,Q,W,M)||e!==null&&e.dependencies!==null&&fa(e.dependencies))?(G||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(s,W,M),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(s,W,M)),typeof y.componentDidUpdate=="function"&&(n.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof y.componentDidUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=W),y.props=s,y.state=W,y.context=M,s=le):(typeof y.componentDidUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),s=!1)}return y=s,ja(e,n),s=(n.flags&128)!==0,y||s?(y=n.stateNode,o=s&&typeof o.getDerivedStateFromError!="function"?null:y.render(),n.flags|=1,e!==null&&s?(n.child=hr(n,e.child,null,p),n.child=hr(n,null,o,p)):St(e,n,o,p),n.memoizedState=y.state,e=n.child):e=En(e,n,p),e}function Mc(e,n,o,s){return ur(),n.flags|=256,St(e,n,o,s),n.child}var Ao={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Co(e){return{baseLanes:e,cachePool:As()}}function To(e,n,o){return e=e!==null?e.childLanes&~o:0,n&&(e|=Zt),e}function Ic(e,n,o){var s=n.pendingProps,p=!1,y=(n.flags&128)!==0,w;if((w=y)||(w=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),w&&(p=!0,n.flags&=-129),w=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ze){if(p?qn(n):Zn(),(e=We)?(e=Yf(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:zn!==null?{id:un,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},o=gs(e),o.return=n,n.child=o,bt=n,We=null)):e=null,e===null)throw Ln(n);return su(e)?n.lanes=32:n.lanes=536870912,null}var _=s.children;return s=s.fallback,p?(Zn(),p=n.mode,_=Na({mode:"hidden",children:_},p),s=or(s,p,o,null),_.return=n,s.return=n,_.sibling=s,n.child=_,s=n.child,s.memoizedState=Co(o),s.childLanes=To(e,w,o),n.memoizedState=Ao,Ri(null,s)):(qn(n),_o(n,_))}var M=e.memoizedState;if(M!==null&&(_=M.dehydrated,_!==null)){if(y)n.flags&256?(qn(n),n.flags&=-257,n=Ro(e,n,o)):n.memoizedState!==null?(Zn(),n.child=e.child,n.flags|=128,n=null):(Zn(),_=s.fallback,p=n.mode,s=Na({mode:"visible",children:s.children},p),_=or(_,p,o,null),_.flags|=2,s.return=n,_.return=n,s.sibling=_,n.child=s,hr(n,e.child,null,o),s=n.child,s.memoizedState=Co(o),s.childLanes=To(e,w,o),n.memoizedState=Ao,n=Ri(null,s));else if(qn(n),su(_)){if(w=_.nextSibling&&_.nextSibling.dataset,w)var G=w.dgst;w=G,s=Error(u(419)),s.stack="",s.digest=w,yi({value:s,source:null,stack:null}),n=Ro(e,n,o)}else if(dt||Mr(e,n,o,!1),w=(o&e.childLanes)!==0,dt||w){if(w=Xe,w!==null&&(s=ku(w,o),s!==0&&s!==M.retryLane))throw M.retryLane=s,lr(e,s),Lt(w,e,s),ko;uu(_)||qa(),n=Ro(e,n,o)}else uu(_)?(n.flags|=192,n.child=e.child,n=null):(e=M.treeContext,We=Wt(_.nextSibling),bt=n,Ze=!0,Dn=null,Kt=!1,e!==null&&bs(n,e),n=_o(n,s.children),n.flags|=4096);return n}return p?(Zn(),_=s.fallback,p=n.mode,M=e.child,G=M.sibling,s=gn(M,{mode:"hidden",children:s.children}),s.subtreeFlags=M.subtreeFlags&65011712,G!==null?_=gn(G,_):(_=or(_,p,o,null),_.flags|=2),_.return=n,s.return=n,s.sibling=_,n.child=s,Ri(null,s),s=n.child,_=e.child.memoizedState,_===null?_=Co(o):(p=_.cachePool,p!==null?(M=ct._currentValue,p=p.parent!==M?{parent:M,pool:M}:p):p=As(),_={baseLanes:_.baseLanes|o,cachePool:p}),s.memoizedState=_,s.childLanes=To(e,w,o),n.memoizedState=Ao,Ri(e.child,s)):(qn(n),o=e.child,e=o.sibling,o=gn(o,{mode:"visible",children:s.children}),o.return=n,o.sibling=null,e!==null&&(w=n.deletions,w===null?(n.deletions=[e],n.flags|=16):w.push(e)),n.child=o,n.memoizedState=null,o)}function _o(e,n){return n=Na({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Na(e,n){return e=It(22,e,null,n),e.lanes=0,e}function Ro(e,n,o){return hr(n,e.child,null,o),e=_o(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Bc(e,n,o){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Vl(e.return,n,o)}function jo(e,n,o,s,p,y){var w=e.memoizedState;w===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:p,treeForkCount:y}:(w.isBackwards=n,w.rendering=null,w.renderingStartTime=0,w.last=s,w.tail=o,w.tailMode=p,w.treeForkCount=y)}function Uc(e,n,o){var s=n.pendingProps,p=s.revealOrder,y=s.tail;s=s.children;var w=ot.current,_=(w&2)!==0;if(_?(w=w&1|2,n.flags|=128):w&=1,j(ot,w),St(e,n,s,o),s=Ze?gi:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bc(e,o,n);else if(e.tag===19)Bc(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(p){case"forwards":for(o=n.child,p=null;o!==null;)e=o.alternate,e!==null&&ba(e)===null&&(p=o),o=o.sibling;o=p,o===null?(p=n.child,n.child=null):(p=o.sibling,o.sibling=null),jo(n,!1,p,o,y,s);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=n.child,n.child=null;p!==null;){if(e=p.alternate,e!==null&&ba(e)===null){n.child=p;break}e=p.sibling,p.sibling=o,o=p,p=e}jo(n,!0,o,null,y,s);break;case"together":jo(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function En(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),Hn|=n.lanes,(o&n.childLanes)===0)if(e!==null){if(Mr(e,n,o,!1),(o&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(u(153));if(n.child!==null){for(e=n.child,o=gn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=gn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function No(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&fa(e)))}function Rp(e,n,o){switch(n.tag){case 3:qe(n,n.stateNode.containerInfo),Mn(n,ct,e.memoizedState.cache),ur();break;case 27:case 5:nt(n);break;case 4:qe(n,n.stateNode.containerInfo);break;case 10:Mn(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,to(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(qn(n),n.flags|=128,null):(o&n.child.childLanes)!==0?Ic(e,n,o):(qn(n),e=En(e,n,o),e!==null?e.sibling:null);qn(n);break;case 19:var p=(e.flags&128)!==0;if(s=(o&n.childLanes)!==0,s||(Mr(e,n,o,!1),s=(o&n.childLanes)!==0),p){if(s)return Uc(e,n,o);n.flags|=128}if(p=n.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),j(ot,ot.current),s)break;return null;case 22:return n.lanes=0,Nc(e,n,o,n.pendingProps);case 24:Mn(n,ct,e.memoizedState.cache)}return En(e,n,o)}function qc(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps)dt=!0;else{if(!No(e,o)&&(n.flags&128)===0)return dt=!1,Rp(e,n,o);dt=(e.flags&131072)!==0}else dt=!1,Ze&&(n.flags&1048576)!==0&&xs(n,gi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(e=dr(n.elementType),n.type=e,typeof e=="function")Ll(e)?(s=gr(e,s),n.tag=1,n=Lc(null,n,e,s,o)):(n.tag=0,n=wo(null,n,e,s,o));else{if(e!=null){var p=e.$$typeof;if(p===pe){n.tag=11,n=_c(null,n,e,s,o);break e}else if(p===be){n.tag=14,n=Rc(null,n,e,s,o);break e}}throw n=xe(e)||e,Error(u(306,n,""))}}return n;case 0:return wo(e,n,n.type,n.pendingProps,o);case 1:return s=n.type,p=gr(s,n.pendingProps),Lc(e,n,s,p,o);case 3:e:{if(qe(n,n.stateNode.containerInfo),e===null)throw Error(u(387));s=n.pendingProps;var y=n.memoizedState;p=y.element,Xl(e,n),wi(n,s,null,o);var w=n.memoizedState;if(s=w.cache,Mn(n,ct,s),s!==y.cache&&Hl(n,[ct],o,!0),ki(),s=w.element,y.isDehydrated)if(y={element:s,isDehydrated:!1,cache:w.cache},n.updateQueue.baseState=y,n.memoizedState=y,n.flags&256){n=Mc(e,n,s,o);break e}else if(s!==p){p=$t(Error(u(424)),n),yi(p),n=Mc(e,n,s,o);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=Wt(e.firstChild),bt=n,Ze=!0,Dn=null,Kt=!0,o=Ns(n,null,s,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(ur(),s===p){n=En(e,n,o);break e}St(e,n,s,o)}n=n.child}return n;case 26:return ja(e,n),e===null?(o=Jf(n.type,null,n.pendingProps,null))?n.memoizedState=o:Ze||(o=n.type,e=n.pendingProps,s=Ga(Se.current).createElement(o),s[xt]=n,s[Rt]=e,Et(s,o,e),gt(s),n.stateNode=s):n.memoizedState=Jf(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return nt(n),e===null&&Ze&&(s=n.stateNode=Qf(n.type,n.pendingProps,Se.current),bt=n,Kt=!0,p=We,Qn(n.type)?(cu=p,We=Wt(s.firstChild)):We=p),St(e,n,n.pendingProps.children,o),ja(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ze&&((p=s=We)&&(s=ah(s,n.type,n.pendingProps,Kt),s!==null?(n.stateNode=s,bt=n,We=Wt(s.firstChild),Kt=!1,p=!0):p=!1),p||Ln(n)),nt(n),p=n.type,y=n.pendingProps,w=e!==null?e.memoizedProps:null,s=y.children,au(p,y)?s=null:w!==null&&au(p,w)&&(n.flags|=32),n.memoizedState!==null&&(p=ro(e,n,vp,null,null,o),Hi._currentValue=p),ja(e,n),St(e,n,s,o),n.child;case 6:return e===null&&Ze&&((e=o=We)&&(o=lh(o,n.pendingProps,Kt),o!==null?(n.stateNode=o,bt=n,We=null,e=!0):e=!1),e||Ln(n)),null;case 13:return Ic(e,n,o);case 4:return qe(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=hr(n,null,s,o):St(e,n,s,o),n.child;case 11:return _c(e,n,n.type,n.pendingProps,o);case 7:return St(e,n,n.pendingProps,o),n.child;case 8:return St(e,n,n.pendingProps.children,o),n.child;case 12:return St(e,n,n.pendingProps.children,o),n.child;case 10:return s=n.pendingProps,Mn(n,n.type,s.value),St(e,n,s.children,o),n.child;case 9:return p=n.type._context,s=n.pendingProps.children,cr(n),p=vt(p),s=s(p),n.flags|=1,St(e,n,s,o),n.child;case 14:return Rc(e,n,n.type,n.pendingProps,o);case 15:return jc(e,n,n.type,n.pendingProps,o);case 19:return Uc(e,n,o);case 31:return _p(e,n,o);case 22:return Nc(e,n,o,n.pendingProps);case 24:return cr(n),s=vt(ct),e===null?(p=Gl(),p===null&&(p=Xe,y=Pl(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=o),p=y),n.memoizedState={parent:s,cache:p},Ql(n),Mn(n,ct,p)):((e.lanes&o)!==0&&(Xl(e,n),wi(n,null,null,o),ki()),p=e.memoizedState,y=n.memoizedState,p.parent!==s?(p={parent:s,cache:s},n.memoizedState=p,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=p),Mn(n,ct,s)):(s=y.cache,Mn(n,ct,s),s!==p.cache&&Hl(n,[ct],o,!0))),St(e,n,n.pendingProps.children,o),n.child;case 29:throw n.pendingProps}throw Error(u(156,n.tag))}function kn(e){e.flags|=4}function Oo(e,n,o,s,p){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(p&335544128)===p)if(e.stateNode.complete)e.flags|=8192;else if(hf())e.flags|=8192;else throw pr=ma,$l}else e.flags&=-16777217}function Zc(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rd(n))if(hf())e.flags|=8192;else throw pr=ma,$l}function Oa(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?vu():536870912,e.lanes|=n,$r|=n)}function ji(e,n){if(!Ze)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function et(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,s=0;if(n)for(var p=e.child;p!==null;)o|=p.lanes|p.childLanes,s|=p.subtreeFlags&65011712,s|=p.flags&65011712,p.return=e,p=p.sibling;else for(p=e.child;p!==null;)o|=p.lanes|p.childLanes,s|=p.subtreeFlags,s|=p.flags,p.return=e,p=p.sibling;return e.subtreeFlags|=s,e.childLanes=o,n}function jp(e,n,o){var s=n.pendingProps;switch(Ul(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(n),null;case 1:return et(n),null;case 3:return o=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),bn(ct),Re(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Lr(n)?kn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Zl())),et(n),null;case 26:var p=n.type,y=n.memoizedState;return e===null?(kn(n),y!==null?(et(n),Zc(n,y)):(et(n),Oo(n,p,null,s,o))):y?y!==e.memoizedState?(kn(n),et(n),Zc(n,y)):(et(n),n.flags&=-16777217):(e=e.memoizedProps,e!==s&&kn(n),et(n),Oo(n,p,e,s,o)),null;case 27:if(Ke(n),o=Se.current,p=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&kn(n);else{if(!s){if(n.stateNode===null)throw Error(u(166));return et(n),null}e=ge.current,Lr(n)?vs(n):(e=Qf(p,s,o),n.stateNode=e,kn(n))}return et(n),null;case 5:if(Ke(n),p=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&kn(n);else{if(!s){if(n.stateNode===null)throw Error(u(166));return et(n),null}if(y=ge.current,Lr(n))vs(n);else{var w=Ga(Se.current);switch(y){case 1:y=w.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:y=w.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":y=w.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":y=w.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":y=w.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof s.is=="string"?w.createElement("select",{is:s.is}):w.createElement("select"),s.multiple?y.multiple=!0:s.size&&(y.size=s.size);break;default:y=typeof s.is=="string"?w.createElement(p,{is:s.is}):w.createElement(p)}}y[xt]=n,y[Rt]=s;e:for(w=n.child;w!==null;){if(w.tag===5||w.tag===6)y.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===n)break e;for(;w.sibling===null;){if(w.return===null||w.return===n)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}n.stateNode=y;e:switch(Et(y,p,s),p){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&kn(n)}}return et(n),Oo(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,o),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&kn(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(u(166));if(e=Se.current,Lr(n)){if(e=n.stateNode,o=n.memoizedProps,s=null,p=bt,p!==null)switch(p.tag){case 27:case 5:s=p.memoizedProps}e[xt]=n,e=!!(e.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||Bf(e.nodeValue,o)),e||Ln(n,!0)}else e=Ga(e).createTextNode(s),e[xt]=n,n.stateNode=e}return et(n),null;case 31:if(o=n.memoizedState,e===null||e.memoizedState!==null){if(s=Lr(n),o!==null){if(e===null){if(!s)throw Error(u(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[xt]=n}else ur(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;et(n),e=!1}else o=Zl(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=!0;if(!e)return n.flags&256?(Ut(n),n):(Ut(n),null);if((n.flags&128)!==0)throw Error(u(558))}return et(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(p=Lr(n),s!==null&&s.dehydrated!==null){if(e===null){if(!p)throw Error(u(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(u(317));p[xt]=n}else ur(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;et(n),p=!1}else p=Zl(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=p),p=!0;if(!p)return n.flags&256?(Ut(n),n):(Ut(n),null)}return Ut(n),(n.flags&128)!==0?(n.lanes=o,n):(o=s!==null,e=e!==null&&e.memoizedState!==null,o&&(s=n.child,p=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(p=s.alternate.memoizedState.cachePool.pool),y=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(y=s.memoizedState.cachePool.pool),y!==p&&(s.flags|=2048)),o!==e&&o&&(n.child.flags|=8192),Oa(n,n.updateQueue),et(n),null);case 4:return Re(),e===null&&eu(n.stateNode.containerInfo),et(n),null;case 10:return bn(n.type),et(n),null;case 19:if(ne(ot),s=n.memoizedState,s===null)return et(n),null;if(p=(n.flags&128)!==0,y=s.rendering,y===null)if(p)ji(s,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(y=ba(e),y!==null){for(n.flags|=128,ji(s,!1),e=y.updateQueue,n.updateQueue=e,Oa(n,e),n.subtreeFlags=0,e=o,o=n.child;o!==null;)ms(o,e),o=o.sibling;return j(ot,ot.current&1|2),Ze&&yn(n,s.treeForkCount),n.child}e=e.sibling}s.tail!==null&&Je()>Ia&&(n.flags|=128,p=!0,ji(s,!1),n.lanes=4194304)}else{if(!p)if(e=ba(y),e!==null){if(n.flags|=128,p=!0,e=e.updateQueue,n.updateQueue=e,Oa(n,e),ji(s,!0),s.tail===null&&s.tailMode==="hidden"&&!y.alternate&&!Ze)return et(n),null}else 2*Je()-s.renderingStartTime>Ia&&o!==536870912&&(n.flags|=128,p=!0,ji(s,!1),n.lanes=4194304);s.isBackwards?(y.sibling=n.child,n.child=y):(e=s.last,e!==null?e.sibling=y:n.child=y,s.last=y)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Je(),e.sibling=null,o=ot.current,j(ot,p?o&1|2:o&1),Ze&&yn(n,s.treeForkCount),e):(et(n),null);case 22:case 23:return Ut(n),eo(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(o&536870912)!==0&&(n.flags&128)===0&&(et(n),n.subtreeFlags&6&&(n.flags|=8192)):et(n),o=n.updateQueue,o!==null&&Oa(n,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==o&&(n.flags|=2048),e!==null&&ne(fr),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),bn(ct),et(n),null;case 25:return null;case 30:return null}throw Error(u(156,n.tag))}function Np(e,n){switch(Ul(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return bn(ct),Re(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ke(n),null;case 31:if(n.memoizedState!==null){if(Ut(n),n.alternate===null)throw Error(u(340));ur()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Ut(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(u(340));ur()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return ne(ot),null;case 4:return Re(),null;case 10:return bn(n.type),null;case 22:case 23:return Ut(n),eo(),e!==null&&ne(fr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return bn(ct),null;case 25:return null;default:return null}}function Fc(e,n){switch(Ul(n),n.tag){case 3:bn(ct),Re();break;case 26:case 27:case 5:Ke(n);break;case 4:Re();break;case 31:n.memoizedState!==null&&Ut(n);break;case 13:Ut(n);break;case 19:ne(ot);break;case 10:bn(n.type);break;case 22:case 23:Ut(n),eo(),e!==null&&ne(fr);break;case 24:bn(ct)}}function Ni(e,n){try{var o=n.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var p=s.next;o=p;do{if((o.tag&e)===e){s=void 0;var y=o.create,w=o.inst;s=y(),w.destroy=s}o=o.next}while(o!==p)}}catch(_){Ye(n,n.return,_)}}function Fn(e,n,o){try{var s=n.updateQueue,p=s!==null?s.lastEffect:null;if(p!==null){var y=p.next;s=y;do{if((s.tag&e)===e){var w=s.inst,_=w.destroy;if(_!==void 0){w.destroy=void 0,p=n;var M=o,G=_;try{G()}catch(le){Ye(p,M,le)}}}s=s.next}while(s!==y)}}catch(le){Ye(n,n.return,le)}}function Vc(e){var n=e.updateQueue;if(n!==null){var o=e.stateNode;try{zs(n,o)}catch(s){Ye(e,e.return,s)}}}function Hc(e,n,o){o.props=gr(e.type,e.memoizedProps),o.state=e.memoizedState;try{o.componentWillUnmount()}catch(s){Ye(e,n,s)}}function Oi(e,n){try{var o=e.ref;if(o!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof o=="function"?e.refCleanup=o(s):o.current=s}}catch(p){Ye(e,n,p)}}function fn(e,n){var o=e.ref,s=e.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(p){Ye(e,n,p)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){Ye(e,n,p)}else o.current=null}function Pc(e){var n=e.type,o=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(p){Ye(e,e.return,p)}}function zo(e,n,o){try{var s=e.stateNode;Wp(s,e.type,o,n),s[Rt]=n}catch(p){Ye(e,e.return,p)}}function Yc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qn(e.type)||e.tag===4}function Do(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yc(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&&Qn(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 Lo(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,n):(n=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,n.appendChild(e),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=hn));else if(s!==4&&(s===27&&Qn(e.type)&&(o=e.stateNode,n=null),e=e.child,e!==null))for(Lo(e,n,o),e=e.sibling;e!==null;)Lo(e,n,o),e=e.sibling}function za(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(s!==4&&(s===27&&Qn(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(za(e,n,o),e=e.sibling;e!==null;)za(e,n,o),e=e.sibling}function Gc(e){var n=e.stateNode,o=e.memoizedProps;try{for(var s=e.type,p=n.attributes;p.length;)n.removeAttributeNode(p[0]);Et(n,s,o),n[xt]=e,n[Rt]=o}catch(y){Ye(e,e.return,y)}}var wn=!1,pt=!1,Mo=!1,$c=typeof WeakSet=="function"?WeakSet:Set,yt=null;function Op(e,n){if(e=e.containerInfo,ru=el,e=ls(e),_l(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var p=s.anchorOffset,y=s.focusNode;s=s.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var w=0,_=-1,M=-1,G=0,le=0,fe=e,Q=null;t:for(;;){for(var W;fe!==o||p!==0&&fe.nodeType!==3||(_=w+p),fe!==y||s!==0&&fe.nodeType!==3||(M=w+s),fe.nodeType===3&&(w+=fe.nodeValue.length),(W=fe.firstChild)!==null;)Q=fe,fe=W;for(;;){if(fe===e)break t;if(Q===o&&++G===p&&(_=w),Q===y&&++le===s&&(M=w),(W=fe.nextSibling)!==null)break;fe=Q,Q=fe.parentNode}fe=W}o=_===-1||M===-1?null:{start:_,end:M}}else o=null}o=o||{start:0,end:0}}else o=null;for(iu={focusedElem:e,selectionRange:o},el=!1,yt=n;yt!==null;)if(n=yt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,yt=e;else for(;yt!==null;){switch(n=yt,y=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o<e.length;o++)p=e[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&y!==null){e=void 0,o=n,p=y.memoizedProps,y=y.memoizedState,s=o.stateNode;try{var Ce=gr(o.type,p);e=s.getSnapshotBeforeUpdate(Ce,y),s.__reactInternalSnapshotBeforeUpdate=e}catch(ze){Ye(o,o.return,ze)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,o=e.nodeType,o===9)ou(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ou(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(u(163))}if(e=n.sibling,e!==null){e.return=n.return,yt=e;break}yt=n.return}}function Qc(e,n,o){var s=o.flags;switch(o.tag){case 0:case 11:case 15:Cn(e,o),s&4&&Ni(5,o);break;case 1:if(Cn(e,o),s&4)if(e=o.stateNode,n===null)try{e.componentDidMount()}catch(w){Ye(o,o.return,w)}else{var p=gr(o.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(p,n,e.__reactInternalSnapshotBeforeUpdate)}catch(w){Ye(o,o.return,w)}}s&64&&Vc(o),s&512&&Oi(o,o.return);break;case 3:if(Cn(e,o),s&64&&(e=o.updateQueue,e!==null)){if(n=null,o.child!==null)switch(o.child.tag){case 27:case 5:n=o.child.stateNode;break;case 1:n=o.child.stateNode}try{zs(e,n)}catch(w){Ye(o,o.return,w)}}break;case 27:n===null&&s&4&&Gc(o);case 26:case 5:Cn(e,o),n===null&&s&4&&Pc(o),s&512&&Oi(o,o.return);break;case 12:Cn(e,o);break;case 31:Cn(e,o),s&4&&Jc(e,o);break;case 13:Cn(e,o),s&4&&Wc(e,o),s&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(o=Zp.bind(null,o),oh(e,o))));break;case 22:if(s=o.memoizedState!==null||wn,!s){n=n!==null&&n.memoizedState!==null||pt,p=wn;var y=pt;wn=s,(pt=n)&&!y?Tn(e,o,(o.subtreeFlags&8772)!==0):Cn(e,o),wn=p,pt=y}break;case 30:break;default:Cn(e,o)}}function Xc(e){var n=e.alternate;n!==null&&(e.alternate=null,Xc(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&fl(n)),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 tt=null,Nt=!1;function An(e,n,o){for(o=o.child;o!==null;)Kc(e,n,o),o=o.sibling}function Kc(e,n,o){if(R&&typeof R.onCommitFiberUnmount=="function")try{R.onCommitFiberUnmount(T,o)}catch{}switch(o.tag){case 26:pt||fn(o,n),An(e,n,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:pt||fn(o,n);var s=tt,p=Nt;Qn(o.type)&&(tt=o.stateNode,Nt=!1),An(e,n,o),Zi(o.stateNode),tt=s,Nt=p;break;case 5:pt||fn(o,n);case 6:if(s=tt,p=Nt,tt=null,An(e,n,o),tt=s,Nt=p,tt!==null)if(Nt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(o.stateNode)}catch(y){Ye(o,n,y)}else try{tt.removeChild(o.stateNode)}catch(y){Ye(o,n,y)}break;case 18:tt!==null&&(Nt?(e=tt,Hf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),ni(e)):Hf(tt,o.stateNode));break;case 4:s=tt,p=Nt,tt=o.stateNode.containerInfo,Nt=!0,An(e,n,o),tt=s,Nt=p;break;case 0:case 11:case 14:case 15:Fn(2,o,n),pt||Fn(4,o,n),An(e,n,o);break;case 1:pt||(fn(o,n),s=o.stateNode,typeof s.componentWillUnmount=="function"&&Hc(o,n,s)),An(e,n,o);break;case 21:An(e,n,o);break;case 22:pt=(s=pt)||o.memoizedState!==null,An(e,n,o),pt=s;break;default:An(e,n,o)}}function Jc(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ni(e)}catch(o){Ye(n,n.return,o)}}}function Wc(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ni(e)}catch(o){Ye(n,n.return,o)}}function zp(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new $c),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new $c),n;default:throw Error(u(435,e.tag))}}function Da(e,n){var o=zp(e);n.forEach(function(s){if(!o.has(s)){o.add(s);var p=Fp.bind(null,e,s);s.then(p,p)}})}function Ot(e,n){var o=n.deletions;if(o!==null)for(var s=0;s<o.length;s++){var p=o[s],y=e,w=n,_=w;e:for(;_!==null;){switch(_.tag){case 27:if(Qn(_.type)){tt=_.stateNode,Nt=!1;break e}break;case 5:tt=_.stateNode,Nt=!1;break e;case 3:case 4:tt=_.stateNode.containerInfo,Nt=!0;break e}_=_.return}if(tt===null)throw Error(u(160));Kc(y,w,p),tt=null,Nt=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)ef(n,e),n=n.sibling}var rn=null;function ef(e,n){var o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(n,e),zt(e),s&4&&(Fn(3,e,e.return),Ni(3,e),Fn(5,e,e.return));break;case 1:Ot(n,e),zt(e),s&512&&(pt||o===null||fn(o,o.return)),s&64&&wn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(o=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=o===null?s:o.concat(s))));break;case 26:var p=rn;if(Ot(n,e),zt(e),s&512&&(pt||o===null||fn(o,o.return)),s&4){var y=o!==null?o.memoizedState:null;if(s=e.memoizedState,o===null)if(s===null)if(e.stateNode===null){e:{s=e.type,o=e.memoizedProps,p=p.ownerDocument||p;t:switch(s){case"title":y=p.getElementsByTagName("title")[0],(!y||y[ai]||y[xt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(s),p.head.insertBefore(y,p.querySelector("head > title"))),Et(y,s,o),y[xt]=e,gt(y),s=y;break e;case"link":var w=td("link","href",p).get(s+(o.href||""));if(w){for(var _=0;_<w.length;_++)if(y=w[_],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){w.splice(_,1);break t}}y=p.createElement(s),Et(y,s,o),p.head.appendChild(y);break;case"meta":if(w=td("meta","content",p).get(s+(o.content||""))){for(_=0;_<w.length;_++)if(y=w[_],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){w.splice(_,1);break t}}y=p.createElement(s),Et(y,s,o),p.head.appendChild(y);break;default:throw Error(u(468,s))}y[xt]=e,gt(y),s=y}e.stateNode=s}else nd(p,e.type,e.stateNode);else e.stateNode=ed(p,s,e.memoizedProps);else y!==s?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,s===null?nd(p,e.type,e.stateNode):ed(p,s,e.memoizedProps)):s===null&&e.stateNode!==null&&zo(e,e.memoizedProps,o.memoizedProps)}break;case 27:Ot(n,e),zt(e),s&512&&(pt||o===null||fn(o,o.return)),o!==null&&s&4&&zo(e,e.memoizedProps,o.memoizedProps);break;case 5:if(Ot(n,e),zt(e),s&512&&(pt||o===null||fn(o,o.return)),e.flags&32){p=e.stateNode;try{Ar(p,"")}catch(Ce){Ye(e,e.return,Ce)}}s&4&&e.stateNode!=null&&(p=e.memoizedProps,zo(e,p,o!==null?o.memoizedProps:p)),s&1024&&(Mo=!0);break;case 6:if(Ot(n,e),zt(e),s&4){if(e.stateNode===null)throw Error(u(162));s=e.memoizedProps,o=e.stateNode;try{o.nodeValue=s}catch(Ce){Ye(e,e.return,Ce)}}break;case 3:if(Xa=null,p=rn,rn=$a(n.containerInfo),Ot(n,e),rn=p,zt(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{ni(n.containerInfo)}catch(Ce){Ye(e,e.return,Ce)}Mo&&(Mo=!1,tf(e));break;case 4:s=rn,rn=$a(e.stateNode.containerInfo),Ot(n,e),zt(e),rn=s;break;case 12:Ot(n,e),zt(e);break;case 31:Ot(n,e),zt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Da(e,s)));break;case 13:Ot(n,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Ma=Je()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Da(e,s)));break;case 22:p=e.memoizedState!==null;var M=o!==null&&o.memoizedState!==null,G=wn,le=pt;if(wn=G||p,pt=le||M,Ot(n,e),pt=le,wn=G,zt(e),s&8192)e:for(n=e.stateNode,n._visibility=p?n._visibility&-2:n._visibility|1,p&&(o===null||M||wn||pt||yr(e)),o=null,n=e;;){if(n.tag===5||n.tag===26){if(o===null){M=o=n;try{if(y=M.stateNode,p)w=y.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{_=M.stateNode;var fe=M.memoizedProps.style,Q=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;_.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(Ce){Ye(M,M.return,Ce)}}}else if(n.tag===6){if(o===null){M=n;try{M.stateNode.nodeValue=p?"":M.memoizedProps}catch(Ce){Ye(M,M.return,Ce)}}}else if(n.tag===18){if(o===null){M=n;try{var W=M.stateNode;p?Pf(W,!0):Pf(M.stateNode,!1)}catch(Ce){Ye(M,M.return,Ce)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;o===n&&(o=null),n=n.return}o===n&&(o=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,Da(e,o))));break;case 19:Ot(n,e),zt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Da(e,s)));break;case 30:break;case 21:break;default:Ot(n,e),zt(e)}}function zt(e){var n=e.flags;if(n&2){try{for(var o,s=e.return;s!==null;){if(Yc(s)){o=s;break}s=s.return}if(o==null)throw Error(u(160));switch(o.tag){case 27:var p=o.stateNode,y=Do(e);za(e,y,p);break;case 5:var w=o.stateNode;o.flags&32&&(Ar(w,""),o.flags&=-33);var _=Do(e);za(e,_,w);break;case 3:case 4:var M=o.stateNode.containerInfo,G=Do(e);Lo(e,G,M);break;default:throw Error(u(161))}}catch(le){Ye(e,e.return,le)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function tf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;tf(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Cn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Qc(e,n.alternate,n),n=n.sibling}function yr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Fn(4,n,n.return),yr(n);break;case 1:fn(n,n.return);var o=n.stateNode;typeof o.componentWillUnmount=="function"&&Hc(n,n.return,o),yr(n);break;case 27:Zi(n.stateNode);case 26:case 5:fn(n,n.return),yr(n);break;case 22:n.memoizedState===null&&yr(n);break;case 30:yr(n);break;default:yr(n)}e=e.sibling}}function Tn(e,n,o){for(o=o&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,p=e,y=n,w=y.flags;switch(y.tag){case 0:case 11:case 15:Tn(p,y,o),Ni(4,y);break;case 1:if(Tn(p,y,o),s=y,p=s.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(G){Ye(s,s.return,G)}if(s=y,p=s.updateQueue,p!==null){var _=s.stateNode;try{var M=p.shared.hiddenCallbacks;if(M!==null)for(p.shared.hiddenCallbacks=null,p=0;p<M.length;p++)Os(M[p],_)}catch(G){Ye(s,s.return,G)}}o&&w&64&&Vc(y),Oi(y,y.return);break;case 27:Gc(y);case 26:case 5:Tn(p,y,o),o&&s===null&&w&4&&Pc(y),Oi(y,y.return);break;case 12:Tn(p,y,o);break;case 31:Tn(p,y,o),o&&w&4&&Jc(p,y);break;case 13:Tn(p,y,o),o&&w&4&&Wc(p,y);break;case 22:y.memoizedState===null&&Tn(p,y,o),Oi(y,y.return);break;case 30:break;default:Tn(p,y,o)}n=n.sibling}}function Io(e,n){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==o&&(e!=null&&e.refCount++,o!=null&&xi(o))}function Bo(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&xi(e))}function an(e,n,o,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)nf(e,n,o,s),n=n.sibling}function nf(e,n,o,s){var p=n.flags;switch(n.tag){case 0:case 11:case 15:an(e,n,o,s),p&2048&&Ni(9,n);break;case 1:an(e,n,o,s);break;case 3:an(e,n,o,s),p&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&xi(e)));break;case 12:if(p&2048){an(e,n,o,s),e=n.stateNode;try{var y=n.memoizedProps,w=y.id,_=y.onPostCommit;typeof _=="function"&&_(w,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ye(n,n.return,M)}}else an(e,n,o,s);break;case 31:an(e,n,o,s);break;case 13:an(e,n,o,s);break;case 23:break;case 22:y=n.stateNode,w=n.alternate,n.memoizedState!==null?y._visibility&2?an(e,n,o,s):zi(e,n):y._visibility&2?an(e,n,o,s):(y._visibility|=2,Pr(e,n,o,s,(n.subtreeFlags&10256)!==0||!1)),p&2048&&Io(w,n);break;case 24:an(e,n,o,s),p&2048&&Bo(n.alternate,n);break;default:an(e,n,o,s)}}function Pr(e,n,o,s,p){for(p=p&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var y=e,w=n,_=o,M=s,G=w.flags;switch(w.tag){case 0:case 11:case 15:Pr(y,w,_,M,p),Ni(8,w);break;case 23:break;case 22:var le=w.stateNode;w.memoizedState!==null?le._visibility&2?Pr(y,w,_,M,p):zi(y,w):(le._visibility|=2,Pr(y,w,_,M,p)),p&&G&2048&&Io(w.alternate,w);break;case 24:Pr(y,w,_,M,p),p&&G&2048&&Bo(w.alternate,w);break;default:Pr(y,w,_,M,p)}n=n.sibling}}function zi(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var o=e,s=n,p=s.flags;switch(s.tag){case 22:zi(o,s),p&2048&&Io(s.alternate,s);break;case 24:zi(o,s),p&2048&&Bo(s.alternate,s);break;default:zi(o,s)}n=n.sibling}}var Di=8192;function Yr(e,n,o){if(e.subtreeFlags&Di)for(e=e.child;e!==null;)rf(e,n,o),e=e.sibling}function rf(e,n,o){switch(e.tag){case 26:Yr(e,n,o),e.flags&Di&&e.memoizedState!==null&&bh(o,rn,e.memoizedState,e.memoizedProps);break;case 5:Yr(e,n,o);break;case 3:case 4:var s=rn;rn=$a(e.stateNode.containerInfo),Yr(e,n,o),rn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Di,Di=16777216,Yr(e,n,o),Di=s):Yr(e,n,o));break;default:Yr(e,n,o)}}function af(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Li(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var s=n[o];yt=s,of(s,e)}af(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)lf(e),e=e.sibling}function lf(e){switch(e.tag){case 0:case 11:case 15:Li(e),e.flags&2048&&Fn(9,e,e.return);break;case 3:Li(e);break;case 12:Li(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,La(e)):Li(e);break;default:Li(e)}}function La(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var s=n[o];yt=s,of(s,e)}af(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Fn(8,n,n.return),La(n);break;case 22:o=n.stateNode,o._visibility&2&&(o._visibility&=-3,La(n));break;default:La(n)}e=e.sibling}}function of(e,n){for(;yt!==null;){var o=yt;switch(o.tag){case 0:case 11:case 15:Fn(8,o,n);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var s=o.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:xi(o.memoizedState.cache)}if(s=o.child,s!==null)s.return=o,yt=s;else e:for(o=e;yt!==null;){s=yt;var p=s.sibling,y=s.return;if(Xc(s),s===o){yt=null;break e}if(p!==null){p.return=y,yt=p;break e}yt=y}}}var Dp={getCacheForType:function(e){var n=vt(ct),o=n.data.get(e);return o===void 0&&(o=e(),n.data.set(e,o)),o},cacheSignal:function(){return vt(ct).controller.signal}},Lp=typeof WeakMap=="function"?WeakMap:Map,He=0,Xe=null,Me=null,Be=0,Pe=0,qt=null,Vn=!1,Gr=!1,Uo=!1,_n=0,it=0,Hn=0,xr=0,qo=0,Zt=0,$r=0,Mi=null,Dt=null,Zo=!1,Ma=0,uf=0,Ia=1/0,Ba=null,Pn=null,ht=0,Yn=null,Qr=null,Rn=0,Fo=0,Vo=null,sf=null,Ii=0,Ho=null;function Ft(){return(He&2)!==0&&Be!==0?Be&-Be:H.T!==null?Xo():wu()}function cf(){if(Zt===0)if((Be&536870912)===0||Ze){var e=we;we<<=1,(we&3932160)===0&&(we=262144),Zt=e}else Zt=536870912;return e=Bt.current,e!==null&&(e.flags|=32),Zt}function Lt(e,n,o){(e===Xe&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(Xr(e,0),Gn(e,Be,Zt,!1)),ii(e,o),((He&2)===0||e!==Xe)&&(e===Xe&&((He&2)===0&&(xr|=o),it===4&&Gn(e,Be,Zt,!1)),dn(e))}function ff(e,n,o){if((He&6)!==0)throw Error(u(327));var s=!o&&(n&127)===0&&(n&e.expiredLanes)===0||ri(e,n),p=s?Bp(e,n):Yo(e,n,!0),y=s;do{if(p===0){Gr&&!s&&Gn(e,n,0,!1);break}else{if(o=e.current.alternate,y&&!Mp(o)){p=Yo(e,n,!1),y=!1;continue}if(p===2){if(y=n,e.errorRecoveryDisabledLanes&y)var w=0;else w=e.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){n=w;e:{var _=e;p=Mi;var M=_.current.memoizedState.isDehydrated;if(M&&(Xr(_,w).flags|=256),w=Yo(_,w,!1),w!==2){if(Uo&&!M){_.errorRecoveryDisabledLanes|=y,xr|=y,p=4;break e}y=Dt,Dt=p,y!==null&&(Dt===null?Dt=y:Dt.push.apply(Dt,y))}p=w}if(y=!1,p!==2)continue}}if(p===1){Xr(e,0),Gn(e,n,0,!0);break}e:{switch(s=e,y=p,y){case 0:case 1:throw Error(u(345));case 4:if((n&4194048)!==n)break;case 6:Gn(s,n,Zt,!Vn);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((n&62914560)===n&&(p=Ma+300-Je(),10<p)){if(Gn(s,n,Zt,!Vn),$i(s,0,!0)!==0)break e;Rn=n,s.timeoutHandle=Ff(df.bind(null,s,o,Dt,Ba,Zo,n,Zt,xr,$r,Vn,y,"Throttled",-0,0),p);break e}df(s,o,Dt,Ba,Zo,n,Zt,xr,$r,Vn,y,null,-0,0)}}break}while(!0);dn(e)}function df(e,n,o,s,p,y,w,_,M,G,le,fe,Q,W){if(e.timeoutHandle=-1,fe=n.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},rf(n,y,fe);var Ce=(y&62914560)===y?Ma-Je():(y&4194048)===y?uf-Je():0;if(Ce=vh(fe,Ce),Ce!==null){Rn=y,e.cancelPendingCommit=Ce(vf.bind(null,e,n,y,o,s,p,w,_,M,le,fe,null,Q,W)),Gn(e,y,w,!G);return}}vf(e,n,y,o,s,p,w,_,M)}function Mp(e){for(var n=e;;){var o=n.tag;if((o===0||o===11||o===15)&&n.flags&16384&&(o=n.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var s=0;s<o.length;s++){var p=o[s],y=p.getSnapshot;p=p.value;try{if(!Mt(y(),p))return!1}catch{return!1}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Gn(e,n,o,s){n&=~qo,n&=~xr,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var p=n;0<p;){var y=31-D(p),w=1<<y;s[y]=-1,p&=~w}o!==0&&Su(e,o,n)}function Ua(){return(He&6)===0?(Bi(0),!1):!0}function Po(){if(Me!==null){if(Pe===0)var e=Me.return;else e=Me,xn=sr=null,lo(e),qr=null,vi=0,e=Me;for(;e!==null;)Fc(e.alternate,e),e=e.return;Me=null}}function Xr(e,n){var o=e.timeoutHandle;o!==-1&&(e.timeoutHandle=-1,nh(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),Rn=0,Po(),Xe=e,Me=o=gn(e.current,null),Be=n,Pe=0,qt=null,Vn=!1,Gr=ri(e,n),Uo=!1,$r=Zt=qo=xr=Hn=it=0,Dt=Mi=null,Zo=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var p=31-D(s),y=1<<p;n|=e[p],s&=~y}return _n=n,la(),o}function pf(e,n){De=null,H.H=_i,n===Ur||n===ha?(n=_s(),Pe=3):n===$l?(n=_s(),Pe=4):Pe=n===ko?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,qt=n,Me===null&&(it=1,_a(e,$t(n,e.current)))}function hf(){var e=Bt.current;return e===null?!0:(Be&4194048)===Be?Jt===null:(Be&62914560)===Be||(Be&536870912)!==0?e===Jt:!1}function mf(){var e=H.H;return H.H=_i,e===null?_i:e}function gf(){var e=H.A;return H.A=Dp,e}function qa(){it=4,Vn||(Be&4194048)!==Be&&Bt.current!==null||(Gr=!0),(Hn&134217727)===0&&(xr&134217727)===0||Xe===null||Gn(Xe,Be,Zt,!1)}function Yo(e,n,o){var s=He;He|=2;var p=mf(),y=gf();(Xe!==e||Be!==n)&&(Ba=null,Xr(e,n)),n=!1;var w=it;e:do try{if(Pe!==0&&Me!==null){var _=Me,M=qt;switch(Pe){case 8:Po(),w=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(n=!0);var G=Pe;if(Pe=0,qt=null,Kr(e,_,M,G),o&&Gr){w=0;break e}break;default:G=Pe,Pe=0,qt=null,Kr(e,_,M,G)}}Ip(),w=it;break}catch(le){pf(e,le)}while(!0);return n&&e.shellSuspendCounter++,xn=sr=null,He=s,H.H=p,H.A=y,Me===null&&(Xe=null,Be=0,la()),w}function Ip(){for(;Me!==null;)yf(Me)}function Bp(e,n){var o=He;He|=2;var s=mf(),p=gf();Xe!==e||Be!==n?(Ba=null,Ia=Je()+500,Xr(e,n)):Gr=ri(e,n);e:do try{if(Pe!==0&&Me!==null){n=Me;var y=qt;t:switch(Pe){case 1:Pe=0,qt=null,Kr(e,n,y,1);break;case 2:case 9:if(Cs(y)){Pe=0,qt=null,xf(n);break}n=function(){Pe!==2&&Pe!==9||Xe!==e||(Pe=7),dn(e)},y.then(n,n);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:Cs(y)?(Pe=0,qt=null,xf(n)):(Pe=0,qt=null,Kr(e,n,y,7));break;case 5:var w=null;switch(Me.tag){case 26:w=Me.memoizedState;case 5:case 27:var _=Me;if(w?rd(w):_.stateNode.complete){Pe=0,qt=null;var M=_.sibling;if(M!==null)Me=M;else{var G=_.return;G!==null?(Me=G,Za(G)):Me=null}break t}}Pe=0,qt=null,Kr(e,n,y,5);break;case 6:Pe=0,qt=null,Kr(e,n,y,6);break;case 8:Po(),it=6;break e;default:throw Error(u(462))}}Up();break}catch(le){pf(e,le)}while(!0);return xn=sr=null,H.H=s,H.A=p,He=o,Me!==null?0:(Xe=null,Be=0,la(),it)}function Up(){for(;Me!==null&&!ln();)yf(Me)}function yf(e){var n=qc(e.alternate,e,_n);e.memoizedProps=e.pendingProps,n===null?Za(e):Me=n}function xf(e){var n=e,o=n.alternate;switch(n.tag){case 15:case 0:n=Dc(o,n,n.pendingProps,n.type,void 0,Be);break;case 11:n=Dc(o,n,n.pendingProps,n.type.render,n.ref,Be);break;case 5:lo(n);default:Fc(o,n),n=Me=ms(n,_n),n=qc(o,n,_n)}e.memoizedProps=e.pendingProps,n===null?Za(e):Me=n}function Kr(e,n,o,s){xn=sr=null,lo(n),qr=null,vi=0;var p=n.return;try{if(Tp(e,p,n,o,Be)){it=1,_a(e,$t(o,e.current)),Me=null;return}}catch(y){if(p!==null)throw Me=p,y;it=1,_a(e,$t(o,e.current)),Me=null;return}n.flags&32768?(Ze||s===1?e=!0:Gr||(Be&536870912)!==0?e=!1:(Vn=e=!0,(s===2||s===9||s===3||s===6)&&(s=Bt.current,s!==null&&s.tag===13&&(s.flags|=16384))),bf(n,e)):Za(n)}function Za(e){var n=e;do{if((n.flags&32768)!==0){bf(n,Vn);return}e=n.return;var o=jp(n.alternate,n,_n);if(o!==null){Me=o;return}if(n=n.sibling,n!==null){Me=n;return}Me=n=e}while(n!==null);it===0&&(it=5)}function bf(e,n){do{var o=Np(e.alternate,e);if(o!==null){o.flags&=32767,Me=o;return}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!n&&(e=e.sibling,e!==null)){Me=e;return}Me=e=o}while(e!==null);it=6,Me=null}function vf(e,n,o,s,p,y,w,_,M){e.cancelPendingCommit=null;do Fa();while(ht!==0);if((He&6)!==0)throw Error(u(327));if(n!==null){if(n===e.current)throw Error(u(177));if(y=n.lanes|n.childLanes,y|=zl,xd(e,o,y,w,_,M),e===Xe&&(Me=Xe=null,Be=0),Qr=n,Yn=e,Rn=o,Fo=y,Vo=p,sf=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Vp(te,function(){return Af(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=H.T,H.T=null,p=de.p,de.p=2,w=He,He|=4;try{Op(e,n,o)}finally{He=w,de.p=p,H.T=s}}ht=1,Sf(),Ef(),kf()}}function Sf(){if(ht===1){ht=0;var e=Yn,n=Qr,o=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||o){o=H.T,H.T=null;var s=de.p;de.p=2;var p=He;He|=4;try{ef(n,e);var y=iu,w=ls(e.containerInfo),_=y.focusedElem,M=y.selectionRange;if(w!==_&&_&&_.ownerDocument&&as(_.ownerDocument.documentElement,_)){if(M!==null&&_l(_)){var G=M.start,le=M.end;if(le===void 0&&(le=G),"selectionStart"in _)_.selectionStart=G,_.selectionEnd=Math.min(le,_.value.length);else{var fe=_.ownerDocument||document,Q=fe&&fe.defaultView||window;if(Q.getSelection){var W=Q.getSelection(),Ce=_.textContent.length,ze=Math.min(M.start,Ce),Qe=M.end===void 0?ze:Math.min(M.end,Ce);!W.extend&&ze>Qe&&(w=Qe,Qe=ze,ze=w);var V=is(_,ze),B=is(_,Qe);if(V&&B&&(W.rangeCount!==1||W.anchorNode!==V.node||W.anchorOffset!==V.offset||W.focusNode!==B.node||W.focusOffset!==B.offset)){var Y=fe.createRange();Y.setStart(V.node,V.offset),W.removeAllRanges(),ze>Qe?(W.addRange(Y),W.extend(B.node,B.offset)):(Y.setEnd(B.node,B.offset),W.addRange(Y))}}}}for(fe=[],W=_;W=W.parentNode;)W.nodeType===1&&fe.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<fe.length;_++){var ce=fe[_];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}el=!!ru,iu=ru=null}finally{He=p,de.p=s,H.T=o}}e.current=n,ht=2}}function Ef(){if(ht===2){ht=0;var e=Yn,n=Qr,o=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||o){o=H.T,H.T=null;var s=de.p;de.p=2;var p=He;He|=4;try{Qc(e,n.alternate,n)}finally{He=p,de.p=s,H.T=o}}ht=3}}function kf(){if(ht===4||ht===3){ht=0,on();var e=Yn,n=Qr,o=Rn,s=sf;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ht=5:(ht=0,Qr=Yn=null,wf(e,e.pendingLanes));var p=e.pendingLanes;if(p===0&&(Pn=null),sl(o),n=n.stateNode,R&&typeof R.onCommitFiberRoot=="function")try{R.onCommitFiberRoot(T,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=H.T,p=de.p,de.p=2,H.T=null;try{for(var y=e.onRecoverableError,w=0;w<s.length;w++){var _=s[w];y(_.value,{componentStack:_.stack})}}finally{H.T=n,de.p=p}}(Rn&3)!==0&&Fa(),dn(e),p=e.pendingLanes,(o&261930)!==0&&(p&42)!==0?e===Ho?Ii++:(Ii=0,Ho=e):Ii=0,Bi(0)}}function wf(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,xi(n)))}function Fa(){return Sf(),Ef(),kf(),Af()}function Af(){if(ht!==5)return!1;var e=Yn,n=Fo;Fo=0;var o=sl(Rn),s=H.T,p=de.p;try{de.p=32>o?32:o,H.T=null,o=Vo,Vo=null;var y=Yn,w=Rn;if(ht=0,Qr=Yn=null,Rn=0,(He&6)!==0)throw Error(u(331));var _=He;if(He|=4,lf(y.current),nf(y,y.current,w,o),He=_,Bi(0,!1),R&&typeof R.onPostCommitFiberRoot=="function")try{R.onPostCommitFiberRoot(T,y)}catch{}return!0}finally{de.p=p,H.T=s,wf(e,n)}}function Cf(e,n,o){n=$t(o,n),n=Eo(e.stateNode,n,2),e=Un(e,n,2),e!==null&&(ii(e,2),dn(e))}function Ye(e,n,o){if(e.tag===3)Cf(e,e,o);else for(;n!==null;){if(n.tag===3){Cf(n,e,o);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Pn===null||!Pn.has(s))){e=$t(o,e),o=Cc(2),s=Un(n,o,2),s!==null&&(Tc(o,s,n,e),ii(s,2),dn(s));break}}n=n.return}}function Go(e,n,o){var s=e.pingCache;if(s===null){s=e.pingCache=new Lp;var p=new Set;s.set(n,p)}else p=s.get(n),p===void 0&&(p=new Set,s.set(n,p));p.has(o)||(Uo=!0,p.add(o),e=qp.bind(null,e,n,o),n.then(e,e))}function qp(e,n,o){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,Xe===e&&(Be&o)===o&&(it===4||it===3&&(Be&62914560)===Be&&300>Je()-Ma?(He&2)===0&&Xr(e,0):qo|=o,$r===Be&&($r=0)),dn(e)}function Tf(e,n){n===0&&(n=vu()),e=lr(e,n),e!==null&&(ii(e,n),dn(e))}function Zp(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),Tf(e,o)}function Fp(e,n){var o=0;switch(e.tag){case 31:case 13:var s=e.stateNode,p=e.memoizedState;p!==null&&(o=p.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(u(314))}s!==null&&s.delete(n),Tf(e,o)}function Vp(e,n){return At(e,n)}var Va=null,Jr=null,$o=!1,Ha=!1,Qo=!1,$n=0;function dn(e){e!==Jr&&e.next===null&&(Jr===null?Va=Jr=e:Jr=Jr.next=e),Ha=!0,$o||($o=!0,Pp())}function Bi(e,n){if(!Qo&&Ha){Qo=!0;do for(var o=!1,s=Va;s!==null;){if(e!==0){var p=s.pendingLanes;if(p===0)var y=0;else{var w=s.suspendedLanes,_=s.pingedLanes;y=(1<<31-D(42|e)+1)-1,y&=p&~(w&~_),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,Nf(s,y))}else y=Be,y=$i(s,s===Xe?y:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(y&3)===0||ri(s,y)||(o=!0,Nf(s,y));s=s.next}while(o);Qo=!1}}function Hp(){_f()}function _f(){Ha=$o=!1;var e=0;$n!==0&&th()&&(e=$n);for(var n=Je(),o=null,s=Va;s!==null;){var p=s.next,y=Rf(s,n);y===0?(s.next=null,o===null?Va=p:o.next=p,p===null&&(Jr=o)):(o=s,(e!==0||(y&3)!==0)&&(Ha=!0)),s=p}ht!==0&&ht!==5||Bi(e),$n!==0&&($n=0)}function Rf(e,n){for(var o=e.suspendedLanes,s=e.pingedLanes,p=e.expirationTimes,y=e.pendingLanes&-62914561;0<y;){var w=31-D(y),_=1<<w,M=p[w];M===-1?((_&o)===0||(_&s)!==0)&&(p[w]=yd(_,n)):M<=n&&(e.expiredLanes|=_),y&=~_}if(n=Xe,o=Be,o=$i(e,e===n?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,o===0||e===n&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ht(s),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||ri(e,o)){if(n=o&-o,n===e.callbackPriority)return n;switch(s!==null&&Ht(s),sl(o)){case 2:case 8:o=U;break;case 32:o=te;break;case 268435456:o=v;break;default:o=te}return s=jf.bind(null,e),o=At(o,s),e.callbackPriority=n,e.callbackNode=o,n}return s!==null&&s!==null&&Ht(s),e.callbackPriority=2,e.callbackNode=null,2}function jf(e,n){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(Fa()&&e.callbackNode!==o)return null;var s=Be;return s=$i(e,e===Xe?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(ff(e,s,n),Rf(e,Je()),e.callbackNode!=null&&e.callbackNode===o?jf.bind(null,e):null)}function Nf(e,n){if(Fa())return null;ff(e,n,!0)}function Pp(){rh(function(){(He&6)!==0?At(z,Hp):_f()})}function Xo(){if($n===0){var e=Ir;e===0&&(e=Te,Te<<=1,(Te&261888)===0&&(Te=256)),$n=e}return $n}function Of(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ji(""+e)}function zf(e,n){var o=n.ownerDocument.createElement("input");return o.name=n.name,o.value=n.value,e.id&&o.setAttribute("form",e.id),n.parentNode.insertBefore(o,n),e=new FormData(e),o.parentNode.removeChild(o),e}function Yp(e,n,o,s,p){if(n==="submit"&&o&&o.stateNode===p){var y=Of((p[Rt]||null).action),w=s.submitter;w&&(n=(n=w[Rt]||null)?Of(n.formAction):w.getAttribute("formAction"),n!==null&&(y=n,w=null));var _=new na("action","action",null,s,p);e.push({event:_,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if($n!==0){var M=w?zf(p,w):new FormData(p);go(o,{pending:!0,data:M,method:p.method,action:y},null,M)}}else typeof y=="function"&&(_.preventDefault(),M=w?zf(p,w):new FormData(p),go(o,{pending:!0,data:M,method:p.method,action:y},y,M))},currentTarget:p}]})}}for(var Ko=0;Ko<Ol.length;Ko++){var Jo=Ol[Ko],Gp=Jo.toLowerCase(),$p=Jo[0].toUpperCase()+Jo.slice(1);nn(Gp,"on"+$p)}nn(ss,"onAnimationEnd"),nn(cs,"onAnimationIteration"),nn(fs,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(cp,"onTransitionRun"),nn(fp,"onTransitionStart"),nn(dp,"onTransitionCancel"),nn(ds,"onTransitionEnd"),kr("onMouseEnter",["mouseout","mouseover"]),kr("onMouseLeave",["mouseout","mouseover"]),kr("onPointerEnter",["pointerout","pointerover"]),kr("onPointerLeave",["pointerout","pointerover"]),nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nr("onBeforeInput",["compositionend","keypress","textInput","paste"]),nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ui="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(" "),Qp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ui));function Df(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var s=e[o],p=s.event;s=s.listeners;e:{var y=void 0;if(n)for(var w=s.length-1;0<=w;w--){var _=s[w],M=_.instance,G=_.currentTarget;if(_=_.listener,M!==y&&p.isPropagationStopped())break e;y=_,p.currentTarget=G;try{y(p)}catch(le){aa(le)}p.currentTarget=null,y=M}else for(w=0;w<s.length;w++){if(_=s[w],M=_.instance,G=_.currentTarget,_=_.listener,M!==y&&p.isPropagationStopped())break e;y=_,p.currentTarget=G;try{y(p)}catch(le){aa(le)}p.currentTarget=null,y=M}}}}function Ie(e,n){var o=n[cl];o===void 0&&(o=n[cl]=new Set);var s=e+"__bubble";o.has(s)||(Lf(n,e,2,!1),o.add(s))}function Wo(e,n,o){var s=0;n&&(s|=4),Lf(o,e,s,n)}var Pa="_reactListening"+Math.random().toString(36).slice(2);function eu(e){if(!e[Pa]){e[Pa]=!0,Tu.forEach(function(o){o!=="selectionchange"&&(Qp.has(o)||Wo(o,!1,e),Wo(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Pa]||(n[Pa]=!0,Wo("selectionchange",!1,n))}}function Lf(e,n,o,s){switch(cd(n)){case 2:var p=kh;break;case 8:p=wh;break;default:p=mu}o=p.bind(null,n,o,e),p=void 0,!bl||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(p=!0),s?p!==void 0?e.addEventListener(n,o,{capture:!0,passive:p}):e.addEventListener(n,o,!0):p!==void 0?e.addEventListener(n,o,{passive:p}):e.addEventListener(n,o,!1)}function tu(e,n,o,s,p){var y=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var w=s.tag;if(w===3||w===4){var _=s.stateNode.containerInfo;if(_===p)break;if(w===4)for(w=s.return;w!==null;){var M=w.tag;if((M===3||M===4)&&w.stateNode.containerInfo===p)return;w=w.return}for(;_!==null;){if(w=vr(_),w===null)return;if(M=w.tag,M===5||M===6||M===26||M===27){s=y=w;continue e}_=_.parentNode}}s=s.return}Uu(function(){var G=y,le=yl(o),fe=[];e:{var Q=ps.get(e);if(Q!==void 0){var W=na,Ce=e;switch(e){case"keypress":if(ea(o)===0)break e;case"keydown":case"keyup":W=Fd;break;case"focusin":Ce="focus",W=kl;break;case"focusout":Ce="blur",W=kl;break;case"beforeblur":case"afterblur":W=kl;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=Fu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=jd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=Pd;break;case ss:case cs:case fs:W=zd;break;case ds:W=Gd;break;case"scroll":case"scrollend":W=_d;break;case"wheel":W=Qd;break;case"copy":case"cut":case"paste":W=Ld;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=Hu;break;case"toggle":case"beforetoggle":W=Kd}var ze=(n&4)!==0,Qe=!ze&&(e==="scroll"||e==="scrollend"),V=ze?Q!==null?Q+"Capture":null:Q;ze=[];for(var B=G,Y;B!==null;){var ce=B;if(Y=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||Y===null||V===null||(ce=oi(B,V),ce!=null&&ze.push(qi(B,ce,Y))),Qe)break;B=B.return}0<ze.length&&(Q=new W(Q,Ce,null,o,le),fe.push({event:Q,listeners:ze}))}}if((n&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",Q&&o!==gl&&(Ce=o.relatedTarget||o.fromElement)&&(vr(Ce)||Ce[br]))break e;if((W||Q)&&(Q=le.window===le?le:(Q=le.ownerDocument)?Q.defaultView||Q.parentWindow:window,W?(Ce=o.relatedTarget||o.toElement,W=G,Ce=Ce?vr(Ce):null,Ce!==null&&(Qe=f(Ce),ze=Ce.tag,Ce!==Qe||ze!==5&&ze!==27&&ze!==6)&&(Ce=null)):(W=null,Ce=G),W!==Ce)){if(ze=Fu,ce="onMouseLeave",V="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(ze=Hu,ce="onPointerLeave",V="onPointerEnter",B="pointer"),Qe=W==null?Q:li(W),Y=Ce==null?Q:li(Ce),Q=new ze(ce,B+"leave",W,o,le),Q.target=Qe,Q.relatedTarget=Y,ce=null,vr(le)===G&&(ze=new ze(V,B+"enter",Ce,o,le),ze.target=Y,ze.relatedTarget=Qe,ce=ze),Qe=ce,W&&Ce)t:{for(ze=Xp,V=W,B=Ce,Y=0,ce=V;ce;ce=ze(ce))Y++;ce=0;for(var je=B;je;je=ze(je))ce++;for(;0<Y-ce;)V=ze(V),Y--;for(;0<ce-Y;)B=ze(B),ce--;for(;Y--;){if(V===B||B!==null&&V===B.alternate){ze=V;break t}V=ze(V),B=ze(B)}ze=null}else ze=null;W!==null&&Mf(fe,Q,W,ze,!1),Ce!==null&&Qe!==null&&Mf(fe,Qe,Ce,ze,!0)}}e:{if(Q=G?li(G):window,W=Q.nodeName&&Q.nodeName.toLowerCase(),W==="select"||W==="input"&&Q.type==="file")var Fe=Ju;else if(Xu(Q))if(Wu)Fe=op;else{Fe=ap;var _e=ip}else W=Q.nodeName,!W||W.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?G&&ml(G.elementType)&&(Fe=Ju):Fe=lp;if(Fe&&(Fe=Fe(e,G))){Ku(fe,Fe,o,le);break e}_e&&_e(e,Q,G),e==="focusout"&&G&&Q.type==="number"&&G.memoizedProps.value!=null&&hl(Q,"number",Q.value)}switch(_e=G?li(G):window,e){case"focusin":(Xu(_e)||_e.contentEditable==="true")&&(Rr=_e,Rl=G,mi=null);break;case"focusout":mi=Rl=Rr=null;break;case"mousedown":jl=!0;break;case"contextmenu":case"mouseup":case"dragend":jl=!1,os(fe,o,le);break;case"selectionchange":if(sp)break;case"keydown":case"keyup":os(fe,o,le)}var Le;if(Al)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else _r?$u(e,o)&&(Ue="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Ue="onCompositionStart");Ue&&(Pu&&o.locale!=="ko"&&(_r||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&_r&&(Le=qu()):(On=le,vl="value"in On?On.value:On.textContent,_r=!0)),_e=Ya(G,Ue),0<_e.length&&(Ue=new Vu(Ue,e,null,o,le),fe.push({event:Ue,listeners:_e}),Le?Ue.data=Le:(Le=Qu(o),Le!==null&&(Ue.data=Le)))),(Le=Wd?ep(e,o):tp(e,o))&&(Ue=Ya(G,"onBeforeInput"),0<Ue.length&&(_e=new Vu("onBeforeInput","beforeinput",null,o,le),fe.push({event:_e,listeners:Ue}),_e.data=Le)),Yp(fe,e,G,o,le)}Df(fe,n)})}function qi(e,n,o){return{instance:e,listener:n,currentTarget:o}}function Ya(e,n){for(var o=n+"Capture",s=[];e!==null;){var p=e,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=oi(e,o),p!=null&&s.unshift(qi(e,p,y)),p=oi(e,n),p!=null&&s.push(qi(e,p,y))),e.tag===3)return s;e=e.return}return[]}function Xp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mf(e,n,o,s,p){for(var y=n._reactName,w=[];o!==null&&o!==s;){var _=o,M=_.alternate,G=_.stateNode;if(_=_.tag,M!==null&&M===s)break;_!==5&&_!==26&&_!==27||G===null||(M=G,p?(G=oi(o,y),G!=null&&w.unshift(qi(o,G,M))):p||(G=oi(o,y),G!=null&&w.push(qi(o,G,M)))),o=o.return}w.length!==0&&e.push({event:n,listeners:w})}var Kp=/\r\n?/g,Jp=/\u0000|\uFFFD/g;function If(e){return(typeof e=="string"?e:""+e).replace(Kp,`
|
|
33
|
-
`).replace(Jp,"")}function Bf(e,n){return n=If(n),If(e)===n}function $e(e,n,o,s,p,y){switch(o){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Ar(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Ar(e,""+s);break;case"className":Xi(e,"class",s);break;case"tabIndex":Xi(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(e,o,s);break;case"style":Iu(e,s,y);break;case"data":if(n!=="object"){Xi(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||o!=="href")){e.removeAttribute(o);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(o);break}s=Ji(""+s),e.setAttribute(o,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(o,"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 y=="function"&&(o==="formAction"?(n!=="input"&&$e(e,n,"name",p.name,p,null),$e(e,n,"formEncType",p.formEncType,p,null),$e(e,n,"formMethod",p.formMethod,p,null),$e(e,n,"formTarget",p.formTarget,p,null)):($e(e,n,"encType",p.encType,p,null),$e(e,n,"method",p.method,p,null),$e(e,n,"target",p.target,p,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(o);break}s=Ji(""+s),e.setAttribute(o,s);break;case"onClick":s!=null&&(e.onclick=hn);break;case"onScroll":s!=null&&Ie("scroll",e);break;case"onScrollEnd":s!=null&&Ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(u(61));if(o=s.__html,o!=null){if(p.children!=null)throw Error(u(60));e.innerHTML=o}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}o=Ji(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(o,""+s):e.removeAttribute(o);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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":s===!0?e.setAttribute(o,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(o,s):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(o,s):e.removeAttribute(o);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(o):e.setAttribute(o,s);break;case"popover":Ie("beforetoggle",e),Ie("toggle",e),Qi(e,"popover",s);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Qi(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=Cd.get(o)||o,Qi(e,o,s))}}function nu(e,n,o,s,p,y){switch(o){case"style":Iu(e,s,y);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(u(61));if(o=s.__html,o!=null){if(p.children!=null)throw Error(u(60));e.innerHTML=o}}break;case"children":typeof s=="string"?Ar(e,s):(typeof s=="number"||typeof s=="bigint")&&Ar(e,""+s);break;case"onScroll":s!=null&&Ie("scroll",e);break;case"onScrollEnd":s!=null&&Ie("scrollend",e);break;case"onClick":s!=null&&(e.onclick=hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_u.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),n=o.slice(2,p?o.length-7:void 0),y=e[Rt]||null,y=y!=null?y[o]:null,typeof y=="function"&&e.removeEventListener(n,y,p),typeof s=="function")){typeof y!="function"&&y!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(n,s,p);break e}o in e?e[o]=s:s===!0?e.setAttribute(o,""):Qi(e,o,s)}}}function Et(e,n,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",e),Ie("load",e);var s=!1,p=!1,y;for(y in o)if(o.hasOwnProperty(y)){var w=o[y];if(w!=null)switch(y){case"src":s=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,n));default:$e(e,n,y,w,o,null)}}p&&$e(e,n,"srcSet",o.srcSet,o,null),s&&$e(e,n,"src",o.src,o,null);return;case"input":Ie("invalid",e);var _=y=w=p=null,M=null,G=null;for(s in o)if(o.hasOwnProperty(s)){var le=o[s];if(le!=null)switch(s){case"name":p=le;break;case"type":w=le;break;case"checked":M=le;break;case"defaultChecked":G=le;break;case"value":y=le;break;case"defaultValue":_=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(u(137,n));break;default:$e(e,n,s,le,o,null)}}zu(e,y,_,M,G,w,p,!1);return;case"select":Ie("invalid",e),s=w=y=null;for(p in o)if(o.hasOwnProperty(p)&&(_=o[p],_!=null))switch(p){case"value":y=_;break;case"defaultValue":w=_;break;case"multiple":s=_;default:$e(e,n,p,_,o,null)}n=y,o=w,e.multiple=!!s,n!=null?wr(e,!!s,n,!1):o!=null&&wr(e,!!s,o,!0);return;case"textarea":Ie("invalid",e),y=p=s=null;for(w in o)if(o.hasOwnProperty(w)&&(_=o[w],_!=null))switch(w){case"value":s=_;break;case"defaultValue":p=_;break;case"children":y=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(91));break;default:$e(e,n,w,_,o,null)}Lu(e,s,p,y);return;case"option":for(M in o)if(o.hasOwnProperty(M)&&(s=o[M],s!=null))switch(M){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:$e(e,n,M,s,o,null)}return;case"dialog":Ie("beforetoggle",e),Ie("toggle",e),Ie("cancel",e),Ie("close",e);break;case"iframe":case"object":Ie("load",e);break;case"video":case"audio":for(s=0;s<Ui.length;s++)Ie(Ui[s],e);break;case"image":Ie("error",e),Ie("load",e);break;case"details":Ie("toggle",e);break;case"embed":case"source":case"link":Ie("error",e),Ie("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(G in o)if(o.hasOwnProperty(G)&&(s=o[G],s!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,n));default:$e(e,n,G,s,o,null)}return;default:if(ml(n)){for(le in o)o.hasOwnProperty(le)&&(s=o[le],s!==void 0&&nu(e,n,le,s,o,void 0));return}}for(_ in o)o.hasOwnProperty(_)&&(s=o[_],s!=null&&$e(e,n,_,s,o,null))}function Wp(e,n,o,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,w=null,_=null,M=null,G=null,le=null;for(W in o){var fe=o[W];if(o.hasOwnProperty(W)&&fe!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":M=fe;default:s.hasOwnProperty(W)||$e(e,n,W,null,s,fe)}}for(var Q in s){var W=s[Q];if(fe=o[Q],s.hasOwnProperty(Q)&&(W!=null||fe!=null))switch(Q){case"type":y=W;break;case"name":p=W;break;case"checked":G=W;break;case"defaultChecked":le=W;break;case"value":w=W;break;case"defaultValue":_=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(u(137,n));break;default:W!==fe&&$e(e,n,Q,W,s,fe)}}pl(e,w,_,M,G,le,y,p);return;case"select":W=w=_=Q=null;for(y in o)if(M=o[y],o.hasOwnProperty(y)&&M!=null)switch(y){case"value":break;case"multiple":W=M;default:s.hasOwnProperty(y)||$e(e,n,y,null,s,M)}for(p in s)if(y=s[p],M=o[p],s.hasOwnProperty(p)&&(y!=null||M!=null))switch(p){case"value":Q=y;break;case"defaultValue":_=y;break;case"multiple":w=y;default:y!==M&&$e(e,n,p,y,s,M)}n=_,o=w,s=W,Q!=null?wr(e,!!o,Q,!1):!!s!=!!o&&(n!=null?wr(e,!!o,n,!0):wr(e,!!o,o?[]:"",!1));return;case"textarea":W=Q=null;for(_ in o)if(p=o[_],o.hasOwnProperty(_)&&p!=null&&!s.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:$e(e,n,_,null,s,p)}for(w in s)if(p=s[w],y=o[w],s.hasOwnProperty(w)&&(p!=null||y!=null))switch(w){case"value":Q=p;break;case"defaultValue":W=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(u(91));break;default:p!==y&&$e(e,n,w,p,s,y)}Du(e,Q,W);return;case"option":for(var Ce in o)if(Q=o[Ce],o.hasOwnProperty(Ce)&&Q!=null&&!s.hasOwnProperty(Ce))switch(Ce){case"selected":e.selected=!1;break;default:$e(e,n,Ce,null,s,Q)}for(M in s)if(Q=s[M],W=o[M],s.hasOwnProperty(M)&&Q!==W&&(Q!=null||W!=null))switch(M){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:$e(e,n,M,Q,s,W)}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 ze in o)Q=o[ze],o.hasOwnProperty(ze)&&Q!=null&&!s.hasOwnProperty(ze)&&$e(e,n,ze,null,s,Q);for(G in s)if(Q=s[G],W=o[G],s.hasOwnProperty(G)&&Q!==W&&(Q!=null||W!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(u(137,n));break;default:$e(e,n,G,Q,s,W)}return;default:if(ml(n)){for(var Qe in o)Q=o[Qe],o.hasOwnProperty(Qe)&&Q!==void 0&&!s.hasOwnProperty(Qe)&&nu(e,n,Qe,void 0,s,Q);for(le in s)Q=s[le],W=o[le],!s.hasOwnProperty(le)||Q===W||Q===void 0&&W===void 0||nu(e,n,le,Q,s,W);return}}for(var V in o)Q=o[V],o.hasOwnProperty(V)&&Q!=null&&!s.hasOwnProperty(V)&&$e(e,n,V,null,s,Q);for(fe in s)Q=s[fe],W=o[fe],!s.hasOwnProperty(fe)||Q===W||Q==null&&W==null||$e(e,n,fe,Q,s,W)}function Uf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function eh(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,o=performance.getEntriesByType("resource"),s=0;s<o.length;s++){var p=o[s],y=p.transferSize,w=p.initiatorType,_=p.duration;if(y&&_&&Uf(w)){for(w=0,_=p.responseEnd,s+=1;s<o.length;s++){var M=o[s],G=M.startTime;if(G>_)break;var le=M.transferSize,fe=M.initiatorType;le&&Uf(fe)&&(M=M.responseEnd,w+=le*(M<_?1:(_-G)/(M-G)))}if(--s,n+=8*(y+w)/(p.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ru=null,iu=null;function Ga(e){return e.nodeType===9?e:e.ownerDocument}function qf(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 Zf(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function au(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var lu=null;function th(){var e=window.event;return e&&e.type==="popstate"?e===lu?!1:(lu=e,!0):(lu=null,!1)}var Ff=typeof setTimeout=="function"?setTimeout:void 0,nh=typeof clearTimeout=="function"?clearTimeout:void 0,Vf=typeof Promise=="function"?Promise:void 0,rh=typeof queueMicrotask=="function"?queueMicrotask:typeof Vf<"u"?function(e){return Vf.resolve(null).then(e).catch(ih)}:Ff;function ih(e){setTimeout(function(){throw e})}function Qn(e){return e==="head"}function Hf(e,n){var o=n,s=0;do{var p=o.nextSibling;if(e.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(s===0){e.removeChild(p),ni(n);return}s--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")s++;else if(o==="html")Zi(e.ownerDocument.documentElement);else if(o==="head"){o=e.ownerDocument.head,Zi(o);for(var y=o.firstChild;y;){var w=y.nextSibling,_=y.nodeName;y[ai]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=w}}else o==="body"&&Zi(e.ownerDocument.body);o=p}while(o);ni(n)}function Pf(e,n){var o=e;e=0;do{var s=o.nextSibling;if(o.nodeType===1?n?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(n?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),s&&s.nodeType===8)if(o=s.data,o==="/$"){if(e===0)break;e--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||e++;o=s}while(o)}function ou(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var o=n;switch(n=n.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":ou(o),fl(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function ah(e,n,o,s){for(;e.nodeType===1;){var p=o;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ai])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(y=e.getAttribute("rel"),y==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(y!==p.rel||e.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||e.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||e.getAttribute("title")!==(p.title==null?null:p.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(y=e.getAttribute("src"),(y!==(p.src==null?null:p.src)||e.getAttribute("type")!==(p.type==null?null:p.type)||e.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&e.getAttribute("name")===y)return e}else return e;if(e=Wt(e.nextSibling),e===null)break}return null}function lh(e,n,o){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o||(e=Wt(e.nextSibling),e===null))return null;return e}function Yf(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Wt(e.nextSibling),e===null))return null;return e}function uu(e){return e.data==="$?"||e.data==="$~"}function su(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function oh(e,n){var o=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||o.readyState!=="loading")n();else{var s=function(){n(),o.removeEventListener("DOMContentLoaded",s)};o.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Wt(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var cu=null;function Gf(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"||o==="/&"){if(n===0)return Wt(e.nextSibling);n--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||n++}e=e.nextSibling}return null}function $f(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(n===0)return e;n--}else o!=="/$"&&o!=="/&"||n++}e=e.previousSibling}return null}function Qf(e,n,o){switch(n=Ga(o),e){case"html":if(e=n.documentElement,!e)throw Error(u(452));return e;case"head":if(e=n.head,!e)throw Error(u(453));return e;case"body":if(e=n.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Zi(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);fl(e)}var en=new Map,Xf=new Set;function $a(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=de.d;de.d={f:uh,r:sh,D:ch,C:fh,L:dh,m:ph,X:mh,S:hh,M:gh};function uh(){var e=jn.f(),n=Ua();return e||n}function sh(e){var n=Sr(e);n!==null&&n.tag===5&&n.type==="form"?dc(n):jn.r(e)}var Wr=typeof document>"u"?null:document;function Kf(e,n,o){var s=Wr;if(s&&typeof n=="string"&&n){var p=Yt(n);p='link[rel="'+e+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),Xf.has(p)||(Xf.add(p),e={rel:e,crossOrigin:o,href:n},s.querySelector(p)===null&&(n=s.createElement("link"),Et(n,"link",e),gt(n),s.head.appendChild(n)))}}function ch(e){jn.D(e),Kf("dns-prefetch",e,null)}function fh(e,n){jn.C(e,n),Kf("preconnect",e,n)}function dh(e,n,o){jn.L(e,n,o);var s=Wr;if(s&&e&&n){var p='link[rel="preload"][as="'+Yt(n)+'"]';n==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Yt(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Yt(o.imageSizes)+'"]')):p+='[href="'+Yt(e)+'"]';var y=p;switch(n){case"style":y=ei(e);break;case"script":y=ti(e)}en.has(y)||(e=S({rel:"preload",href:n==="image"&&o&&o.imageSrcSet?void 0:e,as:n},o),en.set(y,e),s.querySelector(p)!==null||n==="style"&&s.querySelector(Fi(y))||n==="script"&&s.querySelector(Vi(y))||(n=s.createElement("link"),Et(n,"link",e),gt(n),s.head.appendChild(n)))}}function ph(e,n){jn.m(e,n);var o=Wr;if(o&&e){var s=n&&typeof n.as=="string"?n.as:"script",p='link[rel="modulepreload"][as="'+Yt(s)+'"][href="'+Yt(e)+'"]',y=p;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=ti(e)}if(!en.has(y)&&(e=S({rel:"modulepreload",href:e},n),en.set(y,e),o.querySelector(p)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Vi(y)))return}s=o.createElement("link"),Et(s,"link",e),gt(s),o.head.appendChild(s)}}}function hh(e,n,o){jn.S(e,n,o);var s=Wr;if(s&&e){var p=Er(s).hoistableStyles,y=ei(e);n=n||"default";var w=p.get(y);if(!w){var _={loading:0,preload:null};if(w=s.querySelector(Fi(y)))_.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":n},o),(o=en.get(y))&&fu(e,o);var M=w=s.createElement("link");gt(M),Et(M,"link",e),M._p=new Promise(function(G,le){M.onload=G,M.onerror=le}),M.addEventListener("load",function(){_.loading|=1}),M.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Qa(w,n,s)}w={type:"stylesheet",instance:w,count:1,state:_},p.set(y,w)}}}function mh(e,n){jn.X(e,n);var o=Wr;if(o&&e){var s=Er(o).hoistableScripts,p=ti(e),y=s.get(p);y||(y=o.querySelector(Vi(p)),y||(e=S({src:e,async:!0},n),(n=en.get(p))&&du(e,n),y=o.createElement("script"),gt(y),Et(y,"link",e),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},s.set(p,y))}}function gh(e,n){jn.M(e,n);var o=Wr;if(o&&e){var s=Er(o).hoistableScripts,p=ti(e),y=s.get(p);y||(y=o.querySelector(Vi(p)),y||(e=S({src:e,async:!0,type:"module"},n),(n=en.get(p))&&du(e,n),y=o.createElement("script"),gt(y),Et(y,"link",e),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},s.set(p,y))}}function Jf(e,n,o,s){var p=(p=Se.current)?$a(p):null;if(!p)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(n=ei(o.href),o=Er(p).hoistableStyles,s=o.get(n),s||(s={type:"style",instance:null,count:0,state:null},o.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=ei(o.href);var y=Er(p).hoistableStyles,w=y.get(e);if(w||(p=p.ownerDocument||p,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(e,w),(y=p.querySelector(Fi(e)))&&!y._p&&(w.instance=y,w.state.loading=5),en.has(e)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},en.set(e,o),y||yh(p,e,o,w.state))),n&&s===null)throw Error(u(528,""));return w}if(n&&s!==null)throw Error(u(529,""));return null;case"script":return n=o.async,o=o.src,typeof o=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ti(o),o=Er(p).hoistableScripts,s=o.get(n),s||(s={type:"script",instance:null,count:0,state:null},o.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function ei(e){return'href="'+Yt(e)+'"'}function Fi(e){return'link[rel="stylesheet"]['+e+"]"}function Wf(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function yh(e,n,o,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),Et(n,"link",o),gt(n),e.head.appendChild(n))}function ti(e){return'[src="'+Yt(e)+'"]'}function Vi(e){return"script[async]"+e}function ed(e,n,o){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+Yt(o.href)+'"]');if(s)return n.instance=s,gt(s),s;var p=S({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),gt(s),Et(s,"style",p),Qa(s,o.precedence,e),n.instance=s;case"stylesheet":p=ei(o.href);var y=e.querySelector(Fi(p));if(y)return n.state.loading|=4,n.instance=y,gt(y),y;s=Wf(o),(p=en.get(p))&&fu(s,p),y=(e.ownerDocument||e).createElement("link"),gt(y);var w=y;return w._p=new Promise(function(_,M){w.onload=_,w.onerror=M}),Et(y,"link",s),n.state.loading|=4,Qa(y,o.precedence,e),n.instance=y;case"script":return y=ti(o.src),(p=e.querySelector(Vi(y)))?(n.instance=p,gt(p),p):(s=o,(p=en.get(y))&&(s=S({},o),du(s,p)),e=e.ownerDocument||e,p=e.createElement("script"),gt(p),Et(p,"link",s),e.head.appendChild(p),n.instance=p);case"void":return null;default:throw Error(u(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Qa(s,o.precedence,e));return n.instance}function Qa(e,n,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=s.length?s[s.length-1]:null,y=p,w=0;w<s.length;w++){var _=s[w];if(_.dataset.precedence===n)y=_;else if(y!==p)break}y?y.parentNode.insertBefore(e,y.nextSibling):(n=o.nodeType===9?o.head:o,n.insertBefore(e,n.firstChild))}function fu(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function du(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Xa=null;function td(e,n,o){if(Xa===null){var s=new Map,p=Xa=new Map;p.set(o,s)}else p=Xa,s=p.get(o),s||(s=new Map,p.set(o,s));if(s.has(e))return s;for(s.set(e,null),o=o.getElementsByTagName(e),p=0;p<o.length;p++){var y=o[p];if(!(y[ai]||y[xt]||e==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var w=y.getAttribute(n)||"";w=e+w;var _=s.get(w);_?_.push(y):s.set(w,[y])}}return s}function nd(e,n,o){e=e.ownerDocument||e,e.head.insertBefore(o,n==="title"?e.querySelector("head > title"):null)}function xh(e,n,o){if(o===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function rd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function bh(e,n,o,s){if(o.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=ei(s.href),y=n.querySelector(Fi(p));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ka.bind(e),n.then(e,e)),o.state.loading|=4,o.instance=y,gt(y);return}y=n.ownerDocument||n,s=Wf(s),(p=en.get(p))&&fu(s,p),y=y.createElement("link"),gt(y);var w=y;w._p=new Promise(function(_,M){w.onload=_,w.onerror=M}),Et(y,"link",s),o.instance=y}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,n),(n=o.state.preload)&&(o.state.loading&3)===0&&(e.count++,o=Ka.bind(e),n.addEventListener("load",o),n.addEventListener("error",o))}}var pu=0;function vh(e,n){return e.stylesheets&&e.count===0&&Wa(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var s=setTimeout(function(){if(e.stylesheets&&Wa(e,e.stylesheets),e.unsuspend){var y=e.unsuspend;e.unsuspend=null,y()}},6e4+n);0<e.imgBytes&&pu===0&&(pu=62500*eh());var p=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wa(e,e.stylesheets),e.unsuspend)){var y=e.unsuspend;e.unsuspend=null,y()}},(e.imgBytes>pu?50:800)+n);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(p)}}:null}function Ka(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wa(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ja=null;function Wa(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ja=new Map,n.forEach(Sh,e),Ja=null,Ka.call(e))}function Sh(e,n){if(!(n.state.loading&4)){var o=Ja.get(e);if(o)var s=o.get(null);else{o=new Map,Ja.set(e,o);for(var p=e.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var w=p[y];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(o.set(w.dataset.precedence,w),s=w)}s&&o.set(null,s)}p=n.instance,w=p.getAttribute("data-precedence"),y=o.get(w)||s,y===s&&o.set(null,p),o.set(w,p),this.count++,s=Ka.bind(this),p.addEventListener("load",s),p.addEventListener("error",s),y?y.parentNode.insertBefore(p,y.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(p,e.firstChild)),n.state.loading|=4}}var Hi={$$typeof:K,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Eh(e,n,o,s,p,y,w,_,M){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=ol(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ol(0),this.hiddenUpdates=ol(null),this.identifierPrefix=s,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function id(e,n,o,s,p,y,w,_,M,G,le,fe){return e=new Eh(e,n,o,w,M,G,le,fe,_),n=1,y===!0&&(n|=24),y=It(3,null,null,n),e.current=y,y.stateNode=e,n=Pl(),n.refCount++,e.pooledCache=n,n.refCount++,y.memoizedState={element:s,isDehydrated:o,cache:n},Ql(y),e}function ad(e){return e?(e=Or,e):Or}function ld(e,n,o,s,p,y){p=ad(p),s.context===null?s.context=p:s.pendingContext=p,s=Bn(n),s.payload={element:o},y=y===void 0?null:y,y!==null&&(s.callback=y),o=Un(e,s,n),o!==null&&(Lt(o,e,n),Ei(o,e,n))}function od(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function hu(e,n){od(e,n),(e=e.alternate)&&od(e,n)}function ud(e){if(e.tag===13||e.tag===31){var n=lr(e,67108864);n!==null&&Lt(n,e,67108864),hu(e,67108864)}}function sd(e){if(e.tag===13||e.tag===31){var n=Ft();n=ul(n);var o=lr(e,n);o!==null&&Lt(o,e,n),hu(e,n)}}var el=!0;function kh(e,n,o,s){var p=H.T;H.T=null;var y=de.p;try{de.p=2,mu(e,n,o,s)}finally{de.p=y,H.T=p}}function wh(e,n,o,s){var p=H.T;H.T=null;var y=de.p;try{de.p=8,mu(e,n,o,s)}finally{de.p=y,H.T=p}}function mu(e,n,o,s){if(el){var p=gu(s);if(p===null)tu(e,n,s,tl,o),fd(e,s);else if(Ch(p,e,n,o,s))s.stopPropagation();else if(fd(e,s),n&4&&-1<Ah.indexOf(e)){for(;p!==null;){var y=Sr(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var w=tr(y.pendingLanes);if(w!==0){var _=y;for(_.pendingLanes|=2,_.entangledLanes|=2;w;){var M=1<<31-D(w);_.entanglements[1]|=M,w&=~M}dn(y),(He&6)===0&&(Ia=Je()+500,Bi(0))}}break;case 31:case 13:_=lr(y,2),_!==null&&Lt(_,y,2),Ua(),hu(y,2)}if(y=gu(s),y===null&&tu(e,n,s,tl,o),y===p)break;p=y}p!==null&&s.stopPropagation()}else tu(e,n,s,null,o)}}function gu(e){return e=yl(e),yu(e)}var tl=null;function yu(e){if(tl=null,e=vr(e),e!==null){var n=f(e);if(n===null)e=null;else{var o=n.tag;if(o===13){if(e=d(n),e!==null)return e;e=null}else if(o===31){if(e=g(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return tl=e,null}function cd(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(k()){case z:return 2;case U:return 8;case te:case J:return 32;case v:return 268435456;default:return 32}default:return 32}}var xu=!1,Xn=null,Kn=null,Jn=null,Pi=new Map,Yi=new Map,Wn=[],Ah="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 fd(e,n){switch(e){case"focusin":case"focusout":Xn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Pi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yi.delete(n.pointerId)}}function Gi(e,n,o,s,p,y){return e===null||e.nativeEvent!==y?(e={blockedOn:n,domEventName:o,eventSystemFlags:s,nativeEvent:y,targetContainers:[p]},n!==null&&(n=Sr(n),n!==null&&ud(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,p!==null&&n.indexOf(p)===-1&&n.push(p),e)}function Ch(e,n,o,s,p){switch(n){case"focusin":return Xn=Gi(Xn,e,n,o,s,p),!0;case"dragenter":return Kn=Gi(Kn,e,n,o,s,p),!0;case"mouseover":return Jn=Gi(Jn,e,n,o,s,p),!0;case"pointerover":var y=p.pointerId;return Pi.set(y,Gi(Pi.get(y)||null,e,n,o,s,p)),!0;case"gotpointercapture":return y=p.pointerId,Yi.set(y,Gi(Yi.get(y)||null,e,n,o,s,p)),!0}return!1}function dd(e){var n=vr(e.target);if(n!==null){var o=f(n);if(o!==null){if(n=o.tag,n===13){if(n=d(o),n!==null){e.blockedOn=n,Au(e.priority,function(){sd(o)});return}}else if(n===31){if(n=g(o),n!==null){e.blockedOn=n,Au(e.priority,function(){sd(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=gu(e.nativeEvent);if(o===null){o=e.nativeEvent;var s=new o.constructor(o.type,o);gl=s,o.target.dispatchEvent(s),gl=null}else return n=Sr(o),n!==null&&ud(n),e.blockedOn=o,!1;n.shift()}return!0}function pd(e,n,o){nl(e)&&o.delete(n)}function Th(){xu=!1,Xn!==null&&nl(Xn)&&(Xn=null),Kn!==null&&nl(Kn)&&(Kn=null),Jn!==null&&nl(Jn)&&(Jn=null),Pi.forEach(pd),Yi.forEach(pd)}function rl(e,n){e.blockedOn===n&&(e.blockedOn=null,xu||(xu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Th)))}var il=null;function hd(e){il!==e&&(il=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){il===e&&(il=null);for(var n=0;n<e.length;n+=3){var o=e[n],s=e[n+1],p=e[n+2];if(typeof s!="function"){if(yu(s||o)===null)continue;break}var y=Sr(o);y!==null&&(e.splice(n,3),n-=3,go(y,{pending:!0,data:p,method:o.method,action:s},s,p))}}))}function ni(e){function n(M){return rl(M,e)}Xn!==null&&rl(Xn,e),Kn!==null&&rl(Kn,e),Jn!==null&&rl(Jn,e),Pi.forEach(n),Yi.forEach(n);for(var o=0;o<Wn.length;o++){var s=Wn[o];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Wn.length&&(o=Wn[0],o.blockedOn===null);)dd(o),o.blockedOn===null&&Wn.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(s=0;s<o.length;s+=3){var p=o[s],y=o[s+1],w=p[Rt]||null;if(typeof y=="function")w||hd(o);else if(w){var _=null;if(y&&y.hasAttribute("formAction")){if(p=y,w=y[Rt]||null)_=w.formAction;else if(yu(p)!==null)continue}else _=w.action;typeof _=="function"?o[s+1]=_:(o.splice(s,3),s-=3),hd(o)}}}function md(){function e(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(w){return p=w})},focusReset:"manual",scroll:"manual"})}function n(){p!==null&&(p(),p=null),s||setTimeout(o,20)}function o(){if(!s&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,p=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(o,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),p!==null&&(p(),p=null)}}}function bu(e){this._internalRoot=e}al.prototype.render=bu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(u(409));var o=n.current,s=Ft();ld(o,s,e,n,null,null)},al.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;ld(e.current,2,null,e,null,null),Ua(),n[br]=null}};function al(e){this._internalRoot=e}al.prototype.unstable_scheduleHydration=function(e){if(e){var n=wu();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Wn.length&&n!==0&&n<Wn[o].priority;o++);Wn.splice(o,0,e),o===0&&dd(e)}};var gd=a.version;if(gd!=="19.2.4")throw Error(u(527,gd,"19.2.4"));de.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=h(n),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var _h={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ll.isDisabled&&ll.supportsFiber)try{T=ll.inject(_h),R=ll}catch{}}return reactDomClient_production.createRoot=function(e,n){if(!c(e))throw Error(u(299));var o=!1,s="",p=Ec,y=kc,w=wc;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(p=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(w=n.onRecoverableError)),n=id(e,1,!1,null,null,o,s,null,p,y,w,md),e[br]=n.current,eu(e),new bu(n)},reactDomClient_production.hydrateRoot=function(e,n,o){if(!c(e))throw Error(u(299));var s=!1,p="",y=Ec,w=kc,_=wc,M=null;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(_=o.onRecoverableError),o.formState!==void 0&&(M=o.formState)),n=id(e,1,!0,n,o??null,s,p,M,y,w,_,md),n.context=ad(null),o=n.current,s=Ft(),s=ul(s),p=Bn(s),p.callback=null,Un(o,p,s),o=s,n.current.lanes=o,ii(n,o),dn(n),e[br]=n.current,eu(e),new al(n)},reactDomClient_production.version="19.2.4",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient();class ClappTransport{constructor(a){tn(this,"serverUrl");tn(this,"wsUrl");tn(this,"context");tn(this,"ws",null);tn(this,"connected",!1);tn(this,"reconnectTimer",null);tn(this,"reconnectDelay",1e3);tn(this,"stateListeners",new Set);tn(this,"appsListeners",new Set);tn(this,"viewListeners",new Set);tn(this,"connectionListeners",new Set);this.serverUrl=a.serverUrl.replace(/\/$/,""),this.context=a.context;const l=new URL(this.serverUrl);l.protocol=l.protocol==="https:"?"wss:":"ws:",l.pathname="/ws",this.wsUrl=l.toString()}connect(){this.ws||this.createWebSocket()}disconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(),this.ws=null),this.setConnected(!1)}subscribe(a){this.wsSend({type:"subscribe",clappIds:a})}onState(a){return this.stateListeners.add(a),()=>this.stateListeners.delete(a)}onApps(a){return this.appsListeners.add(a),()=>this.appsListeners.delete(a)}onView(a){return this.viewListeners.add(a),()=>this.viewListeners.delete(a)}onConnection(a){return this.connectionListeners.add(a),()=>this.connectionListeners.delete(a)}isConnected(){return this.connected}async sendIntent(a,l,u={}){var d;if(this.connected&&((d=this.ws)==null?void 0:d.readyState)===WebSocket.OPEN){this.wsSend({type:"intent",clappId:a,intent:l,payload:u});return}const c={id:crypto.randomUUID(),agentId:"local",clappId:a,intent:l,payload:u,timestamp:new Date().toISOString()},f=await fetch(`${this.serverUrl}/api/intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!f.ok)throw new Error(`Failed to send intent: ${f.status}`)}async fetchApps(){const a=await fetch(`${this.serverUrl}/api/apps`);if(!a.ok)throw new Error(`Failed to fetch apps: ${a.status}`);return a.json()}async fetchState(a){const l=await fetch(`${this.serverUrl}/api/state/${a}`);if(l.status===404)return null;if(!l.ok)throw new Error(`Failed to fetch state: ${l.status}`);return l.json()}async fetchView(a){const l=await fetch(`${this.serverUrl}/api/views/${a}`);if(l.status===404)return null;if(!l.ok)throw new Error(`Failed to fetch view: ${l.status}`);return l.text()}createWebSocket(){try{this.ws=new WebSocket(this.wsUrl)}catch{this.scheduleReconnect();return}this.ws.onopen=()=>{this.reconnectDelay=1e3,this.setConnected(!0),this.context&&this.wsSend({type:"hello",context:this.context})},this.ws.onmessage=a=>{try{const l=JSON.parse(String(a.data));this.handleMessage(l)}catch{}},this.ws.onclose=()=>{this.ws=null,this.setConnected(!1),this.scheduleReconnect()},this.ws.onerror=()=>{}}handleMessage(a){switch(a.type){case"state":{const l=a.clappId,u=a.state;for(const c of this.stateListeners)c(l,u);break}case"apps":{const l=a.apps;for(const u of this.appsListeners)u(l);break}case"view":{const l=a.viewId,u=a.content;for(const c of this.viewListeners)c(l,u);break}}}wsSend(a){var l;((l=this.ws)==null?void 0:l.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(a))}setConnected(a){if(this.connected!==a){this.connected=a;for(const l of this.connectionListeners)l(a)}}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.createWebSocket()},this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*1.5,1e4))}}function setRef(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function composeRefs(...t){return a=>{let l=!1;const u=t.map(c=>{const f=setRef(c,a);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<u.length;c++){const f=u[c];typeof f=="function"?f():setRef(t[c],null)}}}}var REACT_LAZY_TYPE=Symbol.for("react.lazy"),use=React$1[" use ".trim().toString()];function isPromiseLike(t){return typeof t=="object"&&t!==null&&"then"in t}function isLazyComponent(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===REACT_LAZY_TYPE&&"_payload"in t&&isPromiseLike(t._payload)}function createSlot(t){const a=createSlotClone(t),l=reactExports.forwardRef((u,c)=>{let{children:f,...d}=u;isLazyComponent(f)&&typeof use=="function"&&(f=use(f._payload));const g=reactExports.Children.toArray(f),m=g.find(isSlottable);if(m){const h=m.props.children,x=g.map(S=>S===m?reactExports.Children.count(h)>1?reactExports.Children.only(null):reactExports.isValidElement(h)?h.props.children:null:S);return jsxRuntimeExports.jsx(a,{...d,ref:c,children:reactExports.isValidElement(h)?reactExports.cloneElement(h,void 0,x):null})}return jsxRuntimeExports.jsx(a,{...d,ref:c,children:f})});return l.displayName=`${t}.Slot`,l}var Slot=createSlot("Slot");function createSlotClone(t){const a=reactExports.forwardRef((l,u)=>{let{children:c,...f}=l;if(isLazyComponent(c)&&typeof use=="function"&&(c=use(c._payload)),reactExports.isValidElement(c)){const d=getElementRef(c),g=mergeProps(f,c.props);return c.type!==reactExports.Fragment&&(g.ref=u?composeRefs(u,d):d),reactExports.cloneElement(c,g)}return reactExports.Children.count(c)>1?reactExports.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var SLOTTABLE_IDENTIFIER=Symbol("radix.slottable");function isSlottable(t){return reactExports.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===SLOTTABLE_IDENTIFIER}function mergeProps(t,a){const l={...a};for(const u in a){const c=t[u],f=a[u];/^on[A-Z]/.test(u)?c&&f?l[u]=(...g)=>{const m=f(...g);return c(...g),m}:c&&(l[u]=c):u==="style"?l[u]={...c,...f}:u==="className"&&(l[u]=[c,f].filter(Boolean).join(" "))}return{...t,...l}}function getElementRef(t){var u,c;let a=(u=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:u.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?t.ref:(a=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?t.props.ref:t.props.ref||t.ref)}function r(t){var a,l,u="";if(typeof t=="string"||typeof t=="number")u+=t;else if(typeof t=="object")if(Array.isArray(t)){var c=t.length;for(a=0;a<c;a++)t[a]&&(l=r(t[a]))&&(u&&(u+=" "),u+=l)}else for(l in t)t[l]&&(u&&(u+=" "),u+=l);return u}function clsx(){for(var t,a,l=0,u="",c=arguments.length;l<c;l++)(t=arguments[l])&&(a=r(t))&&(u&&(u+=" "),u+=a);return u}const falsyToString=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,cx=clsx,cva=(t,a)=>l=>{var u;if((a==null?void 0:a.variants)==null)return cx(t,l==null?void 0:l.class,l==null?void 0:l.className);const{variants:c,defaultVariants:f}=a,d=Object.keys(c).map(h=>{const x=l==null?void 0:l[h],S=f==null?void 0:f[h];if(x===null)return null;const A=falsyToString(x)||falsyToString(S);return c[h][A]}),g=l&&Object.entries(l).reduce((h,x)=>{let[S,A]=x;return A===void 0||(h[S]=A),h},{}),m=a==null||(u=a.compoundVariants)===null||u===void 0?void 0:u.reduce((h,x)=>{let{class:S,className:A,...C}=x;return Object.entries(C).every(O=>{let[F,P]=O;return Array.isArray(P)?P.includes({...f,...g}[F]):{...f,...g}[F]===P})?[...h,S,A]:h},[]);return cx(t,d,m,l==null?void 0:l.class,l==null?void 0:l.className)},concatArrays=(t,a)=>{const l=new Array(t.length+a.length);for(let u=0;u<t.length;u++)l[u]=t[u];for(let u=0;u<a.length;u++)l[t.length+u]=a[u];return l},createClassValidatorObject=(t,a)=>({classGroupId:t,validator:a}),createClassPartObject=(t=new Map,a=null,l)=>({nextPart:t,validators:a,classGroupId:l}),CLASS_PART_SEPARATOR="-",EMPTY_CONFLICTS=[],ARBITRARY_PROPERTY_PREFIX="arbitrary..",createClassGroupUtils=t=>{const a=createClassMap(t),{conflictingClassGroups:l,conflictingClassGroupModifiers:u}=t;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return getGroupIdForArbitraryProperty(d);const g=d.split(CLASS_PART_SEPARATOR),m=g[0]===""&&g.length>1?1:0;return getGroupRecursive(g,m,a)},getConflictingClassGroupIds:(d,g)=>{if(g){const m=u[d],h=l[d];return m?h?concatArrays(h,m):m:h||EMPTY_CONFLICTS}return l[d]||EMPTY_CONFLICTS}}},getGroupRecursive=(t,a,l)=>{if(t.length-a===0)return l.classGroupId;const c=t[a],f=l.nextPart.get(c);if(f){const h=getGroupRecursive(t,a+1,f);if(h)return h}const d=l.validators;if(d===null)return;const g=a===0?t.join(CLASS_PART_SEPARATOR):t.slice(a).join(CLASS_PART_SEPARATOR),m=d.length;for(let h=0;h<m;h++){const x=d[h];if(x.validator(g))return x.classGroupId}},getGroupIdForArbitraryProperty=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=t.slice(1,-1),l=a.indexOf(":"),u=a.slice(0,l);return u?ARBITRARY_PROPERTY_PREFIX+u:void 0})(),createClassMap=t=>{const{theme:a,classGroups:l}=t;return processClassGroups(l,a)},processClassGroups=(t,a)=>{const l=createClassPartObject();for(const u in t){const c=t[u];processClassesRecursively(c,l,u,a)}return l},processClassesRecursively=(t,a,l,u)=>{const c=t.length;for(let f=0;f<c;f++){const d=t[f];processClassDefinition(d,a,l,u)}},processClassDefinition=(t,a,l,u)=>{if(typeof t=="string"){processStringDefinition(t,a,l);return}if(typeof t=="function"){processFunctionDefinition(t,a,l,u);return}processObjectDefinition(t,a,l,u)},processStringDefinition=(t,a,l)=>{const u=t===""?a:getPart(a,t);u.classGroupId=l},processFunctionDefinition=(t,a,l,u)=>{if(isThemeGetter(t)){processClassesRecursively(t(u),a,l,u);return}a.validators===null&&(a.validators=[]),a.validators.push(createClassValidatorObject(l,t))},processObjectDefinition=(t,a,l,u)=>{const c=Object.entries(t),f=c.length;for(let d=0;d<f;d++){const[g,m]=c[d];processClassesRecursively(m,getPart(a,g),l,u)}},getPart=(t,a)=>{let l=t;const u=a.split(CLASS_PART_SEPARATOR),c=u.length;for(let f=0;f<c;f++){const d=u[f];let g=l.nextPart.get(d);g||(g=createClassPartObject(),l.nextPart.set(d,g)),l=g}return l},isThemeGetter=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,createLruCache=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,l=Object.create(null),u=Object.create(null);const c=(f,d)=>{l[f]=d,a++,a>t&&(a=0,u=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=u[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",EMPTY_MODIFIERS=[],createResultObject=(t,a,l,u,c)=>({modifiers:t,hasImportantModifier:a,baseClassName:l,maybePostfixModifierPosition:u,isExternal:c}),createParseClassName=t=>{const{prefix:a,experimentalParseClassName:l}=t;let u=c=>{const f=[];let d=0,g=0,m=0,h;const x=c.length;for(let F=0;F<x;F++){const P=c[F];if(d===0&&g===0){if(P===MODIFIER_SEPARATOR){f.push(c.slice(m,F)),m=F+1;continue}if(P==="/"){h=F;continue}}P==="["?d++:P==="]"?d--:P==="("?g++:P===")"&&g--}const S=f.length===0?c:c.slice(m);let A=S,C=!1;S.endsWith(IMPORTANT_MODIFIER)?(A=S.slice(0,-1),C=!0):S.startsWith(IMPORTANT_MODIFIER)&&(A=S.slice(1),C=!0);const O=h&&h>m?h-m:void 0;return createResultObject(f,C,A,O)};if(a){const c=a+MODIFIER_SEPARATOR,f=u;u=d=>d.startsWith(c)?f(d.slice(c.length)):createResultObject(EMPTY_MODIFIERS,!1,d,void 0,!0)}if(l){const c=u;u=f=>l({className:f,parseClassName:c})}return u},createSortModifiers=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((l,u)=>{a.set(l,1e6+u)}),l=>{const u=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],g=d[0]==="[",m=a.has(d);g||m?(c.length>0&&(c.sort(),u.push(...c),c=[]),u.push(d)):c.push(d)}return c.length>0&&(c.sort(),u.push(...c)),u}},createConfigUtils=t=>({cache:createLruCache(t.cacheSize),parseClassName:createParseClassName(t),sortModifiers:createSortModifiers(t),...createClassGroupUtils(t)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(t,a)=>{const{parseClassName:l,getClassGroupId:u,getConflictingClassGroupIds:c,sortModifiers:f}=a,d=[],g=t.trim().split(SPLIT_CLASSES_REGEX);let m="";for(let h=g.length-1;h>=0;h-=1){const x=g[h],{isExternal:S,modifiers:A,hasImportantModifier:C,baseClassName:O,maybePostfixModifierPosition:F}=l(x);if(S){m=x+(m.length>0?" "+m:m);continue}let P=!!F,q=u(P?O.substring(0,F):O);if(!q){if(!P){m=x+(m.length>0?" "+m:m);continue}if(q=u(O),!q){m=x+(m.length>0?" "+m:m);continue}P=!1}const ie=A.length===0?"":A.length===1?A[0]:f(A).join(":"),K=C?ie+IMPORTANT_MODIFIER:ie,pe=K+q;if(d.indexOf(pe)>-1)continue;d.push(pe);const ye=c(q,P);for(let $=0;$<ye.length;++$){const be=ye[$];d.push(K+be)}m=x+(m.length>0?" "+m:m)}return m},twJoin=(...t)=>{let a=0,l,u,c="";for(;a<t.length;)(l=t[a++])&&(u=toValue(l))&&(c&&(c+=" "),c+=u);return c},toValue=t=>{if(typeof t=="string")return t;let a,l="";for(let u=0;u<t.length;u++)t[u]&&(a=toValue(t[u]))&&(l&&(l+=" "),l+=a);return l},createTailwindMerge=(t,...a)=>{let l,u,c,f;const d=m=>{const h=a.reduce((x,S)=>S(x),t());return l=createConfigUtils(h),u=l.cache.get,c=l.cache.set,f=g,g(m)},g=m=>{const h=u(m);if(h)return h;const x=mergeClassList(m,l);return c(m,x),x};return f=d,(...m)=>f(twJoin(...m))},fallbackThemeArr=[],fromTheme=t=>{const a=l=>l[t]||fallbackThemeArr;return a.isThemeGetter=!0,a},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=t=>fractionRegex.test(t),isNumber=t=>!!t&&!Number.isNaN(Number(t)),isInteger=t=>!!t&&Number.isInteger(Number(t)),isPercent=t=>t.endsWith("%")&&isNumber(t.slice(0,-1)),isTshirtSize=t=>tshirtUnitRegex.test(t),isAny=()=>!0,isLengthOnly=t=>lengthUnitRegex.test(t)&&!colorFunctionRegex.test(t),isNever=()=>!1,isShadow=t=>shadowRegex.test(t),isImage=t=>imageRegex.test(t),isAnyNonArbitrary=t=>!isArbitraryValue(t)&&!isArbitraryVariable(t),isArbitrarySize=t=>getIsArbitraryValue(t,isLabelSize,isNever),isArbitraryValue=t=>arbitraryValueRegex.test(t),isArbitraryLength=t=>getIsArbitraryValue(t,isLabelLength,isLengthOnly),isArbitraryNumber=t=>getIsArbitraryValue(t,isLabelNumber,isNumber),isArbitraryWeight=t=>getIsArbitraryValue(t,isLabelWeight,isAny),isArbitraryFamilyName=t=>getIsArbitraryValue(t,isLabelFamilyName,isNever),isArbitraryPosition=t=>getIsArbitraryValue(t,isLabelPosition,isNever),isArbitraryImage=t=>getIsArbitraryValue(t,isLabelImage,isImage),isArbitraryShadow=t=>getIsArbitraryValue(t,isLabelShadow,isShadow),isArbitraryVariable=t=>arbitraryVariableRegex.test(t),isArbitraryVariableLength=t=>getIsArbitraryVariable(t,isLabelLength),isArbitraryVariableFamilyName=t=>getIsArbitraryVariable(t,isLabelFamilyName),isArbitraryVariablePosition=t=>getIsArbitraryVariable(t,isLabelPosition),isArbitraryVariableSize=t=>getIsArbitraryVariable(t,isLabelSize),isArbitraryVariableImage=t=>getIsArbitraryVariable(t,isLabelImage),isArbitraryVariableShadow=t=>getIsArbitraryVariable(t,isLabelShadow,!0),isArbitraryVariableWeight=t=>getIsArbitraryVariable(t,isLabelWeight,!0),getIsArbitraryValue=(t,a,l)=>{const u=arbitraryValueRegex.exec(t);return u?u[1]?a(u[1]):l(u[2]):!1},getIsArbitraryVariable=(t,a,l=!1)=>{const u=arbitraryVariableRegex.exec(t);return u?u[1]?a(u[1]):l:!1},isLabelPosition=t=>t==="position"||t==="percentage",isLabelImage=t=>t==="image"||t==="url",isLabelSize=t=>t==="length"||t==="size"||t==="bg-size",isLabelLength=t=>t==="length",isLabelNumber=t=>t==="number",isLabelFamilyName=t=>t==="family-name",isLabelWeight=t=>t==="number"||t==="weight",isLabelShadow=t=>t==="shadow",getDefaultConfig=()=>{const t=fromTheme("color"),a=fromTheme("font"),l=fromTheme("text"),u=fromTheme("font-weight"),c=fromTheme("tracking"),f=fromTheme("leading"),d=fromTheme("breakpoint"),g=fromTheme("container"),m=fromTheme("spacing"),h=fromTheme("radius"),x=fromTheme("shadow"),S=fromTheme("inset-shadow"),A=fromTheme("text-shadow"),C=fromTheme("drop-shadow"),O=fromTheme("blur"),F=fromTheme("perspective"),P=fromTheme("aspect"),q=fromTheme("ease"),ie=fromTheme("animate"),K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],pe=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ye=()=>[...pe(),isArbitraryVariable,isArbitraryValue],$=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto","contain","none"],ue=()=>[isArbitraryVariable,isArbitraryValue,m],ke=()=>[isFraction,"full","auto",...ue()],Z=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],ve=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],ee=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],Ae=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...ue()],de=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ue()],oe=()=>[isFraction,"screen","full","dvw","lvw","svw","min","max","fit",...ue()],Ne=()=>[isFraction,"screen","full","lh","dvh","lvh","svh","min","max","fit",...ue()],N=()=>[t,isArbitraryVariable,isArbitraryValue],I=()=>[...pe(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],ge=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],me=()=>["","none","full",h,isArbitraryVariable,isArbitraryValue],Se=()=>["",isNumber,isArbitraryVariableLength,isArbitraryLength],Oe=()=>["solid","dashed","dotted","double"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Re=()=>[isNumber,isPercent,isArbitraryVariablePosition,isArbitraryPosition],nt=()=>["","none",O,isArbitraryVariable,isArbitraryValue],Ke=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],at=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],kt=()=>[isNumber,isArbitraryVariable,isArbitraryValue],st=()=>[isFraction,"full",...ue()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,P]}],container:["container"],columns:[{columns:[isNumber,isArbitraryValue,isArbitraryVariable,g]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ye()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:be()}],"overscroll-x":[{"overscroll-x":be()}],"overscroll-y":[{"overscroll-y":be()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ke()}],"inset-x":[{"inset-x":ke()}],"inset-y":[{"inset-y":ke()}],start:[{"inset-s":ke(),start:ke()}],end:[{"inset-e":ke(),end:ke()}],"inset-bs":[{"inset-bs":ke()}],"inset-be":[{"inset-be":ke()}],top:[{top:ke()}],right:[{right:ke()}],bottom:[{bottom:ke()}],left:[{left:ke()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",g,...ue()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:ve()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:ve()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ae()}],"auto-rows":[{"auto-rows":Ae()}],gap:[{gap:ue()}],"gap-x":[{"gap-x":ue()}],"gap-y":[{"gap-y":ue()}],"justify-content":[{justify:[...xe(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...xe()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":xe()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:ue()}],px:[{px:ue()}],py:[{py:ue()}],ps:[{ps:ue()}],pe:[{pe:ue()}],pbs:[{pbs:ue()}],pbe:[{pbe:ue()}],pt:[{pt:ue()}],pr:[{pr:ue()}],pb:[{pb:ue()}],pl:[{pl:ue()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":ue()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ue()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...Ne()]}],"min-block-size":[{"min-block":["auto",...Ne()]}],"max-block-size":[{"max-block":["none",...Ne()]}],w:[{w:[g,"screen",...de()]}],"min-w":[{"min-w":[g,"screen","none",...de()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[d]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",l,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,isArbitraryVariableWeight,isArbitraryWeight]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryFamilyName,a]}],"font-features":[{"font-features":[isArbitraryValue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[f,...ue()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[isNumber,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ue()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-bs":[{"border-bs":Se()}],"border-w-be":[{"border-be":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Oe(),"hidden","none"]}],"divide-style":[{divide:[...Oe(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...Oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",x,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",S,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[isNumber,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",A,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[isNumber,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[isNumber]}],"mask-image-linear-from-pos":[{"mask-linear-from":Re()}],"mask-image-linear-to-pos":[{"mask-linear-to":Re()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":Re()}],"mask-image-t-to-pos":[{"mask-t-to":Re()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":Re()}],"mask-image-r-to-pos":[{"mask-r-to":Re()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":Re()}],"mask-image-b-to-pos":[{"mask-b-to":Re()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":Re()}],"mask-image-l-to-pos":[{"mask-l-to":Re()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":Re()}],"mask-image-x-to-pos":[{"mask-x-to":Re()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":Re()}],"mask-image-y-to-pos":[{"mask-y-to":Re()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":Re()}],"mask-image-radial-to-pos":[{"mask-radial-to":Re()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":pe()}],"mask-image-conic-pos":[{"mask-conic":[isNumber]}],"mask-image-conic-from-pos":[{"mask-conic-from":Re()}],"mask-image-conic-to-pos":[{"mask-conic-to":Re()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:nt()}],brightness:[{brightness:[isNumber,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",C,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",isNumber,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":nt()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ue()}],"border-spacing-x":[{"border-spacing-x":ue()}],"border-spacing-y":[{"border-spacing-y":ue()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",q,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",ie,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[F,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":ye()}],rotate:[{rotate:Ke()}],"rotate-x":[{"rotate-x":Ke()}],"rotate-y":[{"rotate-y":Ke()}],"rotate-z":[{"rotate-z":Ke()}],scale:[{scale:at()}],"scale-x":[{"scale-x":at()}],"scale-y":[{"scale-y":at()}],"scale-z":[{"scale-z":at()}],"scale-3d":["scale-3d"],skew:[{skew:kt()}],"skew-x":[{"skew-x":kt()}],"skew-y":[{"skew-y":kt()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:ye()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ue()}],"scroll-mx":[{"scroll-mx":ue()}],"scroll-my":[{"scroll-my":ue()}],"scroll-ms":[{"scroll-ms":ue()}],"scroll-me":[{"scroll-me":ue()}],"scroll-mbs":[{"scroll-mbs":ue()}],"scroll-mbe":[{"scroll-mbe":ue()}],"scroll-mt":[{"scroll-mt":ue()}],"scroll-mr":[{"scroll-mr":ue()}],"scroll-mb":[{"scroll-mb":ue()}],"scroll-ml":[{"scroll-ml":ue()}],"scroll-p":[{"scroll-p":ue()}],"scroll-px":[{"scroll-px":ue()}],"scroll-py":[{"scroll-py":ue()}],"scroll-ps":[{"scroll-ps":ue()}],"scroll-pe":[{"scroll-pe":ue()}],"scroll-pbs":[{"scroll-pbs":ue()}],"scroll-pbe":[{"scroll-pbe":ue()}],"scroll-pt":[{"scroll-pt":ue()}],"scroll-pr":[{"scroll-pr":ue()}],"scroll-pb":[{"scroll-pb":ue()}],"scroll-pl":[{"scroll-pl":ue()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[isNumber,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},twMerge=createTailwindMerge(getDefaultConfig);function cn(...t){return twMerge(clsx(t))}const buttonVariants=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Button=reactExports.forwardRef(({className:t,variant:a,size:l,asChild:u=!1,...c},f)=>{const d=u?Slot:"button";return jsxRuntimeExports.jsx(d,{className:cn(buttonVariants({variant:a,size:l,className:t})),ref:f,...c})});Button.displayName="Button";/**
|
|
32
|
+
`+s.stack}}var Ht=Object.prototype.hasOwnProperty,At=t.unstable_scheduleCallback,Pt=t.unstable_cancelCallback,ln=t.unstable_shouldYield,on=t.unstable_requestPaint,Je=t.unstable_now,k=t.unstable_getCurrentPriorityLevel,z=t.unstable_ImmediatePriority,U=t.unstable_UserBlockingPriority,te=t.unstable_NormalPriority,J=t.unstable_LowPriority,v=t.unstable_IdlePriority,b=t.log,E=t.unstable_setDisableYieldValue,T=null,R=null;function L(e){if(typeof b=="function"&&E(e),R&&typeof R.setStrictMode=="function")try{R.setStrictMode(T,e)}catch{}}var D=Math.clz32?Math.clz32:Ee,se=Math.log,ae=Math.LN2;function Ee(e){return e>>>=0,e===0?32:31-(se(e)/ae|0)|0}var Te=256,we=262144,lt=4194304;function tr(e){var n=e&42;if(n!==0)return n;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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 Gi(e,n,o){var s=e.pendingLanes;if(s===0)return 0;var p=0,y=e.suspendedLanes,w=e.pingedLanes;e=e.warmLanes;var _=s&134217727;return _!==0?(s=_&~y,s!==0?p=tr(s):(w&=_,w!==0?p=tr(w):o||(o=_&~e,o!==0&&(p=tr(o))))):(_=s&~y,_!==0?p=tr(_):w!==0?p=tr(w):o||(o=s&~e,o!==0&&(p=tr(o)))),p===0?0:n!==0&&n!==p&&(n&y)===0&&(y=p&-p,o=n&-n,y>=o||y===32&&(o&4194048)!==0)?n:p}function ri(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function yd(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 vu(){var e=lt;return lt<<=1,(lt&62914560)===0&&(lt=4194304),e}function ol(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function ii(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xd(e,n,o,s,p,y){var w=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var _=e.entanglements,M=e.expirationTimes,G=e.hiddenUpdates;for(o=w&~o;0<o;){var le=31-D(o),fe=1<<le;_[le]=0,M[le]=-1;var K=G[le];if(K!==null)for(G[le]=null,le=0;le<K.length;le++){var W=K[le];W!==null&&(W.lane&=-536870913)}o&=~fe}s!==0&&Su(e,s,0),y!==0&&p===0&&e.tag!==0&&(e.suspendedLanes|=y&~(w&~n))}function Su(e,n,o){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-D(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|o&261930}function Eu(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var s=31-D(o),p=1<<s;p&n|e[s]&n&&(e[s]|=n),o&=~p}}function ku(e,n){var o=n&-n;return o=(o&42)!==0?1:ul(o),(o&(e.suspendedLanes|n))!==0?0:o}function ul(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 sl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function wu(){var e=de.p;return e!==0?e:(e=window.event,e===void 0?32:cd(e.type))}function Au(e,n){var o=de.p;try{return de.p=e,n()}finally{de.p=o}}var Nn=Math.random().toString(36).slice(2),xt="__reactFiber$"+Nn,Rt="__reactProps$"+Nn,br="__reactContainer$"+Nn,cl="__reactEvents$"+Nn,bd="__reactListeners$"+Nn,vd="__reactHandles$"+Nn,Cu="__reactResources$"+Nn,ai="__reactMarker$"+Nn;function fl(e){delete e[xt],delete e[Rt],delete e[cl],delete e[bd],delete e[vd]}function vr(e){var n=e[xt];if(n)return n;for(var o=e.parentNode;o;){if(n=o[br]||o[xt]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=Gf(e);e!==null;){if(o=e[xt])return o;e=Gf(e)}return n}e=o,o=e.parentNode}return null}function Sr(e){if(e=e[xt]||e[br]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function li(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(u(33))}function Er(e){var n=e[Cu];return n||(n=e[Cu]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function gt(e){e[ai]=!0}var Tu=new Set,_u={};function nr(e,n){kr(e,n),kr(e+"Capture",n)}function kr(e,n){for(_u[e]=n,e=0;e<n.length;e++)Tu.add(n[e])}var Sd=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]*$"),Ru={},ju={};function Ed(e){return Ht.call(ju,e)?!0:Ht.call(Ru,e)?!1:Sd.test(e)?ju[e]=!0:(Ru[e]=!0,!1)}function Qi(e,n,o){if(Ed(n))if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+o)}}function Xi(e,n,o){if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+o)}}function pn(e,n,o,s){if(s===null)e.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}e.setAttributeNS(n,o,""+s)}}function Yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nu(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function kd(e,n,o){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,y=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return p.call(this)},set:function(w){o=""+w,y.call(this,w)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(w){o=""+w},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function dl(e){if(!e._valueTracker){var n=Nu(e)?"checked":"value";e._valueTracker=kd(e,n,""+e[n])}}function Ou(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),s="";return e&&(s=Nu(e)?e.checked?"true":"false":e.value),e=s,e!==o?(n.setValue(e),!0):!1}function Ki(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var wd=/[\n"\\]/g;function $t(e){return e.replace(wd,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function pl(e,n,o,s,p,y,w,_){e.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.type=w:e.removeAttribute("type"),n!=null?w==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Yt(n)):e.value!==""+Yt(n)&&(e.value=""+Yt(n)):w!=="submit"&&w!=="reset"||e.removeAttribute("value"),n!=null?hl(e,w,Yt(n)):o!=null?hl(e,w,Yt(o)):s!=null&&e.removeAttribute("value"),p==null&&y!=null&&(e.defaultChecked=!!y),p!=null&&(e.checked=p&&typeof p!="function"&&typeof p!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+Yt(_):e.removeAttribute("name")}function zu(e,n,o,s,p,y,w,_){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.type=y),n!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||n!=null)){dl(e);return}o=o!=null?""+Yt(o):"",n=n!=null?""+Yt(n):o,_||n===e.value||(e.value=n),e.defaultValue=n}s=s??p,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=_?e.checked:!!s,e.defaultChecked=!!s,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(e.name=w),dl(e)}function hl(e,n,o){n==="number"&&Ki(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function wr(e,n,o,s){if(e=e.options,n){n={};for(var p=0;p<o.length;p++)n["$"+o[p]]=!0;for(o=0;o<e.length;o++)p=n.hasOwnProperty("$"+e[o].value),e[o].selected!==p&&(e[o].selected=p),p&&s&&(e[o].defaultSelected=!0)}else{for(o=""+Yt(o),n=null,p=0;p<e.length;p++){if(e[p].value===o){e[p].selected=!0,s&&(e[p].defaultSelected=!0);return}n!==null||e[p].disabled||(n=e[p])}n!==null&&(n.selected=!0)}}function Du(e,n,o){if(n!=null&&(n=""+Yt(n),n!==e.value&&(e.value=n),o==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=o!=null?""+Yt(o):""}function Lu(e,n,o,s){if(n==null){if(s!=null){if(o!=null)throw Error(u(92));if(he(s)){if(1<s.length)throw Error(u(93));s=s[0]}o=s}o==null&&(o=""),n=o}o=Yt(n),e.defaultValue=o,s=e.textContent,s===o&&s!==""&&s!==null&&(e.value=s),dl(e)}function Ar(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Ad=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 Mu(e,n,o){var s=n.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,o):typeof o!="number"||o===0||Ad.has(n)?n==="float"?e.cssFloat=o:e[n]=(""+o).trim():e[n]=o+"px"}function Iu(e,n,o){if(n!=null&&typeof n!="object")throw Error(u(62));if(e=e.style,o!=null){for(var s in o)!o.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var p in n)s=n[p],n.hasOwnProperty(p)&&o[p]!==s&&Mu(e,p,s)}else for(var y in n)n.hasOwnProperty(y)&&Mu(e,y,n[y])}function ml(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 Cd=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"]]),Td=/^[\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 Ji(e){return Td.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function hn(){}var gl=null;function yl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cr=null,Tr=null;function Bu(e){var n=Sr(e);if(n&&(e=n.stateNode)){var o=e[Rt]||null;e:switch(e=n.stateNode,n.type){case"input":if(pl(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+$t(""+n)+'"][type="radio"]'),n=0;n<o.length;n++){var s=o[n];if(s!==e&&s.form===e.form){var p=s[Rt]||null;if(!p)throw Error(u(90));pl(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(n=0;n<o.length;n++)s=o[n],s.form===e.form&&Ou(s)}break e;case"textarea":Du(e,o.value,o.defaultValue);break e;case"select":n=o.value,n!=null&&wr(e,!!o.multiple,n,!1)}}}var xl=!1;function Uu(e,n,o){if(xl)return e(n,o);xl=!0;try{var s=e(n);return s}finally{if(xl=!1,(Cr!==null||Tr!==null)&&(Ua(),Cr&&(n=Cr,e=Tr,Tr=Cr=null,Bu(n),e)))for(n=0;n<e.length;n++)Bu(e[n])}}function oi(e,n){var o=e.stateNode;if(o===null)return null;var s=o[Rt]||null;if(s===null)return null;o=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(u(231,n,typeof o));return o}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bl=!1;if(mn)try{var ui={};Object.defineProperty(ui,"passive",{get:function(){bl=!0}}),window.addEventListener("test",ui,ui),window.removeEventListener("test",ui,ui)}catch{bl=!1}var On=null,vl=null,Wi=null;function qu(){if(Wi)return Wi;var e,n=vl,o=n.length,s,p="value"in On?On.value:On.textContent,y=p.length;for(e=0;e<o&&n[e]===p[e];e++);var w=o-e;for(s=1;s<=w&&n[o-s]===p[y-s];s++);return Wi=p.slice(e,1<s?1-s:void 0)}function ea(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ta(){return!0}function Zu(){return!1}function jt(e){function n(o,s,p,y,w){this._reactName=o,this._targetInst=p,this.type=s,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(o=e[_],this[_]=o?o(y):y[_]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ta:Zu,this.isPropagationStopped=Zu,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ta)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ta)},persist:function(){},isPersistent:ta}),n}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},na=jt(rr),si=S({},rr,{view:0,detail:0}),_d=jt(si),Sl,El,ci,ra=S({},si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wl,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!==ci&&(ci&&e.type==="mousemove"?(Sl=e.screenX-ci.screenX,El=e.screenY-ci.screenY):El=Sl=0,ci=e),Sl)},movementY:function(e){return"movementY"in e?e.movementY:El}}),Fu=jt(ra),Rd=S({},ra,{dataTransfer:0}),jd=jt(Rd),Nd=S({},si,{relatedTarget:0}),kl=jt(Nd),Od=S({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),zd=jt(Od),Dd=S({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ld=jt(Dd),Md=S({},rr,{data:0}),Vu=jt(Md),Id={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bd={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"},Ud={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qd(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Ud[e])?!!n[e]:!1}function wl(){return qd}var Zd=S({},si,{key:function(e){if(e.key){var n=Id[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ea(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Bd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wl,charCode:function(e){return e.type==="keypress"?ea(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ea(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fd=jt(Zd),Vd=S({},ra,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hu=jt(Vd),Hd=S({},si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wl}),Pd=jt(Hd),Yd=S({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),$d=jt(Yd),Gd=S({},ra,{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}),Qd=jt(Gd),Xd=S({},rr,{newState:0,oldState:0}),Kd=jt(Xd),Jd=[9,13,27,32],Al=mn&&"CompositionEvent"in window,fi=null;mn&&"documentMode"in document&&(fi=document.documentMode);var Wd=mn&&"TextEvent"in window&&!fi,Pu=mn&&(!Al||fi&&8<fi&&11>=fi),Yu=" ",$u=!1;function Gu(e,n){switch(e){case"keyup":return Jd.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _r=!1;function ep(e,n){switch(e){case"compositionend":return Qu(n);case"keypress":return n.which!==32?null:($u=!0,Yu);case"textInput":return e=n.data,e===Yu&&$u?null:e;default:return null}}function tp(e,n){if(_r)return e==="compositionend"||!Al&&Gu(e,n)?(e=qu(),Wi=vl=On=null,_r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Pu&&n.locale!=="ko"?null:n.data;default:return null}}var np={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 Xu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!np[e.type]:n==="textarea"}function Ku(e,n,o,s){Cr?Tr?Tr.push(s):Tr=[s]:Cr=s,n=Ya(n,"onChange"),0<n.length&&(o=new na("onChange","change",null,o,s),e.push({event:o,listeners:n}))}var di=null,pi=null;function rp(e){Df(e,0)}function ia(e){var n=li(e);if(Ou(n))return e}function Ju(e,n){if(e==="change")return n}var Wu=!1;if(mn){var Cl;if(mn){var Tl="oninput"in document;if(!Tl){var es=document.createElement("div");es.setAttribute("oninput","return;"),Tl=typeof es.oninput=="function"}Cl=Tl}else Cl=!1;Wu=Cl&&(!document.documentMode||9<document.documentMode)}function ts(){di&&(di.detachEvent("onpropertychange",ns),pi=di=null)}function ns(e){if(e.propertyName==="value"&&ia(pi)){var n=[];Ku(n,pi,e,yl(e)),Uu(rp,n)}}function ip(e,n,o){e==="focusin"?(ts(),di=n,pi=o,di.attachEvent("onpropertychange",ns)):e==="focusout"&&ts()}function ap(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ia(pi)}function lp(e,n){if(e==="click")return ia(n)}function op(e,n){if(e==="input"||e==="change")return ia(n)}function up(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Mt=typeof Object.is=="function"?Object.is:up;function hi(e,n){if(Mt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var p=o[s];if(!Ht.call(n,p)||!Mt(e[p],n[p]))return!1}return!0}function rs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function is(e,n){var o=rs(e);e=0;for(var s;o;){if(o.nodeType===3){if(s=e+o.textContent.length,e<=n&&s>=n)return{node:o,offset:n-e};e=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=rs(o)}}function as(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?as(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ls(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ki(e.document);n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Ki(e.document)}return n}function _l(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var sp=mn&&"documentMode"in document&&11>=document.documentMode,Rr=null,Rl=null,mi=null,jl=!1;function os(e,n,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;jl||Rr==null||Rr!==Ki(s)||(s=Rr,"selectionStart"in s&&_l(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),mi&&hi(mi,s)||(mi=s,s=Ya(Rl,"onSelect"),0<s.length&&(n=new na("onSelect","select",null,n,o),e.push({event:n,listeners:s}),n.target=Rr)))}function ir(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var jr={animationend:ir("Animation","AnimationEnd"),animationiteration:ir("Animation","AnimationIteration"),animationstart:ir("Animation","AnimationStart"),transitionrun:ir("Transition","TransitionRun"),transitionstart:ir("Transition","TransitionStart"),transitioncancel:ir("Transition","TransitionCancel"),transitionend:ir("Transition","TransitionEnd")},Nl={},us={};mn&&(us=document.createElement("div").style,"AnimationEvent"in window||(delete jr.animationend.animation,delete jr.animationiteration.animation,delete jr.animationstart.animation),"TransitionEvent"in window||delete jr.transitionend.transition);function ar(e){if(Nl[e])return Nl[e];if(!jr[e])return e;var n=jr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in us)return Nl[e]=n[o];return e}var ss=ar("animationend"),cs=ar("animationiteration"),fs=ar("animationstart"),cp=ar("transitionrun"),fp=ar("transitionstart"),dp=ar("transitioncancel"),ds=ar("transitionend"),ps=new Map,Ol="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(" ");Ol.push("scrollEnd");function nn(e,n){ps.set(e,n),nr(n,[e])}var aa=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process$1=="object"&&typeof process$1.emit=="function"){process$1.emit("uncaughtException",e);return}console.error(e)},Gt=[],Nr=0,zl=0;function la(){for(var e=Nr,n=zl=Nr=0;n<e;){var o=Gt[n];Gt[n++]=null;var s=Gt[n];Gt[n++]=null;var p=Gt[n];Gt[n++]=null;var y=Gt[n];if(Gt[n++]=null,s!==null&&p!==null){var w=s.pending;w===null?p.next=p:(p.next=w.next,w.next=p),s.pending=p}y!==0&&hs(o,p,y)}}function oa(e,n,o,s){Gt[Nr++]=e,Gt[Nr++]=n,Gt[Nr++]=o,Gt[Nr++]=s,zl|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Dl(e,n,o,s){return oa(e,n,o,s),ua(e)}function lr(e,n){return oa(e,null,null,n),ua(e)}function hs(e,n,o){e.lanes|=o;var s=e.alternate;s!==null&&(s.lanes|=o);for(var p=!1,y=e.return;y!==null;)y.childLanes|=o,s=y.alternate,s!==null&&(s.childLanes|=o),y.tag===22&&(e=y.stateNode,e===null||e._visibility&1||(p=!0)),e=y,y=y.return;return e.tag===3?(y=e.stateNode,p&&n!==null&&(p=31-D(o),e=y.hiddenUpdates,s=e[p],s===null?e[p]=[n]:s.push(n),n.lane=o|536870912),y):null}function ua(e){if(50<Ii)throw Ii=0,Ho=null,Error(u(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Or={};function pp(e,n,o,s){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,n,o,s){return new pp(e,n,o,s)}function Ll(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gn(e,n){var o=e.alternate;return o===null?(o=It(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o}function ms(e,n){e.flags&=65011714;var o=e.alternate;return o===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,n=o.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function sa(e,n,o,s,p,y){var w=0;if(s=e,typeof e=="function")Ll(e)&&(w=1);else if(typeof e=="string")w=xh(e,o,ge.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ke:return e=It(31,o,n,p),e.elementType=ke,e.lanes=y,e;case Z:return or(o.children,p,y,n);case P:w=8,p|=24;break;case q:return e=It(12,o,n,p|2),e.elementType=q,e.lanes=y,e;case ye:return e=It(13,o,n,p),e.elementType=ye,e.lanes=y,e;case Q:return e=It(19,o,n,p),e.elementType=Q,e.lanes=y,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:w=10;break e;case ne:w=9;break e;case pe:w=11;break e;case be:w=14;break e;case ue:w=16,s=null;break e}w=29,o=Error(u(130,e===null?"null":typeof e,"")),s=null}return n=It(w,o,n,p),n.elementType=e,n.type=s,n.lanes=y,n}function or(e,n,o,s){return e=It(7,e,s,n),e.lanes=o,e}function Ml(e,n,o){return e=It(6,e,null,n),e.lanes=o,e}function gs(e){var n=It(18,null,null,0);return n.stateNode=e,n}function Il(e,n,o){return n=It(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ys=new WeakMap;function Qt(e,n){if(typeof e=="object"&&e!==null){var o=ys.get(e);return o!==void 0?o:(n={value:e,source:n,stack:wt(n)},ys.set(e,n),n)}return{value:e,source:n,stack:wt(n)}}var zr=[],Dr=0,ca=null,gi=0,Xt=[],Kt=0,zn=null,un=1,sn="";function yn(e,n){zr[Dr++]=gi,zr[Dr++]=ca,ca=e,gi=n}function xs(e,n,o){Xt[Kt++]=un,Xt[Kt++]=sn,Xt[Kt++]=zn,zn=e;var s=un;e=sn;var p=32-D(s)-1;s&=~(1<<p),o+=1;var y=32-D(n)+p;if(30<y){var w=p-p%5;y=(s&(1<<w)-1).toString(32),s>>=w,p-=w,un=1<<32-D(n)+p|o<<p|s,sn=y+e}else un=1<<y|o<<p|s,sn=e}function Bl(e){e.return!==null&&(yn(e,1),xs(e,1,0))}function Ul(e){for(;e===ca;)ca=zr[--Dr],zr[Dr]=null,gi=zr[--Dr],zr[Dr]=null;for(;e===zn;)zn=Xt[--Kt],Xt[Kt]=null,sn=Xt[--Kt],Xt[Kt]=null,un=Xt[--Kt],Xt[Kt]=null}function bs(e,n){Xt[Kt++]=un,Xt[Kt++]=sn,Xt[Kt++]=zn,un=n.id,sn=n.overflow,zn=e}var bt=null,We=null,Ze=!1,Dn=null,Jt=!1,ql=Error(u(519));function Ln(e){var n=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yi(Qt(n,e)),ql}function vs(e){var n=e.stateNode,o=e.type,s=e.memoizedProps;switch(n[xt]=e,n[Rt]=s,o){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(o=0;o<Ui.length;o++)Ie(Ui[o],n);break;case"source":Ie("error",n);break;case"img":case"image":case"link":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"input":Ie("invalid",n),zu(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ie("invalid",n);break;case"textarea":Ie("invalid",n),Lu(n,s.value,s.defaultValue,s.children)}o=s.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||n.textContent===""+o||s.suppressHydrationWarning===!0||Bf(n.textContent,o)?(s.popover!=null&&(Ie("beforetoggle",n),Ie("toggle",n)),s.onScroll!=null&&Ie("scroll",n),s.onScrollEnd!=null&&Ie("scrollend",n),s.onClick!=null&&(n.onclick=hn),n=!0):n=!1,n||Ln(e,!0)}function Ss(e){for(bt=e.return;bt;)switch(bt.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:bt=bt.return}}function Lr(e){if(e!==bt)return!1;if(!Ze)return Ss(e),Ze=!0,!1;var n=e.tag,o;if((o=n!==3&&n!==27)&&((o=n===5)&&(o=e.type,o=!(o!=="form"&&o!=="button")||au(e.type,e.memoizedProps)),o=!o),o&&We&&Ln(e),Ss(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));We=$f(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));We=$f(e)}else n===27?(n=We,Qn(e.type)?(e=cu,cu=null,We=e):We=n):We=bt?en(e.stateNode.nextSibling):null;return!0}function ur(){We=bt=null,Ze=!1}function Zl(){var e=Dn;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),Dn=null),e}function yi(e){Dn===null?Dn=[e]:Dn.push(e)}var Fl=I(null),sr=null,xn=null;function Mn(e,n,o){j(Fl,n._currentValue),n._currentValue=o}function bn(e){e._currentValue=Fl.current,ie(Fl)}function Vl(e,n,o){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===o)break;e=e.return}}function Hl(e,n,o,s){var p=e.child;for(p!==null&&(p.return=e);p!==null;){var y=p.dependencies;if(y!==null){var w=p.child;y=y.firstContext;e:for(;y!==null;){var _=y;y=p;for(var M=0;M<n.length;M++)if(_.context===n[M]){y.lanes|=o,_=y.alternate,_!==null&&(_.lanes|=o),Vl(y.return,o,e),s||(w=null);break e}y=_.next}}else if(p.tag===18){if(w=p.return,w===null)throw Error(u(341));w.lanes|=o,y=w.alternate,y!==null&&(y.lanes|=o),Vl(w,o,e),w=null}else w=p.child;if(w!==null)w.return=p;else for(w=p;w!==null;){if(w===e){w=null;break}if(p=w.sibling,p!==null){p.return=w.return,w=p;break}w=w.return}p=w}}function Mr(e,n,o,s){e=null;for(var p=n,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var w=p.alternate;if(w===null)throw Error(u(387));if(w=w.memoizedProps,w!==null){var _=p.type;Mt(p.pendingProps.value,w.value)||(e!==null?e.push(_):e=[_])}}else if(p===Oe.current){if(w=p.alternate,w===null)throw Error(u(387));w.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(e!==null?e.push(Hi):e=[Hi])}p=p.return}e!==null&&Hl(n,e,o,s),n.flags|=262144}function fa(e){for(e=e.firstContext;e!==null;){if(!Mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cr(e){sr=e,xn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Es(sr,e)}function da(e,n){return sr===null&&cr(e),Es(e,n)}function Es(e,n){var o=n._currentValue;if(n={context:n,memoizedValue:o,next:null},xn===null){if(e===null)throw Error(u(308));xn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else xn=xn.next=n;return o}var hp=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(o,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(o){return o()})}},mp=t.unstable_scheduleCallback,gp=t.unstable_NormalPriority,ct={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pl(){return{controller:new hp,data:new Map,refCount:0}}function xi(e){e.refCount--,e.refCount===0&&mp(gp,function(){e.controller.abort()})}var bi=null,Yl=0,Ir=0,Br=null;function yp(e,n){if(bi===null){var o=bi=[];Yl=0,Ir=Xo(),Br={status:"pending",value:void 0,then:function(s){o.push(s)}}}return Yl++,n.then(ks,ks),n}function ks(){if(--Yl===0&&bi!==null){Br!==null&&(Br.status="fulfilled");var e=bi;bi=null,Ir=0,Br=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function xp(e,n){var o=[],s={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var p=0;p<o.length;p++)(0,o[p])(n)},function(p){for(s.status="rejected",s.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),s}var ws=H.S;H.S=function(e,n){uf=Je(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&yp(e,n),ws!==null&&ws(e,n)};var fr=I(null);function $l(){var e=fr.current;return e!==null?e:Xe.pooledCache}function pa(e,n){n===null?j(fr,fr.current):j(fr,n.pool)}function As(){var e=$l();return e===null?null:{parent:ct._currentValue,pool:e}}var Ur=Error(u(460)),Gl=Error(u(474)),ha=Error(u(542)),ma={then:function(){}};function Cs(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ts(e,n,o){switch(o=e[o],o===void 0?e.push(n):o!==n&&(n.then(hn,hn),n=o),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Rs(e),e;default:if(typeof n.status=="string")n.then(hn,hn);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var p=n;p.status="fulfilled",p.value=s}},function(s){if(n.status==="pending"){var p=n;p.status="rejected",p.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Rs(e),e}throw pr=n,Ur}}function dr(e){try{var n=e._init;return n(e._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(pr=o,Ur):o}}var pr=null;function _s(){if(pr===null)throw Error(u(459));var e=pr;return pr=null,e}function Rs(e){if(e===Ur||e===ha)throw Error(u(483))}var qr=null,vi=0;function ga(e){var n=vi;return vi+=1,qr===null&&(qr=[]),Ts(qr,e,n)}function Si(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function ya(e,n){throw n.$$typeof===A?Error(u(525)):(e=Object.prototype.toString.call(n),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function js(e){function n(V,B){if(e){var $=V.deletions;$===null?(V.deletions=[B],V.flags|=16):$.push(B)}}function o(V,B){if(!e)return null;for(;B!==null;)n(V,B),B=B.sibling;return null}function s(V){for(var B=new Map;V!==null;)V.key!==null?B.set(V.key,V):B.set(V.index,V),V=V.sibling;return B}function p(V,B){return V=gn(V,B),V.index=0,V.sibling=null,V}function y(V,B,$){return V.index=$,e?($=V.alternate,$!==null?($=$.index,$<B?(V.flags|=67108866,B):$):(V.flags|=67108866,B)):(V.flags|=1048576,B)}function w(V){return e&&V.alternate===null&&(V.flags|=67108866),V}function _(V,B,$,ce){return B===null||B.tag!==6?(B=Ml($,V.mode,ce),B.return=V,B):(B=p(B,$),B.return=V,B)}function M(V,B,$,ce){var je=$.type;return je===Z?le(V,B,$.props.children,ce,$.key):B!==null&&(B.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===ue&&dr(je)===B.type)?(B=p(B,$.props),Si(B,$),B.return=V,B):(B=sa($.type,$.key,$.props,null,V.mode,ce),Si(B,$),B.return=V,B)}function G(V,B,$,ce){return B===null||B.tag!==4||B.stateNode.containerInfo!==$.containerInfo||B.stateNode.implementation!==$.implementation?(B=Il($,V.mode,ce),B.return=V,B):(B=p(B,$.children||[]),B.return=V,B)}function le(V,B,$,ce,je){return B===null||B.tag!==7?(B=or($,V.mode,ce,je),B.return=V,B):(B=p(B,$),B.return=V,B)}function fe(V,B,$){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=Ml(""+B,V.mode,$),B.return=V,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case C:return $=sa(B.type,B.key,B.props,null,V.mode,$),Si($,B),$.return=V,$;case O:return B=Il(B,V.mode,$),B.return=V,B;case ue:return B=dr(B),fe(V,B,$)}if(he(B)||ee(B))return B=or(B,V.mode,$,null),B.return=V,B;if(typeof B.then=="function")return fe(V,ga(B),$);if(B.$$typeof===Y)return fe(V,da(V,B),$);ya(V,B)}return null}function K(V,B,$,ce){var je=B!==null?B.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return je!==null?null:_(V,B,""+$,ce);if(typeof $=="object"&&$!==null){switch($.$$typeof){case C:return $.key===je?M(V,B,$,ce):null;case O:return $.key===je?G(V,B,$,ce):null;case ue:return $=dr($),K(V,B,$,ce)}if(he($)||ee($))return je!==null?null:le(V,B,$,ce,null);if(typeof $.then=="function")return K(V,B,ga($),ce);if($.$$typeof===Y)return K(V,B,da(V,$),ce);ya(V,$)}return null}function W(V,B,$,ce,je){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return V=V.get($)||null,_(B,V,""+ce,je);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case C:return V=V.get(ce.key===null?$:ce.key)||null,M(B,V,ce,je);case O:return V=V.get(ce.key===null?$:ce.key)||null,G(B,V,ce,je);case ue:return ce=dr(ce),W(V,B,$,ce,je)}if(he(ce)||ee(ce))return V=V.get($)||null,le(B,V,ce,je,null);if(typeof ce.then=="function")return W(V,B,$,ga(ce),je);if(ce.$$typeof===Y)return W(V,B,$,da(B,ce),je);ya(B,ce)}return null}function Ce(V,B,$,ce){for(var je=null,Fe=null,_e=B,Le=B=0,Ue=null;_e!==null&&Le<$.length;Le++){_e.index>Le?(Ue=_e,_e=null):Ue=_e.sibling;var Ve=K(V,_e,$[Le],ce);if(Ve===null){_e===null&&(_e=Ue);break}e&&_e&&Ve.alternate===null&&n(V,_e),B=y(Ve,B,Le),Fe===null?je=Ve:Fe.sibling=Ve,Fe=Ve,_e=Ue}if(Le===$.length)return o(V,_e),Ze&&yn(V,Le),je;if(_e===null){for(;Le<$.length;Le++)_e=fe(V,$[Le],ce),_e!==null&&(B=y(_e,B,Le),Fe===null?je=_e:Fe.sibling=_e,Fe=_e);return Ze&&yn(V,Le),je}for(_e=s(_e);Le<$.length;Le++)Ue=W(_e,V,Le,$[Le],ce),Ue!==null&&(e&&Ue.alternate!==null&&_e.delete(Ue.key===null?Le:Ue.key),B=y(Ue,B,Le),Fe===null?je=Ue:Fe.sibling=Ue,Fe=Ue);return e&&_e.forEach(function(er){return n(V,er)}),Ze&&yn(V,Le),je}function ze(V,B,$,ce){if($==null)throw Error(u(151));for(var je=null,Fe=null,_e=B,Le=B=0,Ue=null,Ve=$.next();_e!==null&&!Ve.done;Le++,Ve=$.next()){_e.index>Le?(Ue=_e,_e=null):Ue=_e.sibling;var er=K(V,_e,Ve.value,ce);if(er===null){_e===null&&(_e=Ue);break}e&&_e&&er.alternate===null&&n(V,_e),B=y(er,B,Le),Fe===null?je=er:Fe.sibling=er,Fe=er,_e=Ue}if(Ve.done)return o(V,_e),Ze&&yn(V,Le),je;if(_e===null){for(;!Ve.done;Le++,Ve=$.next())Ve=fe(V,Ve.value,ce),Ve!==null&&(B=y(Ve,B,Le),Fe===null?je=Ve:Fe.sibling=Ve,Fe=Ve);return Ze&&yn(V,Le),je}for(_e=s(_e);!Ve.done;Le++,Ve=$.next())Ve=W(_e,V,Le,Ve.value,ce),Ve!==null&&(e&&Ve.alternate!==null&&_e.delete(Ve.key===null?Le:Ve.key),B=y(Ve,B,Le),Fe===null?je=Ve:Fe.sibling=Ve,Fe=Ve);return e&&_e.forEach(function(Rh){return n(V,Rh)}),Ze&&yn(V,Le),je}function Qe(V,B,$,ce){if(typeof $=="object"&&$!==null&&$.type===Z&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case C:e:{for(var je=$.key;B!==null;){if(B.key===je){if(je=$.type,je===Z){if(B.tag===7){o(V,B.sibling),ce=p(B,$.props.children),ce.return=V,V=ce;break e}}else if(B.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===ue&&dr(je)===B.type){o(V,B.sibling),ce=p(B,$.props),Si(ce,$),ce.return=V,V=ce;break e}o(V,B);break}else n(V,B);B=B.sibling}$.type===Z?(ce=or($.props.children,V.mode,ce,$.key),ce.return=V,V=ce):(ce=sa($.type,$.key,$.props,null,V.mode,ce),Si(ce,$),ce.return=V,V=ce)}return w(V);case O:e:{for(je=$.key;B!==null;){if(B.key===je)if(B.tag===4&&B.stateNode.containerInfo===$.containerInfo&&B.stateNode.implementation===$.implementation){o(V,B.sibling),ce=p(B,$.children||[]),ce.return=V,V=ce;break e}else{o(V,B);break}else n(V,B);B=B.sibling}ce=Il($,V.mode,ce),ce.return=V,V=ce}return w(V);case ue:return $=dr($),Qe(V,B,$,ce)}if(he($))return Ce(V,B,$,ce);if(ee($)){if(je=ee($),typeof je!="function")throw Error(u(150));return $=je.call($),ze(V,B,$,ce)}if(typeof $.then=="function")return Qe(V,B,ga($),ce);if($.$$typeof===Y)return Qe(V,B,da(V,$),ce);ya(V,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,B!==null&&B.tag===6?(o(V,B.sibling),ce=p(B,$),ce.return=V,V=ce):(o(V,B),ce=Ml($,V.mode,ce),ce.return=V,V=ce),w(V)):o(V,B)}return function(V,B,$,ce){try{vi=0;var je=Qe(V,B,$,ce);return qr=null,je}catch(_e){if(_e===Ur||_e===ha)throw _e;var Fe=It(29,_e,null,V.mode);return Fe.lanes=ce,Fe.return=V,Fe}finally{}}}var hr=js(!0),Ns=js(!1),In=!1;function Ql(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xl(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Bn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Un(e,n,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(He&2)!==0){var p=s.pending;return p===null?n.next=n:(n.next=p.next,p.next=n),s.pending=n,n=ua(e),hs(e,null,o),n}return oa(e,s,n,o),ua(e)}function Ei(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,Eu(e,o)}}function Kl(e,n){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var p=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var w={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?p=y=w:y=y.next=w,o=o.next}while(o!==null);y===null?p=y=n:y=y.next=n}else p=y=n;o={baseState:s.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:s.shared,callbacks:s.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}var Jl=!1;function ki(){if(Jl){var e=Br;if(e!==null)throw e}}function wi(e,n,o,s){Jl=!1;var p=e.updateQueue;In=!1;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,_=p.shared.pending;if(_!==null){p.shared.pending=null;var M=_,G=M.next;M.next=null,w===null?y=G:w.next=G,w=M;var le=e.alternate;le!==null&&(le=le.updateQueue,_=le.lastBaseUpdate,_!==w&&(_===null?le.firstBaseUpdate=G:_.next=G,le.lastBaseUpdate=M))}if(y!==null){var fe=p.baseState;w=0,le=G=M=null,_=y;do{var K=_.lane&-536870913,W=K!==_.lane;if(W?(Be&K)===K:(s&K)===K){K!==0&&K===Ir&&(Jl=!0),le!==null&&(le=le.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var Ce=e,ze=_;K=n;var Qe=o;switch(ze.tag){case 1:if(Ce=ze.payload,typeof Ce=="function"){fe=Ce.call(Qe,fe,K);break e}fe=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=ze.payload,K=typeof Ce=="function"?Ce.call(Qe,fe,K):Ce,K==null)break e;fe=S({},fe,K);break e;case 2:In=!0}}K=_.callback,K!==null&&(e.flags|=64,W&&(e.flags|=8192),W=p.callbacks,W===null?p.callbacks=[K]:W.push(K))}else W={lane:K,tag:_.tag,payload:_.payload,callback:_.callback,next:null},le===null?(G=le=W,M=fe):le=le.next=W,w|=K;if(_=_.next,_===null){if(_=p.shared.pending,_===null)break;W=_,_=W.next,W.next=null,p.lastBaseUpdate=W,p.shared.pending=null}}while(!0);le===null&&(M=fe),p.baseState=M,p.firstBaseUpdate=G,p.lastBaseUpdate=le,y===null&&(p.shared.lanes=0),Hn|=w,e.lanes=w,e.memoizedState=fe}}function Os(e,n){if(typeof e!="function")throw Error(u(191,e));e.call(n)}function zs(e,n){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)Os(o[e],n)}var Zr=I(null),xa=I(0);function Ds(e,n){e=_n,j(xa,e),j(Zr,n),_n=e|n.baseLanes}function Wl(){j(xa,_n),j(Zr,Zr.current)}function eo(){_n=xa.current,ie(Zr),ie(xa)}var Bt=I(null),Wt=null;function qn(e){var n=e.alternate;j(ot,ot.current&1),j(Bt,e),Wt===null&&(n===null||Zr.current!==null||n.memoizedState!==null)&&(Wt=e)}function to(e){j(ot,ot.current),j(Bt,e),Wt===null&&(Wt=e)}function Ls(e){e.tag===22?(j(ot,ot.current),j(Bt,e),Wt===null&&(Wt=e)):Zn()}function Zn(){j(ot,ot.current),j(Bt,Bt.current)}function Ut(e){ie(Bt),Wt===e&&(Wt=null),ie(ot)}var ot=I(0);function ba(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||uu(o)||su(o)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var vn=0,De=null,$e=null,ft=null,va=!1,Fr=!1,mr=!1,Sa=0,Ai=0,Vr=null,bp=0;function rt(){throw Error(u(321))}function no(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!Mt(e[o],n[o]))return!1;return!0}function ro(e,n,o,s,p,y){return vn=y,De=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,H.H=e===null||e.memoizedState===null?xc:bo,mr=!1,y=o(s,p),mr=!1,Fr&&(y=Is(n,o,s,p)),Ms(e),y}function Ms(e){H.H=_i;var n=$e!==null&&$e.next!==null;if(vn=0,ft=$e=De=null,va=!1,Ai=0,Vr=null,n)throw Error(u(300));e===null||dt||(e=e.dependencies,e!==null&&fa(e)&&(dt=!0))}function Is(e,n,o,s){De=e;var p=0;do{if(Fr&&(Vr=null),Ai=0,Fr=!1,25<=p)throw Error(u(301));if(p+=1,ft=$e=null,e.updateQueue!=null){var y=e.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}H.H=bc,y=n(o,s)}while(Fr);return y}function vp(){var e=H.H,n=e.useState()[0];return n=typeof n.then=="function"?Ci(n):n,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(De.flags|=1024),n}function io(){var e=Sa!==0;return Sa=0,e}function ao(e,n,o){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~o}function lo(e){if(va){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}va=!1}vn=0,ft=$e=De=null,Fr=!1,Ai=Sa=0,Vr=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?De.memoizedState=ft=e:ft=ft.next=e,ft}function ut(){if($e===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var n=ft===null?De.memoizedState:ft.next;if(n!==null)ft=n,$e=e;else{if(e===null)throw De.alternate===null?Error(u(467)):Error(u(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},ft===null?De.memoizedState=ft=e:ft=ft.next=e}return ft}function Ea(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ci(e){var n=Ai;return Ai+=1,Vr===null&&(Vr=[]),e=Ts(Vr,e,n),n=De,(ft===null?n.memoizedState:ft.next)===null&&(n=n.alternate,H.H=n===null||n.memoizedState===null?xc:bo),e}function ka(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ci(e);if(e.$$typeof===Y)return vt(e)}throw Error(u(438,String(e)))}function oo(e){var n=null,o=De.updateQueue;if(o!==null&&(n=o.memoCache),n==null){var s=De.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(p){return p.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),o===null&&(o=Ea(),De.updateQueue=o),o.memoCache=n,o=n.data[n.index],o===void 0)for(o=n.data[n.index]=Array(e),s=0;s<e;s++)o[s]=F;return n.index++,o}function Sn(e,n){return typeof n=="function"?n(e):n}function wa(e){var n=ut();return uo(n,$e,e)}function uo(e,n,o){var s=e.queue;if(s===null)throw Error(u(311));s.lastRenderedReducer=o;var p=e.baseQueue,y=s.pending;if(y!==null){if(p!==null){var w=p.next;p.next=y.next,y.next=w}n.baseQueue=p=y,s.pending=null}if(y=e.baseState,p===null)e.memoizedState=y;else{n=p.next;var _=w=null,M=null,G=n,le=!1;do{var fe=G.lane&-536870913;if(fe!==G.lane?(Be&fe)===fe:(vn&fe)===fe){var K=G.revertLane;if(K===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),fe===Ir&&(le=!0);else if((vn&K)===K){G=G.next,K===Ir&&(le=!0);continue}else fe={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},M===null?(_=M=fe,w=y):M=M.next=fe,De.lanes|=K,Hn|=K;fe=G.action,mr&&o(y,fe),y=G.hasEagerState?G.eagerState:o(y,fe)}else K={lane:fe,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},M===null?(_=M=K,w=y):M=M.next=K,De.lanes|=fe,Hn|=fe;G=G.next}while(G!==null&&G!==n);if(M===null?w=y:M.next=_,!Mt(y,e.memoizedState)&&(dt=!0,le&&(o=Br,o!==null)))throw o;e.memoizedState=y,e.baseState=w,e.baseQueue=M,s.lastRenderedState=y}return p===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function so(e){var n=ut(),o=n.queue;if(o===null)throw Error(u(311));o.lastRenderedReducer=e;var s=o.dispatch,p=o.pending,y=n.memoizedState;if(p!==null){o.pending=null;var w=p=p.next;do y=e(y,w.action),w=w.next;while(w!==p);Mt(y,n.memoizedState)||(dt=!0),n.memoizedState=y,n.baseQueue===null&&(n.baseState=y),o.lastRenderedState=y}return[y,s]}function Bs(e,n,o){var s=De,p=ut(),y=Ze;if(y){if(o===void 0)throw Error(u(407));o=o()}else o=n();var w=!Mt(($e||p).memoizedState,o);if(w&&(p.memoizedState=o,dt=!0),p=p.queue,po(Zs.bind(null,s,p,e),[e]),p.getSnapshot!==n||w||ft!==null&&ft.memoizedState.tag&1){if(s.flags|=2048,Hr(9,{destroy:void 0},qs.bind(null,s,p,o,n),null),Xe===null)throw Error(u(349));y||(vn&127)!==0||Us(s,n,o)}return o}function Us(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=De.updateQueue,n===null?(n=Ea(),De.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function qs(e,n,o,s){n.value=o,n.getSnapshot=s,Fs(n)&&Vs(e)}function Zs(e,n,o){return o(function(){Fs(n)&&Vs(e)})}function Fs(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!Mt(e,o)}catch{return!0}}function Vs(e){var n=lr(e,2);n!==null&&Lt(n,e,2)}function co(e){var n=Ct();if(typeof e=="function"){var o=e;if(e=o(),mr){L(!0);try{o()}finally{L(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:e},n}function Hs(e,n,o,s){return e.baseState=o,uo(e,$e,typeof s=="function"?s:Sn)}function Sp(e,n,o,s,p){if(Ta(e))throw Error(u(485));if(e=n.action,e!==null){var y={payload:p,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){y.listeners.push(w)}};H.T!==null?o(!0):y.isTransition=!1,s(y),o=n.pending,o===null?(y.next=n.pending=y,Ps(n,y)):(y.next=o.next,n.pending=o.next=y)}}function Ps(e,n){var o=n.action,s=n.payload,p=e.state;if(n.isTransition){var y=H.T,w={};H.T=w;try{var _=o(p,s),M=H.S;M!==null&&M(w,_),Ys(e,n,_)}catch(G){fo(e,n,G)}finally{y!==null&&w.types!==null&&(y.types=w.types),H.T=y}}else try{y=o(p,s),Ys(e,n,y)}catch(G){fo(e,n,G)}}function Ys(e,n,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(s){$s(e,n,s)},function(s){return fo(e,n,s)}):$s(e,n,o)}function $s(e,n,o){n.status="fulfilled",n.value=o,Gs(n),e.state=o,n=e.pending,n!==null&&(o=n.next,o===n?e.pending=null:(o=o.next,n.next=o,Ps(e,o)))}function fo(e,n,o){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=o,Gs(n),n=n.next;while(n!==s)}e.action=null}function Gs(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Qs(e,n){return n}function Xs(e,n){if(Ze){var o=Xe.formState;if(o!==null){e:{var s=De;if(Ze){if(We){t:{for(var p=We,y=Jt;p.nodeType!==8;){if(!y){p=null;break t}if(p=en(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){We=en(p.nextSibling),s=p.data==="F!";break e}}Ln(s)}s=!1}s&&(n=o[0])}}return o=Ct(),o.memoizedState=o.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qs,lastRenderedState:n},o.queue=s,o=mc.bind(null,De,s),s.dispatch=o,s=co(!1),y=xo.bind(null,De,!1,s.queue),s=Ct(),p={state:n,dispatch:null,action:e,pending:null},s.queue=p,o=Sp.bind(null,De,p,y,o),p.dispatch=o,s.memoizedState=e,[n,o,!1]}function Ks(e){var n=ut();return Js(n,$e,e)}function Js(e,n,o){if(n=uo(e,n,Qs)[0],e=wa(Sn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=Ci(n)}catch(w){throw w===Ur?ha:w}else s=n;n=ut();var p=n.queue,y=p.dispatch;return o!==n.memoizedState&&(De.flags|=2048,Hr(9,{destroy:void 0},Ep.bind(null,p,o),null)),[s,y,e]}function Ep(e,n){e.action=n}function Ws(e){var n=ut(),o=$e;if(o!==null)return Js(n,o,e);ut(),n=n.memoizedState,o=ut();var s=o.queue.dispatch;return o.memoizedState=e,[n,s,!1]}function Hr(e,n,o,s){return e={tag:e,create:o,deps:s,inst:n,next:null},n=De.updateQueue,n===null&&(n=Ea(),De.updateQueue=n),o=n.lastEffect,o===null?n.lastEffect=e.next=e:(s=o.next,o.next=e,e.next=s,n.lastEffect=e),e}function ec(){return ut().memoizedState}function Aa(e,n,o,s){var p=Ct();De.flags|=e,p.memoizedState=Hr(1|n,{destroy:void 0},o,s===void 0?null:s)}function Ca(e,n,o,s){var p=ut();s=s===void 0?null:s;var y=p.memoizedState.inst;$e!==null&&s!==null&&no(s,$e.memoizedState.deps)?p.memoizedState=Hr(n,y,o,s):(De.flags|=e,p.memoizedState=Hr(1|n,y,o,s))}function tc(e,n){Aa(8390656,8,e,n)}function po(e,n){Ca(2048,8,e,n)}function kp(e){De.flags|=4;var n=De.updateQueue;if(n===null)n=Ea(),De.updateQueue=n,n.events=[e];else{var o=n.events;o===null?n.events=[e]:o.push(e)}}function nc(e){var n=ut().memoizedState;return kp({ref:n,nextImpl:e}),function(){if((He&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}function rc(e,n){return Ca(4,2,e,n)}function ic(e,n){return Ca(4,4,e,n)}function ac(e,n){if(typeof n=="function"){e=e();var o=n(e);return function(){typeof o=="function"?o():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function lc(e,n,o){o=o!=null?o.concat([e]):null,Ca(4,4,ac.bind(null,n,e),o)}function ho(){}function oc(e,n){var o=ut();n=n===void 0?null:n;var s=o.memoizedState;return n!==null&&no(n,s[1])?s[0]:(o.memoizedState=[e,n],e)}function uc(e,n){var o=ut();n=n===void 0?null:n;var s=o.memoizedState;if(n!==null&&no(n,s[1]))return s[0];if(s=e(),mr){L(!0);try{e()}finally{L(!1)}}return o.memoizedState=[s,n],s}function mo(e,n,o){return o===void 0||(vn&1073741824)!==0&&(Be&261930)===0?e.memoizedState=n:(e.memoizedState=o,e=cf(),De.lanes|=e,Hn|=e,o)}function sc(e,n,o,s){return Mt(o,n)?o:Zr.current!==null?(e=mo(e,o,s),Mt(e,n)||(dt=!0),e):(vn&42)===0||(vn&1073741824)!==0&&(Be&261930)===0?(dt=!0,e.memoizedState=o):(e=cf(),De.lanes|=e,Hn|=e,n)}function cc(e,n,o,s,p){var y=de.p;de.p=y!==0&&8>y?y:8;var w=H.T,_={};H.T=_,xo(e,!1,n,o);try{var M=p(),G=H.S;if(G!==null&&G(_,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var le=xp(M,s);Ti(e,n,le,Ft(e))}else Ti(e,n,s,Ft(e))}catch(fe){Ti(e,n,{then:function(){},status:"rejected",reason:fe},Ft())}finally{de.p=y,w!==null&&_.types!==null&&(w.types=_.types),H.T=w}}function wp(){}function go(e,n,o,s){if(e.tag!==5)throw Error(u(476));var p=fc(e).queue;cc(e,p,n,oe,o===null?wp:function(){return dc(e),o(s)})}function fc(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:oe},next:null};var o={};return n.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:o},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function dc(e){var n=fc(e);n.next===null&&(n=e.alternate.memoizedState),Ti(e,n.next.queue,{},Ft())}function yo(){return vt(Hi)}function pc(){return ut().memoizedState}function hc(){return ut().memoizedState}function Ap(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var o=Ft();e=Bn(o);var s=Un(n,e,o);s!==null&&(Lt(s,n,o),Ei(s,n,o)),n={cache:Pl()},e.payload=n;return}n=n.return}}function Cp(e,n,o){var s=Ft();o={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ta(e)?gc(n,o):(o=Dl(e,n,o,s),o!==null&&(Lt(o,e,s),yc(o,n,s)))}function mc(e,n,o){var s=Ft();Ti(e,n,o,s)}function Ti(e,n,o,s){var p={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ta(e))gc(n,p);else{var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=n.lastRenderedReducer,y!==null))try{var w=n.lastRenderedState,_=y(w,o);if(p.hasEagerState=!0,p.eagerState=_,Mt(_,w))return oa(e,n,p,0),Xe===null&&la(),!1}catch{}finally{}if(o=Dl(e,n,p,s),o!==null)return Lt(o,e,s),yc(o,n,s),!0}return!1}function xo(e,n,o,s){if(s={lane:2,revertLane:Xo(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ta(e)){if(n)throw Error(u(479))}else n=Dl(e,o,s,2),n!==null&&Lt(n,e,2)}function Ta(e){var n=e.alternate;return e===De||n!==null&&n===De}function gc(e,n){Fr=va=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function yc(e,n,o){if((o&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,Eu(e,o)}}var _i={readContext:vt,use:ka,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};_i.useEffectEvent=rt;var xc={readContext:vt,use:ka,useCallback:function(e,n){return Ct().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:tc,useImperativeHandle:function(e,n,o){o=o!=null?o.concat([e]):null,Aa(4194308,4,ac.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Aa(4194308,4,e,n)},useInsertionEffect:function(e,n){Aa(4,2,e,n)},useMemo:function(e,n){var o=Ct();n=n===void 0?null:n;var s=e();if(mr){L(!0);try{e()}finally{L(!1)}}return o.memoizedState=[s,n],s},useReducer:function(e,n,o){var s=Ct();if(o!==void 0){var p=o(n);if(mr){L(!0);try{o(n)}finally{L(!1)}}}else p=n;return s.memoizedState=s.baseState=p,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:p},s.queue=e,e=e.dispatch=Cp.bind(null,De,e),[s.memoizedState,e]},useRef:function(e){var n=Ct();return e={current:e},n.memoizedState=e},useState:function(e){e=co(e);var n=e.queue,o=mc.bind(null,De,n);return n.dispatch=o,[e.memoizedState,o]},useDebugValue:ho,useDeferredValue:function(e,n){var o=Ct();return mo(o,e,n)},useTransition:function(){var e=co(!1);return e=cc.bind(null,De,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,o){var s=De,p=Ct();if(Ze){if(o===void 0)throw Error(u(407));o=o()}else{if(o=n(),Xe===null)throw Error(u(349));(Be&127)!==0||Us(s,n,o)}p.memoizedState=o;var y={value:o,getSnapshot:n};return p.queue=y,tc(Zs.bind(null,s,y,e),[e]),s.flags|=2048,Hr(9,{destroy:void 0},qs.bind(null,s,y,o,n),null),o},useId:function(){var e=Ct(),n=Xe.identifierPrefix;if(Ze){var o=sn,s=un;o=(s&~(1<<32-D(s)-1)).toString(32)+o,n="_"+n+"R_"+o,o=Sa++,0<o&&(n+="H"+o.toString(32)),n+="_"}else o=bp++,n="_"+n+"r_"+o.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:yo,useFormState:Xs,useActionState:Xs,useOptimistic:function(e){var n=Ct();n.memoizedState=n.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=o,n=xo.bind(null,De,!0,o),o.dispatch=n,[e,n]},useMemoCache:oo,useCacheRefresh:function(){return Ct().memoizedState=Ap.bind(null,De)},useEffectEvent:function(e){var n=Ct(),o={impl:e};return n.memoizedState=o,function(){if((He&2)!==0)throw Error(u(440));return o.impl.apply(void 0,arguments)}}},bo={readContext:vt,use:ka,useCallback:oc,useContext:vt,useEffect:po,useImperativeHandle:lc,useInsertionEffect:rc,useLayoutEffect:ic,useMemo:uc,useReducer:wa,useRef:ec,useState:function(){return wa(Sn)},useDebugValue:ho,useDeferredValue:function(e,n){var o=ut();return sc(o,$e.memoizedState,e,n)},useTransition:function(){var e=wa(Sn)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:Ci(e),n]},useSyncExternalStore:Bs,useId:pc,useHostTransitionStatus:yo,useFormState:Ks,useActionState:Ks,useOptimistic:function(e,n){var o=ut();return Hs(o,$e,e,n)},useMemoCache:oo,useCacheRefresh:hc};bo.useEffectEvent=nc;var bc={readContext:vt,use:ka,useCallback:oc,useContext:vt,useEffect:po,useImperativeHandle:lc,useInsertionEffect:rc,useLayoutEffect:ic,useMemo:uc,useReducer:so,useRef:ec,useState:function(){return so(Sn)},useDebugValue:ho,useDeferredValue:function(e,n){var o=ut();return $e===null?mo(o,e,n):sc(o,$e.memoizedState,e,n)},useTransition:function(){var e=so(Sn)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:Ci(e),n]},useSyncExternalStore:Bs,useId:pc,useHostTransitionStatus:yo,useFormState:Ws,useActionState:Ws,useOptimistic:function(e,n){var o=ut();return $e!==null?Hs(o,$e,e,n):(o.baseState=e,[e,o.queue.dispatch])},useMemoCache:oo,useCacheRefresh:hc};bc.useEffectEvent=nc;function vo(e,n,o,s){n=e.memoizedState,o=o(s,n),o=o==null?n:S({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var So={enqueueSetState:function(e,n,o){e=e._reactInternals;var s=Ft(),p=Bn(s);p.payload=n,o!=null&&(p.callback=o),n=Un(e,p,s),n!==null&&(Lt(n,e,s),Ei(n,e,s))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var s=Ft(),p=Bn(s);p.tag=1,p.payload=n,o!=null&&(p.callback=o),n=Un(e,p,s),n!==null&&(Lt(n,e,s),Ei(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=Ft(),s=Bn(o);s.tag=2,n!=null&&(s.callback=n),n=Un(e,s,o),n!==null&&(Lt(n,e,o),Ei(n,e,o))}};function vc(e,n,o,s,p,y,w){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,y,w):n.prototype&&n.prototype.isPureReactComponent?!hi(o,s)||!hi(p,y):!0}function Sc(e,n,o,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,s),n.state!==e&&So.enqueueReplaceState(n,n.state,null)}function gr(e,n){var o=n;if("ref"in n){o={};for(var s in n)s!=="ref"&&(o[s]=n[s])}if(e=e.defaultProps){o===n&&(o=S({},o));for(var p in e)o[p]===void 0&&(o[p]=e[p])}return o}function Ec(e){aa(e)}function kc(e){console.error(e)}function wc(e){aa(e)}function _a(e,n){try{var o=e.onUncaughtError;o(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Ac(e,n,o){try{var s=e.onCaughtError;s(o.value,{componentStack:o.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Eo(e,n,o){return o=Bn(o),o.tag=3,o.payload={element:null},o.callback=function(){_a(e,n)},o}function Cc(e){return e=Bn(e),e.tag=3,e}function Tc(e,n,o,s){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var y=s.value;e.payload=function(){return p(y)},e.callback=function(){Ac(n,o,s)}}var w=o.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(e.callback=function(){Ac(n,o,s),typeof p!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var _=s.stack;this.componentDidCatch(s.value,{componentStack:_!==null?_:""})})}function Tp(e,n,o,s,p){if(o.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=o.alternate,n!==null&&Mr(n,o,p,!0),o=Bt.current,o!==null){switch(o.tag){case 31:case 13:return Wt===null?qa():o.alternate===null&&it===0&&(it=3),o.flags&=-257,o.flags|=65536,o.lanes=p,s===ma?o.flags|=16384:(n=o.updateQueue,n===null?o.updateQueue=new Set([s]):n.add(s),$o(e,s,p)),!1;case 22:return o.flags|=65536,s===ma?o.flags|=16384:(n=o.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},o.updateQueue=n):(o=n.retryQueue,o===null?n.retryQueue=new Set([s]):o.add(s)),$o(e,s,p)),!1}throw Error(u(435,o.tag))}return $o(e,s,p),qa(),!1}if(Ze)return n=Bt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=p,s!==ql&&(e=Error(u(422),{cause:s}),yi(Qt(e,o)))):(s!==ql&&(n=Error(u(423),{cause:s}),yi(Qt(n,o))),e=e.current.alternate,e.flags|=65536,p&=-p,e.lanes|=p,s=Qt(s,o),p=Eo(e.stateNode,s,p),Kl(e,p),it!==4&&(it=2)),!1;var y=Error(u(520),{cause:s});if(y=Qt(y,o),Mi===null?Mi=[y]:Mi.push(y),it!==4&&(it=2),n===null)return!0;s=Qt(s,o),o=n;do{switch(o.tag){case 3:return o.flags|=65536,e=p&-p,o.lanes|=e,e=Eo(o.stateNode,s,e),Kl(o,e),!1;case 1:if(n=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Pn===null||!Pn.has(y))))return o.flags|=65536,p&=-p,o.lanes|=p,p=Cc(p),Tc(p,e,o,s),Kl(o,p),!1}o=o.return}while(o!==null);return!1}var ko=Error(u(461)),dt=!1;function St(e,n,o,s){n.child=e===null?Ns(n,null,o,s):hr(n,e.child,o,s)}function _c(e,n,o,s,p){o=o.render;var y=n.ref;if("ref"in s){var w={};for(var _ in s)_!=="ref"&&(w[_]=s[_])}else w=s;return cr(n),s=ro(e,n,o,w,y,p),_=io(),e!==null&&!dt?(ao(e,n,p),En(e,n,p)):(Ze&&_&&Bl(n),n.flags|=1,St(e,n,s,p),n.child)}function Rc(e,n,o,s,p){if(e===null){var y=o.type;return typeof y=="function"&&!Ll(y)&&y.defaultProps===void 0&&o.compare===null?(n.tag=15,n.type=y,jc(e,n,y,s,p)):(e=sa(o.type,null,s,n,n.mode,p),e.ref=n.ref,e.return=n,n.child=e)}if(y=e.child,!No(e,p)){var w=y.memoizedProps;if(o=o.compare,o=o!==null?o:hi,o(w,s)&&e.ref===n.ref)return En(e,n,p)}return n.flags|=1,e=gn(y,s),e.ref=n.ref,e.return=n,n.child=e}function jc(e,n,o,s,p){if(e!==null){var y=e.memoizedProps;if(hi(y,s)&&e.ref===n.ref)if(dt=!1,n.pendingProps=s=y,No(e,p))(e.flags&131072)!==0&&(dt=!0);else return n.lanes=e.lanes,En(e,n,p)}return wo(e,n,o,s,p)}function Nc(e,n,o,s){var p=s.children,y=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(y=y!==null?y.baseLanes|o:o,e!==null){for(s=n.child=e.child,p=0;s!==null;)p=p|s.lanes|s.childLanes,s=s.sibling;s=p&~y}else s=0,n.child=null;return Oc(e,n,y,o,s)}if((o&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&pa(n,y!==null?y.cachePool:null),y!==null?Ds(n,y):Wl(),Ls(n);else return s=n.lanes=536870912,Oc(e,n,y!==null?y.baseLanes|o:o,o,s)}else y!==null?(pa(n,y.cachePool),Ds(n,y),Zn(),n.memoizedState=null):(e!==null&&pa(n,null),Wl(),Zn());return St(e,n,p,o),n.child}function Ri(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Oc(e,n,o,s,p){var y=$l();return y=y===null?null:{parent:ct._currentValue,pool:y},n.memoizedState={baseLanes:o,cachePool:y},e!==null&&pa(n,null),Wl(),Ls(n),e!==null&&Mr(e,n,s,!0),n.childLanes=p,null}function Ra(e,n){return n=Na({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function zc(e,n,o){return hr(n,e.child,null,o),e=Ra(n,n.pendingProps),e.flags|=2,Ut(n),n.memoizedState=null,e}function _p(e,n,o){var s=n.pendingProps,p=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Ze){if(s.mode==="hidden")return e=Ra(n,s),n.lanes=536870912,Ri(null,e);if(to(n),(e=We)?(e=Yf(e,Jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:zn!==null?{id:un,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},o=gs(e),o.return=n,n.child=o,bt=n,We=null)):e=null,e===null)throw Ln(n);return n.lanes=536870912,null}return Ra(n,s)}var y=e.memoizedState;if(y!==null){var w=y.dehydrated;if(to(n),p)if(n.flags&256)n.flags&=-257,n=zc(e,n,o);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(u(558));else if(dt||Mr(e,n,o,!1),p=(o&e.childLanes)!==0,dt||p){if(s=Xe,s!==null&&(w=ku(s,o),w!==0&&w!==y.retryLane))throw y.retryLane=w,lr(e,w),Lt(s,e,w),ko;qa(),n=zc(e,n,o)}else e=y.treeContext,We=en(w.nextSibling),bt=n,Ze=!0,Dn=null,Jt=!1,e!==null&&bs(n,e),n=Ra(n,s),n.flags|=4096;return n}return e=gn(e.child,{mode:s.mode,children:s.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ja(e,n){var o=n.ref;if(o===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(u(284));(e===null||e.ref!==o)&&(n.flags|=4194816)}}function wo(e,n,o,s,p){return cr(n),o=ro(e,n,o,s,void 0,p),s=io(),e!==null&&!dt?(ao(e,n,p),En(e,n,p)):(Ze&&s&&Bl(n),n.flags|=1,St(e,n,o,p),n.child)}function Dc(e,n,o,s,p,y){return cr(n),n.updateQueue=null,o=Is(n,s,o,p),Ms(e),s=io(),e!==null&&!dt?(ao(e,n,y),En(e,n,y)):(Ze&&s&&Bl(n),n.flags|=1,St(e,n,o,y),n.child)}function Lc(e,n,o,s,p){if(cr(n),n.stateNode===null){var y=Or,w=o.contextType;typeof w=="object"&&w!==null&&(y=vt(w)),y=new o(s,y),n.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=So,n.stateNode=y,y._reactInternals=n,y=n.stateNode,y.props=s,y.state=n.memoizedState,y.refs={},Ql(n),w=o.contextType,y.context=typeof w=="object"&&w!==null?vt(w):Or,y.state=n.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(vo(n,o,w,s),y.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(w=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),w!==y.state&&So.enqueueReplaceState(y,y.state,null),wi(n,s,y,p),ki(),y.state=n.memoizedState),typeof y.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){y=n.stateNode;var _=n.memoizedProps,M=gr(o,_);y.props=M;var G=y.context,le=o.contextType;w=Or,typeof le=="object"&&le!==null&&(w=vt(le));var fe=o.getDerivedStateFromProps;le=typeof fe=="function"||typeof y.getSnapshotBeforeUpdate=="function",_=n.pendingProps!==_,le||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(_||G!==w)&&Sc(n,y,s,w),In=!1;var K=n.memoizedState;y.state=K,wi(n,s,y,p),ki(),G=n.memoizedState,_||K!==G||In?(typeof fe=="function"&&(vo(n,o,fe,s),G=n.memoizedState),(M=In||vc(n,o,M,s,K,G,w))?(le||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(n.flags|=4194308)):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=G),y.props=s,y.state=G,y.context=w,s=M):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{y=n.stateNode,Xl(e,n),w=n.memoizedProps,le=gr(o,w),y.props=le,fe=n.pendingProps,K=y.context,G=o.contextType,M=Or,typeof G=="object"&&G!==null&&(M=vt(G)),_=o.getDerivedStateFromProps,(G=typeof _=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==fe||K!==M)&&Sc(n,y,s,M),In=!1,K=n.memoizedState,y.state=K,wi(n,s,y,p),ki();var W=n.memoizedState;w!==fe||K!==W||In||e!==null&&e.dependencies!==null&&fa(e.dependencies)?(typeof _=="function"&&(vo(n,o,_,s),W=n.memoizedState),(le=In||vc(n,o,le,s,K,W,M)||e!==null&&e.dependencies!==null&&fa(e.dependencies))?(G||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(s,W,M),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(s,W,M)),typeof y.componentDidUpdate=="function"&&(n.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof y.componentDidUpdate!="function"||w===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=W),y.props=s,y.state=W,y.context=M,s=le):(typeof y.componentDidUpdate!="function"||w===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),s=!1)}return y=s,ja(e,n),s=(n.flags&128)!==0,y||s?(y=n.stateNode,o=s&&typeof o.getDerivedStateFromError!="function"?null:y.render(),n.flags|=1,e!==null&&s?(n.child=hr(n,e.child,null,p),n.child=hr(n,null,o,p)):St(e,n,o,p),n.memoizedState=y.state,e=n.child):e=En(e,n,p),e}function Mc(e,n,o,s){return ur(),n.flags|=256,St(e,n,o,s),n.child}var Ao={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Co(e){return{baseLanes:e,cachePool:As()}}function To(e,n,o){return e=e!==null?e.childLanes&~o:0,n&&(e|=Zt),e}function Ic(e,n,o){var s=n.pendingProps,p=!1,y=(n.flags&128)!==0,w;if((w=y)||(w=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),w&&(p=!0,n.flags&=-129),w=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ze){if(p?qn(n):Zn(),(e=We)?(e=Yf(e,Jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:zn!==null?{id:un,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},o=gs(e),o.return=n,n.child=o,bt=n,We=null)):e=null,e===null)throw Ln(n);return su(e)?n.lanes=32:n.lanes=536870912,null}var _=s.children;return s=s.fallback,p?(Zn(),p=n.mode,_=Na({mode:"hidden",children:_},p),s=or(s,p,o,null),_.return=n,s.return=n,_.sibling=s,n.child=_,s=n.child,s.memoizedState=Co(o),s.childLanes=To(e,w,o),n.memoizedState=Ao,Ri(null,s)):(qn(n),_o(n,_))}var M=e.memoizedState;if(M!==null&&(_=M.dehydrated,_!==null)){if(y)n.flags&256?(qn(n),n.flags&=-257,n=Ro(e,n,o)):n.memoizedState!==null?(Zn(),n.child=e.child,n.flags|=128,n=null):(Zn(),_=s.fallback,p=n.mode,s=Na({mode:"visible",children:s.children},p),_=or(_,p,o,null),_.flags|=2,s.return=n,_.return=n,s.sibling=_,n.child=s,hr(n,e.child,null,o),s=n.child,s.memoizedState=Co(o),s.childLanes=To(e,w,o),n.memoizedState=Ao,n=Ri(null,s));else if(qn(n),su(_)){if(w=_.nextSibling&&_.nextSibling.dataset,w)var G=w.dgst;w=G,s=Error(u(419)),s.stack="",s.digest=w,yi({value:s,source:null,stack:null}),n=Ro(e,n,o)}else if(dt||Mr(e,n,o,!1),w=(o&e.childLanes)!==0,dt||w){if(w=Xe,w!==null&&(s=ku(w,o),s!==0&&s!==M.retryLane))throw M.retryLane=s,lr(e,s),Lt(w,e,s),ko;uu(_)||qa(),n=Ro(e,n,o)}else uu(_)?(n.flags|=192,n.child=e.child,n=null):(e=M.treeContext,We=en(_.nextSibling),bt=n,Ze=!0,Dn=null,Jt=!1,e!==null&&bs(n,e),n=_o(n,s.children),n.flags|=4096);return n}return p?(Zn(),_=s.fallback,p=n.mode,M=e.child,G=M.sibling,s=gn(M,{mode:"hidden",children:s.children}),s.subtreeFlags=M.subtreeFlags&65011712,G!==null?_=gn(G,_):(_=or(_,p,o,null),_.flags|=2),_.return=n,s.return=n,s.sibling=_,n.child=s,Ri(null,s),s=n.child,_=e.child.memoizedState,_===null?_=Co(o):(p=_.cachePool,p!==null?(M=ct._currentValue,p=p.parent!==M?{parent:M,pool:M}:p):p=As(),_={baseLanes:_.baseLanes|o,cachePool:p}),s.memoizedState=_,s.childLanes=To(e,w,o),n.memoizedState=Ao,Ri(e.child,s)):(qn(n),o=e.child,e=o.sibling,o=gn(o,{mode:"visible",children:s.children}),o.return=n,o.sibling=null,e!==null&&(w=n.deletions,w===null?(n.deletions=[e],n.flags|=16):w.push(e)),n.child=o,n.memoizedState=null,o)}function _o(e,n){return n=Na({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Na(e,n){return e=It(22,e,null,n),e.lanes=0,e}function Ro(e,n,o){return hr(n,e.child,null,o),e=_o(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Bc(e,n,o){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Vl(e.return,n,o)}function jo(e,n,o,s,p,y){var w=e.memoizedState;w===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:p,treeForkCount:y}:(w.isBackwards=n,w.rendering=null,w.renderingStartTime=0,w.last=s,w.tail=o,w.tailMode=p,w.treeForkCount=y)}function Uc(e,n,o){var s=n.pendingProps,p=s.revealOrder,y=s.tail;s=s.children;var w=ot.current,_=(w&2)!==0;if(_?(w=w&1|2,n.flags|=128):w&=1,j(ot,w),St(e,n,s,o),s=Ze?gi:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bc(e,o,n);else if(e.tag===19)Bc(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(p){case"forwards":for(o=n.child,p=null;o!==null;)e=o.alternate,e!==null&&ba(e)===null&&(p=o),o=o.sibling;o=p,o===null?(p=n.child,n.child=null):(p=o.sibling,o.sibling=null),jo(n,!1,p,o,y,s);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=n.child,n.child=null;p!==null;){if(e=p.alternate,e!==null&&ba(e)===null){n.child=p;break}e=p.sibling,p.sibling=o,o=p,p=e}jo(n,!0,o,null,y,s);break;case"together":jo(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function En(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),Hn|=n.lanes,(o&n.childLanes)===0)if(e!==null){if(Mr(e,n,o,!1),(o&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(u(153));if(n.child!==null){for(e=n.child,o=gn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=gn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function No(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&fa(e)))}function Rp(e,n,o){switch(n.tag){case 3:qe(n,n.stateNode.containerInfo),Mn(n,ct,e.memoizedState.cache),ur();break;case 27:case 5:nt(n);break;case 4:qe(n,n.stateNode.containerInfo);break;case 10:Mn(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,to(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(qn(n),n.flags|=128,null):(o&n.child.childLanes)!==0?Ic(e,n,o):(qn(n),e=En(e,n,o),e!==null?e.sibling:null);qn(n);break;case 19:var p=(e.flags&128)!==0;if(s=(o&n.childLanes)!==0,s||(Mr(e,n,o,!1),s=(o&n.childLanes)!==0),p){if(s)return Uc(e,n,o);n.flags|=128}if(p=n.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),j(ot,ot.current),s)break;return null;case 22:return n.lanes=0,Nc(e,n,o,n.pendingProps);case 24:Mn(n,ct,e.memoizedState.cache)}return En(e,n,o)}function qc(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps)dt=!0;else{if(!No(e,o)&&(n.flags&128)===0)return dt=!1,Rp(e,n,o);dt=(e.flags&131072)!==0}else dt=!1,Ze&&(n.flags&1048576)!==0&&xs(n,gi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(e=dr(n.elementType),n.type=e,typeof e=="function")Ll(e)?(s=gr(e,s),n.tag=1,n=Lc(null,n,e,s,o)):(n.tag=0,n=wo(null,n,e,s,o));else{if(e!=null){var p=e.$$typeof;if(p===pe){n.tag=11,n=_c(null,n,e,s,o);break e}else if(p===be){n.tag=14,n=Rc(null,n,e,s,o);break e}}throw n=xe(e)||e,Error(u(306,n,""))}}return n;case 0:return wo(e,n,n.type,n.pendingProps,o);case 1:return s=n.type,p=gr(s,n.pendingProps),Lc(e,n,s,p,o);case 3:e:{if(qe(n,n.stateNode.containerInfo),e===null)throw Error(u(387));s=n.pendingProps;var y=n.memoizedState;p=y.element,Xl(e,n),wi(n,s,null,o);var w=n.memoizedState;if(s=w.cache,Mn(n,ct,s),s!==y.cache&&Hl(n,[ct],o,!0),ki(),s=w.element,y.isDehydrated)if(y={element:s,isDehydrated:!1,cache:w.cache},n.updateQueue.baseState=y,n.memoizedState=y,n.flags&256){n=Mc(e,n,s,o);break e}else if(s!==p){p=Qt(Error(u(424)),n),yi(p),n=Mc(e,n,s,o);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=en(e.firstChild),bt=n,Ze=!0,Dn=null,Jt=!0,o=Ns(n,null,s,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(ur(),s===p){n=En(e,n,o);break e}St(e,n,s,o)}n=n.child}return n;case 26:return ja(e,n),e===null?(o=Jf(n.type,null,n.pendingProps,null))?n.memoizedState=o:Ze||(o=n.type,e=n.pendingProps,s=$a(Se.current).createElement(o),s[xt]=n,s[Rt]=e,Et(s,o,e),gt(s),n.stateNode=s):n.memoizedState=Jf(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return nt(n),e===null&&Ze&&(s=n.stateNode=Qf(n.type,n.pendingProps,Se.current),bt=n,Jt=!0,p=We,Qn(n.type)?(cu=p,We=en(s.firstChild)):We=p),St(e,n,n.pendingProps.children,o),ja(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ze&&((p=s=We)&&(s=ah(s,n.type,n.pendingProps,Jt),s!==null?(n.stateNode=s,bt=n,We=en(s.firstChild),Jt=!1,p=!0):p=!1),p||Ln(n)),nt(n),p=n.type,y=n.pendingProps,w=e!==null?e.memoizedProps:null,s=y.children,au(p,y)?s=null:w!==null&&au(p,w)&&(n.flags|=32),n.memoizedState!==null&&(p=ro(e,n,vp,null,null,o),Hi._currentValue=p),ja(e,n),St(e,n,s,o),n.child;case 6:return e===null&&Ze&&((e=o=We)&&(o=lh(o,n.pendingProps,Jt),o!==null?(n.stateNode=o,bt=n,We=null,e=!0):e=!1),e||Ln(n)),null;case 13:return Ic(e,n,o);case 4:return qe(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=hr(n,null,s,o):St(e,n,s,o),n.child;case 11:return _c(e,n,n.type,n.pendingProps,o);case 7:return St(e,n,n.pendingProps,o),n.child;case 8:return St(e,n,n.pendingProps.children,o),n.child;case 12:return St(e,n,n.pendingProps.children,o),n.child;case 10:return s=n.pendingProps,Mn(n,n.type,s.value),St(e,n,s.children,o),n.child;case 9:return p=n.type._context,s=n.pendingProps.children,cr(n),p=vt(p),s=s(p),n.flags|=1,St(e,n,s,o),n.child;case 14:return Rc(e,n,n.type,n.pendingProps,o);case 15:return jc(e,n,n.type,n.pendingProps,o);case 19:return Uc(e,n,o);case 31:return _p(e,n,o);case 22:return Nc(e,n,o,n.pendingProps);case 24:return cr(n),s=vt(ct),e===null?(p=$l(),p===null&&(p=Xe,y=Pl(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=o),p=y),n.memoizedState={parent:s,cache:p},Ql(n),Mn(n,ct,p)):((e.lanes&o)!==0&&(Xl(e,n),wi(n,null,null,o),ki()),p=e.memoizedState,y=n.memoizedState,p.parent!==s?(p={parent:s,cache:s},n.memoizedState=p,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=p),Mn(n,ct,s)):(s=y.cache,Mn(n,ct,s),s!==p.cache&&Hl(n,[ct],o,!0))),St(e,n,n.pendingProps.children,o),n.child;case 29:throw n.pendingProps}throw Error(u(156,n.tag))}function kn(e){e.flags|=4}function Oo(e,n,o,s,p){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(p&335544128)===p)if(e.stateNode.complete)e.flags|=8192;else if(hf())e.flags|=8192;else throw pr=ma,Gl}else e.flags&=-16777217}function Zc(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rd(n))if(hf())e.flags|=8192;else throw pr=ma,Gl}function Oa(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?vu():536870912,e.lanes|=n,Gr|=n)}function ji(e,n){if(!Ze)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function et(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,s=0;if(n)for(var p=e.child;p!==null;)o|=p.lanes|p.childLanes,s|=p.subtreeFlags&65011712,s|=p.flags&65011712,p.return=e,p=p.sibling;else for(p=e.child;p!==null;)o|=p.lanes|p.childLanes,s|=p.subtreeFlags,s|=p.flags,p.return=e,p=p.sibling;return e.subtreeFlags|=s,e.childLanes=o,n}function jp(e,n,o){var s=n.pendingProps;switch(Ul(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(n),null;case 1:return et(n),null;case 3:return o=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),bn(ct),Re(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Lr(n)?kn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Zl())),et(n),null;case 26:var p=n.type,y=n.memoizedState;return e===null?(kn(n),y!==null?(et(n),Zc(n,y)):(et(n),Oo(n,p,null,s,o))):y?y!==e.memoizedState?(kn(n),et(n),Zc(n,y)):(et(n),n.flags&=-16777217):(e=e.memoizedProps,e!==s&&kn(n),et(n),Oo(n,p,e,s,o)),null;case 27:if(Ke(n),o=Se.current,p=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&kn(n);else{if(!s){if(n.stateNode===null)throw Error(u(166));return et(n),null}e=ge.current,Lr(n)?vs(n):(e=Qf(p,s,o),n.stateNode=e,kn(n))}return et(n),null;case 5:if(Ke(n),p=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&kn(n);else{if(!s){if(n.stateNode===null)throw Error(u(166));return et(n),null}if(y=ge.current,Lr(n))vs(n);else{var w=$a(Se.current);switch(y){case 1:y=w.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:y=w.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":y=w.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":y=w.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":y=w.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof s.is=="string"?w.createElement("select",{is:s.is}):w.createElement("select"),s.multiple?y.multiple=!0:s.size&&(y.size=s.size);break;default:y=typeof s.is=="string"?w.createElement(p,{is:s.is}):w.createElement(p)}}y[xt]=n,y[Rt]=s;e:for(w=n.child;w!==null;){if(w.tag===5||w.tag===6)y.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===n)break e;for(;w.sibling===null;){if(w.return===null||w.return===n)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}n.stateNode=y;e:switch(Et(y,p,s),p){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&kn(n)}}return et(n),Oo(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,o),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&kn(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(u(166));if(e=Se.current,Lr(n)){if(e=n.stateNode,o=n.memoizedProps,s=null,p=bt,p!==null)switch(p.tag){case 27:case 5:s=p.memoizedProps}e[xt]=n,e=!!(e.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||Bf(e.nodeValue,o)),e||Ln(n,!0)}else e=$a(e).createTextNode(s),e[xt]=n,n.stateNode=e}return et(n),null;case 31:if(o=n.memoizedState,e===null||e.memoizedState!==null){if(s=Lr(n),o!==null){if(e===null){if(!s)throw Error(u(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[xt]=n}else ur(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;et(n),e=!1}else o=Zl(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=!0;if(!e)return n.flags&256?(Ut(n),n):(Ut(n),null);if((n.flags&128)!==0)throw Error(u(558))}return et(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(p=Lr(n),s!==null&&s.dehydrated!==null){if(e===null){if(!p)throw Error(u(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(u(317));p[xt]=n}else ur(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;et(n),p=!1}else p=Zl(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=p),p=!0;if(!p)return n.flags&256?(Ut(n),n):(Ut(n),null)}return Ut(n),(n.flags&128)!==0?(n.lanes=o,n):(o=s!==null,e=e!==null&&e.memoizedState!==null,o&&(s=n.child,p=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(p=s.alternate.memoizedState.cachePool.pool),y=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(y=s.memoizedState.cachePool.pool),y!==p&&(s.flags|=2048)),o!==e&&o&&(n.child.flags|=8192),Oa(n,n.updateQueue),et(n),null);case 4:return Re(),e===null&&eu(n.stateNode.containerInfo),et(n),null;case 10:return bn(n.type),et(n),null;case 19:if(ie(ot),s=n.memoizedState,s===null)return et(n),null;if(p=(n.flags&128)!==0,y=s.rendering,y===null)if(p)ji(s,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(y=ba(e),y!==null){for(n.flags|=128,ji(s,!1),e=y.updateQueue,n.updateQueue=e,Oa(n,e),n.subtreeFlags=0,e=o,o=n.child;o!==null;)ms(o,e),o=o.sibling;return j(ot,ot.current&1|2),Ze&&yn(n,s.treeForkCount),n.child}e=e.sibling}s.tail!==null&&Je()>Ia&&(n.flags|=128,p=!0,ji(s,!1),n.lanes=4194304)}else{if(!p)if(e=ba(y),e!==null){if(n.flags|=128,p=!0,e=e.updateQueue,n.updateQueue=e,Oa(n,e),ji(s,!0),s.tail===null&&s.tailMode==="hidden"&&!y.alternate&&!Ze)return et(n),null}else 2*Je()-s.renderingStartTime>Ia&&o!==536870912&&(n.flags|=128,p=!0,ji(s,!1),n.lanes=4194304);s.isBackwards?(y.sibling=n.child,n.child=y):(e=s.last,e!==null?e.sibling=y:n.child=y,s.last=y)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Je(),e.sibling=null,o=ot.current,j(ot,p?o&1|2:o&1),Ze&&yn(n,s.treeForkCount),e):(et(n),null);case 22:case 23:return Ut(n),eo(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(o&536870912)!==0&&(n.flags&128)===0&&(et(n),n.subtreeFlags&6&&(n.flags|=8192)):et(n),o=n.updateQueue,o!==null&&Oa(n,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==o&&(n.flags|=2048),e!==null&&ie(fr),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),bn(ct),et(n),null;case 25:return null;case 30:return null}throw Error(u(156,n.tag))}function Np(e,n){switch(Ul(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return bn(ct),Re(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ke(n),null;case 31:if(n.memoizedState!==null){if(Ut(n),n.alternate===null)throw Error(u(340));ur()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Ut(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(u(340));ur()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return ie(ot),null;case 4:return Re(),null;case 10:return bn(n.type),null;case 22:case 23:return Ut(n),eo(),e!==null&&ie(fr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return bn(ct),null;case 25:return null;default:return null}}function Fc(e,n){switch(Ul(n),n.tag){case 3:bn(ct),Re();break;case 26:case 27:case 5:Ke(n);break;case 4:Re();break;case 31:n.memoizedState!==null&&Ut(n);break;case 13:Ut(n);break;case 19:ie(ot);break;case 10:bn(n.type);break;case 22:case 23:Ut(n),eo(),e!==null&&ie(fr);break;case 24:bn(ct)}}function Ni(e,n){try{var o=n.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var p=s.next;o=p;do{if((o.tag&e)===e){s=void 0;var y=o.create,w=o.inst;s=y(),w.destroy=s}o=o.next}while(o!==p)}}catch(_){Ye(n,n.return,_)}}function Fn(e,n,o){try{var s=n.updateQueue,p=s!==null?s.lastEffect:null;if(p!==null){var y=p.next;s=y;do{if((s.tag&e)===e){var w=s.inst,_=w.destroy;if(_!==void 0){w.destroy=void 0,p=n;var M=o,G=_;try{G()}catch(le){Ye(p,M,le)}}}s=s.next}while(s!==y)}}catch(le){Ye(n,n.return,le)}}function Vc(e){var n=e.updateQueue;if(n!==null){var o=e.stateNode;try{zs(n,o)}catch(s){Ye(e,e.return,s)}}}function Hc(e,n,o){o.props=gr(e.type,e.memoizedProps),o.state=e.memoizedState;try{o.componentWillUnmount()}catch(s){Ye(e,n,s)}}function Oi(e,n){try{var o=e.ref;if(o!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof o=="function"?e.refCleanup=o(s):o.current=s}}catch(p){Ye(e,n,p)}}function fn(e,n){var o=e.ref,s=e.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(p){Ye(e,n,p)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){Ye(e,n,p)}else o.current=null}function Pc(e){var n=e.type,o=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(p){Ye(e,e.return,p)}}function zo(e,n,o){try{var s=e.stateNode;Wp(s,e.type,o,n),s[Rt]=n}catch(p){Ye(e,e.return,p)}}function Yc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qn(e.type)||e.tag===4}function Do(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yc(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&&Qn(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 Lo(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,n):(n=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,n.appendChild(e),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=hn));else if(s!==4&&(s===27&&Qn(e.type)&&(o=e.stateNode,n=null),e=e.child,e!==null))for(Lo(e,n,o),e=e.sibling;e!==null;)Lo(e,n,o),e=e.sibling}function za(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(s!==4&&(s===27&&Qn(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(za(e,n,o),e=e.sibling;e!==null;)za(e,n,o),e=e.sibling}function $c(e){var n=e.stateNode,o=e.memoizedProps;try{for(var s=e.type,p=n.attributes;p.length;)n.removeAttributeNode(p[0]);Et(n,s,o),n[xt]=e,n[Rt]=o}catch(y){Ye(e,e.return,y)}}var wn=!1,pt=!1,Mo=!1,Gc=typeof WeakSet=="function"?WeakSet:Set,yt=null;function Op(e,n){if(e=e.containerInfo,ru=el,e=ls(e),_l(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var p=s.anchorOffset,y=s.focusNode;s=s.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var w=0,_=-1,M=-1,G=0,le=0,fe=e,K=null;t:for(;;){for(var W;fe!==o||p!==0&&fe.nodeType!==3||(_=w+p),fe!==y||s!==0&&fe.nodeType!==3||(M=w+s),fe.nodeType===3&&(w+=fe.nodeValue.length),(W=fe.firstChild)!==null;)K=fe,fe=W;for(;;){if(fe===e)break t;if(K===o&&++G===p&&(_=w),K===y&&++le===s&&(M=w),(W=fe.nextSibling)!==null)break;fe=K,K=fe.parentNode}fe=W}o=_===-1||M===-1?null:{start:_,end:M}}else o=null}o=o||{start:0,end:0}}else o=null;for(iu={focusedElem:e,selectionRange:o},el=!1,yt=n;yt!==null;)if(n=yt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,yt=e;else for(;yt!==null;){switch(n=yt,y=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o<e.length;o++)p=e[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&y!==null){e=void 0,o=n,p=y.memoizedProps,y=y.memoizedState,s=o.stateNode;try{var Ce=gr(o.type,p);e=s.getSnapshotBeforeUpdate(Ce,y),s.__reactInternalSnapshotBeforeUpdate=e}catch(ze){Ye(o,o.return,ze)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,o=e.nodeType,o===9)ou(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ou(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(u(163))}if(e=n.sibling,e!==null){e.return=n.return,yt=e;break}yt=n.return}}function Qc(e,n,o){var s=o.flags;switch(o.tag){case 0:case 11:case 15:Cn(e,o),s&4&&Ni(5,o);break;case 1:if(Cn(e,o),s&4)if(e=o.stateNode,n===null)try{e.componentDidMount()}catch(w){Ye(o,o.return,w)}else{var p=gr(o.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(p,n,e.__reactInternalSnapshotBeforeUpdate)}catch(w){Ye(o,o.return,w)}}s&64&&Vc(o),s&512&&Oi(o,o.return);break;case 3:if(Cn(e,o),s&64&&(e=o.updateQueue,e!==null)){if(n=null,o.child!==null)switch(o.child.tag){case 27:case 5:n=o.child.stateNode;break;case 1:n=o.child.stateNode}try{zs(e,n)}catch(w){Ye(o,o.return,w)}}break;case 27:n===null&&s&4&&$c(o);case 26:case 5:Cn(e,o),n===null&&s&4&&Pc(o),s&512&&Oi(o,o.return);break;case 12:Cn(e,o);break;case 31:Cn(e,o),s&4&&Jc(e,o);break;case 13:Cn(e,o),s&4&&Wc(e,o),s&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(o=Zp.bind(null,o),oh(e,o))));break;case 22:if(s=o.memoizedState!==null||wn,!s){n=n!==null&&n.memoizedState!==null||pt,p=wn;var y=pt;wn=s,(pt=n)&&!y?Tn(e,o,(o.subtreeFlags&8772)!==0):Cn(e,o),wn=p,pt=y}break;case 30:break;default:Cn(e,o)}}function Xc(e){var n=e.alternate;n!==null&&(e.alternate=null,Xc(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&fl(n)),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 tt=null,Nt=!1;function An(e,n,o){for(o=o.child;o!==null;)Kc(e,n,o),o=o.sibling}function Kc(e,n,o){if(R&&typeof R.onCommitFiberUnmount=="function")try{R.onCommitFiberUnmount(T,o)}catch{}switch(o.tag){case 26:pt||fn(o,n),An(e,n,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:pt||fn(o,n);var s=tt,p=Nt;Qn(o.type)&&(tt=o.stateNode,Nt=!1),An(e,n,o),Zi(o.stateNode),tt=s,Nt=p;break;case 5:pt||fn(o,n);case 6:if(s=tt,p=Nt,tt=null,An(e,n,o),tt=s,Nt=p,tt!==null)if(Nt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(o.stateNode)}catch(y){Ye(o,n,y)}else try{tt.removeChild(o.stateNode)}catch(y){Ye(o,n,y)}break;case 18:tt!==null&&(Nt?(e=tt,Hf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),ni(e)):Hf(tt,o.stateNode));break;case 4:s=tt,p=Nt,tt=o.stateNode.containerInfo,Nt=!0,An(e,n,o),tt=s,Nt=p;break;case 0:case 11:case 14:case 15:Fn(2,o,n),pt||Fn(4,o,n),An(e,n,o);break;case 1:pt||(fn(o,n),s=o.stateNode,typeof s.componentWillUnmount=="function"&&Hc(o,n,s)),An(e,n,o);break;case 21:An(e,n,o);break;case 22:pt=(s=pt)||o.memoizedState!==null,An(e,n,o),pt=s;break;default:An(e,n,o)}}function Jc(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ni(e)}catch(o){Ye(n,n.return,o)}}}function Wc(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ni(e)}catch(o){Ye(n,n.return,o)}}function zp(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Gc),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Gc),n;default:throw Error(u(435,e.tag))}}function Da(e,n){var o=zp(e);n.forEach(function(s){if(!o.has(s)){o.add(s);var p=Fp.bind(null,e,s);s.then(p,p)}})}function Ot(e,n){var o=n.deletions;if(o!==null)for(var s=0;s<o.length;s++){var p=o[s],y=e,w=n,_=w;e:for(;_!==null;){switch(_.tag){case 27:if(Qn(_.type)){tt=_.stateNode,Nt=!1;break e}break;case 5:tt=_.stateNode,Nt=!1;break e;case 3:case 4:tt=_.stateNode.containerInfo,Nt=!0;break e}_=_.return}if(tt===null)throw Error(u(160));Kc(y,w,p),tt=null,Nt=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)ef(n,e),n=n.sibling}var rn=null;function ef(e,n){var o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(n,e),zt(e),s&4&&(Fn(3,e,e.return),Ni(3,e),Fn(5,e,e.return));break;case 1:Ot(n,e),zt(e),s&512&&(pt||o===null||fn(o,o.return)),s&64&&wn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(o=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=o===null?s:o.concat(s))));break;case 26:var p=rn;if(Ot(n,e),zt(e),s&512&&(pt||o===null||fn(o,o.return)),s&4){var y=o!==null?o.memoizedState:null;if(s=e.memoizedState,o===null)if(s===null)if(e.stateNode===null){e:{s=e.type,o=e.memoizedProps,p=p.ownerDocument||p;t:switch(s){case"title":y=p.getElementsByTagName("title")[0],(!y||y[ai]||y[xt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(s),p.head.insertBefore(y,p.querySelector("head > title"))),Et(y,s,o),y[xt]=e,gt(y),s=y;break e;case"link":var w=td("link","href",p).get(s+(o.href||""));if(w){for(var _=0;_<w.length;_++)if(y=w[_],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){w.splice(_,1);break t}}y=p.createElement(s),Et(y,s,o),p.head.appendChild(y);break;case"meta":if(w=td("meta","content",p).get(s+(o.content||""))){for(_=0;_<w.length;_++)if(y=w[_],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){w.splice(_,1);break t}}y=p.createElement(s),Et(y,s,o),p.head.appendChild(y);break;default:throw Error(u(468,s))}y[xt]=e,gt(y),s=y}e.stateNode=s}else nd(p,e.type,e.stateNode);else e.stateNode=ed(p,s,e.memoizedProps);else y!==s?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,s===null?nd(p,e.type,e.stateNode):ed(p,s,e.memoizedProps)):s===null&&e.stateNode!==null&&zo(e,e.memoizedProps,o.memoizedProps)}break;case 27:Ot(n,e),zt(e),s&512&&(pt||o===null||fn(o,o.return)),o!==null&&s&4&&zo(e,e.memoizedProps,o.memoizedProps);break;case 5:if(Ot(n,e),zt(e),s&512&&(pt||o===null||fn(o,o.return)),e.flags&32){p=e.stateNode;try{Ar(p,"")}catch(Ce){Ye(e,e.return,Ce)}}s&4&&e.stateNode!=null&&(p=e.memoizedProps,zo(e,p,o!==null?o.memoizedProps:p)),s&1024&&(Mo=!0);break;case 6:if(Ot(n,e),zt(e),s&4){if(e.stateNode===null)throw Error(u(162));s=e.memoizedProps,o=e.stateNode;try{o.nodeValue=s}catch(Ce){Ye(e,e.return,Ce)}}break;case 3:if(Xa=null,p=rn,rn=Ga(n.containerInfo),Ot(n,e),rn=p,zt(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{ni(n.containerInfo)}catch(Ce){Ye(e,e.return,Ce)}Mo&&(Mo=!1,tf(e));break;case 4:s=rn,rn=Ga(e.stateNode.containerInfo),Ot(n,e),zt(e),rn=s;break;case 12:Ot(n,e),zt(e);break;case 31:Ot(n,e),zt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Da(e,s)));break;case 13:Ot(n,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Ma=Je()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Da(e,s)));break;case 22:p=e.memoizedState!==null;var M=o!==null&&o.memoizedState!==null,G=wn,le=pt;if(wn=G||p,pt=le||M,Ot(n,e),pt=le,wn=G,zt(e),s&8192)e:for(n=e.stateNode,n._visibility=p?n._visibility&-2:n._visibility|1,p&&(o===null||M||wn||pt||yr(e)),o=null,n=e;;){if(n.tag===5||n.tag===26){if(o===null){M=o=n;try{if(y=M.stateNode,p)w=y.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{_=M.stateNode;var fe=M.memoizedProps.style,K=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;_.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(Ce){Ye(M,M.return,Ce)}}}else if(n.tag===6){if(o===null){M=n;try{M.stateNode.nodeValue=p?"":M.memoizedProps}catch(Ce){Ye(M,M.return,Ce)}}}else if(n.tag===18){if(o===null){M=n;try{var W=M.stateNode;p?Pf(W,!0):Pf(M.stateNode,!1)}catch(Ce){Ye(M,M.return,Ce)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;o===n&&(o=null),n=n.return}o===n&&(o=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,Da(e,o))));break;case 19:Ot(n,e),zt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Da(e,s)));break;case 30:break;case 21:break;default:Ot(n,e),zt(e)}}function zt(e){var n=e.flags;if(n&2){try{for(var o,s=e.return;s!==null;){if(Yc(s)){o=s;break}s=s.return}if(o==null)throw Error(u(160));switch(o.tag){case 27:var p=o.stateNode,y=Do(e);za(e,y,p);break;case 5:var w=o.stateNode;o.flags&32&&(Ar(w,""),o.flags&=-33);var _=Do(e);za(e,_,w);break;case 3:case 4:var M=o.stateNode.containerInfo,G=Do(e);Lo(e,G,M);break;default:throw Error(u(161))}}catch(le){Ye(e,e.return,le)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function tf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;tf(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Cn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Qc(e,n.alternate,n),n=n.sibling}function yr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Fn(4,n,n.return),yr(n);break;case 1:fn(n,n.return);var o=n.stateNode;typeof o.componentWillUnmount=="function"&&Hc(n,n.return,o),yr(n);break;case 27:Zi(n.stateNode);case 26:case 5:fn(n,n.return),yr(n);break;case 22:n.memoizedState===null&&yr(n);break;case 30:yr(n);break;default:yr(n)}e=e.sibling}}function Tn(e,n,o){for(o=o&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,p=e,y=n,w=y.flags;switch(y.tag){case 0:case 11:case 15:Tn(p,y,o),Ni(4,y);break;case 1:if(Tn(p,y,o),s=y,p=s.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(G){Ye(s,s.return,G)}if(s=y,p=s.updateQueue,p!==null){var _=s.stateNode;try{var M=p.shared.hiddenCallbacks;if(M!==null)for(p.shared.hiddenCallbacks=null,p=0;p<M.length;p++)Os(M[p],_)}catch(G){Ye(s,s.return,G)}}o&&w&64&&Vc(y),Oi(y,y.return);break;case 27:$c(y);case 26:case 5:Tn(p,y,o),o&&s===null&&w&4&&Pc(y),Oi(y,y.return);break;case 12:Tn(p,y,o);break;case 31:Tn(p,y,o),o&&w&4&&Jc(p,y);break;case 13:Tn(p,y,o),o&&w&4&&Wc(p,y);break;case 22:y.memoizedState===null&&Tn(p,y,o),Oi(y,y.return);break;case 30:break;default:Tn(p,y,o)}n=n.sibling}}function Io(e,n){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==o&&(e!=null&&e.refCount++,o!=null&&xi(o))}function Bo(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&xi(e))}function an(e,n,o,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)nf(e,n,o,s),n=n.sibling}function nf(e,n,o,s){var p=n.flags;switch(n.tag){case 0:case 11:case 15:an(e,n,o,s),p&2048&&Ni(9,n);break;case 1:an(e,n,o,s);break;case 3:an(e,n,o,s),p&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&xi(e)));break;case 12:if(p&2048){an(e,n,o,s),e=n.stateNode;try{var y=n.memoizedProps,w=y.id,_=y.onPostCommit;typeof _=="function"&&_(w,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ye(n,n.return,M)}}else an(e,n,o,s);break;case 31:an(e,n,o,s);break;case 13:an(e,n,o,s);break;case 23:break;case 22:y=n.stateNode,w=n.alternate,n.memoizedState!==null?y._visibility&2?an(e,n,o,s):zi(e,n):y._visibility&2?an(e,n,o,s):(y._visibility|=2,Pr(e,n,o,s,(n.subtreeFlags&10256)!==0||!1)),p&2048&&Io(w,n);break;case 24:an(e,n,o,s),p&2048&&Bo(n.alternate,n);break;default:an(e,n,o,s)}}function Pr(e,n,o,s,p){for(p=p&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var y=e,w=n,_=o,M=s,G=w.flags;switch(w.tag){case 0:case 11:case 15:Pr(y,w,_,M,p),Ni(8,w);break;case 23:break;case 22:var le=w.stateNode;w.memoizedState!==null?le._visibility&2?Pr(y,w,_,M,p):zi(y,w):(le._visibility|=2,Pr(y,w,_,M,p)),p&&G&2048&&Io(w.alternate,w);break;case 24:Pr(y,w,_,M,p),p&&G&2048&&Bo(w.alternate,w);break;default:Pr(y,w,_,M,p)}n=n.sibling}}function zi(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var o=e,s=n,p=s.flags;switch(s.tag){case 22:zi(o,s),p&2048&&Io(s.alternate,s);break;case 24:zi(o,s),p&2048&&Bo(s.alternate,s);break;default:zi(o,s)}n=n.sibling}}var Di=8192;function Yr(e,n,o){if(e.subtreeFlags&Di)for(e=e.child;e!==null;)rf(e,n,o),e=e.sibling}function rf(e,n,o){switch(e.tag){case 26:Yr(e,n,o),e.flags&Di&&e.memoizedState!==null&&bh(o,rn,e.memoizedState,e.memoizedProps);break;case 5:Yr(e,n,o);break;case 3:case 4:var s=rn;rn=Ga(e.stateNode.containerInfo),Yr(e,n,o),rn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Di,Di=16777216,Yr(e,n,o),Di=s):Yr(e,n,o));break;default:Yr(e,n,o)}}function af(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Li(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var s=n[o];yt=s,of(s,e)}af(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)lf(e),e=e.sibling}function lf(e){switch(e.tag){case 0:case 11:case 15:Li(e),e.flags&2048&&Fn(9,e,e.return);break;case 3:Li(e);break;case 12:Li(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,La(e)):Li(e);break;default:Li(e)}}function La(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var s=n[o];yt=s,of(s,e)}af(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Fn(8,n,n.return),La(n);break;case 22:o=n.stateNode,o._visibility&2&&(o._visibility&=-3,La(n));break;default:La(n)}e=e.sibling}}function of(e,n){for(;yt!==null;){var o=yt;switch(o.tag){case 0:case 11:case 15:Fn(8,o,n);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var s=o.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:xi(o.memoizedState.cache)}if(s=o.child,s!==null)s.return=o,yt=s;else e:for(o=e;yt!==null;){s=yt;var p=s.sibling,y=s.return;if(Xc(s),s===o){yt=null;break e}if(p!==null){p.return=y,yt=p;break e}yt=y}}}var Dp={getCacheForType:function(e){var n=vt(ct),o=n.data.get(e);return o===void 0&&(o=e(),n.data.set(e,o)),o},cacheSignal:function(){return vt(ct).controller.signal}},Lp=typeof WeakMap=="function"?WeakMap:Map,He=0,Xe=null,Me=null,Be=0,Pe=0,qt=null,Vn=!1,$r=!1,Uo=!1,_n=0,it=0,Hn=0,xr=0,qo=0,Zt=0,Gr=0,Mi=null,Dt=null,Zo=!1,Ma=0,uf=0,Ia=1/0,Ba=null,Pn=null,ht=0,Yn=null,Qr=null,Rn=0,Fo=0,Vo=null,sf=null,Ii=0,Ho=null;function Ft(){return(He&2)!==0&&Be!==0?Be&-Be:H.T!==null?Xo():wu()}function cf(){if(Zt===0)if((Be&536870912)===0||Ze){var e=we;we<<=1,(we&3932160)===0&&(we=262144),Zt=e}else Zt=536870912;return e=Bt.current,e!==null&&(e.flags|=32),Zt}function Lt(e,n,o){(e===Xe&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(Xr(e,0),$n(e,Be,Zt,!1)),ii(e,o),((He&2)===0||e!==Xe)&&(e===Xe&&((He&2)===0&&(xr|=o),it===4&&$n(e,Be,Zt,!1)),dn(e))}function ff(e,n,o){if((He&6)!==0)throw Error(u(327));var s=!o&&(n&127)===0&&(n&e.expiredLanes)===0||ri(e,n),p=s?Bp(e,n):Yo(e,n,!0),y=s;do{if(p===0){$r&&!s&&$n(e,n,0,!1);break}else{if(o=e.current.alternate,y&&!Mp(o)){p=Yo(e,n,!1),y=!1;continue}if(p===2){if(y=n,e.errorRecoveryDisabledLanes&y)var w=0;else w=e.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){n=w;e:{var _=e;p=Mi;var M=_.current.memoizedState.isDehydrated;if(M&&(Xr(_,w).flags|=256),w=Yo(_,w,!1),w!==2){if(Uo&&!M){_.errorRecoveryDisabledLanes|=y,xr|=y,p=4;break e}y=Dt,Dt=p,y!==null&&(Dt===null?Dt=y:Dt.push.apply(Dt,y))}p=w}if(y=!1,p!==2)continue}}if(p===1){Xr(e,0),$n(e,n,0,!0);break}e:{switch(s=e,y=p,y){case 0:case 1:throw Error(u(345));case 4:if((n&4194048)!==n)break;case 6:$n(s,n,Zt,!Vn);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((n&62914560)===n&&(p=Ma+300-Je(),10<p)){if($n(s,n,Zt,!Vn),Gi(s,0,!0)!==0)break e;Rn=n,s.timeoutHandle=Ff(df.bind(null,s,o,Dt,Ba,Zo,n,Zt,xr,Gr,Vn,y,"Throttled",-0,0),p);break e}df(s,o,Dt,Ba,Zo,n,Zt,xr,Gr,Vn,y,null,-0,0)}}break}while(!0);dn(e)}function df(e,n,o,s,p,y,w,_,M,G,le,fe,K,W){if(e.timeoutHandle=-1,fe=n.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},rf(n,y,fe);var Ce=(y&62914560)===y?Ma-Je():(y&4194048)===y?uf-Je():0;if(Ce=vh(fe,Ce),Ce!==null){Rn=y,e.cancelPendingCommit=Ce(vf.bind(null,e,n,y,o,s,p,w,_,M,le,fe,null,K,W)),$n(e,y,w,!G);return}}vf(e,n,y,o,s,p,w,_,M)}function Mp(e){for(var n=e;;){var o=n.tag;if((o===0||o===11||o===15)&&n.flags&16384&&(o=n.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var s=0;s<o.length;s++){var p=o[s],y=p.getSnapshot;p=p.value;try{if(!Mt(y(),p))return!1}catch{return!1}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function $n(e,n,o,s){n&=~qo,n&=~xr,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var p=n;0<p;){var y=31-D(p),w=1<<y;s[y]=-1,p&=~w}o!==0&&Su(e,o,n)}function Ua(){return(He&6)===0?(Bi(0),!1):!0}function Po(){if(Me!==null){if(Pe===0)var e=Me.return;else e=Me,xn=sr=null,lo(e),qr=null,vi=0,e=Me;for(;e!==null;)Fc(e.alternate,e),e=e.return;Me=null}}function Xr(e,n){var o=e.timeoutHandle;o!==-1&&(e.timeoutHandle=-1,nh(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),Rn=0,Po(),Xe=e,Me=o=gn(e.current,null),Be=n,Pe=0,qt=null,Vn=!1,$r=ri(e,n),Uo=!1,Gr=Zt=qo=xr=Hn=it=0,Dt=Mi=null,Zo=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var p=31-D(s),y=1<<p;n|=e[p],s&=~y}return _n=n,la(),o}function pf(e,n){De=null,H.H=_i,n===Ur||n===ha?(n=_s(),Pe=3):n===Gl?(n=_s(),Pe=4):Pe=n===ko?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,qt=n,Me===null&&(it=1,_a(e,Qt(n,e.current)))}function hf(){var e=Bt.current;return e===null?!0:(Be&4194048)===Be?Wt===null:(Be&62914560)===Be||(Be&536870912)!==0?e===Wt:!1}function mf(){var e=H.H;return H.H=_i,e===null?_i:e}function gf(){var e=H.A;return H.A=Dp,e}function qa(){it=4,Vn||(Be&4194048)!==Be&&Bt.current!==null||($r=!0),(Hn&134217727)===0&&(xr&134217727)===0||Xe===null||$n(Xe,Be,Zt,!1)}function Yo(e,n,o){var s=He;He|=2;var p=mf(),y=gf();(Xe!==e||Be!==n)&&(Ba=null,Xr(e,n)),n=!1;var w=it;e:do try{if(Pe!==0&&Me!==null){var _=Me,M=qt;switch(Pe){case 8:Po(),w=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(n=!0);var G=Pe;if(Pe=0,qt=null,Kr(e,_,M,G),o&&$r){w=0;break e}break;default:G=Pe,Pe=0,qt=null,Kr(e,_,M,G)}}Ip(),w=it;break}catch(le){pf(e,le)}while(!0);return n&&e.shellSuspendCounter++,xn=sr=null,He=s,H.H=p,H.A=y,Me===null&&(Xe=null,Be=0,la()),w}function Ip(){for(;Me!==null;)yf(Me)}function Bp(e,n){var o=He;He|=2;var s=mf(),p=gf();Xe!==e||Be!==n?(Ba=null,Ia=Je()+500,Xr(e,n)):$r=ri(e,n);e:do try{if(Pe!==0&&Me!==null){n=Me;var y=qt;t:switch(Pe){case 1:Pe=0,qt=null,Kr(e,n,y,1);break;case 2:case 9:if(Cs(y)){Pe=0,qt=null,xf(n);break}n=function(){Pe!==2&&Pe!==9||Xe!==e||(Pe=7),dn(e)},y.then(n,n);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:Cs(y)?(Pe=0,qt=null,xf(n)):(Pe=0,qt=null,Kr(e,n,y,7));break;case 5:var w=null;switch(Me.tag){case 26:w=Me.memoizedState;case 5:case 27:var _=Me;if(w?rd(w):_.stateNode.complete){Pe=0,qt=null;var M=_.sibling;if(M!==null)Me=M;else{var G=_.return;G!==null?(Me=G,Za(G)):Me=null}break t}}Pe=0,qt=null,Kr(e,n,y,5);break;case 6:Pe=0,qt=null,Kr(e,n,y,6);break;case 8:Po(),it=6;break e;default:throw Error(u(462))}}Up();break}catch(le){pf(e,le)}while(!0);return xn=sr=null,H.H=s,H.A=p,He=o,Me!==null?0:(Xe=null,Be=0,la(),it)}function Up(){for(;Me!==null&&!ln();)yf(Me)}function yf(e){var n=qc(e.alternate,e,_n);e.memoizedProps=e.pendingProps,n===null?Za(e):Me=n}function xf(e){var n=e,o=n.alternate;switch(n.tag){case 15:case 0:n=Dc(o,n,n.pendingProps,n.type,void 0,Be);break;case 11:n=Dc(o,n,n.pendingProps,n.type.render,n.ref,Be);break;case 5:lo(n);default:Fc(o,n),n=Me=ms(n,_n),n=qc(o,n,_n)}e.memoizedProps=e.pendingProps,n===null?Za(e):Me=n}function Kr(e,n,o,s){xn=sr=null,lo(n),qr=null,vi=0;var p=n.return;try{if(Tp(e,p,n,o,Be)){it=1,_a(e,Qt(o,e.current)),Me=null;return}}catch(y){if(p!==null)throw Me=p,y;it=1,_a(e,Qt(o,e.current)),Me=null;return}n.flags&32768?(Ze||s===1?e=!0:$r||(Be&536870912)!==0?e=!1:(Vn=e=!0,(s===2||s===9||s===3||s===6)&&(s=Bt.current,s!==null&&s.tag===13&&(s.flags|=16384))),bf(n,e)):Za(n)}function Za(e){var n=e;do{if((n.flags&32768)!==0){bf(n,Vn);return}e=n.return;var o=jp(n.alternate,n,_n);if(o!==null){Me=o;return}if(n=n.sibling,n!==null){Me=n;return}Me=n=e}while(n!==null);it===0&&(it=5)}function bf(e,n){do{var o=Np(e.alternate,e);if(o!==null){o.flags&=32767,Me=o;return}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!n&&(e=e.sibling,e!==null)){Me=e;return}Me=e=o}while(e!==null);it=6,Me=null}function vf(e,n,o,s,p,y,w,_,M){e.cancelPendingCommit=null;do Fa();while(ht!==0);if((He&6)!==0)throw Error(u(327));if(n!==null){if(n===e.current)throw Error(u(177));if(y=n.lanes|n.childLanes,y|=zl,xd(e,o,y,w,_,M),e===Xe&&(Me=Xe=null,Be=0),Qr=n,Yn=e,Rn=o,Fo=y,Vo=p,sf=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Vp(te,function(){return Af(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=H.T,H.T=null,p=de.p,de.p=2,w=He,He|=4;try{Op(e,n,o)}finally{He=w,de.p=p,H.T=s}}ht=1,Sf(),Ef(),kf()}}function Sf(){if(ht===1){ht=0;var e=Yn,n=Qr,o=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||o){o=H.T,H.T=null;var s=de.p;de.p=2;var p=He;He|=4;try{ef(n,e);var y=iu,w=ls(e.containerInfo),_=y.focusedElem,M=y.selectionRange;if(w!==_&&_&&_.ownerDocument&&as(_.ownerDocument.documentElement,_)){if(M!==null&&_l(_)){var G=M.start,le=M.end;if(le===void 0&&(le=G),"selectionStart"in _)_.selectionStart=G,_.selectionEnd=Math.min(le,_.value.length);else{var fe=_.ownerDocument||document,K=fe&&fe.defaultView||window;if(K.getSelection){var W=K.getSelection(),Ce=_.textContent.length,ze=Math.min(M.start,Ce),Qe=M.end===void 0?ze:Math.min(M.end,Ce);!W.extend&&ze>Qe&&(w=Qe,Qe=ze,ze=w);var V=is(_,ze),B=is(_,Qe);if(V&&B&&(W.rangeCount!==1||W.anchorNode!==V.node||W.anchorOffset!==V.offset||W.focusNode!==B.node||W.focusOffset!==B.offset)){var $=fe.createRange();$.setStart(V.node,V.offset),W.removeAllRanges(),ze>Qe?(W.addRange($),W.extend(B.node,B.offset)):($.setEnd(B.node,B.offset),W.addRange($))}}}}for(fe=[],W=_;W=W.parentNode;)W.nodeType===1&&fe.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<fe.length;_++){var ce=fe[_];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}el=!!ru,iu=ru=null}finally{He=p,de.p=s,H.T=o}}e.current=n,ht=2}}function Ef(){if(ht===2){ht=0;var e=Yn,n=Qr,o=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||o){o=H.T,H.T=null;var s=de.p;de.p=2;var p=He;He|=4;try{Qc(e,n.alternate,n)}finally{He=p,de.p=s,H.T=o}}ht=3}}function kf(){if(ht===4||ht===3){ht=0,on();var e=Yn,n=Qr,o=Rn,s=sf;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ht=5:(ht=0,Qr=Yn=null,wf(e,e.pendingLanes));var p=e.pendingLanes;if(p===0&&(Pn=null),sl(o),n=n.stateNode,R&&typeof R.onCommitFiberRoot=="function")try{R.onCommitFiberRoot(T,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=H.T,p=de.p,de.p=2,H.T=null;try{for(var y=e.onRecoverableError,w=0;w<s.length;w++){var _=s[w];y(_.value,{componentStack:_.stack})}}finally{H.T=n,de.p=p}}(Rn&3)!==0&&Fa(),dn(e),p=e.pendingLanes,(o&261930)!==0&&(p&42)!==0?e===Ho?Ii++:(Ii=0,Ho=e):Ii=0,Bi(0)}}function wf(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,xi(n)))}function Fa(){return Sf(),Ef(),kf(),Af()}function Af(){if(ht!==5)return!1;var e=Yn,n=Fo;Fo=0;var o=sl(Rn),s=H.T,p=de.p;try{de.p=32>o?32:o,H.T=null,o=Vo,Vo=null;var y=Yn,w=Rn;if(ht=0,Qr=Yn=null,Rn=0,(He&6)!==0)throw Error(u(331));var _=He;if(He|=4,lf(y.current),nf(y,y.current,w,o),He=_,Bi(0,!1),R&&typeof R.onPostCommitFiberRoot=="function")try{R.onPostCommitFiberRoot(T,y)}catch{}return!0}finally{de.p=p,H.T=s,wf(e,n)}}function Cf(e,n,o){n=Qt(o,n),n=Eo(e.stateNode,n,2),e=Un(e,n,2),e!==null&&(ii(e,2),dn(e))}function Ye(e,n,o){if(e.tag===3)Cf(e,e,o);else for(;n!==null;){if(n.tag===3){Cf(n,e,o);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Pn===null||!Pn.has(s))){e=Qt(o,e),o=Cc(2),s=Un(n,o,2),s!==null&&(Tc(o,s,n,e),ii(s,2),dn(s));break}}n=n.return}}function $o(e,n,o){var s=e.pingCache;if(s===null){s=e.pingCache=new Lp;var p=new Set;s.set(n,p)}else p=s.get(n),p===void 0&&(p=new Set,s.set(n,p));p.has(o)||(Uo=!0,p.add(o),e=qp.bind(null,e,n,o),n.then(e,e))}function qp(e,n,o){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,Xe===e&&(Be&o)===o&&(it===4||it===3&&(Be&62914560)===Be&&300>Je()-Ma?(He&2)===0&&Xr(e,0):qo|=o,Gr===Be&&(Gr=0)),dn(e)}function Tf(e,n){n===0&&(n=vu()),e=lr(e,n),e!==null&&(ii(e,n),dn(e))}function Zp(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),Tf(e,o)}function Fp(e,n){var o=0;switch(e.tag){case 31:case 13:var s=e.stateNode,p=e.memoizedState;p!==null&&(o=p.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(u(314))}s!==null&&s.delete(n),Tf(e,o)}function Vp(e,n){return At(e,n)}var Va=null,Jr=null,Go=!1,Ha=!1,Qo=!1,Gn=0;function dn(e){e!==Jr&&e.next===null&&(Jr===null?Va=Jr=e:Jr=Jr.next=e),Ha=!0,Go||(Go=!0,Pp())}function Bi(e,n){if(!Qo&&Ha){Qo=!0;do for(var o=!1,s=Va;s!==null;){if(e!==0){var p=s.pendingLanes;if(p===0)var y=0;else{var w=s.suspendedLanes,_=s.pingedLanes;y=(1<<31-D(42|e)+1)-1,y&=p&~(w&~_),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,Nf(s,y))}else y=Be,y=Gi(s,s===Xe?y:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(y&3)===0||ri(s,y)||(o=!0,Nf(s,y));s=s.next}while(o);Qo=!1}}function Hp(){_f()}function _f(){Ha=Go=!1;var e=0;Gn!==0&&th()&&(e=Gn);for(var n=Je(),o=null,s=Va;s!==null;){var p=s.next,y=Rf(s,n);y===0?(s.next=null,o===null?Va=p:o.next=p,p===null&&(Jr=o)):(o=s,(e!==0||(y&3)!==0)&&(Ha=!0)),s=p}ht!==0&&ht!==5||Bi(e),Gn!==0&&(Gn=0)}function Rf(e,n){for(var o=e.suspendedLanes,s=e.pingedLanes,p=e.expirationTimes,y=e.pendingLanes&-62914561;0<y;){var w=31-D(y),_=1<<w,M=p[w];M===-1?((_&o)===0||(_&s)!==0)&&(p[w]=yd(_,n)):M<=n&&(e.expiredLanes|=_),y&=~_}if(n=Xe,o=Be,o=Gi(e,e===n?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,o===0||e===n&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Pt(s),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||ri(e,o)){if(n=o&-o,n===e.callbackPriority)return n;switch(s!==null&&Pt(s),sl(o)){case 2:case 8:o=U;break;case 32:o=te;break;case 268435456:o=v;break;default:o=te}return s=jf.bind(null,e),o=At(o,s),e.callbackPriority=n,e.callbackNode=o,n}return s!==null&&s!==null&&Pt(s),e.callbackPriority=2,e.callbackNode=null,2}function jf(e,n){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(Fa()&&e.callbackNode!==o)return null;var s=Be;return s=Gi(e,e===Xe?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(ff(e,s,n),Rf(e,Je()),e.callbackNode!=null&&e.callbackNode===o?jf.bind(null,e):null)}function Nf(e,n){if(Fa())return null;ff(e,n,!0)}function Pp(){rh(function(){(He&6)!==0?At(z,Hp):_f()})}function Xo(){if(Gn===0){var e=Ir;e===0&&(e=Te,Te<<=1,(Te&261888)===0&&(Te=256)),Gn=e}return Gn}function Of(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ji(""+e)}function zf(e,n){var o=n.ownerDocument.createElement("input");return o.name=n.name,o.value=n.value,e.id&&o.setAttribute("form",e.id),n.parentNode.insertBefore(o,n),e=new FormData(e),o.parentNode.removeChild(o),e}function Yp(e,n,o,s,p){if(n==="submit"&&o&&o.stateNode===p){var y=Of((p[Rt]||null).action),w=s.submitter;w&&(n=(n=w[Rt]||null)?Of(n.formAction):w.getAttribute("formAction"),n!==null&&(y=n,w=null));var _=new na("action","action",null,s,p);e.push({event:_,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Gn!==0){var M=w?zf(p,w):new FormData(p);go(o,{pending:!0,data:M,method:p.method,action:y},null,M)}}else typeof y=="function"&&(_.preventDefault(),M=w?zf(p,w):new FormData(p),go(o,{pending:!0,data:M,method:p.method,action:y},y,M))},currentTarget:p}]})}}for(var Ko=0;Ko<Ol.length;Ko++){var Jo=Ol[Ko],$p=Jo.toLowerCase(),Gp=Jo[0].toUpperCase()+Jo.slice(1);nn($p,"on"+Gp)}nn(ss,"onAnimationEnd"),nn(cs,"onAnimationIteration"),nn(fs,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(cp,"onTransitionRun"),nn(fp,"onTransitionStart"),nn(dp,"onTransitionCancel"),nn(ds,"onTransitionEnd"),kr("onMouseEnter",["mouseout","mouseover"]),kr("onMouseLeave",["mouseout","mouseover"]),kr("onPointerEnter",["pointerout","pointerover"]),kr("onPointerLeave",["pointerout","pointerover"]),nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nr("onBeforeInput",["compositionend","keypress","textInput","paste"]),nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ui="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(" "),Qp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ui));function Df(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var s=e[o],p=s.event;s=s.listeners;e:{var y=void 0;if(n)for(var w=s.length-1;0<=w;w--){var _=s[w],M=_.instance,G=_.currentTarget;if(_=_.listener,M!==y&&p.isPropagationStopped())break e;y=_,p.currentTarget=G;try{y(p)}catch(le){aa(le)}p.currentTarget=null,y=M}else for(w=0;w<s.length;w++){if(_=s[w],M=_.instance,G=_.currentTarget,_=_.listener,M!==y&&p.isPropagationStopped())break e;y=_,p.currentTarget=G;try{y(p)}catch(le){aa(le)}p.currentTarget=null,y=M}}}}function Ie(e,n){var o=n[cl];o===void 0&&(o=n[cl]=new Set);var s=e+"__bubble";o.has(s)||(Lf(n,e,2,!1),o.add(s))}function Wo(e,n,o){var s=0;n&&(s|=4),Lf(o,e,s,n)}var Pa="_reactListening"+Math.random().toString(36).slice(2);function eu(e){if(!e[Pa]){e[Pa]=!0,Tu.forEach(function(o){o!=="selectionchange"&&(Qp.has(o)||Wo(o,!1,e),Wo(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Pa]||(n[Pa]=!0,Wo("selectionchange",!1,n))}}function Lf(e,n,o,s){switch(cd(n)){case 2:var p=kh;break;case 8:p=wh;break;default:p=mu}o=p.bind(null,n,o,e),p=void 0,!bl||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(p=!0),s?p!==void 0?e.addEventListener(n,o,{capture:!0,passive:p}):e.addEventListener(n,o,!0):p!==void 0?e.addEventListener(n,o,{passive:p}):e.addEventListener(n,o,!1)}function tu(e,n,o,s,p){var y=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var w=s.tag;if(w===3||w===4){var _=s.stateNode.containerInfo;if(_===p)break;if(w===4)for(w=s.return;w!==null;){var M=w.tag;if((M===3||M===4)&&w.stateNode.containerInfo===p)return;w=w.return}for(;_!==null;){if(w=vr(_),w===null)return;if(M=w.tag,M===5||M===6||M===26||M===27){s=y=w;continue e}_=_.parentNode}}s=s.return}Uu(function(){var G=y,le=yl(o),fe=[];e:{var K=ps.get(e);if(K!==void 0){var W=na,Ce=e;switch(e){case"keypress":if(ea(o)===0)break e;case"keydown":case"keyup":W=Fd;break;case"focusin":Ce="focus",W=kl;break;case"focusout":Ce="blur",W=kl;break;case"beforeblur":case"afterblur":W=kl;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=Fu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=jd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=Pd;break;case ss:case cs:case fs:W=zd;break;case ds:W=$d;break;case"scroll":case"scrollend":W=_d;break;case"wheel":W=Qd;break;case"copy":case"cut":case"paste":W=Ld;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=Hu;break;case"toggle":case"beforetoggle":W=Kd}var ze=(n&4)!==0,Qe=!ze&&(e==="scroll"||e==="scrollend"),V=ze?K!==null?K+"Capture":null:K;ze=[];for(var B=G,$;B!==null;){var ce=B;if($=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||$===null||V===null||(ce=oi(B,V),ce!=null&&ze.push(qi(B,ce,$))),Qe)break;B=B.return}0<ze.length&&(K=new W(K,Ce,null,o,le),fe.push({event:K,listeners:ze}))}}if((n&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",K&&o!==gl&&(Ce=o.relatedTarget||o.fromElement)&&(vr(Ce)||Ce[br]))break e;if((W||K)&&(K=le.window===le?le:(K=le.ownerDocument)?K.defaultView||K.parentWindow:window,W?(Ce=o.relatedTarget||o.toElement,W=G,Ce=Ce?vr(Ce):null,Ce!==null&&(Qe=f(Ce),ze=Ce.tag,Ce!==Qe||ze!==5&&ze!==27&&ze!==6)&&(Ce=null)):(W=null,Ce=G),W!==Ce)){if(ze=Fu,ce="onMouseLeave",V="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(ze=Hu,ce="onPointerLeave",V="onPointerEnter",B="pointer"),Qe=W==null?K:li(W),$=Ce==null?K:li(Ce),K=new ze(ce,B+"leave",W,o,le),K.target=Qe,K.relatedTarget=$,ce=null,vr(le)===G&&(ze=new ze(V,B+"enter",Ce,o,le),ze.target=$,ze.relatedTarget=Qe,ce=ze),Qe=ce,W&&Ce)t:{for(ze=Xp,V=W,B=Ce,$=0,ce=V;ce;ce=ze(ce))$++;ce=0;for(var je=B;je;je=ze(je))ce++;for(;0<$-ce;)V=ze(V),$--;for(;0<ce-$;)B=ze(B),ce--;for(;$--;){if(V===B||B!==null&&V===B.alternate){ze=V;break t}V=ze(V),B=ze(B)}ze=null}else ze=null;W!==null&&Mf(fe,K,W,ze,!1),Ce!==null&&Qe!==null&&Mf(fe,Qe,Ce,ze,!0)}}e:{if(K=G?li(G):window,W=K.nodeName&&K.nodeName.toLowerCase(),W==="select"||W==="input"&&K.type==="file")var Fe=Ju;else if(Xu(K))if(Wu)Fe=op;else{Fe=ap;var _e=ip}else W=K.nodeName,!W||W.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?G&&ml(G.elementType)&&(Fe=Ju):Fe=lp;if(Fe&&(Fe=Fe(e,G))){Ku(fe,Fe,o,le);break e}_e&&_e(e,K,G),e==="focusout"&&G&&K.type==="number"&&G.memoizedProps.value!=null&&hl(K,"number",K.value)}switch(_e=G?li(G):window,e){case"focusin":(Xu(_e)||_e.contentEditable==="true")&&(Rr=_e,Rl=G,mi=null);break;case"focusout":mi=Rl=Rr=null;break;case"mousedown":jl=!0;break;case"contextmenu":case"mouseup":case"dragend":jl=!1,os(fe,o,le);break;case"selectionchange":if(sp)break;case"keydown":case"keyup":os(fe,o,le)}var Le;if(Al)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else _r?Gu(e,o)&&(Ue="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Ue="onCompositionStart");Ue&&(Pu&&o.locale!=="ko"&&(_r||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&_r&&(Le=qu()):(On=le,vl="value"in On?On.value:On.textContent,_r=!0)),_e=Ya(G,Ue),0<_e.length&&(Ue=new Vu(Ue,e,null,o,le),fe.push({event:Ue,listeners:_e}),Le?Ue.data=Le:(Le=Qu(o),Le!==null&&(Ue.data=Le)))),(Le=Wd?ep(e,o):tp(e,o))&&(Ue=Ya(G,"onBeforeInput"),0<Ue.length&&(_e=new Vu("onBeforeInput","beforeinput",null,o,le),fe.push({event:_e,listeners:Ue}),_e.data=Le)),Yp(fe,e,G,o,le)}Df(fe,n)})}function qi(e,n,o){return{instance:e,listener:n,currentTarget:o}}function Ya(e,n){for(var o=n+"Capture",s=[];e!==null;){var p=e,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=oi(e,o),p!=null&&s.unshift(qi(e,p,y)),p=oi(e,n),p!=null&&s.push(qi(e,p,y))),e.tag===3)return s;e=e.return}return[]}function Xp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mf(e,n,o,s,p){for(var y=n._reactName,w=[];o!==null&&o!==s;){var _=o,M=_.alternate,G=_.stateNode;if(_=_.tag,M!==null&&M===s)break;_!==5&&_!==26&&_!==27||G===null||(M=G,p?(G=oi(o,y),G!=null&&w.unshift(qi(o,G,M))):p||(G=oi(o,y),G!=null&&w.push(qi(o,G,M)))),o=o.return}w.length!==0&&e.push({event:n,listeners:w})}var Kp=/\r\n?/g,Jp=/\u0000|\uFFFD/g;function If(e){return(typeof e=="string"?e:""+e).replace(Kp,`
|
|
33
|
+
`).replace(Jp,"")}function Bf(e,n){return n=If(n),If(e)===n}function Ge(e,n,o,s,p,y){switch(o){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Ar(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Ar(e,""+s);break;case"className":Xi(e,"class",s);break;case"tabIndex":Xi(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(e,o,s);break;case"style":Iu(e,s,y);break;case"data":if(n!=="object"){Xi(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||o!=="href")){e.removeAttribute(o);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(o);break}s=Ji(""+s),e.setAttribute(o,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(o,"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 y=="function"&&(o==="formAction"?(n!=="input"&&Ge(e,n,"name",p.name,p,null),Ge(e,n,"formEncType",p.formEncType,p,null),Ge(e,n,"formMethod",p.formMethod,p,null),Ge(e,n,"formTarget",p.formTarget,p,null)):(Ge(e,n,"encType",p.encType,p,null),Ge(e,n,"method",p.method,p,null),Ge(e,n,"target",p.target,p,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(o);break}s=Ji(""+s),e.setAttribute(o,s);break;case"onClick":s!=null&&(e.onclick=hn);break;case"onScroll":s!=null&&Ie("scroll",e);break;case"onScrollEnd":s!=null&&Ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(u(61));if(o=s.__html,o!=null){if(p.children!=null)throw Error(u(60));e.innerHTML=o}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}o=Ji(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(o,""+s):e.removeAttribute(o);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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":s===!0?e.setAttribute(o,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(o,s):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(o,s):e.removeAttribute(o);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(o):e.setAttribute(o,s);break;case"popover":Ie("beforetoggle",e),Ie("toggle",e),Qi(e,"popover",s);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Qi(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=Cd.get(o)||o,Qi(e,o,s))}}function nu(e,n,o,s,p,y){switch(o){case"style":Iu(e,s,y);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(u(61));if(o=s.__html,o!=null){if(p.children!=null)throw Error(u(60));e.innerHTML=o}}break;case"children":typeof s=="string"?Ar(e,s):(typeof s=="number"||typeof s=="bigint")&&Ar(e,""+s);break;case"onScroll":s!=null&&Ie("scroll",e);break;case"onScrollEnd":s!=null&&Ie("scrollend",e);break;case"onClick":s!=null&&(e.onclick=hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_u.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),n=o.slice(2,p?o.length-7:void 0),y=e[Rt]||null,y=y!=null?y[o]:null,typeof y=="function"&&e.removeEventListener(n,y,p),typeof s=="function")){typeof y!="function"&&y!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(n,s,p);break e}o in e?e[o]=s:s===!0?e.setAttribute(o,""):Qi(e,o,s)}}}function Et(e,n,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",e),Ie("load",e);var s=!1,p=!1,y;for(y in o)if(o.hasOwnProperty(y)){var w=o[y];if(w!=null)switch(y){case"src":s=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,n));default:Ge(e,n,y,w,o,null)}}p&&Ge(e,n,"srcSet",o.srcSet,o,null),s&&Ge(e,n,"src",o.src,o,null);return;case"input":Ie("invalid",e);var _=y=w=p=null,M=null,G=null;for(s in o)if(o.hasOwnProperty(s)){var le=o[s];if(le!=null)switch(s){case"name":p=le;break;case"type":w=le;break;case"checked":M=le;break;case"defaultChecked":G=le;break;case"value":y=le;break;case"defaultValue":_=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(u(137,n));break;default:Ge(e,n,s,le,o,null)}}zu(e,y,_,M,G,w,p,!1);return;case"select":Ie("invalid",e),s=w=y=null;for(p in o)if(o.hasOwnProperty(p)&&(_=o[p],_!=null))switch(p){case"value":y=_;break;case"defaultValue":w=_;break;case"multiple":s=_;default:Ge(e,n,p,_,o,null)}n=y,o=w,e.multiple=!!s,n!=null?wr(e,!!s,n,!1):o!=null&&wr(e,!!s,o,!0);return;case"textarea":Ie("invalid",e),y=p=s=null;for(w in o)if(o.hasOwnProperty(w)&&(_=o[w],_!=null))switch(w){case"value":s=_;break;case"defaultValue":p=_;break;case"children":y=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(91));break;default:Ge(e,n,w,_,o,null)}Lu(e,s,p,y);return;case"option":for(M in o)if(o.hasOwnProperty(M)&&(s=o[M],s!=null))switch(M){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ge(e,n,M,s,o,null)}return;case"dialog":Ie("beforetoggle",e),Ie("toggle",e),Ie("cancel",e),Ie("close",e);break;case"iframe":case"object":Ie("load",e);break;case"video":case"audio":for(s=0;s<Ui.length;s++)Ie(Ui[s],e);break;case"image":Ie("error",e),Ie("load",e);break;case"details":Ie("toggle",e);break;case"embed":case"source":case"link":Ie("error",e),Ie("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(G in o)if(o.hasOwnProperty(G)&&(s=o[G],s!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,n));default:Ge(e,n,G,s,o,null)}return;default:if(ml(n)){for(le in o)o.hasOwnProperty(le)&&(s=o[le],s!==void 0&&nu(e,n,le,s,o,void 0));return}}for(_ in o)o.hasOwnProperty(_)&&(s=o[_],s!=null&&Ge(e,n,_,s,o,null))}function Wp(e,n,o,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,w=null,_=null,M=null,G=null,le=null;for(W in o){var fe=o[W];if(o.hasOwnProperty(W)&&fe!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":M=fe;default:s.hasOwnProperty(W)||Ge(e,n,W,null,s,fe)}}for(var K in s){var W=s[K];if(fe=o[K],s.hasOwnProperty(K)&&(W!=null||fe!=null))switch(K){case"type":y=W;break;case"name":p=W;break;case"checked":G=W;break;case"defaultChecked":le=W;break;case"value":w=W;break;case"defaultValue":_=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(u(137,n));break;default:W!==fe&&Ge(e,n,K,W,s,fe)}}pl(e,w,_,M,G,le,y,p);return;case"select":W=w=_=K=null;for(y in o)if(M=o[y],o.hasOwnProperty(y)&&M!=null)switch(y){case"value":break;case"multiple":W=M;default:s.hasOwnProperty(y)||Ge(e,n,y,null,s,M)}for(p in s)if(y=s[p],M=o[p],s.hasOwnProperty(p)&&(y!=null||M!=null))switch(p){case"value":K=y;break;case"defaultValue":_=y;break;case"multiple":w=y;default:y!==M&&Ge(e,n,p,y,s,M)}n=_,o=w,s=W,K!=null?wr(e,!!o,K,!1):!!s!=!!o&&(n!=null?wr(e,!!o,n,!0):wr(e,!!o,o?[]:"",!1));return;case"textarea":W=K=null;for(_ in o)if(p=o[_],o.hasOwnProperty(_)&&p!=null&&!s.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Ge(e,n,_,null,s,p)}for(w in s)if(p=s[w],y=o[w],s.hasOwnProperty(w)&&(p!=null||y!=null))switch(w){case"value":K=p;break;case"defaultValue":W=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(u(91));break;default:p!==y&&Ge(e,n,w,p,s,y)}Du(e,K,W);return;case"option":for(var Ce in o)if(K=o[Ce],o.hasOwnProperty(Ce)&&K!=null&&!s.hasOwnProperty(Ce))switch(Ce){case"selected":e.selected=!1;break;default:Ge(e,n,Ce,null,s,K)}for(M in s)if(K=s[M],W=o[M],s.hasOwnProperty(M)&&K!==W&&(K!=null||W!=null))switch(M){case"selected":e.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:Ge(e,n,M,K,s,W)}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 ze in o)K=o[ze],o.hasOwnProperty(ze)&&K!=null&&!s.hasOwnProperty(ze)&&Ge(e,n,ze,null,s,K);for(G in s)if(K=s[G],W=o[G],s.hasOwnProperty(G)&&K!==W&&(K!=null||W!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(u(137,n));break;default:Ge(e,n,G,K,s,W)}return;default:if(ml(n)){for(var Qe in o)K=o[Qe],o.hasOwnProperty(Qe)&&K!==void 0&&!s.hasOwnProperty(Qe)&&nu(e,n,Qe,void 0,s,K);for(le in s)K=s[le],W=o[le],!s.hasOwnProperty(le)||K===W||K===void 0&&W===void 0||nu(e,n,le,K,s,W);return}}for(var V in o)K=o[V],o.hasOwnProperty(V)&&K!=null&&!s.hasOwnProperty(V)&&Ge(e,n,V,null,s,K);for(fe in s)K=s[fe],W=o[fe],!s.hasOwnProperty(fe)||K===W||K==null&&W==null||Ge(e,n,fe,K,s,W)}function Uf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function eh(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,o=performance.getEntriesByType("resource"),s=0;s<o.length;s++){var p=o[s],y=p.transferSize,w=p.initiatorType,_=p.duration;if(y&&_&&Uf(w)){for(w=0,_=p.responseEnd,s+=1;s<o.length;s++){var M=o[s],G=M.startTime;if(G>_)break;var le=M.transferSize,fe=M.initiatorType;le&&Uf(fe)&&(M=M.responseEnd,w+=le*(M<_?1:(_-G)/(M-G)))}if(--s,n+=8*(y+w)/(p.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ru=null,iu=null;function $a(e){return e.nodeType===9?e:e.ownerDocument}function qf(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 Zf(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function au(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var lu=null;function th(){var e=window.event;return e&&e.type==="popstate"?e===lu?!1:(lu=e,!0):(lu=null,!1)}var Ff=typeof setTimeout=="function"?setTimeout:void 0,nh=typeof clearTimeout=="function"?clearTimeout:void 0,Vf=typeof Promise=="function"?Promise:void 0,rh=typeof queueMicrotask=="function"?queueMicrotask:typeof Vf<"u"?function(e){return Vf.resolve(null).then(e).catch(ih)}:Ff;function ih(e){setTimeout(function(){throw e})}function Qn(e){return e==="head"}function Hf(e,n){var o=n,s=0;do{var p=o.nextSibling;if(e.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(s===0){e.removeChild(p),ni(n);return}s--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")s++;else if(o==="html")Zi(e.ownerDocument.documentElement);else if(o==="head"){o=e.ownerDocument.head,Zi(o);for(var y=o.firstChild;y;){var w=y.nextSibling,_=y.nodeName;y[ai]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=w}}else o==="body"&&Zi(e.ownerDocument.body);o=p}while(o);ni(n)}function Pf(e,n){var o=e;e=0;do{var s=o.nextSibling;if(o.nodeType===1?n?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(n?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),s&&s.nodeType===8)if(o=s.data,o==="/$"){if(e===0)break;e--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||e++;o=s}while(o)}function ou(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var o=n;switch(n=n.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":ou(o),fl(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function ah(e,n,o,s){for(;e.nodeType===1;){var p=o;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ai])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(y=e.getAttribute("rel"),y==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(y!==p.rel||e.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||e.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||e.getAttribute("title")!==(p.title==null?null:p.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(y=e.getAttribute("src"),(y!==(p.src==null?null:p.src)||e.getAttribute("type")!==(p.type==null?null:p.type)||e.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&e.getAttribute("name")===y)return e}else return e;if(e=en(e.nextSibling),e===null)break}return null}function lh(e,n,o){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o||(e=en(e.nextSibling),e===null))return null;return e}function Yf(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=en(e.nextSibling),e===null))return null;return e}function uu(e){return e.data==="$?"||e.data==="$~"}function su(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function oh(e,n){var o=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||o.readyState!=="loading")n();else{var s=function(){n(),o.removeEventListener("DOMContentLoaded",s)};o.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function en(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var cu=null;function $f(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"||o==="/&"){if(n===0)return en(e.nextSibling);n--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||n++}e=e.nextSibling}return null}function Gf(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(n===0)return e;n--}else o!=="/$"&&o!=="/&"||n++}e=e.previousSibling}return null}function Qf(e,n,o){switch(n=$a(o),e){case"html":if(e=n.documentElement,!e)throw Error(u(452));return e;case"head":if(e=n.head,!e)throw Error(u(453));return e;case"body":if(e=n.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Zi(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);fl(e)}var tn=new Map,Xf=new Set;function Ga(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=de.d;de.d={f:uh,r:sh,D:ch,C:fh,L:dh,m:ph,X:mh,S:hh,M:gh};function uh(){var e=jn.f(),n=Ua();return e||n}function sh(e){var n=Sr(e);n!==null&&n.tag===5&&n.type==="form"?dc(n):jn.r(e)}var Wr=typeof document>"u"?null:document;function Kf(e,n,o){var s=Wr;if(s&&typeof n=="string"&&n){var p=$t(n);p='link[rel="'+e+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),Xf.has(p)||(Xf.add(p),e={rel:e,crossOrigin:o,href:n},s.querySelector(p)===null&&(n=s.createElement("link"),Et(n,"link",e),gt(n),s.head.appendChild(n)))}}function ch(e){jn.D(e),Kf("dns-prefetch",e,null)}function fh(e,n){jn.C(e,n),Kf("preconnect",e,n)}function dh(e,n,o){jn.L(e,n,o);var s=Wr;if(s&&e&&n){var p='link[rel="preload"][as="'+$t(n)+'"]';n==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+$t(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+$t(o.imageSizes)+'"]')):p+='[href="'+$t(e)+'"]';var y=p;switch(n){case"style":y=ei(e);break;case"script":y=ti(e)}tn.has(y)||(e=S({rel:"preload",href:n==="image"&&o&&o.imageSrcSet?void 0:e,as:n},o),tn.set(y,e),s.querySelector(p)!==null||n==="style"&&s.querySelector(Fi(y))||n==="script"&&s.querySelector(Vi(y))||(n=s.createElement("link"),Et(n,"link",e),gt(n),s.head.appendChild(n)))}}function ph(e,n){jn.m(e,n);var o=Wr;if(o&&e){var s=n&&typeof n.as=="string"?n.as:"script",p='link[rel="modulepreload"][as="'+$t(s)+'"][href="'+$t(e)+'"]',y=p;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=ti(e)}if(!tn.has(y)&&(e=S({rel:"modulepreload",href:e},n),tn.set(y,e),o.querySelector(p)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Vi(y)))return}s=o.createElement("link"),Et(s,"link",e),gt(s),o.head.appendChild(s)}}}function hh(e,n,o){jn.S(e,n,o);var s=Wr;if(s&&e){var p=Er(s).hoistableStyles,y=ei(e);n=n||"default";var w=p.get(y);if(!w){var _={loading:0,preload:null};if(w=s.querySelector(Fi(y)))_.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":n},o),(o=tn.get(y))&&fu(e,o);var M=w=s.createElement("link");gt(M),Et(M,"link",e),M._p=new Promise(function(G,le){M.onload=G,M.onerror=le}),M.addEventListener("load",function(){_.loading|=1}),M.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Qa(w,n,s)}w={type:"stylesheet",instance:w,count:1,state:_},p.set(y,w)}}}function mh(e,n){jn.X(e,n);var o=Wr;if(o&&e){var s=Er(o).hoistableScripts,p=ti(e),y=s.get(p);y||(y=o.querySelector(Vi(p)),y||(e=S({src:e,async:!0},n),(n=tn.get(p))&&du(e,n),y=o.createElement("script"),gt(y),Et(y,"link",e),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},s.set(p,y))}}function gh(e,n){jn.M(e,n);var o=Wr;if(o&&e){var s=Er(o).hoistableScripts,p=ti(e),y=s.get(p);y||(y=o.querySelector(Vi(p)),y||(e=S({src:e,async:!0,type:"module"},n),(n=tn.get(p))&&du(e,n),y=o.createElement("script"),gt(y),Et(y,"link",e),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},s.set(p,y))}}function Jf(e,n,o,s){var p=(p=Se.current)?Ga(p):null;if(!p)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(n=ei(o.href),o=Er(p).hoistableStyles,s=o.get(n),s||(s={type:"style",instance:null,count:0,state:null},o.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=ei(o.href);var y=Er(p).hoistableStyles,w=y.get(e);if(w||(p=p.ownerDocument||p,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(e,w),(y=p.querySelector(Fi(e)))&&!y._p&&(w.instance=y,w.state.loading=5),tn.has(e)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},tn.set(e,o),y||yh(p,e,o,w.state))),n&&s===null)throw Error(u(528,""));return w}if(n&&s!==null)throw Error(u(529,""));return null;case"script":return n=o.async,o=o.src,typeof o=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ti(o),o=Er(p).hoistableScripts,s=o.get(n),s||(s={type:"script",instance:null,count:0,state:null},o.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function ei(e){return'href="'+$t(e)+'"'}function Fi(e){return'link[rel="stylesheet"]['+e+"]"}function Wf(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function yh(e,n,o,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),Et(n,"link",o),gt(n),e.head.appendChild(n))}function ti(e){return'[src="'+$t(e)+'"]'}function Vi(e){return"script[async]"+e}function ed(e,n,o){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+$t(o.href)+'"]');if(s)return n.instance=s,gt(s),s;var p=S({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),gt(s),Et(s,"style",p),Qa(s,o.precedence,e),n.instance=s;case"stylesheet":p=ei(o.href);var y=e.querySelector(Fi(p));if(y)return n.state.loading|=4,n.instance=y,gt(y),y;s=Wf(o),(p=tn.get(p))&&fu(s,p),y=(e.ownerDocument||e).createElement("link"),gt(y);var w=y;return w._p=new Promise(function(_,M){w.onload=_,w.onerror=M}),Et(y,"link",s),n.state.loading|=4,Qa(y,o.precedence,e),n.instance=y;case"script":return y=ti(o.src),(p=e.querySelector(Vi(y)))?(n.instance=p,gt(p),p):(s=o,(p=tn.get(y))&&(s=S({},o),du(s,p)),e=e.ownerDocument||e,p=e.createElement("script"),gt(p),Et(p,"link",s),e.head.appendChild(p),n.instance=p);case"void":return null;default:throw Error(u(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Qa(s,o.precedence,e));return n.instance}function Qa(e,n,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=s.length?s[s.length-1]:null,y=p,w=0;w<s.length;w++){var _=s[w];if(_.dataset.precedence===n)y=_;else if(y!==p)break}y?y.parentNode.insertBefore(e,y.nextSibling):(n=o.nodeType===9?o.head:o,n.insertBefore(e,n.firstChild))}function fu(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function du(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Xa=null;function td(e,n,o){if(Xa===null){var s=new Map,p=Xa=new Map;p.set(o,s)}else p=Xa,s=p.get(o),s||(s=new Map,p.set(o,s));if(s.has(e))return s;for(s.set(e,null),o=o.getElementsByTagName(e),p=0;p<o.length;p++){var y=o[p];if(!(y[ai]||y[xt]||e==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var w=y.getAttribute(n)||"";w=e+w;var _=s.get(w);_?_.push(y):s.set(w,[y])}}return s}function nd(e,n,o){e=e.ownerDocument||e,e.head.insertBefore(o,n==="title"?e.querySelector("head > title"):null)}function xh(e,n,o){if(o===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function rd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function bh(e,n,o,s){if(o.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=ei(s.href),y=n.querySelector(Fi(p));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ka.bind(e),n.then(e,e)),o.state.loading|=4,o.instance=y,gt(y);return}y=n.ownerDocument||n,s=Wf(s),(p=tn.get(p))&&fu(s,p),y=y.createElement("link"),gt(y);var w=y;w._p=new Promise(function(_,M){w.onload=_,w.onerror=M}),Et(y,"link",s),o.instance=y}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,n),(n=o.state.preload)&&(o.state.loading&3)===0&&(e.count++,o=Ka.bind(e),n.addEventListener("load",o),n.addEventListener("error",o))}}var pu=0;function vh(e,n){return e.stylesheets&&e.count===0&&Wa(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var s=setTimeout(function(){if(e.stylesheets&&Wa(e,e.stylesheets),e.unsuspend){var y=e.unsuspend;e.unsuspend=null,y()}},6e4+n);0<e.imgBytes&&pu===0&&(pu=62500*eh());var p=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wa(e,e.stylesheets),e.unsuspend)){var y=e.unsuspend;e.unsuspend=null,y()}},(e.imgBytes>pu?50:800)+n);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(p)}}:null}function Ka(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wa(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ja=null;function Wa(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ja=new Map,n.forEach(Sh,e),Ja=null,Ka.call(e))}function Sh(e,n){if(!(n.state.loading&4)){var o=Ja.get(e);if(o)var s=o.get(null);else{o=new Map,Ja.set(e,o);for(var p=e.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var w=p[y];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(o.set(w.dataset.precedence,w),s=w)}s&&o.set(null,s)}p=n.instance,w=p.getAttribute("data-precedence"),y=o.get(w)||s,y===s&&o.set(null,p),o.set(w,p),this.count++,s=Ka.bind(this),p.addEventListener("load",s),p.addEventListener("error",s),y?y.parentNode.insertBefore(p,y.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(p,e.firstChild)),n.state.loading|=4}}var Hi={$$typeof:Y,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Eh(e,n,o,s,p,y,w,_,M){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=ol(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ol(0),this.hiddenUpdates=ol(null),this.identifierPrefix=s,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function id(e,n,o,s,p,y,w,_,M,G,le,fe){return e=new Eh(e,n,o,w,M,G,le,fe,_),n=1,y===!0&&(n|=24),y=It(3,null,null,n),e.current=y,y.stateNode=e,n=Pl(),n.refCount++,e.pooledCache=n,n.refCount++,y.memoizedState={element:s,isDehydrated:o,cache:n},Ql(y),e}function ad(e){return e?(e=Or,e):Or}function ld(e,n,o,s,p,y){p=ad(p),s.context===null?s.context=p:s.pendingContext=p,s=Bn(n),s.payload={element:o},y=y===void 0?null:y,y!==null&&(s.callback=y),o=Un(e,s,n),o!==null&&(Lt(o,e,n),Ei(o,e,n))}function od(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function hu(e,n){od(e,n),(e=e.alternate)&&od(e,n)}function ud(e){if(e.tag===13||e.tag===31){var n=lr(e,67108864);n!==null&&Lt(n,e,67108864),hu(e,67108864)}}function sd(e){if(e.tag===13||e.tag===31){var n=Ft();n=ul(n);var o=lr(e,n);o!==null&&Lt(o,e,n),hu(e,n)}}var el=!0;function kh(e,n,o,s){var p=H.T;H.T=null;var y=de.p;try{de.p=2,mu(e,n,o,s)}finally{de.p=y,H.T=p}}function wh(e,n,o,s){var p=H.T;H.T=null;var y=de.p;try{de.p=8,mu(e,n,o,s)}finally{de.p=y,H.T=p}}function mu(e,n,o,s){if(el){var p=gu(s);if(p===null)tu(e,n,s,tl,o),fd(e,s);else if(Ch(p,e,n,o,s))s.stopPropagation();else if(fd(e,s),n&4&&-1<Ah.indexOf(e)){for(;p!==null;){var y=Sr(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var w=tr(y.pendingLanes);if(w!==0){var _=y;for(_.pendingLanes|=2,_.entangledLanes|=2;w;){var M=1<<31-D(w);_.entanglements[1]|=M,w&=~M}dn(y),(He&6)===0&&(Ia=Je()+500,Bi(0))}}break;case 31:case 13:_=lr(y,2),_!==null&&Lt(_,y,2),Ua(),hu(y,2)}if(y=gu(s),y===null&&tu(e,n,s,tl,o),y===p)break;p=y}p!==null&&s.stopPropagation()}else tu(e,n,s,null,o)}}function gu(e){return e=yl(e),yu(e)}var tl=null;function yu(e){if(tl=null,e=vr(e),e!==null){var n=f(e);if(n===null)e=null;else{var o=n.tag;if(o===13){if(e=d(n),e!==null)return e;e=null}else if(o===31){if(e=g(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return tl=e,null}function cd(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(k()){case z:return 2;case U:return 8;case te:case J:return 32;case v:return 268435456;default:return 32}default:return 32}}var xu=!1,Xn=null,Kn=null,Jn=null,Pi=new Map,Yi=new Map,Wn=[],Ah="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 fd(e,n){switch(e){case"focusin":case"focusout":Xn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Pi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yi.delete(n.pointerId)}}function $i(e,n,o,s,p,y){return e===null||e.nativeEvent!==y?(e={blockedOn:n,domEventName:o,eventSystemFlags:s,nativeEvent:y,targetContainers:[p]},n!==null&&(n=Sr(n),n!==null&&ud(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,p!==null&&n.indexOf(p)===-1&&n.push(p),e)}function Ch(e,n,o,s,p){switch(n){case"focusin":return Xn=$i(Xn,e,n,o,s,p),!0;case"dragenter":return Kn=$i(Kn,e,n,o,s,p),!0;case"mouseover":return Jn=$i(Jn,e,n,o,s,p),!0;case"pointerover":var y=p.pointerId;return Pi.set(y,$i(Pi.get(y)||null,e,n,o,s,p)),!0;case"gotpointercapture":return y=p.pointerId,Yi.set(y,$i(Yi.get(y)||null,e,n,o,s,p)),!0}return!1}function dd(e){var n=vr(e.target);if(n!==null){var o=f(n);if(o!==null){if(n=o.tag,n===13){if(n=d(o),n!==null){e.blockedOn=n,Au(e.priority,function(){sd(o)});return}}else if(n===31){if(n=g(o),n!==null){e.blockedOn=n,Au(e.priority,function(){sd(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=gu(e.nativeEvent);if(o===null){o=e.nativeEvent;var s=new o.constructor(o.type,o);gl=s,o.target.dispatchEvent(s),gl=null}else return n=Sr(o),n!==null&&ud(n),e.blockedOn=o,!1;n.shift()}return!0}function pd(e,n,o){nl(e)&&o.delete(n)}function Th(){xu=!1,Xn!==null&&nl(Xn)&&(Xn=null),Kn!==null&&nl(Kn)&&(Kn=null),Jn!==null&&nl(Jn)&&(Jn=null),Pi.forEach(pd),Yi.forEach(pd)}function rl(e,n){e.blockedOn===n&&(e.blockedOn=null,xu||(xu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Th)))}var il=null;function hd(e){il!==e&&(il=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){il===e&&(il=null);for(var n=0;n<e.length;n+=3){var o=e[n],s=e[n+1],p=e[n+2];if(typeof s!="function"){if(yu(s||o)===null)continue;break}var y=Sr(o);y!==null&&(e.splice(n,3),n-=3,go(y,{pending:!0,data:p,method:o.method,action:s},s,p))}}))}function ni(e){function n(M){return rl(M,e)}Xn!==null&&rl(Xn,e),Kn!==null&&rl(Kn,e),Jn!==null&&rl(Jn,e),Pi.forEach(n),Yi.forEach(n);for(var o=0;o<Wn.length;o++){var s=Wn[o];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Wn.length&&(o=Wn[0],o.blockedOn===null);)dd(o),o.blockedOn===null&&Wn.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(s=0;s<o.length;s+=3){var p=o[s],y=o[s+1],w=p[Rt]||null;if(typeof y=="function")w||hd(o);else if(w){var _=null;if(y&&y.hasAttribute("formAction")){if(p=y,w=y[Rt]||null)_=w.formAction;else if(yu(p)!==null)continue}else _=w.action;typeof _=="function"?o[s+1]=_:(o.splice(s,3),s-=3),hd(o)}}}function md(){function e(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(w){return p=w})},focusReset:"manual",scroll:"manual"})}function n(){p!==null&&(p(),p=null),s||setTimeout(o,20)}function o(){if(!s&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,p=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(o,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),p!==null&&(p(),p=null)}}}function bu(e){this._internalRoot=e}al.prototype.render=bu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(u(409));var o=n.current,s=Ft();ld(o,s,e,n,null,null)},al.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;ld(e.current,2,null,e,null,null),Ua(),n[br]=null}};function al(e){this._internalRoot=e}al.prototype.unstable_scheduleHydration=function(e){if(e){var n=wu();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Wn.length&&n!==0&&n<Wn[o].priority;o++);Wn.splice(o,0,e),o===0&&dd(e)}};var gd=a.version;if(gd!=="19.2.4")throw Error(u(527,gd,"19.2.4"));de.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(n),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var _h={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ll.isDisabled&&ll.supportsFiber)try{T=ll.inject(_h),R=ll}catch{}}return reactDomClient_production.createRoot=function(e,n){if(!c(e))throw Error(u(299));var o=!1,s="",p=Ec,y=kc,w=wc;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(p=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(w=n.onRecoverableError)),n=id(e,1,!1,null,null,o,s,null,p,y,w,md),e[br]=n.current,eu(e),new bu(n)},reactDomClient_production.hydrateRoot=function(e,n,o){if(!c(e))throw Error(u(299));var s=!1,p="",y=Ec,w=kc,_=wc,M=null;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(_=o.onRecoverableError),o.formState!==void 0&&(M=o.formState)),n=id(e,1,!0,n,o??null,s,p,M,y,w,_,md),n.context=ad(null),o=n.current,s=Ft(),s=ul(s),p=Bn(s),p.callback=null,Un(o,p,s),o=s,n.current.lanes=o,ii(n,o),dn(n),e[br]=n.current,eu(e),new al(n)},reactDomClient_production.version="19.2.4",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient();class ClappTransport{constructor(a){Vt(this,"serverUrl");Vt(this,"wsUrl");Vt(this,"context");Vt(this,"token");Vt(this,"ws",null);Vt(this,"connected",!1);Vt(this,"reconnectTimer",null);Vt(this,"reconnectDelay",1e3);Vt(this,"stateListeners",new Set);Vt(this,"appsListeners",new Set);Vt(this,"viewListeners",new Set);Vt(this,"connectionListeners",new Set);this.serverUrl=a.serverUrl.replace(/\/$/,""),this.context=a.context,this.token=a.token;const l=new URL(this.serverUrl);l.protocol=l.protocol==="https:"?"wss:":"ws:",l.pathname="/ws",this.token&&l.searchParams.set("token",this.token),this.wsUrl=l.toString()}connect(){this.ws||this.createWebSocket()}disconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(),this.ws=null),this.setConnected(!1)}subscribe(a){this.wsSend({type:"subscribe",clappIds:a})}onState(a){return this.stateListeners.add(a),()=>this.stateListeners.delete(a)}onApps(a){return this.appsListeners.add(a),()=>this.appsListeners.delete(a)}onView(a){return this.viewListeners.add(a),()=>this.viewListeners.delete(a)}onConnection(a){return this.connectionListeners.add(a),()=>this.connectionListeners.delete(a)}isConnected(){return this.connected}async sendIntent(a,l,u={}){var d;if(this.connected&&((d=this.ws)==null?void 0:d.readyState)===WebSocket.OPEN){this.wsSend({type:"intent",clappId:a,intent:l,payload:u});return}const c={id:crypto.randomUUID(),agentId:"local",clappId:a,intent:l,payload:u,timestamp:new Date().toISOString()},f=await fetch(`${this.serverUrl}/api/intent`,{method:"POST",headers:{"Content-Type":"application/json",...this.authHeaders()},body:JSON.stringify(c)});if(!f.ok)throw new Error(`Failed to send intent: ${f.status}`)}async fetchApps(){const a=await fetch(`${this.serverUrl}/api/apps`,{headers:this.authHeaders()});if(!a.ok)throw new Error(`Failed to fetch apps: ${a.status}`);return a.json()}async fetchState(a){const l=await fetch(`${this.serverUrl}/api/state/${a}`,{headers:this.authHeaders()});if(l.status===404)return null;if(!l.ok)throw new Error(`Failed to fetch state: ${l.status}`);return l.json()}async fetchView(a){const l=await fetch(`${this.serverUrl}/api/views/${a}`,{headers:this.authHeaders()});if(l.status===404)return null;if(!l.ok)throw new Error(`Failed to fetch view: ${l.status}`);return l.text()}authHeaders(){return this.token?{Authorization:`Bearer ${this.token}`}:{}}createWebSocket(){try{this.ws=new WebSocket(this.wsUrl)}catch{this.scheduleReconnect();return}this.ws.onopen=()=>{this.reconnectDelay=1e3,this.setConnected(!0),this.context&&this.wsSend({type:"hello",context:this.context})},this.ws.onmessage=a=>{try{const l=JSON.parse(String(a.data));this.handleMessage(l)}catch{}},this.ws.onclose=()=>{this.ws=null,this.setConnected(!1),this.scheduleReconnect()},this.ws.onerror=()=>{}}handleMessage(a){switch(a.type){case"state":{const l=a.clappId,u=a.state;for(const c of this.stateListeners)c(l,u);break}case"apps":{const l=a.apps;for(const u of this.appsListeners)u(l);break}case"view":{const l=a.viewId,u=a.content;for(const c of this.viewListeners)c(l,u);break}}}wsSend(a){var l;((l=this.ws)==null?void 0:l.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(a))}setConnected(a){if(this.connected!==a){this.connected=a;for(const l of this.connectionListeners)l(a)}}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.createWebSocket()},this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*1.5,1e4))}}function setRef(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function composeRefs(...t){return a=>{let l=!1;const u=t.map(c=>{const f=setRef(c,a);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<u.length;c++){const f=u[c];typeof f=="function"?f():setRef(t[c],null)}}}}var REACT_LAZY_TYPE=Symbol.for("react.lazy"),use=React$1[" use ".trim().toString()];function isPromiseLike(t){return typeof t=="object"&&t!==null&&"then"in t}function isLazyComponent(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===REACT_LAZY_TYPE&&"_payload"in t&&isPromiseLike(t._payload)}function createSlot(t){const a=createSlotClone(t),l=reactExports.forwardRef((u,c)=>{let{children:f,...d}=u;isLazyComponent(f)&&typeof use=="function"&&(f=use(f._payload));const g=reactExports.Children.toArray(f),h=g.find(isSlottable);if(h){const m=h.props.children,x=g.map(S=>S===h?reactExports.Children.count(m)>1?reactExports.Children.only(null):reactExports.isValidElement(m)?m.props.children:null:S);return jsxRuntimeExports.jsx(a,{...d,ref:c,children:reactExports.isValidElement(m)?reactExports.cloneElement(m,void 0,x):null})}return jsxRuntimeExports.jsx(a,{...d,ref:c,children:f})});return l.displayName=`${t}.Slot`,l}var Slot=createSlot("Slot");function createSlotClone(t){const a=reactExports.forwardRef((l,u)=>{let{children:c,...f}=l;if(isLazyComponent(c)&&typeof use=="function"&&(c=use(c._payload)),reactExports.isValidElement(c)){const d=getElementRef(c),g=mergeProps(f,c.props);return c.type!==reactExports.Fragment&&(g.ref=u?composeRefs(u,d):d),reactExports.cloneElement(c,g)}return reactExports.Children.count(c)>1?reactExports.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var SLOTTABLE_IDENTIFIER=Symbol("radix.slottable");function isSlottable(t){return reactExports.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===SLOTTABLE_IDENTIFIER}function mergeProps(t,a){const l={...a};for(const u in a){const c=t[u],f=a[u];/^on[A-Z]/.test(u)?c&&f?l[u]=(...g)=>{const h=f(...g);return c(...g),h}:c&&(l[u]=c):u==="style"?l[u]={...c,...f}:u==="className"&&(l[u]=[c,f].filter(Boolean).join(" "))}return{...t,...l}}function getElementRef(t){var u,c;let a=(u=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:u.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?t.ref:(a=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?t.props.ref:t.props.ref||t.ref)}function r(t){var a,l,u="";if(typeof t=="string"||typeof t=="number")u+=t;else if(typeof t=="object")if(Array.isArray(t)){var c=t.length;for(a=0;a<c;a++)t[a]&&(l=r(t[a]))&&(u&&(u+=" "),u+=l)}else for(l in t)t[l]&&(u&&(u+=" "),u+=l);return u}function clsx(){for(var t,a,l=0,u="",c=arguments.length;l<c;l++)(t=arguments[l])&&(a=r(t))&&(u&&(u+=" "),u+=a);return u}const falsyToString=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,cx=clsx,cva=(t,a)=>l=>{var u;if((a==null?void 0:a.variants)==null)return cx(t,l==null?void 0:l.class,l==null?void 0:l.className);const{variants:c,defaultVariants:f}=a,d=Object.keys(c).map(m=>{const x=l==null?void 0:l[m],S=f==null?void 0:f[m];if(x===null)return null;const A=falsyToString(x)||falsyToString(S);return c[m][A]}),g=l&&Object.entries(l).reduce((m,x)=>{let[S,A]=x;return A===void 0||(m[S]=A),m},{}),h=a==null||(u=a.compoundVariants)===null||u===void 0?void 0:u.reduce((m,x)=>{let{class:S,className:A,...C}=x;return Object.entries(C).every(O=>{let[Z,P]=O;return Array.isArray(P)?P.includes({...f,...g}[Z]):{...f,...g}[Z]===P})?[...m,S,A]:m},[]);return cx(t,d,h,l==null?void 0:l.class,l==null?void 0:l.className)},concatArrays=(t,a)=>{const l=new Array(t.length+a.length);for(let u=0;u<t.length;u++)l[u]=t[u];for(let u=0;u<a.length;u++)l[t.length+u]=a[u];return l},createClassValidatorObject=(t,a)=>({classGroupId:t,validator:a}),createClassPartObject=(t=new Map,a=null,l)=>({nextPart:t,validators:a,classGroupId:l}),CLASS_PART_SEPARATOR="-",EMPTY_CONFLICTS=[],ARBITRARY_PROPERTY_PREFIX="arbitrary..",createClassGroupUtils=t=>{const a=createClassMap(t),{conflictingClassGroups:l,conflictingClassGroupModifiers:u}=t;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return getGroupIdForArbitraryProperty(d);const g=d.split(CLASS_PART_SEPARATOR),h=g[0]===""&&g.length>1?1:0;return getGroupRecursive(g,h,a)},getConflictingClassGroupIds:(d,g)=>{if(g){const h=u[d],m=l[d];return h?m?concatArrays(m,h):h:m||EMPTY_CONFLICTS}return l[d]||EMPTY_CONFLICTS}}},getGroupRecursive=(t,a,l)=>{if(t.length-a===0)return l.classGroupId;const c=t[a],f=l.nextPart.get(c);if(f){const m=getGroupRecursive(t,a+1,f);if(m)return m}const d=l.validators;if(d===null)return;const g=a===0?t.join(CLASS_PART_SEPARATOR):t.slice(a).join(CLASS_PART_SEPARATOR),h=d.length;for(let m=0;m<h;m++){const x=d[m];if(x.validator(g))return x.classGroupId}},getGroupIdForArbitraryProperty=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=t.slice(1,-1),l=a.indexOf(":"),u=a.slice(0,l);return u?ARBITRARY_PROPERTY_PREFIX+u:void 0})(),createClassMap=t=>{const{theme:a,classGroups:l}=t;return processClassGroups(l,a)},processClassGroups=(t,a)=>{const l=createClassPartObject();for(const u in t){const c=t[u];processClassesRecursively(c,l,u,a)}return l},processClassesRecursively=(t,a,l,u)=>{const c=t.length;for(let f=0;f<c;f++){const d=t[f];processClassDefinition(d,a,l,u)}},processClassDefinition=(t,a,l,u)=>{if(typeof t=="string"){processStringDefinition(t,a,l);return}if(typeof t=="function"){processFunctionDefinition(t,a,l,u);return}processObjectDefinition(t,a,l,u)},processStringDefinition=(t,a,l)=>{const u=t===""?a:getPart(a,t);u.classGroupId=l},processFunctionDefinition=(t,a,l,u)=>{if(isThemeGetter(t)){processClassesRecursively(t(u),a,l,u);return}a.validators===null&&(a.validators=[]),a.validators.push(createClassValidatorObject(l,t))},processObjectDefinition=(t,a,l,u)=>{const c=Object.entries(t),f=c.length;for(let d=0;d<f;d++){const[g,h]=c[d];processClassesRecursively(h,getPart(a,g),l,u)}},getPart=(t,a)=>{let l=t;const u=a.split(CLASS_PART_SEPARATOR),c=u.length;for(let f=0;f<c;f++){const d=u[f];let g=l.nextPart.get(d);g||(g=createClassPartObject(),l.nextPart.set(d,g)),l=g}return l},isThemeGetter=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,createLruCache=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,l=Object.create(null),u=Object.create(null);const c=(f,d)=>{l[f]=d,a++,a>t&&(a=0,u=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=u[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",EMPTY_MODIFIERS=[],createResultObject=(t,a,l,u,c)=>({modifiers:t,hasImportantModifier:a,baseClassName:l,maybePostfixModifierPosition:u,isExternal:c}),createParseClassName=t=>{const{prefix:a,experimentalParseClassName:l}=t;let u=c=>{const f=[];let d=0,g=0,h=0,m;const x=c.length;for(let Z=0;Z<x;Z++){const P=c[Z];if(d===0&&g===0){if(P===MODIFIER_SEPARATOR){f.push(c.slice(h,Z)),h=Z+1;continue}if(P==="/"){m=Z;continue}}P==="["?d++:P==="]"?d--:P==="("?g++:P===")"&&g--}const S=f.length===0?c:c.slice(h);let A=S,C=!1;S.endsWith(IMPORTANT_MODIFIER)?(A=S.slice(0,-1),C=!0):S.startsWith(IMPORTANT_MODIFIER)&&(A=S.slice(1),C=!0);const O=m&&m>h?m-h:void 0;return createResultObject(f,C,A,O)};if(a){const c=a+MODIFIER_SEPARATOR,f=u;u=d=>d.startsWith(c)?f(d.slice(c.length)):createResultObject(EMPTY_MODIFIERS,!1,d,void 0,!0)}if(l){const c=u;u=f=>l({className:f,parseClassName:c})}return u},createSortModifiers=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((l,u)=>{a.set(l,1e6+u)}),l=>{const u=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],g=d[0]==="[",h=a.has(d);g||h?(c.length>0&&(c.sort(),u.push(...c),c=[]),u.push(d)):c.push(d)}return c.length>0&&(c.sort(),u.push(...c)),u}},createConfigUtils=t=>({cache:createLruCache(t.cacheSize),parseClassName:createParseClassName(t),sortModifiers:createSortModifiers(t),...createClassGroupUtils(t)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(t,a)=>{const{parseClassName:l,getClassGroupId:u,getConflictingClassGroupIds:c,sortModifiers:f}=a,d=[],g=t.trim().split(SPLIT_CLASSES_REGEX);let h="";for(let m=g.length-1;m>=0;m-=1){const x=g[m],{isExternal:S,modifiers:A,hasImportantModifier:C,baseClassName:O,maybePostfixModifierPosition:Z}=l(x);if(S){h=x+(h.length>0?" "+h:h);continue}let P=!!Z,q=u(P?O.substring(0,Z):O);if(!q){if(!P){h=x+(h.length>0?" "+h:h);continue}if(q=u(O),!q){h=x+(h.length>0?" "+h:h);continue}P=!1}const ne=A.length===0?"":A.length===1?A[0]:f(A).join(":"),Y=C?ne+IMPORTANT_MODIFIER:ne,pe=Y+q;if(d.indexOf(pe)>-1)continue;d.push(pe);const ye=c(q,P);for(let Q=0;Q<ye.length;++Q){const be=ye[Q];d.push(Y+be)}h=x+(h.length>0?" "+h:h)}return h},twJoin=(...t)=>{let a=0,l,u,c="";for(;a<t.length;)(l=t[a++])&&(u=toValue(l))&&(c&&(c+=" "),c+=u);return c},toValue=t=>{if(typeof t=="string")return t;let a,l="";for(let u=0;u<t.length;u++)t[u]&&(a=toValue(t[u]))&&(l&&(l+=" "),l+=a);return l},createTailwindMerge=(t,...a)=>{let l,u,c,f;const d=h=>{const m=a.reduce((x,S)=>S(x),t());return l=createConfigUtils(m),u=l.cache.get,c=l.cache.set,f=g,g(h)},g=h=>{const m=u(h);if(m)return m;const x=mergeClassList(h,l);return c(h,x),x};return f=d,(...h)=>f(twJoin(...h))},fallbackThemeArr=[],fromTheme=t=>{const a=l=>l[t]||fallbackThemeArr;return a.isThemeGetter=!0,a},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=t=>fractionRegex.test(t),isNumber=t=>!!t&&!Number.isNaN(Number(t)),isInteger=t=>!!t&&Number.isInteger(Number(t)),isPercent=t=>t.endsWith("%")&&isNumber(t.slice(0,-1)),isTshirtSize=t=>tshirtUnitRegex.test(t),isAny=()=>!0,isLengthOnly=t=>lengthUnitRegex.test(t)&&!colorFunctionRegex.test(t),isNever=()=>!1,isShadow=t=>shadowRegex.test(t),isImage=t=>imageRegex.test(t),isAnyNonArbitrary=t=>!isArbitraryValue(t)&&!isArbitraryVariable(t),isArbitrarySize=t=>getIsArbitraryValue(t,isLabelSize,isNever),isArbitraryValue=t=>arbitraryValueRegex.test(t),isArbitraryLength=t=>getIsArbitraryValue(t,isLabelLength,isLengthOnly),isArbitraryNumber=t=>getIsArbitraryValue(t,isLabelNumber,isNumber),isArbitraryWeight=t=>getIsArbitraryValue(t,isLabelWeight,isAny),isArbitraryFamilyName=t=>getIsArbitraryValue(t,isLabelFamilyName,isNever),isArbitraryPosition=t=>getIsArbitraryValue(t,isLabelPosition,isNever),isArbitraryImage=t=>getIsArbitraryValue(t,isLabelImage,isImage),isArbitraryShadow=t=>getIsArbitraryValue(t,isLabelShadow,isShadow),isArbitraryVariable=t=>arbitraryVariableRegex.test(t),isArbitraryVariableLength=t=>getIsArbitraryVariable(t,isLabelLength),isArbitraryVariableFamilyName=t=>getIsArbitraryVariable(t,isLabelFamilyName),isArbitraryVariablePosition=t=>getIsArbitraryVariable(t,isLabelPosition),isArbitraryVariableSize=t=>getIsArbitraryVariable(t,isLabelSize),isArbitraryVariableImage=t=>getIsArbitraryVariable(t,isLabelImage),isArbitraryVariableShadow=t=>getIsArbitraryVariable(t,isLabelShadow,!0),isArbitraryVariableWeight=t=>getIsArbitraryVariable(t,isLabelWeight,!0),getIsArbitraryValue=(t,a,l)=>{const u=arbitraryValueRegex.exec(t);return u?u[1]?a(u[1]):l(u[2]):!1},getIsArbitraryVariable=(t,a,l=!1)=>{const u=arbitraryVariableRegex.exec(t);return u?u[1]?a(u[1]):l:!1},isLabelPosition=t=>t==="position"||t==="percentage",isLabelImage=t=>t==="image"||t==="url",isLabelSize=t=>t==="length"||t==="size"||t==="bg-size",isLabelLength=t=>t==="length",isLabelNumber=t=>t==="number",isLabelFamilyName=t=>t==="family-name",isLabelWeight=t=>t==="number"||t==="weight",isLabelShadow=t=>t==="shadow",getDefaultConfig=()=>{const t=fromTheme("color"),a=fromTheme("font"),l=fromTheme("text"),u=fromTheme("font-weight"),c=fromTheme("tracking"),f=fromTheme("leading"),d=fromTheme("breakpoint"),g=fromTheme("container"),h=fromTheme("spacing"),m=fromTheme("radius"),x=fromTheme("shadow"),S=fromTheme("inset-shadow"),A=fromTheme("text-shadow"),C=fromTheme("drop-shadow"),O=fromTheme("blur"),Z=fromTheme("perspective"),P=fromTheme("aspect"),q=fromTheme("ease"),ne=fromTheme("animate"),Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],pe=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ye=()=>[...pe(),isArbitraryVariable,isArbitraryValue],Q=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto","contain","none"],ue=()=>[isArbitraryVariable,isArbitraryValue,h],ke=()=>[isFraction,"full","auto",...ue()],F=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],ve=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],ee=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],Ae=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...ue()],de=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ue()],oe=()=>[isFraction,"screen","full","dvw","lvw","svw","min","max","fit",...ue()],Ne=()=>[isFraction,"screen","full","lh","dvh","lvh","svh","min","max","fit",...ue()],N=()=>[t,isArbitraryVariable,isArbitraryValue],I=()=>[...pe(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],ie=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],ge=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],me=()=>["","none","full",m,isArbitraryVariable,isArbitraryValue],Se=()=>["",isNumber,isArbitraryVariableLength,isArbitraryLength],Oe=()=>["solid","dashed","dotted","double"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Re=()=>[isNumber,isPercent,isArbitraryVariablePosition,isArbitraryPosition],nt=()=>["","none",O,isArbitraryVariable,isArbitraryValue],Ke=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],at=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],kt=()=>[isNumber,isArbitraryVariable,isArbitraryValue],st=()=>[isFraction,"full",...ue()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,P]}],container:["container"],columns:[{columns:[isNumber,isArbitraryValue,isArbitraryVariable,g]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ye()}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:be()}],"overscroll-x":[{"overscroll-x":be()}],"overscroll-y":[{"overscroll-y":be()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ke()}],"inset-x":[{"inset-x":ke()}],"inset-y":[{"inset-y":ke()}],start:[{"inset-s":ke(),start:ke()}],end:[{"inset-e":ke(),end:ke()}],"inset-bs":[{"inset-bs":ke()}],"inset-be":[{"inset-be":ke()}],top:[{top:ke()}],right:[{right:ke()}],bottom:[{bottom:ke()}],left:[{left:ke()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",g,...ue()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:ve()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:ve()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ae()}],"auto-rows":[{"auto-rows":Ae()}],gap:[{gap:ue()}],"gap-x":[{"gap-x":ue()}],"gap-y":[{"gap-y":ue()}],"justify-content":[{justify:[...xe(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...xe()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":xe()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:ue()}],px:[{px:ue()}],py:[{py:ue()}],ps:[{ps:ue()}],pe:[{pe:ue()}],pbs:[{pbs:ue()}],pbe:[{pbe:ue()}],pt:[{pt:ue()}],pr:[{pr:ue()}],pb:[{pb:ue()}],pl:[{pl:ue()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":ue()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ue()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...Ne()]}],"min-block-size":[{"min-block":["auto",...Ne()]}],"max-block-size":[{"max-block":["none",...Ne()]}],w:[{w:[g,"screen",...de()]}],"min-w":[{"min-w":[g,"screen","none",...de()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[d]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",l,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,isArbitraryVariableWeight,isArbitraryWeight]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryFamilyName,a]}],"font-features":[{"font-features":[isArbitraryValue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[f,...ue()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[isNumber,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ue()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-bs":[{"border-bs":Se()}],"border-w-be":[{"border-be":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Oe(),"hidden","none"]}],"divide-style":[{divide:[...Oe(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...Oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",x,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",S,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[isNumber,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",A,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[isNumber,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[isNumber]}],"mask-image-linear-from-pos":[{"mask-linear-from":Re()}],"mask-image-linear-to-pos":[{"mask-linear-to":Re()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":Re()}],"mask-image-t-to-pos":[{"mask-t-to":Re()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":Re()}],"mask-image-r-to-pos":[{"mask-r-to":Re()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":Re()}],"mask-image-b-to-pos":[{"mask-b-to":Re()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":Re()}],"mask-image-l-to-pos":[{"mask-l-to":Re()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":Re()}],"mask-image-x-to-pos":[{"mask-x-to":Re()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":Re()}],"mask-image-y-to-pos":[{"mask-y-to":Re()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":Re()}],"mask-image-radial-to-pos":[{"mask-radial-to":Re()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":pe()}],"mask-image-conic-pos":[{"mask-conic":[isNumber]}],"mask-image-conic-from-pos":[{"mask-conic-from":Re()}],"mask-image-conic-to-pos":[{"mask-conic-to":Re()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:nt()}],brightness:[{brightness:[isNumber,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",C,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",isNumber,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":nt()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ue()}],"border-spacing-x":[{"border-spacing-x":ue()}],"border-spacing-y":[{"border-spacing-y":ue()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",q,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",ne,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[Z,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":ye()}],rotate:[{rotate:Ke()}],"rotate-x":[{"rotate-x":Ke()}],"rotate-y":[{"rotate-y":Ke()}],"rotate-z":[{"rotate-z":Ke()}],scale:[{scale:at()}],"scale-x":[{"scale-x":at()}],"scale-y":[{"scale-y":at()}],"scale-z":[{"scale-z":at()}],"scale-3d":["scale-3d"],skew:[{skew:kt()}],"skew-x":[{"skew-x":kt()}],"skew-y":[{"skew-y":kt()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:ye()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ue()}],"scroll-mx":[{"scroll-mx":ue()}],"scroll-my":[{"scroll-my":ue()}],"scroll-ms":[{"scroll-ms":ue()}],"scroll-me":[{"scroll-me":ue()}],"scroll-mbs":[{"scroll-mbs":ue()}],"scroll-mbe":[{"scroll-mbe":ue()}],"scroll-mt":[{"scroll-mt":ue()}],"scroll-mr":[{"scroll-mr":ue()}],"scroll-mb":[{"scroll-mb":ue()}],"scroll-ml":[{"scroll-ml":ue()}],"scroll-p":[{"scroll-p":ue()}],"scroll-px":[{"scroll-px":ue()}],"scroll-py":[{"scroll-py":ue()}],"scroll-ps":[{"scroll-ps":ue()}],"scroll-pe":[{"scroll-pe":ue()}],"scroll-pbs":[{"scroll-pbs":ue()}],"scroll-pbe":[{"scroll-pbe":ue()}],"scroll-pt":[{"scroll-pt":ue()}],"scroll-pr":[{"scroll-pr":ue()}],"scroll-pb":[{"scroll-pb":ue()}],"scroll-pl":[{"scroll-pl":ue()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[isNumber,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},twMerge=createTailwindMerge(getDefaultConfig);function cn(...t){return twMerge(clsx(t))}const buttonVariants=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Button=reactExports.forwardRef(({className:t,variant:a,size:l,asChild:u=!1,...c},f)=>{const d=u?Slot:"button";return jsxRuntimeExports.jsx(d,{className:cn(buttonVariants({variant:a,size:l,className:t})),ref:f,...c})});Button.displayName="Button";/**
|
|
34
34
|
* @license lucide-react v0.576.0 - ISC
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the ISC license.
|
|
@@ -65,7 +65,7 @@ Error generating stack: `+s.message+`
|
|
|
65
65
|
*
|
|
66
66
|
* This source code is licensed under the ISC license.
|
|
67
67
|
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/const Icon$1=reactExports.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:u,className:c="",children:f,iconNode:d,...g},
|
|
68
|
+
*/const Icon$1=reactExports.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:u,className:c="",children:f,iconNode:d,...g},h)=>reactExports.createElement("svg",{ref:h,...defaultAttributes,width:a,height:a,stroke:t,strokeWidth:u?Number(l)*24/Number(a):l,className:mergeClasses("lucide",c),...!f&&!hasA11yProp(g)&&{"aria-hidden":"true"},...g},[...d.map(([m,x])=>reactExports.createElement(m,x)),...Array.isArray(f)?f:[f]]));/**
|
|
69
69
|
* @license lucide-react v0.576.0 - ISC
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the ISC license.
|
|
@@ -75,103 +75,133 @@ Error generating stack: `+s.message+`
|
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the ISC license.
|
|
77
77
|
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/const __iconNode$
|
|
78
|
+
*/const __iconNode$h=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Bot=createLucideIcon("bot",__iconNode$h);/**
|
|
79
79
|
* @license lucide-react v0.576.0 - ISC
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the ISC license.
|
|
82
82
|
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const __iconNode$
|
|
83
|
+
*/const __iconNode$g=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Check=createLucideIcon("check",__iconNode$g);/**
|
|
84
84
|
* @license lucide-react v0.576.0 - ISC
|
|
85
85
|
*
|
|
86
86
|
* This source code is licensed under the ISC license.
|
|
87
87
|
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const __iconNode$
|
|
88
|
+
*/const __iconNode$f=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ChevronDown=createLucideIcon("chevron-down",__iconNode$f);/**
|
|
89
89
|
* @license lucide-react v0.576.0 - ISC
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the ISC license.
|
|
92
92
|
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const __iconNode$
|
|
93
|
+
*/const __iconNode$e=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ExternalLink=createLucideIcon("external-link",__iconNode$e);/**
|
|
94
94
|
* @license lucide-react v0.576.0 - ISC
|
|
95
95
|
*
|
|
96
96
|
* This source code is licensed under the ISC license.
|
|
97
97
|
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/const __iconNode$
|
|
98
|
+
*/const __iconNode$d=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],EyeOff=createLucideIcon("eye-off",__iconNode$d);/**
|
|
99
99
|
* @license lucide-react v0.576.0 - ISC
|
|
100
100
|
*
|
|
101
101
|
* This source code is licensed under the ISC license.
|
|
102
102
|
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/const __iconNode$
|
|
103
|
+
*/const __iconNode$c=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Eye=createLucideIcon("eye",__iconNode$c);/**
|
|
104
104
|
* @license lucide-react v0.576.0 - ISC
|
|
105
105
|
*
|
|
106
106
|
* This source code is licensed under the ISC license.
|
|
107
107
|
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const __iconNode$
|
|
108
|
+
*/const __iconNode$b=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LoaderCircle=createLucideIcon("loader-circle",__iconNode$b);/**
|
|
109
109
|
* @license lucide-react v0.576.0 - ISC
|
|
110
110
|
*
|
|
111
111
|
* This source code is licensed under the ISC license.
|
|
112
112
|
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const __iconNode$
|
|
113
|
+
*/const __iconNode$a=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Menu=createLucideIcon("menu",__iconNode$a);/**
|
|
114
114
|
* @license lucide-react v0.576.0 - ISC
|
|
115
115
|
*
|
|
116
116
|
* This source code is licensed under the ISC license.
|
|
117
117
|
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/const __iconNode$
|
|
118
|
+
*/const __iconNode$9=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],MessageSquare=createLucideIcon("message-square",__iconNode$9);/**
|
|
119
119
|
* @license lucide-react v0.576.0 - ISC
|
|
120
120
|
*
|
|
121
121
|
* This source code is licensed under the ISC license.
|
|
122
122
|
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const __iconNode$
|
|
123
|
+
*/const __iconNode$8=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Pencil=createLucideIcon("pencil",__iconNode$8);/**
|
|
124
124
|
* @license lucide-react v0.576.0 - ISC
|
|
125
125
|
*
|
|
126
126
|
* This source code is licensed under the ISC license.
|
|
127
127
|
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/const __iconNode$
|
|
128
|
+
*/const __iconNode$7=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Plus=createLucideIcon("plus",__iconNode$7);/**
|
|
129
129
|
* @license lucide-react v0.576.0 - ISC
|
|
130
130
|
*
|
|
131
131
|
* This source code is licensed under the ISC license.
|
|
132
132
|
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/const __iconNode=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],X=createLucideIcon("x",__iconNode);function HomeScreen({apps:t,transport:a,onOpenApp:l}){const[u,c]=reactExports.useState(null),[f,d]=reactExports.useState(!1);reactExports.useEffect(()=>(a.fetchState("_status").then(h=>{h!=null&&h.state&&c(h.state)}).catch(()=>{}),a.onState((h,x)=>{h==="_status"&&x.state&&c(x.state)})),[a]);const g=(u==null?void 0:u.setupRequired)&&!f;return jsxRuntimeExports.jsxs("div",{className:"flex flex-col h-full",children:[g&&jsxRuntimeExports.jsx(SetupWarningBanner,{message:u.message,onDismiss:()=>d(!0)}),jsxRuntimeExports.jsx(DefaultHomeGrid,{apps:t,onOpenApp:l})]})}function SetupWarningBanner({message:t,onDismiss:a}){return jsxRuntimeExports.jsxs("div",{className:"m-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg text-sm flex gap-3 items-start",children:[jsxRuntimeExports.jsx("span",{className:"shrink-0 text-base",children:"⚠️"}),jsxRuntimeExports.jsx("span",{className:"flex-1 whitespace-pre-line",children:t}),jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0",onClick:a,"aria-label":"Dismiss",children:jsxRuntimeExports.jsx(X,{className:"h-4 w-4"})})]})}function DefaultHomeGrid({apps:t,onOpenApp:a}){return t.length===0?jsxRuntimeExports.jsx("div",{className:"flex-1 flex items-center justify-center",children:jsxRuntimeExports.jsx("p",{className:"text-muted-foreground text-sm",children:"No apps registered yet."})}):jsxRuntimeExports.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:jsxRuntimeExports.jsx("div",{className:"grid grid-cols-4 gap-6 justify-center",children:t.map(l=>jsxRuntimeExports.jsxs("button",{onClick:()=>a(l.id),className:"flex flex-col items-center gap-1.5 bg-transparent border-none cursor-pointer text-foreground p-0 font-inherit group",children:[jsxRuntimeExports.jsx("div",{className:"w-[60px] h-[60px] rounded-2xl bg-gradient-to-br from-card to-accent/20 border border-border flex items-center justify-center text-[1.75rem] transition-transform group-hover:scale-105",children:l.emoji}),jsxRuntimeExports.jsx("span",{className:"text-[0.6875rem] text-center leading-tight max-w-[76px] line-clamp-2",children:l.name})]},l.id))})})}const createStoreImpl=t=>{let a;const l=new Set,u=(h,x)=>{const S=typeof h=="function"?h(a):h;if(!Object.is(S,a)){const A=a;a=x??(typeof S!="object"||S===null)?S:Object.assign({},a,S),l.forEach(C=>C(a,A))}},c=()=>a,g={setState:u,getState:c,getInitialState:()=>m,subscribe:h=>(l.add(h),()=>l.delete(h))},m=a=t(u,c,g);return g},createStore=(t=>t?createStoreImpl(t):createStoreImpl),identity=t=>t;function useStore(t,a=identity){const l=React.useSyncExternalStore(t.subscribe,React.useCallback(()=>a(t.getState()),[t,a]),React.useCallback(()=>a(t.getInitialState()),[t,a]));return React.useDebugValue(l),l}function createClappStore(){return createStore(t=>({state:{},version:-1,loading:!0,connected:!1,applyState:a=>t({state:a.state,version:a.version,loading:!1}),setConnected:a=>t({connected:a})}))}const ClappContext=reactExports.createContext(null);function ClappProvider({serverUrl:t,clappId:a,children:l,transport:u}){const c=reactExports.useRef(void 0),f=reactExports.useRef(void 0);return c.current||(c.current=createClappStore()),f.current||(f.current=u??new ClappTransport({serverUrl:t})),reactExports.useEffect(()=>{const d=c.current,g=f.current,m=g.onState((x,S)=>{x===a&&d.getState().applyState(S)}),h=g.onConnection(x=>{d.getState().setConnected(x)});return g.connect(),g.subscribe([a]),g.fetchState(a).then(x=>{x&&d.getState().applyState(x)}).catch(()=>{}),()=>{m(),h(),u||g.disconnect()}},[t,a,u]),jsxRuntimeExports.jsx(ClappContext.Provider,{value:{store:c.current,transport:f.current,clappId:a},children:l})}function useClappContext(){const t=reactExports.useContext(ClappContext);if(!t)throw new Error("useClappContext must be used within ClappProvider");return t}function useClappState(t){const{store:a}=useClappContext();return useStore(a,l=>{const u=t.split(".");let c=l.state;for(const f of u){if(c==null||typeof c!="object")return;c=c[f]}return c})}function useIntent(){const{transport:t,clappId:a}=useClappContext();return{emit:(l,u={})=>t.sendIntent(a,l,u)}}function ok$1(){}function unreachable(){}function stringify$2(t,a){const l={};return(t[t.length-1]===""?[...t,""]:t).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const nameRe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nameReJsx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,emptyOptions$3={};function name(t,a){return(emptyOptions$3.jsx?nameReJsx:nameRe).test(t)}const re=/[ \t\n\f\r]/g;function whitespace(t){return typeof t=="object"?t.type==="text"?empty$1(t.value):!1:empty$1(t)}function empty$1(t){return t.replace(re,"")===""}class Schema{constructor(a,l,u){this.normal=l,this.property=a,u&&(this.space=u)}}Schema.prototype.normal={};Schema.prototype.property={};Schema.prototype.space=void 0;function merge$1(t,a){const l={},u={};for(const c of t)Object.assign(l,c.property),Object.assign(u,c.normal);return new Schema(l,u,a)}function normalize$1(t){return t.toLowerCase()}class Info{constructor(a,l){this.attribute=l,this.property=a}}Info.prototype.attribute="";Info.prototype.booleanish=!1;Info.prototype.boolean=!1;Info.prototype.commaOrSpaceSeparated=!1;Info.prototype.commaSeparated=!1;Info.prototype.defined=!1;Info.prototype.mustUseProperty=!1;Info.prototype.number=!1;Info.prototype.overloadedBoolean=!1;Info.prototype.property="";Info.prototype.spaceSeparated=!1;Info.prototype.space=void 0;let powers=0;const boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const types=Object.freeze(Object.defineProperty({__proto__:null,boolean,booleanish,commaOrSpaceSeparated,commaSeparated,number,overloadedBoolean,spaceSeparated},Symbol.toStringTag,{value:"Module"})),checks=Object.keys(types);class DefinedInfo extends Info{constructor(a,l,u,c){let f=-1;if(super(a,l),mark$1(this,"space",c),typeof u=="number")for(;++f<checks.length;){const d=checks[f];mark$1(this,checks[f],(u&types[d])===types[d])}}}DefinedInfo.prototype.defined=!0;function mark$1(t,a,l){l&&(t[a]=l)}function create(t){const a={},l={};for(const[u,c]of Object.entries(t.properties)){const f=new DefinedInfo(u,t.transform(t.attributes||{},u),c,t.space);t.mustUseProperty&&t.mustUseProperty.includes(u)&&(f.mustUseProperty=!0),a[u]=f,l[normalize$1(u)]=u,l[normalize$1(f.attribute)]=u}return new Schema(a,l,t.space)}const aria=create({properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number,ariaColIndex:number,ariaColSpan:number,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number,ariaRowIndex:number,ariaRowSpan:number,ariaSelected:booleanish,ariaSetSize:number,ariaSort:null,ariaValueMax:number,ariaValueMin:number,ariaValueNow:number,ariaValueText:null,role:null},transform(t,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function caseSensitiveTransform(t,a){return a in t?t[a]:a}function caseInsensitiveTransform(t,a){return caseSensitiveTransform(t,a.toLowerCase())}const html$3=create({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:boolean,allowPaymentRequest:boolean,allowUserMedia:boolean,alt:null,as:null,async:boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:boolean,autoPlay:boolean,blocking:spaceSeparated,capture:null,charSet:null,checked:boolean,cite:null,className:spaceSeparated,cols:number,colSpan:null,content:null,contentEditable:booleanish,controls:boolean,controlsList:spaceSeparated,coords:number|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean,defer:boolean,dir:null,dirName:null,disabled:boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean,formTarget:null,headers:spaceSeparated,height:number,hidden:overloadedBoolean,high:number,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:boolean,inputMode:null,integrity:null,is:null,isMap:boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean,low:number,manifest:null,max:null,maxLength:number,media:null,method:null,min:null,minLength:number,multiple:boolean,muted:boolean,name:null,nonce:null,noModule:boolean,noValidate:boolean,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:boolean,optimum:number,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:boolean,referrerPolicy:null,rel:spaceSeparated,required:boolean,reversed:boolean,rows:number,rowSpan:number,sandbox:spaceSeparated,scope:null,scoped:boolean,seamless:boolean,selected:boolean,shadowRootClonable:boolean,shadowRootDelegatesFocus:boolean,shadowRootMode:null,shape:null,size:number,sizes:null,slot:null,span:number,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number,step:null,style:null,tabIndex:number,target:null,title:null,translate:null,type:null,typeMustMatch:boolean,useMap:null,value:booleanish,width:number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:spaceSeparated,axis:null,background:null,bgColor:null,border:number,borderColor:null,bottomMargin:number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:boolean,declare:boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:number,leftMargin:number,link:null,longDesc:null,lowSrc:null,marginHeight:number,marginWidth:number,noResize:boolean,noHref:boolean,noShade:boolean,noWrap:boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:number,rules:null,scheme:null,scrolling:booleanish,standby:null,summary:null,text:null,topMargin:number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean,disableRemotePlayback:boolean,prefix:null,property:null,results:number,security:null,unselectable:null},space:"html",transform:caseInsensitiveTransform}),svg$1=create({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:commaOrSpaceSeparated,accentHeight:number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number,amplitude:number,arabicForm:null,ascent:number,attributeName:null,attributeType:null,azimuth:number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number,by:null,calcMode:null,capHeight:number,className:spaceSeparated,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:number,diffuseConstant:number,direction:null,display:null,dur:null,divisor:number,dominantBaseline:null,download:boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number,enableBackground:null,end:null,event:null,exponent:number,externalResourcesRequired:null,fill:null,fillOpacity:number,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:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number,horizOriginX:number,horizOriginY:number,id:null,ideographic:number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number,k:number,k1:number,k2:number,k3:number,k4:number,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number,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:number,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:number,overlineThickness:number,paintOrder:null,panose1:null,path:null,pathLength:number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number,pointsAtY:number,pointsAtZ:number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,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:number,specularExponent:number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number,strikethroughThickness:number,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number,strokeOpacity:number,strokeWidth:null,style:null,surfaceScale:number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number,tableValues:null,target:null,targetX:number,targetY:number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number,underlineThickness:number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number,values:null,vAlphabetic:number,vMathematical:number,vectorEffect:null,vHanging:number,vIdeographic:number,version:null,vertAdvY:number,vertOriginX:number,vertOriginY:number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:caseSensitiveTransform}),xlink=create({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,a){return"xlink:"+a.slice(5).toLowerCase()}}),xmlns=create({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:caseInsensitiveTransform}),xml=create({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,a){return"xml:"+a.slice(3).toLowerCase()}}),hastToReact={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"},cap$1=/[A-Z]/g,dash=/-[a-z]/g,valid=/^data[-\w.:]+$/i;function find(t,a){const l=normalize$1(a);let u=a,c=Info;if(l in t.normal)return t.property[t.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&valid.test(a)){if(a.charAt(4)==="-"){const f=a.slice(5).replace(dash,camelcase);u="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=a.slice(4);if(!dash.test(f)){let d=f.replace(cap$1,kebab);d.charAt(0)!=="-"&&(d="-"+d),a="data"+d}}c=DefinedInfo}return new c(u,a)}function kebab(t){return"-"+t.toLowerCase()}function camelcase(t){return t.charAt(1).toUpperCase()}const html$2=merge$1([aria,html$3,xlink,xmlns,xml],"html"),svg=merge$1([aria,svg$1,xlink,xmlns,xml],"svg");function stringify$1(t){return t.join(" ").trim()}var cjs$2={},cjs$1,hasRequiredCjs$2;function requireCjs$2(){if(hasRequiredCjs$2)return cjs$1;hasRequiredCjs$2=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,l=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,c=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,g=/^\s+|\s+$/g,m=`
|
|
134
|
-
`,h="/",x="*",S="",A="comment",C="declaration";function O(P,q){if(typeof P!="string")throw new TypeError("First argument must be a string");if(!P)return[];q=q||{};var ie=1,K=1;function pe(xe){var he=xe.match(a);he&&(ie+=he.length);var H=xe.lastIndexOf(m);K=~H?xe.length-H:K+xe.length}function ye(){var xe={line:ie,column:K};return function(he){return he.position=new $(xe),ke(),he}}function $(xe){this.start=xe,this.end={line:ie,column:K},this.source=q.source}$.prototype.content=P;function be(xe){var he=new Error(q.source+":"+ie+":"+K+": "+xe);if(he.reason=xe,he.filename=q.source,he.line=ie,he.column=K,he.source=P,!q.silent)throw he}function ue(xe){var he=xe.exec(P);if(he){var H=he[0];return pe(H),P=P.slice(H.length),he}}function ke(){ue(l)}function Z(xe){var he;for(xe=xe||[];he=ve();)he!==!1&&xe.push(he);return xe}function ve(){var xe=ye();if(!(h!=P.charAt(0)||x!=P.charAt(1))){for(var he=2;S!=P.charAt(he)&&(x!=P.charAt(he)||h!=P.charAt(he+1));)++he;if(he+=2,S===P.charAt(he-1))return be("End of comment missing");var H=P.slice(2,he-2);return K+=2,pe(H),P=P.slice(he),K+=2,xe({type:A,comment:H})}}function ee(){var xe=ye(),he=ue(u);if(he){if(ve(),!ue(c))return be("property missing ':'");var H=ue(f),de=xe({type:C,property:F(he[0].replace(t,S)),value:H?F(H[0].replace(t,S)):S});return ue(d),de}}function Ae(){var xe=[];Z(xe);for(var he;he=ee();)he!==!1&&(xe.push(he),Z(xe));return xe}return ke(),Ae()}function F(P){return P?P.replace(g,S):S}return cjs$1=O,cjs$1}var hasRequiredCjs$1;function requireCjs$1(){if(hasRequiredCjs$1)return cjs$2;hasRequiredCjs$1=1;var t=cjs$2&&cjs$2.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(cjs$2,"__esModule",{value:!0}),cjs$2.default=l;const a=t(requireCjs$2());function l(u,c){let f=null;if(!u||typeof u!="string")return f;const d=(0,a.default)(u),g=typeof c=="function";return d.forEach(m=>{if(m.type!=="declaration")return;const{property:h,value:x}=m;g?c(h,x,m):x&&(f=f||{},f[h]=x)}),f}return cjs$2}var utilities={},hasRequiredUtilities;function requireUtilities(){if(hasRequiredUtilities)return utilities;hasRequiredUtilities=1,Object.defineProperty(utilities,"__esModule",{value:!0}),utilities.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,l=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,c=/^-(ms)-/,f=function(h){return!h||l.test(h)||t.test(h)},d=function(h,x){return x.toUpperCase()},g=function(h,x){return"".concat(x,"-")},m=function(h,x){return x===void 0&&(x={}),f(h)?h:(h=h.toLowerCase(),x.reactCompat?h=h.replace(c,g):h=h.replace(u,g),h.replace(a,d))};return utilities.camelCase=m,utilities}var cjs,hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var t=cjs&&cjs.__importDefault||function(c){return c&&c.__esModule?c:{default:c}},a=t(requireCjs$1()),l=requireUtilities();function u(c,f){var d={};return!c||typeof c!="string"||(0,a.default)(c,function(g,m){g&&m&&(d[(0,l.camelCase)(g,f)]=m)}),d}return u.default=u,cjs=u,cjs}var cjsExports=requireCjs();const styleToJs=getDefaultExportFromCjs$1(cjsExports),pointEnd=point$2("end"),pointStart=point$2("start");function point$2(t){return a;function a(l){const u=l&&l.position&&l.position[t]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function position$1(t){const a=pointStart(t),l=pointEnd(t);if(a&&l)return{start:a,end:l}}function stringifyPosition(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?position(t.position):"start"in t||"end"in t?position(t):"line"in t||"column"in t?point$1(t):""}function point$1(t){return index(t&&t.line)+":"+index(t&&t.column)}function position(t){return point$1(t&&t.start)+"-"+point$1(t&&t.end)}function index(t){return t&&typeof t=="number"?t:1}class VFileMessage extends Error{constructor(a,l,u){super(),typeof l=="string"&&(u=l,l=void 0);let c="",f={},d=!1;if(l&&("line"in l&&"column"in l?f={place:l}:"start"in l&&"end"in l?f={place:l}:"type"in l?f={ancestors:[l],place:l.position}:f={...l}),typeof a=="string"?c=a:!f.cause&&a&&(d=!0,c=a.message,f.cause=a),!f.ruleId&&!f.source&&typeof u=="string"){const m=u.indexOf(":");m===-1?f.ruleId=u:(f.source=u.slice(0,m),f.ruleId=u.slice(m+1))}if(!f.place&&f.ancestors&&f.ancestors){const m=f.ancestors[f.ancestors.length-1];m&&(f.place=m.position)}const g=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=c,this.line=g?g.line:void 0,this.name=stringifyPosition(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=d&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.column=void 0;VFileMessage.prototype.line=void 0;VFileMessage.prototype.ancestors=void 0;VFileMessage.prototype.cause=void 0;VFileMessage.prototype.fatal=void 0;VFileMessage.prototype.place=void 0;VFileMessage.prototype.ruleId=void 0;VFileMessage.prototype.source=void 0;const own$3={}.hasOwnProperty,emptyMap=new Map,cap=/[A-Z]/g,tableElements=new Set(["table","tbody","thead","tfoot","tr"]),tableCellElement=new Set(["td","th"]),docs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function toJsxRuntime(t,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=developmentCreate(l,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=productionCreate(l,a.jsx,a.jsxs)}const c={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?svg:html$2,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},f=one$1(c,t,void 0);return f&&typeof f!="string"?f:c.create(t,c.Fragment,{children:f||void 0},void 0)}function one$1(t,a,l){if(a.type==="element")return element$1(t,a,l);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return mdxExpression(t,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return mdxJsxElement(t,a,l);if(a.type==="mdxjsEsm")return mdxEsm(t,a);if(a.type==="root")return root$2(t,a,l);if(a.type==="text")return text$5(t,a)}function element$1(t,a,l){const u=t.schema;let c=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(c=svg,t.schema=c),t.ancestors.push(a);const f=findComponentFromName(t,a.tagName,!1),d=createElementProps(t,a);let g=createChildren(t,a);return tableElements.has(a.tagName)&&(g=g.filter(function(m){return typeof m=="string"?!whitespace(m):!0})),addNode(t,d,f,a),addChildren(d,g),t.ancestors.pop(),t.schema=u,t.create(a,f,d,l)}function mdxExpression(t,a){if(a.data&&a.data.estree&&t.evaluater){const u=a.data.estree.body[0];return u.type,t.evaluater.evaluateExpression(u.expression)}crashEstree(t,a.position)}function mdxEsm(t,a){if(a.data&&a.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(a.data.estree);crashEstree(t,a.position)}function mdxJsxElement(t,a,l){const u=t.schema;let c=u;a.name==="svg"&&u.space==="html"&&(c=svg,t.schema=c),t.ancestors.push(a);const f=a.name===null?t.Fragment:findComponentFromName(t,a.name,!0),d=createJsxElementProps(t,a),g=createChildren(t,a);return addNode(t,d,f,a),addChildren(d,g),t.ancestors.pop(),t.schema=u,t.create(a,f,d,l)}function root$2(t,a,l){const u={};return addChildren(u,createChildren(t,a)),t.create(a,t.Fragment,u,l)}function text$5(t,a){return a.value}function addNode(t,a,l,u){typeof l!="string"&&l!==t.Fragment&&t.passNode&&(a.node=u)}function addChildren(t,a){if(a.length>0){const l=a.length>1?a:a[0];l&&(t.children=l)}}function productionCreate(t,a,l){return u;function u(c,f,d,g){const h=Array.isArray(d.children)?l:a;return g?h(f,d,g):h(f,d)}}function developmentCreate(t,a){return l;function l(u,c,f,d){const g=Array.isArray(f.children),m=pointStart(u);return a(c,f,d,g,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function createElementProps(t,a){const l={};let u,c;for(c in a.properties)if(c!=="children"&&own$3.call(a.properties,c)){const f=createProperty(t,c,a.properties[c]);if(f){const[d,g]=f;t.tableCellAlignToStyle&&d==="align"&&typeof g=="string"&&tableCellElement.has(a.tagName)?u=g:l[d]=g}}if(u){const f=l.style||(l.style={});f[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return l}function createJsxElementProps(t,a){const l={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&t.evaluater){const f=u.data.estree.body[0];f.type;const d=f.expression;d.type;const g=d.properties[0];g.type,Object.assign(l,t.evaluater.evaluateExpression(g.argument))}else crashEstree(t,a.position);else{const c=u.name;let f;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&t.evaluater){const g=u.value.data.estree.body[0];g.type,f=t.evaluater.evaluateExpression(g.expression)}else crashEstree(t,a.position);else f=u.value===null?!0:u.value;l[c]=f}return l}function createChildren(t,a){const l=[];let u=-1;const c=t.passKeys?new Map:emptyMap;for(;++u<a.children.length;){const f=a.children[u];let d;if(t.passKeys){const m=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(m){const h=c.get(m)||0;d=m+"-"+h,c.set(m,h+1)}}const g=one$1(t,f,d);g!==void 0&&l.push(g)}return l}function createProperty(t,a,l){const u=find(t.schema,a);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=u.commaSeparated?stringify$2(l):stringify$1(l)),u.property==="style"){let c=typeof l=="object"?l:parseStyle(t,String(l));return t.stylePropertyNameCase==="css"&&(c=transformStylesToCssCasing(c)),["style",c]}return[t.elementAttributeNameCase==="react"&&u.space?hastToReact[u.property]||u.property:u.attribute,l]}}function parseStyle(t,a){try{return styleToJs(a,{reactCompat:!0})}catch(l){if(t.ignoreInvalidStyle)return{};const u=l,c=new VFileMessage("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=t.filePath||void 0,c.url=docs+"#cannot-parse-style-attribute",c}}function findComponentFromName(t,a,l){let u;if(!l)u={type:"Literal",value:a};else if(a.includes(".")){const c=a.split(".");let f=-1,d;for(;++f<c.length;){const g=name(c[f])?{type:"Identifier",name:c[f]}:{type:"Literal",value:c[f]};d=d?{type:"MemberExpression",object:d,property:g,computed:!!(f&&g.type==="Literal"),optional:!1}:g}u=d}else u=name(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const c=u.value;return own$3.call(t.components,c)?t.components[c]:c}if(t.evaluater)return t.evaluater.evaluateExpression(u);crashEstree(t)}function crashEstree(t,a){const l=new VFileMessage("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=t.filePath||void 0,l.url=docs+"#cannot-handle-mdx-estrees-without-createevaluater",l}function transformStylesToCssCasing(t){const a={};let l;for(l in t)own$3.call(t,l)&&(a[transformStyleToCssCasing(l)]=t[l]);return a}function transformStyleToCssCasing(t){let a=t.replace(cap,toDash);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function toDash(t){return"-"+t.toLowerCase()}const urlAttributes={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"]},emptyOptions$2={};function toString$1(t,a){const l=emptyOptions$2,u=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,c=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return one(t,u,c)}function one(t,a,l){if(node(t)){if("value"in t)return t.type==="html"&&!l?"":t.value;if(a&&"alt"in t&&t.alt)return t.alt;if("children"in t)return all(t.children,a,l)}return Array.isArray(t)?all(t,a,l):""}function all(t,a,l){const u=[];let c=-1;for(;++c<t.length;)u[c]=one(t[c],a,l);return u.join("")}function node(t){return!!(t&&typeof t=="object")}const element=document.createElement("i");function decodeNamedCharacterReference(t){const a="&"+t+";";element.innerHTML=a;const l=element.textContent;return l.charCodeAt(l.length-1)===59&&t!=="semi"||l===a?!1:l}function splice(t,a,l,u){const c=t.length;let f=0,d;if(a<0?a=-a>c?0:c+a:a=a>c?c:a,l=l>0?l:0,u.length<1e4)d=Array.from(u),d.unshift(a,l),t.splice(...d);else for(l&&t.splice(a,l);f<u.length;)d=u.slice(f,f+1e4),d.unshift(a,0),t.splice(...d),f+=1e4,a+=1e4}function push(t,a){return t.length>0?(splice(t,t.length,0,a),t):a}const hasOwnProperty={}.hasOwnProperty;function combineExtensions(t){const a={};let l=-1;for(;++l<t.length;)syntaxExtension(a,t[l]);return a}function syntaxExtension(t,a){let l;for(l in a){const c=(hasOwnProperty.call(t,l)?t[l]:void 0)||(t[l]={}),f=a[l];let d;if(f)for(d in f){hasOwnProperty.call(c,d)||(c[d]=[]);const g=f[d];constructs(c[d],Array.isArray(g)?g:g?[g]:[])}}}function constructs(t,a){let l=-1;const u=[];for(;++l<a.length;)(a[l].add==="after"?t:u).push(a[l]);splice(t,0,0,u)}function decodeNumericCharacterReference(t,a){const l=Number.parseInt(t,a);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function normalizeIdentifier(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(t){return t!==null&&(t<32||t===127)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(t){return t!==null&&t<-2}function markdownLineEndingOrSpace(t){return t!==null&&(t<0||t===32)}function markdownSpace(t){return t===-2||t===-1||t===32}const unicodePunctuation=regexCheck(new RegExp("\\p{P}|\\p{S}","u")),unicodeWhitespace=regexCheck(/\s/);function regexCheck(t){return a;function a(l){return l!==null&&l>-1&&t.test(String.fromCharCode(l))}}function normalizeUri(t){const a=[];let l=-1,u=0,c=0;for(;++l<t.length;){const f=t.charCodeAt(l);let d="";if(f===37&&asciiAlphanumeric(t.charCodeAt(l+1))&&asciiAlphanumeric(t.charCodeAt(l+2)))c=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(d=String.fromCharCode(f));else if(f>55295&&f<57344){const g=t.charCodeAt(l+1);f<56320&&g>56319&&g<57344?(d=String.fromCharCode(f,g),c=1):d="�"}else d=String.fromCharCode(f);d&&(a.push(t.slice(u,l),encodeURIComponent(d)),u=l+c+1,d=""),c&&(l+=c,c=0)}return a.join("")+t.slice(u)}function factorySpace(t,a,l,u){const c=u?u-1:Number.POSITIVE_INFINITY;let f=0;return d;function d(m){return markdownSpace(m)?(t.enter(l),g(m)):a(m)}function g(m){return markdownSpace(m)&&f++<c?(t.consume(m),g):(t.exit(l),a(m))}}const content$1={tokenize:initializeContent};function initializeContent(t){const a=t.attempt(this.parser.constructs.contentInitial,u,c);let l;return a;function u(g){if(g===null){t.consume(g);return}return t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),factorySpace(t,a,"linePrefix")}function c(g){return t.enter("paragraph"),f(g)}function f(g){const m=t.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=m),l=m,d(g)}function d(g){if(g===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(g);return}return markdownLineEnding(g)?(t.consume(g),t.exit("chunkText"),f):(t.consume(g),d)}}const document$2={tokenize:initializeDocument},containerConstruct={tokenize:tokenizeContainer};function initializeDocument(t){const a=this,l=[];let u=0,c,f,d;return g;function g(K){if(u<l.length){const pe=l[u];return a.containerState=pe[1],t.attempt(pe[0].continuation,m,h)(K)}return h(K)}function m(K){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,c&&ie();const pe=a.events.length;let ye=pe,$;for(;ye--;)if(a.events[ye][0]==="exit"&&a.events[ye][1].type==="chunkFlow"){$=a.events[ye][1].end;break}q(u);let be=pe;for(;be<a.events.length;)a.events[be][1].end={...$},be++;return splice(a.events,ye+1,0,a.events.slice(pe)),a.events.length=be,h(K)}return g(K)}function h(K){if(u===l.length){if(!c)return A(K);if(c.currentConstruct&&c.currentConstruct.concrete)return O(K);a.interrupt=!!(c.currentConstruct&&!c._gfmTableDynamicInterruptHack)}return a.containerState={},t.check(containerConstruct,x,S)(K)}function x(K){return c&&ie(),q(u),A(K)}function S(K){return a.parser.lazy[a.now().line]=u!==l.length,d=a.now().offset,O(K)}function A(K){return a.containerState={},t.attempt(containerConstruct,C,O)(K)}function C(K){return u++,l.push([a.currentConstruct,a.containerState]),A(K)}function O(K){if(K===null){c&&ie(),q(0),t.consume(K);return}return c=c||a.parser.flow(a.now()),t.enter("chunkFlow",{_tokenizer:c,contentType:"flow",previous:f}),F(K)}function F(K){if(K===null){P(t.exit("chunkFlow"),!0),q(0),t.consume(K);return}return markdownLineEnding(K)?(t.consume(K),P(t.exit("chunkFlow")),u=0,a.interrupt=void 0,g):(t.consume(K),F)}function P(K,pe){const ye=a.sliceStream(K);if(pe&&ye.push(null),K.previous=f,f&&(f.next=K),f=K,c.defineSkip(K.start),c.write(ye),a.parser.lazy[K.start.line]){let $=c.events.length;for(;$--;)if(c.events[$][1].start.offset<d&&(!c.events[$][1].end||c.events[$][1].end.offset>d))return;const be=a.events.length;let ue=be,ke,Z;for(;ue--;)if(a.events[ue][0]==="exit"&&a.events[ue][1].type==="chunkFlow"){if(ke){Z=a.events[ue][1].end;break}ke=!0}for(q(u),$=be;$<a.events.length;)a.events[$][1].end={...Z},$++;splice(a.events,ue+1,0,a.events.slice(be)),a.events.length=$}}function q(K){let pe=l.length;for(;pe-- >K;){const ye=l[pe];a.containerState=ye[1],ye[0].exit.call(a,t)}l.length=K}function ie(){c.write([null]),f=void 0,c=void 0,a.containerState._closeFlow=void 0}}function tokenizeContainer(t,a,l){return factorySpace(t,t.attempt(this.parser.constructs.document,a,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(t){if(t===null||markdownLineEndingOrSpace(t)||unicodeWhitespace(t))return 1;if(unicodePunctuation(t))return 2}function resolveAll(t,a,l){const u=[];let c=-1;for(;++c<t.length;){const f=t[c].resolveAll;f&&!u.includes(f)&&(a=f(a,l),u.push(f))}return a}const attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(t,a){let l=-1,u,c,f,d,g,m,h,x;for(;++l<t.length;)if(t[l][0]==="enter"&&t[l][1].type==="attentionSequence"&&t[l][1]._close){for(u=l;u--;)if(t[u][0]==="exit"&&t[u][1].type==="attentionSequence"&&t[u][1]._open&&a.sliceSerialize(t[u][1]).charCodeAt(0)===a.sliceSerialize(t[l][1]).charCodeAt(0)){if((t[u][1]._close||t[l][1]._open)&&(t[l][1].end.offset-t[l][1].start.offset)%3&&!((t[u][1].end.offset-t[u][1].start.offset+t[l][1].end.offset-t[l][1].start.offset)%3))continue;m=t[u][1].end.offset-t[u][1].start.offset>1&&t[l][1].end.offset-t[l][1].start.offset>1?2:1;const S={...t[u][1].end},A={...t[l][1].start};movePoint(S,-m),movePoint(A,m),d={type:m>1?"strongSequence":"emphasisSequence",start:S,end:{...t[u][1].end}},g={type:m>1?"strongSequence":"emphasisSequence",start:{...t[l][1].start},end:A},f={type:m>1?"strongText":"emphasisText",start:{...t[u][1].end},end:{...t[l][1].start}},c={type:m>1?"strong":"emphasis",start:{...d.start},end:{...g.end}},t[u][1].end={...d.start},t[l][1].start={...g.end},h=[],t[u][1].end.offset-t[u][1].start.offset&&(h=push(h,[["enter",t[u][1],a],["exit",t[u][1],a]])),h=push(h,[["enter",c,a],["enter",d,a],["exit",d,a],["enter",f,a]]),h=push(h,resolveAll(a.parser.constructs.insideSpan.null,t.slice(u+1,l),a)),h=push(h,[["exit",f,a],["enter",g,a],["exit",g,a],["exit",c,a]]),t[l][1].end.offset-t[l][1].start.offset?(x=2,h=push(h,[["enter",t[l][1],a],["exit",t[l][1],a]])):x=0,splice(t,u-1,l-u+3,h),l=u+h.length-x-2;break}}for(l=-1;++l<t.length;)t[l][1].type==="attentionSequence"&&(t[l][1].type="data");return t}function tokenizeAttention(t,a){const l=this.parser.constructs.attentionMarkers.null,u=this.previous,c=classifyCharacter(u);let f;return d;function d(m){return f=m,t.enter("attentionSequence"),g(m)}function g(m){if(m===f)return t.consume(m),g;const h=t.exit("attentionSequence"),x=classifyCharacter(m),S=!x||x===2&&c||l.includes(m),A=!c||c===2&&x||l.includes(u);return h._open=!!(f===42?S:S&&(c||!A)),h._close=!!(f===42?A:A&&(x||!S)),a(m)}}function movePoint(t,a){t.column+=a,t.offset+=a,t._bufferIndex+=a}const autolink={name:"autolink",tokenize:tokenizeAutolink};function tokenizeAutolink(t,a,l){let u=0;return c;function c(C){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),f}function f(C){return asciiAlpha(C)?(t.consume(C),d):C===64?l(C):h(C)}function d(C){return C===43||C===45||C===46||asciiAlphanumeric(C)?(u=1,g(C)):h(C)}function g(C){return C===58?(t.consume(C),u=0,m):(C===43||C===45||C===46||asciiAlphanumeric(C))&&u++<32?(t.consume(C),g):(u=0,h(C))}function m(C){return C===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),a):C===null||C===32||C===60||asciiControl(C)?l(C):(t.consume(C),m)}function h(C){return C===64?(t.consume(C),x):asciiAtext(C)?(t.consume(C),h):l(C)}function x(C){return asciiAlphanumeric(C)?S(C):l(C)}function S(C){return C===46?(t.consume(C),u=0,x):C===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),a):A(C)}function A(C){if((C===45||asciiAlphanumeric(C))&&u++<63){const O=C===45?A:S;return t.consume(C),O}return l(C)}}const blankLine={partial:!0,tokenize:tokenizeBlankLine};function tokenizeBlankLine(t,a,l){return u;function u(f){return markdownSpace(f)?factorySpace(t,c,"linePrefix")(f):c(f)}function c(f){return f===null||markdownLineEnding(f)?a(f):l(f)}}const blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit:exit$1,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(t,a,l){const u=this;return c;function c(d){if(d===62){const g=u.containerState;return g.open||(t.enter("blockQuote",{_container:!0}),g.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(d),t.exit("blockQuoteMarker"),f}return l(d)}function f(d){return markdownSpace(d)?(t.enter("blockQuotePrefixWhitespace"),t.consume(d),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),a):(t.exit("blockQuotePrefix"),a(d))}}function tokenizeBlockQuoteContinuation(t,a,l){const u=this;return c;function c(d){return markdownSpace(d)?factorySpace(t,f,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):f(d)}function f(d){return t.attempt(blockQuote,a,l)(d)}}function exit$1(t){t.exit("blockQuote")}const characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(t,a,l){return u;function u(f){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(f),t.exit("escapeMarker"),c}function c(f){return asciiPunctuation(f)?(t.enter("characterEscapeValue"),t.consume(f),t.exit("characterEscapeValue"),t.exit("characterEscape"),a):l(f)}}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(t,a,l){const u=this;let c=0,f,d;return g;function g(S){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(S),t.exit("characterReferenceMarker"),m}function m(S){return S===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(S),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),f=31,d=asciiAlphanumeric,x(S))}function h(S){return S===88||S===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(S),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),f=6,d=asciiHexDigit,x):(t.enter("characterReferenceValue"),f=7,d=asciiDigit,x(S))}function x(S){if(S===59&&c){const A=t.exit("characterReferenceValue");return d===asciiAlphanumeric&&!decodeNamedCharacterReference(u.sliceSerialize(A))?l(S):(t.enter("characterReferenceMarker"),t.consume(S),t.exit("characterReferenceMarker"),t.exit("characterReference"),a)}return d(S)&&c++<f?(t.consume(S),x):l(S)}}const nonLazyContinuation={partial:!0,tokenize:tokenizeNonLazyContinuation},codeFenced={concrete:!0,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(t,a,l){const u=this,c={partial:!0,tokenize:ye};let f=0,d=0,g;return m;function m($){return h($)}function h($){const be=u.events[u.events.length-1];return f=be&&be[1].type==="linePrefix"?be[2].sliceSerialize(be[1],!0).length:0,g=$,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),x($)}function x($){return $===g?(d++,t.consume($),x):d<3?l($):(t.exit("codeFencedFenceSequence"),markdownSpace($)?factorySpace(t,S,"whitespace")($):S($))}function S($){return $===null||markdownLineEnding($)?(t.exit("codeFencedFence"),u.interrupt?a($):t.check(nonLazyContinuation,F,pe)($)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),A($))}function A($){return $===null||markdownLineEnding($)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),S($)):markdownSpace($)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),factorySpace(t,C,"whitespace")($)):$===96&&$===g?l($):(t.consume($),A)}function C($){return $===null||markdownLineEnding($)?S($):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),O($))}function O($){return $===null||markdownLineEnding($)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),S($)):$===96&&$===g?l($):(t.consume($),O)}function F($){return t.attempt(c,pe,P)($)}function P($){return t.enter("lineEnding"),t.consume($),t.exit("lineEnding"),q}function q($){return f>0&&markdownSpace($)?factorySpace(t,ie,"linePrefix",f+1)($):ie($)}function ie($){return $===null||markdownLineEnding($)?t.check(nonLazyContinuation,F,pe)($):(t.enter("codeFlowValue"),K($))}function K($){return $===null||markdownLineEnding($)?(t.exit("codeFlowValue"),ie($)):(t.consume($),K)}function pe($){return t.exit("codeFenced"),a($)}function ye($,be,ue){let ke=0;return Z;function Z(he){return $.enter("lineEnding"),$.consume(he),$.exit("lineEnding"),ve}function ve(he){return $.enter("codeFencedFence"),markdownSpace(he)?factorySpace($,ee,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(he):ee(he)}function ee(he){return he===g?($.enter("codeFencedFenceSequence"),Ae(he)):ue(he)}function Ae(he){return he===g?(ke++,$.consume(he),Ae):ke>=d?($.exit("codeFencedFenceSequence"),markdownSpace(he)?factorySpace($,xe,"whitespace")(he):xe(he)):ue(he)}function xe(he){return he===null||markdownLineEnding(he)?($.exit("codeFencedFence"),be(he)):ue(he)}}}function tokenizeNonLazyContinuation(t,a,l){const u=this;return c;function c(d){return d===null?l(d):(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),f)}function f(d){return u.parser.lazy[u.now().line]?l(d):a(d)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(t,a,l){const u=this;return c;function c(h){return t.enter("codeIndented"),factorySpace(t,f,"linePrefix",5)(h)}function f(h){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?d(h):l(h)}function d(h){return h===null?m(h):markdownLineEnding(h)?t.attempt(furtherStart,d,m)(h):(t.enter("codeFlowValue"),g(h))}function g(h){return h===null||markdownLineEnding(h)?(t.exit("codeFlowValue"),d(h)):(t.consume(h),g)}function m(h){return t.exit("codeIndented"),a(h)}}function tokenizeFurtherStart(t,a,l){const u=this;return c;function c(d){return u.parser.lazy[u.now().line]?l(d):markdownLineEnding(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),c):factorySpace(t,f,"linePrefix",5)(d)}function f(d){const g=u.events[u.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(d):markdownLineEnding(d)?c(d):l(d)}}const codeText={name:"codeText",previous:previous$1,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(t){let a=t.length-4,l=3,u,c;if((t[l][1].type==="lineEnding"||t[l][1].type==="space")&&(t[a][1].type==="lineEnding"||t[a][1].type==="space")){for(u=l;++u<a;)if(t[u][1].type==="codeTextData"){t[l][1].type="codeTextPadding",t[a][1].type="codeTextPadding",l+=2,a-=2;break}}for(u=l-1,a++;++u<=a;)c===void 0?u!==a&&t[u][1].type!=="lineEnding"&&(c=u):(u===a||t[u][1].type==="lineEnding")&&(t[c][1].type="codeTextData",u!==c+2&&(t[c][1].end=t[u-1][1].end,t.splice(c+2,u-c-2),a-=u-c-2,u=c+2),c=void 0);return t}function previous$1(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeCodeText(t,a,l){let u=0,c,f;return d;function d(S){return t.enter("codeText"),t.enter("codeTextSequence"),g(S)}function g(S){return S===96?(t.consume(S),u++,g):(t.exit("codeTextSequence"),m(S))}function m(S){return S===null?l(S):S===32?(t.enter("space"),t.consume(S),t.exit("space"),m):S===96?(f=t.enter("codeTextSequence"),c=0,x(S)):markdownLineEnding(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),m):(t.enter("codeTextData"),h(S))}function h(S){return S===null||S===32||S===96||markdownLineEnding(S)?(t.exit("codeTextData"),m(S)):(t.consume(S),h)}function x(S){return S===96?(t.consume(S),c++,x):c===u?(t.exit("codeTextSequence"),t.exit("codeText"),a(S)):(f.type="codeTextData",h(S))}}class SpliceBuffer{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,l){const u=l??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,l,u){const c=l||0;this.setCursor(Math.trunc(a));const f=this.right.splice(this.right.length-c,Number.POSITIVE_INFINITY);return u&&chunkedPush(this.left,u),f.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),chunkedPush(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),chunkedPush(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const l=this.left.splice(a,Number.POSITIVE_INFINITY);chunkedPush(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);chunkedPush(this.left,l.reverse())}}}function chunkedPush(t,a){let l=0;if(a.length<1e4)t.push(...a);else for(;l<a.length;)t.push(...a.slice(l,l+1e4)),l+=1e4}function subtokenize(t){const a={};let l=-1,u,c,f,d,g,m,h;const x=new SpliceBuffer(t);for(;++l<x.length;){for(;l in a;)l=a[l];if(u=x.get(l),l&&u[1].type==="chunkFlow"&&x.get(l-1)[1].type==="listItemPrefix"&&(m=u[1]._tokenizer.events,f=0,f<m.length&&m[f][1].type==="lineEndingBlank"&&(f+=2),f<m.length&&m[f][1].type==="content"))for(;++f<m.length&&m[f][1].type!=="content";)m[f][1].type==="chunkText"&&(m[f][1]._isInFirstContentOfListItem=!0,f++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,subcontent(x,l)),l=a[l],h=!0);else if(u[1]._container){for(f=l,c=void 0;f--;)if(d=x.get(f),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(c&&(x.get(c)[1].type="lineEndingBlank"),d[1].type="lineEnding",c=f);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;c&&(u[1].end={...x.get(c)[1].start},g=x.slice(c,l),g.unshift(u),x.splice(c,l-c+1,g))}}return splice(t,0,Number.POSITIVE_INFINITY,x.slice(0)),!h}function subcontent(t,a){const l=t.get(a)[1],u=t.get(a)[2];let c=a-1;const f=[];let d=l._tokenizer;d||(d=u.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const g=d.events,m=[],h={};let x,S,A=-1,C=l,O=0,F=0;const P=[F];for(;C;){for(;t.get(++c)[1]!==C;);f.push(c),C._tokenizer||(x=u.sliceStream(C),C.next||x.push(null),S&&d.defineSkip(C.start),C._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(x),C._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),S=C,C=C.next}for(C=l;++A<g.length;)g[A][0]==="exit"&&g[A-1][0]==="enter"&&g[A][1].type===g[A-1][1].type&&g[A][1].start.line!==g[A][1].end.line&&(F=A+1,P.push(F),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(d.events=[],C?(C._tokenizer=void 0,C.previous=void 0):P.pop(),A=P.length;A--;){const q=g.slice(P[A],P[A+1]),ie=f.pop();m.push([ie,ie+q.length-1]),t.splice(ie,2,q)}for(m.reverse(),A=-1;++A<m.length;)h[O+m[A][0]]=O+m[A][1],O+=m[A][1]-m[A][0]-1;return h}const content={resolve:resolveContent,tokenize:tokenizeContent},continuationConstruct={partial:!0,tokenize:tokenizeContinuation};function resolveContent(t){return subtokenize(t),t}function tokenizeContent(t,a){let l;return u;function u(g){return t.enter("content"),l=t.enter("chunkContent",{contentType:"content"}),c(g)}function c(g){return g===null?f(g):markdownLineEnding(g)?t.check(continuationConstruct,d,f)(g):(t.consume(g),c)}function f(g){return t.exit("chunkContent"),t.exit("content"),a(g)}function d(g){return t.consume(g),t.exit("chunkContent"),l.next=t.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,c}}function tokenizeContinuation(t,a,l){const u=this;return c;function c(d){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),factorySpace(t,f,"linePrefix")}function f(d){if(d===null||markdownLineEnding(d))return l(d);const g=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(d):t.interrupt(u.parser.constructs.flow,l,a)(d)}}function factoryDestination(t,a,l,u,c,f,d,g,m){const h=m||Number.POSITIVE_INFINITY;let x=0;return S;function S(q){return q===60?(t.enter(u),t.enter(c),t.enter(f),t.consume(q),t.exit(f),A):q===null||q===32||q===41||asciiControl(q)?l(q):(t.enter(u),t.enter(d),t.enter(g),t.enter("chunkString",{contentType:"string"}),F(q))}function A(q){return q===62?(t.enter(f),t.consume(q),t.exit(f),t.exit(c),t.exit(u),a):(t.enter(g),t.enter("chunkString",{contentType:"string"}),C(q))}function C(q){return q===62?(t.exit("chunkString"),t.exit(g),A(q)):q===null||q===60||markdownLineEnding(q)?l(q):(t.consume(q),q===92?O:C)}function O(q){return q===60||q===62||q===92?(t.consume(q),C):C(q)}function F(q){return!x&&(q===null||q===41||markdownLineEndingOrSpace(q))?(t.exit("chunkString"),t.exit(g),t.exit(d),t.exit(u),a(q)):x<h&&q===40?(t.consume(q),x++,F):q===41?(t.consume(q),x--,F):q===null||q===32||q===40||asciiControl(q)?l(q):(t.consume(q),q===92?P:F)}function P(q){return q===40||q===41||q===92?(t.consume(q),F):F(q)}}function factoryLabel(t,a,l,u,c,f){const d=this;let g=0,m;return h;function h(C){return t.enter(u),t.enter(c),t.consume(C),t.exit(c),t.enter(f),x}function x(C){return g>999||C===null||C===91||C===93&&!m||C===94&&!g&&"_hiddenFootnoteSupport"in d.parser.constructs?l(C):C===93?(t.exit(f),t.enter(c),t.consume(C),t.exit(c),t.exit(u),a):markdownLineEnding(C)?(t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),x):(t.enter("chunkString",{contentType:"string"}),S(C))}function S(C){return C===null||C===91||C===93||markdownLineEnding(C)||g++>999?(t.exit("chunkString"),x(C)):(t.consume(C),m||(m=!markdownSpace(C)),C===92?A:S)}function A(C){return C===91||C===92||C===93?(t.consume(C),g++,S):S(C)}}function factoryTitle(t,a,l,u,c,f){let d;return g;function g(A){return A===34||A===39||A===40?(t.enter(u),t.enter(c),t.consume(A),t.exit(c),d=A===40?41:A,m):l(A)}function m(A){return A===d?(t.enter(c),t.consume(A),t.exit(c),t.exit(u),a):(t.enter(f),h(A))}function h(A){return A===d?(t.exit(f),m(d)):A===null?l(A):markdownLineEnding(A)?(t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),factorySpace(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===d||A===null||markdownLineEnding(A)?(t.exit("chunkString"),h(A)):(t.consume(A),A===92?S:x)}function S(A){return A===d||A===92?(t.consume(A),x):x(A)}}function factoryWhitespace(t,a){let l;return u;function u(c){return markdownLineEnding(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),l=!0,u):markdownSpace(c)?factorySpace(t,u,l?"linePrefix":"lineSuffix")(c):a(c)}}const definition$1={name:"definition",tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(t,a,l){const u=this;let c;return f;function f(C){return t.enter("definition"),d(C)}function d(C){return factoryLabel.call(u,t,g,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function g(C){return c=normalizeIdentifier(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),C===58?(t.enter("definitionMarker"),t.consume(C),t.exit("definitionMarker"),m):l(C)}function m(C){return markdownLineEndingOrSpace(C)?factoryWhitespace(t,h)(C):h(C)}function h(C){return factoryDestination(t,x,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function x(C){return t.attempt(titleBefore,S,S)(C)}function S(C){return markdownSpace(C)?factorySpace(t,A,"whitespace")(C):A(C)}function A(C){return C===null||markdownLineEnding(C)?(t.exit("definition"),u.parser.defined.push(c),a(C)):l(C)}}function tokenizeTitleBefore(t,a,l){return u;function u(g){return markdownLineEndingOrSpace(g)?factoryWhitespace(t,c)(g):l(g)}function c(g){return factoryTitle(t,f,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(g)}function f(g){return markdownSpace(g)?factorySpace(t,d,"whitespace")(g):d(g)}function d(g){return g===null||markdownLineEnding(g)?a(g):l(g)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(t,a,l){return u;function u(f){return t.enter("hardBreakEscape"),t.consume(f),c}function c(f){return markdownLineEnding(f)?(t.exit("hardBreakEscape"),a(f)):l(f)}}const headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(t,a){let l=t.length-2,u=3,c,f;return t[u][1].type==="whitespace"&&(u+=2),l-2>u&&t[l][1].type==="whitespace"&&(l-=2),t[l][1].type==="atxHeadingSequence"&&(u===l-1||l-4>u&&t[l-2][1].type==="whitespace")&&(l-=u+1===l?2:4),l>u&&(c={type:"atxHeadingText",start:t[u][1].start,end:t[l][1].end},f={type:"chunkText",start:t[u][1].start,end:t[l][1].end,contentType:"text"},splice(t,u,l-u+1,[["enter",c,a],["enter",f,a],["exit",f,a],["exit",c,a]])),t}function tokenizeHeadingAtx(t,a,l){let u=0;return c;function c(x){return t.enter("atxHeading"),f(x)}function f(x){return t.enter("atxHeadingSequence"),d(x)}function d(x){return x===35&&u++<6?(t.consume(x),d):x===null||markdownLineEndingOrSpace(x)?(t.exit("atxHeadingSequence"),g(x)):l(x)}function g(x){return x===35?(t.enter("atxHeadingSequence"),m(x)):x===null||markdownLineEnding(x)?(t.exit("atxHeading"),a(x)):markdownSpace(x)?factorySpace(t,g,"whitespace")(x):(t.enter("atxHeadingText"),h(x))}function m(x){return x===35?(t.consume(x),m):(t.exit("atxHeadingSequence"),g(x))}function h(x){return x===null||x===35||markdownLineEndingOrSpace(x)?(t.exit("atxHeadingText"),g(x)):(t.consume(x),h)}}const htmlBlockNames=["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"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={concrete:!0,name:"htmlFlow",resolveTo:resolveToHtmlFlow,tokenize:tokenizeHtmlFlow},blankLineBefore={partial:!0,tokenize:tokenizeBlankLineBefore},nonLazyContinuationStart={partial:!0,tokenize:tokenizeNonLazyContinuationStart};function resolveToHtmlFlow(t){let a=t.length;for(;a--&&!(t[a][0]==="enter"&&t[a][1].type==="htmlFlow"););return a>1&&t[a-2][1].type==="linePrefix"&&(t[a][1].start=t[a-2][1].start,t[a+1][1].start=t[a-2][1].start,t.splice(a-2,2)),t}function tokenizeHtmlFlow(t,a,l){const u=this;let c,f,d,g,m;return h;function h(j){return x(j)}function x(j){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(j),S}function S(j){return j===33?(t.consume(j),A):j===47?(t.consume(j),f=!0,F):j===63?(t.consume(j),c=3,u.interrupt?a:N):asciiAlpha(j)?(t.consume(j),d=String.fromCharCode(j),P):l(j)}function A(j){return j===45?(t.consume(j),c=2,C):j===91?(t.consume(j),c=5,g=0,O):asciiAlpha(j)?(t.consume(j),c=4,u.interrupt?a:N):l(j)}function C(j){return j===45?(t.consume(j),u.interrupt?a:N):l(j)}function O(j){const ge="CDATA[";return j===ge.charCodeAt(g++)?(t.consume(j),g===ge.length?u.interrupt?a:ee:O):l(j)}function F(j){return asciiAlpha(j)?(t.consume(j),d=String.fromCharCode(j),P):l(j)}function P(j){if(j===null||j===47||j===62||markdownLineEndingOrSpace(j)){const ge=j===47,me=d.toLowerCase();return!ge&&!f&&htmlRawNames.includes(me)?(c=1,u.interrupt?a(j):ee(j)):htmlBlockNames.includes(d.toLowerCase())?(c=6,ge?(t.consume(j),q):u.interrupt?a(j):ee(j)):(c=7,u.interrupt&&!u.parser.lazy[u.now().line]?l(j):f?ie(j):K(j))}return j===45||asciiAlphanumeric(j)?(t.consume(j),d+=String.fromCharCode(j),P):l(j)}function q(j){return j===62?(t.consume(j),u.interrupt?a:ee):l(j)}function ie(j){return markdownSpace(j)?(t.consume(j),ie):Z(j)}function K(j){return j===47?(t.consume(j),Z):j===58||j===95||asciiAlpha(j)?(t.consume(j),pe):markdownSpace(j)?(t.consume(j),K):Z(j)}function pe(j){return j===45||j===46||j===58||j===95||asciiAlphanumeric(j)?(t.consume(j),pe):ye(j)}function ye(j){return j===61?(t.consume(j),$):markdownSpace(j)?(t.consume(j),ye):K(j)}function $(j){return j===null||j===60||j===61||j===62||j===96?l(j):j===34||j===39?(t.consume(j),m=j,be):markdownSpace(j)?(t.consume(j),$):ue(j)}function be(j){return j===m?(t.consume(j),m=null,ke):j===null||markdownLineEnding(j)?l(j):(t.consume(j),be)}function ue(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||markdownLineEndingOrSpace(j)?ye(j):(t.consume(j),ue)}function ke(j){return j===47||j===62||markdownSpace(j)?K(j):l(j)}function Z(j){return j===62?(t.consume(j),ve):l(j)}function ve(j){return j===null||markdownLineEnding(j)?ee(j):markdownSpace(j)?(t.consume(j),ve):l(j)}function ee(j){return j===45&&c===2?(t.consume(j),H):j===60&&c===1?(t.consume(j),de):j===62&&c===4?(t.consume(j),I):j===63&&c===3?(t.consume(j),N):j===93&&c===5?(t.consume(j),Ne):markdownLineEnding(j)&&(c===6||c===7)?(t.exit("htmlFlowData"),t.check(blankLineBefore,ne,Ae)(j)):j===null||markdownLineEnding(j)?(t.exit("htmlFlowData"),Ae(j)):(t.consume(j),ee)}function Ae(j){return t.check(nonLazyContinuationStart,xe,ne)(j)}function xe(j){return t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),he}function he(j){return j===null||markdownLineEnding(j)?Ae(j):(t.enter("htmlFlowData"),ee(j))}function H(j){return j===45?(t.consume(j),N):ee(j)}function de(j){return j===47?(t.consume(j),d="",oe):ee(j)}function oe(j){if(j===62){const ge=d.toLowerCase();return htmlRawNames.includes(ge)?(t.consume(j),I):ee(j)}return asciiAlpha(j)&&d.length<8?(t.consume(j),d+=String.fromCharCode(j),oe):ee(j)}function Ne(j){return j===93?(t.consume(j),N):ee(j)}function N(j){return j===62?(t.consume(j),I):j===45&&c===2?(t.consume(j),N):ee(j)}function I(j){return j===null||markdownLineEnding(j)?(t.exit("htmlFlowData"),ne(j)):(t.consume(j),I)}function ne(j){return t.exit("htmlFlow"),a(j)}}function tokenizeNonLazyContinuationStart(t,a,l){const u=this;return c;function c(d){return markdownLineEnding(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),f):l(d)}function f(d){return u.parser.lazy[u.now().line]?l(d):a(d)}}function tokenizeBlankLineBefore(t,a,l){return u;function u(c){return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),t.attempt(blankLine,a,l)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(t,a,l){const u=this;let c,f,d;return g;function g(N){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(N),m}function m(N){return N===33?(t.consume(N),h):N===47?(t.consume(N),ye):N===63?(t.consume(N),K):asciiAlpha(N)?(t.consume(N),ue):l(N)}function h(N){return N===45?(t.consume(N),x):N===91?(t.consume(N),f=0,O):asciiAlpha(N)?(t.consume(N),ie):l(N)}function x(N){return N===45?(t.consume(N),C):l(N)}function S(N){return N===null?l(N):N===45?(t.consume(N),A):markdownLineEnding(N)?(d=S,de(N)):(t.consume(N),S)}function A(N){return N===45?(t.consume(N),C):S(N)}function C(N){return N===62?H(N):N===45?A(N):S(N)}function O(N){const I="CDATA[";return N===I.charCodeAt(f++)?(t.consume(N),f===I.length?F:O):l(N)}function F(N){return N===null?l(N):N===93?(t.consume(N),P):markdownLineEnding(N)?(d=F,de(N)):(t.consume(N),F)}function P(N){return N===93?(t.consume(N),q):F(N)}function q(N){return N===62?H(N):N===93?(t.consume(N),q):F(N)}function ie(N){return N===null||N===62?H(N):markdownLineEnding(N)?(d=ie,de(N)):(t.consume(N),ie)}function K(N){return N===null?l(N):N===63?(t.consume(N),pe):markdownLineEnding(N)?(d=K,de(N)):(t.consume(N),K)}function pe(N){return N===62?H(N):K(N)}function ye(N){return asciiAlpha(N)?(t.consume(N),$):l(N)}function $(N){return N===45||asciiAlphanumeric(N)?(t.consume(N),$):be(N)}function be(N){return markdownLineEnding(N)?(d=be,de(N)):markdownSpace(N)?(t.consume(N),be):H(N)}function ue(N){return N===45||asciiAlphanumeric(N)?(t.consume(N),ue):N===47||N===62||markdownLineEndingOrSpace(N)?ke(N):l(N)}function ke(N){return N===47?(t.consume(N),H):N===58||N===95||asciiAlpha(N)?(t.consume(N),Z):markdownLineEnding(N)?(d=ke,de(N)):markdownSpace(N)?(t.consume(N),ke):H(N)}function Z(N){return N===45||N===46||N===58||N===95||asciiAlphanumeric(N)?(t.consume(N),Z):ve(N)}function ve(N){return N===61?(t.consume(N),ee):markdownLineEnding(N)?(d=ve,de(N)):markdownSpace(N)?(t.consume(N),ve):ke(N)}function ee(N){return N===null||N===60||N===61||N===62||N===96?l(N):N===34||N===39?(t.consume(N),c=N,Ae):markdownLineEnding(N)?(d=ee,de(N)):markdownSpace(N)?(t.consume(N),ee):(t.consume(N),xe)}function Ae(N){return N===c?(t.consume(N),c=void 0,he):N===null?l(N):markdownLineEnding(N)?(d=Ae,de(N)):(t.consume(N),Ae)}function xe(N){return N===null||N===34||N===39||N===60||N===61||N===96?l(N):N===47||N===62||markdownLineEndingOrSpace(N)?ke(N):(t.consume(N),xe)}function he(N){return N===47||N===62||markdownLineEndingOrSpace(N)?ke(N):l(N)}function H(N){return N===62?(t.consume(N),t.exit("htmlTextData"),t.exit("htmlText"),a):l(N)}function de(N){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),oe}function oe(N){return markdownSpace(N)?factorySpace(t,Ne,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):Ne(N)}function Ne(N){return t.enter("htmlTextData"),d(N)}}const labelEnd={name:"labelEnd",resolveAll:resolveAllLabelEnd,resolveTo:resolveToLabelEnd,tokenize:tokenizeLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(t){let a=-1;const l=[];for(;++a<t.length;){const u=t[a][1];if(l.push(t[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const c=u.type==="labelImage"?4:2;u.type="data",a+=c}}return t.length!==l.length&&splice(t,0,t.length,l),t}function resolveToLabelEnd(t,a){let l=t.length,u=0,c,f,d,g;for(;l--;)if(c=t[l][1],f){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;t[l][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(d){if(t[l][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(f=l,c.type!=="labelLink")){u=2;break}}else c.type==="labelEnd"&&(d=l);const m={type:t[f][1].type==="labelLink"?"link":"image",start:{...t[f][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[f][1].start},end:{...t[d][1].end}},x={type:"labelText",start:{...t[f+u+2][1].end},end:{...t[d-2][1].start}};return g=[["enter",m,a],["enter",h,a]],g=push(g,t.slice(f+1,f+u+3)),g=push(g,[["enter",x,a]]),g=push(g,resolveAll(a.parser.constructs.insideSpan.null,t.slice(f+u+4,d-3),a)),g=push(g,[["exit",x,a],t[d-2],t[d-1],["exit",h,a]]),g=push(g,t.slice(d+1)),g=push(g,[["exit",m,a]]),splice(t,f,t.length,g),t}function tokenizeLabelEnd(t,a,l){const u=this;let c=u.events.length,f,d;for(;c--;)if((u.events[c][1].type==="labelImage"||u.events[c][1].type==="labelLink")&&!u.events[c][1]._balanced){f=u.events[c][1];break}return g;function g(A){return f?f._inactive?S(A):(d=u.parser.defined.includes(normalizeIdentifier(u.sliceSerialize({start:f.end,end:u.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(A),t.exit("labelMarker"),t.exit("labelEnd"),m):l(A)}function m(A){return A===40?t.attempt(resourceConstruct,x,d?x:S)(A):A===91?t.attempt(referenceFullConstruct,x,d?h:S)(A):d?x(A):S(A)}function h(A){return t.attempt(referenceCollapsedConstruct,x,S)(A)}function x(A){return a(A)}function S(A){return f._balanced=!0,l(A)}}function tokenizeResource(t,a,l){return u;function u(S){return t.enter("resource"),t.enter("resourceMarker"),t.consume(S),t.exit("resourceMarker"),c}function c(S){return markdownLineEndingOrSpace(S)?factoryWhitespace(t,f)(S):f(S)}function f(S){return S===41?x(S):factoryDestination(t,d,g,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(S)}function d(S){return markdownLineEndingOrSpace(S)?factoryWhitespace(t,m)(S):x(S)}function g(S){return l(S)}function m(S){return S===34||S===39||S===40?factoryTitle(t,h,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(S):x(S)}function h(S){return markdownLineEndingOrSpace(S)?factoryWhitespace(t,x)(S):x(S)}function x(S){return S===41?(t.enter("resourceMarker"),t.consume(S),t.exit("resourceMarker"),t.exit("resource"),a):l(S)}}function tokenizeReferenceFull(t,a,l){const u=this;return c;function c(g){return factoryLabel.call(u,t,f,d,"reference","referenceMarker","referenceString")(g)}function f(g){return u.parser.defined.includes(normalizeIdentifier(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(g):l(g)}function d(g){return l(g)}}function tokenizeReferenceCollapsed(t,a,l){return u;function u(f){return t.enter("reference"),t.enter("referenceMarker"),t.consume(f),t.exit("referenceMarker"),c}function c(f){return f===93?(t.enter("referenceMarker"),t.consume(f),t.exit("referenceMarker"),t.exit("reference"),a):l(f)}}const labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(t,a,l){const u=this;return c;function c(g){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(g),t.exit("labelImageMarker"),f}function f(g){return g===91?(t.enter("labelMarker"),t.consume(g),t.exit("labelMarker"),t.exit("labelImage"),d):l(g)}function d(g){return g===94&&"_hiddenFootnoteSupport"in u.parser.constructs?l(g):a(g)}}const labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(t,a,l){const u=this;return c;function c(d){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelLink"),f}function f(d){return d===94&&"_hiddenFootnoteSupport"in u.parser.constructs?l(d):a(d)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(t,a){return l;function l(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),factorySpace(t,a,"linePrefix")}}const thematicBreak$2={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(t,a,l){let u=0,c;return f;function f(h){return t.enter("thematicBreak"),d(h)}function d(h){return c=h,g(h)}function g(h){return h===c?(t.enter("thematicBreakSequence"),m(h)):u>=3&&(h===null||markdownLineEnding(h))?(t.exit("thematicBreak"),a(h)):l(h)}function m(h){return h===c?(t.consume(h),u++,m):(t.exit("thematicBreakSequence"),markdownSpace(h)?factorySpace(t,g,"whitespace")(h):g(h))}}const list$2={continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd,name:"list",tokenize:tokenizeListStart},listItemPrefixWhitespaceConstruct={partial:!0,tokenize:tokenizeListItemPrefixWhitespace},indentConstruct={partial:!0,tokenize:tokenizeIndent$1};function tokenizeListStart(t,a,l){const u=this,c=u.events[u.events.length-1];let f=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,d=0;return g;function g(C){const O=u.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!u.containerState.marker||C===u.containerState.marker:asciiDigit(C)){if(u.containerState.type||(u.containerState.type=O,t.enter(O,{_container:!0})),O==="listUnordered")return t.enter("listItemPrefix"),C===42||C===45?t.check(thematicBreak$2,l,h)(C):h(C);if(!u.interrupt||C===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),m(C)}return l(C)}function m(C){return asciiDigit(C)&&++d<10?(t.consume(C),m):(!u.interrupt||d<2)&&(u.containerState.marker?C===u.containerState.marker:C===41||C===46)?(t.exit("listItemValue"),h(C)):l(C)}function h(C){return t.enter("listItemMarker"),t.consume(C),t.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||C,t.check(blankLine,u.interrupt?l:x,t.attempt(listItemPrefixWhitespaceConstruct,A,S))}function x(C){return u.containerState.initialBlankLine=!0,f++,A(C)}function S(C){return markdownSpace(C)?(t.enter("listItemPrefixWhitespace"),t.consume(C),t.exit("listItemPrefixWhitespace"),A):l(C)}function A(C){return u.containerState.size=f+u.sliceSerialize(t.exit("listItemPrefix"),!0).length,a(C)}}function tokenizeListContinuation(t,a,l){const u=this;return u.containerState._closeFlow=void 0,t.check(blankLine,c,f);function c(g){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,factorySpace(t,a,"listItemIndent",u.containerState.size+1)(g)}function f(g){return u.containerState.furtherBlankLines||!markdownSpace(g)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,d(g)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,t.attempt(indentConstruct,a,d)(g))}function d(g){return u.containerState._closeFlow=!0,u.interrupt=void 0,factorySpace(t,t.attempt(list$2,a,l),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g)}}function tokenizeIndent$1(t,a,l){const u=this;return factorySpace(t,c,"listItemIndent",u.containerState.size+1);function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===u.containerState.size?a(f):l(f)}}function tokenizeListEnd(t){t.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(t,a,l){const u=this;return factorySpace(t,c,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(f){const d=u.events[u.events.length-1];return!markdownSpace(f)&&d&&d[1].type==="listItemPrefixWhitespace"?a(f):l(f)}}const setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(t,a){let l=t.length,u,c,f;for(;l--;)if(t[l][0]==="enter"){if(t[l][1].type==="content"){u=l;break}t[l][1].type==="paragraph"&&(c=l)}else t[l][1].type==="content"&&t.splice(l,1),!f&&t[l][1].type==="definition"&&(f=l);const d={type:"setextHeading",start:{...t[u][1].start},end:{...t[t.length-1][1].end}};return t[c][1].type="setextHeadingText",f?(t.splice(c,0,["enter",d,a]),t.splice(f+1,0,["exit",t[u][1],a]),t[u][1].end={...t[f][1].end}):t[u][1]=d,t.push(["exit",d,a]),t}function tokenizeSetextUnderline(t,a,l){const u=this;let c;return f;function f(h){let x=u.events.length,S;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){S=u.events[x][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||S)?(t.enter("setextHeadingLine"),c=h,d(h)):l(h)}function d(h){return t.enter("setextHeadingLineSequence"),g(h)}function g(h){return h===c?(t.consume(h),g):(t.exit("setextHeadingLineSequence"),markdownSpace(h)?factorySpace(t,m,"lineSuffix")(h):m(h))}function m(h){return h===null||markdownLineEnding(h)?(t.exit("setextHeadingLine"),a(h)):l(h)}}const flow$1={tokenize:initializeFlow};function initializeFlow(t){const a=this,l=t.attempt(blankLine,u,t.attempt(this.parser.constructs.flowInitial,c,factorySpace(t,t.attempt(this.parser.constructs.flow,c,t.attempt(content,c)),"linePrefix")));return l;function u(f){if(f===null){t.consume(f);return}return t.enter("lineEndingBlank"),t.consume(f),t.exit("lineEndingBlank"),a.currentConstruct=void 0,l}function c(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),a.currentConstruct=void 0,l}}const resolver={resolveAll:createResolver()},string$1=initializeFactory("string"),text$4=initializeFactory("text");function initializeFactory(t){return{resolveAll:createResolver(t==="text"?resolveAllLineSuffixes:void 0),tokenize:a};function a(l){const u=this,c=this.parser.constructs[t],f=l.attempt(c,d,g);return d;function d(x){return h(x)?f(x):g(x)}function g(x){if(x===null){l.consume(x);return}return l.enter("data"),l.consume(x),m}function m(x){return h(x)?(l.exit("data"),f(x)):(l.consume(x),m)}function h(x){if(x===null)return!0;const S=c[x];let A=-1;if(S)for(;++A<S.length;){const C=S[A];if(!C.previous||C.previous.call(u,u.previous))return!0}return!1}}}function createResolver(t){return a;function a(l,u){let c=-1,f;for(;++c<=l.length;)f===void 0?l[c]&&l[c][1].type==="data"&&(f=c,c++):(!l[c]||l[c][1].type!=="data")&&(c!==f+2&&(l[f][1].end=l[c-1][1].end,l.splice(f+2,c-f-2),c=f+2),f=void 0);return t?t(l,u):l}}function resolveAllLineSuffixes(t,a){let l=0;for(;++l<=t.length;)if((l===t.length||t[l][1].type==="lineEnding")&&t[l-1][1].type==="data"){const u=t[l-1][1],c=a.sliceStream(u);let f=c.length,d=-1,g=0,m;for(;f--;){const h=c[f];if(typeof h=="string"){for(d=h.length;h.charCodeAt(d-1)===32;)g++,d--;if(d)break;d=-1}else if(h===-2)m=!0,g++;else if(h!==-1){f++;break}}if(a._contentTypeTextTrailing&&l===t.length&&(g=0),g){const h={type:l===t.length||m||g<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?d:u.start._bufferIndex+d,_index:u.start._index+f,line:u.end.line,column:u.end.column-g,offset:u.end.offset-g},end:{...u.end}};u.end={...h.start},u.start.offset===u.end.offset?Object.assign(u,h):(t.splice(l,0,["enter",h,a],["exit",h,a]),l+=2)}l++}return t}const document$1={42:list$2,43:list$2,45:list$2,48:list$2,49:list$2,50:list$2,51:list$2,52:list$2,53:list$2,54:list$2,55:list$2,56:list$2,57:list$2,62:blockQuote},contentInitial={91:definition$1},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},flow={35:headingAtx,42:thematicBreak$2,45:[setextUnderline,thematicBreak$2],60:htmlFlow,61:setextUnderline,95:thematicBreak$2,96:codeFenced,126:codeFenced},string={38:characterReference,92:characterEscape},text$3={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]},defaultConstructs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers,contentInitial,disable,document:document$1,flow,flowInitial,insideSpan,string,text:text$3},Symbol.toStringTag,{value:"Module"}));function createTokenizer(t,a,l){let u={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const c={},f=[];let d=[],g=[];const m={attempt:be(ye),check:be($),consume:ie,enter:K,exit:pe,interrupt:be($,{interrupt:!0})},h={code:null,containerState:{},defineSkip:F,events:[],now:O,parser:t,previous:null,sliceSerialize:A,sliceStream:C,write:S};let x=a.tokenize.call(h,m);return a.resolveAll&&f.push(a),h;function S(ve){return d=push(d,ve),P(),d[d.length-1]!==null?[]:(ue(a,0),h.events=resolveAll(f,h.events,h),h.events)}function A(ve,ee){return serializeChunks(C(ve),ee)}function C(ve){return sliceChunks(d,ve)}function O(){const{_bufferIndex:ve,_index:ee,line:Ae,column:xe,offset:he}=u;return{_bufferIndex:ve,_index:ee,line:Ae,column:xe,offset:he}}function F(ve){c[ve.line]=ve.column,Z()}function P(){let ve;for(;u._index<d.length;){const ee=d[u._index];if(typeof ee=="string")for(ve=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ve&&u._bufferIndex<ee.length;)q(ee.charCodeAt(u._bufferIndex));else q(ee)}}function q(ve){x=x(ve)}function ie(ve){markdownLineEnding(ve)?(u.line++,u.column=1,u.offset+=ve===-3?2:1,Z()):ve!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===d[u._index].length&&(u._bufferIndex=-1,u._index++)),h.previous=ve}function K(ve,ee){const Ae=ee||{};return Ae.type=ve,Ae.start=O(),h.events.push(["enter",Ae,h]),g.push(Ae),Ae}function pe(ve){const ee=g.pop();return ee.end=O(),h.events.push(["exit",ee,h]),ee}function ye(ve,ee){ue(ve,ee.from)}function $(ve,ee){ee.restore()}function be(ve,ee){return Ae;function Ae(xe,he,H){let de,oe,Ne,N;return Array.isArray(xe)?ne(xe):"tokenize"in xe?ne([xe]):I(xe);function I(Se){return Oe;function Oe(qe){const Re=qe!==null&&Se[qe],nt=qe!==null&&Se.null,Ke=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(nt)?nt:nt?[nt]:[]];return ne(Ke)(qe)}}function ne(Se){return de=Se,oe=0,Se.length===0?H:j(Se[oe])}function j(Se){return Oe;function Oe(qe){return N=ke(),Ne=Se,Se.partial||(h.currentConstruct=Se),Se.name&&h.parser.constructs.disable.null.includes(Se.name)?me():Se.tokenize.call(ee?Object.assign(Object.create(h),ee):h,m,ge,me)(qe)}}function ge(Se){return ve(Ne,N),he}function me(Se){return N.restore(),++oe<de.length?j(de[oe]):H}}}function ue(ve,ee){ve.resolveAll&&!f.includes(ve)&&f.push(ve),ve.resolve&&splice(h.events,ee,h.events.length-ee,ve.resolve(h.events.slice(ee),h)),ve.resolveTo&&(h.events=ve.resolveTo(h.events,h))}function ke(){const ve=O(),ee=h.previous,Ae=h.currentConstruct,xe=h.events.length,he=Array.from(g);return{from:xe,restore:H};function H(){u=ve,h.previous=ee,h.currentConstruct=Ae,h.events.length=xe,g=he,Z()}}function Z(){u.line in c&&u.column<2&&(u.column=c[u.line],u.offset+=c[u.line]-1)}}function sliceChunks(t,a){const l=a.start._index,u=a.start._bufferIndex,c=a.end._index,f=a.end._bufferIndex;let d;if(l===c)d=[t[l].slice(u,f)];else{if(d=t.slice(l,c),u>-1){const g=d[0];typeof g=="string"?d[0]=g.slice(u):d.shift()}f>0&&d.push(t[c].slice(0,f))}return d}function serializeChunks(t,a){let l=-1;const u=[];let c;for(;++l<t.length;){const f=t[l];let d;if(typeof f=="string")d=f;else switch(f){case-5:{d="\r";break}case-4:{d=`
|
|
133
|
+
*/const __iconNode$6=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],RefreshCw=createLucideIcon("refresh-cw",__iconNode$6);/**
|
|
134
|
+
* @license lucide-react v0.576.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const __iconNode$5=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],RotateCcw=createLucideIcon("rotate-ccw",__iconNode$5);/**
|
|
139
|
+
* @license lucide-react v0.576.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const __iconNode$4=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Send=createLucideIcon("send",__iconNode$4);/**
|
|
144
|
+
* @license lucide-react v0.576.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const __iconNode$3=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Trash2=createLucideIcon("trash-2",__iconNode$3);/**
|
|
149
|
+
* @license lucide-react v0.576.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const __iconNode$2=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],TriangleAlert=createLucideIcon("triangle-alert",__iconNode$2);/**
|
|
154
|
+
* @license lucide-react v0.576.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const __iconNode$1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],User=createLucideIcon("user",__iconNode$1);/**
|
|
159
|
+
* @license lucide-react v0.576.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const __iconNode=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],X=createLucideIcon("x",__iconNode);function HomeScreen({apps:t,transport:a,onOpenApp:l}){const[u,c]=reactExports.useState(null),[f,d]=reactExports.useState(!1);reactExports.useEffect(()=>(a.fetchState("_status").then(m=>{m!=null&&m.state&&c(m.state)}).catch(()=>{}),a.onState((m,x)=>{m==="_status"&&x.state&&c(x.state)})),[a]);const g=(u==null?void 0:u.setupRequired)&&!f;return jsxRuntimeExports.jsxs("div",{className:"flex flex-col h-full",children:[g&&jsxRuntimeExports.jsx(SetupWarningBanner,{message:u.message,onDismiss:()=>d(!0)}),jsxRuntimeExports.jsx(DefaultHomeGrid,{apps:t,onOpenApp:l})]})}function SetupWarningBanner({message:t,onDismiss:a}){return jsxRuntimeExports.jsxs("div",{className:"m-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg text-sm flex gap-3 items-start",children:[jsxRuntimeExports.jsx("span",{className:"shrink-0 text-base",children:"⚠️"}),jsxRuntimeExports.jsx("span",{className:"flex-1 whitespace-pre-line",children:t}),jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0",onClick:a,"aria-label":"Dismiss",children:jsxRuntimeExports.jsx(X,{className:"h-4 w-4"})})]})}function DefaultHomeGrid({apps:t,onOpenApp:a}){return t.length===0?jsxRuntimeExports.jsx("div",{className:"flex-1 flex items-center justify-center",children:jsxRuntimeExports.jsx("p",{className:"text-muted-foreground text-sm",children:"No apps registered yet."})}):jsxRuntimeExports.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:jsxRuntimeExports.jsx("div",{className:"grid grid-cols-4 gap-6 justify-center",children:t.map(l=>jsxRuntimeExports.jsxs("button",{onClick:()=>a(l.id),className:"flex flex-col items-center gap-1.5 bg-transparent border-none cursor-pointer text-foreground p-0 font-inherit group",children:[jsxRuntimeExports.jsx("div",{className:"w-[60px] h-[60px] rounded-2xl bg-gradient-to-br from-card to-accent/20 border border-border flex items-center justify-center text-[1.75rem] transition-transform group-hover:scale-105",children:l.emoji}),jsxRuntimeExports.jsx("span",{className:"text-[0.6875rem] text-center leading-tight max-w-[76px] line-clamp-2",children:l.name})]},l.id))})})}const createStoreImpl=t=>{let a;const l=new Set,u=(m,x)=>{const S=typeof m=="function"?m(a):m;if(!Object.is(S,a)){const A=a;a=x??(typeof S!="object"||S===null)?S:Object.assign({},a,S),l.forEach(C=>C(a,A))}},c=()=>a,g={setState:u,getState:c,getInitialState:()=>h,subscribe:m=>(l.add(m),()=>l.delete(m))},h=a=t(u,c,g);return g},createStore=(t=>t?createStoreImpl(t):createStoreImpl),identity=t=>t;function useStore(t,a=identity){const l=React.useSyncExternalStore(t.subscribe,React.useCallback(()=>a(t.getState()),[t,a]),React.useCallback(()=>a(t.getInitialState()),[t,a]));return React.useDebugValue(l),l}function createClappStore(){return createStore(t=>({state:{},version:-1,loading:!0,connected:!1,applyState:a=>t({state:a.state,version:a.version,loading:!1}),setConnected:a=>t({connected:a})}))}const ClappContext=reactExports.createContext(null);function ClappProvider({serverUrl:t,clappId:a,children:l,transport:u}){const c=reactExports.useRef(void 0),f=reactExports.useRef(void 0);return c.current||(c.current=createClappStore()),f.current||(f.current=u??new ClappTransport({serverUrl:t})),reactExports.useEffect(()=>{const d=c.current,g=f.current,h=g.onState((x,S)=>{x===a&&d.getState().applyState(S)}),m=g.onConnection(x=>{d.getState().setConnected(x)});return g.connect(),g.subscribe([a]),g.fetchState(a).then(x=>{x&&d.getState().applyState(x)}).catch(()=>{}),()=>{h(),m(),u||g.disconnect()}},[t,a,u]),jsxRuntimeExports.jsx(ClappContext.Provider,{value:{store:c.current,transport:f.current,clappId:a},children:l})}function useClappContext(){const t=reactExports.useContext(ClappContext);if(!t)throw new Error("useClappContext must be used within ClappProvider");return t}function useClappState(t){const{store:a}=useClappContext();return useStore(a,l=>{const u=t.split(".");let c=l.state;for(const f of u){if(c==null||typeof c!="object")return;c=c[f]}return c})}function useIntent(){const{transport:t,clappId:a}=useClappContext();return{emit:(l,u={})=>t.sendIntent(a,l,u)}}function ok$1(){}function unreachable(){}function stringify$2(t,a){const l={};return(t[t.length-1]===""?[...t,""]:t).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const nameRe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nameReJsx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,emptyOptions$3={};function name(t,a){return(emptyOptions$3.jsx?nameReJsx:nameRe).test(t)}const re=/[ \t\n\f\r]/g;function whitespace(t){return typeof t=="object"?t.type==="text"?empty$1(t.value):!1:empty$1(t)}function empty$1(t){return t.replace(re,"")===""}class Schema{constructor(a,l,u){this.normal=l,this.property=a,u&&(this.space=u)}}Schema.prototype.normal={};Schema.prototype.property={};Schema.prototype.space=void 0;function merge$1(t,a){const l={},u={};for(const c of t)Object.assign(l,c.property),Object.assign(u,c.normal);return new Schema(l,u,a)}function normalize$1(t){return t.toLowerCase()}class Info{constructor(a,l){this.attribute=l,this.property=a}}Info.prototype.attribute="";Info.prototype.booleanish=!1;Info.prototype.boolean=!1;Info.prototype.commaOrSpaceSeparated=!1;Info.prototype.commaSeparated=!1;Info.prototype.defined=!1;Info.prototype.mustUseProperty=!1;Info.prototype.number=!1;Info.prototype.overloadedBoolean=!1;Info.prototype.property="";Info.prototype.spaceSeparated=!1;Info.prototype.space=void 0;let powers=0;const boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const types=Object.freeze(Object.defineProperty({__proto__:null,boolean,booleanish,commaOrSpaceSeparated,commaSeparated,number,overloadedBoolean,spaceSeparated},Symbol.toStringTag,{value:"Module"})),checks=Object.keys(types);class DefinedInfo extends Info{constructor(a,l,u,c){let f=-1;if(super(a,l),mark$1(this,"space",c),typeof u=="number")for(;++f<checks.length;){const d=checks[f];mark$1(this,checks[f],(u&types[d])===types[d])}}}DefinedInfo.prototype.defined=!0;function mark$1(t,a,l){l&&(t[a]=l)}function create(t){const a={},l={};for(const[u,c]of Object.entries(t.properties)){const f=new DefinedInfo(u,t.transform(t.attributes||{},u),c,t.space);t.mustUseProperty&&t.mustUseProperty.includes(u)&&(f.mustUseProperty=!0),a[u]=f,l[normalize$1(u)]=u,l[normalize$1(f.attribute)]=u}return new Schema(a,l,t.space)}const aria=create({properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number,ariaColIndex:number,ariaColSpan:number,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number,ariaRowIndex:number,ariaRowSpan:number,ariaSelected:booleanish,ariaSetSize:number,ariaSort:null,ariaValueMax:number,ariaValueMin:number,ariaValueNow:number,ariaValueText:null,role:null},transform(t,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function caseSensitiveTransform(t,a){return a in t?t[a]:a}function caseInsensitiveTransform(t,a){return caseSensitiveTransform(t,a.toLowerCase())}const html$3=create({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:boolean,allowPaymentRequest:boolean,allowUserMedia:boolean,alt:null,as:null,async:boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:boolean,autoPlay:boolean,blocking:spaceSeparated,capture:null,charSet:null,checked:boolean,cite:null,className:spaceSeparated,cols:number,colSpan:null,content:null,contentEditable:booleanish,controls:boolean,controlsList:spaceSeparated,coords:number|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean,defer:boolean,dir:null,dirName:null,disabled:boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean,formTarget:null,headers:spaceSeparated,height:number,hidden:overloadedBoolean,high:number,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:boolean,inputMode:null,integrity:null,is:null,isMap:boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean,low:number,manifest:null,max:null,maxLength:number,media:null,method:null,min:null,minLength:number,multiple:boolean,muted:boolean,name:null,nonce:null,noModule:boolean,noValidate:boolean,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:boolean,optimum:number,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:boolean,referrerPolicy:null,rel:spaceSeparated,required:boolean,reversed:boolean,rows:number,rowSpan:number,sandbox:spaceSeparated,scope:null,scoped:boolean,seamless:boolean,selected:boolean,shadowRootClonable:boolean,shadowRootDelegatesFocus:boolean,shadowRootMode:null,shape:null,size:number,sizes:null,slot:null,span:number,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number,step:null,style:null,tabIndex:number,target:null,title:null,translate:null,type:null,typeMustMatch:boolean,useMap:null,value:booleanish,width:number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:spaceSeparated,axis:null,background:null,bgColor:null,border:number,borderColor:null,bottomMargin:number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:boolean,declare:boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:number,leftMargin:number,link:null,longDesc:null,lowSrc:null,marginHeight:number,marginWidth:number,noResize:boolean,noHref:boolean,noShade:boolean,noWrap:boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:number,rules:null,scheme:null,scrolling:booleanish,standby:null,summary:null,text:null,topMargin:number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean,disableRemotePlayback:boolean,prefix:null,property:null,results:number,security:null,unselectable:null},space:"html",transform:caseInsensitiveTransform}),svg$1=create({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:commaOrSpaceSeparated,accentHeight:number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number,amplitude:number,arabicForm:null,ascent:number,attributeName:null,attributeType:null,azimuth:number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number,by:null,calcMode:null,capHeight:number,className:spaceSeparated,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:number,diffuseConstant:number,direction:null,display:null,dur:null,divisor:number,dominantBaseline:null,download:boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number,enableBackground:null,end:null,event:null,exponent:number,externalResourcesRequired:null,fill:null,fillOpacity:number,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:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number,horizOriginX:number,horizOriginY:number,id:null,ideographic:number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number,k:number,k1:number,k2:number,k3:number,k4:number,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number,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:number,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:number,overlineThickness:number,paintOrder:null,panose1:null,path:null,pathLength:number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number,pointsAtY:number,pointsAtZ:number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,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:number,specularExponent:number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number,strikethroughThickness:number,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number,strokeOpacity:number,strokeWidth:null,style:null,surfaceScale:number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number,tableValues:null,target:null,targetX:number,targetY:number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number,underlineThickness:number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number,values:null,vAlphabetic:number,vMathematical:number,vectorEffect:null,vHanging:number,vIdeographic:number,version:null,vertAdvY:number,vertOriginX:number,vertOriginY:number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:caseSensitiveTransform}),xlink=create({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,a){return"xlink:"+a.slice(5).toLowerCase()}}),xmlns=create({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:caseInsensitiveTransform}),xml=create({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,a){return"xml:"+a.slice(3).toLowerCase()}}),hastToReact={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"},cap$1=/[A-Z]/g,dash=/-[a-z]/g,valid=/^data[-\w.:]+$/i;function find(t,a){const l=normalize$1(a);let u=a,c=Info;if(l in t.normal)return t.property[t.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&valid.test(a)){if(a.charAt(4)==="-"){const f=a.slice(5).replace(dash,camelcase);u="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=a.slice(4);if(!dash.test(f)){let d=f.replace(cap$1,kebab);d.charAt(0)!=="-"&&(d="-"+d),a="data"+d}}c=DefinedInfo}return new c(u,a)}function kebab(t){return"-"+t.toLowerCase()}function camelcase(t){return t.charAt(1).toUpperCase()}const html$2=merge$1([aria,html$3,xlink,xmlns,xml],"html"),svg=merge$1([aria,svg$1,xlink,xmlns,xml],"svg");function stringify$1(t){return t.join(" ").trim()}var cjs$2={},cjs$1,hasRequiredCjs$2;function requireCjs$2(){if(hasRequiredCjs$2)return cjs$1;hasRequiredCjs$2=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,l=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,c=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,g=/^\s+|\s+$/g,h=`
|
|
164
|
+
`,m="/",x="*",S="",A="comment",C="declaration";function O(P,q){if(typeof P!="string")throw new TypeError("First argument must be a string");if(!P)return[];q=q||{};var ne=1,Y=1;function pe(xe){var he=xe.match(a);he&&(ne+=he.length);var H=xe.lastIndexOf(h);Y=~H?xe.length-H:Y+xe.length}function ye(){var xe={line:ne,column:Y};return function(he){return he.position=new Q(xe),ke(),he}}function Q(xe){this.start=xe,this.end={line:ne,column:Y},this.source=q.source}Q.prototype.content=P;function be(xe){var he=new Error(q.source+":"+ne+":"+Y+": "+xe);if(he.reason=xe,he.filename=q.source,he.line=ne,he.column=Y,he.source=P,!q.silent)throw he}function ue(xe){var he=xe.exec(P);if(he){var H=he[0];return pe(H),P=P.slice(H.length),he}}function ke(){ue(l)}function F(xe){var he;for(xe=xe||[];he=ve();)he!==!1&&xe.push(he);return xe}function ve(){var xe=ye();if(!(m!=P.charAt(0)||x!=P.charAt(1))){for(var he=2;S!=P.charAt(he)&&(x!=P.charAt(he)||m!=P.charAt(he+1));)++he;if(he+=2,S===P.charAt(he-1))return be("End of comment missing");var H=P.slice(2,he-2);return Y+=2,pe(H),P=P.slice(he),Y+=2,xe({type:A,comment:H})}}function ee(){var xe=ye(),he=ue(u);if(he){if(ve(),!ue(c))return be("property missing ':'");var H=ue(f),de=xe({type:C,property:Z(he[0].replace(t,S)),value:H?Z(H[0].replace(t,S)):S});return ue(d),de}}function Ae(){var xe=[];F(xe);for(var he;he=ee();)he!==!1&&(xe.push(he),F(xe));return xe}return ke(),Ae()}function Z(P){return P?P.replace(g,S):S}return cjs$1=O,cjs$1}var hasRequiredCjs$1;function requireCjs$1(){if(hasRequiredCjs$1)return cjs$2;hasRequiredCjs$1=1;var t=cjs$2&&cjs$2.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(cjs$2,"__esModule",{value:!0}),cjs$2.default=l;const a=t(requireCjs$2());function l(u,c){let f=null;if(!u||typeof u!="string")return f;const d=(0,a.default)(u),g=typeof c=="function";return d.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:x}=h;g?c(m,x,h):x&&(f=f||{},f[m]=x)}),f}return cjs$2}var utilities={},hasRequiredUtilities;function requireUtilities(){if(hasRequiredUtilities)return utilities;hasRequiredUtilities=1,Object.defineProperty(utilities,"__esModule",{value:!0}),utilities.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,l=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,c=/^-(ms)-/,f=function(m){return!m||l.test(m)||t.test(m)},d=function(m,x){return x.toUpperCase()},g=function(m,x){return"".concat(x,"-")},h=function(m,x){return x===void 0&&(x={}),f(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(c,g):m=m.replace(u,g),m.replace(a,d))};return utilities.camelCase=h,utilities}var cjs,hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var t=cjs&&cjs.__importDefault||function(c){return c&&c.__esModule?c:{default:c}},a=t(requireCjs$1()),l=requireUtilities();function u(c,f){var d={};return!c||typeof c!="string"||(0,a.default)(c,function(g,h){g&&h&&(d[(0,l.camelCase)(g,f)]=h)}),d}return u.default=u,cjs=u,cjs}var cjsExports=requireCjs();const styleToJs=getDefaultExportFromCjs$1(cjsExports),pointEnd=point$2("end"),pointStart=point$2("start");function point$2(t){return a;function a(l){const u=l&&l.position&&l.position[t]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function position$1(t){const a=pointStart(t),l=pointEnd(t);if(a&&l)return{start:a,end:l}}function stringifyPosition(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?position(t.position):"start"in t||"end"in t?position(t):"line"in t||"column"in t?point$1(t):""}function point$1(t){return index(t&&t.line)+":"+index(t&&t.column)}function position(t){return point$1(t&&t.start)+"-"+point$1(t&&t.end)}function index(t){return t&&typeof t=="number"?t:1}class VFileMessage extends Error{constructor(a,l,u){super(),typeof l=="string"&&(u=l,l=void 0);let c="",f={},d=!1;if(l&&("line"in l&&"column"in l?f={place:l}:"start"in l&&"end"in l?f={place:l}:"type"in l?f={ancestors:[l],place:l.position}:f={...l}),typeof a=="string"?c=a:!f.cause&&a&&(d=!0,c=a.message,f.cause=a),!f.ruleId&&!f.source&&typeof u=="string"){const h=u.indexOf(":");h===-1?f.ruleId=u:(f.source=u.slice(0,h),f.ruleId=u.slice(h+1))}if(!f.place&&f.ancestors&&f.ancestors){const h=f.ancestors[f.ancestors.length-1];h&&(f.place=h.position)}const g=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=c,this.line=g?g.line:void 0,this.name=stringifyPosition(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=d&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.column=void 0;VFileMessage.prototype.line=void 0;VFileMessage.prototype.ancestors=void 0;VFileMessage.prototype.cause=void 0;VFileMessage.prototype.fatal=void 0;VFileMessage.prototype.place=void 0;VFileMessage.prototype.ruleId=void 0;VFileMessage.prototype.source=void 0;const own$3={}.hasOwnProperty,emptyMap=new Map,cap=/[A-Z]/g,tableElements=new Set(["table","tbody","thead","tfoot","tr"]),tableCellElement=new Set(["td","th"]),docs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function toJsxRuntime(t,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=developmentCreate(l,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=productionCreate(l,a.jsx,a.jsxs)}const c={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?svg:html$2,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},f=one$1(c,t,void 0);return f&&typeof f!="string"?f:c.create(t,c.Fragment,{children:f||void 0},void 0)}function one$1(t,a,l){if(a.type==="element")return element$1(t,a,l);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return mdxExpression(t,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return mdxJsxElement(t,a,l);if(a.type==="mdxjsEsm")return mdxEsm(t,a);if(a.type==="root")return root$2(t,a,l);if(a.type==="text")return text$5(t,a)}function element$1(t,a,l){const u=t.schema;let c=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(c=svg,t.schema=c),t.ancestors.push(a);const f=findComponentFromName(t,a.tagName,!1),d=createElementProps(t,a);let g=createChildren(t,a);return tableElements.has(a.tagName)&&(g=g.filter(function(h){return typeof h=="string"?!whitespace(h):!0})),addNode(t,d,f,a),addChildren(d,g),t.ancestors.pop(),t.schema=u,t.create(a,f,d,l)}function mdxExpression(t,a){if(a.data&&a.data.estree&&t.evaluater){const u=a.data.estree.body[0];return u.type,t.evaluater.evaluateExpression(u.expression)}crashEstree(t,a.position)}function mdxEsm(t,a){if(a.data&&a.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(a.data.estree);crashEstree(t,a.position)}function mdxJsxElement(t,a,l){const u=t.schema;let c=u;a.name==="svg"&&u.space==="html"&&(c=svg,t.schema=c),t.ancestors.push(a);const f=a.name===null?t.Fragment:findComponentFromName(t,a.name,!0),d=createJsxElementProps(t,a),g=createChildren(t,a);return addNode(t,d,f,a),addChildren(d,g),t.ancestors.pop(),t.schema=u,t.create(a,f,d,l)}function root$2(t,a,l){const u={};return addChildren(u,createChildren(t,a)),t.create(a,t.Fragment,u,l)}function text$5(t,a){return a.value}function addNode(t,a,l,u){typeof l!="string"&&l!==t.Fragment&&t.passNode&&(a.node=u)}function addChildren(t,a){if(a.length>0){const l=a.length>1?a:a[0];l&&(t.children=l)}}function productionCreate(t,a,l){return u;function u(c,f,d,g){const m=Array.isArray(d.children)?l:a;return g?m(f,d,g):m(f,d)}}function developmentCreate(t,a){return l;function l(u,c,f,d){const g=Array.isArray(f.children),h=pointStart(u);return a(c,f,d,g,{columnNumber:h?h.column-1:void 0,fileName:t,lineNumber:h?h.line:void 0},void 0)}}function createElementProps(t,a){const l={};let u,c;for(c in a.properties)if(c!=="children"&&own$3.call(a.properties,c)){const f=createProperty(t,c,a.properties[c]);if(f){const[d,g]=f;t.tableCellAlignToStyle&&d==="align"&&typeof g=="string"&&tableCellElement.has(a.tagName)?u=g:l[d]=g}}if(u){const f=l.style||(l.style={});f[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return l}function createJsxElementProps(t,a){const l={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&t.evaluater){const f=u.data.estree.body[0];f.type;const d=f.expression;d.type;const g=d.properties[0];g.type,Object.assign(l,t.evaluater.evaluateExpression(g.argument))}else crashEstree(t,a.position);else{const c=u.name;let f;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&t.evaluater){const g=u.value.data.estree.body[0];g.type,f=t.evaluater.evaluateExpression(g.expression)}else crashEstree(t,a.position);else f=u.value===null?!0:u.value;l[c]=f}return l}function createChildren(t,a){const l=[];let u=-1;const c=t.passKeys?new Map:emptyMap;for(;++u<a.children.length;){const f=a.children[u];let d;if(t.passKeys){const h=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(h){const m=c.get(h)||0;d=h+"-"+m,c.set(h,m+1)}}const g=one$1(t,f,d);g!==void 0&&l.push(g)}return l}function createProperty(t,a,l){const u=find(t.schema,a);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=u.commaSeparated?stringify$2(l):stringify$1(l)),u.property==="style"){let c=typeof l=="object"?l:parseStyle(t,String(l));return t.stylePropertyNameCase==="css"&&(c=transformStylesToCssCasing(c)),["style",c]}return[t.elementAttributeNameCase==="react"&&u.space?hastToReact[u.property]||u.property:u.attribute,l]}}function parseStyle(t,a){try{return styleToJs(a,{reactCompat:!0})}catch(l){if(t.ignoreInvalidStyle)return{};const u=l,c=new VFileMessage("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=t.filePath||void 0,c.url=docs+"#cannot-parse-style-attribute",c}}function findComponentFromName(t,a,l){let u;if(!l)u={type:"Literal",value:a};else if(a.includes(".")){const c=a.split(".");let f=-1,d;for(;++f<c.length;){const g=name(c[f])?{type:"Identifier",name:c[f]}:{type:"Literal",value:c[f]};d=d?{type:"MemberExpression",object:d,property:g,computed:!!(f&&g.type==="Literal"),optional:!1}:g}u=d}else u=name(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const c=u.value;return own$3.call(t.components,c)?t.components[c]:c}if(t.evaluater)return t.evaluater.evaluateExpression(u);crashEstree(t)}function crashEstree(t,a){const l=new VFileMessage("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=t.filePath||void 0,l.url=docs+"#cannot-handle-mdx-estrees-without-createevaluater",l}function transformStylesToCssCasing(t){const a={};let l;for(l in t)own$3.call(t,l)&&(a[transformStyleToCssCasing(l)]=t[l]);return a}function transformStyleToCssCasing(t){let a=t.replace(cap,toDash);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function toDash(t){return"-"+t.toLowerCase()}const urlAttributes={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"]},emptyOptions$2={};function toString$1(t,a){const l=emptyOptions$2,u=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,c=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return one(t,u,c)}function one(t,a,l){if(node(t)){if("value"in t)return t.type==="html"&&!l?"":t.value;if(a&&"alt"in t&&t.alt)return t.alt;if("children"in t)return all(t.children,a,l)}return Array.isArray(t)?all(t,a,l):""}function all(t,a,l){const u=[];let c=-1;for(;++c<t.length;)u[c]=one(t[c],a,l);return u.join("")}function node(t){return!!(t&&typeof t=="object")}const element=document.createElement("i");function decodeNamedCharacterReference(t){const a="&"+t+";";element.innerHTML=a;const l=element.textContent;return l.charCodeAt(l.length-1)===59&&t!=="semi"||l===a?!1:l}function splice(t,a,l,u){const c=t.length;let f=0,d;if(a<0?a=-a>c?0:c+a:a=a>c?c:a,l=l>0?l:0,u.length<1e4)d=Array.from(u),d.unshift(a,l),t.splice(...d);else for(l&&t.splice(a,l);f<u.length;)d=u.slice(f,f+1e4),d.unshift(a,0),t.splice(...d),f+=1e4,a+=1e4}function push(t,a){return t.length>0?(splice(t,t.length,0,a),t):a}const hasOwnProperty={}.hasOwnProperty;function combineExtensions(t){const a={};let l=-1;for(;++l<t.length;)syntaxExtension(a,t[l]);return a}function syntaxExtension(t,a){let l;for(l in a){const c=(hasOwnProperty.call(t,l)?t[l]:void 0)||(t[l]={}),f=a[l];let d;if(f)for(d in f){hasOwnProperty.call(c,d)||(c[d]=[]);const g=f[d];constructs(c[d],Array.isArray(g)?g:g?[g]:[])}}}function constructs(t,a){let l=-1;const u=[];for(;++l<a.length;)(a[l].add==="after"?t:u).push(a[l]);splice(t,0,0,u)}function decodeNumericCharacterReference(t,a){const l=Number.parseInt(t,a);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function normalizeIdentifier(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(t){return t!==null&&(t<32||t===127)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(t){return t!==null&&t<-2}function markdownLineEndingOrSpace(t){return t!==null&&(t<0||t===32)}function markdownSpace(t){return t===-2||t===-1||t===32}const unicodePunctuation=regexCheck(new RegExp("\\p{P}|\\p{S}","u")),unicodeWhitespace=regexCheck(/\s/);function regexCheck(t){return a;function a(l){return l!==null&&l>-1&&t.test(String.fromCharCode(l))}}function normalizeUri(t){const a=[];let l=-1,u=0,c=0;for(;++l<t.length;){const f=t.charCodeAt(l);let d="";if(f===37&&asciiAlphanumeric(t.charCodeAt(l+1))&&asciiAlphanumeric(t.charCodeAt(l+2)))c=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(d=String.fromCharCode(f));else if(f>55295&&f<57344){const g=t.charCodeAt(l+1);f<56320&&g>56319&&g<57344?(d=String.fromCharCode(f,g),c=1):d="�"}else d=String.fromCharCode(f);d&&(a.push(t.slice(u,l),encodeURIComponent(d)),u=l+c+1,d=""),c&&(l+=c,c=0)}return a.join("")+t.slice(u)}function factorySpace(t,a,l,u){const c=u?u-1:Number.POSITIVE_INFINITY;let f=0;return d;function d(h){return markdownSpace(h)?(t.enter(l),g(h)):a(h)}function g(h){return markdownSpace(h)&&f++<c?(t.consume(h),g):(t.exit(l),a(h))}}const content$1={tokenize:initializeContent};function initializeContent(t){const a=t.attempt(this.parser.constructs.contentInitial,u,c);let l;return a;function u(g){if(g===null){t.consume(g);return}return t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),factorySpace(t,a,"linePrefix")}function c(g){return t.enter("paragraph"),f(g)}function f(g){const h=t.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=h),l=h,d(g)}function d(g){if(g===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(g);return}return markdownLineEnding(g)?(t.consume(g),t.exit("chunkText"),f):(t.consume(g),d)}}const document$2={tokenize:initializeDocument},containerConstruct={tokenize:tokenizeContainer};function initializeDocument(t){const a=this,l=[];let u=0,c,f,d;return g;function g(Y){if(u<l.length){const pe=l[u];return a.containerState=pe[1],t.attempt(pe[0].continuation,h,m)(Y)}return m(Y)}function h(Y){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,c&&ne();const pe=a.events.length;let ye=pe,Q;for(;ye--;)if(a.events[ye][0]==="exit"&&a.events[ye][1].type==="chunkFlow"){Q=a.events[ye][1].end;break}q(u);let be=pe;for(;be<a.events.length;)a.events[be][1].end={...Q},be++;return splice(a.events,ye+1,0,a.events.slice(pe)),a.events.length=be,m(Y)}return g(Y)}function m(Y){if(u===l.length){if(!c)return A(Y);if(c.currentConstruct&&c.currentConstruct.concrete)return O(Y);a.interrupt=!!(c.currentConstruct&&!c._gfmTableDynamicInterruptHack)}return a.containerState={},t.check(containerConstruct,x,S)(Y)}function x(Y){return c&&ne(),q(u),A(Y)}function S(Y){return a.parser.lazy[a.now().line]=u!==l.length,d=a.now().offset,O(Y)}function A(Y){return a.containerState={},t.attempt(containerConstruct,C,O)(Y)}function C(Y){return u++,l.push([a.currentConstruct,a.containerState]),A(Y)}function O(Y){if(Y===null){c&&ne(),q(0),t.consume(Y);return}return c=c||a.parser.flow(a.now()),t.enter("chunkFlow",{_tokenizer:c,contentType:"flow",previous:f}),Z(Y)}function Z(Y){if(Y===null){P(t.exit("chunkFlow"),!0),q(0),t.consume(Y);return}return markdownLineEnding(Y)?(t.consume(Y),P(t.exit("chunkFlow")),u=0,a.interrupt=void 0,g):(t.consume(Y),Z)}function P(Y,pe){const ye=a.sliceStream(Y);if(pe&&ye.push(null),Y.previous=f,f&&(f.next=Y),f=Y,c.defineSkip(Y.start),c.write(ye),a.parser.lazy[Y.start.line]){let Q=c.events.length;for(;Q--;)if(c.events[Q][1].start.offset<d&&(!c.events[Q][1].end||c.events[Q][1].end.offset>d))return;const be=a.events.length;let ue=be,ke,F;for(;ue--;)if(a.events[ue][0]==="exit"&&a.events[ue][1].type==="chunkFlow"){if(ke){F=a.events[ue][1].end;break}ke=!0}for(q(u),Q=be;Q<a.events.length;)a.events[Q][1].end={...F},Q++;splice(a.events,ue+1,0,a.events.slice(be)),a.events.length=Q}}function q(Y){let pe=l.length;for(;pe-- >Y;){const ye=l[pe];a.containerState=ye[1],ye[0].exit.call(a,t)}l.length=Y}function ne(){c.write([null]),f=void 0,c=void 0,a.containerState._closeFlow=void 0}}function tokenizeContainer(t,a,l){return factorySpace(t,t.attempt(this.parser.constructs.document,a,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(t){if(t===null||markdownLineEndingOrSpace(t)||unicodeWhitespace(t))return 1;if(unicodePunctuation(t))return 2}function resolveAll(t,a,l){const u=[];let c=-1;for(;++c<t.length;){const f=t[c].resolveAll;f&&!u.includes(f)&&(a=f(a,l),u.push(f))}return a}const attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(t,a){let l=-1,u,c,f,d,g,h,m,x;for(;++l<t.length;)if(t[l][0]==="enter"&&t[l][1].type==="attentionSequence"&&t[l][1]._close){for(u=l;u--;)if(t[u][0]==="exit"&&t[u][1].type==="attentionSequence"&&t[u][1]._open&&a.sliceSerialize(t[u][1]).charCodeAt(0)===a.sliceSerialize(t[l][1]).charCodeAt(0)){if((t[u][1]._close||t[l][1]._open)&&(t[l][1].end.offset-t[l][1].start.offset)%3&&!((t[u][1].end.offset-t[u][1].start.offset+t[l][1].end.offset-t[l][1].start.offset)%3))continue;h=t[u][1].end.offset-t[u][1].start.offset>1&&t[l][1].end.offset-t[l][1].start.offset>1?2:1;const S={...t[u][1].end},A={...t[l][1].start};movePoint(S,-h),movePoint(A,h),d={type:h>1?"strongSequence":"emphasisSequence",start:S,end:{...t[u][1].end}},g={type:h>1?"strongSequence":"emphasisSequence",start:{...t[l][1].start},end:A},f={type:h>1?"strongText":"emphasisText",start:{...t[u][1].end},end:{...t[l][1].start}},c={type:h>1?"strong":"emphasis",start:{...d.start},end:{...g.end}},t[u][1].end={...d.start},t[l][1].start={...g.end},m=[],t[u][1].end.offset-t[u][1].start.offset&&(m=push(m,[["enter",t[u][1],a],["exit",t[u][1],a]])),m=push(m,[["enter",c,a],["enter",d,a],["exit",d,a],["enter",f,a]]),m=push(m,resolveAll(a.parser.constructs.insideSpan.null,t.slice(u+1,l),a)),m=push(m,[["exit",f,a],["enter",g,a],["exit",g,a],["exit",c,a]]),t[l][1].end.offset-t[l][1].start.offset?(x=2,m=push(m,[["enter",t[l][1],a],["exit",t[l][1],a]])):x=0,splice(t,u-1,l-u+3,m),l=u+m.length-x-2;break}}for(l=-1;++l<t.length;)t[l][1].type==="attentionSequence"&&(t[l][1].type="data");return t}function tokenizeAttention(t,a){const l=this.parser.constructs.attentionMarkers.null,u=this.previous,c=classifyCharacter(u);let f;return d;function d(h){return f=h,t.enter("attentionSequence"),g(h)}function g(h){if(h===f)return t.consume(h),g;const m=t.exit("attentionSequence"),x=classifyCharacter(h),S=!x||x===2&&c||l.includes(h),A=!c||c===2&&x||l.includes(u);return m._open=!!(f===42?S:S&&(c||!A)),m._close=!!(f===42?A:A&&(x||!S)),a(h)}}function movePoint(t,a){t.column+=a,t.offset+=a,t._bufferIndex+=a}const autolink={name:"autolink",tokenize:tokenizeAutolink};function tokenizeAutolink(t,a,l){let u=0;return c;function c(C){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),f}function f(C){return asciiAlpha(C)?(t.consume(C),d):C===64?l(C):m(C)}function d(C){return C===43||C===45||C===46||asciiAlphanumeric(C)?(u=1,g(C)):m(C)}function g(C){return C===58?(t.consume(C),u=0,h):(C===43||C===45||C===46||asciiAlphanumeric(C))&&u++<32?(t.consume(C),g):(u=0,m(C))}function h(C){return C===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),a):C===null||C===32||C===60||asciiControl(C)?l(C):(t.consume(C),h)}function m(C){return C===64?(t.consume(C),x):asciiAtext(C)?(t.consume(C),m):l(C)}function x(C){return asciiAlphanumeric(C)?S(C):l(C)}function S(C){return C===46?(t.consume(C),u=0,x):C===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),a):A(C)}function A(C){if((C===45||asciiAlphanumeric(C))&&u++<63){const O=C===45?A:S;return t.consume(C),O}return l(C)}}const blankLine={partial:!0,tokenize:tokenizeBlankLine};function tokenizeBlankLine(t,a,l){return u;function u(f){return markdownSpace(f)?factorySpace(t,c,"linePrefix")(f):c(f)}function c(f){return f===null||markdownLineEnding(f)?a(f):l(f)}}const blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit:exit$1,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(t,a,l){const u=this;return c;function c(d){if(d===62){const g=u.containerState;return g.open||(t.enter("blockQuote",{_container:!0}),g.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(d),t.exit("blockQuoteMarker"),f}return l(d)}function f(d){return markdownSpace(d)?(t.enter("blockQuotePrefixWhitespace"),t.consume(d),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),a):(t.exit("blockQuotePrefix"),a(d))}}function tokenizeBlockQuoteContinuation(t,a,l){const u=this;return c;function c(d){return markdownSpace(d)?factorySpace(t,f,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):f(d)}function f(d){return t.attempt(blockQuote,a,l)(d)}}function exit$1(t){t.exit("blockQuote")}const characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(t,a,l){return u;function u(f){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(f),t.exit("escapeMarker"),c}function c(f){return asciiPunctuation(f)?(t.enter("characterEscapeValue"),t.consume(f),t.exit("characterEscapeValue"),t.exit("characterEscape"),a):l(f)}}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(t,a,l){const u=this;let c=0,f,d;return g;function g(S){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(S),t.exit("characterReferenceMarker"),h}function h(S){return S===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(S),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),f=31,d=asciiAlphanumeric,x(S))}function m(S){return S===88||S===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(S),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),f=6,d=asciiHexDigit,x):(t.enter("characterReferenceValue"),f=7,d=asciiDigit,x(S))}function x(S){if(S===59&&c){const A=t.exit("characterReferenceValue");return d===asciiAlphanumeric&&!decodeNamedCharacterReference(u.sliceSerialize(A))?l(S):(t.enter("characterReferenceMarker"),t.consume(S),t.exit("characterReferenceMarker"),t.exit("characterReference"),a)}return d(S)&&c++<f?(t.consume(S),x):l(S)}}const nonLazyContinuation={partial:!0,tokenize:tokenizeNonLazyContinuation},codeFenced={concrete:!0,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(t,a,l){const u=this,c={partial:!0,tokenize:ye};let f=0,d=0,g;return h;function h(Q){return m(Q)}function m(Q){const be=u.events[u.events.length-1];return f=be&&be[1].type==="linePrefix"?be[2].sliceSerialize(be[1],!0).length:0,g=Q,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),x(Q)}function x(Q){return Q===g?(d++,t.consume(Q),x):d<3?l(Q):(t.exit("codeFencedFenceSequence"),markdownSpace(Q)?factorySpace(t,S,"whitespace")(Q):S(Q))}function S(Q){return Q===null||markdownLineEnding(Q)?(t.exit("codeFencedFence"),u.interrupt?a(Q):t.check(nonLazyContinuation,Z,pe)(Q)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),A(Q))}function A(Q){return Q===null||markdownLineEnding(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),S(Q)):markdownSpace(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),factorySpace(t,C,"whitespace")(Q)):Q===96&&Q===g?l(Q):(t.consume(Q),A)}function C(Q){return Q===null||markdownLineEnding(Q)?S(Q):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),O(Q))}function O(Q){return Q===null||markdownLineEnding(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),S(Q)):Q===96&&Q===g?l(Q):(t.consume(Q),O)}function Z(Q){return t.attempt(c,pe,P)(Q)}function P(Q){return t.enter("lineEnding"),t.consume(Q),t.exit("lineEnding"),q}function q(Q){return f>0&&markdownSpace(Q)?factorySpace(t,ne,"linePrefix",f+1)(Q):ne(Q)}function ne(Q){return Q===null||markdownLineEnding(Q)?t.check(nonLazyContinuation,Z,pe)(Q):(t.enter("codeFlowValue"),Y(Q))}function Y(Q){return Q===null||markdownLineEnding(Q)?(t.exit("codeFlowValue"),ne(Q)):(t.consume(Q),Y)}function pe(Q){return t.exit("codeFenced"),a(Q)}function ye(Q,be,ue){let ke=0;return F;function F(he){return Q.enter("lineEnding"),Q.consume(he),Q.exit("lineEnding"),ve}function ve(he){return Q.enter("codeFencedFence"),markdownSpace(he)?factorySpace(Q,ee,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(he):ee(he)}function ee(he){return he===g?(Q.enter("codeFencedFenceSequence"),Ae(he)):ue(he)}function Ae(he){return he===g?(ke++,Q.consume(he),Ae):ke>=d?(Q.exit("codeFencedFenceSequence"),markdownSpace(he)?factorySpace(Q,xe,"whitespace")(he):xe(he)):ue(he)}function xe(he){return he===null||markdownLineEnding(he)?(Q.exit("codeFencedFence"),be(he)):ue(he)}}}function tokenizeNonLazyContinuation(t,a,l){const u=this;return c;function c(d){return d===null?l(d):(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),f)}function f(d){return u.parser.lazy[u.now().line]?l(d):a(d)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(t,a,l){const u=this;return c;function c(m){return t.enter("codeIndented"),factorySpace(t,f,"linePrefix",5)(m)}function f(m){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?d(m):l(m)}function d(m){return m===null?h(m):markdownLineEnding(m)?t.attempt(furtherStart,d,h)(m):(t.enter("codeFlowValue"),g(m))}function g(m){return m===null||markdownLineEnding(m)?(t.exit("codeFlowValue"),d(m)):(t.consume(m),g)}function h(m){return t.exit("codeIndented"),a(m)}}function tokenizeFurtherStart(t,a,l){const u=this;return c;function c(d){return u.parser.lazy[u.now().line]?l(d):markdownLineEnding(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),c):factorySpace(t,f,"linePrefix",5)(d)}function f(d){const g=u.events[u.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(d):markdownLineEnding(d)?c(d):l(d)}}const codeText={name:"codeText",previous:previous$1,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(t){let a=t.length-4,l=3,u,c;if((t[l][1].type==="lineEnding"||t[l][1].type==="space")&&(t[a][1].type==="lineEnding"||t[a][1].type==="space")){for(u=l;++u<a;)if(t[u][1].type==="codeTextData"){t[l][1].type="codeTextPadding",t[a][1].type="codeTextPadding",l+=2,a-=2;break}}for(u=l-1,a++;++u<=a;)c===void 0?u!==a&&t[u][1].type!=="lineEnding"&&(c=u):(u===a||t[u][1].type==="lineEnding")&&(t[c][1].type="codeTextData",u!==c+2&&(t[c][1].end=t[u-1][1].end,t.splice(c+2,u-c-2),a-=u-c-2,u=c+2),c=void 0);return t}function previous$1(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeCodeText(t,a,l){let u=0,c,f;return d;function d(S){return t.enter("codeText"),t.enter("codeTextSequence"),g(S)}function g(S){return S===96?(t.consume(S),u++,g):(t.exit("codeTextSequence"),h(S))}function h(S){return S===null?l(S):S===32?(t.enter("space"),t.consume(S),t.exit("space"),h):S===96?(f=t.enter("codeTextSequence"),c=0,x(S)):markdownLineEnding(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),h):(t.enter("codeTextData"),m(S))}function m(S){return S===null||S===32||S===96||markdownLineEnding(S)?(t.exit("codeTextData"),h(S)):(t.consume(S),m)}function x(S){return S===96?(t.consume(S),c++,x):c===u?(t.exit("codeTextSequence"),t.exit("codeText"),a(S)):(f.type="codeTextData",m(S))}}class SpliceBuffer{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,l){const u=l??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,l,u){const c=l||0;this.setCursor(Math.trunc(a));const f=this.right.splice(this.right.length-c,Number.POSITIVE_INFINITY);return u&&chunkedPush(this.left,u),f.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),chunkedPush(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),chunkedPush(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const l=this.left.splice(a,Number.POSITIVE_INFINITY);chunkedPush(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);chunkedPush(this.left,l.reverse())}}}function chunkedPush(t,a){let l=0;if(a.length<1e4)t.push(...a);else for(;l<a.length;)t.push(...a.slice(l,l+1e4)),l+=1e4}function subtokenize(t){const a={};let l=-1,u,c,f,d,g,h,m;const x=new SpliceBuffer(t);for(;++l<x.length;){for(;l in a;)l=a[l];if(u=x.get(l),l&&u[1].type==="chunkFlow"&&x.get(l-1)[1].type==="listItemPrefix"&&(h=u[1]._tokenizer.events,f=0,f<h.length&&h[f][1].type==="lineEndingBlank"&&(f+=2),f<h.length&&h[f][1].type==="content"))for(;++f<h.length&&h[f][1].type!=="content";)h[f][1].type==="chunkText"&&(h[f][1]._isInFirstContentOfListItem=!0,f++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,subcontent(x,l)),l=a[l],m=!0);else if(u[1]._container){for(f=l,c=void 0;f--;)if(d=x.get(f),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(c&&(x.get(c)[1].type="lineEndingBlank"),d[1].type="lineEnding",c=f);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;c&&(u[1].end={...x.get(c)[1].start},g=x.slice(c,l),g.unshift(u),x.splice(c,l-c+1,g))}}return splice(t,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function subcontent(t,a){const l=t.get(a)[1],u=t.get(a)[2];let c=a-1;const f=[];let d=l._tokenizer;d||(d=u.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const g=d.events,h=[],m={};let x,S,A=-1,C=l,O=0,Z=0;const P=[Z];for(;C;){for(;t.get(++c)[1]!==C;);f.push(c),C._tokenizer||(x=u.sliceStream(C),C.next||x.push(null),S&&d.defineSkip(C.start),C._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(x),C._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),S=C,C=C.next}for(C=l;++A<g.length;)g[A][0]==="exit"&&g[A-1][0]==="enter"&&g[A][1].type===g[A-1][1].type&&g[A][1].start.line!==g[A][1].end.line&&(Z=A+1,P.push(Z),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(d.events=[],C?(C._tokenizer=void 0,C.previous=void 0):P.pop(),A=P.length;A--;){const q=g.slice(P[A],P[A+1]),ne=f.pop();h.push([ne,ne+q.length-1]),t.splice(ne,2,q)}for(h.reverse(),A=-1;++A<h.length;)m[O+h[A][0]]=O+h[A][1],O+=h[A][1]-h[A][0]-1;return m}const content={resolve:resolveContent,tokenize:tokenizeContent},continuationConstruct={partial:!0,tokenize:tokenizeContinuation};function resolveContent(t){return subtokenize(t),t}function tokenizeContent(t,a){let l;return u;function u(g){return t.enter("content"),l=t.enter("chunkContent",{contentType:"content"}),c(g)}function c(g){return g===null?f(g):markdownLineEnding(g)?t.check(continuationConstruct,d,f)(g):(t.consume(g),c)}function f(g){return t.exit("chunkContent"),t.exit("content"),a(g)}function d(g){return t.consume(g),t.exit("chunkContent"),l.next=t.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,c}}function tokenizeContinuation(t,a,l){const u=this;return c;function c(d){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),factorySpace(t,f,"linePrefix")}function f(d){if(d===null||markdownLineEnding(d))return l(d);const g=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(d):t.interrupt(u.parser.constructs.flow,l,a)(d)}}function factoryDestination(t,a,l,u,c,f,d,g,h){const m=h||Number.POSITIVE_INFINITY;let x=0;return S;function S(q){return q===60?(t.enter(u),t.enter(c),t.enter(f),t.consume(q),t.exit(f),A):q===null||q===32||q===41||asciiControl(q)?l(q):(t.enter(u),t.enter(d),t.enter(g),t.enter("chunkString",{contentType:"string"}),Z(q))}function A(q){return q===62?(t.enter(f),t.consume(q),t.exit(f),t.exit(c),t.exit(u),a):(t.enter(g),t.enter("chunkString",{contentType:"string"}),C(q))}function C(q){return q===62?(t.exit("chunkString"),t.exit(g),A(q)):q===null||q===60||markdownLineEnding(q)?l(q):(t.consume(q),q===92?O:C)}function O(q){return q===60||q===62||q===92?(t.consume(q),C):C(q)}function Z(q){return!x&&(q===null||q===41||markdownLineEndingOrSpace(q))?(t.exit("chunkString"),t.exit(g),t.exit(d),t.exit(u),a(q)):x<m&&q===40?(t.consume(q),x++,Z):q===41?(t.consume(q),x--,Z):q===null||q===32||q===40||asciiControl(q)?l(q):(t.consume(q),q===92?P:Z)}function P(q){return q===40||q===41||q===92?(t.consume(q),Z):Z(q)}}function factoryLabel(t,a,l,u,c,f){const d=this;let g=0,h;return m;function m(C){return t.enter(u),t.enter(c),t.consume(C),t.exit(c),t.enter(f),x}function x(C){return g>999||C===null||C===91||C===93&&!h||C===94&&!g&&"_hiddenFootnoteSupport"in d.parser.constructs?l(C):C===93?(t.exit(f),t.enter(c),t.consume(C),t.exit(c),t.exit(u),a):markdownLineEnding(C)?(t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),x):(t.enter("chunkString",{contentType:"string"}),S(C))}function S(C){return C===null||C===91||C===93||markdownLineEnding(C)||g++>999?(t.exit("chunkString"),x(C)):(t.consume(C),h||(h=!markdownSpace(C)),C===92?A:S)}function A(C){return C===91||C===92||C===93?(t.consume(C),g++,S):S(C)}}function factoryTitle(t,a,l,u,c,f){let d;return g;function g(A){return A===34||A===39||A===40?(t.enter(u),t.enter(c),t.consume(A),t.exit(c),d=A===40?41:A,h):l(A)}function h(A){return A===d?(t.enter(c),t.consume(A),t.exit(c),t.exit(u),a):(t.enter(f),m(A))}function m(A){return A===d?(t.exit(f),h(d)):A===null?l(A):markdownLineEnding(A)?(t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),factorySpace(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===d||A===null||markdownLineEnding(A)?(t.exit("chunkString"),m(A)):(t.consume(A),A===92?S:x)}function S(A){return A===d||A===92?(t.consume(A),x):x(A)}}function factoryWhitespace(t,a){let l;return u;function u(c){return markdownLineEnding(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),l=!0,u):markdownSpace(c)?factorySpace(t,u,l?"linePrefix":"lineSuffix")(c):a(c)}}const definition$1={name:"definition",tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(t,a,l){const u=this;let c;return f;function f(C){return t.enter("definition"),d(C)}function d(C){return factoryLabel.call(u,t,g,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function g(C){return c=normalizeIdentifier(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),C===58?(t.enter("definitionMarker"),t.consume(C),t.exit("definitionMarker"),h):l(C)}function h(C){return markdownLineEndingOrSpace(C)?factoryWhitespace(t,m)(C):m(C)}function m(C){return factoryDestination(t,x,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function x(C){return t.attempt(titleBefore,S,S)(C)}function S(C){return markdownSpace(C)?factorySpace(t,A,"whitespace")(C):A(C)}function A(C){return C===null||markdownLineEnding(C)?(t.exit("definition"),u.parser.defined.push(c),a(C)):l(C)}}function tokenizeTitleBefore(t,a,l){return u;function u(g){return markdownLineEndingOrSpace(g)?factoryWhitespace(t,c)(g):l(g)}function c(g){return factoryTitle(t,f,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(g)}function f(g){return markdownSpace(g)?factorySpace(t,d,"whitespace")(g):d(g)}function d(g){return g===null||markdownLineEnding(g)?a(g):l(g)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(t,a,l){return u;function u(f){return t.enter("hardBreakEscape"),t.consume(f),c}function c(f){return markdownLineEnding(f)?(t.exit("hardBreakEscape"),a(f)):l(f)}}const headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(t,a){let l=t.length-2,u=3,c,f;return t[u][1].type==="whitespace"&&(u+=2),l-2>u&&t[l][1].type==="whitespace"&&(l-=2),t[l][1].type==="atxHeadingSequence"&&(u===l-1||l-4>u&&t[l-2][1].type==="whitespace")&&(l-=u+1===l?2:4),l>u&&(c={type:"atxHeadingText",start:t[u][1].start,end:t[l][1].end},f={type:"chunkText",start:t[u][1].start,end:t[l][1].end,contentType:"text"},splice(t,u,l-u+1,[["enter",c,a],["enter",f,a],["exit",f,a],["exit",c,a]])),t}function tokenizeHeadingAtx(t,a,l){let u=0;return c;function c(x){return t.enter("atxHeading"),f(x)}function f(x){return t.enter("atxHeadingSequence"),d(x)}function d(x){return x===35&&u++<6?(t.consume(x),d):x===null||markdownLineEndingOrSpace(x)?(t.exit("atxHeadingSequence"),g(x)):l(x)}function g(x){return x===35?(t.enter("atxHeadingSequence"),h(x)):x===null||markdownLineEnding(x)?(t.exit("atxHeading"),a(x)):markdownSpace(x)?factorySpace(t,g,"whitespace")(x):(t.enter("atxHeadingText"),m(x))}function h(x){return x===35?(t.consume(x),h):(t.exit("atxHeadingSequence"),g(x))}function m(x){return x===null||x===35||markdownLineEndingOrSpace(x)?(t.exit("atxHeadingText"),g(x)):(t.consume(x),m)}}const htmlBlockNames=["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"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={concrete:!0,name:"htmlFlow",resolveTo:resolveToHtmlFlow,tokenize:tokenizeHtmlFlow},blankLineBefore={partial:!0,tokenize:tokenizeBlankLineBefore},nonLazyContinuationStart={partial:!0,tokenize:tokenizeNonLazyContinuationStart};function resolveToHtmlFlow(t){let a=t.length;for(;a--&&!(t[a][0]==="enter"&&t[a][1].type==="htmlFlow"););return a>1&&t[a-2][1].type==="linePrefix"&&(t[a][1].start=t[a-2][1].start,t[a+1][1].start=t[a-2][1].start,t.splice(a-2,2)),t}function tokenizeHtmlFlow(t,a,l){const u=this;let c,f,d,g,h;return m;function m(j){return x(j)}function x(j){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(j),S}function S(j){return j===33?(t.consume(j),A):j===47?(t.consume(j),f=!0,Z):j===63?(t.consume(j),c=3,u.interrupt?a:N):asciiAlpha(j)?(t.consume(j),d=String.fromCharCode(j),P):l(j)}function A(j){return j===45?(t.consume(j),c=2,C):j===91?(t.consume(j),c=5,g=0,O):asciiAlpha(j)?(t.consume(j),c=4,u.interrupt?a:N):l(j)}function C(j){return j===45?(t.consume(j),u.interrupt?a:N):l(j)}function O(j){const ge="CDATA[";return j===ge.charCodeAt(g++)?(t.consume(j),g===ge.length?u.interrupt?a:ee:O):l(j)}function Z(j){return asciiAlpha(j)?(t.consume(j),d=String.fromCharCode(j),P):l(j)}function P(j){if(j===null||j===47||j===62||markdownLineEndingOrSpace(j)){const ge=j===47,me=d.toLowerCase();return!ge&&!f&&htmlRawNames.includes(me)?(c=1,u.interrupt?a(j):ee(j)):htmlBlockNames.includes(d.toLowerCase())?(c=6,ge?(t.consume(j),q):u.interrupt?a(j):ee(j)):(c=7,u.interrupt&&!u.parser.lazy[u.now().line]?l(j):f?ne(j):Y(j))}return j===45||asciiAlphanumeric(j)?(t.consume(j),d+=String.fromCharCode(j),P):l(j)}function q(j){return j===62?(t.consume(j),u.interrupt?a:ee):l(j)}function ne(j){return markdownSpace(j)?(t.consume(j),ne):F(j)}function Y(j){return j===47?(t.consume(j),F):j===58||j===95||asciiAlpha(j)?(t.consume(j),pe):markdownSpace(j)?(t.consume(j),Y):F(j)}function pe(j){return j===45||j===46||j===58||j===95||asciiAlphanumeric(j)?(t.consume(j),pe):ye(j)}function ye(j){return j===61?(t.consume(j),Q):markdownSpace(j)?(t.consume(j),ye):Y(j)}function Q(j){return j===null||j===60||j===61||j===62||j===96?l(j):j===34||j===39?(t.consume(j),h=j,be):markdownSpace(j)?(t.consume(j),Q):ue(j)}function be(j){return j===h?(t.consume(j),h=null,ke):j===null||markdownLineEnding(j)?l(j):(t.consume(j),be)}function ue(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||markdownLineEndingOrSpace(j)?ye(j):(t.consume(j),ue)}function ke(j){return j===47||j===62||markdownSpace(j)?Y(j):l(j)}function F(j){return j===62?(t.consume(j),ve):l(j)}function ve(j){return j===null||markdownLineEnding(j)?ee(j):markdownSpace(j)?(t.consume(j),ve):l(j)}function ee(j){return j===45&&c===2?(t.consume(j),H):j===60&&c===1?(t.consume(j),de):j===62&&c===4?(t.consume(j),I):j===63&&c===3?(t.consume(j),N):j===93&&c===5?(t.consume(j),Ne):markdownLineEnding(j)&&(c===6||c===7)?(t.exit("htmlFlowData"),t.check(blankLineBefore,ie,Ae)(j)):j===null||markdownLineEnding(j)?(t.exit("htmlFlowData"),Ae(j)):(t.consume(j),ee)}function Ae(j){return t.check(nonLazyContinuationStart,xe,ie)(j)}function xe(j){return t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),he}function he(j){return j===null||markdownLineEnding(j)?Ae(j):(t.enter("htmlFlowData"),ee(j))}function H(j){return j===45?(t.consume(j),N):ee(j)}function de(j){return j===47?(t.consume(j),d="",oe):ee(j)}function oe(j){if(j===62){const ge=d.toLowerCase();return htmlRawNames.includes(ge)?(t.consume(j),I):ee(j)}return asciiAlpha(j)&&d.length<8?(t.consume(j),d+=String.fromCharCode(j),oe):ee(j)}function Ne(j){return j===93?(t.consume(j),N):ee(j)}function N(j){return j===62?(t.consume(j),I):j===45&&c===2?(t.consume(j),N):ee(j)}function I(j){return j===null||markdownLineEnding(j)?(t.exit("htmlFlowData"),ie(j)):(t.consume(j),I)}function ie(j){return t.exit("htmlFlow"),a(j)}}function tokenizeNonLazyContinuationStart(t,a,l){const u=this;return c;function c(d){return markdownLineEnding(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),f):l(d)}function f(d){return u.parser.lazy[u.now().line]?l(d):a(d)}}function tokenizeBlankLineBefore(t,a,l){return u;function u(c){return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),t.attempt(blankLine,a,l)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(t,a,l){const u=this;let c,f,d;return g;function g(N){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(N),h}function h(N){return N===33?(t.consume(N),m):N===47?(t.consume(N),ye):N===63?(t.consume(N),Y):asciiAlpha(N)?(t.consume(N),ue):l(N)}function m(N){return N===45?(t.consume(N),x):N===91?(t.consume(N),f=0,O):asciiAlpha(N)?(t.consume(N),ne):l(N)}function x(N){return N===45?(t.consume(N),C):l(N)}function S(N){return N===null?l(N):N===45?(t.consume(N),A):markdownLineEnding(N)?(d=S,de(N)):(t.consume(N),S)}function A(N){return N===45?(t.consume(N),C):S(N)}function C(N){return N===62?H(N):N===45?A(N):S(N)}function O(N){const I="CDATA[";return N===I.charCodeAt(f++)?(t.consume(N),f===I.length?Z:O):l(N)}function Z(N){return N===null?l(N):N===93?(t.consume(N),P):markdownLineEnding(N)?(d=Z,de(N)):(t.consume(N),Z)}function P(N){return N===93?(t.consume(N),q):Z(N)}function q(N){return N===62?H(N):N===93?(t.consume(N),q):Z(N)}function ne(N){return N===null||N===62?H(N):markdownLineEnding(N)?(d=ne,de(N)):(t.consume(N),ne)}function Y(N){return N===null?l(N):N===63?(t.consume(N),pe):markdownLineEnding(N)?(d=Y,de(N)):(t.consume(N),Y)}function pe(N){return N===62?H(N):Y(N)}function ye(N){return asciiAlpha(N)?(t.consume(N),Q):l(N)}function Q(N){return N===45||asciiAlphanumeric(N)?(t.consume(N),Q):be(N)}function be(N){return markdownLineEnding(N)?(d=be,de(N)):markdownSpace(N)?(t.consume(N),be):H(N)}function ue(N){return N===45||asciiAlphanumeric(N)?(t.consume(N),ue):N===47||N===62||markdownLineEndingOrSpace(N)?ke(N):l(N)}function ke(N){return N===47?(t.consume(N),H):N===58||N===95||asciiAlpha(N)?(t.consume(N),F):markdownLineEnding(N)?(d=ke,de(N)):markdownSpace(N)?(t.consume(N),ke):H(N)}function F(N){return N===45||N===46||N===58||N===95||asciiAlphanumeric(N)?(t.consume(N),F):ve(N)}function ve(N){return N===61?(t.consume(N),ee):markdownLineEnding(N)?(d=ve,de(N)):markdownSpace(N)?(t.consume(N),ve):ke(N)}function ee(N){return N===null||N===60||N===61||N===62||N===96?l(N):N===34||N===39?(t.consume(N),c=N,Ae):markdownLineEnding(N)?(d=ee,de(N)):markdownSpace(N)?(t.consume(N),ee):(t.consume(N),xe)}function Ae(N){return N===c?(t.consume(N),c=void 0,he):N===null?l(N):markdownLineEnding(N)?(d=Ae,de(N)):(t.consume(N),Ae)}function xe(N){return N===null||N===34||N===39||N===60||N===61||N===96?l(N):N===47||N===62||markdownLineEndingOrSpace(N)?ke(N):(t.consume(N),xe)}function he(N){return N===47||N===62||markdownLineEndingOrSpace(N)?ke(N):l(N)}function H(N){return N===62?(t.consume(N),t.exit("htmlTextData"),t.exit("htmlText"),a):l(N)}function de(N){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),oe}function oe(N){return markdownSpace(N)?factorySpace(t,Ne,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):Ne(N)}function Ne(N){return t.enter("htmlTextData"),d(N)}}const labelEnd={name:"labelEnd",resolveAll:resolveAllLabelEnd,resolveTo:resolveToLabelEnd,tokenize:tokenizeLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(t){let a=-1;const l=[];for(;++a<t.length;){const u=t[a][1];if(l.push(t[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const c=u.type==="labelImage"?4:2;u.type="data",a+=c}}return t.length!==l.length&&splice(t,0,t.length,l),t}function resolveToLabelEnd(t,a){let l=t.length,u=0,c,f,d,g;for(;l--;)if(c=t[l][1],f){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;t[l][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(d){if(t[l][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(f=l,c.type!=="labelLink")){u=2;break}}else c.type==="labelEnd"&&(d=l);const h={type:t[f][1].type==="labelLink"?"link":"image",start:{...t[f][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[f][1].start},end:{...t[d][1].end}},x={type:"labelText",start:{...t[f+u+2][1].end},end:{...t[d-2][1].start}};return g=[["enter",h,a],["enter",m,a]],g=push(g,t.slice(f+1,f+u+3)),g=push(g,[["enter",x,a]]),g=push(g,resolveAll(a.parser.constructs.insideSpan.null,t.slice(f+u+4,d-3),a)),g=push(g,[["exit",x,a],t[d-2],t[d-1],["exit",m,a]]),g=push(g,t.slice(d+1)),g=push(g,[["exit",h,a]]),splice(t,f,t.length,g),t}function tokenizeLabelEnd(t,a,l){const u=this;let c=u.events.length,f,d;for(;c--;)if((u.events[c][1].type==="labelImage"||u.events[c][1].type==="labelLink")&&!u.events[c][1]._balanced){f=u.events[c][1];break}return g;function g(A){return f?f._inactive?S(A):(d=u.parser.defined.includes(normalizeIdentifier(u.sliceSerialize({start:f.end,end:u.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(A),t.exit("labelMarker"),t.exit("labelEnd"),h):l(A)}function h(A){return A===40?t.attempt(resourceConstruct,x,d?x:S)(A):A===91?t.attempt(referenceFullConstruct,x,d?m:S)(A):d?x(A):S(A)}function m(A){return t.attempt(referenceCollapsedConstruct,x,S)(A)}function x(A){return a(A)}function S(A){return f._balanced=!0,l(A)}}function tokenizeResource(t,a,l){return u;function u(S){return t.enter("resource"),t.enter("resourceMarker"),t.consume(S),t.exit("resourceMarker"),c}function c(S){return markdownLineEndingOrSpace(S)?factoryWhitespace(t,f)(S):f(S)}function f(S){return S===41?x(S):factoryDestination(t,d,g,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(S)}function d(S){return markdownLineEndingOrSpace(S)?factoryWhitespace(t,h)(S):x(S)}function g(S){return l(S)}function h(S){return S===34||S===39||S===40?factoryTitle(t,m,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(S):x(S)}function m(S){return markdownLineEndingOrSpace(S)?factoryWhitespace(t,x)(S):x(S)}function x(S){return S===41?(t.enter("resourceMarker"),t.consume(S),t.exit("resourceMarker"),t.exit("resource"),a):l(S)}}function tokenizeReferenceFull(t,a,l){const u=this;return c;function c(g){return factoryLabel.call(u,t,f,d,"reference","referenceMarker","referenceString")(g)}function f(g){return u.parser.defined.includes(normalizeIdentifier(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(g):l(g)}function d(g){return l(g)}}function tokenizeReferenceCollapsed(t,a,l){return u;function u(f){return t.enter("reference"),t.enter("referenceMarker"),t.consume(f),t.exit("referenceMarker"),c}function c(f){return f===93?(t.enter("referenceMarker"),t.consume(f),t.exit("referenceMarker"),t.exit("reference"),a):l(f)}}const labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(t,a,l){const u=this;return c;function c(g){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(g),t.exit("labelImageMarker"),f}function f(g){return g===91?(t.enter("labelMarker"),t.consume(g),t.exit("labelMarker"),t.exit("labelImage"),d):l(g)}function d(g){return g===94&&"_hiddenFootnoteSupport"in u.parser.constructs?l(g):a(g)}}const labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(t,a,l){const u=this;return c;function c(d){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelLink"),f}function f(d){return d===94&&"_hiddenFootnoteSupport"in u.parser.constructs?l(d):a(d)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(t,a){return l;function l(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),factorySpace(t,a,"linePrefix")}}const thematicBreak$2={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(t,a,l){let u=0,c;return f;function f(m){return t.enter("thematicBreak"),d(m)}function d(m){return c=m,g(m)}function g(m){return m===c?(t.enter("thematicBreakSequence"),h(m)):u>=3&&(m===null||markdownLineEnding(m))?(t.exit("thematicBreak"),a(m)):l(m)}function h(m){return m===c?(t.consume(m),u++,h):(t.exit("thematicBreakSequence"),markdownSpace(m)?factorySpace(t,g,"whitespace")(m):g(m))}}const list$2={continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd,name:"list",tokenize:tokenizeListStart},listItemPrefixWhitespaceConstruct={partial:!0,tokenize:tokenizeListItemPrefixWhitespace},indentConstruct={partial:!0,tokenize:tokenizeIndent$1};function tokenizeListStart(t,a,l){const u=this,c=u.events[u.events.length-1];let f=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,d=0;return g;function g(C){const O=u.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!u.containerState.marker||C===u.containerState.marker:asciiDigit(C)){if(u.containerState.type||(u.containerState.type=O,t.enter(O,{_container:!0})),O==="listUnordered")return t.enter("listItemPrefix"),C===42||C===45?t.check(thematicBreak$2,l,m)(C):m(C);if(!u.interrupt||C===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),h(C)}return l(C)}function h(C){return asciiDigit(C)&&++d<10?(t.consume(C),h):(!u.interrupt||d<2)&&(u.containerState.marker?C===u.containerState.marker:C===41||C===46)?(t.exit("listItemValue"),m(C)):l(C)}function m(C){return t.enter("listItemMarker"),t.consume(C),t.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||C,t.check(blankLine,u.interrupt?l:x,t.attempt(listItemPrefixWhitespaceConstruct,A,S))}function x(C){return u.containerState.initialBlankLine=!0,f++,A(C)}function S(C){return markdownSpace(C)?(t.enter("listItemPrefixWhitespace"),t.consume(C),t.exit("listItemPrefixWhitespace"),A):l(C)}function A(C){return u.containerState.size=f+u.sliceSerialize(t.exit("listItemPrefix"),!0).length,a(C)}}function tokenizeListContinuation(t,a,l){const u=this;return u.containerState._closeFlow=void 0,t.check(blankLine,c,f);function c(g){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,factorySpace(t,a,"listItemIndent",u.containerState.size+1)(g)}function f(g){return u.containerState.furtherBlankLines||!markdownSpace(g)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,d(g)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,t.attempt(indentConstruct,a,d)(g))}function d(g){return u.containerState._closeFlow=!0,u.interrupt=void 0,factorySpace(t,t.attempt(list$2,a,l),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g)}}function tokenizeIndent$1(t,a,l){const u=this;return factorySpace(t,c,"listItemIndent",u.containerState.size+1);function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===u.containerState.size?a(f):l(f)}}function tokenizeListEnd(t){t.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(t,a,l){const u=this;return factorySpace(t,c,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(f){const d=u.events[u.events.length-1];return!markdownSpace(f)&&d&&d[1].type==="listItemPrefixWhitespace"?a(f):l(f)}}const setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(t,a){let l=t.length,u,c,f;for(;l--;)if(t[l][0]==="enter"){if(t[l][1].type==="content"){u=l;break}t[l][1].type==="paragraph"&&(c=l)}else t[l][1].type==="content"&&t.splice(l,1),!f&&t[l][1].type==="definition"&&(f=l);const d={type:"setextHeading",start:{...t[u][1].start},end:{...t[t.length-1][1].end}};return t[c][1].type="setextHeadingText",f?(t.splice(c,0,["enter",d,a]),t.splice(f+1,0,["exit",t[u][1],a]),t[u][1].end={...t[f][1].end}):t[u][1]=d,t.push(["exit",d,a]),t}function tokenizeSetextUnderline(t,a,l){const u=this;let c;return f;function f(m){let x=u.events.length,S;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){S=u.events[x][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||S)?(t.enter("setextHeadingLine"),c=m,d(m)):l(m)}function d(m){return t.enter("setextHeadingLineSequence"),g(m)}function g(m){return m===c?(t.consume(m),g):(t.exit("setextHeadingLineSequence"),markdownSpace(m)?factorySpace(t,h,"lineSuffix")(m):h(m))}function h(m){return m===null||markdownLineEnding(m)?(t.exit("setextHeadingLine"),a(m)):l(m)}}const flow$1={tokenize:initializeFlow};function initializeFlow(t){const a=this,l=t.attempt(blankLine,u,t.attempt(this.parser.constructs.flowInitial,c,factorySpace(t,t.attempt(this.parser.constructs.flow,c,t.attempt(content,c)),"linePrefix")));return l;function u(f){if(f===null){t.consume(f);return}return t.enter("lineEndingBlank"),t.consume(f),t.exit("lineEndingBlank"),a.currentConstruct=void 0,l}function c(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),a.currentConstruct=void 0,l}}const resolver={resolveAll:createResolver()},string$1=initializeFactory("string"),text$4=initializeFactory("text");function initializeFactory(t){return{resolveAll:createResolver(t==="text"?resolveAllLineSuffixes:void 0),tokenize:a};function a(l){const u=this,c=this.parser.constructs[t],f=l.attempt(c,d,g);return d;function d(x){return m(x)?f(x):g(x)}function g(x){if(x===null){l.consume(x);return}return l.enter("data"),l.consume(x),h}function h(x){return m(x)?(l.exit("data"),f(x)):(l.consume(x),h)}function m(x){if(x===null)return!0;const S=c[x];let A=-1;if(S)for(;++A<S.length;){const C=S[A];if(!C.previous||C.previous.call(u,u.previous))return!0}return!1}}}function createResolver(t){return a;function a(l,u){let c=-1,f;for(;++c<=l.length;)f===void 0?l[c]&&l[c][1].type==="data"&&(f=c,c++):(!l[c]||l[c][1].type!=="data")&&(c!==f+2&&(l[f][1].end=l[c-1][1].end,l.splice(f+2,c-f-2),c=f+2),f=void 0);return t?t(l,u):l}}function resolveAllLineSuffixes(t,a){let l=0;for(;++l<=t.length;)if((l===t.length||t[l][1].type==="lineEnding")&&t[l-1][1].type==="data"){const u=t[l-1][1],c=a.sliceStream(u);let f=c.length,d=-1,g=0,h;for(;f--;){const m=c[f];if(typeof m=="string"){for(d=m.length;m.charCodeAt(d-1)===32;)g++,d--;if(d)break;d=-1}else if(m===-2)h=!0,g++;else if(m!==-1){f++;break}}if(a._contentTypeTextTrailing&&l===t.length&&(g=0),g){const m={type:l===t.length||h||g<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?d:u.start._bufferIndex+d,_index:u.start._index+f,line:u.end.line,column:u.end.column-g,offset:u.end.offset-g},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(t.splice(l,0,["enter",m,a],["exit",m,a]),l+=2)}l++}return t}const document$1={42:list$2,43:list$2,45:list$2,48:list$2,49:list$2,50:list$2,51:list$2,52:list$2,53:list$2,54:list$2,55:list$2,56:list$2,57:list$2,62:blockQuote},contentInitial={91:definition$1},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},flow={35:headingAtx,42:thematicBreak$2,45:[setextUnderline,thematicBreak$2],60:htmlFlow,61:setextUnderline,95:thematicBreak$2,96:codeFenced,126:codeFenced},string={38:characterReference,92:characterEscape},text$3={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]},defaultConstructs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers,contentInitial,disable,document:document$1,flow,flowInitial,insideSpan,string,text:text$3},Symbol.toStringTag,{value:"Module"}));function createTokenizer(t,a,l){let u={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const c={},f=[];let d=[],g=[];const h={attempt:be(ye),check:be(Q),consume:ne,enter:Y,exit:pe,interrupt:be(Q,{interrupt:!0})},m={code:null,containerState:{},defineSkip:Z,events:[],now:O,parser:t,previous:null,sliceSerialize:A,sliceStream:C,write:S};let x=a.tokenize.call(m,h);return a.resolveAll&&f.push(a),m;function S(ve){return d=push(d,ve),P(),d[d.length-1]!==null?[]:(ue(a,0),m.events=resolveAll(f,m.events,m),m.events)}function A(ve,ee){return serializeChunks(C(ve),ee)}function C(ve){return sliceChunks(d,ve)}function O(){const{_bufferIndex:ve,_index:ee,line:Ae,column:xe,offset:he}=u;return{_bufferIndex:ve,_index:ee,line:Ae,column:xe,offset:he}}function Z(ve){c[ve.line]=ve.column,F()}function P(){let ve;for(;u._index<d.length;){const ee=d[u._index];if(typeof ee=="string")for(ve=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ve&&u._bufferIndex<ee.length;)q(ee.charCodeAt(u._bufferIndex));else q(ee)}}function q(ve){x=x(ve)}function ne(ve){markdownLineEnding(ve)?(u.line++,u.column=1,u.offset+=ve===-3?2:1,F()):ve!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===d[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=ve}function Y(ve,ee){const Ae=ee||{};return Ae.type=ve,Ae.start=O(),m.events.push(["enter",Ae,m]),g.push(Ae),Ae}function pe(ve){const ee=g.pop();return ee.end=O(),m.events.push(["exit",ee,m]),ee}function ye(ve,ee){ue(ve,ee.from)}function Q(ve,ee){ee.restore()}function be(ve,ee){return Ae;function Ae(xe,he,H){let de,oe,Ne,N;return Array.isArray(xe)?ie(xe):"tokenize"in xe?ie([xe]):I(xe);function I(Se){return Oe;function Oe(qe){const Re=qe!==null&&Se[qe],nt=qe!==null&&Se.null,Ke=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(nt)?nt:nt?[nt]:[]];return ie(Ke)(qe)}}function ie(Se){return de=Se,oe=0,Se.length===0?H:j(Se[oe])}function j(Se){return Oe;function Oe(qe){return N=ke(),Ne=Se,Se.partial||(m.currentConstruct=Se),Se.name&&m.parser.constructs.disable.null.includes(Se.name)?me():Se.tokenize.call(ee?Object.assign(Object.create(m),ee):m,h,ge,me)(qe)}}function ge(Se){return ve(Ne,N),he}function me(Se){return N.restore(),++oe<de.length?j(de[oe]):H}}}function ue(ve,ee){ve.resolveAll&&!f.includes(ve)&&f.push(ve),ve.resolve&&splice(m.events,ee,m.events.length-ee,ve.resolve(m.events.slice(ee),m)),ve.resolveTo&&(m.events=ve.resolveTo(m.events,m))}function ke(){const ve=O(),ee=m.previous,Ae=m.currentConstruct,xe=m.events.length,he=Array.from(g);return{from:xe,restore:H};function H(){u=ve,m.previous=ee,m.currentConstruct=Ae,m.events.length=xe,g=he,F()}}function F(){u.line in c&&u.column<2&&(u.column=c[u.line],u.offset+=c[u.line]-1)}}function sliceChunks(t,a){const l=a.start._index,u=a.start._bufferIndex,c=a.end._index,f=a.end._bufferIndex;let d;if(l===c)d=[t[l].slice(u,f)];else{if(d=t.slice(l,c),u>-1){const g=d[0];typeof g=="string"?d[0]=g.slice(u):d.shift()}f>0&&d.push(t[c].slice(0,f))}return d}function serializeChunks(t,a){let l=-1;const u=[];let c;for(;++l<t.length;){const f=t[l];let d;if(typeof f=="string")d=f;else switch(f){case-5:{d="\r";break}case-4:{d=`
|
|
135
165
|
`;break}case-3:{d=`\r
|
|
136
|
-
`;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&c)continue;d=" ";break}default:d=String.fromCharCode(f)}c=f===-2,u.push(d)}return u.join("")}function parse$1(t){const u={constructs:combineExtensions([defaultConstructs,...(t||{}).extensions||[]]),content:c(content$1),defined:[],document:c(document$2),flow:c(flow$1),lazy:{},string:c(string$1),text:c(text$4)};return u;function c(f){return d;function d(g){return createTokenizer(u,f,g)}}}function postprocess(t){for(;!subtokenize(t););return t}const search=/[\0\t\n\r]/g;function preprocess(){let t=1,a="",l=!0,u;return c;function c(f,d,g){const m=[];let h,x,S,A,C;for(f=a+(typeof f=="string"?f.toString():new TextDecoder(d||void 0).decode(f)),S=0,a="",l&&(f.charCodeAt(0)===65279&&S++,l=void 0);S<f.length;){if(search.lastIndex=S,h=search.exec(f),A=h&&h.index!==void 0?h.index:f.length,C=f.charCodeAt(A),!h){a=f.slice(S);break}if(C===10&&S===A&&u)m.push(-3),u=void 0;else switch(u&&(m.push(-5),u=void 0),S<A&&(m.push(f.slice(S,A)),t+=A-S),C){case 0:{m.push(65533),t++;break}case 9:{for(x=Math.ceil(t/4)*4,m.push(-2);t++<x;)m.push(-1);break}case 10:{m.push(-4),t=1;break}default:u=!0,t=1}S=A+1}return g&&(u&&m.push(-5),a&&m.push(a),m.push(null)),m}}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(t){return t.replace(characterEscapeOrReference,decode)}function decode(t,a,l){if(a)return a;if(l.charCodeAt(0)===35){const c=l.charCodeAt(1),f=c===120||c===88;return decodeNumericCharacterReference(l.slice(f?2:1),f?16:10)}return decodeNamedCharacterReference(l)||t}const own$2={}.hasOwnProperty;function fromMarkdown(t,a,l){return a&&typeof a=="object"&&(l=a,a=void 0),compiler(l)(postprocess(parse$1(l).document().write(preprocess()(t,a,!0))))}function compiler(t){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Vt),autolinkProtocol:ke,autolinkEmail:ke,atxHeading:f(Tt),blockQuote:f(nt),characterEscape:ke,characterReference:ke,codeFenced:f(Ke),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:f(Ke,d),codeText:f(at,d),codeTextData:ke,data:ke,codeFlowValue:ke,definition:f(kt),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:f(st),hardBreakEscape:f(mt),hardBreakTrailing:f(mt),htmlFlow:f(_t,d),htmlFlowData:ke,htmlText:f(_t,d),htmlTextData:ke,image:f(wt),label:d,link:f(Vt),listItem:f(Ht),listItemValue:A,listOrdered:f(At,S),listUnordered:f(At),paragraph:f(ln),reference:j,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:f(Tt),strong:f(on),thematicBreak:f(k)},exit:{atxHeading:m(),atxHeadingSequence:ye,autolink:m(),autolinkEmail:Re,autolinkProtocol:qe,blockQuote:m(),characterEscapeValue:Z,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:Se,characterReference:Oe,codeFenced:m(P),codeFencedFence:F,codeFencedFenceInfo:C,codeFencedFenceMeta:O,codeFlowValue:Z,codeIndented:m(q),codeText:m(he),codeTextData:Z,data:Z,definition:m(),definitionDestinationString:pe,definitionLabelString:ie,definitionTitleString:K,emphasis:m(),hardBreakEscape:m(ee),hardBreakTrailing:m(ee),htmlFlow:m(Ae),htmlFlowData:Z,htmlText:m(xe),htmlTextData:Z,image:m(de),label:Ne,labelText:oe,lineEnding:ve,link:m(H),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:ge,resourceDestinationString:N,resourceTitleString:I,resource:ne,setextHeading:m(ue),setextHeadingLineSequence:be,setextHeadingText:$,strong:m(),thematicBreak:m()}};configure(a,(t||{}).mdastExtensions||[]);const l={};return u;function u(z){let U={type:"root",children:[]};const te={stack:[U],tokenStack:[],config:a,enter:g,exit:h,buffer:d,resume:x,data:l},J=[];let v=-1;for(;++v<z.length;)if(z[v][1].type==="listOrdered"||z[v][1].type==="listUnordered")if(z[v][0]==="enter")J.push(v);else{const b=J.pop();v=c(z,b,v)}for(v=-1;++v<z.length;){const b=a[z[v][0]];own$2.call(b,z[v][1].type)&&b[z[v][1].type].call(Object.assign({sliceSerialize:z[v][2].sliceSerialize},te),z[v][1])}if(te.tokenStack.length>0){const b=te.tokenStack[te.tokenStack.length-1];(b[1]||defaultOnError).call(te,void 0,b[0])}for(U.position={start:point(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:point(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},v=-1;++v<a.transforms.length;)U=a.transforms[v](U)||U;return U}function c(z,U,te){let J=U-1,v=-1,b=!1,E,T,R,L;for(;++J<=te;){const D=z[J];switch(D[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{D[0]==="enter"?v++:v--,L=void 0;break}case"lineEndingBlank":{D[0]==="enter"&&(E&&!L&&!v&&!R&&(R=J),L=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:L=void 0}if(!v&&D[0]==="enter"&&D[1].type==="listItemPrefix"||v===-1&&D[0]==="exit"&&(D[1].type==="listUnordered"||D[1].type==="listOrdered")){if(E){let se=J;for(T=void 0;se--;){const ae=z[se];if(ae[1].type==="lineEnding"||ae[1].type==="lineEndingBlank"){if(ae[0]==="exit")continue;T&&(z[T][1].type="lineEndingBlank",b=!0),ae[1].type="lineEnding",T=se}else if(!(ae[1].type==="linePrefix"||ae[1].type==="blockQuotePrefix"||ae[1].type==="blockQuotePrefixWhitespace"||ae[1].type==="blockQuoteMarker"||ae[1].type==="listItemIndent"))break}R&&(!T||R<T)&&(E._spread=!0),E.end=Object.assign({},T?z[T][1].start:D[1].end),z.splice(T||J,0,["exit",E,D[2]]),J++,te++}if(D[1].type==="listItemPrefix"){const se={type:"listItem",_spread:!1,start:Object.assign({},D[1].start),end:void 0};E=se,z.splice(J,0,["enter",se,D[2]]),J++,te++,R=void 0,L=!0}}}return z[U][1]._spread=b,te}function f(z,U){return te;function te(J){g.call(this,z(J),J),U&&U.call(this,J)}}function d(){this.stack.push({type:"fragment",children:[]})}function g(z,U,te){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([U,te||void 0]),z.position={start:point(U.start),end:void 0}}function m(z){return U;function U(te){z&&z.call(this,te),h.call(this,te)}}function h(z,U){const te=this.stack.pop(),J=this.tokenStack.pop();if(J)J[0].type!==z.type&&(U?U.call(this,z,J[0]):(J[1]||defaultOnError).call(this,z,J[0]));else throw new Error("Cannot close `"+z.type+"` ("+stringifyPosition({start:z.start,end:z.end})+"): it’s not open");te.position.end=point(z.end)}function x(){return toString$1(this.stack.pop())}function S(){this.data.expectingFirstListItemValue=!0}function A(z){if(this.data.expectingFirstListItemValue){const U=this.stack[this.stack.length-2];U.start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0}}function C(){const z=this.resume(),U=this.stack[this.stack.length-1];U.lang=z}function O(){const z=this.resume(),U=this.stack[this.stack.length-1];U.meta=z}function F(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const z=this.resume(),U=this.stack[this.stack.length-1];U.value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function q(){const z=this.resume(),U=this.stack[this.stack.length-1];U.value=z.replace(/(\r?\n|\r)$/g,"")}function ie(z){const U=this.resume(),te=this.stack[this.stack.length-1];te.label=U,te.identifier=normalizeIdentifier(this.sliceSerialize(z)).toLowerCase()}function K(){const z=this.resume(),U=this.stack[this.stack.length-1];U.title=z}function pe(){const z=this.resume(),U=this.stack[this.stack.length-1];U.url=z}function ye(z){const U=this.stack[this.stack.length-1];if(!U.depth){const te=this.sliceSerialize(z).length;U.depth=te}}function $(){this.data.setextHeadingSlurpLineEnding=!0}function be(z){const U=this.stack[this.stack.length-1];U.depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function ke(z){const te=this.stack[this.stack.length-1].children;let J=te[te.length-1];(!J||J.type!=="text")&&(J=Je(),J.position={start:point(z.start),end:void 0},te.push(J)),this.stack.push(J)}function Z(z){const U=this.stack.pop();U.value+=this.sliceSerialize(z),U.position.end=point(z.end)}function ve(z){const U=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=U.children[U.children.length-1];te.position.end=point(z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(U.type)&&(ke.call(this,z),Z.call(this,z))}function ee(){this.data.atHardBreak=!0}function Ae(){const z=this.resume(),U=this.stack[this.stack.length-1];U.value=z}function xe(){const z=this.resume(),U=this.stack[this.stack.length-1];U.value=z}function he(){const z=this.resume(),U=this.stack[this.stack.length-1];U.value=z}function H(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=U,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function de(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=U,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function oe(z){const U=this.sliceSerialize(z),te=this.stack[this.stack.length-2];te.label=decodeString(U),te.identifier=normalizeIdentifier(U).toLowerCase()}function Ne(){const z=this.stack[this.stack.length-1],U=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const J=z.children;te.children=J}else te.alt=U}function N(){const z=this.resume(),U=this.stack[this.stack.length-1];U.url=z}function I(){const z=this.resume(),U=this.stack[this.stack.length-1];U.title=z}function ne(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function ge(z){const U=this.resume(),te=this.stack[this.stack.length-1];te.label=U,te.identifier=normalizeIdentifier(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function me(z){this.data.characterReferenceType=z.type}function Se(z){const U=this.sliceSerialize(z),te=this.data.characterReferenceType;let J;te?(J=decodeNumericCharacterReference(U,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):J=decodeNamedCharacterReference(U);const v=this.stack[this.stack.length-1];v.value+=J}function Oe(z){const U=this.stack.pop();U.position.end=point(z.end)}function qe(z){Z.call(this,z);const U=this.stack[this.stack.length-1];U.url=this.sliceSerialize(z)}function Re(z){Z.call(this,z);const U=this.stack[this.stack.length-1];U.url="mailto:"+this.sliceSerialize(z)}function nt(){return{type:"blockquote",children:[]}}function Ke(){return{type:"code",lang:null,meta:null,value:""}}function at(){return{type:"inlineCode",value:""}}function kt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function Tt(){return{type:"heading",depth:0,children:[]}}function mt(){return{type:"break"}}function _t(){return{type:"html",value:""}}function wt(){return{type:"image",title:null,url:"",alt:null}}function Vt(){return{type:"link",title:null,url:"",children:[]}}function At(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function Ht(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function ln(){return{type:"paragraph",children:[]}}function on(){return{type:"strong",children:[]}}function Je(){return{type:"text",value:""}}function k(){return{type:"thematicBreak"}}}function point(t){return{line:t.line,column:t.column,offset:t.offset}}function configure(t,a){let l=-1;for(;++l<a.length;){const u=a[l];Array.isArray(u)?configure(t,u):extension(t,u)}}function extension(t,a){let l;for(l in a)if(own$2.call(a,l))switch(l){case"canContainEols":{const u=a[l];u&&t[l].push(...u);break}case"transforms":{const u=a[l];u&&t[l].push(...u);break}case"enter":case"exit":{const u=a[l];u&&Object.assign(t[l],u);break}}}function defaultOnError(t,a){throw t?new Error("Cannot close `"+t.type+"` ("+stringifyPosition({start:t.start,end:t.end})+"): a different token (`"+a.type+"`, "+stringifyPosition({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+stringifyPosition({start:a.start,end:a.end})+") is still open")}function remarkParse(t){const a=this;a.parser=l;function l(u){return fromMarkdown(u,{...a.data("settings"),...t,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function blockquote$1(t,a){const l={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(a),!0)};return t.patch(a,l),t.applyData(a,l)}function hardBreak$1(t,a){const l={type:"element",tagName:"br",properties:{},children:[]};return t.patch(a,l),[t.applyData(a,l),{type:"text",value:`
|
|
166
|
+
`;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&c)continue;d=" ";break}default:d=String.fromCharCode(f)}c=f===-2,u.push(d)}return u.join("")}function parse$1(t){const u={constructs:combineExtensions([defaultConstructs,...(t||{}).extensions||[]]),content:c(content$1),defined:[],document:c(document$2),flow:c(flow$1),lazy:{},string:c(string$1),text:c(text$4)};return u;function c(f){return d;function d(g){return createTokenizer(u,f,g)}}}function postprocess(t){for(;!subtokenize(t););return t}const search=/[\0\t\n\r]/g;function preprocess(){let t=1,a="",l=!0,u;return c;function c(f,d,g){const h=[];let m,x,S,A,C;for(f=a+(typeof f=="string"?f.toString():new TextDecoder(d||void 0).decode(f)),S=0,a="",l&&(f.charCodeAt(0)===65279&&S++,l=void 0);S<f.length;){if(search.lastIndex=S,m=search.exec(f),A=m&&m.index!==void 0?m.index:f.length,C=f.charCodeAt(A),!m){a=f.slice(S);break}if(C===10&&S===A&&u)h.push(-3),u=void 0;else switch(u&&(h.push(-5),u=void 0),S<A&&(h.push(f.slice(S,A)),t+=A-S),C){case 0:{h.push(65533),t++;break}case 9:{for(x=Math.ceil(t/4)*4,h.push(-2);t++<x;)h.push(-1);break}case 10:{h.push(-4),t=1;break}default:u=!0,t=1}S=A+1}return g&&(u&&h.push(-5),a&&h.push(a),h.push(null)),h}}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(t){return t.replace(characterEscapeOrReference,decode)}function decode(t,a,l){if(a)return a;if(l.charCodeAt(0)===35){const c=l.charCodeAt(1),f=c===120||c===88;return decodeNumericCharacterReference(l.slice(f?2:1),f?16:10)}return decodeNamedCharacterReference(l)||t}const own$2={}.hasOwnProperty;function fromMarkdown(t,a,l){return a&&typeof a=="object"&&(l=a,a=void 0),compiler(l)(postprocess(parse$1(l).document().write(preprocess()(t,a,!0))))}function compiler(t){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Ht),autolinkProtocol:ke,autolinkEmail:ke,atxHeading:f(Tt),blockQuote:f(nt),characterEscape:ke,characterReference:ke,codeFenced:f(Ke),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:f(Ke,d),codeText:f(at,d),codeTextData:ke,data:ke,codeFlowValue:ke,definition:f(kt),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:f(st),hardBreakEscape:f(mt),hardBreakTrailing:f(mt),htmlFlow:f(_t,d),htmlFlowData:ke,htmlText:f(_t,d),htmlTextData:ke,image:f(wt),label:d,link:f(Ht),listItem:f(Pt),listItemValue:A,listOrdered:f(At,S),listUnordered:f(At),paragraph:f(ln),reference:j,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:f(Tt),strong:f(on),thematicBreak:f(k)},exit:{atxHeading:h(),atxHeadingSequence:ye,autolink:h(),autolinkEmail:Re,autolinkProtocol:qe,blockQuote:h(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:Se,characterReference:Oe,codeFenced:h(P),codeFencedFence:Z,codeFencedFenceInfo:C,codeFencedFenceMeta:O,codeFlowValue:F,codeIndented:h(q),codeText:h(he),codeTextData:F,data:F,definition:h(),definitionDestinationString:pe,definitionLabelString:ne,definitionTitleString:Y,emphasis:h(),hardBreakEscape:h(ee),hardBreakTrailing:h(ee),htmlFlow:h(Ae),htmlFlowData:F,htmlText:h(xe),htmlTextData:F,image:h(de),label:Ne,labelText:oe,lineEnding:ve,link:h(H),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:ge,resourceDestinationString:N,resourceTitleString:I,resource:ie,setextHeading:h(ue),setextHeadingLineSequence:be,setextHeadingText:Q,strong:h(),thematicBreak:h()}};configure(a,(t||{}).mdastExtensions||[]);const l={};return u;function u(z){let U={type:"root",children:[]};const te={stack:[U],tokenStack:[],config:a,enter:g,exit:m,buffer:d,resume:x,data:l},J=[];let v=-1;for(;++v<z.length;)if(z[v][1].type==="listOrdered"||z[v][1].type==="listUnordered")if(z[v][0]==="enter")J.push(v);else{const b=J.pop();v=c(z,b,v)}for(v=-1;++v<z.length;){const b=a[z[v][0]];own$2.call(b,z[v][1].type)&&b[z[v][1].type].call(Object.assign({sliceSerialize:z[v][2].sliceSerialize},te),z[v][1])}if(te.tokenStack.length>0){const b=te.tokenStack[te.tokenStack.length-1];(b[1]||defaultOnError).call(te,void 0,b[0])}for(U.position={start:point(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:point(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},v=-1;++v<a.transforms.length;)U=a.transforms[v](U)||U;return U}function c(z,U,te){let J=U-1,v=-1,b=!1,E,T,R,L;for(;++J<=te;){const D=z[J];switch(D[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{D[0]==="enter"?v++:v--,L=void 0;break}case"lineEndingBlank":{D[0]==="enter"&&(E&&!L&&!v&&!R&&(R=J),L=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:L=void 0}if(!v&&D[0]==="enter"&&D[1].type==="listItemPrefix"||v===-1&&D[0]==="exit"&&(D[1].type==="listUnordered"||D[1].type==="listOrdered")){if(E){let se=J;for(T=void 0;se--;){const ae=z[se];if(ae[1].type==="lineEnding"||ae[1].type==="lineEndingBlank"){if(ae[0]==="exit")continue;T&&(z[T][1].type="lineEndingBlank",b=!0),ae[1].type="lineEnding",T=se}else if(!(ae[1].type==="linePrefix"||ae[1].type==="blockQuotePrefix"||ae[1].type==="blockQuotePrefixWhitespace"||ae[1].type==="blockQuoteMarker"||ae[1].type==="listItemIndent"))break}R&&(!T||R<T)&&(E._spread=!0),E.end=Object.assign({},T?z[T][1].start:D[1].end),z.splice(T||J,0,["exit",E,D[2]]),J++,te++}if(D[1].type==="listItemPrefix"){const se={type:"listItem",_spread:!1,start:Object.assign({},D[1].start),end:void 0};E=se,z.splice(J,0,["enter",se,D[2]]),J++,te++,R=void 0,L=!0}}}return z[U][1]._spread=b,te}function f(z,U){return te;function te(J){g.call(this,z(J),J),U&&U.call(this,J)}}function d(){this.stack.push({type:"fragment",children:[]})}function g(z,U,te){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([U,te||void 0]),z.position={start:point(U.start),end:void 0}}function h(z){return U;function U(te){z&&z.call(this,te),m.call(this,te)}}function m(z,U){const te=this.stack.pop(),J=this.tokenStack.pop();if(J)J[0].type!==z.type&&(U?U.call(this,z,J[0]):(J[1]||defaultOnError).call(this,z,J[0]));else throw new Error("Cannot close `"+z.type+"` ("+stringifyPosition({start:z.start,end:z.end})+"): it’s not open");te.position.end=point(z.end)}function x(){return toString$1(this.stack.pop())}function S(){this.data.expectingFirstListItemValue=!0}function A(z){if(this.data.expectingFirstListItemValue){const U=this.stack[this.stack.length-2];U.start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0}}function C(){const z=this.resume(),U=this.stack[this.stack.length-1];U.lang=z}function O(){const z=this.resume(),U=this.stack[this.stack.length-1];U.meta=z}function Z(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const z=this.resume(),U=this.stack[this.stack.length-1];U.value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function q(){const z=this.resume(),U=this.stack[this.stack.length-1];U.value=z.replace(/(\r?\n|\r)$/g,"")}function ne(z){const U=this.resume(),te=this.stack[this.stack.length-1];te.label=U,te.identifier=normalizeIdentifier(this.sliceSerialize(z)).toLowerCase()}function Y(){const z=this.resume(),U=this.stack[this.stack.length-1];U.title=z}function pe(){const z=this.resume(),U=this.stack[this.stack.length-1];U.url=z}function ye(z){const U=this.stack[this.stack.length-1];if(!U.depth){const te=this.sliceSerialize(z).length;U.depth=te}}function Q(){this.data.setextHeadingSlurpLineEnding=!0}function be(z){const U=this.stack[this.stack.length-1];U.depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function ke(z){const te=this.stack[this.stack.length-1].children;let J=te[te.length-1];(!J||J.type!=="text")&&(J=Je(),J.position={start:point(z.start),end:void 0},te.push(J)),this.stack.push(J)}function F(z){const U=this.stack.pop();U.value+=this.sliceSerialize(z),U.position.end=point(z.end)}function ve(z){const U=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=U.children[U.children.length-1];te.position.end=point(z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(U.type)&&(ke.call(this,z),F.call(this,z))}function ee(){this.data.atHardBreak=!0}function Ae(){const z=this.resume(),U=this.stack[this.stack.length-1];U.value=z}function xe(){const z=this.resume(),U=this.stack[this.stack.length-1];U.value=z}function he(){const z=this.resume(),U=this.stack[this.stack.length-1];U.value=z}function H(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=U,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function de(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=U,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function oe(z){const U=this.sliceSerialize(z),te=this.stack[this.stack.length-2];te.label=decodeString(U),te.identifier=normalizeIdentifier(U).toLowerCase()}function Ne(){const z=this.stack[this.stack.length-1],U=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const J=z.children;te.children=J}else te.alt=U}function N(){const z=this.resume(),U=this.stack[this.stack.length-1];U.url=z}function I(){const z=this.resume(),U=this.stack[this.stack.length-1];U.title=z}function ie(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function ge(z){const U=this.resume(),te=this.stack[this.stack.length-1];te.label=U,te.identifier=normalizeIdentifier(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function me(z){this.data.characterReferenceType=z.type}function Se(z){const U=this.sliceSerialize(z),te=this.data.characterReferenceType;let J;te?(J=decodeNumericCharacterReference(U,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):J=decodeNamedCharacterReference(U);const v=this.stack[this.stack.length-1];v.value+=J}function Oe(z){const U=this.stack.pop();U.position.end=point(z.end)}function qe(z){F.call(this,z);const U=this.stack[this.stack.length-1];U.url=this.sliceSerialize(z)}function Re(z){F.call(this,z);const U=this.stack[this.stack.length-1];U.url="mailto:"+this.sliceSerialize(z)}function nt(){return{type:"blockquote",children:[]}}function Ke(){return{type:"code",lang:null,meta:null,value:""}}function at(){return{type:"inlineCode",value:""}}function kt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function Tt(){return{type:"heading",depth:0,children:[]}}function mt(){return{type:"break"}}function _t(){return{type:"html",value:""}}function wt(){return{type:"image",title:null,url:"",alt:null}}function Ht(){return{type:"link",title:null,url:"",children:[]}}function At(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function Pt(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function ln(){return{type:"paragraph",children:[]}}function on(){return{type:"strong",children:[]}}function Je(){return{type:"text",value:""}}function k(){return{type:"thematicBreak"}}}function point(t){return{line:t.line,column:t.column,offset:t.offset}}function configure(t,a){let l=-1;for(;++l<a.length;){const u=a[l];Array.isArray(u)?configure(t,u):extension(t,u)}}function extension(t,a){let l;for(l in a)if(own$2.call(a,l))switch(l){case"canContainEols":{const u=a[l];u&&t[l].push(...u);break}case"transforms":{const u=a[l];u&&t[l].push(...u);break}case"enter":case"exit":{const u=a[l];u&&Object.assign(t[l],u);break}}}function defaultOnError(t,a){throw t?new Error("Cannot close `"+t.type+"` ("+stringifyPosition({start:t.start,end:t.end})+"): a different token (`"+a.type+"`, "+stringifyPosition({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+stringifyPosition({start:a.start,end:a.end})+") is still open")}function remarkParse(t){const a=this;a.parser=l;function l(u){return fromMarkdown(u,{...a.data("settings"),...t,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function blockquote$1(t,a){const l={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(a),!0)};return t.patch(a,l),t.applyData(a,l)}function hardBreak$1(t,a){const l={type:"element",tagName:"br",properties:{},children:[]};return t.patch(a,l),[t.applyData(a,l),{type:"text",value:`
|
|
137
167
|
`}]}function code$3(t,a){const l=a.value?a.value+`
|
|
138
|
-
`:"",u={},c=a.lang?a.lang.split(/\s+/):[];c.length>0&&(u.className=["language-"+c[0]]);let f={type:"element",tagName:"code",properties:u,children:[{type:"text",value:l}]};return a.meta&&(f.data={meta:a.meta}),t.patch(a,f),f=t.applyData(a,f),f={type:"element",tagName:"pre",properties:{},children:[f]},t.patch(a,f),f}function strikethrough(t,a){const l={type:"element",tagName:"del",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function emphasis$1(t,a){const l={type:"element",tagName:"em",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function footnoteReference$1(t,a){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),c=normalizeUri(u.toLowerCase()),f=t.footnoteOrder.indexOf(u);let d,g=t.footnoteCounts.get(u);g===void 0?(g=0,t.footnoteOrder.push(u),d=t.footnoteOrder.length):d=f+1,g+=1,t.footnoteCounts.set(u,g);const
|
|
139
|
-
`}),x.type==="element"&&x.tagName==="p"&&!c?d.push(...x.children):d.push(x)}const
|
|
140
|
-
`});const
|
|
168
|
+
`:"",u={},c=a.lang?a.lang.split(/\s+/):[];c.length>0&&(u.className=["language-"+c[0]]);let f={type:"element",tagName:"code",properties:u,children:[{type:"text",value:l}]};return a.meta&&(f.data={meta:a.meta}),t.patch(a,f),f=t.applyData(a,f),f={type:"element",tagName:"pre",properties:{},children:[f]},t.patch(a,f),f}function strikethrough(t,a){const l={type:"element",tagName:"del",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function emphasis$1(t,a){const l={type:"element",tagName:"em",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function footnoteReference$1(t,a){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),c=normalizeUri(u.toLowerCase()),f=t.footnoteOrder.indexOf(u);let d,g=t.footnoteCounts.get(u);g===void 0?(g=0,t.footnoteOrder.push(u),d=t.footnoteOrder.length):d=f+1,g+=1,t.footnoteCounts.set(u,g);const h={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+c,id:l+"fnref-"+c+(g>1?"-"+g:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(d)}]};t.patch(a,h);const m={type:"element",tagName:"sup",properties:{},children:[h]};return t.patch(a,m),t.applyData(a,m)}function heading$1(t,a){const l={type:"element",tagName:"h"+a.depth,properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function html$1(t,a){if(t.options.allowDangerousHtml){const l={type:"raw",value:a.value};return t.patch(a,l),t.applyData(a,l)}}function revert(t,a){const l=a.referenceType;let u="]";if(l==="collapsed"?u+="[]":l==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const c=t.all(a),f=c[0];f&&f.type==="text"?f.value="["+f.value:c.unshift({type:"text",value:"["});const d=c[c.length-1];return d&&d.type==="text"?d.value+=u:c.push({type:"text",value:u}),c}function imageReference$1(t,a){const l=String(a.identifier).toUpperCase(),u=t.definitionById.get(l);if(!u)return revert(t,a);const c={src:normalizeUri(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(c.title=u.title);const f={type:"element",tagName:"img",properties:c,children:[]};return t.patch(a,f),t.applyData(a,f)}function image$1(t,a){const l={src:normalizeUri(a.url)};a.alt!==null&&a.alt!==void 0&&(l.alt=a.alt),a.title!==null&&a.title!==void 0&&(l.title=a.title);const u={type:"element",tagName:"img",properties:l,children:[]};return t.patch(a,u),t.applyData(a,u)}function inlineCode$1(t,a){const l={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};t.patch(a,l);const u={type:"element",tagName:"code",properties:{},children:[l]};return t.patch(a,u),t.applyData(a,u)}function linkReference$1(t,a){const l=String(a.identifier).toUpperCase(),u=t.definitionById.get(l);if(!u)return revert(t,a);const c={href:normalizeUri(u.url||"")};u.title!==null&&u.title!==void 0&&(c.title=u.title);const f={type:"element",tagName:"a",properties:c,children:t.all(a)};return t.patch(a,f),t.applyData(a,f)}function link$1(t,a){const l={href:normalizeUri(a.url)};a.title!==null&&a.title!==void 0&&(l.title=a.title);const u={type:"element",tagName:"a",properties:l,children:t.all(a)};return t.patch(a,u),t.applyData(a,u)}function listItem$1(t,a,l){const u=t.all(a),c=l?listLoose(l):listItemLoose(a),f={},d=[];if(typeof a.checked=="boolean"){const x=u[0];let S;x&&x.type==="element"&&x.tagName==="p"?S=x:(S={type:"element",tagName:"p",properties:{},children:[]},u.unshift(S)),S.children.length>0&&S.children.unshift({type:"text",value:" "}),S.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let g=-1;for(;++g<u.length;){const x=u[g];(c||g!==0||x.type!=="element"||x.tagName!=="p")&&d.push({type:"text",value:`
|
|
169
|
+
`}),x.type==="element"&&x.tagName==="p"&&!c?d.push(...x.children):d.push(x)}const h=u[u.length-1];h&&(c||h.type!=="element"||h.tagName!=="p")&&d.push({type:"text",value:`
|
|
170
|
+
`});const m={type:"element",tagName:"li",properties:f,children:d};return t.patch(a,m),t.applyData(a,m)}function listLoose(t){let a=!1;if(t.type==="list"){a=t.spread||!1;const l=t.children;let u=-1;for(;!a&&++u<l.length;)a=listItemLoose(l[u])}return a}function listItemLoose(t){const a=t.spread;return a??t.children.length>1}function list$1(t,a){const l={},u=t.all(a);let c=-1;for(typeof a.start=="number"&&a.start!==1&&(l.start=a.start);++c<u.length;){const d=u[c];if(d.type==="element"&&d.tagName==="li"&&d.properties&&Array.isArray(d.properties.className)&&d.properties.className.includes("task-list-item")){l.className=["contains-task-list"];break}}const f={type:"element",tagName:a.ordered?"ol":"ul",properties:l,children:t.wrap(u,!0)};return t.patch(a,f),t.applyData(a,f)}function paragraph$1(t,a){const l={type:"element",tagName:"p",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function root$1(t,a){const l={type:"root",children:t.wrap(t.all(a))};return t.patch(a,l),t.applyData(a,l)}function strong$1(t,a){const l={type:"element",tagName:"strong",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function table(t,a){const l=t.all(a),u=l.shift(),c=[];if(u){const d={type:"element",tagName:"thead",properties:{},children:t.wrap([u],!0)};t.patch(a.children[0],d),c.push(d)}if(l.length>0){const d={type:"element",tagName:"tbody",properties:{},children:t.wrap(l,!0)},g=pointStart(a.children[1]),h=pointEnd(a.children[a.children.length-1]);g&&h&&(d.position={start:g,end:h}),c.push(d)}const f={type:"element",tagName:"table",properties:{},children:t.wrap(c,!0)};return t.patch(a,f),t.applyData(a,f)}function tableRow(t,a,l){const u=l?l.children:void 0,f=(u?u.indexOf(a):1)===0?"th":"td",d=l&&l.type==="table"?l.align:void 0,g=d?d.length:a.children.length;let h=-1;const m=[];for(;++h<g;){const S=a.children[h],A={},C=d?d[h]:void 0;C&&(A.align=C);let O={type:"element",tagName:f,properties:A,children:[]};S&&(O.children=t.all(S),t.patch(S,O),O=t.applyData(S,O)),m.push(O)}const x={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(a,x),t.applyData(a,x)}function tableCell(t,a){const l={type:"element",tagName:"td",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}const tab=9,space=32;function trimLines(t){const a=String(t),l=/\r?\n|\r/g;let u=l.exec(a),c=0;const f=[];for(;u;)f.push(trimLine(a.slice(c,u.index),c>0,!0),u[0]),c=u.index+u[0].length,u=l.exec(a);return f.push(trimLine(a.slice(c),c>0,!1)),f.join("")}function trimLine(t,a,l){let u=0,c=t.length;if(a){let f=t.codePointAt(u);for(;f===tab||f===space;)u++,f=t.codePointAt(u)}if(l){let f=t.codePointAt(c-1);for(;f===tab||f===space;)c--,f=t.codePointAt(c-1)}return c>u?t.slice(u,c):""}function text$2(t,a){const l={type:"text",value:trimLines(String(a.value))};return t.patch(a,l),t.applyData(a,l)}function thematicBreak$1(t,a){const l={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(a,l),t.applyData(a,l)}const handlers={blockquote:blockquote$1,break:hardBreak$1,code:code$3,delete:strikethrough,emphasis:emphasis$1,footnoteReference:footnoteReference$1,heading:heading$1,html:html$1,imageReference:imageReference$1,image:image$1,inlineCode:inlineCode$1,linkReference:linkReference$1,link:link$1,listItem:listItem$1,list:list$1,paragraph:paragraph$1,root:root$1,strong:strong$1,table,tableCell,tableRow,text:text$2,thematicBreak:thematicBreak$1,toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){}const VOID=-1,PRIMITIVE=0,ARRAY=1,OBJECT=2,DATE=3,REGEXP=4,MAP=5,SET=6,ERROR=7,BIGINT=8,env=typeof self=="object"?self:globalThis,deserializer=(t,a)=>{const l=(c,f)=>(t.set(f,c),c),u=c=>{if(t.has(c))return t.get(c);const[f,d]=a[c];switch(f){case PRIMITIVE:case VOID:return l(d,c);case ARRAY:{const g=l([],c);for(const h of d)g.push(u(h));return g}case OBJECT:{const g=l({},c);for(const[h,m]of d)g[u(h)]=u(m);return g}case DATE:return l(new Date(d),c);case REGEXP:{const{source:g,flags:h}=d;return l(new RegExp(g,h),c)}case MAP:{const g=l(new Map,c);for(const[h,m]of d)g.set(u(h),u(m));return g}case SET:{const g=l(new Set,c);for(const h of d)g.add(u(h));return g}case ERROR:{const{name:g,message:h}=d;return l(new env[g](h),c)}case BIGINT:return l(BigInt(d),c);case"BigInt":return l(Object(BigInt(d)),c);case"ArrayBuffer":return l(new Uint8Array(d).buffer,d);case"DataView":{const{buffer:g}=new Uint8Array(d);return l(new DataView(g),d)}}return l(new env[f](d),c)};return u},deserialize=t=>deserializer(new Map,t)(0),EMPTY="",{toString}={},{keys}=Object,typeOf=t=>{const a=typeof t;if(a!=="object"||!t)return[PRIMITIVE,a];const l=toString.call(t).slice(8,-1);switch(l){case"Array":return[ARRAY,EMPTY];case"Object":return[OBJECT,EMPTY];case"Date":return[DATE,EMPTY];case"RegExp":return[REGEXP,EMPTY];case"Map":return[MAP,EMPTY];case"Set":return[SET,EMPTY];case"DataView":return[ARRAY,l]}return l.includes("Array")?[ARRAY,l]:l.includes("Error")?[ERROR,l]:[OBJECT,l]},shouldSkip=([t,a])=>t===PRIMITIVE&&(a==="function"||a==="symbol"),serializer=(t,a,l,u)=>{const c=(d,g)=>{const h=u.push(d)-1;return l.set(g,h),h},f=d=>{if(l.has(d))return l.get(d);let[g,h]=typeOf(d);switch(g){case PRIMITIVE:{let x=d;switch(h){case"bigint":g=BIGINT,x=d.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+h);x=null;break;case"undefined":return c([VOID],d)}return c([g,x],d)}case ARRAY:{if(h){let A=d;return h==="DataView"?A=new Uint8Array(d.buffer):h==="ArrayBuffer"&&(A=new Uint8Array(d)),c([h,[...A]],d)}const x=[],S=c([g,x],d);for(const A of d)x.push(f(A));return S}case OBJECT:{if(h)switch(h){case"BigInt":return c([h,d.toString()],d);case"Boolean":case"Number":case"String":return c([h,d.valueOf()],d)}if(a&&"toJSON"in d)return f(d.toJSON());const x=[],S=c([g,x],d);for(const A of keys(d))(t||!shouldSkip(typeOf(d[A])))&&x.push([f(A),f(d[A])]);return S}case DATE:return c([g,d.toISOString()],d);case REGEXP:{const{source:x,flags:S}=d;return c([g,{source:x,flags:S}],d)}case MAP:{const x=[],S=c([g,x],d);for(const[A,C]of d)(t||!(shouldSkip(typeOf(A))||shouldSkip(typeOf(C))))&&x.push([f(A),f(C)]);return S}case SET:{const x=[],S=c([g,x],d);for(const A of d)(t||!shouldSkip(typeOf(A)))&&x.push(f(A));return S}}const{message:m}=d;return c([g,{name:h,message:m}],d)};return f},serialize$1=(t,{json:a,lossy:l}={})=>{const u=[];return serializer(!(a||l),!!a,new Map,u)(t),u},structuredClone$1=typeof structuredClone=="function"?(t,a)=>a&&("json"in a||"lossy"in a)?deserialize(serialize$1(t,a)):structuredClone(t):(t,a)=>deserialize(serialize$1(t,a));function defaultFootnoteBackContent(t,a){const l=[{type:"text",value:"↩"}];return a>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),l}function defaultFootnoteBackLabel(t,a){return"Back to reference "+(t+1)+(a>1?"-"+a:"")}function footer(t){const a=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",l=t.options.footnoteBackContent||defaultFootnoteBackContent,u=t.options.footnoteBackLabel||defaultFootnoteBackLabel,c=t.options.footnoteLabel||"Footnotes",f=t.options.footnoteLabelTagName||"h2",d=t.options.footnoteLabelProperties||{className:["sr-only"]},g=[];let h=-1;for(;++h<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[h]);if(!m)continue;const x=t.all(m),S=String(m.identifier).toUpperCase(),A=normalizeUri(S.toLowerCase());let C=0;const O=[],Z=t.footnoteCounts.get(S);for(;Z!==void 0&&++C<=Z;){O.length>0&&O.push({type:"text",value:" "});let ne=typeof l=="string"?l:l(h,C);typeof ne=="string"&&(ne={type:"text",value:ne}),O.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+A+(C>1?"-"+C:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(h,C),className:["data-footnote-backref"]},children:Array.isArray(ne)?ne:[ne]})}const P=x[x.length-1];if(P&&P.type==="element"&&P.tagName==="p"){const ne=P.children[P.children.length-1];ne&&ne.type==="text"?ne.value+=" ":P.children.push({type:"text",value:" "}),P.children.push(...O)}else x.push(...O);const q={type:"element",tagName:"li",properties:{id:a+"fn-"+A},children:t.wrap(x,!0)};t.patch(m,q),g.push(q)}if(g.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...structuredClone$1(d),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:`
|
|
141
171
|
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(g,!0)},{type:"text",value:`
|
|
142
|
-
`}]}}const convert=(function(t){if(t==null)return ok;if(typeof t=="function")return castFactory(t);if(typeof t=="object")return Array.isArray(t)?anyFactory(t):propertiesFactory(t);if(typeof t=="string")return typeFactory(t);throw new Error("Expected function, string, or object as test")});function anyFactory(t){const a=[];let l=-1;for(;++l<t.length;)a[l]=convert(t[l]);return castFactory(u);function u(...c){let f=-1;for(;++f<a.length;)if(a[f].apply(this,c))return!0;return!1}}function propertiesFactory(t){const a=t;return castFactory(l);function l(u){const c=u;let f;for(f in t)if(c[f]!==a[f])return!1;return!0}}function typeFactory(t){return castFactory(a);function a(l){return l&&l.type===t}}function castFactory(t){return a;function a(l,u,c){return!!(looksLikeANode(l)&&t.call(this,l,typeof u=="number"?u:void 0,c||void 0))}}function ok(){return!0}function looksLikeANode(t){return t!==null&&typeof t=="object"&&"type"in t}function color(t){return t}const empty=[],CONTINUE=!0,EXIT=!1,SKIP="skip";function visitParents(t,a,l,u){let c;typeof a=="function"&&typeof l!="function"?(u=l,l=a):c=a;const f=convert(c),d=u?-1:1;g(t,void 0,[])();function g(m,
|
|
172
|
+
`}]}}const convert=(function(t){if(t==null)return ok;if(typeof t=="function")return castFactory(t);if(typeof t=="object")return Array.isArray(t)?anyFactory(t):propertiesFactory(t);if(typeof t=="string")return typeFactory(t);throw new Error("Expected function, string, or object as test")});function anyFactory(t){const a=[];let l=-1;for(;++l<t.length;)a[l]=convert(t[l]);return castFactory(u);function u(...c){let f=-1;for(;++f<a.length;)if(a[f].apply(this,c))return!0;return!1}}function propertiesFactory(t){const a=t;return castFactory(l);function l(u){const c=u;let f;for(f in t)if(c[f]!==a[f])return!1;return!0}}function typeFactory(t){return castFactory(a);function a(l){return l&&l.type===t}}function castFactory(t){return a;function a(l,u,c){return!!(looksLikeANode(l)&&t.call(this,l,typeof u=="number"?u:void 0,c||void 0))}}function ok(){return!0}function looksLikeANode(t){return t!==null&&typeof t=="object"&&"type"in t}function color(t){return t}const empty=[],CONTINUE=!0,EXIT=!1,SKIP="skip";function visitParents(t,a,l,u){let c;typeof a=="function"&&typeof l!="function"?(u=l,l=a):c=a;const f=convert(c),d=u?-1:1;g(t,void 0,[])();function g(h,m,x){const S=h&&typeof h=="object"?h:{};if(typeof S.type=="string"){const C=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(A,"name",{value:"node ("+(h.type+(C?"<"+C+">":""))+")"})}return A;function A(){let C=empty,O,Z,P;if((!a||f(h,m,x[x.length-1]||void 0))&&(C=toResult(l(h,x)),C[0]===EXIT))return C;if("children"in h&&h.children){const q=h;if(q.children&&C[0]!==SKIP)for(Z=(u?q.children.length:-1)+d,P=x.concat(q);Z>-1&&Z<q.children.length;){const ne=q.children[Z];if(O=g(ne,Z,P)(),O[0]===EXIT)return O;Z=typeof O[1]=="number"?O[1]:Z+d}}return C}}}function toResult(t){return Array.isArray(t)?t:typeof t=="number"?[CONTINUE,t]:t==null?empty:[t]}function visit(t,a,l,u){let c,f,d;typeof a=="function"&&typeof l!="function"?(f=void 0,d=a,c=l):(f=a,d=l,c=u),visitParents(t,f,g,c);function g(h,m){const x=m[m.length-1],S=x?x.children.indexOf(h):void 0;return d(h,S,x)}}const own$1={}.hasOwnProperty,emptyOptions$1={};function createState(t,a){const l=a||emptyOptions$1,u=new Map,c=new Map,f=new Map,d={...handlers,...l.handlers},g={all:m,applyData,definitionById:u,footnoteById:c,footnoteCounts:f,footnoteOrder:[],handlers:d,one:h,options:l,patch,wrap:wrap$1};return visit(t,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const S=x.type==="definition"?u:c,A=String(x.identifier).toUpperCase();S.has(A)||S.set(A,x)}}),g;function h(x,S){const A=x.type,C=g.handlers[A];if(own$1.call(g.handlers,A)&&C)return C(g,x,S);if(g.options.passThrough&&g.options.passThrough.includes(A)){if("children"in x){const{children:Z,...P}=x,q=structuredClone$1(P);return q.children=g.all(x),q}return structuredClone$1(x)}return(g.options.unknownHandler||defaultUnknownHandler)(g,x,S)}function m(x){const S=[];if("children"in x){const A=x.children;let C=-1;for(;++C<A.length;){const O=g.one(A[C],x);if(O){if(C&&A[C-1].type==="break"&&(!Array.isArray(O)&&O.type==="text"&&(O.value=trimMarkdownSpaceStart(O.value)),!Array.isArray(O)&&O.type==="element")){const Z=O.children[0];Z&&Z.type==="text"&&(Z.value=trimMarkdownSpaceStart(Z.value))}Array.isArray(O)?S.push(...O):S.push(O)}}}return S}}function patch(t,a){t.position&&(a.position=position$1(t))}function applyData(t,a){let l=a;if(t&&t.data){const u=t.data.hName,c=t.data.hChildren,f=t.data.hProperties;if(typeof u=="string")if(l.type==="element")l.tagName=u;else{const d="children"in l?l.children:[l];l={type:"element",tagName:u,properties:{},children:d}}l.type==="element"&&f&&Object.assign(l.properties,structuredClone$1(f)),"children"in l&&l.children&&c!==null&&c!==void 0&&(l.children=c)}return l}function defaultUnknownHandler(t,a){const l=a.data||{},u="value"in a&&!(own$1.call(l,"hProperties")||own$1.call(l,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:t.all(a)};return t.patch(a,u),t.applyData(a,u)}function wrap$1(t,a){const l=[];let u=-1;for(a&&l.push({type:"text",value:`
|
|
143
173
|
`});++u<t.length;)u&&l.push({type:"text",value:`
|
|
144
174
|
`}),l.push(t[u]);return a&&t.length>0&&l.push({type:"text",value:`
|
|
145
175
|
`}),l}function trimMarkdownSpaceStart(t){let a=0,l=t.charCodeAt(a);for(;l===9||l===32;)a++,l=t.charCodeAt(a);return t.slice(a)}function toHast(t,a){const l=createState(t,a),u=l.one(t,void 0),c=footer(l),f=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return c&&f.children.push({type:"text",value:`
|
|
146
|
-
`},c),f}function remarkRehype(t,a){return t&&"run"in t?async function(l,u){const c=toHast(l,{file:u,...a});await t.run(c,u)}:function(l,u){return toHast(l,{file:u,...t||a})}}function bail(t){if(t)throw t}var extend$1,hasRequiredExtend;function requireExtend(){if(hasRequiredExtend)return extend$1;hasRequiredExtend=1;var t=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=function(h){return typeof Array.isArray=="function"?Array.isArray(h):a.call(h)==="[object Array]"},f=function(h){if(!h||a.call(h)!=="[object Object]")return!1;var x=t.call(h,"constructor"),S=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!x&&!S)return!1;var A;for(A in h);return typeof A>"u"||t.call(h,A)},d=function(h,x){l&&x.name==="__proto__"?l(h,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):h[x.name]=x.newValue},g=function(h,x){if(x==="__proto__")if(t.call(h,x)){if(u)return u(h,x).value}else return;return h[x]};return extend$1=function m(){var h,x,S,A,C,O,F=arguments[0],P=1,q=arguments.length,ie=!1;for(typeof F=="boolean"&&(ie=F,F=arguments[1]||{},P=2),(F==null||typeof F!="object"&&typeof F!="function")&&(F={});P<q;++P)if(h=arguments[P],h!=null)for(x in h)S=g(F,x),A=g(h,x),F!==A&&(ie&&A&&(f(A)||(C=c(A)))?(C?(C=!1,O=S&&c(S)?S:[]):O=S&&f(S)?S:{},d(F,{name:x,newValue:m(ie,O,A)})):typeof A<"u"&&d(F,{name:x,newValue:A}));return F},extend$1}var extendExports=requireExtend();const extend=getDefaultExportFromCjs$1(extendExports);function isPlainObject(t){if(typeof t!="object"||t===null)return!1;const a=Object.getPrototypeOf(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function trough(){const t=[],a={run:l,use:u};return a;function l(...c){let f=-1;const d=c.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);g(null,...c);function g(m,...h){const x=t[++f];let S=-1;if(m){d(m);return}for(;++S<c.length;)(h[S]===null||h[S]===void 0)&&(h[S]=c[S]);c=h,x?wrap(x,g)(...h):d(null,...h)}}function u(c){if(typeof c!="function")throw new TypeError("Expected `middelware` to be a function, not "+c);return t.push(c),a}}function wrap(t,a){let l;return u;function u(...d){const g=t.length>d.length;let m;g&&d.push(c);try{m=t.apply(this,d)}catch(h){const x=h;if(g&&l)throw x;return c(x)}g||(m&&m.then&&typeof m.then=="function"?m.then(f,c):m instanceof Error?c(m):f(m))}function c(d,...g){l||(l=!0,a(d,...g))}function f(d){c(null,d)}}const minpath={basename,dirname,extname,join,sep:"/"};function basename(t,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');assertPath$1(t);let l=0,u=-1,c=t.length,f;if(a===void 0||a.length===0||a.length>t.length){for(;c--;)if(t.codePointAt(c)===47){if(f){l=c+1;break}}else u<0&&(f=!0,u=c+1);return u<0?"":t.slice(l,u)}if(a===t)return"";let d=-1,g=a.length-1;for(;c--;)if(t.codePointAt(c)===47){if(f){l=c+1;break}}else d<0&&(f=!0,d=c+1),g>-1&&(t.codePointAt(c)===a.codePointAt(g--)?g<0&&(u=c):(g=-1,u=d));return l===u?u=d:u<0&&(u=t.length),t.slice(l,u)}function dirname(t){if(assertPath$1(t),t.length===0)return".";let a=-1,l=t.length,u;for(;--l;)if(t.codePointAt(l)===47){if(u){a=l;break}}else u||(u=!0);return a<0?t.codePointAt(0)===47?"/":".":a===1&&t.codePointAt(0)===47?"//":t.slice(0,a)}function extname(t){assertPath$1(t);let a=t.length,l=-1,u=0,c=-1,f=0,d;for(;a--;){const g=t.codePointAt(a);if(g===47){if(d){u=a+1;break}continue}l<0&&(d=!0,l=a+1),g===46?c<0?c=a:f!==1&&(f=1):c>-1&&(f=-1)}return c<0||l<0||f===0||f===1&&c===l-1&&c===u+1?"":t.slice(c,l)}function join(...t){let a=-1,l;for(;++a<t.length;)assertPath$1(t[a]),t[a]&&(l=l===void 0?t[a]:l+"/"+t[a]);return l===void 0?".":normalize(l)}function normalize(t){assertPath$1(t);const a=t.codePointAt(0)===47;let l=normalizeString(t,!a);return l.length===0&&!a&&(l="."),l.length>0&&t.codePointAt(t.length-1)===47&&(l+="/"),a?"/"+l:l}function normalizeString(t,a){let l="",u=0,c=-1,f=0,d=-1,g,m;for(;++d<=t.length;){if(d<t.length)g=t.codePointAt(d);else{if(g===47)break;g=47}if(g===47){if(!(c===d-1||f===1))if(c!==d-1&&f===2){if(l.length<2||u!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(m=l.lastIndexOf("/"),m!==l.length-1){m<0?(l="",u=0):(l=l.slice(0,m),u=l.length-1-l.lastIndexOf("/")),c=d,f=0;continue}}else if(l.length>0){l="",u=0,c=d,f=0;continue}}a&&(l=l.length>0?l+"/..":"..",u=2)}else l.length>0?l+="/"+t.slice(c+1,d):l=t.slice(c+1,d),u=d-c-1;c=d,f=0}else g===46&&f>-1?f++:f=-1}return l}function assertPath$1(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const minproc={cwd};function cwd(){return"/"}function isUrl(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function urlToPath(t){if(typeof t=="string")t=new URL(t);else if(!isUrl(t)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(t.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return getPathFromURLPosix(t)}function getPathFromURLPosix(t){if(t.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const a=t.pathname;let l=-1;for(;++l<a.length;)if(a.codePointAt(l)===37&&a.codePointAt(l+1)===50){const u=a.codePointAt(l+2);if(u===70||u===102){const c=new TypeError("File URL path must not include encoded / characters");throw c.code="ERR_INVALID_FILE_URL_PATH",c}}return decodeURIComponent(a)}const order=["history","path","basename","stem","extname","dirname"];class VFile{constructor(a){let l;a?isUrl(a)?l={path:a}:typeof a=="string"||isUint8Array$1(a)?l={value:a}:l=a:l={},this.cwd="cwd"in l?"":minproc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<order.length;){const f=order[u];f in l&&l[f]!==void 0&&l[f]!==null&&(this[f]=f==="history"?[...l[f]]:l[f])}let c;for(c in l)order.includes(c)||(this[c]=l[c])}get basename(){return typeof this.path=="string"?minpath.basename(this.path):void 0}set basename(a){assertNonEmpty(a,"basename"),assertPart(a,"basename"),this.path=minpath.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?minpath.dirname(this.path):void 0}set dirname(a){assertPath(this.basename,"dirname"),this.path=minpath.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?minpath.extname(this.path):void 0}set extname(a){if(assertPart(a,"extname"),assertPath(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=minpath.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){isUrl(a)&&(a=urlToPath(a)),assertNonEmpty(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?minpath.basename(this.path,this.extname):void 0}set stem(a){assertNonEmpty(a,"stem"),assertPart(a,"stem"),this.path=minpath.join(this.dirname||"",a+(this.extname||""))}fail(a,l,u){const c=this.message(a,l,u);throw c.fatal=!0,c}info(a,l,u){const c=this.message(a,l,u);return c.fatal=void 0,c}message(a,l,u){const c=new VFileMessage(a,l,u);return this.path&&(c.name=this.path+":"+c.name,c.file=this.path),c.fatal=!1,this.messages.push(c),c}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function assertPart(t,a){if(t&&t.includes(minpath.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+minpath.sep+"`")}function assertNonEmpty(t,a){if(!t)throw new Error("`"+a+"` cannot be empty")}function assertPath(t,a){if(!t)throw new Error("Setting `"+a+"` requires `path` to be set too")}function isUint8Array$1(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const CallableInstance=(function(t){const u=this.constructor.prototype,c=u[t],f=function(){return c.apply(f,arguments)};return Object.setPrototypeOf(f,u),f}),own={}.hasOwnProperty;class Processor extends CallableInstance{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=trough()}copy(){const a=new Processor;let l=-1;for(;++l<this.attachers.length;){const u=this.attachers[l];a.use(...u)}return a.data(extend(!0,{},this.namespace)),a}data(a,l){return typeof a=="string"?arguments.length===2?(assertUnfrozen("data",this.frozen),this.namespace[a]=l,this):own.call(this.namespace,a)&&this.namespace[a]||void 0:a?(assertUnfrozen("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const c=l.call(a,...u);typeof c=="function"&&this.transformers.use(c)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const l=vfile(a),u=this.parser||this.Parser;return assertParser("parse",u),u(String(l),l)}process(a,l){const u=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),l?c(void 0,l):new Promise(c);function c(f,d){const g=vfile(a),m=u.parse(g);u.run(m,g,function(x,S,A){if(x||!S||!A)return h(x);const C=S,O=u.stringify(C,A);looksLikeAValue(O)?A.value=O:A.result=O,h(x,A)});function h(x,S){x||!S?d(x):f?f(S):l(void 0,S)}}}processSync(a){let l=!1,u;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(a,c),assertDone("processSync","process",l),u;function c(f,d){l=!0,bail(f),u=d}}run(a,l,u){assertNode(a),this.freeze();const c=this.transformers;return!u&&typeof l=="function"&&(u=l,l=void 0),u?f(void 0,u):new Promise(f);function f(d,g){const m=vfile(l);c.run(a,m,h);function h(x,S,A){const C=S||a;x?g(x):d?d(C):u(void 0,C,A)}}}runSync(a,l){let u=!1,c;return this.run(a,l,f),assertDone("runSync","run",u),c;function f(d,g){bail(d),c=g,u=!0}}stringify(a,l){this.freeze();const u=vfile(l),c=this.compiler||this.Compiler;return assertCompiler("stringify",c),assertNode(a),c(a,u)}use(a,...l){const u=this.attachers,c=this.namespace;if(assertUnfrozen("use",this.frozen),a!=null)if(typeof a=="function")m(a,l);else if(typeof a=="object")Array.isArray(a)?g(a):d(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function f(h){if(typeof h=="function")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[x,...S]=h;m(x,S)}else d(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function d(h){if(!("plugins"in h)&&!("settings"in h))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");g(h.plugins),h.settings&&(c.settings=extend(!0,c.settings,h.settings))}function g(h){let x=-1;if(h!=null)if(Array.isArray(h))for(;++x<h.length;){const S=h[x];f(S)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,x){let S=-1,A=-1;for(;++S<u.length;)if(u[S][0]===h){A=S;break}if(A===-1)u.push([h,...x]);else if(x.length>0){let[C,...O]=x;const F=u[A][1];isPlainObject(F)&&isPlainObject(C)&&(C=extend(!0,F,C)),u[A]=[h,C,...O]}}}}const unified=new Processor().freeze();function assertParser(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function assertCompiler(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function assertUnfrozen(t,a){if(a)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(t){if(!isPlainObject(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function assertDone(t,a,l){if(!l)throw new Error("`"+t+"` finished async. Use `"+a+"` instead")}function vfile(t){return looksLikeAVFile(t)?t:new VFile(t)}function looksLikeAVFile(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function looksLikeAValue(t){return typeof t=="string"||isUint8Array(t)}function isUint8Array(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",emptyPlugins=[],emptyRemarkRehypeOptions={allowDangerousHtml:!0},safeProtocol=/^(https?|ircs?|mailto|xmpp)$/i,deprecations=[{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:"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"}];function Markdown(t){const a=createProcessor(t),l=createFile(t);return post(a.runSync(a.parse(l),l),t)}function createProcessor(t){const a=t.rehypePlugins||emptyPlugins,l=t.remarkPlugins||emptyPlugins,u=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions;return unified().use(remarkParse).use(l).use(remarkRehype,u).use(a)}function createFile(t){const a=t.children||"",l=new VFile;return typeof a=="string"&&(l.value=a),l}function post(t,a){const l=a.allowedElements,u=a.allowElement,c=a.components,f=a.disallowedElements,d=a.skipHtml,g=a.unwrapDisallowed,m=a.urlTransform||defaultUrlTransform;for(const x of deprecations)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+changelog+x.id,void 0);return a.className&&(t={type:"element",tagName:"div",properties:{className:a.className},children:t.type==="root"?t.children:[t]}),visit(t,h),toJsxRuntime(t,{Fragment:jsxRuntimeExports.Fragment,components:c,ignoreInvalidStyle:!0,jsx:jsxRuntimeExports.jsx,jsxs:jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function h(x,S,A){if(x.type==="raw"&&A&&typeof S=="number")return d?A.children.splice(S,1):A.children[S]={type:"text",value:x.value},S;if(x.type==="element"){let C;for(C in urlAttributes)if(Object.hasOwn(urlAttributes,C)&&Object.hasOwn(x.properties,C)){const O=x.properties[C],F=urlAttributes[C];(F===null||F.includes(x.tagName))&&(x.properties[C]=m(String(O||""),C,x))}}if(x.type==="element"){let C=l?!l.includes(x.tagName):f?f.includes(x.tagName):!1;if(!C&&u&&typeof S=="number"&&(C=!u(x,S,A)),C&&A&&typeof S=="number")return g&&x.children?A.children.splice(S,1,...x.children):A.children.splice(S,1),S}}}function defaultUrlTransform(t){const a=t.indexOf(":"),l=t.indexOf("?"),u=t.indexOf("#"),c=t.indexOf("/");return a===-1||c!==-1&&a>c||l!==-1&&a>l||u!==-1&&a>u||safeProtocol.test(t.slice(0,a))?t:""}reactExports.createContext(null);function parseLayoutDSL(t){const a=t.split(`
|
|
147
|
-
`).filter(u=>u.trim().length>0);if(a.length===0)throw new Error("Empty layout DSL");const l=a.map(parseLine);return buildTree(l)}function parseLine(t){const a=t.replace(/\t/g," "),l=a.length-a.trimStart().length,u=a.trim(),c=u.match(/^(\w+)(?:\(([^)]*)\))?:\s*(?:"([^"]*)"|\{\{\s*([^}]+)\s*\}\})?$/);if(!c){const
|
|
176
|
+
`},c),f}function remarkRehype(t,a){return t&&"run"in t?async function(l,u){const c=toHast(l,{file:u,...a});await t.run(c,u)}:function(l,u){return toHast(l,{file:u,...t||a})}}function bail(t){if(t)throw t}var extend$1,hasRequiredExtend;function requireExtend(){if(hasRequiredExtend)return extend$1;hasRequiredExtend=1;var t=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},f=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var x=t.call(m,"constructor"),S=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!S)return!1;var A;for(A in m);return typeof A>"u"||t.call(m,A)},d=function(m,x){l&&x.name==="__proto__"?l(m,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):m[x.name]=x.newValue},g=function(m,x){if(x==="__proto__")if(t.call(m,x)){if(u)return u(m,x).value}else return;return m[x]};return extend$1=function h(){var m,x,S,A,C,O,Z=arguments[0],P=1,q=arguments.length,ne=!1;for(typeof Z=="boolean"&&(ne=Z,Z=arguments[1]||{},P=2),(Z==null||typeof Z!="object"&&typeof Z!="function")&&(Z={});P<q;++P)if(m=arguments[P],m!=null)for(x in m)S=g(Z,x),A=g(m,x),Z!==A&&(ne&&A&&(f(A)||(C=c(A)))?(C?(C=!1,O=S&&c(S)?S:[]):O=S&&f(S)?S:{},d(Z,{name:x,newValue:h(ne,O,A)})):typeof A<"u"&&d(Z,{name:x,newValue:A}));return Z},extend$1}var extendExports=requireExtend();const extend=getDefaultExportFromCjs$1(extendExports);function isPlainObject(t){if(typeof t!="object"||t===null)return!1;const a=Object.getPrototypeOf(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function trough(){const t=[],a={run:l,use:u};return a;function l(...c){let f=-1;const d=c.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);g(null,...c);function g(h,...m){const x=t[++f];let S=-1;if(h){d(h);return}for(;++S<c.length;)(m[S]===null||m[S]===void 0)&&(m[S]=c[S]);c=m,x?wrap(x,g)(...m):d(null,...m)}}function u(c){if(typeof c!="function")throw new TypeError("Expected `middelware` to be a function, not "+c);return t.push(c),a}}function wrap(t,a){let l;return u;function u(...d){const g=t.length>d.length;let h;g&&d.push(c);try{h=t.apply(this,d)}catch(m){const x=m;if(g&&l)throw x;return c(x)}g||(h&&h.then&&typeof h.then=="function"?h.then(f,c):h instanceof Error?c(h):f(h))}function c(d,...g){l||(l=!0,a(d,...g))}function f(d){c(null,d)}}const minpath={basename,dirname,extname,join,sep:"/"};function basename(t,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');assertPath$1(t);let l=0,u=-1,c=t.length,f;if(a===void 0||a.length===0||a.length>t.length){for(;c--;)if(t.codePointAt(c)===47){if(f){l=c+1;break}}else u<0&&(f=!0,u=c+1);return u<0?"":t.slice(l,u)}if(a===t)return"";let d=-1,g=a.length-1;for(;c--;)if(t.codePointAt(c)===47){if(f){l=c+1;break}}else d<0&&(f=!0,d=c+1),g>-1&&(t.codePointAt(c)===a.codePointAt(g--)?g<0&&(u=c):(g=-1,u=d));return l===u?u=d:u<0&&(u=t.length),t.slice(l,u)}function dirname(t){if(assertPath$1(t),t.length===0)return".";let a=-1,l=t.length,u;for(;--l;)if(t.codePointAt(l)===47){if(u){a=l;break}}else u||(u=!0);return a<0?t.codePointAt(0)===47?"/":".":a===1&&t.codePointAt(0)===47?"//":t.slice(0,a)}function extname(t){assertPath$1(t);let a=t.length,l=-1,u=0,c=-1,f=0,d;for(;a--;){const g=t.codePointAt(a);if(g===47){if(d){u=a+1;break}continue}l<0&&(d=!0,l=a+1),g===46?c<0?c=a:f!==1&&(f=1):c>-1&&(f=-1)}return c<0||l<0||f===0||f===1&&c===l-1&&c===u+1?"":t.slice(c,l)}function join(...t){let a=-1,l;for(;++a<t.length;)assertPath$1(t[a]),t[a]&&(l=l===void 0?t[a]:l+"/"+t[a]);return l===void 0?".":normalize(l)}function normalize(t){assertPath$1(t);const a=t.codePointAt(0)===47;let l=normalizeString(t,!a);return l.length===0&&!a&&(l="."),l.length>0&&t.codePointAt(t.length-1)===47&&(l+="/"),a?"/"+l:l}function normalizeString(t,a){let l="",u=0,c=-1,f=0,d=-1,g,h;for(;++d<=t.length;){if(d<t.length)g=t.codePointAt(d);else{if(g===47)break;g=47}if(g===47){if(!(c===d-1||f===1))if(c!==d-1&&f===2){if(l.length<2||u!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(h=l.lastIndexOf("/"),h!==l.length-1){h<0?(l="",u=0):(l=l.slice(0,h),u=l.length-1-l.lastIndexOf("/")),c=d,f=0;continue}}else if(l.length>0){l="",u=0,c=d,f=0;continue}}a&&(l=l.length>0?l+"/..":"..",u=2)}else l.length>0?l+="/"+t.slice(c+1,d):l=t.slice(c+1,d),u=d-c-1;c=d,f=0}else g===46&&f>-1?f++:f=-1}return l}function assertPath$1(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const minproc={cwd};function cwd(){return"/"}function isUrl(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function urlToPath(t){if(typeof t=="string")t=new URL(t);else if(!isUrl(t)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(t.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return getPathFromURLPosix(t)}function getPathFromURLPosix(t){if(t.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const a=t.pathname;let l=-1;for(;++l<a.length;)if(a.codePointAt(l)===37&&a.codePointAt(l+1)===50){const u=a.codePointAt(l+2);if(u===70||u===102){const c=new TypeError("File URL path must not include encoded / characters");throw c.code="ERR_INVALID_FILE_URL_PATH",c}}return decodeURIComponent(a)}const order=["history","path","basename","stem","extname","dirname"];class VFile{constructor(a){let l;a?isUrl(a)?l={path:a}:typeof a=="string"||isUint8Array$1(a)?l={value:a}:l=a:l={},this.cwd="cwd"in l?"":minproc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<order.length;){const f=order[u];f in l&&l[f]!==void 0&&l[f]!==null&&(this[f]=f==="history"?[...l[f]]:l[f])}let c;for(c in l)order.includes(c)||(this[c]=l[c])}get basename(){return typeof this.path=="string"?minpath.basename(this.path):void 0}set basename(a){assertNonEmpty(a,"basename"),assertPart(a,"basename"),this.path=minpath.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?minpath.dirname(this.path):void 0}set dirname(a){assertPath(this.basename,"dirname"),this.path=minpath.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?minpath.extname(this.path):void 0}set extname(a){if(assertPart(a,"extname"),assertPath(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=minpath.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){isUrl(a)&&(a=urlToPath(a)),assertNonEmpty(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?minpath.basename(this.path,this.extname):void 0}set stem(a){assertNonEmpty(a,"stem"),assertPart(a,"stem"),this.path=minpath.join(this.dirname||"",a+(this.extname||""))}fail(a,l,u){const c=this.message(a,l,u);throw c.fatal=!0,c}info(a,l,u){const c=this.message(a,l,u);return c.fatal=void 0,c}message(a,l,u){const c=new VFileMessage(a,l,u);return this.path&&(c.name=this.path+":"+c.name,c.file=this.path),c.fatal=!1,this.messages.push(c),c}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function assertPart(t,a){if(t&&t.includes(minpath.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+minpath.sep+"`")}function assertNonEmpty(t,a){if(!t)throw new Error("`"+a+"` cannot be empty")}function assertPath(t,a){if(!t)throw new Error("Setting `"+a+"` requires `path` to be set too")}function isUint8Array$1(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const CallableInstance=(function(t){const u=this.constructor.prototype,c=u[t],f=function(){return c.apply(f,arguments)};return Object.setPrototypeOf(f,u),f}),own={}.hasOwnProperty;class Processor extends CallableInstance{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=trough()}copy(){const a=new Processor;let l=-1;for(;++l<this.attachers.length;){const u=this.attachers[l];a.use(...u)}return a.data(extend(!0,{},this.namespace)),a}data(a,l){return typeof a=="string"?arguments.length===2?(assertUnfrozen("data",this.frozen),this.namespace[a]=l,this):own.call(this.namespace,a)&&this.namespace[a]||void 0:a?(assertUnfrozen("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const c=l.call(a,...u);typeof c=="function"&&this.transformers.use(c)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const l=vfile(a),u=this.parser||this.Parser;return assertParser("parse",u),u(String(l),l)}process(a,l){const u=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),l?c(void 0,l):new Promise(c);function c(f,d){const g=vfile(a),h=u.parse(g);u.run(h,g,function(x,S,A){if(x||!S||!A)return m(x);const C=S,O=u.stringify(C,A);looksLikeAValue(O)?A.value=O:A.result=O,m(x,A)});function m(x,S){x||!S?d(x):f?f(S):l(void 0,S)}}}processSync(a){let l=!1,u;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(a,c),assertDone("processSync","process",l),u;function c(f,d){l=!0,bail(f),u=d}}run(a,l,u){assertNode(a),this.freeze();const c=this.transformers;return!u&&typeof l=="function"&&(u=l,l=void 0),u?f(void 0,u):new Promise(f);function f(d,g){const h=vfile(l);c.run(a,h,m);function m(x,S,A){const C=S||a;x?g(x):d?d(C):u(void 0,C,A)}}}runSync(a,l){let u=!1,c;return this.run(a,l,f),assertDone("runSync","run",u),c;function f(d,g){bail(d),c=g,u=!0}}stringify(a,l){this.freeze();const u=vfile(l),c=this.compiler||this.Compiler;return assertCompiler("stringify",c),assertNode(a),c(a,u)}use(a,...l){const u=this.attachers,c=this.namespace;if(assertUnfrozen("use",this.frozen),a!=null)if(typeof a=="function")h(a,l);else if(typeof a=="object")Array.isArray(a)?g(a):d(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function f(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[x,...S]=m;h(x,S)}else d(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function d(m){if(!("plugins"in m)&&!("settings"in m))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");g(m.plugins),m.settings&&(c.settings=extend(!0,c.settings,m.settings))}function g(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const S=m[x];f(S)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,x){let S=-1,A=-1;for(;++S<u.length;)if(u[S][0]===m){A=S;break}if(A===-1)u.push([m,...x]);else if(x.length>0){let[C,...O]=x;const Z=u[A][1];isPlainObject(Z)&&isPlainObject(C)&&(C=extend(!0,Z,C)),u[A]=[m,C,...O]}}}}const unified=new Processor().freeze();function assertParser(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function assertCompiler(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function assertUnfrozen(t,a){if(a)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(t){if(!isPlainObject(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function assertDone(t,a,l){if(!l)throw new Error("`"+t+"` finished async. Use `"+a+"` instead")}function vfile(t){return looksLikeAVFile(t)?t:new VFile(t)}function looksLikeAVFile(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function looksLikeAValue(t){return typeof t=="string"||isUint8Array(t)}function isUint8Array(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",emptyPlugins=[],emptyRemarkRehypeOptions={allowDangerousHtml:!0},safeProtocol=/^(https?|ircs?|mailto|xmpp)$/i,deprecations=[{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:"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"}];function Markdown(t){const a=createProcessor(t),l=createFile(t);return post(a.runSync(a.parse(l),l),t)}function createProcessor(t){const a=t.rehypePlugins||emptyPlugins,l=t.remarkPlugins||emptyPlugins,u=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions;return unified().use(remarkParse).use(l).use(remarkRehype,u).use(a)}function createFile(t){const a=t.children||"",l=new VFile;return typeof a=="string"&&(l.value=a),l}function post(t,a){const l=a.allowedElements,u=a.allowElement,c=a.components,f=a.disallowedElements,d=a.skipHtml,g=a.unwrapDisallowed,h=a.urlTransform||defaultUrlTransform;for(const x of deprecations)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+changelog+x.id,void 0);return a.className&&(t={type:"element",tagName:"div",properties:{className:a.className},children:t.type==="root"?t.children:[t]}),visit(t,m),toJsxRuntime(t,{Fragment:jsxRuntimeExports.Fragment,components:c,ignoreInvalidStyle:!0,jsx:jsxRuntimeExports.jsx,jsxs:jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function m(x,S,A){if(x.type==="raw"&&A&&typeof S=="number")return d?A.children.splice(S,1):A.children[S]={type:"text",value:x.value},S;if(x.type==="element"){let C;for(C in urlAttributes)if(Object.hasOwn(urlAttributes,C)&&Object.hasOwn(x.properties,C)){const O=x.properties[C],Z=urlAttributes[C];(Z===null||Z.includes(x.tagName))&&(x.properties[C]=h(String(O||""),C,x))}}if(x.type==="element"){let C=l?!l.includes(x.tagName):f?f.includes(x.tagName):!1;if(!C&&u&&typeof S=="number"&&(C=!u(x,S,A)),C&&A&&typeof S=="number")return g&&x.children?A.children.splice(S,1,...x.children):A.children.splice(S,1),S}}}function defaultUrlTransform(t){const a=t.indexOf(":"),l=t.indexOf("?"),u=t.indexOf("#"),c=t.indexOf("/");return a===-1||c!==-1&&a>c||l!==-1&&a>l||u!==-1&&a>u||safeProtocol.test(t.slice(0,a))?t:""}reactExports.createContext(null);function parseLayoutDSL(t){const a=t.split(`
|
|
177
|
+
`).filter(u=>u.trim().length>0);if(a.length===0)throw new Error("Empty layout DSL");const l=a.map(parseLine);return buildTree(l)}function parseLine(t){const a=t.replace(/\t/g," "),l=a.length-a.trimStart().length,u=a.trim(),c=u.match(/^(\w+)(?:\(([^)]*)\))?:\s*(?:"([^"]*)"|\{\{\s*([^}]+)\s*\}\})?$/);if(!c){const h=u.match(/^(\w+)(?:\(([^)]*)\))?$/);if(h)return{indent:l,component:h[1],props:parseProps(h[2]||""),textContent:null};const m=u.match(/^"([^"]*)"$/);if(m)return{indent:l,component:"__text__",props:{},textContent:m[1]};throw new Error(`Invalid layout DSL line: "${u}"`)}const f=c[1],d=c[2]||"",g=c[3]??(c[4]?`{{ ${c[4].trim()} }}`:null);return{indent:l,component:f,props:parseProps(d),textContent:g}}function parseProps(t){if(!t.trim())return{};const a={},l=t.split(/,\s*/);for(const u of l){const c=u.indexOf("=");if(c===-1)continue;const f=u.slice(0,c).trim(),d=u.slice(c+1).trim();d==="true"?a[f]=!0:d==="false"?a[f]=!1:/^\d+(\.\d+)?$/.test(d)?a[f]=Number(d):a[f]=d}return a}function buildTree(t){if(t.length===0)throw new Error("No lines to build tree from");const a=t[0].indent;function l(f,d){const g=[];let h=f;for(;h<t.length;){const m=t[h],x=m.indent-a;if(x<=d&&h>f)break;if(x===d+2||d===-2&&x===0){if(m.component==="__text__"&&m.textContent!==null){g.push(m.textContent),h++;continue}const S={component:m.component,props:{...m.props},children:[]};if(m.textContent!==null&&S.children.push(m.textContent),h++,h<t.length&&t[h].indent-a>x){const A=l(h,x);S.children.push(...A.nodes),h=A.nextIdx}g.push(S)}else h++}return{nodes:g,nextIdx:h}}const u=t[0],c={component:u.component,props:{...u.props},children:[]};if(u.textContent!==null&&c.children.push(u.textContent),t.length>1){const f=l(1,0);c.children.push(...f.nodes)}return c}const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var kindOf,hasRequiredKindOf;function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var t=Object.prototype.toString;kindOf=function(S){if(S===void 0)return"undefined";if(S===null)return"null";var A=typeof S;if(A==="boolean")return"boolean";if(A==="string")return"string";if(A==="number")return"number";if(A==="symbol")return"symbol";if(A==="function")return d(S)?"generatorfunction":"function";if(l(S))return"array";if(m(S))return"buffer";if(h(S))return"arguments";if(c(S))return"date";if(u(S))return"error";if(f(S))return"regexp";switch(a(S)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(g(S))return"generator";switch(A=t.call(S),A){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return A.slice(8,-1).toLowerCase().replace(/\s/g,"")};function a(x){return typeof x.constructor=="function"?x.constructor.name:null}function l(x){return Array.isArray?Array.isArray(x):x instanceof Array}function u(x){return x instanceof Error||typeof x.message=="string"&&x.constructor&&typeof x.constructor.stackTraceLimit=="number"}function c(x){return x instanceof Date?!0:typeof x.toDateString=="function"&&typeof x.getDate=="function"&&typeof x.setDate=="function"}function f(x){return x instanceof RegExp?!0:typeof x.flags=="string"&&typeof x.ignoreCase=="boolean"&&typeof x.multiline=="boolean"&&typeof x.global=="boolean"}function d(x,S){return a(x)==="GeneratorFunction"}function g(x){return typeof x.throw=="function"&&typeof x.return=="function"&&typeof x.next=="function"}function h(x){try{if(typeof x.length=="number"&&typeof x.callee=="function")return!0}catch(S){if(S.message.indexOf("callee")!==-1)return!0}return!1}function m(x){return x.constructor&&typeof x.constructor.isBuffer=="function"?x.constructor.isBuffer(x):!1}return kindOf}/*!
|
|
148
178
|
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|
149
179
|
*
|
|
150
180
|
* Copyright (c) 2015, Jon Schlinkert.
|
|
151
181
|
* Licensed under the MIT License.
|
|
152
|
-
*/var isExtendable,hasRequiredIsExtendable;function requireIsExtendable(){return hasRequiredIsExtendable||(hasRequiredIsExtendable=1,isExtendable=function(a){return typeof a<"u"&&a!==null&&(typeof a=="object"||typeof a=="function")}),isExtendable}var extendShallow,hasRequiredExtendShallow;function requireExtendShallow(){if(hasRequiredExtendShallow)return extendShallow;hasRequiredExtendShallow=1;var t=requireIsExtendable();extendShallow=function(c){t(c)||(c={});for(var f=arguments.length,d=1;d<f;d++){var g=arguments[d];t(g)&&a(c,g)}return c};function a(u,c){for(var f in c)l(c,f)&&(u[f]=c[f])}function l(u,c){return Object.prototype.hasOwnProperty.call(u,c)}return extendShallow}var sectionMatter,hasRequiredSectionMatter;function requireSectionMatter(){if(hasRequiredSectionMatter)return sectionMatter;hasRequiredSectionMatter=1;var t=requireKindOf(),a=requireExtendShallow();sectionMatter=function(m
|
|
153
|
-
`),q=[];continue}
|
|
182
|
+
*/var isExtendable,hasRequiredIsExtendable;function requireIsExtendable(){return hasRequiredIsExtendable||(hasRequiredIsExtendable=1,isExtendable=function(a){return typeof a<"u"&&a!==null&&(typeof a=="object"||typeof a=="function")}),isExtendable}var extendShallow,hasRequiredExtendShallow;function requireExtendShallow(){if(hasRequiredExtendShallow)return extendShallow;hasRequiredExtendShallow=1;var t=requireIsExtendable();extendShallow=function(c){t(c)||(c={});for(var f=arguments.length,d=1;d<f;d++){var g=arguments[d];t(g)&&a(c,g)}return c};function a(u,c){for(var f in c)l(c,f)&&(u[f]=c[f])}function l(u,c){return Object.prototype.hasOwnProperty.call(u,c)}return extendShallow}var sectionMatter,hasRequiredSectionMatter;function requireSectionMatter(){if(hasRequiredSectionMatter)return sectionMatter;hasRequiredSectionMatter=1;var t=requireKindOf(),a=requireExtendShallow();sectionMatter=function(h,m){typeof m=="function"&&(m={parse:m});var x=u(h),S={section_delimiter:"---",parse:d},A=a({},S,m),C=A.section_delimiter,O=x.content.split(/\r?\n/),Z=null,P=f(),q=[],ne=[];function Y(ke){x.content=ke,Z=[],q=[]}function pe(ke){ne.length&&(P.key=c(ne[0],C),P.content=ke,A.parse(P,Z),Z.push(P),P=f(),q=[],ne=[])}for(var ye=0;ye<O.length;ye++){var Q=O[ye],be=ne.length,ue=Q.trim();if(l(ue,C)){if(ue.length===3&&ye!==0){if(be===0||be===2){q.push(Q);continue}ne.push(ue),P.data=q.join(`
|
|
183
|
+
`),q=[];continue}Z===null&&Y(q.join(`
|
|
154
184
|
`)),be===2&&pe(q.join(`
|
|
155
|
-
`)),
|
|
185
|
+
`)),ne.push(ue);continue}q.push(Q)}return Z===null?Y(q.join(`
|
|
156
186
|
`)):pe(q.join(`
|
|
157
|
-
`)),x.sections=
|
|
158
|
-
\u2028\u2029`.indexOf(this.buffer.charAt(d-1))===-1;)if(d-=1,this.position-d>c/2-1){f=" ... ",d+=5;break}for(g="",
|
|
159
|
-
\u2028\u2029`.indexOf(this.buffer.charAt(
|
|
187
|
+
`)),x.sections=Z,x};function l(h,m){return!(h.slice(0,m.length)!==m||h.charAt(m.length+1)===m.slice(-1))}function u(h){if(t(h)!=="object"&&(h={content:h}),typeof h.content!="string"&&!g(h.content))throw new TypeError("expected a buffer or string");return h.content=h.content.toString(),h.sections=[],h}function c(h,m){return h?h.slice(m.length).trim():""}function f(){return{key:"",data:"",content:""}}function d(h){return h}function g(h){return h&&h.constructor&&typeof h.constructor.isBuffer=="function"?h.constructor.isBuffer(h):!1}return sectionMatter}var engines={exports:{}},jsYaml$1={},loader={},common={},hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;function t(d){return typeof d>"u"||d===null}function a(d){return typeof d=="object"&&d!==null}function l(d){return Array.isArray(d)?d:t(d)?[]:[d]}function u(d,g){var h,m,x,S;if(g)for(S=Object.keys(g),h=0,m=S.length;h<m;h+=1)x=S[h],d[x]=g[x];return d}function c(d,g){var h="",m;for(m=0;m<g;m+=1)h+=d;return h}function f(d){return d===0&&Number.NEGATIVE_INFINITY===1/d}return common.isNothing=t,common.isObject=a,common.toArray=l,common.repeat=c,common.isNegativeZero=f,common.extend=u,common}var exception,hasRequiredException;function requireException(){if(hasRequiredException)return exception;hasRequiredException=1;function t(a,l){Error.call(this),this.name="YAMLException",this.reason=a,this.mark=l,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(l){var u=this.name+": ";return u+=this.reason||"(unknown reason)",!l&&this.mark&&(u+=" "+this.mark.toString()),u},exception=t,exception}var mark,hasRequiredMark;function requireMark(){if(hasRequiredMark)return mark;hasRequiredMark=1;var t=requireCommon();function a(l,u,c,f,d){this.name=l,this.buffer=u,this.position=c,this.line=f,this.column=d}return a.prototype.getSnippet=function(u,c){var f,d,g,h,m;if(!this.buffer)return null;for(u=u||4,c=c||75,f="",d=this.position;d>0&&`\0\r
|
|
188
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(d-1))===-1;)if(d-=1,this.position-d>c/2-1){f=" ... ",d+=5;break}for(g="",h=this.position;h<this.buffer.length&&`\0\r
|
|
189
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(h))===-1;)if(h+=1,h-this.position>c/2-1){g=" ... ",h-=5;break}return m=this.buffer.slice(d,h),t.repeat(" ",u)+f+m+g+`
|
|
160
190
|
`+t.repeat(" ",u+this.position-d+f.length)+"^"},a.prototype.toString=function(u){var c,f="";return this.name&&(f+='in "'+this.name+'" '),f+="at line "+(this.line+1)+", column "+(this.column+1),u||(c=this.getSnippet(),c&&(f+=`:
|
|
161
|
-
`+c)),f},mark=a,mark}var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var t=requireException(),a=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],l=["scalar","sequence","mapping"];function u(f){var d={};return f!==null&&Object.keys(f).forEach(function(g){f[g].forEach(function(m){d[String(m)]=g})}),d}function c(f,d){if(d=d||{},Object.keys(d).forEach(function(g){if(a.indexOf(g)===-1)throw new t('Unknown option "'+g+'" is met in definition of "'+f+'" YAML type.')}),this.tag=f,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(g){return g},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.defaultStyle=d.defaultStyle||null,this.styleAliases=u(d.styleAliases||null),l.indexOf(this.kind)===-1)throw new t('Unknown kind "'+this.kind+'" is specified for "'+f+'" YAML type.')}return type=c,type}var schema,hasRequiredSchema;function requireSchema(){if(hasRequiredSchema)return schema;hasRequiredSchema=1;var t=requireCommon(),a=requireException(),l=requireType();function u(d,g,m){var h=[];return d.include.forEach(function(x){m=u(x,g,m)}),d[g].forEach(function(x){m.forEach(function(S,A){S.tag===x.tag&&S.kind===x.kind&&h.push(A)}),m.push(x)}),m.filter(function(x,S){return h.indexOf(S)===-1})}function c(){var d={scalar:{},sequence:{},mapping:{},fallback:{}},g,m;function h(x){d[x.kind][x.tag]=d.fallback[x.tag]=x}for(g=0,m=arguments.length;g<m;g+=1)arguments[g].forEach(h);return d}function f(d){this.include=d.include||[],this.implicit=d.implicit||[],this.explicit=d.explicit||[],this.implicit.forEach(function(g){if(g.loadKind&&g.loadKind!=="scalar")throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=u(this,"implicit",[]),this.compiledExplicit=u(this,"explicit",[]),this.compiledTypeMap=c(this.compiledImplicit,this.compiledExplicit)}return f.DEFAULT=null,f.create=function(){var g,m;switch(arguments.length){case 1:g=f.DEFAULT,m=arguments[0];break;case 2:g=arguments[0],m=arguments[1];break;default:throw new a("Wrong number of arguments for Schema.create function")}if(g=t.toArray(g),m=t.toArray(m),!g.every(function(h){return h instanceof f}))throw new a("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!m.every(function(h){return h instanceof l}))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new f({include:g,explicit:m})},schema=f,schema}var str,hasRequiredStr;function requireStr(){if(hasRequiredStr)return str;hasRequiredStr=1;var t=requireType();return str=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(a){return a!==null?a:""}}),str}var seq,hasRequiredSeq;function requireSeq(){if(hasRequiredSeq)return seq;hasRequiredSeq=1;var t=requireType();return seq=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(a){return a!==null?a:[]}}),seq}var map$2,hasRequiredMap;function requireMap(){if(hasRequiredMap)return map$2;hasRequiredMap=1;var t=requireType();return map$2=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(a){return a!==null?a:{}}}),map$2}var failsafe,hasRequiredFailsafe;function requireFailsafe(){if(hasRequiredFailsafe)return failsafe;hasRequiredFailsafe=1;var t=requireSchema();return failsafe=new t({explicit:[requireStr(),requireSeq(),requireMap()]}),failsafe}var _null,hasRequired_null;function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;var t=requireType();function a(c){if(c===null)return!0;var f=c.length;return f===1&&c==="~"||f===4&&(c==="null"||c==="Null"||c==="NULL")}function l(){return null}function u(c){return c===null}return _null=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:l,predicate:u,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),_null}var bool,hasRequiredBool;function requireBool(){if(hasRequiredBool)return bool;hasRequiredBool=1;var t=requireType();function a(c){if(c===null)return!1;var f=c.length;return f===4&&(c==="true"||c==="True"||c==="TRUE")||f===5&&(c==="false"||c==="False"||c==="FALSE")}function l(c){return c==="true"||c==="True"||c==="TRUE"}function u(c){return Object.prototype.toString.call(c)==="[object Boolean]"}return bool=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:l,predicate:u,represent:{lowercase:function(c){return c?"true":"false"},uppercase:function(c){return c?"TRUE":"FALSE"},camelcase:function(c){return c?"True":"False"}},defaultStyle:"lowercase"}),bool}var int,hasRequiredInt;function requireInt(){if(hasRequiredInt)return int;hasRequiredInt=1;var t=requireCommon(),a=requireType();function l(m){return 48<=m&&m<=57||65<=m&&m<=70||97<=m&&m<=102}function u(m){return 48<=m&&m<=55}function c(m){return 48<=m&&m<=57}function f(m){if(m===null)return!1;var h=m.length,x=0,S=!1,A;if(!h)return!1;if(A=m[x],(A==="-"||A==="+")&&(A=m[++x]),A==="0"){if(x+1===h)return!0;if(A=m[++x],A==="b"){for(x++;x<h;x++)if(A=m[x],A!=="_"){if(A!=="0"&&A!=="1")return!1;S=!0}return S&&A!=="_"}if(A==="x"){for(x++;x<h;x++)if(A=m[x],A!=="_"){if(!l(m.charCodeAt(x)))return!1;S=!0}return S&&A!=="_"}for(;x<h;x++)if(A=m[x],A!=="_"){if(!u(m.charCodeAt(x)))return!1;S=!0}return S&&A!=="_"}if(A==="_")return!1;for(;x<h;x++)if(A=m[x],A!=="_"){if(A===":")break;if(!c(m.charCodeAt(x)))return!1;S=!0}return!S||A==="_"?!1:A!==":"?!0:/^(:[0-5]?[0-9])+$/.test(m.slice(x))}function d(m){var h=m,x=1,S,A,C=[];return h.indexOf("_")!==-1&&(h=h.replace(/_/g,"")),S=h[0],(S==="-"||S==="+")&&(S==="-"&&(x=-1),h=h.slice(1),S=h[0]),h==="0"?0:S==="0"?h[1]==="b"?x*parseInt(h.slice(2),2):h[1]==="x"?x*parseInt(h,16):x*parseInt(h,8):h.indexOf(":")!==-1?(h.split(":").forEach(function(O){C.unshift(parseInt(O,10))}),h=0,A=1,C.forEach(function(O){h+=O*A,A*=60}),x*h):x*parseInt(h,10)}function g(m){return Object.prototype.toString.call(m)==="[object Number]"&&m%1===0&&!t.isNegativeZero(m)}return int=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:f,construct:d,predicate:g,represent:{binary:function(m){return m>=0?"0b"+m.toString(2):"-0b"+m.toString(2).slice(1)},octal:function(m){return m>=0?"0"+m.toString(8):"-0"+m.toString(8).slice(1)},decimal:function(m){return m.toString(10)},hexadecimal:function(m){return m>=0?"0x"+m.toString(16).toUpperCase():"-0x"+m.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),int}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1;var t=requireCommon(),a=requireType(),l=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function u(m){return!(m===null||!l.test(m)||m[m.length-1]==="_")}function c(m){var h,x,S,A;return h=m.replace(/_/g,"").toLowerCase(),x=h[0]==="-"?-1:1,A=[],"+-".indexOf(h[0])>=0&&(h=h.slice(1)),h===".inf"?x===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:h===".nan"?NaN:h.indexOf(":")>=0?(h.split(":").forEach(function(C){A.unshift(parseFloat(C,10))}),h=0,S=1,A.forEach(function(C){h+=C*S,S*=60}),x*h):x*parseFloat(h,10)}var f=/^[-+]?[0-9]+e/;function d(m,h){var x;if(isNaN(m))switch(h){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===m)switch(h){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===m)switch(h){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(m))return"-0.0";return x=m.toString(10),f.test(x)?x.replace("e",".e"):x}function g(m){return Object.prototype.toString.call(m)==="[object Number]"&&(m%1!==0||t.isNegativeZero(m))}return float=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:u,construct:c,predicate:g,represent:d,defaultStyle:"lowercase"}),float}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var t=requireSchema();return json=new t({include:[requireFailsafe()],implicit:[require_null(),requireBool(),requireInt(),requireFloat()]}),json}var core,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core;hasRequiredCore=1;var t=requireSchema();return core=new t({include:[requireJson()]}),core}var timestamp,hasRequiredTimestamp;function requireTimestamp(){if(hasRequiredTimestamp)return timestamp;hasRequiredTimestamp=1;var t=requireType(),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),l=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function u(d){return d===null?!1:a.exec(d)!==null||l.exec(d)!==null}function c(d){var g,m,h,x,S,A,C,O=0,F=null,P,q,ie;if(g=a.exec(d),g===null&&(g=l.exec(d)),g===null)throw new Error("Date resolve error");if(m=+g[1],h=+g[2]-1,x=+g[3],!g[4])return new Date(Date.UTC(m,h,x));if(S=+g[4],A=+g[5],C=+g[6],g[7]){for(O=g[7].slice(0,3);O.length<3;)O+="0";O=+O}return g[9]&&(P=+g[10],q=+(g[11]||0),F=(P*60+q)*6e4,g[9]==="-"&&(F=-F)),ie=new Date(Date.UTC(m,h,x,S,A,C,O)),F&&ie.setTime(ie.getTime()-F),ie}function f(d){return d.toISOString()}return timestamp=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:u,construct:c,instanceOf:Date,represent:f}),timestamp}var merge,hasRequiredMerge;function requireMerge(){if(hasRequiredMerge)return merge;hasRequiredMerge=1;var t=requireType();function a(l){return l==="<<"||l===null}return merge=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:a}),merge}function commonjsRequire(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var binary,hasRequiredBinary;function requireBinary(){if(hasRequiredBinary)return binary;hasRequiredBinary=1;var t;try{var a=commonjsRequire;t=a("buffer").Buffer}catch{}var l=requireType(),u=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
162
|
-
\r`;function c(
|
|
163
|
-
`:k===118?"\v":k===102?"\f":k===114?"\r":k===101?"\x1B":k===32?" ":k===34?'"':k===47?"/":k===92?"\\":k===78?"
":k===95?" ":k===76?"\u2028":k===80?"\u2029":""}function ve(k){return k<=65535?String.fromCharCode(k):String.fromCharCode((k-65536>>10)+55296,(k-65536&1023)+56320)}function ee(k,z,U){z==="__proto__"?Object.defineProperty(k,z,{configurable:!0,enumerable:!0,writable:!0,value:U}):k[z]=U}for(var Ae=new Array(256),xe=new Array(256),he=0;he<256;he++)Ae[he]=
|
|
164
|
-
`,z-1))}function qe(k,z,U){var te,J,v,b,E,T,R,L,D=k.kind,se=k.result,ae;if(ae=k.input.charCodeAt(k.position),ye(ae)
|
|
191
|
+
`+c)),f},mark=a,mark}var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var t=requireException(),a=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],l=["scalar","sequence","mapping"];function u(f){var d={};return f!==null&&Object.keys(f).forEach(function(g){f[g].forEach(function(h){d[String(h)]=g})}),d}function c(f,d){if(d=d||{},Object.keys(d).forEach(function(g){if(a.indexOf(g)===-1)throw new t('Unknown option "'+g+'" is met in definition of "'+f+'" YAML type.')}),this.tag=f,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(g){return g},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.defaultStyle=d.defaultStyle||null,this.styleAliases=u(d.styleAliases||null),l.indexOf(this.kind)===-1)throw new t('Unknown kind "'+this.kind+'" is specified for "'+f+'" YAML type.')}return type=c,type}var schema,hasRequiredSchema;function requireSchema(){if(hasRequiredSchema)return schema;hasRequiredSchema=1;var t=requireCommon(),a=requireException(),l=requireType();function u(d,g,h){var m=[];return d.include.forEach(function(x){h=u(x,g,h)}),d[g].forEach(function(x){h.forEach(function(S,A){S.tag===x.tag&&S.kind===x.kind&&m.push(A)}),h.push(x)}),h.filter(function(x,S){return m.indexOf(S)===-1})}function c(){var d={scalar:{},sequence:{},mapping:{},fallback:{}},g,h;function m(x){d[x.kind][x.tag]=d.fallback[x.tag]=x}for(g=0,h=arguments.length;g<h;g+=1)arguments[g].forEach(m);return d}function f(d){this.include=d.include||[],this.implicit=d.implicit||[],this.explicit=d.explicit||[],this.implicit.forEach(function(g){if(g.loadKind&&g.loadKind!=="scalar")throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=u(this,"implicit",[]),this.compiledExplicit=u(this,"explicit",[]),this.compiledTypeMap=c(this.compiledImplicit,this.compiledExplicit)}return f.DEFAULT=null,f.create=function(){var g,h;switch(arguments.length){case 1:g=f.DEFAULT,h=arguments[0];break;case 2:g=arguments[0],h=arguments[1];break;default:throw new a("Wrong number of arguments for Schema.create function")}if(g=t.toArray(g),h=t.toArray(h),!g.every(function(m){return m instanceof f}))throw new a("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!h.every(function(m){return m instanceof l}))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new f({include:g,explicit:h})},schema=f,schema}var str,hasRequiredStr;function requireStr(){if(hasRequiredStr)return str;hasRequiredStr=1;var t=requireType();return str=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(a){return a!==null?a:""}}),str}var seq,hasRequiredSeq;function requireSeq(){if(hasRequiredSeq)return seq;hasRequiredSeq=1;var t=requireType();return seq=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(a){return a!==null?a:[]}}),seq}var map$2,hasRequiredMap;function requireMap(){if(hasRequiredMap)return map$2;hasRequiredMap=1;var t=requireType();return map$2=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(a){return a!==null?a:{}}}),map$2}var failsafe,hasRequiredFailsafe;function requireFailsafe(){if(hasRequiredFailsafe)return failsafe;hasRequiredFailsafe=1;var t=requireSchema();return failsafe=new t({explicit:[requireStr(),requireSeq(),requireMap()]}),failsafe}var _null,hasRequired_null;function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;var t=requireType();function a(c){if(c===null)return!0;var f=c.length;return f===1&&c==="~"||f===4&&(c==="null"||c==="Null"||c==="NULL")}function l(){return null}function u(c){return c===null}return _null=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:l,predicate:u,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),_null}var bool,hasRequiredBool;function requireBool(){if(hasRequiredBool)return bool;hasRequiredBool=1;var t=requireType();function a(c){if(c===null)return!1;var f=c.length;return f===4&&(c==="true"||c==="True"||c==="TRUE")||f===5&&(c==="false"||c==="False"||c==="FALSE")}function l(c){return c==="true"||c==="True"||c==="TRUE"}function u(c){return Object.prototype.toString.call(c)==="[object Boolean]"}return bool=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:l,predicate:u,represent:{lowercase:function(c){return c?"true":"false"},uppercase:function(c){return c?"TRUE":"FALSE"},camelcase:function(c){return c?"True":"False"}},defaultStyle:"lowercase"}),bool}var int,hasRequiredInt;function requireInt(){if(hasRequiredInt)return int;hasRequiredInt=1;var t=requireCommon(),a=requireType();function l(h){return 48<=h&&h<=57||65<=h&&h<=70||97<=h&&h<=102}function u(h){return 48<=h&&h<=55}function c(h){return 48<=h&&h<=57}function f(h){if(h===null)return!1;var m=h.length,x=0,S=!1,A;if(!m)return!1;if(A=h[x],(A==="-"||A==="+")&&(A=h[++x]),A==="0"){if(x+1===m)return!0;if(A=h[++x],A==="b"){for(x++;x<m;x++)if(A=h[x],A!=="_"){if(A!=="0"&&A!=="1")return!1;S=!0}return S&&A!=="_"}if(A==="x"){for(x++;x<m;x++)if(A=h[x],A!=="_"){if(!l(h.charCodeAt(x)))return!1;S=!0}return S&&A!=="_"}for(;x<m;x++)if(A=h[x],A!=="_"){if(!u(h.charCodeAt(x)))return!1;S=!0}return S&&A!=="_"}if(A==="_")return!1;for(;x<m;x++)if(A=h[x],A!=="_"){if(A===":")break;if(!c(h.charCodeAt(x)))return!1;S=!0}return!S||A==="_"?!1:A!==":"?!0:/^(:[0-5]?[0-9])+$/.test(h.slice(x))}function d(h){var m=h,x=1,S,A,C=[];return m.indexOf("_")!==-1&&(m=m.replace(/_/g,"")),S=m[0],(S==="-"||S==="+")&&(S==="-"&&(x=-1),m=m.slice(1),S=m[0]),m==="0"?0:S==="0"?m[1]==="b"?x*parseInt(m.slice(2),2):m[1]==="x"?x*parseInt(m,16):x*parseInt(m,8):m.indexOf(":")!==-1?(m.split(":").forEach(function(O){C.unshift(parseInt(O,10))}),m=0,A=1,C.forEach(function(O){m+=O*A,A*=60}),x*m):x*parseInt(m,10)}function g(h){return Object.prototype.toString.call(h)==="[object Number]"&&h%1===0&&!t.isNegativeZero(h)}return int=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:f,construct:d,predicate:g,represent:{binary:function(h){return h>=0?"0b"+h.toString(2):"-0b"+h.toString(2).slice(1)},octal:function(h){return h>=0?"0"+h.toString(8):"-0"+h.toString(8).slice(1)},decimal:function(h){return h.toString(10)},hexadecimal:function(h){return h>=0?"0x"+h.toString(16).toUpperCase():"-0x"+h.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),int}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1;var t=requireCommon(),a=requireType(),l=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function u(h){return!(h===null||!l.test(h)||h[h.length-1]==="_")}function c(h){var m,x,S,A;return m=h.replace(/_/g,"").toLowerCase(),x=m[0]==="-"?-1:1,A=[],"+-".indexOf(m[0])>=0&&(m=m.slice(1)),m===".inf"?x===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:m===".nan"?NaN:m.indexOf(":")>=0?(m.split(":").forEach(function(C){A.unshift(parseFloat(C,10))}),m=0,S=1,A.forEach(function(C){m+=C*S,S*=60}),x*m):x*parseFloat(m,10)}var f=/^[-+]?[0-9]+e/;function d(h,m){var x;if(isNaN(h))switch(m){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===h)switch(m){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===h)switch(m){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(h))return"-0.0";return x=h.toString(10),f.test(x)?x.replace("e",".e"):x}function g(h){return Object.prototype.toString.call(h)==="[object Number]"&&(h%1!==0||t.isNegativeZero(h))}return float=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:u,construct:c,predicate:g,represent:d,defaultStyle:"lowercase"}),float}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var t=requireSchema();return json=new t({include:[requireFailsafe()],implicit:[require_null(),requireBool(),requireInt(),requireFloat()]}),json}var core,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core;hasRequiredCore=1;var t=requireSchema();return core=new t({include:[requireJson()]}),core}var timestamp,hasRequiredTimestamp;function requireTimestamp(){if(hasRequiredTimestamp)return timestamp;hasRequiredTimestamp=1;var t=requireType(),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),l=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function u(d){return d===null?!1:a.exec(d)!==null||l.exec(d)!==null}function c(d){var g,h,m,x,S,A,C,O=0,Z=null,P,q,ne;if(g=a.exec(d),g===null&&(g=l.exec(d)),g===null)throw new Error("Date resolve error");if(h=+g[1],m=+g[2]-1,x=+g[3],!g[4])return new Date(Date.UTC(h,m,x));if(S=+g[4],A=+g[5],C=+g[6],g[7]){for(O=g[7].slice(0,3);O.length<3;)O+="0";O=+O}return g[9]&&(P=+g[10],q=+(g[11]||0),Z=(P*60+q)*6e4,g[9]==="-"&&(Z=-Z)),ne=new Date(Date.UTC(h,m,x,S,A,C,O)),Z&&ne.setTime(ne.getTime()-Z),ne}function f(d){return d.toISOString()}return timestamp=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:u,construct:c,instanceOf:Date,represent:f}),timestamp}var merge,hasRequiredMerge;function requireMerge(){if(hasRequiredMerge)return merge;hasRequiredMerge=1;var t=requireType();function a(l){return l==="<<"||l===null}return merge=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:a}),merge}function commonjsRequire(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var binary,hasRequiredBinary;function requireBinary(){if(hasRequiredBinary)return binary;hasRequiredBinary=1;var t;try{var a=commonjsRequire;t=a("buffer").Buffer}catch{}var l=requireType(),u=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
192
|
+
\r`;function c(h){if(h===null)return!1;var m,x,S=0,A=h.length,C=u;for(x=0;x<A;x++)if(m=C.indexOf(h.charAt(x)),!(m>64)){if(m<0)return!1;S+=6}return S%8===0}function f(h){var m,x,S=h.replace(/[\r\n=]/g,""),A=S.length,C=u,O=0,Z=[];for(m=0;m<A;m++)m%4===0&&m&&(Z.push(O>>16&255),Z.push(O>>8&255),Z.push(O&255)),O=O<<6|C.indexOf(S.charAt(m));return x=A%4*6,x===0?(Z.push(O>>16&255),Z.push(O>>8&255),Z.push(O&255)):x===18?(Z.push(O>>10&255),Z.push(O>>2&255)):x===12&&Z.push(O>>4&255),t?t.from?t.from(Z):new t(Z):Z}function d(h){var m="",x=0,S,A,C=h.length,O=u;for(S=0;S<C;S++)S%3===0&&S&&(m+=O[x>>18&63],m+=O[x>>12&63],m+=O[x>>6&63],m+=O[x&63]),x=(x<<8)+h[S];return A=C%3,A===0?(m+=O[x>>18&63],m+=O[x>>12&63],m+=O[x>>6&63],m+=O[x&63]):A===2?(m+=O[x>>10&63],m+=O[x>>4&63],m+=O[x<<2&63],m+=O[64]):A===1&&(m+=O[x>>2&63],m+=O[x<<4&63],m+=O[64],m+=O[64]),m}function g(h){return t&&t.isBuffer(h)}return binary=new l("tag:yaml.org,2002:binary",{kind:"scalar",resolve:c,construct:f,predicate:g,represent:d}),binary}var omap,hasRequiredOmap;function requireOmap(){if(hasRequiredOmap)return omap;hasRequiredOmap=1;var t=requireType(),a=Object.prototype.hasOwnProperty,l=Object.prototype.toString;function u(f){if(f===null)return!0;var d=[],g,h,m,x,S,A=f;for(g=0,h=A.length;g<h;g+=1){if(m=A[g],S=!1,l.call(m)!=="[object Object]")return!1;for(x in m)if(a.call(m,x))if(!S)S=!0;else return!1;if(!S)return!1;if(d.indexOf(x)===-1)d.push(x);else return!1}return!0}function c(f){return f!==null?f:[]}return omap=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:u,construct:c}),omap}var pairs,hasRequiredPairs;function requirePairs(){if(hasRequiredPairs)return pairs;hasRequiredPairs=1;var t=requireType(),a=Object.prototype.toString;function l(c){if(c===null)return!0;var f,d,g,h,m,x=c;for(m=new Array(x.length),f=0,d=x.length;f<d;f+=1){if(g=x[f],a.call(g)!=="[object Object]"||(h=Object.keys(g),h.length!==1))return!1;m[f]=[h[0],g[h[0]]]}return!0}function u(c){if(c===null)return[];var f,d,g,h,m,x=c;for(m=new Array(x.length),f=0,d=x.length;f<d;f+=1)g=x[f],h=Object.keys(g),m[f]=[h[0],g[h[0]]];return m}return pairs=new t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:l,construct:u}),pairs}var set,hasRequiredSet;function requireSet(){if(hasRequiredSet)return set;hasRequiredSet=1;var t=requireType(),a=Object.prototype.hasOwnProperty;function l(c){if(c===null)return!0;var f,d=c;for(f in d)if(a.call(d,f)&&d[f]!==null)return!1;return!0}function u(c){return c!==null?c:{}}return set=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:l,construct:u}),set}var default_safe,hasRequiredDefault_safe;function requireDefault_safe(){if(hasRequiredDefault_safe)return default_safe;hasRequiredDefault_safe=1;var t=requireSchema();return default_safe=new t({include:[requireCore()],implicit:[requireTimestamp(),requireMerge()],explicit:[requireBinary(),requireOmap(),requirePairs(),requireSet()]}),default_safe}var _undefined,hasRequired_undefined;function require_undefined(){if(hasRequired_undefined)return _undefined;hasRequired_undefined=1;var t=requireType();function a(){return!0}function l(){}function u(){return""}function c(f){return typeof f>"u"}return _undefined=new t("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:a,construct:l,predicate:c,represent:u}),_undefined}var regexp,hasRequiredRegexp;function requireRegexp(){if(hasRequiredRegexp)return regexp;hasRequiredRegexp=1;var t=requireType();function a(f){if(f===null||f.length===0)return!1;var d=f,g=/\/([gim]*)$/.exec(f),h="";return!(d[0]==="/"&&(g&&(h=g[1]),h.length>3||d[d.length-h.length-1]!=="/"))}function l(f){var d=f,g=/\/([gim]*)$/.exec(f),h="";return d[0]==="/"&&(g&&(h=g[1]),d=d.slice(1,d.length-h.length-1)),new RegExp(d,h)}function u(f){var d="/"+f.source+"/";return f.global&&(d+="g"),f.multiline&&(d+="m"),f.ignoreCase&&(d+="i"),d}function c(f){return Object.prototype.toString.call(f)==="[object RegExp]"}return regexp=new t("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:a,construct:l,predicate:c,represent:u}),regexp}var _function,hasRequired_function;function require_function(){if(hasRequired_function)return _function;hasRequired_function=1;var t;try{var a=commonjsRequire;t=a("esprima")}catch{typeof window<"u"&&(t=window.esprima)}var l=requireType();function u(g){if(g===null)return!1;try{var h="("+g+")",m=t.parse(h,{range:!0});return!(m.type!=="Program"||m.body.length!==1||m.body[0].type!=="ExpressionStatement"||m.body[0].expression.type!=="ArrowFunctionExpression"&&m.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function c(g){var h="("+g+")",m=t.parse(h,{range:!0}),x=[],S;if(m.type!=="Program"||m.body.length!==1||m.body[0].type!=="ExpressionStatement"||m.body[0].expression.type!=="ArrowFunctionExpression"&&m.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return m.body[0].expression.params.forEach(function(A){x.push(A.name)}),S=m.body[0].expression.body.range,m.body[0].expression.body.type==="BlockStatement"?new Function(x,h.slice(S[0]+1,S[1]-1)):new Function(x,"return "+h.slice(S[0],S[1]))}function f(g){return g.toString()}function d(g){return Object.prototype.toString.call(g)==="[object Function]"}return _function=new l("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:u,construct:c,predicate:d,represent:f}),_function}var default_full,hasRequiredDefault_full;function requireDefault_full(){if(hasRequiredDefault_full)return default_full;hasRequiredDefault_full=1;var t=requireSchema();return default_full=t.DEFAULT=new t({include:[requireDefault_safe()],explicit:[require_undefined(),requireRegexp(),require_function()]}),default_full}var hasRequiredLoader;function requireLoader(){if(hasRequiredLoader)return loader;hasRequiredLoader=1;var t=requireCommon(),a=requireException(),l=requireMark(),u=requireDefault_safe(),c=requireDefault_full(),f=Object.prototype.hasOwnProperty,d=1,g=2,h=3,m=4,x=1,S=2,A=3,C=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O=/[\x85\u2028\u2029]/,Z=/[,\[\]\{\}]/,P=/^(?:!|!!|![a-z\-]+!)$/i,q=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ne(k){return Object.prototype.toString.call(k)}function Y(k){return k===10||k===13}function pe(k){return k===9||k===32}function ye(k){return k===9||k===32||k===10||k===13}function Q(k){return k===44||k===91||k===93||k===123||k===125}function be(k){var z;return 48<=k&&k<=57?k-48:(z=k|32,97<=z&&z<=102?z-97+10:-1)}function ue(k){return k===120?2:k===117?4:k===85?8:0}function ke(k){return 48<=k&&k<=57?k-48:-1}function F(k){return k===48?"\0":k===97?"\x07":k===98?"\b":k===116||k===9?" ":k===110?`
|
|
193
|
+
`:k===118?"\v":k===102?"\f":k===114?"\r":k===101?"\x1B":k===32?" ":k===34?'"':k===47?"/":k===92?"\\":k===78?"
":k===95?" ":k===76?"\u2028":k===80?"\u2029":""}function ve(k){return k<=65535?String.fromCharCode(k):String.fromCharCode((k-65536>>10)+55296,(k-65536&1023)+56320)}function ee(k,z,U){z==="__proto__"?Object.defineProperty(k,z,{configurable:!0,enumerable:!0,writable:!0,value:U}):k[z]=U}for(var Ae=new Array(256),xe=new Array(256),he=0;he<256;he++)Ae[he]=F(he)?1:0,xe[he]=F(he);function H(k,z){this.input=k,this.filename=z.filename||null,this.schema=z.schema||c,this.onWarning=z.onWarning||null,this.legacy=z.legacy||!1,this.json=z.json||!1,this.listener=z.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=k.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function de(k,z){return new a(z,new l(k.filename,k.input,k.position,k.line,k.position-k.lineStart))}function oe(k,z){throw de(k,z)}function Ne(k,z){k.onWarning&&k.onWarning.call(null,de(k,z))}var N={YAML:function(z,U,te){var J,v,b;z.version!==null&&oe(z,"duplication of %YAML directive"),te.length!==1&&oe(z,"YAML directive accepts exactly one argument"),J=/^([0-9]+)\.([0-9]+)$/.exec(te[0]),J===null&&oe(z,"ill-formed argument of the YAML directive"),v=parseInt(J[1],10),b=parseInt(J[2],10),v!==1&&oe(z,"unacceptable YAML version of the document"),z.version=te[0],z.checkLineBreaks=b<2,b!==1&&b!==2&&Ne(z,"unsupported YAML version of the document")},TAG:function(z,U,te){var J,v;te.length!==2&&oe(z,"TAG directive accepts exactly two arguments"),J=te[0],v=te[1],P.test(J)||oe(z,"ill-formed tag handle (first argument) of the TAG directive"),f.call(z.tagMap,J)&&oe(z,'there is a previously declared suffix for "'+J+'" tag handle'),q.test(v)||oe(z,"ill-formed tag prefix (second argument) of the TAG directive"),z.tagMap[J]=v}};function I(k,z,U,te){var J,v,b,E;if(z<U){if(E=k.input.slice(z,U),te)for(J=0,v=E.length;J<v;J+=1)b=E.charCodeAt(J),b===9||32<=b&&b<=1114111||oe(k,"expected valid JSON character");else C.test(E)&&oe(k,"the stream contains non-printable characters");k.result+=E}}function ie(k,z,U,te){var J,v,b,E;for(t.isObject(U)||oe(k,"cannot merge mappings; the provided source object is unacceptable"),J=Object.keys(U),b=0,E=J.length;b<E;b+=1)v=J[b],f.call(z,v)||(ee(z,v,U[v]),te[v]=!0)}function j(k,z,U,te,J,v,b,E){var T,R;if(Array.isArray(J))for(J=Array.prototype.slice.call(J),T=0,R=J.length;T<R;T+=1)Array.isArray(J[T])&&oe(k,"nested arrays are not supported inside keys"),typeof J=="object"&&ne(J[T])==="[object Object]"&&(J[T]="[object Object]");if(typeof J=="object"&&ne(J)==="[object Object]"&&(J="[object Object]"),J=String(J),z===null&&(z={}),te==="tag:yaml.org,2002:merge")if(Array.isArray(v))for(T=0,R=v.length;T<R;T+=1)ie(k,z,v[T],U);else ie(k,z,v,U);else!k.json&&!f.call(U,J)&&f.call(z,J)&&(k.line=b||k.line,k.position=E||k.position,oe(k,"duplicated mapping key")),ee(z,J,v),delete U[J];return z}function ge(k){var z;z=k.input.charCodeAt(k.position),z===10?k.position++:z===13?(k.position++,k.input.charCodeAt(k.position)===10&&k.position++):oe(k,"a line break is expected"),k.line+=1,k.lineStart=k.position}function me(k,z,U){for(var te=0,J=k.input.charCodeAt(k.position);J!==0;){for(;pe(J);)J=k.input.charCodeAt(++k.position);if(z&&J===35)do J=k.input.charCodeAt(++k.position);while(J!==10&&J!==13&&J!==0);if(Y(J))for(ge(k),J=k.input.charCodeAt(k.position),te++,k.lineIndent=0;J===32;)k.lineIndent++,J=k.input.charCodeAt(++k.position);else break}return U!==-1&&te!==0&&k.lineIndent<U&&Ne(k,"deficient indentation"),te}function Se(k){var z=k.position,U;return U=k.input.charCodeAt(z),!!((U===45||U===46)&&U===k.input.charCodeAt(z+1)&&U===k.input.charCodeAt(z+2)&&(z+=3,U=k.input.charCodeAt(z),U===0||ye(U)))}function Oe(k,z){z===1?k.result+=" ":z>1&&(k.result+=t.repeat(`
|
|
194
|
+
`,z-1))}function qe(k,z,U){var te,J,v,b,E,T,R,L,D=k.kind,se=k.result,ae;if(ae=k.input.charCodeAt(k.position),ye(ae)||Q(ae)||ae===35||ae===38||ae===42||ae===33||ae===124||ae===62||ae===39||ae===34||ae===37||ae===64||ae===96||(ae===63||ae===45)&&(J=k.input.charCodeAt(k.position+1),ye(J)||U&&Q(J)))return!1;for(k.kind="scalar",k.result="",v=b=k.position,E=!1;ae!==0;){if(ae===58){if(J=k.input.charCodeAt(k.position+1),ye(J)||U&&Q(J))break}else if(ae===35){if(te=k.input.charCodeAt(k.position-1),ye(te))break}else{if(k.position===k.lineStart&&Se(k)||U&&Q(ae))break;if(Y(ae))if(T=k.line,R=k.lineStart,L=k.lineIndent,me(k,!1,-1),k.lineIndent>=z){E=!0,ae=k.input.charCodeAt(k.position);continue}else{k.position=b,k.line=T,k.lineStart=R,k.lineIndent=L;break}}E&&(I(k,v,b,!1),Oe(k,k.line-T),v=b=k.position,E=!1),pe(ae)||(b=k.position+1),ae=k.input.charCodeAt(++k.position)}return I(k,v,b,!1),k.result?!0:(k.kind=D,k.result=se,!1)}function Re(k,z){var U,te,J;if(U=k.input.charCodeAt(k.position),U!==39)return!1;for(k.kind="scalar",k.result="",k.position++,te=J=k.position;(U=k.input.charCodeAt(k.position))!==0;)if(U===39)if(I(k,te,k.position,!0),U=k.input.charCodeAt(++k.position),U===39)te=k.position,k.position++,J=k.position;else return!0;else Y(U)?(I(k,te,J,!0),Oe(k,me(k,!1,z)),te=J=k.position):k.position===k.lineStart&&Se(k)?oe(k,"unexpected end of the document within a single quoted scalar"):(k.position++,J=k.position);oe(k,"unexpected end of the stream within a single quoted scalar")}function nt(k,z){var U,te,J,v,b,E;if(E=k.input.charCodeAt(k.position),E!==34)return!1;for(k.kind="scalar",k.result="",k.position++,U=te=k.position;(E=k.input.charCodeAt(k.position))!==0;){if(E===34)return I(k,U,k.position,!0),k.position++,!0;if(E===92){if(I(k,U,k.position,!0),E=k.input.charCodeAt(++k.position),Y(E))me(k,!1,z);else if(E<256&&Ae[E])k.result+=xe[E],k.position++;else if((b=ue(E))>0){for(J=b,v=0;J>0;J--)E=k.input.charCodeAt(++k.position),(b=be(E))>=0?v=(v<<4)+b:oe(k,"expected hexadecimal character");k.result+=ve(v),k.position++}else oe(k,"unknown escape sequence");U=te=k.position}else Y(E)?(I(k,U,te,!0),Oe(k,me(k,!1,z)),U=te=k.position):k.position===k.lineStart&&Se(k)?oe(k,"unexpected end of the document within a double quoted scalar"):(k.position++,te=k.position)}oe(k,"unexpected end of the stream within a double quoted scalar")}function Ke(k,z){var U=!0,te,J=k.tag,v,b=k.anchor,E,T,R,L,D,se={},ae,Ee,Te,we;if(we=k.input.charCodeAt(k.position),we===91)T=93,D=!1,v=[];else if(we===123)T=125,D=!0,v={};else return!1;for(k.anchor!==null&&(k.anchorMap[k.anchor]=v),we=k.input.charCodeAt(++k.position);we!==0;){if(me(k,!0,z),we=k.input.charCodeAt(k.position),we===T)return k.position++,k.tag=J,k.anchor=b,k.kind=D?"mapping":"sequence",k.result=v,!0;U||oe(k,"missed comma between flow collection entries"),Ee=ae=Te=null,R=L=!1,we===63&&(E=k.input.charCodeAt(k.position+1),ye(E)&&(R=L=!0,k.position++,me(k,!0,z))),te=k.line,wt(k,z,d,!1,!0),Ee=k.tag,ae=k.result,me(k,!0,z),we=k.input.charCodeAt(k.position),(L||k.line===te)&&we===58&&(R=!0,we=k.input.charCodeAt(++k.position),me(k,!0,z),wt(k,z,d,!1,!0),Te=k.result),D?j(k,v,se,Ee,ae,Te):R?v.push(j(k,null,se,Ee,ae,Te)):v.push(ae),me(k,!0,z),we=k.input.charCodeAt(k.position),we===44?(U=!0,we=k.input.charCodeAt(++k.position)):U=!1}oe(k,"unexpected end of the stream within a flow collection")}function at(k,z){var U,te,J=x,v=!1,b=!1,E=z,T=0,R=!1,L,D;if(D=k.input.charCodeAt(k.position),D===124)te=!1;else if(D===62)te=!0;else return!1;for(k.kind="scalar",k.result="";D!==0;)if(D=k.input.charCodeAt(++k.position),D===43||D===45)x===J?J=D===43?A:S:oe(k,"repeat of a chomping mode identifier");else if((L=ke(D))>=0)L===0?oe(k,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?oe(k,"repeat of an indentation width identifier"):(E=z+L-1,b=!0);else break;if(pe(D)){do D=k.input.charCodeAt(++k.position);while(pe(D));if(D===35)do D=k.input.charCodeAt(++k.position);while(!Y(D)&&D!==0)}for(;D!==0;){for(ge(k),k.lineIndent=0,D=k.input.charCodeAt(k.position);(!b||k.lineIndent<E)&&D===32;)k.lineIndent++,D=k.input.charCodeAt(++k.position);if(!b&&k.lineIndent>E&&(E=k.lineIndent),Y(D)){T++;continue}if(k.lineIndent<E){J===A?k.result+=t.repeat(`
|
|
165
195
|
`,v?1+T:T):J===x&&v&&(k.result+=`
|
|
166
196
|
`);break}for(te?pe(D)?(R=!0,k.result+=t.repeat(`
|
|
167
197
|
`,v?1+T:T)):R?(R=!1,k.result+=t.repeat(`
|
|
168
198
|
`,T+1)):T===0?v&&(k.result+=" "):k.result+=t.repeat(`
|
|
169
199
|
`,T):k.result+=t.repeat(`
|
|
170
|
-
`,v?1+T:T),v=!0,b=!0,T=0,U=k.position;!
|
|
171
|
-
`),k.charCodeAt(0)===65279&&(k=k.slice(1)));var U=new H(k,z),te=k.indexOf("\0");for(te!==-1&&(U.position=te,oe(U,"null byte is not allowed in input")),U.input+="\0";U.input.charCodeAt(U.position)===32;)U.lineIndent+=1,U.position+=1;for(;U.position<U.length-1;)
|
|
200
|
+
`,v?1+T:T),v=!0,b=!0,T=0,U=k.position;!Y(D)&&D!==0;)D=k.input.charCodeAt(++k.position);I(k,U,k.position,!1)}return!0}function kt(k,z){var U,te=k.tag,J=k.anchor,v=[],b,E=!1,T;for(k.anchor!==null&&(k.anchorMap[k.anchor]=v),T=k.input.charCodeAt(k.position);T!==0&&!(T!==45||(b=k.input.charCodeAt(k.position+1),!ye(b)));){if(E=!0,k.position++,me(k,!0,-1)&&k.lineIndent<=z){v.push(null),T=k.input.charCodeAt(k.position);continue}if(U=k.line,wt(k,z,h,!1,!0),v.push(k.result),me(k,!0,-1),T=k.input.charCodeAt(k.position),(k.line===U||k.lineIndent>z)&&T!==0)oe(k,"bad indentation of a sequence entry");else if(k.lineIndent<z)break}return E?(k.tag=te,k.anchor=J,k.kind="sequence",k.result=v,!0):!1}function st(k,z,U){var te,J,v,b,E=k.tag,T=k.anchor,R={},L={},D=null,se=null,ae=null,Ee=!1,Te=!1,we;for(k.anchor!==null&&(k.anchorMap[k.anchor]=R),we=k.input.charCodeAt(k.position);we!==0;){if(te=k.input.charCodeAt(k.position+1),v=k.line,b=k.position,(we===63||we===58)&&ye(te))we===63?(Ee&&(j(k,R,L,D,se,null),D=se=ae=null),Te=!0,Ee=!0,J=!0):Ee?(Ee=!1,J=!0):oe(k,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),k.position+=1,we=te;else if(wt(k,U,g,!1,!0))if(k.line===v){for(we=k.input.charCodeAt(k.position);pe(we);)we=k.input.charCodeAt(++k.position);if(we===58)we=k.input.charCodeAt(++k.position),ye(we)||oe(k,"a whitespace character is expected after the key-value separator within a block mapping"),Ee&&(j(k,R,L,D,se,null),D=se=ae=null),Te=!0,Ee=!1,J=!1,D=k.tag,se=k.result;else if(Te)oe(k,"can not read an implicit mapping pair; a colon is missed");else return k.tag=E,k.anchor=T,!0}else if(Te)oe(k,"can not read a block mapping entry; a multiline key may not be an implicit key");else return k.tag=E,k.anchor=T,!0;else break;if((k.line===v||k.lineIndent>z)&&(wt(k,z,m,!0,J)&&(Ee?se=k.result:ae=k.result),Ee||(j(k,R,L,D,se,ae,v,b),D=se=ae=null),me(k,!0,-1),we=k.input.charCodeAt(k.position)),k.lineIndent>z&&we!==0)oe(k,"bad indentation of a mapping entry");else if(k.lineIndent<z)break}return Ee&&j(k,R,L,D,se,null),Te&&(k.tag=E,k.anchor=T,k.kind="mapping",k.result=R),Te}function Tt(k){var z,U=!1,te=!1,J,v,b;if(b=k.input.charCodeAt(k.position),b!==33)return!1;if(k.tag!==null&&oe(k,"duplication of a tag property"),b=k.input.charCodeAt(++k.position),b===60?(U=!0,b=k.input.charCodeAt(++k.position)):b===33?(te=!0,J="!!",b=k.input.charCodeAt(++k.position)):J="!",z=k.position,U){do b=k.input.charCodeAt(++k.position);while(b!==0&&b!==62);k.position<k.length?(v=k.input.slice(z,k.position),b=k.input.charCodeAt(++k.position)):oe(k,"unexpected end of the stream within a verbatim tag")}else{for(;b!==0&&!ye(b);)b===33&&(te?oe(k,"tag suffix cannot contain exclamation marks"):(J=k.input.slice(z-1,k.position+1),P.test(J)||oe(k,"named tag handle cannot contain such characters"),te=!0,z=k.position+1)),b=k.input.charCodeAt(++k.position);v=k.input.slice(z,k.position),Z.test(v)&&oe(k,"tag suffix cannot contain flow indicator characters")}return v&&!q.test(v)&&oe(k,"tag name cannot contain such characters: "+v),U?k.tag=v:f.call(k.tagMap,J)?k.tag=k.tagMap[J]+v:J==="!"?k.tag="!"+v:J==="!!"?k.tag="tag:yaml.org,2002:"+v:oe(k,'undeclared tag handle "'+J+'"'),!0}function mt(k){var z,U;if(U=k.input.charCodeAt(k.position),U!==38)return!1;for(k.anchor!==null&&oe(k,"duplication of an anchor property"),U=k.input.charCodeAt(++k.position),z=k.position;U!==0&&!ye(U)&&!Q(U);)U=k.input.charCodeAt(++k.position);return k.position===z&&oe(k,"name of an anchor node must contain at least one character"),k.anchor=k.input.slice(z,k.position),!0}function _t(k){var z,U,te;if(te=k.input.charCodeAt(k.position),te!==42)return!1;for(te=k.input.charCodeAt(++k.position),z=k.position;te!==0&&!ye(te)&&!Q(te);)te=k.input.charCodeAt(++k.position);return k.position===z&&oe(k,"name of an alias node must contain at least one character"),U=k.input.slice(z,k.position),f.call(k.anchorMap,U)||oe(k,'unidentified alias "'+U+'"'),k.result=k.anchorMap[U],me(k,!0,-1),!0}function wt(k,z,U,te,J){var v,b,E,T=1,R=!1,L=!1,D,se,ae,Ee,Te;if(k.listener!==null&&k.listener("open",k),k.tag=null,k.anchor=null,k.kind=null,k.result=null,v=b=E=m===U||h===U,te&&me(k,!0,-1)&&(R=!0,k.lineIndent>z?T=1:k.lineIndent===z?T=0:k.lineIndent<z&&(T=-1)),T===1)for(;Tt(k)||mt(k);)me(k,!0,-1)?(R=!0,E=v,k.lineIndent>z?T=1:k.lineIndent===z?T=0:k.lineIndent<z&&(T=-1)):E=!1;if(E&&(E=R||J),(T===1||m===U)&&(d===U||g===U?Ee=z:Ee=z+1,Te=k.position-k.lineStart,T===1?E&&(kt(k,Te)||st(k,Te,Ee))||Ke(k,Ee)?L=!0:(b&&at(k,Ee)||Re(k,Ee)||nt(k,Ee)?L=!0:_t(k)?(L=!0,(k.tag!==null||k.anchor!==null)&&oe(k,"alias node should not have any properties")):qe(k,Ee,d===U)&&(L=!0,k.tag===null&&(k.tag="?")),k.anchor!==null&&(k.anchorMap[k.anchor]=k.result)):T===0&&(L=E&&kt(k,Te))),k.tag!==null&&k.tag!=="!")if(k.tag==="?"){for(k.result!==null&&k.kind!=="scalar"&&oe(k,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+k.kind+'"'),D=0,se=k.implicitTypes.length;D<se;D+=1)if(ae=k.implicitTypes[D],ae.resolve(k.result)){k.result=ae.construct(k.result),k.tag=ae.tag,k.anchor!==null&&(k.anchorMap[k.anchor]=k.result);break}}else f.call(k.typeMap[k.kind||"fallback"],k.tag)?(ae=k.typeMap[k.kind||"fallback"][k.tag],k.result!==null&&ae.kind!==k.kind&&oe(k,"unacceptable node kind for !<"+k.tag+'> tag; it should be "'+ae.kind+'", not "'+k.kind+'"'),ae.resolve(k.result)?(k.result=ae.construct(k.result),k.anchor!==null&&(k.anchorMap[k.anchor]=k.result)):oe(k,"cannot resolve a node with !<"+k.tag+"> explicit tag")):oe(k,"unknown tag !<"+k.tag+">");return k.listener!==null&&k.listener("close",k),k.tag!==null||k.anchor!==null||L}function Ht(k){var z=k.position,U,te,J,v=!1,b;for(k.version=null,k.checkLineBreaks=k.legacy,k.tagMap={},k.anchorMap={};(b=k.input.charCodeAt(k.position))!==0&&(me(k,!0,-1),b=k.input.charCodeAt(k.position),!(k.lineIndent>0||b!==37));){for(v=!0,b=k.input.charCodeAt(++k.position),U=k.position;b!==0&&!ye(b);)b=k.input.charCodeAt(++k.position);for(te=k.input.slice(U,k.position),J=[],te.length<1&&oe(k,"directive name must not be less than one character in length");b!==0;){for(;pe(b);)b=k.input.charCodeAt(++k.position);if(b===35){do b=k.input.charCodeAt(++k.position);while(b!==0&&!Y(b));break}if(Y(b))break;for(U=k.position;b!==0&&!ye(b);)b=k.input.charCodeAt(++k.position);J.push(k.input.slice(U,k.position))}b!==0&&ge(k),f.call(N,te)?N[te](k,te,J):Ne(k,'unknown document directive "'+te+'"')}if(me(k,!0,-1),k.lineIndent===0&&k.input.charCodeAt(k.position)===45&&k.input.charCodeAt(k.position+1)===45&&k.input.charCodeAt(k.position+2)===45?(k.position+=3,me(k,!0,-1)):v&&oe(k,"directives end mark is expected"),wt(k,k.lineIndent-1,m,!1,!0),me(k,!0,-1),k.checkLineBreaks&&O.test(k.input.slice(z,k.position))&&Ne(k,"non-ASCII line breaks are interpreted as content"),k.documents.push(k.result),k.position===k.lineStart&&Se(k)){k.input.charCodeAt(k.position)===46&&(k.position+=3,me(k,!0,-1));return}if(k.position<k.length-1)oe(k,"end of the stream or a document separator is expected");else return}function At(k,z){k=String(k),z=z||{},k.length!==0&&(k.charCodeAt(k.length-1)!==10&&k.charCodeAt(k.length-1)!==13&&(k+=`
|
|
201
|
+
`),k.charCodeAt(0)===65279&&(k=k.slice(1)));var U=new H(k,z),te=k.indexOf("\0");for(te!==-1&&(U.position=te,oe(U,"null byte is not allowed in input")),U.input+="\0";U.input.charCodeAt(U.position)===32;)U.lineIndent+=1,U.position+=1;for(;U.position<U.length-1;)Ht(U);return U.documents}function Pt(k,z,U){z!==null&&typeof z=="object"&&typeof U>"u"&&(U=z,z=null);var te=At(k,U);if(typeof z!="function")return te;for(var J=0,v=te.length;J<v;J+=1)z(te[J])}function ln(k,z){var U=At(k,z);if(U.length!==0){if(U.length===1)return U[0];throw new a("expected a single document in the stream, but found more")}}function on(k,z,U){return typeof z=="object"&&z!==null&&typeof U>"u"&&(U=z,z=null),Pt(k,z,t.extend({schema:u},U))}function Je(k,z){return ln(k,t.extend({schema:u},z))}return loader.loadAll=Pt,loader.load=ln,loader.safeLoadAll=on,loader.safeLoad=Je,loader}var dumper={},hasRequiredDumper;function requireDumper(){if(hasRequiredDumper)return dumper;hasRequiredDumper=1;var t=requireCommon(),a=requireException(),l=requireDefault_full(),u=requireDefault_safe(),c=Object.prototype.toString,f=Object.prototype.hasOwnProperty,d=9,g=10,h=13,m=32,x=33,S=34,A=35,C=37,O=38,Z=39,P=42,q=44,ne=45,Y=58,pe=61,ye=62,Q=63,be=64,ue=91,ke=93,F=96,ve=123,ee=124,Ae=125,xe={};xe[0]="\\0",xe[7]="\\a",xe[8]="\\b",xe[9]="\\t",xe[10]="\\n",xe[11]="\\v",xe[12]="\\f",xe[13]="\\r",xe[27]="\\e",xe[34]='\\"',xe[92]="\\\\",xe[133]="\\N",xe[160]="\\_",xe[8232]="\\L",xe[8233]="\\P";var he=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function H(v,b){var E,T,R,L,D,se,ae;if(b===null)return{};for(E={},T=Object.keys(b),R=0,L=T.length;R<L;R+=1)D=T[R],se=String(b[D]),D.slice(0,2)==="!!"&&(D="tag:yaml.org,2002:"+D.slice(2)),ae=v.compiledTypeMap.fallback[D],ae&&f.call(ae.styleAliases,se)&&(se=ae.styleAliases[se]),E[D]=se;return E}function de(v){var b,E,T;if(b=v.toString(16).toUpperCase(),v<=255)E="x",T=2;else if(v<=65535)E="u",T=4;else if(v<=4294967295)E="U",T=8;else throw new a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+E+t.repeat("0",T-b.length)+b}function oe(v){this.schema=v.schema||l,this.indent=Math.max(1,v.indent||2),this.noArrayIndent=v.noArrayIndent||!1,this.skipInvalid=v.skipInvalid||!1,this.flowLevel=t.isNothing(v.flowLevel)?-1:v.flowLevel,this.styleMap=H(this.schema,v.styles||null),this.sortKeys=v.sortKeys||!1,this.lineWidth=v.lineWidth||80,this.noRefs=v.noRefs||!1,this.noCompatMode=v.noCompatMode||!1,this.condenseFlow=v.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ne(v,b){for(var E=t.repeat(" ",b),T=0,R=-1,L="",D,se=v.length;T<se;)R=v.indexOf(`
|
|
172
202
|
`,T),R===-1?(D=v.slice(T),T=se):(D=v.slice(T,R+1),T=R+1),D.length&&D!==`
|
|
173
203
|
`&&(L+=E),L+=D;return L}function N(v,b){return`
|
|
174
|
-
`+t.repeat(" ",v.indent*b)}function I(v,b){var E,T,R;for(E=0,T=v.implicitTypes.length;E<T;E+=1)if(R=v.implicitTypes[E],R.resolve(b))return!0;return!1}function
|
|
204
|
+
`+t.repeat(" ",v.indent*b)}function I(v,b){var E,T,R;for(E=0,T=v.implicitTypes.length;E<T;E+=1)if(R=v.implicitTypes[E],R.resolve(b))return!0;return!1}function ie(v){return v===m||v===d}function j(v){return 32<=v&&v<=126||161<=v&&v<=55295&&v!==8232&&v!==8233||57344<=v&&v<=65533&&v!==65279||65536<=v&&v<=1114111}function ge(v){return j(v)&&!ie(v)&&v!==65279&&v!==h&&v!==g}function me(v,b){return j(v)&&v!==65279&&v!==q&&v!==ue&&v!==ke&&v!==ve&&v!==Ae&&v!==Y&&(v!==A||b&&ge(b))}function Se(v){return j(v)&&v!==65279&&!ie(v)&&v!==ne&&v!==Q&&v!==Y&&v!==q&&v!==ue&&v!==ke&&v!==ve&&v!==Ae&&v!==A&&v!==O&&v!==P&&v!==x&&v!==ee&&v!==pe&&v!==ye&&v!==Z&&v!==S&&v!==C&&v!==be&&v!==F}function Oe(v){var b=/^\n* /;return b.test(v)}var qe=1,Re=2,nt=3,Ke=4,at=5;function kt(v,b,E,T,R){var L,D,se,ae=!1,Ee=!1,Te=T!==-1,we=-1,lt=Se(v.charCodeAt(0))&&!ie(v.charCodeAt(v.length-1));if(b)for(L=0;L<v.length;L++){if(D=v.charCodeAt(L),!j(D))return at;se=L>0?v.charCodeAt(L-1):null,lt=lt&&me(D,se)}else{for(L=0;L<v.length;L++){if(D=v.charCodeAt(L),D===g)ae=!0,Te&&(Ee=Ee||L-we-1>T&&v[we+1]!==" ",we=L);else if(!j(D))return at;se=L>0?v.charCodeAt(L-1):null,lt=lt&&me(D,se)}Ee=Ee||Te&&L-we-1>T&&v[we+1]!==" "}return!ae&&!Ee?lt&&!R(v)?qe:Re:E>9&&Oe(v)?at:Ee?Ke:nt}function st(v,b,E,T){v.dump=(function(){if(b.length===0)return"''";if(!v.noCompatMode&&he.indexOf(b)!==-1)return"'"+b+"'";var R=v.indent*Math.max(1,E),L=v.lineWidth===-1?-1:Math.max(Math.min(v.lineWidth,40),v.lineWidth-R),D=T||v.flowLevel>-1&&E>=v.flowLevel;function se(ae){return I(v,ae)}switch(kt(b,D,v.indent,L,se)){case qe:return b;case Re:return"'"+b.replace(/'/g,"''")+"'";case nt:return"|"+Tt(b,v.indent)+mt(Ne(b,R));case Ke:return">"+Tt(b,v.indent)+mt(Ne(_t(b,L),R));case at:return'"'+Ht(b)+'"';default:throw new a("impossible error: invalid scalar style")}})()}function Tt(v,b){var E=Oe(v)?String(b):"",T=v[v.length-1]===`
|
|
175
205
|
`,R=T&&(v[v.length-2]===`
|
|
176
206
|
`||v===`
|
|
177
207
|
`),L=R?"+":T?"":"-";return E+L+`
|
|
@@ -182,36 +212,36 @@ Error generating stack: `+s.message+`
|
|
|
182
212
|
`:"")+wt(ae,b),R=L}return T}function wt(v,b){if(v===""||v[0]===" ")return v;for(var E=/ [^ ]/g,T,R=0,L,D=0,se=0,ae="";T=E.exec(v);)se=T.index,se-R>b&&(L=D>R?D:se,ae+=`
|
|
183
213
|
`+v.slice(R,L),R=L+1),D=se;return ae+=`
|
|
184
214
|
`,v.length-R>b&&D>R?ae+=v.slice(R,D)+`
|
|
185
|
-
`+v.slice(D+1):ae+=v.slice(R),ae.slice(1)}function
|
|
215
|
+
`+v.slice(D+1):ae+=v.slice(R),ae.slice(1)}function Ht(v){for(var b="",E,T,R,L=0;L<v.length;L++){if(E=v.charCodeAt(L),E>=55296&&E<=56319&&(T=v.charCodeAt(L+1),T>=56320&&T<=57343)){b+=de((E-55296)*1024+T-56320+65536),L++;continue}R=xe[E],b+=!R&&j(E)?v[L]:R||de(E)}return b}function At(v,b,E){var T="",R=v.tag,L,D;for(L=0,D=E.length;L<D;L+=1)k(v,b,E[L],!1,!1)&&(L!==0&&(T+=","+(v.condenseFlow?"":" ")),T+=v.dump);v.tag=R,v.dump="["+T+"]"}function Pt(v,b,E,T){var R="",L=v.tag,D,se;for(D=0,se=E.length;D<se;D+=1)k(v,b+1,E[D],!0,!0)&&((!T||D!==0)&&(R+=N(v,b)),v.dump&&g===v.dump.charCodeAt(0)?R+="-":R+="- ",R+=v.dump);v.tag=L,v.dump=R||"[]"}function ln(v,b,E){var T="",R=v.tag,L=Object.keys(E),D,se,ae,Ee,Te;for(D=0,se=L.length;D<se;D+=1)Te="",D!==0&&(Te+=", "),v.condenseFlow&&(Te+='"'),ae=L[D],Ee=E[ae],k(v,b,ae,!1,!1)&&(v.dump.length>1024&&(Te+="? "),Te+=v.dump+(v.condenseFlow?'"':"")+":"+(v.condenseFlow?"":" "),k(v,b,Ee,!1,!1)&&(Te+=v.dump,T+=Te));v.tag=R,v.dump="{"+T+"}"}function on(v,b,E,T){var R="",L=v.tag,D=Object.keys(E),se,ae,Ee,Te,we,lt;if(v.sortKeys===!0)D.sort();else if(typeof v.sortKeys=="function")D.sort(v.sortKeys);else if(v.sortKeys)throw new a("sortKeys must be a boolean or a function");for(se=0,ae=D.length;se<ae;se+=1)lt="",(!T||se!==0)&&(lt+=N(v,b)),Ee=D[se],Te=E[Ee],k(v,b+1,Ee,!0,!0,!0)&&(we=v.tag!==null&&v.tag!=="?"||v.dump&&v.dump.length>1024,we&&(v.dump&&g===v.dump.charCodeAt(0)?lt+="?":lt+="? "),lt+=v.dump,we&&(lt+=N(v,b)),k(v,b+1,Te,!0,we)&&(v.dump&&g===v.dump.charCodeAt(0)?lt+=":":lt+=": ",lt+=v.dump,R+=lt));v.tag=L,v.dump=R||"{}"}function Je(v,b,E){var T,R,L,D,se,ae;for(R=E?v.explicitTypes:v.implicitTypes,L=0,D=R.length;L<D;L+=1)if(se=R[L],(se.instanceOf||se.predicate)&&(!se.instanceOf||typeof b=="object"&&b instanceof se.instanceOf)&&(!se.predicate||se.predicate(b))){if(v.tag=E?se.tag:"?",se.represent){if(ae=v.styleMap[se.tag]||se.defaultStyle,c.call(se.represent)==="[object Function]")T=se.represent(b,ae);else if(f.call(se.represent,ae))T=se.represent[ae](b,ae);else throw new a("!<"+se.tag+'> tag resolver accepts not "'+ae+'" style');v.dump=T}return!0}return!1}function k(v,b,E,T,R,L){v.tag=null,v.dump=E,Je(v,E,!1)||Je(v,E,!0);var D=c.call(v.dump);T&&(T=v.flowLevel<0||v.flowLevel>b);var se=D==="[object Object]"||D==="[object Array]",ae,Ee;if(se&&(ae=v.duplicates.indexOf(E),Ee=ae!==-1),(v.tag!==null&&v.tag!=="?"||Ee||v.indent!==2&&b>0)&&(R=!1),Ee&&v.usedDuplicates[ae])v.dump="*ref_"+ae;else{if(se&&Ee&&!v.usedDuplicates[ae]&&(v.usedDuplicates[ae]=!0),D==="[object Object]")T&&Object.keys(v.dump).length!==0?(on(v,b,v.dump,R),Ee&&(v.dump="&ref_"+ae+v.dump)):(ln(v,b,v.dump),Ee&&(v.dump="&ref_"+ae+" "+v.dump));else if(D==="[object Array]"){var Te=v.noArrayIndent&&b>0?b-1:b;T&&v.dump.length!==0?(Pt(v,Te,v.dump,R),Ee&&(v.dump="&ref_"+ae+v.dump)):(At(v,Te,v.dump),Ee&&(v.dump="&ref_"+ae+" "+v.dump))}else if(D==="[object String]")v.tag!=="?"&&st(v,v.dump,b,L);else{if(v.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+D)}v.tag!==null&&v.tag!=="?"&&(v.dump="!<"+v.tag+"> "+v.dump)}return!0}function z(v,b){var E=[],T=[],R,L;for(U(v,E,T),R=0,L=T.length;R<L;R+=1)b.duplicates.push(E[T[R]]);b.usedDuplicates=new Array(L)}function U(v,b,E){var T,R,L;if(v!==null&&typeof v=="object")if(R=b.indexOf(v),R!==-1)E.indexOf(R)===-1&&E.push(R);else if(b.push(v),Array.isArray(v))for(R=0,L=v.length;R<L;R+=1)U(v[R],b,E);else for(T=Object.keys(v),R=0,L=T.length;R<L;R+=1)U(v[T[R]],b,E)}function te(v,b){b=b||{};var E=new oe(b);return E.noRefs||z(v,E),k(E,0,v,!0,!0)?E.dump+`
|
|
186
216
|
`:""}function J(v,b){return te(v,t.extend({schema:u},b))}return dumper.dump=te,dumper.safeDump=J,dumper}var hasRequiredJsYaml$1;function requireJsYaml$1(){if(hasRequiredJsYaml$1)return jsYaml$1;hasRequiredJsYaml$1=1;var t=requireLoader(),a=requireDumper();function l(u){return function(){throw new Error("Function "+u+" is deprecated and cannot be used.")}}return jsYaml$1.Type=requireType(),jsYaml$1.Schema=requireSchema(),jsYaml$1.FAILSAFE_SCHEMA=requireFailsafe(),jsYaml$1.JSON_SCHEMA=requireJson(),jsYaml$1.CORE_SCHEMA=requireCore(),jsYaml$1.DEFAULT_SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_FULL_SCHEMA=requireDefault_full(),jsYaml$1.load=t.load,jsYaml$1.loadAll=t.loadAll,jsYaml$1.safeLoad=t.safeLoad,jsYaml$1.safeLoadAll=t.safeLoadAll,jsYaml$1.dump=a.dump,jsYaml$1.safeDump=a.safeDump,jsYaml$1.YAMLException=requireException(),jsYaml$1.MINIMAL_SCHEMA=requireFailsafe(),jsYaml$1.SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_SCHEMA=requireDefault_full(),jsYaml$1.scan=l("scan"),jsYaml$1.parse=l("parse"),jsYaml$1.compose=l("compose"),jsYaml$1.addConstructor=l("addConstructor"),jsYaml$1}var jsYaml,hasRequiredJsYaml;function requireJsYaml(){if(hasRequiredJsYaml)return jsYaml;hasRequiredJsYaml=1;var t=requireJsYaml$1();return jsYaml=t,jsYaml}var hasRequiredEngines;function requireEngines(){return hasRequiredEngines||(hasRequiredEngines=1,(function(module,exports$1){const yaml=requireJsYaml(),engines=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(t,a){const l=Object.assign({replacer:null,space:2},a);return JSON.stringify(t,l.replacer,l.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return wrap!==!1&&(str=`(function() {
|
|
187
217
|
return `+str.trim()+`;
|
|
188
|
-
}());`),eval(str)||{}}catch(t){if(wrap!==!1&&/(unexpected|identifier)/i.test(t.message))return parse(str,options,!1);throw new SyntaxError(t)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}})(engines)),engines.exports}var buffer={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code$2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code$2.length;i<len;++i)lookup[i]=code$2[i],revLookup[code$2.charCodeAt(i)]=i;revLookup[45]=62;revLookup[95]=63;function getLens(t){var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=t.indexOf("=");l===-1&&(l=a);var u=l===a?0:4-l%4;return[l,u]}function byteLength(t){var a=getLens(t),l=a[0],u=a[1];return(l+u)*3/4-u}function _byteLength(t,a,l){return(a+l)*3/4-l}function toByteArray(t){var a,l=getLens(t),u=l[0],c=l[1],f=new Arr(_byteLength(t,u,c)),d=0,g=c>0?u-4:u,
|
|
218
|
+
}());`),eval(str)||{}}catch(t){if(wrap!==!1&&/(unexpected|identifier)/i.test(t.message))return parse(str,options,!1);throw new SyntaxError(t)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}})(engines)),engines.exports}var buffer={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code$2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code$2.length;i<len;++i)lookup[i]=code$2[i],revLookup[code$2.charCodeAt(i)]=i;revLookup[45]=62;revLookup[95]=63;function getLens(t){var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=t.indexOf("=");l===-1&&(l=a);var u=l===a?0:4-l%4;return[l,u]}function byteLength(t){var a=getLens(t),l=a[0],u=a[1];return(l+u)*3/4-u}function _byteLength(t,a,l){return(a+l)*3/4-l}function toByteArray(t){var a,l=getLens(t),u=l[0],c=l[1],f=new Arr(_byteLength(t,u,c)),d=0,g=c>0?u-4:u,h;for(h=0;h<g;h+=4)a=revLookup[t.charCodeAt(h)]<<18|revLookup[t.charCodeAt(h+1)]<<12|revLookup[t.charCodeAt(h+2)]<<6|revLookup[t.charCodeAt(h+3)],f[d++]=a>>16&255,f[d++]=a>>8&255,f[d++]=a&255;return c===2&&(a=revLookup[t.charCodeAt(h)]<<2|revLookup[t.charCodeAt(h+1)]>>4,f[d++]=a&255),c===1&&(a=revLookup[t.charCodeAt(h)]<<10|revLookup[t.charCodeAt(h+1)]<<4|revLookup[t.charCodeAt(h+2)]>>2,f[d++]=a>>8&255,f[d++]=a&255),f}function tripletToBase64(t){return lookup[t>>18&63]+lookup[t>>12&63]+lookup[t>>6&63]+lookup[t&63]}function encodeChunk(t,a,l){for(var u,c=[],f=a;f<l;f+=3)u=(t[f]<<16&16711680)+(t[f+1]<<8&65280)+(t[f+2]&255),c.push(tripletToBase64(u));return c.join("")}function fromByteArray(t){for(var a,l=t.length,u=l%3,c=[],f=16383,d=0,g=l-u;d<g;d+=f)c.push(encodeChunk(t,d,d+f>g?g:d+f));return u===1?(a=t[l-1],c.push(lookup[a>>2]+lookup[a<<4&63]+"==")):u===2&&(a=(t[l-2]<<8)+t[l-1],c.push(lookup[a>>10]+lookup[a>>4&63]+lookup[a<<2&63]+"=")),c.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(t,a,l,u,c){var f,d,g=c*8-u-1,h=(1<<g)-1,m=h>>1,x=-7,S=l?c-1:0,A=l?-1:1,C=t[a+S];for(S+=A,f=C&(1<<-x)-1,C>>=-x,x+=g;x>0;f=f*256+t[a+S],S+=A,x-=8);for(d=f&(1<<-x)-1,f>>=-x,x+=u;x>0;d=d*256+t[a+S],S+=A,x-=8);if(f===0)f=1-m;else{if(f===h)return d?NaN:(C?-1:1)*(1/0);d=d+Math.pow(2,u),f=f-m}return(C?-1:1)*d*Math.pow(2,f-u)};ieee754.write=function(t,a,l,u,c,f){var d,g,h,m=f*8-c-1,x=(1<<m)-1,S=x>>1,A=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=u?0:f-1,O=u?1:-1,Z=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(g=isNaN(a)?1:0,d=x):(d=Math.floor(Math.log(a)/Math.LN2),a*(h=Math.pow(2,-d))<1&&(d--,h*=2),d+S>=1?a+=A/h:a+=A*Math.pow(2,1-S),a*h>=2&&(d++,h/=2),d+S>=x?(g=0,d=x):d+S>=1?(g=(a*h-1)*Math.pow(2,c),d=d+S):(g=a*Math.pow(2,S-1)*Math.pow(2,c),d=0));c>=8;t[l+C]=g&255,C+=O,g/=256,c-=8);for(d=d<<c|g,m+=c;m>0;t[l+C]=d&255,C+=O,d/=256,m-=8);t[l+C-O]|=Z*128};/*!
|
|
189
219
|
* The buffer module from node.js, for the browser.
|
|
190
220
|
*
|
|
191
221
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
192
222
|
* @license MIT
|
|
193
|
-
*/(function(t){const a=base64Js,l=ieee754,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=x,t.SlowBuffer=ye,t.INSPECT_MAX_BYTES=50;const c=2147483647;t.kMaxLength=c;const{Uint8Array:f,ArrayBuffer:d,SharedArrayBuffer:g}=globalThis;x.TYPED_ARRAY_SUPPORT=m(),!x.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function m(){try{const v=new f(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,f.prototype),Object.setPrototypeOf(v,b),v.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function h(v){if(v>c)throw new RangeError('The value "'+v+'" is invalid for option "size"');const b=new f(v);return Object.setPrototypeOf(b,x.prototype),b}function x(v,b,E){if(typeof v=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(v)}return S(v,b,E)}x.poolSize=8192;function S(v,b,E){if(typeof v=="string")return F(v,b);if(d.isView(v))return q(v);if(v==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(k(v,d)||v&&k(v.buffer,d)||typeof g<"u"&&(k(v,g)||v&&k(v.buffer,g)))return ie(v,b,E);if(typeof v=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=v.valueOf&&v.valueOf();if(T!=null&&T!==v)return x.from(T,b,E);const R=K(v);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof v[Symbol.toPrimitive]=="function")return x.from(v[Symbol.toPrimitive]("string"),b,E);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}x.from=function(v,b,E){return S(v,b,E)},Object.setPrototypeOf(x.prototype,f.prototype),Object.setPrototypeOf(x,f);function A(v){if(typeof v!="number")throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function C(v,b,E){return A(v),v<=0?h(v):b!==void 0?typeof E=="string"?h(v).fill(b,E):h(v).fill(b):h(v)}x.alloc=function(v,b,E){return C(v,b,E)};function O(v){return A(v),h(v<0?0:pe(v)|0)}x.allocUnsafe=function(v){return O(v)},x.allocUnsafeSlow=function(v){return O(v)};function F(v,b){if((typeof b!="string"||b==="")&&(b="utf8"),!x.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const E=$(v,b)|0;let T=h(E);const R=T.write(v,b);return R!==E&&(T=T.slice(0,R)),T}function P(v){const b=v.length<0?0:pe(v.length)|0,E=h(b);for(let T=0;T<b;T+=1)E[T]=v[T]&255;return E}function q(v){if(k(v,f)){const b=new f(v);return ie(b.buffer,b.byteOffset,b.byteLength)}return P(v)}function ie(v,b,E){if(b<0||v.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<b+(E||0))throw new RangeError('"length" is outside of buffer bounds');let T;return b===void 0&&E===void 0?T=new f(v):E===void 0?T=new f(v,b):T=new f(v,b,E),Object.setPrototypeOf(T,x.prototype),T}function K(v){if(x.isBuffer(v)){const b=pe(v.length)|0,E=h(b);return E.length===0||v.copy(E,0,0,b),E}if(v.length!==void 0)return typeof v.length!="number"||z(v.length)?h(0):P(v);if(v.type==="Buffer"&&Array.isArray(v.data))return P(v.data)}function pe(v){if(v>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return v|0}function ye(v){return+v!=v&&(v=0),x.alloc(+v)}x.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==x.prototype},x.compare=function(b,E){if(k(b,f)&&(b=x.from(b,b.offset,b.byteLength)),k(E,f)&&(E=x.from(E,E.offset,E.byteLength)),!x.isBuffer(b)||!x.isBuffer(E))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===E)return 0;let T=b.length,R=E.length;for(let L=0,D=Math.min(T,R);L<D;++L)if(b[L]!==E[L]){T=b[L],R=E[L];break}return T<R?-1:R<T?1:0},x.isEncoding=function(b){switch(String(b).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},x.concat=function(b,E){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return x.alloc(0);let T;if(E===void 0)for(E=0,T=0;T<b.length;++T)E+=b[T].length;const R=x.allocUnsafe(E);let L=0;for(T=0;T<b.length;++T){let D=b[T];if(k(D,f))L+D.length>R.length?(x.isBuffer(D)||(D=x.from(D)),D.copy(R,L)):f.prototype.set.call(R,D,L);else if(x.isBuffer(D))D.copy(R,L);else throw new TypeError('"list" argument must be an Array of Buffers');L+=D.length}return R};function $(v,b){if(x.isBuffer(v))return v.length;if(d.isView(v)||k(v,d))return v.byteLength;if(typeof v!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);const E=v.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&E===0)return 0;let R=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return E;case"utf8":case"utf-8":return At(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E*2;case"hex":return E>>>1;case"base64":return on(v).length;default:if(R)return T?-1:At(v).length;b=(""+b).toLowerCase(),R=!0}}x.byteLength=$;function be(v,b,E){let T=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((E===void 0||E>this.length)&&(E=this.length),E<=0)||(E>>>=0,b>>>=0,E<=b))return"";for(v||(v="utf8");;)switch(v){case"hex":return ne(this,b,E);case"utf8":case"utf-8":return de(this,b,E);case"ascii":return N(this,b,E);case"latin1":case"binary":return I(this,b,E);case"base64":return H(this,b,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,b,E);default:if(T)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),T=!0}}x.prototype._isBuffer=!0;function ue(v,b,E){const T=v[b];v[b]=v[E],v[E]=T}x.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let E=0;E<b;E+=2)ue(this,E,E+1);return this},x.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let E=0;E<b;E+=4)ue(this,E,E+3),ue(this,E+1,E+2);return this},x.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let E=0;E<b;E+=8)ue(this,E,E+7),ue(this,E+1,E+6),ue(this,E+2,E+5),ue(this,E+3,E+4);return this},x.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?de(this,0,b):be.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(b){if(!x.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:x.compare(this,b)===0},x.prototype.inspect=function(){let b="";const E=t.INSPECT_MAX_BYTES;return b=this.toString("hex",0,E).replace(/(.{2})/g,"$1 ").trim(),this.length>E&&(b+=" ... "),"<Buffer "+b+">"},u&&(x.prototype[u]=x.prototype.inspect),x.prototype.compare=function(b,E,T,R,L){if(k(b,f)&&(b=x.from(b,b.offset,b.byteLength)),!x.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(E===void 0&&(E=0),T===void 0&&(T=b?b.length:0),R===void 0&&(R=0),L===void 0&&(L=this.length),E<0||T>b.length||R<0||L>this.length)throw new RangeError("out of range index");if(R>=L&&E>=T)return 0;if(R>=L)return-1;if(E>=T)return 1;if(E>>>=0,T>>>=0,R>>>=0,L>>>=0,this===b)return 0;let D=L-R,se=T-E;const ae=Math.min(D,se),Ee=this.slice(R,L),Te=b.slice(E,T);for(let we=0;we<ae;++we)if(Ee[we]!==Te[we]){D=Ee[we],se=Te[we];break}return D<se?-1:se<D?1:0};function ke(v,b,E,T,R){if(v.length===0)return-1;if(typeof E=="string"?(T=E,E=0):E>2147483647?E=2147483647:E<-2147483648&&(E=-2147483648),E=+E,z(E)&&(E=R?0:v.length-1),E<0&&(E=v.length+E),E>=v.length){if(R)return-1;E=v.length-1}else if(E<0)if(R)E=0;else return-1;if(typeof b=="string"&&(b=x.from(b,T)),x.isBuffer(b))return b.length===0?-1:Z(v,b,E,T,R);if(typeof b=="number")return b=b&255,typeof f.prototype.indexOf=="function"?R?f.prototype.indexOf.call(v,b,E):f.prototype.lastIndexOf.call(v,b,E):Z(v,[b],E,T,R);throw new TypeError("val must be string, number or Buffer")}function Z(v,b,E,T,R){let L=1,D=v.length,se=b.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(v.length<2||b.length<2)return-1;L=2,D/=2,se/=2,E/=2}function ae(Te,we){return L===1?Te[we]:Te.readUInt16BE(we*L)}let Ee;if(R){let Te=-1;for(Ee=E;Ee<D;Ee++)if(ae(v,Ee)===ae(b,Te===-1?0:Ee-Te)){if(Te===-1&&(Te=Ee),Ee-Te+1===se)return Te*L}else Te!==-1&&(Ee-=Ee-Te),Te=-1}else for(E+se>D&&(E=D-se),Ee=E;Ee>=0;Ee--){let Te=!0;for(let we=0;we<se;we++)if(ae(v,Ee+we)!==ae(b,we)){Te=!1;break}if(Te)return Ee}return-1}x.prototype.includes=function(b,E,T){return this.indexOf(b,E,T)!==-1},x.prototype.indexOf=function(b,E,T){return ke(this,b,E,T,!0)},x.prototype.lastIndexOf=function(b,E,T){return ke(this,b,E,T,!1)};function ve(v,b,E,T){E=Number(E)||0;const R=v.length-E;T?(T=Number(T),T>R&&(T=R)):T=R;const L=b.length;T>L/2&&(T=L/2);let D;for(D=0;D<T;++D){const se=parseInt(b.substr(D*2,2),16);if(z(se))return D;v[E+D]=se}return D}function ee(v,b,E,T){return Je(At(b,v.length-E),v,E,T)}function Ae(v,b,E,T){return Je(Ht(b),v,E,T)}function xe(v,b,E,T){return Je(on(b),v,E,T)}function he(v,b,E,T){return Je(ln(b,v.length-E),v,E,T)}x.prototype.write=function(b,E,T,R){if(E===void 0)R="utf8",T=this.length,E=0;else if(T===void 0&&typeof E=="string")R=E,T=this.length,E=0;else if(isFinite(E))E=E>>>0,isFinite(T)?(T=T>>>0,R===void 0&&(R="utf8")):(R=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const L=this.length-E;if((T===void 0||T>L)&&(T=L),b.length>0&&(T<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");let D=!1;for(;;)switch(R){case"hex":return ve(this,b,E,T);case"utf8":case"utf-8":return ee(this,b,E,T);case"ascii":case"latin1":case"binary":return Ae(this,b,E,T);case"base64":return xe(this,b,E,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,b,E,T);default:if(D)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),D=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(v,b,E){return b===0&&E===v.length?a.fromByteArray(v):a.fromByteArray(v.slice(b,E))}function de(v,b,E){E=Math.min(v.length,E);const T=[];let R=b;for(;R<E;){const L=v[R];let D=null,se=L>239?4:L>223?3:L>191?2:1;if(R+se<=E){let ae,Ee,Te,we;switch(se){case 1:L<128&&(D=L);break;case 2:ae=v[R+1],(ae&192)===128&&(we=(L&31)<<6|ae&63,we>127&&(D=we));break;case 3:ae=v[R+1],Ee=v[R+2],(ae&192)===128&&(Ee&192)===128&&(we=(L&15)<<12|(ae&63)<<6|Ee&63,we>2047&&(we<55296||we>57343)&&(D=we));break;case 4:ae=v[R+1],Ee=v[R+2],Te=v[R+3],(ae&192)===128&&(Ee&192)===128&&(Te&192)===128&&(we=(L&15)<<18|(ae&63)<<12|(Ee&63)<<6|Te&63,we>65535&&we<1114112&&(D=we))}}D===null?(D=65533,se=1):D>65535&&(D-=65536,T.push(D>>>10&1023|55296),D=56320|D&1023),T.push(D),R+=se}return Ne(T)}const oe=4096;function Ne(v){const b=v.length;if(b<=oe)return String.fromCharCode.apply(String,v);let E="",T=0;for(;T<b;)E+=String.fromCharCode.apply(String,v.slice(T,T+=oe));return E}function N(v,b,E){let T="";E=Math.min(v.length,E);for(let R=b;R<E;++R)T+=String.fromCharCode(v[R]&127);return T}function I(v,b,E){let T="";E=Math.min(v.length,E);for(let R=b;R<E;++R)T+=String.fromCharCode(v[R]);return T}function ne(v,b,E){const T=v.length;(!b||b<0)&&(b=0),(!E||E<0||E>T)&&(E=T);let R="";for(let L=b;L<E;++L)R+=U[v[L]];return R}function j(v,b,E){const T=v.slice(b,E);let R="";for(let L=0;L<T.length-1;L+=2)R+=String.fromCharCode(T[L]+T[L+1]*256);return R}x.prototype.slice=function(b,E){const T=this.length;b=~~b,E=E===void 0?T:~~E,b<0?(b+=T,b<0&&(b=0)):b>T&&(b=T),E<0?(E+=T,E<0&&(E=0)):E>T&&(E=T),E<b&&(E=b);const R=this.subarray(b,E);return Object.setPrototypeOf(R,x.prototype),R};function ge(v,b,E){if(v%1!==0||v<0)throw new RangeError("offset is not uint");if(v+b>E)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(b,E,T){b=b>>>0,E=E>>>0,T||ge(b,E,this.length);let R=this[b],L=1,D=0;for(;++D<E&&(L*=256);)R+=this[b+D]*L;return R},x.prototype.readUintBE=x.prototype.readUIntBE=function(b,E,T){b=b>>>0,E=E>>>0,T||ge(b,E,this.length);let R=this[b+--E],L=1;for(;E>0&&(L*=256);)R+=this[b+--E]*L;return R},x.prototype.readUint8=x.prototype.readUInt8=function(b,E){return b=b>>>0,E||ge(b,1,this.length),this[b]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(b,E){return b=b>>>0,E||ge(b,2,this.length),this[b]|this[b+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(b,E){return b=b>>>0,E||ge(b,2,this.length),this[b]<<8|this[b+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},x.prototype.readBigUInt64LE=te(function(b){b=b>>>0,mt(b,"offset");const E=this[b],T=this[b+7];(E===void 0||T===void 0)&&_t(b,this.length-8);const R=E+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,L=this[++b]+this[++b]*2**8+this[++b]*2**16+T*2**24;return BigInt(R)+(BigInt(L)<<BigInt(32))}),x.prototype.readBigUInt64BE=te(function(b){b=b>>>0,mt(b,"offset");const E=this[b],T=this[b+7];(E===void 0||T===void 0)&&_t(b,this.length-8);const R=E*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],L=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+T;return(BigInt(R)<<BigInt(32))+BigInt(L)}),x.prototype.readIntLE=function(b,E,T){b=b>>>0,E=E>>>0,T||ge(b,E,this.length);let R=this[b],L=1,D=0;for(;++D<E&&(L*=256);)R+=this[b+D]*L;return L*=128,R>=L&&(R-=Math.pow(2,8*E)),R},x.prototype.readIntBE=function(b,E,T){b=b>>>0,E=E>>>0,T||ge(b,E,this.length);let R=E,L=1,D=this[b+--R];for(;R>0&&(L*=256);)D+=this[b+--R]*L;return L*=128,D>=L&&(D-=Math.pow(2,8*E)),D},x.prototype.readInt8=function(b,E){return b=b>>>0,E||ge(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},x.prototype.readInt16LE=function(b,E){b=b>>>0,E||ge(b,2,this.length);const T=this[b]|this[b+1]<<8;return T&32768?T|4294901760:T},x.prototype.readInt16BE=function(b,E){b=b>>>0,E||ge(b,2,this.length);const T=this[b+1]|this[b]<<8;return T&32768?T|4294901760:T},x.prototype.readInt32LE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},x.prototype.readInt32BE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},x.prototype.readBigInt64LE=te(function(b){b=b>>>0,mt(b,"offset");const E=this[b],T=this[b+7];(E===void 0||T===void 0)&&_t(b,this.length-8);const R=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(T<<24);return(BigInt(R)<<BigInt(32))+BigInt(E+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),x.prototype.readBigInt64BE=te(function(b){b=b>>>0,mt(b,"offset");const E=this[b],T=this[b+7];(E===void 0||T===void 0)&&_t(b,this.length-8);const R=(E<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(R)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+T)}),x.prototype.readFloatLE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),l.read(this,b,!0,23,4)},x.prototype.readFloatBE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),l.read(this,b,!1,23,4)},x.prototype.readDoubleLE=function(b,E){return b=b>>>0,E||ge(b,8,this.length),l.read(this,b,!0,52,8)},x.prototype.readDoubleBE=function(b,E){return b=b>>>0,E||ge(b,8,this.length),l.read(this,b,!1,52,8)};function me(v,b,E,T,R,L){if(!x.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>R||b<L)throw new RangeError('"value" argument is out of bounds');if(E+T>v.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(b,E,T,R){if(b=+b,E=E>>>0,T=T>>>0,!R){const se=Math.pow(2,8*T)-1;me(this,b,E,T,se,0)}let L=1,D=0;for(this[E]=b&255;++D<T&&(L*=256);)this[E+D]=b/L&255;return E+T},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(b,E,T,R){if(b=+b,E=E>>>0,T=T>>>0,!R){const se=Math.pow(2,8*T)-1;me(this,b,E,T,se,0)}let L=T-1,D=1;for(this[E+L]=b&255;--L>=0&&(D*=256);)this[E+L]=b/D&255;return E+T},x.prototype.writeUint8=x.prototype.writeUInt8=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,1,255,0),this[E]=b&255,E+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,2,65535,0),this[E]=b&255,this[E+1]=b>>>8,E+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,2,65535,0),this[E]=b>>>8,this[E+1]=b&255,E+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,4,4294967295,0),this[E+3]=b>>>24,this[E+2]=b>>>16,this[E+1]=b>>>8,this[E]=b&255,E+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,4,4294967295,0),this[E]=b>>>24,this[E+1]=b>>>16,this[E+2]=b>>>8,this[E+3]=b&255,E+4};function Se(v,b,E,T,R){Tt(b,T,R,v,E,7);let L=Number(b&BigInt(4294967295));v[E++]=L,L=L>>8,v[E++]=L,L=L>>8,v[E++]=L,L=L>>8,v[E++]=L;let D=Number(b>>BigInt(32)&BigInt(4294967295));return v[E++]=D,D=D>>8,v[E++]=D,D=D>>8,v[E++]=D,D=D>>8,v[E++]=D,E}function Oe(v,b,E,T,R){Tt(b,T,R,v,E,7);let L=Number(b&BigInt(4294967295));v[E+7]=L,L=L>>8,v[E+6]=L,L=L>>8,v[E+5]=L,L=L>>8,v[E+4]=L;let D=Number(b>>BigInt(32)&BigInt(4294967295));return v[E+3]=D,D=D>>8,v[E+2]=D,D=D>>8,v[E+1]=D,D=D>>8,v[E]=D,E+8}x.prototype.writeBigUInt64LE=te(function(b,E=0){return Se(this,b,E,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=te(function(b,E=0){return Oe(this,b,E,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(b,E,T,R){if(b=+b,E=E>>>0,!R){const ae=Math.pow(2,8*T-1);me(this,b,E,T,ae-1,-ae)}let L=0,D=1,se=0;for(this[E]=b&255;++L<T&&(D*=256);)b<0&&se===0&&this[E+L-1]!==0&&(se=1),this[E+L]=(b/D>>0)-se&255;return E+T},x.prototype.writeIntBE=function(b,E,T,R){if(b=+b,E=E>>>0,!R){const ae=Math.pow(2,8*T-1);me(this,b,E,T,ae-1,-ae)}let L=T-1,D=1,se=0;for(this[E+L]=b&255;--L>=0&&(D*=256);)b<0&&se===0&&this[E+L+1]!==0&&(se=1),this[E+L]=(b/D>>0)-se&255;return E+T},x.prototype.writeInt8=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,1,127,-128),b<0&&(b=255+b+1),this[E]=b&255,E+1},x.prototype.writeInt16LE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,2,32767,-32768),this[E]=b&255,this[E+1]=b>>>8,E+2},x.prototype.writeInt16BE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,2,32767,-32768),this[E]=b>>>8,this[E+1]=b&255,E+2},x.prototype.writeInt32LE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,4,2147483647,-2147483648),this[E]=b&255,this[E+1]=b>>>8,this[E+2]=b>>>16,this[E+3]=b>>>24,E+4},x.prototype.writeInt32BE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[E]=b>>>24,this[E+1]=b>>>16,this[E+2]=b>>>8,this[E+3]=b&255,E+4},x.prototype.writeBigInt64LE=te(function(b,E=0){return Se(this,b,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=te(function(b,E=0){return Oe(this,b,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(v,b,E,T,R,L){if(E+T>v.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("Index out of range")}function Re(v,b,E,T,R){return b=+b,E=E>>>0,R||qe(v,b,E,4),l.write(v,b,E,T,23,4),E+4}x.prototype.writeFloatLE=function(b,E,T){return Re(this,b,E,!0,T)},x.prototype.writeFloatBE=function(b,E,T){return Re(this,b,E,!1,T)};function nt(v,b,E,T,R){return b=+b,E=E>>>0,R||qe(v,b,E,8),l.write(v,b,E,T,52,8),E+8}x.prototype.writeDoubleLE=function(b,E,T){return nt(this,b,E,!0,T)},x.prototype.writeDoubleBE=function(b,E,T){return nt(this,b,E,!1,T)},x.prototype.copy=function(b,E,T,R){if(!x.isBuffer(b))throw new TypeError("argument should be a Buffer");if(T||(T=0),!R&&R!==0&&(R=this.length),E>=b.length&&(E=b.length),E||(E=0),R>0&&R<T&&(R=T),R===T||b.length===0||this.length===0)return 0;if(E<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length),b.length-E<R-T&&(R=b.length-E+T);const L=R-T;return this===b&&typeof f.prototype.copyWithin=="function"?this.copyWithin(E,T,R):f.prototype.set.call(b,this.subarray(T,R),E),L},x.prototype.fill=function(b,E,T,R){if(typeof b=="string"){if(typeof E=="string"?(R=E,E=0,T=this.length):typeof T=="string"&&(R=T,T=this.length),R!==void 0&&typeof R!="string")throw new TypeError("encoding must be a string");if(typeof R=="string"&&!x.isEncoding(R))throw new TypeError("Unknown encoding: "+R);if(b.length===1){const D=b.charCodeAt(0);(R==="utf8"&&D<128||R==="latin1")&&(b=D)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(E<0||this.length<E||this.length<T)throw new RangeError("Out of range index");if(T<=E)return this;E=E>>>0,T=T===void 0?this.length:T>>>0,b||(b=0);let L;if(typeof b=="number")for(L=E;L<T;++L)this[L]=b;else{const D=x.isBuffer(b)?b:x.from(b,R),se=D.length;if(se===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(L=0;L<T-E;++L)this[L+E]=D[L%se]}return this};const Ke={};function at(v,b,E){Ke[v]=class extends E{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${v}]`,this.stack,delete this.name}get code(){return v}set code(R){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:R,writable:!0})}toString(){return`${this.name} [${v}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(v){return v?`${v} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(v,b){return`The "${v}" argument must be of type number. Received type ${typeof b}`},TypeError),at("ERR_OUT_OF_RANGE",function(v,b,E){let T=`The value of "${v}" is out of range.`,R=E;return Number.isInteger(E)&&Math.abs(E)>2**32?R=kt(String(E)):typeof E=="bigint"&&(R=String(E),(E>BigInt(2)**BigInt(32)||E<-(BigInt(2)**BigInt(32)))&&(R=kt(R)),R+="n"),T+=` It must be ${b}. Received ${R}`,T},RangeError);function kt(v){let b="",E=v.length;const T=v[0]==="-"?1:0;for(;E>=T+4;E-=3)b=`_${v.slice(E-3,E)}${b}`;return`${v.slice(0,E)}${b}`}function st(v,b,E){mt(b,"offset"),(v[b]===void 0||v[b+E]===void 0)&&_t(b,v.length-(E+1))}function Tt(v,b,E,T,R,L){if(v>E||v<b){const D=typeof b=="bigint"?"n":"";let se;throw b===0||b===BigInt(0)?se=`>= 0${D} and < 2${D} ** ${(L+1)*8}${D}`:se=`>= -(2${D} ** ${(L+1)*8-1}${D}) and < 2 ** ${(L+1)*8-1}${D}`,new Ke.ERR_OUT_OF_RANGE("value",se,v)}st(T,R,L)}function mt(v,b){if(typeof v!="number")throw new Ke.ERR_INVALID_ARG_TYPE(b,"number",v)}function _t(v,b,E){throw Math.floor(v)!==v?(mt(v,E),new Ke.ERR_OUT_OF_RANGE("offset","an integer",v)):b<0?new Ke.ERR_BUFFER_OUT_OF_BOUNDS:new Ke.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,v)}const wt=/[^+/0-9A-Za-z-_]/g;function Vt(v){if(v=v.split("=")[0],v=v.trim().replace(wt,""),v.length<2)return"";for(;v.length%4!==0;)v=v+"=";return v}function At(v,b){b=b||1/0;let E;const T=v.length;let R=null;const L=[];for(let D=0;D<T;++D){if(E=v.charCodeAt(D),E>55295&&E<57344){if(!R){if(E>56319){(b-=3)>-1&&L.push(239,191,189);continue}else if(D+1===T){(b-=3)>-1&&L.push(239,191,189);continue}R=E;continue}if(E<56320){(b-=3)>-1&&L.push(239,191,189),R=E;continue}E=(R-55296<<10|E-56320)+65536}else R&&(b-=3)>-1&&L.push(239,191,189);if(R=null,E<128){if((b-=1)<0)break;L.push(E)}else if(E<2048){if((b-=2)<0)break;L.push(E>>6|192,E&63|128)}else if(E<65536){if((b-=3)<0)break;L.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((b-=4)<0)break;L.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return L}function Ht(v){const b=[];for(let E=0;E<v.length;++E)b.push(v.charCodeAt(E)&255);return b}function ln(v,b){let E,T,R;const L=[];for(let D=0;D<v.length&&!((b-=2)<0);++D)E=v.charCodeAt(D),T=E>>8,R=E%256,L.push(R),L.push(T);return L}function on(v){return a.toByteArray(Vt(v))}function Je(v,b,E,T){let R;for(R=0;R<T&&!(R+E>=b.length||R>=v.length);++R)b[R+E]=v[R];return R}function k(v,b){return v instanceof b||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===b.name}function z(v){return v!==v}const U=(function(){const v="0123456789abcdef",b=new Array(256);for(let E=0;E<16;++E){const T=E*16;for(let R=0;R<16;++R)b[T+R]=v[E]+v[R]}return b})();function te(v){return typeof BigInt>"u"?J:v}function J(){throw new Error("BigInt not supported")}})(buffer);const Buffer=buffer.Buffer;var utils={};/*!
|
|
223
|
+
*/(function(t){const a=base64Js,l=ieee754,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=x,t.SlowBuffer=ye,t.INSPECT_MAX_BYTES=50;const c=2147483647;t.kMaxLength=c;const{Uint8Array:f,ArrayBuffer:d,SharedArrayBuffer:g}=globalThis;x.TYPED_ARRAY_SUPPORT=h(),!x.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function h(){try{const v=new f(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,f.prototype),Object.setPrototypeOf(v,b),v.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function m(v){if(v>c)throw new RangeError('The value "'+v+'" is invalid for option "size"');const b=new f(v);return Object.setPrototypeOf(b,x.prototype),b}function x(v,b,E){if(typeof v=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(v)}return S(v,b,E)}x.poolSize=8192;function S(v,b,E){if(typeof v=="string")return Z(v,b);if(d.isView(v))return q(v);if(v==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(k(v,d)||v&&k(v.buffer,d)||typeof g<"u"&&(k(v,g)||v&&k(v.buffer,g)))return ne(v,b,E);if(typeof v=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=v.valueOf&&v.valueOf();if(T!=null&&T!==v)return x.from(T,b,E);const R=Y(v);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof v[Symbol.toPrimitive]=="function")return x.from(v[Symbol.toPrimitive]("string"),b,E);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}x.from=function(v,b,E){return S(v,b,E)},Object.setPrototypeOf(x.prototype,f.prototype),Object.setPrototypeOf(x,f);function A(v){if(typeof v!="number")throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function C(v,b,E){return A(v),v<=0?m(v):b!==void 0?typeof E=="string"?m(v).fill(b,E):m(v).fill(b):m(v)}x.alloc=function(v,b,E){return C(v,b,E)};function O(v){return A(v),m(v<0?0:pe(v)|0)}x.allocUnsafe=function(v){return O(v)},x.allocUnsafeSlow=function(v){return O(v)};function Z(v,b){if((typeof b!="string"||b==="")&&(b="utf8"),!x.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const E=Q(v,b)|0;let T=m(E);const R=T.write(v,b);return R!==E&&(T=T.slice(0,R)),T}function P(v){const b=v.length<0?0:pe(v.length)|0,E=m(b);for(let T=0;T<b;T+=1)E[T]=v[T]&255;return E}function q(v){if(k(v,f)){const b=new f(v);return ne(b.buffer,b.byteOffset,b.byteLength)}return P(v)}function ne(v,b,E){if(b<0||v.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<b+(E||0))throw new RangeError('"length" is outside of buffer bounds');let T;return b===void 0&&E===void 0?T=new f(v):E===void 0?T=new f(v,b):T=new f(v,b,E),Object.setPrototypeOf(T,x.prototype),T}function Y(v){if(x.isBuffer(v)){const b=pe(v.length)|0,E=m(b);return E.length===0||v.copy(E,0,0,b),E}if(v.length!==void 0)return typeof v.length!="number"||z(v.length)?m(0):P(v);if(v.type==="Buffer"&&Array.isArray(v.data))return P(v.data)}function pe(v){if(v>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return v|0}function ye(v){return+v!=v&&(v=0),x.alloc(+v)}x.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==x.prototype},x.compare=function(b,E){if(k(b,f)&&(b=x.from(b,b.offset,b.byteLength)),k(E,f)&&(E=x.from(E,E.offset,E.byteLength)),!x.isBuffer(b)||!x.isBuffer(E))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===E)return 0;let T=b.length,R=E.length;for(let L=0,D=Math.min(T,R);L<D;++L)if(b[L]!==E[L]){T=b[L],R=E[L];break}return T<R?-1:R<T?1:0},x.isEncoding=function(b){switch(String(b).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},x.concat=function(b,E){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return x.alloc(0);let T;if(E===void 0)for(E=0,T=0;T<b.length;++T)E+=b[T].length;const R=x.allocUnsafe(E);let L=0;for(T=0;T<b.length;++T){let D=b[T];if(k(D,f))L+D.length>R.length?(x.isBuffer(D)||(D=x.from(D)),D.copy(R,L)):f.prototype.set.call(R,D,L);else if(x.isBuffer(D))D.copy(R,L);else throw new TypeError('"list" argument must be an Array of Buffers');L+=D.length}return R};function Q(v,b){if(x.isBuffer(v))return v.length;if(d.isView(v)||k(v,d))return v.byteLength;if(typeof v!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);const E=v.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&E===0)return 0;let R=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return E;case"utf8":case"utf-8":return At(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E*2;case"hex":return E>>>1;case"base64":return on(v).length;default:if(R)return T?-1:At(v).length;b=(""+b).toLowerCase(),R=!0}}x.byteLength=Q;function be(v,b,E){let T=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((E===void 0||E>this.length)&&(E=this.length),E<=0)||(E>>>=0,b>>>=0,E<=b))return"";for(v||(v="utf8");;)switch(v){case"hex":return ie(this,b,E);case"utf8":case"utf-8":return de(this,b,E);case"ascii":return N(this,b,E);case"latin1":case"binary":return I(this,b,E);case"base64":return H(this,b,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,b,E);default:if(T)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),T=!0}}x.prototype._isBuffer=!0;function ue(v,b,E){const T=v[b];v[b]=v[E],v[E]=T}x.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let E=0;E<b;E+=2)ue(this,E,E+1);return this},x.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let E=0;E<b;E+=4)ue(this,E,E+3),ue(this,E+1,E+2);return this},x.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let E=0;E<b;E+=8)ue(this,E,E+7),ue(this,E+1,E+6),ue(this,E+2,E+5),ue(this,E+3,E+4);return this},x.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?de(this,0,b):be.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(b){if(!x.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:x.compare(this,b)===0},x.prototype.inspect=function(){let b="";const E=t.INSPECT_MAX_BYTES;return b=this.toString("hex",0,E).replace(/(.{2})/g,"$1 ").trim(),this.length>E&&(b+=" ... "),"<Buffer "+b+">"},u&&(x.prototype[u]=x.prototype.inspect),x.prototype.compare=function(b,E,T,R,L){if(k(b,f)&&(b=x.from(b,b.offset,b.byteLength)),!x.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(E===void 0&&(E=0),T===void 0&&(T=b?b.length:0),R===void 0&&(R=0),L===void 0&&(L=this.length),E<0||T>b.length||R<0||L>this.length)throw new RangeError("out of range index");if(R>=L&&E>=T)return 0;if(R>=L)return-1;if(E>=T)return 1;if(E>>>=0,T>>>=0,R>>>=0,L>>>=0,this===b)return 0;let D=L-R,se=T-E;const ae=Math.min(D,se),Ee=this.slice(R,L),Te=b.slice(E,T);for(let we=0;we<ae;++we)if(Ee[we]!==Te[we]){D=Ee[we],se=Te[we];break}return D<se?-1:se<D?1:0};function ke(v,b,E,T,R){if(v.length===0)return-1;if(typeof E=="string"?(T=E,E=0):E>2147483647?E=2147483647:E<-2147483648&&(E=-2147483648),E=+E,z(E)&&(E=R?0:v.length-1),E<0&&(E=v.length+E),E>=v.length){if(R)return-1;E=v.length-1}else if(E<0)if(R)E=0;else return-1;if(typeof b=="string"&&(b=x.from(b,T)),x.isBuffer(b))return b.length===0?-1:F(v,b,E,T,R);if(typeof b=="number")return b=b&255,typeof f.prototype.indexOf=="function"?R?f.prototype.indexOf.call(v,b,E):f.prototype.lastIndexOf.call(v,b,E):F(v,[b],E,T,R);throw new TypeError("val must be string, number or Buffer")}function F(v,b,E,T,R){let L=1,D=v.length,se=b.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(v.length<2||b.length<2)return-1;L=2,D/=2,se/=2,E/=2}function ae(Te,we){return L===1?Te[we]:Te.readUInt16BE(we*L)}let Ee;if(R){let Te=-1;for(Ee=E;Ee<D;Ee++)if(ae(v,Ee)===ae(b,Te===-1?0:Ee-Te)){if(Te===-1&&(Te=Ee),Ee-Te+1===se)return Te*L}else Te!==-1&&(Ee-=Ee-Te),Te=-1}else for(E+se>D&&(E=D-se),Ee=E;Ee>=0;Ee--){let Te=!0;for(let we=0;we<se;we++)if(ae(v,Ee+we)!==ae(b,we)){Te=!1;break}if(Te)return Ee}return-1}x.prototype.includes=function(b,E,T){return this.indexOf(b,E,T)!==-1},x.prototype.indexOf=function(b,E,T){return ke(this,b,E,T,!0)},x.prototype.lastIndexOf=function(b,E,T){return ke(this,b,E,T,!1)};function ve(v,b,E,T){E=Number(E)||0;const R=v.length-E;T?(T=Number(T),T>R&&(T=R)):T=R;const L=b.length;T>L/2&&(T=L/2);let D;for(D=0;D<T;++D){const se=parseInt(b.substr(D*2,2),16);if(z(se))return D;v[E+D]=se}return D}function ee(v,b,E,T){return Je(At(b,v.length-E),v,E,T)}function Ae(v,b,E,T){return Je(Pt(b),v,E,T)}function xe(v,b,E,T){return Je(on(b),v,E,T)}function he(v,b,E,T){return Je(ln(b,v.length-E),v,E,T)}x.prototype.write=function(b,E,T,R){if(E===void 0)R="utf8",T=this.length,E=0;else if(T===void 0&&typeof E=="string")R=E,T=this.length,E=0;else if(isFinite(E))E=E>>>0,isFinite(T)?(T=T>>>0,R===void 0&&(R="utf8")):(R=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const L=this.length-E;if((T===void 0||T>L)&&(T=L),b.length>0&&(T<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");let D=!1;for(;;)switch(R){case"hex":return ve(this,b,E,T);case"utf8":case"utf-8":return ee(this,b,E,T);case"ascii":case"latin1":case"binary":return Ae(this,b,E,T);case"base64":return xe(this,b,E,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,b,E,T);default:if(D)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),D=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(v,b,E){return b===0&&E===v.length?a.fromByteArray(v):a.fromByteArray(v.slice(b,E))}function de(v,b,E){E=Math.min(v.length,E);const T=[];let R=b;for(;R<E;){const L=v[R];let D=null,se=L>239?4:L>223?3:L>191?2:1;if(R+se<=E){let ae,Ee,Te,we;switch(se){case 1:L<128&&(D=L);break;case 2:ae=v[R+1],(ae&192)===128&&(we=(L&31)<<6|ae&63,we>127&&(D=we));break;case 3:ae=v[R+1],Ee=v[R+2],(ae&192)===128&&(Ee&192)===128&&(we=(L&15)<<12|(ae&63)<<6|Ee&63,we>2047&&(we<55296||we>57343)&&(D=we));break;case 4:ae=v[R+1],Ee=v[R+2],Te=v[R+3],(ae&192)===128&&(Ee&192)===128&&(Te&192)===128&&(we=(L&15)<<18|(ae&63)<<12|(Ee&63)<<6|Te&63,we>65535&&we<1114112&&(D=we))}}D===null?(D=65533,se=1):D>65535&&(D-=65536,T.push(D>>>10&1023|55296),D=56320|D&1023),T.push(D),R+=se}return Ne(T)}const oe=4096;function Ne(v){const b=v.length;if(b<=oe)return String.fromCharCode.apply(String,v);let E="",T=0;for(;T<b;)E+=String.fromCharCode.apply(String,v.slice(T,T+=oe));return E}function N(v,b,E){let T="";E=Math.min(v.length,E);for(let R=b;R<E;++R)T+=String.fromCharCode(v[R]&127);return T}function I(v,b,E){let T="";E=Math.min(v.length,E);for(let R=b;R<E;++R)T+=String.fromCharCode(v[R]);return T}function ie(v,b,E){const T=v.length;(!b||b<0)&&(b=0),(!E||E<0||E>T)&&(E=T);let R="";for(let L=b;L<E;++L)R+=U[v[L]];return R}function j(v,b,E){const T=v.slice(b,E);let R="";for(let L=0;L<T.length-1;L+=2)R+=String.fromCharCode(T[L]+T[L+1]*256);return R}x.prototype.slice=function(b,E){const T=this.length;b=~~b,E=E===void 0?T:~~E,b<0?(b+=T,b<0&&(b=0)):b>T&&(b=T),E<0?(E+=T,E<0&&(E=0)):E>T&&(E=T),E<b&&(E=b);const R=this.subarray(b,E);return Object.setPrototypeOf(R,x.prototype),R};function ge(v,b,E){if(v%1!==0||v<0)throw new RangeError("offset is not uint");if(v+b>E)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(b,E,T){b=b>>>0,E=E>>>0,T||ge(b,E,this.length);let R=this[b],L=1,D=0;for(;++D<E&&(L*=256);)R+=this[b+D]*L;return R},x.prototype.readUintBE=x.prototype.readUIntBE=function(b,E,T){b=b>>>0,E=E>>>0,T||ge(b,E,this.length);let R=this[b+--E],L=1;for(;E>0&&(L*=256);)R+=this[b+--E]*L;return R},x.prototype.readUint8=x.prototype.readUInt8=function(b,E){return b=b>>>0,E||ge(b,1,this.length),this[b]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(b,E){return b=b>>>0,E||ge(b,2,this.length),this[b]|this[b+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(b,E){return b=b>>>0,E||ge(b,2,this.length),this[b]<<8|this[b+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},x.prototype.readBigUInt64LE=te(function(b){b=b>>>0,mt(b,"offset");const E=this[b],T=this[b+7];(E===void 0||T===void 0)&&_t(b,this.length-8);const R=E+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,L=this[++b]+this[++b]*2**8+this[++b]*2**16+T*2**24;return BigInt(R)+(BigInt(L)<<BigInt(32))}),x.prototype.readBigUInt64BE=te(function(b){b=b>>>0,mt(b,"offset");const E=this[b],T=this[b+7];(E===void 0||T===void 0)&&_t(b,this.length-8);const R=E*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],L=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+T;return(BigInt(R)<<BigInt(32))+BigInt(L)}),x.prototype.readIntLE=function(b,E,T){b=b>>>0,E=E>>>0,T||ge(b,E,this.length);let R=this[b],L=1,D=0;for(;++D<E&&(L*=256);)R+=this[b+D]*L;return L*=128,R>=L&&(R-=Math.pow(2,8*E)),R},x.prototype.readIntBE=function(b,E,T){b=b>>>0,E=E>>>0,T||ge(b,E,this.length);let R=E,L=1,D=this[b+--R];for(;R>0&&(L*=256);)D+=this[b+--R]*L;return L*=128,D>=L&&(D-=Math.pow(2,8*E)),D},x.prototype.readInt8=function(b,E){return b=b>>>0,E||ge(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},x.prototype.readInt16LE=function(b,E){b=b>>>0,E||ge(b,2,this.length);const T=this[b]|this[b+1]<<8;return T&32768?T|4294901760:T},x.prototype.readInt16BE=function(b,E){b=b>>>0,E||ge(b,2,this.length);const T=this[b+1]|this[b]<<8;return T&32768?T|4294901760:T},x.prototype.readInt32LE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},x.prototype.readInt32BE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},x.prototype.readBigInt64LE=te(function(b){b=b>>>0,mt(b,"offset");const E=this[b],T=this[b+7];(E===void 0||T===void 0)&&_t(b,this.length-8);const R=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(T<<24);return(BigInt(R)<<BigInt(32))+BigInt(E+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),x.prototype.readBigInt64BE=te(function(b){b=b>>>0,mt(b,"offset");const E=this[b],T=this[b+7];(E===void 0||T===void 0)&&_t(b,this.length-8);const R=(E<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(R)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+T)}),x.prototype.readFloatLE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),l.read(this,b,!0,23,4)},x.prototype.readFloatBE=function(b,E){return b=b>>>0,E||ge(b,4,this.length),l.read(this,b,!1,23,4)},x.prototype.readDoubleLE=function(b,E){return b=b>>>0,E||ge(b,8,this.length),l.read(this,b,!0,52,8)},x.prototype.readDoubleBE=function(b,E){return b=b>>>0,E||ge(b,8,this.length),l.read(this,b,!1,52,8)};function me(v,b,E,T,R,L){if(!x.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>R||b<L)throw new RangeError('"value" argument is out of bounds');if(E+T>v.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(b,E,T,R){if(b=+b,E=E>>>0,T=T>>>0,!R){const se=Math.pow(2,8*T)-1;me(this,b,E,T,se,0)}let L=1,D=0;for(this[E]=b&255;++D<T&&(L*=256);)this[E+D]=b/L&255;return E+T},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(b,E,T,R){if(b=+b,E=E>>>0,T=T>>>0,!R){const se=Math.pow(2,8*T)-1;me(this,b,E,T,se,0)}let L=T-1,D=1;for(this[E+L]=b&255;--L>=0&&(D*=256);)this[E+L]=b/D&255;return E+T},x.prototype.writeUint8=x.prototype.writeUInt8=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,1,255,0),this[E]=b&255,E+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,2,65535,0),this[E]=b&255,this[E+1]=b>>>8,E+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,2,65535,0),this[E]=b>>>8,this[E+1]=b&255,E+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,4,4294967295,0),this[E+3]=b>>>24,this[E+2]=b>>>16,this[E+1]=b>>>8,this[E]=b&255,E+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,4,4294967295,0),this[E]=b>>>24,this[E+1]=b>>>16,this[E+2]=b>>>8,this[E+3]=b&255,E+4};function Se(v,b,E,T,R){Tt(b,T,R,v,E,7);let L=Number(b&BigInt(4294967295));v[E++]=L,L=L>>8,v[E++]=L,L=L>>8,v[E++]=L,L=L>>8,v[E++]=L;let D=Number(b>>BigInt(32)&BigInt(4294967295));return v[E++]=D,D=D>>8,v[E++]=D,D=D>>8,v[E++]=D,D=D>>8,v[E++]=D,E}function Oe(v,b,E,T,R){Tt(b,T,R,v,E,7);let L=Number(b&BigInt(4294967295));v[E+7]=L,L=L>>8,v[E+6]=L,L=L>>8,v[E+5]=L,L=L>>8,v[E+4]=L;let D=Number(b>>BigInt(32)&BigInt(4294967295));return v[E+3]=D,D=D>>8,v[E+2]=D,D=D>>8,v[E+1]=D,D=D>>8,v[E]=D,E+8}x.prototype.writeBigUInt64LE=te(function(b,E=0){return Se(this,b,E,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=te(function(b,E=0){return Oe(this,b,E,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(b,E,T,R){if(b=+b,E=E>>>0,!R){const ae=Math.pow(2,8*T-1);me(this,b,E,T,ae-1,-ae)}let L=0,D=1,se=0;for(this[E]=b&255;++L<T&&(D*=256);)b<0&&se===0&&this[E+L-1]!==0&&(se=1),this[E+L]=(b/D>>0)-se&255;return E+T},x.prototype.writeIntBE=function(b,E,T,R){if(b=+b,E=E>>>0,!R){const ae=Math.pow(2,8*T-1);me(this,b,E,T,ae-1,-ae)}let L=T-1,D=1,se=0;for(this[E+L]=b&255;--L>=0&&(D*=256);)b<0&&se===0&&this[E+L+1]!==0&&(se=1),this[E+L]=(b/D>>0)-se&255;return E+T},x.prototype.writeInt8=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,1,127,-128),b<0&&(b=255+b+1),this[E]=b&255,E+1},x.prototype.writeInt16LE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,2,32767,-32768),this[E]=b&255,this[E+1]=b>>>8,E+2},x.prototype.writeInt16BE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,2,32767,-32768),this[E]=b>>>8,this[E+1]=b&255,E+2},x.prototype.writeInt32LE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,4,2147483647,-2147483648),this[E]=b&255,this[E+1]=b>>>8,this[E+2]=b>>>16,this[E+3]=b>>>24,E+4},x.prototype.writeInt32BE=function(b,E,T){return b=+b,E=E>>>0,T||me(this,b,E,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[E]=b>>>24,this[E+1]=b>>>16,this[E+2]=b>>>8,this[E+3]=b&255,E+4},x.prototype.writeBigInt64LE=te(function(b,E=0){return Se(this,b,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=te(function(b,E=0){return Oe(this,b,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(v,b,E,T,R,L){if(E+T>v.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("Index out of range")}function Re(v,b,E,T,R){return b=+b,E=E>>>0,R||qe(v,b,E,4),l.write(v,b,E,T,23,4),E+4}x.prototype.writeFloatLE=function(b,E,T){return Re(this,b,E,!0,T)},x.prototype.writeFloatBE=function(b,E,T){return Re(this,b,E,!1,T)};function nt(v,b,E,T,R){return b=+b,E=E>>>0,R||qe(v,b,E,8),l.write(v,b,E,T,52,8),E+8}x.prototype.writeDoubleLE=function(b,E,T){return nt(this,b,E,!0,T)},x.prototype.writeDoubleBE=function(b,E,T){return nt(this,b,E,!1,T)},x.prototype.copy=function(b,E,T,R){if(!x.isBuffer(b))throw new TypeError("argument should be a Buffer");if(T||(T=0),!R&&R!==0&&(R=this.length),E>=b.length&&(E=b.length),E||(E=0),R>0&&R<T&&(R=T),R===T||b.length===0||this.length===0)return 0;if(E<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length),b.length-E<R-T&&(R=b.length-E+T);const L=R-T;return this===b&&typeof f.prototype.copyWithin=="function"?this.copyWithin(E,T,R):f.prototype.set.call(b,this.subarray(T,R),E),L},x.prototype.fill=function(b,E,T,R){if(typeof b=="string"){if(typeof E=="string"?(R=E,E=0,T=this.length):typeof T=="string"&&(R=T,T=this.length),R!==void 0&&typeof R!="string")throw new TypeError("encoding must be a string");if(typeof R=="string"&&!x.isEncoding(R))throw new TypeError("Unknown encoding: "+R);if(b.length===1){const D=b.charCodeAt(0);(R==="utf8"&&D<128||R==="latin1")&&(b=D)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(E<0||this.length<E||this.length<T)throw new RangeError("Out of range index");if(T<=E)return this;E=E>>>0,T=T===void 0?this.length:T>>>0,b||(b=0);let L;if(typeof b=="number")for(L=E;L<T;++L)this[L]=b;else{const D=x.isBuffer(b)?b:x.from(b,R),se=D.length;if(se===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(L=0;L<T-E;++L)this[L+E]=D[L%se]}return this};const Ke={};function at(v,b,E){Ke[v]=class extends E{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${v}]`,this.stack,delete this.name}get code(){return v}set code(R){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:R,writable:!0})}toString(){return`${this.name} [${v}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(v){return v?`${v} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(v,b){return`The "${v}" argument must be of type number. Received type ${typeof b}`},TypeError),at("ERR_OUT_OF_RANGE",function(v,b,E){let T=`The value of "${v}" is out of range.`,R=E;return Number.isInteger(E)&&Math.abs(E)>2**32?R=kt(String(E)):typeof E=="bigint"&&(R=String(E),(E>BigInt(2)**BigInt(32)||E<-(BigInt(2)**BigInt(32)))&&(R=kt(R)),R+="n"),T+=` It must be ${b}. Received ${R}`,T},RangeError);function kt(v){let b="",E=v.length;const T=v[0]==="-"?1:0;for(;E>=T+4;E-=3)b=`_${v.slice(E-3,E)}${b}`;return`${v.slice(0,E)}${b}`}function st(v,b,E){mt(b,"offset"),(v[b]===void 0||v[b+E]===void 0)&&_t(b,v.length-(E+1))}function Tt(v,b,E,T,R,L){if(v>E||v<b){const D=typeof b=="bigint"?"n":"";let se;throw b===0||b===BigInt(0)?se=`>= 0${D} and < 2${D} ** ${(L+1)*8}${D}`:se=`>= -(2${D} ** ${(L+1)*8-1}${D}) and < 2 ** ${(L+1)*8-1}${D}`,new Ke.ERR_OUT_OF_RANGE("value",se,v)}st(T,R,L)}function mt(v,b){if(typeof v!="number")throw new Ke.ERR_INVALID_ARG_TYPE(b,"number",v)}function _t(v,b,E){throw Math.floor(v)!==v?(mt(v,E),new Ke.ERR_OUT_OF_RANGE("offset","an integer",v)):b<0?new Ke.ERR_BUFFER_OUT_OF_BOUNDS:new Ke.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,v)}const wt=/[^+/0-9A-Za-z-_]/g;function Ht(v){if(v=v.split("=")[0],v=v.trim().replace(wt,""),v.length<2)return"";for(;v.length%4!==0;)v=v+"=";return v}function At(v,b){b=b||1/0;let E;const T=v.length;let R=null;const L=[];for(let D=0;D<T;++D){if(E=v.charCodeAt(D),E>55295&&E<57344){if(!R){if(E>56319){(b-=3)>-1&&L.push(239,191,189);continue}else if(D+1===T){(b-=3)>-1&&L.push(239,191,189);continue}R=E;continue}if(E<56320){(b-=3)>-1&&L.push(239,191,189),R=E;continue}E=(R-55296<<10|E-56320)+65536}else R&&(b-=3)>-1&&L.push(239,191,189);if(R=null,E<128){if((b-=1)<0)break;L.push(E)}else if(E<2048){if((b-=2)<0)break;L.push(E>>6|192,E&63|128)}else if(E<65536){if((b-=3)<0)break;L.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((b-=4)<0)break;L.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return L}function Pt(v){const b=[];for(let E=0;E<v.length;++E)b.push(v.charCodeAt(E)&255);return b}function ln(v,b){let E,T,R;const L=[];for(let D=0;D<v.length&&!((b-=2)<0);++D)E=v.charCodeAt(D),T=E>>8,R=E%256,L.push(R),L.push(T);return L}function on(v){return a.toByteArray(Ht(v))}function Je(v,b,E,T){let R;for(R=0;R<T&&!(R+E>=b.length||R>=v.length);++R)b[R+E]=v[R];return R}function k(v,b){return v instanceof b||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===b.name}function z(v){return v!==v}const U=(function(){const v="0123456789abcdef",b=new Array(256);for(let E=0;E<16;++E){const T=E*16;for(let R=0;R<16;++R)b[T+R]=v[E]+v[R]}return b})();function te(v){return typeof BigInt>"u"?J:v}function J(){throw new Error("BigInt not supported")}})(buffer);const Buffer=buffer.Buffer;var utils={};/*!
|
|
194
224
|
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
|
|
195
225
|
*
|
|
196
226
|
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
|
197
227
|
* Released under the MIT License.
|
|
198
|
-
*/var stripBomString,hasRequiredStripBomString;function requireStripBomString(){return hasRequiredStripBomString||(hasRequiredStripBomString=1,stripBomString=function(t){return typeof t=="string"&&t.charAt(0)==="\uFEFF"?t.slice(1):t}),stripBomString}var hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,(function(t){const a=requireStripBomString(),l=requireKindOf();t.define=function(u,c,f){Reflect.defineProperty(u,c,{enumerable:!1,configurable:!0,writable:!0,value:f})},t.isBuffer=function(u){return l(u)==="buffer"},t.isObject=function(u){return l(u)==="object"},t.toBuffer=function(u){return typeof u=="string"?Buffer.from(u):u},t.toString=function(u){if(t.isBuffer(u))return a(String(u));if(typeof u!="string")throw new TypeError("expected input to be a string or buffer");return a(u)},t.arrayify=function(u){return u?Array.isArray(u)?u:[u]:[]},t.startsWith=function(u,c,f){return typeof f!="number"&&(f=c.length),u.slice(0,f)===c}})(utils)),utils}var defaults,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1;const t=requireEngines(),a=requireUtils();return defaults=function(l){const u=Object.assign({},l);return u.delimiters=a.arrayify(u.delims||u.delimiters||"---"),u.delimiters.length===1&&u.delimiters.push(u.delimiters[0]),u.language=(u.language||u.lang||"yaml").toLowerCase(),u.engines=Object.assign({},t,u.parsers,u.engines),u},defaults}var engine,hasRequiredEngine;function requireEngine(){if(hasRequiredEngine)return engine;hasRequiredEngine=1,engine=function(a,l){let u=l.engines[a]||l.engines[t(a)];if(typeof u>"u")throw new Error('gray-matter engine "'+a+'" is not registered');return typeof u=="function"&&(u={parse:u}),u};function t(a){switch(a.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return a}}return engine}var stringify,hasRequiredStringify;function requireStringify(){if(hasRequiredStringify)return stringify;hasRequiredStringify=1;const t=requireKindOf(),a=requireEngine(),l=requireDefaults();stringify=function(c,f,d){if(f==null&&d==null)switch(t(c)){case"object":f=c.data,d={};break;case"string":return c;default:throw new TypeError("expected file to be a string or object")}const g=c.content,
|
|
228
|
+
*/var stripBomString,hasRequiredStripBomString;function requireStripBomString(){return hasRequiredStripBomString||(hasRequiredStripBomString=1,stripBomString=function(t){return typeof t=="string"&&t.charAt(0)==="\uFEFF"?t.slice(1):t}),stripBomString}var hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,(function(t){const a=requireStripBomString(),l=requireKindOf();t.define=function(u,c,f){Reflect.defineProperty(u,c,{enumerable:!1,configurable:!0,writable:!0,value:f})},t.isBuffer=function(u){return l(u)==="buffer"},t.isObject=function(u){return l(u)==="object"},t.toBuffer=function(u){return typeof u=="string"?Buffer.from(u):u},t.toString=function(u){if(t.isBuffer(u))return a(String(u));if(typeof u!="string")throw new TypeError("expected input to be a string or buffer");return a(u)},t.arrayify=function(u){return u?Array.isArray(u)?u:[u]:[]},t.startsWith=function(u,c,f){return typeof f!="number"&&(f=c.length),u.slice(0,f)===c}})(utils)),utils}var defaults,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1;const t=requireEngines(),a=requireUtils();return defaults=function(l){const u=Object.assign({},l);return u.delimiters=a.arrayify(u.delims||u.delimiters||"---"),u.delimiters.length===1&&u.delimiters.push(u.delimiters[0]),u.language=(u.language||u.lang||"yaml").toLowerCase(),u.engines=Object.assign({},t,u.parsers,u.engines),u},defaults}var engine,hasRequiredEngine;function requireEngine(){if(hasRequiredEngine)return engine;hasRequiredEngine=1,engine=function(a,l){let u=l.engines[a]||l.engines[t(a)];if(typeof u>"u")throw new Error('gray-matter engine "'+a+'" is not registered');return typeof u=="function"&&(u={parse:u}),u};function t(a){switch(a.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return a}}return engine}var stringify,hasRequiredStringify;function requireStringify(){if(hasRequiredStringify)return stringify;hasRequiredStringify=1;const t=requireKindOf(),a=requireEngine(),l=requireDefaults();stringify=function(c,f,d){if(f==null&&d==null)switch(t(c)){case"object":f=c.data,d={};break;case"string":return c;default:throw new TypeError("expected file to be a string or object")}const g=c.content,h=l(d);if(f==null){if(!h.data)return c;f=h.data}const m=c.language||h.language,x=a(m,h);if(typeof x.stringify!="function")throw new TypeError('expected "'+m+'.stringify" to be a function');f=Object.assign({},c.data,f);const S=h.delimiters[0],A=h.delimiters[1],C=x.stringify(f,d).trim();let O="";return C!=="{}"&&(O=u(S)+u(C)+u(A)),typeof c.excerpt=="string"&&c.excerpt!==""&&g.indexOf(c.excerpt.trim())===-1&&(O+=u(c.excerpt)+u(A)),O+u(g)};function u(c){return c.slice(-1)!==`
|
|
199
229
|
`?c+`
|
|
200
|
-
`:c}return stringify}var excerpt,hasRequiredExcerpt;function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const t=requireDefaults();return excerpt=function(a,l){const u=t(l);if(a.data==null&&(a.data={}),typeof u.excerpt=="function")return u.excerpt(a,u);const c=a.data.excerpt_separator||u.excerpt_separator;if(c==null&&(u.excerpt===!1||u.excerpt==null))return a;const f=typeof u.excerpt=="string"?u.excerpt:c||u.delimiters[0],d=a.content.indexOf(f);return d!==-1&&(a.excerpt=a.content.slice(0,d)),a},excerpt}var toFile,hasRequiredToFile;function requireToFile(){if(hasRequiredToFile)return toFile;hasRequiredToFile=1;const t=requireKindOf(),a=requireStringify(),l=requireUtils();return toFile=function(u){return t(u)!=="object"&&(u={content:u}),t(u.data)!=="object"&&(u.data={}),u.contents&&u.content==null&&(u.content=u.contents),l.define(u,"orig",l.toBuffer(u.content)),l.define(u,"language",u.language||""),l.define(u,"matter",u.matter||""),l.define(u,"stringify",function(c,f){return f&&f.language&&(u.language=f.language),a(u,c,f)}),u.content=l.toString(u.content),u.isEmpty=!1,u.excerpt="",u},toFile}var parse,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;const t=requireEngine(),a=requireDefaults();return parse=function(l,u,c){const f=a(c),d=t(l,f);if(typeof d.parse!="function")throw new TypeError('expected "'+l+'.parse" to be a function');return d.parse(u,f)},parse}var grayMatter,hasRequiredGrayMatter;function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter;hasRequiredGrayMatter=1;const t=require$$0,a=requireSectionMatter(),l=requireDefaults(),u=requireStringify(),c=requireExcerpt(),f=requireEngines(),d=requireToFile(),g=requireParse(),
|
|
201
|
-
`+C.delimiters[1];let P=S.content;C.language&&(S.language=C.language);const q=O.length;if(!
|
|
202
|
-
`&&(S.content=S.content.slice(1))),c(S,C),(C.sections===!0||typeof C.section=="function")&&a(S,C.section),S}return
|
|
203
|
-
`:" ")+f.indentLines(f.containerFlow(u,g.current()),a?mapAll:mapExceptFirst))),
|
|
230
|
+
`:c}return stringify}var excerpt,hasRequiredExcerpt;function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const t=requireDefaults();return excerpt=function(a,l){const u=t(l);if(a.data==null&&(a.data={}),typeof u.excerpt=="function")return u.excerpt(a,u);const c=a.data.excerpt_separator||u.excerpt_separator;if(c==null&&(u.excerpt===!1||u.excerpt==null))return a;const f=typeof u.excerpt=="string"?u.excerpt:c||u.delimiters[0],d=a.content.indexOf(f);return d!==-1&&(a.excerpt=a.content.slice(0,d)),a},excerpt}var toFile,hasRequiredToFile;function requireToFile(){if(hasRequiredToFile)return toFile;hasRequiredToFile=1;const t=requireKindOf(),a=requireStringify(),l=requireUtils();return toFile=function(u){return t(u)!=="object"&&(u={content:u}),t(u.data)!=="object"&&(u.data={}),u.contents&&u.content==null&&(u.content=u.contents),l.define(u,"orig",l.toBuffer(u.content)),l.define(u,"language",u.language||""),l.define(u,"matter",u.matter||""),l.define(u,"stringify",function(c,f){return f&&f.language&&(u.language=f.language),a(u,c,f)}),u.content=l.toString(u.content),u.isEmpty=!1,u.excerpt="",u},toFile}var parse,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;const t=requireEngine(),a=requireDefaults();return parse=function(l,u,c){const f=a(c),d=t(l,f);if(typeof d.parse!="function")throw new TypeError('expected "'+l+'.parse" to be a function');return d.parse(u,f)},parse}var grayMatter,hasRequiredGrayMatter;function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter;hasRequiredGrayMatter=1;const t=require$$0,a=requireSectionMatter(),l=requireDefaults(),u=requireStringify(),c=requireExcerpt(),f=requireEngines(),d=requireToFile(),g=requireParse(),h=requireUtils();function m(S,A){if(S==="")return{data:{},content:S,excerpt:"",orig:S};let C=d(S);const O=m.cache[C.content];if(!A){if(O)return C=Object.assign({},O),C.orig=O.orig,C;m.cache[C.content]=C}return x(C,A)}function x(S,A){const C=l(A),O=C.delimiters[0],Z=`
|
|
231
|
+
`+C.delimiters[1];let P=S.content;C.language&&(S.language=C.language);const q=O.length;if(!h.startsWith(P,O,q))return c(S,C),S;if(P.charAt(q)===O.slice(-1))return S;P=P.slice(q);const ne=P.length,Y=m.language(P,C);Y.name&&(S.language=Y.name,P=P.slice(Y.raw.length));let pe=P.indexOf(Z);return pe===-1&&(pe=ne),S.matter=P.slice(0,pe),S.matter.replace(/^\s*#[^\n]+/gm,"").trim()===""?(S.isEmpty=!0,S.empty=S.content,S.data={}):S.data=g(S.language,S.matter,C),pe===ne?S.content="":(S.content=P.slice(pe+Z.length),S.content[0]==="\r"&&(S.content=S.content.slice(1)),S.content[0]===`
|
|
232
|
+
`&&(S.content=S.content.slice(1))),c(S,C),(C.sections===!0||typeof C.section=="function")&&a(S,C.section),S}return m.engines=f,m.stringify=function(S,A,C){return typeof S=="string"&&(S=m(S,C)),u(S,A,C)},m.read=function(S,A){const C=t.readFileSync(S,"utf8"),O=m(C,A);return O.path=S,O},m.test=function(S,A){return h.startsWith(S,l(A).delimiters[0])},m.language=function(S,A){const O=l(A).delimiters[0];m.test(S)&&(S=S.slice(O.length));const Z=S.slice(0,S.search(/\r?\n/));return{raw:Z,name:Z?Z.trim():""}},m.cache={},m.clearCache=function(){m.cache={}},grayMatter=m,grayMatter}var grayMatterExports=requireGrayMatter();const matter=getDefaultExportFromCjs$1(grayMatterExports);function ccount(t,a){const l=String(t);if(typeof a!="string")throw new TypeError("Expected character");let u=0,c=l.indexOf(a);for(;c!==-1;)u++,c=l.indexOf(a,c+a.length);return u}function escapeStringRegexp(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function findAndReplace(t,a,l){const c=convert((l||{}).ignore||[]),f=toPairs(a);let d=-1;for(;++d<f.length;)visitParents(t,"text",g);function g(m,x){let S=-1,A;for(;++S<x.length;){const C=x[S],O=A?A.children:void 0;if(c(C,O?O.indexOf(C):void 0,A))return;A=C}if(A)return h(m,x)}function h(m,x){const S=x[x.length-1],A=f[d][0],C=f[d][1];let O=0;const P=S.children.indexOf(m);let q=!1,ne=[];A.lastIndex=0;let Y=A.exec(m.value);for(;Y;){const pe=Y.index,ye={index:Y.index,input:Y.input,stack:[...x,m]};let Q=C(...Y,ye);if(typeof Q=="string"&&(Q=Q.length>0?{type:"text",value:Q}:void 0),Q===!1?A.lastIndex=pe+1:(O!==pe&&ne.push({type:"text",value:m.value.slice(O,pe)}),Array.isArray(Q)?ne.push(...Q):Q&&ne.push(Q),O=pe+Y[0].length,q=!0),!A.global)break;Y=A.exec(m.value)}return q?(O<m.value.length&&ne.push({type:"text",value:m.value.slice(O)}),S.children.splice(P,1,...ne)):ne=[m],P+ne.length}}function toPairs(t){const a=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const l=!t[0]||Array.isArray(t[0])?t:[t];let u=-1;for(;++u<l.length;){const c=l[u];a.push([toExpression(c[0]),toFunction(c[1])])}return a}function toExpression(t){return typeof t=="string"?new RegExp(escapeStringRegexp(t),"g"):t}function toFunction(t){return typeof t=="function"?t:function(){return t}}const inConstruct="phrasing",notInConstruct=["autolink","link","image","label"];function gfmAutolinkLiteralFromMarkdown(){return{transforms:[transformGfmAutolinkLiterals],enter:{literalAutolink:enterLiteralAutolink,literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:exitLiteralAutolink,literalAutolinkEmail:exitLiteralAutolinkEmail,literalAutolinkHttp:exitLiteralAutolinkHttp,literalAutolinkWww:exitLiteralAutolinkWww}}}function gfmAutolinkLiteralToMarkdown(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:":",before:"[ps]",after:"\\/",inConstruct,notInConstruct}]}}function enterLiteralAutolink(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function enterLiteralAutolinkValue(t){this.config.enter.autolinkProtocol.call(this,t)}function exitLiteralAutolinkHttp(t){this.config.exit.autolinkProtocol.call(this,t)}function exitLiteralAutolinkWww(t){this.config.exit.data.call(this,t);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(t)}function exitLiteralAutolinkEmail(t){this.config.exit.autolinkEmail.call(this,t)}function exitLiteralAutolink(t){this.exit(t)}function transformGfmAutolinkLiterals(t){findAndReplace(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),findEmail]],{ignore:["link","linkReference"]})}function findUrl(t,a,l,u,c){let f="";if(!previous(c)||(/^w/i.test(a)&&(l=a+l,a="",f="http://"),!isCorrectDomain(l)))return!1;const d=splitUrl(l+u);if(!d[0])return!1;const g={type:"link",title:null,url:f+a+d[0],children:[{type:"text",value:a+d[0]}]};return d[1]?[g,{type:"text",value:d[1]}]:g}function findEmail(t,a,l,u){return!previous(u,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+l,children:[{type:"text",value:a+"@"+l}]}}function isCorrectDomain(t){const a=t.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function splitUrl(t){const a=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!a)return[t,void 0];t=t.slice(0,a.index);let l=a[0],u=l.indexOf(")");const c=ccount(t,"(");let f=ccount(t,")");for(;u!==-1&&c>f;)t+=l.slice(0,u+1),l=l.slice(u+1),u=l.indexOf(")"),f++;return[t,l]}function previous(t,a){const l=t.input.charCodeAt(t.index-1);return(t.index===0||unicodeWhitespace(l)||unicodePunctuation(l))&&(!a||l!==47)}footnoteReference.peek=footnoteReferencePeek;function enterFootnoteCallString(){this.buffer()}function enterFootnoteCall(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function enterFootnoteDefinitionLabelString(){this.buffer()}function enterFootnoteDefinition(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function exitFootnoteCallString(t){const a=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=normalizeIdentifier(this.sliceSerialize(t)).toLowerCase(),l.label=a}function exitFootnoteCall(t){this.exit(t)}function exitFootnoteDefinitionLabelString(t){const a=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=normalizeIdentifier(this.sliceSerialize(t)).toLowerCase(),l.label=a}function exitFootnoteDefinition(t){this.exit(t)}function footnoteReferencePeek(){return"["}function footnoteReference(t,a,l,u){const c=l.createTracker(u);let f=c.move("[^");const d=l.enter("footnoteReference"),g=l.enter("reference");return f+=c.move(l.safe(l.associationId(t),{after:"]",before:f})),g(),d(),f+=c.move("]"),f}function gfmFootnoteFromMarkdown(){return{enter:{gfmFootnoteCallString:enterFootnoteCallString,gfmFootnoteCall:enterFootnoteCall,gfmFootnoteDefinitionLabelString:enterFootnoteDefinitionLabelString,gfmFootnoteDefinition:enterFootnoteDefinition},exit:{gfmFootnoteCallString:exitFootnoteCallString,gfmFootnoteCall:exitFootnoteCall,gfmFootnoteDefinitionLabelString:exitFootnoteDefinitionLabelString,gfmFootnoteDefinition:exitFootnoteDefinition}}}function gfmFootnoteToMarkdown(t){let a=!1;return t&&t.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:l,footnoteReference},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(u,c,f,d){const g=f.createTracker(d);let h=g.move("[^");const m=f.enter("footnoteDefinition"),x=f.enter("label");return h+=g.move(f.safe(f.associationId(u),{before:h,after:"]"})),x(),h+=g.move("]:"),u.children&&u.children.length>0&&(g.shift(4),h+=g.move((a?`
|
|
233
|
+
`:" ")+f.indentLines(f.containerFlow(u,g.current()),a?mapAll:mapExceptFirst))),m(),h}}function mapExceptFirst(t,a,l){return a===0?t:mapAll(t,a,l)}function mapAll(t,a,l){return(l?"":" ")+t}const constructsWithoutStrikethrough=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];handleDelete.peek=peekDelete;function gfmStrikethroughFromMarkdown(){return{canContainEols:["delete"],enter:{strikethrough:enterStrikethrough},exit:{strikethrough:exitStrikethrough}}}function gfmStrikethroughToMarkdown(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:constructsWithoutStrikethrough}],handlers:{delete:handleDelete}}}function enterStrikethrough(t){this.enter({type:"delete",children:[]},t)}function exitStrikethrough(t){this.exit(t)}function handleDelete(t,a,l,u){const c=l.createTracker(u),f=l.enter("strikethrough");let d=c.move("~~");return d+=l.containerPhrasing(t,{...c.current(),before:d,after:"~"}),d+=c.move("~~"),f(),d}function peekDelete(){return"~"}function defaultStringLength(t){return t.length}function markdownTable(t,a){const l=a||{},u=(l.align||[]).concat(),c=l.stringLength||defaultStringLength,f=[],d=[],g=[],h=[];let m=0,x=-1;for(;++x<t.length;){const Z=[],P=[];let q=-1;for(t[x].length>m&&(m=t[x].length);++q<t[x].length;){const ne=serialize(t[x][q]);if(l.alignDelimiters!==!1){const Y=c(ne);P[q]=Y,(h[q]===void 0||Y>h[q])&&(h[q]=Y)}Z.push(ne)}d[x]=Z,g[x]=P}let S=-1;if(typeof u=="object"&&"length"in u)for(;++S<m;)f[S]=toAlignment(u[S]);else{const Z=toAlignment(u);for(;++S<m;)f[S]=Z}S=-1;const A=[],C=[];for(;++S<m;){const Z=f[S];let P="",q="";Z===99?(P=":",q=":"):Z===108?P=":":Z===114&&(q=":");let ne=l.alignDelimiters===!1?1:Math.max(1,h[S]-P.length-q.length);const Y=P+"-".repeat(ne)+q;l.alignDelimiters!==!1&&(ne=P.length+ne+q.length,ne>h[S]&&(h[S]=ne),C[S]=ne),A[S]=Y}d.splice(1,0,A),g.splice(1,0,C),x=-1;const O=[];for(;++x<d.length;){const Z=d[x],P=g[x];S=-1;const q=[];for(;++S<m;){const ne=Z[S]||"";let Y="",pe="";if(l.alignDelimiters!==!1){const ye=h[S]-(P[S]||0),Q=f[S];Q===114?Y=" ".repeat(ye):Q===99?ye%2?(Y=" ".repeat(ye/2+.5),pe=" ".repeat(ye/2-.5)):(Y=" ".repeat(ye/2),pe=Y):pe=" ".repeat(ye)}l.delimiterStart!==!1&&!S&&q.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&ne==="")&&(l.delimiterStart!==!1||S)&&q.push(" "),l.alignDelimiters!==!1&&q.push(Y),q.push(ne),l.alignDelimiters!==!1&&q.push(pe),l.padding!==!1&&q.push(" "),(l.delimiterEnd!==!1||S!==m-1)&&q.push("|")}O.push(l.delimiterEnd===!1?q.join("").replace(/ +$/,""):q.join(""))}return O.join(`
|
|
204
234
|
`)}function serialize(t){return t==null?"":String(t)}function toAlignment(t){const a=typeof t=="string"?t.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function blockquote(t,a,l,u){const c=l.enter("blockquote"),f=l.createTracker(u);f.move("> "),f.shift(2);const d=l.indentLines(l.containerFlow(t,f.current()),map$1);return c(),d}function map$1(t,a,l){return">"+(l?"":" ")+t}function patternInScope(t,a){return listInScope(t,a.inConstruct,!0)&&!listInScope(t,a.notInConstruct,!1)}function listInScope(t,a,l){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return l;let u=-1;for(;++u<a.length;)if(t.includes(a[u]))return!0;return!1}function hardBreak(t,a,l,u){let c=-1;for(;++c<l.unsafe.length;)if(l.unsafe[c].character===`
|
|
205
235
|
`&&patternInScope(l.stack,l.unsafe[c]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
206
|
-
`}function longestStreak(t,a){const l=String(t);let u=l.indexOf(a),c=u,f=0,d=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===c?++f>d&&(d=f):f=1,c=u+a.length,u=l.indexOf(a,c);return d}function formatCodeAsIndented(t,a){return!!(a.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function checkFence(t){const a=t.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function code$1(t,a,l,u){const c=checkFence(l),f=t.value||"",d=c==="`"?"GraveAccent":"Tilde";if(formatCodeAsIndented(t,l)){const S=l.enter("codeIndented"),A=l.indentLines(f,map);return S(),A}const g=l.createTracker(u),
|
|
236
|
+
`}function longestStreak(t,a){const l=String(t);let u=l.indexOf(a),c=u,f=0,d=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===c?++f>d&&(d=f):f=1,c=u+a.length,u=l.indexOf(a,c);return d}function formatCodeAsIndented(t,a){return!!(a.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function checkFence(t){const a=t.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function code$1(t,a,l,u){const c=checkFence(l),f=t.value||"",d=c==="`"?"GraveAccent":"Tilde";if(formatCodeAsIndented(t,l)){const S=l.enter("codeIndented"),A=l.indentLines(f,map);return S(),A}const g=l.createTracker(u),h=c.repeat(Math.max(longestStreak(f,c)+1,3)),m=l.enter("codeFenced");let x=g.move(h);if(t.lang){const S=l.enter(`codeFencedLang${d}`);x+=g.move(l.safe(t.lang,{before:x,after:" ",encode:["`"],...g.current()})),S()}if(t.lang&&t.meta){const S=l.enter(`codeFencedMeta${d}`);x+=g.move(" "),x+=g.move(l.safe(t.meta,{before:x,after:`
|
|
207
237
|
`,encode:["`"],...g.current()})),S()}return x+=g.move(`
|
|
208
238
|
`),f&&(x+=g.move(f+`
|
|
209
|
-
`)),x+=g.move(
|
|
210
|
-
`,...
|
|
239
|
+
`)),x+=g.move(h),m(),x}function map(t,a,l){return(l?"":" ")+t}function checkQuote(t){const a=t.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function definition(t,a,l,u){const c=checkQuote(l),f=c==='"'?"Quote":"Apostrophe",d=l.enter("definition");let g=l.enter("label");const h=l.createTracker(u);let m=h.move("[");return m+=h.move(l.safe(l.associationId(t),{before:m,after:"]",...h.current()})),m+=h.move("]: "),g(),!t.url||/[\0- \u007F]/.test(t.url)?(g=l.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(l.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(g=l.enter("destinationRaw"),m+=h.move(l.safe(t.url,{before:m,after:t.title?" ":`
|
|
240
|
+
`,...h.current()}))),g(),t.title&&(g=l.enter(`title${f}`),m+=h.move(" "+c),m+=h.move(l.safe(t.title,{before:m,after:c,...h.current()})),m+=h.move(c),g()),d(),m}function checkEmphasis(t){const a=t.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function encodeCharacterReference(t){return"&#x"+t.toString(16).toUpperCase()+";"}function encodeInfo(t,a,l){const u=classifyCharacter(t),c=classifyCharacter(a);return u===void 0?c===void 0?l==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:c===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?c===void 0?{inside:!1,outside:!1}:c===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:c===void 0?{inside:!1,outside:!1}:c===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}emphasis.peek=emphasisPeek;function emphasis(t,a,l,u){const c=checkEmphasis(l),f=l.enter("emphasis"),d=l.createTracker(u),g=d.move(c);let h=d.move(l.containerPhrasing(t,{after:c,before:g,...d.current()}));const m=h.charCodeAt(0),x=encodeInfo(u.before.charCodeAt(u.before.length-1),m,c);x.inside&&(h=encodeCharacterReference(m)+h.slice(1));const S=h.charCodeAt(h.length-1),A=encodeInfo(u.after.charCodeAt(0),S,c);A.inside&&(h=h.slice(0,-1)+encodeCharacterReference(S));const C=d.move(c);return f(),l.attentionEncodeSurroundingInfo={after:A.outside,before:x.outside},g+h+C}function emphasisPeek(t,a,l){return l.options.emphasis||"*"}function formatHeadingAsSetext(t,a){let l=!1;return visit(t,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return l=!0,EXIT}),!!((!t.depth||t.depth<3)&&toString$1(t)&&(a.options.setext||l))}function heading(t,a,l,u){const c=Math.max(Math.min(6,t.depth||1),1),f=l.createTracker(u);if(formatHeadingAsSetext(t,l)){const x=l.enter("headingSetext"),S=l.enter("phrasing"),A=l.containerPhrasing(t,{...f.current(),before:`
|
|
211
241
|
`,after:`
|
|
212
242
|
`});return S(),x(),A+`
|
|
213
243
|
`+(c===1?"=":"-").repeat(A.length-(Math.max(A.lastIndexOf("\r"),A.lastIndexOf(`
|
|
214
|
-
`))+1))}const d="#".repeat(c),g=l.enter("headingAtx"),
|
|
215
|
-
`,...f.current()});return/^[\t ]/.test(
|
|
216
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:A,table:d,tableCell:
|
|
217
|
-
`))}function m(C,O,F,P){const q=F.enter("tableCell"),ie=F.enter("phrasing"),K=F.containerPhrasing(C,{...P,before:f,after:f});return ie(),q(),K}function h(C,O){return markdownTable(C,{align:O,alignDelimiters:u,padding:l,stringLength:c})}function x(C,O,F){const P=C.children;let q=-1;const ie=[],K=O.enter("table");for(;++q<P.length;)ie[q]=S(P[q],O,F);return K(),ie}function S(C,O,F){const P=C.children;let q=-1;const ie=[],K=O.enter("tableRow");for(;++q<P.length;)ie[q]=m(P[q],C,O,F);return K(),ie}function A(C,O,F){let P=handle.inlineCode(C,O,F);return F.stack.includes("tableCell")&&(P=P.replace(/\|/g,"\\$&")),P}}function gfmTaskListItemFromMarkdown(){return{exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}}}function gfmTaskListItemToMarkdown(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}}}function exitCheck(t){const a=this.stack[this.stack.length-2];a.type,a.checked=t.type==="taskListCheckValueChecked"}function exitParagraphWithTaskListItem(t){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const l=this.stack[this.stack.length-1];l.type;const u=l.children[0];if(u&&u.type==="text"){const c=a.children;let f=-1,d;for(;++f<c.length;){const g=c[f];if(g.type==="paragraph"){d=g;break}}d===l&&(u.value=u.value.slice(1),u.value.length===0?l.children.shift():l.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,l.position.start=Object.assign({},u.position.start)))}}this.exit(t)}function listItemWithTaskListItem(t,a,l,u){const c=t.children[0],f=typeof t.checked=="boolean"&&c&&c.type==="paragraph",d="["+(t.checked?"x":" ")+"] ",g=l.createTracker(u);f&&g.move(d);let m=handle.listItem(t,a,l,{...u,...g.current()});return f&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),m;function h(x){return x+d}}function gfmFromMarkdown(){return[gfmAutolinkLiteralFromMarkdown(),gfmFootnoteFromMarkdown(),gfmStrikethroughFromMarkdown(),gfmTableFromMarkdown(),gfmTaskListItemFromMarkdown()]}function gfmToMarkdown(t){return{extensions:[gfmAutolinkLiteralToMarkdown(),gfmFootnoteToMarkdown(t),gfmStrikethroughToMarkdown(),gfmTableToMarkdown(t),gfmTaskListItemToMarkdown()]}}const wwwPrefix={tokenize:tokenizeWwwPrefix,partial:!0},domain={tokenize:tokenizeDomain,partial:!0},path={tokenize:tokenizePath,partial:!0},trail={tokenize:tokenizeTrail,partial:!0},emailDomainDotTrail={tokenize:tokenizeEmailDomainDotTrail,partial:!0},wwwAutolink={name:"wwwAutolink",tokenize:tokenizeWwwAutolink,previous:previousWww},protocolAutolink={name:"protocolAutolink",tokenize:tokenizeProtocolAutolink,previous:previousProtocol},emailAutolink={name:"emailAutolink",tokenize:tokenizeEmailAutolink,previous:previousEmail},text={};function gfmAutolinkLiteral(){return{text}}let code=48;for(;code<123;)text[code]=emailAutolink,code++,code===58?code=65:code===91&&(code=97);text[43]=emailAutolink;text[45]=emailAutolink;text[46]=emailAutolink;text[95]=emailAutolink;text[72]=[emailAutolink,protocolAutolink];text[104]=[emailAutolink,protocolAutolink];text[87]=[emailAutolink,wwwAutolink];text[119]=[emailAutolink,wwwAutolink];function tokenizeEmailAutolink(t,a,l){const u=this;let c,f;return d;function d(S){return!gfmAtext(S)||!previousEmail.call(u,u.previous)||previousUnbalanced(u.events)?l(S):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),g(S))}function g(S){return gfmAtext(S)?(t.consume(S),g):S===64?(t.consume(S),m):l(S)}function m(S){return S===46?t.check(emailDomainDotTrail,x,h)(S):S===45||S===95||asciiAlphanumeric(S)?(f=!0,t.consume(S),m):x(S)}function h(S){return t.consume(S),c=!0,m}function x(S){return f&&c&&asciiAlpha(u.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),a(S)):l(S)}}function tokenizeWwwAutolink(t,a,l){const u=this;return c;function c(d){return d!==87&&d!==119||!previousWww.call(u,u.previous)||previousUnbalanced(u.events)?l(d):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(wwwPrefix,t.attempt(domain,t.attempt(path,f),l),l)(d))}function f(d){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),a(d)}}function tokenizeProtocolAutolink(t,a,l){const u=this;let c="",f=!1;return d;function d(S){return(S===72||S===104)&&previousProtocol.call(u,u.previous)&&!previousUnbalanced(u.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),c+=String.fromCodePoint(S),t.consume(S),g):l(S)}function g(S){if(asciiAlpha(S)&&c.length<5)return c+=String.fromCodePoint(S),t.consume(S),g;if(S===58){const A=c.toLowerCase();if(A==="http"||A==="https")return t.consume(S),m}return l(S)}function m(S){return S===47?(t.consume(S),f?h:(f=!0,m)):l(S)}function h(S){return S===null||asciiControl(S)||markdownLineEndingOrSpace(S)||unicodeWhitespace(S)||unicodePunctuation(S)?l(S):t.attempt(domain,t.attempt(path,x),l)(S)}function x(S){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),a(S)}}function tokenizeWwwPrefix(t,a,l){let u=0;return c;function c(d){return(d===87||d===119)&&u<3?(u++,t.consume(d),c):d===46&&u===3?(t.consume(d),f):l(d)}function f(d){return d===null?l(d):a(d)}}function tokenizeDomain(t,a,l){let u,c,f;return d;function d(h){return h===46||h===95?t.check(trail,m,g)(h):h===null||markdownLineEndingOrSpace(h)||unicodeWhitespace(h)||h!==45&&unicodePunctuation(h)?m(h):(f=!0,t.consume(h),d)}function g(h){return h===95?u=!0:(c=u,u=void 0),t.consume(h),d}function m(h){return c||u||!f?l(h):a(h)}}function tokenizePath(t,a){let l=0,u=0;return c;function c(d){return d===40?(l++,t.consume(d),c):d===41&&u<l?f(d):d===33||d===34||d===38||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===60||d===63||d===93||d===95||d===126?t.check(trail,a,f)(d):d===null||markdownLineEndingOrSpace(d)||unicodeWhitespace(d)?a(d):(t.consume(d),c)}function f(d){return d===41&&u++,t.consume(d),c}}function tokenizeTrail(t,a,l){return u;function u(g){return g===33||g===34||g===39||g===41||g===42||g===44||g===46||g===58||g===59||g===63||g===95||g===126?(t.consume(g),u):g===38?(t.consume(g),f):g===93?(t.consume(g),c):g===60||g===null||markdownLineEndingOrSpace(g)||unicodeWhitespace(g)?a(g):l(g)}function c(g){return g===null||g===40||g===91||markdownLineEndingOrSpace(g)||unicodeWhitespace(g)?a(g):u(g)}function f(g){return asciiAlpha(g)?d(g):l(g)}function d(g){return g===59?(t.consume(g),u):asciiAlpha(g)?(t.consume(g),d):l(g)}}function tokenizeEmailDomainDotTrail(t,a,l){return u;function u(f){return t.consume(f),c}function c(f){return asciiAlphanumeric(f)?l(f):a(f)}}function previousWww(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||markdownLineEndingOrSpace(t)}function previousProtocol(t){return!asciiAlpha(t)}function previousEmail(t){return!(t===47||gfmAtext(t))}function gfmAtext(t){return t===43||t===45||t===46||t===95||asciiAlphanumeric(t)}function previousUnbalanced(t){let a=t.length,l=!1;for(;a--;){const u=t[a][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){l=!0;break}if(u._gfmAutolinkLiteralWalkedInto){l=!1;break}}return t.length>0&&!l&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const indent={tokenize:tokenizeIndent,partial:!0};function gfmFootnote(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{91:{name:"gfmFootnoteCall",tokenize:tokenizeGfmFootnoteCall},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(t,a,l){const u=this;let c=u.events.length;const f=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let d;for(;c--;){const m=u.events[c][1];if(m.type==="labelImage"){d=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return g;function g(m){if(!d||!d._balanced)return l(m);const h=normalizeIdentifier(u.sliceSerialize({start:d.end,end:u.now()}));return h.codePointAt(0)!==94||!f.includes(h.slice(1))?l(m):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),a(m))}}function resolveToPotentialGfmFootnoteCall(t,a){let l=t.length;for(;l--;)if(t[l][1].type==="labelImage"&&t[l][0]==="enter"){t[l][1];break}t[l+1][1].type="data",t[l+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},t[l+3][1].start),end:Object.assign({},t[t.length-1][1].end)},c={type:"gfmFootnoteCallMarker",start:Object.assign({},t[l+3][1].end),end:Object.assign({},t[l+3][1].end)};c.end.column++,c.end.offset++,c.end._bufferIndex++;const f={type:"gfmFootnoteCallString",start:Object.assign({},c.end),end:Object.assign({},t[t.length-1][1].start)},d={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},g=[t[l+1],t[l+2],["enter",u,a],t[l+3],t[l+4],["enter",c,a],["exit",c,a],["enter",f,a],["enter",d,a],["exit",d,a],["exit",f,a],t[t.length-2],t[t.length-1],["exit",u,a]];return t.splice(l,t.length-l+1,...g),t}function tokenizeGfmFootnoteCall(t,a,l){const u=this,c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f=0,d;return g;function g(S){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(S),t.exit("gfmFootnoteCallLabelMarker"),m}function m(S){return S!==94?l(S):(t.enter("gfmFootnoteCallMarker"),t.consume(S),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",h)}function h(S){if(f>999||S===93&&!d||S===null||S===91||markdownLineEndingOrSpace(S))return l(S);if(S===93){t.exit("chunkString");const A=t.exit("gfmFootnoteCallString");return c.includes(normalizeIdentifier(u.sliceSerialize(A)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(S),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),a):l(S)}return markdownLineEndingOrSpace(S)||(d=!0),f++,t.consume(S),S===92?x:h}function x(S){return S===91||S===92||S===93?(t.consume(S),f++,h):h(S)}}function tokenizeDefinitionStart(t,a,l){const u=this,c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f,d=0,g;return m;function m(O){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(O),t.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(O){return O===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(O),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",x):l(O)}function x(O){if(d>999||O===93&&!g||O===null||O===91||markdownLineEndingOrSpace(O))return l(O);if(O===93){t.exit("chunkString");const F=t.exit("gfmFootnoteDefinitionLabelString");return f=normalizeIdentifier(u.sliceSerialize(F)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(O),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),A}return markdownLineEndingOrSpace(O)||(g=!0),d++,t.consume(O),O===92?S:x}function S(O){return O===91||O===92||O===93?(t.consume(O),d++,x):x(O)}function A(O){return O===58?(t.enter("definitionMarker"),t.consume(O),t.exit("definitionMarker"),c.includes(f)||c.push(f),factorySpace(t,C,"gfmFootnoteDefinitionWhitespace")):l(O)}function C(O){return a(O)}}function tokenizeDefinitionContinuation(t,a,l){return t.check(blankLine,a,t.attempt(indent,a,l))}function gfmFootnoteDefinitionEnd(t){t.exit("gfmFootnoteDefinition")}function tokenizeIndent(t,a,l){const u=this;return factorySpace(t,c,"gfmFootnoteDefinitionIndent",5);function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="gfmFootnoteDefinitionIndent"&&d[2].sliceSerialize(d[1],!0).length===4?a(f):l(f)}}function gfmStrikethrough(t){let l=(t||{}).singleTilde;const u={name:"strikethrough",tokenize:f,resolveAll:c};return l==null&&(l=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function c(d,g){let m=-1;for(;++m<d.length;)if(d[m][0]==="enter"&&d[m][1].type==="strikethroughSequenceTemporary"&&d[m][1]._close){let h=m;for(;h--;)if(d[h][0]==="exit"&&d[h][1].type==="strikethroughSequenceTemporary"&&d[h][1]._open&&d[m][1].end.offset-d[m][1].start.offset===d[h][1].end.offset-d[h][1].start.offset){d[m][1].type="strikethroughSequence",d[h][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},d[h][1].start),end:Object.assign({},d[m][1].end)},S={type:"strikethroughText",start:Object.assign({},d[h][1].end),end:Object.assign({},d[m][1].start)},A=[["enter",x,g],["enter",d[h][1],g],["exit",d[h][1],g],["enter",S,g]],C=g.parser.constructs.insideSpan.null;C&&splice(A,A.length,0,resolveAll(C,d.slice(h+1,m),g)),splice(A,A.length,0,[["exit",S,g],["enter",d[m][1],g],["exit",d[m][1],g],["exit",x,g]]),splice(d,h-1,m-h+3,A),m=h+A.length-2;break}}for(m=-1;++m<d.length;)d[m][1].type==="strikethroughSequenceTemporary"&&(d[m][1].type="data");return d}function f(d,g,m){const h=this.previous,x=this.events;let S=0;return A;function A(O){return h===126&&x[x.length-1][1].type!=="characterEscape"?m(O):(d.enter("strikethroughSequenceTemporary"),C(O))}function C(O){const F=classifyCharacter(h);if(O===126)return S>1?m(O):(d.consume(O),S++,C);if(S<2&&!l)return m(O);const P=d.exit("strikethroughSequenceTemporary"),q=classifyCharacter(O);return P._open=!q||q===2&&!!F,P._close=!F||F===2&&!!q,g(O)}}}class EditMap{constructor(){this.map=[]}add(a,l,u){addImplementation(this,a,l,u)}consume(a){if(this.map.sort(function(f,d){return f[0]-d[0]}),this.map.length===0)return;let l=this.map.length;const u=[];for(;l>0;)l-=1,u.push(a.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),a.length=this.map[l][0];u.push(a.slice()),a.length=0;let c=u.pop();for(;c;){for(const f of c)a.push(f);c=u.pop()}this.map.length=0}}function addImplementation(t,a,l,u){let c=0;if(!(l===0&&u.length===0)){for(;c<t.map.length;){if(t.map[c][0]===a){t.map[c][1]+=l,t.map[c][2].push(...u);return}c+=1}t.map.push([a,l,u])}}function gfmTableAlign(t,a){let l=!1;const u=[];for(;a<t.length;){const c=t[a];if(l){if(c[0]==="enter")c[1].type==="tableContent"&&u.push(t[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(c[1].type==="tableContent"){if(t[a-1][1].type==="tableDelimiterMarker"){const f=u.length-1;u[f]=u[f]==="left"?"center":"right"}}else if(c[1].type==="tableDelimiterRow")break}else c[0]==="enter"&&c[1].type==="tableDelimiterRow"&&(l=!0);a+=1}return u}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(t,a,l){const u=this;let c=0,f=0,d;return g;function g(Z){let ve=u.events.length-1;for(;ve>-1;){const xe=u.events[ve][1].type;if(xe==="lineEnding"||xe==="linePrefix")ve--;else break}const ee=ve>-1?u.events[ve][1].type:null,Ae=ee==="tableHead"||ee==="tableRow"?$:m;return Ae===$&&u.parser.lazy[u.now().line]?l(Z):Ae(Z)}function m(Z){return t.enter("tableHead"),t.enter("tableRow"),h(Z)}function h(Z){return Z===124||(d=!0,f+=1),x(Z)}function x(Z){return Z===null?l(Z):markdownLineEnding(Z)?f>1?(f=0,u.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(Z),t.exit("lineEnding"),C):l(Z):markdownSpace(Z)?factorySpace(t,x,"whitespace")(Z):(f+=1,d&&(d=!1,c+=1),Z===124?(t.enter("tableCellDivider"),t.consume(Z),t.exit("tableCellDivider"),d=!0,x):(t.enter("data"),S(Z)))}function S(Z){return Z===null||Z===124||markdownLineEndingOrSpace(Z)?(t.exit("data"),x(Z)):(t.consume(Z),Z===92?A:S)}function A(Z){return Z===92||Z===124?(t.consume(Z),S):S(Z)}function C(Z){return u.interrupt=!1,u.parser.lazy[u.now().line]?l(Z):(t.enter("tableDelimiterRow"),d=!1,markdownSpace(Z)?factorySpace(t,O,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):O(Z))}function O(Z){return Z===45||Z===58?P(Z):Z===124?(d=!0,t.enter("tableCellDivider"),t.consume(Z),t.exit("tableCellDivider"),F):ye(Z)}function F(Z){return markdownSpace(Z)?factorySpace(t,P,"whitespace")(Z):P(Z)}function P(Z){return Z===58?(f+=1,d=!0,t.enter("tableDelimiterMarker"),t.consume(Z),t.exit("tableDelimiterMarker"),q):Z===45?(f+=1,q(Z)):Z===null||markdownLineEnding(Z)?pe(Z):ye(Z)}function q(Z){return Z===45?(t.enter("tableDelimiterFiller"),ie(Z)):ye(Z)}function ie(Z){return Z===45?(t.consume(Z),ie):Z===58?(d=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(Z),t.exit("tableDelimiterMarker"),K):(t.exit("tableDelimiterFiller"),K(Z))}function K(Z){return markdownSpace(Z)?factorySpace(t,pe,"whitespace")(Z):pe(Z)}function pe(Z){return Z===124?O(Z):Z===null||markdownLineEnding(Z)?!d||c!==f?ye(Z):(t.exit("tableDelimiterRow"),t.exit("tableHead"),a(Z)):ye(Z)}function ye(Z){return l(Z)}function $(Z){return t.enter("tableRow"),be(Z)}function be(Z){return Z===124?(t.enter("tableCellDivider"),t.consume(Z),t.exit("tableCellDivider"),be):Z===null||markdownLineEnding(Z)?(t.exit("tableRow"),a(Z)):markdownSpace(Z)?factorySpace(t,be,"whitespace")(Z):(t.enter("data"),ue(Z))}function ue(Z){return Z===null||Z===124||markdownLineEndingOrSpace(Z)?(t.exit("data"),be(Z)):(t.consume(Z),Z===92?ke:ue)}function ke(Z){return Z===92||Z===124?(t.consume(Z),ue):ue(Z)}}function resolveTable(t,a){let l=-1,u=!0,c=0,f=[0,0,0,0],d=[0,0,0,0],g=!1,m=0,h,x,S;const A=new EditMap;for(;++l<t.length;){const C=t[l],O=C[1];C[0]==="enter"?O.type==="tableHead"?(g=!1,m!==0&&(flushTableEnd(A,a,m,h,x),x=void 0,m=0),h={type:"table",start:Object.assign({},O.start),end:Object.assign({},O.end)},A.add(l,0,[["enter",h,a]])):O.type==="tableRow"||O.type==="tableDelimiterRow"?(u=!0,S=void 0,f=[0,0,0,0],d=[0,l+1,0,0],g&&(g=!1,x={type:"tableBody",start:Object.assign({},O.start),end:Object.assign({},O.end)},A.add(l,0,[["enter",x,a]])),c=O.type==="tableDelimiterRow"?2:x?3:1):c&&(O.type==="data"||O.type==="tableDelimiterMarker"||O.type==="tableDelimiterFiller")?(u=!1,d[2]===0&&(f[1]!==0&&(d[0]=d[1],S=flushCell(A,a,f,c,void 0,S),f=[0,0,0,0]),d[2]=l)):O.type==="tableCellDivider"&&(u?u=!1:(f[1]!==0&&(d[0]=d[1],S=flushCell(A,a,f,c,void 0,S)),f=d,d=[f[1],l,0,0])):O.type==="tableHead"?(g=!0,m=l):O.type==="tableRow"||O.type==="tableDelimiterRow"?(m=l,f[1]!==0?(d[0]=d[1],S=flushCell(A,a,f,c,l,S)):d[1]!==0&&(S=flushCell(A,a,d,c,l,S)),c=0):c&&(O.type==="data"||O.type==="tableDelimiterMarker"||O.type==="tableDelimiterFiller")&&(d[3]=l)}for(m!==0&&flushTableEnd(A,a,m,h,x),A.consume(a.events),l=-1;++l<a.events.length;){const C=a.events[l];C[0]==="enter"&&C[1].type==="table"&&(C[1]._align=gfmTableAlign(a.events,l))}return t}function flushCell(t,a,l,u,c,f){const d=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",g="tableContent";l[0]!==0&&(f.end=Object.assign({},getPoint(a.events,l[0])),t.add(l[0],0,[["exit",f,a]]));const m=getPoint(a.events,l[1]);if(f={type:d,start:Object.assign({},m),end:Object.assign({},m)},t.add(l[1],0,[["enter",f,a]]),l[2]!==0){const h=getPoint(a.events,l[2]),x=getPoint(a.events,l[3]),S={type:g,start:Object.assign({},h),end:Object.assign({},x)};if(t.add(l[2],0,[["enter",S,a]]),u!==2){const A=a.events[l[2]],C=a.events[l[3]];if(A[1].end=Object.assign({},C[1].end),A[1].type="chunkText",A[1].contentType="text",l[3]>l[2]+1){const O=l[2]+1,F=l[3]-l[2]-1;t.add(O,F,[])}}t.add(l[3]+1,0,[["exit",S,a]])}return c!==void 0&&(f.end=Object.assign({},getPoint(a.events,c)),t.add(c,0,[["exit",f,a]]),f=void 0),f}function flushTableEnd(t,a,l,u,c){const f=[],d=getPoint(a.events,l);c&&(c.end=Object.assign({},d),f.push(["exit",c,a])),u.end=Object.assign({},d),f.push(["exit",u,a]),t.add(l+1,0,f)}function getPoint(t,a){const l=t[a],u=l[0]==="enter"?"start":"end";return l[1][u]}const tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:tasklistCheck}}}function tokenizeTasklistCheck(t,a,l){const u=this;return c;function c(m){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?l(m):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),f)}function f(m){return markdownLineEndingOrSpace(m)?(t.enter("taskListCheckValueUnchecked"),t.consume(m),t.exit("taskListCheckValueUnchecked"),d):m===88||m===120?(t.enter("taskListCheckValueChecked"),t.consume(m),t.exit("taskListCheckValueChecked"),d):l(m)}function d(m){return m===93?(t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),g):l(m)}function g(m){return markdownLineEnding(m)?a(m):markdownSpace(m)?t.check({tokenize:spaceThenNonSpace},a,l)(m):l(m)}}function spaceThenNonSpace(t,a,l){return factorySpace(t,u,"whitespace");function u(c){return c===null?l(c):a(c)}}function gfm(t){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(t),gfmTable(),gfmTaskListItem()])}const emptyOptions={};function remarkGfm(t){const a=this,l=t||emptyOptions,u=a.data(),c=u.micromarkExtensions||(u.micromarkExtensions=[]),f=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),d=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);c.push(gfm(l)),f.push(gfmFromMarkdown()),d.push(gfmToMarkdown(l))}function parseViewMd(t){const{data:a,content:l}=matter(t),u=unified().use(remarkParse).use(remarkGfm).parse(l),c=splitByH2$1(u);return{name:a.name??"",domain:a.domain??"",version:a.version??"0.1.0",stateBindings:parseStateBindings(c["State Bindings"]),layout:parseLayoutSection$1(c.Layout),intents:parseIntentsTable(c.Intents)}}function splitByH2$1(t){var u;const a={};let l="__intro__";a[l]=[];for(const c of t.children)c.type==="heading"&&c.depth===2?(l=getTextContent(c),a[l]=[]):(u=a[l])==null||u.push(c);return a}function getTextContent(t){return t.children.map(a=>a.type==="text"?a.value:"").join("")}function parseStateBindings(t){if(!t)return[];const a=[];for(const l of t){if(l.type!=="list")continue;const u=l;for(const c of u.children){const d=extractListItemText(c).match(/`([^`]+)`\s*->\s*(.+)/);d&&a.push({path:d[1],type:d[2].trim()})}}return a}function extractListItemText(t){return t.children.map(a=>a.type==="paragraph"?a.children.map(l=>l.type==="text"?l.value:l.type==="inlineCode"?`\`${l.value}\``:"").join(""):"").join("")}function parseLayoutSection$1(t){if(!t)throw new Error("Missing Layout section in VIEW.md");for(const a of t)if(a.type==="code"){const l=a;if(l.lang==="clapp-layout")return parseLayoutDSL(l.value)}throw new Error("No clapp-layout code block found in Layout section")}function parseIntentsTable(t){if(!t)return[];const a=[];for(const l of t){if(l.type!=="table")continue;const u=l;for(let c=1;c<u.children.length;c++){const d=u.children[c].children;d.length>=3&&a.push({name:getCellText(d[0]),payload:getCellText(d[1]),description:getCellText(d[2])})}}return a}function getCellText(t){return t.children.map(a=>a.type==="text"||a.type==="inlineCode"?a.value:"").join("")}function parseAppMd(t){const{data:a,content:l}=matter(t),u=unified().use(remarkParse).parse(l),c=splitByH2(u);return{name:a.name??"",domain:a.domain??"",modules:parseModulesList(c.Modules),layout:parseLayoutSection(c.Layout)}}function splitByH2(t){var u;const a={};let l="__intro__";a[l]=[];for(const c of t.children)c.type==="heading"&&c.depth===2?(l=c.children.map(d=>d.type==="text"?d.value:"").join(""),a[l]=[]):(u=a[l])==null||u.push(c);return a}function parseModulesList(t){if(!t)return[];const a=[];for(const l of t){if(l.type!=="list")continue;const u=l;for(const c of u.children){const f=c.children.map(d=>d.type==="paragraph"?d.children.map(g=>g.type==="text"?g.value:"").join(""):"").join("").trim();f&&a.push(f)}}return a}function parseLayoutSection(t){if(!t)throw new Error("Missing Layout section in APP.md");for(const a of t)if(a.type==="code"){const l=a;if(l.lang==="clapp-layout")return parseLayoutDSL(l.value)}throw new Error("No clapp-layout code block found in Layout section")}var util;(function(t){t.assertEqual=c=>{};function a(c){}t.assertIs=a;function l(c){throw new Error}t.assertNever=l,t.arrayToEnum=c=>{const f={};for(const d of c)f[d]=d;return f},t.getValidEnumValues=c=>{const f=t.objectKeys(c).filter(g=>typeof c[c[g]]!="number"),d={};for(const g of f)d[g]=c[g];return t.objectValues(d)},t.objectValues=c=>t.objectKeys(c).map(function(f){return c[f]}),t.objectKeys=typeof Object.keys=="function"?c=>Object.keys(c):c=>{const f=[];for(const d in c)Object.prototype.hasOwnProperty.call(c,d)&&f.push(d);return f},t.find=(c,f)=>{for(const d of c)if(f(d))return d},t.isInteger=typeof Number.isInteger=="function"?c=>Number.isInteger(c):c=>typeof c=="number"&&Number.isFinite(c)&&Math.floor(c)===c;function u(c,f=" | "){return c.map(d=>typeof d=="string"?`'${d}'`:d).join(f)}t.joinValues=u,t.jsonStringifyReplacer=(c,f)=>typeof f=="bigint"?f.toString():f})(util||(util={}));var objectUtil;(function(t){t.mergeShapes=(a,l)=>({...a,...l})})(objectUtil||(objectUtil={}));const ZodParsedType=util.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=t=>{switch(typeof t){case"undefined":return ZodParsedType.undefined;case"string":return ZodParsedType.string;case"number":return Number.isNaN(t)?ZodParsedType.nan:ZodParsedType.number;case"boolean":return ZodParsedType.boolean;case"function":return ZodParsedType.function;case"bigint":return ZodParsedType.bigint;case"symbol":return ZodParsedType.symbol;case"object":return Array.isArray(t)?ZodParsedType.array:t===null?ZodParsedType.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ZodParsedType.promise:typeof Map<"u"&&t instanceof Map?ZodParsedType.map:typeof Set<"u"&&t instanceof Set?ZodParsedType.set:typeof Date<"u"&&t instanceof Date?ZodParsedType.date:ZodParsedType.object;default:return ZodParsedType.unknown}},ZodIssueCode=util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ZodError extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=u=>{this.issues=[...this.issues,u]},this.addIssues=(u=[])=>{this.issues=[...this.issues,...u]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=a}format(a){const l=a||function(f){return f.message},u={_errors:[]},c=f=>{for(const d of f.issues)if(d.code==="invalid_union")d.unionErrors.map(c);else if(d.code==="invalid_return_type")c(d.returnTypeError);else if(d.code==="invalid_arguments")c(d.argumentsError);else if(d.path.length===0)u._errors.push(l(d));else{let g=u,m=0;for(;m<d.path.length;){const h=d.path[m];m===d.path.length-1?(g[h]=g[h]||{_errors:[]},g[h]._errors.push(l(d))):g[h]=g[h]||{_errors:[]},g=g[h],m++}}};return c(this),u}static assert(a){if(!(a instanceof ZodError))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=l=>l.message){const l={},u=[];for(const c of this.issues)if(c.path.length>0){const f=c.path[0];l[f]=l[f]||[],l[f].push(a(c))}else u.push(a(c));return{formErrors:u,fieldErrors:l}}get formErrors(){return this.flatten()}}ZodError.create=t=>new ZodError(t);const errorMap=(t,a)=>{let l;switch(t.code){case ZodIssueCode.invalid_type:t.received===ZodParsedType.undefined?l="Required":l=`Expected ${t.expected}, received ${t.received}`;break;case ZodIssueCode.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(t.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:l=`Unrecognized key(s) in object: ${util.joinValues(t.keys,", ")}`;break;case ZodIssueCode.invalid_union:l="Invalid input";break;case ZodIssueCode.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${util.joinValues(t.options)}`;break;case ZodIssueCode.invalid_enum_value:l=`Invalid enum value. Expected ${util.joinValues(t.options)}, received '${t.received}'`;break;case ZodIssueCode.invalid_arguments:l="Invalid function arguments";break;case ZodIssueCode.invalid_return_type:l="Invalid function return type";break;case ZodIssueCode.invalid_date:l="Invalid date";break;case ZodIssueCode.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(l=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?l=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?l=`Invalid input: must end with "${t.validation.endsWith}"`:util.assertNever(t.validation):t.validation!=="regex"?l=`Invalid ${t.validation}`:l="Invalid";break;case ZodIssueCode.too_small:t.type==="array"?l=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?l=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?l=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?l=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?l=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:l="Invalid input";break;case ZodIssueCode.too_big:t.type==="array"?l=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?l=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?l=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?l=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?l=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:l="Invalid input";break;case ZodIssueCode.custom:l="Invalid input";break;case ZodIssueCode.invalid_intersection_types:l="Intersection results could not be merged";break;case ZodIssueCode.not_multiple_of:l=`Number must be a multiple of ${t.multipleOf}`;break;case ZodIssueCode.not_finite:l="Number must be finite";break;default:l=a.defaultError,util.assertNever(t)}return{message:l}};let overrideErrorMap=errorMap;function getErrorMap(){return overrideErrorMap}const makeIssue=t=>{const{data:a,path:l,errorMaps:u,issueData:c}=t,f=[...l,...c.path||[]],d={...c,path:f};if(c.message!==void 0)return{...c,path:f,message:c.message};let g="";const m=u.filter(h=>!!h).slice().reverse();for(const h of m)g=h(d,{data:a,defaultError:g}).message;return{...c,path:f,message:g}};function addIssueToContext(t,a){const l=getErrorMap(),u=makeIssue({issueData:a,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,l===errorMap?void 0:errorMap].filter(c=>!!c)});t.common.issues.push(u)}class ParseStatus{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,l){const u=[];for(const c of l){if(c.status==="aborted")return INVALID;c.status==="dirty"&&a.dirty(),u.push(c.value)}return{status:a.value,value:u}}static async mergeObjectAsync(a,l){const u=[];for(const c of l){const f=await c.key,d=await c.value;u.push({key:f,value:d})}return ParseStatus.mergeObjectSync(a,u)}static mergeObjectSync(a,l){const u={};for(const c of l){const{key:f,value:d}=c;if(f.status==="aborted"||d.status==="aborted")return INVALID;f.status==="dirty"&&a.dirty(),d.status==="dirty"&&a.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||c.alwaysSet)&&(u[f.value]=d.value)}return{status:a.value,value:u}}}const INVALID=Object.freeze({status:"aborted"}),DIRTY=t=>({status:"dirty",value:t}),OK=t=>({status:"valid",value:t}),isAborted=t=>t.status==="aborted",isDirty=t=>t.status==="dirty",isValid=t=>t.status==="valid",isAsync=t=>typeof Promise<"u"&&t instanceof Promise;var errorUtil;(function(t){t.errToObj=a=>typeof a=="string"?{message:a}:a||{},t.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(errorUtil||(errorUtil={}));class ParseInputLazyPath{constructor(a,l,u,c){this._cachedPath=[],this.parent=a,this.data=l,this._path=u,this._key=c}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const handleResult=(t,a)=>{if(isValid(a))return{success:!0,data:a.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new ZodError(t.common.issues);return this._error=l,this._error}}};function processCreateParams(t){if(!t)return{};const{errorMap:a,invalid_type_error:l,required_error:u,description:c}=t;if(a&&(l||u))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:c}:{errorMap:(d,g)=>{const{message:m}=t;return d.code==="invalid_enum_value"?{message:m??g.defaultError}:typeof g.data>"u"?{message:m??u??g.defaultError}:d.code!=="invalid_type"?{message:g.defaultError}:{message:m??l??g.defaultError}},description:c}}class ZodType{get description(){return this._def.description}_getType(a){return getParsedType(a.data)}_getOrReturnCtx(a,l){return l||{common:a.parent.common,data:a.data,parsedType:getParsedType(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new ParseStatus,ctx:{common:a.parent.common,data:a.data,parsedType:getParsedType(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const l=this._parse(a);if(isAsync(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(a){const l=this._parse(a);return Promise.resolve(l)}parse(a,l){const u=this.safeParse(a,l);if(u.success)return u.data;throw u.error}safeParse(a,l){const u={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:getParsedType(a)},c=this._parseSync({data:a,path:u.path,parent:u});return handleResult(u,c)}"~validate"(a){var u,c;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:getParsedType(a)};if(!this["~standard"].async)try{const f=this._parseSync({data:a,path:[],parent:l});return isValid(f)?{value:f.value}:{issues:l.common.issues}}catch(f){(c=(u=f==null?void 0:f.message)==null?void 0:u.toLowerCase())!=null&&c.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:l}).then(f=>isValid(f)?{value:f.value}:{issues:l.common.issues})}async parseAsync(a,l){const u=await this.safeParseAsync(a,l);if(u.success)return u.data;throw u.error}async safeParseAsync(a,l){const u={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:getParsedType(a)},c=this._parse({data:a,path:u.path,parent:u}),f=await(isAsync(c)?c:Promise.resolve(c));return handleResult(u,f)}refine(a,l){const u=c=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(c):l;return this._refinement((c,f)=>{const d=a(c),g=()=>f.addIssue({code:ZodIssueCode.custom,...u(c)});return typeof Promise<"u"&&d instanceof Promise?d.then(m=>m?!0:(g(),!1)):d?!0:(g(),!1)})}refinement(a,l){return this._refinement((u,c)=>a(u)?!0:(c.addIssue(typeof l=="function"?l(u,c):l),!1))}_refinement(a){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:l=>this["~validate"](l)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(a){return ZodUnion.create([this,a],this._def)}and(a){return ZodIntersection.create(this,a,this._def)}transform(a){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const l=typeof a=="function"?a:()=>a;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:l,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(a){const l=typeof a=="function"?a:()=>a;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:l,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(a){const l=this.constructor;return new l({...this._def,description:a})}pipe(a){return ZodPipeline.create(this,a)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cuidRegex=/^c[^\s-]{8,}$/i,cuid2Regex=/^[0-9a-z]+$/,ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uuidRegex=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nanoidRegex=/^[a-z0-9_-]{21}$/i,jwtRegex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_emojiRegex="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4CidrRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ipv6CidrRegex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64urlRegex=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dateRegexSource="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",dateRegex=new RegExp(`^${dateRegexSource}$`);function timeRegexSource(t){let a="[0-5]\\d";t.precision?a=`${a}\\.\\d{${t.precision}}`:t.precision==null&&(a=`${a}(\\.\\d+)?`);const l=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${l}`}function timeRegex(t){return new RegExp(`^${timeRegexSource(t)}$`)}function datetimeRegex(t){let a=`${dateRegexSource}T${timeRegexSource(t)}`;const l=[];return l.push(t.local?"Z?":"Z"),t.offset&&l.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${l.join("|")})`,new RegExp(`^${a}$`)}function isValidIP(t,a){return!!((a==="v4"||!a)&&ipv4Regex.test(t)||(a==="v6"||!a)&&ipv6Regex.test(t))}function isValidJWT(t,a){if(!jwtRegex.test(t))return!1;try{const[l]=t.split(".");if(!l)return!1;const u=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),c=JSON.parse(atob(u));return!(typeof c!="object"||c===null||"typ"in c&&(c==null?void 0:c.typ)!=="JWT"||!c.alg||a&&c.alg!==a)}catch{return!1}}function isValidCidr(t,a){return!!((a==="v4"||!a)&&ipv4CidrRegex.test(t)||(a==="v6"||!a)&&ipv6CidrRegex.test(t))}class ZodString extends ZodType{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==ZodParsedType.string){const f=this._getOrReturnCtx(a);return addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:f.parsedType}),INVALID}const u=new ParseStatus;let c;for(const f of this._def.checks)if(f.kind==="min")a.data.length<f.value&&(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),u.dirty());else if(f.kind==="max")a.data.length>f.value&&(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),u.dirty());else if(f.kind==="length"){const d=a.data.length>f.value,g=a.data.length<f.value;(d||g)&&(c=this._getOrReturnCtx(a,c),d?addIssueToContext(c,{code:ZodIssueCode.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):g&&addIssueToContext(c,{code:ZodIssueCode.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),u.dirty())}else if(f.kind==="email")emailRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"email",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="emoji")emojiRegex||(emojiRegex=new RegExp(_emojiRegex,"u")),emojiRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"emoji",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="uuid")uuidRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"uuid",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="nanoid")nanoidRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"nanoid",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="cuid")cuidRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"cuid",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="cuid2")cuid2Regex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="ulid")ulidRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"ulid",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="url")try{new URL(a.data)}catch{c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"url",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"regex",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty())):f.kind==="trim"?a.data=a.data.trim():f.kind==="includes"?a.data.includes(f.value,f.position)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),u.dirty()):f.kind==="toLowerCase"?a.data=a.data.toLowerCase():f.kind==="toUpperCase"?a.data=a.data.toUpperCase():f.kind==="startsWith"?a.data.startsWith(f.value)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:{startsWith:f.value},message:f.message}),u.dirty()):f.kind==="endsWith"?a.data.endsWith(f.value)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:{endsWith:f.value},message:f.message}),u.dirty()):f.kind==="datetime"?datetimeRegex(f).test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:"datetime",message:f.message}),u.dirty()):f.kind==="date"?dateRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:"date",message:f.message}),u.dirty()):f.kind==="time"?timeRegex(f).test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:"time",message:f.message}),u.dirty()):f.kind==="duration"?durationRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"duration",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):f.kind==="ip"?isValidIP(a.data,f.version)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"ip",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):f.kind==="jwt"?isValidJWT(a.data,f.alg)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"jwt",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):f.kind==="cidr"?isValidCidr(a.data,f.version)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"cidr",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):f.kind==="base64"?base64Regex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"base64",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):f.kind==="base64url"?base64urlRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"base64url",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):util.assertNever(f);return{status:u.value,value:a.data}}_regex(a,l,u){return this.refinement(c=>a.test(c),{validation:l,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(u)})}_addCheck(a){return new ZodString({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...errorUtil.errToObj(a)})}url(a){return this._addCheck({kind:"url",...errorUtil.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...errorUtil.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...errorUtil.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...errorUtil.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...errorUtil.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...errorUtil.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...errorUtil.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...errorUtil.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...errorUtil.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...errorUtil.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...errorUtil.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...errorUtil.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(a==null?void 0:a.offset)??!1,local:(a==null?void 0:a.local)??!1,...errorUtil.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...errorUtil.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...errorUtil.errToObj(a)})}regex(a,l){return this._addCheck({kind:"regex",regex:a,...errorUtil.errToObj(l)})}includes(a,l){return this._addCheck({kind:"includes",value:a,position:l==null?void 0:l.position,...errorUtil.errToObj(l==null?void 0:l.message)})}startsWith(a,l){return this._addCheck({kind:"startsWith",value:a,...errorUtil.errToObj(l)})}endsWith(a,l){return this._addCheck({kind:"endsWith",value:a,...errorUtil.errToObj(l)})}min(a,l){return this._addCheck({kind:"min",value:a,...errorUtil.errToObj(l)})}max(a,l){return this._addCheck({kind:"max",value:a,...errorUtil.errToObj(l)})}length(a,l){return this._addCheck({kind:"length",value:a,...errorUtil.errToObj(l)})}nonempty(a){return this.min(1,errorUtil.errToObj(a))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const l of this._def.checks)l.kind==="min"&&(a===null||l.value>a)&&(a=l.value);return a}get maxLength(){let a=null;for(const l of this._def.checks)l.kind==="max"&&(a===null||l.value<a)&&(a=l.value);return a}}ZodString.create=t=>new ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...processCreateParams(t)});function floatSafeRemainder(t,a){const l=(t.toString().split(".")[1]||"").length,u=(a.toString().split(".")[1]||"").length,c=l>u?l:u,f=Number.parseInt(t.toFixed(c).replace(".","")),d=Number.parseInt(a.toFixed(c).replace(".",""));return f%d/10**c}class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==ZodParsedType.number){const f=this._getOrReturnCtx(a);return addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:f.parsedType}),INVALID}let u;const c=new ParseStatus;for(const f of this._def.checks)f.kind==="int"?util.isInteger(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:f.message}),c.dirty()):f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),c.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),c.dirty()):f.kind==="multipleOf"?floatSafeRemainder(a.data,f.value)!==0&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.not_multiple_of,multipleOf:f.value,message:f.message}),c.dirty()):f.kind==="finite"?Number.isFinite(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.not_finite,message:f.message}),c.dirty()):util.assertNever(f);return{status:c.value,value:a.data}}gte(a,l){return this.setLimit("min",a,!0,errorUtil.toString(l))}gt(a,l){return this.setLimit("min",a,!1,errorUtil.toString(l))}lte(a,l){return this.setLimit("max",a,!0,errorUtil.toString(l))}lt(a,l){return this.setLimit("max",a,!1,errorUtil.toString(l))}setLimit(a,l,u,c){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:a,value:l,inclusive:u,message:errorUtil.toString(c)}]})}_addCheck(a){return new ZodNumber({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:errorUtil.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:errorUtil.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:errorUtil.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:errorUtil.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:errorUtil.toString(a)})}multipleOf(a,l){return this._addCheck({kind:"multipleOf",value:a,message:errorUtil.toString(l)})}finite(a){return this._addCheck({kind:"finite",message:errorUtil.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:errorUtil.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:errorUtil.toString(a)})}get minValue(){let a=null;for(const l of this._def.checks)l.kind==="min"&&(a===null||l.value>a)&&(a=l.value);return a}get maxValue(){let a=null;for(const l of this._def.checks)l.kind==="max"&&(a===null||l.value<a)&&(a=l.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&util.isInteger(a.value))}get isFinite(){let a=null,l=null;for(const u of this._def.checks){if(u.kind==="finite"||u.kind==="int"||u.kind==="multipleOf")return!0;u.kind==="min"?(l===null||u.value>l)&&(l=u.value):u.kind==="max"&&(a===null||u.value<a)&&(a=u.value)}return Number.isFinite(l)&&Number.isFinite(a)}}ZodNumber.create=t=>new ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...processCreateParams(t)});class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==ZodParsedType.bigint)return this._getInvalidInput(a);let u;const c=new ParseStatus;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),c.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),c.dirty()):f.kind==="multipleOf"?a.data%f.value!==BigInt(0)&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.not_multiple_of,multipleOf:f.value,message:f.message}),c.dirty()):util.assertNever(f);return{status:c.value,value:a.data}}_getInvalidInput(a){const l=this._getOrReturnCtx(a);return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:l.parsedType}),INVALID}gte(a,l){return this.setLimit("min",a,!0,errorUtil.toString(l))}gt(a,l){return this.setLimit("min",a,!1,errorUtil.toString(l))}lte(a,l){return this.setLimit("max",a,!0,errorUtil.toString(l))}lt(a,l){return this.setLimit("max",a,!1,errorUtil.toString(l))}setLimit(a,l,u,c){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:a,value:l,inclusive:u,message:errorUtil.toString(c)}]})}_addCheck(a){return new ZodBigInt({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:errorUtil.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:errorUtil.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:errorUtil.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:errorUtil.toString(a)})}multipleOf(a,l){return this._addCheck({kind:"multipleOf",value:a,message:errorUtil.toString(l)})}get minValue(){let a=null;for(const l of this._def.checks)l.kind==="min"&&(a===null||l.value>a)&&(a=l.value);return a}get maxValue(){let a=null;for(const l of this._def.checks)l.kind==="max"&&(a===null||l.value<a)&&(a=l.value);return a}}ZodBigInt.create=t=>new ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...processCreateParams(t)});class ZodBoolean extends ZodType{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==ZodParsedType.boolean){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:u.parsedType}),INVALID}return OK(a.data)}}ZodBoolean.create=t=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...processCreateParams(t)});class ZodDate extends ZodType{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==ZodParsedType.date){const f=this._getOrReturnCtx(a);return addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:f.parsedType}),INVALID}if(Number.isNaN(a.data.getTime())){const f=this._getOrReturnCtx(a);return addIssueToContext(f,{code:ZodIssueCode.invalid_date}),INVALID}const u=new ParseStatus;let c;for(const f of this._def.checks)f.kind==="min"?a.data.getTime()<f.value&&(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),u.dirty()):f.kind==="max"?a.data.getTime()>f.value&&(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),u.dirty()):util.assertNever(f);return{status:u.value,value:new Date(a.data.getTime())}}_addCheck(a){return new ZodDate({...this._def,checks:[...this._def.checks,a]})}min(a,l){return this._addCheck({kind:"min",value:a.getTime(),message:errorUtil.toString(l)})}max(a,l){return this._addCheck({kind:"max",value:a.getTime(),message:errorUtil.toString(l)})}get minDate(){let a=null;for(const l of this._def.checks)l.kind==="min"&&(a===null||l.value>a)&&(a=l.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const l of this._def.checks)l.kind==="max"&&(a===null||l.value<a)&&(a=l.value);return a!=null?new Date(a):null}}ZodDate.create=t=>new ZodDate({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(t)});class ZodSymbol extends ZodType{_parse(a){if(this._getType(a)!==ZodParsedType.symbol){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:u.parsedType}),INVALID}return OK(a.data)}}ZodSymbol.create=t=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(t)});class ZodUndefined extends ZodType{_parse(a){if(this._getType(a)!==ZodParsedType.undefined){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:u.parsedType}),INVALID}return OK(a.data)}}ZodUndefined.create=t=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(t)});class ZodNull extends ZodType{_parse(a){if(this._getType(a)!==ZodParsedType.null){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:u.parsedType}),INVALID}return OK(a.data)}}ZodNull.create=t=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(t)});class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(a){return OK(a.data)}}ZodAny.create=t=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(t)});class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(a){return OK(a.data)}}ZodUnknown.create=t=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(t)});class ZodNever extends ZodType{_parse(a){const l=this._getOrReturnCtx(a);return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:l.parsedType}),INVALID}}ZodNever.create=t=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(t)});class ZodVoid extends ZodType{_parse(a){if(this._getType(a)!==ZodParsedType.undefined){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:u.parsedType}),INVALID}return OK(a.data)}}ZodVoid.create=t=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(t)});class ZodArray extends ZodType{_parse(a){const{ctx:l,status:u}=this._processInputParams(a),c=this._def;if(l.parsedType!==ZodParsedType.array)return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:l.parsedType}),INVALID;if(c.exactLength!==null){const d=l.data.length>c.exactLength.value,g=l.data.length<c.exactLength.value;(d||g)&&(addIssueToContext(l,{code:d?ZodIssueCode.too_big:ZodIssueCode.too_small,minimum:g?c.exactLength.value:void 0,maximum:d?c.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:c.exactLength.message}),u.dirty())}if(c.minLength!==null&&l.data.length<c.minLength.value&&(addIssueToContext(l,{code:ZodIssueCode.too_small,minimum:c.minLength.value,type:"array",inclusive:!0,exact:!1,message:c.minLength.message}),u.dirty()),c.maxLength!==null&&l.data.length>c.maxLength.value&&(addIssueToContext(l,{code:ZodIssueCode.too_big,maximum:c.maxLength.value,type:"array",inclusive:!0,exact:!1,message:c.maxLength.message}),u.dirty()),l.common.async)return Promise.all([...l.data].map((d,g)=>c.type._parseAsync(new ParseInputLazyPath(l,d,l.path,g)))).then(d=>ParseStatus.mergeArray(u,d));const f=[...l.data].map((d,g)=>c.type._parseSync(new ParseInputLazyPath(l,d,l.path,g)));return ParseStatus.mergeArray(u,f)}get element(){return this._def.type}min(a,l){return new ZodArray({...this._def,minLength:{value:a,message:errorUtil.toString(l)}})}max(a,l){return new ZodArray({...this._def,maxLength:{value:a,message:errorUtil.toString(l)}})}length(a,l){return new ZodArray({...this._def,exactLength:{value:a,message:errorUtil.toString(l)}})}nonempty(a){return this.min(1,a)}}ZodArray.create=(t,a)=>new ZodArray({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(a)});function deepPartialify(t){if(t instanceof ZodObject){const a={};for(const l in t.shape){const u=t.shape[l];a[l]=ZodOptional.create(deepPartialify(u))}return new ZodObject({...t._def,shape:()=>a})}else return t instanceof ZodArray?new ZodArray({...t._def,type:deepPartialify(t.element)}):t instanceof ZodOptional?ZodOptional.create(deepPartialify(t.unwrap())):t instanceof ZodNullable?ZodNullable.create(deepPartialify(t.unwrap())):t instanceof ZodTuple?ZodTuple.create(t.items.map(a=>deepPartialify(a))):t}class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),l=util.objectKeys(a);return this._cached={shape:a,keys:l},this._cached}_parse(a){if(this._getType(a)!==ZodParsedType.object){const h=this._getOrReturnCtx(a);return addIssueToContext(h,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:h.parsedType}),INVALID}const{status:u,ctx:c}=this._processInputParams(a),{shape:f,keys:d}=this._getCached(),g=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys==="strip"))for(const h in c.data)d.includes(h)||g.push(h);const m=[];for(const h of d){const x=f[h],S=c.data[h];m.push({key:{status:"valid",value:h},value:x._parse(new ParseInputLazyPath(c,S,c.path,h)),alwaysSet:h in c.data})}if(this._def.catchall instanceof ZodNever){const h=this._def.unknownKeys;if(h==="passthrough")for(const x of g)m.push({key:{status:"valid",value:x},value:{status:"valid",value:c.data[x]}});else if(h==="strict")g.length>0&&(addIssueToContext(c,{code:ZodIssueCode.unrecognized_keys,keys:g}),u.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const x of g){const S=c.data[x];m.push({key:{status:"valid",value:x},value:h._parse(new ParseInputLazyPath(c,S,c.path,x)),alwaysSet:x in c.data})}}return c.common.async?Promise.resolve().then(async()=>{const h=[];for(const x of m){const S=await x.key,A=await x.value;h.push({key:S,value:A,alwaysSet:x.alwaysSet})}return h}).then(h=>ParseStatus.mergeObjectSync(u,h)):ParseStatus.mergeObjectSync(u,m)}get shape(){return this._def.shape()}strict(a){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(l,u)=>{var f,d;const c=((d=(f=this._def).errorMap)==null?void 0:d.call(f,l,u).message)??u.defaultError;return l.code==="unrecognized_keys"?{message:errorUtil.errToObj(a).message??c}:{message:c}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(a){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new ZodObject({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject})}setKey(a,l){return this.augment({[a]:l})}catchall(a){return new ZodObject({...this._def,catchall:a})}pick(a){const l={};for(const u of util.objectKeys(a))a[u]&&this.shape[u]&&(l[u]=this.shape[u]);return new ZodObject({...this._def,shape:()=>l})}omit(a){const l={};for(const u of util.objectKeys(this.shape))a[u]||(l[u]=this.shape[u]);return new ZodObject({...this._def,shape:()=>l})}deepPartial(){return deepPartialify(this)}partial(a){const l={};for(const u of util.objectKeys(this.shape)){const c=this.shape[u];a&&!a[u]?l[u]=c:l[u]=c.optional()}return new ZodObject({...this._def,shape:()=>l})}required(a){const l={};for(const u of util.objectKeys(this.shape))if(a&&!a[u])l[u]=this.shape[u];else{let f=this.shape[u];for(;f instanceof ZodOptional;)f=f._def.innerType;l[u]=f}return new ZodObject({...this._def,shape:()=>l})}keyof(){return createZodEnum(util.objectKeys(this.shape))}}ZodObject.create=(t,a)=>new ZodObject({shape:()=>t,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(a)});ZodObject.strictCreate=(t,a)=>new ZodObject({shape:()=>t,unknownKeys:"strict",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(a)});ZodObject.lazycreate=(t,a)=>new ZodObject({shape:t,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(a)});class ZodUnion extends ZodType{_parse(a){const{ctx:l}=this._processInputParams(a),u=this._def.options;function c(f){for(const g of f)if(g.result.status==="valid")return g.result;for(const g of f)if(g.result.status==="dirty")return l.common.issues.push(...g.ctx.common.issues),g.result;const d=f.map(g=>new ZodError(g.ctx.common.issues));return addIssueToContext(l,{code:ZodIssueCode.invalid_union,unionErrors:d}),INVALID}if(l.common.async)return Promise.all(u.map(async f=>{const d={...l,common:{...l.common,issues:[]},parent:null};return{result:await f._parseAsync({data:l.data,path:l.path,parent:d}),ctx:d}})).then(c);{let f;const d=[];for(const m of u){const h={...l,common:{...l.common,issues:[]},parent:null},x=m._parseSync({data:l.data,path:l.path,parent:h});if(x.status==="valid")return x;x.status==="dirty"&&!f&&(f={result:x,ctx:h}),h.common.issues.length&&d.push(h.common.issues)}if(f)return l.common.issues.push(...f.ctx.common.issues),f.result;const g=d.map(m=>new ZodError(m));return addIssueToContext(l,{code:ZodIssueCode.invalid_union,unionErrors:g}),INVALID}}get options(){return this._def.options}}ZodUnion.create=(t,a)=>new ZodUnion({options:t,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(a)});function mergeValues(t,a){const l=getParsedType(t),u=getParsedType(a);if(t===a)return{valid:!0,data:t};if(l===ZodParsedType.object&&u===ZodParsedType.object){const c=util.objectKeys(a),f=util.objectKeys(t).filter(g=>c.indexOf(g)!==-1),d={...t,...a};for(const g of f){const m=mergeValues(t[g],a[g]);if(!m.valid)return{valid:!1};d[g]=m.data}return{valid:!0,data:d}}else if(l===ZodParsedType.array&&u===ZodParsedType.array){if(t.length!==a.length)return{valid:!1};const c=[];for(let f=0;f<t.length;f++){const d=t[f],g=a[f],m=mergeValues(d,g);if(!m.valid)return{valid:!1};c.push(m.data)}return{valid:!0,data:c}}else return l===ZodParsedType.date&&u===ZodParsedType.date&&+t==+a?{valid:!0,data:t}:{valid:!1}}class ZodIntersection extends ZodType{_parse(a){const{status:l,ctx:u}=this._processInputParams(a),c=(f,d)=>{if(isAborted(f)||isAborted(d))return INVALID;const g=mergeValues(f.value,d.value);return g.valid?((isDirty(f)||isDirty(d))&&l.dirty(),{status:l.value,value:g.data}):(addIssueToContext(u,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(([f,d])=>c(f,d)):c(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}ZodIntersection.create=(t,a,l)=>new ZodIntersection({left:t,right:a,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(l)});class ZodTuple extends ZodType{_parse(a){const{status:l,ctx:u}=this._processInputParams(a);if(u.parsedType!==ZodParsedType.array)return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:u.parsedType}),INVALID;if(u.data.length<this._def.items.length)return addIssueToContext(u,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),INVALID;!this._def.rest&&u.data.length>this._def.items.length&&(addIssueToContext(u,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const f=[...u.data].map((d,g)=>{const m=this._def.items[g]||this._def.rest;return m?m._parse(new ParseInputLazyPath(u,d,u.path,g)):null}).filter(d=>!!d);return u.common.async?Promise.all(f).then(d=>ParseStatus.mergeArray(l,d)):ParseStatus.mergeArray(l,f)}get items(){return this._def.items}rest(a){return new ZodTuple({...this._def,rest:a})}}ZodTuple.create=(t,a)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:t,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(a)})};class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:l,ctx:u}=this._processInputParams(a);if(u.parsedType!==ZodParsedType.object)return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:u.parsedType}),INVALID;const c=[],f=this._def.keyType,d=this._def.valueType;for(const g in u.data)c.push({key:f._parse(new ParseInputLazyPath(u,g,u.path,g)),value:d._parse(new ParseInputLazyPath(u,u.data[g],u.path,g)),alwaysSet:g in u.data});return u.common.async?ParseStatus.mergeObjectAsync(l,c):ParseStatus.mergeObjectSync(l,c)}get element(){return this._def.valueType}static create(a,l,u){return l instanceof ZodType?new ZodRecord({keyType:a,valueType:l,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(u)}):new ZodRecord({keyType:ZodString.create(),valueType:a,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(l)})}}class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:l,ctx:u}=this._processInputParams(a);if(u.parsedType!==ZodParsedType.map)return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:u.parsedType}),INVALID;const c=this._def.keyType,f=this._def.valueType,d=[...u.data.entries()].map(([g,m],h)=>({key:c._parse(new ParseInputLazyPath(u,g,u.path,[h,"key"])),value:f._parse(new ParseInputLazyPath(u,m,u.path,[h,"value"]))}));if(u.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const m of d){const h=await m.key,x=await m.value;if(h.status==="aborted"||x.status==="aborted")return INVALID;(h.status==="dirty"||x.status==="dirty")&&l.dirty(),g.set(h.value,x.value)}return{status:l.value,value:g}})}else{const g=new Map;for(const m of d){const h=m.key,x=m.value;if(h.status==="aborted"||x.status==="aborted")return INVALID;(h.status==="dirty"||x.status==="dirty")&&l.dirty(),g.set(h.value,x.value)}return{status:l.value,value:g}}}}ZodMap.create=(t,a,l)=>new ZodMap({valueType:a,keyType:t,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(l)});class ZodSet extends ZodType{_parse(a){const{status:l,ctx:u}=this._processInputParams(a);if(u.parsedType!==ZodParsedType.set)return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:u.parsedType}),INVALID;const c=this._def;c.minSize!==null&&u.data.size<c.minSize.value&&(addIssueToContext(u,{code:ZodIssueCode.too_small,minimum:c.minSize.value,type:"set",inclusive:!0,exact:!1,message:c.minSize.message}),l.dirty()),c.maxSize!==null&&u.data.size>c.maxSize.value&&(addIssueToContext(u,{code:ZodIssueCode.too_big,maximum:c.maxSize.value,type:"set",inclusive:!0,exact:!1,message:c.maxSize.message}),l.dirty());const f=this._def.valueType;function d(m){const h=new Set;for(const x of m){if(x.status==="aborted")return INVALID;x.status==="dirty"&&l.dirty(),h.add(x.value)}return{status:l.value,value:h}}const g=[...u.data.values()].map((m,h)=>f._parse(new ParseInputLazyPath(u,m,u.path,h)));return u.common.async?Promise.all(g).then(m=>d(m)):d(g)}min(a,l){return new ZodSet({...this._def,minSize:{value:a,message:errorUtil.toString(l)}})}max(a,l){return new ZodSet({...this._def,maxSize:{value:a,message:errorUtil.toString(l)}})}size(a,l){return this.min(a,l).max(a,l)}nonempty(a){return this.min(1,a)}}ZodSet.create=(t,a)=>new ZodSet({valueType:t,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(a)});class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(a){const{ctx:l}=this._processInputParams(a);return this._def.getter()._parse({data:l.data,path:l.path,parent:l})}}ZodLazy.create=(t,a)=>new ZodLazy({getter:t,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(a)});class ZodLiteral extends ZodType{_parse(a){if(a.data!==this._def.value){const l=this._getOrReturnCtx(a);return addIssueToContext(l,{received:l.data,code:ZodIssueCode.invalid_literal,expected:this._def.value}),INVALID}return{status:"valid",value:a.data}}get value(){return this._def.value}}ZodLiteral.create=(t,a)=>new ZodLiteral({value:t,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(a)});function createZodEnum(t,a){return new ZodEnum({values:t,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(a)})}class ZodEnum extends ZodType{_parse(a){if(typeof a.data!="string"){const l=this._getOrReturnCtx(a),u=this._def.values;return addIssueToContext(l,{expected:util.joinValues(u),received:l.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const l=this._getOrReturnCtx(a),u=this._def.values;return addIssueToContext(l,{received:l.data,code:ZodIssueCode.invalid_enum_value,options:u}),INVALID}return OK(a.data)}get options(){return this._def.values}get enum(){const a={};for(const l of this._def.values)a[l]=l;return a}get Values(){const a={};for(const l of this._def.values)a[l]=l;return a}get Enum(){const a={};for(const l of this._def.values)a[l]=l;return a}extract(a,l=this._def){return ZodEnum.create(a,{...this._def,...l})}exclude(a,l=this._def){return ZodEnum.create(this.options.filter(u=>!a.includes(u)),{...this._def,...l})}}ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{_parse(a){const l=util.getValidEnumValues(this._def.values),u=this._getOrReturnCtx(a);if(u.parsedType!==ZodParsedType.string&&u.parsedType!==ZodParsedType.number){const c=util.objectValues(l);return addIssueToContext(u,{expected:util.joinValues(c),received:u.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||(this._cache=new Set(util.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const c=util.objectValues(l);return addIssueToContext(u,{received:u.data,code:ZodIssueCode.invalid_enum_value,options:c}),INVALID}return OK(a.data)}get enum(){return this._def.values}}ZodNativeEnum.create=(t,a)=>new ZodNativeEnum({values:t,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(a)});class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(a){const{ctx:l}=this._processInputParams(a);if(l.parsedType!==ZodParsedType.promise&&l.common.async===!1)return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:l.parsedType}),INVALID;const u=l.parsedType===ZodParsedType.promise?l.data:Promise.resolve(l.data);return OK(u.then(c=>this._def.type.parseAsync(c,{path:l.path,errorMap:l.common.contextualErrorMap})))}}ZodPromise.create=(t,a)=>new ZodPromise({type:t,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(a)});class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:l,ctx:u}=this._processInputParams(a),c=this._def.effect||null,f={addIssue:d=>{addIssueToContext(u,d),d.fatal?l.abort():l.dirty()},get path(){return u.path}};if(f.addIssue=f.addIssue.bind(f),c.type==="preprocess"){const d=c.transform(u.data,f);if(u.common.async)return Promise.resolve(d).then(async g=>{if(l.value==="aborted")return INVALID;const m=await this._def.schema._parseAsync({data:g,path:u.path,parent:u});return m.status==="aborted"?INVALID:m.status==="dirty"||l.value==="dirty"?DIRTY(m.value):m});{if(l.value==="aborted")return INVALID;const g=this._def.schema._parseSync({data:d,path:u.path,parent:u});return g.status==="aborted"?INVALID:g.status==="dirty"||l.value==="dirty"?DIRTY(g.value):g}}if(c.type==="refinement"){const d=g=>{const m=c.refinement(g,f);if(u.common.async)return Promise.resolve(m);if(m instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(u.common.async===!1){const g=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});return g.status==="aborted"?INVALID:(g.status==="dirty"&&l.dirty(),d(g.value),{status:l.value,value:g.value})}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(g=>g.status==="aborted"?INVALID:(g.status==="dirty"&&l.dirty(),d(g.value).then(()=>({status:l.value,value:g.value}))))}if(c.type==="transform")if(u.common.async===!1){const d=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});if(!isValid(d))return INVALID;const g=c.transform(d.value,f);if(g instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:g}}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(d=>isValid(d)?Promise.resolve(c.transform(d.value,f)).then(g=>({status:l.value,value:g})):INVALID);util.assertNever(c)}}ZodEffects.create=(t,a,l)=>new ZodEffects({schema:t,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:a,...processCreateParams(l)});ZodEffects.createWithPreprocess=(t,a,l)=>new ZodEffects({schema:a,effect:{type:"preprocess",transform:t},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(l)});class ZodOptional extends ZodType{_parse(a){return this._getType(a)===ZodParsedType.undefined?OK(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}ZodOptional.create=(t,a)=>new ZodOptional({innerType:t,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(a)});class ZodNullable extends ZodType{_parse(a){return this._getType(a)===ZodParsedType.null?OK(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}ZodNullable.create=(t,a)=>new ZodNullable({innerType:t,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(a)});class ZodDefault extends ZodType{_parse(a){const{ctx:l}=this._processInputParams(a);let u=l.data;return l.parsedType===ZodParsedType.undefined&&(u=this._def.defaultValue()),this._def.innerType._parse({data:u,path:l.path,parent:l})}removeDefault(){return this._def.innerType}}ZodDefault.create=(t,a)=>new ZodDefault({innerType:t,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...processCreateParams(a)});class ZodCatch extends ZodType{_parse(a){const{ctx:l}=this._processInputParams(a),u={...l,common:{...l.common,issues:[]}},c=this._def.innerType._parse({data:u.data,path:u.path,parent:{...u}});return isAsync(c)?c.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new ZodError(u.common.issues)},input:u.data})})):{status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new ZodError(u.common.issues)},input:u.data})}}removeCatch(){return this._def.innerType}}ZodCatch.create=(t,a)=>new ZodCatch({innerType:t,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...processCreateParams(a)});class ZodNaN extends ZodType{_parse(a){if(this._getType(a)!==ZodParsedType.nan){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:u.parsedType}),INVALID}return{status:"valid",value:a.data}}}ZodNaN.create=t=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(t)});class ZodBranded extends ZodType{_parse(a){const{ctx:l}=this._processInputParams(a),u=l.data;return this._def.type._parse({data:u,path:l.path,parent:l})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(a){const{status:l,ctx:u}=this._processInputParams(a);if(u.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:u.data,path:u.path,parent:u});return f.status==="aborted"?INVALID:f.status==="dirty"?(l.dirty(),DIRTY(f.value)):this._def.out._parseAsync({data:f.value,path:u.path,parent:u})})();{const c=this._def.in._parseSync({data:u.data,path:u.path,parent:u});return c.status==="aborted"?INVALID:c.status==="dirty"?(l.dirty(),{status:"dirty",value:c.value}):this._def.out._parseSync({data:c.value,path:u.path,parent:u})}}static create(a,l){return new ZodPipeline({in:a,out:l,typeName:ZodFirstPartyTypeKind.ZodPipeline})}}class ZodReadonly extends ZodType{_parse(a){const l=this._def.innerType._parse(a),u=c=>(isValid(c)&&(c.value=Object.freeze(c.value)),c);return isAsync(l)?l.then(c=>u(c)):u(l)}unwrap(){return this._def.innerType}}ZodReadonly.create=(t,a)=>new ZodReadonly({innerType:t,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(a)});var ZodFirstPartyTypeKind;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ZodFirstPartyTypeKind||(ZodFirstPartyTypeKind={}));const stringType=ZodString.create,numberType=ZodNumber.create,booleanType=ZodBoolean.create,unknownType=ZodUnknown.create;ZodNever.create;const arrayType=ZodArray.create,objectType=ZodObject.create;ZodUnion.create;ZodIntersection.create;ZodTuple.create;const recordType=ZodRecord.create;ZodEnum.create;ZodPromise.create;ZodOptional.create;ZodNullable.create;objectType({id:stringType(),agentId:stringType(),clappId:stringType(),intent:stringType(),payload:recordType(unknownType()),timestamp:stringType()});objectType({agentId:stringType(),clappId:stringType(),version:numberType(),timestamp:stringType(),state:recordType(unknownType())});const AppEntrySchema=objectType({id:stringType(),name:stringType(),description:stringType().default(""),emoji:stringType().default("📦"),icon:stringType().default(""),tags:arrayType(stringType()).default([]),pinned:booleanType().default(!1)});objectType({agentId:stringType(),apps:arrayType(AppEntrySchema)});objectType({agentId:stringType(),viewId:stringType(),content:stringType()});const Card$1=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:cn("rounded-lg border border-border bg-card text-card-foreground shadow-sm",t),...a}));Card$1.displayName="Card";const CardHeader=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:cn("flex flex-col space-y-1.5 p-4 pb-2",t),...a}));CardHeader.displayName="CardHeader";const CardTitle=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("h3",{ref:l,className:cn("text-base font-semibold leading-none tracking-tight",t),...a}));CardTitle.displayName="CardTitle";const CardDescription=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("p",{ref:l,className:cn("text-sm text-muted-foreground",t),...a}));CardDescription.displayName="CardDescription";const CardContent=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:cn("p-4 pt-0",t),...a}));CardContent.displayName="CardContent";const CardFooter=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:cn("flex items-center p-4 pt-0",t),...a}));CardFooter.displayName="CardFooter";function Card({title:t,children:a}){return jsxRuntimeExports.jsxs(Card$1,{children:[t&&jsxRuntimeExports.jsx(CardHeader,{children:jsxRuntimeExports.jsx(CardTitle,{children:t})}),jsxRuntimeExports.jsx(CardContent,{className:t?"":"pt-4",children:a})]})}function Column({gap:t=2,children:a,className:l}){const u=`gap-${t}`;return jsxRuntimeExports.jsx("div",{className:cn("flex flex-col",u,l),children:a})}const alignMap={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justifyMap={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"};function Row({gap:t=2,align:a="center",justify:l="start",children:u,className:c}){return jsxRuntimeExports.jsx("div",{className:cn("flex flex-row",`gap-${t}`,alignMap[a],justifyMap[l],c),children:u})}const levelStyles={1:"text-2xl font-bold tracking-tight",2:"text-xl font-semibold tracking-tight",3:"text-lg font-semibold",4:"text-base font-medium",5:"text-sm font-medium",6:"text-sm font-medium text-muted-foreground"};function Heading({level:t=2,children:a,className:l}){const u=`h${t}`;return jsxRuntimeExports.jsx(u,{className:cn(levelStyles[t],l),children:a})}const Input=reactExports.forwardRef(({className:t,type:a,...l},u)=>jsxRuntimeExports.jsx("input",{type:a,className:cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:u,...l}));Input.displayName="Input";const FormContext=reactExports.createContext(null);function useFormContext(){const t=reactExports.useContext(FormContext);return t||{values:{},setValue:()=>{},reset:()=>{}}}function FormProvider({children:t}){const[a,l]=reactExports.useState({}),u=(f,d)=>{l(g=>({...g,[f]:d}))},c=()=>{l({})};return jsxRuntimeExports.jsx(FormContext.Provider,{value:{values:a,setValue:u,reset:c},children:t})}function TextInput({name:t,type:a="text",placeholder:l}){const{values:u,setValue:c}=useFormContext(),f=u[t]??"";return jsxRuntimeExports.jsx(Input,{type:a,name:t,placeholder:l,value:f,onChange:d=>c(t,d.target.value)})}function IntentFormInner({intent:t,submitLabel:a="Submit",children:l}){const{values:u,reset:c}=useFormContext(),{sendIntent:f}=useClappContext(),d=g=>{g.preventDefault(),f(t,u),c()};return jsxRuntimeExports.jsxs("form",{onSubmit:d,className:"flex flex-col gap-3",children:[l,jsxRuntimeExports.jsx(Button,{type:"submit",className:"self-start",children:a})]})}function IntentForm(t){return jsxRuntimeExports.jsx(FormProvider,{children:jsxRuntimeExports.jsx(IntentFormInner,{...t})})}function IntentButton({intent:t,payload:a={},variant:l="outline",size:u="default",children:c}){const{sendIntent:f}=useClappContext();return jsxRuntimeExports.jsx(Button,{variant:l,size:u,onClick:()=>f(t,a),children:c})}function Skeleton$1({className:t,...a}){return jsxRuntimeExports.jsx("div",{className:cn("animate-pulse rounded-md bg-muted",t),...a})}function Skeleton(){return jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[jsxRuntimeExports.jsx(Skeleton$1,{className:"h-4 w-4/5"}),jsxRuntimeExports.jsx(Skeleton$1,{className:"h-4 w-3/5"}),jsxRuntimeExports.jsx(Skeleton$1,{className:"h-4 w-4/5"})]})}function List({data:t,onItemClick:a,active:l,children:u,className:c}){const f=useClappState(t||"_empty_")??[],d=useClappState(l||"_empty_"),{emit:g}=useIntent();return t?f.length===0?jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground py-4 text-center",children:"No items"}):jsxRuntimeExports.jsx("ul",{className:cn("flex flex-col gap-1",c),children:f.map((m,h)=>{const x=typeof m=="object"&&m!==null,S=x?m:null,A=String(S?S.text??JSON.stringify(m):m),C=S!=null&&S.role?String(S.role):void 0,O=S!=null&&S.id?String(S.id):`${h}`,F=m===d;return jsxRuntimeExports.jsx("li",{className:cn("flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors",a&&"cursor-pointer",F?"bg-accent text-accent-foreground":"hover:bg-accent/50",C==="assistant"&&"bg-muted/50",C==="user"&&"bg-primary/10"),onClick:a?()=>g(a,x?m:{value:m}):void 0,role:a?"button":void 0,children:A},O)})}):jsxRuntimeExports.jsx("ul",{className:cn("flex flex-col gap-1",c),children:u})}function ListItem({active:t,children:a,className:l,onClick:u}){return jsxRuntimeExports.jsx("li",{className:cn("flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors cursor-pointer",t?"bg-accent text-accent-foreground":"hover:bg-accent/50",l),onClick:u,children:a})}function Conditional({when:t,children:a}){const l=(t==null?void 0:t.startsWith("!"))??!1,u=l?t.slice(1):t??"",c=useClappState(u||"_empty_");return(l?!c:!!c)?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:a}):null}function MarkdownContent({source:t,content:a,className:l}){const u=useClappState(t||"_empty_"),c=a??u??"";return c?jsxRuntimeExports.jsx("div",{className:cn("prose prose-invert prose-sm max-w-none",l),children:jsxRuntimeExports.jsx(Markdown,{components:{h1:({children:f})=>jsxRuntimeExports.jsx("h1",{className:"text-xl font-bold mt-4 mb-2",children:f}),h2:({children:f})=>jsxRuntimeExports.jsx("h2",{className:"text-lg font-semibold mt-3 mb-2",children:f}),h3:({children:f})=>jsxRuntimeExports.jsx("h3",{className:"text-base font-semibold mt-2 mb-1",children:f}),p:({children:f})=>jsxRuntimeExports.jsx("p",{className:"my-2 text-sm leading-relaxed",children:f}),ul:({children:f})=>jsxRuntimeExports.jsx("ul",{className:"list-disc list-inside my-2 text-sm",children:f}),ol:({children:f})=>jsxRuntimeExports.jsx("ol",{className:"list-decimal list-inside my-2 text-sm",children:f}),li:({children:f})=>jsxRuntimeExports.jsx("li",{className:"my-0.5",children:f}),code:({children:f,className:d})=>!d?jsxRuntimeExports.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs font-mono",children:f}):jsxRuntimeExports.jsx("code",{className:d,children:f}),pre:({children:f})=>jsxRuntimeExports.jsx("pre",{className:"bg-card border border-border rounded-md p-3 overflow-x-auto my-2 text-xs",children:f}),blockquote:({children:f})=>jsxRuntimeExports.jsx("blockquote",{className:"border-l-2 border-primary pl-3 my-2 text-muted-foreground italic",children:f}),a:({href:f,children:d})=>jsxRuntimeExports.jsx("a",{href:f,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:d}),strong:({children:f})=>jsxRuntimeExports.jsx("strong",{className:"font-semibold",children:f}),em:({children:f})=>jsxRuntimeExports.jsx("em",{className:"italic",children:f})},children:c})}):null}function Icon({name:t,emoji:a,className:l}){return a?jsxRuntimeExports.jsx("span",{className:cn("text-base leading-none",l),children:a}):t?jsxRuntimeExports.jsx("span",{className:cn("text-base leading-none",l),children:"•"}):null}const PROVIDER_CONFIGS=[{type:"anthropic",name:"Anthropic",description:"Claude models via API or subscription",authModes:[{mode:"api-key",label:"API Key",description:"Use your Anthropic API key (usage-based billing)",helpUrl:"https://console.anthropic.com/settings/keys",fields:[{name:"apiKey",label:"API Key",type:"password",placeholder:"sk-ant-api03-...",helpText:"Get your API key from the Anthropic Console"}]},{mode:"subscription",label:"Claude Subscription",description:"Use your Claude Pro/Max subscription",helpUrl:"https://docs.openclaw.ai/providers/anthropic#option-b-claude-setup-token",fields:[{name:"setupToken",label:"Setup Token",type:"textarea",placeholder:"Paste your setup token here...",helpText:"Run 'claude setup-token' in your terminal to generate this"}]}]},{type:"openai",name:"OpenAI",description:"GPT models via API or Codex subscription",authModes:[{mode:"api-key",label:"API Key",description:"Use your OpenAI API key (usage-based billing)",helpUrl:"https://platform.openai.com/api-keys",fields:[{name:"apiKey",label:"API Key",type:"password",placeholder:"sk-...",helpText:"Get your API key from the OpenAI dashboard"}]},{mode:"subscription",label:"Codex Subscription",description:"Use your ChatGPT Plus/Pro subscription via Codex",helpUrl:"https://docs.openclaw.ai/providers/openai#option-b-openai-code-codex-subscription",fields:[]}]},{type:"kimi-coding",name:"Kimi Coding",description:"Moonshot's Kimi K2 models for coding",authModes:[{mode:"api-key",label:"API Key",description:"Use your Kimi Coding API key",helpUrl:"https://platform.moonshot.cn/console/api-keys",fields:[{name:"apiKey",label:"API Key",type:"password",placeholder:"sk-...",helpText:"Get your API key from the Moonshot platform"}]}]}];function ProviderEditor({isOpen:t,onClose:a,editingProvider:l}){const{emit:u}=useIntent(),[c,f]=reactExports.useState("select"),[d,g]=reactExports.useState(null),[m,h]=reactExports.useState(null),[x,S]=reactExports.useState(""),[A,C]=reactExports.useState({}),[O,F]=reactExports.useState({}),[P,q]=reactExports.useState(!1),[ie,K]=reactExports.useState(null);reactExports.useEffect(()=>{if(t){if(l){g(l.type);const ee=l.authType==="subscription"||l.authType==="oauth"||l.mode==="oauth"?"subscription":"api-key";h(ee),S(l.name),f("configure")}else f("select"),g(null),h(null),S("");C({}),F({}),K(null),q(!1)}},[t,l]);const pe=d?PROVIDER_CONFIGS.find(ee=>ee.type===d):null,ye=pe&&m?pe.authModes.find(ee=>ee.mode===m):null,$=ee=>{g(ee);const Ae=PROVIDER_CONFIGS.find(xe=>xe.type===ee);Ae&&(h(Ae.authModes[0].mode),S(Ae.name)),f("configure")},be=(ee,Ae)=>{C(xe=>({...xe,[ee]:Ae})),K(null)},ue=ee=>{F(Ae=>({...Ae,[ee]:!Ae[ee]}))},ke=async()=>{var ee,Ae;if(!(!d||!m||!pe)){if(ye!=null&&ye.fields.length){for(const xe of ye.fields)if(!((ee=A[xe.name])!=null&&ee.trim())){K(`${xe.label} is required`);return}}q(!0),K(null);try{const xe=getIntentName(d,m),he={customName:x.trim()||pe.name,profileId:l==null?void 0:l.id};for(const H of(ye==null?void 0:ye.fields)??[])he[H.name]=(Ae=A[H.name])==null?void 0:Ae.trim();u(xe,he),await new Promise(H=>setTimeout(H,1e3)),a()}catch(xe){K(xe instanceof Error?xe.message:"Failed to save provider")}finally{q(!1)}}},Z=()=>{d&&(q(!0),u("settings.startOAuth",{provider:d==="openai"?"openai-codex":d,customName:x.trim()||(pe==null?void 0:pe.name)}))},ve=()=>{l&&confirm(`Delete "${l.name}"? This cannot be undone.`)&&(u("settings.deleteProvider",{profileId:l.id}),a())};return t?jsxRuntimeExports.jsxs("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:a}),jsxRuntimeExports.jsxs("div",{className:"relative w-full sm:max-w-md bg-background rounded-t-2xl sm:rounded-2xl shadow-xl max-h-[90vh] overflow-hidden flex flex-col animate-in slide-in-from-bottom-4 sm:slide-in-from-bottom-0 sm:zoom-in-95",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0",children:[jsxRuntimeExports.jsx("h2",{className:"text-lg font-semibold",children:l?"Edit Provider":"Add Provider"}),jsxRuntimeExports.jsx("button",{onClick:a,className:"p-1 rounded-full hover:bg-muted transition-colors","aria-label":"Close",children:jsxRuntimeExports.jsx(X,{className:"h-5 w-5"})})]}),jsxRuntimeExports.jsxs("div",{className:"flex-1 overflow-y-auto p-4",children:[c==="select"&&jsxRuntimeExports.jsxs("div",{className:"space-y-3",children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Choose a provider to add:"}),PROVIDER_CONFIGS.map(ee=>jsxRuntimeExports.jsxs("button",{onClick:()=>$(ee.type),className:"w-full text-left p-4 rounded-lg border border-border hover:border-primary hover:bg-muted/50 transition-colors",children:[jsxRuntimeExports.jsx("div",{className:"font-medium",children:ee.name}),jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground",children:ee.description})]},ee.type))]}),c==="configure"&&pe&&jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Display Name"}),jsxRuntimeExports.jsx("input",{type:"text",value:x,onChange:ee=>S(ee.target.value),placeholder:pe.name,className:"w-full h-10 px-3 rounded-md border border-input bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground",children:'Give this configuration a custom name (e.g., "Work Account", "Personal")'})]}),pe.authModes.length>1&&jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Authentication Method"}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-2 gap-2",children:pe.authModes.map(ee=>jsxRuntimeExports.jsxs("button",{onClick:()=>h(ee.mode),className:cn("p-3 rounded-lg border text-left transition-colors",m===ee.mode?"border-primary bg-primary/10":"border-border hover:border-muted-foreground"),children:[jsxRuntimeExports.jsx("div",{className:"text-sm font-medium",children:ee.label}),jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:ee.description})]},ee.mode))})]}),ye&&jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[ye.fields.length>0?ye.fields.map(ee=>jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:ee.label}),(l==null?void 0:l.maskedCredential)&&!A[ee.name]&&jsxRuntimeExports.jsxs("div",{className:"text-xs text-muted-foreground bg-muted/50 px-2 py-1 rounded mb-1",children:["Current: ",l.maskedCredential]}),ee.type==="textarea"?jsxRuntimeExports.jsx("textarea",{value:A[ee.name]??"",onChange:Ae=>be(ee.name,Ae.target.value),placeholder:l?"Enter new value to replace...":ee.placeholder,rows:4,className:"w-full px-3 py-2 rounded-md border border-input bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary resize-none"}):jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("input",{type:ee.type==="password"&&!O[ee.name]?"password":"text",value:A[ee.name]??"",onChange:Ae=>be(ee.name,Ae.target.value),placeholder:l?"Enter new value to replace...":ee.placeholder,className:"w-full h-10 px-3 pr-10 rounded-md border border-input bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),ee.type==="password"&&jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>ue(ee.name),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 text-muted-foreground hover:text-foreground",children:O[ee.name]?jsxRuntimeExports.jsx(EyeOff,{className:"h-4 w-4"}):jsxRuntimeExports.jsx(Eye,{className:"h-4 w-4"})})]}),ee.helpText&&jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground",children:ee.helpText})]},ee.name)):jsxRuntimeExports.jsxs("div",{className:"space-y-3",children:[jsxRuntimeExports.jsxs("p",{className:"text-sm text-muted-foreground",children:["Click the button below to sign in with your ",pe.name," account."]}),jsxRuntimeExports.jsx(Button,{onClick:Z,disabled:P,className:"w-full",children:P?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin mr-2"}),"Connecting..."]}):`Sign in with ${pe.name}`})]}),ye.helpUrl&&jsxRuntimeExports.jsxs("a",{href:ye.helpUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-primary hover:underline",children:["Learn more",jsxRuntimeExports.jsx(ExternalLink,{className:"h-3 w-3"})]})]}),ie&&jsxRuntimeExports.jsx("div",{className:"p-3 rounded-md bg-destructive/10 text-destructive text-sm",children:ie})]})]}),c==="configure"&&(ye==null?void 0:ye.fields.length)!==0&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-t border-border shrink-0",children:[l&&jsxRuntimeExports.jsx(Button,{variant:"destructive",onClick:ve,disabled:P,className:"mr-auto",children:"Delete"}),jsxRuntimeExports.jsx(Button,{variant:"outline",onClick:()=>l?a():f("select"),disabled:P,children:l?"Cancel":"Back"}),jsxRuntimeExports.jsx(Button,{onClick:ke,disabled:P,children:P?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin mr-2"}),"Saving..."]}):l?"Update":"Add Provider"})]})]})]}):null}function getIntentName(t,a){var u;return((u={anthropic:{"api-key":"settings.setAnthropicKey",subscription:"settings.setClaudeToken"},openai:{"api-key":"settings.setOpenAIKey",subscription:"settings.startOAuth"},"kimi-coding":{"api-key":"settings.setKimiCodingKey",subscription:"settings.setKimiCodingKey"}}[t])==null?void 0:u[a])??"settings.addProvider"}function getProviderIdentifier(t){const[,a]=t.split(":");return a||t}function providerOptionLabel(t){return`${t.name} · ${getProviderIdentifier(t.id)}`}function ProviderList({data:t="configuredProviders"}){const a=useClappState(t)??[],l=useClappState("active.model")??"",{emit:u}=useIntent(),c=a.find(Z=>Z.active)??a[0],[f,d]=reactExports.useState((c==null?void 0:c.id)??""),[g,m]=reactExports.useState(l??""),[h,x]=reactExports.useState(!1),[S,A]=reactExports.useState(!1),[C,O]=reactExports.useState(!1),[F,P]=reactExports.useState(null),q=f!==((c==null?void 0:c.id)??"")||g!==(l??"");reactExports.useEffect(()=>{c&&(!f||h)&&d(c.id)},[c,h,f]),reactExports.useEffect(()=>{l&&(!g||h||!q)&&m(l)},[l,h,g,q]);const ie=reactExports.useMemo(()=>{const Z=a.find(ve=>ve.id===f);return(Z==null?void 0:Z.models)??[]},[a,f]);reactExports.useEffect(()=>{if(!ie.length)return;ie.some(ve=>ve.id===g)||m(ie[0].id)},[ie,g]);const K=!!(g&&g!==l);reactExports.useEffect(()=>{h&&l===g&&l.length>0&&(x(!1),A(!1))},[l,g,h]),reactExports.useEffect(()=>{if(!h)return;const Z=setTimeout(()=>A(!0),1e4);return()=>clearTimeout(Z)},[h]);const pe=a.find(Z=>Z.id===f),ye=Z=>{var Ae,xe;if(h)return;d(Z);const ve=a.find(he=>he.id===Z),ee=(xe=(Ae=ve==null?void 0:ve.models)==null?void 0:Ae[0])==null?void 0:xe.id;m(ee||"")},$=()=>{!K||!g||h||(x(!0),A(!1),u("settings.setActiveModel",{model:g}))},be=()=>{P(null),O(!0)},ue=Z=>{const ve=Z.id.split(":")[0],ee={anthropic:"anthropic",openai:"openai","openai-codex":"openai","kimi-coding":"kimi-coding",moonshot:"kimi-coding"};P({id:Z.id,name:Z.name,type:ee[ve]??"anthropic",mode:Z.mode,authType:Z.authType,maskedCredential:Z.maskedCredential}),O(!0)},ke=()=>{O(!1),P(null)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-1",children:[jsxRuntimeExports.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"System Default"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium",children:"Default model for new sessions"})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-2",children:[jsxRuntimeExports.jsx("label",{className:"text-xs text-muted-foreground",children:"Provider"}),jsxRuntimeExports.jsxs("div",{className:"relative flex gap-2",children:[jsxRuntimeExports.jsxs("div",{className:"relative flex-1",children:[jsxRuntimeExports.jsx("select",{value:f,onChange:Z=>ye(Z.target.value),disabled:h||a.length===0,className:"h-10 w-full appearance-none rounded-md border border-input bg-background pl-3 pr-10 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-primary disabled:opacity-70",children:a.length===0?jsxRuntimeExports.jsx("option",{value:"",children:"No providers configured"}):a.map(Z=>jsxRuntimeExports.jsx("option",{value:Z.id,children:providerOptionLabel(Z)},Z.id))}),jsxRuntimeExports.jsx(ChevronDown,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none"})]}),pe&&jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>ue(pe),disabled:h,className:cn("flex items-center justify-center h-10 w-10 rounded-md border border-input bg-background","hover:bg-muted transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),title:`Edit ${pe.name}`,children:jsxRuntimeExports.jsx(Pencil,{className:"h-4 w-4"})})]})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-2",children:[jsxRuntimeExports.jsx("label",{className:"text-xs text-muted-foreground",children:"Model"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("select",{value:g,onChange:Z=>m(Z.target.value),disabled:h||ie.length===0,className:"h-10 w-full appearance-none rounded-md border border-input bg-background pl-3 pr-10 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-primary disabled:opacity-70",children:ie.length===0?jsxRuntimeExports.jsx("option",{value:"",children:"No models available"}):ie.map(Z=>jsxRuntimeExports.jsx("option",{value:Z.id,children:Z.label},Z.id))}),jsxRuntimeExports.jsx(ChevronDown,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none"})]})]}),pe&&jsxRuntimeExports.jsxs("div",{className:"rounded-md border border-border bg-muted/30 px-3 py-2 text-xs text-muted-foreground",children:[jsxRuntimeExports.jsxs("div",{children:[providerOptionLabel(pe),": ",pe.maskedCredential??"No credential"]}),jsxRuntimeExports.jsxs("div",{className:"opacity-70",children:["id: ",pe.id]})]}),jsxRuntimeExports.jsx("button",{type:"button",onClick:$,disabled:!K||!g||h,className:cn("inline-flex h-10 items-center justify-center gap-2 rounded-md border px-4 text-sm font-medium transition-colors","border-primary bg-primary text-primary-foreground hover:bg-primary/90","disabled:cursor-not-allowed disabled:opacity-60"),children:h?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin"}),S?"Still applying…":"Updating model…"]}):K?"Save changes":jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Check,{className:"h-4 w-4"}),"Up to date"]})}),jsxRuntimeExports.jsx("div",{className:"pt-2 border-t border-border",children:jsxRuntimeExports.jsxs("button",{type:"button",onClick:be,className:cn("inline-flex h-10 w-full items-center justify-center gap-2 rounded-md border border-dashed border-border","text-sm font-medium text-muted-foreground","hover:border-primary hover:text-foreground hover:bg-muted/50 transition-colors"),children:[jsxRuntimeExports.jsx(Plus,{className:"h-4 w-4"}),"Add Provider"]})})]}),jsxRuntimeExports.jsx(ProviderEditor,{isOpen:C,onClose:ke,editingProvider:F})]})}function SessionList(){const t=useClappState("sessions"),a=(t==null?void 0:t.sessions)??[];t==null||t.globalModel;const{emit:l}=useIntent(),[u,c]=reactExports.useState(!1),[f,d]=reactExports.useState(null),[g,m]=reactExports.useState(!1);reactExports.useEffect(()=>{l("settings.listSessions",{})},[l]);const h=()=>{c(!0),l("settings.listSessions",{}),setTimeout(()=>c(!1),1500)},x=C=>{d(C),l("settings.resetSessionModel",{sessionKey:C}),setTimeout(()=>d(null),2e3)},S=()=>{m(!0),l("settings.applyDefaultToAll",{}),setTimeout(()=>m(!1),3e3)},A=a.filter(C=>C.isOverride).length;return a.length===0?jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsx("div",{className:"space-y-1",children:jsxRuntimeExports.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Active Sessions"})}),jsxRuntimeExports.jsx("button",{onClick:h,disabled:u,className:"p-1.5 rounded-md hover:bg-muted transition-colors disabled:opacity-50",title:"Refresh sessions",children:jsxRuntimeExports.jsx(RefreshCw,{className:cn("h-4 w-4",u&&"animate-spin")})})]}),jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground py-4 text-center border border-dashed border-border rounded-md",children:"No active sessions found"})]}):jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-1",children:[jsxRuntimeExports.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Active Sessions"}),jsxRuntimeExports.jsxs("p",{className:"text-sm text-muted-foreground",children:[a.length," session",a.length!==1?"s":"",A>0&&jsxRuntimeExports.jsxs("span",{className:"text-amber-500 ml-1",children:["• ",A," override",A!==1?"s":""]})]})]}),jsxRuntimeExports.jsx("button",{onClick:h,disabled:u,className:"p-1.5 rounded-md hover:bg-muted transition-colors disabled:opacity-50",title:"Refresh sessions",children:jsxRuntimeExports.jsx(RefreshCw,{className:cn("h-4 w-4",u&&"animate-spin")})})]}),jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-2",children:a.map(C=>jsxRuntimeExports.jsxs("div",{className:cn("flex items-start justify-between gap-2 p-3 rounded-lg border",C.isOverride?"border-amber-500/50 bg-amber-500/5":"border-border bg-muted/30"),children:[jsxRuntimeExports.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[C.isOverride?jsxRuntimeExports.jsx(TriangleAlert,{className:"h-4 w-4 text-amber-500 shrink-0"}):jsxRuntimeExports.jsx(Check,{className:"h-4 w-4 text-green-500 shrink-0"}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium truncate",children:C.label})]}),jsxRuntimeExports.jsxs("div",{className:"mt-1 ml-6",children:[jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground",children:C.modelLabel}),C.isOverride&&jsxRuntimeExports.jsx("span",{className:"text-xs text-amber-500 ml-2",children:"(override)"})]})]}),C.isOverride&&jsxRuntimeExports.jsx("button",{onClick:()=>x(C.key),disabled:f===C.key,className:cn("shrink-0 px-2 py-1 text-xs rounded-md border border-border","hover:bg-muted transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),title:"Reset to system default",children:f===C.key?jsxRuntimeExports.jsx(LoaderCircle,{className:"h-3 w-3 animate-spin"}):jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntimeExports.jsx(RotateCcw,{className:"h-3 w-3"}),"Reset"]})})]},C.key))}),A>0&&jsxRuntimeExports.jsx("button",{onClick:S,disabled:g,className:cn("w-full py-2 px-4 text-sm font-medium rounded-md","border border-amber-500/50 text-amber-600 dark:text-amber-400","hover:bg-amber-500/10 transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),children:g?jsxRuntimeExports.jsxs("span",{className:"flex items-center justify-center gap-2",children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin"}),"Applying to all sessions..."]}):`Apply default to all ${A} override${A!==1?"s":""}`})]})}const componentMap={Column,Row,Heading,IntentButton,Icon,List,ListItem,Conditional,Skeleton,MarkdownContent,Card,TextInput,IntentForm,ProviderList,SessionList};function LayoutNodeRenderer({node:t,moduleMap:a}){if(t.component==="Module"&&t.props.ref&&a){const c=String(t.props.ref),f=a.get(c);return f?jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:f,moduleMap:a}):jsxRuntimeExports.jsxs("div",{className:"text-destructive text-sm p-2",children:["Module not found: ",c]})}const l=componentMap[t.component];if(!l)return jsxRuntimeExports.jsxs("div",{className:"text-destructive text-sm p-2",children:["Unknown component: ",t.component]});const u=t.children.map((c,f)=>typeof c=="string"?jsxRuntimeExports.jsx("span",{children:c},f):jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:c,moduleMap:a},f));return jsxRuntimeExports.jsx(l,{...t.props,children:u})}function AppRenderer({spec:t,modules:a}){const l=reactExports.useMemo(()=>{const u=new Map;for(const c of a)u.set(`${c.domain}/${c.name}`,c.layout);return u},[a]);return jsxRuntimeExports.jsx("div",{className:"h-full overflow-y-auto p-4","data-app":t.name,children:jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:t.layout,moduleMap:l})})}function ClappRenderer({clappId:t,transport:a}){const l=window.location.origin;return jsxRuntimeExports.jsx(ClappProvider,{serverUrl:l,clappId:t,transport:a,children:jsxRuntimeExports.jsx("div",{className:"flex flex-col h-full",children:jsxRuntimeExports.jsx(DynamicView,{clappId:t,transport:a})})})}function DynamicView({clappId:t,transport:a}){const[l,u]=reactExports.useState({status:"loading"}),c=reactExports.useCallback(async()=>{try{const f=await a.fetchView(`${t}.app`);if(!f){u({status:"no-view"});return}const d=parseAppMd(f),m=(await Promise.all(d.modules.map(async h=>{const x=h.replace("/","."),S=await a.fetchView(`${x}.view`);return S?parseViewMd(S):null}))).filter(h=>h!==null);u({status:"ready",appSpec:d,modules:m})}catch(f){u({status:"error",message:f instanceof Error?f.message:"Failed to load views"})}},[t,a]);switch(reactExports.useEffect(()=>(c(),a.onView(d=>{(d===`${t}.app`||d.endsWith(".view"))&&c()})),[c,a,t]),l.status){case"loading":return jsxRuntimeExports.jsx("div",{className:"h-full p-4 animate-pulse",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"h-8 w-40 rounded-md bg-muted"}),jsxRuntimeExports.jsxs("div",{className:"rounded-xl border border-border p-4 space-y-3",children:[jsxRuntimeExports.jsx("div",{className:"h-4 w-32 rounded bg-muted"}),jsxRuntimeExports.jsx("div",{className:"h-10 w-full rounded bg-muted"}),jsxRuntimeExports.jsx("div",{className:"h-10 w-full rounded bg-muted"}),jsxRuntimeExports.jsx("div",{className:"h-10 w-36 rounded bg-muted"})]}),jsxRuntimeExports.jsxs("div",{className:"rounded-xl border border-border p-4 space-y-3",children:[jsxRuntimeExports.jsx("div",{className:"h-4 w-28 rounded bg-muted"}),jsxRuntimeExports.jsx("div",{className:"h-20 w-full rounded bg-muted"})]})]})});case"no-view":return jsxRuntimeExports.jsx(StateInspector,{});case"error":return jsxRuntimeExports.jsxs("div",{className:"p-4",children:[jsxRuntimeExports.jsx("div",{className:"p-3 bg-destructive/10 text-destructive rounded-md text-sm",children:l.message}),jsxRuntimeExports.jsx("div",{className:"mt-4",children:jsxRuntimeExports.jsx(StateInspector,{})})]});case"ready":return jsxRuntimeExports.jsx(AppRenderer,{spec:l.appSpec,modules:l.modules})}}function StateInspector(){return jsxRuntimeExports.jsxs("div",{className:"p-4",children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground mb-3 italic",children:"No view definition found. Showing raw state:"}),jsxRuntimeExports.jsx(StateTree,{})]})}function StateTree(){const{store:t}=useClappContext(),a=useStore(t,u=>u.state);return useClappLoading()?jsxRuntimeExports.jsx("div",{className:"text-muted-foreground text-sm",children:"Waiting for state..."}):!a||Object.keys(a).length===0?jsxRuntimeExports.jsx("div",{className:"text-muted-foreground text-sm",children:"No state available."}):jsxRuntimeExports.jsx("div",{className:"font-mono text-xs leading-relaxed",children:renderEntries(a,"")})}function renderEntries(t,a){return Object.entries(t).map(([l,u])=>{const c=a?`${a}.${l}`:l;return u!==null&&typeof u=="object"&&!Array.isArray(u)?jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-muted-foreground font-semibold",children:c}),jsxRuntimeExports.jsx("div",{className:"pl-4",children:renderEntries(u,c)})]},c):jsxRuntimeExports.jsxs("div",{className:"flex gap-2 py-0.5",children:[jsxRuntimeExports.jsxs("span",{className:"text-muted-foreground",children:[c,":"]}),jsxRuntimeExports.jsx("span",{children:typeof u=="string"?u:JSON.stringify(u)})]},c)})}function getServerUrl(){return window.location.origin}function App(){const[t,a]=reactExports.useState(null),[l,u]=reactExports.useState([]),c=reactExports.useRef(void 0);c.current||(c.current=new ClappTransport({serverUrl:getServerUrl(),context:{platform:"web"}}));const f=c.current;reactExports.useEffect(()=>{f.connect();const h=f.onApps(x=>{u(x)});return f.fetchApps().then(u).catch(()=>{}),()=>{h(),f.disconnect()}},[f]);const d=reactExports.useCallback(h=>{a(h)},[]),g=reactExports.useCallback(()=>{a(null)},[]),m=l.find(h=>h.id===t);return jsxRuntimeExports.jsxs("div",{className:"relative h-screen overflow-hidden bg-background",children:[jsxRuntimeExports.jsxs("div",{className:cn("absolute inset-0 flex flex-col overflow-y-auto transition-all duration-300 ease-out z-10",t&&"translate-x-[-30%] opacity-0 pointer-events-none"),children:[jsxRuntimeExports.jsx("header",{className:"flex items-center justify-center px-4 py-3 border-b border-border shrink-0",children:jsxRuntimeExports.jsx("h1",{className:"text-lg font-bold tracking-tight",children:"clapps"})}),jsxRuntimeExports.jsx(HomeScreen,{apps:l,transport:f,onOpenApp:d})]}),jsxRuntimeExports.jsxs("div",{className:cn("absolute inset-0 flex flex-col overflow-hidden transition-all duration-300 ease-out z-20",t?"translate-x-0 opacity-100":"translate-x-full opacity-0 pointer-events-none"),children:[jsxRuntimeExports.jsxs("header",{className:"flex items-center px-4 py-3 border-b border-border shrink-0 min-h-[52px]",children:[jsxRuntimeExports.jsxs("button",{onClick:g,className:"flex items-center gap-0.5 text-primary text-sm font-medium -ml-1 pr-2","aria-label":"Back to home",children:[jsxRuntimeExports.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"shrink-0",children:jsxRuntimeExports.jsx("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"Home"]}),jsxRuntimeExports.jsx("div",{className:"flex-1 text-center",children:jsxRuntimeExports.jsxs("span",{className:"text-sm font-semibold",children:[(m==null?void 0:m.emoji)&&jsxRuntimeExports.jsx("span",{className:"mr-1.5",children:m.emoji}),(m==null?void 0:m.name)??t]})}),jsxRuntimeExports.jsx("div",{className:"w-[60px]"})]}),t&&jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-hidden",children:jsxRuntimeExports.jsx(ClappRenderer,{clappId:t,transport:f})})]})]})}clientExports.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));
|
|
244
|
+
`))+1))}const d="#".repeat(c),g=l.enter("headingAtx"),h=l.enter("phrasing");f.move(d+" ");let m=l.containerPhrasing(t,{before:"# ",after:`
|
|
245
|
+
`,...f.current()});return/^[\t ]/.test(m)&&(m=encodeCharacterReference(m.charCodeAt(0))+m.slice(1)),m=m?d+" "+m:d,l.options.closeAtx&&(m+=" "+d),h(),g(),m}html.peek=htmlPeek;function html(t){return t.value||""}function htmlPeek(){return"<"}image.peek=imagePeek;function image(t,a,l,u){const c=checkQuote(l),f=c==='"'?"Quote":"Apostrophe",d=l.enter("image");let g=l.enter("label");const h=l.createTracker(u);let m=h.move("![");return m+=h.move(l.safe(t.alt,{before:m,after:"]",...h.current()})),m+=h.move("]("),g(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(g=l.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(l.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(g=l.enter("destinationRaw"),m+=h.move(l.safe(t.url,{before:m,after:t.title?" ":")",...h.current()}))),g(),t.title&&(g=l.enter(`title${f}`),m+=h.move(" "+c),m+=h.move(l.safe(t.title,{before:m,after:c,...h.current()})),m+=h.move(c),g()),m+=h.move(")"),d(),m}function imagePeek(){return"!"}imageReference.peek=imageReferencePeek;function imageReference(t,a,l,u){const c=t.referenceType,f=l.enter("imageReference");let d=l.enter("label");const g=l.createTracker(u);let h=g.move("![");const m=l.safe(t.alt,{before:h,after:"]",...g.current()});h+=g.move(m+"]["),d();const x=l.stack;l.stack=[],d=l.enter("reference");const S=l.safe(l.associationId(t),{before:h,after:"]",...g.current()});return d(),l.stack=x,f(),c==="full"||!m||m!==S?h+=g.move(S+"]"):c==="shortcut"?h=h.slice(0,-1):h+=g.move("]"),h}function imageReferencePeek(){return"!"}inlineCode.peek=inlineCodePeek;function inlineCode(t,a,l){let u=t.value||"",c="`",f=-1;for(;new RegExp("(^|[^`])"+c+"([^`]|$)").test(u);)c+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++f<l.unsafe.length;){const d=l.unsafe[f],g=l.compilePattern(d);let h;if(d.atBreak)for(;h=g.exec(u);){let m=h.index;u.charCodeAt(m)===10&&u.charCodeAt(m-1)===13&&m--,u=u.slice(0,m)+" "+u.slice(h.index+1)}}return c+u+c}function inlineCodePeek(){return"`"}function formatLinkAsAutolink(t,a){const l=toString$1(t);return!!(!a.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(l===t.url||"mailto:"+l===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}link.peek=linkPeek;function link(t,a,l,u){const c=checkQuote(l),f=c==='"'?"Quote":"Apostrophe",d=l.createTracker(u);let g,h;if(formatLinkAsAutolink(t,l)){const x=l.stack;l.stack=[],g=l.enter("autolink");let S=d.move("<");return S+=d.move(l.containerPhrasing(t,{before:S,after:">",...d.current()})),S+=d.move(">"),g(),l.stack=x,S}g=l.enter("link"),h=l.enter("label");let m=d.move("[");return m+=d.move(l.containerPhrasing(t,{before:m,after:"](",...d.current()})),m+=d.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=l.enter("destinationLiteral"),m+=d.move("<"),m+=d.move(l.safe(t.url,{before:m,after:">",...d.current()})),m+=d.move(">")):(h=l.enter("destinationRaw"),m+=d.move(l.safe(t.url,{before:m,after:t.title?" ":")",...d.current()}))),h(),t.title&&(h=l.enter(`title${f}`),m+=d.move(" "+c),m+=d.move(l.safe(t.title,{before:m,after:c,...d.current()})),m+=d.move(c),h()),m+=d.move(")"),g(),m}function linkPeek(t,a,l){return formatLinkAsAutolink(t,l)?"<":"["}linkReference.peek=linkReferencePeek;function linkReference(t,a,l,u){const c=t.referenceType,f=l.enter("linkReference");let d=l.enter("label");const g=l.createTracker(u);let h=g.move("[");const m=l.containerPhrasing(t,{before:h,after:"]",...g.current()});h+=g.move(m+"]["),d();const x=l.stack;l.stack=[],d=l.enter("reference");const S=l.safe(l.associationId(t),{before:h,after:"]",...g.current()});return d(),l.stack=x,f(),c==="full"||!m||m!==S?h+=g.move(S+"]"):c==="shortcut"?h=h.slice(0,-1):h+=g.move("]"),h}function linkReferencePeek(){return"["}function checkBullet(t){const a=t.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function checkBulletOther(t){const a=checkBullet(t),l=t.options.bulletOther;if(!l)return a==="*"?"-":"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(l===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+l+"`) to be different");return l}function checkBulletOrdered(t){const a=t.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function checkRule(t){const a=t.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function list(t,a,l,u){const c=l.enter("list"),f=l.bulletCurrent;let d=t.ordered?checkBulletOrdered(l):checkBullet(l);const g=t.ordered?d==="."?")":".":checkBulletOther(l);let h=a&&l.bulletLastUsed?d===l.bulletLastUsed:!1;if(!t.ordered){const x=t.children?t.children[0]:void 0;if((d==="*"||d==="-")&&x&&(!x.children||!x.children[0])&&l.stack[l.stack.length-1]==="list"&&l.stack[l.stack.length-2]==="listItem"&&l.stack[l.stack.length-3]==="list"&&l.stack[l.stack.length-4]==="listItem"&&l.indexStack[l.indexStack.length-1]===0&&l.indexStack[l.indexStack.length-2]===0&&l.indexStack[l.indexStack.length-3]===0&&(h=!0),checkRule(l)===d&&x){let S=-1;for(;++S<t.children.length;){const A=t.children[S];if(A&&A.type==="listItem"&&A.children&&A.children[0]&&A.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(d=g),l.bulletCurrent=d;const m=l.containerFlow(t,u);return l.bulletLastUsed=d,l.bulletCurrent=f,c(),m}function checkListItemIndent(t){const a=t.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function listItem(t,a,l,u){const c=checkListItemIndent(l);let f=l.bulletCurrent||checkBullet(l);a&&a.type==="list"&&a.ordered&&(f=(typeof a.start=="number"&&a.start>-1?a.start:1)+(l.options.incrementListMarker===!1?0:a.children.indexOf(t))+f);let d=f.length+1;(c==="tab"||c==="mixed"&&(a&&a.type==="list"&&a.spread||t.spread))&&(d=Math.ceil(d/4)*4);const g=l.createTracker(u);g.move(f+" ".repeat(d-f.length)),g.shift(d);const h=l.enter("listItem"),m=l.indentLines(l.containerFlow(t,g.current()),x);return h(),m;function x(S,A,C){return A?(C?"":" ".repeat(d))+S:(C?f:f+" ".repeat(d-f.length))+S}}function paragraph(t,a,l,u){const c=l.enter("paragraph"),f=l.enter("phrasing"),d=l.containerPhrasing(t,u);return f(),c(),d}const phrasing=convert(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function root(t,a,l,u){return(t.children.some(function(d){return phrasing(d)})?l.containerPhrasing:l.containerFlow).call(l,t,u)}function checkStrong(t){const a=t.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}strong.peek=strongPeek;function strong(t,a,l,u){const c=checkStrong(l),f=l.enter("strong"),d=l.createTracker(u),g=d.move(c+c);let h=d.move(l.containerPhrasing(t,{after:c,before:g,...d.current()}));const m=h.charCodeAt(0),x=encodeInfo(u.before.charCodeAt(u.before.length-1),m,c);x.inside&&(h=encodeCharacterReference(m)+h.slice(1));const S=h.charCodeAt(h.length-1),A=encodeInfo(u.after.charCodeAt(0),S,c);A.inside&&(h=h.slice(0,-1)+encodeCharacterReference(S));const C=d.move(c+c);return f(),l.attentionEncodeSurroundingInfo={after:A.outside,before:x.outside},g+h+C}function strongPeek(t,a,l){return l.options.strong||"*"}function text$1(t,a,l,u){return l.safe(t.value,u)}function checkRuleRepetition(t){const a=t.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function thematicBreak(t,a,l){const u=(checkRule(l)+(l.options.ruleSpaces?" ":"")).repeat(checkRuleRepetition(l));return l.options.ruleSpaces?u.slice(0,-1):u}const handle={blockquote,break:hardBreak,code:code$1,definition,emphasis,hardBreak,heading,html,image,imageReference,inlineCode,link,linkReference,list,listItem,paragraph,root,strong,text:text$1,thematicBreak};function gfmTableFromMarkdown(){return{enter:{table:enterTable,tableData:enterCell,tableHeader:enterCell,tableRow:enterRow},exit:{codeText:exitCodeText,table:exitTable,tableData:exit,tableHeader:exit,tableRow:exit}}}function enterTable(t){const a=t._align;this.enter({type:"table",align:a.map(function(l){return l==="none"?null:l}),children:[]},t),this.data.inTable=!0}function exitTable(t){this.exit(t),this.data.inTable=void 0}function enterRow(t){this.enter({type:"tableRow",children:[]},t)}function exit(t){this.exit(t)}function enterCell(t){this.enter({type:"tableCell",children:[]},t)}function exitCodeText(t){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,replace));const l=this.stack[this.stack.length-1];l.type,l.value=a,this.exit(t)}function replace(t,a){return a==="|"?a:t}function gfmTableToMarkdown(t){const a=t||{},l=a.tableCellPadding,u=a.tablePipeAlign,c=a.stringLength,f=l?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
246
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:A,table:d,tableCell:h,tableRow:g}};function d(C,O,Z,P){return m(x(C,Z,P),C.align)}function g(C,O,Z,P){const q=S(C,Z,P),ne=m([q]);return ne.slice(0,ne.indexOf(`
|
|
247
|
+
`))}function h(C,O,Z,P){const q=Z.enter("tableCell"),ne=Z.enter("phrasing"),Y=Z.containerPhrasing(C,{...P,before:f,after:f});return ne(),q(),Y}function m(C,O){return markdownTable(C,{align:O,alignDelimiters:u,padding:l,stringLength:c})}function x(C,O,Z){const P=C.children;let q=-1;const ne=[],Y=O.enter("table");for(;++q<P.length;)ne[q]=S(P[q],O,Z);return Y(),ne}function S(C,O,Z){const P=C.children;let q=-1;const ne=[],Y=O.enter("tableRow");for(;++q<P.length;)ne[q]=h(P[q],C,O,Z);return Y(),ne}function A(C,O,Z){let P=handle.inlineCode(C,O,Z);return Z.stack.includes("tableCell")&&(P=P.replace(/\|/g,"\\$&")),P}}function gfmTaskListItemFromMarkdown(){return{exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}}}function gfmTaskListItemToMarkdown(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}}}function exitCheck(t){const a=this.stack[this.stack.length-2];a.type,a.checked=t.type==="taskListCheckValueChecked"}function exitParagraphWithTaskListItem(t){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const l=this.stack[this.stack.length-1];l.type;const u=l.children[0];if(u&&u.type==="text"){const c=a.children;let f=-1,d;for(;++f<c.length;){const g=c[f];if(g.type==="paragraph"){d=g;break}}d===l&&(u.value=u.value.slice(1),u.value.length===0?l.children.shift():l.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,l.position.start=Object.assign({},u.position.start)))}}this.exit(t)}function listItemWithTaskListItem(t,a,l,u){const c=t.children[0],f=typeof t.checked=="boolean"&&c&&c.type==="paragraph",d="["+(t.checked?"x":" ")+"] ",g=l.createTracker(u);f&&g.move(d);let h=handle.listItem(t,a,l,{...u,...g.current()});return f&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(x){return x+d}}function gfmFromMarkdown(){return[gfmAutolinkLiteralFromMarkdown(),gfmFootnoteFromMarkdown(),gfmStrikethroughFromMarkdown(),gfmTableFromMarkdown(),gfmTaskListItemFromMarkdown()]}function gfmToMarkdown(t){return{extensions:[gfmAutolinkLiteralToMarkdown(),gfmFootnoteToMarkdown(t),gfmStrikethroughToMarkdown(),gfmTableToMarkdown(t),gfmTaskListItemToMarkdown()]}}const wwwPrefix={tokenize:tokenizeWwwPrefix,partial:!0},domain={tokenize:tokenizeDomain,partial:!0},path={tokenize:tokenizePath,partial:!0},trail={tokenize:tokenizeTrail,partial:!0},emailDomainDotTrail={tokenize:tokenizeEmailDomainDotTrail,partial:!0},wwwAutolink={name:"wwwAutolink",tokenize:tokenizeWwwAutolink,previous:previousWww},protocolAutolink={name:"protocolAutolink",tokenize:tokenizeProtocolAutolink,previous:previousProtocol},emailAutolink={name:"emailAutolink",tokenize:tokenizeEmailAutolink,previous:previousEmail},text={};function gfmAutolinkLiteral(){return{text}}let code=48;for(;code<123;)text[code]=emailAutolink,code++,code===58?code=65:code===91&&(code=97);text[43]=emailAutolink;text[45]=emailAutolink;text[46]=emailAutolink;text[95]=emailAutolink;text[72]=[emailAutolink,protocolAutolink];text[104]=[emailAutolink,protocolAutolink];text[87]=[emailAutolink,wwwAutolink];text[119]=[emailAutolink,wwwAutolink];function tokenizeEmailAutolink(t,a,l){const u=this;let c,f;return d;function d(S){return!gfmAtext(S)||!previousEmail.call(u,u.previous)||previousUnbalanced(u.events)?l(S):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),g(S))}function g(S){return gfmAtext(S)?(t.consume(S),g):S===64?(t.consume(S),h):l(S)}function h(S){return S===46?t.check(emailDomainDotTrail,x,m)(S):S===45||S===95||asciiAlphanumeric(S)?(f=!0,t.consume(S),h):x(S)}function m(S){return t.consume(S),c=!0,h}function x(S){return f&&c&&asciiAlpha(u.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),a(S)):l(S)}}function tokenizeWwwAutolink(t,a,l){const u=this;return c;function c(d){return d!==87&&d!==119||!previousWww.call(u,u.previous)||previousUnbalanced(u.events)?l(d):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(wwwPrefix,t.attempt(domain,t.attempt(path,f),l),l)(d))}function f(d){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),a(d)}}function tokenizeProtocolAutolink(t,a,l){const u=this;let c="",f=!1;return d;function d(S){return(S===72||S===104)&&previousProtocol.call(u,u.previous)&&!previousUnbalanced(u.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),c+=String.fromCodePoint(S),t.consume(S),g):l(S)}function g(S){if(asciiAlpha(S)&&c.length<5)return c+=String.fromCodePoint(S),t.consume(S),g;if(S===58){const A=c.toLowerCase();if(A==="http"||A==="https")return t.consume(S),h}return l(S)}function h(S){return S===47?(t.consume(S),f?m:(f=!0,h)):l(S)}function m(S){return S===null||asciiControl(S)||markdownLineEndingOrSpace(S)||unicodeWhitespace(S)||unicodePunctuation(S)?l(S):t.attempt(domain,t.attempt(path,x),l)(S)}function x(S){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),a(S)}}function tokenizeWwwPrefix(t,a,l){let u=0;return c;function c(d){return(d===87||d===119)&&u<3?(u++,t.consume(d),c):d===46&&u===3?(t.consume(d),f):l(d)}function f(d){return d===null?l(d):a(d)}}function tokenizeDomain(t,a,l){let u,c,f;return d;function d(m){return m===46||m===95?t.check(trail,h,g)(m):m===null||markdownLineEndingOrSpace(m)||unicodeWhitespace(m)||m!==45&&unicodePunctuation(m)?h(m):(f=!0,t.consume(m),d)}function g(m){return m===95?u=!0:(c=u,u=void 0),t.consume(m),d}function h(m){return c||u||!f?l(m):a(m)}}function tokenizePath(t,a){let l=0,u=0;return c;function c(d){return d===40?(l++,t.consume(d),c):d===41&&u<l?f(d):d===33||d===34||d===38||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===60||d===63||d===93||d===95||d===126?t.check(trail,a,f)(d):d===null||markdownLineEndingOrSpace(d)||unicodeWhitespace(d)?a(d):(t.consume(d),c)}function f(d){return d===41&&u++,t.consume(d),c}}function tokenizeTrail(t,a,l){return u;function u(g){return g===33||g===34||g===39||g===41||g===42||g===44||g===46||g===58||g===59||g===63||g===95||g===126?(t.consume(g),u):g===38?(t.consume(g),f):g===93?(t.consume(g),c):g===60||g===null||markdownLineEndingOrSpace(g)||unicodeWhitespace(g)?a(g):l(g)}function c(g){return g===null||g===40||g===91||markdownLineEndingOrSpace(g)||unicodeWhitespace(g)?a(g):u(g)}function f(g){return asciiAlpha(g)?d(g):l(g)}function d(g){return g===59?(t.consume(g),u):asciiAlpha(g)?(t.consume(g),d):l(g)}}function tokenizeEmailDomainDotTrail(t,a,l){return u;function u(f){return t.consume(f),c}function c(f){return asciiAlphanumeric(f)?l(f):a(f)}}function previousWww(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||markdownLineEndingOrSpace(t)}function previousProtocol(t){return!asciiAlpha(t)}function previousEmail(t){return!(t===47||gfmAtext(t))}function gfmAtext(t){return t===43||t===45||t===46||t===95||asciiAlphanumeric(t)}function previousUnbalanced(t){let a=t.length,l=!1;for(;a--;){const u=t[a][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){l=!0;break}if(u._gfmAutolinkLiteralWalkedInto){l=!1;break}}return t.length>0&&!l&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const indent={tokenize:tokenizeIndent,partial:!0};function gfmFootnote(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{91:{name:"gfmFootnoteCall",tokenize:tokenizeGfmFootnoteCall},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(t,a,l){const u=this;let c=u.events.length;const f=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let d;for(;c--;){const h=u.events[c][1];if(h.type==="labelImage"){d=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return g;function g(h){if(!d||!d._balanced)return l(h);const m=normalizeIdentifier(u.sliceSerialize({start:d.end,end:u.now()}));return m.codePointAt(0)!==94||!f.includes(m.slice(1))?l(h):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),a(h))}}function resolveToPotentialGfmFootnoteCall(t,a){let l=t.length;for(;l--;)if(t[l][1].type==="labelImage"&&t[l][0]==="enter"){t[l][1];break}t[l+1][1].type="data",t[l+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},t[l+3][1].start),end:Object.assign({},t[t.length-1][1].end)},c={type:"gfmFootnoteCallMarker",start:Object.assign({},t[l+3][1].end),end:Object.assign({},t[l+3][1].end)};c.end.column++,c.end.offset++,c.end._bufferIndex++;const f={type:"gfmFootnoteCallString",start:Object.assign({},c.end),end:Object.assign({},t[t.length-1][1].start)},d={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},g=[t[l+1],t[l+2],["enter",u,a],t[l+3],t[l+4],["enter",c,a],["exit",c,a],["enter",f,a],["enter",d,a],["exit",d,a],["exit",f,a],t[t.length-2],t[t.length-1],["exit",u,a]];return t.splice(l,t.length-l+1,...g),t}function tokenizeGfmFootnoteCall(t,a,l){const u=this,c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f=0,d;return g;function g(S){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(S),t.exit("gfmFootnoteCallLabelMarker"),h}function h(S){return S!==94?l(S):(t.enter("gfmFootnoteCallMarker"),t.consume(S),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(S){if(f>999||S===93&&!d||S===null||S===91||markdownLineEndingOrSpace(S))return l(S);if(S===93){t.exit("chunkString");const A=t.exit("gfmFootnoteCallString");return c.includes(normalizeIdentifier(u.sliceSerialize(A)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(S),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),a):l(S)}return markdownLineEndingOrSpace(S)||(d=!0),f++,t.consume(S),S===92?x:m}function x(S){return S===91||S===92||S===93?(t.consume(S),f++,m):m(S)}}function tokenizeDefinitionStart(t,a,l){const u=this,c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f,d=0,g;return h;function h(O){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(O),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(O){return O===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(O),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",x):l(O)}function x(O){if(d>999||O===93&&!g||O===null||O===91||markdownLineEndingOrSpace(O))return l(O);if(O===93){t.exit("chunkString");const Z=t.exit("gfmFootnoteDefinitionLabelString");return f=normalizeIdentifier(u.sliceSerialize(Z)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(O),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),A}return markdownLineEndingOrSpace(O)||(g=!0),d++,t.consume(O),O===92?S:x}function S(O){return O===91||O===92||O===93?(t.consume(O),d++,x):x(O)}function A(O){return O===58?(t.enter("definitionMarker"),t.consume(O),t.exit("definitionMarker"),c.includes(f)||c.push(f),factorySpace(t,C,"gfmFootnoteDefinitionWhitespace")):l(O)}function C(O){return a(O)}}function tokenizeDefinitionContinuation(t,a,l){return t.check(blankLine,a,t.attempt(indent,a,l))}function gfmFootnoteDefinitionEnd(t){t.exit("gfmFootnoteDefinition")}function tokenizeIndent(t,a,l){const u=this;return factorySpace(t,c,"gfmFootnoteDefinitionIndent",5);function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="gfmFootnoteDefinitionIndent"&&d[2].sliceSerialize(d[1],!0).length===4?a(f):l(f)}}function gfmStrikethrough(t){let l=(t||{}).singleTilde;const u={name:"strikethrough",tokenize:f,resolveAll:c};return l==null&&(l=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function c(d,g){let h=-1;for(;++h<d.length;)if(d[h][0]==="enter"&&d[h][1].type==="strikethroughSequenceTemporary"&&d[h][1]._close){let m=h;for(;m--;)if(d[m][0]==="exit"&&d[m][1].type==="strikethroughSequenceTemporary"&&d[m][1]._open&&d[h][1].end.offset-d[h][1].start.offset===d[m][1].end.offset-d[m][1].start.offset){d[h][1].type="strikethroughSequence",d[m][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},d[m][1].start),end:Object.assign({},d[h][1].end)},S={type:"strikethroughText",start:Object.assign({},d[m][1].end),end:Object.assign({},d[h][1].start)},A=[["enter",x,g],["enter",d[m][1],g],["exit",d[m][1],g],["enter",S,g]],C=g.parser.constructs.insideSpan.null;C&&splice(A,A.length,0,resolveAll(C,d.slice(m+1,h),g)),splice(A,A.length,0,[["exit",S,g],["enter",d[h][1],g],["exit",d[h][1],g],["exit",x,g]]),splice(d,m-1,h-m+3,A),h=m+A.length-2;break}}for(h=-1;++h<d.length;)d[h][1].type==="strikethroughSequenceTemporary"&&(d[h][1].type="data");return d}function f(d,g,h){const m=this.previous,x=this.events;let S=0;return A;function A(O){return m===126&&x[x.length-1][1].type!=="characterEscape"?h(O):(d.enter("strikethroughSequenceTemporary"),C(O))}function C(O){const Z=classifyCharacter(m);if(O===126)return S>1?h(O):(d.consume(O),S++,C);if(S<2&&!l)return h(O);const P=d.exit("strikethroughSequenceTemporary"),q=classifyCharacter(O);return P._open=!q||q===2&&!!Z,P._close=!Z||Z===2&&!!q,g(O)}}}class EditMap{constructor(){this.map=[]}add(a,l,u){addImplementation(this,a,l,u)}consume(a){if(this.map.sort(function(f,d){return f[0]-d[0]}),this.map.length===0)return;let l=this.map.length;const u=[];for(;l>0;)l-=1,u.push(a.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),a.length=this.map[l][0];u.push(a.slice()),a.length=0;let c=u.pop();for(;c;){for(const f of c)a.push(f);c=u.pop()}this.map.length=0}}function addImplementation(t,a,l,u){let c=0;if(!(l===0&&u.length===0)){for(;c<t.map.length;){if(t.map[c][0]===a){t.map[c][1]+=l,t.map[c][2].push(...u);return}c+=1}t.map.push([a,l,u])}}function gfmTableAlign(t,a){let l=!1;const u=[];for(;a<t.length;){const c=t[a];if(l){if(c[0]==="enter")c[1].type==="tableContent"&&u.push(t[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(c[1].type==="tableContent"){if(t[a-1][1].type==="tableDelimiterMarker"){const f=u.length-1;u[f]=u[f]==="left"?"center":"right"}}else if(c[1].type==="tableDelimiterRow")break}else c[0]==="enter"&&c[1].type==="tableDelimiterRow"&&(l=!0);a+=1}return u}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(t,a,l){const u=this;let c=0,f=0,d;return g;function g(F){let ve=u.events.length-1;for(;ve>-1;){const xe=u.events[ve][1].type;if(xe==="lineEnding"||xe==="linePrefix")ve--;else break}const ee=ve>-1?u.events[ve][1].type:null,Ae=ee==="tableHead"||ee==="tableRow"?Q:h;return Ae===Q&&u.parser.lazy[u.now().line]?l(F):Ae(F)}function h(F){return t.enter("tableHead"),t.enter("tableRow"),m(F)}function m(F){return F===124||(d=!0,f+=1),x(F)}function x(F){return F===null?l(F):markdownLineEnding(F)?f>1?(f=0,u.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(F),t.exit("lineEnding"),C):l(F):markdownSpace(F)?factorySpace(t,x,"whitespace")(F):(f+=1,d&&(d=!1,c+=1),F===124?(t.enter("tableCellDivider"),t.consume(F),t.exit("tableCellDivider"),d=!0,x):(t.enter("data"),S(F)))}function S(F){return F===null||F===124||markdownLineEndingOrSpace(F)?(t.exit("data"),x(F)):(t.consume(F),F===92?A:S)}function A(F){return F===92||F===124?(t.consume(F),S):S(F)}function C(F){return u.interrupt=!1,u.parser.lazy[u.now().line]?l(F):(t.enter("tableDelimiterRow"),d=!1,markdownSpace(F)?factorySpace(t,O,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):O(F))}function O(F){return F===45||F===58?P(F):F===124?(d=!0,t.enter("tableCellDivider"),t.consume(F),t.exit("tableCellDivider"),Z):ye(F)}function Z(F){return markdownSpace(F)?factorySpace(t,P,"whitespace")(F):P(F)}function P(F){return F===58?(f+=1,d=!0,t.enter("tableDelimiterMarker"),t.consume(F),t.exit("tableDelimiterMarker"),q):F===45?(f+=1,q(F)):F===null||markdownLineEnding(F)?pe(F):ye(F)}function q(F){return F===45?(t.enter("tableDelimiterFiller"),ne(F)):ye(F)}function ne(F){return F===45?(t.consume(F),ne):F===58?(d=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(F),t.exit("tableDelimiterMarker"),Y):(t.exit("tableDelimiterFiller"),Y(F))}function Y(F){return markdownSpace(F)?factorySpace(t,pe,"whitespace")(F):pe(F)}function pe(F){return F===124?O(F):F===null||markdownLineEnding(F)?!d||c!==f?ye(F):(t.exit("tableDelimiterRow"),t.exit("tableHead"),a(F)):ye(F)}function ye(F){return l(F)}function Q(F){return t.enter("tableRow"),be(F)}function be(F){return F===124?(t.enter("tableCellDivider"),t.consume(F),t.exit("tableCellDivider"),be):F===null||markdownLineEnding(F)?(t.exit("tableRow"),a(F)):markdownSpace(F)?factorySpace(t,be,"whitespace")(F):(t.enter("data"),ue(F))}function ue(F){return F===null||F===124||markdownLineEndingOrSpace(F)?(t.exit("data"),be(F)):(t.consume(F),F===92?ke:ue)}function ke(F){return F===92||F===124?(t.consume(F),ue):ue(F)}}function resolveTable(t,a){let l=-1,u=!0,c=0,f=[0,0,0,0],d=[0,0,0,0],g=!1,h=0,m,x,S;const A=new EditMap;for(;++l<t.length;){const C=t[l],O=C[1];C[0]==="enter"?O.type==="tableHead"?(g=!1,h!==0&&(flushTableEnd(A,a,h,m,x),x=void 0,h=0),m={type:"table",start:Object.assign({},O.start),end:Object.assign({},O.end)},A.add(l,0,[["enter",m,a]])):O.type==="tableRow"||O.type==="tableDelimiterRow"?(u=!0,S=void 0,f=[0,0,0,0],d=[0,l+1,0,0],g&&(g=!1,x={type:"tableBody",start:Object.assign({},O.start),end:Object.assign({},O.end)},A.add(l,0,[["enter",x,a]])),c=O.type==="tableDelimiterRow"?2:x?3:1):c&&(O.type==="data"||O.type==="tableDelimiterMarker"||O.type==="tableDelimiterFiller")?(u=!1,d[2]===0&&(f[1]!==0&&(d[0]=d[1],S=flushCell(A,a,f,c,void 0,S),f=[0,0,0,0]),d[2]=l)):O.type==="tableCellDivider"&&(u?u=!1:(f[1]!==0&&(d[0]=d[1],S=flushCell(A,a,f,c,void 0,S)),f=d,d=[f[1],l,0,0])):O.type==="tableHead"?(g=!0,h=l):O.type==="tableRow"||O.type==="tableDelimiterRow"?(h=l,f[1]!==0?(d[0]=d[1],S=flushCell(A,a,f,c,l,S)):d[1]!==0&&(S=flushCell(A,a,d,c,l,S)),c=0):c&&(O.type==="data"||O.type==="tableDelimiterMarker"||O.type==="tableDelimiterFiller")&&(d[3]=l)}for(h!==0&&flushTableEnd(A,a,h,m,x),A.consume(a.events),l=-1;++l<a.events.length;){const C=a.events[l];C[0]==="enter"&&C[1].type==="table"&&(C[1]._align=gfmTableAlign(a.events,l))}return t}function flushCell(t,a,l,u,c,f){const d=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",g="tableContent";l[0]!==0&&(f.end=Object.assign({},getPoint(a.events,l[0])),t.add(l[0],0,[["exit",f,a]]));const h=getPoint(a.events,l[1]);if(f={type:d,start:Object.assign({},h),end:Object.assign({},h)},t.add(l[1],0,[["enter",f,a]]),l[2]!==0){const m=getPoint(a.events,l[2]),x=getPoint(a.events,l[3]),S={type:g,start:Object.assign({},m),end:Object.assign({},x)};if(t.add(l[2],0,[["enter",S,a]]),u!==2){const A=a.events[l[2]],C=a.events[l[3]];if(A[1].end=Object.assign({},C[1].end),A[1].type="chunkText",A[1].contentType="text",l[3]>l[2]+1){const O=l[2]+1,Z=l[3]-l[2]-1;t.add(O,Z,[])}}t.add(l[3]+1,0,[["exit",S,a]])}return c!==void 0&&(f.end=Object.assign({},getPoint(a.events,c)),t.add(c,0,[["exit",f,a]]),f=void 0),f}function flushTableEnd(t,a,l,u,c){const f=[],d=getPoint(a.events,l);c&&(c.end=Object.assign({},d),f.push(["exit",c,a])),u.end=Object.assign({},d),f.push(["exit",u,a]),t.add(l+1,0,f)}function getPoint(t,a){const l=t[a],u=l[0]==="enter"?"start":"end";return l[1][u]}const tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:tasklistCheck}}}function tokenizeTasklistCheck(t,a,l){const u=this;return c;function c(h){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?l(h):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),f)}function f(h){return markdownLineEndingOrSpace(h)?(t.enter("taskListCheckValueUnchecked"),t.consume(h),t.exit("taskListCheckValueUnchecked"),d):h===88||h===120?(t.enter("taskListCheckValueChecked"),t.consume(h),t.exit("taskListCheckValueChecked"),d):l(h)}function d(h){return h===93?(t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),g):l(h)}function g(h){return markdownLineEnding(h)?a(h):markdownSpace(h)?t.check({tokenize:spaceThenNonSpace},a,l)(h):l(h)}}function spaceThenNonSpace(t,a,l){return factorySpace(t,u,"whitespace");function u(c){return c===null?l(c):a(c)}}function gfm(t){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(t),gfmTable(),gfmTaskListItem()])}const emptyOptions={};function remarkGfm(t){const a=this,l=t||emptyOptions,u=a.data(),c=u.micromarkExtensions||(u.micromarkExtensions=[]),f=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),d=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);c.push(gfm(l)),f.push(gfmFromMarkdown()),d.push(gfmToMarkdown(l))}function parseViewMd(t){const{data:a,content:l}=matter(t),u=unified().use(remarkParse).use(remarkGfm).parse(l),c=splitByH2$1(u);return{name:a.name??"",domain:a.domain??"",version:a.version??"0.1.0",stateBindings:parseStateBindings(c["State Bindings"]),layout:parseLayoutSection$1(c.Layout),intents:parseIntentsTable(c.Intents)}}function splitByH2$1(t){var u;const a={};let l="__intro__";a[l]=[];for(const c of t.children)c.type==="heading"&&c.depth===2?(l=getTextContent(c),a[l]=[]):(u=a[l])==null||u.push(c);return a}function getTextContent(t){return t.children.map(a=>a.type==="text"?a.value:"").join("")}function parseStateBindings(t){if(!t)return[];const a=[];for(const l of t){if(l.type!=="list")continue;const u=l;for(const c of u.children){const d=extractListItemText(c).match(/`([^`]+)`\s*->\s*(.+)/);d&&a.push({path:d[1],type:d[2].trim()})}}return a}function extractListItemText(t){return t.children.map(a=>a.type==="paragraph"?a.children.map(l=>l.type==="text"?l.value:l.type==="inlineCode"?`\`${l.value}\``:"").join(""):"").join("")}function parseLayoutSection$1(t){if(!t)throw new Error("Missing Layout section in VIEW.md");for(const a of t)if(a.type==="code"){const l=a;if(l.lang==="clapp-layout")return parseLayoutDSL(l.value)}throw new Error("No clapp-layout code block found in Layout section")}function parseIntentsTable(t){if(!t)return[];const a=[];for(const l of t){if(l.type!=="table")continue;const u=l;for(let c=1;c<u.children.length;c++){const d=u.children[c].children;d.length>=3&&a.push({name:getCellText(d[0]),payload:getCellText(d[1]),description:getCellText(d[2])})}}return a}function getCellText(t){return t.children.map(a=>a.type==="text"||a.type==="inlineCode"?a.value:"").join("")}function parseAppMd(t){const{data:a,content:l}=matter(t),u=unified().use(remarkParse).parse(l),c=splitByH2(u);return{name:a.name??"",domain:a.domain??"",modules:parseModulesList(c.Modules),layout:parseLayoutSection(c.Layout)}}function splitByH2(t){var u;const a={};let l="__intro__";a[l]=[];for(const c of t.children)c.type==="heading"&&c.depth===2?(l=c.children.map(d=>d.type==="text"?d.value:"").join(""),a[l]=[]):(u=a[l])==null||u.push(c);return a}function parseModulesList(t){if(!t)return[];const a=[];for(const l of t){if(l.type!=="list")continue;const u=l;for(const c of u.children){const f=c.children.map(d=>d.type==="paragraph"?d.children.map(g=>g.type==="text"?g.value:"").join(""):"").join("").trim();f&&a.push(f)}}return a}function parseLayoutSection(t){if(!t)throw new Error("Missing Layout section in APP.md");for(const a of t)if(a.type==="code"){const l=a;if(l.lang==="clapp-layout")return parseLayoutDSL(l.value)}throw new Error("No clapp-layout code block found in Layout section")}var util;(function(t){t.assertEqual=c=>{};function a(c){}t.assertIs=a;function l(c){throw new Error}t.assertNever=l,t.arrayToEnum=c=>{const f={};for(const d of c)f[d]=d;return f},t.getValidEnumValues=c=>{const f=t.objectKeys(c).filter(g=>typeof c[c[g]]!="number"),d={};for(const g of f)d[g]=c[g];return t.objectValues(d)},t.objectValues=c=>t.objectKeys(c).map(function(f){return c[f]}),t.objectKeys=typeof Object.keys=="function"?c=>Object.keys(c):c=>{const f=[];for(const d in c)Object.prototype.hasOwnProperty.call(c,d)&&f.push(d);return f},t.find=(c,f)=>{for(const d of c)if(f(d))return d},t.isInteger=typeof Number.isInteger=="function"?c=>Number.isInteger(c):c=>typeof c=="number"&&Number.isFinite(c)&&Math.floor(c)===c;function u(c,f=" | "){return c.map(d=>typeof d=="string"?`'${d}'`:d).join(f)}t.joinValues=u,t.jsonStringifyReplacer=(c,f)=>typeof f=="bigint"?f.toString():f})(util||(util={}));var objectUtil;(function(t){t.mergeShapes=(a,l)=>({...a,...l})})(objectUtil||(objectUtil={}));const ZodParsedType=util.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=t=>{switch(typeof t){case"undefined":return ZodParsedType.undefined;case"string":return ZodParsedType.string;case"number":return Number.isNaN(t)?ZodParsedType.nan:ZodParsedType.number;case"boolean":return ZodParsedType.boolean;case"function":return ZodParsedType.function;case"bigint":return ZodParsedType.bigint;case"symbol":return ZodParsedType.symbol;case"object":return Array.isArray(t)?ZodParsedType.array:t===null?ZodParsedType.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ZodParsedType.promise:typeof Map<"u"&&t instanceof Map?ZodParsedType.map:typeof Set<"u"&&t instanceof Set?ZodParsedType.set:typeof Date<"u"&&t instanceof Date?ZodParsedType.date:ZodParsedType.object;default:return ZodParsedType.unknown}},ZodIssueCode=util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ZodError extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=u=>{this.issues=[...this.issues,u]},this.addIssues=(u=[])=>{this.issues=[...this.issues,...u]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=a}format(a){const l=a||function(f){return f.message},u={_errors:[]},c=f=>{for(const d of f.issues)if(d.code==="invalid_union")d.unionErrors.map(c);else if(d.code==="invalid_return_type")c(d.returnTypeError);else if(d.code==="invalid_arguments")c(d.argumentsError);else if(d.path.length===0)u._errors.push(l(d));else{let g=u,h=0;for(;h<d.path.length;){const m=d.path[h];h===d.path.length-1?(g[m]=g[m]||{_errors:[]},g[m]._errors.push(l(d))):g[m]=g[m]||{_errors:[]},g=g[m],h++}}};return c(this),u}static assert(a){if(!(a instanceof ZodError))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=l=>l.message){const l={},u=[];for(const c of this.issues)if(c.path.length>0){const f=c.path[0];l[f]=l[f]||[],l[f].push(a(c))}else u.push(a(c));return{formErrors:u,fieldErrors:l}}get formErrors(){return this.flatten()}}ZodError.create=t=>new ZodError(t);const errorMap=(t,a)=>{let l;switch(t.code){case ZodIssueCode.invalid_type:t.received===ZodParsedType.undefined?l="Required":l=`Expected ${t.expected}, received ${t.received}`;break;case ZodIssueCode.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(t.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:l=`Unrecognized key(s) in object: ${util.joinValues(t.keys,", ")}`;break;case ZodIssueCode.invalid_union:l="Invalid input";break;case ZodIssueCode.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${util.joinValues(t.options)}`;break;case ZodIssueCode.invalid_enum_value:l=`Invalid enum value. Expected ${util.joinValues(t.options)}, received '${t.received}'`;break;case ZodIssueCode.invalid_arguments:l="Invalid function arguments";break;case ZodIssueCode.invalid_return_type:l="Invalid function return type";break;case ZodIssueCode.invalid_date:l="Invalid date";break;case ZodIssueCode.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(l=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?l=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?l=`Invalid input: must end with "${t.validation.endsWith}"`:util.assertNever(t.validation):t.validation!=="regex"?l=`Invalid ${t.validation}`:l="Invalid";break;case ZodIssueCode.too_small:t.type==="array"?l=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?l=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?l=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?l=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?l=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:l="Invalid input";break;case ZodIssueCode.too_big:t.type==="array"?l=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?l=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?l=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?l=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?l=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:l="Invalid input";break;case ZodIssueCode.custom:l="Invalid input";break;case ZodIssueCode.invalid_intersection_types:l="Intersection results could not be merged";break;case ZodIssueCode.not_multiple_of:l=`Number must be a multiple of ${t.multipleOf}`;break;case ZodIssueCode.not_finite:l="Number must be finite";break;default:l=a.defaultError,util.assertNever(t)}return{message:l}};let overrideErrorMap=errorMap;function getErrorMap(){return overrideErrorMap}const makeIssue=t=>{const{data:a,path:l,errorMaps:u,issueData:c}=t,f=[...l,...c.path||[]],d={...c,path:f};if(c.message!==void 0)return{...c,path:f,message:c.message};let g="";const h=u.filter(m=>!!m).slice().reverse();for(const m of h)g=m(d,{data:a,defaultError:g}).message;return{...c,path:f,message:g}};function addIssueToContext(t,a){const l=getErrorMap(),u=makeIssue({issueData:a,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,l===errorMap?void 0:errorMap].filter(c=>!!c)});t.common.issues.push(u)}class ParseStatus{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,l){const u=[];for(const c of l){if(c.status==="aborted")return INVALID;c.status==="dirty"&&a.dirty(),u.push(c.value)}return{status:a.value,value:u}}static async mergeObjectAsync(a,l){const u=[];for(const c of l){const f=await c.key,d=await c.value;u.push({key:f,value:d})}return ParseStatus.mergeObjectSync(a,u)}static mergeObjectSync(a,l){const u={};for(const c of l){const{key:f,value:d}=c;if(f.status==="aborted"||d.status==="aborted")return INVALID;f.status==="dirty"&&a.dirty(),d.status==="dirty"&&a.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||c.alwaysSet)&&(u[f.value]=d.value)}return{status:a.value,value:u}}}const INVALID=Object.freeze({status:"aborted"}),DIRTY=t=>({status:"dirty",value:t}),OK=t=>({status:"valid",value:t}),isAborted=t=>t.status==="aborted",isDirty=t=>t.status==="dirty",isValid=t=>t.status==="valid",isAsync=t=>typeof Promise<"u"&&t instanceof Promise;var errorUtil;(function(t){t.errToObj=a=>typeof a=="string"?{message:a}:a||{},t.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(errorUtil||(errorUtil={}));class ParseInputLazyPath{constructor(a,l,u,c){this._cachedPath=[],this.parent=a,this.data=l,this._path=u,this._key=c}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const handleResult=(t,a)=>{if(isValid(a))return{success:!0,data:a.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new ZodError(t.common.issues);return this._error=l,this._error}}};function processCreateParams(t){if(!t)return{};const{errorMap:a,invalid_type_error:l,required_error:u,description:c}=t;if(a&&(l||u))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:c}:{errorMap:(d,g)=>{const{message:h}=t;return d.code==="invalid_enum_value"?{message:h??g.defaultError}:typeof g.data>"u"?{message:h??u??g.defaultError}:d.code!=="invalid_type"?{message:g.defaultError}:{message:h??l??g.defaultError}},description:c}}class ZodType{get description(){return this._def.description}_getType(a){return getParsedType(a.data)}_getOrReturnCtx(a,l){return l||{common:a.parent.common,data:a.data,parsedType:getParsedType(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new ParseStatus,ctx:{common:a.parent.common,data:a.data,parsedType:getParsedType(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const l=this._parse(a);if(isAsync(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(a){const l=this._parse(a);return Promise.resolve(l)}parse(a,l){const u=this.safeParse(a,l);if(u.success)return u.data;throw u.error}safeParse(a,l){const u={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:getParsedType(a)},c=this._parseSync({data:a,path:u.path,parent:u});return handleResult(u,c)}"~validate"(a){var u,c;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:getParsedType(a)};if(!this["~standard"].async)try{const f=this._parseSync({data:a,path:[],parent:l});return isValid(f)?{value:f.value}:{issues:l.common.issues}}catch(f){(c=(u=f==null?void 0:f.message)==null?void 0:u.toLowerCase())!=null&&c.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:l}).then(f=>isValid(f)?{value:f.value}:{issues:l.common.issues})}async parseAsync(a,l){const u=await this.safeParseAsync(a,l);if(u.success)return u.data;throw u.error}async safeParseAsync(a,l){const u={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:getParsedType(a)},c=this._parse({data:a,path:u.path,parent:u}),f=await(isAsync(c)?c:Promise.resolve(c));return handleResult(u,f)}refine(a,l){const u=c=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(c):l;return this._refinement((c,f)=>{const d=a(c),g=()=>f.addIssue({code:ZodIssueCode.custom,...u(c)});return typeof Promise<"u"&&d instanceof Promise?d.then(h=>h?!0:(g(),!1)):d?!0:(g(),!1)})}refinement(a,l){return this._refinement((u,c)=>a(u)?!0:(c.addIssue(typeof l=="function"?l(u,c):l),!1))}_refinement(a){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:l=>this["~validate"](l)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(a){return ZodUnion.create([this,a],this._def)}and(a){return ZodIntersection.create(this,a,this._def)}transform(a){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const l=typeof a=="function"?a:()=>a;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:l,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(a){const l=typeof a=="function"?a:()=>a;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:l,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(a){const l=this.constructor;return new l({...this._def,description:a})}pipe(a){return ZodPipeline.create(this,a)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cuidRegex=/^c[^\s-]{8,}$/i,cuid2Regex=/^[0-9a-z]+$/,ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uuidRegex=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nanoidRegex=/^[a-z0-9_-]{21}$/i,jwtRegex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_emojiRegex="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4CidrRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ipv6CidrRegex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64urlRegex=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dateRegexSource="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",dateRegex=new RegExp(`^${dateRegexSource}$`);function timeRegexSource(t){let a="[0-5]\\d";t.precision?a=`${a}\\.\\d{${t.precision}}`:t.precision==null&&(a=`${a}(\\.\\d+)?`);const l=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${l}`}function timeRegex(t){return new RegExp(`^${timeRegexSource(t)}$`)}function datetimeRegex(t){let a=`${dateRegexSource}T${timeRegexSource(t)}`;const l=[];return l.push(t.local?"Z?":"Z"),t.offset&&l.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${l.join("|")})`,new RegExp(`^${a}$`)}function isValidIP(t,a){return!!((a==="v4"||!a)&&ipv4Regex.test(t)||(a==="v6"||!a)&&ipv6Regex.test(t))}function isValidJWT(t,a){if(!jwtRegex.test(t))return!1;try{const[l]=t.split(".");if(!l)return!1;const u=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),c=JSON.parse(atob(u));return!(typeof c!="object"||c===null||"typ"in c&&(c==null?void 0:c.typ)!=="JWT"||!c.alg||a&&c.alg!==a)}catch{return!1}}function isValidCidr(t,a){return!!((a==="v4"||!a)&&ipv4CidrRegex.test(t)||(a==="v6"||!a)&&ipv6CidrRegex.test(t))}class ZodString extends ZodType{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==ZodParsedType.string){const f=this._getOrReturnCtx(a);return addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:f.parsedType}),INVALID}const u=new ParseStatus;let c;for(const f of this._def.checks)if(f.kind==="min")a.data.length<f.value&&(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),u.dirty());else if(f.kind==="max")a.data.length>f.value&&(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),u.dirty());else if(f.kind==="length"){const d=a.data.length>f.value,g=a.data.length<f.value;(d||g)&&(c=this._getOrReturnCtx(a,c),d?addIssueToContext(c,{code:ZodIssueCode.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):g&&addIssueToContext(c,{code:ZodIssueCode.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),u.dirty())}else if(f.kind==="email")emailRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"email",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="emoji")emojiRegex||(emojiRegex=new RegExp(_emojiRegex,"u")),emojiRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"emoji",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="uuid")uuidRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"uuid",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="nanoid")nanoidRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"nanoid",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="cuid")cuidRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"cuid",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="cuid2")cuid2Regex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="ulid")ulidRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"ulid",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty());else if(f.kind==="url")try{new URL(a.data)}catch{c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"url",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"regex",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty())):f.kind==="trim"?a.data=a.data.trim():f.kind==="includes"?a.data.includes(f.value,f.position)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),u.dirty()):f.kind==="toLowerCase"?a.data=a.data.toLowerCase():f.kind==="toUpperCase"?a.data=a.data.toUpperCase():f.kind==="startsWith"?a.data.startsWith(f.value)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:{startsWith:f.value},message:f.message}),u.dirty()):f.kind==="endsWith"?a.data.endsWith(f.value)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:{endsWith:f.value},message:f.message}),u.dirty()):f.kind==="datetime"?datetimeRegex(f).test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:"datetime",message:f.message}),u.dirty()):f.kind==="date"?dateRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:"date",message:f.message}),u.dirty()):f.kind==="time"?timeRegex(f).test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.invalid_string,validation:"time",message:f.message}),u.dirty()):f.kind==="duration"?durationRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"duration",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):f.kind==="ip"?isValidIP(a.data,f.version)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"ip",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):f.kind==="jwt"?isValidJWT(a.data,f.alg)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"jwt",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):f.kind==="cidr"?isValidCidr(a.data,f.version)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"cidr",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):f.kind==="base64"?base64Regex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"base64",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):f.kind==="base64url"?base64urlRegex.test(a.data)||(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{validation:"base64url",code:ZodIssueCode.invalid_string,message:f.message}),u.dirty()):util.assertNever(f);return{status:u.value,value:a.data}}_regex(a,l,u){return this.refinement(c=>a.test(c),{validation:l,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(u)})}_addCheck(a){return new ZodString({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...errorUtil.errToObj(a)})}url(a){return this._addCheck({kind:"url",...errorUtil.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...errorUtil.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...errorUtil.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...errorUtil.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...errorUtil.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...errorUtil.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...errorUtil.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...errorUtil.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...errorUtil.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...errorUtil.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...errorUtil.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...errorUtil.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(a==null?void 0:a.offset)??!1,local:(a==null?void 0:a.local)??!1,...errorUtil.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...errorUtil.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...errorUtil.errToObj(a)})}regex(a,l){return this._addCheck({kind:"regex",regex:a,...errorUtil.errToObj(l)})}includes(a,l){return this._addCheck({kind:"includes",value:a,position:l==null?void 0:l.position,...errorUtil.errToObj(l==null?void 0:l.message)})}startsWith(a,l){return this._addCheck({kind:"startsWith",value:a,...errorUtil.errToObj(l)})}endsWith(a,l){return this._addCheck({kind:"endsWith",value:a,...errorUtil.errToObj(l)})}min(a,l){return this._addCheck({kind:"min",value:a,...errorUtil.errToObj(l)})}max(a,l){return this._addCheck({kind:"max",value:a,...errorUtil.errToObj(l)})}length(a,l){return this._addCheck({kind:"length",value:a,...errorUtil.errToObj(l)})}nonempty(a){return this.min(1,errorUtil.errToObj(a))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const l of this._def.checks)l.kind==="min"&&(a===null||l.value>a)&&(a=l.value);return a}get maxLength(){let a=null;for(const l of this._def.checks)l.kind==="max"&&(a===null||l.value<a)&&(a=l.value);return a}}ZodString.create=t=>new ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...processCreateParams(t)});function floatSafeRemainder(t,a){const l=(t.toString().split(".")[1]||"").length,u=(a.toString().split(".")[1]||"").length,c=l>u?l:u,f=Number.parseInt(t.toFixed(c).replace(".","")),d=Number.parseInt(a.toFixed(c).replace(".",""));return f%d/10**c}class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==ZodParsedType.number){const f=this._getOrReturnCtx(a);return addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:f.parsedType}),INVALID}let u;const c=new ParseStatus;for(const f of this._def.checks)f.kind==="int"?util.isInteger(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:f.message}),c.dirty()):f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),c.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),c.dirty()):f.kind==="multipleOf"?floatSafeRemainder(a.data,f.value)!==0&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.not_multiple_of,multipleOf:f.value,message:f.message}),c.dirty()):f.kind==="finite"?Number.isFinite(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.not_finite,message:f.message}),c.dirty()):util.assertNever(f);return{status:c.value,value:a.data}}gte(a,l){return this.setLimit("min",a,!0,errorUtil.toString(l))}gt(a,l){return this.setLimit("min",a,!1,errorUtil.toString(l))}lte(a,l){return this.setLimit("max",a,!0,errorUtil.toString(l))}lt(a,l){return this.setLimit("max",a,!1,errorUtil.toString(l))}setLimit(a,l,u,c){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:a,value:l,inclusive:u,message:errorUtil.toString(c)}]})}_addCheck(a){return new ZodNumber({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:errorUtil.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:errorUtil.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:errorUtil.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:errorUtil.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:errorUtil.toString(a)})}multipleOf(a,l){return this._addCheck({kind:"multipleOf",value:a,message:errorUtil.toString(l)})}finite(a){return this._addCheck({kind:"finite",message:errorUtil.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:errorUtil.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:errorUtil.toString(a)})}get minValue(){let a=null;for(const l of this._def.checks)l.kind==="min"&&(a===null||l.value>a)&&(a=l.value);return a}get maxValue(){let a=null;for(const l of this._def.checks)l.kind==="max"&&(a===null||l.value<a)&&(a=l.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&util.isInteger(a.value))}get isFinite(){let a=null,l=null;for(const u of this._def.checks){if(u.kind==="finite"||u.kind==="int"||u.kind==="multipleOf")return!0;u.kind==="min"?(l===null||u.value>l)&&(l=u.value):u.kind==="max"&&(a===null||u.value<a)&&(a=u.value)}return Number.isFinite(l)&&Number.isFinite(a)}}ZodNumber.create=t=>new ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...processCreateParams(t)});class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==ZodParsedType.bigint)return this._getInvalidInput(a);let u;const c=new ParseStatus;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),c.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),c.dirty()):f.kind==="multipleOf"?a.data%f.value!==BigInt(0)&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.not_multiple_of,multipleOf:f.value,message:f.message}),c.dirty()):util.assertNever(f);return{status:c.value,value:a.data}}_getInvalidInput(a){const l=this._getOrReturnCtx(a);return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:l.parsedType}),INVALID}gte(a,l){return this.setLimit("min",a,!0,errorUtil.toString(l))}gt(a,l){return this.setLimit("min",a,!1,errorUtil.toString(l))}lte(a,l){return this.setLimit("max",a,!0,errorUtil.toString(l))}lt(a,l){return this.setLimit("max",a,!1,errorUtil.toString(l))}setLimit(a,l,u,c){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:a,value:l,inclusive:u,message:errorUtil.toString(c)}]})}_addCheck(a){return new ZodBigInt({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:errorUtil.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:errorUtil.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:errorUtil.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:errorUtil.toString(a)})}multipleOf(a,l){return this._addCheck({kind:"multipleOf",value:a,message:errorUtil.toString(l)})}get minValue(){let a=null;for(const l of this._def.checks)l.kind==="min"&&(a===null||l.value>a)&&(a=l.value);return a}get maxValue(){let a=null;for(const l of this._def.checks)l.kind==="max"&&(a===null||l.value<a)&&(a=l.value);return a}}ZodBigInt.create=t=>new ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...processCreateParams(t)});class ZodBoolean extends ZodType{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==ZodParsedType.boolean){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:u.parsedType}),INVALID}return OK(a.data)}}ZodBoolean.create=t=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...processCreateParams(t)});class ZodDate extends ZodType{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==ZodParsedType.date){const f=this._getOrReturnCtx(a);return addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:f.parsedType}),INVALID}if(Number.isNaN(a.data.getTime())){const f=this._getOrReturnCtx(a);return addIssueToContext(f,{code:ZodIssueCode.invalid_date}),INVALID}const u=new ParseStatus;let c;for(const f of this._def.checks)f.kind==="min"?a.data.getTime()<f.value&&(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),u.dirty()):f.kind==="max"?a.data.getTime()>f.value&&(c=this._getOrReturnCtx(a,c),addIssueToContext(c,{code:ZodIssueCode.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),u.dirty()):util.assertNever(f);return{status:u.value,value:new Date(a.data.getTime())}}_addCheck(a){return new ZodDate({...this._def,checks:[...this._def.checks,a]})}min(a,l){return this._addCheck({kind:"min",value:a.getTime(),message:errorUtil.toString(l)})}max(a,l){return this._addCheck({kind:"max",value:a.getTime(),message:errorUtil.toString(l)})}get minDate(){let a=null;for(const l of this._def.checks)l.kind==="min"&&(a===null||l.value>a)&&(a=l.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const l of this._def.checks)l.kind==="max"&&(a===null||l.value<a)&&(a=l.value);return a!=null?new Date(a):null}}ZodDate.create=t=>new ZodDate({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(t)});class ZodSymbol extends ZodType{_parse(a){if(this._getType(a)!==ZodParsedType.symbol){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:u.parsedType}),INVALID}return OK(a.data)}}ZodSymbol.create=t=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(t)});class ZodUndefined extends ZodType{_parse(a){if(this._getType(a)!==ZodParsedType.undefined){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:u.parsedType}),INVALID}return OK(a.data)}}ZodUndefined.create=t=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(t)});class ZodNull extends ZodType{_parse(a){if(this._getType(a)!==ZodParsedType.null){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:u.parsedType}),INVALID}return OK(a.data)}}ZodNull.create=t=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(t)});class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(a){return OK(a.data)}}ZodAny.create=t=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(t)});class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(a){return OK(a.data)}}ZodUnknown.create=t=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(t)});class ZodNever extends ZodType{_parse(a){const l=this._getOrReturnCtx(a);return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:l.parsedType}),INVALID}}ZodNever.create=t=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(t)});class ZodVoid extends ZodType{_parse(a){if(this._getType(a)!==ZodParsedType.undefined){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:u.parsedType}),INVALID}return OK(a.data)}}ZodVoid.create=t=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(t)});class ZodArray extends ZodType{_parse(a){const{ctx:l,status:u}=this._processInputParams(a),c=this._def;if(l.parsedType!==ZodParsedType.array)return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:l.parsedType}),INVALID;if(c.exactLength!==null){const d=l.data.length>c.exactLength.value,g=l.data.length<c.exactLength.value;(d||g)&&(addIssueToContext(l,{code:d?ZodIssueCode.too_big:ZodIssueCode.too_small,minimum:g?c.exactLength.value:void 0,maximum:d?c.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:c.exactLength.message}),u.dirty())}if(c.minLength!==null&&l.data.length<c.minLength.value&&(addIssueToContext(l,{code:ZodIssueCode.too_small,minimum:c.minLength.value,type:"array",inclusive:!0,exact:!1,message:c.minLength.message}),u.dirty()),c.maxLength!==null&&l.data.length>c.maxLength.value&&(addIssueToContext(l,{code:ZodIssueCode.too_big,maximum:c.maxLength.value,type:"array",inclusive:!0,exact:!1,message:c.maxLength.message}),u.dirty()),l.common.async)return Promise.all([...l.data].map((d,g)=>c.type._parseAsync(new ParseInputLazyPath(l,d,l.path,g)))).then(d=>ParseStatus.mergeArray(u,d));const f=[...l.data].map((d,g)=>c.type._parseSync(new ParseInputLazyPath(l,d,l.path,g)));return ParseStatus.mergeArray(u,f)}get element(){return this._def.type}min(a,l){return new ZodArray({...this._def,minLength:{value:a,message:errorUtil.toString(l)}})}max(a,l){return new ZodArray({...this._def,maxLength:{value:a,message:errorUtil.toString(l)}})}length(a,l){return new ZodArray({...this._def,exactLength:{value:a,message:errorUtil.toString(l)}})}nonempty(a){return this.min(1,a)}}ZodArray.create=(t,a)=>new ZodArray({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(a)});function deepPartialify(t){if(t instanceof ZodObject){const a={};for(const l in t.shape){const u=t.shape[l];a[l]=ZodOptional.create(deepPartialify(u))}return new ZodObject({...t._def,shape:()=>a})}else return t instanceof ZodArray?new ZodArray({...t._def,type:deepPartialify(t.element)}):t instanceof ZodOptional?ZodOptional.create(deepPartialify(t.unwrap())):t instanceof ZodNullable?ZodNullable.create(deepPartialify(t.unwrap())):t instanceof ZodTuple?ZodTuple.create(t.items.map(a=>deepPartialify(a))):t}class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),l=util.objectKeys(a);return this._cached={shape:a,keys:l},this._cached}_parse(a){if(this._getType(a)!==ZodParsedType.object){const m=this._getOrReturnCtx(a);return addIssueToContext(m,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:m.parsedType}),INVALID}const{status:u,ctx:c}=this._processInputParams(a),{shape:f,keys:d}=this._getCached(),g=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys==="strip"))for(const m in c.data)d.includes(m)||g.push(m);const h=[];for(const m of d){const x=f[m],S=c.data[m];h.push({key:{status:"valid",value:m},value:x._parse(new ParseInputLazyPath(c,S,c.path,m)),alwaysSet:m in c.data})}if(this._def.catchall instanceof ZodNever){const m=this._def.unknownKeys;if(m==="passthrough")for(const x of g)h.push({key:{status:"valid",value:x},value:{status:"valid",value:c.data[x]}});else if(m==="strict")g.length>0&&(addIssueToContext(c,{code:ZodIssueCode.unrecognized_keys,keys:g}),u.dirty());else if(m!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const m=this._def.catchall;for(const x of g){const S=c.data[x];h.push({key:{status:"valid",value:x},value:m._parse(new ParseInputLazyPath(c,S,c.path,x)),alwaysSet:x in c.data})}}return c.common.async?Promise.resolve().then(async()=>{const m=[];for(const x of h){const S=await x.key,A=await x.value;m.push({key:S,value:A,alwaysSet:x.alwaysSet})}return m}).then(m=>ParseStatus.mergeObjectSync(u,m)):ParseStatus.mergeObjectSync(u,h)}get shape(){return this._def.shape()}strict(a){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(l,u)=>{var f,d;const c=((d=(f=this._def).errorMap)==null?void 0:d.call(f,l,u).message)??u.defaultError;return l.code==="unrecognized_keys"?{message:errorUtil.errToObj(a).message??c}:{message:c}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(a){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new ZodObject({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject})}setKey(a,l){return this.augment({[a]:l})}catchall(a){return new ZodObject({...this._def,catchall:a})}pick(a){const l={};for(const u of util.objectKeys(a))a[u]&&this.shape[u]&&(l[u]=this.shape[u]);return new ZodObject({...this._def,shape:()=>l})}omit(a){const l={};for(const u of util.objectKeys(this.shape))a[u]||(l[u]=this.shape[u]);return new ZodObject({...this._def,shape:()=>l})}deepPartial(){return deepPartialify(this)}partial(a){const l={};for(const u of util.objectKeys(this.shape)){const c=this.shape[u];a&&!a[u]?l[u]=c:l[u]=c.optional()}return new ZodObject({...this._def,shape:()=>l})}required(a){const l={};for(const u of util.objectKeys(this.shape))if(a&&!a[u])l[u]=this.shape[u];else{let f=this.shape[u];for(;f instanceof ZodOptional;)f=f._def.innerType;l[u]=f}return new ZodObject({...this._def,shape:()=>l})}keyof(){return createZodEnum(util.objectKeys(this.shape))}}ZodObject.create=(t,a)=>new ZodObject({shape:()=>t,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(a)});ZodObject.strictCreate=(t,a)=>new ZodObject({shape:()=>t,unknownKeys:"strict",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(a)});ZodObject.lazycreate=(t,a)=>new ZodObject({shape:t,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(a)});class ZodUnion extends ZodType{_parse(a){const{ctx:l}=this._processInputParams(a),u=this._def.options;function c(f){for(const g of f)if(g.result.status==="valid")return g.result;for(const g of f)if(g.result.status==="dirty")return l.common.issues.push(...g.ctx.common.issues),g.result;const d=f.map(g=>new ZodError(g.ctx.common.issues));return addIssueToContext(l,{code:ZodIssueCode.invalid_union,unionErrors:d}),INVALID}if(l.common.async)return Promise.all(u.map(async f=>{const d={...l,common:{...l.common,issues:[]},parent:null};return{result:await f._parseAsync({data:l.data,path:l.path,parent:d}),ctx:d}})).then(c);{let f;const d=[];for(const h of u){const m={...l,common:{...l.common,issues:[]},parent:null},x=h._parseSync({data:l.data,path:l.path,parent:m});if(x.status==="valid")return x;x.status==="dirty"&&!f&&(f={result:x,ctx:m}),m.common.issues.length&&d.push(m.common.issues)}if(f)return l.common.issues.push(...f.ctx.common.issues),f.result;const g=d.map(h=>new ZodError(h));return addIssueToContext(l,{code:ZodIssueCode.invalid_union,unionErrors:g}),INVALID}}get options(){return this._def.options}}ZodUnion.create=(t,a)=>new ZodUnion({options:t,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(a)});function mergeValues(t,a){const l=getParsedType(t),u=getParsedType(a);if(t===a)return{valid:!0,data:t};if(l===ZodParsedType.object&&u===ZodParsedType.object){const c=util.objectKeys(a),f=util.objectKeys(t).filter(g=>c.indexOf(g)!==-1),d={...t,...a};for(const g of f){const h=mergeValues(t[g],a[g]);if(!h.valid)return{valid:!1};d[g]=h.data}return{valid:!0,data:d}}else if(l===ZodParsedType.array&&u===ZodParsedType.array){if(t.length!==a.length)return{valid:!1};const c=[];for(let f=0;f<t.length;f++){const d=t[f],g=a[f],h=mergeValues(d,g);if(!h.valid)return{valid:!1};c.push(h.data)}return{valid:!0,data:c}}else return l===ZodParsedType.date&&u===ZodParsedType.date&&+t==+a?{valid:!0,data:t}:{valid:!1}}class ZodIntersection extends ZodType{_parse(a){const{status:l,ctx:u}=this._processInputParams(a),c=(f,d)=>{if(isAborted(f)||isAborted(d))return INVALID;const g=mergeValues(f.value,d.value);return g.valid?((isDirty(f)||isDirty(d))&&l.dirty(),{status:l.value,value:g.data}):(addIssueToContext(u,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(([f,d])=>c(f,d)):c(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}ZodIntersection.create=(t,a,l)=>new ZodIntersection({left:t,right:a,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(l)});class ZodTuple extends ZodType{_parse(a){const{status:l,ctx:u}=this._processInputParams(a);if(u.parsedType!==ZodParsedType.array)return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:u.parsedType}),INVALID;if(u.data.length<this._def.items.length)return addIssueToContext(u,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),INVALID;!this._def.rest&&u.data.length>this._def.items.length&&(addIssueToContext(u,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const f=[...u.data].map((d,g)=>{const h=this._def.items[g]||this._def.rest;return h?h._parse(new ParseInputLazyPath(u,d,u.path,g)):null}).filter(d=>!!d);return u.common.async?Promise.all(f).then(d=>ParseStatus.mergeArray(l,d)):ParseStatus.mergeArray(l,f)}get items(){return this._def.items}rest(a){return new ZodTuple({...this._def,rest:a})}}ZodTuple.create=(t,a)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:t,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(a)})};class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:l,ctx:u}=this._processInputParams(a);if(u.parsedType!==ZodParsedType.object)return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:u.parsedType}),INVALID;const c=[],f=this._def.keyType,d=this._def.valueType;for(const g in u.data)c.push({key:f._parse(new ParseInputLazyPath(u,g,u.path,g)),value:d._parse(new ParseInputLazyPath(u,u.data[g],u.path,g)),alwaysSet:g in u.data});return u.common.async?ParseStatus.mergeObjectAsync(l,c):ParseStatus.mergeObjectSync(l,c)}get element(){return this._def.valueType}static create(a,l,u){return l instanceof ZodType?new ZodRecord({keyType:a,valueType:l,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(u)}):new ZodRecord({keyType:ZodString.create(),valueType:a,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(l)})}}class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:l,ctx:u}=this._processInputParams(a);if(u.parsedType!==ZodParsedType.map)return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:u.parsedType}),INVALID;const c=this._def.keyType,f=this._def.valueType,d=[...u.data.entries()].map(([g,h],m)=>({key:c._parse(new ParseInputLazyPath(u,g,u.path,[m,"key"])),value:f._parse(new ParseInputLazyPath(u,h,u.path,[m,"value"]))}));if(u.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const h of d){const m=await h.key,x=await h.value;if(m.status==="aborted"||x.status==="aborted")return INVALID;(m.status==="dirty"||x.status==="dirty")&&l.dirty(),g.set(m.value,x.value)}return{status:l.value,value:g}})}else{const g=new Map;for(const h of d){const m=h.key,x=h.value;if(m.status==="aborted"||x.status==="aborted")return INVALID;(m.status==="dirty"||x.status==="dirty")&&l.dirty(),g.set(m.value,x.value)}return{status:l.value,value:g}}}}ZodMap.create=(t,a,l)=>new ZodMap({valueType:a,keyType:t,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(l)});class ZodSet extends ZodType{_parse(a){const{status:l,ctx:u}=this._processInputParams(a);if(u.parsedType!==ZodParsedType.set)return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:u.parsedType}),INVALID;const c=this._def;c.minSize!==null&&u.data.size<c.minSize.value&&(addIssueToContext(u,{code:ZodIssueCode.too_small,minimum:c.minSize.value,type:"set",inclusive:!0,exact:!1,message:c.minSize.message}),l.dirty()),c.maxSize!==null&&u.data.size>c.maxSize.value&&(addIssueToContext(u,{code:ZodIssueCode.too_big,maximum:c.maxSize.value,type:"set",inclusive:!0,exact:!1,message:c.maxSize.message}),l.dirty());const f=this._def.valueType;function d(h){const m=new Set;for(const x of h){if(x.status==="aborted")return INVALID;x.status==="dirty"&&l.dirty(),m.add(x.value)}return{status:l.value,value:m}}const g=[...u.data.values()].map((h,m)=>f._parse(new ParseInputLazyPath(u,h,u.path,m)));return u.common.async?Promise.all(g).then(h=>d(h)):d(g)}min(a,l){return new ZodSet({...this._def,minSize:{value:a,message:errorUtil.toString(l)}})}max(a,l){return new ZodSet({...this._def,maxSize:{value:a,message:errorUtil.toString(l)}})}size(a,l){return this.min(a,l).max(a,l)}nonempty(a){return this.min(1,a)}}ZodSet.create=(t,a)=>new ZodSet({valueType:t,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(a)});class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(a){const{ctx:l}=this._processInputParams(a);return this._def.getter()._parse({data:l.data,path:l.path,parent:l})}}ZodLazy.create=(t,a)=>new ZodLazy({getter:t,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(a)});class ZodLiteral extends ZodType{_parse(a){if(a.data!==this._def.value){const l=this._getOrReturnCtx(a);return addIssueToContext(l,{received:l.data,code:ZodIssueCode.invalid_literal,expected:this._def.value}),INVALID}return{status:"valid",value:a.data}}get value(){return this._def.value}}ZodLiteral.create=(t,a)=>new ZodLiteral({value:t,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(a)});function createZodEnum(t,a){return new ZodEnum({values:t,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(a)})}class ZodEnum extends ZodType{_parse(a){if(typeof a.data!="string"){const l=this._getOrReturnCtx(a),u=this._def.values;return addIssueToContext(l,{expected:util.joinValues(u),received:l.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const l=this._getOrReturnCtx(a),u=this._def.values;return addIssueToContext(l,{received:l.data,code:ZodIssueCode.invalid_enum_value,options:u}),INVALID}return OK(a.data)}get options(){return this._def.values}get enum(){const a={};for(const l of this._def.values)a[l]=l;return a}get Values(){const a={};for(const l of this._def.values)a[l]=l;return a}get Enum(){const a={};for(const l of this._def.values)a[l]=l;return a}extract(a,l=this._def){return ZodEnum.create(a,{...this._def,...l})}exclude(a,l=this._def){return ZodEnum.create(this.options.filter(u=>!a.includes(u)),{...this._def,...l})}}ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{_parse(a){const l=util.getValidEnumValues(this._def.values),u=this._getOrReturnCtx(a);if(u.parsedType!==ZodParsedType.string&&u.parsedType!==ZodParsedType.number){const c=util.objectValues(l);return addIssueToContext(u,{expected:util.joinValues(c),received:u.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||(this._cache=new Set(util.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const c=util.objectValues(l);return addIssueToContext(u,{received:u.data,code:ZodIssueCode.invalid_enum_value,options:c}),INVALID}return OK(a.data)}get enum(){return this._def.values}}ZodNativeEnum.create=(t,a)=>new ZodNativeEnum({values:t,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(a)});class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(a){const{ctx:l}=this._processInputParams(a);if(l.parsedType!==ZodParsedType.promise&&l.common.async===!1)return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:l.parsedType}),INVALID;const u=l.parsedType===ZodParsedType.promise?l.data:Promise.resolve(l.data);return OK(u.then(c=>this._def.type.parseAsync(c,{path:l.path,errorMap:l.common.contextualErrorMap})))}}ZodPromise.create=(t,a)=>new ZodPromise({type:t,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(a)});class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:l,ctx:u}=this._processInputParams(a),c=this._def.effect||null,f={addIssue:d=>{addIssueToContext(u,d),d.fatal?l.abort():l.dirty()},get path(){return u.path}};if(f.addIssue=f.addIssue.bind(f),c.type==="preprocess"){const d=c.transform(u.data,f);if(u.common.async)return Promise.resolve(d).then(async g=>{if(l.value==="aborted")return INVALID;const h=await this._def.schema._parseAsync({data:g,path:u.path,parent:u});return h.status==="aborted"?INVALID:h.status==="dirty"||l.value==="dirty"?DIRTY(h.value):h});{if(l.value==="aborted")return INVALID;const g=this._def.schema._parseSync({data:d,path:u.path,parent:u});return g.status==="aborted"?INVALID:g.status==="dirty"||l.value==="dirty"?DIRTY(g.value):g}}if(c.type==="refinement"){const d=g=>{const h=c.refinement(g,f);if(u.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(u.common.async===!1){const g=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});return g.status==="aborted"?INVALID:(g.status==="dirty"&&l.dirty(),d(g.value),{status:l.value,value:g.value})}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(g=>g.status==="aborted"?INVALID:(g.status==="dirty"&&l.dirty(),d(g.value).then(()=>({status:l.value,value:g.value}))))}if(c.type==="transform")if(u.common.async===!1){const d=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});if(!isValid(d))return INVALID;const g=c.transform(d.value,f);if(g instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:g}}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(d=>isValid(d)?Promise.resolve(c.transform(d.value,f)).then(g=>({status:l.value,value:g})):INVALID);util.assertNever(c)}}ZodEffects.create=(t,a,l)=>new ZodEffects({schema:t,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:a,...processCreateParams(l)});ZodEffects.createWithPreprocess=(t,a,l)=>new ZodEffects({schema:a,effect:{type:"preprocess",transform:t},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(l)});class ZodOptional extends ZodType{_parse(a){return this._getType(a)===ZodParsedType.undefined?OK(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}ZodOptional.create=(t,a)=>new ZodOptional({innerType:t,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(a)});class ZodNullable extends ZodType{_parse(a){return this._getType(a)===ZodParsedType.null?OK(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}ZodNullable.create=(t,a)=>new ZodNullable({innerType:t,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(a)});class ZodDefault extends ZodType{_parse(a){const{ctx:l}=this._processInputParams(a);let u=l.data;return l.parsedType===ZodParsedType.undefined&&(u=this._def.defaultValue()),this._def.innerType._parse({data:u,path:l.path,parent:l})}removeDefault(){return this._def.innerType}}ZodDefault.create=(t,a)=>new ZodDefault({innerType:t,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...processCreateParams(a)});class ZodCatch extends ZodType{_parse(a){const{ctx:l}=this._processInputParams(a),u={...l,common:{...l.common,issues:[]}},c=this._def.innerType._parse({data:u.data,path:u.path,parent:{...u}});return isAsync(c)?c.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new ZodError(u.common.issues)},input:u.data})})):{status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new ZodError(u.common.issues)},input:u.data})}}removeCatch(){return this._def.innerType}}ZodCatch.create=(t,a)=>new ZodCatch({innerType:t,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...processCreateParams(a)});class ZodNaN extends ZodType{_parse(a){if(this._getType(a)!==ZodParsedType.nan){const u=this._getOrReturnCtx(a);return addIssueToContext(u,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:u.parsedType}),INVALID}return{status:"valid",value:a.data}}}ZodNaN.create=t=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(t)});class ZodBranded extends ZodType{_parse(a){const{ctx:l}=this._processInputParams(a),u=l.data;return this._def.type._parse({data:u,path:l.path,parent:l})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(a){const{status:l,ctx:u}=this._processInputParams(a);if(u.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:u.data,path:u.path,parent:u});return f.status==="aborted"?INVALID:f.status==="dirty"?(l.dirty(),DIRTY(f.value)):this._def.out._parseAsync({data:f.value,path:u.path,parent:u})})();{const c=this._def.in._parseSync({data:u.data,path:u.path,parent:u});return c.status==="aborted"?INVALID:c.status==="dirty"?(l.dirty(),{status:"dirty",value:c.value}):this._def.out._parseSync({data:c.value,path:u.path,parent:u})}}static create(a,l){return new ZodPipeline({in:a,out:l,typeName:ZodFirstPartyTypeKind.ZodPipeline})}}class ZodReadonly extends ZodType{_parse(a){const l=this._def.innerType._parse(a),u=c=>(isValid(c)&&(c.value=Object.freeze(c.value)),c);return isAsync(l)?l.then(c=>u(c)):u(l)}unwrap(){return this._def.innerType}}ZodReadonly.create=(t,a)=>new ZodReadonly({innerType:t,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(a)});var ZodFirstPartyTypeKind;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ZodFirstPartyTypeKind||(ZodFirstPartyTypeKind={}));const stringType=ZodString.create,numberType=ZodNumber.create,booleanType=ZodBoolean.create,unknownType=ZodUnknown.create;ZodNever.create;const arrayType=ZodArray.create,objectType=ZodObject.create;ZodUnion.create;ZodIntersection.create;ZodTuple.create;const recordType=ZodRecord.create;ZodEnum.create;ZodPromise.create;ZodOptional.create;ZodNullable.create;objectType({id:stringType(),agentId:stringType(),clappId:stringType(),intent:stringType(),payload:recordType(unknownType()),timestamp:stringType()});objectType({agentId:stringType(),clappId:stringType(),version:numberType(),timestamp:stringType(),state:recordType(unknownType())});const AppEntrySchema=objectType({id:stringType(),name:stringType(),description:stringType().default(""),emoji:stringType().default("📦"),icon:stringType().default(""),tags:arrayType(stringType()).default([]),pinned:booleanType().default(!1)});objectType({agentId:stringType(),apps:arrayType(AppEntrySchema)});objectType({agentId:stringType(),viewId:stringType(),content:stringType()});const Card$1=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:cn("rounded-lg border border-border bg-card text-card-foreground shadow-sm",t),...a}));Card$1.displayName="Card";const CardHeader=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:cn("flex flex-col space-y-1.5 p-4 pb-2",t),...a}));CardHeader.displayName="CardHeader";const CardTitle=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("h3",{ref:l,className:cn("text-base font-semibold leading-none tracking-tight",t),...a}));CardTitle.displayName="CardTitle";const CardDescription=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("p",{ref:l,className:cn("text-sm text-muted-foreground",t),...a}));CardDescription.displayName="CardDescription";const CardContent=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:cn("p-4 pt-0",t),...a}));CardContent.displayName="CardContent";const CardFooter=reactExports.forwardRef(({className:t,...a},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:cn("flex items-center p-4 pt-0",t),...a}));CardFooter.displayName="CardFooter";function Card({title:t,children:a}){return jsxRuntimeExports.jsxs(Card$1,{children:[t&&jsxRuntimeExports.jsx(CardHeader,{children:jsxRuntimeExports.jsx(CardTitle,{children:t})}),jsxRuntimeExports.jsx(CardContent,{className:t?"":"pt-4",children:a})]})}function Column({gap:t=2,children:a,className:l}){const u=`gap-${t}`;return jsxRuntimeExports.jsx("div",{className:cn("flex flex-col",u,l),children:a})}const alignMap={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justifyMap={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"};function Row({gap:t=2,align:a="center",justify:l="start",children:u,className:c}){return jsxRuntimeExports.jsx("div",{className:cn("flex flex-row",`gap-${t}`,alignMap[a],justifyMap[l],c),children:u})}const levelStyles={1:"text-2xl font-bold tracking-tight",2:"text-xl font-semibold tracking-tight",3:"text-lg font-semibold",4:"text-base font-medium",5:"text-sm font-medium",6:"text-sm font-medium text-muted-foreground"};function Heading({level:t=2,children:a,className:l}){const u=`h${t}`;return jsxRuntimeExports.jsx(u,{className:cn(levelStyles[t],l),children:a})}const Input=reactExports.forwardRef(({className:t,type:a,...l},u)=>jsxRuntimeExports.jsx("input",{type:a,className:cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:u,...l}));Input.displayName="Input";const FormContext=reactExports.createContext(null);function useFormContext(){const t=reactExports.useContext(FormContext);return t||{values:{},setValue:()=>{},reset:()=>{}}}function FormProvider({children:t}){const[a,l]=reactExports.useState({}),u=(f,d)=>{l(g=>({...g,[f]:d}))},c=()=>{l({})};return jsxRuntimeExports.jsx(FormContext.Provider,{value:{values:a,setValue:u,reset:c},children:t})}function TextInput({name:t,type:a="text",placeholder:l}){const{values:u,setValue:c}=useFormContext(),f=u[t]??"";return jsxRuntimeExports.jsx(Input,{type:a,name:t,placeholder:l,value:f,onChange:d=>c(t,d.target.value)})}function IntentFormInner({intent:t,submitLabel:a="Submit",children:l}){const{values:u,reset:c}=useFormContext(),{sendIntent:f}=useClappContext(),d=g=>{g.preventDefault(),f(t,u),c()};return jsxRuntimeExports.jsxs("form",{onSubmit:d,className:"flex flex-col gap-3",children:[l,jsxRuntimeExports.jsx(Button,{type:"submit",className:"self-start",children:a})]})}function IntentForm(t){return jsxRuntimeExports.jsx(FormProvider,{children:jsxRuntimeExports.jsx(IntentFormInner,{...t})})}function IntentButton({intent:t,payload:a={},variant:l="outline",size:u="default",children:c}){const{sendIntent:f}=useClappContext();return jsxRuntimeExports.jsx(Button,{variant:l,size:u,onClick:()=>f(t,a),children:c})}function Skeleton$1({className:t,...a}){return jsxRuntimeExports.jsx("div",{className:cn("animate-pulse rounded-md bg-muted",t),...a})}function Skeleton(){return jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[jsxRuntimeExports.jsx(Skeleton$1,{className:"h-4 w-4/5"}),jsxRuntimeExports.jsx(Skeleton$1,{className:"h-4 w-3/5"}),jsxRuntimeExports.jsx(Skeleton$1,{className:"h-4 w-4/5"})]})}function List({data:t,onItemClick:a,active:l,children:u,className:c}){const f=useClappState(t||"_empty_")??[],d=useClappState(l||"_empty_"),{emit:g}=useIntent();return t?f.length===0?jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground py-4 text-center",children:"No items"}):jsxRuntimeExports.jsx("ul",{className:cn("flex flex-col gap-1",c),children:f.map((h,m)=>{const x=typeof h=="object"&&h!==null,S=x?h:null,A=String(S?S.text??JSON.stringify(h):h),C=S!=null&&S.role?String(S.role):void 0,O=S!=null&&S.id?String(S.id):`${m}`,Z=h===d;return jsxRuntimeExports.jsx("li",{className:cn("flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors",a&&"cursor-pointer",Z?"bg-accent text-accent-foreground":"hover:bg-accent/50",C==="assistant"&&"bg-muted/50",C==="user"&&"bg-primary/10"),onClick:a?()=>g(a,x?h:{value:h}):void 0,role:a?"button":void 0,children:A},O)})}):jsxRuntimeExports.jsx("ul",{className:cn("flex flex-col gap-1",c),children:u})}function ListItem({active:t,children:a,className:l,onClick:u}){return jsxRuntimeExports.jsx("li",{className:cn("flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors cursor-pointer",t?"bg-accent text-accent-foreground":"hover:bg-accent/50",l),onClick:u,children:a})}function Conditional({when:t,children:a}){const l=(t==null?void 0:t.startsWith("!"))??!1,u=l?t.slice(1):t??"",c=useClappState(u||"_empty_");return(l?!c:!!c)?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:a}):null}function MarkdownContent({source:t,content:a,className:l}){const u=useClappState(t||"_empty_"),c=a??u??"";return c?jsxRuntimeExports.jsx("div",{className:cn("prose prose-invert prose-sm max-w-none",l),children:jsxRuntimeExports.jsx(Markdown,{components:{h1:({children:f})=>jsxRuntimeExports.jsx("h1",{className:"text-xl font-bold mt-4 mb-2",children:f}),h2:({children:f})=>jsxRuntimeExports.jsx("h2",{className:"text-lg font-semibold mt-3 mb-2",children:f}),h3:({children:f})=>jsxRuntimeExports.jsx("h3",{className:"text-base font-semibold mt-2 mb-1",children:f}),p:({children:f})=>jsxRuntimeExports.jsx("p",{className:"my-2 text-sm leading-relaxed",children:f}),ul:({children:f})=>jsxRuntimeExports.jsx("ul",{className:"list-disc list-inside my-2 text-sm",children:f}),ol:({children:f})=>jsxRuntimeExports.jsx("ol",{className:"list-decimal list-inside my-2 text-sm",children:f}),li:({children:f})=>jsxRuntimeExports.jsx("li",{className:"my-0.5",children:f}),code:({children:f,className:d})=>!d?jsxRuntimeExports.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs font-mono",children:f}):jsxRuntimeExports.jsx("code",{className:d,children:f}),pre:({children:f})=>jsxRuntimeExports.jsx("pre",{className:"bg-card border border-border rounded-md p-3 overflow-x-auto my-2 text-xs",children:f}),blockquote:({children:f})=>jsxRuntimeExports.jsx("blockquote",{className:"border-l-2 border-primary pl-3 my-2 text-muted-foreground italic",children:f}),a:({href:f,children:d})=>jsxRuntimeExports.jsx("a",{href:f,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:d}),strong:({children:f})=>jsxRuntimeExports.jsx("strong",{className:"font-semibold",children:f}),em:({children:f})=>jsxRuntimeExports.jsx("em",{className:"italic",children:f})},children:c})}):null}function Icon({name:t,emoji:a,className:l}){return a?jsxRuntimeExports.jsx("span",{className:cn("text-base leading-none",l),children:a}):t?jsxRuntimeExports.jsx("span",{className:cn("text-base leading-none",l),children:"•"}):null}const PROVIDER_CONFIGS=[{type:"anthropic",name:"Anthropic",description:"Claude models via API or subscription",authModes:[{mode:"api-key",label:"API Key",description:"Use your Anthropic API key (usage-based billing)",helpUrl:"https://console.anthropic.com/settings/keys",fields:[{name:"apiKey",label:"API Key",type:"password",placeholder:"sk-ant-api03-...",helpText:"Get your API key from the Anthropic Console"}]},{mode:"subscription",label:"Claude Subscription",description:"Use your Claude Pro/Max subscription",helpUrl:"https://docs.openclaw.ai/providers/anthropic#option-b-claude-setup-token",fields:[{name:"setupToken",label:"Setup Token",type:"textarea",placeholder:"Paste your setup token here...",helpText:"Run 'claude setup-token' in your terminal to generate this"}]}]},{type:"openai",name:"OpenAI",description:"GPT models via API or Codex subscription",authModes:[{mode:"api-key",label:"API Key",description:"Use your OpenAI API key (usage-based billing)",helpUrl:"https://platform.openai.com/api-keys",fields:[{name:"apiKey",label:"API Key",type:"password",placeholder:"sk-...",helpText:"Get your API key from the OpenAI dashboard"}]},{mode:"subscription",label:"Codex Subscription",description:"Use your ChatGPT Plus/Pro subscription via Codex",helpUrl:"https://docs.openclaw.ai/providers/openai#option-b-openai-code-codex-subscription",fields:[]}]},{type:"kimi-coding",name:"Kimi Coding",description:"Moonshot's Kimi K2 models for coding",authModes:[{mode:"api-key",label:"API Key",description:"Use your Kimi Coding API key",helpUrl:"https://platform.moonshot.cn/console/api-keys",fields:[{name:"apiKey",label:"API Key",type:"password",placeholder:"sk-...",helpText:"Get your API key from the Moonshot platform"}]}]}];function ProviderEditor({isOpen:t,onClose:a,editingProvider:l}){const{emit:u}=useIntent(),[c,f]=reactExports.useState("select"),[d,g]=reactExports.useState(null),[h,m]=reactExports.useState(null),[x,S]=reactExports.useState(""),[A,C]=reactExports.useState({}),[O,Z]=reactExports.useState({}),[P,q]=reactExports.useState(!1),[ne,Y]=reactExports.useState(null);reactExports.useEffect(()=>{if(t){if(l){g(l.type);const ee=l.authType==="subscription"||l.authType==="oauth"||l.mode==="oauth"?"subscription":"api-key";m(ee),S(l.name),f("configure")}else f("select"),g(null),m(null),S("");C({}),Z({}),Y(null),q(!1)}},[t,l]);const pe=d?PROVIDER_CONFIGS.find(ee=>ee.type===d):null,ye=pe&&h?pe.authModes.find(ee=>ee.mode===h):null,Q=ee=>{g(ee);const Ae=PROVIDER_CONFIGS.find(xe=>xe.type===ee);Ae&&(m(Ae.authModes[0].mode),S(Ae.name)),f("configure")},be=(ee,Ae)=>{C(xe=>({...xe,[ee]:Ae})),Y(null)},ue=ee=>{Z(Ae=>({...Ae,[ee]:!Ae[ee]}))},ke=async()=>{var ee,Ae;if(!(!d||!h||!pe)){if(ye!=null&&ye.fields.length){for(const xe of ye.fields)if(!((ee=A[xe.name])!=null&&ee.trim())){Y(`${xe.label} is required`);return}}q(!0),Y(null);try{const xe=getIntentName(d,h),he={customName:x.trim()||pe.name,profileId:l==null?void 0:l.id};for(const H of(ye==null?void 0:ye.fields)??[])he[H.name]=(Ae=A[H.name])==null?void 0:Ae.trim();u(xe,he),await new Promise(H=>setTimeout(H,1e3)),a()}catch(xe){Y(xe instanceof Error?xe.message:"Failed to save provider")}finally{q(!1)}}},F=()=>{d&&(q(!0),u("settings.startOAuth",{provider:d==="openai"?"openai-codex":d,customName:x.trim()||(pe==null?void 0:pe.name)}))},ve=()=>{l&&confirm(`Delete "${l.name}"? This cannot be undone.`)&&(u("settings.deleteProvider",{profileId:l.id}),a())};return t?jsxRuntimeExports.jsxs("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:a}),jsxRuntimeExports.jsxs("div",{className:"relative w-full sm:max-w-md bg-background rounded-t-2xl sm:rounded-2xl shadow-xl max-h-[90vh] overflow-hidden flex flex-col animate-in slide-in-from-bottom-4 sm:slide-in-from-bottom-0 sm:zoom-in-95",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0",children:[jsxRuntimeExports.jsx("h2",{className:"text-lg font-semibold",children:l?"Edit Provider":"Add Provider"}),jsxRuntimeExports.jsx("button",{onClick:a,className:"p-1 rounded-full hover:bg-muted transition-colors","aria-label":"Close",children:jsxRuntimeExports.jsx(X,{className:"h-5 w-5"})})]}),jsxRuntimeExports.jsxs("div",{className:"flex-1 overflow-y-auto p-4",children:[c==="select"&&jsxRuntimeExports.jsxs("div",{className:"space-y-3",children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Choose a provider to add:"}),PROVIDER_CONFIGS.map(ee=>jsxRuntimeExports.jsxs("button",{onClick:()=>Q(ee.type),className:"w-full text-left p-4 rounded-lg border border-border hover:border-primary hover:bg-muted/50 transition-colors",children:[jsxRuntimeExports.jsx("div",{className:"font-medium",children:ee.name}),jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground",children:ee.description})]},ee.type))]}),c==="configure"&&pe&&jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Display Name"}),jsxRuntimeExports.jsx("input",{type:"text",value:x,onChange:ee=>S(ee.target.value),placeholder:pe.name,className:"w-full h-10 px-3 rounded-md border border-input bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground",children:'Give this configuration a custom name (e.g., "Work Account", "Personal")'})]}),pe.authModes.length>1&&jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Authentication Method"}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-2 gap-2",children:pe.authModes.map(ee=>jsxRuntimeExports.jsxs("button",{onClick:()=>m(ee.mode),className:cn("p-3 rounded-lg border text-left transition-colors",h===ee.mode?"border-primary bg-primary/10":"border-border hover:border-muted-foreground"),children:[jsxRuntimeExports.jsx("div",{className:"text-sm font-medium",children:ee.label}),jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:ee.description})]},ee.mode))})]}),ye&&jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[ye.fields.length>0?ye.fields.map(ee=>jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:ee.label}),(l==null?void 0:l.maskedCredential)&&!A[ee.name]&&jsxRuntimeExports.jsxs("div",{className:"text-xs text-muted-foreground bg-muted/50 px-2 py-1 rounded mb-1",children:["Current: ",l.maskedCredential]}),ee.type==="textarea"?jsxRuntimeExports.jsx("textarea",{value:A[ee.name]??"",onChange:Ae=>be(ee.name,Ae.target.value),placeholder:l?"Enter new value to replace...":ee.placeholder,rows:4,className:"w-full px-3 py-2 rounded-md border border-input bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary resize-none"}):jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("input",{type:ee.type==="password"&&!O[ee.name]?"password":"text",value:A[ee.name]??"",onChange:Ae=>be(ee.name,Ae.target.value),placeholder:l?"Enter new value to replace...":ee.placeholder,className:"w-full h-10 px-3 pr-10 rounded-md border border-input bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),ee.type==="password"&&jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>ue(ee.name),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 text-muted-foreground hover:text-foreground",children:O[ee.name]?jsxRuntimeExports.jsx(EyeOff,{className:"h-4 w-4"}):jsxRuntimeExports.jsx(Eye,{className:"h-4 w-4"})})]}),ee.helpText&&jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground",children:ee.helpText})]},ee.name)):jsxRuntimeExports.jsxs("div",{className:"space-y-3",children:[jsxRuntimeExports.jsxs("p",{className:"text-sm text-muted-foreground",children:["Click the button below to sign in with your ",pe.name," account."]}),jsxRuntimeExports.jsx(Button,{onClick:F,disabled:P,className:"w-full",children:P?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin mr-2"}),"Connecting..."]}):`Sign in with ${pe.name}`})]}),ye.helpUrl&&jsxRuntimeExports.jsxs("a",{href:ye.helpUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-primary hover:underline",children:["Learn more",jsxRuntimeExports.jsx(ExternalLink,{className:"h-3 w-3"})]})]}),ne&&jsxRuntimeExports.jsx("div",{className:"p-3 rounded-md bg-destructive/10 text-destructive text-sm",children:ne})]})]}),c==="configure"&&(ye==null?void 0:ye.fields.length)!==0&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-t border-border shrink-0",children:[l&&jsxRuntimeExports.jsx(Button,{variant:"destructive",onClick:ve,disabled:P,className:"mr-auto",children:"Delete"}),jsxRuntimeExports.jsx(Button,{variant:"outline",onClick:()=>l?a():f("select"),disabled:P,children:l?"Cancel":"Back"}),jsxRuntimeExports.jsx(Button,{onClick:ke,disabled:P,children:P?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin mr-2"}),"Saving..."]}):l?"Update":"Add Provider"})]})]})]}):null}function getIntentName(t,a){var u;return((u={anthropic:{"api-key":"settings.setAnthropicKey",subscription:"settings.setClaudeToken"},openai:{"api-key":"settings.setOpenAIKey",subscription:"settings.startOAuth"},"kimi-coding":{"api-key":"settings.setKimiCodingKey",subscription:"settings.setKimiCodingKey"}}[t])==null?void 0:u[a])??"settings.addProvider"}function getProviderIdentifier(t){const[,a]=t.split(":");return a||t}function providerOptionLabel(t){return`${t.name} · ${getProviderIdentifier(t.id)}`}function ProviderList({data:t="configuredProviders"}){const a=useClappState(t)??[],l=useClappState("active.model")??"",{emit:u}=useIntent(),c=a.find(F=>F.active)??a[0],[f,d]=reactExports.useState((c==null?void 0:c.id)??""),[g,h]=reactExports.useState(l??""),[m,x]=reactExports.useState(!1),[S,A]=reactExports.useState(!1),[C,O]=reactExports.useState(!1),[Z,P]=reactExports.useState(null),q=f!==((c==null?void 0:c.id)??"")||g!==(l??"");reactExports.useEffect(()=>{c&&(!f||m)&&d(c.id)},[c,m,f]),reactExports.useEffect(()=>{l&&(!g||m||!q)&&h(l)},[l,m,g,q]);const ne=reactExports.useMemo(()=>{const F=a.find(ve=>ve.id===f);return(F==null?void 0:F.models)??[]},[a,f]);reactExports.useEffect(()=>{if(!ne.length)return;ne.some(ve=>ve.id===g)||h(ne[0].id)},[ne,g]);const Y=!!(g&&g!==l);reactExports.useEffect(()=>{m&&l===g&&l.length>0&&(x(!1),A(!1))},[l,g,m]),reactExports.useEffect(()=>{if(!m)return;const F=setTimeout(()=>A(!0),1e4);return()=>clearTimeout(F)},[m]);const pe=a.find(F=>F.id===f),ye=F=>{var Ae,xe;if(m)return;d(F);const ve=a.find(he=>he.id===F),ee=(xe=(Ae=ve==null?void 0:ve.models)==null?void 0:Ae[0])==null?void 0:xe.id;h(ee||"")},Q=()=>{!Y||!g||m||(x(!0),A(!1),u("settings.setActiveModel",{model:g}))},be=()=>{P(null),O(!0)},ue=F=>{const ve=F.id.split(":")[0],ee={anthropic:"anthropic",openai:"openai","openai-codex":"openai","kimi-coding":"kimi-coding",moonshot:"kimi-coding"};P({id:F.id,name:F.name,type:ee[ve]??"anthropic",mode:F.mode,authType:F.authType,maskedCredential:F.maskedCredential}),O(!0)},ke=()=>{O(!1),P(null)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-1",children:[jsxRuntimeExports.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"System Default"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium",children:"Default model for new sessions"})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-2",children:[jsxRuntimeExports.jsx("label",{className:"text-xs text-muted-foreground",children:"Provider"}),jsxRuntimeExports.jsxs("div",{className:"relative flex gap-2",children:[jsxRuntimeExports.jsxs("div",{className:"relative flex-1",children:[jsxRuntimeExports.jsx("select",{value:f,onChange:F=>ye(F.target.value),disabled:m||a.length===0,className:"h-10 w-full appearance-none rounded-md border border-input bg-background pl-3 pr-10 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-primary disabled:opacity-70",children:a.length===0?jsxRuntimeExports.jsx("option",{value:"",children:"No providers configured"}):a.map(F=>jsxRuntimeExports.jsx("option",{value:F.id,children:providerOptionLabel(F)},F.id))}),jsxRuntimeExports.jsx(ChevronDown,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none"})]}),pe&&jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>ue(pe),disabled:m,className:cn("flex items-center justify-center h-10 w-10 rounded-md border border-input bg-background","hover:bg-muted transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),title:`Edit ${pe.name}`,children:jsxRuntimeExports.jsx(Pencil,{className:"h-4 w-4"})})]})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-2",children:[jsxRuntimeExports.jsx("label",{className:"text-xs text-muted-foreground",children:"Model"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("select",{value:g,onChange:F=>h(F.target.value),disabled:m||ne.length===0,className:"h-10 w-full appearance-none rounded-md border border-input bg-background pl-3 pr-10 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-primary disabled:opacity-70",children:ne.length===0?jsxRuntimeExports.jsx("option",{value:"",children:"No models available"}):ne.map(F=>jsxRuntimeExports.jsx("option",{value:F.id,children:F.label},F.id))}),jsxRuntimeExports.jsx(ChevronDown,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none"})]})]}),pe&&jsxRuntimeExports.jsxs("div",{className:"rounded-md border border-border bg-muted/30 px-3 py-2 text-xs text-muted-foreground",children:[jsxRuntimeExports.jsxs("div",{children:[providerOptionLabel(pe),": ",pe.maskedCredential??"No credential"]}),jsxRuntimeExports.jsxs("div",{className:"opacity-70",children:["id: ",pe.id]})]}),jsxRuntimeExports.jsx("button",{type:"button",onClick:Q,disabled:!Y||!g||m,className:cn("inline-flex h-10 items-center justify-center gap-2 rounded-md border px-4 text-sm font-medium transition-colors","border-primary bg-primary text-primary-foreground hover:bg-primary/90","disabled:cursor-not-allowed disabled:opacity-60"),children:m?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin"}),S?"Still applying…":"Updating model…"]}):Y?"Save changes":jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Check,{className:"h-4 w-4"}),"Up to date"]})}),jsxRuntimeExports.jsx("div",{className:"pt-2 border-t border-border",children:jsxRuntimeExports.jsxs("button",{type:"button",onClick:be,className:cn("inline-flex h-10 w-full items-center justify-center gap-2 rounded-md border border-dashed border-border","text-sm font-medium text-muted-foreground","hover:border-primary hover:text-foreground hover:bg-muted/50 transition-colors"),children:[jsxRuntimeExports.jsx(Plus,{className:"h-4 w-4"}),"Add Provider"]})})]}),jsxRuntimeExports.jsx(ProviderEditor,{isOpen:C,onClose:ke,editingProvider:Z})]})}function SessionList(){const t=useClappState("sessions"),a=(t==null?void 0:t.sessions)??[];t==null||t.globalModel;const{emit:l}=useIntent(),[u,c]=reactExports.useState(!1),[f,d]=reactExports.useState(null),[g,h]=reactExports.useState(!1);reactExports.useEffect(()=>{l("settings.listSessions",{})},[l]);const m=()=>{c(!0),l("settings.listSessions",{}),setTimeout(()=>c(!1),1500)},x=C=>{d(C),l("settings.resetSessionModel",{sessionKey:C}),setTimeout(()=>d(null),2e3)},S=()=>{h(!0),l("settings.applyDefaultToAll",{}),setTimeout(()=>h(!1),3e3)},A=a.filter(C=>C.isOverride).length;return a.length===0?jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsx("div",{className:"space-y-1",children:jsxRuntimeExports.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Active Sessions"})}),jsxRuntimeExports.jsx("button",{onClick:m,disabled:u,className:"p-1.5 rounded-md hover:bg-muted transition-colors disabled:opacity-50",title:"Refresh sessions",children:jsxRuntimeExports.jsx(RefreshCw,{className:cn("h-4 w-4",u&&"animate-spin")})})]}),jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground py-4 text-center border border-dashed border-border rounded-md",children:"No active sessions found"})]}):jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-1",children:[jsxRuntimeExports.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Active Sessions"}),jsxRuntimeExports.jsxs("p",{className:"text-sm text-muted-foreground",children:[a.length," session",a.length!==1?"s":"",A>0&&jsxRuntimeExports.jsxs("span",{className:"text-amber-500 ml-1",children:["• ",A," override",A!==1?"s":""]})]})]}),jsxRuntimeExports.jsx("button",{onClick:m,disabled:u,className:"p-1.5 rounded-md hover:bg-muted transition-colors disabled:opacity-50",title:"Refresh sessions",children:jsxRuntimeExports.jsx(RefreshCw,{className:cn("h-4 w-4",u&&"animate-spin")})})]}),jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-2",children:a.map(C=>jsxRuntimeExports.jsxs("div",{className:cn("flex items-start justify-between gap-2 p-3 rounded-lg border",C.isOverride?"border-amber-500/50 bg-amber-500/5":"border-border bg-muted/30"),children:[jsxRuntimeExports.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[C.isOverride?jsxRuntimeExports.jsx(TriangleAlert,{className:"h-4 w-4 text-amber-500 shrink-0"}):jsxRuntimeExports.jsx(Check,{className:"h-4 w-4 text-green-500 shrink-0"}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium truncate",children:C.label})]}),jsxRuntimeExports.jsxs("div",{className:"mt-1 ml-6",children:[jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground",children:C.modelLabel}),C.isOverride&&jsxRuntimeExports.jsx("span",{className:"text-xs text-amber-500 ml-2",children:"(override)"})]})]}),C.isOverride&&jsxRuntimeExports.jsx("button",{onClick:()=>x(C.key),disabled:f===C.key,className:cn("shrink-0 px-2 py-1 text-xs rounded-md border border-border","hover:bg-muted transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),title:"Reset to system default",children:f===C.key?jsxRuntimeExports.jsx(LoaderCircle,{className:"h-3 w-3 animate-spin"}):jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntimeExports.jsx(RotateCcw,{className:"h-3 w-3"}),"Reset"]})})]},C.key))}),A>0&&jsxRuntimeExports.jsx("button",{onClick:S,disabled:g,className:cn("w-full py-2 px-4 text-sm font-medium rounded-md","border border-amber-500/50 text-amber-600 dark:text-amber-400","hover:bg-amber-500/10 transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),children:g?jsxRuntimeExports.jsxs("span",{className:"flex items-center justify-center gap-2",children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin"}),"Applying to all sessions..."]}):`Apply default to all ${A} override${A!==1?"s":""}`})]})}function ChatMessages({messages:t,loading:a,hasMore:l=!1,loadingOlder:u=!1,onLoadOlder:c}){const f=reactExports.useRef(null),d=reactExports.useRef(null);reactExports.useEffect(()=>{var x;const h=f.current;if(!h)return;(h.scrollHeight-h.scrollTop-h.clientHeight<200||a)&&((x=d.current)==null||x.scrollIntoView({behavior:"smooth"}))},[t,a]);const g=()=>{const h=f.current;!h||!l||u||!c||h.scrollTop<120&&c()};return t.length===0&&!a?jsxRuntimeExports.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:jsxRuntimeExports.jsxs("div",{className:"text-center max-w-md",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold mb-2",children:"What can I do for you?"}),jsxRuntimeExports.jsx("p",{className:"text-muted-foreground",children:"Start a conversation by typing a message below."})]})}):jsxRuntimeExports.jsx("div",{ref:f,onScroll:g,className:"flex-1 overflow-y-auto",children:jsxRuntimeExports.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-6 space-y-6",children:[u&&jsxRuntimeExports.jsx("div",{className:"text-center text-xs text-muted-foreground",children:"Loading older messages…"}),l&&!u&&jsxRuntimeExports.jsx("div",{className:"text-center text-xs text-muted-foreground",children:"Scroll up to load older messages"}),t.map(h=>jsxRuntimeExports.jsx(MessageBubble,{message:h},h.id)),a&&jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-4",children:[jsxRuntimeExports.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center",children:jsxRuntimeExports.jsx(Bot,{className:"h-4 w-4 text-primary"})}),jsxRuntimeExports.jsx("div",{className:"flex-1 pt-1",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin"}),jsxRuntimeExports.jsx("span",{className:"text-sm",children:"Thinking..."})]})})]}),jsxRuntimeExports.jsx("div",{ref:d})]})})}function MessageBubble({message:t}){const a=t.role==="user";return t.role==="system"?jsxRuntimeExports.jsx("div",{className:"text-center",children:jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground bg-muted px-3 py-1 rounded-full",children:t.content})}):jsxRuntimeExports.jsxs("div",{className:cn("flex items-start gap-4",a&&"flex-row-reverse"),children:[jsxRuntimeExports.jsx("div",{className:cn("shrink-0 w-8 h-8 rounded-full flex items-center justify-center",a?"bg-primary text-primary-foreground":"bg-primary/10"),children:a?jsxRuntimeExports.jsx(User,{className:"h-4 w-4"}):jsxRuntimeExports.jsx(Bot,{className:"h-4 w-4 text-primary"})}),jsxRuntimeExports.jsx("div",{className:cn("flex-1 min-w-0 pt-1",a&&"text-right"),children:jsxRuntimeExports.jsx("div",{className:cn("inline-block text-left rounded-2xl px-4 py-2 max-w-full",a?"bg-primary text-primary-foreground rounded-tr-sm":"bg-muted rounded-tl-sm"),children:jsxRuntimeExports.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none break-words",children:jsxRuntimeExports.jsx(Markdown,{components:{code:({className:u,children:c,...f})=>u?jsxRuntimeExports.jsx("pre",{className:"bg-black/10 dark:bg-white/10 p-3 rounded-lg overflow-x-auto my-2",children:jsxRuntimeExports.jsx("code",{className:"text-sm",...f,children:c})}):jsxRuntimeExports.jsx("code",{className:"bg-black/10 dark:bg-white/10 px-1 py-0.5 rounded text-sm",...f,children:c}),p:({children:u})=>jsxRuntimeExports.jsx("p",{className:"mb-2 last:mb-0",children:u})},children:t.content})})})})]})}function ChatInput({onSend:t,disabled:a=!1,placeholder:l="Message..."}){const[u,c]=reactExports.useState(""),f=reactExports.useRef(null);reactExports.useEffect(()=>{const h=f.current;h&&(h.style.height="auto",h.style.height=`${Math.min(h.scrollHeight,200)}px`)},[u]);const d=()=>{const h=u.trim();!h||a||(t(h),c(""),f.current&&(f.current.style.height="auto"))},g=h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),d())};return jsxRuntimeExports.jsx("div",{className:"shrink-0 border-t border-border bg-background",children:jsxRuntimeExports.jsxs("div",{className:"max-w-3xl mx-auto p-4",children:[jsxRuntimeExports.jsxs("div",{className:cn("flex items-end gap-2 rounded-2xl border border-border bg-muted/30 p-2","focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/20",a&&"opacity-60"),children:[jsxRuntimeExports.jsx("textarea",{ref:f,value:u,onChange:h=>c(h.target.value),onKeyDown:g,placeholder:l,disabled:a,rows:1,className:cn("flex-1 resize-none bg-transparent px-2 py-1.5 text-sm","placeholder:text-muted-foreground","focus:outline-none","disabled:cursor-not-allowed")}),jsxRuntimeExports.jsx("button",{onClick:d,disabled:a||!u.trim(),className:cn("shrink-0 p-2 rounded-xl transition-colors","bg-primary text-primary-foreground","hover:bg-primary/90","disabled:opacity-50 disabled:cursor-not-allowed"),children:jsxRuntimeExports.jsx(Send,{className:"h-4 w-4"})})]}),jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground text-center mt-2",children:"Press Enter to send, Shift+Enter for new line"})]})})}function ChatLayout(){const t=useClappState("chat"),a=(t==null?void 0:t.sessions)??[],l=t==null?void 0:t.activeSession,u=(t==null?void 0:t.messages)??[],c=(t==null?void 0:t.loading)??!1,f=(t==null?void 0:t.loadingOlder)??!1,d=(t==null?void 0:t.hasMore)??!1,{emit:g}=useIntent(),[h,m]=reactExports.useState(!1),[x,S]=reactExports.useState(null),A=reactExports.useRef(!1);reactExports.useEffect(()=>{l&&m(!1)},[l]),reactExports.useEffect(()=>{A.current||(A.current=!0,g("chat.init",{}))},[g]);const C=()=>{g("chat.newSession",{}),m(!1)},O=Y=>{Y!==l&&g("chat.switchSession",{sessionKey:Y}),m(!1)},Z=(Y,pe)=>{pe.stopPropagation(),S(Y),g("chat.deleteSession",{sessionKey:Y}),setTimeout(()=>S(null),1e3)},P=Y=>{g("chat.send",{text:Y})},q=()=>{!f&&d&&g("chat.loadOlder",{})},ne=a.find(Y=>Y.key===l);return jsxRuntimeExports.jsxs("div",{className:"flex h-full bg-background",children:[h&&jsxRuntimeExports.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 lg:hidden",onClick:()=>m(!1)}),jsxRuntimeExports.jsxs("aside",{className:cn("fixed lg:static inset-y-0 left-0 z-50 w-72 bg-muted/50 border-r border-border","transform transition-transform duration-200 ease-in-out","flex flex-col",h?"translate-x-0":"-translate-x-full lg:translate-x-0"),children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[jsxRuntimeExports.jsx("h2",{className:"font-semibold text-sm",children:"Chats"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("button",{onClick:C,className:"p-2 rounded-md hover:bg-muted transition-colors",title:"New chat",children:jsxRuntimeExports.jsx(Plus,{className:"h-4 w-4"})}),jsxRuntimeExports.jsx("button",{onClick:()=>m(!1),className:"p-2 rounded-md hover:bg-muted transition-colors lg:hidden",children:jsxRuntimeExports.jsx(X,{className:"h-4 w-4"})})]})]}),jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:a.length===0?jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:"No conversations yet"}):jsxRuntimeExports.jsx("div",{className:"space-y-1",children:a.map(Y=>jsxRuntimeExports.jsx("button",{onClick:()=>O(Y.key),className:cn("w-full text-left p-3 rounded-lg transition-colors group","hover:bg-muted",Y.key===l&&"bg-muted"),children:jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-3",children:[jsxRuntimeExports.jsx(MessageSquare,{className:"h-4 w-4 mt-0.5 shrink-0 text-muted-foreground"}),jsxRuntimeExports.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntimeExports.jsx("div",{className:"text-sm font-medium truncate",children:Y.title||"New conversation"}),jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground truncate mt-0.5",children:Y.preview||"No messages"})]}),jsxRuntimeExports.jsx("button",{onClick:pe=>Z(Y.key,pe),className:cn("p-1 rounded opacity-0 group-hover:opacity-100 transition-opacity","hover:bg-destructive/20 hover:text-destructive",x===Y.key&&"opacity-100"),title:"Delete conversation",children:jsxRuntimeExports.jsx(Trash2,{className:"h-3.5 w-3.5"})})]})},Y.key))})})]}),jsxRuntimeExports.jsxs("main",{className:"flex-1 flex flex-col min-w-0",children:[jsxRuntimeExports.jsxs("header",{className:"flex items-center gap-3 px-4 py-3 border-b border-border shrink-0",children:[jsxRuntimeExports.jsx("button",{onClick:()=>m(!0),className:"p-2 -ml-2 rounded-md hover:bg-muted transition-colors lg:hidden",children:jsxRuntimeExports.jsx(Menu,{className:"h-5 w-5"})}),jsxRuntimeExports.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntimeExports.jsx("h1",{className:"font-semibold truncate",children:(ne==null?void 0:ne.title)||"New conversation"})})]}),jsxRuntimeExports.jsx(ChatMessages,{messages:u,loading:c,hasMore:d,loadingOlder:f,onLoadOlder:q}),jsxRuntimeExports.jsx(ChatInput,{onSend:P,disabled:c})]})]})}const componentMap={Column,Row,Heading,IntentButton,Icon,List,ListItem,Conditional,Skeleton,MarkdownContent,Card,TextInput,IntentForm,ProviderList,SessionList,ChatLayout,ChatMessages,ChatInput};function LayoutNodeRenderer({node:t,moduleMap:a}){if(t.component==="Module"&&t.props.ref&&a){const c=String(t.props.ref),f=a.get(c);return f?jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:f,moduleMap:a}):jsxRuntimeExports.jsxs("div",{className:"text-destructive text-sm p-2",children:["Module not found: ",c]})}const l=componentMap[t.component];if(!l)return jsxRuntimeExports.jsxs("div",{className:"text-destructive text-sm p-2",children:["Unknown component: ",t.component]});const u=t.children.map((c,f)=>typeof c=="string"?jsxRuntimeExports.jsx("span",{children:c},f):jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:c,moduleMap:a},f));return jsxRuntimeExports.jsx(l,{...t.props,children:u})}function AppRenderer({spec:t,modules:a}){const l=reactExports.useMemo(()=>{const u=new Map;for(const c of a)u.set(`${c.domain}/${c.name}`,c.layout);return u},[a]);return jsxRuntimeExports.jsx("div",{className:"h-full overflow-y-auto p-4","data-app":t.name,children:jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:t.layout,moduleMap:l})})}function ClappRenderer({clappId:t,transport:a}){const l=window.location.origin;return jsxRuntimeExports.jsx(ClappProvider,{serverUrl:l,clappId:t,transport:a,children:jsxRuntimeExports.jsx("div",{className:"flex flex-col h-full",children:jsxRuntimeExports.jsx(DynamicView,{clappId:t,transport:a})})})}function DynamicView({clappId:t,transport:a}){const[l,u]=reactExports.useState({status:"loading"}),c=reactExports.useCallback(async()=>{try{const f=await a.fetchView(`${t}.app`);if(!f){u({status:"no-view"});return}const d=parseAppMd(f),h=(await Promise.all(d.modules.map(async m=>{const x=m.replace("/","."),S=await a.fetchView(`${x}.view`);return S?parseViewMd(S):null}))).filter(m=>m!==null);u({status:"ready",appSpec:d,modules:h})}catch(f){u({status:"error",message:f instanceof Error?f.message:"Failed to load views"})}},[t,a]);switch(reactExports.useEffect(()=>(c(),a.onView(d=>{(d===`${t}.app`||d.endsWith(".view"))&&c()})),[c,a,t]),l.status){case"loading":return jsxRuntimeExports.jsx("div",{className:"h-full p-4 animate-pulse",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"h-8 w-40 rounded-md bg-muted"}),jsxRuntimeExports.jsxs("div",{className:"rounded-xl border border-border p-4 space-y-3",children:[jsxRuntimeExports.jsx("div",{className:"h-4 w-32 rounded bg-muted"}),jsxRuntimeExports.jsx("div",{className:"h-10 w-full rounded bg-muted"}),jsxRuntimeExports.jsx("div",{className:"h-10 w-full rounded bg-muted"}),jsxRuntimeExports.jsx("div",{className:"h-10 w-36 rounded bg-muted"})]}),jsxRuntimeExports.jsxs("div",{className:"rounded-xl border border-border p-4 space-y-3",children:[jsxRuntimeExports.jsx("div",{className:"h-4 w-28 rounded bg-muted"}),jsxRuntimeExports.jsx("div",{className:"h-20 w-full rounded bg-muted"})]})]})});case"no-view":return jsxRuntimeExports.jsx(StateInspector,{});case"error":return jsxRuntimeExports.jsxs("div",{className:"p-4",children:[jsxRuntimeExports.jsx("div",{className:"p-3 bg-destructive/10 text-destructive rounded-md text-sm",children:l.message}),jsxRuntimeExports.jsx("div",{className:"mt-4",children:jsxRuntimeExports.jsx(StateInspector,{})})]});case"ready":return jsxRuntimeExports.jsx(AppRenderer,{spec:l.appSpec,modules:l.modules})}}function StateInspector(){return jsxRuntimeExports.jsxs("div",{className:"p-4",children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground mb-3 italic",children:"No view definition found. Showing raw state:"}),jsxRuntimeExports.jsx(StateTree,{})]})}function StateTree(){const{store:t}=useClappContext(),a=useStore(t,u=>u.state);return useClappLoading()?jsxRuntimeExports.jsx("div",{className:"text-muted-foreground text-sm",children:"Waiting for state..."}):!a||Object.keys(a).length===0?jsxRuntimeExports.jsx("div",{className:"text-muted-foreground text-sm",children:"No state available."}):jsxRuntimeExports.jsx("div",{className:"font-mono text-xs leading-relaxed",children:renderEntries(a,"")})}function renderEntries(t,a){return Object.entries(t).map(([l,u])=>{const c=a?`${a}.${l}`:l;return u!==null&&typeof u=="object"&&!Array.isArray(u)?jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-muted-foreground font-semibold",children:c}),jsxRuntimeExports.jsx("div",{className:"pl-4",children:renderEntries(u,c)})]},c):jsxRuntimeExports.jsxs("div",{className:"flex gap-2 py-0.5",children:[jsxRuntimeExports.jsxs("span",{className:"text-muted-foreground",children:[c,":"]}),jsxRuntimeExports.jsx("span",{children:typeof u=="string"?u:JSON.stringify(u)})]},c)})}function getServerUrl(){return window.location.origin}function App(){const[t,a]=reactExports.useState(null),[l,u]=reactExports.useState([]),c=reactExports.useRef(void 0);c.current||(c.current=new ClappTransport({serverUrl:getServerUrl(),context:{platform:"web"}}));const f=c.current;reactExports.useEffect(()=>{f.connect();const m=f.onApps(x=>{u(x)});return f.fetchApps().then(u).catch(()=>{}),()=>{m(),f.disconnect()}},[f]);const d=reactExports.useCallback(m=>{a(m)},[]),g=reactExports.useCallback(()=>{a(null)},[]),h=l.find(m=>m.id===t);return jsxRuntimeExports.jsxs("div",{className:"relative h-screen overflow-hidden bg-background",children:[jsxRuntimeExports.jsxs("div",{className:cn("absolute inset-0 flex flex-col overflow-y-auto transition-all duration-300 ease-out z-10",t&&"translate-x-[-30%] opacity-0 pointer-events-none"),children:[jsxRuntimeExports.jsx("header",{className:"flex items-center justify-center px-4 py-3 border-b border-border shrink-0",children:jsxRuntimeExports.jsx("h1",{className:"text-lg font-bold tracking-tight",children:"clapps"})}),jsxRuntimeExports.jsx(HomeScreen,{apps:l,transport:f,onOpenApp:d})]}),jsxRuntimeExports.jsxs("div",{className:cn("absolute inset-0 flex flex-col overflow-hidden transition-all duration-300 ease-out z-20",t?"translate-x-0 opacity-100":"translate-x-full opacity-0 pointer-events-none"),children:[jsxRuntimeExports.jsxs("header",{className:"flex items-center px-4 py-3 border-b border-border shrink-0 min-h-[52px]",children:[jsxRuntimeExports.jsxs("button",{onClick:g,className:"flex items-center gap-0.5 text-primary text-sm font-medium -ml-1 pr-2","aria-label":"Back to home",children:[jsxRuntimeExports.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"shrink-0",children:jsxRuntimeExports.jsx("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"Home"]}),jsxRuntimeExports.jsx("div",{className:"flex-1 text-center",children:jsxRuntimeExports.jsxs("span",{className:"text-sm font-semibold",children:[(h==null?void 0:h.emoji)&&jsxRuntimeExports.jsx("span",{className:"mr-1.5",children:h.emoji}),(h==null?void 0:h.name)??t]})}),jsxRuntimeExports.jsx("div",{className:"w-[60px]"})]}),t&&jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-hidden",children:jsxRuntimeExports.jsx(ClappRenderer,{clappId:t,transport:f})})]})]})}clientExports.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));
|