@clappstore/connect 0.7.18 → 0.7.20
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.
|
@@ -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(o,u,c){var d=null;if(c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),"key"in u){c={};for(var g in u)g!=="key"&&(c[g]=u[g])}else c=u;return u=c.ref,{$$typeof:t,type:o,key:d,ref:u!==void 0?u:null,props:c}}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"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function R(q){return q===null||typeof q!="object"?null:(q=C&&q[C]||q["@@iterator"],typeof q=="function"?q:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,L={};function D(q,oe,N){this.props=q,this.context=oe,this.refs=L,this.updater=N||_}D.prototype.isReactComponent={},D.prototype.setState=function(q,oe){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,oe,"setState")},D.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function H(){}H.prototype=D.prototype;function V(q,oe,N){this.props=q,this.context=oe,this.refs=L,this.updater=N||_}var se=V.prototype=new H;se.constructor=V,B(se,D.prototype),se.isPureReactComponent=!0;var te=Array.isArray;function Y(){}var ge={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ve(q,oe,N){var be=N.ref;return{$$typeof:t,type:q,key:oe,ref:be!==void 0?be:null,props:N}}function K(q,oe){return ve(q.type,oe,q.props)}function Ee(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function ae(q){var oe={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(N){return oe[N]})}var Ce=/\/+/g;function ye(q,oe){return typeof q=="object"&&q!==null&&q.key!=null?ae(""+q.key):oe.toString(36)}function ee(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(Y,Y):(q.status="pending",q.then(function(oe){q.status==="pending"&&(q.status="fulfilled",q.value=oe)},function(oe){q.status==="pending"&&(q.status="rejected",q.reason=oe)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function P(q,oe,N,be,xe){var Se=typeof q;(Se==="undefined"||Se==="boolean")&&(q=null);var Oe=!1;if(q===null)Oe=!0;else switch(Se){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(q.$$typeof){case t:case a:Oe=!0;break;case x:return Oe=q._init,P(Oe(q._payload),oe,N,be,xe)}}if(Oe)return xe=xe(q),Oe=be===""?"."+ye(q,0):be,te(xe)?(N="",Oe!=null&&(N=Oe.replace(Ce,"$&/")+"/"),P(xe,oe,N,"",function(nt){return nt})):xe!=null&&(Ee(xe)&&(xe=K(xe,N+(xe.key==null||q&&q.key===xe.key?"":(""+xe.key).replace(Ce,"$&/")+"/")+Oe)),oe.push(xe)),1;Oe=0;var qe=be===""?".":be+":";if(te(q))for(var je=0;je<q.length;je++)be=q[je],Se=qe+ye(be,je),Oe+=P(be,oe,N,Se,xe);else if(je=R(q),typeof je=="function")for(q=je.call(q),je=0;!(be=q.next()).done;)be=be.value,Se=qe+ye(be,je++),Oe+=P(be,oe,N,Se,xe);else if(Se==="object"){if(typeof q.then=="function")return P(ee(q),oe,N,be,xe);throw oe=String(q),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function he(q,oe,N){if(q==null)return q;var be=[],xe=0;return P(q,be,"","",function(Se){return oe.call(N,Se,xe++)}),be}function fe(q){if(q._status===-1){var oe=q._result;oe=oe(),oe.then(function(N){(q._status===0||q._status===-1)&&(q._status=1,q._result=N)},function(N){(q._status===0||q._status===-1)&&(q._status=2,q._result=N)}),q._status===-1&&(q._status=0,q._result=oe)}if(q._status===1)return q._result.default;throw q._result}var _e=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var oe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(oe))return}else if(typeof process$1=="object"&&typeof process$1.emit=="function"){process$1.emit("uncaughtException",q);return}console.error(q)},O={map:he,forEach:function(q,oe,N){he(q,function(){oe.apply(this,arguments)},N)},count:function(q){var oe=0;return he(q,function(){oe++}),oe},toArray:function(q){return he(q,function(oe){return oe})||[]},only:function(q){if(!Ee(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return react_production.Activity=b,react_production.Children=O,react_production.Component=D,react_production.Fragment=l,react_production.Profiler=u,react_production.PureComponent=V,react_production.StrictMode=o,react_production.Suspense=p,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ge,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(q){return ge.H.useMemoCache(q)}},react_production.cache=function(q){return function(){return q.apply(null,arguments)}},react_production.cacheSignal=function(){return null},react_production.cloneElement=function(q,oe,N){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var be=B({},q.props),xe=q.key;if(oe!=null)for(Se in oe.key!==void 0&&(xe=""+oe.key),oe)!W.call(oe,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&oe.ref===void 0||(be[Se]=oe[Se]);var Se=arguments.length-2;if(Se===1)be.children=N;else if(1<Se){for(var Oe=Array(Se),qe=0;qe<Se;qe++)Oe[qe]=arguments[qe+2];be.children=Oe}return ve(q.type,xe,be)},react_production.createContext=function(q){return q={$$typeof:d,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:c,_context:q},q},react_production.createElement=function(q,oe,N){var be,xe={},Se=null;if(oe!=null)for(be in oe.key!==void 0&&(Se=""+oe.key),oe)W.call(oe,be)&&be!=="key"&&be!=="__self"&&be!=="__source"&&(xe[be]=oe[be]);var Oe=arguments.length-2;if(Oe===1)xe.children=N;else if(1<Oe){for(var qe=Array(Oe),je=0;je<Oe;je++)qe[je]=arguments[je+2];xe.children=qe}if(q&&q.defaultProps)for(be in Oe=q.defaultProps,Oe)xe[be]===void 0&&(xe[be]=Oe[be]);return ve(q,Se,xe)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(q){return{$$typeof:g,render:q}},react_production.isValidElement=Ee,react_production.lazy=function(q){return{$$typeof:x,_payload:{_status:-1,_result:q},_init:fe}},react_production.memo=function(q,oe){return{$$typeof:m,type:q,compare:oe===void 0?null:oe}},react_production.startTransition=function(q){var oe=ge.T,N={};ge.T=N;try{var be=q(),xe=ge.S;xe!==null&&xe(N,be),typeof be=="object"&&be!==null&&typeof be.then=="function"&&be.then(Y,_e)}catch(Se){_e(Se)}finally{oe!==null&&N.types!==null&&(oe.types=N.types),ge.T=oe}},react_production.unstable_useCacheRefresh=function(){return ge.H.useCacheRefresh()},react_production.use=function(q){return ge.H.use(q)},react_production.useActionState=function(q,oe,N){return ge.H.useActionState(q,oe,N)},react_production.useCallback=function(q,oe){return ge.H.useCallback(q,oe)},react_production.useContext=function(q){return ge.H.useContext(q)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(q,oe){return ge.H.useDeferredValue(q,oe)},react_production.useEffect=function(q,oe){return ge.H.useEffect(q,oe)},react_production.useEffectEvent=function(q){return ge.H.useEffectEvent(q)},react_production.useId=function(){return ge.H.useId()},react_production.useImperativeHandle=function(q,oe,N){return ge.H.useImperativeHandle(q,oe,N)},react_production.useInsertionEffect=function(q,oe){return ge.H.useInsertionEffect(q,oe)},react_production.useLayoutEffect=function(q,oe){return ge.H.useLayoutEffect(q,oe)},react_production.useMemo=function(q,oe){return ge.H.useMemo(q,oe)},react_production.useOptimistic=function(q,oe){return ge.H.useOptimistic(q,oe)},react_production.useReducer=function(q,oe,N){return ge.H.useReducer(q,oe,N)},react_production.useRef=function(q){return ge.H.useRef(q)},react_production.useState=function(q){return ge.H.useState(q)},react_production.useSyncExternalStore=function(q,oe,N){return ge.H.useSyncExternalStore(q,oe,N)},react_production.useTransition=function(){return ge.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(o,u,c){var d=null;if(c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),"key"in u){c={};for(var h in u)h!=="key"&&(c[h]=u[h])}else c=u;return u=c.ref,{$$typeof:t,type:o,key:d,ref:u!==void 0?u:null,props:c}}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"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function R(q){return q===null||typeof q!="object"?null:(q=C&&q[C]||q["@@iterator"],typeof q=="function"?q:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,L={};function D(q,oe,N){this.props=q,this.context=oe,this.refs=L,this.updater=N||_}D.prototype.isReactComponent={},D.prototype.setState=function(q,oe){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,oe,"setState")},D.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function $(){}$.prototype=D.prototype;function V(q,oe,N){this.props=q,this.context=oe,this.refs=L,this.updater=N||_}var se=V.prototype=new $;se.constructor=V,B(se,D.prototype),se.isPureReactComponent=!0;var ie=Array.isArray;function H(){}var ge={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ve(q,oe,N){var be=N.ref;return{$$typeof:t,type:q,key:oe,ref:be!==void 0?be:null,props:N}}function K(q,oe){return ve(q.type,oe,q.props)}function Ee(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function ae(q){var oe={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(N){return oe[N]})}var Ce=/\/+/g;function ye(q,oe){return typeof q=="object"&&q!==null&&q.key!=null?ae(""+q.key):oe.toString(36)}function ee(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(H,H):(q.status="pending",q.then(function(oe){q.status==="pending"&&(q.status="fulfilled",q.value=oe)},function(oe){q.status==="pending"&&(q.status="rejected",q.reason=oe)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function P(q,oe,N,be,xe){var Se=typeof q;(Se==="undefined"||Se==="boolean")&&(q=null);var Oe=!1;if(q===null)Oe=!0;else switch(Se){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(q.$$typeof){case t:case a:Oe=!0;break;case x:return Oe=q._init,P(Oe(q._payload),oe,N,be,xe)}}if(Oe)return xe=xe(q),Oe=be===""?"."+ye(q,0):be,ie(xe)?(N="",Oe!=null&&(N=Oe.replace(Ce,"$&/")+"/"),P(xe,oe,N,"",function(nt){return nt})):xe!=null&&(Ee(xe)&&(xe=K(xe,N+(xe.key==null||q&&q.key===xe.key?"":(""+xe.key).replace(Ce,"$&/")+"/")+Oe)),oe.push(xe)),1;Oe=0;var qe=be===""?".":be+":";if(ie(q))for(var je=0;je<q.length;je++)be=q[je],Se=qe+ye(be,je),Oe+=P(be,oe,N,Se,xe);else if(je=R(q),typeof je=="function")for(q=je.call(q),je=0;!(be=q.next()).done;)be=be.value,Se=qe+ye(be,je++),Oe+=P(be,oe,N,Se,xe);else if(Se==="object"){if(typeof q.then=="function")return P(ee(q),oe,N,be,xe);throw oe=String(q),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function he(q,oe,N){if(q==null)return q;var be=[],xe=0;return P(q,be,"","",function(Se){return oe.call(N,Se,xe++)}),be}function fe(q){if(q._status===-1){var oe=q._result;oe=oe(),oe.then(function(N){(q._status===0||q._status===-1)&&(q._status=1,q._result=N)},function(N){(q._status===0||q._status===-1)&&(q._status=2,q._result=N)}),q._status===-1&&(q._status=0,q._result=oe)}if(q._status===1)return q._result.default;throw q._result}var _e=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var oe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(oe))return}else if(typeof process$1=="object"&&typeof process$1.emit=="function"){process$1.emit("uncaughtException",q);return}console.error(q)},O={map:he,forEach:function(q,oe,N){he(q,function(){oe.apply(this,arguments)},N)},count:function(q){var oe=0;return he(q,function(){oe++}),oe},toArray:function(q){return he(q,function(oe){return oe})||[]},only:function(q){if(!Ee(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return react_production.Activity=b,react_production.Children=O,react_production.Component=D,react_production.Fragment=l,react_production.Profiler=u,react_production.PureComponent=V,react_production.StrictMode=o,react_production.Suspense=p,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ge,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(q){return ge.H.useMemoCache(q)}},react_production.cache=function(q){return function(){return q.apply(null,arguments)}},react_production.cacheSignal=function(){return null},react_production.cloneElement=function(q,oe,N){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var be=B({},q.props),xe=q.key;if(oe!=null)for(Se in oe.key!==void 0&&(xe=""+oe.key),oe)!W.call(oe,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&oe.ref===void 0||(be[Se]=oe[Se]);var Se=arguments.length-2;if(Se===1)be.children=N;else if(1<Se){for(var Oe=Array(Se),qe=0;qe<Se;qe++)Oe[qe]=arguments[qe+2];be.children=Oe}return ve(q.type,xe,be)},react_production.createContext=function(q){return q={$$typeof:d,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:c,_context:q},q},react_production.createElement=function(q,oe,N){var be,xe={},Se=null;if(oe!=null)for(be in oe.key!==void 0&&(Se=""+oe.key),oe)W.call(oe,be)&&be!=="key"&&be!=="__self"&&be!=="__source"&&(xe[be]=oe[be]);var Oe=arguments.length-2;if(Oe===1)xe.children=N;else if(1<Oe){for(var qe=Array(Oe),je=0;je<Oe;je++)qe[je]=arguments[je+2];xe.children=qe}if(q&&q.defaultProps)for(be in Oe=q.defaultProps,Oe)xe[be]===void 0&&(xe[be]=Oe[be]);return ve(q,Se,xe)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(q){return{$$typeof:h,render:q}},react_production.isValidElement=Ee,react_production.lazy=function(q){return{$$typeof:x,_payload:{_status:-1,_result:q},_init:fe}},react_production.memo=function(q,oe){return{$$typeof:g,type:q,compare:oe===void 0?null:oe}},react_production.startTransition=function(q){var oe=ge.T,N={};ge.T=N;try{var be=q(),xe=ge.S;xe!==null&&xe(N,be),typeof be=="object"&&be!==null&&typeof be.then=="function"&&be.then(H,_e)}catch(Se){_e(Se)}finally{oe!==null&&N.types!==null&&(oe.types=N.types),ge.T=oe}},react_production.unstable_useCacheRefresh=function(){return ge.H.useCacheRefresh()},react_production.use=function(q){return ge.H.use(q)},react_production.useActionState=function(q,oe,N){return ge.H.useActionState(q,oe,N)},react_production.useCallback=function(q,oe){return ge.H.useCallback(q,oe)},react_production.useContext=function(q){return ge.H.useContext(q)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(q,oe){return ge.H.useDeferredValue(q,oe)},react_production.useEffect=function(q,oe){return ge.H.useEffect(q,oe)},react_production.useEffectEvent=function(q){return ge.H.useEffectEvent(q)},react_production.useId=function(){return ge.H.useId()},react_production.useImperativeHandle=function(q,oe,N){return ge.H.useImperativeHandle(q,oe,N)},react_production.useInsertionEffect=function(q,oe){return ge.H.useInsertionEffect(q,oe)},react_production.useLayoutEffect=function(q,oe){return ge.H.useLayoutEffect(q,oe)},react_production.useMemo=function(q,oe){return ge.H.useMemo(q,oe)},react_production.useOptimistic=function(q,oe){return ge.H.useOptimistic(q,oe)},react_production.useReducer=function(q,oe,N){return ge.H.useReducer(q,oe,N)},react_production.useRef=function(q){return ge.H.useRef(q)},react_production.useState=function(q){return ge.H.useState(q)},react_production.useSyncExternalStore=function(q,oe,N){return ge.H.useSyncExternalStore(q,oe,N)},react_production.useTransition=function(){return ge.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(P,he){var fe=P.length;P.push(he);e:for(;0<fe;){var _e=fe-1>>>1,O=P[_e];if(0<u(O,he))P[_e]=he,P[fe]=O,fe=_e;else break e}}function l(P){return P.length===0?null:P[0]}function o(P){if(P.length===0)return null;var he=P[0],fe=P.pop();if(fe!==he){P[0]=fe;e:for(var _e=0,O=P.length,q=O>>>1;_e<q;){var oe=2*(_e+1)-1,N=P[oe],be=oe+1,xe=P[be];if(0>u(N,fe))be<O&&0>u(xe,N)?(P[_e]=xe,P[be]=fe,_e=be):(P[_e]=N,P[oe]=fe,_e=oe);else if(be<O&&0>u(xe,fe))P[_e]=xe,P[be]=fe,_e=be;else break e}}return he}function u(P,he){var fe=P.sortIndex-he.sortIndex;return fe!==0?fe:P.id-he.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,
|
|
17
|
+
*/var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,(function(t){function a(P,he){var fe=P.length;P.push(he);e:for(;0<fe;){var _e=fe-1>>>1,O=P[_e];if(0<u(O,he))P[_e]=he,P[fe]=O,fe=_e;else break e}}function l(P){return P.length===0?null:P[0]}function o(P){if(P.length===0)return null;var he=P[0],fe=P.pop();if(fe!==he){P[0]=fe;e:for(var _e=0,O=P.length,q=O>>>1;_e<q;){var oe=2*(_e+1)-1,N=P[oe],be=oe+1,xe=P[be];if(0>u(N,fe))be<O&&0>u(xe,N)?(P[_e]=xe,P[be]=fe,_e=be):(P[_e]=N,P[oe]=fe,_e=oe);else if(be<O&&0>u(xe,fe))P[_e]=xe,P[be]=fe,_e=be;else break e}}return he}function u(P,he){var fe=P.sortIndex-he.sortIndex;return fe!==0?fe:P.id-he.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var p=[],g=[],x=1,b=null,C=3,R=!1,_=!1,B=!1,L=!1,D=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function se(P){for(var he=l(g);he!==null;){if(he.callback===null)o(g);else if(he.startTime<=P)o(g),he.sortIndex=he.expirationTime,a(p,he);else break;he=l(g)}}function ie(P){if(B=!1,se(P),!_)if(l(p)!==null)_=!0,H||(H=!0,ae());else{var he=l(g);he!==null&&ee(ie,he.startTime-P)}}var H=!1,ge=-1,W=5,ve=-1;function K(){return L?!0:!(t.unstable_now()-ve<W)}function Ee(){if(L=!1,H){var P=t.unstable_now();ve=P;var he=!0;try{e:{_=!1,B&&(B=!1,$(ge),ge=-1),R=!0;var fe=C;try{t:{for(se(P),b=l(p);b!==null&&!(b.expirationTime>P&&K());){var _e=b.callback;if(typeof _e=="function"){b.callback=null,C=b.priorityLevel;var O=_e(b.expirationTime<=P);if(P=t.unstable_now(),typeof O=="function"){b.callback=O,se(P),he=!0;break t}b===l(p)&&o(p),se(P)}else o(p);b=l(p)}if(b!==null)he=!0;else{var q=l(g);q!==null&&ee(ie,q.startTime-P),he=!1}}break e}finally{b=null,C=fe,R=!1}he=void 0}}finally{he?ae():H=!1}}}var ae;if(typeof V=="function")ae=function(){V(Ee)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,ye=Ce.port2;Ce.port1.onmessage=Ee,ae=function(){ye.postMessage(null)}}else ae=function(){D(Ee,0)};function ee(P,he){ge=D(function(){P(t.unstable_now())},he)}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(P){P.callback=null},t.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<P?Math.floor(1e3/P):5},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_next=function(P){switch(C){case 1:case 2:case 3:var he=3;break;default:he=C}var fe=C;C=he;try{return P()}finally{C=fe}},t.unstable_requestPaint=function(){L=!0},t.unstable_runWithPriority=function(P,he){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var fe=C;C=P;try{return he()}finally{C=fe}},t.unstable_scheduleCallback=function(P,he,fe){var _e=t.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?_e+fe:_e):fe=_e,P){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=fe+O,P={id:x++,callback:he,priorityLevel:P,startTime:fe,expirationTime:O,sortIndex:-1},fe>_e?(P.sortIndex=fe,a(g,P),l(p)===null&&P===l(g)&&(B?($(ge),ge=-1):B=!0,ee(ie,fe-_e))):(P.sortIndex=O,a(p,P),_||R||(_=!0,H||(H=!0,ae()))),P},t.unstable_shouldYield=K,t.unstable_wrapCallback=function(P){var he=C;return function(){var fe=C;C=he;try{return P.apply(this,arguments)}finally{C=fe}}}})(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(p){var
|
|
25
|
+
*/var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var t=requireReact();function a(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={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},u=Symbol.for("react.portal");function c(p,g,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:p,containerInfo:g,implementation:x}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,reactDom_production.createPortal=function(p,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return c(p,g,null,x)},reactDom_production.flushSync=function(p){var g=d.T,x=o.p;try{if(d.T=null,o.p=2,p)return p()}finally{d.T=g,o.p=x,o.d.f()}},reactDom_production.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(p,g))},reactDom_production.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},reactDom_production.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var x=g.as,b=h(x,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,R=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?o.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:R}):x==="script"&&o.d.X(p,{crossOrigin:b,integrity:C,fetchPriority:R,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},reactDom_production.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=h(g.as,g.crossOrigin);o.d.M(p,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(p)},reactDom_production.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,b=h(x,g.crossOrigin);o.d.L(p,x,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},reactDom_production.preloadModule=function(p,g){if(typeof p=="string")if(g){var x=h(g.as,g.crossOrigin);o.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(p)},reactDom_production.requestFormReset=function(p){o.d.r(p)},reactDom_production.unstable_batchedUpdates=function(p,g){return p(g)},reactDom_production.useFormState=function(p,g,x){return d.H.useFormState(p,g,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 o(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s])}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 u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s: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 h(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 p(e){if(c(e)!==e)throw Error(o(188))}function g(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(o(188));return n!==e?null:e}for(var s=e,f=n;;){var m=s.return;if(m===null)break;var y=m.alternate;if(y===null){if(f=m.return,f!==null){s=f;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===s)return p(m),e;if(y===f)return p(m),n;y=y.sibling}throw Error(o(188))}if(s.return!==f.return)s=m,f=y;else{for(var w=!1,T=m.child;T;){if(T===s){w=!0,s=m,f=y;break}if(T===f){w=!0,f=m,s=y;break}T=T.sibling}if(!w){for(T=y.child;T;){if(T===s){w=!0,s=y,f=m;break}if(T===f){w=!0,f=y,s=m;break}T=T.sibling}if(!w)throw Error(o(189))}}if(s.alternate!==f)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?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 b=Object.assign,C=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),V=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),ge=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),Ee=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=Ee&&e[Ee]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case D:return"Profiler";case L:return"StrictMode";case ie:return"Suspense";case H:return"SuspenseList";case ve:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case V:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case se:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ge:return n=e.displayName||null,n!==null?n:ye(e.type)||"Memo";case W:n=e._payload,e=e._init;try{return ye(e(n))}catch{}}return null}var ee=Array.isArray,P=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},_e=[],O=-1;function q(e){return{current:e}}function oe(e){0>O||(e.current=_e[O],_e[O]=null,O--)}function N(e,n){O++,_e[O]=e.current,e.current=n}var be=q(null),xe=q(null),Se=q(null),Oe=q(null);function qe(e,n){switch(N(Se,n),N(xe,e),N(be,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=Ff(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}oe(be),N(be,e)}function je(){oe(be),oe(xe),oe(Se)}function nt(e){e.memoizedState!==null&&N(Oe,e);var n=be.current,s=Ff(n,e.type);n!==s&&(N(xe,e),N(be,s))}function Qe(e){xe.current===e&&(oe(be),oe(xe)),Oe.current===e&&(oe(Oe),Pi._currentValue=fe)}var at,kt;function ut(e){if(at===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);at=n&&n[1]||"",kt=-1<s.stack.indexOf(`
|
|
26
26
|
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
-
`+at+e+kt}var At=!1;function mt(e,n){if(!e||At)return"";At=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(n){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(
|
|
27
|
+
`+at+e+kt}var At=!1;function mt(e,n){if(!e||At)return"";At=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(n){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(ne){var J=ne}Reflect.construct(e,[],me)}else{try{me.call()}catch(ne){J=ne}e.call(me.prototype)}}else{try{throw Error()}catch(ne){J=ne}(me=e())&&typeof me.catch=="function"&&me.catch(function(){})}}catch(ne){if(ne&&J&&typeof ne.stack=="string")return[ne.stack,J.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=f.DetermineComponentFrameRoot(),w=y[0],T=y[1];if(w&&T){var U=w.split(`
|
|
28
28
|
`),Q=T.split(`
|
|
29
|
-
`);for(
|
|
30
|
-
`+U[f].replace(" at new "," at ");return e.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",e.displayName)),ce}while(1<=f&&0<=
|
|
29
|
+
`);for(m=f=0;f<U.length&&!U[f].includes("DetermineComponentFrameRoot");)f++;for(;m<Q.length&&!Q[m].includes("DetermineComponentFrameRoot");)m++;if(f===U.length||m===Q.length)for(f=U.length-1,m=Q.length-1;1<=f&&0<=m&&U[f]!==Q[m];)m--;for(;1<=f&&0<=m;f--,m--)if(U[f]!==Q[m]){if(f!==1||m!==1)do if(f--,m--,0>m||U[f]!==Q[m]){var ce=`
|
|
30
|
+
`+U[f].replace(" at new "," at ");return e.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",e.displayName)),ce}while(1<=f&&0<=m);break}}}finally{At=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?ut(s):""}function Tt(e,n){switch(e.tag){case 26:case 27:case 5:return ut(e.type);case 16:return ut("Lazy");case 13:return e.child!==n&&n!==null?ut("Suspense Fallback"):ut("Suspense");case 19:return ut("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 ut("Activity");default:return""}}function wt(e){try{var n="",s=null;do n+=Tt(e,s),s=e,e=e.return;while(e);return n}catch(f){return`
|
|
31
31
|
Error generating stack: `+f.message+`
|
|
32
|
-
`+f.stack}}var Pt=Object.prototype.hasOwnProperty,Ct=t.unstable_scheduleCallback,Ht=t.unstable_cancelCallback,ln=t.unstable_shouldYield,on=t.unstable_requestPaint,Je=t.unstable_now,k=t.unstable_getCurrentPriorityLevel,M=t.unstable_ImmediatePriority,Z=t.unstable_UserBlockingPriority,le=t.unstable_NormalPriority,ne=t.unstable_LowPriority,E=t.unstable_IdlePriority,v=t.log,S=t.unstable_setDisableYieldValue,A=null,j=null;function I(e){if(typeof v=="function"&&S(e),j&&typeof j.setStrictMode=="function")try{j.setStrictMode(A,e)}catch{}}var z=Math.clz32?Math.clz32:ke,de=Math.log,ue=Math.LN2;function ke(e){return e>>>=0,e===0?32:31-(de(e)/ue|0)|0}var Ae=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,s){var f=e.pendingLanes;if(f===0)return 0;var h=0,y=e.suspendedLanes,w=e.pingedLanes;e=e.warmLanes;var T=f&134217727;return T!==0?(f=T&~y,f!==0?h=tr(f):(w&=T,w!==0?h=tr(w):s||(s=T&~e,s!==0&&(h=tr(s))))):(T=f&~y,T!==0?h=tr(T):w!==0?h=tr(w):s||(s=f&~e,s!==0&&(h=tr(s)))),h===0?0:n!==0&&n!==h&&(n&y)===0&&(y=h&-h,s=n&-n,y>=s||y===32&&(s&4194048)!==0)?n:h}function ri(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function xd(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 vs(){var e=lt;return lt<<=1,(lt&62914560)===0&&(lt=4194304),e}function ol(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function ii(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yd(e,n,s,f,h,y){var w=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var T=e.entanglements,U=e.expirationTimes,Q=e.hiddenUpdates;for(s=w&~s;0<s;){var ce=31-z(s),me=1<<ce;T[ce]=0,U[ce]=-1;var J=Q[ce];if(J!==null)for(Q[ce]=null,ce=0;ce<J.length;ce++){var ie=J[ce];ie!==null&&(ie.lane&=-536870913)}s&=~me}f!==0&&Es(e,f,0),y!==0&&h===0&&e.tag!==0&&(e.suspendedLanes|=y&~(w&~n))}function Es(e,n,s){e.pendingLanes|=n,e.suspendedLanes&=~n;var f=31-z(n);e.entangledLanes|=n,e.entanglements[f]=e.entanglements[f]|1073741824|s&261930}function Ss(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var f=31-z(s),h=1<<f;h&n|e[f]&n&&(e[f]|=n),s&=~h}}function ks(e,n){var s=n&-n;return s=(s&42)!==0?1:sl(s),(s&(e.suspendedLanes|n))!==0?0:s}function sl(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 ul(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ws(){var e=he.p;return e!==0?e:(e=window.event,e===void 0?32:cd(e.type))}function Cs(e,n){var s=he.p;try{return he.p=e,n()}finally{he.p=s}}var Nn=Math.random().toString(36).slice(2),yt="__reactFiber$"+Nn,_t="__reactProps$"+Nn,br="__reactContainer$"+Nn,cl="__reactEvents$"+Nn,bd="__reactListeners$"+Nn,vd="__reactHandles$"+Nn,Rs="__reactResources$"+Nn,ai="__reactMarker$"+Nn;function fl(e){delete e[yt],delete e[_t],delete e[cl],delete e[bd],delete e[vd]}function vr(e){var n=e[yt];if(n)return n;for(var s=e.parentNode;s;){if(n=s[br]||s[yt]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=Gf(e);e!==null;){if(s=e[yt])return s;e=Gf(e)}return n}e=s,s=e.parentNode}return null}function Er(e){if(e=e[yt]||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(o(33))}function Sr(e){var n=e[Rs];return n||(n=e[Rs]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function gt(e){e[ai]=!0}var As=new Set,Ts={};function nr(e,n){kr(e,n),kr(e+"Capture",n)}function kr(e,n){for(Ts[e]=n,e=0;e<n.length;e++)As.add(n[e])}var Ed=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]*$"),_s={},js={};function Sd(e){return Pt.call(js,e)?!0:Pt.call(_s,e)?!1:Ed.test(e)?js[e]=!0:(_s[e]=!0,!1)}function Xi(e,n,s){if(Sd(n))if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var f=n.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+s)}}function Ki(e,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+s)}}function pn(e,n,s,f){if(f===null)e.removeAttribute(s);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(n,s,""+f)}}function $t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ns(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function kd(e,n,s){var f=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var h=f.get,y=f.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return h.call(this)},set:function(w){s=""+w,y.call(this,w)}}),Object.defineProperty(e,n,{enumerable:f.enumerable}),{getValue:function(){return s},setValue:function(w){s=""+w},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function dl(e){if(!e._valueTracker){var n=Ns(e)?"checked":"value";e._valueTracker=kd(e,n,""+e[n])}}function Os(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),f="";return e&&(f=Ns(e)?e.checked?"true":"false":e.value),e=f,e!==s?(n.setValue(e),!0):!1}function Qi(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,s,f,h,y,w,T){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=""+$t(n)):e.value!==""+$t(n)&&(e.value=""+$t(n)):w!=="submit"&&w!=="reset"||e.removeAttribute("value"),n!=null?hl(e,w,$t(n)):s!=null?hl(e,w,$t(s)):f!=null&&e.removeAttribute("value"),h==null&&y!=null&&(e.defaultChecked=!!y),h!=null&&(e.checked=h&&typeof h!="function"&&typeof h!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.name=""+$t(T):e.removeAttribute("name")}function Ls(e,n,s,f,h,y,w,T){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.type=y),n!=null||s!=null){if(!(y!=="submit"&&y!=="reset"||n!=null)){dl(e);return}s=s!=null?""+$t(s):"",n=n!=null?""+$t(n):s,T||n===e.value||(e.value=n),e.defaultValue=n}f=f??h,f=typeof f!="function"&&typeof f!="symbol"&&!!f,e.checked=T?e.checked:!!f,e.defaultChecked=!!f,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(e.name=w),dl(e)}function hl(e,n,s){n==="number"&&Qi(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function wr(e,n,s,f){if(e=e.options,n){n={};for(var h=0;h<s.length;h++)n["$"+s[h]]=!0;for(s=0;s<e.length;s++)h=n.hasOwnProperty("$"+e[s].value),e[s].selected!==h&&(e[s].selected=h),h&&f&&(e[s].defaultSelected=!0)}else{for(s=""+$t(s),n=null,h=0;h<e.length;h++){if(e[h].value===s){e[h].selected=!0,f&&(e[h].defaultSelected=!0);return}n!==null||e[h].disabled||(n=e[h])}n!==null&&(n.selected=!0)}}function Ds(e,n,s){if(n!=null&&(n=""+$t(n),n!==e.value&&(e.value=n),s==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=s!=null?""+$t(s):""}function Ms(e,n,s,f){if(n==null){if(f!=null){if(s!=null)throw Error(o(92));if(ee(f)){if(1<f.length)throw Error(o(93));f=f[0]}s=f}s==null&&(s=""),n=s}s=$t(n),e.defaultValue=s,f=e.textContent,f===s&&f!==""&&f!==null&&(e.value=f),dl(e)}function Cr(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var Cd=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 zs(e,n,s){var f=n.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?f?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":f?e.setProperty(n,s):typeof s!="number"||s===0||Cd.has(n)?n==="float"?e.cssFloat=s:e[n]=(""+s).trim():e[n]=s+"px"}function Is(e,n,s){if(n!=null&&typeof n!="object")throw Error(o(62));if(e=e.style,s!=null){for(var f in s)!s.hasOwnProperty(f)||n!=null&&n.hasOwnProperty(f)||(f.indexOf("--")===0?e.setProperty(f,""):f==="float"?e.cssFloat="":e[f]="");for(var h in n)f=n[h],n.hasOwnProperty(h)&&s[h]!==f&&zs(e,h,f)}else for(var y in n)n.hasOwnProperty(y)&&zs(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 Rd=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"]]),Ad=/^[\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 Ad.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function hn(){}var gl=null;function xl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rr=null,Ar=null;function Bs(e){var n=Er(e);if(n&&(e=n.stateNode)){var s=e[_t]||null;e:switch(e=n.stateNode,n.type){case"input":if(pl(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Yt(""+n)+'"][type="radio"]'),n=0;n<s.length;n++){var f=s[n];if(f!==e&&f.form===e.form){var h=f[_t]||null;if(!h)throw Error(o(90));pl(f,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(n=0;n<s.length;n++)f=s[n],f.form===e.form&&Os(f)}break e;case"textarea":Ds(e,s.value,s.defaultValue);break e;case"select":n=s.value,n!=null&&wr(e,!!s.multiple,n,!1)}}}var yl=!1;function Us(e,n,s){if(yl)return e(n,s);yl=!0;try{var f=e(n);return f}finally{if(yl=!1,(Rr!==null||Ar!==null)&&(Ua(),Rr&&(n=Rr,e=Ar,Ar=Rr=null,Bs(n),e)))for(n=0;n<e.length;n++)Bs(e[n])}}function oi(e,n){var s=e.stateNode;if(s===null)return null;var f=s[_t]||null;if(f===null)return null;s=f[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":(f=!f.disabled)||(e=e.type,f=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!f;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(o(231,n,typeof s));return s}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bl=!1;if(mn)try{var si={};Object.defineProperty(si,"passive",{get:function(){bl=!0}}),window.addEventListener("test",si,si),window.removeEventListener("test",si,si)}catch{bl=!1}var On=null,vl=null,Wi=null;function qs(){if(Wi)return Wi;var e,n=vl,s=n.length,f,h="value"in On?On.value:On.textContent,y=h.length;for(e=0;e<s&&n[e]===h[e];e++);var w=s-e;for(f=1;f<=w&&n[s-f]===h[y-f];f++);return Wi=h.slice(e,1<f?1-f: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 Fs(){return!1}function jt(e){function n(s,f,h,y,w){this._reactName=s,this._targetInst=h,this.type=f,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var T in e)e.hasOwnProperty(T)&&(s=e[T],this[T]=s?s(y):y[T]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ta:Fs,this.isPropagationStopped=Fs,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=ta)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.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),ui=b({},rr,{view:0,detail:0}),Td=jt(ui),El,Sl,ci,ra=b({},ui,{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"?(El=e.screenX-ci.screenX,Sl=e.screenY-ci.screenY):Sl=El=0,ci=e),El)},movementY:function(e){return"movementY"in e?e.movementY:Sl}}),Zs=jt(ra),_d=b({},ra,{dataTransfer:0}),jd=jt(_d),Nd=b({},ui,{relatedTarget:0}),kl=jt(Nd),Od=b({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ld=jt(Od),Dd=b({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Md=jt(Dd),zd=b({},rr,{data:0}),Vs=jt(zd),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 Fd=b({},ui,{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}}),Zd=jt(Fd),Vd=b({},ra,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ps=jt(Vd),Pd=b({},ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wl}),Hd=jt(Pd),$d=b({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yd=jt($d),Gd=b({},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}),Xd=jt(Gd),Kd=b({},rr,{newState:0,oldState:0}),Qd=jt(Kd),Jd=[9,13,27,32],Cl=mn&&"CompositionEvent"in window,fi=null;mn&&"documentMode"in document&&(fi=document.documentMode);var Wd=mn&&"TextEvent"in window&&!fi,Hs=mn&&(!Cl||fi&&8<fi&&11>=fi),$s=" ",Ys=!1;function Gs(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 Xs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function ep(e,n){switch(e){case"compositionend":return Xs(n);case"keypress":return n.which!==32?null:(Ys=!0,$s);case"textInput":return e=n.data,e===$s&&Ys?null:e;default:return null}}function tp(e,n){if(Tr)return e==="compositionend"||!Cl&&Gs(e,n)?(e=qs(),Wi=vl=On=null,Tr=!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 Hs&&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 Ks(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!np[e.type]:n==="textarea"}function Qs(e,n,s,f){Rr?Ar?Ar.push(f):Ar=[f]:Rr=f,n=$a(n,"onChange"),0<n.length&&(s=new na("onChange","change",null,s,f),e.push({event:s,listeners:n}))}var di=null,pi=null;function rp(e){Df(e,0)}function ia(e){var n=li(e);if(Os(n))return e}function Js(e,n){if(e==="change")return n}var Ws=!1;if(mn){var Rl;if(mn){var Al="oninput"in document;if(!Al){var eu=document.createElement("div");eu.setAttribute("oninput","return;"),Al=typeof eu.oninput=="function"}Rl=Al}else Rl=!1;Ws=Rl&&(!document.documentMode||9<document.documentMode)}function tu(){di&&(di.detachEvent("onpropertychange",nu),pi=di=null)}function nu(e){if(e.propertyName==="value"&&ia(pi)){var n=[];Qs(n,pi,e,xl(e)),Us(rp,n)}}function ip(e,n,s){e==="focusin"?(tu(),di=n,pi=s,di.attachEvent("onpropertychange",nu)):e==="focusout"&&tu()}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 sp(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var zt=typeof Object.is=="function"?Object.is:sp;function hi(e,n){if(zt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),f=Object.keys(n);if(s.length!==f.length)return!1;for(f=0;f<s.length;f++){var h=s[f];if(!Pt.call(n,h)||!zt(e[h],n[h]))return!1}return!0}function ru(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function iu(e,n){var s=ru(e);e=0;for(var f;s;){if(s.nodeType===3){if(f=e+s.textContent.length,e<=n&&f>=n)return{node:s,offset:n-e};e=f}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=ru(s)}}function au(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?au(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function lu(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Qi(e.document);n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=Qi(e.document)}return n}function Tl(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 up=mn&&"documentMode"in document&&11>=document.documentMode,_r=null,_l=null,mi=null,jl=!1;function ou(e,n,s){var f=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;jl||_r==null||_r!==Qi(f)||(f=_r,"selectionStart"in f&&Tl(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),mi&&hi(mi,f)||(mi=f,f=$a(_l,"onSelect"),0<f.length&&(n=new na("onSelect","select",null,n,s),e.push({event:n,listeners:f}),n.target=_r)))}function ir(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}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={},su={};mn&&(su=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],s;for(s in n)if(n.hasOwnProperty(s)&&s in su)return Nl[e]=n[s];return e}var uu=ar("animationend"),cu=ar("animationiteration"),fu=ar("animationstart"),cp=ar("transitionrun"),fp=ar("transitionstart"),dp=ar("transitioncancel"),du=ar("transitionend"),pu=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){pu.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,Ll=0;function la(){for(var e=Nr,n=Ll=Nr=0;n<e;){var s=Gt[n];Gt[n++]=null;var f=Gt[n];Gt[n++]=null;var h=Gt[n];Gt[n++]=null;var y=Gt[n];if(Gt[n++]=null,f!==null&&h!==null){var w=f.pending;w===null?h.next=h:(h.next=w.next,w.next=h),f.pending=h}y!==0&&hu(s,h,y)}}function oa(e,n,s,f){Gt[Nr++]=e,Gt[Nr++]=n,Gt[Nr++]=s,Gt[Nr++]=f,Ll|=f,e.lanes|=f,e=e.alternate,e!==null&&(e.lanes|=f)}function Dl(e,n,s,f){return oa(e,n,s,f),sa(e)}function lr(e,n){return oa(e,null,null,n),sa(e)}function hu(e,n,s){e.lanes|=s;var f=e.alternate;f!==null&&(f.lanes|=s);for(var h=!1,y=e.return;y!==null;)y.childLanes|=s,f=y.alternate,f!==null&&(f.childLanes|=s),y.tag===22&&(e=y.stateNode,e===null||e._visibility&1||(h=!0)),e=y,y=y.return;return e.tag===3?(y=e.stateNode,h&&n!==null&&(h=31-z(s),e=y.hiddenUpdates,f=e[h],f===null?e[h]=[n]:f.push(n),n.lane=s|536870912),y):null}function sa(e){if(50<Ii)throw Ii=0,Po=null,Error(o(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,s,f){this.tag=e,this.key=s,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=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,n,s,f){return new pp(e,n,s,f)}function Ml(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gn(e,n){var s=e.alternate;return s===null?(s=It(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function mu(e,n){e.flags&=65011714;var s=e.alternate;return s===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=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,n=s.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function ua(e,n,s,f,h,y){var w=0;if(f=e,typeof e=="function")Ml(e)&&(w=1);else if(typeof e=="string")w=yh(e,s,be.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ve:return e=It(31,s,n,h),e.elementType=ve,e.lanes=y,e;case B:return or(s.children,h,y,n);case L:w=8,h|=24;break;case D:return e=It(12,s,n,h|2),e.elementType=D,e.lanes=y,e;case te:return e=It(13,s,n,h),e.elementType=te,e.lanes=y,e;case Y:return e=It(19,s,n,h),e.elementType=Y,e.lanes=y,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:w=10;break e;case H:w=9;break e;case se:w=11;break e;case ge:w=14;break e;case W:w=16,f=null;break e}w=29,s=Error(o(130,e===null?"null":typeof e,"")),f=null}return n=It(w,s,n,h),n.elementType=e,n.type=f,n.lanes=y,n}function or(e,n,s,f){return e=It(7,e,f,n),e.lanes=s,e}function zl(e,n,s){return e=It(6,e,null,n),e.lanes=s,e}function gu(e){var n=It(18,null,null,0);return n.stateNode=e,n}function Il(e,n,s){return n=It(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var xu=new WeakMap;function Xt(e,n){if(typeof e=="object"&&e!==null){var s=xu.get(e);return s!==void 0?s:(n={value:e,source:n,stack:wt(n)},xu.set(e,n),n)}return{value:e,source:n,stack:wt(n)}}var Lr=[],Dr=0,ca=null,gi=0,Kt=[],Qt=0,Ln=null,sn=1,un="";function xn(e,n){Lr[Dr++]=gi,Lr[Dr++]=ca,ca=e,gi=n}function yu(e,n,s){Kt[Qt++]=sn,Kt[Qt++]=un,Kt[Qt++]=Ln,Ln=e;var f=sn;e=un;var h=32-z(f)-1;f&=~(1<<h),s+=1;var y=32-z(n)+h;if(30<y){var w=h-h%5;y=(f&(1<<w)-1).toString(32),f>>=w,h-=w,sn=1<<32-z(n)+h|s<<h|f,un=y+e}else sn=1<<y|s<<h|f,un=e}function Bl(e){e.return!==null&&(xn(e,1),yu(e,1,0))}function Ul(e){for(;e===ca;)ca=Lr[--Dr],Lr[Dr]=null,gi=Lr[--Dr],Lr[Dr]=null;for(;e===Ln;)Ln=Kt[--Qt],Kt[Qt]=null,un=Kt[--Qt],Kt[Qt]=null,sn=Kt[--Qt],Kt[Qt]=null}function bu(e,n){Kt[Qt++]=sn,Kt[Qt++]=un,Kt[Qt++]=Ln,sn=n.id,un=n.overflow,Ln=e}var bt=null,We=null,Fe=!1,Dn=null,Jt=!1,ql=Error(o(519));function Mn(e){var n=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xi(Xt(n,e)),ql}function vu(e){var n=e.stateNode,s=e.type,f=e.memoizedProps;switch(n[yt]=e,n[_t]=f,s){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(s=0;s<Ui.length;s++)Ie(Ui[s],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),Ls(n,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":Ie("invalid",n);break;case"textarea":Ie("invalid",n),Ms(n,f.value,f.defaultValue,f.children)}s=f.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||n.textContent===""+s||f.suppressHydrationWarning===!0||Bf(n.textContent,s)?(f.popover!=null&&(Ie("beforetoggle",n),Ie("toggle",n)),f.onScroll!=null&&Ie("scroll",n),f.onScrollEnd!=null&&Ie("scrollend",n),f.onClick!=null&&(n.onclick=hn),n=!0):n=!1,n||Mn(e,!0)}function Eu(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 Mr(e){if(e!==bt)return!1;if(!Fe)return Eu(e),Fe=!0,!1;var n=e.tag,s;if((s=n!==3&&n!==27)&&((s=n===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||as(e.type,e.memoizedProps)),s=!s),s&&We&&Mn(e),Eu(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Yf(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Yf(e)}else n===27?(n=We,Xn(e.type)?(e=cs,cs=null,We=e):We=n):We=bt?en(e.stateNode.nextSibling):null;return!0}function sr(){We=bt=null,Fe=!1}function Fl(){var e=Dn;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),Dn=null),e}function xi(e){Dn===null?Dn=[e]:Dn.push(e)}var Zl=q(null),ur=null,yn=null;function zn(e,n,s){N(Zl,n._currentValue),n._currentValue=s}function bn(e){e._currentValue=Zl.current,oe(Zl)}function Vl(e,n,s){for(;e!==null;){var f=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,f!==null&&(f.childLanes|=n)):f!==null&&(f.childLanes&n)!==n&&(f.childLanes|=n),e===s)break;e=e.return}}function Pl(e,n,s,f){var h=e.child;for(h!==null&&(h.return=e);h!==null;){var y=h.dependencies;if(y!==null){var w=h.child;y=y.firstContext;e:for(;y!==null;){var T=y;y=h;for(var U=0;U<n.length;U++)if(T.context===n[U]){y.lanes|=s,T=y.alternate,T!==null&&(T.lanes|=s),Vl(y.return,s,e),f||(w=null);break e}y=T.next}}else if(h.tag===18){if(w=h.return,w===null)throw Error(o(341));w.lanes|=s,y=w.alternate,y!==null&&(y.lanes|=s),Vl(w,s,e),w=null}else w=h.child;if(w!==null)w.return=h;else for(w=h;w!==null;){if(w===e){w=null;break}if(h=w.sibling,h!==null){h.return=w.return,w=h;break}w=w.return}h=w}}function zr(e,n,s,f){e=null;for(var h=n,y=!1;h!==null;){if(!y){if((h.flags&524288)!==0)y=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var w=h.alternate;if(w===null)throw Error(o(387));if(w=w.memoizedProps,w!==null){var T=h.type;zt(h.pendingProps.value,w.value)||(e!==null?e.push(T):e=[T])}}else if(h===Oe.current){if(w=h.alternate,w===null)throw Error(o(387));w.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(e!==null?e.push(Pi):e=[Pi])}h=h.return}e!==null&&Pl(n,e,s,f),n.flags|=262144}function fa(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cr(e){ur=e,yn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Su(ur,e)}function da(e,n){return ur===null&&cr(e),Su(e,n)}function Su(e,n){var s=n._currentValue;if(n={context:n,memoizedValue:s,next:null},yn===null){if(e===null)throw Error(o(308));yn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else yn=yn.next=n;return s}var hp=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(s,f){e.push(f)}};this.abort=function(){n.aborted=!0,e.forEach(function(s){return s()})}},mp=t.unstable_scheduleCallback,gp=t.unstable_NormalPriority,ct={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hl(){return{controller:new hp,data:new Map,refCount:0}}function yi(e){e.refCount--,e.refCount===0&&mp(gp,function(){e.controller.abort()})}var bi=null,$l=0,Ir=0,Br=null;function xp(e,n){if(bi===null){var s=bi=[];$l=0,Ir=Ko(),Br={status:"pending",value:void 0,then:function(f){s.push(f)}}}return $l++,n.then(ku,ku),n}function ku(){if(--$l===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 yp(e,n){var s=[],f={status:"pending",value:null,reason:null,then:function(h){s.push(h)}};return e.then(function(){f.status="fulfilled",f.value=n;for(var h=0;h<s.length;h++)(0,s[h])(n)},function(h){for(f.status="rejected",f.reason=h,h=0;h<s.length;h++)(0,s[h])(void 0)}),f}var wu=P.S;P.S=function(e,n){sf=Je(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&xp(e,n),wu!==null&&wu(e,n)};var fr=q(null);function Yl(){var e=fr.current;return e!==null?e:Ke.pooledCache}function pa(e,n){n===null?N(fr,fr.current):N(fr,n.pool)}function Cu(){var e=Yl();return e===null?null:{parent:ct._currentValue,pool:e}}var Ur=Error(o(460)),Gl=Error(o(474)),ha=Error(o(542)),ma={then:function(){}};function Ru(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Au(e,n,s){switch(s=e[s],s===void 0?e.push(n):s!==n&&(n.then(hn,hn),n=s),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,_u(e),e;default:if(typeof n.status=="string")n.then(hn,hn);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=n,e.status="pending",e.then(function(f){if(n.status==="pending"){var h=n;h.status="fulfilled",h.value=f}},function(f){if(n.status==="pending"){var h=n;h.status="rejected",h.reason=f}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,_u(e),e}throw pr=n,Ur}}function dr(e){try{var n=e._init;return n(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(pr=s,Ur):s}}var pr=null;function Tu(){if(pr===null)throw Error(o(459));var e=pr;return pr=null,e}function _u(e){if(e===Ur||e===ha)throw Error(o(483))}var qr=null,vi=0;function ga(e){var n=vi;return vi+=1,qr===null&&(qr=[]),Au(qr,e,n)}function Ei(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function xa(e,n){throw n.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function ju(e){function n($,F){if(e){var G=$.deletions;G===null?($.deletions=[F],$.flags|=16):G.push(F)}}function s($,F){if(!e)return null;for(;F!==null;)n($,F),F=F.sibling;return null}function f($){for(var F=new Map;$!==null;)$.key!==null?F.set($.key,$):F.set($.index,$),$=$.sibling;return F}function h($,F){return $=gn($,F),$.index=0,$.sibling=null,$}function y($,F,G){return $.index=G,e?(G=$.alternate,G!==null?(G=G.index,G<F?($.flags|=67108866,F):G):($.flags|=67108866,F)):($.flags|=1048576,F)}function w($){return e&&$.alternate===null&&($.flags|=67108866),$}function T($,F,G,pe){return F===null||F.tag!==6?(F=zl(G,$.mode,pe),F.return=$,F):(F=h(F,G),F.return=$,F)}function U($,F,G,pe){var Ne=G.type;return Ne===B?ce($,F,G.props.children,pe,G.key):F!==null&&(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===W&&dr(Ne)===F.type)?(F=h(F,G.props),Ei(F,G),F.return=$,F):(F=ua(G.type,G.key,G.props,null,$.mode,pe),Ei(F,G),F.return=$,F)}function Q($,F,G,pe){return F===null||F.tag!==4||F.stateNode.containerInfo!==G.containerInfo||F.stateNode.implementation!==G.implementation?(F=Il(G,$.mode,pe),F.return=$,F):(F=h(F,G.children||[]),F.return=$,F)}function ce($,F,G,pe,Ne){return F===null||F.tag!==7?(F=or(G,$.mode,pe,Ne),F.return=$,F):(F=h(F,G),F.return=$,F)}function me($,F,G){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=zl(""+F,$.mode,G),F.return=$,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case R:return G=ua(F.type,F.key,F.props,null,$.mode,G),Ei(G,F),G.return=$,G;case _:return F=Il(F,$.mode,G),F.return=$,F;case W:return F=dr(F),me($,F,G)}if(ee(F)||ae(F))return F=or(F,$.mode,G,null),F.return=$,F;if(typeof F.then=="function")return me($,ga(F),G);if(F.$$typeof===V)return me($,da($,F),G);xa($,F)}return null}function J($,F,G,pe){var Ne=F!==null?F.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ne!==null?null:T($,F,""+G,pe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case R:return G.key===Ne?U($,F,G,pe):null;case _:return G.key===Ne?Q($,F,G,pe):null;case W:return G=dr(G),J($,F,G,pe)}if(ee(G)||ae(G))return Ne!==null?null:ce($,F,G,pe,null);if(typeof G.then=="function")return J($,F,ga(G),pe);if(G.$$typeof===V)return J($,F,da($,G),pe);xa($,G)}return null}function ie($,F,G,pe,Ne){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return $=$.get(G)||null,T(F,$,""+pe,Ne);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case R:return $=$.get(pe.key===null?G:pe.key)||null,U(F,$,pe,Ne);case _:return $=$.get(pe.key===null?G:pe.key)||null,Q(F,$,pe,Ne);case W:return pe=dr(pe),ie($,F,G,pe,Ne)}if(ee(pe)||ae(pe))return $=$.get(G)||null,ce(F,$,pe,Ne,null);if(typeof pe.then=="function")return ie($,F,G,ga(pe),Ne);if(pe.$$typeof===V)return ie($,F,G,da(F,pe),Ne);xa(F,pe)}return null}function Re($,F,G,pe){for(var Ne=null,Ze=null,Te=F,Me=F=0,Ue=null;Te!==null&&Me<G.length;Me++){Te.index>Me?(Ue=Te,Te=null):Ue=Te.sibling;var Ve=J($,Te,G[Me],pe);if(Ve===null){Te===null&&(Te=Ue);break}e&&Te&&Ve.alternate===null&&n($,Te),F=y(Ve,F,Me),Ze===null?Ne=Ve:Ze.sibling=Ve,Ze=Ve,Te=Ue}if(Me===G.length)return s($,Te),Fe&&xn($,Me),Ne;if(Te===null){for(;Me<G.length;Me++)Te=me($,G[Me],pe),Te!==null&&(F=y(Te,F,Me),Ze===null?Ne=Te:Ze.sibling=Te,Ze=Te);return Fe&&xn($,Me),Ne}for(Te=f(Te);Me<G.length;Me++)Ue=ie(Te,$,Me,G[Me],pe),Ue!==null&&(e&&Ue.alternate!==null&&Te.delete(Ue.key===null?Me:Ue.key),F=y(Ue,F,Me),Ze===null?Ne=Ue:Ze.sibling=Ue,Ze=Ue);return e&&Te.forEach(function(er){return n($,er)}),Fe&&xn($,Me),Ne}function Le($,F,G,pe){if(G==null)throw Error(o(151));for(var Ne=null,Ze=null,Te=F,Me=F=0,Ue=null,Ve=G.next();Te!==null&&!Ve.done;Me++,Ve=G.next()){Te.index>Me?(Ue=Te,Te=null):Ue=Te.sibling;var er=J($,Te,Ve.value,pe);if(er===null){Te===null&&(Te=Ue);break}e&&Te&&er.alternate===null&&n($,Te),F=y(er,F,Me),Ze===null?Ne=er:Ze.sibling=er,Ze=er,Te=Ue}if(Ve.done)return s($,Te),Fe&&xn($,Me),Ne;if(Te===null){for(;!Ve.done;Me++,Ve=G.next())Ve=me($,Ve.value,pe),Ve!==null&&(F=y(Ve,F,Me),Ze===null?Ne=Ve:Ze.sibling=Ve,Ze=Ve);return Fe&&xn($,Me),Ne}for(Te=f(Te);!Ve.done;Me++,Ve=G.next())Ve=ie(Te,$,Me,Ve.value,pe),Ve!==null&&(e&&Ve.alternate!==null&&Te.delete(Ve.key===null?Me:Ve.key),F=y(Ve,F,Me),Ze===null?Ne=Ve:Ze.sibling=Ve,Ze=Ve);return e&&Te.forEach(function(_h){return n($,_h)}),Fe&&xn($,Me),Ne}function Xe($,F,G,pe){if(typeof G=="object"&&G!==null&&G.type===B&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case R:e:{for(var Ne=G.key;F!==null;){if(F.key===Ne){if(Ne=G.type,Ne===B){if(F.tag===7){s($,F.sibling),pe=h(F,G.props.children),pe.return=$,$=pe;break e}}else if(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===W&&dr(Ne)===F.type){s($,F.sibling),pe=h(F,G.props),Ei(pe,G),pe.return=$,$=pe;break e}s($,F);break}else n($,F);F=F.sibling}G.type===B?(pe=or(G.props.children,$.mode,pe,G.key),pe.return=$,$=pe):(pe=ua(G.type,G.key,G.props,null,$.mode,pe),Ei(pe,G),pe.return=$,$=pe)}return w($);case _:e:{for(Ne=G.key;F!==null;){if(F.key===Ne)if(F.tag===4&&F.stateNode.containerInfo===G.containerInfo&&F.stateNode.implementation===G.implementation){s($,F.sibling),pe=h(F,G.children||[]),pe.return=$,$=pe;break e}else{s($,F);break}else n($,F);F=F.sibling}pe=Il(G,$.mode,pe),pe.return=$,$=pe}return w($);case W:return G=dr(G),Xe($,F,G,pe)}if(ee(G))return Re($,F,G,pe);if(ae(G)){if(Ne=ae(G),typeof Ne!="function")throw Error(o(150));return G=Ne.call(G),Le($,F,G,pe)}if(typeof G.then=="function")return Xe($,F,ga(G),pe);if(G.$$typeof===V)return Xe($,F,da($,G),pe);xa($,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,F!==null&&F.tag===6?(s($,F.sibling),pe=h(F,G),pe.return=$,$=pe):(s($,F),pe=zl(G,$.mode,pe),pe.return=$,$=pe),w($)):s($,F)}return function($,F,G,pe){try{vi=0;var Ne=Xe($,F,G,pe);return qr=null,Ne}catch(Te){if(Te===Ur||Te===ha)throw Te;var Ze=It(29,Te,null,$.mode);return Ze.lanes=pe,Ze.return=$,Ze}finally{}}}var hr=ju(!0),Nu=ju(!1),In=!1;function Xl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Kl(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,s){var f=e.updateQueue;if(f===null)return null;if(f=f.shared,(Pe&2)!==0){var h=f.pending;return h===null?n.next=n:(n.next=h.next,h.next=n),f.pending=n,n=sa(e),hu(e,null,s),n}return oa(e,f,n,s),sa(e)}function Si(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194048)!==0)){var f=n.lanes;f&=e.pendingLanes,s|=f,n.lanes=s,Ss(e,s)}}function Ql(e,n){var s=e.updateQueue,f=e.alternate;if(f!==null&&(f=f.updateQueue,s===f)){var h=null,y=null;if(s=s.firstBaseUpdate,s!==null){do{var w={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};y===null?h=y=w:y=y.next=w,s=s.next}while(s!==null);y===null?h=y=n:y=y.next=n}else h=y=n;s={baseState:f.baseState,firstBaseUpdate:h,lastBaseUpdate:y,shared:f.shared,callbacks:f.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}var Jl=!1;function ki(){if(Jl){var e=Br;if(e!==null)throw e}}function wi(e,n,s,f){Jl=!1;var h=e.updateQueue;In=!1;var y=h.firstBaseUpdate,w=h.lastBaseUpdate,T=h.shared.pending;if(T!==null){h.shared.pending=null;var U=T,Q=U.next;U.next=null,w===null?y=Q:w.next=Q,w=U;var ce=e.alternate;ce!==null&&(ce=ce.updateQueue,T=ce.lastBaseUpdate,T!==w&&(T===null?ce.firstBaseUpdate=Q:T.next=Q,ce.lastBaseUpdate=U))}if(y!==null){var me=h.baseState;w=0,ce=Q=U=null,T=y;do{var J=T.lane&-536870913,ie=J!==T.lane;if(ie?(Be&J)===J:(f&J)===J){J!==0&&J===Ir&&(Jl=!0),ce!==null&&(ce=ce.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Re=e,Le=T;J=n;var Xe=s;switch(Le.tag){case 1:if(Re=Le.payload,typeof Re=="function"){me=Re.call(Xe,me,J);break e}me=Re;break e;case 3:Re.flags=Re.flags&-65537|128;case 0:if(Re=Le.payload,J=typeof Re=="function"?Re.call(Xe,me,J):Re,J==null)break e;me=b({},me,J);break e;case 2:In=!0}}J=T.callback,J!==null&&(e.flags|=64,ie&&(e.flags|=8192),ie=h.callbacks,ie===null?h.callbacks=[J]:ie.push(J))}else ie={lane:J,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ce===null?(Q=ce=ie,U=me):ce=ce.next=ie,w|=J;if(T=T.next,T===null){if(T=h.shared.pending,T===null)break;ie=T,T=ie.next,ie.next=null,h.lastBaseUpdate=ie,h.shared.pending=null}}while(!0);ce===null&&(U=me),h.baseState=U,h.firstBaseUpdate=Q,h.lastBaseUpdate=ce,y===null&&(h.shared.lanes=0),Pn|=w,e.lanes=w,e.memoizedState=me}}function Ou(e,n){if(typeof e!="function")throw Error(o(191,e));e.call(n)}function Lu(e,n){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)Ou(s[e],n)}var Fr=q(null),ya=q(0);function Du(e,n){e=Tn,N(ya,e),N(Fr,n),Tn=e|n.baseLanes}function Wl(){N(ya,Tn),N(Fr,Fr.current)}function eo(){Tn=ya.current,oe(Fr),oe(ya)}var Bt=q(null),Wt=null;function qn(e){var n=e.alternate;N(ot,ot.current&1),N(Bt,e),Wt===null&&(n===null||Fr.current!==null||n.memoizedState!==null)&&(Wt=e)}function to(e){N(ot,ot.current),N(Bt,e),Wt===null&&(Wt=e)}function Mu(e){e.tag===22?(N(ot,ot.current),N(Bt,e),Wt===null&&(Wt=e)):Fn()}function Fn(){N(ot,ot.current),N(Bt,Bt.current)}function Ut(e){oe(Bt),Wt===e&&(Wt=null),oe(ot)}var ot=q(0);function ba(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||ss(s)||us(s)))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,Ye=null,ft=null,va=!1,Zr=!1,mr=!1,Ea=0,Ci=0,Vr=null,bp=0;function rt(){throw Error(o(321))}function no(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!zt(e[s],n[s]))return!1;return!0}function ro(e,n,s,f,h,y){return vn=y,De=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,P.H=e===null||e.memoizedState===null?yc:bo,mr=!1,y=s(f,h),mr=!1,Zr&&(y=Iu(n,s,f,h)),zu(e),y}function zu(e){P.H=Ti;var n=Ye!==null&&Ye.next!==null;if(vn=0,ft=Ye=De=null,va=!1,Ci=0,Vr=null,n)throw Error(o(300));e===null||dt||(e=e.dependencies,e!==null&&fa(e)&&(dt=!0))}function Iu(e,n,s,f){De=e;var h=0;do{if(Zr&&(Vr=null),Ci=0,Zr=!1,25<=h)throw Error(o(301));if(h+=1,ft=Ye=null,e.updateQueue!=null){var y=e.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}P.H=bc,y=n(s,f)}while(Zr);return y}function vp(){var e=P.H,n=e.useState()[0];return n=typeof n.then=="function"?Ri(n):n,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(De.flags|=1024),n}function io(){var e=Ea!==0;return Ea=0,e}function ao(e,n,s){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~s}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=Ye=De=null,Zr=!1,Ci=Ea=0,Vr=null}function Rt(){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 st(){if(Ye===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var n=ft===null?De.memoizedState:ft.next;if(n!==null)ft=n,Ye=e;else{if(e===null)throw De.alternate===null?Error(o(467)):Error(o(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},ft===null?De.memoizedState=ft=e:ft=ft.next=e}return ft}function Sa(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ri(e){var n=Ci;return Ci+=1,Vr===null&&(Vr=[]),e=Au(Vr,e,n),n=De,(ft===null?n.memoizedState:ft.next)===null&&(n=n.alternate,P.H=n===null||n.memoizedState===null?yc:bo),e}function ka(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ri(e);if(e.$$typeof===V)return vt(e)}throw Error(o(438,String(e)))}function oo(e){var n=null,s=De.updateQueue;if(s!==null&&(n=s.memoCache),n==null){var f=De.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(n={data:f.data.map(function(h){return h.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),s===null&&(s=Sa(),De.updateQueue=s),s.memoCache=n,s=n.data[n.index],s===void 0)for(s=n.data[n.index]=Array(e),f=0;f<e;f++)s[f]=K;return n.index++,s}function En(e,n){return typeof n=="function"?n(e):n}function wa(e){var n=st();return so(n,Ye,e)}function so(e,n,s){var f=e.queue;if(f===null)throw Error(o(311));f.lastRenderedReducer=s;var h=e.baseQueue,y=f.pending;if(y!==null){if(h!==null){var w=h.next;h.next=y.next,y.next=w}n.baseQueue=h=y,f.pending=null}if(y=e.baseState,h===null)e.memoizedState=y;else{n=h.next;var T=w=null,U=null,Q=n,ce=!1;do{var me=Q.lane&-536870913;if(me!==Q.lane?(Be&me)===me:(vn&me)===me){var J=Q.revertLane;if(J===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),me===Ir&&(ce=!0);else if((vn&J)===J){Q=Q.next,J===Ir&&(ce=!0);continue}else me={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},U===null?(T=U=me,w=y):U=U.next=me,De.lanes|=J,Pn|=J;me=Q.action,mr&&s(y,me),y=Q.hasEagerState?Q.eagerState:s(y,me)}else J={lane:me,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},U===null?(T=U=J,w=y):U=U.next=J,De.lanes|=me,Pn|=me;Q=Q.next}while(Q!==null&&Q!==n);if(U===null?w=y:U.next=T,!zt(y,e.memoizedState)&&(dt=!0,ce&&(s=Br,s!==null)))throw s;e.memoizedState=y,e.baseState=w,e.baseQueue=U,f.lastRenderedState=y}return h===null&&(f.lanes=0),[e.memoizedState,f.dispatch]}function uo(e){var n=st(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var f=s.dispatch,h=s.pending,y=n.memoizedState;if(h!==null){s.pending=null;var w=h=h.next;do y=e(y,w.action),w=w.next;while(w!==h);zt(y,n.memoizedState)||(dt=!0),n.memoizedState=y,n.baseQueue===null&&(n.baseState=y),s.lastRenderedState=y}return[y,f]}function Bu(e,n,s){var f=De,h=st(),y=Fe;if(y){if(s===void 0)throw Error(o(407));s=s()}else s=n();var w=!zt((Ye||h).memoizedState,s);if(w&&(h.memoizedState=s,dt=!0),h=h.queue,po(Fu.bind(null,f,h,e),[e]),h.getSnapshot!==n||w||ft!==null&&ft.memoizedState.tag&1){if(f.flags|=2048,Pr(9,{destroy:void 0},qu.bind(null,f,h,s,n),null),Ke===null)throw Error(o(349));y||(vn&127)!==0||Uu(f,n,s)}return s}function Uu(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=De.updateQueue,n===null?(n=Sa(),De.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function qu(e,n,s,f){n.value=s,n.getSnapshot=f,Zu(n)&&Vu(e)}function Fu(e,n,s){return s(function(){Zu(n)&&Vu(e)})}function Zu(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!zt(e,s)}catch{return!0}}function Vu(e){var n=lr(e,2);n!==null&&Mt(n,e,2)}function co(e){var n=Rt();if(typeof e=="function"){var s=e;if(e=s(),mr){I(!0);try{s()}finally{I(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},n}function Pu(e,n,s,f){return e.baseState=s,so(e,Ye,typeof f=="function"?f:En)}function Ep(e,n,s,f,h){if(Aa(e))throw Error(o(485));if(e=n.action,e!==null){var y={payload:h,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){y.listeners.push(w)}};P.T!==null?s(!0):y.isTransition=!1,f(y),s=n.pending,s===null?(y.next=n.pending=y,Hu(n,y)):(y.next=s.next,n.pending=s.next=y)}}function Hu(e,n){var s=n.action,f=n.payload,h=e.state;if(n.isTransition){var y=P.T,w={};P.T=w;try{var T=s(h,f),U=P.S;U!==null&&U(w,T),$u(e,n,T)}catch(Q){fo(e,n,Q)}finally{y!==null&&w.types!==null&&(y.types=w.types),P.T=y}}else try{y=s(h,f),$u(e,n,y)}catch(Q){fo(e,n,Q)}}function $u(e,n,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(f){Yu(e,n,f)},function(f){return fo(e,n,f)}):Yu(e,n,s)}function Yu(e,n,s){n.status="fulfilled",n.value=s,Gu(n),e.state=s,n=e.pending,n!==null&&(s=n.next,s===n?e.pending=null:(s=s.next,n.next=s,Hu(e,s)))}function fo(e,n,s){var f=e.pending;if(e.pending=null,f!==null){f=f.next;do n.status="rejected",n.reason=s,Gu(n),n=n.next;while(n!==f)}e.action=null}function Gu(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Xu(e,n){return n}function Ku(e,n){if(Fe){var s=Ke.formState;if(s!==null){e:{var f=De;if(Fe){if(We){t:{for(var h=We,y=Jt;h.nodeType!==8;){if(!y){h=null;break t}if(h=en(h.nextSibling),h===null){h=null;break t}}y=h.data,h=y==="F!"||y==="F"?h:null}if(h){We=en(h.nextSibling),f=h.data==="F!";break e}}Mn(f)}f=!1}f&&(n=s[0])}}return s=Rt(),s.memoizedState=s.baseState=n,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xu,lastRenderedState:n},s.queue=f,s=mc.bind(null,De,f),f.dispatch=s,f=co(!1),y=yo.bind(null,De,!1,f.queue),f=Rt(),h={state:n,dispatch:null,action:e,pending:null},f.queue=h,s=Ep.bind(null,De,h,y,s),h.dispatch=s,f.memoizedState=e,[n,s,!1]}function Qu(e){var n=st();return Ju(n,Ye,e)}function Ju(e,n,s){if(n=so(e,n,Xu)[0],e=wa(En)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var f=Ri(n)}catch(w){throw w===Ur?ha:w}else f=n;n=st();var h=n.queue,y=h.dispatch;return s!==n.memoizedState&&(De.flags|=2048,Pr(9,{destroy:void 0},Sp.bind(null,h,s),null)),[f,y,e]}function Sp(e,n){e.action=n}function Wu(e){var n=st(),s=Ye;if(s!==null)return Ju(n,s,e);st(),n=n.memoizedState,s=st();var f=s.queue.dispatch;return s.memoizedState=e,[n,f,!1]}function Pr(e,n,s,f){return e={tag:e,create:s,deps:f,inst:n,next:null},n=De.updateQueue,n===null&&(n=Sa(),De.updateQueue=n),s=n.lastEffect,s===null?n.lastEffect=e.next=e:(f=s.next,s.next=e,e.next=f,n.lastEffect=e),e}function ec(){return st().memoizedState}function Ca(e,n,s,f){var h=Rt();De.flags|=e,h.memoizedState=Pr(1|n,{destroy:void 0},s,f===void 0?null:f)}function Ra(e,n,s,f){var h=st();f=f===void 0?null:f;var y=h.memoizedState.inst;Ye!==null&&f!==null&&no(f,Ye.memoizedState.deps)?h.memoizedState=Pr(n,y,s,f):(De.flags|=e,h.memoizedState=Pr(1|n,y,s,f))}function tc(e,n){Ca(8390656,8,e,n)}function po(e,n){Ra(2048,8,e,n)}function kp(e){De.flags|=4;var n=De.updateQueue;if(n===null)n=Sa(),De.updateQueue=n,n.events=[e];else{var s=n.events;s===null?n.events=[e]:s.push(e)}}function nc(e){var n=st().memoizedState;return kp({ref:n,nextImpl:e}),function(){if((Pe&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}function rc(e,n){return Ra(4,2,e,n)}function ic(e,n){return Ra(4,4,e,n)}function ac(e,n){if(typeof n=="function"){e=e();var s=n(e);return function(){typeof s=="function"?s():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function lc(e,n,s){s=s!=null?s.concat([e]):null,Ra(4,4,ac.bind(null,n,e),s)}function ho(){}function oc(e,n){var s=st();n=n===void 0?null:n;var f=s.memoizedState;return n!==null&&no(n,f[1])?f[0]:(s.memoizedState=[e,n],e)}function sc(e,n){var s=st();n=n===void 0?null:n;var f=s.memoizedState;if(n!==null&&no(n,f[1]))return f[0];if(f=e(),mr){I(!0);try{e()}finally{I(!1)}}return s.memoizedState=[f,n],f}function mo(e,n,s){return s===void 0||(vn&1073741824)!==0&&(Be&261930)===0?e.memoizedState=n:(e.memoizedState=s,e=cf(),De.lanes|=e,Pn|=e,s)}function uc(e,n,s,f){return zt(s,n)?s:Fr.current!==null?(e=mo(e,s,f),zt(e,n)||(dt=!0),e):(vn&42)===0||(vn&1073741824)!==0&&(Be&261930)===0?(dt=!0,e.memoizedState=s):(e=cf(),De.lanes|=e,Pn|=e,n)}function cc(e,n,s,f,h){var y=he.p;he.p=y!==0&&8>y?y:8;var w=P.T,T={};P.T=T,yo(e,!1,n,s);try{var U=h(),Q=P.S;if(Q!==null&&Q(T,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var ce=yp(U,f);Ai(e,n,ce,Zt(e))}else Ai(e,n,f,Zt(e))}catch(me){Ai(e,n,{then:function(){},status:"rejected",reason:me},Zt())}finally{he.p=y,w!==null&&T.types!==null&&(w.types=T.types),P.T=w}}function wp(){}function go(e,n,s,f){if(e.tag!==5)throw Error(o(476));var h=fc(e).queue;cc(e,h,n,fe,s===null?wp:function(){return dc(e),s(f)})}function fc(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:fe},next:null};var s={};return n.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:s},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),Ai(e,n.next.queue,{},Zt())}function xo(){return vt(Pi)}function pc(){return st().memoizedState}function hc(){return st().memoizedState}function Cp(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=Zt();e=Bn(s);var f=Un(n,e,s);f!==null&&(Mt(f,n,s),Si(f,n,s)),n={cache:Hl()},e.payload=n;return}n=n.return}}function Rp(e,n,s){var f=Zt();s={lane:f,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Aa(e)?gc(n,s):(s=Dl(e,n,s,f),s!==null&&(Mt(s,e,f),xc(s,n,f)))}function mc(e,n,s){var f=Zt();Ai(e,n,s,f)}function Ai(e,n,s,f){var h={lane:f,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Aa(e))gc(n,h);else{var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=n.lastRenderedReducer,y!==null))try{var w=n.lastRenderedState,T=y(w,s);if(h.hasEagerState=!0,h.eagerState=T,zt(T,w))return oa(e,n,h,0),Ke===null&&la(),!1}catch{}finally{}if(s=Dl(e,n,h,f),s!==null)return Mt(s,e,f),xc(s,n,f),!0}return!1}function yo(e,n,s,f){if(f={lane:2,revertLane:Ko(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Aa(e)){if(n)throw Error(o(479))}else n=Dl(e,s,f,2),n!==null&&Mt(n,e,2)}function Aa(e){var n=e.alternate;return e===De||n!==null&&n===De}function gc(e,n){Zr=va=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function xc(e,n,s){if((s&4194048)!==0){var f=n.lanes;f&=e.pendingLanes,s|=f,n.lanes=s,Ss(e,s)}}var Ti={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};Ti.useEffectEvent=rt;var yc={readContext:vt,use:ka,useCallback:function(e,n){return Rt().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:tc,useImperativeHandle:function(e,n,s){s=s!=null?s.concat([e]):null,Ca(4194308,4,ac.bind(null,n,e),s)},useLayoutEffect:function(e,n){return Ca(4194308,4,e,n)},useInsertionEffect:function(e,n){Ca(4,2,e,n)},useMemo:function(e,n){var s=Rt();n=n===void 0?null:n;var f=e();if(mr){I(!0);try{e()}finally{I(!1)}}return s.memoizedState=[f,n],f},useReducer:function(e,n,s){var f=Rt();if(s!==void 0){var h=s(n);if(mr){I(!0);try{s(n)}finally{I(!1)}}}else h=n;return f.memoizedState=f.baseState=h,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:h},f.queue=e,e=e.dispatch=Rp.bind(null,De,e),[f.memoizedState,e]},useRef:function(e){var n=Rt();return e={current:e},n.memoizedState=e},useState:function(e){e=co(e);var n=e.queue,s=mc.bind(null,De,n);return n.dispatch=s,[e.memoizedState,s]},useDebugValue:ho,useDeferredValue:function(e,n){var s=Rt();return mo(s,e,n)},useTransition:function(){var e=co(!1);return e=cc.bind(null,De,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,s){var f=De,h=Rt();if(Fe){if(s===void 0)throw Error(o(407));s=s()}else{if(s=n(),Ke===null)throw Error(o(349));(Be&127)!==0||Uu(f,n,s)}h.memoizedState=s;var y={value:s,getSnapshot:n};return h.queue=y,tc(Fu.bind(null,f,y,e),[e]),f.flags|=2048,Pr(9,{destroy:void 0},qu.bind(null,f,y,s,n),null),s},useId:function(){var e=Rt(),n=Ke.identifierPrefix;if(Fe){var s=un,f=sn;s=(f&~(1<<32-z(f)-1)).toString(32)+s,n="_"+n+"R_"+s,s=Ea++,0<s&&(n+="H"+s.toString(32)),n+="_"}else s=bp++,n="_"+n+"r_"+s.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:xo,useFormState:Ku,useActionState:Ku,useOptimistic:function(e){var n=Rt();n.memoizedState=n.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=s,n=yo.bind(null,De,!0,s),s.dispatch=n,[e,n]},useMemoCache:oo,useCacheRefresh:function(){return Rt().memoizedState=Cp.bind(null,De)},useEffectEvent:function(e){var n=Rt(),s={impl:e};return n.memoizedState=s,function(){if((Pe&2)!==0)throw Error(o(440));return s.impl.apply(void 0,arguments)}}},bo={readContext:vt,use:ka,useCallback:oc,useContext:vt,useEffect:po,useImperativeHandle:lc,useInsertionEffect:rc,useLayoutEffect:ic,useMemo:sc,useReducer:wa,useRef:ec,useState:function(){return wa(En)},useDebugValue:ho,useDeferredValue:function(e,n){var s=st();return uc(s,Ye.memoizedState,e,n)},useTransition:function(){var e=wa(En)[0],n=st().memoizedState;return[typeof e=="boolean"?e:Ri(e),n]},useSyncExternalStore:Bu,useId:pc,useHostTransitionStatus:xo,useFormState:Qu,useActionState:Qu,useOptimistic:function(e,n){var s=st();return Pu(s,Ye,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:sc,useReducer:uo,useRef:ec,useState:function(){return uo(En)},useDebugValue:ho,useDeferredValue:function(e,n){var s=st();return Ye===null?mo(s,e,n):uc(s,Ye.memoizedState,e,n)},useTransition:function(){var e=uo(En)[0],n=st().memoizedState;return[typeof e=="boolean"?e:Ri(e),n]},useSyncExternalStore:Bu,useId:pc,useHostTransitionStatus:xo,useFormState:Wu,useActionState:Wu,useOptimistic:function(e,n){var s=st();return Ye!==null?Pu(s,Ye,e,n):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:oo,useCacheRefresh:hc};bc.useEffectEvent=nc;function vo(e,n,s,f){n=e.memoizedState,s=s(f,n),s=s==null?n:b({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Eo={enqueueSetState:function(e,n,s){e=e._reactInternals;var f=Zt(),h=Bn(f);h.payload=n,s!=null&&(h.callback=s),n=Un(e,h,f),n!==null&&(Mt(n,e,f),Si(n,e,f))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var f=Zt(),h=Bn(f);h.tag=1,h.payload=n,s!=null&&(h.callback=s),n=Un(e,h,f),n!==null&&(Mt(n,e,f),Si(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=Zt(),f=Bn(s);f.tag=2,n!=null&&(f.callback=n),n=Un(e,f,s),n!==null&&(Mt(n,e,s),Si(n,e,s))}};function vc(e,n,s,f,h,y,w){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(f,y,w):n.prototype&&n.prototype.isPureReactComponent?!hi(s,f)||!hi(h,y):!0}function Ec(e,n,s,f){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,f),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,f),n.state!==e&&Eo.enqueueReplaceState(n,n.state,null)}function gr(e,n){var s=n;if("ref"in n){s={};for(var f in n)f!=="ref"&&(s[f]=n[f])}if(e=e.defaultProps){s===n&&(s=b({},s));for(var h in e)s[h]===void 0&&(s[h]=e[h])}return s}function Sc(e){aa(e)}function kc(e){console.error(e)}function wc(e){aa(e)}function Ta(e,n){try{var s=e.onUncaughtError;s(n.value,{componentStack:n.stack})}catch(f){setTimeout(function(){throw f})}}function Cc(e,n,s){try{var f=e.onCaughtError;f(s.value,{componentStack:s.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function So(e,n,s){return s=Bn(s),s.tag=3,s.payload={element:null},s.callback=function(){Ta(e,n)},s}function Rc(e){return e=Bn(e),e.tag=3,e}function Ac(e,n,s,f){var h=s.type.getDerivedStateFromError;if(typeof h=="function"){var y=f.value;e.payload=function(){return h(y)},e.callback=function(){Cc(n,s,f)}}var w=s.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(e.callback=function(){Cc(n,s,f),typeof h!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var T=f.stack;this.componentDidCatch(f.value,{componentStack:T!==null?T:""})})}function Ap(e,n,s,f,h){if(s.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(n=s.alternate,n!==null&&zr(n,s,h,!0),s=Bt.current,s!==null){switch(s.tag){case 31:case 13:return Wt===null?qa():s.alternate===null&&it===0&&(it=3),s.flags&=-257,s.flags|=65536,s.lanes=h,f===ma?s.flags|=16384:(n=s.updateQueue,n===null?s.updateQueue=new Set([f]):n.add(f),Yo(e,f,h)),!1;case 22:return s.flags|=65536,f===ma?s.flags|=16384:(n=s.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([f])},s.updateQueue=n):(s=n.retryQueue,s===null?n.retryQueue=new Set([f]):s.add(f)),Yo(e,f,h)),!1}throw Error(o(435,s.tag))}return Yo(e,f,h),qa(),!1}if(Fe)return n=Bt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=h,f!==ql&&(e=Error(o(422),{cause:f}),xi(Xt(e,s)))):(f!==ql&&(n=Error(o(423),{cause:f}),xi(Xt(n,s))),e=e.current.alternate,e.flags|=65536,h&=-h,e.lanes|=h,f=Xt(f,s),h=So(e.stateNode,f,h),Ql(e,h),it!==4&&(it=2)),!1;var y=Error(o(520),{cause:f});if(y=Xt(y,s),zi===null?zi=[y]:zi.push(y),it!==4&&(it=2),n===null)return!0;f=Xt(f,s),s=n;do{switch(s.tag){case 3:return s.flags|=65536,e=h&-h,s.lanes|=e,e=So(s.stateNode,f,e),Ql(s,e),!1;case 1:if(n=s.type,y=s.stateNode,(s.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Hn===null||!Hn.has(y))))return s.flags|=65536,h&=-h,s.lanes|=h,h=Rc(h),Ac(h,e,s,f),Ql(s,h),!1}s=s.return}while(s!==null);return!1}var ko=Error(o(461)),dt=!1;function Et(e,n,s,f){n.child=e===null?Nu(n,null,s,f):hr(n,e.child,s,f)}function Tc(e,n,s,f,h){s=s.render;var y=n.ref;if("ref"in f){var w={};for(var T in f)T!=="ref"&&(w[T]=f[T])}else w=f;return cr(n),f=ro(e,n,s,w,y,h),T=io(),e!==null&&!dt?(ao(e,n,h),Sn(e,n,h)):(Fe&&T&&Bl(n),n.flags|=1,Et(e,n,f,h),n.child)}function _c(e,n,s,f,h){if(e===null){var y=s.type;return typeof y=="function"&&!Ml(y)&&y.defaultProps===void 0&&s.compare===null?(n.tag=15,n.type=y,jc(e,n,y,f,h)):(e=ua(s.type,null,f,n,n.mode,h),e.ref=n.ref,e.return=n,n.child=e)}if(y=e.child,!No(e,h)){var w=y.memoizedProps;if(s=s.compare,s=s!==null?s:hi,s(w,f)&&e.ref===n.ref)return Sn(e,n,h)}return n.flags|=1,e=gn(y,f),e.ref=n.ref,e.return=n,n.child=e}function jc(e,n,s,f,h){if(e!==null){var y=e.memoizedProps;if(hi(y,f)&&e.ref===n.ref)if(dt=!1,n.pendingProps=f=y,No(e,h))(e.flags&131072)!==0&&(dt=!0);else return n.lanes=e.lanes,Sn(e,n,h)}return wo(e,n,s,f,h)}function Nc(e,n,s,f){var h=f.children,y=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((n.flags&128)!==0){if(y=y!==null?y.baseLanes|s:s,e!==null){for(f=n.child=e.child,h=0;f!==null;)h=h|f.lanes|f.childLanes,f=f.sibling;f=h&~y}else f=0,n.child=null;return Oc(e,n,y,s,f)}if((s&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&pa(n,y!==null?y.cachePool:null),y!==null?Du(n,y):Wl(),Mu(n);else return f=n.lanes=536870912,Oc(e,n,y!==null?y.baseLanes|s:s,s,f)}else y!==null?(pa(n,y.cachePool),Du(n,y),Fn(),n.memoizedState=null):(e!==null&&pa(n,null),Wl(),Fn());return Et(e,n,h,s),n.child}function _i(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,s,f,h){var y=Yl();return y=y===null?null:{parent:ct._currentValue,pool:y},n.memoizedState={baseLanes:s,cachePool:y},e!==null&&pa(n,null),Wl(),Mu(n),e!==null&&zr(e,n,f,!0),n.childLanes=h,null}function _a(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 Lc(e,n,s){return hr(n,e.child,null,s),e=_a(n,n.pendingProps),e.flags|=2,Ut(n),n.memoizedState=null,e}function Tp(e,n,s){var f=n.pendingProps,h=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Fe){if(f.mode==="hidden")return e=_a(n,f),n.lanes=536870912,_i(null,e);if(to(n),(e=We)?(e=$f(e,Jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:sn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},s=gu(e),s.return=n,n.child=s,bt=n,We=null)):e=null,e===null)throw Mn(n);return n.lanes=536870912,null}return _a(n,f)}var y=e.memoizedState;if(y!==null){var w=y.dehydrated;if(to(n),h)if(n.flags&256)n.flags&=-257,n=Lc(e,n,s);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(o(558));else if(dt||zr(e,n,s,!1),h=(s&e.childLanes)!==0,dt||h){if(f=Ke,f!==null&&(w=ks(f,s),w!==0&&w!==y.retryLane))throw y.retryLane=w,lr(e,w),Mt(f,e,w),ko;qa(),n=Lc(e,n,s)}else e=y.treeContext,We=en(w.nextSibling),bt=n,Fe=!0,Dn=null,Jt=!1,e!==null&&bu(n,e),n=_a(n,f),n.flags|=4096;return n}return e=gn(e.child,{mode:f.mode,children:f.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ja(e,n){var s=n.ref;if(s===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(o(284));(e===null||e.ref!==s)&&(n.flags|=4194816)}}function wo(e,n,s,f,h){return cr(n),s=ro(e,n,s,f,void 0,h),f=io(),e!==null&&!dt?(ao(e,n,h),Sn(e,n,h)):(Fe&&f&&Bl(n),n.flags|=1,Et(e,n,s,h),n.child)}function Dc(e,n,s,f,h,y){return cr(n),n.updateQueue=null,s=Iu(n,f,s,h),zu(e),f=io(),e!==null&&!dt?(ao(e,n,y),Sn(e,n,y)):(Fe&&f&&Bl(n),n.flags|=1,Et(e,n,s,y),n.child)}function Mc(e,n,s,f,h){if(cr(n),n.stateNode===null){var y=Or,w=s.contextType;typeof w=="object"&&w!==null&&(y=vt(w)),y=new s(f,y),n.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Eo,n.stateNode=y,y._reactInternals=n,y=n.stateNode,y.props=f,y.state=n.memoizedState,y.refs={},Xl(n),w=s.contextType,y.context=typeof w=="object"&&w!==null?vt(w):Or,y.state=n.memoizedState,w=s.getDerivedStateFromProps,typeof w=="function"&&(vo(n,s,w,f),y.state=n.memoizedState),typeof s.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&&Eo.enqueueReplaceState(y,y.state,null),wi(n,f,y,h),ki(),y.state=n.memoizedState),typeof y.componentDidMount=="function"&&(n.flags|=4194308),f=!0}else if(e===null){y=n.stateNode;var T=n.memoizedProps,U=gr(s,T);y.props=U;var Q=y.context,ce=s.contextType;w=Or,typeof ce=="object"&&ce!==null&&(w=vt(ce));var me=s.getDerivedStateFromProps;ce=typeof me=="function"||typeof y.getSnapshotBeforeUpdate=="function",T=n.pendingProps!==T,ce||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(T||Q!==w)&&Ec(n,y,f,w),In=!1;var J=n.memoizedState;y.state=J,wi(n,f,y,h),ki(),Q=n.memoizedState,T||J!==Q||In?(typeof me=="function"&&(vo(n,s,me,f),Q=n.memoizedState),(U=In||vc(n,s,U,f,J,Q,w))?(ce||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=f,n.memoizedState=Q),y.props=f,y.state=Q,y.context=w,f=U):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),f=!1)}else{y=n.stateNode,Kl(e,n),w=n.memoizedProps,ce=gr(s,w),y.props=ce,me=n.pendingProps,J=y.context,Q=s.contextType,U=Or,typeof Q=="object"&&Q!==null&&(U=vt(Q)),T=s.getDerivedStateFromProps,(Q=typeof T=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==me||J!==U)&&Ec(n,y,f,U),In=!1,J=n.memoizedState,y.state=J,wi(n,f,y,h),ki();var ie=n.memoizedState;w!==me||J!==ie||In||e!==null&&e.dependencies!==null&&fa(e.dependencies)?(typeof T=="function"&&(vo(n,s,T,f),ie=n.memoizedState),(ce=In||vc(n,s,ce,f,J,ie,U)||e!==null&&e.dependencies!==null&&fa(e.dependencies))?(Q||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(f,ie,U),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(f,ie,U)),typeof y.componentDidUpdate=="function"&&(n.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof y.componentDidUpdate!="function"||w===e.memoizedProps&&J===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&J===e.memoizedState||(n.flags|=1024),n.memoizedProps=f,n.memoizedState=ie),y.props=f,y.state=ie,y.context=U,f=ce):(typeof y.componentDidUpdate!="function"||w===e.memoizedProps&&J===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&J===e.memoizedState||(n.flags|=1024),f=!1)}return y=f,ja(e,n),f=(n.flags&128)!==0,y||f?(y=n.stateNode,s=f&&typeof s.getDerivedStateFromError!="function"?null:y.render(),n.flags|=1,e!==null&&f?(n.child=hr(n,e.child,null,h),n.child=hr(n,null,s,h)):Et(e,n,s,h),n.memoizedState=y.state,e=n.child):e=Sn(e,n,h),e}function zc(e,n,s,f){return sr(),n.flags|=256,Et(e,n,s,f),n.child}var Co={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ro(e){return{baseLanes:e,cachePool:Cu()}}function Ao(e,n,s){return e=e!==null?e.childLanes&~s:0,n&&(e|=Ft),e}function Ic(e,n,s){var f=n.pendingProps,h=!1,y=(n.flags&128)!==0,w;if((w=y)||(w=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),w&&(h=!0,n.flags&=-129),w=(n.flags&32)!==0,n.flags&=-33,e===null){if(Fe){if(h?qn(n):Fn(),(e=We)?(e=$f(e,Jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:sn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},s=gu(e),s.return=n,n.child=s,bt=n,We=null)):e=null,e===null)throw Mn(n);return us(e)?n.lanes=32:n.lanes=536870912,null}var T=f.children;return f=f.fallback,h?(Fn(),h=n.mode,T=Na({mode:"hidden",children:T},h),f=or(f,h,s,null),T.return=n,f.return=n,T.sibling=f,n.child=T,f=n.child,f.memoizedState=Ro(s),f.childLanes=Ao(e,w,s),n.memoizedState=Co,_i(null,f)):(qn(n),To(n,T))}var U=e.memoizedState;if(U!==null&&(T=U.dehydrated,T!==null)){if(y)n.flags&256?(qn(n),n.flags&=-257,n=_o(e,n,s)):n.memoizedState!==null?(Fn(),n.child=e.child,n.flags|=128,n=null):(Fn(),T=f.fallback,h=n.mode,f=Na({mode:"visible",children:f.children},h),T=or(T,h,s,null),T.flags|=2,f.return=n,T.return=n,f.sibling=T,n.child=f,hr(n,e.child,null,s),f=n.child,f.memoizedState=Ro(s),f.childLanes=Ao(e,w,s),n.memoizedState=Co,n=_i(null,f));else if(qn(n),us(T)){if(w=T.nextSibling&&T.nextSibling.dataset,w)var Q=w.dgst;w=Q,f=Error(o(419)),f.stack="",f.digest=w,xi({value:f,source:null,stack:null}),n=_o(e,n,s)}else if(dt||zr(e,n,s,!1),w=(s&e.childLanes)!==0,dt||w){if(w=Ke,w!==null&&(f=ks(w,s),f!==0&&f!==U.retryLane))throw U.retryLane=f,lr(e,f),Mt(w,e,f),ko;ss(T)||qa(),n=_o(e,n,s)}else ss(T)?(n.flags|=192,n.child=e.child,n=null):(e=U.treeContext,We=en(T.nextSibling),bt=n,Fe=!0,Dn=null,Jt=!1,e!==null&&bu(n,e),n=To(n,f.children),n.flags|=4096);return n}return h?(Fn(),T=f.fallback,h=n.mode,U=e.child,Q=U.sibling,f=gn(U,{mode:"hidden",children:f.children}),f.subtreeFlags=U.subtreeFlags&65011712,Q!==null?T=gn(Q,T):(T=or(T,h,s,null),T.flags|=2),T.return=n,f.return=n,f.sibling=T,n.child=f,_i(null,f),f=n.child,T=e.child.memoizedState,T===null?T=Ro(s):(h=T.cachePool,h!==null?(U=ct._currentValue,h=h.parent!==U?{parent:U,pool:U}:h):h=Cu(),T={baseLanes:T.baseLanes|s,cachePool:h}),f.memoizedState=T,f.childLanes=Ao(e,w,s),n.memoizedState=Co,_i(e.child,f)):(qn(n),s=e.child,e=s.sibling,s=gn(s,{mode:"visible",children:f.children}),s.return=n,s.sibling=null,e!==null&&(w=n.deletions,w===null?(n.deletions=[e],n.flags|=16):w.push(e)),n.child=s,n.memoizedState=null,s)}function To(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 _o(e,n,s){return hr(n,e.child,null,s),e=To(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Bc(e,n,s){e.lanes|=n;var f=e.alternate;f!==null&&(f.lanes|=n),Vl(e.return,n,s)}function jo(e,n,s,f,h,y){var w=e.memoizedState;w===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:f,tail:s,tailMode:h,treeForkCount:y}:(w.isBackwards=n,w.rendering=null,w.renderingStartTime=0,w.last=f,w.tail=s,w.tailMode=h,w.treeForkCount=y)}function Uc(e,n,s){var f=n.pendingProps,h=f.revealOrder,y=f.tail;f=f.children;var w=ot.current,T=(w&2)!==0;if(T?(w=w&1|2,n.flags|=128):w&=1,N(ot,w),Et(e,n,f,s),f=Fe?gi:0,!T&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bc(e,s,n);else if(e.tag===19)Bc(e,s,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(h){case"forwards":for(s=n.child,h=null;s!==null;)e=s.alternate,e!==null&&ba(e)===null&&(h=s),s=s.sibling;s=h,s===null?(h=n.child,n.child=null):(h=s.sibling,s.sibling=null),jo(n,!1,h,s,y,f);break;case"backwards":case"unstable_legacy-backwards":for(s=null,h=n.child,n.child=null;h!==null;){if(e=h.alternate,e!==null&&ba(e)===null){n.child=h;break}e=h.sibling,h.sibling=s,s=h,h=e}jo(n,!0,s,null,y,f);break;case"together":jo(n,!1,null,null,void 0,f);break;default:n.memoizedState=null}return n.child}function Sn(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),Pn|=n.lanes,(s&n.childLanes)===0)if(e!==null){if(zr(e,n,s,!1),(s&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,s=gn(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=gn(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function No(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&fa(e)))}function _p(e,n,s){switch(n.tag){case 3:qe(n,n.stateNode.containerInfo),zn(n,ct,e.memoizedState.cache),sr();break;case 27:case 5:nt(n);break;case 4:qe(n,n.stateNode.containerInfo);break;case 10:zn(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,to(n),null;break;case 13:var f=n.memoizedState;if(f!==null)return f.dehydrated!==null?(qn(n),n.flags|=128,null):(s&n.child.childLanes)!==0?Ic(e,n,s):(qn(n),e=Sn(e,n,s),e!==null?e.sibling:null);qn(n);break;case 19:var h=(e.flags&128)!==0;if(f=(s&n.childLanes)!==0,f||(zr(e,n,s,!1),f=(s&n.childLanes)!==0),h){if(f)return Uc(e,n,s);n.flags|=128}if(h=n.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),N(ot,ot.current),f)break;return null;case 22:return n.lanes=0,Nc(e,n,s,n.pendingProps);case 24:zn(n,ct,e.memoizedState.cache)}return Sn(e,n,s)}function qc(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps)dt=!0;else{if(!No(e,s)&&(n.flags&128)===0)return dt=!1,_p(e,n,s);dt=(e.flags&131072)!==0}else dt=!1,Fe&&(n.flags&1048576)!==0&&yu(n,gi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var f=n.pendingProps;if(e=dr(n.elementType),n.type=e,typeof e=="function")Ml(e)?(f=gr(e,f),n.tag=1,n=Mc(null,n,e,f,s)):(n.tag=0,n=wo(null,n,e,f,s));else{if(e!=null){var h=e.$$typeof;if(h===se){n.tag=11,n=Tc(null,n,e,f,s);break e}else if(h===ge){n.tag=14,n=_c(null,n,e,f,s);break e}}throw n=ye(e)||e,Error(o(306,n,""))}}return n;case 0:return wo(e,n,n.type,n.pendingProps,s);case 1:return f=n.type,h=gr(f,n.pendingProps),Mc(e,n,f,h,s);case 3:e:{if(qe(n,n.stateNode.containerInfo),e===null)throw Error(o(387));f=n.pendingProps;var y=n.memoizedState;h=y.element,Kl(e,n),wi(n,f,null,s);var w=n.memoizedState;if(f=w.cache,zn(n,ct,f),f!==y.cache&&Pl(n,[ct],s,!0),ki(),f=w.element,y.isDehydrated)if(y={element:f,isDehydrated:!1,cache:w.cache},n.updateQueue.baseState=y,n.memoizedState=y,n.flags&256){n=zc(e,n,f,s);break e}else if(f!==h){h=Xt(Error(o(424)),n),xi(h),n=zc(e,n,f,s);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,Fe=!0,Dn=null,Jt=!0,s=Nu(n,null,f,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(sr(),f===h){n=Sn(e,n,s);break e}Et(e,n,f,s)}n=n.child}return n;case 26:return ja(e,n),e===null?(s=Jf(n.type,null,n.pendingProps,null))?n.memoizedState=s:Fe||(s=n.type,e=n.pendingProps,f=Ya(Se.current).createElement(s),f[yt]=n,f[_t]=e,St(f,s,e),gt(f),n.stateNode=f):n.memoizedState=Jf(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return nt(n),e===null&&Fe&&(f=n.stateNode=Xf(n.type,n.pendingProps,Se.current),bt=n,Jt=!0,h=We,Xn(n.type)?(cs=h,We=en(f.firstChild)):We=h),Et(e,n,n.pendingProps.children,s),ja(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Fe&&((h=f=We)&&(f=ah(f,n.type,n.pendingProps,Jt),f!==null?(n.stateNode=f,bt=n,We=en(f.firstChild),Jt=!1,h=!0):h=!1),h||Mn(n)),nt(n),h=n.type,y=n.pendingProps,w=e!==null?e.memoizedProps:null,f=y.children,as(h,y)?f=null:w!==null&&as(h,w)&&(n.flags|=32),n.memoizedState!==null&&(h=ro(e,n,vp,null,null,s),Pi._currentValue=h),ja(e,n),Et(e,n,f,s),n.child;case 6:return e===null&&Fe&&((e=s=We)&&(s=lh(s,n.pendingProps,Jt),s!==null?(n.stateNode=s,bt=n,We=null,e=!0):e=!1),e||Mn(n)),null;case 13:return Ic(e,n,s);case 4:return qe(n,n.stateNode.containerInfo),f=n.pendingProps,e===null?n.child=hr(n,null,f,s):Et(e,n,f,s),n.child;case 11:return Tc(e,n,n.type,n.pendingProps,s);case 7:return Et(e,n,n.pendingProps,s),n.child;case 8:return Et(e,n,n.pendingProps.children,s),n.child;case 12:return Et(e,n,n.pendingProps.children,s),n.child;case 10:return f=n.pendingProps,zn(n,n.type,f.value),Et(e,n,f.children,s),n.child;case 9:return h=n.type._context,f=n.pendingProps.children,cr(n),h=vt(h),f=f(h),n.flags|=1,Et(e,n,f,s),n.child;case 14:return _c(e,n,n.type,n.pendingProps,s);case 15:return jc(e,n,n.type,n.pendingProps,s);case 19:return Uc(e,n,s);case 31:return Tp(e,n,s);case 22:return Nc(e,n,s,n.pendingProps);case 24:return cr(n),f=vt(ct),e===null?(h=Yl(),h===null&&(h=Ke,y=Hl(),h.pooledCache=y,y.refCount++,y!==null&&(h.pooledCacheLanes|=s),h=y),n.memoizedState={parent:f,cache:h},Xl(n),zn(n,ct,h)):((e.lanes&s)!==0&&(Kl(e,n),wi(n,null,null,s),ki()),h=e.memoizedState,y=n.memoizedState,h.parent!==f?(h={parent:f,cache:f},n.memoizedState=h,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=h),zn(n,ct,f)):(f=y.cache,zn(n,ct,f),f!==h.cache&&Pl(n,[ct],s,!0))),Et(e,n,n.pendingProps.children,s),n.child;case 29:throw n.pendingProps}throw Error(o(156,n.tag))}function kn(e){e.flags|=4}function Oo(e,n,s,f,h){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(h&335544128)===h)if(e.stateNode.complete)e.flags|=8192;else if(hf())e.flags|=8192;else throw pr=ma,Gl}else e.flags&=-16777217}function Fc(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?vs():536870912,e.lanes|=n,Gr|=n)}function ji(e,n){if(!Fe)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:f.sibling=null}}function et(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,f=0;if(n)for(var h=e.child;h!==null;)s|=h.lanes|h.childLanes,f|=h.subtreeFlags&65011712,f|=h.flags&65011712,h.return=e,h=h.sibling;else for(h=e.child;h!==null;)s|=h.lanes|h.childLanes,f|=h.subtreeFlags,f|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=f,e.childLanes=s,n}function jp(e,n,s){var f=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 s=n.stateNode,f=null,e!==null&&(f=e.memoizedState.cache),n.memoizedState.cache!==f&&(n.flags|=2048),bn(ct),je(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Mr(n)?kn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Fl())),et(n),null;case 26:var h=n.type,y=n.memoizedState;return e===null?(kn(n),y!==null?(et(n),Fc(n,y)):(et(n),Oo(n,h,null,f,s))):y?y!==e.memoizedState?(kn(n),et(n),Fc(n,y)):(et(n),n.flags&=-16777217):(e=e.memoizedProps,e!==f&&kn(n),et(n),Oo(n,h,e,f,s)),null;case 27:if(Qe(n),s=Se.current,h=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==f&&kn(n);else{if(!f){if(n.stateNode===null)throw Error(o(166));return et(n),null}e=be.current,Mr(n)?vu(n):(e=Xf(h,f,s),n.stateNode=e,kn(n))}return et(n),null;case 5:if(Qe(n),h=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==f&&kn(n);else{if(!f){if(n.stateNode===null)throw Error(o(166));return et(n),null}if(y=be.current,Mr(n))vu(n);else{var w=Ya(Se.current);switch(y){case 1:y=w.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:y=w.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":y=w.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":y=w.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":y=w.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof f.is=="string"?w.createElement("select",{is:f.is}):w.createElement("select"),f.multiple?y.multiple=!0:f.size&&(y.size=f.size);break;default:y=typeof f.is=="string"?w.createElement(h,{is:f.is}):w.createElement(h)}}y[yt]=n,y[_t]=f;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(St(y,h,f),h){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&kn(n)}}return et(n),Oo(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,s),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==f&&kn(n);else{if(typeof f!="string"&&n.stateNode===null)throw Error(o(166));if(e=Se.current,Mr(n)){if(e=n.stateNode,s=n.memoizedProps,f=null,h=bt,h!==null)switch(h.tag){case 27:case 5:f=h.memoizedProps}e[yt]=n,e=!!(e.nodeValue===s||f!==null&&f.suppressHydrationWarning===!0||Bf(e.nodeValue,s)),e||Mn(n,!0)}else e=Ya(e).createTextNode(f),e[yt]=n,n.stateNode=e}return et(n),null;case 31:if(s=n.memoizedState,e===null||e.memoizedState!==null){if(f=Mr(n),s!==null){if(e===null){if(!f)throw Error(o(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[yt]=n}else sr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;et(n),e=!1}else s=Fl(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return n.flags&256?(Ut(n),n):(Ut(n),null);if((n.flags&128)!==0)throw Error(o(558))}return et(n),null;case 13:if(f=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(h=Mr(n),f!==null&&f.dehydrated!==null){if(e===null){if(!h)throw Error(o(318));if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(o(317));h[yt]=n}else sr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;et(n),h=!1}else h=Fl(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=h),h=!0;if(!h)return n.flags&256?(Ut(n),n):(Ut(n),null)}return Ut(n),(n.flags&128)!==0?(n.lanes=s,n):(s=f!==null,e=e!==null&&e.memoizedState!==null,s&&(f=n.child,h=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(h=f.alternate.memoizedState.cachePool.pool),y=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(y=f.memoizedState.cachePool.pool),y!==h&&(f.flags|=2048)),s!==e&&s&&(n.child.flags|=8192),Oa(n,n.updateQueue),et(n),null);case 4:return je(),e===null&&es(n.stateNode.containerInfo),et(n),null;case 10:return bn(n.type),et(n),null;case 19:if(oe(ot),f=n.memoizedState,f===null)return et(n),null;if(h=(n.flags&128)!==0,y=f.rendering,y===null)if(h)ji(f,!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(f,!1),e=y.updateQueue,n.updateQueue=e,Oa(n,e),n.subtreeFlags=0,e=s,s=n.child;s!==null;)mu(s,e),s=s.sibling;return N(ot,ot.current&1|2),Fe&&xn(n,f.treeForkCount),n.child}e=e.sibling}f.tail!==null&&Je()>Ia&&(n.flags|=128,h=!0,ji(f,!1),n.lanes=4194304)}else{if(!h)if(e=ba(y),e!==null){if(n.flags|=128,h=!0,e=e.updateQueue,n.updateQueue=e,Oa(n,e),ji(f,!0),f.tail===null&&f.tailMode==="hidden"&&!y.alternate&&!Fe)return et(n),null}else 2*Je()-f.renderingStartTime>Ia&&s!==536870912&&(n.flags|=128,h=!0,ji(f,!1),n.lanes=4194304);f.isBackwards?(y.sibling=n.child,n.child=y):(e=f.last,e!==null?e.sibling=y:n.child=y,f.last=y)}return f.tail!==null?(e=f.tail,f.rendering=e,f.tail=e.sibling,f.renderingStartTime=Je(),e.sibling=null,s=ot.current,N(ot,h?s&1|2:s&1),Fe&&xn(n,f.treeForkCount),e):(et(n),null);case 22:case 23:return Ut(n),eo(),f=n.memoizedState!==null,e!==null?e.memoizedState!==null!==f&&(n.flags|=8192):f&&(n.flags|=8192),f?(s&536870912)!==0&&(n.flags&128)===0&&(et(n),n.subtreeFlags&6&&(n.flags|=8192)):et(n),s=n.updateQueue,s!==null&&Oa(n,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),f=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(f=n.memoizedState.cachePool.pool),f!==s&&(n.flags|=2048),e!==null&&oe(fr),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),bn(ct),et(n),null;case 25:return null;case 30:return null}throw Error(o(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),je(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Qe(n),null;case 31:if(n.memoizedState!==null){if(Ut(n),n.alternate===null)throw Error(o(340));sr()}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(o(340));sr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return oe(ot),null;case 4:return je(),null;case 10:return bn(n.type),null;case 22:case 23:return Ut(n),eo(),e!==null&&oe(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 Zc(e,n){switch(Ul(n),n.tag){case 3:bn(ct),je();break;case 26:case 27:case 5:Qe(n);break;case 4:je();break;case 31:n.memoizedState!==null&&Ut(n);break;case 13:Ut(n);break;case 19:oe(ot);break;case 10:bn(n.type);break;case 22:case 23:Ut(n),eo(),e!==null&&oe(fr);break;case 24:bn(ct)}}function Ni(e,n){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var h=f.next;s=h;do{if((s.tag&e)===e){f=void 0;var y=s.create,w=s.inst;f=y(),w.destroy=f}s=s.next}while(s!==h)}}catch(T){$e(n,n.return,T)}}function Zn(e,n,s){try{var f=n.updateQueue,h=f!==null?f.lastEffect:null;if(h!==null){var y=h.next;f=y;do{if((f.tag&e)===e){var w=f.inst,T=w.destroy;if(T!==void 0){w.destroy=void 0,h=n;var U=s,Q=T;try{Q()}catch(ce){$e(h,U,ce)}}}f=f.next}while(f!==y)}}catch(ce){$e(n,n.return,ce)}}function Vc(e){var n=e.updateQueue;if(n!==null){var s=e.stateNode;try{Lu(n,s)}catch(f){$e(e,e.return,f)}}}function Pc(e,n,s){s.props=gr(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(f){$e(e,n,f)}}function Oi(e,n){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var f=e.stateNode;break;case 30:f=e.stateNode;break;default:f=e.stateNode}typeof s=="function"?e.refCleanup=s(f):s.current=f}}catch(h){$e(e,n,h)}}function fn(e,n){var s=e.ref,f=e.refCleanup;if(s!==null)if(typeof f=="function")try{f()}catch(h){$e(e,n,h)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(h){$e(e,n,h)}else s.current=null}function Hc(e){var n=e.type,s=e.memoizedProps,f=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&f.focus();break e;case"img":s.src?f.src=s.src:s.srcSet&&(f.srcset=s.srcSet)}}catch(h){$e(e,e.return,h)}}function Lo(e,n,s){try{var f=e.stateNode;Wp(f,e.type,s,n),f[_t]=n}catch(h){$e(e,e.return,h)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xn(e.type)||e.tag===4}function Do(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$c(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&&Xn(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 Mo(e,n,s){var f=e.tag;if(f===5||f===6)e=e.stateNode,n?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,n):(n=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,n.appendChild(e),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=hn));else if(f!==4&&(f===27&&Xn(e.type)&&(s=e.stateNode,n=null),e=e.child,e!==null))for(Mo(e,n,s),e=e.sibling;e!==null;)Mo(e,n,s),e=e.sibling}function La(e,n,s){var f=e.tag;if(f===5||f===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(f!==4&&(f===27&&Xn(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(La(e,n,s),e=e.sibling;e!==null;)La(e,n,s),e=e.sibling}function Yc(e){var n=e.stateNode,s=e.memoizedProps;try{for(var f=e.type,h=n.attributes;h.length;)n.removeAttributeNode(h[0]);St(n,f,s),n[yt]=e,n[_t]=s}catch(y){$e(e,e.return,y)}}var wn=!1,pt=!1,zo=!1,Gc=typeof WeakSet=="function"?WeakSet:Set,xt=null;function Op(e,n){if(e=e.containerInfo,rs=el,e=lu(e),Tl(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var f=s.getSelection&&s.getSelection();if(f&&f.rangeCount!==0){s=f.anchorNode;var h=f.anchorOffset,y=f.focusNode;f=f.focusOffset;try{s.nodeType,y.nodeType}catch{s=null;break e}var w=0,T=-1,U=-1,Q=0,ce=0,me=e,J=null;t:for(;;){for(var ie;me!==s||h!==0&&me.nodeType!==3||(T=w+h),me!==y||f!==0&&me.nodeType!==3||(U=w+f),me.nodeType===3&&(w+=me.nodeValue.length),(ie=me.firstChild)!==null;)J=me,me=ie;for(;;){if(me===e)break t;if(J===s&&++Q===h&&(T=w),J===y&&++ce===f&&(U=w),(ie=me.nextSibling)!==null)break;me=J,J=me.parentNode}me=ie}s=T===-1||U===-1?null:{start:T,end:U}}else s=null}s=s||{start:0,end:0}}else s=null;for(is={focusedElem:e,selectionRange:s},el=!1,xt=n;xt!==null;)if(n=xt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,xt=e;else for(;xt!==null;){switch(n=xt,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(s=0;s<e.length;s++)h=e[s],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&y!==null){e=void 0,s=n,h=y.memoizedProps,y=y.memoizedState,f=s.stateNode;try{var Re=gr(s.type,h);e=f.getSnapshotBeforeUpdate(Re,y),f.__reactInternalSnapshotBeforeUpdate=e}catch(Le){$e(s,s.return,Le)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,s=e.nodeType,s===9)os(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":os(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(o(163))}if(e=n.sibling,e!==null){e.return=n.return,xt=e;break}xt=n.return}}function Xc(e,n,s){var f=s.flags;switch(s.tag){case 0:case 11:case 15:Rn(e,s),f&4&&Ni(5,s);break;case 1:if(Rn(e,s),f&4)if(e=s.stateNode,n===null)try{e.componentDidMount()}catch(w){$e(s,s.return,w)}else{var h=gr(s.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(h,n,e.__reactInternalSnapshotBeforeUpdate)}catch(w){$e(s,s.return,w)}}f&64&&Vc(s),f&512&&Oi(s,s.return);break;case 3:if(Rn(e,s),f&64&&(e=s.updateQueue,e!==null)){if(n=null,s.child!==null)switch(s.child.tag){case 27:case 5:n=s.child.stateNode;break;case 1:n=s.child.stateNode}try{Lu(e,n)}catch(w){$e(s,s.return,w)}}break;case 27:n===null&&f&4&&Yc(s);case 26:case 5:Rn(e,s),n===null&&f&4&&Hc(s),f&512&&Oi(s,s.return);break;case 12:Rn(e,s);break;case 31:Rn(e,s),f&4&&Jc(e,s);break;case 13:Rn(e,s),f&4&&Wc(e,s),f&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Fp.bind(null,s),oh(e,s))));break;case 22:if(f=s.memoizedState!==null||wn,!f){n=n!==null&&n.memoizedState!==null||pt,h=wn;var y=pt;wn=f,(pt=n)&&!y?An(e,s,(s.subtreeFlags&8772)!==0):Rn(e,s),wn=h,pt=y}break;case 30:break;default:Rn(e,s)}}function Kc(e){var n=e.alternate;n!==null&&(e.alternate=null,Kc(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 Cn(e,n,s){for(s=s.child;s!==null;)Qc(e,n,s),s=s.sibling}function Qc(e,n,s){if(j&&typeof j.onCommitFiberUnmount=="function")try{j.onCommitFiberUnmount(A,s)}catch{}switch(s.tag){case 26:pt||fn(s,n),Cn(e,n,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:pt||fn(s,n);var f=tt,h=Nt;Xn(s.type)&&(tt=s.stateNode,Nt=!1),Cn(e,n,s),Fi(s.stateNode),tt=f,Nt=h;break;case 5:pt||fn(s,n);case 6:if(f=tt,h=Nt,tt=null,Cn(e,n,s),tt=f,Nt=h,tt!==null)if(Nt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(s.stateNode)}catch(y){$e(s,n,y)}else try{tt.removeChild(s.stateNode)}catch(y){$e(s,n,y)}break;case 18:tt!==null&&(Nt?(e=tt,Pf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),ni(e)):Pf(tt,s.stateNode));break;case 4:f=tt,h=Nt,tt=s.stateNode.containerInfo,Nt=!0,Cn(e,n,s),tt=f,Nt=h;break;case 0:case 11:case 14:case 15:Zn(2,s,n),pt||Zn(4,s,n),Cn(e,n,s);break;case 1:pt||(fn(s,n),f=s.stateNode,typeof f.componentWillUnmount=="function"&&Pc(s,n,f)),Cn(e,n,s);break;case 21:Cn(e,n,s);break;case 22:pt=(f=pt)||s.memoizedState!==null,Cn(e,n,s),pt=f;break;default:Cn(e,n,s)}}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(s){$e(n,n.return,s)}}}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(s){$e(n,n.return,s)}}function Lp(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(o(435,e.tag))}}function Da(e,n){var s=Lp(e);n.forEach(function(f){if(!s.has(f)){s.add(f);var h=Zp.bind(null,e,f);f.then(h,h)}})}function Ot(e,n){var s=n.deletions;if(s!==null)for(var f=0;f<s.length;f++){var h=s[f],y=e,w=n,T=w;e:for(;T!==null;){switch(T.tag){case 27:if(Xn(T.type)){tt=T.stateNode,Nt=!1;break e}break;case 5:tt=T.stateNode,Nt=!1;break e;case 3:case 4:tt=T.stateNode.containerInfo,Nt=!0;break e}T=T.return}if(tt===null)throw Error(o(160));Qc(y,w,h),tt=null,Nt=!1,y=h.alternate,y!==null&&(y.return=null),h.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 s=e.alternate,f=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(n,e),Lt(e),f&4&&(Zn(3,e,e.return),Ni(3,e),Zn(5,e,e.return));break;case 1:Ot(n,e),Lt(e),f&512&&(pt||s===null||fn(s,s.return)),f&64&&wn&&(e=e.updateQueue,e!==null&&(f=e.callbacks,f!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?f:s.concat(f))));break;case 26:var h=rn;if(Ot(n,e),Lt(e),f&512&&(pt||s===null||fn(s,s.return)),f&4){var y=s!==null?s.memoizedState:null;if(f=e.memoizedState,s===null)if(f===null)if(e.stateNode===null){e:{f=e.type,s=e.memoizedProps,h=h.ownerDocument||h;t:switch(f){case"title":y=h.getElementsByTagName("title")[0],(!y||y[ai]||y[yt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=h.createElement(f),h.head.insertBefore(y,h.querySelector("head > title"))),St(y,f,s),y[yt]=e,gt(y),f=y;break e;case"link":var w=td("link","href",h).get(f+(s.href||""));if(w){for(var T=0;T<w.length;T++)if(y=w[T],y.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&y.getAttribute("rel")===(s.rel==null?null:s.rel)&&y.getAttribute("title")===(s.title==null?null:s.title)&&y.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){w.splice(T,1);break t}}y=h.createElement(f),St(y,f,s),h.head.appendChild(y);break;case"meta":if(w=td("meta","content",h).get(f+(s.content||""))){for(T=0;T<w.length;T++)if(y=w[T],y.getAttribute("content")===(s.content==null?null:""+s.content)&&y.getAttribute("name")===(s.name==null?null:s.name)&&y.getAttribute("property")===(s.property==null?null:s.property)&&y.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&y.getAttribute("charset")===(s.charSet==null?null:s.charSet)){w.splice(T,1);break t}}y=h.createElement(f),St(y,f,s),h.head.appendChild(y);break;default:throw Error(o(468,f))}y[yt]=e,gt(y),f=y}e.stateNode=f}else nd(h,e.type,e.stateNode);else e.stateNode=ed(h,f,e.memoizedProps);else y!==f?(y===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):y.count--,f===null?nd(h,e.type,e.stateNode):ed(h,f,e.memoizedProps)):f===null&&e.stateNode!==null&&Lo(e,e.memoizedProps,s.memoizedProps)}break;case 27:Ot(n,e),Lt(e),f&512&&(pt||s===null||fn(s,s.return)),s!==null&&f&4&&Lo(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Ot(n,e),Lt(e),f&512&&(pt||s===null||fn(s,s.return)),e.flags&32){h=e.stateNode;try{Cr(h,"")}catch(Re){$e(e,e.return,Re)}}f&4&&e.stateNode!=null&&(h=e.memoizedProps,Lo(e,h,s!==null?s.memoizedProps:h)),f&1024&&(zo=!0);break;case 6:if(Ot(n,e),Lt(e),f&4){if(e.stateNode===null)throw Error(o(162));f=e.memoizedProps,s=e.stateNode;try{s.nodeValue=f}catch(Re){$e(e,e.return,Re)}}break;case 3:if(Ka=null,h=rn,rn=Ga(n.containerInfo),Ot(n,e),rn=h,Lt(e),f&4&&s!==null&&s.memoizedState.isDehydrated)try{ni(n.containerInfo)}catch(Re){$e(e,e.return,Re)}zo&&(zo=!1,tf(e));break;case 4:f=rn,rn=Ga(e.stateNode.containerInfo),Ot(n,e),Lt(e),rn=f;break;case 12:Ot(n,e),Lt(e);break;case 31:Ot(n,e),Lt(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Da(e,f)));break;case 13:Ot(n,e),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(za=Je()),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Da(e,f)));break;case 22:h=e.memoizedState!==null;var U=s!==null&&s.memoizedState!==null,Q=wn,ce=pt;if(wn=Q||h,pt=ce||U,Ot(n,e),pt=ce,wn=Q,Lt(e),f&8192)e:for(n=e.stateNode,n._visibility=h?n._visibility&-2:n._visibility|1,h&&(s===null||U||wn||pt||xr(e)),s=null,n=e;;){if(n.tag===5||n.tag===26){if(s===null){U=s=n;try{if(y=U.stateNode,h)w=y.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{T=U.stateNode;var me=U.memoizedProps.style,J=me!=null&&me.hasOwnProperty("display")?me.display:null;T.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(Re){$e(U,U.return,Re)}}}else if(n.tag===6){if(s===null){U=n;try{U.stateNode.nodeValue=h?"":U.memoizedProps}catch(Re){$e(U,U.return,Re)}}}else if(n.tag===18){if(s===null){U=n;try{var ie=U.stateNode;h?Hf(ie,!0):Hf(U.stateNode,!1)}catch(Re){$e(U,U.return,Re)}}}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;s===n&&(s=null),n=n.return}s===n&&(s=null),n.sibling.return=n.return,n=n.sibling}f&4&&(f=e.updateQueue,f!==null&&(s=f.retryQueue,s!==null&&(f.retryQueue=null,Da(e,s))));break;case 19:Ot(n,e),Lt(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Da(e,f)));break;case 30:break;case 21:break;default:Ot(n,e),Lt(e)}}function Lt(e){var n=e.flags;if(n&2){try{for(var s,f=e.return;f!==null;){if($c(f)){s=f;break}f=f.return}if(s==null)throw Error(o(160));switch(s.tag){case 27:var h=s.stateNode,y=Do(e);La(e,y,h);break;case 5:var w=s.stateNode;s.flags&32&&(Cr(w,""),s.flags&=-33);var T=Do(e);La(e,T,w);break;case 3:case 4:var U=s.stateNode.containerInfo,Q=Do(e);Mo(e,Q,U);break;default:throw Error(o(161))}}catch(ce){$e(e,e.return,ce)}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 Rn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Xc(e,n.alternate,n),n=n.sibling}function xr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Zn(4,n,n.return),xr(n);break;case 1:fn(n,n.return);var s=n.stateNode;typeof s.componentWillUnmount=="function"&&Pc(n,n.return,s),xr(n);break;case 27:Fi(n.stateNode);case 26:case 5:fn(n,n.return),xr(n);break;case 22:n.memoizedState===null&&xr(n);break;case 30:xr(n);break;default:xr(n)}e=e.sibling}}function An(e,n,s){for(s=s&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var f=n.alternate,h=e,y=n,w=y.flags;switch(y.tag){case 0:case 11:case 15:An(h,y,s),Ni(4,y);break;case 1:if(An(h,y,s),f=y,h=f.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(Q){$e(f,f.return,Q)}if(f=y,h=f.updateQueue,h!==null){var T=f.stateNode;try{var U=h.shared.hiddenCallbacks;if(U!==null)for(h.shared.hiddenCallbacks=null,h=0;h<U.length;h++)Ou(U[h],T)}catch(Q){$e(f,f.return,Q)}}s&&w&64&&Vc(y),Oi(y,y.return);break;case 27:Yc(y);case 26:case 5:An(h,y,s),s&&f===null&&w&4&&Hc(y),Oi(y,y.return);break;case 12:An(h,y,s);break;case 31:An(h,y,s),s&&w&4&&Jc(h,y);break;case 13:An(h,y,s),s&&w&4&&Wc(h,y);break;case 22:y.memoizedState===null&&An(h,y,s),Oi(y,y.return);break;case 30:break;default:An(h,y,s)}n=n.sibling}}function Io(e,n){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&yi(s))}function Bo(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&yi(e))}function an(e,n,s,f){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)nf(e,n,s,f),n=n.sibling}function nf(e,n,s,f){var h=n.flags;switch(n.tag){case 0:case 11:case 15:an(e,n,s,f),h&2048&&Ni(9,n);break;case 1:an(e,n,s,f);break;case 3:an(e,n,s,f),h&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&yi(e)));break;case 12:if(h&2048){an(e,n,s,f),e=n.stateNode;try{var y=n.memoizedProps,w=y.id,T=y.onPostCommit;typeof T=="function"&&T(w,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(U){$e(n,n.return,U)}}else an(e,n,s,f);break;case 31:an(e,n,s,f);break;case 13:an(e,n,s,f);break;case 23:break;case 22:y=n.stateNode,w=n.alternate,n.memoizedState!==null?y._visibility&2?an(e,n,s,f):Li(e,n):y._visibility&2?an(e,n,s,f):(y._visibility|=2,Hr(e,n,s,f,(n.subtreeFlags&10256)!==0||!1)),h&2048&&Io(w,n);break;case 24:an(e,n,s,f),h&2048&&Bo(n.alternate,n);break;default:an(e,n,s,f)}}function Hr(e,n,s,f,h){for(h=h&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var y=e,w=n,T=s,U=f,Q=w.flags;switch(w.tag){case 0:case 11:case 15:Hr(y,w,T,U,h),Ni(8,w);break;case 23:break;case 22:var ce=w.stateNode;w.memoizedState!==null?ce._visibility&2?Hr(y,w,T,U,h):Li(y,w):(ce._visibility|=2,Hr(y,w,T,U,h)),h&&Q&2048&&Io(w.alternate,w);break;case 24:Hr(y,w,T,U,h),h&&Q&2048&&Bo(w.alternate,w);break;default:Hr(y,w,T,U,h)}n=n.sibling}}function Li(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var s=e,f=n,h=f.flags;switch(f.tag){case 22:Li(s,f),h&2048&&Io(f.alternate,f);break;case 24:Li(s,f),h&2048&&Bo(f.alternate,f);break;default:Li(s,f)}n=n.sibling}}var Di=8192;function $r(e,n,s){if(e.subtreeFlags&Di)for(e=e.child;e!==null;)rf(e,n,s),e=e.sibling}function rf(e,n,s){switch(e.tag){case 26:$r(e,n,s),e.flags&Di&&e.memoizedState!==null&&bh(s,rn,e.memoizedState,e.memoizedProps);break;case 5:$r(e,n,s);break;case 3:case 4:var f=rn;rn=Ga(e.stateNode.containerInfo),$r(e,n,s),rn=f;break;case 22:e.memoizedState===null&&(f=e.alternate,f!==null&&f.memoizedState!==null?(f=Di,Di=16777216,$r(e,n,s),Di=f):$r(e,n,s));break;default:$r(e,n,s)}}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 Mi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var f=n[s];xt=f,of(f,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:Mi(e),e.flags&2048&&Zn(9,e,e.return);break;case 3:Mi(e);break;case 12:Mi(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Ma(e)):Mi(e);break;default:Mi(e)}}function Ma(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var f=n[s];xt=f,of(f,e)}af(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Zn(8,n,n.return),Ma(n);break;case 22:s=n.stateNode,s._visibility&2&&(s._visibility&=-3,Ma(n));break;default:Ma(n)}e=e.sibling}}function of(e,n){for(;xt!==null;){var s=xt;switch(s.tag){case 0:case 11:case 15:Zn(8,s,n);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var f=s.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:yi(s.memoizedState.cache)}if(f=s.child,f!==null)f.return=s,xt=f;else e:for(s=e;xt!==null;){f=xt;var h=f.sibling,y=f.return;if(Kc(f),f===s){xt=null;break e}if(h!==null){h.return=y,xt=h;break e}xt=y}}}var Dp={getCacheForType:function(e){var n=vt(ct),s=n.data.get(e);return s===void 0&&(s=e(),n.data.set(e,s)),s},cacheSignal:function(){return vt(ct).controller.signal}},Mp=typeof WeakMap=="function"?WeakMap:Map,Pe=0,Ke=null,ze=null,Be=0,He=0,qt=null,Vn=!1,Yr=!1,Uo=!1,Tn=0,it=0,Pn=0,yr=0,qo=0,Ft=0,Gr=0,zi=null,Dt=null,Fo=!1,za=0,sf=0,Ia=1/0,Ba=null,Hn=null,ht=0,$n=null,Xr=null,_n=0,Zo=0,Vo=null,uf=null,Ii=0,Po=null;function Zt(){return(Pe&2)!==0&&Be!==0?Be&-Be:P.T!==null?Ko():ws()}function cf(){if(Ft===0)if((Be&536870912)===0||Fe){var e=we;we<<=1,(we&3932160)===0&&(we=262144),Ft=e}else Ft=536870912;return e=Bt.current,e!==null&&(e.flags|=32),Ft}function Mt(e,n,s){(e===Ke&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Kr(e,0),Yn(e,Be,Ft,!1)),ii(e,s),((Pe&2)===0||e!==Ke)&&(e===Ke&&((Pe&2)===0&&(yr|=s),it===4&&Yn(e,Be,Ft,!1)),dn(e))}function ff(e,n,s){if((Pe&6)!==0)throw Error(o(327));var f=!s&&(n&127)===0&&(n&e.expiredLanes)===0||ri(e,n),h=f?Bp(e,n):$o(e,n,!0),y=f;do{if(h===0){Yr&&!f&&Yn(e,n,0,!1);break}else{if(s=e.current.alternate,y&&!zp(s)){h=$o(e,n,!1),y=!1;continue}if(h===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 T=e;h=zi;var U=T.current.memoizedState.isDehydrated;if(U&&(Kr(T,w).flags|=256),w=$o(T,w,!1),w!==2){if(Uo&&!U){T.errorRecoveryDisabledLanes|=y,yr|=y,h=4;break e}y=Dt,Dt=h,y!==null&&(Dt===null?Dt=y:Dt.push.apply(Dt,y))}h=w}if(y=!1,h!==2)continue}}if(h===1){Kr(e,0),Yn(e,n,0,!0);break}e:{switch(f=e,y=h,y){case 0:case 1:throw Error(o(345));case 4:if((n&4194048)!==n)break;case 6:Yn(f,n,Ft,!Vn);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((n&62914560)===n&&(h=za+300-Je(),10<h)){if(Yn(f,n,Ft,!Vn),Gi(f,0,!0)!==0)break e;_n=n,f.timeoutHandle=Zf(df.bind(null,f,s,Dt,Ba,Fo,n,Ft,yr,Gr,Vn,y,"Throttled",-0,0),h);break e}df(f,s,Dt,Ba,Fo,n,Ft,yr,Gr,Vn,y,null,-0,0)}}break}while(!0);dn(e)}function df(e,n,s,f,h,y,w,T,U,Q,ce,me,J,ie){if(e.timeoutHandle=-1,me=n.subtreeFlags,me&8192||(me&16785408)===16785408){me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},rf(n,y,me);var Re=(y&62914560)===y?za-Je():(y&4194048)===y?sf-Je():0;if(Re=vh(me,Re),Re!==null){_n=y,e.cancelPendingCommit=Re(vf.bind(null,e,n,y,s,f,h,w,T,U,ce,me,null,J,ie)),Yn(e,y,w,!Q);return}}vf(e,n,y,s,f,h,w,T,U)}function zp(e){for(var n=e;;){var s=n.tag;if((s===0||s===11||s===15)&&n.flags&16384&&(s=n.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var f=0;f<s.length;f++){var h=s[f],y=h.getSnapshot;h=h.value;try{if(!zt(y(),h))return!1}catch{return!1}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;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 Yn(e,n,s,f){n&=~qo,n&=~yr,e.suspendedLanes|=n,e.pingedLanes&=~n,f&&(e.warmLanes|=n),f=e.expirationTimes;for(var h=n;0<h;){var y=31-z(h),w=1<<y;f[y]=-1,h&=~w}s!==0&&Es(e,s,n)}function Ua(){return(Pe&6)===0?(Bi(0),!1):!0}function Ho(){if(ze!==null){if(He===0)var e=ze.return;else e=ze,yn=ur=null,lo(e),qr=null,vi=0,e=ze;for(;e!==null;)Zc(e.alternate,e),e=e.return;ze=null}}function Kr(e,n){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,nh(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),_n=0,Ho(),Ke=e,ze=s=gn(e.current,null),Be=n,He=0,qt=null,Vn=!1,Yr=ri(e,n),Uo=!1,Gr=Ft=qo=yr=Pn=it=0,Dt=zi=null,Fo=!1,(n&8)!==0&&(n|=n&32);var f=e.entangledLanes;if(f!==0)for(e=e.entanglements,f&=n;0<f;){var h=31-z(f),y=1<<h;n|=e[h],f&=~y}return Tn=n,la(),s}function pf(e,n){De=null,P.H=Ti,n===Ur||n===ha?(n=Tu(),He=3):n===Gl?(n=Tu(),He=4):He=n===ko?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,qt=n,ze===null&&(it=1,Ta(e,Xt(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=P.H;return P.H=Ti,e===null?Ti:e}function gf(){var e=P.A;return P.A=Dp,e}function qa(){it=4,Vn||(Be&4194048)!==Be&&Bt.current!==null||(Yr=!0),(Pn&134217727)===0&&(yr&134217727)===0||Ke===null||Yn(Ke,Be,Ft,!1)}function $o(e,n,s){var f=Pe;Pe|=2;var h=mf(),y=gf();(Ke!==e||Be!==n)&&(Ba=null,Kr(e,n)),n=!1;var w=it;e:do try{if(He!==0&&ze!==null){var T=ze,U=qt;switch(He){case 8:Ho(),w=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(n=!0);var Q=He;if(He=0,qt=null,Qr(e,T,U,Q),s&&Yr){w=0;break e}break;default:Q=He,He=0,qt=null,Qr(e,T,U,Q)}}Ip(),w=it;break}catch(ce){pf(e,ce)}while(!0);return n&&e.shellSuspendCounter++,yn=ur=null,Pe=f,P.H=h,P.A=y,ze===null&&(Ke=null,Be=0,la()),w}function Ip(){for(;ze!==null;)xf(ze)}function Bp(e,n){var s=Pe;Pe|=2;var f=mf(),h=gf();Ke!==e||Be!==n?(Ba=null,Ia=Je()+500,Kr(e,n)):Yr=ri(e,n);e:do try{if(He!==0&&ze!==null){n=ze;var y=qt;t:switch(He){case 1:He=0,qt=null,Qr(e,n,y,1);break;case 2:case 9:if(Ru(y)){He=0,qt=null,yf(n);break}n=function(){He!==2&&He!==9||Ke!==e||(He=7),dn(e)},y.then(n,n);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Ru(y)?(He=0,qt=null,yf(n)):(He=0,qt=null,Qr(e,n,y,7));break;case 5:var w=null;switch(ze.tag){case 26:w=ze.memoizedState;case 5:case 27:var T=ze;if(w?rd(w):T.stateNode.complete){He=0,qt=null;var U=T.sibling;if(U!==null)ze=U;else{var Q=T.return;Q!==null?(ze=Q,Fa(Q)):ze=null}break t}}He=0,qt=null,Qr(e,n,y,5);break;case 6:He=0,qt=null,Qr(e,n,y,6);break;case 8:Ho(),it=6;break e;default:throw Error(o(462))}}Up();break}catch(ce){pf(e,ce)}while(!0);return yn=ur=null,P.H=f,P.A=h,Pe=s,ze!==null?0:(Ke=null,Be=0,la(),it)}function Up(){for(;ze!==null&&!ln();)xf(ze)}function xf(e){var n=qc(e.alternate,e,Tn);e.memoizedProps=e.pendingProps,n===null?Fa(e):ze=n}function yf(e){var n=e,s=n.alternate;switch(n.tag){case 15:case 0:n=Dc(s,n,n.pendingProps,n.type,void 0,Be);break;case 11:n=Dc(s,n,n.pendingProps,n.type.render,n.ref,Be);break;case 5:lo(n);default:Zc(s,n),n=ze=mu(n,Tn),n=qc(s,n,Tn)}e.memoizedProps=e.pendingProps,n===null?Fa(e):ze=n}function Qr(e,n,s,f){yn=ur=null,lo(n),qr=null,vi=0;var h=n.return;try{if(Ap(e,h,n,s,Be)){it=1,Ta(e,Xt(s,e.current)),ze=null;return}}catch(y){if(h!==null)throw ze=h,y;it=1,Ta(e,Xt(s,e.current)),ze=null;return}n.flags&32768?(Fe||f===1?e=!0:Yr||(Be&536870912)!==0?e=!1:(Vn=e=!0,(f===2||f===9||f===3||f===6)&&(f=Bt.current,f!==null&&f.tag===13&&(f.flags|=16384))),bf(n,e)):Fa(n)}function Fa(e){var n=e;do{if((n.flags&32768)!==0){bf(n,Vn);return}e=n.return;var s=jp(n.alternate,n,Tn);if(s!==null){ze=s;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);it===0&&(it=5)}function bf(e,n){do{var s=Np(e.alternate,e);if(s!==null){s.flags&=32767,ze=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!n&&(e=e.sibling,e!==null)){ze=e;return}ze=e=s}while(e!==null);it=6,ze=null}function vf(e,n,s,f,h,y,w,T,U){e.cancelPendingCommit=null;do Za();while(ht!==0);if((Pe&6)!==0)throw Error(o(327));if(n!==null){if(n===e.current)throw Error(o(177));if(y=n.lanes|n.childLanes,y|=Ll,yd(e,s,y,w,T,U),e===Ke&&(ze=Ke=null,Be=0),Xr=n,$n=e,_n=s,Zo=y,Vo=h,uf=f,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Vp(le,function(){return Cf(),null})):(e.callbackNode=null,e.callbackPriority=0),f=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||f){f=P.T,P.T=null,h=he.p,he.p=2,w=Pe,Pe|=4;try{Op(e,n,s)}finally{Pe=w,he.p=h,P.T=f}}ht=1,Ef(),Sf(),kf()}}function Ef(){if(ht===1){ht=0;var e=$n,n=Xr,s=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||s){s=P.T,P.T=null;var f=he.p;he.p=2;var h=Pe;Pe|=4;try{ef(n,e);var y=is,w=lu(e.containerInfo),T=y.focusedElem,U=y.selectionRange;if(w!==T&&T&&T.ownerDocument&&au(T.ownerDocument.documentElement,T)){if(U!==null&&Tl(T)){var Q=U.start,ce=U.end;if(ce===void 0&&(ce=Q),"selectionStart"in T)T.selectionStart=Q,T.selectionEnd=Math.min(ce,T.value.length);else{var me=T.ownerDocument||document,J=me&&me.defaultView||window;if(J.getSelection){var ie=J.getSelection(),Re=T.textContent.length,Le=Math.min(U.start,Re),Xe=U.end===void 0?Le:Math.min(U.end,Re);!ie.extend&&Le>Xe&&(w=Xe,Xe=Le,Le=w);var $=iu(T,Le),F=iu(T,Xe);if($&&F&&(ie.rangeCount!==1||ie.anchorNode!==$.node||ie.anchorOffset!==$.offset||ie.focusNode!==F.node||ie.focusOffset!==F.offset)){var G=me.createRange();G.setStart($.node,$.offset),ie.removeAllRanges(),Le>Xe?(ie.addRange(G),ie.extend(F.node,F.offset)):(G.setEnd(F.node,F.offset),ie.addRange(G))}}}}for(me=[],ie=T;ie=ie.parentNode;)ie.nodeType===1&&me.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<me.length;T++){var pe=me[T];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}el=!!rs,is=rs=null}finally{Pe=h,he.p=f,P.T=s}}e.current=n,ht=2}}function Sf(){if(ht===2){ht=0;var e=$n,n=Xr,s=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||s){s=P.T,P.T=null;var f=he.p;he.p=2;var h=Pe;Pe|=4;try{Xc(e,n.alternate,n)}finally{Pe=h,he.p=f,P.T=s}}ht=3}}function kf(){if(ht===4||ht===3){ht=0,on();var e=$n,n=Xr,s=_n,f=uf;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ht=5:(ht=0,Xr=$n=null,wf(e,e.pendingLanes));var h=e.pendingLanes;if(h===0&&(Hn=null),ul(s),n=n.stateNode,j&&typeof j.onCommitFiberRoot=="function")try{j.onCommitFiberRoot(A,n,void 0,(n.current.flags&128)===128)}catch{}if(f!==null){n=P.T,h=he.p,he.p=2,P.T=null;try{for(var y=e.onRecoverableError,w=0;w<f.length;w++){var T=f[w];y(T.value,{componentStack:T.stack})}}finally{P.T=n,he.p=h}}(_n&3)!==0&&Za(),dn(e),h=e.pendingLanes,(s&261930)!==0&&(h&42)!==0?e===Po?Ii++:(Ii=0,Po=e):Ii=0,Bi(0)}}function wf(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,yi(n)))}function Za(){return Ef(),Sf(),kf(),Cf()}function Cf(){if(ht!==5)return!1;var e=$n,n=Zo;Zo=0;var s=ul(_n),f=P.T,h=he.p;try{he.p=32>s?32:s,P.T=null,s=Vo,Vo=null;var y=$n,w=_n;if(ht=0,Xr=$n=null,_n=0,(Pe&6)!==0)throw Error(o(331));var T=Pe;if(Pe|=4,lf(y.current),nf(y,y.current,w,s),Pe=T,Bi(0,!1),j&&typeof j.onPostCommitFiberRoot=="function")try{j.onPostCommitFiberRoot(A,y)}catch{}return!0}finally{he.p=h,P.T=f,wf(e,n)}}function Rf(e,n,s){n=Xt(s,n),n=So(e.stateNode,n,2),e=Un(e,n,2),e!==null&&(ii(e,2),dn(e))}function $e(e,n,s){if(e.tag===3)Rf(e,e,s);else for(;n!==null;){if(n.tag===3){Rf(n,e,s);break}else if(n.tag===1){var f=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Hn===null||!Hn.has(f))){e=Xt(s,e),s=Rc(2),f=Un(n,s,2),f!==null&&(Ac(s,f,n,e),ii(f,2),dn(f));break}}n=n.return}}function Yo(e,n,s){var f=e.pingCache;if(f===null){f=e.pingCache=new Mp;var h=new Set;f.set(n,h)}else h=f.get(n),h===void 0&&(h=new Set,f.set(n,h));h.has(s)||(Uo=!0,h.add(s),e=qp.bind(null,e,n,s),n.then(e,e))}function qp(e,n,s){var f=e.pingCache;f!==null&&f.delete(n),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Ke===e&&(Be&s)===s&&(it===4||it===3&&(Be&62914560)===Be&&300>Je()-za?(Pe&2)===0&&Kr(e,0):qo|=s,Gr===Be&&(Gr=0)),dn(e)}function Af(e,n){n===0&&(n=vs()),e=lr(e,n),e!==null&&(ii(e,n),dn(e))}function Fp(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),Af(e,s)}function Zp(e,n){var s=0;switch(e.tag){case 31:case 13:var f=e.stateNode,h=e.memoizedState;h!==null&&(s=h.retryLane);break;case 19:f=e.stateNode;break;case 22:f=e.stateNode._retryCache;break;default:throw Error(o(314))}f!==null&&f.delete(n),Af(e,s)}function Vp(e,n){return Ct(e,n)}var Va=null,Jr=null,Go=!1,Pa=!1,Xo=!1,Gn=0;function dn(e){e!==Jr&&e.next===null&&(Jr===null?Va=Jr=e:Jr=Jr.next=e),Pa=!0,Go||(Go=!0,Hp())}function Bi(e,n){if(!Xo&&Pa){Xo=!0;do for(var s=!1,f=Va;f!==null;){if(e!==0){var h=f.pendingLanes;if(h===0)var y=0;else{var w=f.suspendedLanes,T=f.pingedLanes;y=(1<<31-z(42|e)+1)-1,y&=h&~(w&~T),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(s=!0,Nf(f,y))}else y=Be,y=Gi(f,f===Ke?y:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(y&3)===0||ri(f,y)||(s=!0,Nf(f,y));f=f.next}while(s);Xo=!1}}function Pp(){Tf()}function Tf(){Pa=Go=!1;var e=0;Gn!==0&&th()&&(e=Gn);for(var n=Je(),s=null,f=Va;f!==null;){var h=f.next,y=_f(f,n);y===0?(f.next=null,s===null?Va=h:s.next=h,h===null&&(Jr=s)):(s=f,(e!==0||(y&3)!==0)&&(Pa=!0)),f=h}ht!==0&&ht!==5||Bi(e),Gn!==0&&(Gn=0)}function _f(e,n){for(var s=e.suspendedLanes,f=e.pingedLanes,h=e.expirationTimes,y=e.pendingLanes&-62914561;0<y;){var w=31-z(y),T=1<<w,U=h[w];U===-1?((T&s)===0||(T&f)!==0)&&(h[w]=xd(T,n)):U<=n&&(e.expiredLanes|=T),y&=~T}if(n=Ke,s=Be,s=Gi(e,e===n?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),f=e.callbackNode,s===0||e===n&&(He===2||He===9)||e.cancelPendingCommit!==null)return f!==null&&f!==null&&Ht(f),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||ri(e,s)){if(n=s&-s,n===e.callbackPriority)return n;switch(f!==null&&Ht(f),ul(s)){case 2:case 8:s=Z;break;case 32:s=le;break;case 268435456:s=E;break;default:s=le}return f=jf.bind(null,e),s=Ct(s,f),e.callbackPriority=n,e.callbackNode=s,n}return f!==null&&f!==null&&Ht(f),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 s=e.callbackNode;if(Za()&&e.callbackNode!==s)return null;var f=Be;return f=Gi(e,e===Ke?f:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),f===0?null:(ff(e,f,n),_f(e,Je()),e.callbackNode!=null&&e.callbackNode===s?jf.bind(null,e):null)}function Nf(e,n){if(Za())return null;ff(e,n,!0)}function Hp(){rh(function(){(Pe&6)!==0?Ct(M,Pp):Tf()})}function Ko(){if(Gn===0){var e=Ir;e===0&&(e=Ae,Ae<<=1,(Ae&261888)===0&&(Ae=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 Lf(e,n){var s=n.ownerDocument.createElement("input");return s.name=n.name,s.value=n.value,e.id&&s.setAttribute("form",e.id),n.parentNode.insertBefore(s,n),e=new FormData(e),s.parentNode.removeChild(s),e}function $p(e,n,s,f,h){if(n==="submit"&&s&&s.stateNode===h){var y=Of((h[_t]||null).action),w=f.submitter;w&&(n=(n=w[_t]||null)?Of(n.formAction):w.getAttribute("formAction"),n!==null&&(y=n,w=null));var T=new na("action","action",null,f,h);e.push({event:T,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Gn!==0){var U=w?Lf(h,w):new FormData(h);go(s,{pending:!0,data:U,method:h.method,action:y},null,U)}}else typeof y=="function"&&(T.preventDefault(),U=w?Lf(h,w):new FormData(h),go(s,{pending:!0,data:U,method:h.method,action:y},y,U))},currentTarget:h}]})}}for(var Qo=0;Qo<Ol.length;Qo++){var Jo=Ol[Qo],Yp=Jo.toLowerCase(),Gp=Jo[0].toUpperCase()+Jo.slice(1);nn(Yp,"on"+Gp)}nn(uu,"onAnimationEnd"),nn(cu,"onAnimationIteration"),nn(fu,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(cp,"onTransitionRun"),nn(fp,"onTransitionStart"),nn(dp,"onTransitionCancel"),nn(du,"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(" "),Xp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ui));function Df(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var f=e[s],h=f.event;f=f.listeners;e:{var y=void 0;if(n)for(var w=f.length-1;0<=w;w--){var T=f[w],U=T.instance,Q=T.currentTarget;if(T=T.listener,U!==y&&h.isPropagationStopped())break e;y=T,h.currentTarget=Q;try{y(h)}catch(ce){aa(ce)}h.currentTarget=null,y=U}else for(w=0;w<f.length;w++){if(T=f[w],U=T.instance,Q=T.currentTarget,T=T.listener,U!==y&&h.isPropagationStopped())break e;y=T,h.currentTarget=Q;try{y(h)}catch(ce){aa(ce)}h.currentTarget=null,y=U}}}}function Ie(e,n){var s=n[cl];s===void 0&&(s=n[cl]=new Set);var f=e+"__bubble";s.has(f)||(Mf(n,e,2,!1),s.add(f))}function Wo(e,n,s){var f=0;n&&(f|=4),Mf(s,e,f,n)}var Ha="_reactListening"+Math.random().toString(36).slice(2);function es(e){if(!e[Ha]){e[Ha]=!0,As.forEach(function(s){s!=="selectionchange"&&(Xp.has(s)||Wo(s,!1,e),Wo(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ha]||(n[Ha]=!0,Wo("selectionchange",!1,n))}}function Mf(e,n,s,f){switch(cd(n)){case 2:var h=kh;break;case 8:h=wh;break;default:h=ms}s=h.bind(null,n,s,e),h=void 0,!bl||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(h=!0),f?h!==void 0?e.addEventListener(n,s,{capture:!0,passive:h}):e.addEventListener(n,s,!0):h!==void 0?e.addEventListener(n,s,{passive:h}):e.addEventListener(n,s,!1)}function ts(e,n,s,f,h){var y=f;if((n&1)===0&&(n&2)===0&&f!==null)e:for(;;){if(f===null)return;var w=f.tag;if(w===3||w===4){var T=f.stateNode.containerInfo;if(T===h)break;if(w===4)for(w=f.return;w!==null;){var U=w.tag;if((U===3||U===4)&&w.stateNode.containerInfo===h)return;w=w.return}for(;T!==null;){if(w=vr(T),w===null)return;if(U=w.tag,U===5||U===6||U===26||U===27){f=y=w;continue e}T=T.parentNode}}f=f.return}Us(function(){var Q=y,ce=xl(s),me=[];e:{var J=pu.get(e);if(J!==void 0){var ie=na,Re=e;switch(e){case"keypress":if(ea(s)===0)break e;case"keydown":case"keyup":ie=Zd;break;case"focusin":Re="focus",ie=kl;break;case"focusout":Re="blur",ie=kl;break;case"beforeblur":case"afterblur":ie=kl;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=Zs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=jd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=Hd;break;case uu:case cu:case fu:ie=Ld;break;case du:ie=Yd;break;case"scroll":case"scrollend":ie=Td;break;case"wheel":ie=Xd;break;case"copy":case"cut":case"paste":ie=Md;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=Ps;break;case"toggle":case"beforetoggle":ie=Qd}var Le=(n&4)!==0,Xe=!Le&&(e==="scroll"||e==="scrollend"),$=Le?J!==null?J+"Capture":null:J;Le=[];for(var F=Q,G;F!==null;){var pe=F;if(G=pe.stateNode,pe=pe.tag,pe!==5&&pe!==26&&pe!==27||G===null||$===null||(pe=oi(F,$),pe!=null&&Le.push(qi(F,pe,G))),Xe)break;F=F.return}0<Le.length&&(J=new ie(J,Re,null,s,ce),me.push({event:J,listeners:Le}))}}if((n&7)===0){e:{if(J=e==="mouseover"||e==="pointerover",ie=e==="mouseout"||e==="pointerout",J&&s!==gl&&(Re=s.relatedTarget||s.fromElement)&&(vr(Re)||Re[br]))break e;if((ie||J)&&(J=ce.window===ce?ce:(J=ce.ownerDocument)?J.defaultView||J.parentWindow:window,ie?(Re=s.relatedTarget||s.toElement,ie=Q,Re=Re?vr(Re):null,Re!==null&&(Xe=c(Re),Le=Re.tag,Re!==Xe||Le!==5&&Le!==27&&Le!==6)&&(Re=null)):(ie=null,Re=Q),ie!==Re)){if(Le=Zs,pe="onMouseLeave",$="onMouseEnter",F="mouse",(e==="pointerout"||e==="pointerover")&&(Le=Ps,pe="onPointerLeave",$="onPointerEnter",F="pointer"),Xe=ie==null?J:li(ie),G=Re==null?J:li(Re),J=new Le(pe,F+"leave",ie,s,ce),J.target=Xe,J.relatedTarget=G,pe=null,vr(ce)===Q&&(Le=new Le($,F+"enter",Re,s,ce),Le.target=G,Le.relatedTarget=Xe,pe=Le),Xe=pe,ie&&Re)t:{for(Le=Kp,$=ie,F=Re,G=0,pe=$;pe;pe=Le(pe))G++;pe=0;for(var Ne=F;Ne;Ne=Le(Ne))pe++;for(;0<G-pe;)$=Le($),G--;for(;0<pe-G;)F=Le(F),pe--;for(;G--;){if($===F||F!==null&&$===F.alternate){Le=$;break t}$=Le($),F=Le(F)}Le=null}else Le=null;ie!==null&&zf(me,J,ie,Le,!1),Re!==null&&Xe!==null&&zf(me,Xe,Re,Le,!0)}}e:{if(J=Q?li(Q):window,ie=J.nodeName&&J.nodeName.toLowerCase(),ie==="select"||ie==="input"&&J.type==="file")var Ze=Js;else if(Ks(J))if(Ws)Ze=op;else{Ze=ap;var Te=ip}else ie=J.nodeName,!ie||ie.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Q&&ml(Q.elementType)&&(Ze=Js):Ze=lp;if(Ze&&(Ze=Ze(e,Q))){Qs(me,Ze,s,ce);break e}Te&&Te(e,J,Q),e==="focusout"&&Q&&J.type==="number"&&Q.memoizedProps.value!=null&&hl(J,"number",J.value)}switch(Te=Q?li(Q):window,e){case"focusin":(Ks(Te)||Te.contentEditable==="true")&&(_r=Te,_l=Q,mi=null);break;case"focusout":mi=_l=_r=null;break;case"mousedown":jl=!0;break;case"contextmenu":case"mouseup":case"dragend":jl=!1,ou(me,s,ce);break;case"selectionchange":if(up)break;case"keydown":case"keyup":ou(me,s,ce)}var Me;if(Cl)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 Tr?Gs(e,s)&&(Ue="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Ue="onCompositionStart");Ue&&(Hs&&s.locale!=="ko"&&(Tr||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Tr&&(Me=qs()):(On=ce,vl="value"in On?On.value:On.textContent,Tr=!0)),Te=$a(Q,Ue),0<Te.length&&(Ue=new Vs(Ue,e,null,s,ce),me.push({event:Ue,listeners:Te}),Me?Ue.data=Me:(Me=Xs(s),Me!==null&&(Ue.data=Me)))),(Me=Wd?ep(e,s):tp(e,s))&&(Ue=$a(Q,"onBeforeInput"),0<Ue.length&&(Te=new Vs("onBeforeInput","beforeinput",null,s,ce),me.push({event:Te,listeners:Ue}),Te.data=Me)),$p(me,e,Q,s,ce)}Df(me,n)})}function qi(e,n,s){return{instance:e,listener:n,currentTarget:s}}function $a(e,n){for(var s=n+"Capture",f=[];e!==null;){var h=e,y=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||y===null||(h=oi(e,s),h!=null&&f.unshift(qi(e,h,y)),h=oi(e,n),h!=null&&f.push(qi(e,h,y))),e.tag===3)return f;e=e.return}return[]}function Kp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zf(e,n,s,f,h){for(var y=n._reactName,w=[];s!==null&&s!==f;){var T=s,U=T.alternate,Q=T.stateNode;if(T=T.tag,U!==null&&U===f)break;T!==5&&T!==26&&T!==27||Q===null||(U=Q,h?(Q=oi(s,y),Q!=null&&w.unshift(qi(s,Q,U))):h||(Q=oi(s,y),Q!=null&&w.push(qi(s,Q,U)))),s=s.return}w.length!==0&&e.push({event:n,listeners:w})}var Qp=/\r\n?/g,Jp=/\u0000|\uFFFD/g;function If(e){return(typeof e=="string"?e:""+e).replace(Qp,`
|
|
33
|
-
`).replace(Jp,"")}function Bf(e,n){return n=If(n),If(e)===n}function Ge(e,n,s,f,h,y){switch(s){case"children":typeof f=="string"?n==="body"||n==="textarea"&&f===""||Cr(e,f):(typeof f=="number"||typeof f=="bigint")&&n!=="body"&&Cr(e,""+f);break;case"className":Ki(e,"class",f);break;case"tabIndex":Ki(e,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Ki(e,s,f);break;case"style":Is(e,f,y);break;case"data":if(n!=="object"){Ki(e,"data",f);break}case"src":case"href":if(f===""&&(n!=="a"||s!=="href")){e.removeAttribute(s);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){e.removeAttribute(s);break}f=Ji(""+f),e.setAttribute(s,f);break;case"action":case"formAction":if(typeof f=="function"){e.setAttribute(s,"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"&&(s==="formAction"?(n!=="input"&&Ge(e,n,"name",h.name,h,null),Ge(e,n,"formEncType",h.formEncType,h,null),Ge(e,n,"formMethod",h.formMethod,h,null),Ge(e,n,"formTarget",h.formTarget,h,null)):(Ge(e,n,"encType",h.encType,h,null),Ge(e,n,"method",h.method,h,null),Ge(e,n,"target",h.target,h,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){e.removeAttribute(s);break}f=Ji(""+f),e.setAttribute(s,f);break;case"onClick":f!=null&&(e.onclick=hn);break;case"onScroll":f!=null&&Ie("scroll",e);break;case"onScrollEnd":f!=null&&Ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(o(61));if(s=f.__html,s!=null){if(h.children!=null)throw Error(o(60));e.innerHTML=s}}break;case"multiple":e.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":e.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){e.removeAttribute("xlink:href");break}s=Ji(""+f),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(s,""+f):e.removeAttribute(s);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":f&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":f===!0?e.setAttribute(s,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(s,f):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?e.setAttribute(s,f):e.removeAttribute(s);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?e.removeAttribute(s):e.setAttribute(s,f);break;case"popover":Ie("beforetoggle",e),Ie("toggle",e),Xi(e,"popover",f);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Xi(e,"is",f);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Rd.get(s)||s,Xi(e,s,f))}}function ns(e,n,s,f,h,y){switch(s){case"style":Is(e,f,y);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(o(61));if(s=f.__html,s!=null){if(h.children!=null)throw Error(o(60));e.innerHTML=s}}break;case"children":typeof f=="string"?Cr(e,f):(typeof f=="number"||typeof f=="bigint")&&Cr(e,""+f);break;case"onScroll":f!=null&&Ie("scroll",e);break;case"onScrollEnd":f!=null&&Ie("scrollend",e);break;case"onClick":f!=null&&(e.onclick=hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ts.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(h=s.endsWith("Capture"),n=s.slice(2,h?s.length-7:void 0),y=e[_t]||null,y=y!=null?y[s]:null,typeof y=="function"&&e.removeEventListener(n,y,h),typeof f=="function")){typeof y!="function"&&y!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(n,f,h);break e}s in e?e[s]=f:f===!0?e.setAttribute(s,""):Xi(e,s,f)}}}function St(e,n,s){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 f=!1,h=!1,y;for(y in s)if(s.hasOwnProperty(y)){var w=s[y];if(w!=null)switch(y){case"src":f=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Ge(e,n,y,w,s,null)}}h&&Ge(e,n,"srcSet",s.srcSet,s,null),f&&Ge(e,n,"src",s.src,s,null);return;case"input":Ie("invalid",e);var T=y=w=h=null,U=null,Q=null;for(f in s)if(s.hasOwnProperty(f)){var ce=s[f];if(ce!=null)switch(f){case"name":h=ce;break;case"type":w=ce;break;case"checked":U=ce;break;case"defaultChecked":Q=ce;break;case"value":y=ce;break;case"defaultValue":T=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(o(137,n));break;default:Ge(e,n,f,ce,s,null)}}Ls(e,y,T,U,Q,w,h,!1);return;case"select":Ie("invalid",e),f=w=y=null;for(h in s)if(s.hasOwnProperty(h)&&(T=s[h],T!=null))switch(h){case"value":y=T;break;case"defaultValue":w=T;break;case"multiple":f=T;default:Ge(e,n,h,T,s,null)}n=y,s=w,e.multiple=!!f,n!=null?wr(e,!!f,n,!1):s!=null&&wr(e,!!f,s,!0);return;case"textarea":Ie("invalid",e),y=h=f=null;for(w in s)if(s.hasOwnProperty(w)&&(T=s[w],T!=null))switch(w){case"value":f=T;break;case"defaultValue":h=T;break;case"children":y=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(91));break;default:Ge(e,n,w,T,s,null)}Ms(e,f,h,y);return;case"option":for(U in s)if(s.hasOwnProperty(U)&&(f=s[U],f!=null))switch(U){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ge(e,n,U,f,s,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(f=0;f<Ui.length;f++)Ie(Ui[f],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(Q in s)if(s.hasOwnProperty(Q)&&(f=s[Q],f!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Ge(e,n,Q,f,s,null)}return;default:if(ml(n)){for(ce in s)s.hasOwnProperty(ce)&&(f=s[ce],f!==void 0&&ns(e,n,ce,f,s,void 0));return}}for(T in s)s.hasOwnProperty(T)&&(f=s[T],f!=null&&Ge(e,n,T,f,s,null))}function Wp(e,n,s,f){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,y=null,w=null,T=null,U=null,Q=null,ce=null;for(ie in s){var me=s[ie];if(s.hasOwnProperty(ie)&&me!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":U=me;default:f.hasOwnProperty(ie)||Ge(e,n,ie,null,f,me)}}for(var J in f){var ie=f[J];if(me=s[J],f.hasOwnProperty(J)&&(ie!=null||me!=null))switch(J){case"type":y=ie;break;case"name":h=ie;break;case"checked":Q=ie;break;case"defaultChecked":ce=ie;break;case"value":w=ie;break;case"defaultValue":T=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(o(137,n));break;default:ie!==me&&Ge(e,n,J,ie,f,me)}}pl(e,w,T,U,Q,ce,y,h);return;case"select":ie=w=T=J=null;for(y in s)if(U=s[y],s.hasOwnProperty(y)&&U!=null)switch(y){case"value":break;case"multiple":ie=U;default:f.hasOwnProperty(y)||Ge(e,n,y,null,f,U)}for(h in f)if(y=f[h],U=s[h],f.hasOwnProperty(h)&&(y!=null||U!=null))switch(h){case"value":J=y;break;case"defaultValue":T=y;break;case"multiple":w=y;default:y!==U&&Ge(e,n,h,y,f,U)}n=T,s=w,f=ie,J!=null?wr(e,!!s,J,!1):!!f!=!!s&&(n!=null?wr(e,!!s,n,!0):wr(e,!!s,s?[]:"",!1));return;case"textarea":ie=J=null;for(T in s)if(h=s[T],s.hasOwnProperty(T)&&h!=null&&!f.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Ge(e,n,T,null,f,h)}for(w in f)if(h=f[w],y=s[w],f.hasOwnProperty(w)&&(h!=null||y!=null))switch(w){case"value":J=h;break;case"defaultValue":ie=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(o(91));break;default:h!==y&&Ge(e,n,w,h,f,y)}Ds(e,J,ie);return;case"option":for(var Re in s)if(J=s[Re],s.hasOwnProperty(Re)&&J!=null&&!f.hasOwnProperty(Re))switch(Re){case"selected":e.selected=!1;break;default:Ge(e,n,Re,null,f,J)}for(U in f)if(J=f[U],ie=s[U],f.hasOwnProperty(U)&&J!==ie&&(J!=null||ie!=null))switch(U){case"selected":e.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:Ge(e,n,U,J,f,ie)}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 Le in s)J=s[Le],s.hasOwnProperty(Le)&&J!=null&&!f.hasOwnProperty(Le)&&Ge(e,n,Le,null,f,J);for(Q in f)if(J=f[Q],ie=s[Q],f.hasOwnProperty(Q)&&J!==ie&&(J!=null||ie!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(o(137,n));break;default:Ge(e,n,Q,J,f,ie)}return;default:if(ml(n)){for(var Xe in s)J=s[Xe],s.hasOwnProperty(Xe)&&J!==void 0&&!f.hasOwnProperty(Xe)&&ns(e,n,Xe,void 0,f,J);for(ce in f)J=f[ce],ie=s[ce],!f.hasOwnProperty(ce)||J===ie||J===void 0&&ie===void 0||ns(e,n,ce,J,f,ie);return}}for(var $ in s)J=s[$],s.hasOwnProperty($)&&J!=null&&!f.hasOwnProperty($)&&Ge(e,n,$,null,f,J);for(me in f)J=f[me],ie=s[me],!f.hasOwnProperty(me)||J===ie||J==null&&ie==null||Ge(e,n,me,J,f,ie)}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,s=performance.getEntriesByType("resource"),f=0;f<s.length;f++){var h=s[f],y=h.transferSize,w=h.initiatorType,T=h.duration;if(y&&T&&Uf(w)){for(w=0,T=h.responseEnd,f+=1;f<s.length;f++){var U=s[f],Q=U.startTime;if(Q>T)break;var ce=U.transferSize,me=U.initiatorType;ce&&Uf(me)&&(U=U.responseEnd,w+=ce*(U<T?1:(T-Q)/(U-Q)))}if(--f,n+=8*(y+w)/(h.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 rs=null,is=null;function Ya(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 Ff(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 as(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 ls=null;function th(){var e=window.event;return e&&e.type==="popstate"?e===ls?!1:(ls=e,!0):(ls=null,!1)}var Zf=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)}:Zf;function ih(e){setTimeout(function(){throw e})}function Xn(e){return e==="head"}function Pf(e,n){var s=n,f=0;do{var h=s.nextSibling;if(e.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"||s==="/&"){if(f===0){e.removeChild(h),ni(n);return}f--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")f++;else if(s==="html")Fi(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Fi(s);for(var y=s.firstChild;y;){var w=y.nextSibling,T=y.nodeName;y[ai]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&y.rel.toLowerCase()==="stylesheet"||s.removeChild(y),y=w}}else s==="body"&&Fi(e.ownerDocument.body);s=h}while(s);ni(n)}function Hf(e,n){var s=e;e=0;do{var f=s.nextSibling;if(s.nodeType===1?n?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(n?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),f&&f.nodeType===8)if(s=f.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=f}while(s)}function os(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var s=n;switch(n=n.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":os(s),fl(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function ah(e,n,s,f){for(;e.nodeType===1;){var h=s;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!f&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(f){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!==h.rel||e.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||e.getAttribute("title")!==(h.title==null?null:h.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(y=e.getAttribute("src"),(y!==(h.src==null?null:h.src)||e.getAttribute("type")!==(h.type==null?null:h.type)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&y&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var y=h.name==null?null:""+h.name;if(h.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,s){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=en(e.nextSibling),e===null))return null;return e}function $f(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 ss(e){return e.data==="$?"||e.data==="$~"}function us(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function oh(e,n){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||s.readyState!=="loading")n();else{var f=function(){n(),s.removeEventListener("DOMContentLoaded",f)};s.addEventListener("DOMContentLoaded",f),e._reactRetry=f}}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 cs=null;function Yf(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(n===0)return en(e.nextSibling);n--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||n++}e=e.nextSibling}return null}function Gf(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(n===0)return e;n--}else s!=="/$"&&s!=="/&"||n++}e=e.previousSibling}return null}function Xf(e,n,s){switch(n=Ya(s),e){case"html":if(e=n.documentElement,!e)throw Error(o(452));return e;case"head":if(e=n.head,!e)throw Error(o(453));return e;case"body":if(e=n.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Fi(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);fl(e)}var tn=new Map,Kf=new Set;function Ga(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=he.d;he.d={f:sh,r:uh,D:ch,C:fh,L:dh,m:ph,X:mh,S:hh,M:gh};function sh(){var e=jn.f(),n=Ua();return e||n}function uh(e){var n=Er(e);n!==null&&n.tag===5&&n.type==="form"?dc(n):jn.r(e)}var Wr=typeof document>"u"?null:document;function Qf(e,n,s){var f=Wr;if(f&&typeof n=="string"&&n){var h=Yt(n);h='link[rel="'+e+'"][href="'+h+'"]',typeof s=="string"&&(h+='[crossorigin="'+s+'"]'),Kf.has(h)||(Kf.add(h),e={rel:e,crossOrigin:s,href:n},f.querySelector(h)===null&&(n=f.createElement("link"),St(n,"link",e),gt(n),f.head.appendChild(n)))}}function ch(e){jn.D(e),Qf("dns-prefetch",e,null)}function fh(e,n){jn.C(e,n),Qf("preconnect",e,n)}function dh(e,n,s){jn.L(e,n,s);var f=Wr;if(f&&e&&n){var h='link[rel="preload"][as="'+Yt(n)+'"]';n==="image"&&s&&s.imageSrcSet?(h+='[imagesrcset="'+Yt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(h+='[imagesizes="'+Yt(s.imageSizes)+'"]')):h+='[href="'+Yt(e)+'"]';var y=h;switch(n){case"style":y=ei(e);break;case"script":y=ti(e)}tn.has(y)||(e=b({rel:"preload",href:n==="image"&&s&&s.imageSrcSet?void 0:e,as:n},s),tn.set(y,e),f.querySelector(h)!==null||n==="style"&&f.querySelector(Zi(y))||n==="script"&&f.querySelector(Vi(y))||(n=f.createElement("link"),St(n,"link",e),gt(n),f.head.appendChild(n)))}}function ph(e,n){jn.m(e,n);var s=Wr;if(s&&e){var f=n&&typeof n.as=="string"?n.as:"script",h='link[rel="modulepreload"][as="'+Yt(f)+'"][href="'+Yt(e)+'"]',y=h;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=ti(e)}if(!tn.has(y)&&(e=b({rel:"modulepreload",href:e},n),tn.set(y,e),s.querySelector(h)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Vi(y)))return}f=s.createElement("link"),St(f,"link",e),gt(f),s.head.appendChild(f)}}}function hh(e,n,s){jn.S(e,n,s);var f=Wr;if(f&&e){var h=Sr(f).hoistableStyles,y=ei(e);n=n||"default";var w=h.get(y);if(!w){var T={loading:0,preload:null};if(w=f.querySelector(Zi(y)))T.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},s),(s=tn.get(y))&&fs(e,s);var U=w=f.createElement("link");gt(U),St(U,"link",e),U._p=new Promise(function(Q,ce){U.onload=Q,U.onerror=ce}),U.addEventListener("load",function(){T.loading|=1}),U.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Xa(w,n,f)}w={type:"stylesheet",instance:w,count:1,state:T},h.set(y,w)}}}function mh(e,n){jn.X(e,n);var s=Wr;if(s&&e){var f=Sr(s).hoistableScripts,h=ti(e),y=f.get(h);y||(y=s.querySelector(Vi(h)),y||(e=b({src:e,async:!0},n),(n=tn.get(h))&&ds(e,n),y=s.createElement("script"),gt(y),St(y,"link",e),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},f.set(h,y))}}function gh(e,n){jn.M(e,n);var s=Wr;if(s&&e){var f=Sr(s).hoistableScripts,h=ti(e),y=f.get(h);y||(y=s.querySelector(Vi(h)),y||(e=b({src:e,async:!0,type:"module"},n),(n=tn.get(h))&&ds(e,n),y=s.createElement("script"),gt(y),St(y,"link",e),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},f.set(h,y))}}function Jf(e,n,s,f){var h=(h=Se.current)?Ga(h):null;if(!h)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(n=ei(s.href),s=Sr(h).hoistableStyles,f=s.get(n),f||(f={type:"style",instance:null,count:0,state:null},s.set(n,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=ei(s.href);var y=Sr(h).hoistableStyles,w=y.get(e);if(w||(h=h.ownerDocument||h,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(e,w),(y=h.querySelector(Zi(e)))&&!y._p&&(w.instance=y,w.state.loading=5),tn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},tn.set(e,s),y||xh(h,e,s,w.state))),n&&f===null)throw Error(o(528,""));return w}if(n&&f!==null)throw Error(o(529,""));return null;case"script":return n=s.async,s=s.src,typeof s=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ti(s),s=Sr(h).hoistableScripts,f=s.get(n),f||(f={type:"script",instance:null,count:0,state:null},s.set(n,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function ei(e){return'href="'+Yt(e)+'"'}function Zi(e){return'link[rel="stylesheet"]['+e+"]"}function Wf(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function xh(e,n,s,f){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?f.loading=1:(n=e.createElement("link"),f.preload=n,n.addEventListener("load",function(){return f.loading|=1}),n.addEventListener("error",function(){return f.loading|=2}),St(n,"link",s),gt(n),e.head.appendChild(n))}function ti(e){return'[src="'+Yt(e)+'"]'}function Vi(e){return"script[async]"+e}function ed(e,n,s){if(n.count++,n.instance===null)switch(n.type){case"style":var f=e.querySelector('style[data-href~="'+Yt(s.href)+'"]');if(f)return n.instance=f,gt(f),f;var h=b({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return f=(e.ownerDocument||e).createElement("style"),gt(f),St(f,"style",h),Xa(f,s.precedence,e),n.instance=f;case"stylesheet":h=ei(s.href);var y=e.querySelector(Zi(h));if(y)return n.state.loading|=4,n.instance=y,gt(y),y;f=Wf(s),(h=tn.get(h))&&fs(f,h),y=(e.ownerDocument||e).createElement("link"),gt(y);var w=y;return w._p=new Promise(function(T,U){w.onload=T,w.onerror=U}),St(y,"link",f),n.state.loading|=4,Xa(y,s.precedence,e),n.instance=y;case"script":return y=ti(s.src),(h=e.querySelector(Vi(y)))?(n.instance=h,gt(h),h):(f=s,(h=tn.get(y))&&(f=b({},s),ds(f,h)),e=e.ownerDocument||e,h=e.createElement("script"),gt(h),St(h,"link",f),e.head.appendChild(h),n.instance=h);case"void":return null;default:throw Error(o(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(f=n.instance,n.state.loading|=4,Xa(f,s.precedence,e));return n.instance}function Xa(e,n,s){for(var f=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=f.length?f[f.length-1]:null,y=h,w=0;w<f.length;w++){var T=f[w];if(T.dataset.precedence===n)y=T;else if(y!==h)break}y?y.parentNode.insertBefore(e,y.nextSibling):(n=s.nodeType===9?s.head:s,n.insertBefore(e,n.firstChild))}function fs(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function ds(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Ka=null;function td(e,n,s){if(Ka===null){var f=new Map,h=Ka=new Map;h.set(s,f)}else h=Ka,f=h.get(s),f||(f=new Map,h.set(s,f));if(f.has(e))return f;for(f.set(e,null),s=s.getElementsByTagName(e),h=0;h<s.length;h++){var y=s[h];if(!(y[ai]||y[yt]||e==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var w=y.getAttribute(n)||"";w=e+w;var T=f.get(w);T?T.push(y):f.set(w,[y])}}return f}function nd(e,n,s){e=e.ownerDocument||e,e.head.insertBefore(s,n==="title"?e.querySelector("head > title"):null)}function yh(e,n,s){if(s===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,s,f){if(s.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var h=ei(f.href),y=n.querySelector(Zi(h));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Qa.bind(e),n.then(e,e)),s.state.loading|=4,s.instance=y,gt(y);return}y=n.ownerDocument||n,f=Wf(f),(h=tn.get(h))&&fs(f,h),y=y.createElement("link"),gt(y);var w=y;w._p=new Promise(function(T,U){w.onload=T,w.onerror=U}),St(y,"link",f),s.instance=y}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,n),(n=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=Qa.bind(e),n.addEventListener("load",s),n.addEventListener("error",s))}}var ps=0;function vh(e,n){return e.stylesheets&&e.count===0&&Wa(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var f=setTimeout(function(){if(e.stylesheets&&Wa(e,e.stylesheets),e.unsuspend){var y=e.unsuspend;e.unsuspend=null,y()}},6e4+n);0<e.imgBytes&&ps===0&&(ps=62500*eh());var h=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>ps?50:800)+n);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(f),clearTimeout(h)}}:null}function Qa(){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(Eh,e),Ja=null,Qa.call(e))}function Eh(e,n){if(!(n.state.loading&4)){var s=Ja.get(e);if(s)var f=s.get(null);else{s=new Map,Ja.set(e,s);for(var h=e.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<h.length;y++){var w=h[y];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(s.set(w.dataset.precedence,w),f=w)}f&&s.set(null,f)}h=n.instance,w=h.getAttribute("data-precedence"),y=s.get(w)||f,y===f&&s.set(null,h),s.set(w,h),this.count++,f=Qa.bind(this),h.addEventListener("load",f),h.addEventListener("error",f),y?y.parentNode.insertBefore(h,y.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(h,e.firstChild)),n.state.loading|=4}}var Pi={$$typeof:V,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function Sh(e,n,s,f,h,y,w,T,U){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=f,this.onUncaughtError=h,this.onCaughtError=y,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function id(e,n,s,f,h,y,w,T,U,Q,ce,me){return e=new Sh(e,n,s,w,U,Q,ce,me,T),n=1,y===!0&&(n|=24),y=It(3,null,null,n),e.current=y,y.stateNode=e,n=Hl(),n.refCount++,e.pooledCache=n,n.refCount++,y.memoizedState={element:f,isDehydrated:s,cache:n},Xl(y),e}function ad(e){return e?(e=Or,e):Or}function ld(e,n,s,f,h,y){h=ad(h),f.context===null?f.context=h:f.pendingContext=h,f=Bn(n),f.payload={element:s},y=y===void 0?null:y,y!==null&&(f.callback=y),s=Un(e,f,n),s!==null&&(Mt(s,e,n),Si(s,e,n))}function od(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function hs(e,n){od(e,n),(e=e.alternate)&&od(e,n)}function sd(e){if(e.tag===13||e.tag===31){var n=lr(e,67108864);n!==null&&Mt(n,e,67108864),hs(e,67108864)}}function ud(e){if(e.tag===13||e.tag===31){var n=Zt();n=sl(n);var s=lr(e,n);s!==null&&Mt(s,e,n),hs(e,n)}}var el=!0;function kh(e,n,s,f){var h=P.T;P.T=null;var y=he.p;try{he.p=2,ms(e,n,s,f)}finally{he.p=y,P.T=h}}function wh(e,n,s,f){var h=P.T;P.T=null;var y=he.p;try{he.p=8,ms(e,n,s,f)}finally{he.p=y,P.T=h}}function ms(e,n,s,f){if(el){var h=gs(f);if(h===null)ts(e,n,f,tl,s),fd(e,f);else if(Rh(h,e,n,s,f))f.stopPropagation();else if(fd(e,f),n&4&&-1<Ch.indexOf(e)){for(;h!==null;){var y=Er(h);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 T=y;for(T.pendingLanes|=2,T.entangledLanes|=2;w;){var U=1<<31-z(w);T.entanglements[1]|=U,w&=~U}dn(y),(Pe&6)===0&&(Ia=Je()+500,Bi(0))}}break;case 31:case 13:T=lr(y,2),T!==null&&Mt(T,y,2),Ua(),hs(y,2)}if(y=gs(f),y===null&&ts(e,n,f,tl,s),y===h)break;h=y}h!==null&&f.stopPropagation()}else ts(e,n,f,null,s)}}function gs(e){return e=xl(e),xs(e)}var tl=null;function xs(e){if(tl=null,e=vr(e),e!==null){var n=c(e);if(n===null)e=null;else{var s=n.tag;if(s===13){if(e=d(n),e!==null)return e;e=null}else if(s===31){if(e=g(n),e!==null)return e;e=null}else if(s===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 M:return 2;case Z:return 8;case le:case ne:return 32;case E:return 268435456;default:return 32}default:return 32}}var ys=!1,Kn=null,Qn=null,Jn=null,Hi=new Map,$i=new Map,Wn=[],Ch="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":Kn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Hi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":$i.delete(n.pointerId)}}function Yi(e,n,s,f,h,y){return e===null||e.nativeEvent!==y?(e={blockedOn:n,domEventName:s,eventSystemFlags:f,nativeEvent:y,targetContainers:[h]},n!==null&&(n=Er(n),n!==null&&sd(n)),e):(e.eventSystemFlags|=f,n=e.targetContainers,h!==null&&n.indexOf(h)===-1&&n.push(h),e)}function Rh(e,n,s,f,h){switch(n){case"focusin":return Kn=Yi(Kn,e,n,s,f,h),!0;case"dragenter":return Qn=Yi(Qn,e,n,s,f,h),!0;case"mouseover":return Jn=Yi(Jn,e,n,s,f,h),!0;case"pointerover":var y=h.pointerId;return Hi.set(y,Yi(Hi.get(y)||null,e,n,s,f,h)),!0;case"gotpointercapture":return y=h.pointerId,$i.set(y,Yi($i.get(y)||null,e,n,s,f,h)),!0}return!1}function dd(e){var n=vr(e.target);if(n!==null){var s=c(n);if(s!==null){if(n=s.tag,n===13){if(n=d(s),n!==null){e.blockedOn=n,Cs(e.priority,function(){ud(s)});return}}else if(n===31){if(n=g(s),n!==null){e.blockedOn=n,Cs(e.priority,function(){ud(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.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 s=gs(e.nativeEvent);if(s===null){s=e.nativeEvent;var f=new s.constructor(s.type,s);gl=f,s.target.dispatchEvent(f),gl=null}else return n=Er(s),n!==null&&sd(n),e.blockedOn=s,!1;n.shift()}return!0}function pd(e,n,s){nl(e)&&s.delete(n)}function Ah(){ys=!1,Kn!==null&&nl(Kn)&&(Kn=null),Qn!==null&&nl(Qn)&&(Qn=null),Jn!==null&&nl(Jn)&&(Jn=null),Hi.forEach(pd),$i.forEach(pd)}function rl(e,n){e.blockedOn===n&&(e.blockedOn=null,ys||(ys=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ah)))}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 s=e[n],f=e[n+1],h=e[n+2];if(typeof f!="function"){if(xs(f||s)===null)continue;break}var y=Er(s);y!==null&&(e.splice(n,3),n-=3,go(y,{pending:!0,data:h,method:s.method,action:f},f,h))}}))}function ni(e){function n(U){return rl(U,e)}Kn!==null&&rl(Kn,e),Qn!==null&&rl(Qn,e),Jn!==null&&rl(Jn,e),Hi.forEach(n),$i.forEach(n);for(var s=0;s<Wn.length;s++){var f=Wn[s];f.blockedOn===e&&(f.blockedOn=null)}for(;0<Wn.length&&(s=Wn[0],s.blockedOn===null);)dd(s),s.blockedOn===null&&Wn.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(f=0;f<s.length;f+=3){var h=s[f],y=s[f+1],w=h[_t]||null;if(typeof y=="function")w||hd(s);else if(w){var T=null;if(y&&y.hasAttribute("formAction")){if(h=y,w=y[_t]||null)T=w.formAction;else if(xs(h)!==null)continue}else T=w.action;typeof T=="function"?s[f+1]=T:(s.splice(f,3),f-=3),hd(s)}}}function md(){function e(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(w){return h=w})},focusReset:"manual",scroll:"manual"})}function n(){h!==null&&(h(),h=null),f||setTimeout(s,20)}function s(){if(!f&&!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 f=!1,h=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(s,100),function(){f=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),h!==null&&(h(),h=null)}}}function bs(e){this._internalRoot=e}al.prototype.render=bs.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));var s=n.current,f=Zt();ld(s,f,e,n,null,null)},al.prototype.unmount=bs.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=ws();e={blockedOn:null,target:e,priority:n};for(var s=0;s<Wn.length&&n!==0&&n<Wn[s].priority;s++);Wn.splice(s,0,e),s===0&&dd(e)}};var gd=a.version;if(gd!=="19.2.4")throw Error(o(527,gd,"19.2.4"));he.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=m(n),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Th={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ll.isDisabled&&ll.supportsFiber)try{A=ll.inject(Th),j=ll}catch{}}return reactDomClient_production.createRoot=function(e,n){if(!u(e))throw Error(o(299));var s=!1,f="",h=Sc,y=kc,w=wc;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(f=n.identifierPrefix),n.onUncaughtError!==void 0&&(h=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(w=n.onRecoverableError)),n=id(e,1,!1,null,null,s,f,null,h,y,w,md),e[br]=n.current,es(e),new bs(n)},reactDomClient_production.hydrateRoot=function(e,n,s){if(!u(e))throw Error(o(299));var f=!1,h="",y=Sc,w=kc,T=wc,U=null;return s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(y=s.onUncaughtError),s.onCaughtError!==void 0&&(w=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.formState!==void 0&&(U=s.formState)),n=id(e,1,!0,n,s??null,f,h,U,y,w,T,md),n.context=ad(null),s=n.current,f=Zt(),f=sl(f),h=Bn(f),h.callback=null,Un(s,h,f),s=f,n.current.lanes=s,ii(n,s),dn(n),e[br]=n.current,es(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();/**
|
|
32
|
+
`+f.stack}}var Pt=Object.prototype.hasOwnProperty,Ct=t.unstable_scheduleCallback,Ht=t.unstable_cancelCallback,ln=t.unstable_shouldYield,on=t.unstable_requestPaint,Je=t.unstable_now,k=t.unstable_getCurrentPriorityLevel,M=t.unstable_ImmediatePriority,Z=t.unstable_UserBlockingPriority,le=t.unstable_NormalPriority,te=t.unstable_LowPriority,E=t.unstable_IdlePriority,v=t.log,S=t.unstable_setDisableYieldValue,A=null,j=null;function I(e){if(typeof v=="function"&&S(e),j&&typeof j.setStrictMode=="function")try{j.setStrictMode(A,e)}catch{}}var z=Math.clz32?Math.clz32:ke,de=Math.log,ue=Math.LN2;function ke(e){return e>>>=0,e===0?32:31-(de(e)/ue|0)|0}var Ae=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,s){var f=e.pendingLanes;if(f===0)return 0;var m=0,y=e.suspendedLanes,w=e.pingedLanes;e=e.warmLanes;var T=f&134217727;return T!==0?(f=T&~y,f!==0?m=tr(f):(w&=T,w!==0?m=tr(w):s||(s=T&~e,s!==0&&(m=tr(s))))):(T=f&~y,T!==0?m=tr(T):w!==0?m=tr(w):s||(s=f&~e,s!==0&&(m=tr(s)))),m===0?0:n!==0&&n!==m&&(n&y)===0&&(y=m&-m,s=n&-n,y>=s||y===32&&(s&4194048)!==0)?n:m}function ri(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function xd(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 vs(){var e=lt;return lt<<=1,(lt&62914560)===0&&(lt=4194304),e}function ol(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function ii(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yd(e,n,s,f,m,y){var w=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var T=e.entanglements,U=e.expirationTimes,Q=e.hiddenUpdates;for(s=w&~s;0<s;){var ce=31-z(s),me=1<<ce;T[ce]=0,U[ce]=-1;var J=Q[ce];if(J!==null)for(Q[ce]=null,ce=0;ce<J.length;ce++){var ne=J[ce];ne!==null&&(ne.lane&=-536870913)}s&=~me}f!==0&&Es(e,f,0),y!==0&&m===0&&e.tag!==0&&(e.suspendedLanes|=y&~(w&~n))}function Es(e,n,s){e.pendingLanes|=n,e.suspendedLanes&=~n;var f=31-z(n);e.entangledLanes|=n,e.entanglements[f]=e.entanglements[f]|1073741824|s&261930}function Ss(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var f=31-z(s),m=1<<f;m&n|e[f]&n&&(e[f]|=n),s&=~m}}function ks(e,n){var s=n&-n;return s=(s&42)!==0?1:sl(s),(s&(e.suspendedLanes|n))!==0?0:s}function sl(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 ul(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ws(){var e=he.p;return e!==0?e:(e=window.event,e===void 0?32:cd(e.type))}function Cs(e,n){var s=he.p;try{return he.p=e,n()}finally{he.p=s}}var Nn=Math.random().toString(36).slice(2),yt="__reactFiber$"+Nn,_t="__reactProps$"+Nn,br="__reactContainer$"+Nn,cl="__reactEvents$"+Nn,bd="__reactListeners$"+Nn,vd="__reactHandles$"+Nn,Rs="__reactResources$"+Nn,ai="__reactMarker$"+Nn;function fl(e){delete e[yt],delete e[_t],delete e[cl],delete e[bd],delete e[vd]}function vr(e){var n=e[yt];if(n)return n;for(var s=e.parentNode;s;){if(n=s[br]||s[yt]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=Gf(e);e!==null;){if(s=e[yt])return s;e=Gf(e)}return n}e=s,s=e.parentNode}return null}function Er(e){if(e=e[yt]||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(o(33))}function Sr(e){var n=e[Rs];return n||(n=e[Rs]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function gt(e){e[ai]=!0}var As=new Set,Ts={};function nr(e,n){kr(e,n),kr(e+"Capture",n)}function kr(e,n){for(Ts[e]=n,e=0;e<n.length;e++)As.add(n[e])}var Ed=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]*$"),_s={},js={};function Sd(e){return Pt.call(js,e)?!0:Pt.call(_s,e)?!1:Ed.test(e)?js[e]=!0:(_s[e]=!0,!1)}function Xi(e,n,s){if(Sd(n))if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var f=n.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+s)}}function Ki(e,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+s)}}function pn(e,n,s,f){if(f===null)e.removeAttribute(s);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(n,s,""+f)}}function $t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ns(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function kd(e,n,s){var f=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var m=f.get,y=f.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return m.call(this)},set:function(w){s=""+w,y.call(this,w)}}),Object.defineProperty(e,n,{enumerable:f.enumerable}),{getValue:function(){return s},setValue:function(w){s=""+w},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function dl(e){if(!e._valueTracker){var n=Ns(e)?"checked":"value";e._valueTracker=kd(e,n,""+e[n])}}function Os(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),f="";return e&&(f=Ns(e)?e.checked?"true":"false":e.value),e=f,e!==s?(n.setValue(e),!0):!1}function Qi(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,s,f,m,y,w,T){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=""+$t(n)):e.value!==""+$t(n)&&(e.value=""+$t(n)):w!=="submit"&&w!=="reset"||e.removeAttribute("value"),n!=null?hl(e,w,$t(n)):s!=null?hl(e,w,$t(s)):f!=null&&e.removeAttribute("value"),m==null&&y!=null&&(e.defaultChecked=!!y),m!=null&&(e.checked=m&&typeof m!="function"&&typeof m!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.name=""+$t(T):e.removeAttribute("name")}function Ls(e,n,s,f,m,y,w,T){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.type=y),n!=null||s!=null){if(!(y!=="submit"&&y!=="reset"||n!=null)){dl(e);return}s=s!=null?""+$t(s):"",n=n!=null?""+$t(n):s,T||n===e.value||(e.value=n),e.defaultValue=n}f=f??m,f=typeof f!="function"&&typeof f!="symbol"&&!!f,e.checked=T?e.checked:!!f,e.defaultChecked=!!f,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(e.name=w),dl(e)}function hl(e,n,s){n==="number"&&Qi(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function wr(e,n,s,f){if(e=e.options,n){n={};for(var m=0;m<s.length;m++)n["$"+s[m]]=!0;for(s=0;s<e.length;s++)m=n.hasOwnProperty("$"+e[s].value),e[s].selected!==m&&(e[s].selected=m),m&&f&&(e[s].defaultSelected=!0)}else{for(s=""+$t(s),n=null,m=0;m<e.length;m++){if(e[m].value===s){e[m].selected=!0,f&&(e[m].defaultSelected=!0);return}n!==null||e[m].disabled||(n=e[m])}n!==null&&(n.selected=!0)}}function Ds(e,n,s){if(n!=null&&(n=""+$t(n),n!==e.value&&(e.value=n),s==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=s!=null?""+$t(s):""}function Ms(e,n,s,f){if(n==null){if(f!=null){if(s!=null)throw Error(o(92));if(ee(f)){if(1<f.length)throw Error(o(93));f=f[0]}s=f}s==null&&(s=""),n=s}s=$t(n),e.defaultValue=s,f=e.textContent,f===s&&f!==""&&f!==null&&(e.value=f),dl(e)}function Cr(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var Cd=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 zs(e,n,s){var f=n.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?f?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":f?e.setProperty(n,s):typeof s!="number"||s===0||Cd.has(n)?n==="float"?e.cssFloat=s:e[n]=(""+s).trim():e[n]=s+"px"}function Is(e,n,s){if(n!=null&&typeof n!="object")throw Error(o(62));if(e=e.style,s!=null){for(var f in s)!s.hasOwnProperty(f)||n!=null&&n.hasOwnProperty(f)||(f.indexOf("--")===0?e.setProperty(f,""):f==="float"?e.cssFloat="":e[f]="");for(var m in n)f=n[m],n.hasOwnProperty(m)&&s[m]!==f&&zs(e,m,f)}else for(var y in n)n.hasOwnProperty(y)&&zs(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 Rd=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"]]),Ad=/^[\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 Ad.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function hn(){}var gl=null;function xl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rr=null,Ar=null;function Bs(e){var n=Er(e);if(n&&(e=n.stateNode)){var s=e[_t]||null;e:switch(e=n.stateNode,n.type){case"input":if(pl(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Yt(""+n)+'"][type="radio"]'),n=0;n<s.length;n++){var f=s[n];if(f!==e&&f.form===e.form){var m=f[_t]||null;if(!m)throw Error(o(90));pl(f,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(n=0;n<s.length;n++)f=s[n],f.form===e.form&&Os(f)}break e;case"textarea":Ds(e,s.value,s.defaultValue);break e;case"select":n=s.value,n!=null&&wr(e,!!s.multiple,n,!1)}}}var yl=!1;function Us(e,n,s){if(yl)return e(n,s);yl=!0;try{var f=e(n);return f}finally{if(yl=!1,(Rr!==null||Ar!==null)&&(Ua(),Rr&&(n=Rr,e=Ar,Ar=Rr=null,Bs(n),e)))for(n=0;n<e.length;n++)Bs(e[n])}}function oi(e,n){var s=e.stateNode;if(s===null)return null;var f=s[_t]||null;if(f===null)return null;s=f[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":(f=!f.disabled)||(e=e.type,f=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!f;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(o(231,n,typeof s));return s}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bl=!1;if(mn)try{var si={};Object.defineProperty(si,"passive",{get:function(){bl=!0}}),window.addEventListener("test",si,si),window.removeEventListener("test",si,si)}catch{bl=!1}var On=null,vl=null,Wi=null;function qs(){if(Wi)return Wi;var e,n=vl,s=n.length,f,m="value"in On?On.value:On.textContent,y=m.length;for(e=0;e<s&&n[e]===m[e];e++);var w=s-e;for(f=1;f<=w&&n[s-f]===m[y-f];f++);return Wi=m.slice(e,1<f?1-f: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 Fs(){return!1}function jt(e){function n(s,f,m,y,w){this._reactName=s,this._targetInst=m,this.type=f,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var T in e)e.hasOwnProperty(T)&&(s=e[T],this[T]=s?s(y):y[T]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ta:Fs,this.isPropagationStopped=Fs,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=ta)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.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),ui=b({},rr,{view:0,detail:0}),Td=jt(ui),El,Sl,ci,ra=b({},ui,{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"?(El=e.screenX-ci.screenX,Sl=e.screenY-ci.screenY):Sl=El=0,ci=e),El)},movementY:function(e){return"movementY"in e?e.movementY:Sl}}),Zs=jt(ra),_d=b({},ra,{dataTransfer:0}),jd=jt(_d),Nd=b({},ui,{relatedTarget:0}),kl=jt(Nd),Od=b({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ld=jt(Od),Dd=b({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Md=jt(Dd),zd=b({},rr,{data:0}),Vs=jt(zd),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 Fd=b({},ui,{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}}),Zd=jt(Fd),Vd=b({},ra,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ps=jt(Vd),Pd=b({},ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wl}),Hd=jt(Pd),$d=b({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yd=jt($d),Gd=b({},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}),Xd=jt(Gd),Kd=b({},rr,{newState:0,oldState:0}),Qd=jt(Kd),Jd=[9,13,27,32],Cl=mn&&"CompositionEvent"in window,fi=null;mn&&"documentMode"in document&&(fi=document.documentMode);var Wd=mn&&"TextEvent"in window&&!fi,Hs=mn&&(!Cl||fi&&8<fi&&11>=fi),$s=" ",Ys=!1;function Gs(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 Xs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function ep(e,n){switch(e){case"compositionend":return Xs(n);case"keypress":return n.which!==32?null:(Ys=!0,$s);case"textInput":return e=n.data,e===$s&&Ys?null:e;default:return null}}function tp(e,n){if(Tr)return e==="compositionend"||!Cl&&Gs(e,n)?(e=qs(),Wi=vl=On=null,Tr=!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 Hs&&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 Ks(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!np[e.type]:n==="textarea"}function Qs(e,n,s,f){Rr?Ar?Ar.push(f):Ar=[f]:Rr=f,n=$a(n,"onChange"),0<n.length&&(s=new na("onChange","change",null,s,f),e.push({event:s,listeners:n}))}var di=null,pi=null;function rp(e){Df(e,0)}function ia(e){var n=li(e);if(Os(n))return e}function Js(e,n){if(e==="change")return n}var Ws=!1;if(mn){var Rl;if(mn){var Al="oninput"in document;if(!Al){var eu=document.createElement("div");eu.setAttribute("oninput","return;"),Al=typeof eu.oninput=="function"}Rl=Al}else Rl=!1;Ws=Rl&&(!document.documentMode||9<document.documentMode)}function tu(){di&&(di.detachEvent("onpropertychange",nu),pi=di=null)}function nu(e){if(e.propertyName==="value"&&ia(pi)){var n=[];Qs(n,pi,e,xl(e)),Us(rp,n)}}function ip(e,n,s){e==="focusin"?(tu(),di=n,pi=s,di.attachEvent("onpropertychange",nu)):e==="focusout"&&tu()}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 sp(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var zt=typeof Object.is=="function"?Object.is:sp;function hi(e,n){if(zt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),f=Object.keys(n);if(s.length!==f.length)return!1;for(f=0;f<s.length;f++){var m=s[f];if(!Pt.call(n,m)||!zt(e[m],n[m]))return!1}return!0}function ru(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function iu(e,n){var s=ru(e);e=0;for(var f;s;){if(s.nodeType===3){if(f=e+s.textContent.length,e<=n&&f>=n)return{node:s,offset:n-e};e=f}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=ru(s)}}function au(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?au(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function lu(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Qi(e.document);n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=Qi(e.document)}return n}function Tl(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 up=mn&&"documentMode"in document&&11>=document.documentMode,_r=null,_l=null,mi=null,jl=!1;function ou(e,n,s){var f=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;jl||_r==null||_r!==Qi(f)||(f=_r,"selectionStart"in f&&Tl(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),mi&&hi(mi,f)||(mi=f,f=$a(_l,"onSelect"),0<f.length&&(n=new na("onSelect","select",null,n,s),e.push({event:n,listeners:f}),n.target=_r)))}function ir(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}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={},su={};mn&&(su=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],s;for(s in n)if(n.hasOwnProperty(s)&&s in su)return Nl[e]=n[s];return e}var uu=ar("animationend"),cu=ar("animationiteration"),fu=ar("animationstart"),cp=ar("transitionrun"),fp=ar("transitionstart"),dp=ar("transitioncancel"),du=ar("transitionend"),pu=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){pu.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,Ll=0;function la(){for(var e=Nr,n=Ll=Nr=0;n<e;){var s=Gt[n];Gt[n++]=null;var f=Gt[n];Gt[n++]=null;var m=Gt[n];Gt[n++]=null;var y=Gt[n];if(Gt[n++]=null,f!==null&&m!==null){var w=f.pending;w===null?m.next=m:(m.next=w.next,w.next=m),f.pending=m}y!==0&&hu(s,m,y)}}function oa(e,n,s,f){Gt[Nr++]=e,Gt[Nr++]=n,Gt[Nr++]=s,Gt[Nr++]=f,Ll|=f,e.lanes|=f,e=e.alternate,e!==null&&(e.lanes|=f)}function Dl(e,n,s,f){return oa(e,n,s,f),sa(e)}function lr(e,n){return oa(e,null,null,n),sa(e)}function hu(e,n,s){e.lanes|=s;var f=e.alternate;f!==null&&(f.lanes|=s);for(var m=!1,y=e.return;y!==null;)y.childLanes|=s,f=y.alternate,f!==null&&(f.childLanes|=s),y.tag===22&&(e=y.stateNode,e===null||e._visibility&1||(m=!0)),e=y,y=y.return;return e.tag===3?(y=e.stateNode,m&&n!==null&&(m=31-z(s),e=y.hiddenUpdates,f=e[m],f===null?e[m]=[n]:f.push(n),n.lane=s|536870912),y):null}function sa(e){if(50<Ii)throw Ii=0,Po=null,Error(o(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,s,f){this.tag=e,this.key=s,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=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,n,s,f){return new pp(e,n,s,f)}function Ml(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gn(e,n){var s=e.alternate;return s===null?(s=It(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function mu(e,n){e.flags&=65011714;var s=e.alternate;return s===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=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,n=s.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function ua(e,n,s,f,m,y){var w=0;if(f=e,typeof e=="function")Ml(e)&&(w=1);else if(typeof e=="string")w=yh(e,s,be.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ve:return e=It(31,s,n,m),e.elementType=ve,e.lanes=y,e;case B:return or(s.children,m,y,n);case L:w=8,m|=24;break;case D:return e=It(12,s,n,m|2),e.elementType=D,e.lanes=y,e;case ie:return e=It(13,s,n,m),e.elementType=ie,e.lanes=y,e;case H:return e=It(19,s,n,m),e.elementType=H,e.lanes=y,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:w=10;break e;case $:w=9;break e;case se:w=11;break e;case ge:w=14;break e;case W:w=16,f=null;break e}w=29,s=Error(o(130,e===null?"null":typeof e,"")),f=null}return n=It(w,s,n,m),n.elementType=e,n.type=f,n.lanes=y,n}function or(e,n,s,f){return e=It(7,e,f,n),e.lanes=s,e}function zl(e,n,s){return e=It(6,e,null,n),e.lanes=s,e}function gu(e){var n=It(18,null,null,0);return n.stateNode=e,n}function Il(e,n,s){return n=It(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var xu=new WeakMap;function Xt(e,n){if(typeof e=="object"&&e!==null){var s=xu.get(e);return s!==void 0?s:(n={value:e,source:n,stack:wt(n)},xu.set(e,n),n)}return{value:e,source:n,stack:wt(n)}}var Lr=[],Dr=0,ca=null,gi=0,Kt=[],Qt=0,Ln=null,sn=1,un="";function xn(e,n){Lr[Dr++]=gi,Lr[Dr++]=ca,ca=e,gi=n}function yu(e,n,s){Kt[Qt++]=sn,Kt[Qt++]=un,Kt[Qt++]=Ln,Ln=e;var f=sn;e=un;var m=32-z(f)-1;f&=~(1<<m),s+=1;var y=32-z(n)+m;if(30<y){var w=m-m%5;y=(f&(1<<w)-1).toString(32),f>>=w,m-=w,sn=1<<32-z(n)+m|s<<m|f,un=y+e}else sn=1<<y|s<<m|f,un=e}function Bl(e){e.return!==null&&(xn(e,1),yu(e,1,0))}function Ul(e){for(;e===ca;)ca=Lr[--Dr],Lr[Dr]=null,gi=Lr[--Dr],Lr[Dr]=null;for(;e===Ln;)Ln=Kt[--Qt],Kt[Qt]=null,un=Kt[--Qt],Kt[Qt]=null,sn=Kt[--Qt],Kt[Qt]=null}function bu(e,n){Kt[Qt++]=sn,Kt[Qt++]=un,Kt[Qt++]=Ln,sn=n.id,un=n.overflow,Ln=e}var bt=null,We=null,Fe=!1,Dn=null,Jt=!1,ql=Error(o(519));function Mn(e){var n=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xi(Xt(n,e)),ql}function vu(e){var n=e.stateNode,s=e.type,f=e.memoizedProps;switch(n[yt]=e,n[_t]=f,s){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(s=0;s<Ui.length;s++)Ie(Ui[s],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),Ls(n,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":Ie("invalid",n);break;case"textarea":Ie("invalid",n),Ms(n,f.value,f.defaultValue,f.children)}s=f.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||n.textContent===""+s||f.suppressHydrationWarning===!0||Bf(n.textContent,s)?(f.popover!=null&&(Ie("beforetoggle",n),Ie("toggle",n)),f.onScroll!=null&&Ie("scroll",n),f.onScrollEnd!=null&&Ie("scrollend",n),f.onClick!=null&&(n.onclick=hn),n=!0):n=!1,n||Mn(e,!0)}function Eu(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 Mr(e){if(e!==bt)return!1;if(!Fe)return Eu(e),Fe=!0,!1;var n=e.tag,s;if((s=n!==3&&n!==27)&&((s=n===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||as(e.type,e.memoizedProps)),s=!s),s&&We&&Mn(e),Eu(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Yf(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));We=Yf(e)}else n===27?(n=We,Xn(e.type)?(e=cs,cs=null,We=e):We=n):We=bt?en(e.stateNode.nextSibling):null;return!0}function sr(){We=bt=null,Fe=!1}function Fl(){var e=Dn;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),Dn=null),e}function xi(e){Dn===null?Dn=[e]:Dn.push(e)}var Zl=q(null),ur=null,yn=null;function zn(e,n,s){N(Zl,n._currentValue),n._currentValue=s}function bn(e){e._currentValue=Zl.current,oe(Zl)}function Vl(e,n,s){for(;e!==null;){var f=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,f!==null&&(f.childLanes|=n)):f!==null&&(f.childLanes&n)!==n&&(f.childLanes|=n),e===s)break;e=e.return}}function Pl(e,n,s,f){var m=e.child;for(m!==null&&(m.return=e);m!==null;){var y=m.dependencies;if(y!==null){var w=m.child;y=y.firstContext;e:for(;y!==null;){var T=y;y=m;for(var U=0;U<n.length;U++)if(T.context===n[U]){y.lanes|=s,T=y.alternate,T!==null&&(T.lanes|=s),Vl(y.return,s,e),f||(w=null);break e}y=T.next}}else if(m.tag===18){if(w=m.return,w===null)throw Error(o(341));w.lanes|=s,y=w.alternate,y!==null&&(y.lanes|=s),Vl(w,s,e),w=null}else w=m.child;if(w!==null)w.return=m;else for(w=m;w!==null;){if(w===e){w=null;break}if(m=w.sibling,m!==null){m.return=w.return,w=m;break}w=w.return}m=w}}function zr(e,n,s,f){e=null;for(var m=n,y=!1;m!==null;){if(!y){if((m.flags&524288)!==0)y=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var w=m.alternate;if(w===null)throw Error(o(387));if(w=w.memoizedProps,w!==null){var T=m.type;zt(m.pendingProps.value,w.value)||(e!==null?e.push(T):e=[T])}}else if(m===Oe.current){if(w=m.alternate,w===null)throw Error(o(387));w.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(e!==null?e.push(Pi):e=[Pi])}m=m.return}e!==null&&Pl(n,e,s,f),n.flags|=262144}function fa(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cr(e){ur=e,yn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Su(ur,e)}function da(e,n){return ur===null&&cr(e),Su(e,n)}function Su(e,n){var s=n._currentValue;if(n={context:n,memoizedValue:s,next:null},yn===null){if(e===null)throw Error(o(308));yn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else yn=yn.next=n;return s}var hp=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(s,f){e.push(f)}};this.abort=function(){n.aborted=!0,e.forEach(function(s){return s()})}},mp=t.unstable_scheduleCallback,gp=t.unstable_NormalPriority,ct={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hl(){return{controller:new hp,data:new Map,refCount:0}}function yi(e){e.refCount--,e.refCount===0&&mp(gp,function(){e.controller.abort()})}var bi=null,$l=0,Ir=0,Br=null;function xp(e,n){if(bi===null){var s=bi=[];$l=0,Ir=Ko(),Br={status:"pending",value:void 0,then:function(f){s.push(f)}}}return $l++,n.then(ku,ku),n}function ku(){if(--$l===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 yp(e,n){var s=[],f={status:"pending",value:null,reason:null,then:function(m){s.push(m)}};return e.then(function(){f.status="fulfilled",f.value=n;for(var m=0;m<s.length;m++)(0,s[m])(n)},function(m){for(f.status="rejected",f.reason=m,m=0;m<s.length;m++)(0,s[m])(void 0)}),f}var wu=P.S;P.S=function(e,n){sf=Je(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&xp(e,n),wu!==null&&wu(e,n)};var fr=q(null);function Yl(){var e=fr.current;return e!==null?e:Ke.pooledCache}function pa(e,n){n===null?N(fr,fr.current):N(fr,n.pool)}function Cu(){var e=Yl();return e===null?null:{parent:ct._currentValue,pool:e}}var Ur=Error(o(460)),Gl=Error(o(474)),ha=Error(o(542)),ma={then:function(){}};function Ru(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Au(e,n,s){switch(s=e[s],s===void 0?e.push(n):s!==n&&(n.then(hn,hn),n=s),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,_u(e),e;default:if(typeof n.status=="string")n.then(hn,hn);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=n,e.status="pending",e.then(function(f){if(n.status==="pending"){var m=n;m.status="fulfilled",m.value=f}},function(f){if(n.status==="pending"){var m=n;m.status="rejected",m.reason=f}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,_u(e),e}throw pr=n,Ur}}function dr(e){try{var n=e._init;return n(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(pr=s,Ur):s}}var pr=null;function Tu(){if(pr===null)throw Error(o(459));var e=pr;return pr=null,e}function _u(e){if(e===Ur||e===ha)throw Error(o(483))}var qr=null,vi=0;function ga(e){var n=vi;return vi+=1,qr===null&&(qr=[]),Au(qr,e,n)}function Ei(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function xa(e,n){throw n.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function ju(e){function n(Y,F){if(e){var G=Y.deletions;G===null?(Y.deletions=[F],Y.flags|=16):G.push(F)}}function s(Y,F){if(!e)return null;for(;F!==null;)n(Y,F),F=F.sibling;return null}function f(Y){for(var F=new Map;Y!==null;)Y.key!==null?F.set(Y.key,Y):F.set(Y.index,Y),Y=Y.sibling;return F}function m(Y,F){return Y=gn(Y,F),Y.index=0,Y.sibling=null,Y}function y(Y,F,G){return Y.index=G,e?(G=Y.alternate,G!==null?(G=G.index,G<F?(Y.flags|=67108866,F):G):(Y.flags|=67108866,F)):(Y.flags|=1048576,F)}function w(Y){return e&&Y.alternate===null&&(Y.flags|=67108866),Y}function T(Y,F,G,pe){return F===null||F.tag!==6?(F=zl(G,Y.mode,pe),F.return=Y,F):(F=m(F,G),F.return=Y,F)}function U(Y,F,G,pe){var Ne=G.type;return Ne===B?ce(Y,F,G.props.children,pe,G.key):F!==null&&(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===W&&dr(Ne)===F.type)?(F=m(F,G.props),Ei(F,G),F.return=Y,F):(F=ua(G.type,G.key,G.props,null,Y.mode,pe),Ei(F,G),F.return=Y,F)}function Q(Y,F,G,pe){return F===null||F.tag!==4||F.stateNode.containerInfo!==G.containerInfo||F.stateNode.implementation!==G.implementation?(F=Il(G,Y.mode,pe),F.return=Y,F):(F=m(F,G.children||[]),F.return=Y,F)}function ce(Y,F,G,pe,Ne){return F===null||F.tag!==7?(F=or(G,Y.mode,pe,Ne),F.return=Y,F):(F=m(F,G),F.return=Y,F)}function me(Y,F,G){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=zl(""+F,Y.mode,G),F.return=Y,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case R:return G=ua(F.type,F.key,F.props,null,Y.mode,G),Ei(G,F),G.return=Y,G;case _:return F=Il(F,Y.mode,G),F.return=Y,F;case W:return F=dr(F),me(Y,F,G)}if(ee(F)||ae(F))return F=or(F,Y.mode,G,null),F.return=Y,F;if(typeof F.then=="function")return me(Y,ga(F),G);if(F.$$typeof===V)return me(Y,da(Y,F),G);xa(Y,F)}return null}function J(Y,F,G,pe){var Ne=F!==null?F.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ne!==null?null:T(Y,F,""+G,pe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case R:return G.key===Ne?U(Y,F,G,pe):null;case _:return G.key===Ne?Q(Y,F,G,pe):null;case W:return G=dr(G),J(Y,F,G,pe)}if(ee(G)||ae(G))return Ne!==null?null:ce(Y,F,G,pe,null);if(typeof G.then=="function")return J(Y,F,ga(G),pe);if(G.$$typeof===V)return J(Y,F,da(Y,G),pe);xa(Y,G)}return null}function ne(Y,F,G,pe,Ne){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return Y=Y.get(G)||null,T(F,Y,""+pe,Ne);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case R:return Y=Y.get(pe.key===null?G:pe.key)||null,U(F,Y,pe,Ne);case _:return Y=Y.get(pe.key===null?G:pe.key)||null,Q(F,Y,pe,Ne);case W:return pe=dr(pe),ne(Y,F,G,pe,Ne)}if(ee(pe)||ae(pe))return Y=Y.get(G)||null,ce(F,Y,pe,Ne,null);if(typeof pe.then=="function")return ne(Y,F,G,ga(pe),Ne);if(pe.$$typeof===V)return ne(Y,F,G,da(F,pe),Ne);xa(F,pe)}return null}function Re(Y,F,G,pe){for(var Ne=null,Ze=null,Te=F,Me=F=0,Ue=null;Te!==null&&Me<G.length;Me++){Te.index>Me?(Ue=Te,Te=null):Ue=Te.sibling;var Ve=J(Y,Te,G[Me],pe);if(Ve===null){Te===null&&(Te=Ue);break}e&&Te&&Ve.alternate===null&&n(Y,Te),F=y(Ve,F,Me),Ze===null?Ne=Ve:Ze.sibling=Ve,Ze=Ve,Te=Ue}if(Me===G.length)return s(Y,Te),Fe&&xn(Y,Me),Ne;if(Te===null){for(;Me<G.length;Me++)Te=me(Y,G[Me],pe),Te!==null&&(F=y(Te,F,Me),Ze===null?Ne=Te:Ze.sibling=Te,Ze=Te);return Fe&&xn(Y,Me),Ne}for(Te=f(Te);Me<G.length;Me++)Ue=ne(Te,Y,Me,G[Me],pe),Ue!==null&&(e&&Ue.alternate!==null&&Te.delete(Ue.key===null?Me:Ue.key),F=y(Ue,F,Me),Ze===null?Ne=Ue:Ze.sibling=Ue,Ze=Ue);return e&&Te.forEach(function(er){return n(Y,er)}),Fe&&xn(Y,Me),Ne}function Le(Y,F,G,pe){if(G==null)throw Error(o(151));for(var Ne=null,Ze=null,Te=F,Me=F=0,Ue=null,Ve=G.next();Te!==null&&!Ve.done;Me++,Ve=G.next()){Te.index>Me?(Ue=Te,Te=null):Ue=Te.sibling;var er=J(Y,Te,Ve.value,pe);if(er===null){Te===null&&(Te=Ue);break}e&&Te&&er.alternate===null&&n(Y,Te),F=y(er,F,Me),Ze===null?Ne=er:Ze.sibling=er,Ze=er,Te=Ue}if(Ve.done)return s(Y,Te),Fe&&xn(Y,Me),Ne;if(Te===null){for(;!Ve.done;Me++,Ve=G.next())Ve=me(Y,Ve.value,pe),Ve!==null&&(F=y(Ve,F,Me),Ze===null?Ne=Ve:Ze.sibling=Ve,Ze=Ve);return Fe&&xn(Y,Me),Ne}for(Te=f(Te);!Ve.done;Me++,Ve=G.next())Ve=ne(Te,Y,Me,Ve.value,pe),Ve!==null&&(e&&Ve.alternate!==null&&Te.delete(Ve.key===null?Me:Ve.key),F=y(Ve,F,Me),Ze===null?Ne=Ve:Ze.sibling=Ve,Ze=Ve);return e&&Te.forEach(function(_h){return n(Y,_h)}),Fe&&xn(Y,Me),Ne}function Xe(Y,F,G,pe){if(typeof G=="object"&&G!==null&&G.type===B&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case R:e:{for(var Ne=G.key;F!==null;){if(F.key===Ne){if(Ne=G.type,Ne===B){if(F.tag===7){s(Y,F.sibling),pe=m(F,G.props.children),pe.return=Y,Y=pe;break e}}else if(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===W&&dr(Ne)===F.type){s(Y,F.sibling),pe=m(F,G.props),Ei(pe,G),pe.return=Y,Y=pe;break e}s(Y,F);break}else n(Y,F);F=F.sibling}G.type===B?(pe=or(G.props.children,Y.mode,pe,G.key),pe.return=Y,Y=pe):(pe=ua(G.type,G.key,G.props,null,Y.mode,pe),Ei(pe,G),pe.return=Y,Y=pe)}return w(Y);case _:e:{for(Ne=G.key;F!==null;){if(F.key===Ne)if(F.tag===4&&F.stateNode.containerInfo===G.containerInfo&&F.stateNode.implementation===G.implementation){s(Y,F.sibling),pe=m(F,G.children||[]),pe.return=Y,Y=pe;break e}else{s(Y,F);break}else n(Y,F);F=F.sibling}pe=Il(G,Y.mode,pe),pe.return=Y,Y=pe}return w(Y);case W:return G=dr(G),Xe(Y,F,G,pe)}if(ee(G))return Re(Y,F,G,pe);if(ae(G)){if(Ne=ae(G),typeof Ne!="function")throw Error(o(150));return G=Ne.call(G),Le(Y,F,G,pe)}if(typeof G.then=="function")return Xe(Y,F,ga(G),pe);if(G.$$typeof===V)return Xe(Y,F,da(Y,G),pe);xa(Y,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,F!==null&&F.tag===6?(s(Y,F.sibling),pe=m(F,G),pe.return=Y,Y=pe):(s(Y,F),pe=zl(G,Y.mode,pe),pe.return=Y,Y=pe),w(Y)):s(Y,F)}return function(Y,F,G,pe){try{vi=0;var Ne=Xe(Y,F,G,pe);return qr=null,Ne}catch(Te){if(Te===Ur||Te===ha)throw Te;var Ze=It(29,Te,null,Y.mode);return Ze.lanes=pe,Ze.return=Y,Ze}finally{}}}var hr=ju(!0),Nu=ju(!1),In=!1;function Xl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Kl(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,s){var f=e.updateQueue;if(f===null)return null;if(f=f.shared,(Pe&2)!==0){var m=f.pending;return m===null?n.next=n:(n.next=m.next,m.next=n),f.pending=n,n=sa(e),hu(e,null,s),n}return oa(e,f,n,s),sa(e)}function Si(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194048)!==0)){var f=n.lanes;f&=e.pendingLanes,s|=f,n.lanes=s,Ss(e,s)}}function Ql(e,n){var s=e.updateQueue,f=e.alternate;if(f!==null&&(f=f.updateQueue,s===f)){var m=null,y=null;if(s=s.firstBaseUpdate,s!==null){do{var w={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};y===null?m=y=w:y=y.next=w,s=s.next}while(s!==null);y===null?m=y=n:y=y.next=n}else m=y=n;s={baseState:f.baseState,firstBaseUpdate:m,lastBaseUpdate:y,shared:f.shared,callbacks:f.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}var Jl=!1;function ki(){if(Jl){var e=Br;if(e!==null)throw e}}function wi(e,n,s,f){Jl=!1;var m=e.updateQueue;In=!1;var y=m.firstBaseUpdate,w=m.lastBaseUpdate,T=m.shared.pending;if(T!==null){m.shared.pending=null;var U=T,Q=U.next;U.next=null,w===null?y=Q:w.next=Q,w=U;var ce=e.alternate;ce!==null&&(ce=ce.updateQueue,T=ce.lastBaseUpdate,T!==w&&(T===null?ce.firstBaseUpdate=Q:T.next=Q,ce.lastBaseUpdate=U))}if(y!==null){var me=m.baseState;w=0,ce=Q=U=null,T=y;do{var J=T.lane&-536870913,ne=J!==T.lane;if(ne?(Be&J)===J:(f&J)===J){J!==0&&J===Ir&&(Jl=!0),ce!==null&&(ce=ce.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Re=e,Le=T;J=n;var Xe=s;switch(Le.tag){case 1:if(Re=Le.payload,typeof Re=="function"){me=Re.call(Xe,me,J);break e}me=Re;break e;case 3:Re.flags=Re.flags&-65537|128;case 0:if(Re=Le.payload,J=typeof Re=="function"?Re.call(Xe,me,J):Re,J==null)break e;me=b({},me,J);break e;case 2:In=!0}}J=T.callback,J!==null&&(e.flags|=64,ne&&(e.flags|=8192),ne=m.callbacks,ne===null?m.callbacks=[J]:ne.push(J))}else ne={lane:J,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ce===null?(Q=ce=ne,U=me):ce=ce.next=ne,w|=J;if(T=T.next,T===null){if(T=m.shared.pending,T===null)break;ne=T,T=ne.next,ne.next=null,m.lastBaseUpdate=ne,m.shared.pending=null}}while(!0);ce===null&&(U=me),m.baseState=U,m.firstBaseUpdate=Q,m.lastBaseUpdate=ce,y===null&&(m.shared.lanes=0),Pn|=w,e.lanes=w,e.memoizedState=me}}function Ou(e,n){if(typeof e!="function")throw Error(o(191,e));e.call(n)}function Lu(e,n){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)Ou(s[e],n)}var Fr=q(null),ya=q(0);function Du(e,n){e=Tn,N(ya,e),N(Fr,n),Tn=e|n.baseLanes}function Wl(){N(ya,Tn),N(Fr,Fr.current)}function eo(){Tn=ya.current,oe(Fr),oe(ya)}var Bt=q(null),Wt=null;function qn(e){var n=e.alternate;N(ot,ot.current&1),N(Bt,e),Wt===null&&(n===null||Fr.current!==null||n.memoizedState!==null)&&(Wt=e)}function to(e){N(ot,ot.current),N(Bt,e),Wt===null&&(Wt=e)}function Mu(e){e.tag===22?(N(ot,ot.current),N(Bt,e),Wt===null&&(Wt=e)):Fn()}function Fn(){N(ot,ot.current),N(Bt,Bt.current)}function Ut(e){oe(Bt),Wt===e&&(Wt=null),oe(ot)}var ot=q(0);function ba(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||ss(s)||us(s)))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,Ye=null,ft=null,va=!1,Zr=!1,mr=!1,Ea=0,Ci=0,Vr=null,bp=0;function rt(){throw Error(o(321))}function no(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!zt(e[s],n[s]))return!1;return!0}function ro(e,n,s,f,m,y){return vn=y,De=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,P.H=e===null||e.memoizedState===null?yc:bo,mr=!1,y=s(f,m),mr=!1,Zr&&(y=Iu(n,s,f,m)),zu(e),y}function zu(e){P.H=Ti;var n=Ye!==null&&Ye.next!==null;if(vn=0,ft=Ye=De=null,va=!1,Ci=0,Vr=null,n)throw Error(o(300));e===null||dt||(e=e.dependencies,e!==null&&fa(e)&&(dt=!0))}function Iu(e,n,s,f){De=e;var m=0;do{if(Zr&&(Vr=null),Ci=0,Zr=!1,25<=m)throw Error(o(301));if(m+=1,ft=Ye=null,e.updateQueue!=null){var y=e.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}P.H=bc,y=n(s,f)}while(Zr);return y}function vp(){var e=P.H,n=e.useState()[0];return n=typeof n.then=="function"?Ri(n):n,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(De.flags|=1024),n}function io(){var e=Ea!==0;return Ea=0,e}function ao(e,n,s){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~s}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=Ye=De=null,Zr=!1,Ci=Ea=0,Vr=null}function Rt(){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 st(){if(Ye===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var n=ft===null?De.memoizedState:ft.next;if(n!==null)ft=n,Ye=e;else{if(e===null)throw De.alternate===null?Error(o(467)):Error(o(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},ft===null?De.memoizedState=ft=e:ft=ft.next=e}return ft}function Sa(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ri(e){var n=Ci;return Ci+=1,Vr===null&&(Vr=[]),e=Au(Vr,e,n),n=De,(ft===null?n.memoizedState:ft.next)===null&&(n=n.alternate,P.H=n===null||n.memoizedState===null?yc:bo),e}function ka(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ri(e);if(e.$$typeof===V)return vt(e)}throw Error(o(438,String(e)))}function oo(e){var n=null,s=De.updateQueue;if(s!==null&&(n=s.memoCache),n==null){var f=De.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(n={data:f.data.map(function(m){return m.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),s===null&&(s=Sa(),De.updateQueue=s),s.memoCache=n,s=n.data[n.index],s===void 0)for(s=n.data[n.index]=Array(e),f=0;f<e;f++)s[f]=K;return n.index++,s}function En(e,n){return typeof n=="function"?n(e):n}function wa(e){var n=st();return so(n,Ye,e)}function so(e,n,s){var f=e.queue;if(f===null)throw Error(o(311));f.lastRenderedReducer=s;var m=e.baseQueue,y=f.pending;if(y!==null){if(m!==null){var w=m.next;m.next=y.next,y.next=w}n.baseQueue=m=y,f.pending=null}if(y=e.baseState,m===null)e.memoizedState=y;else{n=m.next;var T=w=null,U=null,Q=n,ce=!1;do{var me=Q.lane&-536870913;if(me!==Q.lane?(Be&me)===me:(vn&me)===me){var J=Q.revertLane;if(J===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),me===Ir&&(ce=!0);else if((vn&J)===J){Q=Q.next,J===Ir&&(ce=!0);continue}else me={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},U===null?(T=U=me,w=y):U=U.next=me,De.lanes|=J,Pn|=J;me=Q.action,mr&&s(y,me),y=Q.hasEagerState?Q.eagerState:s(y,me)}else J={lane:me,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},U===null?(T=U=J,w=y):U=U.next=J,De.lanes|=me,Pn|=me;Q=Q.next}while(Q!==null&&Q!==n);if(U===null?w=y:U.next=T,!zt(y,e.memoizedState)&&(dt=!0,ce&&(s=Br,s!==null)))throw s;e.memoizedState=y,e.baseState=w,e.baseQueue=U,f.lastRenderedState=y}return m===null&&(f.lanes=0),[e.memoizedState,f.dispatch]}function uo(e){var n=st(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var f=s.dispatch,m=s.pending,y=n.memoizedState;if(m!==null){s.pending=null;var w=m=m.next;do y=e(y,w.action),w=w.next;while(w!==m);zt(y,n.memoizedState)||(dt=!0),n.memoizedState=y,n.baseQueue===null&&(n.baseState=y),s.lastRenderedState=y}return[y,f]}function Bu(e,n,s){var f=De,m=st(),y=Fe;if(y){if(s===void 0)throw Error(o(407));s=s()}else s=n();var w=!zt((Ye||m).memoizedState,s);if(w&&(m.memoizedState=s,dt=!0),m=m.queue,po(Fu.bind(null,f,m,e),[e]),m.getSnapshot!==n||w||ft!==null&&ft.memoizedState.tag&1){if(f.flags|=2048,Pr(9,{destroy:void 0},qu.bind(null,f,m,s,n),null),Ke===null)throw Error(o(349));y||(vn&127)!==0||Uu(f,n,s)}return s}function Uu(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=De.updateQueue,n===null?(n=Sa(),De.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function qu(e,n,s,f){n.value=s,n.getSnapshot=f,Zu(n)&&Vu(e)}function Fu(e,n,s){return s(function(){Zu(n)&&Vu(e)})}function Zu(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!zt(e,s)}catch{return!0}}function Vu(e){var n=lr(e,2);n!==null&&Mt(n,e,2)}function co(e){var n=Rt();if(typeof e=="function"){var s=e;if(e=s(),mr){I(!0);try{s()}finally{I(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},n}function Pu(e,n,s,f){return e.baseState=s,so(e,Ye,typeof f=="function"?f:En)}function Ep(e,n,s,f,m){if(Aa(e))throw Error(o(485));if(e=n.action,e!==null){var y={payload:m,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){y.listeners.push(w)}};P.T!==null?s(!0):y.isTransition=!1,f(y),s=n.pending,s===null?(y.next=n.pending=y,Hu(n,y)):(y.next=s.next,n.pending=s.next=y)}}function Hu(e,n){var s=n.action,f=n.payload,m=e.state;if(n.isTransition){var y=P.T,w={};P.T=w;try{var T=s(m,f),U=P.S;U!==null&&U(w,T),$u(e,n,T)}catch(Q){fo(e,n,Q)}finally{y!==null&&w.types!==null&&(y.types=w.types),P.T=y}}else try{y=s(m,f),$u(e,n,y)}catch(Q){fo(e,n,Q)}}function $u(e,n,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(f){Yu(e,n,f)},function(f){return fo(e,n,f)}):Yu(e,n,s)}function Yu(e,n,s){n.status="fulfilled",n.value=s,Gu(n),e.state=s,n=e.pending,n!==null&&(s=n.next,s===n?e.pending=null:(s=s.next,n.next=s,Hu(e,s)))}function fo(e,n,s){var f=e.pending;if(e.pending=null,f!==null){f=f.next;do n.status="rejected",n.reason=s,Gu(n),n=n.next;while(n!==f)}e.action=null}function Gu(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Xu(e,n){return n}function Ku(e,n){if(Fe){var s=Ke.formState;if(s!==null){e:{var f=De;if(Fe){if(We){t:{for(var m=We,y=Jt;m.nodeType!==8;){if(!y){m=null;break t}if(m=en(m.nextSibling),m===null){m=null;break t}}y=m.data,m=y==="F!"||y==="F"?m:null}if(m){We=en(m.nextSibling),f=m.data==="F!";break e}}Mn(f)}f=!1}f&&(n=s[0])}}return s=Rt(),s.memoizedState=s.baseState=n,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xu,lastRenderedState:n},s.queue=f,s=mc.bind(null,De,f),f.dispatch=s,f=co(!1),y=yo.bind(null,De,!1,f.queue),f=Rt(),m={state:n,dispatch:null,action:e,pending:null},f.queue=m,s=Ep.bind(null,De,m,y,s),m.dispatch=s,f.memoizedState=e,[n,s,!1]}function Qu(e){var n=st();return Ju(n,Ye,e)}function Ju(e,n,s){if(n=so(e,n,Xu)[0],e=wa(En)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var f=Ri(n)}catch(w){throw w===Ur?ha:w}else f=n;n=st();var m=n.queue,y=m.dispatch;return s!==n.memoizedState&&(De.flags|=2048,Pr(9,{destroy:void 0},Sp.bind(null,m,s),null)),[f,y,e]}function Sp(e,n){e.action=n}function Wu(e){var n=st(),s=Ye;if(s!==null)return Ju(n,s,e);st(),n=n.memoizedState,s=st();var f=s.queue.dispatch;return s.memoizedState=e,[n,f,!1]}function Pr(e,n,s,f){return e={tag:e,create:s,deps:f,inst:n,next:null},n=De.updateQueue,n===null&&(n=Sa(),De.updateQueue=n),s=n.lastEffect,s===null?n.lastEffect=e.next=e:(f=s.next,s.next=e,e.next=f,n.lastEffect=e),e}function ec(){return st().memoizedState}function Ca(e,n,s,f){var m=Rt();De.flags|=e,m.memoizedState=Pr(1|n,{destroy:void 0},s,f===void 0?null:f)}function Ra(e,n,s,f){var m=st();f=f===void 0?null:f;var y=m.memoizedState.inst;Ye!==null&&f!==null&&no(f,Ye.memoizedState.deps)?m.memoizedState=Pr(n,y,s,f):(De.flags|=e,m.memoizedState=Pr(1|n,y,s,f))}function tc(e,n){Ca(8390656,8,e,n)}function po(e,n){Ra(2048,8,e,n)}function kp(e){De.flags|=4;var n=De.updateQueue;if(n===null)n=Sa(),De.updateQueue=n,n.events=[e];else{var s=n.events;s===null?n.events=[e]:s.push(e)}}function nc(e){var n=st().memoizedState;return kp({ref:n,nextImpl:e}),function(){if((Pe&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}function rc(e,n){return Ra(4,2,e,n)}function ic(e,n){return Ra(4,4,e,n)}function ac(e,n){if(typeof n=="function"){e=e();var s=n(e);return function(){typeof s=="function"?s():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function lc(e,n,s){s=s!=null?s.concat([e]):null,Ra(4,4,ac.bind(null,n,e),s)}function ho(){}function oc(e,n){var s=st();n=n===void 0?null:n;var f=s.memoizedState;return n!==null&&no(n,f[1])?f[0]:(s.memoizedState=[e,n],e)}function sc(e,n){var s=st();n=n===void 0?null:n;var f=s.memoizedState;if(n!==null&&no(n,f[1]))return f[0];if(f=e(),mr){I(!0);try{e()}finally{I(!1)}}return s.memoizedState=[f,n],f}function mo(e,n,s){return s===void 0||(vn&1073741824)!==0&&(Be&261930)===0?e.memoizedState=n:(e.memoizedState=s,e=cf(),De.lanes|=e,Pn|=e,s)}function uc(e,n,s,f){return zt(s,n)?s:Fr.current!==null?(e=mo(e,s,f),zt(e,n)||(dt=!0),e):(vn&42)===0||(vn&1073741824)!==0&&(Be&261930)===0?(dt=!0,e.memoizedState=s):(e=cf(),De.lanes|=e,Pn|=e,n)}function cc(e,n,s,f,m){var y=he.p;he.p=y!==0&&8>y?y:8;var w=P.T,T={};P.T=T,yo(e,!1,n,s);try{var U=m(),Q=P.S;if(Q!==null&&Q(T,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var ce=yp(U,f);Ai(e,n,ce,Zt(e))}else Ai(e,n,f,Zt(e))}catch(me){Ai(e,n,{then:function(){},status:"rejected",reason:me},Zt())}finally{he.p=y,w!==null&&T.types!==null&&(w.types=T.types),P.T=w}}function wp(){}function go(e,n,s,f){if(e.tag!==5)throw Error(o(476));var m=fc(e).queue;cc(e,m,n,fe,s===null?wp:function(){return dc(e),s(f)})}function fc(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:fe},next:null};var s={};return n.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:s},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),Ai(e,n.next.queue,{},Zt())}function xo(){return vt(Pi)}function pc(){return st().memoizedState}function hc(){return st().memoizedState}function Cp(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=Zt();e=Bn(s);var f=Un(n,e,s);f!==null&&(Mt(f,n,s),Si(f,n,s)),n={cache:Hl()},e.payload=n;return}n=n.return}}function Rp(e,n,s){var f=Zt();s={lane:f,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Aa(e)?gc(n,s):(s=Dl(e,n,s,f),s!==null&&(Mt(s,e,f),xc(s,n,f)))}function mc(e,n,s){var f=Zt();Ai(e,n,s,f)}function Ai(e,n,s,f){var m={lane:f,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Aa(e))gc(n,m);else{var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=n.lastRenderedReducer,y!==null))try{var w=n.lastRenderedState,T=y(w,s);if(m.hasEagerState=!0,m.eagerState=T,zt(T,w))return oa(e,n,m,0),Ke===null&&la(),!1}catch{}finally{}if(s=Dl(e,n,m,f),s!==null)return Mt(s,e,f),xc(s,n,f),!0}return!1}function yo(e,n,s,f){if(f={lane:2,revertLane:Ko(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Aa(e)){if(n)throw Error(o(479))}else n=Dl(e,s,f,2),n!==null&&Mt(n,e,2)}function Aa(e){var n=e.alternate;return e===De||n!==null&&n===De}function gc(e,n){Zr=va=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function xc(e,n,s){if((s&4194048)!==0){var f=n.lanes;f&=e.pendingLanes,s|=f,n.lanes=s,Ss(e,s)}}var Ti={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};Ti.useEffectEvent=rt;var yc={readContext:vt,use:ka,useCallback:function(e,n){return Rt().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:tc,useImperativeHandle:function(e,n,s){s=s!=null?s.concat([e]):null,Ca(4194308,4,ac.bind(null,n,e),s)},useLayoutEffect:function(e,n){return Ca(4194308,4,e,n)},useInsertionEffect:function(e,n){Ca(4,2,e,n)},useMemo:function(e,n){var s=Rt();n=n===void 0?null:n;var f=e();if(mr){I(!0);try{e()}finally{I(!1)}}return s.memoizedState=[f,n],f},useReducer:function(e,n,s){var f=Rt();if(s!==void 0){var m=s(n);if(mr){I(!0);try{s(n)}finally{I(!1)}}}else m=n;return f.memoizedState=f.baseState=m,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:m},f.queue=e,e=e.dispatch=Rp.bind(null,De,e),[f.memoizedState,e]},useRef:function(e){var n=Rt();return e={current:e},n.memoizedState=e},useState:function(e){e=co(e);var n=e.queue,s=mc.bind(null,De,n);return n.dispatch=s,[e.memoizedState,s]},useDebugValue:ho,useDeferredValue:function(e,n){var s=Rt();return mo(s,e,n)},useTransition:function(){var e=co(!1);return e=cc.bind(null,De,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,s){var f=De,m=Rt();if(Fe){if(s===void 0)throw Error(o(407));s=s()}else{if(s=n(),Ke===null)throw Error(o(349));(Be&127)!==0||Uu(f,n,s)}m.memoizedState=s;var y={value:s,getSnapshot:n};return m.queue=y,tc(Fu.bind(null,f,y,e),[e]),f.flags|=2048,Pr(9,{destroy:void 0},qu.bind(null,f,y,s,n),null),s},useId:function(){var e=Rt(),n=Ke.identifierPrefix;if(Fe){var s=un,f=sn;s=(f&~(1<<32-z(f)-1)).toString(32)+s,n="_"+n+"R_"+s,s=Ea++,0<s&&(n+="H"+s.toString(32)),n+="_"}else s=bp++,n="_"+n+"r_"+s.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:xo,useFormState:Ku,useActionState:Ku,useOptimistic:function(e){var n=Rt();n.memoizedState=n.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=s,n=yo.bind(null,De,!0,s),s.dispatch=n,[e,n]},useMemoCache:oo,useCacheRefresh:function(){return Rt().memoizedState=Cp.bind(null,De)},useEffectEvent:function(e){var n=Rt(),s={impl:e};return n.memoizedState=s,function(){if((Pe&2)!==0)throw Error(o(440));return s.impl.apply(void 0,arguments)}}},bo={readContext:vt,use:ka,useCallback:oc,useContext:vt,useEffect:po,useImperativeHandle:lc,useInsertionEffect:rc,useLayoutEffect:ic,useMemo:sc,useReducer:wa,useRef:ec,useState:function(){return wa(En)},useDebugValue:ho,useDeferredValue:function(e,n){var s=st();return uc(s,Ye.memoizedState,e,n)},useTransition:function(){var e=wa(En)[0],n=st().memoizedState;return[typeof e=="boolean"?e:Ri(e),n]},useSyncExternalStore:Bu,useId:pc,useHostTransitionStatus:xo,useFormState:Qu,useActionState:Qu,useOptimistic:function(e,n){var s=st();return Pu(s,Ye,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:sc,useReducer:uo,useRef:ec,useState:function(){return uo(En)},useDebugValue:ho,useDeferredValue:function(e,n){var s=st();return Ye===null?mo(s,e,n):uc(s,Ye.memoizedState,e,n)},useTransition:function(){var e=uo(En)[0],n=st().memoizedState;return[typeof e=="boolean"?e:Ri(e),n]},useSyncExternalStore:Bu,useId:pc,useHostTransitionStatus:xo,useFormState:Wu,useActionState:Wu,useOptimistic:function(e,n){var s=st();return Ye!==null?Pu(s,Ye,e,n):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:oo,useCacheRefresh:hc};bc.useEffectEvent=nc;function vo(e,n,s,f){n=e.memoizedState,s=s(f,n),s=s==null?n:b({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Eo={enqueueSetState:function(e,n,s){e=e._reactInternals;var f=Zt(),m=Bn(f);m.payload=n,s!=null&&(m.callback=s),n=Un(e,m,f),n!==null&&(Mt(n,e,f),Si(n,e,f))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var f=Zt(),m=Bn(f);m.tag=1,m.payload=n,s!=null&&(m.callback=s),n=Un(e,m,f),n!==null&&(Mt(n,e,f),Si(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=Zt(),f=Bn(s);f.tag=2,n!=null&&(f.callback=n),n=Un(e,f,s),n!==null&&(Mt(n,e,s),Si(n,e,s))}};function vc(e,n,s,f,m,y,w){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(f,y,w):n.prototype&&n.prototype.isPureReactComponent?!hi(s,f)||!hi(m,y):!0}function Ec(e,n,s,f){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,f),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,f),n.state!==e&&Eo.enqueueReplaceState(n,n.state,null)}function gr(e,n){var s=n;if("ref"in n){s={};for(var f in n)f!=="ref"&&(s[f]=n[f])}if(e=e.defaultProps){s===n&&(s=b({},s));for(var m in e)s[m]===void 0&&(s[m]=e[m])}return s}function Sc(e){aa(e)}function kc(e){console.error(e)}function wc(e){aa(e)}function Ta(e,n){try{var s=e.onUncaughtError;s(n.value,{componentStack:n.stack})}catch(f){setTimeout(function(){throw f})}}function Cc(e,n,s){try{var f=e.onCaughtError;f(s.value,{componentStack:s.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function So(e,n,s){return s=Bn(s),s.tag=3,s.payload={element:null},s.callback=function(){Ta(e,n)},s}function Rc(e){return e=Bn(e),e.tag=3,e}function Ac(e,n,s,f){var m=s.type.getDerivedStateFromError;if(typeof m=="function"){var y=f.value;e.payload=function(){return m(y)},e.callback=function(){Cc(n,s,f)}}var w=s.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(e.callback=function(){Cc(n,s,f),typeof m!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var T=f.stack;this.componentDidCatch(f.value,{componentStack:T!==null?T:""})})}function Ap(e,n,s,f,m){if(s.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(n=s.alternate,n!==null&&zr(n,s,m,!0),s=Bt.current,s!==null){switch(s.tag){case 31:case 13:return Wt===null?qa():s.alternate===null&&it===0&&(it=3),s.flags&=-257,s.flags|=65536,s.lanes=m,f===ma?s.flags|=16384:(n=s.updateQueue,n===null?s.updateQueue=new Set([f]):n.add(f),Yo(e,f,m)),!1;case 22:return s.flags|=65536,f===ma?s.flags|=16384:(n=s.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([f])},s.updateQueue=n):(s=n.retryQueue,s===null?n.retryQueue=new Set([f]):s.add(f)),Yo(e,f,m)),!1}throw Error(o(435,s.tag))}return Yo(e,f,m),qa(),!1}if(Fe)return n=Bt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=m,f!==ql&&(e=Error(o(422),{cause:f}),xi(Xt(e,s)))):(f!==ql&&(n=Error(o(423),{cause:f}),xi(Xt(n,s))),e=e.current.alternate,e.flags|=65536,m&=-m,e.lanes|=m,f=Xt(f,s),m=So(e.stateNode,f,m),Ql(e,m),it!==4&&(it=2)),!1;var y=Error(o(520),{cause:f});if(y=Xt(y,s),zi===null?zi=[y]:zi.push(y),it!==4&&(it=2),n===null)return!0;f=Xt(f,s),s=n;do{switch(s.tag){case 3:return s.flags|=65536,e=m&-m,s.lanes|=e,e=So(s.stateNode,f,e),Ql(s,e),!1;case 1:if(n=s.type,y=s.stateNode,(s.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Hn===null||!Hn.has(y))))return s.flags|=65536,m&=-m,s.lanes|=m,m=Rc(m),Ac(m,e,s,f),Ql(s,m),!1}s=s.return}while(s!==null);return!1}var ko=Error(o(461)),dt=!1;function Et(e,n,s,f){n.child=e===null?Nu(n,null,s,f):hr(n,e.child,s,f)}function Tc(e,n,s,f,m){s=s.render;var y=n.ref;if("ref"in f){var w={};for(var T in f)T!=="ref"&&(w[T]=f[T])}else w=f;return cr(n),f=ro(e,n,s,w,y,m),T=io(),e!==null&&!dt?(ao(e,n,m),Sn(e,n,m)):(Fe&&T&&Bl(n),n.flags|=1,Et(e,n,f,m),n.child)}function _c(e,n,s,f,m){if(e===null){var y=s.type;return typeof y=="function"&&!Ml(y)&&y.defaultProps===void 0&&s.compare===null?(n.tag=15,n.type=y,jc(e,n,y,f,m)):(e=ua(s.type,null,f,n,n.mode,m),e.ref=n.ref,e.return=n,n.child=e)}if(y=e.child,!No(e,m)){var w=y.memoizedProps;if(s=s.compare,s=s!==null?s:hi,s(w,f)&&e.ref===n.ref)return Sn(e,n,m)}return n.flags|=1,e=gn(y,f),e.ref=n.ref,e.return=n,n.child=e}function jc(e,n,s,f,m){if(e!==null){var y=e.memoizedProps;if(hi(y,f)&&e.ref===n.ref)if(dt=!1,n.pendingProps=f=y,No(e,m))(e.flags&131072)!==0&&(dt=!0);else return n.lanes=e.lanes,Sn(e,n,m)}return wo(e,n,s,f,m)}function Nc(e,n,s,f){var m=f.children,y=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((n.flags&128)!==0){if(y=y!==null?y.baseLanes|s:s,e!==null){for(f=n.child=e.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;f=m&~y}else f=0,n.child=null;return Oc(e,n,y,s,f)}if((s&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&pa(n,y!==null?y.cachePool:null),y!==null?Du(n,y):Wl(),Mu(n);else return f=n.lanes=536870912,Oc(e,n,y!==null?y.baseLanes|s:s,s,f)}else y!==null?(pa(n,y.cachePool),Du(n,y),Fn(),n.memoizedState=null):(e!==null&&pa(n,null),Wl(),Fn());return Et(e,n,m,s),n.child}function _i(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,s,f,m){var y=Yl();return y=y===null?null:{parent:ct._currentValue,pool:y},n.memoizedState={baseLanes:s,cachePool:y},e!==null&&pa(n,null),Wl(),Mu(n),e!==null&&zr(e,n,f,!0),n.childLanes=m,null}function _a(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 Lc(e,n,s){return hr(n,e.child,null,s),e=_a(n,n.pendingProps),e.flags|=2,Ut(n),n.memoizedState=null,e}function Tp(e,n,s){var f=n.pendingProps,m=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Fe){if(f.mode==="hidden")return e=_a(n,f),n.lanes=536870912,_i(null,e);if(to(n),(e=We)?(e=$f(e,Jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:sn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},s=gu(e),s.return=n,n.child=s,bt=n,We=null)):e=null,e===null)throw Mn(n);return n.lanes=536870912,null}return _a(n,f)}var y=e.memoizedState;if(y!==null){var w=y.dehydrated;if(to(n),m)if(n.flags&256)n.flags&=-257,n=Lc(e,n,s);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(o(558));else if(dt||zr(e,n,s,!1),m=(s&e.childLanes)!==0,dt||m){if(f=Ke,f!==null&&(w=ks(f,s),w!==0&&w!==y.retryLane))throw y.retryLane=w,lr(e,w),Mt(f,e,w),ko;qa(),n=Lc(e,n,s)}else e=y.treeContext,We=en(w.nextSibling),bt=n,Fe=!0,Dn=null,Jt=!1,e!==null&&bu(n,e),n=_a(n,f),n.flags|=4096;return n}return e=gn(e.child,{mode:f.mode,children:f.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ja(e,n){var s=n.ref;if(s===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(o(284));(e===null||e.ref!==s)&&(n.flags|=4194816)}}function wo(e,n,s,f,m){return cr(n),s=ro(e,n,s,f,void 0,m),f=io(),e!==null&&!dt?(ao(e,n,m),Sn(e,n,m)):(Fe&&f&&Bl(n),n.flags|=1,Et(e,n,s,m),n.child)}function Dc(e,n,s,f,m,y){return cr(n),n.updateQueue=null,s=Iu(n,f,s,m),zu(e),f=io(),e!==null&&!dt?(ao(e,n,y),Sn(e,n,y)):(Fe&&f&&Bl(n),n.flags|=1,Et(e,n,s,y),n.child)}function Mc(e,n,s,f,m){if(cr(n),n.stateNode===null){var y=Or,w=s.contextType;typeof w=="object"&&w!==null&&(y=vt(w)),y=new s(f,y),n.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Eo,n.stateNode=y,y._reactInternals=n,y=n.stateNode,y.props=f,y.state=n.memoizedState,y.refs={},Xl(n),w=s.contextType,y.context=typeof w=="object"&&w!==null?vt(w):Or,y.state=n.memoizedState,w=s.getDerivedStateFromProps,typeof w=="function"&&(vo(n,s,w,f),y.state=n.memoizedState),typeof s.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&&Eo.enqueueReplaceState(y,y.state,null),wi(n,f,y,m),ki(),y.state=n.memoizedState),typeof y.componentDidMount=="function"&&(n.flags|=4194308),f=!0}else if(e===null){y=n.stateNode;var T=n.memoizedProps,U=gr(s,T);y.props=U;var Q=y.context,ce=s.contextType;w=Or,typeof ce=="object"&&ce!==null&&(w=vt(ce));var me=s.getDerivedStateFromProps;ce=typeof me=="function"||typeof y.getSnapshotBeforeUpdate=="function",T=n.pendingProps!==T,ce||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(T||Q!==w)&&Ec(n,y,f,w),In=!1;var J=n.memoizedState;y.state=J,wi(n,f,y,m),ki(),Q=n.memoizedState,T||J!==Q||In?(typeof me=="function"&&(vo(n,s,me,f),Q=n.memoizedState),(U=In||vc(n,s,U,f,J,Q,w))?(ce||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=f,n.memoizedState=Q),y.props=f,y.state=Q,y.context=w,f=U):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),f=!1)}else{y=n.stateNode,Kl(e,n),w=n.memoizedProps,ce=gr(s,w),y.props=ce,me=n.pendingProps,J=y.context,Q=s.contextType,U=Or,typeof Q=="object"&&Q!==null&&(U=vt(Q)),T=s.getDerivedStateFromProps,(Q=typeof T=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==me||J!==U)&&Ec(n,y,f,U),In=!1,J=n.memoizedState,y.state=J,wi(n,f,y,m),ki();var ne=n.memoizedState;w!==me||J!==ne||In||e!==null&&e.dependencies!==null&&fa(e.dependencies)?(typeof T=="function"&&(vo(n,s,T,f),ne=n.memoizedState),(ce=In||vc(n,s,ce,f,J,ne,U)||e!==null&&e.dependencies!==null&&fa(e.dependencies))?(Q||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(f,ne,U),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(f,ne,U)),typeof y.componentDidUpdate=="function"&&(n.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof y.componentDidUpdate!="function"||w===e.memoizedProps&&J===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&J===e.memoizedState||(n.flags|=1024),n.memoizedProps=f,n.memoizedState=ne),y.props=f,y.state=ne,y.context=U,f=ce):(typeof y.componentDidUpdate!="function"||w===e.memoizedProps&&J===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&J===e.memoizedState||(n.flags|=1024),f=!1)}return y=f,ja(e,n),f=(n.flags&128)!==0,y||f?(y=n.stateNode,s=f&&typeof s.getDerivedStateFromError!="function"?null:y.render(),n.flags|=1,e!==null&&f?(n.child=hr(n,e.child,null,m),n.child=hr(n,null,s,m)):Et(e,n,s,m),n.memoizedState=y.state,e=n.child):e=Sn(e,n,m),e}function zc(e,n,s,f){return sr(),n.flags|=256,Et(e,n,s,f),n.child}var Co={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ro(e){return{baseLanes:e,cachePool:Cu()}}function Ao(e,n,s){return e=e!==null?e.childLanes&~s:0,n&&(e|=Ft),e}function Ic(e,n,s){var f=n.pendingProps,m=!1,y=(n.flags&128)!==0,w;if((w=y)||(w=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),w&&(m=!0,n.flags&=-129),w=(n.flags&32)!==0,n.flags&=-33,e===null){if(Fe){if(m?qn(n):Fn(),(e=We)?(e=$f(e,Jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:sn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},s=gu(e),s.return=n,n.child=s,bt=n,We=null)):e=null,e===null)throw Mn(n);return us(e)?n.lanes=32:n.lanes=536870912,null}var T=f.children;return f=f.fallback,m?(Fn(),m=n.mode,T=Na({mode:"hidden",children:T},m),f=or(f,m,s,null),T.return=n,f.return=n,T.sibling=f,n.child=T,f=n.child,f.memoizedState=Ro(s),f.childLanes=Ao(e,w,s),n.memoizedState=Co,_i(null,f)):(qn(n),To(n,T))}var U=e.memoizedState;if(U!==null&&(T=U.dehydrated,T!==null)){if(y)n.flags&256?(qn(n),n.flags&=-257,n=_o(e,n,s)):n.memoizedState!==null?(Fn(),n.child=e.child,n.flags|=128,n=null):(Fn(),T=f.fallback,m=n.mode,f=Na({mode:"visible",children:f.children},m),T=or(T,m,s,null),T.flags|=2,f.return=n,T.return=n,f.sibling=T,n.child=f,hr(n,e.child,null,s),f=n.child,f.memoizedState=Ro(s),f.childLanes=Ao(e,w,s),n.memoizedState=Co,n=_i(null,f));else if(qn(n),us(T)){if(w=T.nextSibling&&T.nextSibling.dataset,w)var Q=w.dgst;w=Q,f=Error(o(419)),f.stack="",f.digest=w,xi({value:f,source:null,stack:null}),n=_o(e,n,s)}else if(dt||zr(e,n,s,!1),w=(s&e.childLanes)!==0,dt||w){if(w=Ke,w!==null&&(f=ks(w,s),f!==0&&f!==U.retryLane))throw U.retryLane=f,lr(e,f),Mt(w,e,f),ko;ss(T)||qa(),n=_o(e,n,s)}else ss(T)?(n.flags|=192,n.child=e.child,n=null):(e=U.treeContext,We=en(T.nextSibling),bt=n,Fe=!0,Dn=null,Jt=!1,e!==null&&bu(n,e),n=To(n,f.children),n.flags|=4096);return n}return m?(Fn(),T=f.fallback,m=n.mode,U=e.child,Q=U.sibling,f=gn(U,{mode:"hidden",children:f.children}),f.subtreeFlags=U.subtreeFlags&65011712,Q!==null?T=gn(Q,T):(T=or(T,m,s,null),T.flags|=2),T.return=n,f.return=n,f.sibling=T,n.child=f,_i(null,f),f=n.child,T=e.child.memoizedState,T===null?T=Ro(s):(m=T.cachePool,m!==null?(U=ct._currentValue,m=m.parent!==U?{parent:U,pool:U}:m):m=Cu(),T={baseLanes:T.baseLanes|s,cachePool:m}),f.memoizedState=T,f.childLanes=Ao(e,w,s),n.memoizedState=Co,_i(e.child,f)):(qn(n),s=e.child,e=s.sibling,s=gn(s,{mode:"visible",children:f.children}),s.return=n,s.sibling=null,e!==null&&(w=n.deletions,w===null?(n.deletions=[e],n.flags|=16):w.push(e)),n.child=s,n.memoizedState=null,s)}function To(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 _o(e,n,s){return hr(n,e.child,null,s),e=To(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Bc(e,n,s){e.lanes|=n;var f=e.alternate;f!==null&&(f.lanes|=n),Vl(e.return,n,s)}function jo(e,n,s,f,m,y){var w=e.memoizedState;w===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:f,tail:s,tailMode:m,treeForkCount:y}:(w.isBackwards=n,w.rendering=null,w.renderingStartTime=0,w.last=f,w.tail=s,w.tailMode=m,w.treeForkCount=y)}function Uc(e,n,s){var f=n.pendingProps,m=f.revealOrder,y=f.tail;f=f.children;var w=ot.current,T=(w&2)!==0;if(T?(w=w&1|2,n.flags|=128):w&=1,N(ot,w),Et(e,n,f,s),f=Fe?gi:0,!T&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bc(e,s,n);else if(e.tag===19)Bc(e,s,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(m){case"forwards":for(s=n.child,m=null;s!==null;)e=s.alternate,e!==null&&ba(e)===null&&(m=s),s=s.sibling;s=m,s===null?(m=n.child,n.child=null):(m=s.sibling,s.sibling=null),jo(n,!1,m,s,y,f);break;case"backwards":case"unstable_legacy-backwards":for(s=null,m=n.child,n.child=null;m!==null;){if(e=m.alternate,e!==null&&ba(e)===null){n.child=m;break}e=m.sibling,m.sibling=s,s=m,m=e}jo(n,!0,s,null,y,f);break;case"together":jo(n,!1,null,null,void 0,f);break;default:n.memoizedState=null}return n.child}function Sn(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),Pn|=n.lanes,(s&n.childLanes)===0)if(e!==null){if(zr(e,n,s,!1),(s&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,s=gn(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=gn(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function No(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&fa(e)))}function _p(e,n,s){switch(n.tag){case 3:qe(n,n.stateNode.containerInfo),zn(n,ct,e.memoizedState.cache),sr();break;case 27:case 5:nt(n);break;case 4:qe(n,n.stateNode.containerInfo);break;case 10:zn(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,to(n),null;break;case 13:var f=n.memoizedState;if(f!==null)return f.dehydrated!==null?(qn(n),n.flags|=128,null):(s&n.child.childLanes)!==0?Ic(e,n,s):(qn(n),e=Sn(e,n,s),e!==null?e.sibling:null);qn(n);break;case 19:var m=(e.flags&128)!==0;if(f=(s&n.childLanes)!==0,f||(zr(e,n,s,!1),f=(s&n.childLanes)!==0),m){if(f)return Uc(e,n,s);n.flags|=128}if(m=n.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),N(ot,ot.current),f)break;return null;case 22:return n.lanes=0,Nc(e,n,s,n.pendingProps);case 24:zn(n,ct,e.memoizedState.cache)}return Sn(e,n,s)}function qc(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps)dt=!0;else{if(!No(e,s)&&(n.flags&128)===0)return dt=!1,_p(e,n,s);dt=(e.flags&131072)!==0}else dt=!1,Fe&&(n.flags&1048576)!==0&&yu(n,gi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var f=n.pendingProps;if(e=dr(n.elementType),n.type=e,typeof e=="function")Ml(e)?(f=gr(e,f),n.tag=1,n=Mc(null,n,e,f,s)):(n.tag=0,n=wo(null,n,e,f,s));else{if(e!=null){var m=e.$$typeof;if(m===se){n.tag=11,n=Tc(null,n,e,f,s);break e}else if(m===ge){n.tag=14,n=_c(null,n,e,f,s);break e}}throw n=ye(e)||e,Error(o(306,n,""))}}return n;case 0:return wo(e,n,n.type,n.pendingProps,s);case 1:return f=n.type,m=gr(f,n.pendingProps),Mc(e,n,f,m,s);case 3:e:{if(qe(n,n.stateNode.containerInfo),e===null)throw Error(o(387));f=n.pendingProps;var y=n.memoizedState;m=y.element,Kl(e,n),wi(n,f,null,s);var w=n.memoizedState;if(f=w.cache,zn(n,ct,f),f!==y.cache&&Pl(n,[ct],s,!0),ki(),f=w.element,y.isDehydrated)if(y={element:f,isDehydrated:!1,cache:w.cache},n.updateQueue.baseState=y,n.memoizedState=y,n.flags&256){n=zc(e,n,f,s);break e}else if(f!==m){m=Xt(Error(o(424)),n),xi(m),n=zc(e,n,f,s);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,Fe=!0,Dn=null,Jt=!0,s=Nu(n,null,f,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(sr(),f===m){n=Sn(e,n,s);break e}Et(e,n,f,s)}n=n.child}return n;case 26:return ja(e,n),e===null?(s=Jf(n.type,null,n.pendingProps,null))?n.memoizedState=s:Fe||(s=n.type,e=n.pendingProps,f=Ya(Se.current).createElement(s),f[yt]=n,f[_t]=e,St(f,s,e),gt(f),n.stateNode=f):n.memoizedState=Jf(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return nt(n),e===null&&Fe&&(f=n.stateNode=Xf(n.type,n.pendingProps,Se.current),bt=n,Jt=!0,m=We,Xn(n.type)?(cs=m,We=en(f.firstChild)):We=m),Et(e,n,n.pendingProps.children,s),ja(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Fe&&((m=f=We)&&(f=ah(f,n.type,n.pendingProps,Jt),f!==null?(n.stateNode=f,bt=n,We=en(f.firstChild),Jt=!1,m=!0):m=!1),m||Mn(n)),nt(n),m=n.type,y=n.pendingProps,w=e!==null?e.memoizedProps:null,f=y.children,as(m,y)?f=null:w!==null&&as(m,w)&&(n.flags|=32),n.memoizedState!==null&&(m=ro(e,n,vp,null,null,s),Pi._currentValue=m),ja(e,n),Et(e,n,f,s),n.child;case 6:return e===null&&Fe&&((e=s=We)&&(s=lh(s,n.pendingProps,Jt),s!==null?(n.stateNode=s,bt=n,We=null,e=!0):e=!1),e||Mn(n)),null;case 13:return Ic(e,n,s);case 4:return qe(n,n.stateNode.containerInfo),f=n.pendingProps,e===null?n.child=hr(n,null,f,s):Et(e,n,f,s),n.child;case 11:return Tc(e,n,n.type,n.pendingProps,s);case 7:return Et(e,n,n.pendingProps,s),n.child;case 8:return Et(e,n,n.pendingProps.children,s),n.child;case 12:return Et(e,n,n.pendingProps.children,s),n.child;case 10:return f=n.pendingProps,zn(n,n.type,f.value),Et(e,n,f.children,s),n.child;case 9:return m=n.type._context,f=n.pendingProps.children,cr(n),m=vt(m),f=f(m),n.flags|=1,Et(e,n,f,s),n.child;case 14:return _c(e,n,n.type,n.pendingProps,s);case 15:return jc(e,n,n.type,n.pendingProps,s);case 19:return Uc(e,n,s);case 31:return Tp(e,n,s);case 22:return Nc(e,n,s,n.pendingProps);case 24:return cr(n),f=vt(ct),e===null?(m=Yl(),m===null&&(m=Ke,y=Hl(),m.pooledCache=y,y.refCount++,y!==null&&(m.pooledCacheLanes|=s),m=y),n.memoizedState={parent:f,cache:m},Xl(n),zn(n,ct,m)):((e.lanes&s)!==0&&(Kl(e,n),wi(n,null,null,s),ki()),m=e.memoizedState,y=n.memoizedState,m.parent!==f?(m={parent:f,cache:f},n.memoizedState=m,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=m),zn(n,ct,f)):(f=y.cache,zn(n,ct,f),f!==m.cache&&Pl(n,[ct],s,!0))),Et(e,n,n.pendingProps.children,s),n.child;case 29:throw n.pendingProps}throw Error(o(156,n.tag))}function kn(e){e.flags|=4}function Oo(e,n,s,f,m){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(m&335544128)===m)if(e.stateNode.complete)e.flags|=8192;else if(hf())e.flags|=8192;else throw pr=ma,Gl}else e.flags&=-16777217}function Fc(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?vs():536870912,e.lanes|=n,Gr|=n)}function ji(e,n){if(!Fe)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:f.sibling=null}}function et(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,f=0;if(n)for(var m=e.child;m!==null;)s|=m.lanes|m.childLanes,f|=m.subtreeFlags&65011712,f|=m.flags&65011712,m.return=e,m=m.sibling;else for(m=e.child;m!==null;)s|=m.lanes|m.childLanes,f|=m.subtreeFlags,f|=m.flags,m.return=e,m=m.sibling;return e.subtreeFlags|=f,e.childLanes=s,n}function jp(e,n,s){var f=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 s=n.stateNode,f=null,e!==null&&(f=e.memoizedState.cache),n.memoizedState.cache!==f&&(n.flags|=2048),bn(ct),je(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Mr(n)?kn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Fl())),et(n),null;case 26:var m=n.type,y=n.memoizedState;return e===null?(kn(n),y!==null?(et(n),Fc(n,y)):(et(n),Oo(n,m,null,f,s))):y?y!==e.memoizedState?(kn(n),et(n),Fc(n,y)):(et(n),n.flags&=-16777217):(e=e.memoizedProps,e!==f&&kn(n),et(n),Oo(n,m,e,f,s)),null;case 27:if(Qe(n),s=Se.current,m=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==f&&kn(n);else{if(!f){if(n.stateNode===null)throw Error(o(166));return et(n),null}e=be.current,Mr(n)?vu(n):(e=Xf(m,f,s),n.stateNode=e,kn(n))}return et(n),null;case 5:if(Qe(n),m=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==f&&kn(n);else{if(!f){if(n.stateNode===null)throw Error(o(166));return et(n),null}if(y=be.current,Mr(n))vu(n);else{var w=Ya(Se.current);switch(y){case 1:y=w.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:y=w.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":y=w.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":y=w.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":y=w.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof f.is=="string"?w.createElement("select",{is:f.is}):w.createElement("select"),f.multiple?y.multiple=!0:f.size&&(y.size=f.size);break;default:y=typeof f.is=="string"?w.createElement(m,{is:f.is}):w.createElement(m)}}y[yt]=n,y[_t]=f;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(St(y,m,f),m){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&kn(n)}}return et(n),Oo(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,s),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==f&&kn(n);else{if(typeof f!="string"&&n.stateNode===null)throw Error(o(166));if(e=Se.current,Mr(n)){if(e=n.stateNode,s=n.memoizedProps,f=null,m=bt,m!==null)switch(m.tag){case 27:case 5:f=m.memoizedProps}e[yt]=n,e=!!(e.nodeValue===s||f!==null&&f.suppressHydrationWarning===!0||Bf(e.nodeValue,s)),e||Mn(n,!0)}else e=Ya(e).createTextNode(f),e[yt]=n,n.stateNode=e}return et(n),null;case 31:if(s=n.memoizedState,e===null||e.memoizedState!==null){if(f=Mr(n),s!==null){if(e===null){if(!f)throw Error(o(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[yt]=n}else sr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;et(n),e=!1}else s=Fl(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return n.flags&256?(Ut(n),n):(Ut(n),null);if((n.flags&128)!==0)throw Error(o(558))}return et(n),null;case 13:if(f=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(m=Mr(n),f!==null&&f.dehydrated!==null){if(e===null){if(!m)throw Error(o(318));if(m=n.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(o(317));m[yt]=n}else sr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;et(n),m=!1}else m=Fl(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=m),m=!0;if(!m)return n.flags&256?(Ut(n),n):(Ut(n),null)}return Ut(n),(n.flags&128)!==0?(n.lanes=s,n):(s=f!==null,e=e!==null&&e.memoizedState!==null,s&&(f=n.child,m=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(m=f.alternate.memoizedState.cachePool.pool),y=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(y=f.memoizedState.cachePool.pool),y!==m&&(f.flags|=2048)),s!==e&&s&&(n.child.flags|=8192),Oa(n,n.updateQueue),et(n),null);case 4:return je(),e===null&&es(n.stateNode.containerInfo),et(n),null;case 10:return bn(n.type),et(n),null;case 19:if(oe(ot),f=n.memoizedState,f===null)return et(n),null;if(m=(n.flags&128)!==0,y=f.rendering,y===null)if(m)ji(f,!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(f,!1),e=y.updateQueue,n.updateQueue=e,Oa(n,e),n.subtreeFlags=0,e=s,s=n.child;s!==null;)mu(s,e),s=s.sibling;return N(ot,ot.current&1|2),Fe&&xn(n,f.treeForkCount),n.child}e=e.sibling}f.tail!==null&&Je()>Ia&&(n.flags|=128,m=!0,ji(f,!1),n.lanes=4194304)}else{if(!m)if(e=ba(y),e!==null){if(n.flags|=128,m=!0,e=e.updateQueue,n.updateQueue=e,Oa(n,e),ji(f,!0),f.tail===null&&f.tailMode==="hidden"&&!y.alternate&&!Fe)return et(n),null}else 2*Je()-f.renderingStartTime>Ia&&s!==536870912&&(n.flags|=128,m=!0,ji(f,!1),n.lanes=4194304);f.isBackwards?(y.sibling=n.child,n.child=y):(e=f.last,e!==null?e.sibling=y:n.child=y,f.last=y)}return f.tail!==null?(e=f.tail,f.rendering=e,f.tail=e.sibling,f.renderingStartTime=Je(),e.sibling=null,s=ot.current,N(ot,m?s&1|2:s&1),Fe&&xn(n,f.treeForkCount),e):(et(n),null);case 22:case 23:return Ut(n),eo(),f=n.memoizedState!==null,e!==null?e.memoizedState!==null!==f&&(n.flags|=8192):f&&(n.flags|=8192),f?(s&536870912)!==0&&(n.flags&128)===0&&(et(n),n.subtreeFlags&6&&(n.flags|=8192)):et(n),s=n.updateQueue,s!==null&&Oa(n,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),f=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(f=n.memoizedState.cachePool.pool),f!==s&&(n.flags|=2048),e!==null&&oe(fr),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),bn(ct),et(n),null;case 25:return null;case 30:return null}throw Error(o(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),je(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Qe(n),null;case 31:if(n.memoizedState!==null){if(Ut(n),n.alternate===null)throw Error(o(340));sr()}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(o(340));sr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return oe(ot),null;case 4:return je(),null;case 10:return bn(n.type),null;case 22:case 23:return Ut(n),eo(),e!==null&&oe(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 Zc(e,n){switch(Ul(n),n.tag){case 3:bn(ct),je();break;case 26:case 27:case 5:Qe(n);break;case 4:je();break;case 31:n.memoizedState!==null&&Ut(n);break;case 13:Ut(n);break;case 19:oe(ot);break;case 10:bn(n.type);break;case 22:case 23:Ut(n),eo(),e!==null&&oe(fr);break;case 24:bn(ct)}}function Ni(e,n){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var m=f.next;s=m;do{if((s.tag&e)===e){f=void 0;var y=s.create,w=s.inst;f=y(),w.destroy=f}s=s.next}while(s!==m)}}catch(T){$e(n,n.return,T)}}function Zn(e,n,s){try{var f=n.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var y=m.next;f=y;do{if((f.tag&e)===e){var w=f.inst,T=w.destroy;if(T!==void 0){w.destroy=void 0,m=n;var U=s,Q=T;try{Q()}catch(ce){$e(m,U,ce)}}}f=f.next}while(f!==y)}}catch(ce){$e(n,n.return,ce)}}function Vc(e){var n=e.updateQueue;if(n!==null){var s=e.stateNode;try{Lu(n,s)}catch(f){$e(e,e.return,f)}}}function Pc(e,n,s){s.props=gr(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(f){$e(e,n,f)}}function Oi(e,n){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var f=e.stateNode;break;case 30:f=e.stateNode;break;default:f=e.stateNode}typeof s=="function"?e.refCleanup=s(f):s.current=f}}catch(m){$e(e,n,m)}}function fn(e,n){var s=e.ref,f=e.refCleanup;if(s!==null)if(typeof f=="function")try{f()}catch(m){$e(e,n,m)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(m){$e(e,n,m)}else s.current=null}function Hc(e){var n=e.type,s=e.memoizedProps,f=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&f.focus();break e;case"img":s.src?f.src=s.src:s.srcSet&&(f.srcset=s.srcSet)}}catch(m){$e(e,e.return,m)}}function Lo(e,n,s){try{var f=e.stateNode;Wp(f,e.type,s,n),f[_t]=n}catch(m){$e(e,e.return,m)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xn(e.type)||e.tag===4}function Do(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$c(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&&Xn(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 Mo(e,n,s){var f=e.tag;if(f===5||f===6)e=e.stateNode,n?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,n):(n=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,n.appendChild(e),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=hn));else if(f!==4&&(f===27&&Xn(e.type)&&(s=e.stateNode,n=null),e=e.child,e!==null))for(Mo(e,n,s),e=e.sibling;e!==null;)Mo(e,n,s),e=e.sibling}function La(e,n,s){var f=e.tag;if(f===5||f===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(f!==4&&(f===27&&Xn(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(La(e,n,s),e=e.sibling;e!==null;)La(e,n,s),e=e.sibling}function Yc(e){var n=e.stateNode,s=e.memoizedProps;try{for(var f=e.type,m=n.attributes;m.length;)n.removeAttributeNode(m[0]);St(n,f,s),n[yt]=e,n[_t]=s}catch(y){$e(e,e.return,y)}}var wn=!1,pt=!1,zo=!1,Gc=typeof WeakSet=="function"?WeakSet:Set,xt=null;function Op(e,n){if(e=e.containerInfo,rs=el,e=lu(e),Tl(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var f=s.getSelection&&s.getSelection();if(f&&f.rangeCount!==0){s=f.anchorNode;var m=f.anchorOffset,y=f.focusNode;f=f.focusOffset;try{s.nodeType,y.nodeType}catch{s=null;break e}var w=0,T=-1,U=-1,Q=0,ce=0,me=e,J=null;t:for(;;){for(var ne;me!==s||m!==0&&me.nodeType!==3||(T=w+m),me!==y||f!==0&&me.nodeType!==3||(U=w+f),me.nodeType===3&&(w+=me.nodeValue.length),(ne=me.firstChild)!==null;)J=me,me=ne;for(;;){if(me===e)break t;if(J===s&&++Q===m&&(T=w),J===y&&++ce===f&&(U=w),(ne=me.nextSibling)!==null)break;me=J,J=me.parentNode}me=ne}s=T===-1||U===-1?null:{start:T,end:U}}else s=null}s=s||{start:0,end:0}}else s=null;for(is={focusedElem:e,selectionRange:s},el=!1,xt=n;xt!==null;)if(n=xt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,xt=e;else for(;xt!==null;){switch(n=xt,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(s=0;s<e.length;s++)m=e[s],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&y!==null){e=void 0,s=n,m=y.memoizedProps,y=y.memoizedState,f=s.stateNode;try{var Re=gr(s.type,m);e=f.getSnapshotBeforeUpdate(Re,y),f.__reactInternalSnapshotBeforeUpdate=e}catch(Le){$e(s,s.return,Le)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,s=e.nodeType,s===9)os(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":os(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(o(163))}if(e=n.sibling,e!==null){e.return=n.return,xt=e;break}xt=n.return}}function Xc(e,n,s){var f=s.flags;switch(s.tag){case 0:case 11:case 15:Rn(e,s),f&4&&Ni(5,s);break;case 1:if(Rn(e,s),f&4)if(e=s.stateNode,n===null)try{e.componentDidMount()}catch(w){$e(s,s.return,w)}else{var m=gr(s.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(m,n,e.__reactInternalSnapshotBeforeUpdate)}catch(w){$e(s,s.return,w)}}f&64&&Vc(s),f&512&&Oi(s,s.return);break;case 3:if(Rn(e,s),f&64&&(e=s.updateQueue,e!==null)){if(n=null,s.child!==null)switch(s.child.tag){case 27:case 5:n=s.child.stateNode;break;case 1:n=s.child.stateNode}try{Lu(e,n)}catch(w){$e(s,s.return,w)}}break;case 27:n===null&&f&4&&Yc(s);case 26:case 5:Rn(e,s),n===null&&f&4&&Hc(s),f&512&&Oi(s,s.return);break;case 12:Rn(e,s);break;case 31:Rn(e,s),f&4&&Jc(e,s);break;case 13:Rn(e,s),f&4&&Wc(e,s),f&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Fp.bind(null,s),oh(e,s))));break;case 22:if(f=s.memoizedState!==null||wn,!f){n=n!==null&&n.memoizedState!==null||pt,m=wn;var y=pt;wn=f,(pt=n)&&!y?An(e,s,(s.subtreeFlags&8772)!==0):Rn(e,s),wn=m,pt=y}break;case 30:break;default:Rn(e,s)}}function Kc(e){var n=e.alternate;n!==null&&(e.alternate=null,Kc(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 Cn(e,n,s){for(s=s.child;s!==null;)Qc(e,n,s),s=s.sibling}function Qc(e,n,s){if(j&&typeof j.onCommitFiberUnmount=="function")try{j.onCommitFiberUnmount(A,s)}catch{}switch(s.tag){case 26:pt||fn(s,n),Cn(e,n,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:pt||fn(s,n);var f=tt,m=Nt;Xn(s.type)&&(tt=s.stateNode,Nt=!1),Cn(e,n,s),Fi(s.stateNode),tt=f,Nt=m;break;case 5:pt||fn(s,n);case 6:if(f=tt,m=Nt,tt=null,Cn(e,n,s),tt=f,Nt=m,tt!==null)if(Nt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(s.stateNode)}catch(y){$e(s,n,y)}else try{tt.removeChild(s.stateNode)}catch(y){$e(s,n,y)}break;case 18:tt!==null&&(Nt?(e=tt,Pf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),ni(e)):Pf(tt,s.stateNode));break;case 4:f=tt,m=Nt,tt=s.stateNode.containerInfo,Nt=!0,Cn(e,n,s),tt=f,Nt=m;break;case 0:case 11:case 14:case 15:Zn(2,s,n),pt||Zn(4,s,n),Cn(e,n,s);break;case 1:pt||(fn(s,n),f=s.stateNode,typeof f.componentWillUnmount=="function"&&Pc(s,n,f)),Cn(e,n,s);break;case 21:Cn(e,n,s);break;case 22:pt=(f=pt)||s.memoizedState!==null,Cn(e,n,s),pt=f;break;default:Cn(e,n,s)}}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(s){$e(n,n.return,s)}}}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(s){$e(n,n.return,s)}}function Lp(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(o(435,e.tag))}}function Da(e,n){var s=Lp(e);n.forEach(function(f){if(!s.has(f)){s.add(f);var m=Zp.bind(null,e,f);f.then(m,m)}})}function Ot(e,n){var s=n.deletions;if(s!==null)for(var f=0;f<s.length;f++){var m=s[f],y=e,w=n,T=w;e:for(;T!==null;){switch(T.tag){case 27:if(Xn(T.type)){tt=T.stateNode,Nt=!1;break e}break;case 5:tt=T.stateNode,Nt=!1;break e;case 3:case 4:tt=T.stateNode.containerInfo,Nt=!0;break e}T=T.return}if(tt===null)throw Error(o(160));Qc(y,w,m),tt=null,Nt=!1,y=m.alternate,y!==null&&(y.return=null),m.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 s=e.alternate,f=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(n,e),Lt(e),f&4&&(Zn(3,e,e.return),Ni(3,e),Zn(5,e,e.return));break;case 1:Ot(n,e),Lt(e),f&512&&(pt||s===null||fn(s,s.return)),f&64&&wn&&(e=e.updateQueue,e!==null&&(f=e.callbacks,f!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?f:s.concat(f))));break;case 26:var m=rn;if(Ot(n,e),Lt(e),f&512&&(pt||s===null||fn(s,s.return)),f&4){var y=s!==null?s.memoizedState:null;if(f=e.memoizedState,s===null)if(f===null)if(e.stateNode===null){e:{f=e.type,s=e.memoizedProps,m=m.ownerDocument||m;t:switch(f){case"title":y=m.getElementsByTagName("title")[0],(!y||y[ai]||y[yt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=m.createElement(f),m.head.insertBefore(y,m.querySelector("head > title"))),St(y,f,s),y[yt]=e,gt(y),f=y;break e;case"link":var w=td("link","href",m).get(f+(s.href||""));if(w){for(var T=0;T<w.length;T++)if(y=w[T],y.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&y.getAttribute("rel")===(s.rel==null?null:s.rel)&&y.getAttribute("title")===(s.title==null?null:s.title)&&y.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){w.splice(T,1);break t}}y=m.createElement(f),St(y,f,s),m.head.appendChild(y);break;case"meta":if(w=td("meta","content",m).get(f+(s.content||""))){for(T=0;T<w.length;T++)if(y=w[T],y.getAttribute("content")===(s.content==null?null:""+s.content)&&y.getAttribute("name")===(s.name==null?null:s.name)&&y.getAttribute("property")===(s.property==null?null:s.property)&&y.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&y.getAttribute("charset")===(s.charSet==null?null:s.charSet)){w.splice(T,1);break t}}y=m.createElement(f),St(y,f,s),m.head.appendChild(y);break;default:throw Error(o(468,f))}y[yt]=e,gt(y),f=y}e.stateNode=f}else nd(m,e.type,e.stateNode);else e.stateNode=ed(m,f,e.memoizedProps);else y!==f?(y===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):y.count--,f===null?nd(m,e.type,e.stateNode):ed(m,f,e.memoizedProps)):f===null&&e.stateNode!==null&&Lo(e,e.memoizedProps,s.memoizedProps)}break;case 27:Ot(n,e),Lt(e),f&512&&(pt||s===null||fn(s,s.return)),s!==null&&f&4&&Lo(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Ot(n,e),Lt(e),f&512&&(pt||s===null||fn(s,s.return)),e.flags&32){m=e.stateNode;try{Cr(m,"")}catch(Re){$e(e,e.return,Re)}}f&4&&e.stateNode!=null&&(m=e.memoizedProps,Lo(e,m,s!==null?s.memoizedProps:m)),f&1024&&(zo=!0);break;case 6:if(Ot(n,e),Lt(e),f&4){if(e.stateNode===null)throw Error(o(162));f=e.memoizedProps,s=e.stateNode;try{s.nodeValue=f}catch(Re){$e(e,e.return,Re)}}break;case 3:if(Ka=null,m=rn,rn=Ga(n.containerInfo),Ot(n,e),rn=m,Lt(e),f&4&&s!==null&&s.memoizedState.isDehydrated)try{ni(n.containerInfo)}catch(Re){$e(e,e.return,Re)}zo&&(zo=!1,tf(e));break;case 4:f=rn,rn=Ga(e.stateNode.containerInfo),Ot(n,e),Lt(e),rn=f;break;case 12:Ot(n,e),Lt(e);break;case 31:Ot(n,e),Lt(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Da(e,f)));break;case 13:Ot(n,e),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(za=Je()),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Da(e,f)));break;case 22:m=e.memoizedState!==null;var U=s!==null&&s.memoizedState!==null,Q=wn,ce=pt;if(wn=Q||m,pt=ce||U,Ot(n,e),pt=ce,wn=Q,Lt(e),f&8192)e:for(n=e.stateNode,n._visibility=m?n._visibility&-2:n._visibility|1,m&&(s===null||U||wn||pt||xr(e)),s=null,n=e;;){if(n.tag===5||n.tag===26){if(s===null){U=s=n;try{if(y=U.stateNode,m)w=y.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{T=U.stateNode;var me=U.memoizedProps.style,J=me!=null&&me.hasOwnProperty("display")?me.display:null;T.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(Re){$e(U,U.return,Re)}}}else if(n.tag===6){if(s===null){U=n;try{U.stateNode.nodeValue=m?"":U.memoizedProps}catch(Re){$e(U,U.return,Re)}}}else if(n.tag===18){if(s===null){U=n;try{var ne=U.stateNode;m?Hf(ne,!0):Hf(U.stateNode,!1)}catch(Re){$e(U,U.return,Re)}}}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;s===n&&(s=null),n=n.return}s===n&&(s=null),n.sibling.return=n.return,n=n.sibling}f&4&&(f=e.updateQueue,f!==null&&(s=f.retryQueue,s!==null&&(f.retryQueue=null,Da(e,s))));break;case 19:Ot(n,e),Lt(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Da(e,f)));break;case 30:break;case 21:break;default:Ot(n,e),Lt(e)}}function Lt(e){var n=e.flags;if(n&2){try{for(var s,f=e.return;f!==null;){if($c(f)){s=f;break}f=f.return}if(s==null)throw Error(o(160));switch(s.tag){case 27:var m=s.stateNode,y=Do(e);La(e,y,m);break;case 5:var w=s.stateNode;s.flags&32&&(Cr(w,""),s.flags&=-33);var T=Do(e);La(e,T,w);break;case 3:case 4:var U=s.stateNode.containerInfo,Q=Do(e);Mo(e,Q,U);break;default:throw Error(o(161))}}catch(ce){$e(e,e.return,ce)}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 Rn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Xc(e,n.alternate,n),n=n.sibling}function xr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Zn(4,n,n.return),xr(n);break;case 1:fn(n,n.return);var s=n.stateNode;typeof s.componentWillUnmount=="function"&&Pc(n,n.return,s),xr(n);break;case 27:Fi(n.stateNode);case 26:case 5:fn(n,n.return),xr(n);break;case 22:n.memoizedState===null&&xr(n);break;case 30:xr(n);break;default:xr(n)}e=e.sibling}}function An(e,n,s){for(s=s&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var f=n.alternate,m=e,y=n,w=y.flags;switch(y.tag){case 0:case 11:case 15:An(m,y,s),Ni(4,y);break;case 1:if(An(m,y,s),f=y,m=f.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(Q){$e(f,f.return,Q)}if(f=y,m=f.updateQueue,m!==null){var T=f.stateNode;try{var U=m.shared.hiddenCallbacks;if(U!==null)for(m.shared.hiddenCallbacks=null,m=0;m<U.length;m++)Ou(U[m],T)}catch(Q){$e(f,f.return,Q)}}s&&w&64&&Vc(y),Oi(y,y.return);break;case 27:Yc(y);case 26:case 5:An(m,y,s),s&&f===null&&w&4&&Hc(y),Oi(y,y.return);break;case 12:An(m,y,s);break;case 31:An(m,y,s),s&&w&4&&Jc(m,y);break;case 13:An(m,y,s),s&&w&4&&Wc(m,y);break;case 22:y.memoizedState===null&&An(m,y,s),Oi(y,y.return);break;case 30:break;default:An(m,y,s)}n=n.sibling}}function Io(e,n){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&yi(s))}function Bo(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&yi(e))}function an(e,n,s,f){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)nf(e,n,s,f),n=n.sibling}function nf(e,n,s,f){var m=n.flags;switch(n.tag){case 0:case 11:case 15:an(e,n,s,f),m&2048&&Ni(9,n);break;case 1:an(e,n,s,f);break;case 3:an(e,n,s,f),m&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&yi(e)));break;case 12:if(m&2048){an(e,n,s,f),e=n.stateNode;try{var y=n.memoizedProps,w=y.id,T=y.onPostCommit;typeof T=="function"&&T(w,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(U){$e(n,n.return,U)}}else an(e,n,s,f);break;case 31:an(e,n,s,f);break;case 13:an(e,n,s,f);break;case 23:break;case 22:y=n.stateNode,w=n.alternate,n.memoizedState!==null?y._visibility&2?an(e,n,s,f):Li(e,n):y._visibility&2?an(e,n,s,f):(y._visibility|=2,Hr(e,n,s,f,(n.subtreeFlags&10256)!==0||!1)),m&2048&&Io(w,n);break;case 24:an(e,n,s,f),m&2048&&Bo(n.alternate,n);break;default:an(e,n,s,f)}}function Hr(e,n,s,f,m){for(m=m&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var y=e,w=n,T=s,U=f,Q=w.flags;switch(w.tag){case 0:case 11:case 15:Hr(y,w,T,U,m),Ni(8,w);break;case 23:break;case 22:var ce=w.stateNode;w.memoizedState!==null?ce._visibility&2?Hr(y,w,T,U,m):Li(y,w):(ce._visibility|=2,Hr(y,w,T,U,m)),m&&Q&2048&&Io(w.alternate,w);break;case 24:Hr(y,w,T,U,m),m&&Q&2048&&Bo(w.alternate,w);break;default:Hr(y,w,T,U,m)}n=n.sibling}}function Li(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var s=e,f=n,m=f.flags;switch(f.tag){case 22:Li(s,f),m&2048&&Io(f.alternate,f);break;case 24:Li(s,f),m&2048&&Bo(f.alternate,f);break;default:Li(s,f)}n=n.sibling}}var Di=8192;function $r(e,n,s){if(e.subtreeFlags&Di)for(e=e.child;e!==null;)rf(e,n,s),e=e.sibling}function rf(e,n,s){switch(e.tag){case 26:$r(e,n,s),e.flags&Di&&e.memoizedState!==null&&bh(s,rn,e.memoizedState,e.memoizedProps);break;case 5:$r(e,n,s);break;case 3:case 4:var f=rn;rn=Ga(e.stateNode.containerInfo),$r(e,n,s),rn=f;break;case 22:e.memoizedState===null&&(f=e.alternate,f!==null&&f.memoizedState!==null?(f=Di,Di=16777216,$r(e,n,s),Di=f):$r(e,n,s));break;default:$r(e,n,s)}}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 Mi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var f=n[s];xt=f,of(f,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:Mi(e),e.flags&2048&&Zn(9,e,e.return);break;case 3:Mi(e);break;case 12:Mi(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Ma(e)):Mi(e);break;default:Mi(e)}}function Ma(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var f=n[s];xt=f,of(f,e)}af(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Zn(8,n,n.return),Ma(n);break;case 22:s=n.stateNode,s._visibility&2&&(s._visibility&=-3,Ma(n));break;default:Ma(n)}e=e.sibling}}function of(e,n){for(;xt!==null;){var s=xt;switch(s.tag){case 0:case 11:case 15:Zn(8,s,n);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var f=s.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:yi(s.memoizedState.cache)}if(f=s.child,f!==null)f.return=s,xt=f;else e:for(s=e;xt!==null;){f=xt;var m=f.sibling,y=f.return;if(Kc(f),f===s){xt=null;break e}if(m!==null){m.return=y,xt=m;break e}xt=y}}}var Dp={getCacheForType:function(e){var n=vt(ct),s=n.data.get(e);return s===void 0&&(s=e(),n.data.set(e,s)),s},cacheSignal:function(){return vt(ct).controller.signal}},Mp=typeof WeakMap=="function"?WeakMap:Map,Pe=0,Ke=null,ze=null,Be=0,He=0,qt=null,Vn=!1,Yr=!1,Uo=!1,Tn=0,it=0,Pn=0,yr=0,qo=0,Ft=0,Gr=0,zi=null,Dt=null,Fo=!1,za=0,sf=0,Ia=1/0,Ba=null,Hn=null,ht=0,$n=null,Xr=null,_n=0,Zo=0,Vo=null,uf=null,Ii=0,Po=null;function Zt(){return(Pe&2)!==0&&Be!==0?Be&-Be:P.T!==null?Ko():ws()}function cf(){if(Ft===0)if((Be&536870912)===0||Fe){var e=we;we<<=1,(we&3932160)===0&&(we=262144),Ft=e}else Ft=536870912;return e=Bt.current,e!==null&&(e.flags|=32),Ft}function Mt(e,n,s){(e===Ke&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Kr(e,0),Yn(e,Be,Ft,!1)),ii(e,s),((Pe&2)===0||e!==Ke)&&(e===Ke&&((Pe&2)===0&&(yr|=s),it===4&&Yn(e,Be,Ft,!1)),dn(e))}function ff(e,n,s){if((Pe&6)!==0)throw Error(o(327));var f=!s&&(n&127)===0&&(n&e.expiredLanes)===0||ri(e,n),m=f?Bp(e,n):$o(e,n,!0),y=f;do{if(m===0){Yr&&!f&&Yn(e,n,0,!1);break}else{if(s=e.current.alternate,y&&!zp(s)){m=$o(e,n,!1),y=!1;continue}if(m===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 T=e;m=zi;var U=T.current.memoizedState.isDehydrated;if(U&&(Kr(T,w).flags|=256),w=$o(T,w,!1),w!==2){if(Uo&&!U){T.errorRecoveryDisabledLanes|=y,yr|=y,m=4;break e}y=Dt,Dt=m,y!==null&&(Dt===null?Dt=y:Dt.push.apply(Dt,y))}m=w}if(y=!1,m!==2)continue}}if(m===1){Kr(e,0),Yn(e,n,0,!0);break}e:{switch(f=e,y=m,y){case 0:case 1:throw Error(o(345));case 4:if((n&4194048)!==n)break;case 6:Yn(f,n,Ft,!Vn);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((n&62914560)===n&&(m=za+300-Je(),10<m)){if(Yn(f,n,Ft,!Vn),Gi(f,0,!0)!==0)break e;_n=n,f.timeoutHandle=Zf(df.bind(null,f,s,Dt,Ba,Fo,n,Ft,yr,Gr,Vn,y,"Throttled",-0,0),m);break e}df(f,s,Dt,Ba,Fo,n,Ft,yr,Gr,Vn,y,null,-0,0)}}break}while(!0);dn(e)}function df(e,n,s,f,m,y,w,T,U,Q,ce,me,J,ne){if(e.timeoutHandle=-1,me=n.subtreeFlags,me&8192||(me&16785408)===16785408){me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},rf(n,y,me);var Re=(y&62914560)===y?za-Je():(y&4194048)===y?sf-Je():0;if(Re=vh(me,Re),Re!==null){_n=y,e.cancelPendingCommit=Re(vf.bind(null,e,n,y,s,f,m,w,T,U,ce,me,null,J,ne)),Yn(e,y,w,!Q);return}}vf(e,n,y,s,f,m,w,T,U)}function zp(e){for(var n=e;;){var s=n.tag;if((s===0||s===11||s===15)&&n.flags&16384&&(s=n.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var f=0;f<s.length;f++){var m=s[f],y=m.getSnapshot;m=m.value;try{if(!zt(y(),m))return!1}catch{return!1}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;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 Yn(e,n,s,f){n&=~qo,n&=~yr,e.suspendedLanes|=n,e.pingedLanes&=~n,f&&(e.warmLanes|=n),f=e.expirationTimes;for(var m=n;0<m;){var y=31-z(m),w=1<<y;f[y]=-1,m&=~w}s!==0&&Es(e,s,n)}function Ua(){return(Pe&6)===0?(Bi(0),!1):!0}function Ho(){if(ze!==null){if(He===0)var e=ze.return;else e=ze,yn=ur=null,lo(e),qr=null,vi=0,e=ze;for(;e!==null;)Zc(e.alternate,e),e=e.return;ze=null}}function Kr(e,n){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,nh(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),_n=0,Ho(),Ke=e,ze=s=gn(e.current,null),Be=n,He=0,qt=null,Vn=!1,Yr=ri(e,n),Uo=!1,Gr=Ft=qo=yr=Pn=it=0,Dt=zi=null,Fo=!1,(n&8)!==0&&(n|=n&32);var f=e.entangledLanes;if(f!==0)for(e=e.entanglements,f&=n;0<f;){var m=31-z(f),y=1<<m;n|=e[m],f&=~y}return Tn=n,la(),s}function pf(e,n){De=null,P.H=Ti,n===Ur||n===ha?(n=Tu(),He=3):n===Gl?(n=Tu(),He=4):He=n===ko?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,qt=n,ze===null&&(it=1,Ta(e,Xt(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=P.H;return P.H=Ti,e===null?Ti:e}function gf(){var e=P.A;return P.A=Dp,e}function qa(){it=4,Vn||(Be&4194048)!==Be&&Bt.current!==null||(Yr=!0),(Pn&134217727)===0&&(yr&134217727)===0||Ke===null||Yn(Ke,Be,Ft,!1)}function $o(e,n,s){var f=Pe;Pe|=2;var m=mf(),y=gf();(Ke!==e||Be!==n)&&(Ba=null,Kr(e,n)),n=!1;var w=it;e:do try{if(He!==0&&ze!==null){var T=ze,U=qt;switch(He){case 8:Ho(),w=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(n=!0);var Q=He;if(He=0,qt=null,Qr(e,T,U,Q),s&&Yr){w=0;break e}break;default:Q=He,He=0,qt=null,Qr(e,T,U,Q)}}Ip(),w=it;break}catch(ce){pf(e,ce)}while(!0);return n&&e.shellSuspendCounter++,yn=ur=null,Pe=f,P.H=m,P.A=y,ze===null&&(Ke=null,Be=0,la()),w}function Ip(){for(;ze!==null;)xf(ze)}function Bp(e,n){var s=Pe;Pe|=2;var f=mf(),m=gf();Ke!==e||Be!==n?(Ba=null,Ia=Je()+500,Kr(e,n)):Yr=ri(e,n);e:do try{if(He!==0&&ze!==null){n=ze;var y=qt;t:switch(He){case 1:He=0,qt=null,Qr(e,n,y,1);break;case 2:case 9:if(Ru(y)){He=0,qt=null,yf(n);break}n=function(){He!==2&&He!==9||Ke!==e||(He=7),dn(e)},y.then(n,n);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Ru(y)?(He=0,qt=null,yf(n)):(He=0,qt=null,Qr(e,n,y,7));break;case 5:var w=null;switch(ze.tag){case 26:w=ze.memoizedState;case 5:case 27:var T=ze;if(w?rd(w):T.stateNode.complete){He=0,qt=null;var U=T.sibling;if(U!==null)ze=U;else{var Q=T.return;Q!==null?(ze=Q,Fa(Q)):ze=null}break t}}He=0,qt=null,Qr(e,n,y,5);break;case 6:He=0,qt=null,Qr(e,n,y,6);break;case 8:Ho(),it=6;break e;default:throw Error(o(462))}}Up();break}catch(ce){pf(e,ce)}while(!0);return yn=ur=null,P.H=f,P.A=m,Pe=s,ze!==null?0:(Ke=null,Be=0,la(),it)}function Up(){for(;ze!==null&&!ln();)xf(ze)}function xf(e){var n=qc(e.alternate,e,Tn);e.memoizedProps=e.pendingProps,n===null?Fa(e):ze=n}function yf(e){var n=e,s=n.alternate;switch(n.tag){case 15:case 0:n=Dc(s,n,n.pendingProps,n.type,void 0,Be);break;case 11:n=Dc(s,n,n.pendingProps,n.type.render,n.ref,Be);break;case 5:lo(n);default:Zc(s,n),n=ze=mu(n,Tn),n=qc(s,n,Tn)}e.memoizedProps=e.pendingProps,n===null?Fa(e):ze=n}function Qr(e,n,s,f){yn=ur=null,lo(n),qr=null,vi=0;var m=n.return;try{if(Ap(e,m,n,s,Be)){it=1,Ta(e,Xt(s,e.current)),ze=null;return}}catch(y){if(m!==null)throw ze=m,y;it=1,Ta(e,Xt(s,e.current)),ze=null;return}n.flags&32768?(Fe||f===1?e=!0:Yr||(Be&536870912)!==0?e=!1:(Vn=e=!0,(f===2||f===9||f===3||f===6)&&(f=Bt.current,f!==null&&f.tag===13&&(f.flags|=16384))),bf(n,e)):Fa(n)}function Fa(e){var n=e;do{if((n.flags&32768)!==0){bf(n,Vn);return}e=n.return;var s=jp(n.alternate,n,Tn);if(s!==null){ze=s;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);it===0&&(it=5)}function bf(e,n){do{var s=Np(e.alternate,e);if(s!==null){s.flags&=32767,ze=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!n&&(e=e.sibling,e!==null)){ze=e;return}ze=e=s}while(e!==null);it=6,ze=null}function vf(e,n,s,f,m,y,w,T,U){e.cancelPendingCommit=null;do Za();while(ht!==0);if((Pe&6)!==0)throw Error(o(327));if(n!==null){if(n===e.current)throw Error(o(177));if(y=n.lanes|n.childLanes,y|=Ll,yd(e,s,y,w,T,U),e===Ke&&(ze=Ke=null,Be=0),Xr=n,$n=e,_n=s,Zo=y,Vo=m,uf=f,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Vp(le,function(){return Cf(),null})):(e.callbackNode=null,e.callbackPriority=0),f=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||f){f=P.T,P.T=null,m=he.p,he.p=2,w=Pe,Pe|=4;try{Op(e,n,s)}finally{Pe=w,he.p=m,P.T=f}}ht=1,Ef(),Sf(),kf()}}function Ef(){if(ht===1){ht=0;var e=$n,n=Xr,s=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||s){s=P.T,P.T=null;var f=he.p;he.p=2;var m=Pe;Pe|=4;try{ef(n,e);var y=is,w=lu(e.containerInfo),T=y.focusedElem,U=y.selectionRange;if(w!==T&&T&&T.ownerDocument&&au(T.ownerDocument.documentElement,T)){if(U!==null&&Tl(T)){var Q=U.start,ce=U.end;if(ce===void 0&&(ce=Q),"selectionStart"in T)T.selectionStart=Q,T.selectionEnd=Math.min(ce,T.value.length);else{var me=T.ownerDocument||document,J=me&&me.defaultView||window;if(J.getSelection){var ne=J.getSelection(),Re=T.textContent.length,Le=Math.min(U.start,Re),Xe=U.end===void 0?Le:Math.min(U.end,Re);!ne.extend&&Le>Xe&&(w=Xe,Xe=Le,Le=w);var Y=iu(T,Le),F=iu(T,Xe);if(Y&&F&&(ne.rangeCount!==1||ne.anchorNode!==Y.node||ne.anchorOffset!==Y.offset||ne.focusNode!==F.node||ne.focusOffset!==F.offset)){var G=me.createRange();G.setStart(Y.node,Y.offset),ne.removeAllRanges(),Le>Xe?(ne.addRange(G),ne.extend(F.node,F.offset)):(G.setEnd(F.node,F.offset),ne.addRange(G))}}}}for(me=[],ne=T;ne=ne.parentNode;)ne.nodeType===1&&me.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<me.length;T++){var pe=me[T];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}el=!!rs,is=rs=null}finally{Pe=m,he.p=f,P.T=s}}e.current=n,ht=2}}function Sf(){if(ht===2){ht=0;var e=$n,n=Xr,s=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||s){s=P.T,P.T=null;var f=he.p;he.p=2;var m=Pe;Pe|=4;try{Xc(e,n.alternate,n)}finally{Pe=m,he.p=f,P.T=s}}ht=3}}function kf(){if(ht===4||ht===3){ht=0,on();var e=$n,n=Xr,s=_n,f=uf;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ht=5:(ht=0,Xr=$n=null,wf(e,e.pendingLanes));var m=e.pendingLanes;if(m===0&&(Hn=null),ul(s),n=n.stateNode,j&&typeof j.onCommitFiberRoot=="function")try{j.onCommitFiberRoot(A,n,void 0,(n.current.flags&128)===128)}catch{}if(f!==null){n=P.T,m=he.p,he.p=2,P.T=null;try{for(var y=e.onRecoverableError,w=0;w<f.length;w++){var T=f[w];y(T.value,{componentStack:T.stack})}}finally{P.T=n,he.p=m}}(_n&3)!==0&&Za(),dn(e),m=e.pendingLanes,(s&261930)!==0&&(m&42)!==0?e===Po?Ii++:(Ii=0,Po=e):Ii=0,Bi(0)}}function wf(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,yi(n)))}function Za(){return Ef(),Sf(),kf(),Cf()}function Cf(){if(ht!==5)return!1;var e=$n,n=Zo;Zo=0;var s=ul(_n),f=P.T,m=he.p;try{he.p=32>s?32:s,P.T=null,s=Vo,Vo=null;var y=$n,w=_n;if(ht=0,Xr=$n=null,_n=0,(Pe&6)!==0)throw Error(o(331));var T=Pe;if(Pe|=4,lf(y.current),nf(y,y.current,w,s),Pe=T,Bi(0,!1),j&&typeof j.onPostCommitFiberRoot=="function")try{j.onPostCommitFiberRoot(A,y)}catch{}return!0}finally{he.p=m,P.T=f,wf(e,n)}}function Rf(e,n,s){n=Xt(s,n),n=So(e.stateNode,n,2),e=Un(e,n,2),e!==null&&(ii(e,2),dn(e))}function $e(e,n,s){if(e.tag===3)Rf(e,e,s);else for(;n!==null;){if(n.tag===3){Rf(n,e,s);break}else if(n.tag===1){var f=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Hn===null||!Hn.has(f))){e=Xt(s,e),s=Rc(2),f=Un(n,s,2),f!==null&&(Ac(s,f,n,e),ii(f,2),dn(f));break}}n=n.return}}function Yo(e,n,s){var f=e.pingCache;if(f===null){f=e.pingCache=new Mp;var m=new Set;f.set(n,m)}else m=f.get(n),m===void 0&&(m=new Set,f.set(n,m));m.has(s)||(Uo=!0,m.add(s),e=qp.bind(null,e,n,s),n.then(e,e))}function qp(e,n,s){var f=e.pingCache;f!==null&&f.delete(n),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Ke===e&&(Be&s)===s&&(it===4||it===3&&(Be&62914560)===Be&&300>Je()-za?(Pe&2)===0&&Kr(e,0):qo|=s,Gr===Be&&(Gr=0)),dn(e)}function Af(e,n){n===0&&(n=vs()),e=lr(e,n),e!==null&&(ii(e,n),dn(e))}function Fp(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),Af(e,s)}function Zp(e,n){var s=0;switch(e.tag){case 31:case 13:var f=e.stateNode,m=e.memoizedState;m!==null&&(s=m.retryLane);break;case 19:f=e.stateNode;break;case 22:f=e.stateNode._retryCache;break;default:throw Error(o(314))}f!==null&&f.delete(n),Af(e,s)}function Vp(e,n){return Ct(e,n)}var Va=null,Jr=null,Go=!1,Pa=!1,Xo=!1,Gn=0;function dn(e){e!==Jr&&e.next===null&&(Jr===null?Va=Jr=e:Jr=Jr.next=e),Pa=!0,Go||(Go=!0,Hp())}function Bi(e,n){if(!Xo&&Pa){Xo=!0;do for(var s=!1,f=Va;f!==null;){if(e!==0){var m=f.pendingLanes;if(m===0)var y=0;else{var w=f.suspendedLanes,T=f.pingedLanes;y=(1<<31-z(42|e)+1)-1,y&=m&~(w&~T),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(s=!0,Nf(f,y))}else y=Be,y=Gi(f,f===Ke?y:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(y&3)===0||ri(f,y)||(s=!0,Nf(f,y));f=f.next}while(s);Xo=!1}}function Pp(){Tf()}function Tf(){Pa=Go=!1;var e=0;Gn!==0&&th()&&(e=Gn);for(var n=Je(),s=null,f=Va;f!==null;){var m=f.next,y=_f(f,n);y===0?(f.next=null,s===null?Va=m:s.next=m,m===null&&(Jr=s)):(s=f,(e!==0||(y&3)!==0)&&(Pa=!0)),f=m}ht!==0&&ht!==5||Bi(e),Gn!==0&&(Gn=0)}function _f(e,n){for(var s=e.suspendedLanes,f=e.pingedLanes,m=e.expirationTimes,y=e.pendingLanes&-62914561;0<y;){var w=31-z(y),T=1<<w,U=m[w];U===-1?((T&s)===0||(T&f)!==0)&&(m[w]=xd(T,n)):U<=n&&(e.expiredLanes|=T),y&=~T}if(n=Ke,s=Be,s=Gi(e,e===n?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),f=e.callbackNode,s===0||e===n&&(He===2||He===9)||e.cancelPendingCommit!==null)return f!==null&&f!==null&&Ht(f),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||ri(e,s)){if(n=s&-s,n===e.callbackPriority)return n;switch(f!==null&&Ht(f),ul(s)){case 2:case 8:s=Z;break;case 32:s=le;break;case 268435456:s=E;break;default:s=le}return f=jf.bind(null,e),s=Ct(s,f),e.callbackPriority=n,e.callbackNode=s,n}return f!==null&&f!==null&&Ht(f),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 s=e.callbackNode;if(Za()&&e.callbackNode!==s)return null;var f=Be;return f=Gi(e,e===Ke?f:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),f===0?null:(ff(e,f,n),_f(e,Je()),e.callbackNode!=null&&e.callbackNode===s?jf.bind(null,e):null)}function Nf(e,n){if(Za())return null;ff(e,n,!0)}function Hp(){rh(function(){(Pe&6)!==0?Ct(M,Pp):Tf()})}function Ko(){if(Gn===0){var e=Ir;e===0&&(e=Ae,Ae<<=1,(Ae&261888)===0&&(Ae=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 Lf(e,n){var s=n.ownerDocument.createElement("input");return s.name=n.name,s.value=n.value,e.id&&s.setAttribute("form",e.id),n.parentNode.insertBefore(s,n),e=new FormData(e),s.parentNode.removeChild(s),e}function $p(e,n,s,f,m){if(n==="submit"&&s&&s.stateNode===m){var y=Of((m[_t]||null).action),w=f.submitter;w&&(n=(n=w[_t]||null)?Of(n.formAction):w.getAttribute("formAction"),n!==null&&(y=n,w=null));var T=new na("action","action",null,f,m);e.push({event:T,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Gn!==0){var U=w?Lf(m,w):new FormData(m);go(s,{pending:!0,data:U,method:m.method,action:y},null,U)}}else typeof y=="function"&&(T.preventDefault(),U=w?Lf(m,w):new FormData(m),go(s,{pending:!0,data:U,method:m.method,action:y},y,U))},currentTarget:m}]})}}for(var Qo=0;Qo<Ol.length;Qo++){var Jo=Ol[Qo],Yp=Jo.toLowerCase(),Gp=Jo[0].toUpperCase()+Jo.slice(1);nn(Yp,"on"+Gp)}nn(uu,"onAnimationEnd"),nn(cu,"onAnimationIteration"),nn(fu,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(cp,"onTransitionRun"),nn(fp,"onTransitionStart"),nn(dp,"onTransitionCancel"),nn(du,"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(" "),Xp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ui));function Df(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var f=e[s],m=f.event;f=f.listeners;e:{var y=void 0;if(n)for(var w=f.length-1;0<=w;w--){var T=f[w],U=T.instance,Q=T.currentTarget;if(T=T.listener,U!==y&&m.isPropagationStopped())break e;y=T,m.currentTarget=Q;try{y(m)}catch(ce){aa(ce)}m.currentTarget=null,y=U}else for(w=0;w<f.length;w++){if(T=f[w],U=T.instance,Q=T.currentTarget,T=T.listener,U!==y&&m.isPropagationStopped())break e;y=T,m.currentTarget=Q;try{y(m)}catch(ce){aa(ce)}m.currentTarget=null,y=U}}}}function Ie(e,n){var s=n[cl];s===void 0&&(s=n[cl]=new Set);var f=e+"__bubble";s.has(f)||(Mf(n,e,2,!1),s.add(f))}function Wo(e,n,s){var f=0;n&&(f|=4),Mf(s,e,f,n)}var Ha="_reactListening"+Math.random().toString(36).slice(2);function es(e){if(!e[Ha]){e[Ha]=!0,As.forEach(function(s){s!=="selectionchange"&&(Xp.has(s)||Wo(s,!1,e),Wo(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ha]||(n[Ha]=!0,Wo("selectionchange",!1,n))}}function Mf(e,n,s,f){switch(cd(n)){case 2:var m=kh;break;case 8:m=wh;break;default:m=ms}s=m.bind(null,n,s,e),m=void 0,!bl||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(m=!0),f?m!==void 0?e.addEventListener(n,s,{capture:!0,passive:m}):e.addEventListener(n,s,!0):m!==void 0?e.addEventListener(n,s,{passive:m}):e.addEventListener(n,s,!1)}function ts(e,n,s,f,m){var y=f;if((n&1)===0&&(n&2)===0&&f!==null)e:for(;;){if(f===null)return;var w=f.tag;if(w===3||w===4){var T=f.stateNode.containerInfo;if(T===m)break;if(w===4)for(w=f.return;w!==null;){var U=w.tag;if((U===3||U===4)&&w.stateNode.containerInfo===m)return;w=w.return}for(;T!==null;){if(w=vr(T),w===null)return;if(U=w.tag,U===5||U===6||U===26||U===27){f=y=w;continue e}T=T.parentNode}}f=f.return}Us(function(){var Q=y,ce=xl(s),me=[];e:{var J=pu.get(e);if(J!==void 0){var ne=na,Re=e;switch(e){case"keypress":if(ea(s)===0)break e;case"keydown":case"keyup":ne=Zd;break;case"focusin":Re="focus",ne=kl;break;case"focusout":Re="blur",ne=kl;break;case"beforeblur":case"afterblur":ne=kl;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=Zs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=jd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=Hd;break;case uu:case cu:case fu:ne=Ld;break;case du:ne=Yd;break;case"scroll":case"scrollend":ne=Td;break;case"wheel":ne=Xd;break;case"copy":case"cut":case"paste":ne=Md;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=Ps;break;case"toggle":case"beforetoggle":ne=Qd}var Le=(n&4)!==0,Xe=!Le&&(e==="scroll"||e==="scrollend"),Y=Le?J!==null?J+"Capture":null:J;Le=[];for(var F=Q,G;F!==null;){var pe=F;if(G=pe.stateNode,pe=pe.tag,pe!==5&&pe!==26&&pe!==27||G===null||Y===null||(pe=oi(F,Y),pe!=null&&Le.push(qi(F,pe,G))),Xe)break;F=F.return}0<Le.length&&(J=new ne(J,Re,null,s,ce),me.push({event:J,listeners:Le}))}}if((n&7)===0){e:{if(J=e==="mouseover"||e==="pointerover",ne=e==="mouseout"||e==="pointerout",J&&s!==gl&&(Re=s.relatedTarget||s.fromElement)&&(vr(Re)||Re[br]))break e;if((ne||J)&&(J=ce.window===ce?ce:(J=ce.ownerDocument)?J.defaultView||J.parentWindow:window,ne?(Re=s.relatedTarget||s.toElement,ne=Q,Re=Re?vr(Re):null,Re!==null&&(Xe=c(Re),Le=Re.tag,Re!==Xe||Le!==5&&Le!==27&&Le!==6)&&(Re=null)):(ne=null,Re=Q),ne!==Re)){if(Le=Zs,pe="onMouseLeave",Y="onMouseEnter",F="mouse",(e==="pointerout"||e==="pointerover")&&(Le=Ps,pe="onPointerLeave",Y="onPointerEnter",F="pointer"),Xe=ne==null?J:li(ne),G=Re==null?J:li(Re),J=new Le(pe,F+"leave",ne,s,ce),J.target=Xe,J.relatedTarget=G,pe=null,vr(ce)===Q&&(Le=new Le(Y,F+"enter",Re,s,ce),Le.target=G,Le.relatedTarget=Xe,pe=Le),Xe=pe,ne&&Re)t:{for(Le=Kp,Y=ne,F=Re,G=0,pe=Y;pe;pe=Le(pe))G++;pe=0;for(var Ne=F;Ne;Ne=Le(Ne))pe++;for(;0<G-pe;)Y=Le(Y),G--;for(;0<pe-G;)F=Le(F),pe--;for(;G--;){if(Y===F||F!==null&&Y===F.alternate){Le=Y;break t}Y=Le(Y),F=Le(F)}Le=null}else Le=null;ne!==null&&zf(me,J,ne,Le,!1),Re!==null&&Xe!==null&&zf(me,Xe,Re,Le,!0)}}e:{if(J=Q?li(Q):window,ne=J.nodeName&&J.nodeName.toLowerCase(),ne==="select"||ne==="input"&&J.type==="file")var Ze=Js;else if(Ks(J))if(Ws)Ze=op;else{Ze=ap;var Te=ip}else ne=J.nodeName,!ne||ne.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Q&&ml(Q.elementType)&&(Ze=Js):Ze=lp;if(Ze&&(Ze=Ze(e,Q))){Qs(me,Ze,s,ce);break e}Te&&Te(e,J,Q),e==="focusout"&&Q&&J.type==="number"&&Q.memoizedProps.value!=null&&hl(J,"number",J.value)}switch(Te=Q?li(Q):window,e){case"focusin":(Ks(Te)||Te.contentEditable==="true")&&(_r=Te,_l=Q,mi=null);break;case"focusout":mi=_l=_r=null;break;case"mousedown":jl=!0;break;case"contextmenu":case"mouseup":case"dragend":jl=!1,ou(me,s,ce);break;case"selectionchange":if(up)break;case"keydown":case"keyup":ou(me,s,ce)}var Me;if(Cl)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 Tr?Gs(e,s)&&(Ue="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Ue="onCompositionStart");Ue&&(Hs&&s.locale!=="ko"&&(Tr||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Tr&&(Me=qs()):(On=ce,vl="value"in On?On.value:On.textContent,Tr=!0)),Te=$a(Q,Ue),0<Te.length&&(Ue=new Vs(Ue,e,null,s,ce),me.push({event:Ue,listeners:Te}),Me?Ue.data=Me:(Me=Xs(s),Me!==null&&(Ue.data=Me)))),(Me=Wd?ep(e,s):tp(e,s))&&(Ue=$a(Q,"onBeforeInput"),0<Ue.length&&(Te=new Vs("onBeforeInput","beforeinput",null,s,ce),me.push({event:Te,listeners:Ue}),Te.data=Me)),$p(me,e,Q,s,ce)}Df(me,n)})}function qi(e,n,s){return{instance:e,listener:n,currentTarget:s}}function $a(e,n){for(var s=n+"Capture",f=[];e!==null;){var m=e,y=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||y===null||(m=oi(e,s),m!=null&&f.unshift(qi(e,m,y)),m=oi(e,n),m!=null&&f.push(qi(e,m,y))),e.tag===3)return f;e=e.return}return[]}function Kp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zf(e,n,s,f,m){for(var y=n._reactName,w=[];s!==null&&s!==f;){var T=s,U=T.alternate,Q=T.stateNode;if(T=T.tag,U!==null&&U===f)break;T!==5&&T!==26&&T!==27||Q===null||(U=Q,m?(Q=oi(s,y),Q!=null&&w.unshift(qi(s,Q,U))):m||(Q=oi(s,y),Q!=null&&w.push(qi(s,Q,U)))),s=s.return}w.length!==0&&e.push({event:n,listeners:w})}var Qp=/\r\n?/g,Jp=/\u0000|\uFFFD/g;function If(e){return(typeof e=="string"?e:""+e).replace(Qp,`
|
|
33
|
+
`).replace(Jp,"")}function Bf(e,n){return n=If(n),If(e)===n}function Ge(e,n,s,f,m,y){switch(s){case"children":typeof f=="string"?n==="body"||n==="textarea"&&f===""||Cr(e,f):(typeof f=="number"||typeof f=="bigint")&&n!=="body"&&Cr(e,""+f);break;case"className":Ki(e,"class",f);break;case"tabIndex":Ki(e,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Ki(e,s,f);break;case"style":Is(e,f,y);break;case"data":if(n!=="object"){Ki(e,"data",f);break}case"src":case"href":if(f===""&&(n!=="a"||s!=="href")){e.removeAttribute(s);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){e.removeAttribute(s);break}f=Ji(""+f),e.setAttribute(s,f);break;case"action":case"formAction":if(typeof f=="function"){e.setAttribute(s,"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"&&(s==="formAction"?(n!=="input"&&Ge(e,n,"name",m.name,m,null),Ge(e,n,"formEncType",m.formEncType,m,null),Ge(e,n,"formMethod",m.formMethod,m,null),Ge(e,n,"formTarget",m.formTarget,m,null)):(Ge(e,n,"encType",m.encType,m,null),Ge(e,n,"method",m.method,m,null),Ge(e,n,"target",m.target,m,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){e.removeAttribute(s);break}f=Ji(""+f),e.setAttribute(s,f);break;case"onClick":f!=null&&(e.onclick=hn);break;case"onScroll":f!=null&&Ie("scroll",e);break;case"onScrollEnd":f!=null&&Ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(o(61));if(s=f.__html,s!=null){if(m.children!=null)throw Error(o(60));e.innerHTML=s}}break;case"multiple":e.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":e.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){e.removeAttribute("xlink:href");break}s=Ji(""+f),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(s,""+f):e.removeAttribute(s);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":f&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":f===!0?e.setAttribute(s,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(s,f):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?e.setAttribute(s,f):e.removeAttribute(s);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?e.removeAttribute(s):e.setAttribute(s,f);break;case"popover":Ie("beforetoggle",e),Ie("toggle",e),Xi(e,"popover",f);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Xi(e,"is",f);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Rd.get(s)||s,Xi(e,s,f))}}function ns(e,n,s,f,m,y){switch(s){case"style":Is(e,f,y);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(o(61));if(s=f.__html,s!=null){if(m.children!=null)throw Error(o(60));e.innerHTML=s}}break;case"children":typeof f=="string"?Cr(e,f):(typeof f=="number"||typeof f=="bigint")&&Cr(e,""+f);break;case"onScroll":f!=null&&Ie("scroll",e);break;case"onScrollEnd":f!=null&&Ie("scrollend",e);break;case"onClick":f!=null&&(e.onclick=hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ts.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(m=s.endsWith("Capture"),n=s.slice(2,m?s.length-7:void 0),y=e[_t]||null,y=y!=null?y[s]:null,typeof y=="function"&&e.removeEventListener(n,y,m),typeof f=="function")){typeof y!="function"&&y!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(n,f,m);break e}s in e?e[s]=f:f===!0?e.setAttribute(s,""):Xi(e,s,f)}}}function St(e,n,s){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 f=!1,m=!1,y;for(y in s)if(s.hasOwnProperty(y)){var w=s[y];if(w!=null)switch(y){case"src":f=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Ge(e,n,y,w,s,null)}}m&&Ge(e,n,"srcSet",s.srcSet,s,null),f&&Ge(e,n,"src",s.src,s,null);return;case"input":Ie("invalid",e);var T=y=w=m=null,U=null,Q=null;for(f in s)if(s.hasOwnProperty(f)){var ce=s[f];if(ce!=null)switch(f){case"name":m=ce;break;case"type":w=ce;break;case"checked":U=ce;break;case"defaultChecked":Q=ce;break;case"value":y=ce;break;case"defaultValue":T=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(o(137,n));break;default:Ge(e,n,f,ce,s,null)}}Ls(e,y,T,U,Q,w,m,!1);return;case"select":Ie("invalid",e),f=w=y=null;for(m in s)if(s.hasOwnProperty(m)&&(T=s[m],T!=null))switch(m){case"value":y=T;break;case"defaultValue":w=T;break;case"multiple":f=T;default:Ge(e,n,m,T,s,null)}n=y,s=w,e.multiple=!!f,n!=null?wr(e,!!f,n,!1):s!=null&&wr(e,!!f,s,!0);return;case"textarea":Ie("invalid",e),y=m=f=null;for(w in s)if(s.hasOwnProperty(w)&&(T=s[w],T!=null))switch(w){case"value":f=T;break;case"defaultValue":m=T;break;case"children":y=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(91));break;default:Ge(e,n,w,T,s,null)}Ms(e,f,m,y);return;case"option":for(U in s)if(s.hasOwnProperty(U)&&(f=s[U],f!=null))switch(U){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ge(e,n,U,f,s,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(f=0;f<Ui.length;f++)Ie(Ui[f],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(Q in s)if(s.hasOwnProperty(Q)&&(f=s[Q],f!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Ge(e,n,Q,f,s,null)}return;default:if(ml(n)){for(ce in s)s.hasOwnProperty(ce)&&(f=s[ce],f!==void 0&&ns(e,n,ce,f,s,void 0));return}}for(T in s)s.hasOwnProperty(T)&&(f=s[T],f!=null&&Ge(e,n,T,f,s,null))}function Wp(e,n,s,f){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,y=null,w=null,T=null,U=null,Q=null,ce=null;for(ne in s){var me=s[ne];if(s.hasOwnProperty(ne)&&me!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":U=me;default:f.hasOwnProperty(ne)||Ge(e,n,ne,null,f,me)}}for(var J in f){var ne=f[J];if(me=s[J],f.hasOwnProperty(J)&&(ne!=null||me!=null))switch(J){case"type":y=ne;break;case"name":m=ne;break;case"checked":Q=ne;break;case"defaultChecked":ce=ne;break;case"value":w=ne;break;case"defaultValue":T=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(o(137,n));break;default:ne!==me&&Ge(e,n,J,ne,f,me)}}pl(e,w,T,U,Q,ce,y,m);return;case"select":ne=w=T=J=null;for(y in s)if(U=s[y],s.hasOwnProperty(y)&&U!=null)switch(y){case"value":break;case"multiple":ne=U;default:f.hasOwnProperty(y)||Ge(e,n,y,null,f,U)}for(m in f)if(y=f[m],U=s[m],f.hasOwnProperty(m)&&(y!=null||U!=null))switch(m){case"value":J=y;break;case"defaultValue":T=y;break;case"multiple":w=y;default:y!==U&&Ge(e,n,m,y,f,U)}n=T,s=w,f=ne,J!=null?wr(e,!!s,J,!1):!!f!=!!s&&(n!=null?wr(e,!!s,n,!0):wr(e,!!s,s?[]:"",!1));return;case"textarea":ne=J=null;for(T in s)if(m=s[T],s.hasOwnProperty(T)&&m!=null&&!f.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Ge(e,n,T,null,f,m)}for(w in f)if(m=f[w],y=s[w],f.hasOwnProperty(w)&&(m!=null||y!=null))switch(w){case"value":J=m;break;case"defaultValue":ne=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(o(91));break;default:m!==y&&Ge(e,n,w,m,f,y)}Ds(e,J,ne);return;case"option":for(var Re in s)if(J=s[Re],s.hasOwnProperty(Re)&&J!=null&&!f.hasOwnProperty(Re))switch(Re){case"selected":e.selected=!1;break;default:Ge(e,n,Re,null,f,J)}for(U in f)if(J=f[U],ne=s[U],f.hasOwnProperty(U)&&J!==ne&&(J!=null||ne!=null))switch(U){case"selected":e.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:Ge(e,n,U,J,f,ne)}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 Le in s)J=s[Le],s.hasOwnProperty(Le)&&J!=null&&!f.hasOwnProperty(Le)&&Ge(e,n,Le,null,f,J);for(Q in f)if(J=f[Q],ne=s[Q],f.hasOwnProperty(Q)&&J!==ne&&(J!=null||ne!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(o(137,n));break;default:Ge(e,n,Q,J,f,ne)}return;default:if(ml(n)){for(var Xe in s)J=s[Xe],s.hasOwnProperty(Xe)&&J!==void 0&&!f.hasOwnProperty(Xe)&&ns(e,n,Xe,void 0,f,J);for(ce in f)J=f[ce],ne=s[ce],!f.hasOwnProperty(ce)||J===ne||J===void 0&&ne===void 0||ns(e,n,ce,J,f,ne);return}}for(var Y in s)J=s[Y],s.hasOwnProperty(Y)&&J!=null&&!f.hasOwnProperty(Y)&&Ge(e,n,Y,null,f,J);for(me in f)J=f[me],ne=s[me],!f.hasOwnProperty(me)||J===ne||J==null&&ne==null||Ge(e,n,me,J,f,ne)}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,s=performance.getEntriesByType("resource"),f=0;f<s.length;f++){var m=s[f],y=m.transferSize,w=m.initiatorType,T=m.duration;if(y&&T&&Uf(w)){for(w=0,T=m.responseEnd,f+=1;f<s.length;f++){var U=s[f],Q=U.startTime;if(Q>T)break;var ce=U.transferSize,me=U.initiatorType;ce&&Uf(me)&&(U=U.responseEnd,w+=ce*(U<T?1:(T-Q)/(U-Q)))}if(--f,n+=8*(y+w)/(m.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 rs=null,is=null;function Ya(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 Ff(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 as(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 ls=null;function th(){var e=window.event;return e&&e.type==="popstate"?e===ls?!1:(ls=e,!0):(ls=null,!1)}var Zf=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)}:Zf;function ih(e){setTimeout(function(){throw e})}function Xn(e){return e==="head"}function Pf(e,n){var s=n,f=0;do{var m=s.nextSibling;if(e.removeChild(s),m&&m.nodeType===8)if(s=m.data,s==="/$"||s==="/&"){if(f===0){e.removeChild(m),ni(n);return}f--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")f++;else if(s==="html")Fi(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Fi(s);for(var y=s.firstChild;y;){var w=y.nextSibling,T=y.nodeName;y[ai]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&y.rel.toLowerCase()==="stylesheet"||s.removeChild(y),y=w}}else s==="body"&&Fi(e.ownerDocument.body);s=m}while(s);ni(n)}function Hf(e,n){var s=e;e=0;do{var f=s.nextSibling;if(s.nodeType===1?n?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(n?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),f&&f.nodeType===8)if(s=f.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=f}while(s)}function os(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var s=n;switch(n=n.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":os(s),fl(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function ah(e,n,s,f){for(;e.nodeType===1;){var m=s;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!f&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(f){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!==m.rel||e.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||e.getAttribute("title")!==(m.title==null?null:m.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(y=e.getAttribute("src"),(y!==(m.src==null?null:m.src)||e.getAttribute("type")!==(m.type==null?null:m.type)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&y&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var y=m.name==null?null:""+m.name;if(m.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,s){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=en(e.nextSibling),e===null))return null;return e}function $f(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 ss(e){return e.data==="$?"||e.data==="$~"}function us(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function oh(e,n){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||s.readyState!=="loading")n();else{var f=function(){n(),s.removeEventListener("DOMContentLoaded",f)};s.addEventListener("DOMContentLoaded",f),e._reactRetry=f}}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 cs=null;function Yf(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(n===0)return en(e.nextSibling);n--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||n++}e=e.nextSibling}return null}function Gf(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(n===0)return e;n--}else s!=="/$"&&s!=="/&"||n++}e=e.previousSibling}return null}function Xf(e,n,s){switch(n=Ya(s),e){case"html":if(e=n.documentElement,!e)throw Error(o(452));return e;case"head":if(e=n.head,!e)throw Error(o(453));return e;case"body":if(e=n.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Fi(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);fl(e)}var tn=new Map,Kf=new Set;function Ga(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=he.d;he.d={f:sh,r:uh,D:ch,C:fh,L:dh,m:ph,X:mh,S:hh,M:gh};function sh(){var e=jn.f(),n=Ua();return e||n}function uh(e){var n=Er(e);n!==null&&n.tag===5&&n.type==="form"?dc(n):jn.r(e)}var Wr=typeof document>"u"?null:document;function Qf(e,n,s){var f=Wr;if(f&&typeof n=="string"&&n){var m=Yt(n);m='link[rel="'+e+'"][href="'+m+'"]',typeof s=="string"&&(m+='[crossorigin="'+s+'"]'),Kf.has(m)||(Kf.add(m),e={rel:e,crossOrigin:s,href:n},f.querySelector(m)===null&&(n=f.createElement("link"),St(n,"link",e),gt(n),f.head.appendChild(n)))}}function ch(e){jn.D(e),Qf("dns-prefetch",e,null)}function fh(e,n){jn.C(e,n),Qf("preconnect",e,n)}function dh(e,n,s){jn.L(e,n,s);var f=Wr;if(f&&e&&n){var m='link[rel="preload"][as="'+Yt(n)+'"]';n==="image"&&s&&s.imageSrcSet?(m+='[imagesrcset="'+Yt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(m+='[imagesizes="'+Yt(s.imageSizes)+'"]')):m+='[href="'+Yt(e)+'"]';var y=m;switch(n){case"style":y=ei(e);break;case"script":y=ti(e)}tn.has(y)||(e=b({rel:"preload",href:n==="image"&&s&&s.imageSrcSet?void 0:e,as:n},s),tn.set(y,e),f.querySelector(m)!==null||n==="style"&&f.querySelector(Zi(y))||n==="script"&&f.querySelector(Vi(y))||(n=f.createElement("link"),St(n,"link",e),gt(n),f.head.appendChild(n)))}}function ph(e,n){jn.m(e,n);var s=Wr;if(s&&e){var f=n&&typeof n.as=="string"?n.as:"script",m='link[rel="modulepreload"][as="'+Yt(f)+'"][href="'+Yt(e)+'"]',y=m;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=ti(e)}if(!tn.has(y)&&(e=b({rel:"modulepreload",href:e},n),tn.set(y,e),s.querySelector(m)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Vi(y)))return}f=s.createElement("link"),St(f,"link",e),gt(f),s.head.appendChild(f)}}}function hh(e,n,s){jn.S(e,n,s);var f=Wr;if(f&&e){var m=Sr(f).hoistableStyles,y=ei(e);n=n||"default";var w=m.get(y);if(!w){var T={loading:0,preload:null};if(w=f.querySelector(Zi(y)))T.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},s),(s=tn.get(y))&&fs(e,s);var U=w=f.createElement("link");gt(U),St(U,"link",e),U._p=new Promise(function(Q,ce){U.onload=Q,U.onerror=ce}),U.addEventListener("load",function(){T.loading|=1}),U.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Xa(w,n,f)}w={type:"stylesheet",instance:w,count:1,state:T},m.set(y,w)}}}function mh(e,n){jn.X(e,n);var s=Wr;if(s&&e){var f=Sr(s).hoistableScripts,m=ti(e),y=f.get(m);y||(y=s.querySelector(Vi(m)),y||(e=b({src:e,async:!0},n),(n=tn.get(m))&&ds(e,n),y=s.createElement("script"),gt(y),St(y,"link",e),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},f.set(m,y))}}function gh(e,n){jn.M(e,n);var s=Wr;if(s&&e){var f=Sr(s).hoistableScripts,m=ti(e),y=f.get(m);y||(y=s.querySelector(Vi(m)),y||(e=b({src:e,async:!0,type:"module"},n),(n=tn.get(m))&&ds(e,n),y=s.createElement("script"),gt(y),St(y,"link",e),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},f.set(m,y))}}function Jf(e,n,s,f){var m=(m=Se.current)?Ga(m):null;if(!m)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(n=ei(s.href),s=Sr(m).hoistableStyles,f=s.get(n),f||(f={type:"style",instance:null,count:0,state:null},s.set(n,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=ei(s.href);var y=Sr(m).hoistableStyles,w=y.get(e);if(w||(m=m.ownerDocument||m,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(e,w),(y=m.querySelector(Zi(e)))&&!y._p&&(w.instance=y,w.state.loading=5),tn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},tn.set(e,s),y||xh(m,e,s,w.state))),n&&f===null)throw Error(o(528,""));return w}if(n&&f!==null)throw Error(o(529,""));return null;case"script":return n=s.async,s=s.src,typeof s=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ti(s),s=Sr(m).hoistableScripts,f=s.get(n),f||(f={type:"script",instance:null,count:0,state:null},s.set(n,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function ei(e){return'href="'+Yt(e)+'"'}function Zi(e){return'link[rel="stylesheet"]['+e+"]"}function Wf(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function xh(e,n,s,f){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?f.loading=1:(n=e.createElement("link"),f.preload=n,n.addEventListener("load",function(){return f.loading|=1}),n.addEventListener("error",function(){return f.loading|=2}),St(n,"link",s),gt(n),e.head.appendChild(n))}function ti(e){return'[src="'+Yt(e)+'"]'}function Vi(e){return"script[async]"+e}function ed(e,n,s){if(n.count++,n.instance===null)switch(n.type){case"style":var f=e.querySelector('style[data-href~="'+Yt(s.href)+'"]');if(f)return n.instance=f,gt(f),f;var m=b({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return f=(e.ownerDocument||e).createElement("style"),gt(f),St(f,"style",m),Xa(f,s.precedence,e),n.instance=f;case"stylesheet":m=ei(s.href);var y=e.querySelector(Zi(m));if(y)return n.state.loading|=4,n.instance=y,gt(y),y;f=Wf(s),(m=tn.get(m))&&fs(f,m),y=(e.ownerDocument||e).createElement("link"),gt(y);var w=y;return w._p=new Promise(function(T,U){w.onload=T,w.onerror=U}),St(y,"link",f),n.state.loading|=4,Xa(y,s.precedence,e),n.instance=y;case"script":return y=ti(s.src),(m=e.querySelector(Vi(y)))?(n.instance=m,gt(m),m):(f=s,(m=tn.get(y))&&(f=b({},s),ds(f,m)),e=e.ownerDocument||e,m=e.createElement("script"),gt(m),St(m,"link",f),e.head.appendChild(m),n.instance=m);case"void":return null;default:throw Error(o(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(f=n.instance,n.state.loading|=4,Xa(f,s.precedence,e));return n.instance}function Xa(e,n,s){for(var f=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=f.length?f[f.length-1]:null,y=m,w=0;w<f.length;w++){var T=f[w];if(T.dataset.precedence===n)y=T;else if(y!==m)break}y?y.parentNode.insertBefore(e,y.nextSibling):(n=s.nodeType===9?s.head:s,n.insertBefore(e,n.firstChild))}function fs(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function ds(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Ka=null;function td(e,n,s){if(Ka===null){var f=new Map,m=Ka=new Map;m.set(s,f)}else m=Ka,f=m.get(s),f||(f=new Map,m.set(s,f));if(f.has(e))return f;for(f.set(e,null),s=s.getElementsByTagName(e),m=0;m<s.length;m++){var y=s[m];if(!(y[ai]||y[yt]||e==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var w=y.getAttribute(n)||"";w=e+w;var T=f.get(w);T?T.push(y):f.set(w,[y])}}return f}function nd(e,n,s){e=e.ownerDocument||e,e.head.insertBefore(s,n==="title"?e.querySelector("head > title"):null)}function yh(e,n,s){if(s===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,s,f){if(s.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var m=ei(f.href),y=n.querySelector(Zi(m));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Qa.bind(e),n.then(e,e)),s.state.loading|=4,s.instance=y,gt(y);return}y=n.ownerDocument||n,f=Wf(f),(m=tn.get(m))&&fs(f,m),y=y.createElement("link"),gt(y);var w=y;w._p=new Promise(function(T,U){w.onload=T,w.onerror=U}),St(y,"link",f),s.instance=y}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,n),(n=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=Qa.bind(e),n.addEventListener("load",s),n.addEventListener("error",s))}}var ps=0;function vh(e,n){return e.stylesheets&&e.count===0&&Wa(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var f=setTimeout(function(){if(e.stylesheets&&Wa(e,e.stylesheets),e.unsuspend){var y=e.unsuspend;e.unsuspend=null,y()}},6e4+n);0<e.imgBytes&&ps===0&&(ps=62500*eh());var m=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>ps?50:800)+n);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(f),clearTimeout(m)}}:null}function Qa(){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(Eh,e),Ja=null,Qa.call(e))}function Eh(e,n){if(!(n.state.loading&4)){var s=Ja.get(e);if(s)var f=s.get(null);else{s=new Map,Ja.set(e,s);for(var m=e.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<m.length;y++){var w=m[y];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(s.set(w.dataset.precedence,w),f=w)}f&&s.set(null,f)}m=n.instance,w=m.getAttribute("data-precedence"),y=s.get(w)||f,y===f&&s.set(null,m),s.set(w,m),this.count++,f=Qa.bind(this),m.addEventListener("load",f),m.addEventListener("error",f),y?y.parentNode.insertBefore(m,y.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(m,e.firstChild)),n.state.loading|=4}}var Pi={$$typeof:V,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function Sh(e,n,s,f,m,y,w,T,U){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=f,this.onUncaughtError=m,this.onCaughtError=y,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function id(e,n,s,f,m,y,w,T,U,Q,ce,me){return e=new Sh(e,n,s,w,U,Q,ce,me,T),n=1,y===!0&&(n|=24),y=It(3,null,null,n),e.current=y,y.stateNode=e,n=Hl(),n.refCount++,e.pooledCache=n,n.refCount++,y.memoizedState={element:f,isDehydrated:s,cache:n},Xl(y),e}function ad(e){return e?(e=Or,e):Or}function ld(e,n,s,f,m,y){m=ad(m),f.context===null?f.context=m:f.pendingContext=m,f=Bn(n),f.payload={element:s},y=y===void 0?null:y,y!==null&&(f.callback=y),s=Un(e,f,n),s!==null&&(Mt(s,e,n),Si(s,e,n))}function od(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function hs(e,n){od(e,n),(e=e.alternate)&&od(e,n)}function sd(e){if(e.tag===13||e.tag===31){var n=lr(e,67108864);n!==null&&Mt(n,e,67108864),hs(e,67108864)}}function ud(e){if(e.tag===13||e.tag===31){var n=Zt();n=sl(n);var s=lr(e,n);s!==null&&Mt(s,e,n),hs(e,n)}}var el=!0;function kh(e,n,s,f){var m=P.T;P.T=null;var y=he.p;try{he.p=2,ms(e,n,s,f)}finally{he.p=y,P.T=m}}function wh(e,n,s,f){var m=P.T;P.T=null;var y=he.p;try{he.p=8,ms(e,n,s,f)}finally{he.p=y,P.T=m}}function ms(e,n,s,f){if(el){var m=gs(f);if(m===null)ts(e,n,f,tl,s),fd(e,f);else if(Rh(m,e,n,s,f))f.stopPropagation();else if(fd(e,f),n&4&&-1<Ch.indexOf(e)){for(;m!==null;){var y=Er(m);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 T=y;for(T.pendingLanes|=2,T.entangledLanes|=2;w;){var U=1<<31-z(w);T.entanglements[1]|=U,w&=~U}dn(y),(Pe&6)===0&&(Ia=Je()+500,Bi(0))}}break;case 31:case 13:T=lr(y,2),T!==null&&Mt(T,y,2),Ua(),hs(y,2)}if(y=gs(f),y===null&&ts(e,n,f,tl,s),y===m)break;m=y}m!==null&&f.stopPropagation()}else ts(e,n,f,null,s)}}function gs(e){return e=xl(e),xs(e)}var tl=null;function xs(e){if(tl=null,e=vr(e),e!==null){var n=c(e);if(n===null)e=null;else{var s=n.tag;if(s===13){if(e=d(n),e!==null)return e;e=null}else if(s===31){if(e=h(n),e!==null)return e;e=null}else if(s===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 M:return 2;case Z:return 8;case le:case te:return 32;case E:return 268435456;default:return 32}default:return 32}}var ys=!1,Kn=null,Qn=null,Jn=null,Hi=new Map,$i=new Map,Wn=[],Ch="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":Kn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Hi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":$i.delete(n.pointerId)}}function Yi(e,n,s,f,m,y){return e===null||e.nativeEvent!==y?(e={blockedOn:n,domEventName:s,eventSystemFlags:f,nativeEvent:y,targetContainers:[m]},n!==null&&(n=Er(n),n!==null&&sd(n)),e):(e.eventSystemFlags|=f,n=e.targetContainers,m!==null&&n.indexOf(m)===-1&&n.push(m),e)}function Rh(e,n,s,f,m){switch(n){case"focusin":return Kn=Yi(Kn,e,n,s,f,m),!0;case"dragenter":return Qn=Yi(Qn,e,n,s,f,m),!0;case"mouseover":return Jn=Yi(Jn,e,n,s,f,m),!0;case"pointerover":var y=m.pointerId;return Hi.set(y,Yi(Hi.get(y)||null,e,n,s,f,m)),!0;case"gotpointercapture":return y=m.pointerId,$i.set(y,Yi($i.get(y)||null,e,n,s,f,m)),!0}return!1}function dd(e){var n=vr(e.target);if(n!==null){var s=c(n);if(s!==null){if(n=s.tag,n===13){if(n=d(s),n!==null){e.blockedOn=n,Cs(e.priority,function(){ud(s)});return}}else if(n===31){if(n=h(s),n!==null){e.blockedOn=n,Cs(e.priority,function(){ud(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.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 s=gs(e.nativeEvent);if(s===null){s=e.nativeEvent;var f=new s.constructor(s.type,s);gl=f,s.target.dispatchEvent(f),gl=null}else return n=Er(s),n!==null&&sd(n),e.blockedOn=s,!1;n.shift()}return!0}function pd(e,n,s){nl(e)&&s.delete(n)}function Ah(){ys=!1,Kn!==null&&nl(Kn)&&(Kn=null),Qn!==null&&nl(Qn)&&(Qn=null),Jn!==null&&nl(Jn)&&(Jn=null),Hi.forEach(pd),$i.forEach(pd)}function rl(e,n){e.blockedOn===n&&(e.blockedOn=null,ys||(ys=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ah)))}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 s=e[n],f=e[n+1],m=e[n+2];if(typeof f!="function"){if(xs(f||s)===null)continue;break}var y=Er(s);y!==null&&(e.splice(n,3),n-=3,go(y,{pending:!0,data:m,method:s.method,action:f},f,m))}}))}function ni(e){function n(U){return rl(U,e)}Kn!==null&&rl(Kn,e),Qn!==null&&rl(Qn,e),Jn!==null&&rl(Jn,e),Hi.forEach(n),$i.forEach(n);for(var s=0;s<Wn.length;s++){var f=Wn[s];f.blockedOn===e&&(f.blockedOn=null)}for(;0<Wn.length&&(s=Wn[0],s.blockedOn===null);)dd(s),s.blockedOn===null&&Wn.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(f=0;f<s.length;f+=3){var m=s[f],y=s[f+1],w=m[_t]||null;if(typeof y=="function")w||hd(s);else if(w){var T=null;if(y&&y.hasAttribute("formAction")){if(m=y,w=y[_t]||null)T=w.formAction;else if(xs(m)!==null)continue}else T=w.action;typeof T=="function"?s[f+1]=T:(s.splice(f,3),f-=3),hd(s)}}}function md(){function e(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(w){return m=w})},focusReset:"manual",scroll:"manual"})}function n(){m!==null&&(m(),m=null),f||setTimeout(s,20)}function s(){if(!f&&!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 f=!1,m=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(s,100),function(){f=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),m!==null&&(m(),m=null)}}}function bs(e){this._internalRoot=e}al.prototype.render=bs.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));var s=n.current,f=Zt();ld(s,f,e,n,null,null)},al.prototype.unmount=bs.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=ws();e={blockedOn:null,target:e,priority:n};for(var s=0;s<Wn.length&&n!==0&&n<Wn[s].priority;s++);Wn.splice(s,0,e),s===0&&dd(e)}};var gd=a.version;if(gd!=="19.2.4")throw Error(o(527,gd,"19.2.4"));he.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(n),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Th={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ll.isDisabled&&ll.supportsFiber)try{A=ll.inject(Th),j=ll}catch{}}return reactDomClient_production.createRoot=function(e,n){if(!u(e))throw Error(o(299));var s=!1,f="",m=Sc,y=kc,w=wc;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(f=n.identifierPrefix),n.onUncaughtError!==void 0&&(m=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(w=n.onRecoverableError)),n=id(e,1,!1,null,null,s,f,null,m,y,w,md),e[br]=n.current,es(e),new bs(n)},reactDomClient_production.hydrateRoot=function(e,n,s){if(!u(e))throw Error(o(299));var f=!1,m="",y=Sc,w=kc,T=wc,U=null;return s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onUncaughtError!==void 0&&(y=s.onUncaughtError),s.onCaughtError!==void 0&&(w=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.formState!==void 0&&(U=s.formState)),n=id(e,1,!0,n,s??null,f,m,U,y,w,T,md),n.context=ad(null),s=n.current,f=Zt(),f=sl(f),m=Bn(f),m.callback=null,Un(s,m,f),s=f,n.current.lanes=s,ii(n,s),dn(n),e[br]=n.current,es(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();/**
|
|
34
34
|
* react-router v7.13.1
|
|
35
35
|
*
|
|
36
36
|
* Copyright (c) Remix Software Inc.
|
|
@@ -39,9 +39,9 @@ Error generating stack: `+f.message+`
|
|
|
39
39
|
* LICENSE.md file in the root directory of this source tree.
|
|
40
40
|
*
|
|
41
41
|
* @license MIT
|
|
42
|
-
*/var PopStateEventType="popstate";function isLocation(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function createBrowserHistory(t={}){function a(o,u){var m;let c=(m=u.state)==null?void 0:m.masked,{pathname:d,search:g,hash:p}=c||o.location;return createLocation("",{pathname:d,search:g,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default",c?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function l(o,u){return typeof u=="string"?u:createPath(u)}return getUrlBasedHistory(a,l,null,t)}function invariant(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function warning(t,a){if(!t){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function createKey(){return Math.random().toString(36).substring(2,10)}function getHistoryState(t,a){return{usr:t.state,key:t.key,idx:a,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function createLocation(t,a,l=null,o,u){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof a=="string"?parsePath(a):a,state:l,key:a&&a.key||o||createKey(),unstable_mask:u}}function createPath({pathname:t="/",search:a="",hash:l=""}){return a&&a!=="?"&&(t+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(t+=l.charAt(0)==="#"?l:"#"+l),t}function parsePath(t){let a={};if(t){let l=t.indexOf("#");l>=0&&(a.hash=t.substring(l),t=t.substring(0,l));let o=t.indexOf("?");o>=0&&(a.search=t.substring(o),t=t.substring(0,o)),t&&(a.pathname=t)}return a}function getUrlBasedHistory(t,a,l,o={}){let{window:u=document.defaultView,v5Compat:c=!1}=o,d=u.history,g="POP",p=null,m=x();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function x(){return(d.state||{idx:null}).idx}function b(){g="POP";let L=x(),D=L==null?null:L-m;m=L,p&&p({action:g,location:B.location,delta:D})}function C(L,D){g="PUSH";let H=isLocation(L)?L:createLocation(B.location,L,D);m=x()+1;let V=getHistoryState(H,m),se=B.createHref(H.unstable_mask||H);try{d.pushState(V,"",se)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;u.location.assign(se)}c&&p&&p({action:g,location:B.location,delta:1})}function R(L,D){g="REPLACE";let H=isLocation(L)?L:createLocation(B.location,L,D);m=x();let V=getHistoryState(H,m),se=B.createHref(H.unstable_mask||H);d.replaceState(V,"",se),c&&p&&p({action:g,location:B.location,delta:0})}function _(L){return createBrowserURLImpl(L)}let B={get action(){return g},get location(){return t(u,d)},listen(L){if(p)throw new Error("A history only accepts one active listener");return u.addEventListener(PopStateEventType,b),p=L,()=>{u.removeEventListener(PopStateEventType,b),p=null}},createHref(L){return a(u,L)},createURL:_,encodeLocation(L){let D=_(L);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:C,replace:R,go(L){return d.go(L)}};return B}function createBrowserURLImpl(t,a=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),invariant(l,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:createPath(t);return o=o.replace(/ $/,"%20"),!a&&o.startsWith("//")&&(o=l+o),new URL(o,l)}function matchRoutes(t,a,l="/"){return matchRoutesImpl(t,a,l,!1)}function matchRoutesImpl(t,a,l,o){let u=typeof a=="string"?parsePath(a):a,c=stripBasename(u.pathname||"/",l);if(c==null)return null;let d=flattenRoutes(t);rankRouteBranches(d);let g=null;for(let p=0;g==null&&p<d.length;++p){let m=decodePath(c);g=matchRouteBranch(d[p],m,o)}return g}function flattenRoutes(t,a=[],l=[],o="",u=!1){let c=(d,g,p=u,m)=>{let x={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:g,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(o)&&p)return;invariant(x.relativePath.startsWith(o),`Absolute route path "${x.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(o.length)}let b=joinPaths([o,x.relativePath]),C=l.concat(x);d.children&&d.children.length>0&&(invariant(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),flattenRoutes(d.children,a,C,b,p)),!(d.path==null&&!d.index)&&a.push({path:b,score:computeScore(b,d.index),routesMeta:C})};return t.forEach((d,g)=>{var p;if(d.path===""||!((p=d.path)!=null&&p.includes("?")))c(d,g);else for(let m of explodeOptionalSegments(d.path))c(d,g,!0,m)}),a}function explodeOptionalSegments(t){let a=t.split("/");if(a.length===0)return[];let[l,...o]=a,u=l.endsWith("?"),c=l.replace(/\?$/,"");if(o.length===0)return u?[c,""]:[c];let d=explodeOptionalSegments(o.join("/")),g=[];return g.push(...d.map(p=>p===""?c:[c,p].join("/"))),u&&g.push(...d),g.map(p=>t.startsWith("/")&&p===""?"/":p)}function rankRouteBranches(t){t.sort((a,l)=>a.score!==l.score?l.score-a.score:compareIndexes(a.routesMeta.map(o=>o.childrenIndex),l.routesMeta.map(o=>o.childrenIndex)))}var paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=t=>t==="*";function computeScore(t,a){let l=t.split("/"),o=l.length;return l.some(isSplat)&&(o+=splatPenalty),a&&(o+=indexRouteValue),l.filter(u=>!isSplat(u)).reduce((u,c)=>u+(paramRe.test(c)?dynamicSegmentValue:c===""?emptySegmentValue:staticSegmentValue),o)}function compareIndexes(t,a){return t.length===a.length&&t.slice(0,-1).every((o,u)=>o===a[u])?t[t.length-1]-a[a.length-1]:0}function matchRouteBranch(t,a,l=!1){let{routesMeta:o}=t,u={},c="/",d=[];for(let g=0;g<o.length;++g){let p=o[g],m=g===o.length-1,x=c==="/"?a:a.slice(c.length)||"/",b=matchPath({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},x),C=p.route;if(!b&&m&&l&&!o[o.length-1].route.index&&(b=matchPath({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},x)),!b)return null;Object.assign(u,b.params),d.push({params:u,pathname:joinPaths([c,b.pathname]),pathnameBase:normalizePathname(joinPaths([c,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(c=joinPaths([c,b.pathnameBase]))}return d}function matchPath(t,a){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[l,o]=compilePath(t.path,t.caseSensitive,t.end),u=a.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),g=u.slice(1);return{params:o.reduce((m,{paramName:x,isOptional:b},C)=>{if(x==="*"){let _=g[C]||"";d=c.slice(0,c.length-_.length).replace(/(.)\/+$/,"$1")}const R=g[C];return b&&!R?m[x]=void 0:m[x]=(R||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:t}}function compilePath(t,a=!1,l=!0){warning(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let o=[],u="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,g,p,m,x)=>{if(o.push({paramName:g,isOptional:p!=null}),p){let b=x.charAt(m+d.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(o.push({paramName:"*"}),u+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?u+="\\/*$":t!==""&&t!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,a?void 0:"i"),o]}function decodePath(t){try{return t.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return warning(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),t}}function stripBasename(t,a){if(a==="/")return t;if(!t.toLowerCase().startsWith(a.toLowerCase()))return null;let l=a.endsWith("/")?a.length-1:a.length,o=t.charAt(l);return o&&o!=="/"?null:t.slice(l)||"/"}var ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function resolvePath(t,a="/"){let{pathname:l,search:o="",hash:u=""}=typeof t=="string"?parsePath(t):t,c;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?c=resolvePathname(l.substring(1),"/"):c=resolvePathname(l,a)):c=a,{pathname:c,search:normalizeSearch(o),hash:normalizeHash(u)}}function resolvePathname(t,a){let l=a.replace(/\/+$/,"").split("/");return t.split("/").forEach(u=>{u===".."?l.length>1&&l.pop():u!=="."&&l.push(u)}),l.length>1?l.join("/"):"/"}function getInvalidPathError(t,a,l,o){return`Cannot include a '${t}' character in a manually specified \`to.${a}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function getPathContributingMatches(t){return t.filter((a,l)=>l===0||a.route.path&&a.route.path.length>0)}function getResolveToMatches(t){let a=getPathContributingMatches(t);return a.map((l,o)=>o===a.length-1?l.pathname:l.pathnameBase)}function resolveTo(t,a,l,o=!1){let u;typeof t=="string"?u=parsePath(t):(u={...t},invariant(!u.pathname||!u.pathname.includes("?"),getInvalidPathError("?","pathname","search",u)),invariant(!u.pathname||!u.pathname.includes("#"),getInvalidPathError("#","pathname","hash",u)),invariant(!u.search||!u.search.includes("#"),getInvalidPathError("#","search","hash",u)));let c=t===""||u.pathname==="",d=c?"/":u.pathname,g;if(d==null)g=l;else{let b=a.length-1;if(!o&&d.startsWith("..")){let C=d.split("/");for(;C[0]==="..";)C.shift(),b-=1;u.pathname=C.join("/")}g=b>=0?a[b]:"/"}let p=resolvePath(u,g),m=d&&d!=="/"&&d.endsWith("/"),x=(c||d===".")&&l.endsWith("/");return!p.pathname.endsWith("/")&&(m||x)&&(p.pathname+="/"),p}var joinPaths=t=>t.join("/").replace(/\/\/+/g,"/"),normalizePathname=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,normalizeHash=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,ErrorResponseImpl=class{constructor(t,a,l,o=!1){this.status=t,this.statusText=a||"",this.internal=o,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function isRouteErrorResponse(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function getRoutePattern(t){return t.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var isBrowser=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function parseToInfo(t,a){let l=t;if(typeof l!="string"||!ABSOLUTE_URL_REGEX.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let o=l,u=!1;if(isBrowser)try{let c=new URL(window.location.href),d=l.startsWith("//")?new URL(c.protocol+l):new URL(l),g=stripBasename(d.pathname,a);d.origin===c.origin&&g!=null?l=g+d.search+d.hash:u=!0}catch{warning(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:u,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var validMutationMethodsArr=["POST","PUT","PATCH","DELETE"];new Set(validMutationMethodsArr);var validRequestMethodsArr=["GET",...validMutationMethodsArr];new Set(validRequestMethodsArr);var DataRouterContext=reactExports.createContext(null);DataRouterContext.displayName="DataRouter";var DataRouterStateContext=reactExports.createContext(null);DataRouterStateContext.displayName="DataRouterState";var RSCRouterContext=reactExports.createContext(!1),ViewTransitionContext=reactExports.createContext({isTransitioning:!1});ViewTransitionContext.displayName="ViewTransition";var FetchersContext=reactExports.createContext(new Map);FetchersContext.displayName="Fetchers";var AwaitContext=reactExports.createContext(null);AwaitContext.displayName="Await";var NavigationContext=reactExports.createContext(null);NavigationContext.displayName="Navigation";var LocationContext=reactExports.createContext(null);LocationContext.displayName="Location";var RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});RouteContext.displayName="Route";var RouteErrorContext=reactExports.createContext(null);RouteErrorContext.displayName="RouteError";var ERROR_DIGEST_BASE="REACT_ROUTER_ERROR",ERROR_DIGEST_REDIRECT="REDIRECT",ERROR_DIGEST_ROUTE_ERROR_RESPONSE="ROUTE_ERROR_RESPONSE";function decodeRedirectErrorDigest(t){if(t.startsWith(`${ERROR_DIGEST_BASE}:${ERROR_DIGEST_REDIRECT}:{`))try{let a=JSON.parse(t.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function decodeRouteErrorResponseDigest(t){if(t.startsWith(`${ERROR_DIGEST_BASE}:${ERROR_DIGEST_ROUTE_ERROR_RESPONSE}:{`))try{let a=JSON.parse(t.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new ErrorResponseImpl(a.status,a.statusText,a.data)}catch{}}function useHref(t,{relative:a}={}){invariant(useInRouterContext(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:o}=reactExports.useContext(NavigationContext),{hash:u,pathname:c,search:d}=useResolvedPath(t,{relative:a}),g=c;return l!=="/"&&(g=c==="/"?l:joinPaths([l,c])),o.createHref({pathname:g,search:d,hash:u})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return invariant(useInRouterContext(),"useLocation() may be used only in the context of a <Router> component."),reactExports.useContext(LocationContext).location}var navigateEffectWarning="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function useIsomorphicLayoutEffect(t){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(t)}function useNavigate(){let{isDataRoute:t}=reactExports.useContext(RouteContext);return t?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){invariant(useInRouterContext(),"useNavigate() may be used only in the context of a <Router> component.");let t=reactExports.useContext(DataRouterContext),{basename:a,navigator:l}=reactExports.useContext(NavigationContext),{matches:o}=reactExports.useContext(RouteContext),{pathname:u}=useLocation(),c=JSON.stringify(getResolveToMatches(o)),d=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{d.current=!0}),reactExports.useCallback((p,m={})=>{if(warning(d.current,navigateEffectWarning),!d.current)return;if(typeof p=="number"){l.go(p);return}let x=resolveTo(p,JSON.parse(c),u,m.relative==="path");t==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:joinPaths([a,x.pathname])),(m.replace?l.replace:l.push)(x,m.state,m)},[a,l,c,u,t])}reactExports.createContext(null);function useParams(){let{matches:t}=reactExports.useContext(RouteContext),a=t[t.length-1];return a?a.params:{}}function useResolvedPath(t,{relative:a}={}){let{matches:l}=reactExports.useContext(RouteContext),{pathname:o}=useLocation(),u=JSON.stringify(getResolveToMatches(l));return reactExports.useMemo(()=>resolveTo(t,JSON.parse(u),o,a==="path"),[t,u,o,a])}function useRoutes(t,a){return useRoutesImpl(t,a)}function useRoutesImpl(t,a,l){var L;invariant(useInRouterContext(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=reactExports.useContext(NavigationContext),{matches:u}=reactExports.useContext(RouteContext),c=u[u.length-1],d=c?c.params:{},g=c?c.pathname:"/",p=c?c.pathnameBase:"/",m=c&&c.route;{let D=m&&m.path||"";warningOnce(g,!m||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
42
|
+
*/var PopStateEventType="popstate";function isLocation(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function createBrowserHistory(t={}){function a(o,u){var g;let c=(g=u.state)==null?void 0:g.masked,{pathname:d,search:h,hash:p}=c||o.location;return createLocation("",{pathname:d,search:h,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default",c?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function l(o,u){return typeof u=="string"?u:createPath(u)}return getUrlBasedHistory(a,l,null,t)}function invariant(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function warning(t,a){if(!t){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function createKey(){return Math.random().toString(36).substring(2,10)}function getHistoryState(t,a){return{usr:t.state,key:t.key,idx:a,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function createLocation(t,a,l=null,o,u){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof a=="string"?parsePath(a):a,state:l,key:a&&a.key||o||createKey(),unstable_mask:u}}function createPath({pathname:t="/",search:a="",hash:l=""}){return a&&a!=="?"&&(t+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(t+=l.charAt(0)==="#"?l:"#"+l),t}function parsePath(t){let a={};if(t){let l=t.indexOf("#");l>=0&&(a.hash=t.substring(l),t=t.substring(0,l));let o=t.indexOf("?");o>=0&&(a.search=t.substring(o),t=t.substring(0,o)),t&&(a.pathname=t)}return a}function getUrlBasedHistory(t,a,l,o={}){let{window:u=document.defaultView,v5Compat:c=!1}=o,d=u.history,h="POP",p=null,g=x();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function x(){return(d.state||{idx:null}).idx}function b(){h="POP";let L=x(),D=L==null?null:L-g;g=L,p&&p({action:h,location:B.location,delta:D})}function C(L,D){h="PUSH";let $=isLocation(L)?L:createLocation(B.location,L,D);g=x()+1;let V=getHistoryState($,g),se=B.createHref($.unstable_mask||$);try{d.pushState(V,"",se)}catch(ie){if(ie instanceof DOMException&&ie.name==="DataCloneError")throw ie;u.location.assign(se)}c&&p&&p({action:h,location:B.location,delta:1})}function R(L,D){h="REPLACE";let $=isLocation(L)?L:createLocation(B.location,L,D);g=x();let V=getHistoryState($,g),se=B.createHref($.unstable_mask||$);d.replaceState(V,"",se),c&&p&&p({action:h,location:B.location,delta:0})}function _(L){return createBrowserURLImpl(L)}let B={get action(){return h},get location(){return t(u,d)},listen(L){if(p)throw new Error("A history only accepts one active listener");return u.addEventListener(PopStateEventType,b),p=L,()=>{u.removeEventListener(PopStateEventType,b),p=null}},createHref(L){return a(u,L)},createURL:_,encodeLocation(L){let D=_(L);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:C,replace:R,go(L){return d.go(L)}};return B}function createBrowserURLImpl(t,a=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),invariant(l,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:createPath(t);return o=o.replace(/ $/,"%20"),!a&&o.startsWith("//")&&(o=l+o),new URL(o,l)}function matchRoutes(t,a,l="/"){return matchRoutesImpl(t,a,l,!1)}function matchRoutesImpl(t,a,l,o){let u=typeof a=="string"?parsePath(a):a,c=stripBasename(u.pathname||"/",l);if(c==null)return null;let d=flattenRoutes(t);rankRouteBranches(d);let h=null;for(let p=0;h==null&&p<d.length;++p){let g=decodePath(c);h=matchRouteBranch(d[p],g,o)}return h}function flattenRoutes(t,a=[],l=[],o="",u=!1){let c=(d,h,p=u,g)=>{let x={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(o)&&p)return;invariant(x.relativePath.startsWith(o),`Absolute route path "${x.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(o.length)}let b=joinPaths([o,x.relativePath]),C=l.concat(x);d.children&&d.children.length>0&&(invariant(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),flattenRoutes(d.children,a,C,b,p)),!(d.path==null&&!d.index)&&a.push({path:b,score:computeScore(b,d.index),routesMeta:C})};return t.forEach((d,h)=>{var p;if(d.path===""||!((p=d.path)!=null&&p.includes("?")))c(d,h);else for(let g of explodeOptionalSegments(d.path))c(d,h,!0,g)}),a}function explodeOptionalSegments(t){let a=t.split("/");if(a.length===0)return[];let[l,...o]=a,u=l.endsWith("?"),c=l.replace(/\?$/,"");if(o.length===0)return u?[c,""]:[c];let d=explodeOptionalSegments(o.join("/")),h=[];return h.push(...d.map(p=>p===""?c:[c,p].join("/"))),u&&h.push(...d),h.map(p=>t.startsWith("/")&&p===""?"/":p)}function rankRouteBranches(t){t.sort((a,l)=>a.score!==l.score?l.score-a.score:compareIndexes(a.routesMeta.map(o=>o.childrenIndex),l.routesMeta.map(o=>o.childrenIndex)))}var paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=t=>t==="*";function computeScore(t,a){let l=t.split("/"),o=l.length;return l.some(isSplat)&&(o+=splatPenalty),a&&(o+=indexRouteValue),l.filter(u=>!isSplat(u)).reduce((u,c)=>u+(paramRe.test(c)?dynamicSegmentValue:c===""?emptySegmentValue:staticSegmentValue),o)}function compareIndexes(t,a){return t.length===a.length&&t.slice(0,-1).every((o,u)=>o===a[u])?t[t.length-1]-a[a.length-1]:0}function matchRouteBranch(t,a,l=!1){let{routesMeta:o}=t,u={},c="/",d=[];for(let h=0;h<o.length;++h){let p=o[h],g=h===o.length-1,x=c==="/"?a:a.slice(c.length)||"/",b=matchPath({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},x),C=p.route;if(!b&&g&&l&&!o[o.length-1].route.index&&(b=matchPath({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},x)),!b)return null;Object.assign(u,b.params),d.push({params:u,pathname:joinPaths([c,b.pathname]),pathnameBase:normalizePathname(joinPaths([c,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(c=joinPaths([c,b.pathnameBase]))}return d}function matchPath(t,a){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[l,o]=compilePath(t.path,t.caseSensitive,t.end),u=a.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:o.reduce((g,{paramName:x,isOptional:b},C)=>{if(x==="*"){let _=h[C]||"";d=c.slice(0,c.length-_.length).replace(/(.)\/+$/,"$1")}const R=h[C];return b&&!R?g[x]=void 0:g[x]=(R||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:d,pattern:t}}function compilePath(t,a=!1,l=!0){warning(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let o=[],u="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,p,g,x)=>{if(o.push({paramName:h,isOptional:p!=null}),p){let b=x.charAt(g+d.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(o.push({paramName:"*"}),u+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?u+="\\/*$":t!==""&&t!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,a?void 0:"i"),o]}function decodePath(t){try{return t.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return warning(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),t}}function stripBasename(t,a){if(a==="/")return t;if(!t.toLowerCase().startsWith(a.toLowerCase()))return null;let l=a.endsWith("/")?a.length-1:a.length,o=t.charAt(l);return o&&o!=="/"?null:t.slice(l)||"/"}var ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function resolvePath(t,a="/"){let{pathname:l,search:o="",hash:u=""}=typeof t=="string"?parsePath(t):t,c;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?c=resolvePathname(l.substring(1),"/"):c=resolvePathname(l,a)):c=a,{pathname:c,search:normalizeSearch(o),hash:normalizeHash(u)}}function resolvePathname(t,a){let l=a.replace(/\/+$/,"").split("/");return t.split("/").forEach(u=>{u===".."?l.length>1&&l.pop():u!=="."&&l.push(u)}),l.length>1?l.join("/"):"/"}function getInvalidPathError(t,a,l,o){return`Cannot include a '${t}' character in a manually specified \`to.${a}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function getPathContributingMatches(t){return t.filter((a,l)=>l===0||a.route.path&&a.route.path.length>0)}function getResolveToMatches(t){let a=getPathContributingMatches(t);return a.map((l,o)=>o===a.length-1?l.pathname:l.pathnameBase)}function resolveTo(t,a,l,o=!1){let u;typeof t=="string"?u=parsePath(t):(u={...t},invariant(!u.pathname||!u.pathname.includes("?"),getInvalidPathError("?","pathname","search",u)),invariant(!u.pathname||!u.pathname.includes("#"),getInvalidPathError("#","pathname","hash",u)),invariant(!u.search||!u.search.includes("#"),getInvalidPathError("#","search","hash",u)));let c=t===""||u.pathname==="",d=c?"/":u.pathname,h;if(d==null)h=l;else{let b=a.length-1;if(!o&&d.startsWith("..")){let C=d.split("/");for(;C[0]==="..";)C.shift(),b-=1;u.pathname=C.join("/")}h=b>=0?a[b]:"/"}let p=resolvePath(u,h),g=d&&d!=="/"&&d.endsWith("/"),x=(c||d===".")&&l.endsWith("/");return!p.pathname.endsWith("/")&&(g||x)&&(p.pathname+="/"),p}var joinPaths=t=>t.join("/").replace(/\/\/+/g,"/"),normalizePathname=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,normalizeHash=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,ErrorResponseImpl=class{constructor(t,a,l,o=!1){this.status=t,this.statusText=a||"",this.internal=o,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function isRouteErrorResponse(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function getRoutePattern(t){return t.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var isBrowser=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function parseToInfo(t,a){let l=t;if(typeof l!="string"||!ABSOLUTE_URL_REGEX.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let o=l,u=!1;if(isBrowser)try{let c=new URL(window.location.href),d=l.startsWith("//")?new URL(c.protocol+l):new URL(l),h=stripBasename(d.pathname,a);d.origin===c.origin&&h!=null?l=h+d.search+d.hash:u=!0}catch{warning(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:u,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var validMutationMethodsArr=["POST","PUT","PATCH","DELETE"];new Set(validMutationMethodsArr);var validRequestMethodsArr=["GET",...validMutationMethodsArr];new Set(validRequestMethodsArr);var DataRouterContext=reactExports.createContext(null);DataRouterContext.displayName="DataRouter";var DataRouterStateContext=reactExports.createContext(null);DataRouterStateContext.displayName="DataRouterState";var RSCRouterContext=reactExports.createContext(!1),ViewTransitionContext=reactExports.createContext({isTransitioning:!1});ViewTransitionContext.displayName="ViewTransition";var FetchersContext=reactExports.createContext(new Map);FetchersContext.displayName="Fetchers";var AwaitContext=reactExports.createContext(null);AwaitContext.displayName="Await";var NavigationContext=reactExports.createContext(null);NavigationContext.displayName="Navigation";var LocationContext=reactExports.createContext(null);LocationContext.displayName="Location";var RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});RouteContext.displayName="Route";var RouteErrorContext=reactExports.createContext(null);RouteErrorContext.displayName="RouteError";var ERROR_DIGEST_BASE="REACT_ROUTER_ERROR",ERROR_DIGEST_REDIRECT="REDIRECT",ERROR_DIGEST_ROUTE_ERROR_RESPONSE="ROUTE_ERROR_RESPONSE";function decodeRedirectErrorDigest(t){if(t.startsWith(`${ERROR_DIGEST_BASE}:${ERROR_DIGEST_REDIRECT}:{`))try{let a=JSON.parse(t.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function decodeRouteErrorResponseDigest(t){if(t.startsWith(`${ERROR_DIGEST_BASE}:${ERROR_DIGEST_ROUTE_ERROR_RESPONSE}:{`))try{let a=JSON.parse(t.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new ErrorResponseImpl(a.status,a.statusText,a.data)}catch{}}function useHref(t,{relative:a}={}){invariant(useInRouterContext(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:o}=reactExports.useContext(NavigationContext),{hash:u,pathname:c,search:d}=useResolvedPath(t,{relative:a}),h=c;return l!=="/"&&(h=c==="/"?l:joinPaths([l,c])),o.createHref({pathname:h,search:d,hash:u})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return invariant(useInRouterContext(),"useLocation() may be used only in the context of a <Router> component."),reactExports.useContext(LocationContext).location}var navigateEffectWarning="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function useIsomorphicLayoutEffect(t){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(t)}function useNavigate(){let{isDataRoute:t}=reactExports.useContext(RouteContext);return t?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){invariant(useInRouterContext(),"useNavigate() may be used only in the context of a <Router> component.");let t=reactExports.useContext(DataRouterContext),{basename:a,navigator:l}=reactExports.useContext(NavigationContext),{matches:o}=reactExports.useContext(RouteContext),{pathname:u}=useLocation(),c=JSON.stringify(getResolveToMatches(o)),d=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{d.current=!0}),reactExports.useCallback((p,g={})=>{if(warning(d.current,navigateEffectWarning),!d.current)return;if(typeof p=="number"){l.go(p);return}let x=resolveTo(p,JSON.parse(c),u,g.relative==="path");t==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:joinPaths([a,x.pathname])),(g.replace?l.replace:l.push)(x,g.state,g)},[a,l,c,u,t])}reactExports.createContext(null);function useParams(){let{matches:t}=reactExports.useContext(RouteContext),a=t[t.length-1];return a?a.params:{}}function useResolvedPath(t,{relative:a}={}){let{matches:l}=reactExports.useContext(RouteContext),{pathname:o}=useLocation(),u=JSON.stringify(getResolveToMatches(l));return reactExports.useMemo(()=>resolveTo(t,JSON.parse(u),o,a==="path"),[t,u,o,a])}function useRoutes(t,a){return useRoutesImpl(t,a)}function useRoutesImpl(t,a,l){var L;invariant(useInRouterContext(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=reactExports.useContext(NavigationContext),{matches:u}=reactExports.useContext(RouteContext),c=u[u.length-1],d=c?c.params:{},h=c?c.pathname:"/",p=c?c.pathnameBase:"/",g=c&&c.route;{let D=g&&g.path||"";warningOnce(h,!g||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
43
43
|
|
|
44
|
-
Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let x=useLocation(),b;if(a){let D=typeof a=="string"?parsePath(a):a;invariant(p==="/"||((L=D.pathname)==null?void 0:L.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${D.pathname}" was given in the \`location\` prop.`),b=D}else b=x;let C=b.pathname||"/",R=C;if(p!=="/"){let D=p.replace(/^\//,"").split("/");R="/"+C.replace(/^\//,"").split("/").slice(D.length).join("/")}let _=matchRoutes(t,{pathname:R});warning(m||_!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),warning(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=_renderMatches(_&&_.map(D=>Object.assign({},D,{params:Object.assign({},d,D.params),pathname:joinPaths([p,o.encodeLocation?o.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?p:joinPaths([p,o.encodeLocation?o.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),u,l);return a&&B?reactExports.createElement(LocationContext.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},B):B}function DefaultErrorComponent(){let t=useRouteError(),a=isRouteErrorResponse(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),l=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:o},c={padding:"2px 4px",backgroundColor:o},d=null;return console.error("Error handled by React Router default ErrorBoundary:",t),d=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("p",null,"💿 Hey developer 👋"),reactExports.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",reactExports.createElement("code",{style:c},"ErrorBoundary")," or"," ",reactExports.createElement("code",{style:c},"errorElement")," prop on your route.")),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},a),l?reactExports.createElement("pre",{style:u},l):null,d)}var defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null),RenderErrorBoundary=class extends reactExports.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,a){return a.location!==t.location||a.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:a.error,location:a.location,revalidation:t.revalidation||a.revalidation}}componentDidCatch(t,a){this.props.onError?this.props.onError(t,a):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const l=decodeRouteErrorResponseDigest(t.digest);l&&(t=l)}let a=t!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?reactExports.createElement(RSCErrorHandler,{error:t},a):a}};RenderErrorBoundary.contextType=RSCRouterContext;var errorRedirectHandledMap=new WeakMap;function RSCErrorHandler({children:t,error:a}){let{basename:l}=reactExports.useContext(NavigationContext);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let o=decodeRedirectErrorDigest(a.digest);if(o){let u=errorRedirectHandledMap.get(a);if(u)throw u;let c=parseToInfo(o.location,l);if(isBrowser&&!errorRedirectHandledMap.get(a))if(c.isExternal||o.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:o.replace}));throw errorRedirectHandledMap.set(a,d),d}return reactExports.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return t}function RenderedRoute({routeContext:t,match:a,children:l}){let o=reactExports.useContext(DataRouterContext);return o&&o.static&&o.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=a.route.id),reactExports.createElement(RouteContext.Provider,{value:t},l)}function _renderMatches(t,a=[],l){let o=l==null?void 0:l.state;if(t==null){if(!o)return null;if(o.errors)t=o.matches;else if(a.length===0&&!o.initialized&&o.matches.length>0)t=o.matches;else return null}let u=t,c=o==null?void 0:o.errors;if(c!=null){let x=u.findIndex(b=>b.route.id&&(c==null?void 0:c[b.route.id])!==void 0);invariant(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let d=!1,g=-1;if(l&&o){d=o.renderFallback;for(let x=0;x<u.length;x++){let b=u[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(g=x),b.route.id){let{loaderData:C,errors:R}=o,_=b.route.loader&&!C.hasOwnProperty(b.route.id)&&(!R||R[b.route.id]===void 0);if(b.route.lazy||_){l.isStatic&&(d=!0),g>=0?u=u.slice(0,g+1):u=[u[0]];break}}}}let p=l==null?void 0:l.onError,m=o&&p?(x,b)=>{var C,R;p(x,{location:o.location,params:((R=(C=o.matches)==null?void 0:C[0])==null?void 0:R.params)??{},unstable_pattern:getRoutePattern(o.matches),errorInfo:b})}:void 0;return u.reduceRight((x,b,C)=>{let R,_=!1,B=null,L=null;o&&(R=c&&b.route.id?c[b.route.id]:void 0,B=b.route.errorElement||defaultErrorElement,d&&(g<0&&C===0?(warningOnce("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,L=null):g===C&&(_=!0,L=b.route.hydrateFallbackElement||null)));let D=a.concat(u.slice(0,C+1)),H=()=>{let V;return R?V=B:_?V=L:b.route.Component?V=reactExports.createElement(b.route.Component,null):b.route.element?V=b.route.element:V=x,reactExports.createElement(RenderedRoute,{match:b,routeContext:{outlet:x,matches:D,isDataRoute:o!=null},children:V})};return o&&(b.route.ErrorBoundary||b.route.errorElement||C===0)?reactExports.createElement(RenderErrorBoundary,{location:o.location,revalidation:o.revalidation,component:B,error:R,children:H(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:m}):H()},null)}function getDataRouterConsoleError(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext(t){let a=reactExports.useContext(DataRouterContext);return invariant(a,getDataRouterConsoleError(t)),a}function useDataRouterState(t){let a=reactExports.useContext(DataRouterStateContext);return invariant(a,getDataRouterConsoleError(t)),a}function useRouteContext(t){let a=reactExports.useContext(RouteContext);return invariant(a,getDataRouterConsoleError(t)),a}function useCurrentRouteId(t){let a=useRouteContext(t),l=a.matches[a.matches.length-1];return invariant(l.route.id,`${t} can only be used on routes that contain a unique "id"`),l.route.id}function useRouteId(){return useCurrentRouteId("useRouteId")}function useRouteError(){var o;let t=reactExports.useContext(RouteErrorContext),a=useDataRouterState("useRouteError"),l=useCurrentRouteId("useRouteError");return t!==void 0?t:(o=a.errors)==null?void 0:o[l]}function useNavigateStable(){let{router:t}=useDataRouterContext("useNavigate"),a=useCurrentRouteId("useNavigate"),l=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{l.current=!0}),reactExports.useCallback(async(u,c={})=>{warning(l.current,navigateEffectWarning),l.current&&(typeof u=="number"?await t.navigate(u):await t.navigate(u,{fromRouteId:a,...c}))},[t,a])}var alreadyWarned={};function warningOnce(t,a,l){!a&&!alreadyWarned[t]&&(alreadyWarned[t]=!0,warning(!1,l))}reactExports.memo(DataRoutes);function DataRoutes({routes:t,future:a,state:l,isStatic:o,onError:u}){return useRoutesImpl(t,void 0,{state:l,isStatic:o,onError:u})}function Route(t){invariant(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Router({basename:t="/",children:a=null,location:l,navigationType:o="POP",navigator:u,static:c=!1,unstable_useTransitions:d}){invariant(!useInRouterContext(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=t.replace(/^\/*/,"/"),p=reactExports.useMemo(()=>({basename:g,navigator:u,static:c,unstable_useTransitions:d,future:{}}),[g,u,c,d]);typeof l=="string"&&(l=parsePath(l));let{pathname:m="/",search:x="",hash:b="",state:C=null,key:R="default",unstable_mask:_}=l,B=reactExports.useMemo(()=>{let L=stripBasename(m,g);return L==null?null:{location:{pathname:L,search:x,hash:b,state:C,key:R,unstable_mask:_},navigationType:o}},[g,m,x,b,C,R,o,_]);return warning(B!=null,`<Router basename="${g}"> is not able to match the URL "${m}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:reactExports.createElement(NavigationContext.Provider,{value:p},reactExports.createElement(LocationContext.Provider,{children:a,value:B}))}function Routes({children:t,location:a}){return useRoutes(createRoutesFromChildren(t),a)}function createRoutesFromChildren(t,a=[]){let l=[];return reactExports.Children.forEach(t,(o,u)=>{if(!reactExports.isValidElement(o))return;let c=[...a,u];if(o.type===reactExports.Fragment){l.push.apply(l,createRoutesFromChildren(o.props.children,c));return}invariant(o.type===Route,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),invariant(!o.props.index||!o.props.children,"An index route cannot have child routes.");let d={id:o.props.id||c.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(d.children=createRoutesFromChildren(o.props.children,c)),l.push(d)}),l}var defaultMethod="get",defaultEncType="application/x-www-form-urlencoded";function isHtmlElement(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function isButtonElement(t){return isHtmlElement(t)&&t.tagName.toLowerCase()==="button"}function isFormElement(t){return isHtmlElement(t)&&t.tagName.toLowerCase()==="form"}function isInputElement(t){return isHtmlElement(t)&&t.tagName.toLowerCase()==="input"}function isModifiedEvent(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function shouldProcessLinkClick(t,a){return t.button===0&&(!a||a==="_self")&&!isModifiedEvent(t)}var _formDataSupportsSubmitter=null;function isFormDataSubmitterSupported(){if(_formDataSupportsSubmitter===null)try{new FormData(document.createElement("form"),0),_formDataSupportsSubmitter=!1}catch{_formDataSupportsSubmitter=!0}return _formDataSupportsSubmitter}var supportedFormEncTypes=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function getFormEncType(t){return t!=null&&!supportedFormEncTypes.has(t)?(warning(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${defaultEncType}"`),null):t}function getFormSubmissionInfo(t,a){let l,o,u,c,d;if(isFormElement(t)){let g=t.getAttribute("action");o=g?stripBasename(g,a):null,l=t.getAttribute("method")||defaultMethod,u=getFormEncType(t.getAttribute("enctype"))||defaultEncType,c=new FormData(t)}else if(isButtonElement(t)||isInputElement(t)&&(t.type==="submit"||t.type==="image")){let g=t.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=t.getAttribute("formaction")||g.getAttribute("action");if(o=p?stripBasename(p,a):null,l=t.getAttribute("formmethod")||g.getAttribute("method")||defaultMethod,u=getFormEncType(t.getAttribute("formenctype"))||getFormEncType(g.getAttribute("enctype"))||defaultEncType,c=new FormData(g,t),!isFormDataSubmitterSupported()){let{name:m,type:x,value:b}=t;if(x==="image"){let C=m?`${m}.`:"";c.append(`${C}x`,"0"),c.append(`${C}y`,"0")}else m&&c.append(m,b)}}else{if(isHtmlElement(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=defaultMethod,o=null,u=defaultEncType,d=t}return c&&u==="text/plain"&&(d=c,c=void 0),{action:o,method:l.toLowerCase(),encType:u,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function invariant2(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function singleFetchUrl(t,a,l,o){let u=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return l?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${o}`:u.pathname=`${u.pathname}.${o}`:u.pathname==="/"?u.pathname=`_root.${o}`:a&&stripBasename(u.pathname,a)==="/"?u.pathname=`${a.replace(/\/$/,"")}/_root.${o}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${o}`,u}async function loadRouteModule(t,a){if(t.id in a)return a[t.id];try{let l=await import(t.module);return a[t.id]=l,l}catch(l){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function isHtmlLinkDescriptor(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function getKeyedPrefetchLinks(t,a,l){let o=await Promise.all(t.map(async u=>{let c=a.routes[u.route.id];if(c){let d=await loadRouteModule(c,l);return d.links?d.links():[]}return[]}));return dedupeLinkDescriptors(o.flat(1).filter(isHtmlLinkDescriptor).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function getNewMatchesForLinks(t,a,l,o,u,c){let d=(p,m)=>l[m]?p.route.id!==l[m].route.id:!0,g=(p,m)=>{var x;return l[m].pathname!==p.pathname||((x=l[m].route.path)==null?void 0:x.endsWith("*"))&&l[m].params["*"]!==p.params["*"]};return c==="assets"?a.filter((p,m)=>d(p,m)||g(p,m)):c==="data"?a.filter((p,m)=>{var b;let x=o.routes[p.route.id];if(!x||!x.hasLoader)return!1;if(d(p,m)||g(p,m))return!0;if(p.route.shouldRevalidate){let C=p.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((b=l[0])==null?void 0:b.params)||{},nextUrl:new URL(t,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function getModuleLinkHrefs(t,a,{includeHydrateFallback:l}={}){return dedupeHrefs(t.map(o=>{let u=a.routes[o.route.id];if(!u)return[];let c=[u.module];return u.clientActionModule&&(c=c.concat(u.clientActionModule)),u.clientLoaderModule&&(c=c.concat(u.clientLoaderModule)),l&&u.hydrateFallbackModule&&(c=c.concat(u.hydrateFallbackModule)),u.imports&&(c=c.concat(u.imports)),c}).flat(1))}function dedupeHrefs(t){return[...new Set(t)]}function sortKeys(t){let a={},l=Object.keys(t).sort();for(let o of l)a[o]=t[o];return a}function dedupeLinkDescriptors(t,a){let l=new Set;return new Set(a),t.reduce((o,u)=>{let c=JSON.stringify(sortKeys(u));return l.has(c)||(l.add(c),o.push({key:c,link:u})),o},[])}function useDataRouterContext2(){let t=reactExports.useContext(DataRouterContext);return invariant2(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function useDataRouterStateContext(){let t=reactExports.useContext(DataRouterStateContext);return invariant2(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var FrameworkContext=reactExports.createContext(void 0);FrameworkContext.displayName="FrameworkContext";function useFrameworkContext(){let t=reactExports.useContext(FrameworkContext);return invariant2(t,"You must render this element inside a <HydratedRouter> element"),t}function usePrefetchBehavior(t,a){let l=reactExports.useContext(FrameworkContext),[o,u]=reactExports.useState(!1),[c,d]=reactExports.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:m,onMouseLeave:x,onTouchStart:b}=a,C=reactExports.useRef(null);reactExports.useEffect(()=>{if(t==="render"&&d(!0),t==="viewport"){let B=D=>{D.forEach(H=>{d(H.isIntersecting)})},L=new IntersectionObserver(B,{threshold:.5});return C.current&&L.observe(C.current),()=>{L.disconnect()}}},[t]),reactExports.useEffect(()=>{if(o){let B=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(B)}}},[o]);let R=()=>{u(!0)},_=()=>{u(!1),d(!1)};return l?t!=="intent"?[c,C,{}]:[c,C,{onFocus:composeEventHandlers(g,R),onBlur:composeEventHandlers(p,_),onMouseEnter:composeEventHandlers(m,R),onMouseLeave:composeEventHandlers(x,_),onTouchStart:composeEventHandlers(b,R)}]:[!1,C,{}]}function composeEventHandlers(t,a){return l=>{t&&t(l),l.defaultPrevented||a(l)}}function PrefetchPageLinks({page:t,...a}){let{router:l}=useDataRouterContext2(),o=reactExports.useMemo(()=>matchRoutes(l.routes,t,l.basename),[l.routes,t,l.basename]);return o?reactExports.createElement(PrefetchPageLinksImpl,{page:t,matches:o,...a}):null}function useKeyedPrefetchLinks(t){let{manifest:a,routeModules:l}=useFrameworkContext(),[o,u]=reactExports.useState([]);return reactExports.useEffect(()=>{let c=!1;return getKeyedPrefetchLinks(t,a,l).then(d=>{c||u(d)}),()=>{c=!0}},[t,a,l]),o}function PrefetchPageLinksImpl({page:t,matches:a,...l}){let o=useLocation(),{future:u,manifest:c,routeModules:d}=useFrameworkContext(),{basename:g}=useDataRouterContext2(),{loaderData:p,matches:m}=useDataRouterStateContext(),x=reactExports.useMemo(()=>getNewMatchesForLinks(t,a,m,c,o,"data"),[t,a,m,c,o]),b=reactExports.useMemo(()=>getNewMatchesForLinks(t,a,m,c,o,"assets"),[t,a,m,c,o]),C=reactExports.useMemo(()=>{if(t===o.pathname+o.search+o.hash)return[];let B=new Set,L=!1;if(a.forEach(H=>{var se;let V=c.routes[H.route.id];!V||!V.hasLoader||(!x.some(te=>te.route.id===H.route.id)&&H.route.id in p&&((se=d[H.route.id])!=null&&se.shouldRevalidate)||V.hasClientLoader?L=!0:B.add(H.route.id))}),B.size===0)return[];let D=singleFetchUrl(t,g,u.unstable_trailingSlashAwareDataRequests,"data");return L&&B.size>0&&D.searchParams.set("_routes",a.filter(H=>B.has(H.route.id)).map(H=>H.route.id).join(",")),[D.pathname+D.search]},[g,u.unstable_trailingSlashAwareDataRequests,p,o,c,x,a,t,d]),R=reactExports.useMemo(()=>getModuleLinkHrefs(b,c),[b,c]),_=useKeyedPrefetchLinks(b);return reactExports.createElement(reactExports.Fragment,null,C.map(B=>reactExports.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...l})),R.map(B=>reactExports.createElement("link",{key:B,rel:"modulepreload",href:B,...l})),_.map(({key:B,link:L})=>reactExports.createElement("link",{key:B,nonce:l.nonce,...L,crossOrigin:L.crossOrigin??l.crossOrigin})))}function mergeRefs(...t){return a=>{t.forEach(l=>{typeof l=="function"?l(a):l!=null&&(l.current=a)})}}var isBrowser2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{isBrowser2&&(window.__reactRouterVersion="7.13.1")}catch{}function BrowserRouter({basename:t,children:a,unstable_useTransitions:l,window:o}){let u=reactExports.useRef();u.current==null&&(u.current=createBrowserHistory({window:o,v5Compat:!0}));let c=u.current,[d,g]=reactExports.useState({action:c.action,location:c.location}),p=reactExports.useCallback(m=>{l===!1?g(m):reactExports.startTransition(()=>g(m))},[l]);return reactExports.useLayoutEffect(()=>c.listen(p),[c,p]),reactExports.createElement(Router,{basename:t,children:a,location:d.location,navigationType:d.action,navigator:c,unstable_useTransitions:l})}var ABSOLUTE_URL_REGEX2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function({onClick:a,discover:l="render",prefetch:o="none",relative:u,reloadDocument:c,replace:d,unstable_mask:g,state:p,target:m,to:x,preventScrollReset:b,viewTransition:C,unstable_defaultShouldRevalidate:R,..._},B){let{basename:L,navigator:D,unstable_useTransitions:H}=reactExports.useContext(NavigationContext),V=typeof x=="string"&&ABSOLUTE_URL_REGEX2.test(x),se=parseToInfo(x,L);x=se.to;let te=useHref(x,{relative:u}),Y=useLocation(),ge=null;if(g){let ee=resolveTo(g,[],Y.unstable_mask?Y.unstable_mask.pathname:"/",!0);L!=="/"&&(ee.pathname=ee.pathname==="/"?L:joinPaths([L,ee.pathname])),ge=D.createHref(ee)}let[W,ve,K]=usePrefetchBehavior(o,_),Ee=useLinkClickHandler(x,{replace:d,unstable_mask:g,state:p,target:m,preventScrollReset:b,relative:u,viewTransition:C,unstable_defaultShouldRevalidate:R,unstable_useTransitions:H});function ae(ee){a&&a(ee),ee.defaultPrevented||Ee(ee)}let Ce=!(se.isExternal||c),ye=reactExports.createElement("a",{..._,...K,href:(Ce?ge:void 0)||se.absoluteURL||te,onClick:Ce?ae:a,ref:mergeRefs(B,ve),target:m,"data-discover":!V&&l==="render"?"true":void 0});return W&&!V?reactExports.createElement(reactExports.Fragment,null,ye,reactExports.createElement(PrefetchPageLinks,{page:te})):ye});Link.displayName="Link";var NavLink=reactExports.forwardRef(function({"aria-current":a="page",caseSensitive:l=!1,className:o="",end:u=!1,style:c,to:d,viewTransition:g,children:p,...m},x){let b=useResolvedPath(d,{relative:m.relative}),C=useLocation(),R=reactExports.useContext(DataRouterStateContext),{navigator:_,basename:B}=reactExports.useContext(NavigationContext),L=R!=null&&useViewTransitionState(b)&&g===!0,D=_.encodeLocation?_.encodeLocation(b).pathname:b.pathname,H=C.pathname,V=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;l||(H=H.toLowerCase(),V=V?V.toLowerCase():null,D=D.toLowerCase()),V&&B&&(V=stripBasename(V,B)||V);const se=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let te=H===D||!u&&H.startsWith(D)&&H.charAt(se)==="/",Y=V!=null&&(V===D||!u&&V.startsWith(D)&&V.charAt(D.length)==="/"),ge={isActive:te,isPending:Y,isTransitioning:L},W=te?a:void 0,ve;typeof o=="function"?ve=o(ge):ve=[o,te?"active":null,Y?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let K=typeof c=="function"?c(ge):c;return reactExports.createElement(Link,{...m,"aria-current":W,className:ve,ref:x,style:K,to:d,viewTransition:g},typeof p=="function"?p(ge):p)});NavLink.displayName="NavLink";var Form=reactExports.forwardRef(({discover:t="render",fetcherKey:a,navigate:l,reloadDocument:o,replace:u,state:c,method:d=defaultMethod,action:g,onSubmit:p,relative:m,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:C,...R},_)=>{let{unstable_useTransitions:B}=reactExports.useContext(NavigationContext),L=useSubmit(),D=useFormAction(g,{relative:m}),H=d.toLowerCase()==="get"?"get":"post",V=typeof g=="string"&&ABSOLUTE_URL_REGEX2.test(g),se=te=>{if(p&&p(te),te.defaultPrevented)return;te.preventDefault();let Y=te.nativeEvent.submitter,ge=(Y==null?void 0:Y.getAttribute("formmethod"))||d,W=()=>L(Y||te.currentTarget,{fetcherKey:a,method:ge,navigate:l,replace:u,state:c,relative:m,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:C});B&&l!==!1?reactExports.startTransition(()=>W()):W()};return reactExports.createElement("form",{ref:_,method:H,action:D,onSubmit:o?p:se,...R,"data-discover":!V&&t==="render"?"true":void 0})});Form.displayName="Form";function getDataRouterConsoleError2(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext3(t){let a=reactExports.useContext(DataRouterContext);return invariant(a,getDataRouterConsoleError2(t)),a}function useLinkClickHandler(t,{target:a,replace:l,unstable_mask:o,state:u,preventScrollReset:c,relative:d,viewTransition:g,unstable_defaultShouldRevalidate:p,unstable_useTransitions:m}={}){let x=useNavigate(),b=useLocation(),C=useResolvedPath(t,{relative:d});return reactExports.useCallback(R=>{if(shouldProcessLinkClick(R,a)){R.preventDefault();let _=l!==void 0?l:createPath(b)===createPath(C),B=()=>x(t,{replace:_,unstable_mask:o,state:u,preventScrollReset:c,relative:d,viewTransition:g,unstable_defaultShouldRevalidate:p});m?reactExports.startTransition(()=>B()):B()}},[b,x,C,l,o,u,a,t,c,d,g,p,m])}var fetcherId=0,getUniqueFetcherId=()=>`__${String(++fetcherId)}__`;function useSubmit(){let{router:t}=useDataRouterContext3("useSubmit"),{basename:a}=reactExports.useContext(NavigationContext),l=useRouteId(),o=t.fetch,u=t.navigate;return reactExports.useCallback(async(c,d={})=>{let{action:g,method:p,encType:m,formData:x,body:b}=getFormSubmissionInfo(c,a);if(d.navigate===!1){let C=d.fetcherKey||getUniqueFetcherId();await o(C,l,d.action||g,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||p,formEncType:d.encType||m,flushSync:d.flushSync})}else await u(d.action||g,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||p,formEncType:d.encType||m,replace:d.replace,state:d.state,fromRouteId:l,flushSync:d.flushSync,viewTransition:d.viewTransition})},[o,u,a,l])}function useFormAction(t,{relative:a}={}){let{basename:l}=reactExports.useContext(NavigationContext),o=reactExports.useContext(RouteContext);invariant(o,"useFormAction must be used inside a RouteContext");let[u]=o.matches.slice(-1),c={...useResolvedPath(t||".",{relative:a})},d=useLocation();if(t==null){c.search=d.search;let g=new URLSearchParams(c.search),p=g.getAll("index");if(p.some(x=>x==="")){g.delete("index"),p.filter(b=>b).forEach(b=>g.append("index",b));let x=g.toString();c.search=x?`?${x}`:""}}return(!t||t===".")&&u.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(c.pathname=c.pathname==="/"?l:joinPaths([l,c.pathname])),createPath(c)}function useViewTransitionState(t,{relative:a}={}){let l=reactExports.useContext(ViewTransitionContext);invariant(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=useDataRouterContext3("useViewTransitionState"),u=useResolvedPath(t,{relative:a});if(!l.isTransitioning)return!1;let c=stripBasename(l.currentLocation.pathname,o)||l.currentLocation.pathname,d=stripBasename(l.nextLocation.pathname,o)||l.nextLocation.pathname;return matchPath(u.pathname,d)!=null||matchPath(u.pathname,c)!=null}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,o={}){var d;if(this.connected&&((d=this.ws)==null?void 0:d.readyState)===WebSocket.OPEN){this.wsSend({type:"intent",clappId:a,intent:l,payload:o});return}const u={id:crypto.randomUUID(),agentId:"local",clappId:a,intent:l,payload:o,timestamp:new Date().toISOString()},c=await fetch(`${this.serverUrl}/api/intent`,{method:"POST",headers:{"Content-Type":"application/json",...this.authHeaders()},body:JSON.stringify(u)});if(!c.ok)throw new Error(`Failed to send intent: ${c.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,o=a.state;for(const u of this.stateListeners)u(l,o);break}case"apps":{const l=a.apps;for(const o of this.appsListeners)o(l);break}case"view":{const l=a.viewId,o=a.content;for(const u of this.viewListeners)u(l,o);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 o=t.map(u=>{const c=setRef(u,a);return!l&&typeof c=="function"&&(l=!0),c});if(l)return()=>{for(let u=0;u<o.length;u++){const c=o[u];typeof c=="function"?c():setRef(t[u],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((o,u)=>{let{children:c,...d}=o;isLazyComponent(c)&&typeof use=="function"&&(c=use(c._payload));const g=reactExports.Children.toArray(c),p=g.find(isSlottable);if(p){const m=p.props.children,x=g.map(b=>b===p?reactExports.Children.count(m)>1?reactExports.Children.only(null):reactExports.isValidElement(m)?m.props.children:null:b);return jsxRuntimeExports.jsx(a,{...d,ref:u,children:reactExports.isValidElement(m)?reactExports.cloneElement(m,void 0,x):null})}return jsxRuntimeExports.jsx(a,{...d,ref:u,children:c})});return l.displayName=`${t}.Slot`,l}var Slot=createSlot("Slot");function createSlotClone(t){const a=reactExports.forwardRef((l,o)=>{let{children:u,...c}=l;if(isLazyComponent(u)&&typeof use=="function"&&(u=use(u._payload)),reactExports.isValidElement(u)){const d=getElementRef(u),g=mergeProps(c,u.props);return u.type!==reactExports.Fragment&&(g.ref=o?composeRefs(o,d):d),reactExports.cloneElement(u,g)}return reactExports.Children.count(u)>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 o in a){const u=t[o],c=a[o];/^on[A-Z]/.test(o)?u&&c?l[o]=(...g)=>{const p=c(...g);return u(...g),p}:u&&(l[o]=u):o==="style"?l[o]={...u,...c}:o==="className"&&(l[o]=[u,c].filter(Boolean).join(" "))}return{...t,...l}}function getElementRef(t){var o,u;let a=(o=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:o.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?t.ref:(a=(u=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:u.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?t.props.ref:t.props.ref||t.ref)}function r(t){var a,l,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(a=0;a<u;a++)t[a]&&(l=r(t[a]))&&(o&&(o+=" "),o+=l)}else for(l in t)t[l]&&(o&&(o+=" "),o+=l);return o}function clsx(){for(var t,a,l=0,o="",u=arguments.length;l<u;l++)(t=arguments[l])&&(a=r(t))&&(o&&(o+=" "),o+=a);return o}const falsyToString=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,cx=clsx,cva=(t,a)=>l=>{var o;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:u,defaultVariants:c}=a,d=Object.keys(u).map(m=>{const x=l==null?void 0:l[m],b=c==null?void 0:c[m];if(x===null)return null;const C=falsyToString(x)||falsyToString(b);return u[m][C]}),g=l&&Object.entries(l).reduce((m,x)=>{let[b,C]=x;return C===void 0||(m[b]=C),m},{}),p=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((m,x)=>{let{class:b,className:C,...R}=x;return Object.entries(R).every(_=>{let[B,L]=_;return Array.isArray(L)?L.includes({...c,...g}[B]):{...c,...g}[B]===L})?[...m,b,C]:m},[]);return cx(t,d,p,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 o=0;o<t.length;o++)l[o]=t[o];for(let o=0;o<a.length;o++)l[t.length+o]=a[o];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:o}=t;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return getGroupIdForArbitraryProperty(d);const g=d.split(CLASS_PART_SEPARATOR),p=g[0]===""&&g.length>1?1:0;return getGroupRecursive(g,p,a)},getConflictingClassGroupIds:(d,g)=>{if(g){const p=o[d],m=l[d];return p?m?concatArrays(m,p):p:m||EMPTY_CONFLICTS}return l[d]||EMPTY_CONFLICTS}}},getGroupRecursive=(t,a,l)=>{if(t.length-a===0)return l.classGroupId;const u=t[a],c=l.nextPart.get(u);if(c){const m=getGroupRecursive(t,a+1,c);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),p=d.length;for(let m=0;m<p;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(":"),o=a.slice(0,l);return o?ARBITRARY_PROPERTY_PREFIX+o:void 0})(),createClassMap=t=>{const{theme:a,classGroups:l}=t;return processClassGroups(l,a)},processClassGroups=(t,a)=>{const l=createClassPartObject();for(const o in t){const u=t[o];processClassesRecursively(u,l,o,a)}return l},processClassesRecursively=(t,a,l,o)=>{const u=t.length;for(let c=0;c<u;c++){const d=t[c];processClassDefinition(d,a,l,o)}},processClassDefinition=(t,a,l,o)=>{if(typeof t=="string"){processStringDefinition(t,a,l);return}if(typeof t=="function"){processFunctionDefinition(t,a,l,o);return}processObjectDefinition(t,a,l,o)},processStringDefinition=(t,a,l)=>{const o=t===""?a:getPart(a,t);o.classGroupId=l},processFunctionDefinition=(t,a,l,o)=>{if(isThemeGetter(t)){processClassesRecursively(t(o),a,l,o);return}a.validators===null&&(a.validators=[]),a.validators.push(createClassValidatorObject(l,t))},processObjectDefinition=(t,a,l,o)=>{const u=Object.entries(t),c=u.length;for(let d=0;d<c;d++){const[g,p]=u[d];processClassesRecursively(p,getPart(a,g),l,o)}},getPart=(t,a)=>{let l=t;const o=a.split(CLASS_PART_SEPARATOR),u=o.length;for(let c=0;c<u;c++){const d=o[c];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),o=Object.create(null);const u=(c,d)=>{l[c]=d,a++,a>t&&(a=0,o=l,l=Object.create(null))};return{get(c){let d=l[c];if(d!==void 0)return d;if((d=o[c])!==void 0)return u(c,d),d},set(c,d){c in l?l[c]=d:u(c,d)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",EMPTY_MODIFIERS=[],createResultObject=(t,a,l,o,u)=>({modifiers:t,hasImportantModifier:a,baseClassName:l,maybePostfixModifierPosition:o,isExternal:u}),createParseClassName=t=>{const{prefix:a,experimentalParseClassName:l}=t;let o=u=>{const c=[];let d=0,g=0,p=0,m;const x=u.length;for(let B=0;B<x;B++){const L=u[B];if(d===0&&g===0){if(L===MODIFIER_SEPARATOR){c.push(u.slice(p,B)),p=B+1;continue}if(L==="/"){m=B;continue}}L==="["?d++:L==="]"?d--:L==="("?g++:L===")"&&g--}const b=c.length===0?u:u.slice(p);let C=b,R=!1;b.endsWith(IMPORTANT_MODIFIER)?(C=b.slice(0,-1),R=!0):b.startsWith(IMPORTANT_MODIFIER)&&(C=b.slice(1),R=!0);const _=m&&m>p?m-p:void 0;return createResultObject(c,R,C,_)};if(a){const u=a+MODIFIER_SEPARATOR,c=o;o=d=>d.startsWith(u)?c(d.slice(u.length)):createResultObject(EMPTY_MODIFIERS,!1,d,void 0,!0)}if(l){const u=o;o=c=>l({className:c,parseClassName:u})}return o},createSortModifiers=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((l,o)=>{a.set(l,1e6+o)}),l=>{const o=[];let u=[];for(let c=0;c<l.length;c++){const d=l[c],g=d[0]==="[",p=a.has(d);g||p?(u.length>0&&(u.sort(),o.push(...u),u=[]),o.push(d)):u.push(d)}return u.length>0&&(u.sort(),o.push(...u)),o}},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:o,getConflictingClassGroupIds:u,sortModifiers:c}=a,d=[],g=t.trim().split(SPLIT_CLASSES_REGEX);let p="";for(let m=g.length-1;m>=0;m-=1){const x=g[m],{isExternal:b,modifiers:C,hasImportantModifier:R,baseClassName:_,maybePostfixModifierPosition:B}=l(x);if(b){p=x+(p.length>0?" "+p:p);continue}let L=!!B,D=o(L?_.substring(0,B):_);if(!D){if(!L){p=x+(p.length>0?" "+p:p);continue}if(D=o(_),!D){p=x+(p.length>0?" "+p:p);continue}L=!1}const H=C.length===0?"":C.length===1?C[0]:c(C).join(":"),V=R?H+IMPORTANT_MODIFIER:H,se=V+D;if(d.indexOf(se)>-1)continue;d.push(se);const te=u(D,L);for(let Y=0;Y<te.length;++Y){const ge=te[Y];d.push(V+ge)}p=x+(p.length>0?" "+p:p)}return p},twJoin=(...t)=>{let a=0,l,o,u="";for(;a<t.length;)(l=t[a++])&&(o=toValue(l))&&(u&&(u+=" "),u+=o);return u},toValue=t=>{if(typeof t=="string")return t;let a,l="";for(let o=0;o<t.length;o++)t[o]&&(a=toValue(t[o]))&&(l&&(l+=" "),l+=a);return l},createTailwindMerge=(t,...a)=>{let l,o,u,c;const d=p=>{const m=a.reduce((x,b)=>b(x),t());return l=createConfigUtils(m),o=l.cache.get,u=l.cache.set,c=g,g(p)},g=p=>{const m=o(p);if(m)return m;const x=mergeClassList(p,l);return u(p,x),x};return c=d,(...p)=>c(twJoin(...p))},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 o=arbitraryValueRegex.exec(t);return o?o[1]?a(o[1]):l(o[2]):!1},getIsArbitraryVariable=(t,a,l=!1)=>{const o=arbitraryVariableRegex.exec(t);return o?o[1]?a(o[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"),o=fromTheme("font-weight"),u=fromTheme("tracking"),c=fromTheme("leading"),d=fromTheme("breakpoint"),g=fromTheme("container"),p=fromTheme("spacing"),m=fromTheme("radius"),x=fromTheme("shadow"),b=fromTheme("inset-shadow"),C=fromTheme("text-shadow"),R=fromTheme("drop-shadow"),_=fromTheme("blur"),B=fromTheme("perspective"),L=fromTheme("aspect"),D=fromTheme("ease"),H=fromTheme("animate"),V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],te=()=>[...se(),isArbitraryVariable,isArbitraryValue],Y=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto","contain","none"],W=()=>[isArbitraryVariable,isArbitraryValue,p],ve=()=>[isFraction,"full","auto",...W()],K=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],Ee=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],ae=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],Ce=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...W()],he=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...W()],fe=()=>[isFraction,"screen","full","dvw","lvw","svw","min","max","fit",...W()],_e=()=>[isFraction,"screen","full","lh","dvh","lvh","svh","min","max","fit",...W()],O=()=>[t,isArbitraryVariable,isArbitraryValue],q=()=>[...se(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],be=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],xe=()=>["","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"],je=()=>[isNumber,isPercent,isArbitraryVariablePosition,isArbitraryPosition],nt=()=>["","none",_,isArbitraryVariable,isArbitraryValue],Qe=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],at=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],kt=()=>[isNumber,isArbitraryVariable,isArbitraryValue],ut=()=>[isFraction,"full",...W()];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,L]}],container:["container"],columns:[{columns:[isNumber,isArbitraryValue,isArbitraryVariable,g]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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:te()}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:ge()}],"overscroll-x":[{"overscroll-x":ge()}],"overscroll-y":[{"overscroll-y":ge()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ve()}],"inset-x":[{"inset-x":ve()}],"inset-y":[{"inset-y":ve()}],start:[{"inset-s":ve(),start:ve()}],end:[{"inset-e":ve(),end:ve()}],"inset-bs":[{"inset-bs":ve()}],"inset-be":[{"inset-be":ve()}],top:[{top:ve()}],right:[{right:ve()}],bottom:[{bottom:ve()}],left:[{left:ve()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",g,...W()]}],"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":K()}],"col-start-end":[{col:Ee()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:Ee()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ce()}],"auto-rows":[{"auto-rows":Ce()}],gap:[{gap:W()}],"gap-x":[{"gap-x":W()}],"gap-y":[{"gap-y":W()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:W()}],px:[{px:W()}],py:[{py:W()}],ps:[{ps:W()}],pe:[{pe:W()}],pbs:[{pbs:W()}],pbe:[{pbe:W()}],pt:[{pt:W()}],pr:[{pr:W()}],pb:[{pb:W()}],pl:[{pl:W()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:he()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",..._e()]}],"min-block-size":[{"min-block":["auto",..._e()]}],"max-block-size":[{"max-block":["none",..._e()]}],w:[{w:[g,"screen",...he()]}],"min-w":[{"min-w":[g,"screen","none",...he()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[d]},...he()]}],h:[{h:["screen","lh",...he()]}],"min-h":[{"min-h":["screen","lh","none",...he()]}],"max-h":[{"max-h":["screen","lh",...he()]}],"font-size":[{text:["base",l,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,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:[u,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[c,...W()]}],"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:O()}],"text-color":[{text:O()}],"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:O()}],"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:W()}],"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:q()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:N()}],"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:O()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:xe()}],"rounded-s":[{"rounded-s":xe()}],"rounded-e":[{"rounded-e":xe()}],"rounded-t":[{"rounded-t":xe()}],"rounded-r":[{"rounded-r":xe()}],"rounded-b":[{"rounded-b":xe()}],"rounded-l":[{"rounded-l":xe()}],"rounded-ss":[{"rounded-ss":xe()}],"rounded-se":[{"rounded-se":xe()}],"rounded-ee":[{"rounded-ee":xe()}],"rounded-es":[{"rounded-es":xe()}],"rounded-tl":[{"rounded-tl":xe()}],"rounded-tr":[{"rounded-tr":xe()}],"rounded-br":[{"rounded-br":xe()}],"rounded-bl":[{"rounded-bl":xe()}],"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:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...Oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",x,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",b,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[isNumber,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",C,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":O()}],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":je()}],"mask-image-linear-to-pos":[{"mask-linear-to":je()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":je()}],"mask-image-t-to-pos":[{"mask-t-to":je()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":je()}],"mask-image-r-to-pos":[{"mask-r-to":je()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":je()}],"mask-image-b-to-pos":[{"mask-b-to":je()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":je()}],"mask-image-l-to-pos":[{"mask-l-to":je()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":je()}],"mask-image-x-to-pos":[{"mask-x-to":je()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":je()}],"mask-image-y-to-pos":[{"mask-y-to":je()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":je()}],"mask-image-radial-to-pos":[{"mask-radial-to":je()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":se()}],"mask-image-conic-pos":[{"mask-conic":[isNumber]}],"mask-image-conic-from-pos":[{"mask-conic-from":je()}],"mask-image-conic-to-pos":[{"mask-conic-to":je()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:N()}],"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",R,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":O()}],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":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"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",D,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",H,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[B,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":te()}],rotate:[{rotate:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],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:te()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ut()}],"translate-x":[{"translate-x":ut()}],"translate-y":[{"translate-y":ut()}],"translate-z":[{"translate-z":ut()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mbs":[{"scroll-mbs":W()}],"scroll-mbe":[{"scroll-mbe":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pbs":[{"scroll-pbs":W()}],"scroll-pbe":[{"scroll-pbe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"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",...O()]}],"stroke-w":[{stroke:[isNumber,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...O()]}],"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:o=!1,...u},c)=>{const d=o?Slot:"button";return jsxRuntimeExports.jsx(d,{className:cn(buttonVariants({variant:a,size:l,className:t})),ref:c,...u})});Button.displayName="Button";/**
|
|
44
|
+
Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let x=useLocation(),b;if(a){let D=typeof a=="string"?parsePath(a):a;invariant(p==="/"||((L=D.pathname)==null?void 0:L.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${D.pathname}" was given in the \`location\` prop.`),b=D}else b=x;let C=b.pathname||"/",R=C;if(p!=="/"){let D=p.replace(/^\//,"").split("/");R="/"+C.replace(/^\//,"").split("/").slice(D.length).join("/")}let _=matchRoutes(t,{pathname:R});warning(g||_!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),warning(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=_renderMatches(_&&_.map(D=>Object.assign({},D,{params:Object.assign({},d,D.params),pathname:joinPaths([p,o.encodeLocation?o.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?p:joinPaths([p,o.encodeLocation?o.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),u,l);return a&&B?reactExports.createElement(LocationContext.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},B):B}function DefaultErrorComponent(){let t=useRouteError(),a=isRouteErrorResponse(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),l=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:o},c={padding:"2px 4px",backgroundColor:o},d=null;return console.error("Error handled by React Router default ErrorBoundary:",t),d=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("p",null,"💿 Hey developer 👋"),reactExports.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",reactExports.createElement("code",{style:c},"ErrorBoundary")," or"," ",reactExports.createElement("code",{style:c},"errorElement")," prop on your route.")),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},a),l?reactExports.createElement("pre",{style:u},l):null,d)}var defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null),RenderErrorBoundary=class extends reactExports.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,a){return a.location!==t.location||a.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:a.error,location:a.location,revalidation:t.revalidation||a.revalidation}}componentDidCatch(t,a){this.props.onError?this.props.onError(t,a):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const l=decodeRouteErrorResponseDigest(t.digest);l&&(t=l)}let a=t!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?reactExports.createElement(RSCErrorHandler,{error:t},a):a}};RenderErrorBoundary.contextType=RSCRouterContext;var errorRedirectHandledMap=new WeakMap;function RSCErrorHandler({children:t,error:a}){let{basename:l}=reactExports.useContext(NavigationContext);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let o=decodeRedirectErrorDigest(a.digest);if(o){let u=errorRedirectHandledMap.get(a);if(u)throw u;let c=parseToInfo(o.location,l);if(isBrowser&&!errorRedirectHandledMap.get(a))if(c.isExternal||o.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:o.replace}));throw errorRedirectHandledMap.set(a,d),d}return reactExports.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return t}function RenderedRoute({routeContext:t,match:a,children:l}){let o=reactExports.useContext(DataRouterContext);return o&&o.static&&o.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=a.route.id),reactExports.createElement(RouteContext.Provider,{value:t},l)}function _renderMatches(t,a=[],l){let o=l==null?void 0:l.state;if(t==null){if(!o)return null;if(o.errors)t=o.matches;else if(a.length===0&&!o.initialized&&o.matches.length>0)t=o.matches;else return null}let u=t,c=o==null?void 0:o.errors;if(c!=null){let x=u.findIndex(b=>b.route.id&&(c==null?void 0:c[b.route.id])!==void 0);invariant(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let d=!1,h=-1;if(l&&o){d=o.renderFallback;for(let x=0;x<u.length;x++){let b=u[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(h=x),b.route.id){let{loaderData:C,errors:R}=o,_=b.route.loader&&!C.hasOwnProperty(b.route.id)&&(!R||R[b.route.id]===void 0);if(b.route.lazy||_){l.isStatic&&(d=!0),h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}}let p=l==null?void 0:l.onError,g=o&&p?(x,b)=>{var C,R;p(x,{location:o.location,params:((R=(C=o.matches)==null?void 0:C[0])==null?void 0:R.params)??{},unstable_pattern:getRoutePattern(o.matches),errorInfo:b})}:void 0;return u.reduceRight((x,b,C)=>{let R,_=!1,B=null,L=null;o&&(R=c&&b.route.id?c[b.route.id]:void 0,B=b.route.errorElement||defaultErrorElement,d&&(h<0&&C===0?(warningOnce("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,L=null):h===C&&(_=!0,L=b.route.hydrateFallbackElement||null)));let D=a.concat(u.slice(0,C+1)),$=()=>{let V;return R?V=B:_?V=L:b.route.Component?V=reactExports.createElement(b.route.Component,null):b.route.element?V=b.route.element:V=x,reactExports.createElement(RenderedRoute,{match:b,routeContext:{outlet:x,matches:D,isDataRoute:o!=null},children:V})};return o&&(b.route.ErrorBoundary||b.route.errorElement||C===0)?reactExports.createElement(RenderErrorBoundary,{location:o.location,revalidation:o.revalidation,component:B,error:R,children:$(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:g}):$()},null)}function getDataRouterConsoleError(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext(t){let a=reactExports.useContext(DataRouterContext);return invariant(a,getDataRouterConsoleError(t)),a}function useDataRouterState(t){let a=reactExports.useContext(DataRouterStateContext);return invariant(a,getDataRouterConsoleError(t)),a}function useRouteContext(t){let a=reactExports.useContext(RouteContext);return invariant(a,getDataRouterConsoleError(t)),a}function useCurrentRouteId(t){let a=useRouteContext(t),l=a.matches[a.matches.length-1];return invariant(l.route.id,`${t} can only be used on routes that contain a unique "id"`),l.route.id}function useRouteId(){return useCurrentRouteId("useRouteId")}function useRouteError(){var o;let t=reactExports.useContext(RouteErrorContext),a=useDataRouterState("useRouteError"),l=useCurrentRouteId("useRouteError");return t!==void 0?t:(o=a.errors)==null?void 0:o[l]}function useNavigateStable(){let{router:t}=useDataRouterContext("useNavigate"),a=useCurrentRouteId("useNavigate"),l=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{l.current=!0}),reactExports.useCallback(async(u,c={})=>{warning(l.current,navigateEffectWarning),l.current&&(typeof u=="number"?await t.navigate(u):await t.navigate(u,{fromRouteId:a,...c}))},[t,a])}var alreadyWarned={};function warningOnce(t,a,l){!a&&!alreadyWarned[t]&&(alreadyWarned[t]=!0,warning(!1,l))}reactExports.memo(DataRoutes);function DataRoutes({routes:t,future:a,state:l,isStatic:o,onError:u}){return useRoutesImpl(t,void 0,{state:l,isStatic:o,onError:u})}function Route(t){invariant(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Router({basename:t="/",children:a=null,location:l,navigationType:o="POP",navigator:u,static:c=!1,unstable_useTransitions:d}){invariant(!useInRouterContext(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=t.replace(/^\/*/,"/"),p=reactExports.useMemo(()=>({basename:h,navigator:u,static:c,unstable_useTransitions:d,future:{}}),[h,u,c,d]);typeof l=="string"&&(l=parsePath(l));let{pathname:g="/",search:x="",hash:b="",state:C=null,key:R="default",unstable_mask:_}=l,B=reactExports.useMemo(()=>{let L=stripBasename(g,h);return L==null?null:{location:{pathname:L,search:x,hash:b,state:C,key:R,unstable_mask:_},navigationType:o}},[h,g,x,b,C,R,o,_]);return warning(B!=null,`<Router basename="${h}"> is not able to match the URL "${g}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:reactExports.createElement(NavigationContext.Provider,{value:p},reactExports.createElement(LocationContext.Provider,{children:a,value:B}))}function Routes({children:t,location:a}){return useRoutes(createRoutesFromChildren(t),a)}function createRoutesFromChildren(t,a=[]){let l=[];return reactExports.Children.forEach(t,(o,u)=>{if(!reactExports.isValidElement(o))return;let c=[...a,u];if(o.type===reactExports.Fragment){l.push.apply(l,createRoutesFromChildren(o.props.children,c));return}invariant(o.type===Route,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),invariant(!o.props.index||!o.props.children,"An index route cannot have child routes.");let d={id:o.props.id||c.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(d.children=createRoutesFromChildren(o.props.children,c)),l.push(d)}),l}var defaultMethod="get",defaultEncType="application/x-www-form-urlencoded";function isHtmlElement(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function isButtonElement(t){return isHtmlElement(t)&&t.tagName.toLowerCase()==="button"}function isFormElement(t){return isHtmlElement(t)&&t.tagName.toLowerCase()==="form"}function isInputElement(t){return isHtmlElement(t)&&t.tagName.toLowerCase()==="input"}function isModifiedEvent(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function shouldProcessLinkClick(t,a){return t.button===0&&(!a||a==="_self")&&!isModifiedEvent(t)}var _formDataSupportsSubmitter=null;function isFormDataSubmitterSupported(){if(_formDataSupportsSubmitter===null)try{new FormData(document.createElement("form"),0),_formDataSupportsSubmitter=!1}catch{_formDataSupportsSubmitter=!0}return _formDataSupportsSubmitter}var supportedFormEncTypes=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function getFormEncType(t){return t!=null&&!supportedFormEncTypes.has(t)?(warning(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${defaultEncType}"`),null):t}function getFormSubmissionInfo(t,a){let l,o,u,c,d;if(isFormElement(t)){let h=t.getAttribute("action");o=h?stripBasename(h,a):null,l=t.getAttribute("method")||defaultMethod,u=getFormEncType(t.getAttribute("enctype"))||defaultEncType,c=new FormData(t)}else if(isButtonElement(t)||isInputElement(t)&&(t.type==="submit"||t.type==="image")){let h=t.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=t.getAttribute("formaction")||h.getAttribute("action");if(o=p?stripBasename(p,a):null,l=t.getAttribute("formmethod")||h.getAttribute("method")||defaultMethod,u=getFormEncType(t.getAttribute("formenctype"))||getFormEncType(h.getAttribute("enctype"))||defaultEncType,c=new FormData(h,t),!isFormDataSubmitterSupported()){let{name:g,type:x,value:b}=t;if(x==="image"){let C=g?`${g}.`:"";c.append(`${C}x`,"0"),c.append(`${C}y`,"0")}else g&&c.append(g,b)}}else{if(isHtmlElement(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=defaultMethod,o=null,u=defaultEncType,d=t}return c&&u==="text/plain"&&(d=c,c=void 0),{action:o,method:l.toLowerCase(),encType:u,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function invariant2(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function singleFetchUrl(t,a,l,o){let u=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return l?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${o}`:u.pathname=`${u.pathname}.${o}`:u.pathname==="/"?u.pathname=`_root.${o}`:a&&stripBasename(u.pathname,a)==="/"?u.pathname=`${a.replace(/\/$/,"")}/_root.${o}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${o}`,u}async function loadRouteModule(t,a){if(t.id in a)return a[t.id];try{let l=await import(t.module);return a[t.id]=l,l}catch(l){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function isHtmlLinkDescriptor(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function getKeyedPrefetchLinks(t,a,l){let o=await Promise.all(t.map(async u=>{let c=a.routes[u.route.id];if(c){let d=await loadRouteModule(c,l);return d.links?d.links():[]}return[]}));return dedupeLinkDescriptors(o.flat(1).filter(isHtmlLinkDescriptor).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function getNewMatchesForLinks(t,a,l,o,u,c){let d=(p,g)=>l[g]?p.route.id!==l[g].route.id:!0,h=(p,g)=>{var x;return l[g].pathname!==p.pathname||((x=l[g].route.path)==null?void 0:x.endsWith("*"))&&l[g].params["*"]!==p.params["*"]};return c==="assets"?a.filter((p,g)=>d(p,g)||h(p,g)):c==="data"?a.filter((p,g)=>{var b;let x=o.routes[p.route.id];if(!x||!x.hasLoader)return!1;if(d(p,g)||h(p,g))return!0;if(p.route.shouldRevalidate){let C=p.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((b=l[0])==null?void 0:b.params)||{},nextUrl:new URL(t,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function getModuleLinkHrefs(t,a,{includeHydrateFallback:l}={}){return dedupeHrefs(t.map(o=>{let u=a.routes[o.route.id];if(!u)return[];let c=[u.module];return u.clientActionModule&&(c=c.concat(u.clientActionModule)),u.clientLoaderModule&&(c=c.concat(u.clientLoaderModule)),l&&u.hydrateFallbackModule&&(c=c.concat(u.hydrateFallbackModule)),u.imports&&(c=c.concat(u.imports)),c}).flat(1))}function dedupeHrefs(t){return[...new Set(t)]}function sortKeys(t){let a={},l=Object.keys(t).sort();for(let o of l)a[o]=t[o];return a}function dedupeLinkDescriptors(t,a){let l=new Set;return new Set(a),t.reduce((o,u)=>{let c=JSON.stringify(sortKeys(u));return l.has(c)||(l.add(c),o.push({key:c,link:u})),o},[])}function useDataRouterContext2(){let t=reactExports.useContext(DataRouterContext);return invariant2(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function useDataRouterStateContext(){let t=reactExports.useContext(DataRouterStateContext);return invariant2(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var FrameworkContext=reactExports.createContext(void 0);FrameworkContext.displayName="FrameworkContext";function useFrameworkContext(){let t=reactExports.useContext(FrameworkContext);return invariant2(t,"You must render this element inside a <HydratedRouter> element"),t}function usePrefetchBehavior(t,a){let l=reactExports.useContext(FrameworkContext),[o,u]=reactExports.useState(!1),[c,d]=reactExports.useState(!1),{onFocus:h,onBlur:p,onMouseEnter:g,onMouseLeave:x,onTouchStart:b}=a,C=reactExports.useRef(null);reactExports.useEffect(()=>{if(t==="render"&&d(!0),t==="viewport"){let B=D=>{D.forEach($=>{d($.isIntersecting)})},L=new IntersectionObserver(B,{threshold:.5});return C.current&&L.observe(C.current),()=>{L.disconnect()}}},[t]),reactExports.useEffect(()=>{if(o){let B=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(B)}}},[o]);let R=()=>{u(!0)},_=()=>{u(!1),d(!1)};return l?t!=="intent"?[c,C,{}]:[c,C,{onFocus:composeEventHandlers(h,R),onBlur:composeEventHandlers(p,_),onMouseEnter:composeEventHandlers(g,R),onMouseLeave:composeEventHandlers(x,_),onTouchStart:composeEventHandlers(b,R)}]:[!1,C,{}]}function composeEventHandlers(t,a){return l=>{t&&t(l),l.defaultPrevented||a(l)}}function PrefetchPageLinks({page:t,...a}){let{router:l}=useDataRouterContext2(),o=reactExports.useMemo(()=>matchRoutes(l.routes,t,l.basename),[l.routes,t,l.basename]);return o?reactExports.createElement(PrefetchPageLinksImpl,{page:t,matches:o,...a}):null}function useKeyedPrefetchLinks(t){let{manifest:a,routeModules:l}=useFrameworkContext(),[o,u]=reactExports.useState([]);return reactExports.useEffect(()=>{let c=!1;return getKeyedPrefetchLinks(t,a,l).then(d=>{c||u(d)}),()=>{c=!0}},[t,a,l]),o}function PrefetchPageLinksImpl({page:t,matches:a,...l}){let o=useLocation(),{future:u,manifest:c,routeModules:d}=useFrameworkContext(),{basename:h}=useDataRouterContext2(),{loaderData:p,matches:g}=useDataRouterStateContext(),x=reactExports.useMemo(()=>getNewMatchesForLinks(t,a,g,c,o,"data"),[t,a,g,c,o]),b=reactExports.useMemo(()=>getNewMatchesForLinks(t,a,g,c,o,"assets"),[t,a,g,c,o]),C=reactExports.useMemo(()=>{if(t===o.pathname+o.search+o.hash)return[];let B=new Set,L=!1;if(a.forEach($=>{var se;let V=c.routes[$.route.id];!V||!V.hasLoader||(!x.some(ie=>ie.route.id===$.route.id)&&$.route.id in p&&((se=d[$.route.id])!=null&&se.shouldRevalidate)||V.hasClientLoader?L=!0:B.add($.route.id))}),B.size===0)return[];let D=singleFetchUrl(t,h,u.unstable_trailingSlashAwareDataRequests,"data");return L&&B.size>0&&D.searchParams.set("_routes",a.filter($=>B.has($.route.id)).map($=>$.route.id).join(",")),[D.pathname+D.search]},[h,u.unstable_trailingSlashAwareDataRequests,p,o,c,x,a,t,d]),R=reactExports.useMemo(()=>getModuleLinkHrefs(b,c),[b,c]),_=useKeyedPrefetchLinks(b);return reactExports.createElement(reactExports.Fragment,null,C.map(B=>reactExports.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...l})),R.map(B=>reactExports.createElement("link",{key:B,rel:"modulepreload",href:B,...l})),_.map(({key:B,link:L})=>reactExports.createElement("link",{key:B,nonce:l.nonce,...L,crossOrigin:L.crossOrigin??l.crossOrigin})))}function mergeRefs(...t){return a=>{t.forEach(l=>{typeof l=="function"?l(a):l!=null&&(l.current=a)})}}var isBrowser2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{isBrowser2&&(window.__reactRouterVersion="7.13.1")}catch{}function BrowserRouter({basename:t,children:a,unstable_useTransitions:l,window:o}){let u=reactExports.useRef();u.current==null&&(u.current=createBrowserHistory({window:o,v5Compat:!0}));let c=u.current,[d,h]=reactExports.useState({action:c.action,location:c.location}),p=reactExports.useCallback(g=>{l===!1?h(g):reactExports.startTransition(()=>h(g))},[l]);return reactExports.useLayoutEffect(()=>c.listen(p),[c,p]),reactExports.createElement(Router,{basename:t,children:a,location:d.location,navigationType:d.action,navigator:c,unstable_useTransitions:l})}var ABSOLUTE_URL_REGEX2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function({onClick:a,discover:l="render",prefetch:o="none",relative:u,reloadDocument:c,replace:d,unstable_mask:h,state:p,target:g,to:x,preventScrollReset:b,viewTransition:C,unstable_defaultShouldRevalidate:R,..._},B){let{basename:L,navigator:D,unstable_useTransitions:$}=reactExports.useContext(NavigationContext),V=typeof x=="string"&&ABSOLUTE_URL_REGEX2.test(x),se=parseToInfo(x,L);x=se.to;let ie=useHref(x,{relative:u}),H=useLocation(),ge=null;if(h){let ee=resolveTo(h,[],H.unstable_mask?H.unstable_mask.pathname:"/",!0);L!=="/"&&(ee.pathname=ee.pathname==="/"?L:joinPaths([L,ee.pathname])),ge=D.createHref(ee)}let[W,ve,K]=usePrefetchBehavior(o,_),Ee=useLinkClickHandler(x,{replace:d,unstable_mask:h,state:p,target:g,preventScrollReset:b,relative:u,viewTransition:C,unstable_defaultShouldRevalidate:R,unstable_useTransitions:$});function ae(ee){a&&a(ee),ee.defaultPrevented||Ee(ee)}let Ce=!(se.isExternal||c),ye=reactExports.createElement("a",{..._,...K,href:(Ce?ge:void 0)||se.absoluteURL||ie,onClick:Ce?ae:a,ref:mergeRefs(B,ve),target:g,"data-discover":!V&&l==="render"?"true":void 0});return W&&!V?reactExports.createElement(reactExports.Fragment,null,ye,reactExports.createElement(PrefetchPageLinks,{page:ie})):ye});Link.displayName="Link";var NavLink=reactExports.forwardRef(function({"aria-current":a="page",caseSensitive:l=!1,className:o="",end:u=!1,style:c,to:d,viewTransition:h,children:p,...g},x){let b=useResolvedPath(d,{relative:g.relative}),C=useLocation(),R=reactExports.useContext(DataRouterStateContext),{navigator:_,basename:B}=reactExports.useContext(NavigationContext),L=R!=null&&useViewTransitionState(b)&&h===!0,D=_.encodeLocation?_.encodeLocation(b).pathname:b.pathname,$=C.pathname,V=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;l||($=$.toLowerCase(),V=V?V.toLowerCase():null,D=D.toLowerCase()),V&&B&&(V=stripBasename(V,B)||V);const se=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let ie=$===D||!u&&$.startsWith(D)&&$.charAt(se)==="/",H=V!=null&&(V===D||!u&&V.startsWith(D)&&V.charAt(D.length)==="/"),ge={isActive:ie,isPending:H,isTransitioning:L},W=ie?a:void 0,ve;typeof o=="function"?ve=o(ge):ve=[o,ie?"active":null,H?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let K=typeof c=="function"?c(ge):c;return reactExports.createElement(Link,{...g,"aria-current":W,className:ve,ref:x,style:K,to:d,viewTransition:h},typeof p=="function"?p(ge):p)});NavLink.displayName="NavLink";var Form=reactExports.forwardRef(({discover:t="render",fetcherKey:a,navigate:l,reloadDocument:o,replace:u,state:c,method:d=defaultMethod,action:h,onSubmit:p,relative:g,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:C,...R},_)=>{let{unstable_useTransitions:B}=reactExports.useContext(NavigationContext),L=useSubmit(),D=useFormAction(h,{relative:g}),$=d.toLowerCase()==="get"?"get":"post",V=typeof h=="string"&&ABSOLUTE_URL_REGEX2.test(h),se=ie=>{if(p&&p(ie),ie.defaultPrevented)return;ie.preventDefault();let H=ie.nativeEvent.submitter,ge=(H==null?void 0:H.getAttribute("formmethod"))||d,W=()=>L(H||ie.currentTarget,{fetcherKey:a,method:ge,navigate:l,replace:u,state:c,relative:g,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:C});B&&l!==!1?reactExports.startTransition(()=>W()):W()};return reactExports.createElement("form",{ref:_,method:$,action:D,onSubmit:o?p:se,...R,"data-discover":!V&&t==="render"?"true":void 0})});Form.displayName="Form";function getDataRouterConsoleError2(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext3(t){let a=reactExports.useContext(DataRouterContext);return invariant(a,getDataRouterConsoleError2(t)),a}function useLinkClickHandler(t,{target:a,replace:l,unstable_mask:o,state:u,preventScrollReset:c,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let x=useNavigate(),b=useLocation(),C=useResolvedPath(t,{relative:d});return reactExports.useCallback(R=>{if(shouldProcessLinkClick(R,a)){R.preventDefault();let _=l!==void 0?l:createPath(b)===createPath(C),B=()=>x(t,{replace:_,unstable_mask:o,state:u,preventScrollReset:c,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});g?reactExports.startTransition(()=>B()):B()}},[b,x,C,l,o,u,a,t,c,d,h,p,g])}var fetcherId=0,getUniqueFetcherId=()=>`__${String(++fetcherId)}__`;function useSubmit(){let{router:t}=useDataRouterContext3("useSubmit"),{basename:a}=reactExports.useContext(NavigationContext),l=useRouteId(),o=t.fetch,u=t.navigate;return reactExports.useCallback(async(c,d={})=>{let{action:h,method:p,encType:g,formData:x,body:b}=getFormSubmissionInfo(c,a);if(d.navigate===!1){let C=d.fetcherKey||getUniqueFetcherId();await o(C,l,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||p,formEncType:d.encType||g,flushSync:d.flushSync})}else await u(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||p,formEncType:d.encType||g,replace:d.replace,state:d.state,fromRouteId:l,flushSync:d.flushSync,viewTransition:d.viewTransition})},[o,u,a,l])}function useFormAction(t,{relative:a}={}){let{basename:l}=reactExports.useContext(NavigationContext),o=reactExports.useContext(RouteContext);invariant(o,"useFormAction must be used inside a RouteContext");let[u]=o.matches.slice(-1),c={...useResolvedPath(t||".",{relative:a})},d=useLocation();if(t==null){c.search=d.search;let h=new URLSearchParams(c.search),p=h.getAll("index");if(p.some(x=>x==="")){h.delete("index"),p.filter(b=>b).forEach(b=>h.append("index",b));let x=h.toString();c.search=x?`?${x}`:""}}return(!t||t===".")&&u.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(c.pathname=c.pathname==="/"?l:joinPaths([l,c.pathname])),createPath(c)}function useViewTransitionState(t,{relative:a}={}){let l=reactExports.useContext(ViewTransitionContext);invariant(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=useDataRouterContext3("useViewTransitionState"),u=useResolvedPath(t,{relative:a});if(!l.isTransitioning)return!1;let c=stripBasename(l.currentLocation.pathname,o)||l.currentLocation.pathname,d=stripBasename(l.nextLocation.pathname,o)||l.nextLocation.pathname;return matchPath(u.pathname,d)!=null||matchPath(u.pathname,c)!=null}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,o={}){var d,h,p;if(this.connected&&((d=this.ws)==null?void 0:d.readyState)===WebSocket.OPEN){this.wsSend({type:"intent",clappId:a,intent:l,payload:o});return}const u={id:((p=(h=globalThis.crypto)==null?void 0:h.randomUUID)==null?void 0:p.call(h))??Math.random().toString(36).slice(2)+Date.now().toString(36),agentId:"local",clappId:a,intent:l,payload:o,timestamp:new Date().toISOString()},c=await fetch(`${this.serverUrl}/api/intent`,{method:"POST",headers:{"Content-Type":"application/json",...this.authHeaders()},body:JSON.stringify(u)});if(!c.ok)throw new Error(`Failed to send intent: ${c.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,o=a.state;for(const u of this.stateListeners)u(l,o);break}case"apps":{const l=a.apps;for(const o of this.appsListeners)o(l);break}case"view":{const l=a.viewId,o=a.content;for(const u of this.viewListeners)u(l,o);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 o=t.map(u=>{const c=setRef(u,a);return!l&&typeof c=="function"&&(l=!0),c});if(l)return()=>{for(let u=0;u<o.length;u++){const c=o[u];typeof c=="function"?c():setRef(t[u],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((o,u)=>{let{children:c,...d}=o;isLazyComponent(c)&&typeof use=="function"&&(c=use(c._payload));const h=reactExports.Children.toArray(c),p=h.find(isSlottable);if(p){const g=p.props.children,x=h.map(b=>b===p?reactExports.Children.count(g)>1?reactExports.Children.only(null):reactExports.isValidElement(g)?g.props.children:null:b);return jsxRuntimeExports.jsx(a,{...d,ref:u,children:reactExports.isValidElement(g)?reactExports.cloneElement(g,void 0,x):null})}return jsxRuntimeExports.jsx(a,{...d,ref:u,children:c})});return l.displayName=`${t}.Slot`,l}var Slot=createSlot("Slot");function createSlotClone(t){const a=reactExports.forwardRef((l,o)=>{let{children:u,...c}=l;if(isLazyComponent(u)&&typeof use=="function"&&(u=use(u._payload)),reactExports.isValidElement(u)){const d=getElementRef(u),h=mergeProps(c,u.props);return u.type!==reactExports.Fragment&&(h.ref=o?composeRefs(o,d):d),reactExports.cloneElement(u,h)}return reactExports.Children.count(u)>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 o in a){const u=t[o],c=a[o];/^on[A-Z]/.test(o)?u&&c?l[o]=(...h)=>{const p=c(...h);return u(...h),p}:u&&(l[o]=u):o==="style"?l[o]={...u,...c}:o==="className"&&(l[o]=[u,c].filter(Boolean).join(" "))}return{...t,...l}}function getElementRef(t){var o,u;let a=(o=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:o.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?t.ref:(a=(u=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:u.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?t.props.ref:t.props.ref||t.ref)}function r(t){var a,l,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(a=0;a<u;a++)t[a]&&(l=r(t[a]))&&(o&&(o+=" "),o+=l)}else for(l in t)t[l]&&(o&&(o+=" "),o+=l);return o}function clsx(){for(var t,a,l=0,o="",u=arguments.length;l<u;l++)(t=arguments[l])&&(a=r(t))&&(o&&(o+=" "),o+=a);return o}const falsyToString=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,cx=clsx,cva=(t,a)=>l=>{var o;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:u,defaultVariants:c}=a,d=Object.keys(u).map(g=>{const x=l==null?void 0:l[g],b=c==null?void 0:c[g];if(x===null)return null;const C=falsyToString(x)||falsyToString(b);return u[g][C]}),h=l&&Object.entries(l).reduce((g,x)=>{let[b,C]=x;return C===void 0||(g[b]=C),g},{}),p=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((g,x)=>{let{class:b,className:C,...R}=x;return Object.entries(R).every(_=>{let[B,L]=_;return Array.isArray(L)?L.includes({...c,...h}[B]):{...c,...h}[B]===L})?[...g,b,C]:g},[]);return cx(t,d,p,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 o=0;o<t.length;o++)l[o]=t[o];for(let o=0;o<a.length;o++)l[t.length+o]=a[o];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:o}=t;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return getGroupIdForArbitraryProperty(d);const h=d.split(CLASS_PART_SEPARATOR),p=h[0]===""&&h.length>1?1:0;return getGroupRecursive(h,p,a)},getConflictingClassGroupIds:(d,h)=>{if(h){const p=o[d],g=l[d];return p?g?concatArrays(g,p):p:g||EMPTY_CONFLICTS}return l[d]||EMPTY_CONFLICTS}}},getGroupRecursive=(t,a,l)=>{if(t.length-a===0)return l.classGroupId;const u=t[a],c=l.nextPart.get(u);if(c){const g=getGroupRecursive(t,a+1,c);if(g)return g}const d=l.validators;if(d===null)return;const h=a===0?t.join(CLASS_PART_SEPARATOR):t.slice(a).join(CLASS_PART_SEPARATOR),p=d.length;for(let g=0;g<p;g++){const x=d[g];if(x.validator(h))return x.classGroupId}},getGroupIdForArbitraryProperty=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=t.slice(1,-1),l=a.indexOf(":"),o=a.slice(0,l);return o?ARBITRARY_PROPERTY_PREFIX+o:void 0})(),createClassMap=t=>{const{theme:a,classGroups:l}=t;return processClassGroups(l,a)},processClassGroups=(t,a)=>{const l=createClassPartObject();for(const o in t){const u=t[o];processClassesRecursively(u,l,o,a)}return l},processClassesRecursively=(t,a,l,o)=>{const u=t.length;for(let c=0;c<u;c++){const d=t[c];processClassDefinition(d,a,l,o)}},processClassDefinition=(t,a,l,o)=>{if(typeof t=="string"){processStringDefinition(t,a,l);return}if(typeof t=="function"){processFunctionDefinition(t,a,l,o);return}processObjectDefinition(t,a,l,o)},processStringDefinition=(t,a,l)=>{const o=t===""?a:getPart(a,t);o.classGroupId=l},processFunctionDefinition=(t,a,l,o)=>{if(isThemeGetter(t)){processClassesRecursively(t(o),a,l,o);return}a.validators===null&&(a.validators=[]),a.validators.push(createClassValidatorObject(l,t))},processObjectDefinition=(t,a,l,o)=>{const u=Object.entries(t),c=u.length;for(let d=0;d<c;d++){const[h,p]=u[d];processClassesRecursively(p,getPart(a,h),l,o)}},getPart=(t,a)=>{let l=t;const o=a.split(CLASS_PART_SEPARATOR),u=o.length;for(let c=0;c<u;c++){const d=o[c];let h=l.nextPart.get(d);h||(h=createClassPartObject(),l.nextPart.set(d,h)),l=h}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),o=Object.create(null);const u=(c,d)=>{l[c]=d,a++,a>t&&(a=0,o=l,l=Object.create(null))};return{get(c){let d=l[c];if(d!==void 0)return d;if((d=o[c])!==void 0)return u(c,d),d},set(c,d){c in l?l[c]=d:u(c,d)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",EMPTY_MODIFIERS=[],createResultObject=(t,a,l,o,u)=>({modifiers:t,hasImportantModifier:a,baseClassName:l,maybePostfixModifierPosition:o,isExternal:u}),createParseClassName=t=>{const{prefix:a,experimentalParseClassName:l}=t;let o=u=>{const c=[];let d=0,h=0,p=0,g;const x=u.length;for(let B=0;B<x;B++){const L=u[B];if(d===0&&h===0){if(L===MODIFIER_SEPARATOR){c.push(u.slice(p,B)),p=B+1;continue}if(L==="/"){g=B;continue}}L==="["?d++:L==="]"?d--:L==="("?h++:L===")"&&h--}const b=c.length===0?u:u.slice(p);let C=b,R=!1;b.endsWith(IMPORTANT_MODIFIER)?(C=b.slice(0,-1),R=!0):b.startsWith(IMPORTANT_MODIFIER)&&(C=b.slice(1),R=!0);const _=g&&g>p?g-p:void 0;return createResultObject(c,R,C,_)};if(a){const u=a+MODIFIER_SEPARATOR,c=o;o=d=>d.startsWith(u)?c(d.slice(u.length)):createResultObject(EMPTY_MODIFIERS,!1,d,void 0,!0)}if(l){const u=o;o=c=>l({className:c,parseClassName:u})}return o},createSortModifiers=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((l,o)=>{a.set(l,1e6+o)}),l=>{const o=[];let u=[];for(let c=0;c<l.length;c++){const d=l[c],h=d[0]==="[",p=a.has(d);h||p?(u.length>0&&(u.sort(),o.push(...u),u=[]),o.push(d)):u.push(d)}return u.length>0&&(u.sort(),o.push(...u)),o}},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:o,getConflictingClassGroupIds:u,sortModifiers:c}=a,d=[],h=t.trim().split(SPLIT_CLASSES_REGEX);let p="";for(let g=h.length-1;g>=0;g-=1){const x=h[g],{isExternal:b,modifiers:C,hasImportantModifier:R,baseClassName:_,maybePostfixModifierPosition:B}=l(x);if(b){p=x+(p.length>0?" "+p:p);continue}let L=!!B,D=o(L?_.substring(0,B):_);if(!D){if(!L){p=x+(p.length>0?" "+p:p);continue}if(D=o(_),!D){p=x+(p.length>0?" "+p:p);continue}L=!1}const $=C.length===0?"":C.length===1?C[0]:c(C).join(":"),V=R?$+IMPORTANT_MODIFIER:$,se=V+D;if(d.indexOf(se)>-1)continue;d.push(se);const ie=u(D,L);for(let H=0;H<ie.length;++H){const ge=ie[H];d.push(V+ge)}p=x+(p.length>0?" "+p:p)}return p},twJoin=(...t)=>{let a=0,l,o,u="";for(;a<t.length;)(l=t[a++])&&(o=toValue(l))&&(u&&(u+=" "),u+=o);return u},toValue=t=>{if(typeof t=="string")return t;let a,l="";for(let o=0;o<t.length;o++)t[o]&&(a=toValue(t[o]))&&(l&&(l+=" "),l+=a);return l},createTailwindMerge=(t,...a)=>{let l,o,u,c;const d=p=>{const g=a.reduce((x,b)=>b(x),t());return l=createConfigUtils(g),o=l.cache.get,u=l.cache.set,c=h,h(p)},h=p=>{const g=o(p);if(g)return g;const x=mergeClassList(p,l);return u(p,x),x};return c=d,(...p)=>c(twJoin(...p))},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 o=arbitraryValueRegex.exec(t);return o?o[1]?a(o[1]):l(o[2]):!1},getIsArbitraryVariable=(t,a,l=!1)=>{const o=arbitraryVariableRegex.exec(t);return o?o[1]?a(o[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"),o=fromTheme("font-weight"),u=fromTheme("tracking"),c=fromTheme("leading"),d=fromTheme("breakpoint"),h=fromTheme("container"),p=fromTheme("spacing"),g=fromTheme("radius"),x=fromTheme("shadow"),b=fromTheme("inset-shadow"),C=fromTheme("text-shadow"),R=fromTheme("drop-shadow"),_=fromTheme("blur"),B=fromTheme("perspective"),L=fromTheme("aspect"),D=fromTheme("ease"),$=fromTheme("animate"),V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ie=()=>[...se(),isArbitraryVariable,isArbitraryValue],H=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto","contain","none"],W=()=>[isArbitraryVariable,isArbitraryValue,p],ve=()=>[isFraction,"full","auto",...W()],K=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],Ee=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],ae=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],Ce=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...W()],he=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...W()],fe=()=>[isFraction,"screen","full","dvw","lvw","svw","min","max","fit",...W()],_e=()=>[isFraction,"screen","full","lh","dvh","lvh","svh","min","max","fit",...W()],O=()=>[t,isArbitraryVariable,isArbitraryValue],q=()=>[...se(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],be=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],xe=()=>["","none","full",g,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"],je=()=>[isNumber,isPercent,isArbitraryVariablePosition,isArbitraryPosition],nt=()=>["","none",_,isArbitraryVariable,isArbitraryValue],Qe=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],at=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],kt=()=>[isNumber,isArbitraryVariable,isArbitraryValue],ut=()=>[isFraction,"full",...W()];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,L]}],container:["container"],columns:[{columns:[isNumber,isArbitraryValue,isArbitraryVariable,h]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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:ie()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:ge()}],"overscroll-x":[{"overscroll-x":ge()}],"overscroll-y":[{"overscroll-y":ge()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ve()}],"inset-x":[{"inset-x":ve()}],"inset-y":[{"inset-y":ve()}],start:[{"inset-s":ve(),start:ve()}],end:[{"inset-e":ve(),end:ve()}],"inset-bs":[{"inset-bs":ve()}],"inset-be":[{"inset-be":ve()}],top:[{top:ve()}],right:[{right:ve()}],bottom:[{bottom:ve()}],left:[{left:ve()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",h,...W()]}],"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":K()}],"col-start-end":[{col:Ee()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:Ee()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ce()}],"auto-rows":[{"auto-rows":Ce()}],gap:[{gap:W()}],"gap-x":[{"gap-x":W()}],"gap-y":[{"gap-y":W()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:W()}],px:[{px:W()}],py:[{py:W()}],ps:[{ps:W()}],pe:[{pe:W()}],pbs:[{pbs:W()}],pbe:[{pbe:W()}],pt:[{pt:W()}],pr:[{pr:W()}],pb:[{pb:W()}],pl:[{pl:W()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:he()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",..._e()]}],"min-block-size":[{"min-block":["auto",..._e()]}],"max-block-size":[{"max-block":["none",..._e()]}],w:[{w:[h,"screen",...he()]}],"min-w":[{"min-w":[h,"screen","none",...he()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...he()]}],h:[{h:["screen","lh",...he()]}],"min-h":[{"min-h":["screen","lh","none",...he()]}],"max-h":[{"max-h":["screen","lh",...he()]}],"font-size":[{text:["base",l,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,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:[u,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[c,...W()]}],"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:O()}],"text-color":[{text:O()}],"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:O()}],"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:W()}],"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:q()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:N()}],"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:O()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:xe()}],"rounded-s":[{"rounded-s":xe()}],"rounded-e":[{"rounded-e":xe()}],"rounded-t":[{"rounded-t":xe()}],"rounded-r":[{"rounded-r":xe()}],"rounded-b":[{"rounded-b":xe()}],"rounded-l":[{"rounded-l":xe()}],"rounded-ss":[{"rounded-ss":xe()}],"rounded-se":[{"rounded-se":xe()}],"rounded-ee":[{"rounded-ee":xe()}],"rounded-es":[{"rounded-es":xe()}],"rounded-tl":[{"rounded-tl":xe()}],"rounded-tr":[{"rounded-tr":xe()}],"rounded-br":[{"rounded-br":xe()}],"rounded-bl":[{"rounded-bl":xe()}],"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:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...Oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",x,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",b,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[isNumber,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",C,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":O()}],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":je()}],"mask-image-linear-to-pos":[{"mask-linear-to":je()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":je()}],"mask-image-t-to-pos":[{"mask-t-to":je()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":je()}],"mask-image-r-to-pos":[{"mask-r-to":je()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":je()}],"mask-image-b-to-pos":[{"mask-b-to":je()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":je()}],"mask-image-l-to-pos":[{"mask-l-to":je()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":je()}],"mask-image-x-to-pos":[{"mask-x-to":je()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":je()}],"mask-image-y-to-pos":[{"mask-y-to":je()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":je()}],"mask-image-radial-to-pos":[{"mask-radial-to":je()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":se()}],"mask-image-conic-pos":[{"mask-conic":[isNumber]}],"mask-image-conic-from-pos":[{"mask-conic-from":je()}],"mask-image-conic-to-pos":[{"mask-conic-to":je()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:N()}],"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",R,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":O()}],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":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"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",D,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",$,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[B,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":ie()}],rotate:[{rotate:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],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:ie()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ut()}],"translate-x":[{"translate-x":ut()}],"translate-y":[{"translate-y":ut()}],"translate-z":[{"translate-z":ut()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mbs":[{"scroll-mbs":W()}],"scroll-mbe":[{"scroll-mbe":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pbs":[{"scroll-pbs":W()}],"scroll-pbe":[{"scroll-pbe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"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",...O()]}],"stroke-w":[{stroke:[isNumber,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...O()]}],"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:o=!1,...u},c)=>{const d=o?Slot:"button";return jsxRuntimeExports.jsx(d,{className:cn(buttonVariants({variant:a,size:l,className:t})),ref:c,...u})});Button.displayName="Button";/**
|
|
45
45
|
* @license lucide-react v0.576.0 - ISC
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the ISC license.
|
|
@@ -76,7 +76,7 @@ Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}
|
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the ISC license.
|
|
78
78
|
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const Icon$1=reactExports.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:u="",children:c,iconNode:d,...
|
|
79
|
+
*/const Icon$1=reactExports.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:u="",children:c,iconNode:d,...h},p)=>reactExports.createElement("svg",{ref:p,...defaultAttributes,width:a,height:a,stroke:t,strokeWidth:o?Number(l)*24/Number(a):l,className:mergeClasses("lucide",u),...!c&&!hasA11yProp(h)&&{"aria-hidden":"true"},...h},[...d.map(([g,x])=>reactExports.createElement(g,x)),...Array.isArray(c)?c:[c]]));/**
|
|
80
80
|
* @license lucide-react v0.576.0 - ISC
|
|
81
81
|
*
|
|
82
82
|
* This source code is licensed under the ISC license.
|
|
@@ -191,48 +191,48 @@ Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}
|
|
|
191
191
|
*
|
|
192
192
|
* This source code is licensed under the ISC license.
|
|
193
193
|
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
-
*/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[o,u]=reactExports.useState(null),[c,d]=reactExports.useState(!1);reactExports.useEffect(()=>(a.fetchState("_status").then(m=>{m!=null&&m.state&&u(m.state)}).catch(()=>{}),a.onState((m,x)=>{m==="_status"&&x.state&&u(x.state)})),[a]);const g=(o==null?void 0:o.setupRequired)&&!c;return jsxRuntimeExports.jsxs("div",{className:"flex flex-col h-full",children:[g&&jsxRuntimeExports.jsx(SetupWarningBanner,{message:o.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 overflow-y-auto px-6 pt-6 pb-8",children:jsxRuntimeExports.jsx("div",{className:"grid grid-cols-4 sm:grid-cols-5 lg:grid-cols-6 gap-x-4 gap-y-6 max-w-6xl",children:[1,2,3,4,5,6,7,8].map(l=>jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center gap-2 animate-pulse",children:[jsxRuntimeExports.jsx("div",{className:"w-[72px] h-[72px] sm:w-[84px] sm:h-[84px] lg:w-[90px] lg:h-[90px] rounded-2xl bg-muted"}),jsxRuntimeExports.jsx("div",{className:"h-2.5 w-16 rounded bg-muted"})]},l))})}):jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-y-auto px-6 pt-6 pb-8",children:jsxRuntimeExports.jsx("div",{className:"grid grid-cols-4 sm:grid-cols-5 lg:grid-cols-6 gap-x-4 gap-y-6 max-w-6xl",children:t.map(l=>jsxRuntimeExports.jsxs("button",{onClick:()=>a(l.id),className:"flex flex-col items-center gap-2 bg-transparent border-none cursor-pointer text-foreground p-0 font-inherit group",children:[jsxRuntimeExports.jsx("div",{className:"w-[72px] h-[72px] sm:w-[84px] sm:h-[84px] lg:w-[90px] lg:h-[90px] rounded-[18px] sm:rounded-[20px] lg:rounded-[22px] bg-gradient-to-br from-card to-accent/20 border border-border flex items-center justify-center text-[2rem] sm:text-[2.25rem] lg:text-[2.5rem] transition-all group-hover:scale-105 active:scale-95 shadow-sm",style:{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08)"},children:l.emoji}),jsxRuntimeExports.jsx("span",{className:"text-[11px] sm:text-[12px] text-center leading-tight max-w-[90px] line-clamp-2 opacity-90",children:l.name})]},l.id))})})}const createStoreImpl=t=>{let a;const l=new Set,o=(m,x)=>{const b=typeof m=="function"?m(a):m;if(!Object.is(b,a)){const C=a;a=x??(typeof b!="object"||b===null)?b:Object.assign({},a,b),l.forEach(R=>R(a,C))}},u=()=>a,g={setState:o,getState:u,getInitialState:()=>p,subscribe:m=>(l.add(m),()=>l.delete(m))},p=a=t(o,u,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:o}){const u=reactExports.useRef(void 0),c=reactExports.useRef(void 0);return u.current||(u.current=createClappStore()),c.current||(c.current=o??new ClappTransport({serverUrl:t})),reactExports.useEffect(()=>{const d=u.current,g=c.current,p=g.onState((x,b)=>{x===a&&d.getState().applyState(b)}),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(()=>{}),()=>{p(),m(),o||g.disconnect()}},[t,a,o]),jsxRuntimeExports.jsx(ClappContext.Provider,{value:{store:u.current,transport:c.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 o=t.split(".");let u=l.state;for(const c of o){if(u==null||typeof u!="object")return;u=u[c]}return u})}function useIntent(){const{transport:t,clappId:a}=useClappContext();return{emit:(l,o={})=>t.sendIntent(a,l,o)}}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,o){this.normal=l,this.property=a,o&&(this.space=o)}}Schema.prototype.normal={};Schema.prototype.property={};Schema.prototype.space=void 0;function merge$1(t,a){const l={},o={};for(const u of t)Object.assign(l,u.property),Object.assign(o,u.normal);return new Schema(l,o,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,o,u){let c=-1;if(super(a,l),mark$1(this,"space",u),typeof o=="number")for(;++c<checks.length;){const d=checks[c];mark$1(this,checks[c],(o&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[o,u]of Object.entries(t.properties)){const c=new DefinedInfo(o,t.transform(t.attributes||{},o),u,t.space);t.mustUseProperty&&t.mustUseProperty.includes(o)&&(c.mustUseProperty=!0),a[o]=c,l[normalize$1(o)]=o,l[normalize$1(c.attribute)]=o}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 o=a,u=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 c=a.slice(5).replace(dash,camelcase);o="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!dash.test(c)){let d=c.replace(cap$1,kebab);d.charAt(0)!=="-"&&(d="-"+d),a="data"+d}}u=DefinedInfo}return new u(o,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*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,g=/^\s+|\s+$/g,p=`
|
|
195
|
-
`,m="/",x="*",b="",C="comment",R="declaration";function _(L,D){if(typeof L!="string")throw new TypeError("First argument must be a string");if(!L)return[];D=D||{};var H=1,V=1;function se(ye){var ee=ye.match(a);ee&&(H+=ee.length);var P=ye.lastIndexOf(p);V=~P?ye.length-P:V+ye.length}function te(){var ye={line:H,column:V};return function(ee){return ee.position=new Y(ye),ve(),ee}}function Y(ye){this.start=ye,this.end={line:H,column:V},this.source=D.source}Y.prototype.content=L;function ge(ye){var ee=new Error(D.source+":"+H+":"+V+": "+ye);if(ee.reason=ye,ee.filename=D.source,ee.line=H,ee.column=V,ee.source=L,!D.silent)throw ee}function W(ye){var ee=ye.exec(L);if(ee){var P=ee[0];return se(P),L=L.slice(P.length),ee}}function ve(){W(l)}function K(ye){var ee;for(ye=ye||[];ee=Ee();)ee!==!1&&ye.push(ee);return ye}function Ee(){var ye=te();if(!(m!=L.charAt(0)||x!=L.charAt(1))){for(var ee=2;b!=L.charAt(ee)&&(x!=L.charAt(ee)||m!=L.charAt(ee+1));)++ee;if(ee+=2,b===L.charAt(ee-1))return ge("End of comment missing");var P=L.slice(2,ee-2);return V+=2,se(P),L=L.slice(ee),V+=2,ye({type:C,comment:P})}}function ae(){var ye=te(),ee=W(o);if(ee){if(Ee(),!W(u))return ge("property missing ':'");var P=W(c),he=ye({type:R,property:B(ee[0].replace(t,b)),value:P?B(P[0].replace(t,b)):b});return W(d),he}}function Ce(){var ye=[];K(ye);for(var ee;ee=ae();)ee!==!1&&(ye.push(ee),K(ye));return ye}return ve(),Ce()}function B(L){return L?L.replace(g,b):b}return cjs$1=_,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(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(cjs$2,"__esModule",{value:!0}),cjs$2.default=l;const a=t(requireCjs$2());function l(o,u){let c=null;if(!o||typeof o!="string")return c;const d=(0,a.default)(o),g=typeof u=="function";return d.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:x}=p;g?u(m,x,p):x&&(c=c||{},c[m]=x)}),c}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=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,c=function(m){return!m||l.test(m)||t.test(m)},d=function(m,x){return x.toUpperCase()},g=function(m,x){return"".concat(x,"-")},p=function(m,x){return x===void 0&&(x={}),c(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(u,g):m=m.replace(o,g),m.replace(a,d))};return utilities.camelCase=p,utilities}var cjs,hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var t=cjs&&cjs.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},a=t(requireCjs$1()),l=requireUtilities();function o(u,c){var d={};return!u||typeof u!="string"||(0,a.default)(u,function(g,p){g&&p&&(d[(0,l.camelCase)(g,c)]=p)}),d}return o.default=o,cjs=o,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 o=l&&l.position&&l.position[t]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.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,o){super(),typeof l=="string"&&(o=l,l=void 0);let u="",c={},d=!1;if(l&&("line"in l&&"column"in l?c={place:l}:"start"in l&&"end"in l?c={place:l}:"type"in l?c={ancestors:[l],place:l.position}:c={...l}),typeof a=="string"?u=a:!c.cause&&a&&(d=!0,u=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof o=="string"){const p=o.indexOf(":");p===-1?c.ruleId=o:(c.source=o.slice(0,p),c.ruleId=o.slice(p+1))}if(!c.place&&c.ancestors&&c.ancestors){const p=c.ancestors[c.ancestors.length-1];p&&(c.place=p.position)}const g=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=u,this.line=g?g.line:void 0,this.name=stringifyPosition(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=d&&c.cause&&typeof c.cause.stack=="string"?c.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 o;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=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");o=productionCreate(l,a.jsx,a.jsxs)}const u={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:o,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},c=one$1(u,t,void 0);return c&&typeof c!="string"?c:u.create(t,u.Fragment,{children:c||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 o=t.schema;let u=o;a.tagName.toLowerCase()==="svg"&&o.space==="html"&&(u=svg,t.schema=u),t.ancestors.push(a);const c=findComponentFromName(t,a.tagName,!1),d=createElementProps(t,a);let g=createChildren(t,a);return tableElements.has(a.tagName)&&(g=g.filter(function(p){return typeof p=="string"?!whitespace(p):!0})),addNode(t,d,c,a),addChildren(d,g),t.ancestors.pop(),t.schema=o,t.create(a,c,d,l)}function mdxExpression(t,a){if(a.data&&a.data.estree&&t.evaluater){const o=a.data.estree.body[0];return o.type,t.evaluater.evaluateExpression(o.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 o=t.schema;let u=o;a.name==="svg"&&o.space==="html"&&(u=svg,t.schema=u),t.ancestors.push(a);const c=a.name===null?t.Fragment:findComponentFromName(t,a.name,!0),d=createJsxElementProps(t,a),g=createChildren(t,a);return addNode(t,d,c,a),addChildren(d,g),t.ancestors.pop(),t.schema=o,t.create(a,c,d,l)}function root$2(t,a,l){const o={};return addChildren(o,createChildren(t,a)),t.create(a,t.Fragment,o,l)}function text$5(t,a){return a.value}function addNode(t,a,l,o){typeof l!="string"&&l!==t.Fragment&&t.passNode&&(a.node=o)}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 o;function o(u,c,d,g){const m=Array.isArray(d.children)?l:a;return g?m(c,d,g):m(c,d)}}function developmentCreate(t,a){return l;function l(o,u,c,d){const g=Array.isArray(c.children),p=pointStart(o);return a(u,c,d,g,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function createElementProps(t,a){const l={};let o,u;for(u in a.properties)if(u!=="children"&&own$3.call(a.properties,u)){const c=createProperty(t,u,a.properties[u]);if(c){const[d,g]=c;t.tableCellAlignToStyle&&d==="align"&&typeof g=="string"&&tableCellElement.has(a.tagName)?o=g:l[d]=g}}if(o){const c=l.style||(l.style={});c[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return l}function createJsxElementProps(t,a){const l={};for(const o of a.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&t.evaluater){const c=o.data.estree.body[0];c.type;const d=c.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 u=o.name;let c;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&t.evaluater){const g=o.value.data.estree.body[0];g.type,c=t.evaluater.evaluateExpression(g.expression)}else crashEstree(t,a.position);else c=o.value===null?!0:o.value;l[u]=c}return l}function createChildren(t,a){const l=[];let o=-1;const u=t.passKeys?new Map:emptyMap;for(;++o<a.children.length;){const c=a.children[o];let d;if(t.passKeys){const p=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(p){const m=u.get(p)||0;d=p+"-"+m,u.set(p,m+1)}}const g=one$1(t,c,d);g!==void 0&&l.push(g)}return l}function createProperty(t,a,l){const o=find(t.schema,a);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=o.commaSeparated?stringify$2(l):stringify$1(l)),o.property==="style"){let u=typeof l=="object"?l:parseStyle(t,String(l));return t.stylePropertyNameCase==="css"&&(u=transformStylesToCssCasing(u)),["style",u]}return[t.elementAttributeNameCase==="react"&&o.space?hastToReact[o.property]||o.property:o.attribute,l]}}function parseStyle(t,a){try{return styleToJs(a,{reactCompat:!0})}catch(l){if(t.ignoreInvalidStyle)return{};const o=l,u=new VFileMessage("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=t.filePath||void 0,u.url=docs+"#cannot-parse-style-attribute",u}}function findComponentFromName(t,a,l){let o;if(!l)o={type:"Literal",value:a};else if(a.includes(".")){const u=a.split(".");let c=-1,d;for(;++c<u.length;){const g=name(u[c])?{type:"Identifier",name:u[c]}:{type:"Literal",value:u[c]};d=d?{type:"MemberExpression",object:d,property:g,computed:!!(c&&g.type==="Literal"),optional:!1}:g}o=d}else o=name(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(o.type==="Literal"){const u=o.value;return own$3.call(t.components,u)?t.components[u]:u}if(t.evaluater)return t.evaluater.evaluateExpression(o);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,o=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,u=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return one(t,o,u)}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 o=[];let u=-1;for(;++u<t.length;)o[u]=one(t[u],a,l);return o.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,o){const u=t.length;let c=0,d;if(a<0?a=-a>u?0:u+a:a=a>u?u:a,l=l>0?l:0,o.length<1e4)d=Array.from(o),d.unshift(a,l),t.splice(...d);else for(l&&t.splice(a,l);c<o.length;)d=o.slice(c,c+1e4),d.unshift(a,0),t.splice(...d),c+=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 u=(hasOwnProperty.call(t,l)?t[l]:void 0)||(t[l]={}),c=a[l];let d;if(c)for(d in c){hasOwnProperty.call(u,d)||(u[d]=[]);const g=c[d];constructs(u[d],Array.isArray(g)?g:g?[g]:[])}}}function constructs(t,a){let l=-1;const o=[];for(;++l<a.length;)(a[l].add==="after"?t:o).push(a[l]);splice(t,0,0,o)}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,o=0,u=0;for(;++l<t.length;){const c=t.charCodeAt(l);let d="";if(c===37&&asciiAlphanumeric(t.charCodeAt(l+1))&&asciiAlphanumeric(t.charCodeAt(l+2)))u=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(d=String.fromCharCode(c));else if(c>55295&&c<57344){const g=t.charCodeAt(l+1);c<56320&&g>56319&&g<57344?(d=String.fromCharCode(c,g),u=1):d="�"}else d=String.fromCharCode(c);d&&(a.push(t.slice(o,l),encodeURIComponent(d)),o=l+u+1,d=""),u&&(l+=u,u=0)}return a.join("")+t.slice(o)}function factorySpace(t,a,l,o){const u=o?o-1:Number.POSITIVE_INFINITY;let c=0;return d;function d(p){return markdownSpace(p)?(t.enter(l),g(p)):a(p)}function g(p){return markdownSpace(p)&&c++<u?(t.consume(p),g):(t.exit(l),a(p))}}const content$1={tokenize:initializeContent};function initializeContent(t){const a=t.attempt(this.parser.constructs.contentInitial,o,u);let l;return a;function o(g){if(g===null){t.consume(g);return}return t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),factorySpace(t,a,"linePrefix")}function u(g){return t.enter("paragraph"),c(g)}function c(g){const p=t.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=p),l=p,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"),c):(t.consume(g),d)}}const document$2={tokenize:initializeDocument},containerConstruct={tokenize:tokenizeContainer};function initializeDocument(t){const a=this,l=[];let o=0,u,c,d;return g;function g(V){if(o<l.length){const se=l[o];return a.containerState=se[1],t.attempt(se[0].continuation,p,m)(V)}return m(V)}function p(V){if(o++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,u&&H();const se=a.events.length;let te=se,Y;for(;te--;)if(a.events[te][0]==="exit"&&a.events[te][1].type==="chunkFlow"){Y=a.events[te][1].end;break}D(o);let ge=se;for(;ge<a.events.length;)a.events[ge][1].end={...Y},ge++;return splice(a.events,te+1,0,a.events.slice(se)),a.events.length=ge,m(V)}return g(V)}function m(V){if(o===l.length){if(!u)return C(V);if(u.currentConstruct&&u.currentConstruct.concrete)return _(V);a.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return a.containerState={},t.check(containerConstruct,x,b)(V)}function x(V){return u&&H(),D(o),C(V)}function b(V){return a.parser.lazy[a.now().line]=o!==l.length,d=a.now().offset,_(V)}function C(V){return a.containerState={},t.attempt(containerConstruct,R,_)(V)}function R(V){return o++,l.push([a.currentConstruct,a.containerState]),C(V)}function _(V){if(V===null){u&&H(),D(0),t.consume(V);return}return u=u||a.parser.flow(a.now()),t.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:c}),B(V)}function B(V){if(V===null){L(t.exit("chunkFlow"),!0),D(0),t.consume(V);return}return markdownLineEnding(V)?(t.consume(V),L(t.exit("chunkFlow")),o=0,a.interrupt=void 0,g):(t.consume(V),B)}function L(V,se){const te=a.sliceStream(V);if(se&&te.push(null),V.previous=c,c&&(c.next=V),c=V,u.defineSkip(V.start),u.write(te),a.parser.lazy[V.start.line]){let Y=u.events.length;for(;Y--;)if(u.events[Y][1].start.offset<d&&(!u.events[Y][1].end||u.events[Y][1].end.offset>d))return;const ge=a.events.length;let W=ge,ve,K;for(;W--;)if(a.events[W][0]==="exit"&&a.events[W][1].type==="chunkFlow"){if(ve){K=a.events[W][1].end;break}ve=!0}for(D(o),Y=ge;Y<a.events.length;)a.events[Y][1].end={...K},Y++;splice(a.events,W+1,0,a.events.slice(ge)),a.events.length=Y}}function D(V){let se=l.length;for(;se-- >V;){const te=l[se];a.containerState=te[1],te[0].exit.call(a,t)}l.length=V}function H(){u.write([null]),c=void 0,u=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 o=[];let u=-1;for(;++u<t.length;){const c=t[u].resolveAll;c&&!o.includes(c)&&(a=c(a,l),o.push(c))}return a}const attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(t,a){let l=-1,o,u,c,d,g,p,m,x;for(;++l<t.length;)if(t[l][0]==="enter"&&t[l][1].type==="attentionSequence"&&t[l][1]._close){for(o=l;o--;)if(t[o][0]==="exit"&&t[o][1].type==="attentionSequence"&&t[o][1]._open&&a.sliceSerialize(t[o][1]).charCodeAt(0)===a.sliceSerialize(t[l][1]).charCodeAt(0)){if((t[o][1]._close||t[l][1]._open)&&(t[l][1].end.offset-t[l][1].start.offset)%3&&!((t[o][1].end.offset-t[o][1].start.offset+t[l][1].end.offset-t[l][1].start.offset)%3))continue;p=t[o][1].end.offset-t[o][1].start.offset>1&&t[l][1].end.offset-t[l][1].start.offset>1?2:1;const b={...t[o][1].end},C={...t[l][1].start};movePoint(b,-p),movePoint(C,p),d={type:p>1?"strongSequence":"emphasisSequence",start:b,end:{...t[o][1].end}},g={type:p>1?"strongSequence":"emphasisSequence",start:{...t[l][1].start},end:C},c={type:p>1?"strongText":"emphasisText",start:{...t[o][1].end},end:{...t[l][1].start}},u={type:p>1?"strong":"emphasis",start:{...d.start},end:{...g.end}},t[o][1].end={...d.start},t[l][1].start={...g.end},m=[],t[o][1].end.offset-t[o][1].start.offset&&(m=push(m,[["enter",t[o][1],a],["exit",t[o][1],a]])),m=push(m,[["enter",u,a],["enter",d,a],["exit",d,a],["enter",c,a]]),m=push(m,resolveAll(a.parser.constructs.insideSpan.null,t.slice(o+1,l),a)),m=push(m,[["exit",c,a],["enter",g,a],["exit",g,a],["exit",u,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,o-1,l-o+3,m),l=o+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,o=this.previous,u=classifyCharacter(o);let c;return d;function d(p){return c=p,t.enter("attentionSequence"),g(p)}function g(p){if(p===c)return t.consume(p),g;const m=t.exit("attentionSequence"),x=classifyCharacter(p),b=!x||x===2&&u||l.includes(p),C=!u||u===2&&x||l.includes(o);return m._open=!!(c===42?b:b&&(u||!C)),m._close=!!(c===42?C:C&&(x||!b)),a(p)}}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 o=0;return u;function u(R){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(R),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),c}function c(R){return asciiAlpha(R)?(t.consume(R),d):R===64?l(R):m(R)}function d(R){return R===43||R===45||R===46||asciiAlphanumeric(R)?(o=1,g(R)):m(R)}function g(R){return R===58?(t.consume(R),o=0,p):(R===43||R===45||R===46||asciiAlphanumeric(R))&&o++<32?(t.consume(R),g):(o=0,m(R))}function p(R){return R===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(R),t.exit("autolinkMarker"),t.exit("autolink"),a):R===null||R===32||R===60||asciiControl(R)?l(R):(t.consume(R),p)}function m(R){return R===64?(t.consume(R),x):asciiAtext(R)?(t.consume(R),m):l(R)}function x(R){return asciiAlphanumeric(R)?b(R):l(R)}function b(R){return R===46?(t.consume(R),o=0,x):R===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(R),t.exit("autolinkMarker"),t.exit("autolink"),a):C(R)}function C(R){if((R===45||asciiAlphanumeric(R))&&o++<63){const _=R===45?C:b;return t.consume(R),_}return l(R)}}const blankLine={partial:!0,tokenize:tokenizeBlankLine};function tokenizeBlankLine(t,a,l){return o;function o(c){return markdownSpace(c)?factorySpace(t,u,"linePrefix")(c):u(c)}function u(c){return c===null||markdownLineEnding(c)?a(c):l(c)}}const blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit:exit$1,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(t,a,l){const o=this;return u;function u(d){if(d===62){const g=o.containerState;return g.open||(t.enter("blockQuote",{_container:!0}),g.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(d),t.exit("blockQuoteMarker"),c}return l(d)}function c(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 o=this;return u;function u(d){return markdownSpace(d)?factorySpace(t,c,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):c(d)}function c(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 o;function o(c){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(c),t.exit("escapeMarker"),u}function u(c){return asciiPunctuation(c)?(t.enter("characterEscapeValue"),t.consume(c),t.exit("characterEscapeValue"),t.exit("characterEscape"),a):l(c)}}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(t,a,l){const o=this;let u=0,c,d;return g;function g(b){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),p}function p(b){return b===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(b),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),c=31,d=asciiAlphanumeric,x(b))}function m(b){return b===88||b===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(b),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),c=6,d=asciiHexDigit,x):(t.enter("characterReferenceValue"),c=7,d=asciiDigit,x(b))}function x(b){if(b===59&&u){const C=t.exit("characterReferenceValue");return d===asciiAlphanumeric&&!decodeNamedCharacterReference(o.sliceSerialize(C))?l(b):(t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),t.exit("characterReference"),a)}return d(b)&&u++<c?(t.consume(b),x):l(b)}}const nonLazyContinuation={partial:!0,tokenize:tokenizeNonLazyContinuation},codeFenced={concrete:!0,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(t,a,l){const o=this,u={partial:!0,tokenize:te};let c=0,d=0,g;return p;function p(Y){return m(Y)}function m(Y){const ge=o.events[o.events.length-1];return c=ge&&ge[1].type==="linePrefix"?ge[2].sliceSerialize(ge[1],!0).length:0,g=Y,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),x(Y)}function x(Y){return Y===g?(d++,t.consume(Y),x):d<3?l(Y):(t.exit("codeFencedFenceSequence"),markdownSpace(Y)?factorySpace(t,b,"whitespace")(Y):b(Y))}function b(Y){return Y===null||markdownLineEnding(Y)?(t.exit("codeFencedFence"),o.interrupt?a(Y):t.check(nonLazyContinuation,B,se)(Y)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),C(Y))}function C(Y){return Y===null||markdownLineEnding(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),b(Y)):markdownSpace(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),factorySpace(t,R,"whitespace")(Y)):Y===96&&Y===g?l(Y):(t.consume(Y),C)}function R(Y){return Y===null||markdownLineEnding(Y)?b(Y):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),_(Y))}function _(Y){return Y===null||markdownLineEnding(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),b(Y)):Y===96&&Y===g?l(Y):(t.consume(Y),_)}function B(Y){return t.attempt(u,se,L)(Y)}function L(Y){return t.enter("lineEnding"),t.consume(Y),t.exit("lineEnding"),D}function D(Y){return c>0&&markdownSpace(Y)?factorySpace(t,H,"linePrefix",c+1)(Y):H(Y)}function H(Y){return Y===null||markdownLineEnding(Y)?t.check(nonLazyContinuation,B,se)(Y):(t.enter("codeFlowValue"),V(Y))}function V(Y){return Y===null||markdownLineEnding(Y)?(t.exit("codeFlowValue"),H(Y)):(t.consume(Y),V)}function se(Y){return t.exit("codeFenced"),a(Y)}function te(Y,ge,W){let ve=0;return K;function K(ee){return Y.enter("lineEnding"),Y.consume(ee),Y.exit("lineEnding"),Ee}function Ee(ee){return Y.enter("codeFencedFence"),markdownSpace(ee)?factorySpace(Y,ae,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):ae(ee)}function ae(ee){return ee===g?(Y.enter("codeFencedFenceSequence"),Ce(ee)):W(ee)}function Ce(ee){return ee===g?(ve++,Y.consume(ee),Ce):ve>=d?(Y.exit("codeFencedFenceSequence"),markdownSpace(ee)?factorySpace(Y,ye,"whitespace")(ee):ye(ee)):W(ee)}function ye(ee){return ee===null||markdownLineEnding(ee)?(Y.exit("codeFencedFence"),ge(ee)):W(ee)}}}function tokenizeNonLazyContinuation(t,a,l){const o=this;return u;function u(d){return d===null?l(d):(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),c)}function c(d){return o.parser.lazy[o.now().line]?l(d):a(d)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(t,a,l){const o=this;return u;function u(m){return t.enter("codeIndented"),factorySpace(t,c,"linePrefix",5)(m)}function c(m){const x=o.events[o.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?p(m):markdownLineEnding(m)?t.attempt(furtherStart,d,p)(m):(t.enter("codeFlowValue"),g(m))}function g(m){return m===null||markdownLineEnding(m)?(t.exit("codeFlowValue"),d(m)):(t.consume(m),g)}function p(m){return t.exit("codeIndented"),a(m)}}function tokenizeFurtherStart(t,a,l){const o=this;return u;function u(d){return o.parser.lazy[o.now().line]?l(d):markdownLineEnding(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),u):factorySpace(t,c,"linePrefix",5)(d)}function c(d){const g=o.events[o.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(d):markdownLineEnding(d)?u(d):l(d)}}const codeText={name:"codeText",previous:previous$1,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(t){let a=t.length-4,l=3,o,u;if((t[l][1].type==="lineEnding"||t[l][1].type==="space")&&(t[a][1].type==="lineEnding"||t[a][1].type==="space")){for(o=l;++o<a;)if(t[o][1].type==="codeTextData"){t[l][1].type="codeTextPadding",t[a][1].type="codeTextPadding",l+=2,a-=2;break}}for(o=l-1,a++;++o<=a;)u===void 0?o!==a&&t[o][1].type!=="lineEnding"&&(u=o):(o===a||t[o][1].type==="lineEnding")&&(t[u][1].type="codeTextData",o!==u+2&&(t[u][1].end=t[o-1][1].end,t.splice(u+2,o-u-2),a-=o-u-2,o=u+2),u=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 o=0,u,c;return d;function d(b){return t.enter("codeText"),t.enter("codeTextSequence"),g(b)}function g(b){return b===96?(t.consume(b),o++,g):(t.exit("codeTextSequence"),p(b))}function p(b){return b===null?l(b):b===32?(t.enter("space"),t.consume(b),t.exit("space"),p):b===96?(c=t.enter("codeTextSequence"),u=0,x(b)):markdownLineEnding(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),p):(t.enter("codeTextData"),m(b))}function m(b){return b===null||b===32||b===96||markdownLineEnding(b)?(t.exit("codeTextData"),p(b)):(t.consume(b),m)}function x(b){return b===96?(t.consume(b),u++,x):u===o?(t.exit("codeTextSequence"),t.exit("codeText"),a(b)):(c.type="codeTextData",m(b))}}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 o=l??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(a,o):a>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(a,l,o){const u=l||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return o&&chunkedPush(this.left,o),c.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,o,u,c,d,g,p,m;const x=new SpliceBuffer(t);for(;++l<x.length;){for(;l in a;)l=a[l];if(o=x.get(l),l&&o[1].type==="chunkFlow"&&x.get(l-1)[1].type==="listItemPrefix"&&(p=o[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(o[0]==="enter")o[1].contentType&&(Object.assign(a,subcontent(x,l)),l=a[l],m=!0);else if(o[1]._container){for(c=l,u=void 0;c--;)if(d=x.get(c),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(u&&(x.get(u)[1].type="lineEndingBlank"),d[1].type="lineEnding",u=c);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;u&&(o[1].end={...x.get(u)[1].start},g=x.slice(u,l),g.unshift(o),x.splice(u,l-u+1,g))}}return splice(t,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function subcontent(t,a){const l=t.get(a)[1],o=t.get(a)[2];let u=a-1;const c=[];let d=l._tokenizer;d||(d=o.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const g=d.events,p=[],m={};let x,b,C=-1,R=l,_=0,B=0;const L=[B];for(;R;){for(;t.get(++u)[1]!==R;);c.push(u),R._tokenizer||(x=o.sliceStream(R),R.next||x.push(null),b&&d.defineSkip(R.start),R._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(x),R._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),b=R,R=R.next}for(R=l;++C<g.length;)g[C][0]==="exit"&&g[C-1][0]==="enter"&&g[C][1].type===g[C-1][1].type&&g[C][1].start.line!==g[C][1].end.line&&(B=C+1,L.push(B),R._tokenizer=void 0,R.previous=void 0,R=R.next);for(d.events=[],R?(R._tokenizer=void 0,R.previous=void 0):L.pop(),C=L.length;C--;){const D=g.slice(L[C],L[C+1]),H=c.pop();p.push([H,H+D.length-1]),t.splice(H,2,D)}for(p.reverse(),C=-1;++C<p.length;)m[_+p[C][0]]=_+p[C][1],_+=p[C][1]-p[C][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 o;function o(g){return t.enter("content"),l=t.enter("chunkContent",{contentType:"content"}),u(g)}function u(g){return g===null?c(g):markdownLineEnding(g)?t.check(continuationConstruct,d,c)(g):(t.consume(g),u)}function c(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,u}}function tokenizeContinuation(t,a,l){const o=this;return u;function u(d){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),factorySpace(t,c,"linePrefix")}function c(d){if(d===null||markdownLineEnding(d))return l(d);const g=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(d):t.interrupt(o.parser.constructs.flow,l,a)(d)}}function factoryDestination(t,a,l,o,u,c,d,g,p){const m=p||Number.POSITIVE_INFINITY;let x=0;return b;function b(D){return D===60?(t.enter(o),t.enter(u),t.enter(c),t.consume(D),t.exit(c),C):D===null||D===32||D===41||asciiControl(D)?l(D):(t.enter(o),t.enter(d),t.enter(g),t.enter("chunkString",{contentType:"string"}),B(D))}function C(D){return D===62?(t.enter(c),t.consume(D),t.exit(c),t.exit(u),t.exit(o),a):(t.enter(g),t.enter("chunkString",{contentType:"string"}),R(D))}function R(D){return D===62?(t.exit("chunkString"),t.exit(g),C(D)):D===null||D===60||markdownLineEnding(D)?l(D):(t.consume(D),D===92?_:R)}function _(D){return D===60||D===62||D===92?(t.consume(D),R):R(D)}function B(D){return!x&&(D===null||D===41||markdownLineEndingOrSpace(D))?(t.exit("chunkString"),t.exit(g),t.exit(d),t.exit(o),a(D)):x<m&&D===40?(t.consume(D),x++,B):D===41?(t.consume(D),x--,B):D===null||D===32||D===40||asciiControl(D)?l(D):(t.consume(D),D===92?L:B)}function L(D){return D===40||D===41||D===92?(t.consume(D),B):B(D)}}function factoryLabel(t,a,l,o,u,c){const d=this;let g=0,p;return m;function m(R){return t.enter(o),t.enter(u),t.consume(R),t.exit(u),t.enter(c),x}function x(R){return g>999||R===null||R===91||R===93&&!p||R===94&&!g&&"_hiddenFootnoteSupport"in d.parser.constructs?l(R):R===93?(t.exit(c),t.enter(u),t.consume(R),t.exit(u),t.exit(o),a):markdownLineEnding(R)?(t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),x):(t.enter("chunkString",{contentType:"string"}),b(R))}function b(R){return R===null||R===91||R===93||markdownLineEnding(R)||g++>999?(t.exit("chunkString"),x(R)):(t.consume(R),p||(p=!markdownSpace(R)),R===92?C:b)}function C(R){return R===91||R===92||R===93?(t.consume(R),g++,b):b(R)}}function factoryTitle(t,a,l,o,u,c){let d;return g;function g(C){return C===34||C===39||C===40?(t.enter(o),t.enter(u),t.consume(C),t.exit(u),d=C===40?41:C,p):l(C)}function p(C){return C===d?(t.enter(u),t.consume(C),t.exit(u),t.exit(o),a):(t.enter(c),m(C))}function m(C){return C===d?(t.exit(c),p(d)):C===null?l(C):markdownLineEnding(C)?(t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),factorySpace(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),x(C))}function x(C){return C===d||C===null||markdownLineEnding(C)?(t.exit("chunkString"),m(C)):(t.consume(C),C===92?b:x)}function b(C){return C===d||C===92?(t.consume(C),x):x(C)}}function factoryWhitespace(t,a){let l;return o;function o(u){return markdownLineEnding(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),l=!0,o):markdownSpace(u)?factorySpace(t,o,l?"linePrefix":"lineSuffix")(u):a(u)}}const definition$1={name:"definition",tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(t,a,l){const o=this;let u;return c;function c(R){return t.enter("definition"),d(R)}function d(R){return factoryLabel.call(o,t,g,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(R)}function g(R){return u=normalizeIdentifier(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),R===58?(t.enter("definitionMarker"),t.consume(R),t.exit("definitionMarker"),p):l(R)}function p(R){return markdownLineEndingOrSpace(R)?factoryWhitespace(t,m)(R):m(R)}function m(R){return factoryDestination(t,x,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(R)}function x(R){return t.attempt(titleBefore,b,b)(R)}function b(R){return markdownSpace(R)?factorySpace(t,C,"whitespace")(R):C(R)}function C(R){return R===null||markdownLineEnding(R)?(t.exit("definition"),o.parser.defined.push(u),a(R)):l(R)}}function tokenizeTitleBefore(t,a,l){return o;function o(g){return markdownLineEndingOrSpace(g)?factoryWhitespace(t,u)(g):l(g)}function u(g){return factoryTitle(t,c,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(g)}function c(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 o;function o(c){return t.enter("hardBreakEscape"),t.consume(c),u}function u(c){return markdownLineEnding(c)?(t.exit("hardBreakEscape"),a(c)):l(c)}}const headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(t,a){let l=t.length-2,o=3,u,c;return t[o][1].type==="whitespace"&&(o+=2),l-2>o&&t[l][1].type==="whitespace"&&(l-=2),t[l][1].type==="atxHeadingSequence"&&(o===l-1||l-4>o&&t[l-2][1].type==="whitespace")&&(l-=o+1===l?2:4),l>o&&(u={type:"atxHeadingText",start:t[o][1].start,end:t[l][1].end},c={type:"chunkText",start:t[o][1].start,end:t[l][1].end,contentType:"text"},splice(t,o,l-o+1,[["enter",u,a],["enter",c,a],["exit",c,a],["exit",u,a]])),t}function tokenizeHeadingAtx(t,a,l){let o=0;return u;function u(x){return t.enter("atxHeading"),c(x)}function c(x){return t.enter("atxHeadingSequence"),d(x)}function d(x){return x===35&&o++<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"),p(x)):x===null||markdownLineEnding(x)?(t.exit("atxHeading"),a(x)):markdownSpace(x)?factorySpace(t,g,"whitespace")(x):(t.enter("atxHeadingText"),m(x))}function p(x){return x===35?(t.consume(x),p):(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 o=this;let u,c,d,g,p;return m;function m(N){return x(N)}function x(N){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(N),b}function b(N){return N===33?(t.consume(N),C):N===47?(t.consume(N),c=!0,B):N===63?(t.consume(N),u=3,o.interrupt?a:O):asciiAlpha(N)?(t.consume(N),d=String.fromCharCode(N),L):l(N)}function C(N){return N===45?(t.consume(N),u=2,R):N===91?(t.consume(N),u=5,g=0,_):asciiAlpha(N)?(t.consume(N),u=4,o.interrupt?a:O):l(N)}function R(N){return N===45?(t.consume(N),o.interrupt?a:O):l(N)}function _(N){const be="CDATA[";return N===be.charCodeAt(g++)?(t.consume(N),g===be.length?o.interrupt?a:ae:_):l(N)}function B(N){return asciiAlpha(N)?(t.consume(N),d=String.fromCharCode(N),L):l(N)}function L(N){if(N===null||N===47||N===62||markdownLineEndingOrSpace(N)){const be=N===47,xe=d.toLowerCase();return!be&&!c&&htmlRawNames.includes(xe)?(u=1,o.interrupt?a(N):ae(N)):htmlBlockNames.includes(d.toLowerCase())?(u=6,be?(t.consume(N),D):o.interrupt?a(N):ae(N)):(u=7,o.interrupt&&!o.parser.lazy[o.now().line]?l(N):c?H(N):V(N))}return N===45||asciiAlphanumeric(N)?(t.consume(N),d+=String.fromCharCode(N),L):l(N)}function D(N){return N===62?(t.consume(N),o.interrupt?a:ae):l(N)}function H(N){return markdownSpace(N)?(t.consume(N),H):K(N)}function V(N){return N===47?(t.consume(N),K):N===58||N===95||asciiAlpha(N)?(t.consume(N),se):markdownSpace(N)?(t.consume(N),V):K(N)}function se(N){return N===45||N===46||N===58||N===95||asciiAlphanumeric(N)?(t.consume(N),se):te(N)}function te(N){return N===61?(t.consume(N),Y):markdownSpace(N)?(t.consume(N),te):V(N)}function Y(N){return N===null||N===60||N===61||N===62||N===96?l(N):N===34||N===39?(t.consume(N),p=N,ge):markdownSpace(N)?(t.consume(N),Y):W(N)}function ge(N){return N===p?(t.consume(N),p=null,ve):N===null||markdownLineEnding(N)?l(N):(t.consume(N),ge)}function W(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||markdownLineEndingOrSpace(N)?te(N):(t.consume(N),W)}function ve(N){return N===47||N===62||markdownSpace(N)?V(N):l(N)}function K(N){return N===62?(t.consume(N),Ee):l(N)}function Ee(N){return N===null||markdownLineEnding(N)?ae(N):markdownSpace(N)?(t.consume(N),Ee):l(N)}function ae(N){return N===45&&u===2?(t.consume(N),P):N===60&&u===1?(t.consume(N),he):N===62&&u===4?(t.consume(N),q):N===63&&u===3?(t.consume(N),O):N===93&&u===5?(t.consume(N),_e):markdownLineEnding(N)&&(u===6||u===7)?(t.exit("htmlFlowData"),t.check(blankLineBefore,oe,Ce)(N)):N===null||markdownLineEnding(N)?(t.exit("htmlFlowData"),Ce(N)):(t.consume(N),ae)}function Ce(N){return t.check(nonLazyContinuationStart,ye,oe)(N)}function ye(N){return t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),ee}function ee(N){return N===null||markdownLineEnding(N)?Ce(N):(t.enter("htmlFlowData"),ae(N))}function P(N){return N===45?(t.consume(N),O):ae(N)}function he(N){return N===47?(t.consume(N),d="",fe):ae(N)}function fe(N){if(N===62){const be=d.toLowerCase();return htmlRawNames.includes(be)?(t.consume(N),q):ae(N)}return asciiAlpha(N)&&d.length<8?(t.consume(N),d+=String.fromCharCode(N),fe):ae(N)}function _e(N){return N===93?(t.consume(N),O):ae(N)}function O(N){return N===62?(t.consume(N),q):N===45&&u===2?(t.consume(N),O):ae(N)}function q(N){return N===null||markdownLineEnding(N)?(t.exit("htmlFlowData"),oe(N)):(t.consume(N),q)}function oe(N){return t.exit("htmlFlow"),a(N)}}function tokenizeNonLazyContinuationStart(t,a,l){const o=this;return u;function u(d){return markdownLineEnding(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),c):l(d)}function c(d){return o.parser.lazy[o.now().line]?l(d):a(d)}}function tokenizeBlankLineBefore(t,a,l){return o;function o(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),t.attempt(blankLine,a,l)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(t,a,l){const o=this;let u,c,d;return g;function g(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),p}function p(O){return O===33?(t.consume(O),m):O===47?(t.consume(O),te):O===63?(t.consume(O),V):asciiAlpha(O)?(t.consume(O),W):l(O)}function m(O){return O===45?(t.consume(O),x):O===91?(t.consume(O),c=0,_):asciiAlpha(O)?(t.consume(O),H):l(O)}function x(O){return O===45?(t.consume(O),R):l(O)}function b(O){return O===null?l(O):O===45?(t.consume(O),C):markdownLineEnding(O)?(d=b,he(O)):(t.consume(O),b)}function C(O){return O===45?(t.consume(O),R):b(O)}function R(O){return O===62?P(O):O===45?C(O):b(O)}function _(O){const q="CDATA[";return O===q.charCodeAt(c++)?(t.consume(O),c===q.length?B:_):l(O)}function B(O){return O===null?l(O):O===93?(t.consume(O),L):markdownLineEnding(O)?(d=B,he(O)):(t.consume(O),B)}function L(O){return O===93?(t.consume(O),D):B(O)}function D(O){return O===62?P(O):O===93?(t.consume(O),D):B(O)}function H(O){return O===null||O===62?P(O):markdownLineEnding(O)?(d=H,he(O)):(t.consume(O),H)}function V(O){return O===null?l(O):O===63?(t.consume(O),se):markdownLineEnding(O)?(d=V,he(O)):(t.consume(O),V)}function se(O){return O===62?P(O):V(O)}function te(O){return asciiAlpha(O)?(t.consume(O),Y):l(O)}function Y(O){return O===45||asciiAlphanumeric(O)?(t.consume(O),Y):ge(O)}function ge(O){return markdownLineEnding(O)?(d=ge,he(O)):markdownSpace(O)?(t.consume(O),ge):P(O)}function W(O){return O===45||asciiAlphanumeric(O)?(t.consume(O),W):O===47||O===62||markdownLineEndingOrSpace(O)?ve(O):l(O)}function ve(O){return O===47?(t.consume(O),P):O===58||O===95||asciiAlpha(O)?(t.consume(O),K):markdownLineEnding(O)?(d=ve,he(O)):markdownSpace(O)?(t.consume(O),ve):P(O)}function K(O){return O===45||O===46||O===58||O===95||asciiAlphanumeric(O)?(t.consume(O),K):Ee(O)}function Ee(O){return O===61?(t.consume(O),ae):markdownLineEnding(O)?(d=Ee,he(O)):markdownSpace(O)?(t.consume(O),Ee):ve(O)}function ae(O){return O===null||O===60||O===61||O===62||O===96?l(O):O===34||O===39?(t.consume(O),u=O,Ce):markdownLineEnding(O)?(d=ae,he(O)):markdownSpace(O)?(t.consume(O),ae):(t.consume(O),ye)}function Ce(O){return O===u?(t.consume(O),u=void 0,ee):O===null?l(O):markdownLineEnding(O)?(d=Ce,he(O)):(t.consume(O),Ce)}function ye(O){return O===null||O===34||O===39||O===60||O===61||O===96?l(O):O===47||O===62||markdownLineEndingOrSpace(O)?ve(O):(t.consume(O),ye)}function ee(O){return O===47||O===62||markdownLineEndingOrSpace(O)?ve(O):l(O)}function P(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),a):l(O)}function he(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),fe}function fe(O){return markdownSpace(O)?factorySpace(t,_e,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):_e(O)}function _e(O){return t.enter("htmlTextData"),d(O)}}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 o=t[a][1];if(l.push(t[a]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const u=o.type==="labelImage"?4:2;o.type="data",a+=u}}return t.length!==l.length&&splice(t,0,t.length,l),t}function resolveToLabelEnd(t,a){let l=t.length,o=0,u,c,d,g;for(;l--;)if(u=t[l][1],c){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;t[l][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(d){if(t[l][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(c=l,u.type!=="labelLink")){o=2;break}}else u.type==="labelEnd"&&(d=l);const p={type:t[c][1].type==="labelLink"?"link":"image",start:{...t[c][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[c][1].start},end:{...t[d][1].end}},x={type:"labelText",start:{...t[c+o+2][1].end},end:{...t[d-2][1].start}};return g=[["enter",p,a],["enter",m,a]],g=push(g,t.slice(c+1,c+o+3)),g=push(g,[["enter",x,a]]),g=push(g,resolveAll(a.parser.constructs.insideSpan.null,t.slice(c+o+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",p,a]]),splice(t,c,t.length,g),t}function tokenizeLabelEnd(t,a,l){const o=this;let u=o.events.length,c,d;for(;u--;)if((o.events[u][1].type==="labelImage"||o.events[u][1].type==="labelLink")&&!o.events[u][1]._balanced){c=o.events[u][1];break}return g;function g(C){return c?c._inactive?b(C):(d=o.parser.defined.includes(normalizeIdentifier(o.sliceSerialize({start:c.end,end:o.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(C),t.exit("labelMarker"),t.exit("labelEnd"),p):l(C)}function p(C){return C===40?t.attempt(resourceConstruct,x,d?x:b)(C):C===91?t.attempt(referenceFullConstruct,x,d?m:b)(C):d?x(C):b(C)}function m(C){return t.attempt(referenceCollapsedConstruct,x,b)(C)}function x(C){return a(C)}function b(C){return c._balanced=!0,l(C)}}function tokenizeResource(t,a,l){return o;function o(b){return t.enter("resource"),t.enter("resourceMarker"),t.consume(b),t.exit("resourceMarker"),u}function u(b){return markdownLineEndingOrSpace(b)?factoryWhitespace(t,c)(b):c(b)}function c(b){return b===41?x(b):factoryDestination(t,d,g,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function d(b){return markdownLineEndingOrSpace(b)?factoryWhitespace(t,p)(b):x(b)}function g(b){return l(b)}function p(b){return b===34||b===39||b===40?factoryTitle(t,m,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):x(b)}function m(b){return markdownLineEndingOrSpace(b)?factoryWhitespace(t,x)(b):x(b)}function x(b){return b===41?(t.enter("resourceMarker"),t.consume(b),t.exit("resourceMarker"),t.exit("resource"),a):l(b)}}function tokenizeReferenceFull(t,a,l){const o=this;return u;function u(g){return factoryLabel.call(o,t,c,d,"reference","referenceMarker","referenceString")(g)}function c(g){return o.parser.defined.includes(normalizeIdentifier(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?a(g):l(g)}function d(g){return l(g)}}function tokenizeReferenceCollapsed(t,a,l){return o;function o(c){return t.enter("reference"),t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),u}function u(c){return c===93?(t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),t.exit("reference"),a):l(c)}}const labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(t,a,l){const o=this;return u;function u(g){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(g),t.exit("labelImageMarker"),c}function c(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 o.parser.constructs?l(g):a(g)}}const labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(t,a,l){const o=this;return u;function u(d){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelLink"),c}function c(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?l(d):a(d)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(t,a){return l;function l(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),factorySpace(t,a,"linePrefix")}}const thematicBreak$2={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(t,a,l){let o=0,u;return c;function c(m){return t.enter("thematicBreak"),d(m)}function d(m){return u=m,g(m)}function g(m){return m===u?(t.enter("thematicBreakSequence"),p(m)):o>=3&&(m===null||markdownLineEnding(m))?(t.exit("thematicBreak"),a(m)):l(m)}function p(m){return m===u?(t.consume(m),o++,p):(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 o=this,u=o.events[o.events.length-1];let c=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,d=0;return g;function g(R){const _=o.containerState.type||(R===42||R===43||R===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!o.containerState.marker||R===o.containerState.marker:asciiDigit(R)){if(o.containerState.type||(o.containerState.type=_,t.enter(_,{_container:!0})),_==="listUnordered")return t.enter("listItemPrefix"),R===42||R===45?t.check(thematicBreak$2,l,m)(R):m(R);if(!o.interrupt||R===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(R)}return l(R)}function p(R){return asciiDigit(R)&&++d<10?(t.consume(R),p):(!o.interrupt||d<2)&&(o.containerState.marker?R===o.containerState.marker:R===41||R===46)?(t.exit("listItemValue"),m(R)):l(R)}function m(R){return t.enter("listItemMarker"),t.consume(R),t.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||R,t.check(blankLine,o.interrupt?l:x,t.attempt(listItemPrefixWhitespaceConstruct,C,b))}function x(R){return o.containerState.initialBlankLine=!0,c++,C(R)}function b(R){return markdownSpace(R)?(t.enter("listItemPrefixWhitespace"),t.consume(R),t.exit("listItemPrefixWhitespace"),C):l(R)}function C(R){return o.containerState.size=c+o.sliceSerialize(t.exit("listItemPrefix"),!0).length,a(R)}}function tokenizeListContinuation(t,a,l){const o=this;return o.containerState._closeFlow=void 0,t.check(blankLine,u,c);function u(g){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,factorySpace(t,a,"listItemIndent",o.containerState.size+1)(g)}function c(g){return o.containerState.furtherBlankLines||!markdownSpace(g)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,d(g)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,t.attempt(indentConstruct,a,d)(g))}function d(g){return o.containerState._closeFlow=!0,o.interrupt=void 0,factorySpace(t,t.attempt(list$2,a,l),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g)}}function tokenizeIndent$1(t,a,l){const o=this;return factorySpace(t,u,"listItemIndent",o.containerState.size+1);function u(c){const d=o.events[o.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===o.containerState.size?a(c):l(c)}}function tokenizeListEnd(t){t.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(t,a,l){const o=this;return factorySpace(t,u,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(c){const d=o.events[o.events.length-1];return!markdownSpace(c)&&d&&d[1].type==="listItemPrefixWhitespace"?a(c):l(c)}}const setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(t,a){let l=t.length,o,u,c;for(;l--;)if(t[l][0]==="enter"){if(t[l][1].type==="content"){o=l;break}t[l][1].type==="paragraph"&&(u=l)}else t[l][1].type==="content"&&t.splice(l,1),!c&&t[l][1].type==="definition"&&(c=l);const d={type:"setextHeading",start:{...t[o][1].start},end:{...t[t.length-1][1].end}};return t[u][1].type="setextHeadingText",c?(t.splice(u,0,["enter",d,a]),t.splice(c+1,0,["exit",t[o][1],a]),t[o][1].end={...t[c][1].end}):t[o][1]=d,t.push(["exit",d,a]),t}function tokenizeSetextUnderline(t,a,l){const o=this;let u;return c;function c(m){let x=o.events.length,b;for(;x--;)if(o.events[x][1].type!=="lineEnding"&&o.events[x][1].type!=="linePrefix"&&o.events[x][1].type!=="content"){b=o.events[x][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||b)?(t.enter("setextHeadingLine"),u=m,d(m)):l(m)}function d(m){return t.enter("setextHeadingLineSequence"),g(m)}function g(m){return m===u?(t.consume(m),g):(t.exit("setextHeadingLineSequence"),markdownSpace(m)?factorySpace(t,p,"lineSuffix")(m):p(m))}function p(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,o,t.attempt(this.parser.constructs.flowInitial,u,factorySpace(t,t.attempt(this.parser.constructs.flow,u,t.attempt(content,u)),"linePrefix")));return l;function o(c){if(c===null){t.consume(c);return}return t.enter("lineEndingBlank"),t.consume(c),t.exit("lineEndingBlank"),a.currentConstruct=void 0,l}function u(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),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 o=this,u=this.parser.constructs[t],c=l.attempt(u,d,g);return d;function d(x){return m(x)?c(x):g(x)}function g(x){if(x===null){l.consume(x);return}return l.enter("data"),l.consume(x),p}function p(x){return m(x)?(l.exit("data"),c(x)):(l.consume(x),p)}function m(x){if(x===null)return!0;const b=u[x];let C=-1;if(b)for(;++C<b.length;){const R=b[C];if(!R.previous||R.previous.call(o,o.previous))return!0}return!1}}}function createResolver(t){return a;function a(l,o){let u=-1,c;for(;++u<=l.length;)c===void 0?l[u]&&l[u][1].type==="data"&&(c=u,u++):(!l[u]||l[u][1].type!=="data")&&(u!==c+2&&(l[c][1].end=l[u-1][1].end,l.splice(c+2,u-c-2),u=c+2),c=void 0);return t?t(l,o):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 o=t[l-1][1],u=a.sliceStream(o);let c=u.length,d=-1,g=0,p;for(;c--;){const m=u[c];if(typeof m=="string"){for(d=m.length;m.charCodeAt(d-1)===32;)g++,d--;if(d)break;d=-1}else if(m===-2)p=!0,g++;else if(m!==-1){c++;break}}if(a._contentTypeTextTrailing&&l===t.length&&(g=0),g){const m={type:l===t.length||p||g<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?d:o.start._bufferIndex+d,_index:o.start._index+c,line:o.end.line,column:o.end.column-g,offset:o.end.offset-g},end:{...o.end}};o.end={...m.start},o.start.offset===o.end.offset?Object.assign(o,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 o={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const u={},c=[];let d=[],g=[];const p={attempt:ge(te),check:ge(Y),consume:H,enter:V,exit:se,interrupt:ge(Y,{interrupt:!0})},m={code:null,containerState:{},defineSkip:B,events:[],now:_,parser:t,previous:null,sliceSerialize:C,sliceStream:R,write:b};let x=a.tokenize.call(m,p);return a.resolveAll&&c.push(a),m;function b(Ee){return d=push(d,Ee),L(),d[d.length-1]!==null?[]:(W(a,0),m.events=resolveAll(c,m.events,m),m.events)}function C(Ee,ae){return serializeChunks(R(Ee),ae)}function R(Ee){return sliceChunks(d,Ee)}function _(){const{_bufferIndex:Ee,_index:ae,line:Ce,column:ye,offset:ee}=o;return{_bufferIndex:Ee,_index:ae,line:Ce,column:ye,offset:ee}}function B(Ee){u[Ee.line]=Ee.column,K()}function L(){let Ee;for(;o._index<d.length;){const ae=d[o._index];if(typeof ae=="string")for(Ee=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===Ee&&o._bufferIndex<ae.length;)D(ae.charCodeAt(o._bufferIndex));else D(ae)}}function D(Ee){x=x(Ee)}function H(Ee){markdownLineEnding(Ee)?(o.line++,o.column=1,o.offset+=Ee===-3?2:1,K()):Ee!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===d[o._index].length&&(o._bufferIndex=-1,o._index++)),m.previous=Ee}function V(Ee,ae){const Ce=ae||{};return Ce.type=Ee,Ce.start=_(),m.events.push(["enter",Ce,m]),g.push(Ce),Ce}function se(Ee){const ae=g.pop();return ae.end=_(),m.events.push(["exit",ae,m]),ae}function te(Ee,ae){W(Ee,ae.from)}function Y(Ee,ae){ae.restore()}function ge(Ee,ae){return Ce;function Ce(ye,ee,P){let he,fe,_e,O;return Array.isArray(ye)?oe(ye):"tokenize"in ye?oe([ye]):q(ye);function q(Se){return Oe;function Oe(qe){const je=qe!==null&&Se[qe],nt=qe!==null&&Se.null,Qe=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(nt)?nt:nt?[nt]:[]];return oe(Qe)(qe)}}function oe(Se){return he=Se,fe=0,Se.length===0?P:N(Se[fe])}function N(Se){return Oe;function Oe(qe){return O=ve(),_e=Se,Se.partial||(m.currentConstruct=Se),Se.name&&m.parser.constructs.disable.null.includes(Se.name)?xe():Se.tokenize.call(ae?Object.assign(Object.create(m),ae):m,p,be,xe)(qe)}}function be(Se){return Ee(_e,O),ee}function xe(Se){return O.restore(),++fe<he.length?N(he[fe]):P}}}function W(Ee,ae){Ee.resolveAll&&!c.includes(Ee)&&c.push(Ee),Ee.resolve&&splice(m.events,ae,m.events.length-ae,Ee.resolve(m.events.slice(ae),m)),Ee.resolveTo&&(m.events=Ee.resolveTo(m.events,m))}function ve(){const Ee=_(),ae=m.previous,Ce=m.currentConstruct,ye=m.events.length,ee=Array.from(g);return{from:ye,restore:P};function P(){o=Ee,m.previous=ae,m.currentConstruct=Ce,m.events.length=ye,g=ee,K()}}function K(){o.line in u&&o.column<2&&(o.column=u[o.line],o.offset+=u[o.line]-1)}}function sliceChunks(t,a){const l=a.start._index,o=a.start._bufferIndex,u=a.end._index,c=a.end._bufferIndex;let d;if(l===u)d=[t[l].slice(o,c)];else{if(d=t.slice(l,u),o>-1){const g=d[0];typeof g=="string"?d[0]=g.slice(o):d.shift()}c>0&&d.push(t[u].slice(0,c))}return d}function serializeChunks(t,a){let l=-1;const o=[];let u;for(;++l<t.length;){const c=t[l];let d;if(typeof c=="string")d=c;else switch(c){case-5:{d="\r";break}case-4:{d=`
|
|
194
|
+
*/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[o,u]=reactExports.useState(null),[c,d]=reactExports.useState(!1);reactExports.useEffect(()=>(a.fetchState("_status").then(g=>{g!=null&&g.state&&u(g.state)}).catch(()=>{}),a.onState((g,x)=>{g==="_status"&&x.state&&u(x.state)})),[a]);const h=(o==null?void 0:o.setupRequired)&&!c;return jsxRuntimeExports.jsxs("div",{className:"flex flex-col h-full",children:[h&&jsxRuntimeExports.jsx(SetupWarningBanner,{message:o.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 overflow-y-auto px-6 pt-6 pb-8",children:jsxRuntimeExports.jsx("div",{className:"grid grid-cols-4 sm:grid-cols-5 lg:grid-cols-6 gap-x-4 gap-y-6 max-w-6xl",children:[1,2,3,4,5,6,7,8].map(l=>jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center gap-2 animate-pulse",children:[jsxRuntimeExports.jsx("div",{className:"w-[72px] h-[72px] sm:w-[84px] sm:h-[84px] lg:w-[90px] lg:h-[90px] rounded-2xl bg-muted"}),jsxRuntimeExports.jsx("div",{className:"h-2.5 w-16 rounded bg-muted"})]},l))})}):jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-y-auto px-6 pt-6 pb-8",children:jsxRuntimeExports.jsx("div",{className:"grid grid-cols-4 sm:grid-cols-5 lg:grid-cols-6 gap-x-4 gap-y-6 max-w-6xl",children:t.map(l=>jsxRuntimeExports.jsxs("button",{onClick:()=>a(l.id),className:"flex flex-col items-center gap-2 bg-transparent border-none cursor-pointer text-foreground p-0 font-inherit group",children:[jsxRuntimeExports.jsx("div",{className:"w-[72px] h-[72px] sm:w-[84px] sm:h-[84px] lg:w-[90px] lg:h-[90px] rounded-[18px] sm:rounded-[20px] lg:rounded-[22px] bg-gradient-to-br from-card to-accent/20 border border-border flex items-center justify-center text-[2rem] sm:text-[2.25rem] lg:text-[2.5rem] transition-all group-hover:scale-105 active:scale-95 shadow-sm",style:{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08)"},children:l.emoji}),jsxRuntimeExports.jsx("span",{className:"text-[11px] sm:text-[12px] text-center leading-tight max-w-[90px] line-clamp-2 opacity-90",children:l.name})]},l.id))})})}const createStoreImpl=t=>{let a;const l=new Set,o=(g,x)=>{const b=typeof g=="function"?g(a):g;if(!Object.is(b,a)){const C=a;a=x??(typeof b!="object"||b===null)?b:Object.assign({},a,b),l.forEach(R=>R(a,C))}},u=()=>a,h={setState:o,getState:u,getInitialState:()=>p,subscribe:g=>(l.add(g),()=>l.delete(g))},p=a=t(o,u,h);return h},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:o}){const u=reactExports.useRef(void 0),c=reactExports.useRef(void 0);return u.current||(u.current=createClappStore()),c.current||(c.current=o??new ClappTransport({serverUrl:t})),reactExports.useEffect(()=>{const d=u.current,h=c.current,p=h.onState((x,b)=>{x===a&&d.getState().applyState(b)}),g=h.onConnection(x=>{d.getState().setConnected(x)});return h.connect(),h.subscribe([a]),h.fetchState(a).then(x=>{x&&d.getState().applyState(x)}).catch(()=>{}),()=>{p(),g(),o||h.disconnect()}},[t,a,o]),jsxRuntimeExports.jsx(ClappContext.Provider,{value:{store:u.current,transport:c.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 o=t.split(".");let u=l.state;for(const c of o){if(u==null||typeof u!="object")return;u=u[c]}return u})}function useIntent(){const{transport:t,clappId:a}=useClappContext();return{emit:(l,o={})=>t.sendIntent(a,l,o)}}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,o){this.normal=l,this.property=a,o&&(this.space=o)}}Schema.prototype.normal={};Schema.prototype.property={};Schema.prototype.space=void 0;function merge$1(t,a){const l={},o={};for(const u of t)Object.assign(l,u.property),Object.assign(o,u.normal);return new Schema(l,o,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,o,u){let c=-1;if(super(a,l),mark$1(this,"space",u),typeof o=="number")for(;++c<checks.length;){const d=checks[c];mark$1(this,checks[c],(o&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[o,u]of Object.entries(t.properties)){const c=new DefinedInfo(o,t.transform(t.attributes||{},o),u,t.space);t.mustUseProperty&&t.mustUseProperty.includes(o)&&(c.mustUseProperty=!0),a[o]=c,l[normalize$1(o)]=o,l[normalize$1(c.attribute)]=o}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 o=a,u=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 c=a.slice(5).replace(dash,camelcase);o="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!dash.test(c)){let d=c.replace(cap$1,kebab);d.charAt(0)!=="-"&&(d="-"+d),a="data"+d}}u=DefinedInfo}return new u(o,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*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,h=/^\s+|\s+$/g,p=`
|
|
195
|
+
`,g="/",x="*",b="",C="comment",R="declaration";function _(L,D){if(typeof L!="string")throw new TypeError("First argument must be a string");if(!L)return[];D=D||{};var $=1,V=1;function se(ye){var ee=ye.match(a);ee&&($+=ee.length);var P=ye.lastIndexOf(p);V=~P?ye.length-P:V+ye.length}function ie(){var ye={line:$,column:V};return function(ee){return ee.position=new H(ye),ve(),ee}}function H(ye){this.start=ye,this.end={line:$,column:V},this.source=D.source}H.prototype.content=L;function ge(ye){var ee=new Error(D.source+":"+$+":"+V+": "+ye);if(ee.reason=ye,ee.filename=D.source,ee.line=$,ee.column=V,ee.source=L,!D.silent)throw ee}function W(ye){var ee=ye.exec(L);if(ee){var P=ee[0];return se(P),L=L.slice(P.length),ee}}function ve(){W(l)}function K(ye){var ee;for(ye=ye||[];ee=Ee();)ee!==!1&&ye.push(ee);return ye}function Ee(){var ye=ie();if(!(g!=L.charAt(0)||x!=L.charAt(1))){for(var ee=2;b!=L.charAt(ee)&&(x!=L.charAt(ee)||g!=L.charAt(ee+1));)++ee;if(ee+=2,b===L.charAt(ee-1))return ge("End of comment missing");var P=L.slice(2,ee-2);return V+=2,se(P),L=L.slice(ee),V+=2,ye({type:C,comment:P})}}function ae(){var ye=ie(),ee=W(o);if(ee){if(Ee(),!W(u))return ge("property missing ':'");var P=W(c),he=ye({type:R,property:B(ee[0].replace(t,b)),value:P?B(P[0].replace(t,b)):b});return W(d),he}}function Ce(){var ye=[];K(ye);for(var ee;ee=ae();)ee!==!1&&(ye.push(ee),K(ye));return ye}return ve(),Ce()}function B(L){return L?L.replace(h,b):b}return cjs$1=_,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(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(cjs$2,"__esModule",{value:!0}),cjs$2.default=l;const a=t(requireCjs$2());function l(o,u){let c=null;if(!o||typeof o!="string")return c;const d=(0,a.default)(o),h=typeof u=="function";return d.forEach(p=>{if(p.type!=="declaration")return;const{property:g,value:x}=p;h?u(g,x,p):x&&(c=c||{},c[g]=x)}),c}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=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,c=function(g){return!g||l.test(g)||t.test(g)},d=function(g,x){return x.toUpperCase()},h=function(g,x){return"".concat(x,"-")},p=function(g,x){return x===void 0&&(x={}),c(g)?g:(g=g.toLowerCase(),x.reactCompat?g=g.replace(u,h):g=g.replace(o,h),g.replace(a,d))};return utilities.camelCase=p,utilities}var cjs,hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var t=cjs&&cjs.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},a=t(requireCjs$1()),l=requireUtilities();function o(u,c){var d={};return!u||typeof u!="string"||(0,a.default)(u,function(h,p){h&&p&&(d[(0,l.camelCase)(h,c)]=p)}),d}return o.default=o,cjs=o,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 o=l&&l.position&&l.position[t]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.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,o){super(),typeof l=="string"&&(o=l,l=void 0);let u="",c={},d=!1;if(l&&("line"in l&&"column"in l?c={place:l}:"start"in l&&"end"in l?c={place:l}:"type"in l?c={ancestors:[l],place:l.position}:c={...l}),typeof a=="string"?u=a:!c.cause&&a&&(d=!0,u=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof o=="string"){const p=o.indexOf(":");p===-1?c.ruleId=o:(c.source=o.slice(0,p),c.ruleId=o.slice(p+1))}if(!c.place&&c.ancestors&&c.ancestors){const p=c.ancestors[c.ancestors.length-1];p&&(c.place=p.position)}const h=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=u,this.line=h?h.line:void 0,this.name=stringifyPosition(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=d&&c.cause&&typeof c.cause.stack=="string"?c.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 o;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=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");o=productionCreate(l,a.jsx,a.jsxs)}const u={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:o,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},c=one$1(u,t,void 0);return c&&typeof c!="string"?c:u.create(t,u.Fragment,{children:c||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 o=t.schema;let u=o;a.tagName.toLowerCase()==="svg"&&o.space==="html"&&(u=svg,t.schema=u),t.ancestors.push(a);const c=findComponentFromName(t,a.tagName,!1),d=createElementProps(t,a);let h=createChildren(t,a);return tableElements.has(a.tagName)&&(h=h.filter(function(p){return typeof p=="string"?!whitespace(p):!0})),addNode(t,d,c,a),addChildren(d,h),t.ancestors.pop(),t.schema=o,t.create(a,c,d,l)}function mdxExpression(t,a){if(a.data&&a.data.estree&&t.evaluater){const o=a.data.estree.body[0];return o.type,t.evaluater.evaluateExpression(o.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 o=t.schema;let u=o;a.name==="svg"&&o.space==="html"&&(u=svg,t.schema=u),t.ancestors.push(a);const c=a.name===null?t.Fragment:findComponentFromName(t,a.name,!0),d=createJsxElementProps(t,a),h=createChildren(t,a);return addNode(t,d,c,a),addChildren(d,h),t.ancestors.pop(),t.schema=o,t.create(a,c,d,l)}function root$2(t,a,l){const o={};return addChildren(o,createChildren(t,a)),t.create(a,t.Fragment,o,l)}function text$5(t,a){return a.value}function addNode(t,a,l,o){typeof l!="string"&&l!==t.Fragment&&t.passNode&&(a.node=o)}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 o;function o(u,c,d,h){const g=Array.isArray(d.children)?l:a;return h?g(c,d,h):g(c,d)}}function developmentCreate(t,a){return l;function l(o,u,c,d){const h=Array.isArray(c.children),p=pointStart(o);return a(u,c,d,h,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function createElementProps(t,a){const l={};let o,u;for(u in a.properties)if(u!=="children"&&own$3.call(a.properties,u)){const c=createProperty(t,u,a.properties[u]);if(c){const[d,h]=c;t.tableCellAlignToStyle&&d==="align"&&typeof h=="string"&&tableCellElement.has(a.tagName)?o=h:l[d]=h}}if(o){const c=l.style||(l.style={});c[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return l}function createJsxElementProps(t,a){const l={};for(const o of a.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&t.evaluater){const c=o.data.estree.body[0];c.type;const d=c.expression;d.type;const h=d.properties[0];h.type,Object.assign(l,t.evaluater.evaluateExpression(h.argument))}else crashEstree(t,a.position);else{const u=o.name;let c;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&t.evaluater){const h=o.value.data.estree.body[0];h.type,c=t.evaluater.evaluateExpression(h.expression)}else crashEstree(t,a.position);else c=o.value===null?!0:o.value;l[u]=c}return l}function createChildren(t,a){const l=[];let o=-1;const u=t.passKeys?new Map:emptyMap;for(;++o<a.children.length;){const c=a.children[o];let d;if(t.passKeys){const p=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(p){const g=u.get(p)||0;d=p+"-"+g,u.set(p,g+1)}}const h=one$1(t,c,d);h!==void 0&&l.push(h)}return l}function createProperty(t,a,l){const o=find(t.schema,a);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=o.commaSeparated?stringify$2(l):stringify$1(l)),o.property==="style"){let u=typeof l=="object"?l:parseStyle(t,String(l));return t.stylePropertyNameCase==="css"&&(u=transformStylesToCssCasing(u)),["style",u]}return[t.elementAttributeNameCase==="react"&&o.space?hastToReact[o.property]||o.property:o.attribute,l]}}function parseStyle(t,a){try{return styleToJs(a,{reactCompat:!0})}catch(l){if(t.ignoreInvalidStyle)return{};const o=l,u=new VFileMessage("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=t.filePath||void 0,u.url=docs+"#cannot-parse-style-attribute",u}}function findComponentFromName(t,a,l){let o;if(!l)o={type:"Literal",value:a};else if(a.includes(".")){const u=a.split(".");let c=-1,d;for(;++c<u.length;){const h=name(u[c])?{type:"Identifier",name:u[c]}:{type:"Literal",value:u[c]};d=d?{type:"MemberExpression",object:d,property:h,computed:!!(c&&h.type==="Literal"),optional:!1}:h}o=d}else o=name(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(o.type==="Literal"){const u=o.value;return own$3.call(t.components,u)?t.components[u]:u}if(t.evaluater)return t.evaluater.evaluateExpression(o);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,o=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,u=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return one(t,o,u)}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 o=[];let u=-1;for(;++u<t.length;)o[u]=one(t[u],a,l);return o.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,o){const u=t.length;let c=0,d;if(a<0?a=-a>u?0:u+a:a=a>u?u:a,l=l>0?l:0,o.length<1e4)d=Array.from(o),d.unshift(a,l),t.splice(...d);else for(l&&t.splice(a,l);c<o.length;)d=o.slice(c,c+1e4),d.unshift(a,0),t.splice(...d),c+=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 u=(hasOwnProperty.call(t,l)?t[l]:void 0)||(t[l]={}),c=a[l];let d;if(c)for(d in c){hasOwnProperty.call(u,d)||(u[d]=[]);const h=c[d];constructs(u[d],Array.isArray(h)?h:h?[h]:[])}}}function constructs(t,a){let l=-1;const o=[];for(;++l<a.length;)(a[l].add==="after"?t:o).push(a[l]);splice(t,0,0,o)}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,o=0,u=0;for(;++l<t.length;){const c=t.charCodeAt(l);let d="";if(c===37&&asciiAlphanumeric(t.charCodeAt(l+1))&&asciiAlphanumeric(t.charCodeAt(l+2)))u=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(d=String.fromCharCode(c));else if(c>55295&&c<57344){const h=t.charCodeAt(l+1);c<56320&&h>56319&&h<57344?(d=String.fromCharCode(c,h),u=1):d="�"}else d=String.fromCharCode(c);d&&(a.push(t.slice(o,l),encodeURIComponent(d)),o=l+u+1,d=""),u&&(l+=u,u=0)}return a.join("")+t.slice(o)}function factorySpace(t,a,l,o){const u=o?o-1:Number.POSITIVE_INFINITY;let c=0;return d;function d(p){return markdownSpace(p)?(t.enter(l),h(p)):a(p)}function h(p){return markdownSpace(p)&&c++<u?(t.consume(p),h):(t.exit(l),a(p))}}const content$1={tokenize:initializeContent};function initializeContent(t){const a=t.attempt(this.parser.constructs.contentInitial,o,u);let l;return a;function o(h){if(h===null){t.consume(h);return}return t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),factorySpace(t,a,"linePrefix")}function u(h){return t.enter("paragraph"),c(h)}function c(h){const p=t.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=p),l=p,d(h)}function d(h){if(h===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(h);return}return markdownLineEnding(h)?(t.consume(h),t.exit("chunkText"),c):(t.consume(h),d)}}const document$2={tokenize:initializeDocument},containerConstruct={tokenize:tokenizeContainer};function initializeDocument(t){const a=this,l=[];let o=0,u,c,d;return h;function h(V){if(o<l.length){const se=l[o];return a.containerState=se[1],t.attempt(se[0].continuation,p,g)(V)}return g(V)}function p(V){if(o++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,u&&$();const se=a.events.length;let ie=se,H;for(;ie--;)if(a.events[ie][0]==="exit"&&a.events[ie][1].type==="chunkFlow"){H=a.events[ie][1].end;break}D(o);let ge=se;for(;ge<a.events.length;)a.events[ge][1].end={...H},ge++;return splice(a.events,ie+1,0,a.events.slice(se)),a.events.length=ge,g(V)}return h(V)}function g(V){if(o===l.length){if(!u)return C(V);if(u.currentConstruct&&u.currentConstruct.concrete)return _(V);a.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return a.containerState={},t.check(containerConstruct,x,b)(V)}function x(V){return u&&$(),D(o),C(V)}function b(V){return a.parser.lazy[a.now().line]=o!==l.length,d=a.now().offset,_(V)}function C(V){return a.containerState={},t.attempt(containerConstruct,R,_)(V)}function R(V){return o++,l.push([a.currentConstruct,a.containerState]),C(V)}function _(V){if(V===null){u&&$(),D(0),t.consume(V);return}return u=u||a.parser.flow(a.now()),t.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:c}),B(V)}function B(V){if(V===null){L(t.exit("chunkFlow"),!0),D(0),t.consume(V);return}return markdownLineEnding(V)?(t.consume(V),L(t.exit("chunkFlow")),o=0,a.interrupt=void 0,h):(t.consume(V),B)}function L(V,se){const ie=a.sliceStream(V);if(se&&ie.push(null),V.previous=c,c&&(c.next=V),c=V,u.defineSkip(V.start),u.write(ie),a.parser.lazy[V.start.line]){let H=u.events.length;for(;H--;)if(u.events[H][1].start.offset<d&&(!u.events[H][1].end||u.events[H][1].end.offset>d))return;const ge=a.events.length;let W=ge,ve,K;for(;W--;)if(a.events[W][0]==="exit"&&a.events[W][1].type==="chunkFlow"){if(ve){K=a.events[W][1].end;break}ve=!0}for(D(o),H=ge;H<a.events.length;)a.events[H][1].end={...K},H++;splice(a.events,W+1,0,a.events.slice(ge)),a.events.length=H}}function D(V){let se=l.length;for(;se-- >V;){const ie=l[se];a.containerState=ie[1],ie[0].exit.call(a,t)}l.length=V}function $(){u.write([null]),c=void 0,u=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 o=[];let u=-1;for(;++u<t.length;){const c=t[u].resolveAll;c&&!o.includes(c)&&(a=c(a,l),o.push(c))}return a}const attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(t,a){let l=-1,o,u,c,d,h,p,g,x;for(;++l<t.length;)if(t[l][0]==="enter"&&t[l][1].type==="attentionSequence"&&t[l][1]._close){for(o=l;o--;)if(t[o][0]==="exit"&&t[o][1].type==="attentionSequence"&&t[o][1]._open&&a.sliceSerialize(t[o][1]).charCodeAt(0)===a.sliceSerialize(t[l][1]).charCodeAt(0)){if((t[o][1]._close||t[l][1]._open)&&(t[l][1].end.offset-t[l][1].start.offset)%3&&!((t[o][1].end.offset-t[o][1].start.offset+t[l][1].end.offset-t[l][1].start.offset)%3))continue;p=t[o][1].end.offset-t[o][1].start.offset>1&&t[l][1].end.offset-t[l][1].start.offset>1?2:1;const b={...t[o][1].end},C={...t[l][1].start};movePoint(b,-p),movePoint(C,p),d={type:p>1?"strongSequence":"emphasisSequence",start:b,end:{...t[o][1].end}},h={type:p>1?"strongSequence":"emphasisSequence",start:{...t[l][1].start},end:C},c={type:p>1?"strongText":"emphasisText",start:{...t[o][1].end},end:{...t[l][1].start}},u={type:p>1?"strong":"emphasis",start:{...d.start},end:{...h.end}},t[o][1].end={...d.start},t[l][1].start={...h.end},g=[],t[o][1].end.offset-t[o][1].start.offset&&(g=push(g,[["enter",t[o][1],a],["exit",t[o][1],a]])),g=push(g,[["enter",u,a],["enter",d,a],["exit",d,a],["enter",c,a]]),g=push(g,resolveAll(a.parser.constructs.insideSpan.null,t.slice(o+1,l),a)),g=push(g,[["exit",c,a],["enter",h,a],["exit",h,a],["exit",u,a]]),t[l][1].end.offset-t[l][1].start.offset?(x=2,g=push(g,[["enter",t[l][1],a],["exit",t[l][1],a]])):x=0,splice(t,o-1,l-o+3,g),l=o+g.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,o=this.previous,u=classifyCharacter(o);let c;return d;function d(p){return c=p,t.enter("attentionSequence"),h(p)}function h(p){if(p===c)return t.consume(p),h;const g=t.exit("attentionSequence"),x=classifyCharacter(p),b=!x||x===2&&u||l.includes(p),C=!u||u===2&&x||l.includes(o);return g._open=!!(c===42?b:b&&(u||!C)),g._close=!!(c===42?C:C&&(x||!b)),a(p)}}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 o=0;return u;function u(R){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(R),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),c}function c(R){return asciiAlpha(R)?(t.consume(R),d):R===64?l(R):g(R)}function d(R){return R===43||R===45||R===46||asciiAlphanumeric(R)?(o=1,h(R)):g(R)}function h(R){return R===58?(t.consume(R),o=0,p):(R===43||R===45||R===46||asciiAlphanumeric(R))&&o++<32?(t.consume(R),h):(o=0,g(R))}function p(R){return R===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(R),t.exit("autolinkMarker"),t.exit("autolink"),a):R===null||R===32||R===60||asciiControl(R)?l(R):(t.consume(R),p)}function g(R){return R===64?(t.consume(R),x):asciiAtext(R)?(t.consume(R),g):l(R)}function x(R){return asciiAlphanumeric(R)?b(R):l(R)}function b(R){return R===46?(t.consume(R),o=0,x):R===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(R),t.exit("autolinkMarker"),t.exit("autolink"),a):C(R)}function C(R){if((R===45||asciiAlphanumeric(R))&&o++<63){const _=R===45?C:b;return t.consume(R),_}return l(R)}}const blankLine={partial:!0,tokenize:tokenizeBlankLine};function tokenizeBlankLine(t,a,l){return o;function o(c){return markdownSpace(c)?factorySpace(t,u,"linePrefix")(c):u(c)}function u(c){return c===null||markdownLineEnding(c)?a(c):l(c)}}const blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit:exit$1,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(t,a,l){const o=this;return u;function u(d){if(d===62){const h=o.containerState;return h.open||(t.enter("blockQuote",{_container:!0}),h.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(d),t.exit("blockQuoteMarker"),c}return l(d)}function c(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 o=this;return u;function u(d){return markdownSpace(d)?factorySpace(t,c,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):c(d)}function c(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 o;function o(c){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(c),t.exit("escapeMarker"),u}function u(c){return asciiPunctuation(c)?(t.enter("characterEscapeValue"),t.consume(c),t.exit("characterEscapeValue"),t.exit("characterEscape"),a):l(c)}}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(t,a,l){const o=this;let u=0,c,d;return h;function h(b){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),p}function p(b){return b===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(b),t.exit("characterReferenceMarkerNumeric"),g):(t.enter("characterReferenceValue"),c=31,d=asciiAlphanumeric,x(b))}function g(b){return b===88||b===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(b),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),c=6,d=asciiHexDigit,x):(t.enter("characterReferenceValue"),c=7,d=asciiDigit,x(b))}function x(b){if(b===59&&u){const C=t.exit("characterReferenceValue");return d===asciiAlphanumeric&&!decodeNamedCharacterReference(o.sliceSerialize(C))?l(b):(t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),t.exit("characterReference"),a)}return d(b)&&u++<c?(t.consume(b),x):l(b)}}const nonLazyContinuation={partial:!0,tokenize:tokenizeNonLazyContinuation},codeFenced={concrete:!0,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(t,a,l){const o=this,u={partial:!0,tokenize:ie};let c=0,d=0,h;return p;function p(H){return g(H)}function g(H){const ge=o.events[o.events.length-1];return c=ge&&ge[1].type==="linePrefix"?ge[2].sliceSerialize(ge[1],!0).length:0,h=H,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),x(H)}function x(H){return H===h?(d++,t.consume(H),x):d<3?l(H):(t.exit("codeFencedFenceSequence"),markdownSpace(H)?factorySpace(t,b,"whitespace")(H):b(H))}function b(H){return H===null||markdownLineEnding(H)?(t.exit("codeFencedFence"),o.interrupt?a(H):t.check(nonLazyContinuation,B,se)(H)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),C(H))}function C(H){return H===null||markdownLineEnding(H)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),b(H)):markdownSpace(H)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),factorySpace(t,R,"whitespace")(H)):H===96&&H===h?l(H):(t.consume(H),C)}function R(H){return H===null||markdownLineEnding(H)?b(H):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),_(H))}function _(H){return H===null||markdownLineEnding(H)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),b(H)):H===96&&H===h?l(H):(t.consume(H),_)}function B(H){return t.attempt(u,se,L)(H)}function L(H){return t.enter("lineEnding"),t.consume(H),t.exit("lineEnding"),D}function D(H){return c>0&&markdownSpace(H)?factorySpace(t,$,"linePrefix",c+1)(H):$(H)}function $(H){return H===null||markdownLineEnding(H)?t.check(nonLazyContinuation,B,se)(H):(t.enter("codeFlowValue"),V(H))}function V(H){return H===null||markdownLineEnding(H)?(t.exit("codeFlowValue"),$(H)):(t.consume(H),V)}function se(H){return t.exit("codeFenced"),a(H)}function ie(H,ge,W){let ve=0;return K;function K(ee){return H.enter("lineEnding"),H.consume(ee),H.exit("lineEnding"),Ee}function Ee(ee){return H.enter("codeFencedFence"),markdownSpace(ee)?factorySpace(H,ae,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):ae(ee)}function ae(ee){return ee===h?(H.enter("codeFencedFenceSequence"),Ce(ee)):W(ee)}function Ce(ee){return ee===h?(ve++,H.consume(ee),Ce):ve>=d?(H.exit("codeFencedFenceSequence"),markdownSpace(ee)?factorySpace(H,ye,"whitespace")(ee):ye(ee)):W(ee)}function ye(ee){return ee===null||markdownLineEnding(ee)?(H.exit("codeFencedFence"),ge(ee)):W(ee)}}}function tokenizeNonLazyContinuation(t,a,l){const o=this;return u;function u(d){return d===null?l(d):(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),c)}function c(d){return o.parser.lazy[o.now().line]?l(d):a(d)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(t,a,l){const o=this;return u;function u(g){return t.enter("codeIndented"),factorySpace(t,c,"linePrefix",5)(g)}function c(g){const x=o.events[o.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?d(g):l(g)}function d(g){return g===null?p(g):markdownLineEnding(g)?t.attempt(furtherStart,d,p)(g):(t.enter("codeFlowValue"),h(g))}function h(g){return g===null||markdownLineEnding(g)?(t.exit("codeFlowValue"),d(g)):(t.consume(g),h)}function p(g){return t.exit("codeIndented"),a(g)}}function tokenizeFurtherStart(t,a,l){const o=this;return u;function u(d){return o.parser.lazy[o.now().line]?l(d):markdownLineEnding(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),u):factorySpace(t,c,"linePrefix",5)(d)}function c(d){const h=o.events[o.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(d):markdownLineEnding(d)?u(d):l(d)}}const codeText={name:"codeText",previous:previous$1,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(t){let a=t.length-4,l=3,o,u;if((t[l][1].type==="lineEnding"||t[l][1].type==="space")&&(t[a][1].type==="lineEnding"||t[a][1].type==="space")){for(o=l;++o<a;)if(t[o][1].type==="codeTextData"){t[l][1].type="codeTextPadding",t[a][1].type="codeTextPadding",l+=2,a-=2;break}}for(o=l-1,a++;++o<=a;)u===void 0?o!==a&&t[o][1].type!=="lineEnding"&&(u=o):(o===a||t[o][1].type==="lineEnding")&&(t[u][1].type="codeTextData",o!==u+2&&(t[u][1].end=t[o-1][1].end,t.splice(u+2,o-u-2),a-=o-u-2,o=u+2),u=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 o=0,u,c;return d;function d(b){return t.enter("codeText"),t.enter("codeTextSequence"),h(b)}function h(b){return b===96?(t.consume(b),o++,h):(t.exit("codeTextSequence"),p(b))}function p(b){return b===null?l(b):b===32?(t.enter("space"),t.consume(b),t.exit("space"),p):b===96?(c=t.enter("codeTextSequence"),u=0,x(b)):markdownLineEnding(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),p):(t.enter("codeTextData"),g(b))}function g(b){return b===null||b===32||b===96||markdownLineEnding(b)?(t.exit("codeTextData"),p(b)):(t.consume(b),g)}function x(b){return b===96?(t.consume(b),u++,x):u===o?(t.exit("codeTextSequence"),t.exit("codeText"),a(b)):(c.type="codeTextData",g(b))}}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 o=l??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(a,o):a>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(a,l,o){const u=l||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return o&&chunkedPush(this.left,o),c.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,o,u,c,d,h,p,g;const x=new SpliceBuffer(t);for(;++l<x.length;){for(;l in a;)l=a[l];if(o=x.get(l),l&&o[1].type==="chunkFlow"&&x.get(l-1)[1].type==="listItemPrefix"&&(p=o[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(o[0]==="enter")o[1].contentType&&(Object.assign(a,subcontent(x,l)),l=a[l],g=!0);else if(o[1]._container){for(c=l,u=void 0;c--;)if(d=x.get(c),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(u&&(x.get(u)[1].type="lineEndingBlank"),d[1].type="lineEnding",u=c);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;u&&(o[1].end={...x.get(u)[1].start},h=x.slice(u,l),h.unshift(o),x.splice(u,l-u+1,h))}}return splice(t,0,Number.POSITIVE_INFINITY,x.slice(0)),!g}function subcontent(t,a){const l=t.get(a)[1],o=t.get(a)[2];let u=a-1;const c=[];let d=l._tokenizer;d||(d=o.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const h=d.events,p=[],g={};let x,b,C=-1,R=l,_=0,B=0;const L=[B];for(;R;){for(;t.get(++u)[1]!==R;);c.push(u),R._tokenizer||(x=o.sliceStream(R),R.next||x.push(null),b&&d.defineSkip(R.start),R._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(x),R._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),b=R,R=R.next}for(R=l;++C<h.length;)h[C][0]==="exit"&&h[C-1][0]==="enter"&&h[C][1].type===h[C-1][1].type&&h[C][1].start.line!==h[C][1].end.line&&(B=C+1,L.push(B),R._tokenizer=void 0,R.previous=void 0,R=R.next);for(d.events=[],R?(R._tokenizer=void 0,R.previous=void 0):L.pop(),C=L.length;C--;){const D=h.slice(L[C],L[C+1]),$=c.pop();p.push([$,$+D.length-1]),t.splice($,2,D)}for(p.reverse(),C=-1;++C<p.length;)g[_+p[C][0]]=_+p[C][1],_+=p[C][1]-p[C][0]-1;return g}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 o;function o(h){return t.enter("content"),l=t.enter("chunkContent",{contentType:"content"}),u(h)}function u(h){return h===null?c(h):markdownLineEnding(h)?t.check(continuationConstruct,d,c)(h):(t.consume(h),u)}function c(h){return t.exit("chunkContent"),t.exit("content"),a(h)}function d(h){return t.consume(h),t.exit("chunkContent"),l.next=t.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,u}}function tokenizeContinuation(t,a,l){const o=this;return u;function u(d){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),factorySpace(t,c,"linePrefix")}function c(d){if(d===null||markdownLineEnding(d))return l(d);const h=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(d):t.interrupt(o.parser.constructs.flow,l,a)(d)}}function factoryDestination(t,a,l,o,u,c,d,h,p){const g=p||Number.POSITIVE_INFINITY;let x=0;return b;function b(D){return D===60?(t.enter(o),t.enter(u),t.enter(c),t.consume(D),t.exit(c),C):D===null||D===32||D===41||asciiControl(D)?l(D):(t.enter(o),t.enter(d),t.enter(h),t.enter("chunkString",{contentType:"string"}),B(D))}function C(D){return D===62?(t.enter(c),t.consume(D),t.exit(c),t.exit(u),t.exit(o),a):(t.enter(h),t.enter("chunkString",{contentType:"string"}),R(D))}function R(D){return D===62?(t.exit("chunkString"),t.exit(h),C(D)):D===null||D===60||markdownLineEnding(D)?l(D):(t.consume(D),D===92?_:R)}function _(D){return D===60||D===62||D===92?(t.consume(D),R):R(D)}function B(D){return!x&&(D===null||D===41||markdownLineEndingOrSpace(D))?(t.exit("chunkString"),t.exit(h),t.exit(d),t.exit(o),a(D)):x<g&&D===40?(t.consume(D),x++,B):D===41?(t.consume(D),x--,B):D===null||D===32||D===40||asciiControl(D)?l(D):(t.consume(D),D===92?L:B)}function L(D){return D===40||D===41||D===92?(t.consume(D),B):B(D)}}function factoryLabel(t,a,l,o,u,c){const d=this;let h=0,p;return g;function g(R){return t.enter(o),t.enter(u),t.consume(R),t.exit(u),t.enter(c),x}function x(R){return h>999||R===null||R===91||R===93&&!p||R===94&&!h&&"_hiddenFootnoteSupport"in d.parser.constructs?l(R):R===93?(t.exit(c),t.enter(u),t.consume(R),t.exit(u),t.exit(o),a):markdownLineEnding(R)?(t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),x):(t.enter("chunkString",{contentType:"string"}),b(R))}function b(R){return R===null||R===91||R===93||markdownLineEnding(R)||h++>999?(t.exit("chunkString"),x(R)):(t.consume(R),p||(p=!markdownSpace(R)),R===92?C:b)}function C(R){return R===91||R===92||R===93?(t.consume(R),h++,b):b(R)}}function factoryTitle(t,a,l,o,u,c){let d;return h;function h(C){return C===34||C===39||C===40?(t.enter(o),t.enter(u),t.consume(C),t.exit(u),d=C===40?41:C,p):l(C)}function p(C){return C===d?(t.enter(u),t.consume(C),t.exit(u),t.exit(o),a):(t.enter(c),g(C))}function g(C){return C===d?(t.exit(c),p(d)):C===null?l(C):markdownLineEnding(C)?(t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),factorySpace(t,g,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),x(C))}function x(C){return C===d||C===null||markdownLineEnding(C)?(t.exit("chunkString"),g(C)):(t.consume(C),C===92?b:x)}function b(C){return C===d||C===92?(t.consume(C),x):x(C)}}function factoryWhitespace(t,a){let l;return o;function o(u){return markdownLineEnding(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),l=!0,o):markdownSpace(u)?factorySpace(t,o,l?"linePrefix":"lineSuffix")(u):a(u)}}const definition$1={name:"definition",tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(t,a,l){const o=this;let u;return c;function c(R){return t.enter("definition"),d(R)}function d(R){return factoryLabel.call(o,t,h,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(R)}function h(R){return u=normalizeIdentifier(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),R===58?(t.enter("definitionMarker"),t.consume(R),t.exit("definitionMarker"),p):l(R)}function p(R){return markdownLineEndingOrSpace(R)?factoryWhitespace(t,g)(R):g(R)}function g(R){return factoryDestination(t,x,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(R)}function x(R){return t.attempt(titleBefore,b,b)(R)}function b(R){return markdownSpace(R)?factorySpace(t,C,"whitespace")(R):C(R)}function C(R){return R===null||markdownLineEnding(R)?(t.exit("definition"),o.parser.defined.push(u),a(R)):l(R)}}function tokenizeTitleBefore(t,a,l){return o;function o(h){return markdownLineEndingOrSpace(h)?factoryWhitespace(t,u)(h):l(h)}function u(h){return factoryTitle(t,c,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function c(h){return markdownSpace(h)?factorySpace(t,d,"whitespace")(h):d(h)}function d(h){return h===null||markdownLineEnding(h)?a(h):l(h)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(t,a,l){return o;function o(c){return t.enter("hardBreakEscape"),t.consume(c),u}function u(c){return markdownLineEnding(c)?(t.exit("hardBreakEscape"),a(c)):l(c)}}const headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(t,a){let l=t.length-2,o=3,u,c;return t[o][1].type==="whitespace"&&(o+=2),l-2>o&&t[l][1].type==="whitespace"&&(l-=2),t[l][1].type==="atxHeadingSequence"&&(o===l-1||l-4>o&&t[l-2][1].type==="whitespace")&&(l-=o+1===l?2:4),l>o&&(u={type:"atxHeadingText",start:t[o][1].start,end:t[l][1].end},c={type:"chunkText",start:t[o][1].start,end:t[l][1].end,contentType:"text"},splice(t,o,l-o+1,[["enter",u,a],["enter",c,a],["exit",c,a],["exit",u,a]])),t}function tokenizeHeadingAtx(t,a,l){let o=0;return u;function u(x){return t.enter("atxHeading"),c(x)}function c(x){return t.enter("atxHeadingSequence"),d(x)}function d(x){return x===35&&o++<6?(t.consume(x),d):x===null||markdownLineEndingOrSpace(x)?(t.exit("atxHeadingSequence"),h(x)):l(x)}function h(x){return x===35?(t.enter("atxHeadingSequence"),p(x)):x===null||markdownLineEnding(x)?(t.exit("atxHeading"),a(x)):markdownSpace(x)?factorySpace(t,h,"whitespace")(x):(t.enter("atxHeadingText"),g(x))}function p(x){return x===35?(t.consume(x),p):(t.exit("atxHeadingSequence"),h(x))}function g(x){return x===null||x===35||markdownLineEndingOrSpace(x)?(t.exit("atxHeadingText"),h(x)):(t.consume(x),g)}}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 o=this;let u,c,d,h,p;return g;function g(N){return x(N)}function x(N){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(N),b}function b(N){return N===33?(t.consume(N),C):N===47?(t.consume(N),c=!0,B):N===63?(t.consume(N),u=3,o.interrupt?a:O):asciiAlpha(N)?(t.consume(N),d=String.fromCharCode(N),L):l(N)}function C(N){return N===45?(t.consume(N),u=2,R):N===91?(t.consume(N),u=5,h=0,_):asciiAlpha(N)?(t.consume(N),u=4,o.interrupt?a:O):l(N)}function R(N){return N===45?(t.consume(N),o.interrupt?a:O):l(N)}function _(N){const be="CDATA[";return N===be.charCodeAt(h++)?(t.consume(N),h===be.length?o.interrupt?a:ae:_):l(N)}function B(N){return asciiAlpha(N)?(t.consume(N),d=String.fromCharCode(N),L):l(N)}function L(N){if(N===null||N===47||N===62||markdownLineEndingOrSpace(N)){const be=N===47,xe=d.toLowerCase();return!be&&!c&&htmlRawNames.includes(xe)?(u=1,o.interrupt?a(N):ae(N)):htmlBlockNames.includes(d.toLowerCase())?(u=6,be?(t.consume(N),D):o.interrupt?a(N):ae(N)):(u=7,o.interrupt&&!o.parser.lazy[o.now().line]?l(N):c?$(N):V(N))}return N===45||asciiAlphanumeric(N)?(t.consume(N),d+=String.fromCharCode(N),L):l(N)}function D(N){return N===62?(t.consume(N),o.interrupt?a:ae):l(N)}function $(N){return markdownSpace(N)?(t.consume(N),$):K(N)}function V(N){return N===47?(t.consume(N),K):N===58||N===95||asciiAlpha(N)?(t.consume(N),se):markdownSpace(N)?(t.consume(N),V):K(N)}function se(N){return N===45||N===46||N===58||N===95||asciiAlphanumeric(N)?(t.consume(N),se):ie(N)}function ie(N){return N===61?(t.consume(N),H):markdownSpace(N)?(t.consume(N),ie):V(N)}function H(N){return N===null||N===60||N===61||N===62||N===96?l(N):N===34||N===39?(t.consume(N),p=N,ge):markdownSpace(N)?(t.consume(N),H):W(N)}function ge(N){return N===p?(t.consume(N),p=null,ve):N===null||markdownLineEnding(N)?l(N):(t.consume(N),ge)}function W(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||markdownLineEndingOrSpace(N)?ie(N):(t.consume(N),W)}function ve(N){return N===47||N===62||markdownSpace(N)?V(N):l(N)}function K(N){return N===62?(t.consume(N),Ee):l(N)}function Ee(N){return N===null||markdownLineEnding(N)?ae(N):markdownSpace(N)?(t.consume(N),Ee):l(N)}function ae(N){return N===45&&u===2?(t.consume(N),P):N===60&&u===1?(t.consume(N),he):N===62&&u===4?(t.consume(N),q):N===63&&u===3?(t.consume(N),O):N===93&&u===5?(t.consume(N),_e):markdownLineEnding(N)&&(u===6||u===7)?(t.exit("htmlFlowData"),t.check(blankLineBefore,oe,Ce)(N)):N===null||markdownLineEnding(N)?(t.exit("htmlFlowData"),Ce(N)):(t.consume(N),ae)}function Ce(N){return t.check(nonLazyContinuationStart,ye,oe)(N)}function ye(N){return t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),ee}function ee(N){return N===null||markdownLineEnding(N)?Ce(N):(t.enter("htmlFlowData"),ae(N))}function P(N){return N===45?(t.consume(N),O):ae(N)}function he(N){return N===47?(t.consume(N),d="",fe):ae(N)}function fe(N){if(N===62){const be=d.toLowerCase();return htmlRawNames.includes(be)?(t.consume(N),q):ae(N)}return asciiAlpha(N)&&d.length<8?(t.consume(N),d+=String.fromCharCode(N),fe):ae(N)}function _e(N){return N===93?(t.consume(N),O):ae(N)}function O(N){return N===62?(t.consume(N),q):N===45&&u===2?(t.consume(N),O):ae(N)}function q(N){return N===null||markdownLineEnding(N)?(t.exit("htmlFlowData"),oe(N)):(t.consume(N),q)}function oe(N){return t.exit("htmlFlow"),a(N)}}function tokenizeNonLazyContinuationStart(t,a,l){const o=this;return u;function u(d){return markdownLineEnding(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),c):l(d)}function c(d){return o.parser.lazy[o.now().line]?l(d):a(d)}}function tokenizeBlankLineBefore(t,a,l){return o;function o(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),t.attempt(blankLine,a,l)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(t,a,l){const o=this;let u,c,d;return h;function h(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),p}function p(O){return O===33?(t.consume(O),g):O===47?(t.consume(O),ie):O===63?(t.consume(O),V):asciiAlpha(O)?(t.consume(O),W):l(O)}function g(O){return O===45?(t.consume(O),x):O===91?(t.consume(O),c=0,_):asciiAlpha(O)?(t.consume(O),$):l(O)}function x(O){return O===45?(t.consume(O),R):l(O)}function b(O){return O===null?l(O):O===45?(t.consume(O),C):markdownLineEnding(O)?(d=b,he(O)):(t.consume(O),b)}function C(O){return O===45?(t.consume(O),R):b(O)}function R(O){return O===62?P(O):O===45?C(O):b(O)}function _(O){const q="CDATA[";return O===q.charCodeAt(c++)?(t.consume(O),c===q.length?B:_):l(O)}function B(O){return O===null?l(O):O===93?(t.consume(O),L):markdownLineEnding(O)?(d=B,he(O)):(t.consume(O),B)}function L(O){return O===93?(t.consume(O),D):B(O)}function D(O){return O===62?P(O):O===93?(t.consume(O),D):B(O)}function $(O){return O===null||O===62?P(O):markdownLineEnding(O)?(d=$,he(O)):(t.consume(O),$)}function V(O){return O===null?l(O):O===63?(t.consume(O),se):markdownLineEnding(O)?(d=V,he(O)):(t.consume(O),V)}function se(O){return O===62?P(O):V(O)}function ie(O){return asciiAlpha(O)?(t.consume(O),H):l(O)}function H(O){return O===45||asciiAlphanumeric(O)?(t.consume(O),H):ge(O)}function ge(O){return markdownLineEnding(O)?(d=ge,he(O)):markdownSpace(O)?(t.consume(O),ge):P(O)}function W(O){return O===45||asciiAlphanumeric(O)?(t.consume(O),W):O===47||O===62||markdownLineEndingOrSpace(O)?ve(O):l(O)}function ve(O){return O===47?(t.consume(O),P):O===58||O===95||asciiAlpha(O)?(t.consume(O),K):markdownLineEnding(O)?(d=ve,he(O)):markdownSpace(O)?(t.consume(O),ve):P(O)}function K(O){return O===45||O===46||O===58||O===95||asciiAlphanumeric(O)?(t.consume(O),K):Ee(O)}function Ee(O){return O===61?(t.consume(O),ae):markdownLineEnding(O)?(d=Ee,he(O)):markdownSpace(O)?(t.consume(O),Ee):ve(O)}function ae(O){return O===null||O===60||O===61||O===62||O===96?l(O):O===34||O===39?(t.consume(O),u=O,Ce):markdownLineEnding(O)?(d=ae,he(O)):markdownSpace(O)?(t.consume(O),ae):(t.consume(O),ye)}function Ce(O){return O===u?(t.consume(O),u=void 0,ee):O===null?l(O):markdownLineEnding(O)?(d=Ce,he(O)):(t.consume(O),Ce)}function ye(O){return O===null||O===34||O===39||O===60||O===61||O===96?l(O):O===47||O===62||markdownLineEndingOrSpace(O)?ve(O):(t.consume(O),ye)}function ee(O){return O===47||O===62||markdownLineEndingOrSpace(O)?ve(O):l(O)}function P(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),a):l(O)}function he(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),fe}function fe(O){return markdownSpace(O)?factorySpace(t,_e,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):_e(O)}function _e(O){return t.enter("htmlTextData"),d(O)}}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 o=t[a][1];if(l.push(t[a]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const u=o.type==="labelImage"?4:2;o.type="data",a+=u}}return t.length!==l.length&&splice(t,0,t.length,l),t}function resolveToLabelEnd(t,a){let l=t.length,o=0,u,c,d,h;for(;l--;)if(u=t[l][1],c){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;t[l][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(d){if(t[l][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(c=l,u.type!=="labelLink")){o=2;break}}else u.type==="labelEnd"&&(d=l);const p={type:t[c][1].type==="labelLink"?"link":"image",start:{...t[c][1].start},end:{...t[t.length-1][1].end}},g={type:"label",start:{...t[c][1].start},end:{...t[d][1].end}},x={type:"labelText",start:{...t[c+o+2][1].end},end:{...t[d-2][1].start}};return h=[["enter",p,a],["enter",g,a]],h=push(h,t.slice(c+1,c+o+3)),h=push(h,[["enter",x,a]]),h=push(h,resolveAll(a.parser.constructs.insideSpan.null,t.slice(c+o+4,d-3),a)),h=push(h,[["exit",x,a],t[d-2],t[d-1],["exit",g,a]]),h=push(h,t.slice(d+1)),h=push(h,[["exit",p,a]]),splice(t,c,t.length,h),t}function tokenizeLabelEnd(t,a,l){const o=this;let u=o.events.length,c,d;for(;u--;)if((o.events[u][1].type==="labelImage"||o.events[u][1].type==="labelLink")&&!o.events[u][1]._balanced){c=o.events[u][1];break}return h;function h(C){return c?c._inactive?b(C):(d=o.parser.defined.includes(normalizeIdentifier(o.sliceSerialize({start:c.end,end:o.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(C),t.exit("labelMarker"),t.exit("labelEnd"),p):l(C)}function p(C){return C===40?t.attempt(resourceConstruct,x,d?x:b)(C):C===91?t.attempt(referenceFullConstruct,x,d?g:b)(C):d?x(C):b(C)}function g(C){return t.attempt(referenceCollapsedConstruct,x,b)(C)}function x(C){return a(C)}function b(C){return c._balanced=!0,l(C)}}function tokenizeResource(t,a,l){return o;function o(b){return t.enter("resource"),t.enter("resourceMarker"),t.consume(b),t.exit("resourceMarker"),u}function u(b){return markdownLineEndingOrSpace(b)?factoryWhitespace(t,c)(b):c(b)}function c(b){return b===41?x(b):factoryDestination(t,d,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function d(b){return markdownLineEndingOrSpace(b)?factoryWhitespace(t,p)(b):x(b)}function h(b){return l(b)}function p(b){return b===34||b===39||b===40?factoryTitle(t,g,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):x(b)}function g(b){return markdownLineEndingOrSpace(b)?factoryWhitespace(t,x)(b):x(b)}function x(b){return b===41?(t.enter("resourceMarker"),t.consume(b),t.exit("resourceMarker"),t.exit("resource"),a):l(b)}}function tokenizeReferenceFull(t,a,l){const o=this;return u;function u(h){return factoryLabel.call(o,t,c,d,"reference","referenceMarker","referenceString")(h)}function c(h){return o.parser.defined.includes(normalizeIdentifier(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?a(h):l(h)}function d(h){return l(h)}}function tokenizeReferenceCollapsed(t,a,l){return o;function o(c){return t.enter("reference"),t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),u}function u(c){return c===93?(t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),t.exit("reference"),a):l(c)}}const labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(t,a,l){const o=this;return u;function u(h){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(h),t.exit("labelImageMarker"),c}function c(h){return h===91?(t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelImage"),d):l(h)}function d(h){return h===94&&"_hiddenFootnoteSupport"in o.parser.constructs?l(h):a(h)}}const labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(t,a,l){const o=this;return u;function u(d){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelLink"),c}function c(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?l(d):a(d)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(t,a){return l;function l(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),factorySpace(t,a,"linePrefix")}}const thematicBreak$2={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(t,a,l){let o=0,u;return c;function c(g){return t.enter("thematicBreak"),d(g)}function d(g){return u=g,h(g)}function h(g){return g===u?(t.enter("thematicBreakSequence"),p(g)):o>=3&&(g===null||markdownLineEnding(g))?(t.exit("thematicBreak"),a(g)):l(g)}function p(g){return g===u?(t.consume(g),o++,p):(t.exit("thematicBreakSequence"),markdownSpace(g)?factorySpace(t,h,"whitespace")(g):h(g))}}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 o=this,u=o.events[o.events.length-1];let c=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,d=0;return h;function h(R){const _=o.containerState.type||(R===42||R===43||R===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!o.containerState.marker||R===o.containerState.marker:asciiDigit(R)){if(o.containerState.type||(o.containerState.type=_,t.enter(_,{_container:!0})),_==="listUnordered")return t.enter("listItemPrefix"),R===42||R===45?t.check(thematicBreak$2,l,g)(R):g(R);if(!o.interrupt||R===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(R)}return l(R)}function p(R){return asciiDigit(R)&&++d<10?(t.consume(R),p):(!o.interrupt||d<2)&&(o.containerState.marker?R===o.containerState.marker:R===41||R===46)?(t.exit("listItemValue"),g(R)):l(R)}function g(R){return t.enter("listItemMarker"),t.consume(R),t.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||R,t.check(blankLine,o.interrupt?l:x,t.attempt(listItemPrefixWhitespaceConstruct,C,b))}function x(R){return o.containerState.initialBlankLine=!0,c++,C(R)}function b(R){return markdownSpace(R)?(t.enter("listItemPrefixWhitespace"),t.consume(R),t.exit("listItemPrefixWhitespace"),C):l(R)}function C(R){return o.containerState.size=c+o.sliceSerialize(t.exit("listItemPrefix"),!0).length,a(R)}}function tokenizeListContinuation(t,a,l){const o=this;return o.containerState._closeFlow=void 0,t.check(blankLine,u,c);function u(h){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,factorySpace(t,a,"listItemIndent",o.containerState.size+1)(h)}function c(h){return o.containerState.furtherBlankLines||!markdownSpace(h)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,d(h)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,t.attempt(indentConstruct,a,d)(h))}function d(h){return o.containerState._closeFlow=!0,o.interrupt=void 0,factorySpace(t,t.attempt(list$2,a,l),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function tokenizeIndent$1(t,a,l){const o=this;return factorySpace(t,u,"listItemIndent",o.containerState.size+1);function u(c){const d=o.events[o.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===o.containerState.size?a(c):l(c)}}function tokenizeListEnd(t){t.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(t,a,l){const o=this;return factorySpace(t,u,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(c){const d=o.events[o.events.length-1];return!markdownSpace(c)&&d&&d[1].type==="listItemPrefixWhitespace"?a(c):l(c)}}const setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(t,a){let l=t.length,o,u,c;for(;l--;)if(t[l][0]==="enter"){if(t[l][1].type==="content"){o=l;break}t[l][1].type==="paragraph"&&(u=l)}else t[l][1].type==="content"&&t.splice(l,1),!c&&t[l][1].type==="definition"&&(c=l);const d={type:"setextHeading",start:{...t[o][1].start},end:{...t[t.length-1][1].end}};return t[u][1].type="setextHeadingText",c?(t.splice(u,0,["enter",d,a]),t.splice(c+1,0,["exit",t[o][1],a]),t[o][1].end={...t[c][1].end}):t[o][1]=d,t.push(["exit",d,a]),t}function tokenizeSetextUnderline(t,a,l){const o=this;let u;return c;function c(g){let x=o.events.length,b;for(;x--;)if(o.events[x][1].type!=="lineEnding"&&o.events[x][1].type!=="linePrefix"&&o.events[x][1].type!=="content"){b=o.events[x][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||b)?(t.enter("setextHeadingLine"),u=g,d(g)):l(g)}function d(g){return t.enter("setextHeadingLineSequence"),h(g)}function h(g){return g===u?(t.consume(g),h):(t.exit("setextHeadingLineSequence"),markdownSpace(g)?factorySpace(t,p,"lineSuffix")(g):p(g))}function p(g){return g===null||markdownLineEnding(g)?(t.exit("setextHeadingLine"),a(g)):l(g)}}const flow$1={tokenize:initializeFlow};function initializeFlow(t){const a=this,l=t.attempt(blankLine,o,t.attempt(this.parser.constructs.flowInitial,u,factorySpace(t,t.attempt(this.parser.constructs.flow,u,t.attempt(content,u)),"linePrefix")));return l;function o(c){if(c===null){t.consume(c);return}return t.enter("lineEndingBlank"),t.consume(c),t.exit("lineEndingBlank"),a.currentConstruct=void 0,l}function u(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),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 o=this,u=this.parser.constructs[t],c=l.attempt(u,d,h);return d;function d(x){return g(x)?c(x):h(x)}function h(x){if(x===null){l.consume(x);return}return l.enter("data"),l.consume(x),p}function p(x){return g(x)?(l.exit("data"),c(x)):(l.consume(x),p)}function g(x){if(x===null)return!0;const b=u[x];let C=-1;if(b)for(;++C<b.length;){const R=b[C];if(!R.previous||R.previous.call(o,o.previous))return!0}return!1}}}function createResolver(t){return a;function a(l,o){let u=-1,c;for(;++u<=l.length;)c===void 0?l[u]&&l[u][1].type==="data"&&(c=u,u++):(!l[u]||l[u][1].type!=="data")&&(u!==c+2&&(l[c][1].end=l[u-1][1].end,l.splice(c+2,u-c-2),u=c+2),c=void 0);return t?t(l,o):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 o=t[l-1][1],u=a.sliceStream(o);let c=u.length,d=-1,h=0,p;for(;c--;){const g=u[c];if(typeof g=="string"){for(d=g.length;g.charCodeAt(d-1)===32;)h++,d--;if(d)break;d=-1}else if(g===-2)p=!0,h++;else if(g!==-1){c++;break}}if(a._contentTypeTextTrailing&&l===t.length&&(h=0),h){const g={type:l===t.length||p||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?d:o.start._bufferIndex+d,_index:o.start._index+c,line:o.end.line,column:o.end.column-h,offset:o.end.offset-h},end:{...o.end}};o.end={...g.start},o.start.offset===o.end.offset?Object.assign(o,g):(t.splice(l,0,["enter",g,a],["exit",g,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 o={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const u={},c=[];let d=[],h=[];const p={attempt:ge(ie),check:ge(H),consume:$,enter:V,exit:se,interrupt:ge(H,{interrupt:!0})},g={code:null,containerState:{},defineSkip:B,events:[],now:_,parser:t,previous:null,sliceSerialize:C,sliceStream:R,write:b};let x=a.tokenize.call(g,p);return a.resolveAll&&c.push(a),g;function b(Ee){return d=push(d,Ee),L(),d[d.length-1]!==null?[]:(W(a,0),g.events=resolveAll(c,g.events,g),g.events)}function C(Ee,ae){return serializeChunks(R(Ee),ae)}function R(Ee){return sliceChunks(d,Ee)}function _(){const{_bufferIndex:Ee,_index:ae,line:Ce,column:ye,offset:ee}=o;return{_bufferIndex:Ee,_index:ae,line:Ce,column:ye,offset:ee}}function B(Ee){u[Ee.line]=Ee.column,K()}function L(){let Ee;for(;o._index<d.length;){const ae=d[o._index];if(typeof ae=="string")for(Ee=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===Ee&&o._bufferIndex<ae.length;)D(ae.charCodeAt(o._bufferIndex));else D(ae)}}function D(Ee){x=x(Ee)}function $(Ee){markdownLineEnding(Ee)?(o.line++,o.column=1,o.offset+=Ee===-3?2:1,K()):Ee!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===d[o._index].length&&(o._bufferIndex=-1,o._index++)),g.previous=Ee}function V(Ee,ae){const Ce=ae||{};return Ce.type=Ee,Ce.start=_(),g.events.push(["enter",Ce,g]),h.push(Ce),Ce}function se(Ee){const ae=h.pop();return ae.end=_(),g.events.push(["exit",ae,g]),ae}function ie(Ee,ae){W(Ee,ae.from)}function H(Ee,ae){ae.restore()}function ge(Ee,ae){return Ce;function Ce(ye,ee,P){let he,fe,_e,O;return Array.isArray(ye)?oe(ye):"tokenize"in ye?oe([ye]):q(ye);function q(Se){return Oe;function Oe(qe){const je=qe!==null&&Se[qe],nt=qe!==null&&Se.null,Qe=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(nt)?nt:nt?[nt]:[]];return oe(Qe)(qe)}}function oe(Se){return he=Se,fe=0,Se.length===0?P:N(Se[fe])}function N(Se){return Oe;function Oe(qe){return O=ve(),_e=Se,Se.partial||(g.currentConstruct=Se),Se.name&&g.parser.constructs.disable.null.includes(Se.name)?xe():Se.tokenize.call(ae?Object.assign(Object.create(g),ae):g,p,be,xe)(qe)}}function be(Se){return Ee(_e,O),ee}function xe(Se){return O.restore(),++fe<he.length?N(he[fe]):P}}}function W(Ee,ae){Ee.resolveAll&&!c.includes(Ee)&&c.push(Ee),Ee.resolve&&splice(g.events,ae,g.events.length-ae,Ee.resolve(g.events.slice(ae),g)),Ee.resolveTo&&(g.events=Ee.resolveTo(g.events,g))}function ve(){const Ee=_(),ae=g.previous,Ce=g.currentConstruct,ye=g.events.length,ee=Array.from(h);return{from:ye,restore:P};function P(){o=Ee,g.previous=ae,g.currentConstruct=Ce,g.events.length=ye,h=ee,K()}}function K(){o.line in u&&o.column<2&&(o.column=u[o.line],o.offset+=u[o.line]-1)}}function sliceChunks(t,a){const l=a.start._index,o=a.start._bufferIndex,u=a.end._index,c=a.end._bufferIndex;let d;if(l===u)d=[t[l].slice(o,c)];else{if(d=t.slice(l,u),o>-1){const h=d[0];typeof h=="string"?d[0]=h.slice(o):d.shift()}c>0&&d.push(t[u].slice(0,c))}return d}function serializeChunks(t,a){let l=-1;const o=[];let u;for(;++l<t.length;){const c=t[l];let d;if(typeof c=="string")d=c;else switch(c){case-5:{d="\r";break}case-4:{d=`
|
|
196
196
|
`;break}case-3:{d=`\r
|
|
197
|
-
`;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&u)continue;d=" ";break}default:d=String.fromCharCode(c)}u=c===-2,o.push(d)}return o.join("")}function parse$1(t){const o={constructs:combineExtensions([defaultConstructs,...(t||{}).extensions||[]]),content:u(content$1),defined:[],document:u(document$2),flow:u(flow$1),lazy:{},string:u(string$1),text:u(text$4)};return o;function u(c){return d;function d(g){return createTokenizer(o,c,g)}}}function postprocess(t){for(;!subtokenize(t););return t}const search=/[\0\t\n\r]/g;function preprocess(){let t=1,a="",l=!0,o;return u;function u(c,d,g){const p=[];let m,x,b,C,R;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(d||void 0).decode(c)),b=0,a="",l&&(c.charCodeAt(0)===65279&&b++,l=void 0);b<c.length;){if(search.lastIndex=b,m=search.exec(c),C=m&&m.index!==void 0?m.index:c.length,R=c.charCodeAt(C),!m){a=c.slice(b);break}if(R===10&&b===C&&o)p.push(-3),o=void 0;else switch(o&&(p.push(-5),o=void 0),b<C&&(p.push(c.slice(b,C)),t+=C-b),R){case 0:{p.push(65533),t++;break}case 9:{for(x=Math.ceil(t/4)*4,p.push(-2);t++<x;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:o=!0,t=1}b=C+1}return g&&(o&&p.push(-5),a&&p.push(a),p.push(null)),p}}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 u=l.charCodeAt(1),c=u===120||u===88;return decodeNumericCharacterReference(l.slice(c?2:1),c?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:c(Pt),autolinkProtocol:ve,autolinkEmail:ve,atxHeading:c(At),blockQuote:c(nt),characterEscape:ve,characterReference:ve,codeFenced:c(Qe),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:c(Qe,d),codeText:c(at,d),codeTextData:ve,data:ve,codeFlowValue:ve,definition:c(kt),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:c(ut),hardBreakEscape:c(mt),hardBreakTrailing:c(mt),htmlFlow:c(Tt,d),htmlFlowData:ve,htmlText:c(Tt,d),htmlTextData:ve,image:c(wt),label:d,link:c(Pt),listItem:c(Ht),listItemValue:C,listOrdered:c(Ct,b),listUnordered:c(Ct),paragraph:c(ln),reference:N,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:c(At),strong:c(on),thematicBreak:c(k)},exit:{atxHeading:p(),atxHeadingSequence:te,autolink:p(),autolinkEmail:je,autolinkProtocol:qe,blockQuote:p(),characterEscapeValue:K,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:Se,characterReference:Oe,codeFenced:p(L),codeFencedFence:B,codeFencedFenceInfo:R,codeFencedFenceMeta:_,codeFlowValue:K,codeIndented:p(D),codeText:p(ee),codeTextData:K,data:K,definition:p(),definitionDestinationString:se,definitionLabelString:H,definitionTitleString:V,emphasis:p(),hardBreakEscape:p(ae),hardBreakTrailing:p(ae),htmlFlow:p(Ce),htmlFlowData:K,htmlText:p(ye),htmlTextData:K,image:p(he),label:_e,labelText:fe,lineEnding:Ee,link:p(P),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:be,resourceDestinationString:O,resourceTitleString:q,resource:oe,setextHeading:p(W),setextHeadingLineSequence:ge,setextHeadingText:Y,strong:p(),thematicBreak:p()}};configure(a,(t||{}).mdastExtensions||[]);const l={};return o;function o(M){let Z={type:"root",children:[]};const le={stack:[Z],tokenStack:[],config:a,enter:g,exit:m,buffer:d,resume:x,data:l},ne=[];let E=-1;for(;++E<M.length;)if(M[E][1].type==="listOrdered"||M[E][1].type==="listUnordered")if(M[E][0]==="enter")ne.push(E);else{const v=ne.pop();E=u(M,v,E)}for(E=-1;++E<M.length;){const v=a[M[E][0]];own$2.call(v,M[E][1].type)&&v[M[E][1].type].call(Object.assign({sliceSerialize:M[E][2].sliceSerialize},le),M[E][1])}if(le.tokenStack.length>0){const v=le.tokenStack[le.tokenStack.length-1];(v[1]||defaultOnError).call(le,void 0,v[0])}for(Z.position={start:point(M.length>0?M[0][1].start:{line:1,column:1,offset:0}),end:point(M.length>0?M[M.length-2][1].end:{line:1,column:1,offset:0})},E=-1;++E<a.transforms.length;)Z=a.transforms[E](Z)||Z;return Z}function u(M,Z,le){let ne=Z-1,E=-1,v=!1,S,A,j,I;for(;++ne<=le;){const z=M[ne];switch(z[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{z[0]==="enter"?E++:E--,I=void 0;break}case"lineEndingBlank":{z[0]==="enter"&&(S&&!I&&!E&&!j&&(j=ne),I=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:I=void 0}if(!E&&z[0]==="enter"&&z[1].type==="listItemPrefix"||E===-1&&z[0]==="exit"&&(z[1].type==="listUnordered"||z[1].type==="listOrdered")){if(S){let de=ne;for(A=void 0;de--;){const ue=M[de];if(ue[1].type==="lineEnding"||ue[1].type==="lineEndingBlank"){if(ue[0]==="exit")continue;A&&(M[A][1].type="lineEndingBlank",v=!0),ue[1].type="lineEnding",A=de}else if(!(ue[1].type==="linePrefix"||ue[1].type==="blockQuotePrefix"||ue[1].type==="blockQuotePrefixWhitespace"||ue[1].type==="blockQuoteMarker"||ue[1].type==="listItemIndent"))break}j&&(!A||j<A)&&(S._spread=!0),S.end=Object.assign({},A?M[A][1].start:z[1].end),M.splice(A||ne,0,["exit",S,z[2]]),ne++,le++}if(z[1].type==="listItemPrefix"){const de={type:"listItem",_spread:!1,start:Object.assign({},z[1].start),end:void 0};S=de,M.splice(ne,0,["enter",de,z[2]]),ne++,le++,j=void 0,I=!0}}}return M[Z][1]._spread=v,le}function c(M,Z){return le;function le(ne){g.call(this,M(ne),ne),Z&&Z.call(this,ne)}}function d(){this.stack.push({type:"fragment",children:[]})}function g(M,Z,le){this.stack[this.stack.length-1].children.push(M),this.stack.push(M),this.tokenStack.push([Z,le||void 0]),M.position={start:point(Z.start),end:void 0}}function p(M){return Z;function Z(le){M&&M.call(this,le),m.call(this,le)}}function m(M,Z){const le=this.stack.pop(),ne=this.tokenStack.pop();if(ne)ne[0].type!==M.type&&(Z?Z.call(this,M,ne[0]):(ne[1]||defaultOnError).call(this,M,ne[0]));else throw new Error("Cannot close `"+M.type+"` ("+stringifyPosition({start:M.start,end:M.end})+"): it’s not open");le.position.end=point(M.end)}function x(){return toString$1(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function C(M){if(this.data.expectingFirstListItemValue){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize(M),10),this.data.expectingFirstListItemValue=void 0}}function R(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=M}function _(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=M}function B(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.value=M.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function D(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.value=M.replace(/(\r?\n|\r)$/g,"")}function H(M){const Z=this.resume(),le=this.stack[this.stack.length-1];le.label=Z,le.identifier=normalizeIdentifier(this.sliceSerialize(M)).toLowerCase()}function V(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.title=M}function se(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.url=M}function te(M){const Z=this.stack[this.stack.length-1];if(!Z.depth){const le=this.sliceSerialize(M).length;Z.depth=le}}function Y(){this.data.setextHeadingSlurpLineEnding=!0}function ge(M){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize(M).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function ve(M){const le=this.stack[this.stack.length-1].children;let ne=le[le.length-1];(!ne||ne.type!=="text")&&(ne=Je(),ne.position={start:point(M.start),end:void 0},le.push(ne)),this.stack.push(ne)}function K(M){const Z=this.stack.pop();Z.value+=this.sliceSerialize(M),Z.position.end=point(M.end)}function Ee(M){const Z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const le=Z.children[Z.children.length-1];le.position.end=point(M.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(Z.type)&&(ve.call(this,M),K.call(this,M))}function ae(){this.data.atHardBreak=!0}function Ce(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.value=M}function ye(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.value=M}function ee(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.value=M}function P(){const M=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=Z,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function he(){const M=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=Z,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function fe(M){const Z=this.sliceSerialize(M),le=this.stack[this.stack.length-2];le.label=decodeString(Z),le.identifier=normalizeIdentifier(Z).toLowerCase()}function _e(){const M=this.stack[this.stack.length-1],Z=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){const ne=M.children;le.children=ne}else le.alt=Z}function O(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.url=M}function q(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.title=M}function oe(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function be(M){const Z=this.resume(),le=this.stack[this.stack.length-1];le.label=Z,le.identifier=normalizeIdentifier(this.sliceSerialize(M)).toLowerCase(),this.data.referenceType="full"}function xe(M){this.data.characterReferenceType=M.type}function Se(M){const Z=this.sliceSerialize(M),le=this.data.characterReferenceType;let ne;le?(ne=decodeNumericCharacterReference(Z,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ne=decodeNamedCharacterReference(Z);const E=this.stack[this.stack.length-1];E.value+=ne}function Oe(M){const Z=this.stack.pop();Z.position.end=point(M.end)}function qe(M){K.call(this,M);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize(M)}function je(M){K.call(this,M);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize(M)}function nt(){return{type:"blockquote",children:[]}}function Qe(){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 ut(){return{type:"emphasis",children:[]}}function At(){return{type:"heading",depth:0,children:[]}}function mt(){return{type:"break"}}function Tt(){return{type:"html",value:""}}function wt(){return{type:"image",title:null,url:"",alt:null}}function Pt(){return{type:"link",title:null,url:"",children:[]}}function Ct(M){return{type:"list",ordered:M.type==="listOrdered",start:null,spread:M._spread,children:[]}}function Ht(M){return{type:"listItem",spread:M._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 o=a[l];Array.isArray(o)?configure(t,o):extension(t,o)}}function extension(t,a){let l;for(l in a)if(own$2.call(a,l))switch(l){case"canContainEols":{const o=a[l];o&&t[l].push(...o);break}case"transforms":{const o=a[l];o&&t[l].push(...o);break}case"enter":case"exit":{const o=a[l];o&&Object.assign(t[l],o);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(o){return fromMarkdown(o,{...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:`
|
|
197
|
+
`;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&u)continue;d=" ";break}default:d=String.fromCharCode(c)}u=c===-2,o.push(d)}return o.join("")}function parse$1(t){const o={constructs:combineExtensions([defaultConstructs,...(t||{}).extensions||[]]),content:u(content$1),defined:[],document:u(document$2),flow:u(flow$1),lazy:{},string:u(string$1),text:u(text$4)};return o;function u(c){return d;function d(h){return createTokenizer(o,c,h)}}}function postprocess(t){for(;!subtokenize(t););return t}const search=/[\0\t\n\r]/g;function preprocess(){let t=1,a="",l=!0,o;return u;function u(c,d,h){const p=[];let g,x,b,C,R;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(d||void 0).decode(c)),b=0,a="",l&&(c.charCodeAt(0)===65279&&b++,l=void 0);b<c.length;){if(search.lastIndex=b,g=search.exec(c),C=g&&g.index!==void 0?g.index:c.length,R=c.charCodeAt(C),!g){a=c.slice(b);break}if(R===10&&b===C&&o)p.push(-3),o=void 0;else switch(o&&(p.push(-5),o=void 0),b<C&&(p.push(c.slice(b,C)),t+=C-b),R){case 0:{p.push(65533),t++;break}case 9:{for(x=Math.ceil(t/4)*4,p.push(-2);t++<x;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:o=!0,t=1}b=C+1}return h&&(o&&p.push(-5),a&&p.push(a),p.push(null)),p}}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 u=l.charCodeAt(1),c=u===120||u===88;return decodeNumericCharacterReference(l.slice(c?2:1),c?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:c(Pt),autolinkProtocol:ve,autolinkEmail:ve,atxHeading:c(At),blockQuote:c(nt),characterEscape:ve,characterReference:ve,codeFenced:c(Qe),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:c(Qe,d),codeText:c(at,d),codeTextData:ve,data:ve,codeFlowValue:ve,definition:c(kt),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:c(ut),hardBreakEscape:c(mt),hardBreakTrailing:c(mt),htmlFlow:c(Tt,d),htmlFlowData:ve,htmlText:c(Tt,d),htmlTextData:ve,image:c(wt),label:d,link:c(Pt),listItem:c(Ht),listItemValue:C,listOrdered:c(Ct,b),listUnordered:c(Ct),paragraph:c(ln),reference:N,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:c(At),strong:c(on),thematicBreak:c(k)},exit:{atxHeading:p(),atxHeadingSequence:ie,autolink:p(),autolinkEmail:je,autolinkProtocol:qe,blockQuote:p(),characterEscapeValue:K,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:Se,characterReference:Oe,codeFenced:p(L),codeFencedFence:B,codeFencedFenceInfo:R,codeFencedFenceMeta:_,codeFlowValue:K,codeIndented:p(D),codeText:p(ee),codeTextData:K,data:K,definition:p(),definitionDestinationString:se,definitionLabelString:$,definitionTitleString:V,emphasis:p(),hardBreakEscape:p(ae),hardBreakTrailing:p(ae),htmlFlow:p(Ce),htmlFlowData:K,htmlText:p(ye),htmlTextData:K,image:p(he),label:_e,labelText:fe,lineEnding:Ee,link:p(P),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:be,resourceDestinationString:O,resourceTitleString:q,resource:oe,setextHeading:p(W),setextHeadingLineSequence:ge,setextHeadingText:H,strong:p(),thematicBreak:p()}};configure(a,(t||{}).mdastExtensions||[]);const l={};return o;function o(M){let Z={type:"root",children:[]};const le={stack:[Z],tokenStack:[],config:a,enter:h,exit:g,buffer:d,resume:x,data:l},te=[];let E=-1;for(;++E<M.length;)if(M[E][1].type==="listOrdered"||M[E][1].type==="listUnordered")if(M[E][0]==="enter")te.push(E);else{const v=te.pop();E=u(M,v,E)}for(E=-1;++E<M.length;){const v=a[M[E][0]];own$2.call(v,M[E][1].type)&&v[M[E][1].type].call(Object.assign({sliceSerialize:M[E][2].sliceSerialize},le),M[E][1])}if(le.tokenStack.length>0){const v=le.tokenStack[le.tokenStack.length-1];(v[1]||defaultOnError).call(le,void 0,v[0])}for(Z.position={start:point(M.length>0?M[0][1].start:{line:1,column:1,offset:0}),end:point(M.length>0?M[M.length-2][1].end:{line:1,column:1,offset:0})},E=-1;++E<a.transforms.length;)Z=a.transforms[E](Z)||Z;return Z}function u(M,Z,le){let te=Z-1,E=-1,v=!1,S,A,j,I;for(;++te<=le;){const z=M[te];switch(z[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{z[0]==="enter"?E++:E--,I=void 0;break}case"lineEndingBlank":{z[0]==="enter"&&(S&&!I&&!E&&!j&&(j=te),I=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:I=void 0}if(!E&&z[0]==="enter"&&z[1].type==="listItemPrefix"||E===-1&&z[0]==="exit"&&(z[1].type==="listUnordered"||z[1].type==="listOrdered")){if(S){let de=te;for(A=void 0;de--;){const ue=M[de];if(ue[1].type==="lineEnding"||ue[1].type==="lineEndingBlank"){if(ue[0]==="exit")continue;A&&(M[A][1].type="lineEndingBlank",v=!0),ue[1].type="lineEnding",A=de}else if(!(ue[1].type==="linePrefix"||ue[1].type==="blockQuotePrefix"||ue[1].type==="blockQuotePrefixWhitespace"||ue[1].type==="blockQuoteMarker"||ue[1].type==="listItemIndent"))break}j&&(!A||j<A)&&(S._spread=!0),S.end=Object.assign({},A?M[A][1].start:z[1].end),M.splice(A||te,0,["exit",S,z[2]]),te++,le++}if(z[1].type==="listItemPrefix"){const de={type:"listItem",_spread:!1,start:Object.assign({},z[1].start),end:void 0};S=de,M.splice(te,0,["enter",de,z[2]]),te++,le++,j=void 0,I=!0}}}return M[Z][1]._spread=v,le}function c(M,Z){return le;function le(te){h.call(this,M(te),te),Z&&Z.call(this,te)}}function d(){this.stack.push({type:"fragment",children:[]})}function h(M,Z,le){this.stack[this.stack.length-1].children.push(M),this.stack.push(M),this.tokenStack.push([Z,le||void 0]),M.position={start:point(Z.start),end:void 0}}function p(M){return Z;function Z(le){M&&M.call(this,le),g.call(this,le)}}function g(M,Z){const le=this.stack.pop(),te=this.tokenStack.pop();if(te)te[0].type!==M.type&&(Z?Z.call(this,M,te[0]):(te[1]||defaultOnError).call(this,M,te[0]));else throw new Error("Cannot close `"+M.type+"` ("+stringifyPosition({start:M.start,end:M.end})+"): it’s not open");le.position.end=point(M.end)}function x(){return toString$1(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function C(M){if(this.data.expectingFirstListItemValue){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize(M),10),this.data.expectingFirstListItemValue=void 0}}function R(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=M}function _(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=M}function B(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.value=M.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function D(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.value=M.replace(/(\r?\n|\r)$/g,"")}function $(M){const Z=this.resume(),le=this.stack[this.stack.length-1];le.label=Z,le.identifier=normalizeIdentifier(this.sliceSerialize(M)).toLowerCase()}function V(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.title=M}function se(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.url=M}function ie(M){const Z=this.stack[this.stack.length-1];if(!Z.depth){const le=this.sliceSerialize(M).length;Z.depth=le}}function H(){this.data.setextHeadingSlurpLineEnding=!0}function ge(M){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize(M).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function ve(M){const le=this.stack[this.stack.length-1].children;let te=le[le.length-1];(!te||te.type!=="text")&&(te=Je(),te.position={start:point(M.start),end:void 0},le.push(te)),this.stack.push(te)}function K(M){const Z=this.stack.pop();Z.value+=this.sliceSerialize(M),Z.position.end=point(M.end)}function Ee(M){const Z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const le=Z.children[Z.children.length-1];le.position.end=point(M.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(Z.type)&&(ve.call(this,M),K.call(this,M))}function ae(){this.data.atHardBreak=!0}function Ce(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.value=M}function ye(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.value=M}function ee(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.value=M}function P(){const M=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=Z,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function he(){const M=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=Z,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function fe(M){const Z=this.sliceSerialize(M),le=this.stack[this.stack.length-2];le.label=decodeString(Z),le.identifier=normalizeIdentifier(Z).toLowerCase()}function _e(){const M=this.stack[this.stack.length-1],Z=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){const te=M.children;le.children=te}else le.alt=Z}function O(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.url=M}function q(){const M=this.resume(),Z=this.stack[this.stack.length-1];Z.title=M}function oe(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function be(M){const Z=this.resume(),le=this.stack[this.stack.length-1];le.label=Z,le.identifier=normalizeIdentifier(this.sliceSerialize(M)).toLowerCase(),this.data.referenceType="full"}function xe(M){this.data.characterReferenceType=M.type}function Se(M){const Z=this.sliceSerialize(M),le=this.data.characterReferenceType;let te;le?(te=decodeNumericCharacterReference(Z,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):te=decodeNamedCharacterReference(Z);const E=this.stack[this.stack.length-1];E.value+=te}function Oe(M){const Z=this.stack.pop();Z.position.end=point(M.end)}function qe(M){K.call(this,M);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize(M)}function je(M){K.call(this,M);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize(M)}function nt(){return{type:"blockquote",children:[]}}function Qe(){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 ut(){return{type:"emphasis",children:[]}}function At(){return{type:"heading",depth:0,children:[]}}function mt(){return{type:"break"}}function Tt(){return{type:"html",value:""}}function wt(){return{type:"image",title:null,url:"",alt:null}}function Pt(){return{type:"link",title:null,url:"",children:[]}}function Ct(M){return{type:"list",ordered:M.type==="listOrdered",start:null,spread:M._spread,children:[]}}function Ht(M){return{type:"listItem",spread:M._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 o=a[l];Array.isArray(o)?configure(t,o):extension(t,o)}}function extension(t,a){let l;for(l in a)if(own$2.call(a,l))switch(l){case"canContainEols":{const o=a[l];o&&t[l].push(...o);break}case"transforms":{const o=a[l];o&&t[l].push(...o);break}case"enter":case"exit":{const o=a[l];o&&Object.assign(t[l],o);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(o){return fromMarkdown(o,{...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:`
|
|
198
198
|
`}]}function code$3(t,a){const l=a.value?a.value+`
|
|
199
|
-
`:"",o={},u=a.lang?a.lang.split(/\s+/):[];u.length>0&&(o.className=["language-"+u[0]]);let c={type:"element",tagName:"code",properties:o,children:[{type:"text",value:l}]};return a.meta&&(c.data={meta:a.meta}),t.patch(a,c),c=t.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},t.patch(a,c),c}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-",o=String(a.identifier).toUpperCase(),u=normalizeUri(o.toLowerCase()),c=t.footnoteOrder.indexOf(o);let d,
|
|
199
|
+
`:"",o={},u=a.lang?a.lang.split(/\s+/):[];u.length>0&&(o.className=["language-"+u[0]]);let c={type:"element",tagName:"code",properties:o,children:[{type:"text",value:l}]};return a.meta&&(c.data={meta:a.meta}),t.patch(a,c),c=t.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},t.patch(a,c),c}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-",o=String(a.identifier).toUpperCase(),u=normalizeUri(o.toLowerCase()),c=t.footnoteOrder.indexOf(o);let d,h=t.footnoteCounts.get(o);h===void 0?(h=0,t.footnoteOrder.push(o),d=t.footnoteOrder.length):d=c+1,h+=1,t.footnoteCounts.set(o,h);const p={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+u,id:l+"fnref-"+u+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(d)}]};t.patch(a,p);const g={type:"element",tagName:"sup",properties:{},children:[p]};return t.patch(a,g),t.applyData(a,g)}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 o="]";if(l==="collapsed"?o+="[]":l==="full"&&(o+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+o}];const u=t.all(a),c=u[0];c&&c.type==="text"?c.value="["+c.value:u.unshift({type:"text",value:"["});const d=u[u.length-1];return d&&d.type==="text"?d.value+=o:u.push({type:"text",value:o}),u}function imageReference$1(t,a){const l=String(a.identifier).toUpperCase(),o=t.definitionById.get(l);if(!o)return revert(t,a);const u={src:normalizeUri(o.url||""),alt:a.alt};o.title!==null&&o.title!==void 0&&(u.title=o.title);const c={type:"element",tagName:"img",properties:u,children:[]};return t.patch(a,c),t.applyData(a,c)}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 o={type:"element",tagName:"img",properties:l,children:[]};return t.patch(a,o),t.applyData(a,o)}function inlineCode$1(t,a){const l={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};t.patch(a,l);const o={type:"element",tagName:"code",properties:{},children:[l]};return t.patch(a,o),t.applyData(a,o)}function linkReference$1(t,a){const l=String(a.identifier).toUpperCase(),o=t.definitionById.get(l);if(!o)return revert(t,a);const u={href:normalizeUri(o.url||"")};o.title!==null&&o.title!==void 0&&(u.title=o.title);const c={type:"element",tagName:"a",properties:u,children:t.all(a)};return t.patch(a,c),t.applyData(a,c)}function link$1(t,a){const l={href:normalizeUri(a.url)};a.title!==null&&a.title!==void 0&&(l.title=a.title);const o={type:"element",tagName:"a",properties:l,children:t.all(a)};return t.patch(a,o),t.applyData(a,o)}function listItem$1(t,a,l){const o=t.all(a),u=l?listLoose(l):listItemLoose(a),c={},d=[];if(typeof a.checked=="boolean"){const x=o[0];let b;x&&x.type==="element"&&x.tagName==="p"?b=x:(b={type:"element",tagName:"p",properties:{},children:[]},o.unshift(b)),b.children.length>0&&b.children.unshift({type:"text",value:" "}),b.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let h=-1;for(;++h<o.length;){const x=o[h];(u||h!==0||x.type!=="element"||x.tagName!=="p")&&d.push({type:"text",value:`
|
|
200
200
|
`}),x.type==="element"&&x.tagName==="p"&&!u?d.push(...x.children):d.push(x)}const p=o[o.length-1];p&&(u||p.type!=="element"||p.tagName!=="p")&&d.push({type:"text",value:`
|
|
201
|
-
`});const
|
|
202
|
-
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(
|
|
203
|
-
`}]}}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(o);function o(...u){let c=-1;for(;++c<a.length;)if(a[c].apply(this,u))return!0;return!1}}function propertiesFactory(t){const a=t;return castFactory(l);function l(o){const u=o;let c;for(c in t)if(u[c]!==a[c])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,o,u){return!!(looksLikeANode(l)&&t.call(this,l,typeof o=="number"?o:void 0,u||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,o){let u;typeof a=="function"&&typeof l!="function"?(o=l,l=a):u=a;const c=convert(u),d=o?-1:1;
|
|
201
|
+
`});const g={type:"element",tagName:"li",properties:c,children:d};return t.patch(a,g),t.applyData(a,g)}function listLoose(t){let a=!1;if(t.type==="list"){a=t.spread||!1;const l=t.children;let o=-1;for(;!a&&++o<l.length;)a=listItemLoose(l[o])}return a}function listItemLoose(t){const a=t.spread;return a??t.children.length>1}function list$1(t,a){const l={},o=t.all(a);let u=-1;for(typeof a.start=="number"&&a.start!==1&&(l.start=a.start);++u<o.length;){const d=o[u];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 c={type:"element",tagName:a.ordered?"ol":"ul",properties:l,children:t.wrap(o,!0)};return t.patch(a,c),t.applyData(a,c)}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),o=l.shift(),u=[];if(o){const d={type:"element",tagName:"thead",properties:{},children:t.wrap([o],!0)};t.patch(a.children[0],d),u.push(d)}if(l.length>0){const d={type:"element",tagName:"tbody",properties:{},children:t.wrap(l,!0)},h=pointStart(a.children[1]),p=pointEnd(a.children[a.children.length-1]);h&&p&&(d.position={start:h,end:p}),u.push(d)}const c={type:"element",tagName:"table",properties:{},children:t.wrap(u,!0)};return t.patch(a,c),t.applyData(a,c)}function tableRow(t,a,l){const o=l?l.children:void 0,c=(o?o.indexOf(a):1)===0?"th":"td",d=l&&l.type==="table"?l.align:void 0,h=d?d.length:a.children.length;let p=-1;const g=[];for(;++p<h;){const b=a.children[p],C={},R=d?d[p]:void 0;R&&(C.align=R);let _={type:"element",tagName:c,properties:C,children:[]};b&&(_.children=t.all(b),t.patch(b,_),_=t.applyData(b,_)),g.push(_)}const x={type:"element",tagName:"tr",properties:{},children:t.wrap(g,!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 o=l.exec(a),u=0;const c=[];for(;o;)c.push(trimLine(a.slice(u,o.index),u>0,!0),o[0]),u=o.index+o[0].length,o=l.exec(a);return c.push(trimLine(a.slice(u),u>0,!1)),c.join("")}function trimLine(t,a,l){let o=0,u=t.length;if(a){let c=t.codePointAt(o);for(;c===tab||c===space;)o++,c=t.codePointAt(o)}if(l){let c=t.codePointAt(u-1);for(;c===tab||c===space;)u--,c=t.codePointAt(u-1)}return u>o?t.slice(o,u):""}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=(u,c)=>(t.set(c,u),u),o=u=>{if(t.has(u))return t.get(u);const[c,d]=a[u];switch(c){case PRIMITIVE:case VOID:return l(d,u);case ARRAY:{const h=l([],u);for(const p of d)h.push(o(p));return h}case OBJECT:{const h=l({},u);for(const[p,g]of d)h[o(p)]=o(g);return h}case DATE:return l(new Date(d),u);case REGEXP:{const{source:h,flags:p}=d;return l(new RegExp(h,p),u)}case MAP:{const h=l(new Map,u);for(const[p,g]of d)h.set(o(p),o(g));return h}case SET:{const h=l(new Set,u);for(const p of d)h.add(o(p));return h}case ERROR:{const{name:h,message:p}=d;return l(new env[h](p),u)}case BIGINT:return l(BigInt(d),u);case"BigInt":return l(Object(BigInt(d)),u);case"ArrayBuffer":return l(new Uint8Array(d).buffer,d);case"DataView":{const{buffer:h}=new Uint8Array(d);return l(new DataView(h),d)}}return l(new env[c](d),u)};return o},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,o)=>{const u=(d,h)=>{const p=o.push(d)-1;return l.set(h,p),p},c=d=>{if(l.has(d))return l.get(d);let[h,p]=typeOf(d);switch(h){case PRIMITIVE:{let x=d;switch(p){case"bigint":h=BIGINT,x=d.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+p);x=null;break;case"undefined":return u([VOID],d)}return u([h,x],d)}case ARRAY:{if(p){let C=d;return p==="DataView"?C=new Uint8Array(d.buffer):p==="ArrayBuffer"&&(C=new Uint8Array(d)),u([p,[...C]],d)}const x=[],b=u([h,x],d);for(const C of d)x.push(c(C));return b}case OBJECT:{if(p)switch(p){case"BigInt":return u([p,d.toString()],d);case"Boolean":case"Number":case"String":return u([p,d.valueOf()],d)}if(a&&"toJSON"in d)return c(d.toJSON());const x=[],b=u([h,x],d);for(const C of keys(d))(t||!shouldSkip(typeOf(d[C])))&&x.push([c(C),c(d[C])]);return b}case DATE:return u([h,d.toISOString()],d);case REGEXP:{const{source:x,flags:b}=d;return u([h,{source:x,flags:b}],d)}case MAP:{const x=[],b=u([h,x],d);for(const[C,R]of d)(t||!(shouldSkip(typeOf(C))||shouldSkip(typeOf(R))))&&x.push([c(C),c(R)]);return b}case SET:{const x=[],b=u([h,x],d);for(const C of d)(t||!shouldSkip(typeOf(C)))&&x.push(c(C));return b}}const{message:g}=d;return u([h,{name:p,message:g}],d)};return c},serialize$1=(t,{json:a,lossy:l}={})=>{const o=[];return serializer(!(a||l),!!a,new Map,o)(t),o},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,o=t.options.footnoteBackLabel||defaultFootnoteBackLabel,u=t.options.footnoteLabel||"Footnotes",c=t.options.footnoteLabelTagName||"h2",d=t.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let p=-1;for(;++p<t.footnoteOrder.length;){const g=t.footnoteById.get(t.footnoteOrder[p]);if(!g)continue;const x=t.all(g),b=String(g.identifier).toUpperCase(),C=normalizeUri(b.toLowerCase());let R=0;const _=[],B=t.footnoteCounts.get(b);for(;B!==void 0&&++R<=B;){_.length>0&&_.push({type:"text",value:" "});let $=typeof l=="string"?l:l(p,R);typeof $=="string"&&($={type:"text",value:$}),_.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+C+(R>1?"-"+R:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(p,R),className:["data-footnote-backref"]},children:Array.isArray($)?$:[$]})}const L=x[x.length-1];if(L&&L.type==="element"&&L.tagName==="p"){const $=L.children[L.children.length-1];$&&$.type==="text"?$.value+=" ":L.children.push({type:"text",value:" "}),L.children.push(..._)}else x.push(..._);const D={type:"element",tagName:"li",properties:{id:a+"fn-"+C},children:t.wrap(x,!0)};t.patch(g,D),h.push(D)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...structuredClone$1(d),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
|
|
202
|
+
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(h,!0)},{type:"text",value:`
|
|
203
|
+
`}]}}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(o);function o(...u){let c=-1;for(;++c<a.length;)if(a[c].apply(this,u))return!0;return!1}}function propertiesFactory(t){const a=t;return castFactory(l);function l(o){const u=o;let c;for(c in t)if(u[c]!==a[c])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,o,u){return!!(looksLikeANode(l)&&t.call(this,l,typeof o=="number"?o:void 0,u||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,o){let u;typeof a=="function"&&typeof l!="function"?(o=l,l=a):u=a;const c=convert(u),d=o?-1:1;h(t,void 0,[])();function h(p,g,x){const b=p&&typeof p=="object"?p:{};if(typeof b.type=="string"){const R=typeof b.tagName=="string"?b.tagName:typeof b.name=="string"?b.name:void 0;Object.defineProperty(C,"name",{value:"node ("+(p.type+(R?"<"+R+">":""))+")"})}return C;function C(){let R=empty,_,B,L;if((!a||c(p,g,x[x.length-1]||void 0))&&(R=toResult(l(p,x)),R[0]===EXIT))return R;if("children"in p&&p.children){const D=p;if(D.children&&R[0]!==SKIP)for(B=(o?D.children.length:-1)+d,L=x.concat(D);B>-1&&B<D.children.length;){const $=D.children[B];if(_=h($,B,L)(),_[0]===EXIT)return _;B=typeof _[1]=="number"?_[1]:B+d}}return R}}}function toResult(t){return Array.isArray(t)?t:typeof t=="number"?[CONTINUE,t]:t==null?empty:[t]}function visit(t,a,l,o){let u,c,d;typeof a=="function"&&typeof l!="function"?(c=void 0,d=a,u=l):(c=a,d=l,u=o),visitParents(t,c,h,u);function h(p,g){const x=g[g.length-1],b=x?x.children.indexOf(p):void 0;return d(p,b,x)}}const own$1={}.hasOwnProperty,emptyOptions$1={};function createState(t,a){const l=a||emptyOptions$1,o=new Map,u=new Map,c=new Map,d={...handlers,...l.handlers},h={all:g,applyData,definitionById:o,footnoteById:u,footnoteCounts:c,footnoteOrder:[],handlers:d,one:p,options:l,patch,wrap:wrap$1};return visit(t,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const b=x.type==="definition"?o:u,C=String(x.identifier).toUpperCase();b.has(C)||b.set(C,x)}}),h;function p(x,b){const C=x.type,R=h.handlers[C];if(own$1.call(h.handlers,C)&&R)return R(h,x,b);if(h.options.passThrough&&h.options.passThrough.includes(C)){if("children"in x){const{children:B,...L}=x,D=structuredClone$1(L);return D.children=h.all(x),D}return structuredClone$1(x)}return(h.options.unknownHandler||defaultUnknownHandler)(h,x,b)}function g(x){const b=[];if("children"in x){const C=x.children;let R=-1;for(;++R<C.length;){const _=h.one(C[R],x);if(_){if(R&&C[R-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=trimMarkdownSpaceStart(_.value)),!Array.isArray(_)&&_.type==="element")){const B=_.children[0];B&&B.type==="text"&&(B.value=trimMarkdownSpaceStart(B.value))}Array.isArray(_)?b.push(..._):b.push(_)}}}return b}}function patch(t,a){t.position&&(a.position=position$1(t))}function applyData(t,a){let l=a;if(t&&t.data){const o=t.data.hName,u=t.data.hChildren,c=t.data.hProperties;if(typeof o=="string")if(l.type==="element")l.tagName=o;else{const d="children"in l?l.children:[l];l={type:"element",tagName:o,properties:{},children:d}}l.type==="element"&&c&&Object.assign(l.properties,structuredClone$1(c)),"children"in l&&l.children&&u!==null&&u!==void 0&&(l.children=u)}return l}function defaultUnknownHandler(t,a){const l=a.data||{},o="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,o),t.applyData(a,o)}function wrap$1(t,a){const l=[];let o=-1;for(a&&l.push({type:"text",value:`
|
|
204
204
|
`});++o<t.length;)o&&l.push({type:"text",value:`
|
|
205
205
|
`}),l.push(t[o]);return a&&t.length>0&&l.push({type:"text",value:`
|
|
206
206
|
`}),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),o=l.one(t,void 0),u=footer(l),c=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return u&&c.children.push({type:"text",value:`
|
|
207
|
-
`},u),c}function remarkRehype(t,a){return t&&"run"in t?async function(l,o){const u=toHast(l,{file:o,...a});await t.run(u,o)}:function(l,o){return toHast(l,{file:o,...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,o=Object.getOwnPropertyDescriptor,u=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},c=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var x=t.call(m,"constructor"),b=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!b)return!1;var C;for(C in m);return typeof C>"u"||t.call(m,C)},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(o)return o(m,x).value}else return;return m[x]};return extend$1=function p(){var m,x,b,C,R,_,B=arguments[0],L=1,D=arguments.length,H=!1;for(typeof B=="boolean"&&(H=B,B=arguments[1]||{},L=2),(B==null||typeof B!="object"&&typeof B!="function")&&(B={});L<D;++L)if(m=arguments[L],m!=null)for(x in m)b=g(B,x),C=g(m,x),B!==C&&(H&&C&&(c(C)||(R=u(C)))?(R?(R=!1,_=b&&u(b)?b:[]):_=b&&c(b)?b:{},d(B,{name:x,newValue:p(H,_,C)})):typeof C<"u"&&d(B,{name:x,newValue:C}));return B},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:o};return a;function l(...u){let c=-1;const d=u.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);g(null,...u);function g(p,...m){const x=t[++c];let b=-1;if(p){d(p);return}for(;++b<u.length;)(m[b]===null||m[b]===void 0)&&(m[b]=u[b]);u=m,x?wrap(x,g)(...m):d(null,...m)}}function o(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return t.push(u),a}}function wrap(t,a){let l;return o;function o(...d){const g=t.length>d.length;let p;g&&d.push(u);try{p=t.apply(this,d)}catch(m){const x=m;if(g&&l)throw x;return u(x)}g||(p&&p.then&&typeof p.then=="function"?p.then(c,u):p instanceof Error?u(p):c(p))}function u(d,...g){l||(l=!0,a(d,...g))}function c(d){u(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,o=-1,u=t.length,c;if(a===void 0||a.length===0||a.length>t.length){for(;u--;)if(t.codePointAt(u)===47){if(c){l=u+1;break}}else o<0&&(c=!0,o=u+1);return o<0?"":t.slice(l,o)}if(a===t)return"";let d=-1,g=a.length-1;for(;u--;)if(t.codePointAt(u)===47){if(c){l=u+1;break}}else d<0&&(c=!0,d=u+1),g>-1&&(t.codePointAt(u)===a.codePointAt(g--)?g<0&&(o=u):(g=-1,o=d));return l===o?o=d:o<0&&(o=t.length),t.slice(l,o)}function dirname(t){if(assertPath$1(t),t.length===0)return".";let a=-1,l=t.length,o;for(;--l;)if(t.codePointAt(l)===47){if(o){a=l;break}}else o||(o=!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,o=0,u=-1,c=0,d;for(;a--;){const g=t.codePointAt(a);if(g===47){if(d){o=a+1;break}continue}l<0&&(d=!0,l=a+1),g===46?u<0?u=a:c!==1&&(c=1):u>-1&&(c=-1)}return u<0||l<0||c===0||c===1&&u===l-1&&u===o+1?"":t.slice(u,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="",o=0,u=-1,c=0,d=-1,g,p;for(;++d<=t.length;){if(d<t.length)g=t.codePointAt(d);else{if(g===47)break;g=47}if(g===47){if(!(u===d-1||c===1))if(u!==d-1&&c===2){if(l.length<2||o!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(p=l.lastIndexOf("/"),p!==l.length-1){p<0?(l="",o=0):(l=l.slice(0,p),o=l.length-1-l.lastIndexOf("/")),u=d,c=0;continue}}else if(l.length>0){l="",o=0,u=d,c=0;continue}}a&&(l=l.length>0?l+"/..":"..",o=2)}else l.length>0?l+="/"+t.slice(u+1,d):l=t.slice(u+1,d),o=d-u-1;u=d,c=0}else g===46&&c>-1?c++:c=-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 o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const a=t.pathname;let l=-1;for(;++l<a.length;)if(a.codePointAt(l)===37&&a.codePointAt(l+1)===50){const o=a.codePointAt(l+2);if(o===70||o===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}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 o=-1;for(;++o<order.length;){const c=order[o];c in l&&l[c]!==void 0&&l[c]!==null&&(this[c]=c==="history"?[...l[c]]:l[c])}let u;for(u in l)order.includes(u)||(this[u]=l[u])}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,o){const u=this.message(a,l,o);throw u.fatal=!0,u}info(a,l,o){const u=this.message(a,l,o);return u.fatal=void 0,u}message(a,l,o){const u=new VFileMessage(a,l,o);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}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 o=this.constructor.prototype,u=o[t],c=function(){return u.apply(c,arguments)};return Object.setPrototypeOf(c,o),c}),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 o=this.attachers[l];a.use(...o)}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,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const u=l.call(a,...o);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const l=vfile(a),o=this.parser||this.Parser;return assertParser("parse",o),o(String(l),l)}process(a,l){const o=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),l?u(void 0,l):new Promise(u);function u(c,d){const g=vfile(a),p=o.parse(g);o.run(p,g,function(x,b,C){if(x||!b||!C)return m(x);const R=b,_=o.stringify(R,C);looksLikeAValue(_)?C.value=_:C.result=_,m(x,C)});function m(x,b){x||!b?d(x):c?c(b):l(void 0,b)}}}processSync(a){let l=!1,o;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(a,u),assertDone("processSync","process",l),o;function u(c,d){l=!0,bail(c),o=d}}run(a,l,o){assertNode(a),this.freeze();const u=this.transformers;return!o&&typeof l=="function"&&(o=l,l=void 0),o?c(void 0,o):new Promise(c);function c(d,g){const p=vfile(l);u.run(a,p,m);function m(x,b,C){const R=b||a;x?g(x):d?d(R):o(void 0,R,C)}}}runSync(a,l){let o=!1,u;return this.run(a,l,c),assertDone("runSync","run",o),u;function c(d,g){bail(d),u=g,o=!0}}stringify(a,l){this.freeze();const o=vfile(l),u=this.compiler||this.Compiler;return assertCompiler("stringify",u),assertNode(a),u(a,o)}use(a,...l){const o=this.attachers,u=this.namespace;if(assertUnfrozen("use",this.frozen),a!=null)if(typeof a=="function")p(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 c(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[x,...b]=m;p(x,b)}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&&(u.settings=extend(!0,u.settings,m.settings))}function g(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const b=m[x];c(b)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,x){let b=-1,C=-1;for(;++b<o.length;)if(o[b][0]===m){C=b;break}if(C===-1)o.push([m,...x]);else if(x.length>0){let[R,..._]=x;const B=o[C][1];isPlainObject(B)&&isPlainObject(R)&&(R=extend(!0,B,R)),o[C]=[m,R,..._]}}}}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,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions;return unified().use(remarkParse).use(l).use(remarkRehype,o).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,o=a.allowElement,u=a.components,c=a.disallowedElements,d=a.skipHtml,g=a.unwrapDisallowed,p=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:u,ignoreInvalidStyle:!0,jsx:jsxRuntimeExports.jsx,jsxs:jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function m(x,b,C){if(x.type==="raw"&&C&&typeof b=="number")return d?C.children.splice(b,1):C.children[b]={type:"text",value:x.value},b;if(x.type==="element"){let R;for(R in urlAttributes)if(Object.hasOwn(urlAttributes,R)&&Object.hasOwn(x.properties,R)){const _=x.properties[R],B=urlAttributes[R];(B===null||B.includes(x.tagName))&&(x.properties[R]=p(String(_||""),R,x))}}if(x.type==="element"){let R=l?!l.includes(x.tagName):c?c.includes(x.tagName):!1;if(!R&&o&&typeof b=="number"&&(R=!o(x,b,C)),R&&C&&typeof b=="number")return g&&x.children?C.children.splice(b,1,...x.children):C.children.splice(b,1),b}}}function defaultUrlTransform(t){const a=t.indexOf(":"),l=t.indexOf("?"),o=t.indexOf("#"),u=t.indexOf("/");return a===-1||u!==-1&&a>u||l!==-1&&a>l||o!==-1&&a>o||safeProtocol.test(t.slice(0,a))?t:""}reactExports.createContext(null);function parseLayoutDSL(t){const a=t.split(`
|
|
208
|
-
`).filter(o=>o.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,o=a.trim(),u=o.match(/^(\w+)(?:\(([^)]*)\))?:\s*(?:"([^"]*)"|\{\{\s*([^}]+)\s*\}\})?$/);if(!u){const p=o.match(/^(\w+)(?:\(([^)]*)\))?$/);if(p)return{indent:l,component:p[1],props:parseProps(p[2]||""),textContent:null};const
|
|
207
|
+
`},u),c}function remarkRehype(t,a){return t&&"run"in t?async function(l,o){const u=toHast(l,{file:o,...a});await t.run(u,o)}:function(l,o){return toHast(l,{file:o,...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,o=Object.getOwnPropertyDescriptor,u=function(g){return typeof Array.isArray=="function"?Array.isArray(g):a.call(g)==="[object Array]"},c=function(g){if(!g||a.call(g)!=="[object Object]")return!1;var x=t.call(g,"constructor"),b=g.constructor&&g.constructor.prototype&&t.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!x&&!b)return!1;var C;for(C in g);return typeof C>"u"||t.call(g,C)},d=function(g,x){l&&x.name==="__proto__"?l(g,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):g[x.name]=x.newValue},h=function(g,x){if(x==="__proto__")if(t.call(g,x)){if(o)return o(g,x).value}else return;return g[x]};return extend$1=function p(){var g,x,b,C,R,_,B=arguments[0],L=1,D=arguments.length,$=!1;for(typeof B=="boolean"&&($=B,B=arguments[1]||{},L=2),(B==null||typeof B!="object"&&typeof B!="function")&&(B={});L<D;++L)if(g=arguments[L],g!=null)for(x in g)b=h(B,x),C=h(g,x),B!==C&&($&&C&&(c(C)||(R=u(C)))?(R?(R=!1,_=b&&u(b)?b:[]):_=b&&c(b)?b:{},d(B,{name:x,newValue:p($,_,C)})):typeof C<"u"&&d(B,{name:x,newValue:C}));return B},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:o};return a;function l(...u){let c=-1;const d=u.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);h(null,...u);function h(p,...g){const x=t[++c];let b=-1;if(p){d(p);return}for(;++b<u.length;)(g[b]===null||g[b]===void 0)&&(g[b]=u[b]);u=g,x?wrap(x,h)(...g):d(null,...g)}}function o(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return t.push(u),a}}function wrap(t,a){let l;return o;function o(...d){const h=t.length>d.length;let p;h&&d.push(u);try{p=t.apply(this,d)}catch(g){const x=g;if(h&&l)throw x;return u(x)}h||(p&&p.then&&typeof p.then=="function"?p.then(c,u):p instanceof Error?u(p):c(p))}function u(d,...h){l||(l=!0,a(d,...h))}function c(d){u(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,o=-1,u=t.length,c;if(a===void 0||a.length===0||a.length>t.length){for(;u--;)if(t.codePointAt(u)===47){if(c){l=u+1;break}}else o<0&&(c=!0,o=u+1);return o<0?"":t.slice(l,o)}if(a===t)return"";let d=-1,h=a.length-1;for(;u--;)if(t.codePointAt(u)===47){if(c){l=u+1;break}}else d<0&&(c=!0,d=u+1),h>-1&&(t.codePointAt(u)===a.codePointAt(h--)?h<0&&(o=u):(h=-1,o=d));return l===o?o=d:o<0&&(o=t.length),t.slice(l,o)}function dirname(t){if(assertPath$1(t),t.length===0)return".";let a=-1,l=t.length,o;for(;--l;)if(t.codePointAt(l)===47){if(o){a=l;break}}else o||(o=!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,o=0,u=-1,c=0,d;for(;a--;){const h=t.codePointAt(a);if(h===47){if(d){o=a+1;break}continue}l<0&&(d=!0,l=a+1),h===46?u<0?u=a:c!==1&&(c=1):u>-1&&(c=-1)}return u<0||l<0||c===0||c===1&&u===l-1&&u===o+1?"":t.slice(u,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="",o=0,u=-1,c=0,d=-1,h,p;for(;++d<=t.length;){if(d<t.length)h=t.codePointAt(d);else{if(h===47)break;h=47}if(h===47){if(!(u===d-1||c===1))if(u!==d-1&&c===2){if(l.length<2||o!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(p=l.lastIndexOf("/"),p!==l.length-1){p<0?(l="",o=0):(l=l.slice(0,p),o=l.length-1-l.lastIndexOf("/")),u=d,c=0;continue}}else if(l.length>0){l="",o=0,u=d,c=0;continue}}a&&(l=l.length>0?l+"/..":"..",o=2)}else l.length>0?l+="/"+t.slice(u+1,d):l=t.slice(u+1,d),o=d-u-1;u=d,c=0}else h===46&&c>-1?c++:c=-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 o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const a=t.pathname;let l=-1;for(;++l<a.length;)if(a.codePointAt(l)===37&&a.codePointAt(l+1)===50){const o=a.codePointAt(l+2);if(o===70||o===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}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 o=-1;for(;++o<order.length;){const c=order[o];c in l&&l[c]!==void 0&&l[c]!==null&&(this[c]=c==="history"?[...l[c]]:l[c])}let u;for(u in l)order.includes(u)||(this[u]=l[u])}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,o){const u=this.message(a,l,o);throw u.fatal=!0,u}info(a,l,o){const u=this.message(a,l,o);return u.fatal=void 0,u}message(a,l,o){const u=new VFileMessage(a,l,o);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}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 o=this.constructor.prototype,u=o[t],c=function(){return u.apply(c,arguments)};return Object.setPrototypeOf(c,o),c}),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 o=this.attachers[l];a.use(...o)}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,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const u=l.call(a,...o);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const l=vfile(a),o=this.parser||this.Parser;return assertParser("parse",o),o(String(l),l)}process(a,l){const o=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),l?u(void 0,l):new Promise(u);function u(c,d){const h=vfile(a),p=o.parse(h);o.run(p,h,function(x,b,C){if(x||!b||!C)return g(x);const R=b,_=o.stringify(R,C);looksLikeAValue(_)?C.value=_:C.result=_,g(x,C)});function g(x,b){x||!b?d(x):c?c(b):l(void 0,b)}}}processSync(a){let l=!1,o;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(a,u),assertDone("processSync","process",l),o;function u(c,d){l=!0,bail(c),o=d}}run(a,l,o){assertNode(a),this.freeze();const u=this.transformers;return!o&&typeof l=="function"&&(o=l,l=void 0),o?c(void 0,o):new Promise(c);function c(d,h){const p=vfile(l);u.run(a,p,g);function g(x,b,C){const R=b||a;x?h(x):d?d(R):o(void 0,R,C)}}}runSync(a,l){let o=!1,u;return this.run(a,l,c),assertDone("runSync","run",o),u;function c(d,h){bail(d),u=h,o=!0}}stringify(a,l){this.freeze();const o=vfile(l),u=this.compiler||this.Compiler;return assertCompiler("stringify",u),assertNode(a),u(a,o)}use(a,...l){const o=this.attachers,u=this.namespace;if(assertUnfrozen("use",this.frozen),a!=null)if(typeof a=="function")p(a,l);else if(typeof a=="object")Array.isArray(a)?h(a):d(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(g){if(typeof g=="function")p(g,[]);else if(typeof g=="object")if(Array.isArray(g)){const[x,...b]=g;p(x,b)}else d(g);else throw new TypeError("Expected usable value, not `"+g+"`")}function d(g){if(!("plugins"in g)&&!("settings"in g))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");h(g.plugins),g.settings&&(u.settings=extend(!0,u.settings,g.settings))}function h(g){let x=-1;if(g!=null)if(Array.isArray(g))for(;++x<g.length;){const b=g[x];c(b)}else throw new TypeError("Expected a list of plugins, not `"+g+"`")}function p(g,x){let b=-1,C=-1;for(;++b<o.length;)if(o[b][0]===g){C=b;break}if(C===-1)o.push([g,...x]);else if(x.length>0){let[R,..._]=x;const B=o[C][1];isPlainObject(B)&&isPlainObject(R)&&(R=extend(!0,B,R)),o[C]=[g,R,..._]}}}}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,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions;return unified().use(remarkParse).use(l).use(remarkRehype,o).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,o=a.allowElement,u=a.components,c=a.disallowedElements,d=a.skipHtml,h=a.unwrapDisallowed,p=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,g),toJsxRuntime(t,{Fragment:jsxRuntimeExports.Fragment,components:u,ignoreInvalidStyle:!0,jsx:jsxRuntimeExports.jsx,jsxs:jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function g(x,b,C){if(x.type==="raw"&&C&&typeof b=="number")return d?C.children.splice(b,1):C.children[b]={type:"text",value:x.value},b;if(x.type==="element"){let R;for(R in urlAttributes)if(Object.hasOwn(urlAttributes,R)&&Object.hasOwn(x.properties,R)){const _=x.properties[R],B=urlAttributes[R];(B===null||B.includes(x.tagName))&&(x.properties[R]=p(String(_||""),R,x))}}if(x.type==="element"){let R=l?!l.includes(x.tagName):c?c.includes(x.tagName):!1;if(!R&&o&&typeof b=="number"&&(R=!o(x,b,C)),R&&C&&typeof b=="number")return h&&x.children?C.children.splice(b,1,...x.children):C.children.splice(b,1),b}}}function defaultUrlTransform(t){const a=t.indexOf(":"),l=t.indexOf("?"),o=t.indexOf("#"),u=t.indexOf("/");return a===-1||u!==-1&&a>u||l!==-1&&a>l||o!==-1&&a>o||safeProtocol.test(t.slice(0,a))?t:""}reactExports.createContext(null);function parseLayoutDSL(t){const a=t.split(`
|
|
208
|
+
`).filter(o=>o.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,o=a.trim(),u=o.match(/^(\w+)(?:\(([^)]*)\))?:\s*(?:"([^"]*)"|\{\{\s*([^}]+)\s*\}\})?$/);if(!u){const p=o.match(/^(\w+)(?:\(([^)]*)\))?$/);if(p)return{indent:l,component:p[1],props:parseProps(p[2]||""),textContent:null};const g=o.match(/^"([^"]*)"$/);if(g)return{indent:l,component:"__text__",props:{},textContent:g[1]};throw new Error(`Invalid layout DSL line: "${o}"`)}const c=u[1],d=u[2]||"",h=u[3]??(u[4]?`{{ ${u[4].trim()} }}`:null);return{indent:l,component:c,props:parseProps(d),textContent:h}}function parseProps(t){if(!t.trim())return{};const a={},l=t.split(/,\s*/);for(const o of l){const u=o.indexOf("=");if(u===-1)continue;const c=o.slice(0,u).trim(),d=o.slice(u+1).trim();d==="true"?a[c]=!0:d==="false"?a[c]=!1:/^\d+(\.\d+)?$/.test(d)?a[c]=Number(d):a[c]=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(c,d){const h=[];let p=c;for(;p<t.length;){const g=t[p],x=g.indent-a;if(x<=d&&p>c)break;if(x===d+2||d===-2&&x===0){if(g.component==="__text__"&&g.textContent!==null){h.push(g.textContent),p++;continue}const b={component:g.component,props:{...g.props},children:[]};if(g.textContent!==null&&b.children.push(g.textContent),p++,p<t.length&&t[p].indent-a>x){const C=l(p,x);b.children.push(...C.nodes),p=C.nextIdx}h.push(b)}else p++}return{nodes:h,nextIdx:p}}const o=t[0],u={component:o.component,props:{...o.props},children:[]};if(o.textContent!==null&&u.children.push(o.textContent),t.length>1){const c=l(1,0);u.children.push(...c.nodes)}return u}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(b){if(b===void 0)return"undefined";if(b===null)return"null";var C=typeof b;if(C==="boolean")return"boolean";if(C==="string")return"string";if(C==="number")return"number";if(C==="symbol")return"symbol";if(C==="function")return d(b)?"generatorfunction":"function";if(l(b))return"array";if(g(b))return"buffer";if(p(b))return"arguments";if(u(b))return"date";if(o(b))return"error";if(c(b))return"regexp";switch(a(b)){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(h(b))return"generator";switch(C=t.call(b),C){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 C.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 o(x){return x instanceof Error||typeof x.message=="string"&&x.constructor&&typeof x.constructor.stackTraceLimit=="number"}function u(x){return x instanceof Date?!0:typeof x.toDateString=="function"&&typeof x.getDate=="function"&&typeof x.setDate=="function"}function c(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,b){return a(x)==="GeneratorFunction"}function h(x){return typeof x.throw=="function"&&typeof x.return=="function"&&typeof x.next=="function"}function p(x){try{if(typeof x.length=="number"&&typeof x.callee=="function")return!0}catch(b){if(b.message.indexOf("callee")!==-1)return!0}return!1}function g(x){return x.constructor&&typeof x.constructor.isBuffer=="function"?x.constructor.isBuffer(x):!1}return kindOf}/*!
|
|
209
209
|
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|
210
210
|
*
|
|
211
211
|
* Copyright (c) 2015, Jon Schlinkert.
|
|
212
212
|
* Licensed under the MIT License.
|
|
213
|
-
*/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(u){t(u)||(u={});for(var c=arguments.length,d=1;d<c;d++){var
|
|
213
|
+
*/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(u){t(u)||(u={});for(var c=arguments.length,d=1;d<c;d++){var h=arguments[d];t(h)&&a(u,h)}return u};function a(o,u){for(var c in u)l(u,c)&&(o[c]=u[c])}function l(o,u){return Object.prototype.hasOwnProperty.call(o,u)}return extendShallow}var sectionMatter,hasRequiredSectionMatter;function requireSectionMatter(){if(hasRequiredSectionMatter)return sectionMatter;hasRequiredSectionMatter=1;var t=requireKindOf(),a=requireExtendShallow();sectionMatter=function(p,g){typeof g=="function"&&(g={parse:g});var x=o(p),b={section_delimiter:"---",parse:d},C=a({},b,g),R=C.section_delimiter,_=x.content.split(/\r?\n/),B=null,L=c(),D=[],$=[];function V(ve){x.content=ve,B=[],D=[]}function se(ve){$.length&&(L.key=u($[0],R),L.content=ve,C.parse(L,B),B.push(L),L=c(),D=[],$=[])}for(var ie=0;ie<_.length;ie++){var H=_[ie],ge=$.length,W=H.trim();if(l(W,R)){if(W.length===3&&ie!==0){if(ge===0||ge===2){D.push(H);continue}$.push(W),L.data=D.join(`
|
|
214
214
|
`),D=[];continue}B===null&&V(D.join(`
|
|
215
215
|
`)),ge===2&&se(D.join(`
|
|
216
|
-
`))
|
|
216
|
+
`)),$.push(W);continue}D.push(H)}return B===null?V(D.join(`
|
|
217
217
|
`)):se(D.join(`
|
|
218
|
-
`)),x.sections=B,x};function l(p,
|
|
219
|
-
\u2028\u2029`.indexOf(this.buffer.charAt(d-1))===-1;)if(d-=1,this.position-d>u/2-1){c=" ... ",d+=5;break}for(
|
|
220
|
-
\u2028\u2029`.indexOf(this.buffer.charAt(p))===-1;)if(p+=1,p-this.position>u/2-1){
|
|
218
|
+
`)),x.sections=B,x};function l(p,g){return!(p.slice(0,g.length)!==g||p.charAt(g.length+1)===g.slice(-1))}function o(p){if(t(p)!=="object"&&(p={content:p}),typeof p.content!="string"&&!h(p.content))throw new TypeError("expected a buffer or string");return p.content=p.content.toString(),p.sections=[],p}function u(p,g){return p?p.slice(g.length).trim():""}function c(){return{key:"",data:"",content:""}}function d(p){return p}function h(p){return p&&p.constructor&&typeof p.constructor.isBuffer=="function"?p.constructor.isBuffer(p):!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 o(d,h){var p,g,x,b;if(h)for(b=Object.keys(h),p=0,g=b.length;p<g;p+=1)x=b[p],d[x]=h[x];return d}function u(d,h){var p="",g;for(g=0;g<h;g+=1)p+=d;return p}function c(d){return d===0&&Number.NEGATIVE_INFINITY===1/d}return common.isNothing=t,common.isObject=a,common.toArray=l,common.repeat=u,common.isNegativeZero=c,common.extend=o,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 o=this.name+": ";return o+=this.reason||"(unknown reason)",!l&&this.mark&&(o+=" "+this.mark.toString()),o},exception=t,exception}var mark,hasRequiredMark;function requireMark(){if(hasRequiredMark)return mark;hasRequiredMark=1;var t=requireCommon();function a(l,o,u,c,d){this.name=l,this.buffer=o,this.position=u,this.line=c,this.column=d}return a.prototype.getSnippet=function(o,u){var c,d,h,p,g;if(!this.buffer)return null;for(o=o||4,u=u||75,c="",d=this.position;d>0&&`\0\r
|
|
219
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(d-1))===-1;)if(d-=1,this.position-d>u/2-1){c=" ... ",d+=5;break}for(h="",p=this.position;p<this.buffer.length&&`\0\r
|
|
220
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(p))===-1;)if(p+=1,p-this.position>u/2-1){h=" ... ",p-=5;break}return g=this.buffer.slice(d,p),t.repeat(" ",o)+c+g+h+`
|
|
221
221
|
`+t.repeat(" ",o+this.position-d+c.length)+"^"},a.prototype.toString=function(o){var u,c="";return this.name&&(c+='in "'+this.name+'" '),c+="at line "+(this.line+1)+", column "+(this.column+1),o||(u=this.getSnippet(),u&&(c+=`:
|
|
222
|
-
`+u)),c},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 o(c){var d={};return c!==null&&Object.keys(c).forEach(function(g){c[g].forEach(function(p){d[String(p)]=g})}),d}function u(c,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 "'+c+'" YAML type.')}),this.tag=c,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=o(d.styleAliases||null),l.indexOf(this.kind)===-1)throw new t('Unknown kind "'+this.kind+'" is specified for "'+c+'" YAML type.')}return type=u,type}var schema,hasRequiredSchema;function requireSchema(){if(hasRequiredSchema)return schema;hasRequiredSchema=1;var t=requireCommon(),a=requireException(),l=requireType();function o(d,g,p){var m=[];return d.include.forEach(function(x){p=o(x,g,p)}),d[g].forEach(function(x){p.forEach(function(b,C){b.tag===x.tag&&b.kind===x.kind&&m.push(C)}),p.push(x)}),p.filter(function(x,b){return m.indexOf(b)===-1})}function u(){var d={scalar:{},sequence:{},mapping:{},fallback:{}},g,p;function m(x){d[x.kind][x.tag]=d.fallback[x.tag]=x}for(g=0,p=arguments.length;g<p;g+=1)arguments[g].forEach(m);return d}function c(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=o(this,"implicit",[]),this.compiledExplicit=o(this,"explicit",[]),this.compiledTypeMap=u(this.compiledImplicit,this.compiledExplicit)}return c.DEFAULT=null,c.create=function(){var g,p;switch(arguments.length){case 1:g=c.DEFAULT,p=arguments[0];break;case 2:g=arguments[0],p=arguments[1];break;default:throw new a("Wrong number of arguments for Schema.create function")}if(g=t.toArray(g),p=t.toArray(p),!g.every(function(m){return m instanceof c}))throw new a("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!p.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 c({include:g,explicit:p})},schema=c,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(u){if(u===null)return!0;var c=u.length;return c===1&&u==="~"||c===4&&(u==="null"||u==="Null"||u==="NULL")}function l(){return null}function o(u){return u===null}return _null=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:l,predicate:o,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(u){if(u===null)return!1;var c=u.length;return c===4&&(u==="true"||u==="True"||u==="TRUE")||c===5&&(u==="false"||u==="False"||u==="FALSE")}function l(u){return u==="true"||u==="True"||u==="TRUE"}function o(u){return Object.prototype.toString.call(u)==="[object Boolean]"}return bool=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:l,predicate:o,represent:{lowercase:function(u){return u?"true":"false"},uppercase:function(u){return u?"TRUE":"FALSE"},camelcase:function(u){return u?"True":"False"}},defaultStyle:"lowercase"}),bool}var int,hasRequiredInt;function requireInt(){if(hasRequiredInt)return int;hasRequiredInt=1;var t=requireCommon(),a=requireType();function l(p){return 48<=p&&p<=57||65<=p&&p<=70||97<=p&&p<=102}function o(p){return 48<=p&&p<=55}function u(p){return 48<=p&&p<=57}function c(p){if(p===null)return!1;var m=p.length,x=0,b=!1,C;if(!m)return!1;if(C=p[x],(C==="-"||C==="+")&&(C=p[++x]),C==="0"){if(x+1===m)return!0;if(C=p[++x],C==="b"){for(x++;x<m;x++)if(C=p[x],C!=="_"){if(C!=="0"&&C!=="1")return!1;b=!0}return b&&C!=="_"}if(C==="x"){for(x++;x<m;x++)if(C=p[x],C!=="_"){if(!l(p.charCodeAt(x)))return!1;b=!0}return b&&C!=="_"}for(;x<m;x++)if(C=p[x],C!=="_"){if(!o(p.charCodeAt(x)))return!1;b=!0}return b&&C!=="_"}if(C==="_")return!1;for(;x<m;x++)if(C=p[x],C!=="_"){if(C===":")break;if(!u(p.charCodeAt(x)))return!1;b=!0}return!b||C==="_"?!1:C!==":"?!0:/^(:[0-5]?[0-9])+$/.test(p.slice(x))}function d(p){var m=p,x=1,b,C,R=[];return m.indexOf("_")!==-1&&(m=m.replace(/_/g,"")),b=m[0],(b==="-"||b==="+")&&(b==="-"&&(x=-1),m=m.slice(1),b=m[0]),m==="0"?0:b==="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(_){R.unshift(parseInt(_,10))}),m=0,C=1,R.forEach(function(_){m+=_*C,C*=60}),x*m):x*parseInt(m,10)}function g(p){return Object.prototype.toString.call(p)==="[object Number]"&&p%1===0&&!t.isNegativeZero(p)}return int=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:c,construct:d,predicate:g,represent:{binary:function(p){return p>=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)},octal:function(p){return p>=0?"0"+p.toString(8):"-0"+p.toString(8).slice(1)},decimal:function(p){return p.toString(10)},hexadecimal:function(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.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 o(p){return!(p===null||!l.test(p)||p[p.length-1]==="_")}function u(p){var m,x,b,C;return m=p.replace(/_/g,"").toLowerCase(),x=m[0]==="-"?-1:1,C=[],"+-".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(R){C.unshift(parseFloat(R,10))}),m=0,b=1,C.forEach(function(R){m+=R*b,b*=60}),x*m):x*parseFloat(m,10)}var c=/^[-+]?[0-9]+e/;function d(p,m){var x;if(isNaN(p))switch(m){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===p)switch(m){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===p)switch(m){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(p))return"-0.0";return x=p.toString(10),c.test(x)?x.replace("e",".e"):x}function g(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1!==0||t.isNegativeZero(p))}return float=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:u,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 o(d){return d===null?!1:a.exec(d)!==null||l.exec(d)!==null}function u(d){var g,p,m,x,b,C,R,_=0,B=null,L,D,H;if(g=a.exec(d),g===null&&(g=l.exec(d)),g===null)throw new Error("Date resolve error");if(p=+g[1],m=+g[2]-1,x=+g[3],!g[4])return new Date(Date.UTC(p,m,x));if(b=+g[4],C=+g[5],R=+g[6],g[7]){for(_=g[7].slice(0,3);_.length<3;)_+="0";_=+_}return g[9]&&(L=+g[10],D=+(g[11]||0),B=(L*60+D)*6e4,g[9]==="-"&&(B=-B)),H=new Date(Date.UTC(p,m,x,b,C,R,_)),B&&H.setTime(H.getTime()-B),H}function c(d){return d.toISOString()}return timestamp=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:o,construct:u,instanceOf:Date,represent:c}),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(),o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
223
|
-
\r`;function u(p){if(p===null)return!1;var
|
|
224
|
-
`: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 Ee(k){return k<=65535?String.fromCharCode(k):String.fromCharCode((k-65536>>10)+55296,(k-65536&1023)+56320)}function ae(k,M,Z){M==="__proto__"?Object.defineProperty(k,M,{configurable:!0,enumerable:!0,writable:!0,value:Z}):k[M]=Z}for(var Ce=new Array(256),ye=new Array(256),ee=0;ee<256;ee++)Ce[ee]=K(ee)?1:0,ye[ee]=K(ee);function P(k,M){this.input=k,this.filename=M.filename||null,this.schema=M.schema||u,this.onWarning=M.onWarning||null,this.legacy=M.legacy||!1,this.json=M.json||!1,this.listener=M.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 he(k,M){return new a(M,new l(k.filename,k.input,k.position,k.line,k.position-k.lineStart))}function fe(k,M){throw he(k,M)}function _e(k,M){k.onWarning&&k.onWarning.call(null,he(k,M))}var O={YAML:function(M,Z,le){var
|
|
225
|
-
`,M-1))}function qe(k,M,Z){var le,
|
|
226
|
-
`,E?1+A:A):
|
|
222
|
+
`+u)),c},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 o(c){var d={};return c!==null&&Object.keys(c).forEach(function(h){c[h].forEach(function(p){d[String(p)]=h})}),d}function u(c,d){if(d=d||{},Object.keys(d).forEach(function(h){if(a.indexOf(h)===-1)throw new t('Unknown option "'+h+'" is met in definition of "'+c+'" YAML type.')}),this.tag=c,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(h){return h},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.defaultStyle=d.defaultStyle||null,this.styleAliases=o(d.styleAliases||null),l.indexOf(this.kind)===-1)throw new t('Unknown kind "'+this.kind+'" is specified for "'+c+'" YAML type.')}return type=u,type}var schema,hasRequiredSchema;function requireSchema(){if(hasRequiredSchema)return schema;hasRequiredSchema=1;var t=requireCommon(),a=requireException(),l=requireType();function o(d,h,p){var g=[];return d.include.forEach(function(x){p=o(x,h,p)}),d[h].forEach(function(x){p.forEach(function(b,C){b.tag===x.tag&&b.kind===x.kind&&g.push(C)}),p.push(x)}),p.filter(function(x,b){return g.indexOf(b)===-1})}function u(){var d={scalar:{},sequence:{},mapping:{},fallback:{}},h,p;function g(x){d[x.kind][x.tag]=d.fallback[x.tag]=x}for(h=0,p=arguments.length;h<p;h+=1)arguments[h].forEach(g);return d}function c(d){this.include=d.include||[],this.implicit=d.implicit||[],this.explicit=d.explicit||[],this.implicit.forEach(function(h){if(h.loadKind&&h.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=o(this,"implicit",[]),this.compiledExplicit=o(this,"explicit",[]),this.compiledTypeMap=u(this.compiledImplicit,this.compiledExplicit)}return c.DEFAULT=null,c.create=function(){var h,p;switch(arguments.length){case 1:h=c.DEFAULT,p=arguments[0];break;case 2:h=arguments[0],p=arguments[1];break;default:throw new a("Wrong number of arguments for Schema.create function")}if(h=t.toArray(h),p=t.toArray(p),!h.every(function(g){return g instanceof c}))throw new a("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!p.every(function(g){return g instanceof l}))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new c({include:h,explicit:p})},schema=c,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(u){if(u===null)return!0;var c=u.length;return c===1&&u==="~"||c===4&&(u==="null"||u==="Null"||u==="NULL")}function l(){return null}function o(u){return u===null}return _null=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:l,predicate:o,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(u){if(u===null)return!1;var c=u.length;return c===4&&(u==="true"||u==="True"||u==="TRUE")||c===5&&(u==="false"||u==="False"||u==="FALSE")}function l(u){return u==="true"||u==="True"||u==="TRUE"}function o(u){return Object.prototype.toString.call(u)==="[object Boolean]"}return bool=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:l,predicate:o,represent:{lowercase:function(u){return u?"true":"false"},uppercase:function(u){return u?"TRUE":"FALSE"},camelcase:function(u){return u?"True":"False"}},defaultStyle:"lowercase"}),bool}var int,hasRequiredInt;function requireInt(){if(hasRequiredInt)return int;hasRequiredInt=1;var t=requireCommon(),a=requireType();function l(p){return 48<=p&&p<=57||65<=p&&p<=70||97<=p&&p<=102}function o(p){return 48<=p&&p<=55}function u(p){return 48<=p&&p<=57}function c(p){if(p===null)return!1;var g=p.length,x=0,b=!1,C;if(!g)return!1;if(C=p[x],(C==="-"||C==="+")&&(C=p[++x]),C==="0"){if(x+1===g)return!0;if(C=p[++x],C==="b"){for(x++;x<g;x++)if(C=p[x],C!=="_"){if(C!=="0"&&C!=="1")return!1;b=!0}return b&&C!=="_"}if(C==="x"){for(x++;x<g;x++)if(C=p[x],C!=="_"){if(!l(p.charCodeAt(x)))return!1;b=!0}return b&&C!=="_"}for(;x<g;x++)if(C=p[x],C!=="_"){if(!o(p.charCodeAt(x)))return!1;b=!0}return b&&C!=="_"}if(C==="_")return!1;for(;x<g;x++)if(C=p[x],C!=="_"){if(C===":")break;if(!u(p.charCodeAt(x)))return!1;b=!0}return!b||C==="_"?!1:C!==":"?!0:/^(:[0-5]?[0-9])+$/.test(p.slice(x))}function d(p){var g=p,x=1,b,C,R=[];return g.indexOf("_")!==-1&&(g=g.replace(/_/g,"")),b=g[0],(b==="-"||b==="+")&&(b==="-"&&(x=-1),g=g.slice(1),b=g[0]),g==="0"?0:b==="0"?g[1]==="b"?x*parseInt(g.slice(2),2):g[1]==="x"?x*parseInt(g,16):x*parseInt(g,8):g.indexOf(":")!==-1?(g.split(":").forEach(function(_){R.unshift(parseInt(_,10))}),g=0,C=1,R.forEach(function(_){g+=_*C,C*=60}),x*g):x*parseInt(g,10)}function h(p){return Object.prototype.toString.call(p)==="[object Number]"&&p%1===0&&!t.isNegativeZero(p)}return int=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:c,construct:d,predicate:h,represent:{binary:function(p){return p>=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)},octal:function(p){return p>=0?"0"+p.toString(8):"-0"+p.toString(8).slice(1)},decimal:function(p){return p.toString(10)},hexadecimal:function(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.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 o(p){return!(p===null||!l.test(p)||p[p.length-1]==="_")}function u(p){var g,x,b,C;return g=p.replace(/_/g,"").toLowerCase(),x=g[0]==="-"?-1:1,C=[],"+-".indexOf(g[0])>=0&&(g=g.slice(1)),g===".inf"?x===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:g===".nan"?NaN:g.indexOf(":")>=0?(g.split(":").forEach(function(R){C.unshift(parseFloat(R,10))}),g=0,b=1,C.forEach(function(R){g+=R*b,b*=60}),x*g):x*parseFloat(g,10)}var c=/^[-+]?[0-9]+e/;function d(p,g){var x;if(isNaN(p))switch(g){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===p)switch(g){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===p)switch(g){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(p))return"-0.0";return x=p.toString(10),c.test(x)?x.replace("e",".e"):x}function h(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1!==0||t.isNegativeZero(p))}return float=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:u,predicate:h,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 o(d){return d===null?!1:a.exec(d)!==null||l.exec(d)!==null}function u(d){var h,p,g,x,b,C,R,_=0,B=null,L,D,$;if(h=a.exec(d),h===null&&(h=l.exec(d)),h===null)throw new Error("Date resolve error");if(p=+h[1],g=+h[2]-1,x=+h[3],!h[4])return new Date(Date.UTC(p,g,x));if(b=+h[4],C=+h[5],R=+h[6],h[7]){for(_=h[7].slice(0,3);_.length<3;)_+="0";_=+_}return h[9]&&(L=+h[10],D=+(h[11]||0),B=(L*60+D)*6e4,h[9]==="-"&&(B=-B)),$=new Date(Date.UTC(p,g,x,b,C,R,_)),B&&$.setTime($.getTime()-B),$}function c(d){return d.toISOString()}return timestamp=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:o,construct:u,instanceOf:Date,represent:c}),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(),o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
223
|
+
\r`;function u(p){if(p===null)return!1;var g,x,b=0,C=p.length,R=o;for(x=0;x<C;x++)if(g=R.indexOf(p.charAt(x)),!(g>64)){if(g<0)return!1;b+=6}return b%8===0}function c(p){var g,x,b=p.replace(/[\r\n=]/g,""),C=b.length,R=o,_=0,B=[];for(g=0;g<C;g++)g%4===0&&g&&(B.push(_>>16&255),B.push(_>>8&255),B.push(_&255)),_=_<<6|R.indexOf(b.charAt(g));return x=C%4*6,x===0?(B.push(_>>16&255),B.push(_>>8&255),B.push(_&255)):x===18?(B.push(_>>10&255),B.push(_>>2&255)):x===12&&B.push(_>>4&255),t?t.from?t.from(B):new t(B):B}function d(p){var g="",x=0,b,C,R=p.length,_=o;for(b=0;b<R;b++)b%3===0&&b&&(g+=_[x>>18&63],g+=_[x>>12&63],g+=_[x>>6&63],g+=_[x&63]),x=(x<<8)+p[b];return C=R%3,C===0?(g+=_[x>>18&63],g+=_[x>>12&63],g+=_[x>>6&63],g+=_[x&63]):C===2?(g+=_[x>>10&63],g+=_[x>>4&63],g+=_[x<<2&63],g+=_[64]):C===1&&(g+=_[x>>2&63],g+=_[x<<4&63],g+=_[64],g+=_[64]),g}function h(p){return t&&t.isBuffer(p)}return binary=new l("tag:yaml.org,2002:binary",{kind:"scalar",resolve:u,construct:c,predicate:h,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 o(c){if(c===null)return!0;var d=[],h,p,g,x,b,C=c;for(h=0,p=C.length;h<p;h+=1){if(g=C[h],b=!1,l.call(g)!=="[object Object]")return!1;for(x in g)if(a.call(g,x))if(!b)b=!0;else return!1;if(!b)return!1;if(d.indexOf(x)===-1)d.push(x);else return!1}return!0}function u(c){return c!==null?c:[]}return omap=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:o,construct:u}),omap}var pairs,hasRequiredPairs;function requirePairs(){if(hasRequiredPairs)return pairs;hasRequiredPairs=1;var t=requireType(),a=Object.prototype.toString;function l(u){if(u===null)return!0;var c,d,h,p,g,x=u;for(g=new Array(x.length),c=0,d=x.length;c<d;c+=1){if(h=x[c],a.call(h)!=="[object Object]"||(p=Object.keys(h),p.length!==1))return!1;g[c]=[p[0],h[p[0]]]}return!0}function o(u){if(u===null)return[];var c,d,h,p,g,x=u;for(g=new Array(x.length),c=0,d=x.length;c<d;c+=1)h=x[c],p=Object.keys(h),g[c]=[p[0],h[p[0]]];return g}return pairs=new t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:l,construct:o}),pairs}var set,hasRequiredSet;function requireSet(){if(hasRequiredSet)return set;hasRequiredSet=1;var t=requireType(),a=Object.prototype.hasOwnProperty;function l(u){if(u===null)return!0;var c,d=u;for(c in d)if(a.call(d,c)&&d[c]!==null)return!1;return!0}function o(u){return u!==null?u:{}}return set=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:l,construct:o}),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 o(){return""}function u(c){return typeof c>"u"}return _undefined=new t("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:a,construct:l,predicate:u,represent:o}),_undefined}var regexp,hasRequiredRegexp;function requireRegexp(){if(hasRequiredRegexp)return regexp;hasRequiredRegexp=1;var t=requireType();function a(c){if(c===null||c.length===0)return!1;var d=c,h=/\/([gim]*)$/.exec(c),p="";return!(d[0]==="/"&&(h&&(p=h[1]),p.length>3||d[d.length-p.length-1]!=="/"))}function l(c){var d=c,h=/\/([gim]*)$/.exec(c),p="";return d[0]==="/"&&(h&&(p=h[1]),d=d.slice(1,d.length-p.length-1)),new RegExp(d,p)}function o(c){var d="/"+c.source+"/";return c.global&&(d+="g"),c.multiline&&(d+="m"),c.ignoreCase&&(d+="i"),d}function u(c){return Object.prototype.toString.call(c)==="[object RegExp]"}return regexp=new t("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:a,construct:l,predicate:u,represent:o}),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 o(h){if(h===null)return!1;try{var p="("+h+")",g=t.parse(p,{range:!0});return!(g.type!=="Program"||g.body.length!==1||g.body[0].type!=="ExpressionStatement"||g.body[0].expression.type!=="ArrowFunctionExpression"&&g.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function u(h){var p="("+h+")",g=t.parse(p,{range:!0}),x=[],b;if(g.type!=="Program"||g.body.length!==1||g.body[0].type!=="ExpressionStatement"||g.body[0].expression.type!=="ArrowFunctionExpression"&&g.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return g.body[0].expression.params.forEach(function(C){x.push(C.name)}),b=g.body[0].expression.body.range,g.body[0].expression.body.type==="BlockStatement"?new Function(x,p.slice(b[0]+1,b[1]-1)):new Function(x,"return "+p.slice(b[0],b[1]))}function c(h){return h.toString()}function d(h){return Object.prototype.toString.call(h)==="[object Function]"}return _function=new l("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:o,construct:u,predicate:d,represent:c}),_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(),o=requireDefault_safe(),u=requireDefault_full(),c=Object.prototype.hasOwnProperty,d=1,h=2,p=3,g=4,x=1,b=2,C=3,R=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_=/[\x85\u2028\u2029]/,B=/[,\[\]\{\}]/,L=/^(?:!|!!|![a-z\-]+!)$/i,D=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function $(k){return Object.prototype.toString.call(k)}function V(k){return k===10||k===13}function se(k){return k===9||k===32}function ie(k){return k===9||k===32||k===10||k===13}function H(k){return k===44||k===91||k===93||k===123||k===125}function ge(k){var M;return 48<=k&&k<=57?k-48:(M=k|32,97<=M&&M<=102?M-97+10:-1)}function W(k){return k===120?2:k===117?4:k===85?8:0}function ve(k){return 48<=k&&k<=57?k-48:-1}function K(k){return k===48?"\0":k===97?"\x07":k===98?"\b":k===116||k===9?" ":k===110?`
|
|
224
|
+
`: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 Ee(k){return k<=65535?String.fromCharCode(k):String.fromCharCode((k-65536>>10)+55296,(k-65536&1023)+56320)}function ae(k,M,Z){M==="__proto__"?Object.defineProperty(k,M,{configurable:!0,enumerable:!0,writable:!0,value:Z}):k[M]=Z}for(var Ce=new Array(256),ye=new Array(256),ee=0;ee<256;ee++)Ce[ee]=K(ee)?1:0,ye[ee]=K(ee);function P(k,M){this.input=k,this.filename=M.filename||null,this.schema=M.schema||u,this.onWarning=M.onWarning||null,this.legacy=M.legacy||!1,this.json=M.json||!1,this.listener=M.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 he(k,M){return new a(M,new l(k.filename,k.input,k.position,k.line,k.position-k.lineStart))}function fe(k,M){throw he(k,M)}function _e(k,M){k.onWarning&&k.onWarning.call(null,he(k,M))}var O={YAML:function(M,Z,le){var te,E,v;M.version!==null&&fe(M,"duplication of %YAML directive"),le.length!==1&&fe(M,"YAML directive accepts exactly one argument"),te=/^([0-9]+)\.([0-9]+)$/.exec(le[0]),te===null&&fe(M,"ill-formed argument of the YAML directive"),E=parseInt(te[1],10),v=parseInt(te[2],10),E!==1&&fe(M,"unacceptable YAML version of the document"),M.version=le[0],M.checkLineBreaks=v<2,v!==1&&v!==2&&_e(M,"unsupported YAML version of the document")},TAG:function(M,Z,le){var te,E;le.length!==2&&fe(M,"TAG directive accepts exactly two arguments"),te=le[0],E=le[1],L.test(te)||fe(M,"ill-formed tag handle (first argument) of the TAG directive"),c.call(M.tagMap,te)&&fe(M,'there is a previously declared suffix for "'+te+'" tag handle'),D.test(E)||fe(M,"ill-formed tag prefix (second argument) of the TAG directive"),M.tagMap[te]=E}};function q(k,M,Z,le){var te,E,v,S;if(M<Z){if(S=k.input.slice(M,Z),le)for(te=0,E=S.length;te<E;te+=1)v=S.charCodeAt(te),v===9||32<=v&&v<=1114111||fe(k,"expected valid JSON character");else R.test(S)&&fe(k,"the stream contains non-printable characters");k.result+=S}}function oe(k,M,Z,le){var te,E,v,S;for(t.isObject(Z)||fe(k,"cannot merge mappings; the provided source object is unacceptable"),te=Object.keys(Z),v=0,S=te.length;v<S;v+=1)E=te[v],c.call(M,E)||(ae(M,E,Z[E]),le[E]=!0)}function N(k,M,Z,le,te,E,v,S){var A,j;if(Array.isArray(te))for(te=Array.prototype.slice.call(te),A=0,j=te.length;A<j;A+=1)Array.isArray(te[A])&&fe(k,"nested arrays are not supported inside keys"),typeof te=="object"&&$(te[A])==="[object Object]"&&(te[A]="[object Object]");if(typeof te=="object"&&$(te)==="[object Object]"&&(te="[object Object]"),te=String(te),M===null&&(M={}),le==="tag:yaml.org,2002:merge")if(Array.isArray(E))for(A=0,j=E.length;A<j;A+=1)oe(k,M,E[A],Z);else oe(k,M,E,Z);else!k.json&&!c.call(Z,te)&&c.call(M,te)&&(k.line=v||k.line,k.position=S||k.position,fe(k,"duplicated mapping key")),ae(M,te,E),delete Z[te];return M}function be(k){var M;M=k.input.charCodeAt(k.position),M===10?k.position++:M===13?(k.position++,k.input.charCodeAt(k.position)===10&&k.position++):fe(k,"a line break is expected"),k.line+=1,k.lineStart=k.position}function xe(k,M,Z){for(var le=0,te=k.input.charCodeAt(k.position);te!==0;){for(;se(te);)te=k.input.charCodeAt(++k.position);if(M&&te===35)do te=k.input.charCodeAt(++k.position);while(te!==10&&te!==13&&te!==0);if(V(te))for(be(k),te=k.input.charCodeAt(k.position),le++,k.lineIndent=0;te===32;)k.lineIndent++,te=k.input.charCodeAt(++k.position);else break}return Z!==-1&&le!==0&&k.lineIndent<Z&&_e(k,"deficient indentation"),le}function Se(k){var M=k.position,Z;return Z=k.input.charCodeAt(M),!!((Z===45||Z===46)&&Z===k.input.charCodeAt(M+1)&&Z===k.input.charCodeAt(M+2)&&(M+=3,Z=k.input.charCodeAt(M),Z===0||ie(Z)))}function Oe(k,M){M===1?k.result+=" ":M>1&&(k.result+=t.repeat(`
|
|
225
|
+
`,M-1))}function qe(k,M,Z){var le,te,E,v,S,A,j,I,z=k.kind,de=k.result,ue;if(ue=k.input.charCodeAt(k.position),ie(ue)||H(ue)||ue===35||ue===38||ue===42||ue===33||ue===124||ue===62||ue===39||ue===34||ue===37||ue===64||ue===96||(ue===63||ue===45)&&(te=k.input.charCodeAt(k.position+1),ie(te)||Z&&H(te)))return!1;for(k.kind="scalar",k.result="",E=v=k.position,S=!1;ue!==0;){if(ue===58){if(te=k.input.charCodeAt(k.position+1),ie(te)||Z&&H(te))break}else if(ue===35){if(le=k.input.charCodeAt(k.position-1),ie(le))break}else{if(k.position===k.lineStart&&Se(k)||Z&&H(ue))break;if(V(ue))if(A=k.line,j=k.lineStart,I=k.lineIndent,xe(k,!1,-1),k.lineIndent>=M){S=!0,ue=k.input.charCodeAt(k.position);continue}else{k.position=v,k.line=A,k.lineStart=j,k.lineIndent=I;break}}S&&(q(k,E,v,!1),Oe(k,k.line-A),E=v=k.position,S=!1),se(ue)||(v=k.position+1),ue=k.input.charCodeAt(++k.position)}return q(k,E,v,!1),k.result?!0:(k.kind=z,k.result=de,!1)}function je(k,M){var Z,le,te;if(Z=k.input.charCodeAt(k.position),Z!==39)return!1;for(k.kind="scalar",k.result="",k.position++,le=te=k.position;(Z=k.input.charCodeAt(k.position))!==0;)if(Z===39)if(q(k,le,k.position,!0),Z=k.input.charCodeAt(++k.position),Z===39)le=k.position,k.position++,te=k.position;else return!0;else V(Z)?(q(k,le,te,!0),Oe(k,xe(k,!1,M)),le=te=k.position):k.position===k.lineStart&&Se(k)?fe(k,"unexpected end of the document within a single quoted scalar"):(k.position++,te=k.position);fe(k,"unexpected end of the stream within a single quoted scalar")}function nt(k,M){var Z,le,te,E,v,S;if(S=k.input.charCodeAt(k.position),S!==34)return!1;for(k.kind="scalar",k.result="",k.position++,Z=le=k.position;(S=k.input.charCodeAt(k.position))!==0;){if(S===34)return q(k,Z,k.position,!0),k.position++,!0;if(S===92){if(q(k,Z,k.position,!0),S=k.input.charCodeAt(++k.position),V(S))xe(k,!1,M);else if(S<256&&Ce[S])k.result+=ye[S],k.position++;else if((v=W(S))>0){for(te=v,E=0;te>0;te--)S=k.input.charCodeAt(++k.position),(v=ge(S))>=0?E=(E<<4)+v:fe(k,"expected hexadecimal character");k.result+=Ee(E),k.position++}else fe(k,"unknown escape sequence");Z=le=k.position}else V(S)?(q(k,Z,le,!0),Oe(k,xe(k,!1,M)),Z=le=k.position):k.position===k.lineStart&&Se(k)?fe(k,"unexpected end of the document within a double quoted scalar"):(k.position++,le=k.position)}fe(k,"unexpected end of the stream within a double quoted scalar")}function Qe(k,M){var Z=!0,le,te=k.tag,E,v=k.anchor,S,A,j,I,z,de={},ue,ke,Ae,we;if(we=k.input.charCodeAt(k.position),we===91)A=93,z=!1,E=[];else if(we===123)A=125,z=!0,E={};else return!1;for(k.anchor!==null&&(k.anchorMap[k.anchor]=E),we=k.input.charCodeAt(++k.position);we!==0;){if(xe(k,!0,M),we=k.input.charCodeAt(k.position),we===A)return k.position++,k.tag=te,k.anchor=v,k.kind=z?"mapping":"sequence",k.result=E,!0;Z||fe(k,"missed comma between flow collection entries"),ke=ue=Ae=null,j=I=!1,we===63&&(S=k.input.charCodeAt(k.position+1),ie(S)&&(j=I=!0,k.position++,xe(k,!0,M))),le=k.line,wt(k,M,d,!1,!0),ke=k.tag,ue=k.result,xe(k,!0,M),we=k.input.charCodeAt(k.position),(I||k.line===le)&&we===58&&(j=!0,we=k.input.charCodeAt(++k.position),xe(k,!0,M),wt(k,M,d,!1,!0),Ae=k.result),z?N(k,E,de,ke,ue,Ae):j?E.push(N(k,null,de,ke,ue,Ae)):E.push(ue),xe(k,!0,M),we=k.input.charCodeAt(k.position),we===44?(Z=!0,we=k.input.charCodeAt(++k.position)):Z=!1}fe(k,"unexpected end of the stream within a flow collection")}function at(k,M){var Z,le,te=x,E=!1,v=!1,S=M,A=0,j=!1,I,z;if(z=k.input.charCodeAt(k.position),z===124)le=!1;else if(z===62)le=!0;else return!1;for(k.kind="scalar",k.result="";z!==0;)if(z=k.input.charCodeAt(++k.position),z===43||z===45)x===te?te=z===43?C:b:fe(k,"repeat of a chomping mode identifier");else if((I=ve(z))>=0)I===0?fe(k,"bad explicit indentation width of a block scalar; it cannot be less than one"):v?fe(k,"repeat of an indentation width identifier"):(S=M+I-1,v=!0);else break;if(se(z)){do z=k.input.charCodeAt(++k.position);while(se(z));if(z===35)do z=k.input.charCodeAt(++k.position);while(!V(z)&&z!==0)}for(;z!==0;){for(be(k),k.lineIndent=0,z=k.input.charCodeAt(k.position);(!v||k.lineIndent<S)&&z===32;)k.lineIndent++,z=k.input.charCodeAt(++k.position);if(!v&&k.lineIndent>S&&(S=k.lineIndent),V(z)){A++;continue}if(k.lineIndent<S){te===C?k.result+=t.repeat(`
|
|
226
|
+
`,E?1+A:A):te===x&&E&&(k.result+=`
|
|
227
227
|
`);break}for(le?se(z)?(j=!0,k.result+=t.repeat(`
|
|
228
228
|
`,E?1+A:A)):j?(j=!1,k.result+=t.repeat(`
|
|
229
229
|
`,A+1)):A===0?E&&(k.result+=" "):k.result+=t.repeat(`
|
|
230
230
|
`,A):k.result+=t.repeat(`
|
|
231
|
-
`,E?1+A:A),E=!0,v=!0,A=0,Z=k.position;!V(z)&&z!==0;)z=k.input.charCodeAt(++k.position);q(k,Z,k.position,!1)}return!0}function kt(k,M){var Z,le=k.tag,
|
|
232
|
-
`),k.charCodeAt(0)===65279&&(k=k.slice(1)));var Z=new P(k,M),le=k.indexOf("\0");for(le!==-1&&(Z.position=le,fe(Z,"null byte is not allowed in input")),Z.input+="\0";Z.input.charCodeAt(Z.position)===32;)Z.lineIndent+=1,Z.position+=1;for(;Z.position<Z.length-1;)Pt(Z);return Z.documents}function Ht(k,M,Z){M!==null&&typeof M=="object"&&typeof Z>"u"&&(Z=M,M=null);var le=Ct(k,Z);if(typeof M!="function")return le;for(var
|
|
231
|
+
`,E?1+A:A),E=!0,v=!0,A=0,Z=k.position;!V(z)&&z!==0;)z=k.input.charCodeAt(++k.position);q(k,Z,k.position,!1)}return!0}function kt(k,M){var Z,le=k.tag,te=k.anchor,E=[],v,S=!1,A;for(k.anchor!==null&&(k.anchorMap[k.anchor]=E),A=k.input.charCodeAt(k.position);A!==0&&!(A!==45||(v=k.input.charCodeAt(k.position+1),!ie(v)));){if(S=!0,k.position++,xe(k,!0,-1)&&k.lineIndent<=M){E.push(null),A=k.input.charCodeAt(k.position);continue}if(Z=k.line,wt(k,M,p,!1,!0),E.push(k.result),xe(k,!0,-1),A=k.input.charCodeAt(k.position),(k.line===Z||k.lineIndent>M)&&A!==0)fe(k,"bad indentation of a sequence entry");else if(k.lineIndent<M)break}return S?(k.tag=le,k.anchor=te,k.kind="sequence",k.result=E,!0):!1}function ut(k,M,Z){var le,te,E,v,S=k.tag,A=k.anchor,j={},I={},z=null,de=null,ue=null,ke=!1,Ae=!1,we;for(k.anchor!==null&&(k.anchorMap[k.anchor]=j),we=k.input.charCodeAt(k.position);we!==0;){if(le=k.input.charCodeAt(k.position+1),E=k.line,v=k.position,(we===63||we===58)&&ie(le))we===63?(ke&&(N(k,j,I,z,de,null),z=de=ue=null),Ae=!0,ke=!0,te=!0):ke?(ke=!1,te=!0):fe(k,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),k.position+=1,we=le;else if(wt(k,Z,h,!1,!0))if(k.line===E){for(we=k.input.charCodeAt(k.position);se(we);)we=k.input.charCodeAt(++k.position);if(we===58)we=k.input.charCodeAt(++k.position),ie(we)||fe(k,"a whitespace character is expected after the key-value separator within a block mapping"),ke&&(N(k,j,I,z,de,null),z=de=ue=null),Ae=!0,ke=!1,te=!1,z=k.tag,de=k.result;else if(Ae)fe(k,"can not read an implicit mapping pair; a colon is missed");else return k.tag=S,k.anchor=A,!0}else if(Ae)fe(k,"can not read a block mapping entry; a multiline key may not be an implicit key");else return k.tag=S,k.anchor=A,!0;else break;if((k.line===E||k.lineIndent>M)&&(wt(k,M,g,!0,te)&&(ke?de=k.result:ue=k.result),ke||(N(k,j,I,z,de,ue,E,v),z=de=ue=null),xe(k,!0,-1),we=k.input.charCodeAt(k.position)),k.lineIndent>M&&we!==0)fe(k,"bad indentation of a mapping entry");else if(k.lineIndent<M)break}return ke&&N(k,j,I,z,de,null),Ae&&(k.tag=S,k.anchor=A,k.kind="mapping",k.result=j),Ae}function At(k){var M,Z=!1,le=!1,te,E,v;if(v=k.input.charCodeAt(k.position),v!==33)return!1;if(k.tag!==null&&fe(k,"duplication of a tag property"),v=k.input.charCodeAt(++k.position),v===60?(Z=!0,v=k.input.charCodeAt(++k.position)):v===33?(le=!0,te="!!",v=k.input.charCodeAt(++k.position)):te="!",M=k.position,Z){do v=k.input.charCodeAt(++k.position);while(v!==0&&v!==62);k.position<k.length?(E=k.input.slice(M,k.position),v=k.input.charCodeAt(++k.position)):fe(k,"unexpected end of the stream within a verbatim tag")}else{for(;v!==0&&!ie(v);)v===33&&(le?fe(k,"tag suffix cannot contain exclamation marks"):(te=k.input.slice(M-1,k.position+1),L.test(te)||fe(k,"named tag handle cannot contain such characters"),le=!0,M=k.position+1)),v=k.input.charCodeAt(++k.position);E=k.input.slice(M,k.position),B.test(E)&&fe(k,"tag suffix cannot contain flow indicator characters")}return E&&!D.test(E)&&fe(k,"tag name cannot contain such characters: "+E),Z?k.tag=E:c.call(k.tagMap,te)?k.tag=k.tagMap[te]+E:te==="!"?k.tag="!"+E:te==="!!"?k.tag="tag:yaml.org,2002:"+E:fe(k,'undeclared tag handle "'+te+'"'),!0}function mt(k){var M,Z;if(Z=k.input.charCodeAt(k.position),Z!==38)return!1;for(k.anchor!==null&&fe(k,"duplication of an anchor property"),Z=k.input.charCodeAt(++k.position),M=k.position;Z!==0&&!ie(Z)&&!H(Z);)Z=k.input.charCodeAt(++k.position);return k.position===M&&fe(k,"name of an anchor node must contain at least one character"),k.anchor=k.input.slice(M,k.position),!0}function Tt(k){var M,Z,le;if(le=k.input.charCodeAt(k.position),le!==42)return!1;for(le=k.input.charCodeAt(++k.position),M=k.position;le!==0&&!ie(le)&&!H(le);)le=k.input.charCodeAt(++k.position);return k.position===M&&fe(k,"name of an alias node must contain at least one character"),Z=k.input.slice(M,k.position),c.call(k.anchorMap,Z)||fe(k,'unidentified alias "'+Z+'"'),k.result=k.anchorMap[Z],xe(k,!0,-1),!0}function wt(k,M,Z,le,te){var E,v,S,A=1,j=!1,I=!1,z,de,ue,ke,Ae;if(k.listener!==null&&k.listener("open",k),k.tag=null,k.anchor=null,k.kind=null,k.result=null,E=v=S=g===Z||p===Z,le&&xe(k,!0,-1)&&(j=!0,k.lineIndent>M?A=1:k.lineIndent===M?A=0:k.lineIndent<M&&(A=-1)),A===1)for(;At(k)||mt(k);)xe(k,!0,-1)?(j=!0,S=E,k.lineIndent>M?A=1:k.lineIndent===M?A=0:k.lineIndent<M&&(A=-1)):S=!1;if(S&&(S=j||te),(A===1||g===Z)&&(d===Z||h===Z?ke=M:ke=M+1,Ae=k.position-k.lineStart,A===1?S&&(kt(k,Ae)||ut(k,Ae,ke))||Qe(k,ke)?I=!0:(v&&at(k,ke)||je(k,ke)||nt(k,ke)?I=!0:Tt(k)?(I=!0,(k.tag!==null||k.anchor!==null)&&fe(k,"alias node should not have any properties")):qe(k,ke,d===Z)&&(I=!0,k.tag===null&&(k.tag="?")),k.anchor!==null&&(k.anchorMap[k.anchor]=k.result)):A===0&&(I=S&&kt(k,Ae))),k.tag!==null&&k.tag!=="!")if(k.tag==="?"){for(k.result!==null&&k.kind!=="scalar"&&fe(k,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+k.kind+'"'),z=0,de=k.implicitTypes.length;z<de;z+=1)if(ue=k.implicitTypes[z],ue.resolve(k.result)){k.result=ue.construct(k.result),k.tag=ue.tag,k.anchor!==null&&(k.anchorMap[k.anchor]=k.result);break}}else c.call(k.typeMap[k.kind||"fallback"],k.tag)?(ue=k.typeMap[k.kind||"fallback"][k.tag],k.result!==null&&ue.kind!==k.kind&&fe(k,"unacceptable node kind for !<"+k.tag+'> tag; it should be "'+ue.kind+'", not "'+k.kind+'"'),ue.resolve(k.result)?(k.result=ue.construct(k.result),k.anchor!==null&&(k.anchorMap[k.anchor]=k.result)):fe(k,"cannot resolve a node with !<"+k.tag+"> explicit tag")):fe(k,"unknown tag !<"+k.tag+">");return k.listener!==null&&k.listener("close",k),k.tag!==null||k.anchor!==null||I}function Pt(k){var M=k.position,Z,le,te,E=!1,v;for(k.version=null,k.checkLineBreaks=k.legacy,k.tagMap={},k.anchorMap={};(v=k.input.charCodeAt(k.position))!==0&&(xe(k,!0,-1),v=k.input.charCodeAt(k.position),!(k.lineIndent>0||v!==37));){for(E=!0,v=k.input.charCodeAt(++k.position),Z=k.position;v!==0&&!ie(v);)v=k.input.charCodeAt(++k.position);for(le=k.input.slice(Z,k.position),te=[],le.length<1&&fe(k,"directive name must not be less than one character in length");v!==0;){for(;se(v);)v=k.input.charCodeAt(++k.position);if(v===35){do v=k.input.charCodeAt(++k.position);while(v!==0&&!V(v));break}if(V(v))break;for(Z=k.position;v!==0&&!ie(v);)v=k.input.charCodeAt(++k.position);te.push(k.input.slice(Z,k.position))}v!==0&&be(k),c.call(O,le)?O[le](k,le,te):_e(k,'unknown document directive "'+le+'"')}if(xe(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,xe(k,!0,-1)):E&&fe(k,"directives end mark is expected"),wt(k,k.lineIndent-1,g,!1,!0),xe(k,!0,-1),k.checkLineBreaks&&_.test(k.input.slice(M,k.position))&&_e(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,xe(k,!0,-1));return}if(k.position<k.length-1)fe(k,"end of the stream or a document separator is expected");else return}function Ct(k,M){k=String(k),M=M||{},k.length!==0&&(k.charCodeAt(k.length-1)!==10&&k.charCodeAt(k.length-1)!==13&&(k+=`
|
|
232
|
+
`),k.charCodeAt(0)===65279&&(k=k.slice(1)));var Z=new P(k,M),le=k.indexOf("\0");for(le!==-1&&(Z.position=le,fe(Z,"null byte is not allowed in input")),Z.input+="\0";Z.input.charCodeAt(Z.position)===32;)Z.lineIndent+=1,Z.position+=1;for(;Z.position<Z.length-1;)Pt(Z);return Z.documents}function Ht(k,M,Z){M!==null&&typeof M=="object"&&typeof Z>"u"&&(Z=M,M=null);var le=Ct(k,Z);if(typeof M!="function")return le;for(var te=0,E=le.length;te<E;te+=1)M(le[te])}function ln(k,M){var Z=Ct(k,M);if(Z.length!==0){if(Z.length===1)return Z[0];throw new a("expected a single document in the stream, but found more")}}function on(k,M,Z){return typeof M=="object"&&M!==null&&typeof Z>"u"&&(Z=M,M=null),Ht(k,M,t.extend({schema:o},Z))}function Je(k,M){return ln(k,t.extend({schema:o},M))}return loader.loadAll=Ht,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(),o=requireDefault_safe(),u=Object.prototype.toString,c=Object.prototype.hasOwnProperty,d=9,h=10,p=13,g=32,x=33,b=34,C=35,R=37,_=38,B=39,L=42,D=44,$=45,V=58,se=61,ie=62,H=63,ge=64,W=91,ve=93,K=96,Ee=123,ae=124,Ce=125,ye={};ye[0]="\\0",ye[7]="\\a",ye[8]="\\b",ye[9]="\\t",ye[10]="\\n",ye[11]="\\v",ye[12]="\\f",ye[13]="\\r",ye[27]="\\e",ye[34]='\\"',ye[92]="\\\\",ye[133]="\\N",ye[160]="\\_",ye[8232]="\\L",ye[8233]="\\P";var ee=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function P(E,v){var S,A,j,I,z,de,ue;if(v===null)return{};for(S={},A=Object.keys(v),j=0,I=A.length;j<I;j+=1)z=A[j],de=String(v[z]),z.slice(0,2)==="!!"&&(z="tag:yaml.org,2002:"+z.slice(2)),ue=E.compiledTypeMap.fallback[z],ue&&c.call(ue.styleAliases,de)&&(de=ue.styleAliases[de]),S[z]=de;return S}function he(E){var v,S,A;if(v=E.toString(16).toUpperCase(),E<=255)S="x",A=2;else if(E<=65535)S="u",A=4;else if(E<=4294967295)S="U",A=8;else throw new a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+S+t.repeat("0",A-v.length)+v}function fe(E){this.schema=E.schema||l,this.indent=Math.max(1,E.indent||2),this.noArrayIndent=E.noArrayIndent||!1,this.skipInvalid=E.skipInvalid||!1,this.flowLevel=t.isNothing(E.flowLevel)?-1:E.flowLevel,this.styleMap=P(this.schema,E.styles||null),this.sortKeys=E.sortKeys||!1,this.lineWidth=E.lineWidth||80,this.noRefs=E.noRefs||!1,this.noCompatMode=E.noCompatMode||!1,this.condenseFlow=E.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function _e(E,v){for(var S=t.repeat(" ",v),A=0,j=-1,I="",z,de=E.length;A<de;)j=E.indexOf(`
|
|
233
233
|
`,A),j===-1?(z=E.slice(A),A=de):(z=E.slice(A,j+1),A=j+1),z.length&&z!==`
|
|
234
234
|
`&&(I+=S),I+=z;return I}function O(E,v){return`
|
|
235
|
-
`+t.repeat(" ",E.indent*v)}function q(E,v){var S,A,j;for(S=0,A=E.implicitTypes.length;S<A;S+=1)if(j=E.implicitTypes[S],j.resolve(v))return!0;return!1}function oe(E){return E===
|
|
235
|
+
`+t.repeat(" ",E.indent*v)}function q(E,v){var S,A,j;for(S=0,A=E.implicitTypes.length;S<A;S+=1)if(j=E.implicitTypes[S],j.resolve(v))return!0;return!1}function oe(E){return E===g||E===d}function N(E){return 32<=E&&E<=126||161<=E&&E<=55295&&E!==8232&&E!==8233||57344<=E&&E<=65533&&E!==65279||65536<=E&&E<=1114111}function be(E){return N(E)&&!oe(E)&&E!==65279&&E!==p&&E!==h}function xe(E,v){return N(E)&&E!==65279&&E!==D&&E!==W&&E!==ve&&E!==Ee&&E!==Ce&&E!==V&&(E!==C||v&&be(v))}function Se(E){return N(E)&&E!==65279&&!oe(E)&&E!==$&&E!==H&&E!==V&&E!==D&&E!==W&&E!==ve&&E!==Ee&&E!==Ce&&E!==C&&E!==_&&E!==L&&E!==x&&E!==ae&&E!==se&&E!==ie&&E!==B&&E!==b&&E!==R&&E!==ge&&E!==K}function Oe(E){var v=/^\n* /;return v.test(E)}var qe=1,je=2,nt=3,Qe=4,at=5;function kt(E,v,S,A,j){var I,z,de,ue=!1,ke=!1,Ae=A!==-1,we=-1,lt=Se(E.charCodeAt(0))&&!oe(E.charCodeAt(E.length-1));if(v)for(I=0;I<E.length;I++){if(z=E.charCodeAt(I),!N(z))return at;de=I>0?E.charCodeAt(I-1):null,lt=lt&&xe(z,de)}else{for(I=0;I<E.length;I++){if(z=E.charCodeAt(I),z===h)ue=!0,Ae&&(ke=ke||I-we-1>A&&E[we+1]!==" ",we=I);else if(!N(z))return at;de=I>0?E.charCodeAt(I-1):null,lt=lt&&xe(z,de)}ke=ke||Ae&&I-we-1>A&&E[we+1]!==" "}return!ue&&!ke?lt&&!j(E)?qe:je:S>9&&Oe(E)?at:ke?Qe:nt}function ut(E,v,S,A){E.dump=(function(){if(v.length===0)return"''";if(!E.noCompatMode&&ee.indexOf(v)!==-1)return"'"+v+"'";var j=E.indent*Math.max(1,S),I=E.lineWidth===-1?-1:Math.max(Math.min(E.lineWidth,40),E.lineWidth-j),z=A||E.flowLevel>-1&&S>=E.flowLevel;function de(ue){return q(E,ue)}switch(kt(v,z,E.indent,I,de)){case qe:return v;case je:return"'"+v.replace(/'/g,"''")+"'";case nt:return"|"+At(v,E.indent)+mt(_e(v,j));case Qe:return">"+At(v,E.indent)+mt(_e(Tt(v,I),j));case at:return'"'+Pt(v)+'"';default:throw new a("impossible error: invalid scalar style")}})()}function At(E,v){var S=Oe(E)?String(v):"",A=E[E.length-1]===`
|
|
236
236
|
`,j=A&&(E[E.length-2]===`
|
|
237
237
|
`||E===`
|
|
238
238
|
`),I=j?"+":A?"":"-";return S+I+`
|
|
@@ -243,36 +243,36 @@ Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}
|
|
|
243
243
|
`:"")+wt(ue,v),j=I}return A}function wt(E,v){if(E===""||E[0]===" ")return E;for(var S=/ [^ ]/g,A,j=0,I,z=0,de=0,ue="";A=S.exec(E);)de=A.index,de-j>v&&(I=z>j?z:de,ue+=`
|
|
244
244
|
`+E.slice(j,I),j=I+1),z=de;return ue+=`
|
|
245
245
|
`,E.length-j>v&&z>j?ue+=E.slice(j,z)+`
|
|
246
|
-
`+E.slice(z+1):ue+=E.slice(j),ue.slice(1)}function Pt(E){for(var v="",S,A,j,I=0;I<E.length;I++){if(S=E.charCodeAt(I),S>=55296&&S<=56319&&(A=E.charCodeAt(I+1),A>=56320&&A<=57343)){v+=he((S-55296)*1024+A-56320+65536),I++;continue}j=ye[S],v+=!j&&N(S)?E[I]:j||he(S)}return v}function Ct(E,v,S){var A="",j=E.tag,I,z;for(I=0,z=S.length;I<z;I+=1)k(E,v,S[I],!1,!1)&&(I!==0&&(A+=","+(E.condenseFlow?"":" ")),A+=E.dump);E.tag=j,E.dump="["+A+"]"}function Ht(E,v,S,A){var j="",I=E.tag,z,de;for(z=0,de=S.length;z<de;z+=1)k(E,v+1,S[z],!0,!0)&&((!A||z!==0)&&(j+=O(E,v)),E.dump&&
|
|
247
|
-
`:""}function
|
|
246
|
+
`+E.slice(z+1):ue+=E.slice(j),ue.slice(1)}function Pt(E){for(var v="",S,A,j,I=0;I<E.length;I++){if(S=E.charCodeAt(I),S>=55296&&S<=56319&&(A=E.charCodeAt(I+1),A>=56320&&A<=57343)){v+=he((S-55296)*1024+A-56320+65536),I++;continue}j=ye[S],v+=!j&&N(S)?E[I]:j||he(S)}return v}function Ct(E,v,S){var A="",j=E.tag,I,z;for(I=0,z=S.length;I<z;I+=1)k(E,v,S[I],!1,!1)&&(I!==0&&(A+=","+(E.condenseFlow?"":" ")),A+=E.dump);E.tag=j,E.dump="["+A+"]"}function Ht(E,v,S,A){var j="",I=E.tag,z,de;for(z=0,de=S.length;z<de;z+=1)k(E,v+1,S[z],!0,!0)&&((!A||z!==0)&&(j+=O(E,v)),E.dump&&h===E.dump.charCodeAt(0)?j+="-":j+="- ",j+=E.dump);E.tag=I,E.dump=j||"[]"}function ln(E,v,S){var A="",j=E.tag,I=Object.keys(S),z,de,ue,ke,Ae;for(z=0,de=I.length;z<de;z+=1)Ae="",z!==0&&(Ae+=", "),E.condenseFlow&&(Ae+='"'),ue=I[z],ke=S[ue],k(E,v,ue,!1,!1)&&(E.dump.length>1024&&(Ae+="? "),Ae+=E.dump+(E.condenseFlow?'"':"")+":"+(E.condenseFlow?"":" "),k(E,v,ke,!1,!1)&&(Ae+=E.dump,A+=Ae));E.tag=j,E.dump="{"+A+"}"}function on(E,v,S,A){var j="",I=E.tag,z=Object.keys(S),de,ue,ke,Ae,we,lt;if(E.sortKeys===!0)z.sort();else if(typeof E.sortKeys=="function")z.sort(E.sortKeys);else if(E.sortKeys)throw new a("sortKeys must be a boolean or a function");for(de=0,ue=z.length;de<ue;de+=1)lt="",(!A||de!==0)&&(lt+=O(E,v)),ke=z[de],Ae=S[ke],k(E,v+1,ke,!0,!0,!0)&&(we=E.tag!==null&&E.tag!=="?"||E.dump&&E.dump.length>1024,we&&(E.dump&&h===E.dump.charCodeAt(0)?lt+="?":lt+="? "),lt+=E.dump,we&&(lt+=O(E,v)),k(E,v+1,Ae,!0,we)&&(E.dump&&h===E.dump.charCodeAt(0)?lt+=":":lt+=": ",lt+=E.dump,j+=lt));E.tag=I,E.dump=j||"{}"}function Je(E,v,S){var A,j,I,z,de,ue;for(j=S?E.explicitTypes:E.implicitTypes,I=0,z=j.length;I<z;I+=1)if(de=j[I],(de.instanceOf||de.predicate)&&(!de.instanceOf||typeof v=="object"&&v instanceof de.instanceOf)&&(!de.predicate||de.predicate(v))){if(E.tag=S?de.tag:"?",de.represent){if(ue=E.styleMap[de.tag]||de.defaultStyle,u.call(de.represent)==="[object Function]")A=de.represent(v,ue);else if(c.call(de.represent,ue))A=de.represent[ue](v,ue);else throw new a("!<"+de.tag+'> tag resolver accepts not "'+ue+'" style');E.dump=A}return!0}return!1}function k(E,v,S,A,j,I){E.tag=null,E.dump=S,Je(E,S,!1)||Je(E,S,!0);var z=u.call(E.dump);A&&(A=E.flowLevel<0||E.flowLevel>v);var de=z==="[object Object]"||z==="[object Array]",ue,ke;if(de&&(ue=E.duplicates.indexOf(S),ke=ue!==-1),(E.tag!==null&&E.tag!=="?"||ke||E.indent!==2&&v>0)&&(j=!1),ke&&E.usedDuplicates[ue])E.dump="*ref_"+ue;else{if(de&&ke&&!E.usedDuplicates[ue]&&(E.usedDuplicates[ue]=!0),z==="[object Object]")A&&Object.keys(E.dump).length!==0?(on(E,v,E.dump,j),ke&&(E.dump="&ref_"+ue+E.dump)):(ln(E,v,E.dump),ke&&(E.dump="&ref_"+ue+" "+E.dump));else if(z==="[object Array]"){var Ae=E.noArrayIndent&&v>0?v-1:v;A&&E.dump.length!==0?(Ht(E,Ae,E.dump,j),ke&&(E.dump="&ref_"+ue+E.dump)):(Ct(E,Ae,E.dump),ke&&(E.dump="&ref_"+ue+" "+E.dump))}else if(z==="[object String]")E.tag!=="?"&&ut(E,E.dump,v,I);else{if(E.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+z)}E.tag!==null&&E.tag!=="?"&&(E.dump="!<"+E.tag+"> "+E.dump)}return!0}function M(E,v){var S=[],A=[],j,I;for(Z(E,S,A),j=0,I=A.length;j<I;j+=1)v.duplicates.push(S[A[j]]);v.usedDuplicates=new Array(I)}function Z(E,v,S){var A,j,I;if(E!==null&&typeof E=="object")if(j=v.indexOf(E),j!==-1)S.indexOf(j)===-1&&S.push(j);else if(v.push(E),Array.isArray(E))for(j=0,I=E.length;j<I;j+=1)Z(E[j],v,S);else for(A=Object.keys(E),j=0,I=A.length;j<I;j+=1)Z(E[A[j]],v,S)}function le(E,v){v=v||{};var S=new fe(v);return S.noRefs||M(E,S),k(S,0,E,!0,!0)?S.dump+`
|
|
247
|
+
`:""}function te(E,v){return le(E,t.extend({schema:o},v))}return dumper.dump=le,dumper.safeDump=te,dumper}var hasRequiredJsYaml$1;function requireJsYaml$1(){if(hasRequiredJsYaml$1)return jsYaml$1;hasRequiredJsYaml$1=1;var t=requireLoader(),a=requireDumper();function l(o){return function(){throw new Error("Function "+o+" 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() {
|
|
248
248
|
return `+str.trim()+`;
|
|
249
|
-
}());`),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 o=l===a?0:4-l%4;return[l,o]}function byteLength(t){var a=getLens(t),l=a[0],o=a[1];return(l+o)*3/4-o}function _byteLength(t,a,l){return(a+l)*3/4-l}function toByteArray(t){var a,l=getLens(t),o=l[0],u=l[1],c=new Arr(_byteLength(t,o,u)),d=0,
|
|
249
|
+
}());`),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 o=l===a?0:4-l%4;return[l,o]}function byteLength(t){var a=getLens(t),l=a[0],o=a[1];return(l+o)*3/4-o}function _byteLength(t,a,l){return(a+l)*3/4-l}function toByteArray(t){var a,l=getLens(t),o=l[0],u=l[1],c=new Arr(_byteLength(t,o,u)),d=0,h=u>0?o-4:o,p;for(p=0;p<h;p+=4)a=revLookup[t.charCodeAt(p)]<<18|revLookup[t.charCodeAt(p+1)]<<12|revLookup[t.charCodeAt(p+2)]<<6|revLookup[t.charCodeAt(p+3)],c[d++]=a>>16&255,c[d++]=a>>8&255,c[d++]=a&255;return u===2&&(a=revLookup[t.charCodeAt(p)]<<2|revLookup[t.charCodeAt(p+1)]>>4,c[d++]=a&255),u===1&&(a=revLookup[t.charCodeAt(p)]<<10|revLookup[t.charCodeAt(p+1)]<<4|revLookup[t.charCodeAt(p+2)]>>2,c[d++]=a>>8&255,c[d++]=a&255),c}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 o,u=[],c=a;c<l;c+=3)o=(t[c]<<16&16711680)+(t[c+1]<<8&65280)+(t[c+2]&255),u.push(tripletToBase64(o));return u.join("")}function fromByteArray(t){for(var a,l=t.length,o=l%3,u=[],c=16383,d=0,h=l-o;d<h;d+=c)u.push(encodeChunk(t,d,d+c>h?h:d+c));return o===1?(a=t[l-1],u.push(lookup[a>>2]+lookup[a<<4&63]+"==")):o===2&&(a=(t[l-2]<<8)+t[l-1],u.push(lookup[a>>10]+lookup[a>>4&63]+lookup[a<<2&63]+"=")),u.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(t,a,l,o,u){var c,d,h=u*8-o-1,p=(1<<h)-1,g=p>>1,x=-7,b=l?u-1:0,C=l?-1:1,R=t[a+b];for(b+=C,c=R&(1<<-x)-1,R>>=-x,x+=h;x>0;c=c*256+t[a+b],b+=C,x-=8);for(d=c&(1<<-x)-1,c>>=-x,x+=o;x>0;d=d*256+t[a+b],b+=C,x-=8);if(c===0)c=1-g;else{if(c===p)return d?NaN:(R?-1:1)*(1/0);d=d+Math.pow(2,o),c=c-g}return(R?-1:1)*d*Math.pow(2,c-o)};ieee754.write=function(t,a,l,o,u,c){var d,h,p,g=c*8-u-1,x=(1<<g)-1,b=x>>1,C=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=o?0:c-1,_=o?1:-1,B=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(h=isNaN(a)?1:0,d=x):(d=Math.floor(Math.log(a)/Math.LN2),a*(p=Math.pow(2,-d))<1&&(d--,p*=2),d+b>=1?a+=C/p:a+=C*Math.pow(2,1-b),a*p>=2&&(d++,p/=2),d+b>=x?(h=0,d=x):d+b>=1?(h=(a*p-1)*Math.pow(2,u),d=d+b):(h=a*Math.pow(2,b-1)*Math.pow(2,u),d=0));u>=8;t[l+R]=h&255,R+=_,h/=256,u-=8);for(d=d<<u|h,g+=u;g>0;t[l+R]=d&255,R+=_,d/=256,g-=8);t[l+R-_]|=B*128};/*!
|
|
250
250
|
* The buffer module from node.js, for the browser.
|
|
251
251
|
*
|
|
252
252
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
253
253
|
* @license MIT
|
|
254
|
-
*/(function(t){const a=base64Js,l=ieee754,o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=x,t.SlowBuffer=te,t.INSPECT_MAX_BYTES=50;const u=2147483647;t.kMaxLength=u;const{Uint8Array:c,ArrayBuffer:d,SharedArrayBuffer:g}=globalThis;x.TYPED_ARRAY_SUPPORT=p(),!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 p(){try{const E=new c(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,c.prototype),Object.setPrototypeOf(E,v),E.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(E){if(E>u)throw new RangeError('The value "'+E+'" is invalid for option "size"');const v=new c(E);return Object.setPrototypeOf(v,x.prototype),v}function x(E,v,S){if(typeof E=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(E)}return b(E,v,S)}x.poolSize=8192;function b(E,v,S){if(typeof E=="string")return B(E,v);if(d.isView(E))return D(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(k(E,d)||E&&k(E.buffer,d)||typeof g<"u"&&(k(E,g)||E&&k(E.buffer,g)))return H(E,v,S);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const A=E.valueOf&&E.valueOf();if(A!=null&&A!==E)return x.from(A,v,S);const j=V(E);if(j)return j;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return x.from(E[Symbol.toPrimitive]("string"),v,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}x.from=function(E,v,S){return b(E,v,S)},Object.setPrototypeOf(x.prototype,c.prototype),Object.setPrototypeOf(x,c);function C(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function R(E,v,S){return C(E),E<=0?m(E):v!==void 0?typeof S=="string"?m(E).fill(v,S):m(E).fill(v):m(E)}x.alloc=function(E,v,S){return R(E,v,S)};function _(E){return C(E),m(E<0?0:se(E)|0)}x.allocUnsafe=function(E){return _(E)},x.allocUnsafeSlow=function(E){return _(E)};function B(E,v){if((typeof v!="string"||v==="")&&(v="utf8"),!x.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const S=Y(E,v)|0;let A=m(S);const j=A.write(E,v);return j!==S&&(A=A.slice(0,j)),A}function L(E){const v=E.length<0?0:se(E.length)|0,S=m(v);for(let A=0;A<v;A+=1)S[A]=E[A]&255;return S}function D(E){if(k(E,c)){const v=new c(E);return H(v.buffer,v.byteOffset,v.byteLength)}return L(E)}function H(E,v,S){if(v<0||E.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<v+(S||0))throw new RangeError('"length" is outside of buffer bounds');let A;return v===void 0&&S===void 0?A=new c(E):S===void 0?A=new c(E,v):A=new c(E,v,S),Object.setPrototypeOf(A,x.prototype),A}function V(E){if(x.isBuffer(E)){const v=se(E.length)|0,S=m(v);return S.length===0||E.copy(S,0,0,v),S}if(E.length!==void 0)return typeof E.length!="number"||M(E.length)?m(0):L(E);if(E.type==="Buffer"&&Array.isArray(E.data))return L(E.data)}function se(E){if(E>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return E|0}function te(E){return+E!=E&&(E=0),x.alloc(+E)}x.isBuffer=function(v){return v!=null&&v._isBuffer===!0&&v!==x.prototype},x.compare=function(v,S){if(k(v,c)&&(v=x.from(v,v.offset,v.byteLength)),k(S,c)&&(S=x.from(S,S.offset,S.byteLength)),!x.isBuffer(v)||!x.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(v===S)return 0;let A=v.length,j=S.length;for(let I=0,z=Math.min(A,j);I<z;++I)if(v[I]!==S[I]){A=v[I],j=S[I];break}return A<j?-1:j<A?1:0},x.isEncoding=function(v){switch(String(v).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(v,S){if(!Array.isArray(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return x.alloc(0);let A;if(S===void 0)for(S=0,A=0;A<v.length;++A)S+=v[A].length;const j=x.allocUnsafe(S);let I=0;for(A=0;A<v.length;++A){let z=v[A];if(k(z,c))I+z.length>j.length?(x.isBuffer(z)||(z=x.from(z)),z.copy(j,I)):c.prototype.set.call(j,z,I);else if(x.isBuffer(z))z.copy(j,I);else throw new TypeError('"list" argument must be an Array of Buffers');I+=z.length}return j};function Y(E,v){if(x.isBuffer(E))return E.length;if(d.isView(E)||k(E,d))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);const S=E.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&S===0)return 0;let j=!1;for(;;)switch(v){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return Ct(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return on(E).length;default:if(j)return A?-1:Ct(E).length;v=(""+v).toLowerCase(),j=!0}}x.byteLength=Y;function ge(E,v,S){let A=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,v>>>=0,S<=v))return"";for(E||(E="utf8");;)switch(E){case"hex":return oe(this,v,S);case"utf8":case"utf-8":return he(this,v,S);case"ascii":return O(this,v,S);case"latin1":case"binary":return q(this,v,S);case"base64":return P(this,v,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,v,S);default:if(A)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),A=!0}}x.prototype._isBuffer=!0;function W(E,v,S){const A=E[v];E[v]=E[S],E[S]=A}x.prototype.swap16=function(){const v=this.length;if(v%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<v;S+=2)W(this,S,S+1);return this},x.prototype.swap32=function(){const v=this.length;if(v%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<v;S+=4)W(this,S,S+3),W(this,S+1,S+2);return this},x.prototype.swap64=function(){const v=this.length;if(v%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<v;S+=8)W(this,S,S+7),W(this,S+1,S+6),W(this,S+2,S+5),W(this,S+3,S+4);return this},x.prototype.toString=function(){const v=this.length;return v===0?"":arguments.length===0?he(this,0,v):ge.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(v){if(!x.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v?!0:x.compare(this,v)===0},x.prototype.inspect=function(){let v="";const S=t.INSPECT_MAX_BYTES;return v=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(v+=" ... "),"<Buffer "+v+">"},o&&(x.prototype[o]=x.prototype.inspect),x.prototype.compare=function(v,S,A,j,I){if(k(v,c)&&(v=x.from(v,v.offset,v.byteLength)),!x.isBuffer(v))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof v);if(S===void 0&&(S=0),A===void 0&&(A=v?v.length:0),j===void 0&&(j=0),I===void 0&&(I=this.length),S<0||A>v.length||j<0||I>this.length)throw new RangeError("out of range index");if(j>=I&&S>=A)return 0;if(j>=I)return-1;if(S>=A)return 1;if(S>>>=0,A>>>=0,j>>>=0,I>>>=0,this===v)return 0;let z=I-j,de=A-S;const ue=Math.min(z,de),ke=this.slice(j,I),Ae=v.slice(S,A);for(let we=0;we<ue;++we)if(ke[we]!==Ae[we]){z=ke[we],de=Ae[we];break}return z<de?-1:de<z?1:0};function ve(E,v,S,A,j){if(E.length===0)return-1;if(typeof S=="string"?(A=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,M(S)&&(S=j?0:E.length-1),S<0&&(S=E.length+S),S>=E.length){if(j)return-1;S=E.length-1}else if(S<0)if(j)S=0;else return-1;if(typeof v=="string"&&(v=x.from(v,A)),x.isBuffer(v))return v.length===0?-1:K(E,v,S,A,j);if(typeof v=="number")return v=v&255,typeof c.prototype.indexOf=="function"?j?c.prototype.indexOf.call(E,v,S):c.prototype.lastIndexOf.call(E,v,S):K(E,[v],S,A,j);throw new TypeError("val must be string, number or Buffer")}function K(E,v,S,A,j){let I=1,z=E.length,de=v.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(E.length<2||v.length<2)return-1;I=2,z/=2,de/=2,S/=2}function ue(Ae,we){return I===1?Ae[we]:Ae.readUInt16BE(we*I)}let ke;if(j){let Ae=-1;for(ke=S;ke<z;ke++)if(ue(E,ke)===ue(v,Ae===-1?0:ke-Ae)){if(Ae===-1&&(Ae=ke),ke-Ae+1===de)return Ae*I}else Ae!==-1&&(ke-=ke-Ae),Ae=-1}else for(S+de>z&&(S=z-de),ke=S;ke>=0;ke--){let Ae=!0;for(let we=0;we<de;we++)if(ue(E,ke+we)!==ue(v,we)){Ae=!1;break}if(Ae)return ke}return-1}x.prototype.includes=function(v,S,A){return this.indexOf(v,S,A)!==-1},x.prototype.indexOf=function(v,S,A){return ve(this,v,S,A,!0)},x.prototype.lastIndexOf=function(v,S,A){return ve(this,v,S,A,!1)};function Ee(E,v,S,A){S=Number(S)||0;const j=E.length-S;A?(A=Number(A),A>j&&(A=j)):A=j;const I=v.length;A>I/2&&(A=I/2);let z;for(z=0;z<A;++z){const de=parseInt(v.substr(z*2,2),16);if(M(de))return z;E[S+z]=de}return z}function ae(E,v,S,A){return Je(Ct(v,E.length-S),E,S,A)}function Ce(E,v,S,A){return Je(Ht(v),E,S,A)}function ye(E,v,S,A){return Je(on(v),E,S,A)}function ee(E,v,S,A){return Je(ln(v,E.length-S),E,S,A)}x.prototype.write=function(v,S,A,j){if(S===void 0)j="utf8",A=this.length,S=0;else if(A===void 0&&typeof S=="string")j=S,A=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(A)?(A=A>>>0,j===void 0&&(j="utf8")):(j=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const I=this.length-S;if((A===void 0||A>I)&&(A=I),v.length>0&&(A<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");j||(j="utf8");let z=!1;for(;;)switch(j){case"hex":return Ee(this,v,S,A);case"utf8":case"utf-8":return ae(this,v,S,A);case"ascii":case"latin1":case"binary":return Ce(this,v,S,A);case"base64":return ye(this,v,S,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,v,S,A);default:if(z)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),z=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(E,v,S){return v===0&&S===E.length?a.fromByteArray(E):a.fromByteArray(E.slice(v,S))}function he(E,v,S){S=Math.min(E.length,S);const A=[];let j=v;for(;j<S;){const I=E[j];let z=null,de=I>239?4:I>223?3:I>191?2:1;if(j+de<=S){let ue,ke,Ae,we;switch(de){case 1:I<128&&(z=I);break;case 2:ue=E[j+1],(ue&192)===128&&(we=(I&31)<<6|ue&63,we>127&&(z=we));break;case 3:ue=E[j+1],ke=E[j+2],(ue&192)===128&&(ke&192)===128&&(we=(I&15)<<12|(ue&63)<<6|ke&63,we>2047&&(we<55296||we>57343)&&(z=we));break;case 4:ue=E[j+1],ke=E[j+2],Ae=E[j+3],(ue&192)===128&&(ke&192)===128&&(Ae&192)===128&&(we=(I&15)<<18|(ue&63)<<12|(ke&63)<<6|Ae&63,we>65535&&we<1114112&&(z=we))}}z===null?(z=65533,de=1):z>65535&&(z-=65536,A.push(z>>>10&1023|55296),z=56320|z&1023),A.push(z),j+=de}return _e(A)}const fe=4096;function _e(E){const v=E.length;if(v<=fe)return String.fromCharCode.apply(String,E);let S="",A=0;for(;A<v;)S+=String.fromCharCode.apply(String,E.slice(A,A+=fe));return S}function O(E,v,S){let A="";S=Math.min(E.length,S);for(let j=v;j<S;++j)A+=String.fromCharCode(E[j]&127);return A}function q(E,v,S){let A="";S=Math.min(E.length,S);for(let j=v;j<S;++j)A+=String.fromCharCode(E[j]);return A}function oe(E,v,S){const A=E.length;(!v||v<0)&&(v=0),(!S||S<0||S>A)&&(S=A);let j="";for(let I=v;I<S;++I)j+=Z[E[I]];return j}function N(E,v,S){const A=E.slice(v,S);let j="";for(let I=0;I<A.length-1;I+=2)j+=String.fromCharCode(A[I]+A[I+1]*256);return j}x.prototype.slice=function(v,S){const A=this.length;v=~~v,S=S===void 0?A:~~S,v<0?(v+=A,v<0&&(v=0)):v>A&&(v=A),S<0?(S+=A,S<0&&(S=0)):S>A&&(S=A),S<v&&(S=v);const j=this.subarray(v,S);return Object.setPrototypeOf(j,x.prototype),j};function be(E,v,S){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+v>S)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(v,S,A){v=v>>>0,S=S>>>0,A||be(v,S,this.length);let j=this[v],I=1,z=0;for(;++z<S&&(I*=256);)j+=this[v+z]*I;return j},x.prototype.readUintBE=x.prototype.readUIntBE=function(v,S,A){v=v>>>0,S=S>>>0,A||be(v,S,this.length);let j=this[v+--S],I=1;for(;S>0&&(I*=256);)j+=this[v+--S]*I;return j},x.prototype.readUint8=x.prototype.readUInt8=function(v,S){return v=v>>>0,S||be(v,1,this.length),this[v]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(v,S){return v=v>>>0,S||be(v,2,this.length),this[v]|this[v+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(v,S){return v=v>>>0,S||be(v,2,this.length),this[v]<<8|this[v+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(v,S){return v=v>>>0,S||be(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+this[v+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(v,S){return v=v>>>0,S||be(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},x.prototype.readBigUInt64LE=le(function(v){v=v>>>0,mt(v,"offset");const S=this[v],A=this[v+7];(S===void 0||A===void 0)&&Tt(v,this.length-8);const j=S+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24,I=this[++v]+this[++v]*2**8+this[++v]*2**16+A*2**24;return BigInt(j)+(BigInt(I)<<BigInt(32))}),x.prototype.readBigUInt64BE=le(function(v){v=v>>>0,mt(v,"offset");const S=this[v],A=this[v+7];(S===void 0||A===void 0)&&Tt(v,this.length-8);const j=S*2**24+this[++v]*2**16+this[++v]*2**8+this[++v],I=this[++v]*2**24+this[++v]*2**16+this[++v]*2**8+A;return(BigInt(j)<<BigInt(32))+BigInt(I)}),x.prototype.readIntLE=function(v,S,A){v=v>>>0,S=S>>>0,A||be(v,S,this.length);let j=this[v],I=1,z=0;for(;++z<S&&(I*=256);)j+=this[v+z]*I;return I*=128,j>=I&&(j-=Math.pow(2,8*S)),j},x.prototype.readIntBE=function(v,S,A){v=v>>>0,S=S>>>0,A||be(v,S,this.length);let j=S,I=1,z=this[v+--j];for(;j>0&&(I*=256);)z+=this[v+--j]*I;return I*=128,z>=I&&(z-=Math.pow(2,8*S)),z},x.prototype.readInt8=function(v,S){return v=v>>>0,S||be(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},x.prototype.readInt16LE=function(v,S){v=v>>>0,S||be(v,2,this.length);const A=this[v]|this[v+1]<<8;return A&32768?A|4294901760:A},x.prototype.readInt16BE=function(v,S){v=v>>>0,S||be(v,2,this.length);const A=this[v+1]|this[v]<<8;return A&32768?A|4294901760:A},x.prototype.readInt32LE=function(v,S){return v=v>>>0,S||be(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},x.prototype.readInt32BE=function(v,S){return v=v>>>0,S||be(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},x.prototype.readBigInt64LE=le(function(v){v=v>>>0,mt(v,"offset");const S=this[v],A=this[v+7];(S===void 0||A===void 0)&&Tt(v,this.length-8);const j=this[v+4]+this[v+5]*2**8+this[v+6]*2**16+(A<<24);return(BigInt(j)<<BigInt(32))+BigInt(S+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24)}),x.prototype.readBigInt64BE=le(function(v){v=v>>>0,mt(v,"offset");const S=this[v],A=this[v+7];(S===void 0||A===void 0)&&Tt(v,this.length-8);const j=(S<<24)+this[++v]*2**16+this[++v]*2**8+this[++v];return(BigInt(j)<<BigInt(32))+BigInt(this[++v]*2**24+this[++v]*2**16+this[++v]*2**8+A)}),x.prototype.readFloatLE=function(v,S){return v=v>>>0,S||be(v,4,this.length),l.read(this,v,!0,23,4)},x.prototype.readFloatBE=function(v,S){return v=v>>>0,S||be(v,4,this.length),l.read(this,v,!1,23,4)},x.prototype.readDoubleLE=function(v,S){return v=v>>>0,S||be(v,8,this.length),l.read(this,v,!0,52,8)},x.prototype.readDoubleBE=function(v,S){return v=v>>>0,S||be(v,8,this.length),l.read(this,v,!1,52,8)};function xe(E,v,S,A,j,I){if(!x.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>j||v<I)throw new RangeError('"value" argument is out of bounds');if(S+A>E.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(v,S,A,j){if(v=+v,S=S>>>0,A=A>>>0,!j){const de=Math.pow(2,8*A)-1;xe(this,v,S,A,de,0)}let I=1,z=0;for(this[S]=v&255;++z<A&&(I*=256);)this[S+z]=v/I&255;return S+A},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(v,S,A,j){if(v=+v,S=S>>>0,A=A>>>0,!j){const de=Math.pow(2,8*A)-1;xe(this,v,S,A,de,0)}let I=A-1,z=1;for(this[S+I]=v&255;--I>=0&&(z*=256);)this[S+I]=v/z&255;return S+A},x.prototype.writeUint8=x.prototype.writeUInt8=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,1,255,0),this[S]=v&255,S+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,2,65535,0),this[S]=v&255,this[S+1]=v>>>8,S+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,2,65535,0),this[S]=v>>>8,this[S+1]=v&255,S+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,4,4294967295,0),this[S+3]=v>>>24,this[S+2]=v>>>16,this[S+1]=v>>>8,this[S]=v&255,S+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,4,4294967295,0),this[S]=v>>>24,this[S+1]=v>>>16,this[S+2]=v>>>8,this[S+3]=v&255,S+4};function Se(E,v,S,A,j){At(v,A,j,E,S,7);let I=Number(v&BigInt(4294967295));E[S++]=I,I=I>>8,E[S++]=I,I=I>>8,E[S++]=I,I=I>>8,E[S++]=I;let z=Number(v>>BigInt(32)&BigInt(4294967295));return E[S++]=z,z=z>>8,E[S++]=z,z=z>>8,E[S++]=z,z=z>>8,E[S++]=z,S}function Oe(E,v,S,A,j){At(v,A,j,E,S,7);let I=Number(v&BigInt(4294967295));E[S+7]=I,I=I>>8,E[S+6]=I,I=I>>8,E[S+5]=I,I=I>>8,E[S+4]=I;let z=Number(v>>BigInt(32)&BigInt(4294967295));return E[S+3]=z,z=z>>8,E[S+2]=z,z=z>>8,E[S+1]=z,z=z>>8,E[S]=z,S+8}x.prototype.writeBigUInt64LE=le(function(v,S=0){return Se(this,v,S,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=le(function(v,S=0){return Oe(this,v,S,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(v,S,A,j){if(v=+v,S=S>>>0,!j){const ue=Math.pow(2,8*A-1);xe(this,v,S,A,ue-1,-ue)}let I=0,z=1,de=0;for(this[S]=v&255;++I<A&&(z*=256);)v<0&&de===0&&this[S+I-1]!==0&&(de=1),this[S+I]=(v/z>>0)-de&255;return S+A},x.prototype.writeIntBE=function(v,S,A,j){if(v=+v,S=S>>>0,!j){const ue=Math.pow(2,8*A-1);xe(this,v,S,A,ue-1,-ue)}let I=A-1,z=1,de=0;for(this[S+I]=v&255;--I>=0&&(z*=256);)v<0&&de===0&&this[S+I+1]!==0&&(de=1),this[S+I]=(v/z>>0)-de&255;return S+A},x.prototype.writeInt8=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,1,127,-128),v<0&&(v=255+v+1),this[S]=v&255,S+1},x.prototype.writeInt16LE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,2,32767,-32768),this[S]=v&255,this[S+1]=v>>>8,S+2},x.prototype.writeInt16BE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,2,32767,-32768),this[S]=v>>>8,this[S+1]=v&255,S+2},x.prototype.writeInt32LE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,4,2147483647,-2147483648),this[S]=v&255,this[S+1]=v>>>8,this[S+2]=v>>>16,this[S+3]=v>>>24,S+4},x.prototype.writeInt32BE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),this[S]=v>>>24,this[S+1]=v>>>16,this[S+2]=v>>>8,this[S+3]=v&255,S+4},x.prototype.writeBigInt64LE=le(function(v,S=0){return Se(this,v,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=le(function(v,S=0){return Oe(this,v,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(E,v,S,A,j,I){if(S+A>E.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function je(E,v,S,A,j){return v=+v,S=S>>>0,j||qe(E,v,S,4),l.write(E,v,S,A,23,4),S+4}x.prototype.writeFloatLE=function(v,S,A){return je(this,v,S,!0,A)},x.prototype.writeFloatBE=function(v,S,A){return je(this,v,S,!1,A)};function nt(E,v,S,A,j){return v=+v,S=S>>>0,j||qe(E,v,S,8),l.write(E,v,S,A,52,8),S+8}x.prototype.writeDoubleLE=function(v,S,A){return nt(this,v,S,!0,A)},x.prototype.writeDoubleBE=function(v,S,A){return nt(this,v,S,!1,A)},x.prototype.copy=function(v,S,A,j){if(!x.isBuffer(v))throw new TypeError("argument should be a Buffer");if(A||(A=0),!j&&j!==0&&(j=this.length),S>=v.length&&(S=v.length),S||(S=0),j>0&&j<A&&(j=A),j===A||v.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),v.length-S<j-A&&(j=v.length-S+A);const I=j-A;return this===v&&typeof c.prototype.copyWithin=="function"?this.copyWithin(S,A,j):c.prototype.set.call(v,this.subarray(A,j),S),I},x.prototype.fill=function(v,S,A,j){if(typeof v=="string"){if(typeof S=="string"?(j=S,S=0,A=this.length):typeof A=="string"&&(j=A,A=this.length),j!==void 0&&typeof j!="string")throw new TypeError("encoding must be a string");if(typeof j=="string"&&!x.isEncoding(j))throw new TypeError("Unknown encoding: "+j);if(v.length===1){const z=v.charCodeAt(0);(j==="utf8"&&z<128||j==="latin1")&&(v=z)}}else typeof v=="number"?v=v&255:typeof v=="boolean"&&(v=Number(v));if(S<0||this.length<S||this.length<A)throw new RangeError("Out of range index");if(A<=S)return this;S=S>>>0,A=A===void 0?this.length:A>>>0,v||(v=0);let I;if(typeof v=="number")for(I=S;I<A;++I)this[I]=v;else{const z=x.isBuffer(v)?v:x.from(v,j),de=z.length;if(de===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(I=0;I<A-S;++I)this[I+S]=z[I%de]}return this};const Qe={};function at(E,v,S){Qe[E]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:v.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${E}]`,this.stack,delete this.name}get code(){return E}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${E}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(E){return E?`${E} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(E,v){return`The "${E}" argument must be of type number. Received type ${typeof v}`},TypeError),at("ERR_OUT_OF_RANGE",function(E,v,S){let A=`The value of "${E}" is out of range.`,j=S;return Number.isInteger(S)&&Math.abs(S)>2**32?j=kt(String(S)):typeof S=="bigint"&&(j=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(j=kt(j)),j+="n"),A+=` It must be ${v}. Received ${j}`,A},RangeError);function kt(E){let v="",S=E.length;const A=E[0]==="-"?1:0;for(;S>=A+4;S-=3)v=`_${E.slice(S-3,S)}${v}`;return`${E.slice(0,S)}${v}`}function ut(E,v,S){mt(v,"offset"),(E[v]===void 0||E[v+S]===void 0)&&Tt(v,E.length-(S+1))}function At(E,v,S,A,j,I){if(E>S||E<v){const z=typeof v=="bigint"?"n":"";let de;throw v===0||v===BigInt(0)?de=`>= 0${z} and < 2${z} ** ${(I+1)*8}${z}`:de=`>= -(2${z} ** ${(I+1)*8-1}${z}) and < 2 ** ${(I+1)*8-1}${z}`,new Qe.ERR_OUT_OF_RANGE("value",de,E)}ut(A,j,I)}function mt(E,v){if(typeof E!="number")throw new Qe.ERR_INVALID_ARG_TYPE(v,"number",E)}function Tt(E,v,S){throw Math.floor(E)!==E?(mt(E,S),new Qe.ERR_OUT_OF_RANGE("offset","an integer",E)):v<0?new Qe.ERR_BUFFER_OUT_OF_BOUNDS:new Qe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${v}`,E)}const wt=/[^+/0-9A-Za-z-_]/g;function Pt(E){if(E=E.split("=")[0],E=E.trim().replace(wt,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function Ct(E,v){v=v||1/0;let S;const A=E.length;let j=null;const I=[];for(let z=0;z<A;++z){if(S=E.charCodeAt(z),S>55295&&S<57344){if(!j){if(S>56319){(v-=3)>-1&&I.push(239,191,189);continue}else if(z+1===A){(v-=3)>-1&&I.push(239,191,189);continue}j=S;continue}if(S<56320){(v-=3)>-1&&I.push(239,191,189),j=S;continue}S=(j-55296<<10|S-56320)+65536}else j&&(v-=3)>-1&&I.push(239,191,189);if(j=null,S<128){if((v-=1)<0)break;I.push(S)}else if(S<2048){if((v-=2)<0)break;I.push(S>>6|192,S&63|128)}else if(S<65536){if((v-=3)<0)break;I.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((v-=4)<0)break;I.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return I}function Ht(E){const v=[];for(let S=0;S<E.length;++S)v.push(E.charCodeAt(S)&255);return v}function ln(E,v){let S,A,j;const I=[];for(let z=0;z<E.length&&!((v-=2)<0);++z)S=E.charCodeAt(z),A=S>>8,j=S%256,I.push(j),I.push(A);return I}function on(E){return a.toByteArray(Pt(E))}function Je(E,v,S,A){let j;for(j=0;j<A&&!(j+S>=v.length||j>=E.length);++j)v[j+S]=E[j];return j}function k(E,v){return E instanceof v||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===v.name}function M(E){return E!==E}const Z=(function(){const E="0123456789abcdef",v=new Array(256);for(let S=0;S<16;++S){const A=S*16;for(let j=0;j<16;++j)v[A+j]=E[S]+E[j]}return v})();function le(E){return typeof BigInt>"u"?ne:E}function ne(){throw new Error("BigInt not supported")}})(buffer);const Buffer=buffer.Buffer;var utils={};/*!
|
|
254
|
+
*/(function(t){const a=base64Js,l=ieee754,o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=x,t.SlowBuffer=ie,t.INSPECT_MAX_BYTES=50;const u=2147483647;t.kMaxLength=u;const{Uint8Array:c,ArrayBuffer:d,SharedArrayBuffer:h}=globalThis;x.TYPED_ARRAY_SUPPORT=p(),!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 p(){try{const E=new c(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,c.prototype),Object.setPrototypeOf(E,v),E.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 g(E){if(E>u)throw new RangeError('The value "'+E+'" is invalid for option "size"');const v=new c(E);return Object.setPrototypeOf(v,x.prototype),v}function x(E,v,S){if(typeof E=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(E)}return b(E,v,S)}x.poolSize=8192;function b(E,v,S){if(typeof E=="string")return B(E,v);if(d.isView(E))return D(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(k(E,d)||E&&k(E.buffer,d)||typeof h<"u"&&(k(E,h)||E&&k(E.buffer,h)))return $(E,v,S);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const A=E.valueOf&&E.valueOf();if(A!=null&&A!==E)return x.from(A,v,S);const j=V(E);if(j)return j;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return x.from(E[Symbol.toPrimitive]("string"),v,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}x.from=function(E,v,S){return b(E,v,S)},Object.setPrototypeOf(x.prototype,c.prototype),Object.setPrototypeOf(x,c);function C(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function R(E,v,S){return C(E),E<=0?g(E):v!==void 0?typeof S=="string"?g(E).fill(v,S):g(E).fill(v):g(E)}x.alloc=function(E,v,S){return R(E,v,S)};function _(E){return C(E),g(E<0?0:se(E)|0)}x.allocUnsafe=function(E){return _(E)},x.allocUnsafeSlow=function(E){return _(E)};function B(E,v){if((typeof v!="string"||v==="")&&(v="utf8"),!x.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const S=H(E,v)|0;let A=g(S);const j=A.write(E,v);return j!==S&&(A=A.slice(0,j)),A}function L(E){const v=E.length<0?0:se(E.length)|0,S=g(v);for(let A=0;A<v;A+=1)S[A]=E[A]&255;return S}function D(E){if(k(E,c)){const v=new c(E);return $(v.buffer,v.byteOffset,v.byteLength)}return L(E)}function $(E,v,S){if(v<0||E.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<v+(S||0))throw new RangeError('"length" is outside of buffer bounds');let A;return v===void 0&&S===void 0?A=new c(E):S===void 0?A=new c(E,v):A=new c(E,v,S),Object.setPrototypeOf(A,x.prototype),A}function V(E){if(x.isBuffer(E)){const v=se(E.length)|0,S=g(v);return S.length===0||E.copy(S,0,0,v),S}if(E.length!==void 0)return typeof E.length!="number"||M(E.length)?g(0):L(E);if(E.type==="Buffer"&&Array.isArray(E.data))return L(E.data)}function se(E){if(E>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return E|0}function ie(E){return+E!=E&&(E=0),x.alloc(+E)}x.isBuffer=function(v){return v!=null&&v._isBuffer===!0&&v!==x.prototype},x.compare=function(v,S){if(k(v,c)&&(v=x.from(v,v.offset,v.byteLength)),k(S,c)&&(S=x.from(S,S.offset,S.byteLength)),!x.isBuffer(v)||!x.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(v===S)return 0;let A=v.length,j=S.length;for(let I=0,z=Math.min(A,j);I<z;++I)if(v[I]!==S[I]){A=v[I],j=S[I];break}return A<j?-1:j<A?1:0},x.isEncoding=function(v){switch(String(v).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(v,S){if(!Array.isArray(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return x.alloc(0);let A;if(S===void 0)for(S=0,A=0;A<v.length;++A)S+=v[A].length;const j=x.allocUnsafe(S);let I=0;for(A=0;A<v.length;++A){let z=v[A];if(k(z,c))I+z.length>j.length?(x.isBuffer(z)||(z=x.from(z)),z.copy(j,I)):c.prototype.set.call(j,z,I);else if(x.isBuffer(z))z.copy(j,I);else throw new TypeError('"list" argument must be an Array of Buffers');I+=z.length}return j};function H(E,v){if(x.isBuffer(E))return E.length;if(d.isView(E)||k(E,d))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);const S=E.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&S===0)return 0;let j=!1;for(;;)switch(v){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return Ct(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return on(E).length;default:if(j)return A?-1:Ct(E).length;v=(""+v).toLowerCase(),j=!0}}x.byteLength=H;function ge(E,v,S){let A=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,v>>>=0,S<=v))return"";for(E||(E="utf8");;)switch(E){case"hex":return oe(this,v,S);case"utf8":case"utf-8":return he(this,v,S);case"ascii":return O(this,v,S);case"latin1":case"binary":return q(this,v,S);case"base64":return P(this,v,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,v,S);default:if(A)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),A=!0}}x.prototype._isBuffer=!0;function W(E,v,S){const A=E[v];E[v]=E[S],E[S]=A}x.prototype.swap16=function(){const v=this.length;if(v%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<v;S+=2)W(this,S,S+1);return this},x.prototype.swap32=function(){const v=this.length;if(v%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<v;S+=4)W(this,S,S+3),W(this,S+1,S+2);return this},x.prototype.swap64=function(){const v=this.length;if(v%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<v;S+=8)W(this,S,S+7),W(this,S+1,S+6),W(this,S+2,S+5),W(this,S+3,S+4);return this},x.prototype.toString=function(){const v=this.length;return v===0?"":arguments.length===0?he(this,0,v):ge.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(v){if(!x.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v?!0:x.compare(this,v)===0},x.prototype.inspect=function(){let v="";const S=t.INSPECT_MAX_BYTES;return v=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(v+=" ... "),"<Buffer "+v+">"},o&&(x.prototype[o]=x.prototype.inspect),x.prototype.compare=function(v,S,A,j,I){if(k(v,c)&&(v=x.from(v,v.offset,v.byteLength)),!x.isBuffer(v))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof v);if(S===void 0&&(S=0),A===void 0&&(A=v?v.length:0),j===void 0&&(j=0),I===void 0&&(I=this.length),S<0||A>v.length||j<0||I>this.length)throw new RangeError("out of range index");if(j>=I&&S>=A)return 0;if(j>=I)return-1;if(S>=A)return 1;if(S>>>=0,A>>>=0,j>>>=0,I>>>=0,this===v)return 0;let z=I-j,de=A-S;const ue=Math.min(z,de),ke=this.slice(j,I),Ae=v.slice(S,A);for(let we=0;we<ue;++we)if(ke[we]!==Ae[we]){z=ke[we],de=Ae[we];break}return z<de?-1:de<z?1:0};function ve(E,v,S,A,j){if(E.length===0)return-1;if(typeof S=="string"?(A=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,M(S)&&(S=j?0:E.length-1),S<0&&(S=E.length+S),S>=E.length){if(j)return-1;S=E.length-1}else if(S<0)if(j)S=0;else return-1;if(typeof v=="string"&&(v=x.from(v,A)),x.isBuffer(v))return v.length===0?-1:K(E,v,S,A,j);if(typeof v=="number")return v=v&255,typeof c.prototype.indexOf=="function"?j?c.prototype.indexOf.call(E,v,S):c.prototype.lastIndexOf.call(E,v,S):K(E,[v],S,A,j);throw new TypeError("val must be string, number or Buffer")}function K(E,v,S,A,j){let I=1,z=E.length,de=v.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(E.length<2||v.length<2)return-1;I=2,z/=2,de/=2,S/=2}function ue(Ae,we){return I===1?Ae[we]:Ae.readUInt16BE(we*I)}let ke;if(j){let Ae=-1;for(ke=S;ke<z;ke++)if(ue(E,ke)===ue(v,Ae===-1?0:ke-Ae)){if(Ae===-1&&(Ae=ke),ke-Ae+1===de)return Ae*I}else Ae!==-1&&(ke-=ke-Ae),Ae=-1}else for(S+de>z&&(S=z-de),ke=S;ke>=0;ke--){let Ae=!0;for(let we=0;we<de;we++)if(ue(E,ke+we)!==ue(v,we)){Ae=!1;break}if(Ae)return ke}return-1}x.prototype.includes=function(v,S,A){return this.indexOf(v,S,A)!==-1},x.prototype.indexOf=function(v,S,A){return ve(this,v,S,A,!0)},x.prototype.lastIndexOf=function(v,S,A){return ve(this,v,S,A,!1)};function Ee(E,v,S,A){S=Number(S)||0;const j=E.length-S;A?(A=Number(A),A>j&&(A=j)):A=j;const I=v.length;A>I/2&&(A=I/2);let z;for(z=0;z<A;++z){const de=parseInt(v.substr(z*2,2),16);if(M(de))return z;E[S+z]=de}return z}function ae(E,v,S,A){return Je(Ct(v,E.length-S),E,S,A)}function Ce(E,v,S,A){return Je(Ht(v),E,S,A)}function ye(E,v,S,A){return Je(on(v),E,S,A)}function ee(E,v,S,A){return Je(ln(v,E.length-S),E,S,A)}x.prototype.write=function(v,S,A,j){if(S===void 0)j="utf8",A=this.length,S=0;else if(A===void 0&&typeof S=="string")j=S,A=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(A)?(A=A>>>0,j===void 0&&(j="utf8")):(j=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const I=this.length-S;if((A===void 0||A>I)&&(A=I),v.length>0&&(A<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");j||(j="utf8");let z=!1;for(;;)switch(j){case"hex":return Ee(this,v,S,A);case"utf8":case"utf-8":return ae(this,v,S,A);case"ascii":case"latin1":case"binary":return Ce(this,v,S,A);case"base64":return ye(this,v,S,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,v,S,A);default:if(z)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),z=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(E,v,S){return v===0&&S===E.length?a.fromByteArray(E):a.fromByteArray(E.slice(v,S))}function he(E,v,S){S=Math.min(E.length,S);const A=[];let j=v;for(;j<S;){const I=E[j];let z=null,de=I>239?4:I>223?3:I>191?2:1;if(j+de<=S){let ue,ke,Ae,we;switch(de){case 1:I<128&&(z=I);break;case 2:ue=E[j+1],(ue&192)===128&&(we=(I&31)<<6|ue&63,we>127&&(z=we));break;case 3:ue=E[j+1],ke=E[j+2],(ue&192)===128&&(ke&192)===128&&(we=(I&15)<<12|(ue&63)<<6|ke&63,we>2047&&(we<55296||we>57343)&&(z=we));break;case 4:ue=E[j+1],ke=E[j+2],Ae=E[j+3],(ue&192)===128&&(ke&192)===128&&(Ae&192)===128&&(we=(I&15)<<18|(ue&63)<<12|(ke&63)<<6|Ae&63,we>65535&&we<1114112&&(z=we))}}z===null?(z=65533,de=1):z>65535&&(z-=65536,A.push(z>>>10&1023|55296),z=56320|z&1023),A.push(z),j+=de}return _e(A)}const fe=4096;function _e(E){const v=E.length;if(v<=fe)return String.fromCharCode.apply(String,E);let S="",A=0;for(;A<v;)S+=String.fromCharCode.apply(String,E.slice(A,A+=fe));return S}function O(E,v,S){let A="";S=Math.min(E.length,S);for(let j=v;j<S;++j)A+=String.fromCharCode(E[j]&127);return A}function q(E,v,S){let A="";S=Math.min(E.length,S);for(let j=v;j<S;++j)A+=String.fromCharCode(E[j]);return A}function oe(E,v,S){const A=E.length;(!v||v<0)&&(v=0),(!S||S<0||S>A)&&(S=A);let j="";for(let I=v;I<S;++I)j+=Z[E[I]];return j}function N(E,v,S){const A=E.slice(v,S);let j="";for(let I=0;I<A.length-1;I+=2)j+=String.fromCharCode(A[I]+A[I+1]*256);return j}x.prototype.slice=function(v,S){const A=this.length;v=~~v,S=S===void 0?A:~~S,v<0?(v+=A,v<0&&(v=0)):v>A&&(v=A),S<0?(S+=A,S<0&&(S=0)):S>A&&(S=A),S<v&&(S=v);const j=this.subarray(v,S);return Object.setPrototypeOf(j,x.prototype),j};function be(E,v,S){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+v>S)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(v,S,A){v=v>>>0,S=S>>>0,A||be(v,S,this.length);let j=this[v],I=1,z=0;for(;++z<S&&(I*=256);)j+=this[v+z]*I;return j},x.prototype.readUintBE=x.prototype.readUIntBE=function(v,S,A){v=v>>>0,S=S>>>0,A||be(v,S,this.length);let j=this[v+--S],I=1;for(;S>0&&(I*=256);)j+=this[v+--S]*I;return j},x.prototype.readUint8=x.prototype.readUInt8=function(v,S){return v=v>>>0,S||be(v,1,this.length),this[v]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(v,S){return v=v>>>0,S||be(v,2,this.length),this[v]|this[v+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(v,S){return v=v>>>0,S||be(v,2,this.length),this[v]<<8|this[v+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(v,S){return v=v>>>0,S||be(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+this[v+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(v,S){return v=v>>>0,S||be(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},x.prototype.readBigUInt64LE=le(function(v){v=v>>>0,mt(v,"offset");const S=this[v],A=this[v+7];(S===void 0||A===void 0)&&Tt(v,this.length-8);const j=S+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24,I=this[++v]+this[++v]*2**8+this[++v]*2**16+A*2**24;return BigInt(j)+(BigInt(I)<<BigInt(32))}),x.prototype.readBigUInt64BE=le(function(v){v=v>>>0,mt(v,"offset");const S=this[v],A=this[v+7];(S===void 0||A===void 0)&&Tt(v,this.length-8);const j=S*2**24+this[++v]*2**16+this[++v]*2**8+this[++v],I=this[++v]*2**24+this[++v]*2**16+this[++v]*2**8+A;return(BigInt(j)<<BigInt(32))+BigInt(I)}),x.prototype.readIntLE=function(v,S,A){v=v>>>0,S=S>>>0,A||be(v,S,this.length);let j=this[v],I=1,z=0;for(;++z<S&&(I*=256);)j+=this[v+z]*I;return I*=128,j>=I&&(j-=Math.pow(2,8*S)),j},x.prototype.readIntBE=function(v,S,A){v=v>>>0,S=S>>>0,A||be(v,S,this.length);let j=S,I=1,z=this[v+--j];for(;j>0&&(I*=256);)z+=this[v+--j]*I;return I*=128,z>=I&&(z-=Math.pow(2,8*S)),z},x.prototype.readInt8=function(v,S){return v=v>>>0,S||be(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},x.prototype.readInt16LE=function(v,S){v=v>>>0,S||be(v,2,this.length);const A=this[v]|this[v+1]<<8;return A&32768?A|4294901760:A},x.prototype.readInt16BE=function(v,S){v=v>>>0,S||be(v,2,this.length);const A=this[v+1]|this[v]<<8;return A&32768?A|4294901760:A},x.prototype.readInt32LE=function(v,S){return v=v>>>0,S||be(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},x.prototype.readInt32BE=function(v,S){return v=v>>>0,S||be(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},x.prototype.readBigInt64LE=le(function(v){v=v>>>0,mt(v,"offset");const S=this[v],A=this[v+7];(S===void 0||A===void 0)&&Tt(v,this.length-8);const j=this[v+4]+this[v+5]*2**8+this[v+6]*2**16+(A<<24);return(BigInt(j)<<BigInt(32))+BigInt(S+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24)}),x.prototype.readBigInt64BE=le(function(v){v=v>>>0,mt(v,"offset");const S=this[v],A=this[v+7];(S===void 0||A===void 0)&&Tt(v,this.length-8);const j=(S<<24)+this[++v]*2**16+this[++v]*2**8+this[++v];return(BigInt(j)<<BigInt(32))+BigInt(this[++v]*2**24+this[++v]*2**16+this[++v]*2**8+A)}),x.prototype.readFloatLE=function(v,S){return v=v>>>0,S||be(v,4,this.length),l.read(this,v,!0,23,4)},x.prototype.readFloatBE=function(v,S){return v=v>>>0,S||be(v,4,this.length),l.read(this,v,!1,23,4)},x.prototype.readDoubleLE=function(v,S){return v=v>>>0,S||be(v,8,this.length),l.read(this,v,!0,52,8)},x.prototype.readDoubleBE=function(v,S){return v=v>>>0,S||be(v,8,this.length),l.read(this,v,!1,52,8)};function xe(E,v,S,A,j,I){if(!x.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>j||v<I)throw new RangeError('"value" argument is out of bounds');if(S+A>E.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(v,S,A,j){if(v=+v,S=S>>>0,A=A>>>0,!j){const de=Math.pow(2,8*A)-1;xe(this,v,S,A,de,0)}let I=1,z=0;for(this[S]=v&255;++z<A&&(I*=256);)this[S+z]=v/I&255;return S+A},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(v,S,A,j){if(v=+v,S=S>>>0,A=A>>>0,!j){const de=Math.pow(2,8*A)-1;xe(this,v,S,A,de,0)}let I=A-1,z=1;for(this[S+I]=v&255;--I>=0&&(z*=256);)this[S+I]=v/z&255;return S+A},x.prototype.writeUint8=x.prototype.writeUInt8=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,1,255,0),this[S]=v&255,S+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,2,65535,0),this[S]=v&255,this[S+1]=v>>>8,S+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,2,65535,0),this[S]=v>>>8,this[S+1]=v&255,S+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,4,4294967295,0),this[S+3]=v>>>24,this[S+2]=v>>>16,this[S+1]=v>>>8,this[S]=v&255,S+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,4,4294967295,0),this[S]=v>>>24,this[S+1]=v>>>16,this[S+2]=v>>>8,this[S+3]=v&255,S+4};function Se(E,v,S,A,j){At(v,A,j,E,S,7);let I=Number(v&BigInt(4294967295));E[S++]=I,I=I>>8,E[S++]=I,I=I>>8,E[S++]=I,I=I>>8,E[S++]=I;let z=Number(v>>BigInt(32)&BigInt(4294967295));return E[S++]=z,z=z>>8,E[S++]=z,z=z>>8,E[S++]=z,z=z>>8,E[S++]=z,S}function Oe(E,v,S,A,j){At(v,A,j,E,S,7);let I=Number(v&BigInt(4294967295));E[S+7]=I,I=I>>8,E[S+6]=I,I=I>>8,E[S+5]=I,I=I>>8,E[S+4]=I;let z=Number(v>>BigInt(32)&BigInt(4294967295));return E[S+3]=z,z=z>>8,E[S+2]=z,z=z>>8,E[S+1]=z,z=z>>8,E[S]=z,S+8}x.prototype.writeBigUInt64LE=le(function(v,S=0){return Se(this,v,S,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=le(function(v,S=0){return Oe(this,v,S,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(v,S,A,j){if(v=+v,S=S>>>0,!j){const ue=Math.pow(2,8*A-1);xe(this,v,S,A,ue-1,-ue)}let I=0,z=1,de=0;for(this[S]=v&255;++I<A&&(z*=256);)v<0&&de===0&&this[S+I-1]!==0&&(de=1),this[S+I]=(v/z>>0)-de&255;return S+A},x.prototype.writeIntBE=function(v,S,A,j){if(v=+v,S=S>>>0,!j){const ue=Math.pow(2,8*A-1);xe(this,v,S,A,ue-1,-ue)}let I=A-1,z=1,de=0;for(this[S+I]=v&255;--I>=0&&(z*=256);)v<0&&de===0&&this[S+I+1]!==0&&(de=1),this[S+I]=(v/z>>0)-de&255;return S+A},x.prototype.writeInt8=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,1,127,-128),v<0&&(v=255+v+1),this[S]=v&255,S+1},x.prototype.writeInt16LE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,2,32767,-32768),this[S]=v&255,this[S+1]=v>>>8,S+2},x.prototype.writeInt16BE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,2,32767,-32768),this[S]=v>>>8,this[S+1]=v&255,S+2},x.prototype.writeInt32LE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,4,2147483647,-2147483648),this[S]=v&255,this[S+1]=v>>>8,this[S+2]=v>>>16,this[S+3]=v>>>24,S+4},x.prototype.writeInt32BE=function(v,S,A){return v=+v,S=S>>>0,A||xe(this,v,S,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),this[S]=v>>>24,this[S+1]=v>>>16,this[S+2]=v>>>8,this[S+3]=v&255,S+4},x.prototype.writeBigInt64LE=le(function(v,S=0){return Se(this,v,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=le(function(v,S=0){return Oe(this,v,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(E,v,S,A,j,I){if(S+A>E.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function je(E,v,S,A,j){return v=+v,S=S>>>0,j||qe(E,v,S,4),l.write(E,v,S,A,23,4),S+4}x.prototype.writeFloatLE=function(v,S,A){return je(this,v,S,!0,A)},x.prototype.writeFloatBE=function(v,S,A){return je(this,v,S,!1,A)};function nt(E,v,S,A,j){return v=+v,S=S>>>0,j||qe(E,v,S,8),l.write(E,v,S,A,52,8),S+8}x.prototype.writeDoubleLE=function(v,S,A){return nt(this,v,S,!0,A)},x.prototype.writeDoubleBE=function(v,S,A){return nt(this,v,S,!1,A)},x.prototype.copy=function(v,S,A,j){if(!x.isBuffer(v))throw new TypeError("argument should be a Buffer");if(A||(A=0),!j&&j!==0&&(j=this.length),S>=v.length&&(S=v.length),S||(S=0),j>0&&j<A&&(j=A),j===A||v.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),v.length-S<j-A&&(j=v.length-S+A);const I=j-A;return this===v&&typeof c.prototype.copyWithin=="function"?this.copyWithin(S,A,j):c.prototype.set.call(v,this.subarray(A,j),S),I},x.prototype.fill=function(v,S,A,j){if(typeof v=="string"){if(typeof S=="string"?(j=S,S=0,A=this.length):typeof A=="string"&&(j=A,A=this.length),j!==void 0&&typeof j!="string")throw new TypeError("encoding must be a string");if(typeof j=="string"&&!x.isEncoding(j))throw new TypeError("Unknown encoding: "+j);if(v.length===1){const z=v.charCodeAt(0);(j==="utf8"&&z<128||j==="latin1")&&(v=z)}}else typeof v=="number"?v=v&255:typeof v=="boolean"&&(v=Number(v));if(S<0||this.length<S||this.length<A)throw new RangeError("Out of range index");if(A<=S)return this;S=S>>>0,A=A===void 0?this.length:A>>>0,v||(v=0);let I;if(typeof v=="number")for(I=S;I<A;++I)this[I]=v;else{const z=x.isBuffer(v)?v:x.from(v,j),de=z.length;if(de===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(I=0;I<A-S;++I)this[I+S]=z[I%de]}return this};const Qe={};function at(E,v,S){Qe[E]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:v.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${E}]`,this.stack,delete this.name}get code(){return E}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${E}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(E){return E?`${E} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(E,v){return`The "${E}" argument must be of type number. Received type ${typeof v}`},TypeError),at("ERR_OUT_OF_RANGE",function(E,v,S){let A=`The value of "${E}" is out of range.`,j=S;return Number.isInteger(S)&&Math.abs(S)>2**32?j=kt(String(S)):typeof S=="bigint"&&(j=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(j=kt(j)),j+="n"),A+=` It must be ${v}. Received ${j}`,A},RangeError);function kt(E){let v="",S=E.length;const A=E[0]==="-"?1:0;for(;S>=A+4;S-=3)v=`_${E.slice(S-3,S)}${v}`;return`${E.slice(0,S)}${v}`}function ut(E,v,S){mt(v,"offset"),(E[v]===void 0||E[v+S]===void 0)&&Tt(v,E.length-(S+1))}function At(E,v,S,A,j,I){if(E>S||E<v){const z=typeof v=="bigint"?"n":"";let de;throw v===0||v===BigInt(0)?de=`>= 0${z} and < 2${z} ** ${(I+1)*8}${z}`:de=`>= -(2${z} ** ${(I+1)*8-1}${z}) and < 2 ** ${(I+1)*8-1}${z}`,new Qe.ERR_OUT_OF_RANGE("value",de,E)}ut(A,j,I)}function mt(E,v){if(typeof E!="number")throw new Qe.ERR_INVALID_ARG_TYPE(v,"number",E)}function Tt(E,v,S){throw Math.floor(E)!==E?(mt(E,S),new Qe.ERR_OUT_OF_RANGE("offset","an integer",E)):v<0?new Qe.ERR_BUFFER_OUT_OF_BOUNDS:new Qe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${v}`,E)}const wt=/[^+/0-9A-Za-z-_]/g;function Pt(E){if(E=E.split("=")[0],E=E.trim().replace(wt,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function Ct(E,v){v=v||1/0;let S;const A=E.length;let j=null;const I=[];for(let z=0;z<A;++z){if(S=E.charCodeAt(z),S>55295&&S<57344){if(!j){if(S>56319){(v-=3)>-1&&I.push(239,191,189);continue}else if(z+1===A){(v-=3)>-1&&I.push(239,191,189);continue}j=S;continue}if(S<56320){(v-=3)>-1&&I.push(239,191,189),j=S;continue}S=(j-55296<<10|S-56320)+65536}else j&&(v-=3)>-1&&I.push(239,191,189);if(j=null,S<128){if((v-=1)<0)break;I.push(S)}else if(S<2048){if((v-=2)<0)break;I.push(S>>6|192,S&63|128)}else if(S<65536){if((v-=3)<0)break;I.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((v-=4)<0)break;I.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return I}function Ht(E){const v=[];for(let S=0;S<E.length;++S)v.push(E.charCodeAt(S)&255);return v}function ln(E,v){let S,A,j;const I=[];for(let z=0;z<E.length&&!((v-=2)<0);++z)S=E.charCodeAt(z),A=S>>8,j=S%256,I.push(j),I.push(A);return I}function on(E){return a.toByteArray(Pt(E))}function Je(E,v,S,A){let j;for(j=0;j<A&&!(j+S>=v.length||j>=E.length);++j)v[j+S]=E[j];return j}function k(E,v){return E instanceof v||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===v.name}function M(E){return E!==E}const Z=(function(){const E="0123456789abcdef",v=new Array(256);for(let S=0;S<16;++S){const A=S*16;for(let j=0;j<16;++j)v[A+j]=E[S]+E[j]}return v})();function le(E){return typeof BigInt>"u"?te:E}function te(){throw new Error("BigInt not supported")}})(buffer);const Buffer=buffer.Buffer;var utils={};/*!
|
|
255
255
|
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
|
|
256
256
|
*
|
|
257
257
|
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
|
258
258
|
* Released under the MIT License.
|
|
259
|
-
*/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(o,u,c){Reflect.defineProperty(o,u,{enumerable:!1,configurable:!0,writable:!0,value:c})},t.isBuffer=function(o){return l(o)==="buffer"},t.isObject=function(o){return l(o)==="object"},t.toBuffer=function(o){return typeof o=="string"?Buffer.from(o):o},t.toString=function(o){if(t.isBuffer(o))return a(String(o));if(typeof o!="string")throw new TypeError("expected input to be a string or buffer");return a(o)},t.arrayify=function(o){return o?Array.isArray(o)?o:[o]:[]},t.startsWith=function(o,u,c){return typeof c!="number"&&(c=u.length),o.slice(0,c)===u}})(utils)),utils}var defaults,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1;const t=requireEngines(),a=requireUtils();return defaults=function(l){const o=Object.assign({},l);return o.delimiters=a.arrayify(o.delims||o.delimiters||"---"),o.delimiters.length===1&&o.delimiters.push(o.delimiters[0]),o.language=(o.language||o.lang||"yaml").toLowerCase(),o.engines=Object.assign({},t,o.parsers,o.engines),o},defaults}var engine,hasRequiredEngine;function requireEngine(){if(hasRequiredEngine)return engine;hasRequiredEngine=1,engine=function(a,l){let o=l.engines[a]||l.engines[t(a)];if(typeof o>"u")throw new Error('gray-matter engine "'+a+'" is not registered');return typeof o=="function"&&(o={parse:o}),o};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(u,c,d){if(c==null&&d==null)switch(t(u)){case"object":c=u.data,d={};break;case"string":return u;default:throw new TypeError("expected file to be a string or object")}const
|
|
259
|
+
*/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(o,u,c){Reflect.defineProperty(o,u,{enumerable:!1,configurable:!0,writable:!0,value:c})},t.isBuffer=function(o){return l(o)==="buffer"},t.isObject=function(o){return l(o)==="object"},t.toBuffer=function(o){return typeof o=="string"?Buffer.from(o):o},t.toString=function(o){if(t.isBuffer(o))return a(String(o));if(typeof o!="string")throw new TypeError("expected input to be a string or buffer");return a(o)},t.arrayify=function(o){return o?Array.isArray(o)?o:[o]:[]},t.startsWith=function(o,u,c){return typeof c!="number"&&(c=u.length),o.slice(0,c)===u}})(utils)),utils}var defaults,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1;const t=requireEngines(),a=requireUtils();return defaults=function(l){const o=Object.assign({},l);return o.delimiters=a.arrayify(o.delims||o.delimiters||"---"),o.delimiters.length===1&&o.delimiters.push(o.delimiters[0]),o.language=(o.language||o.lang||"yaml").toLowerCase(),o.engines=Object.assign({},t,o.parsers,o.engines),o},defaults}var engine,hasRequiredEngine;function requireEngine(){if(hasRequiredEngine)return engine;hasRequiredEngine=1,engine=function(a,l){let o=l.engines[a]||l.engines[t(a)];if(typeof o>"u")throw new Error('gray-matter engine "'+a+'" is not registered');return typeof o=="function"&&(o={parse:o}),o};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(u,c,d){if(c==null&&d==null)switch(t(u)){case"object":c=u.data,d={};break;case"string":return u;default:throw new TypeError("expected file to be a string or object")}const h=u.content,p=l(d);if(c==null){if(!p.data)return u;c=p.data}const g=u.language||p.language,x=a(g,p);if(typeof x.stringify!="function")throw new TypeError('expected "'+g+'.stringify" to be a function');c=Object.assign({},u.data,c);const b=p.delimiters[0],C=p.delimiters[1],R=x.stringify(c,d).trim();let _="";return R!=="{}"&&(_=o(b)+o(R)+o(C)),typeof u.excerpt=="string"&&u.excerpt!==""&&h.indexOf(u.excerpt.trim())===-1&&(_+=o(u.excerpt)+o(C)),_+o(h)};function o(u){return u.slice(-1)!==`
|
|
260
260
|
`?u+`
|
|
261
|
-
`:u}return stringify}var excerpt,hasRequiredExcerpt;function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const t=requireDefaults();return excerpt=function(a,l){const o=t(l);if(a.data==null&&(a.data={}),typeof o.excerpt=="function")return o.excerpt(a,o);const u=a.data.excerpt_separator||o.excerpt_separator;if(u==null&&(o.excerpt===!1||o.excerpt==null))return a;const c=typeof o.excerpt=="string"?o.excerpt:u||o.delimiters[0],d=a.content.indexOf(c);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(o){return t(o)!=="object"&&(o={content:o}),t(o.data)!=="object"&&(o.data={}),o.contents&&o.content==null&&(o.content=o.contents),l.define(o,"orig",l.toBuffer(o.content)),l.define(o,"language",o.language||""),l.define(o,"matter",o.matter||""),l.define(o,"stringify",function(u,c){return c&&c.language&&(o.language=c.language),a(o,u,c)}),o.content=l.toString(o.content),o.isEmpty=!1,o.excerpt="",o},toFile}var parse,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;const t=requireEngine(),a=requireDefaults();return parse=function(l,o,u){const c=a(u),d=t(l,c);if(typeof d.parse!="function")throw new TypeError('expected "'+l+'.parse" to be a function');return d.parse(o,c)},parse}var grayMatter,hasRequiredGrayMatter;function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter;hasRequiredGrayMatter=1;const t=require$$0,a=requireSectionMatter(),l=requireDefaults(),o=requireStringify(),u=requireExcerpt(),c=requireEngines(),d=requireToFile(),
|
|
262
|
-
`+R.delimiters[1];let L=b.content;R.language&&(b.language=R.language);const D=_.length;if(!p.startsWith(L,_,D))return u(b,R),b;if(L.charAt(D)===_.slice(-1))return b;L=L.slice(D);const
|
|
263
|
-
`&&(b.content=b.content.slice(1))),u(b,R),(R.sections===!0||typeof R.section=="function")&&a(b,R.section),b}return
|
|
264
|
-
`:" ")+c.indentLines(c.containerFlow(o,
|
|
261
|
+
`:u}return stringify}var excerpt,hasRequiredExcerpt;function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const t=requireDefaults();return excerpt=function(a,l){const o=t(l);if(a.data==null&&(a.data={}),typeof o.excerpt=="function")return o.excerpt(a,o);const u=a.data.excerpt_separator||o.excerpt_separator;if(u==null&&(o.excerpt===!1||o.excerpt==null))return a;const c=typeof o.excerpt=="string"?o.excerpt:u||o.delimiters[0],d=a.content.indexOf(c);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(o){return t(o)!=="object"&&(o={content:o}),t(o.data)!=="object"&&(o.data={}),o.contents&&o.content==null&&(o.content=o.contents),l.define(o,"orig",l.toBuffer(o.content)),l.define(o,"language",o.language||""),l.define(o,"matter",o.matter||""),l.define(o,"stringify",function(u,c){return c&&c.language&&(o.language=c.language),a(o,u,c)}),o.content=l.toString(o.content),o.isEmpty=!1,o.excerpt="",o},toFile}var parse,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;const t=requireEngine(),a=requireDefaults();return parse=function(l,o,u){const c=a(u),d=t(l,c);if(typeof d.parse!="function")throw new TypeError('expected "'+l+'.parse" to be a function');return d.parse(o,c)},parse}var grayMatter,hasRequiredGrayMatter;function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter;hasRequiredGrayMatter=1;const t=require$$0,a=requireSectionMatter(),l=requireDefaults(),o=requireStringify(),u=requireExcerpt(),c=requireEngines(),d=requireToFile(),h=requireParse(),p=requireUtils();function g(b,C){if(b==="")return{data:{},content:b,excerpt:"",orig:b};let R=d(b);const _=g.cache[R.content];if(!C){if(_)return R=Object.assign({},_),R.orig=_.orig,R;g.cache[R.content]=R}return x(R,C)}function x(b,C){const R=l(C),_=R.delimiters[0],B=`
|
|
262
|
+
`+R.delimiters[1];let L=b.content;R.language&&(b.language=R.language);const D=_.length;if(!p.startsWith(L,_,D))return u(b,R),b;if(L.charAt(D)===_.slice(-1))return b;L=L.slice(D);const $=L.length,V=g.language(L,R);V.name&&(b.language=V.name,L=L.slice(V.raw.length));let se=L.indexOf(B);return se===-1&&(se=$),b.matter=L.slice(0,se),b.matter.replace(/^\s*#[^\n]+/gm,"").trim()===""?(b.isEmpty=!0,b.empty=b.content,b.data={}):b.data=h(b.language,b.matter,R),se===$?b.content="":(b.content=L.slice(se+B.length),b.content[0]==="\r"&&(b.content=b.content.slice(1)),b.content[0]===`
|
|
263
|
+
`&&(b.content=b.content.slice(1))),u(b,R),(R.sections===!0||typeof R.section=="function")&&a(b,R.section),b}return g.engines=c,g.stringify=function(b,C,R){return typeof b=="string"&&(b=g(b,R)),o(b,C,R)},g.read=function(b,C){const R=t.readFileSync(b,"utf8"),_=g(R,C);return _.path=b,_},g.test=function(b,C){return p.startsWith(b,l(C).delimiters[0])},g.language=function(b,C){const _=l(C).delimiters[0];g.test(b)&&(b=b.slice(_.length));const B=b.slice(0,b.search(/\r?\n/));return{raw:B,name:B?B.trim():""}},g.cache={},g.clearCache=function(){g.cache={}},grayMatter=g,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 o=0,u=l.indexOf(a);for(;u!==-1;)o++,u=l.indexOf(a,u+a.length);return o}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 u=convert((l||{}).ignore||[]),c=toPairs(a);let d=-1;for(;++d<c.length;)visitParents(t,"text",h);function h(g,x){let b=-1,C;for(;++b<x.length;){const R=x[b],_=C?C.children:void 0;if(u(R,_?_.indexOf(R):void 0,C))return;C=R}if(C)return p(g,x)}function p(g,x){const b=x[x.length-1],C=c[d][0],R=c[d][1];let _=0;const L=b.children.indexOf(g);let D=!1,$=[];C.lastIndex=0;let V=C.exec(g.value);for(;V;){const se=V.index,ie={index:V.index,input:V.input,stack:[...x,g]};let H=R(...V,ie);if(typeof H=="string"&&(H=H.length>0?{type:"text",value:H}:void 0),H===!1?C.lastIndex=se+1:(_!==se&&$.push({type:"text",value:g.value.slice(_,se)}),Array.isArray(H)?$.push(...H):H&&$.push(H),_=se+V[0].length,D=!0),!C.global)break;V=C.exec(g.value)}return D?(_<g.value.length&&$.push({type:"text",value:g.value.slice(_)}),b.children.splice(L,1,...$)):$=[g],L+$.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 o=-1;for(;++o<l.length;){const u=l[o];a.push([toExpression(u[0]),toFunction(u[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,o,u){let c="";if(!previous(u)||(/^w/i.test(a)&&(l=a+l,a="",c="http://"),!isCorrectDomain(l)))return!1;const d=splitUrl(l+o);if(!d[0])return!1;const h={type:"link",title:null,url:c+a+d[0],children:[{type:"text",value:a+d[0]}]};return d[1]?[h,{type:"text",value:d[1]}]:h}function findEmail(t,a,l,o){return!previous(o,!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],o=l.indexOf(")");const u=ccount(t,"(");let c=ccount(t,")");for(;o!==-1&&u>c;)t+=l.slice(0,o+1),l=l.slice(o+1),o=l.indexOf(")"),c++;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,o){const u=l.createTracker(o);let c=u.move("[^");const d=l.enter("footnoteReference"),h=l.enter("reference");return c+=u.move(l.safe(l.associationId(t),{after:"]",before:c})),h(),d(),c+=u.move("]"),c}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(o,u,c,d){const h=c.createTracker(d);let p=h.move("[^");const g=c.enter("footnoteDefinition"),x=c.enter("label");return p+=h.move(c.safe(c.associationId(o),{before:p,after:"]"})),x(),p+=h.move("]:"),o.children&&o.children.length>0&&(h.shift(4),p+=h.move((a?`
|
|
264
|
+
`:" ")+c.indentLines(c.containerFlow(o,h.current()),a?mapAll:mapExceptFirst))),g(),p}}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,o){const u=l.createTracker(o),c=l.enter("strikethrough");let d=u.move("~~");return d+=l.containerPhrasing(t,{...u.current(),before:d,after:"~"}),d+=u.move("~~"),c(),d}function peekDelete(){return"~"}function defaultStringLength(t){return t.length}function markdownTable(t,a){const l=a||{},o=(l.align||[]).concat(),u=l.stringLength||defaultStringLength,c=[],d=[],h=[],p=[];let g=0,x=-1;for(;++x<t.length;){const B=[],L=[];let D=-1;for(t[x].length>g&&(g=t[x].length);++D<t[x].length;){const $=serialize(t[x][D]);if(l.alignDelimiters!==!1){const V=u($);L[D]=V,(p[D]===void 0||V>p[D])&&(p[D]=V)}B.push($)}d[x]=B,h[x]=L}let b=-1;if(typeof o=="object"&&"length"in o)for(;++b<g;)c[b]=toAlignment(o[b]);else{const B=toAlignment(o);for(;++b<g;)c[b]=B}b=-1;const C=[],R=[];for(;++b<g;){const B=c[b];let L="",D="";B===99?(L=":",D=":"):B===108?L=":":B===114&&(D=":");let $=l.alignDelimiters===!1?1:Math.max(1,p[b]-L.length-D.length);const V=L+"-".repeat($)+D;l.alignDelimiters!==!1&&($=L.length+$+D.length,$>p[b]&&(p[b]=$),R[b]=$),C[b]=V}d.splice(1,0,C),h.splice(1,0,R),x=-1;const _=[];for(;++x<d.length;){const B=d[x],L=h[x];b=-1;const D=[];for(;++b<g;){const $=B[b]||"";let V="",se="";if(l.alignDelimiters!==!1){const ie=p[b]-(L[b]||0),H=c[b];H===114?V=" ".repeat(ie):H===99?ie%2?(V=" ".repeat(ie/2+.5),se=" ".repeat(ie/2-.5)):(V=" ".repeat(ie/2),se=V):se=" ".repeat(ie)}l.delimiterStart!==!1&&!b&&D.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&$==="")&&(l.delimiterStart!==!1||b)&&D.push(" "),l.alignDelimiters!==!1&&D.push(V),D.push($),l.alignDelimiters!==!1&&D.push(se),l.padding!==!1&&D.push(" "),(l.delimiterEnd!==!1||b!==g-1)&&D.push("|")}_.push(l.delimiterEnd===!1?D.join("").replace(/ +$/,""):D.join(""))}return _.join(`
|
|
265
265
|
`)}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,o){const u=l.enter("blockquote"),c=l.createTracker(o);c.move("> "),c.shift(2);const d=l.indentLines(l.containerFlow(t,c.current()),map$1);return u(),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 o=-1;for(;++o<a.length;)if(t.includes(a[o]))return!0;return!1}function hardBreak(t,a,l,o){let u=-1;for(;++u<l.unsafe.length;)if(l.unsafe[u].character===`
|
|
266
266
|
`&&patternInScope(l.stack,l.unsafe[u]))return/[ \t]/.test(o.before)?"":" ";return`\\
|
|
267
|
-
`}function longestStreak(t,a){const l=String(t);let o=l.indexOf(a),u=o,c=0,d=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===u?++c>d&&(d=c):c=1,u=o+a.length,o=l.indexOf(a,u);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,o){const u=checkFence(l),c=t.value||"",d=u==="`"?"GraveAccent":"Tilde";if(formatCodeAsIndented(t,l)){const b=l.enter("codeIndented"),C=l.indentLines(c,map);return b(),C}const
|
|
268
|
-
`,encode:["`"],...
|
|
269
|
-
`),c&&(x+=
|
|
270
|
-
`)),x+=
|
|
271
|
-
`,...p.current()}))),
|
|
267
|
+
`}function longestStreak(t,a){const l=String(t);let o=l.indexOf(a),u=o,c=0,d=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===u?++c>d&&(d=c):c=1,u=o+a.length,o=l.indexOf(a,u);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,o){const u=checkFence(l),c=t.value||"",d=u==="`"?"GraveAccent":"Tilde";if(formatCodeAsIndented(t,l)){const b=l.enter("codeIndented"),C=l.indentLines(c,map);return b(),C}const h=l.createTracker(o),p=u.repeat(Math.max(longestStreak(c,u)+1,3)),g=l.enter("codeFenced");let x=h.move(p);if(t.lang){const b=l.enter(`codeFencedLang${d}`);x+=h.move(l.safe(t.lang,{before:x,after:" ",encode:["`"],...h.current()})),b()}if(t.lang&&t.meta){const b=l.enter(`codeFencedMeta${d}`);x+=h.move(" "),x+=h.move(l.safe(t.meta,{before:x,after:`
|
|
268
|
+
`,encode:["`"],...h.current()})),b()}return x+=h.move(`
|
|
269
|
+
`),c&&(x+=h.move(c+`
|
|
270
|
+
`)),x+=h.move(p),g(),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,o){const u=checkQuote(l),c=u==='"'?"Quote":"Apostrophe",d=l.enter("definition");let h=l.enter("label");const p=l.createTracker(o);let g=p.move("[");return g+=p.move(l.safe(l.associationId(t),{before:g,after:"]",...p.current()})),g+=p.move("]: "),h(),!t.url||/[\0- \u007F]/.test(t.url)?(h=l.enter("destinationLiteral"),g+=p.move("<"),g+=p.move(l.safe(t.url,{before:g,after:">",...p.current()})),g+=p.move(">")):(h=l.enter("destinationRaw"),g+=p.move(l.safe(t.url,{before:g,after:t.title?" ":`
|
|
271
|
+
`,...p.current()}))),h(),t.title&&(h=l.enter(`title${c}`),g+=p.move(" "+u),g+=p.move(l.safe(t.title,{before:g,after:u,...p.current()})),g+=p.move(u),h()),d(),g}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 o=classifyCharacter(t),u=classifyCharacter(a);return o===void 0?u===void 0?l==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}emphasis.peek=emphasisPeek;function emphasis(t,a,l,o){const u=checkEmphasis(l),c=l.enter("emphasis"),d=l.createTracker(o),h=d.move(u);let p=d.move(l.containerPhrasing(t,{after:u,before:h,...d.current()}));const g=p.charCodeAt(0),x=encodeInfo(o.before.charCodeAt(o.before.length-1),g,u);x.inside&&(p=encodeCharacterReference(g)+p.slice(1));const b=p.charCodeAt(p.length-1),C=encodeInfo(o.after.charCodeAt(0),b,u);C.inside&&(p=p.slice(0,-1)+encodeCharacterReference(b));const R=d.move(u);return c(),l.attentionEncodeSurroundingInfo={after:C.outside,before:x.outside},h+p+R}function emphasisPeek(t,a,l){return l.options.emphasis||"*"}function formatHeadingAsSetext(t,a){let l=!1;return visit(t,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return l=!0,EXIT}),!!((!t.depth||t.depth<3)&&toString$1(t)&&(a.options.setext||l))}function heading(t,a,l,o){const u=Math.max(Math.min(6,t.depth||1),1),c=l.createTracker(o);if(formatHeadingAsSetext(t,l)){const x=l.enter("headingSetext"),b=l.enter("phrasing"),C=l.containerPhrasing(t,{...c.current(),before:`
|
|
272
272
|
`,after:`
|
|
273
273
|
`});return b(),x(),C+`
|
|
274
274
|
`+(u===1?"=":"-").repeat(C.length-(Math.max(C.lastIndexOf("\r"),C.lastIndexOf(`
|
|
275
|
-
`))+1))}const d="#".repeat(u),
|
|
276
|
-
`,...c.current()});return/^[\t ]/.test(
|
|
277
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:C,table:d,tableCell:p,tableRow:
|
|
278
|
-
`))}function p(R,_,B,L){const D=B.enter("tableCell"),H=B.enter("phrasing"),V=B.containerPhrasing(R,{...L,before:c,after:c});return H(),D(),V}function m(R,_){return markdownTable(R,{align:_,alignDelimiters:o,padding:l,stringLength:u})}function x(R,_,B){const L=R.children;let D=-1;const H=[],V=_.enter("table");for(;++D<L.length;)H[D]=b(L[D],_,B);return V(),H}function b(R,_,B){const L=R.children;let D=-1;const H=[],V=_.enter("tableRow");for(;++D<L.length;)H[D]=p(L[D],R,_,B);return V(),H}function C(R,_,B){let L=handle.inlineCode(R,_,B);return B.stack.includes("tableCell")&&(L=L.replace(/\|/g,"\\$&")),L}}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 o=l.children[0];if(o&&o.type==="text"){const u=a.children;let c=-1,d;for(;++c<u.length;){const g=u[c];if(g.type==="paragraph"){d=g;break}}d===l&&(o.value=o.value.slice(1),o.value.length===0?l.children.shift():l.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,l.position.start=Object.assign({},o.position.start)))}}this.exit(t)}function listItemWithTaskListItem(t,a,l,o){const u=t.children[0],c=typeof t.checked=="boolean"&&u&&u.type==="paragraph",d="["+(t.checked?"x":" ")+"] ",g=l.createTracker(o);c&&g.move(d);let p=handle.listItem(t,a,l,{...o,...g.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;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 o=this;let u,c;return d;function d(b){return!gfmAtext(b)||!previousEmail.call(o,o.previous)||previousUnbalanced(o.events)?l(b):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),g(b))}function g(b){return gfmAtext(b)?(t.consume(b),g):b===64?(t.consume(b),p):l(b)}function p(b){return b===46?t.check(emailDomainDotTrail,x,m)(b):b===45||b===95||asciiAlphanumeric(b)?(c=!0,t.consume(b),p):x(b)}function m(b){return t.consume(b),u=!0,p}function x(b){return c&&u&&asciiAlpha(o.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),a(b)):l(b)}}function tokenizeWwwAutolink(t,a,l){const o=this;return u;function u(d){return d!==87&&d!==119||!previousWww.call(o,o.previous)||previousUnbalanced(o.events)?l(d):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(wwwPrefix,t.attempt(domain,t.attempt(path,c),l),l)(d))}function c(d){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),a(d)}}function tokenizeProtocolAutolink(t,a,l){const o=this;let u="",c=!1;return d;function d(b){return(b===72||b===104)&&previousProtocol.call(o,o.previous)&&!previousUnbalanced(o.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),u+=String.fromCodePoint(b),t.consume(b),g):l(b)}function g(b){if(asciiAlpha(b)&&u.length<5)return u+=String.fromCodePoint(b),t.consume(b),g;if(b===58){const C=u.toLowerCase();if(C==="http"||C==="https")return t.consume(b),p}return l(b)}function p(b){return b===47?(t.consume(b),c?m:(c=!0,p)):l(b)}function m(b){return b===null||asciiControl(b)||markdownLineEndingOrSpace(b)||unicodeWhitespace(b)||unicodePunctuation(b)?l(b):t.attempt(domain,t.attempt(path,x),l)(b)}function x(b){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),a(b)}}function tokenizeWwwPrefix(t,a,l){let o=0;return u;function u(d){return(d===87||d===119)&&o<3?(o++,t.consume(d),u):d===46&&o===3?(t.consume(d),c):l(d)}function c(d){return d===null?l(d):a(d)}}function tokenizeDomain(t,a,l){let o,u,c;return d;function d(m){return m===46||m===95?t.check(trail,p,g)(m):m===null||markdownLineEndingOrSpace(m)||unicodeWhitespace(m)||m!==45&&unicodePunctuation(m)?p(m):(c=!0,t.consume(m),d)}function g(m){return m===95?o=!0:(u=o,o=void 0),t.consume(m),d}function p(m){return u||o||!c?l(m):a(m)}}function tokenizePath(t,a){let l=0,o=0;return u;function u(d){return d===40?(l++,t.consume(d),u):d===41&&o<l?c(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,c)(d):d===null||markdownLineEndingOrSpace(d)||unicodeWhitespace(d)?a(d):(t.consume(d),u)}function c(d){return d===41&&o++,t.consume(d),u}}function tokenizeTrail(t,a,l){return o;function o(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),o):g===38?(t.consume(g),c):g===93?(t.consume(g),u):g===60||g===null||markdownLineEndingOrSpace(g)||unicodeWhitespace(g)?a(g):l(g)}function u(g){return g===null||g===40||g===91||markdownLineEndingOrSpace(g)||unicodeWhitespace(g)?a(g):o(g)}function c(g){return asciiAlpha(g)?d(g):l(g)}function d(g){return g===59?(t.consume(g),o):asciiAlpha(g)?(t.consume(g),d):l(g)}}function tokenizeEmailDomainDotTrail(t,a,l){return o;function o(c){return t.consume(c),u}function u(c){return asciiAlphanumeric(c)?l(c):a(c)}}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 o=t[a][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){l=!0;break}if(o._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 o=this;let u=o.events.length;const c=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let d;for(;u--;){const p=o.events[u][1];if(p.type==="labelImage"){d=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return g;function g(p){if(!d||!d._balanced)return l(p);const m=normalizeIdentifier(o.sliceSerialize({start:d.end,end:o.now()}));return m.codePointAt(0)!==94||!c.includes(m.slice(1))?l(p):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),a(p))}}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 o={type:"gfmFootnoteCall",start:Object.assign({},t[l+3][1].start),end:Object.assign({},t[t.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},t[l+3][1].end),end:Object.assign({},t[l+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},t[t.length-1][1].start)},d={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},g=[t[l+1],t[l+2],["enter",o,a],t[l+3],t[l+4],["enter",u,a],["exit",u,a],["enter",c,a],["enter",d,a],["exit",d,a],["exit",c,a],t[t.length-2],t[t.length-1],["exit",o,a]];return t.splice(l,t.length-l+1,...g),t}function tokenizeGfmFootnoteCall(t,a,l){const o=this,u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c=0,d;return g;function g(b){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(b),t.exit("gfmFootnoteCallLabelMarker"),p}function p(b){return b!==94?l(b):(t.enter("gfmFootnoteCallMarker"),t.consume(b),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(b){if(c>999||b===93&&!d||b===null||b===91||markdownLineEndingOrSpace(b))return l(b);if(b===93){t.exit("chunkString");const C=t.exit("gfmFootnoteCallString");return u.includes(normalizeIdentifier(o.sliceSerialize(C)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(b),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),a):l(b)}return markdownLineEndingOrSpace(b)||(d=!0),c++,t.consume(b),b===92?x:m}function x(b){return b===91||b===92||b===93?(t.consume(b),c++,m):m(b)}}function tokenizeDefinitionStart(t,a,l){const o=this,u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c,d=0,g;return p;function p(_){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(_){return _===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",x):l(_)}function x(_){if(d>999||_===93&&!g||_===null||_===91||markdownLineEndingOrSpace(_))return l(_);if(_===93){t.exit("chunkString");const B=t.exit("gfmFootnoteDefinitionLabelString");return c=normalizeIdentifier(o.sliceSerialize(B)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),C}return markdownLineEndingOrSpace(_)||(g=!0),d++,t.consume(_),_===92?b:x}function b(_){return _===91||_===92||_===93?(t.consume(_),d++,x):x(_)}function C(_){return _===58?(t.enter("definitionMarker"),t.consume(_),t.exit("definitionMarker"),u.includes(c)||u.push(c),factorySpace(t,R,"gfmFootnoteDefinitionWhitespace")):l(_)}function R(_){return a(_)}}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 o=this;return factorySpace(t,u,"gfmFootnoteDefinitionIndent",5);function u(c){const d=o.events[o.events.length-1];return d&&d[1].type==="gfmFootnoteDefinitionIndent"&&d[2].sliceSerialize(d[1],!0).length===4?a(c):l(c)}}function gfmStrikethrough(t){let l=(t||{}).singleTilde;const o={name:"strikethrough",tokenize:c,resolveAll:u};return l==null&&(l=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function u(d,g){let p=-1;for(;++p<d.length;)if(d[p][0]==="enter"&&d[p][1].type==="strikethroughSequenceTemporary"&&d[p][1]._close){let m=p;for(;m--;)if(d[m][0]==="exit"&&d[m][1].type==="strikethroughSequenceTemporary"&&d[m][1]._open&&d[p][1].end.offset-d[p][1].start.offset===d[m][1].end.offset-d[m][1].start.offset){d[p][1].type="strikethroughSequence",d[m][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},d[m][1].start),end:Object.assign({},d[p][1].end)},b={type:"strikethroughText",start:Object.assign({},d[m][1].end),end:Object.assign({},d[p][1].start)},C=[["enter",x,g],["enter",d[m][1],g],["exit",d[m][1],g],["enter",b,g]],R=g.parser.constructs.insideSpan.null;R&&splice(C,C.length,0,resolveAll(R,d.slice(m+1,p),g)),splice(C,C.length,0,[["exit",b,g],["enter",d[p][1],g],["exit",d[p][1],g],["exit",x,g]]),splice(d,m-1,p-m+3,C),p=m+C.length-2;break}}for(p=-1;++p<d.length;)d[p][1].type==="strikethroughSequenceTemporary"&&(d[p][1].type="data");return d}function c(d,g,p){const m=this.previous,x=this.events;let b=0;return C;function C(_){return m===126&&x[x.length-1][1].type!=="characterEscape"?p(_):(d.enter("strikethroughSequenceTemporary"),R(_))}function R(_){const B=classifyCharacter(m);if(_===126)return b>1?p(_):(d.consume(_),b++,R);if(b<2&&!l)return p(_);const L=d.exit("strikethroughSequenceTemporary"),D=classifyCharacter(_);return L._open=!D||D===2&&!!B,L._close=!B||B===2&&!!D,g(_)}}}class EditMap{constructor(){this.map=[]}add(a,l,o){addImplementation(this,a,l,o)}consume(a){if(this.map.sort(function(c,d){return c[0]-d[0]}),this.map.length===0)return;let l=this.map.length;const o=[];for(;l>0;)l-=1,o.push(a.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),a.length=this.map[l][0];o.push(a.slice()),a.length=0;let u=o.pop();for(;u;){for(const c of u)a.push(c);u=o.pop()}this.map.length=0}}function addImplementation(t,a,l,o){let u=0;if(!(l===0&&o.length===0)){for(;u<t.map.length;){if(t.map[u][0]===a){t.map[u][1]+=l,t.map[u][2].push(...o);return}u+=1}t.map.push([a,l,o])}}function gfmTableAlign(t,a){let l=!1;const o=[];for(;a<t.length;){const u=t[a];if(l){if(u[0]==="enter")u[1].type==="tableContent"&&o.push(t[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(t[a-1][1].type==="tableDelimiterMarker"){const c=o.length-1;o[c]=o[c]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(l=!0);a+=1}return o}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(t,a,l){const o=this;let u=0,c=0,d;return g;function g(K){let Ee=o.events.length-1;for(;Ee>-1;){const ye=o.events[Ee][1].type;if(ye==="lineEnding"||ye==="linePrefix")Ee--;else break}const ae=Ee>-1?o.events[Ee][1].type:null,Ce=ae==="tableHead"||ae==="tableRow"?Y:p;return Ce===Y&&o.parser.lazy[o.now().line]?l(K):Ce(K)}function p(K){return t.enter("tableHead"),t.enter("tableRow"),m(K)}function m(K){return K===124||(d=!0,c+=1),x(K)}function x(K){return K===null?l(K):markdownLineEnding(K)?c>1?(c=0,o.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(K),t.exit("lineEnding"),R):l(K):markdownSpace(K)?factorySpace(t,x,"whitespace")(K):(c+=1,d&&(d=!1,u+=1),K===124?(t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),d=!0,x):(t.enter("data"),b(K)))}function b(K){return K===null||K===124||markdownLineEndingOrSpace(K)?(t.exit("data"),x(K)):(t.consume(K),K===92?C:b)}function C(K){return K===92||K===124?(t.consume(K),b):b(K)}function R(K){return o.interrupt=!1,o.parser.lazy[o.now().line]?l(K):(t.enter("tableDelimiterRow"),d=!1,markdownSpace(K)?factorySpace(t,_,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):_(K))}function _(K){return K===45||K===58?L(K):K===124?(d=!0,t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),B):te(K)}function B(K){return markdownSpace(K)?factorySpace(t,L,"whitespace")(K):L(K)}function L(K){return K===58?(c+=1,d=!0,t.enter("tableDelimiterMarker"),t.consume(K),t.exit("tableDelimiterMarker"),D):K===45?(c+=1,D(K)):K===null||markdownLineEnding(K)?se(K):te(K)}function D(K){return K===45?(t.enter("tableDelimiterFiller"),H(K)):te(K)}function H(K){return K===45?(t.consume(K),H):K===58?(d=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(K),t.exit("tableDelimiterMarker"),V):(t.exit("tableDelimiterFiller"),V(K))}function V(K){return markdownSpace(K)?factorySpace(t,se,"whitespace")(K):se(K)}function se(K){return K===124?_(K):K===null||markdownLineEnding(K)?!d||u!==c?te(K):(t.exit("tableDelimiterRow"),t.exit("tableHead"),a(K)):te(K)}function te(K){return l(K)}function Y(K){return t.enter("tableRow"),ge(K)}function ge(K){return K===124?(t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),ge):K===null||markdownLineEnding(K)?(t.exit("tableRow"),a(K)):markdownSpace(K)?factorySpace(t,ge,"whitespace")(K):(t.enter("data"),W(K))}function W(K){return K===null||K===124||markdownLineEndingOrSpace(K)?(t.exit("data"),ge(K)):(t.consume(K),K===92?ve:W)}function ve(K){return K===92||K===124?(t.consume(K),W):W(K)}}function resolveTable(t,a){let l=-1,o=!0,u=0,c=[0,0,0,0],d=[0,0,0,0],g=!1,p=0,m,x,b;const C=new EditMap;for(;++l<t.length;){const R=t[l],_=R[1];R[0]==="enter"?_.type==="tableHead"?(g=!1,p!==0&&(flushTableEnd(C,a,p,m,x),x=void 0,p=0),m={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},C.add(l,0,[["enter",m,a]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(o=!0,b=void 0,c=[0,0,0,0],d=[0,l+1,0,0],g&&(g=!1,x={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},C.add(l,0,[["enter",x,a]])),u=_.type==="tableDelimiterRow"?2:x?3:1):u&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(o=!1,d[2]===0&&(c[1]!==0&&(d[0]=d[1],b=flushCell(C,a,c,u,void 0,b),c=[0,0,0,0]),d[2]=l)):_.type==="tableCellDivider"&&(o?o=!1:(c[1]!==0&&(d[0]=d[1],b=flushCell(C,a,c,u,void 0,b)),c=d,d=[c[1],l,0,0])):_.type==="tableHead"?(g=!0,p=l):_.type==="tableRow"||_.type==="tableDelimiterRow"?(p=l,c[1]!==0?(d[0]=d[1],b=flushCell(C,a,c,u,l,b)):d[1]!==0&&(b=flushCell(C,a,d,u,l,b)),u=0):u&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(d[3]=l)}for(p!==0&&flushTableEnd(C,a,p,m,x),C.consume(a.events),l=-1;++l<a.events.length;){const R=a.events[l];R[0]==="enter"&&R[1].type==="table"&&(R[1]._align=gfmTableAlign(a.events,l))}return t}function flushCell(t,a,l,o,u,c){const d=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",g="tableContent";l[0]!==0&&(c.end=Object.assign({},getPoint(a.events,l[0])),t.add(l[0],0,[["exit",c,a]]));const p=getPoint(a.events,l[1]);if(c={type:d,start:Object.assign({},p),end:Object.assign({},p)},t.add(l[1],0,[["enter",c,a]]),l[2]!==0){const m=getPoint(a.events,l[2]),x=getPoint(a.events,l[3]),b={type:g,start:Object.assign({},m),end:Object.assign({},x)};if(t.add(l[2],0,[["enter",b,a]]),o!==2){const C=a.events[l[2]],R=a.events[l[3]];if(C[1].end=Object.assign({},R[1].end),C[1].type="chunkText",C[1].contentType="text",l[3]>l[2]+1){const _=l[2]+1,B=l[3]-l[2]-1;t.add(_,B,[])}}t.add(l[3]+1,0,[["exit",b,a]])}return u!==void 0&&(c.end=Object.assign({},getPoint(a.events,u)),t.add(u,0,[["exit",c,a]]),c=void 0),c}function flushTableEnd(t,a,l,o,u){const c=[],d=getPoint(a.events,l);u&&(u.end=Object.assign({},d),c.push(["exit",u,a])),o.end=Object.assign({},d),c.push(["exit",o,a]),t.add(l+1,0,c)}function getPoint(t,a){const l=t[a],o=l[0]==="enter"?"start":"end";return l[1][o]}const tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:tasklistCheck}}}function tokenizeTasklistCheck(t,a,l){const o=this;return u;function u(p){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?l(p):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),c)}function c(p){return markdownLineEndingOrSpace(p)?(t.enter("taskListCheckValueUnchecked"),t.consume(p),t.exit("taskListCheckValueUnchecked"),d):p===88||p===120?(t.enter("taskListCheckValueChecked"),t.consume(p),t.exit("taskListCheckValueChecked"),d):l(p)}function d(p){return p===93?(t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),g):l(p)}function g(p){return markdownLineEnding(p)?a(p):markdownSpace(p)?t.check({tokenize:spaceThenNonSpace},a,l)(p):l(p)}}function spaceThenNonSpace(t,a,l){return factorySpace(t,o,"whitespace");function o(u){return u===null?l(u):a(u)}}function gfm(t){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(t),gfmTable(),gfmTaskListItem()])}const emptyOptions={};function remarkGfm(t){const a=this,l=t||emptyOptions,o=a.data(),u=o.micromarkExtensions||(o.micromarkExtensions=[]),c=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),d=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);u.push(gfm(l)),c.push(gfmFromMarkdown()),d.push(gfmToMarkdown(l))}function parseViewMd(t){const{data:a,content:l}=matter(t),o=unified().use(remarkParse).use(remarkGfm).parse(l),u=splitByH2$1(o);return{name:a.name??"",domain:a.domain??"",version:a.version??"0.1.0",stateBindings:parseStateBindings(u["State Bindings"]),layout:parseLayoutSection$1(u.Layout),intents:parseIntentsTable(u.Intents)}}function splitByH2$1(t){var o;const a={};let l="__intro__";a[l]=[];for(const u of t.children)u.type==="heading"&&u.depth===2?(l=getTextContent(u),a[l]=[]):(o=a[l])==null||o.push(u);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 o=l;for(const u of o.children){const d=extractListItemText(u).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 o=l;for(let u=1;u<o.children.length;u++){const d=o.children[u].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),o=unified().use(remarkParse).parse(l),u=splitByH2(o);return{name:a.name??"",domain:a.domain??"",modules:parseModulesList(u.Modules),layout:parseLayoutSection(u.Layout)}}function splitByH2(t){var o;const a={};let l="__intro__";a[l]=[];for(const u of t.children)u.type==="heading"&&u.depth===2?(l=u.children.map(d=>d.type==="text"?d.value:"").join(""),a[l]=[]):(o=a[l])==null||o.push(u);return a}function parseModulesList(t){if(!t)return[];const a=[];for(const l of t){if(l.type!=="list")continue;const o=l;for(const u of o.children){const c=u.children.map(d=>d.type==="paragraph"?d.children.map(g=>g.type==="text"?g.value:"").join(""):"").join("").trim();c&&a.push(c)}}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=u=>{};function a(u){}t.assertIs=a;function l(u){throw new Error}t.assertNever=l,t.arrayToEnum=u=>{const c={};for(const d of u)c[d]=d;return c},t.getValidEnumValues=u=>{const c=t.objectKeys(u).filter(g=>typeof u[u[g]]!="number"),d={};for(const g of c)d[g]=u[g];return t.objectValues(d)},t.objectValues=u=>t.objectKeys(u).map(function(c){return u[c]}),t.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const c=[];for(const d in u)Object.prototype.hasOwnProperty.call(u,d)&&c.push(d);return c},t.find=(u,c)=>{for(const d of u)if(c(d))return d},t.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function o(u,c=" | "){return u.map(d=>typeof d=="string"?`'${d}'`:d).join(c)}t.joinValues=o,t.jsonStringifyReplacer=(u,c)=>typeof c=="bigint"?c.toString():c})(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=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};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(c){return c.message},o={_errors:[]},u=c=>{for(const d of c.issues)if(d.code==="invalid_union")d.unionErrors.map(u);else if(d.code==="invalid_return_type")u(d.returnTypeError);else if(d.code==="invalid_arguments")u(d.argumentsError);else if(d.path.length===0)o._errors.push(l(d));else{let g=o,p=0;for(;p<d.path.length;){const m=d.path[p];p===d.path.length-1?(g[m]=g[m]||{_errors:[]},g[m]._errors.push(l(d))):g[m]=g[m]||{_errors:[]},g=g[m],p++}}};return u(this),o}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={},o=[];for(const u of this.issues)if(u.path.length>0){const c=u.path[0];l[c]=l[c]||[],l[c].push(a(u))}else o.push(a(u));return{formErrors:o,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:o,issueData:u}=t,c=[...l,...u.path||[]],d={...u,path:c};if(u.message!==void 0)return{...u,path:c,message:u.message};let g="";const p=o.filter(m=>!!m).slice().reverse();for(const m of p)g=m(d,{data:a,defaultError:g}).message;return{...u,path:c,message:g}};function addIssueToContext(t,a){const l=getErrorMap(),o=makeIssue({issueData:a,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,l===errorMap?void 0:errorMap].filter(u=>!!u)});t.common.issues.push(o)}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 o=[];for(const u of l){if(u.status==="aborted")return INVALID;u.status==="dirty"&&a.dirty(),o.push(u.value)}return{status:a.value,value:o}}static async mergeObjectAsync(a,l){const o=[];for(const u of l){const c=await u.key,d=await u.value;o.push({key:c,value:d})}return ParseStatus.mergeObjectSync(a,o)}static mergeObjectSync(a,l){const o={};for(const u of l){const{key:c,value:d}=u;if(c.status==="aborted"||d.status==="aborted")return INVALID;c.status==="dirty"&&a.dirty(),d.status==="dirty"&&a.dirty(),c.value!=="__proto__"&&(typeof d.value<"u"||u.alwaysSet)&&(o[c.value]=d.value)}return{status:a.value,value:o}}}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,o,u){this._cachedPath=[],this.parent=a,this.data=l,this._path=o,this._key=u}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:o,description:u}=t;if(a&&(l||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:u}:{errorMap:(d,g)=>{const{message:p}=t;return d.code==="invalid_enum_value"?{message:p??g.defaultError}:typeof g.data>"u"?{message:p??o??g.defaultError}:d.code!=="invalid_type"?{message:g.defaultError}:{message:p??l??g.defaultError}},description:u}}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 o=this.safeParse(a,l);if(o.success)return o.data;throw o.error}safeParse(a,l){const o={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)},u=this._parseSync({data:a,path:o.path,parent:o});return handleResult(o,u)}"~validate"(a){var o,u;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 c=this._parseSync({data:a,path:[],parent:l});return isValid(c)?{value:c.value}:{issues:l.common.issues}}catch(c){(u=(o=c==null?void 0:c.message)==null?void 0:o.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:l}).then(c=>isValid(c)?{value:c.value}:{issues:l.common.issues})}async parseAsync(a,l){const o=await this.safeParseAsync(a,l);if(o.success)return o.data;throw o.error}async safeParseAsync(a,l){const o={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)},u=this._parse({data:a,path:o.path,parent:o}),c=await(isAsync(u)?u:Promise.resolve(u));return handleResult(o,c)}refine(a,l){const o=u=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(u):l;return this._refinement((u,c)=>{const d=a(u),g=()=>c.addIssue({code:ZodIssueCode.custom,...o(u)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(g(),!1)):d?!0:(g(),!1)})}refinement(a,l){return this._refinement((o,u)=>a(o)?!0:(u.addIssue(typeof l=="function"?l(o,u):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 o=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),u=JSON.parse(atob(o));return!(typeof u!="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||a&&u.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 c=this._getOrReturnCtx(a);return addIssueToContext(c,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:c.parsedType}),INVALID}const o=new ParseStatus;let u;for(const c of this._def.checks)if(c.kind==="min")a.data.length<c.value&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),o.dirty());else if(c.kind==="max")a.data.length>c.value&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),o.dirty());else if(c.kind==="length"){const d=a.data.length>c.value,g=a.data.length<c.value;(d||g)&&(u=this._getOrReturnCtx(a,u),d?addIssueToContext(u,{code:ZodIssueCode.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):g&&addIssueToContext(u,{code:ZodIssueCode.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),o.dirty())}else if(c.kind==="email")emailRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"email",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="emoji")emojiRegex||(emojiRegex=new RegExp(_emojiRegex,"u")),emojiRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"emoji",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="uuid")uuidRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"uuid",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="nanoid")nanoidRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"nanoid",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="cuid")cuidRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"cuid",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="cuid2")cuid2Regex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="ulid")ulidRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"ulid",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="url")try{new URL(a.data)}catch{u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"url",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()}else c.kind==="regex"?(c.regex.lastIndex=0,c.regex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"regex",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty())):c.kind==="trim"?a.data=a.data.trim():c.kind==="includes"?a.data.includes(c.value,c.position)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),o.dirty()):c.kind==="toLowerCase"?a.data=a.data.toLowerCase():c.kind==="toUpperCase"?a.data=a.data.toUpperCase():c.kind==="startsWith"?a.data.startsWith(c.value)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:{startsWith:c.value},message:c.message}),o.dirty()):c.kind==="endsWith"?a.data.endsWith(c.value)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:{endsWith:c.value},message:c.message}),o.dirty()):c.kind==="datetime"?datetimeRegex(c).test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:"datetime",message:c.message}),o.dirty()):c.kind==="date"?dateRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:"date",message:c.message}),o.dirty()):c.kind==="time"?timeRegex(c).test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:"time",message:c.message}),o.dirty()):c.kind==="duration"?durationRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"duration",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):c.kind==="ip"?isValidIP(a.data,c.version)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"ip",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):c.kind==="jwt"?isValidJWT(a.data,c.alg)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"jwt",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):c.kind==="cidr"?isValidCidr(a.data,c.version)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"cidr",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):c.kind==="base64"?base64Regex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"base64",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):c.kind==="base64url"?base64urlRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"base64url",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):util.assertNever(c);return{status:o.value,value:a.data}}_regex(a,l,o){return this.refinement(u=>a.test(u),{validation:l,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(o)})}_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,o=(a.toString().split(".")[1]||"").length,u=l>o?l:o,c=Number.parseInt(t.toFixed(u).replace(".","")),d=Number.parseInt(a.toFixed(u).replace(".",""));return c%d/10**u}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 c=this._getOrReturnCtx(a);return addIssueToContext(c,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:c.parsedType}),INVALID}let o;const u=new ParseStatus;for(const c of this._def.checks)c.kind==="int"?util.isInteger(a.data)||(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:c.message}),u.dirty()):c.kind==="min"?(c.inclusive?a.data<c.value:a.data<=c.value)&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.too_small,minimum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),u.dirty()):c.kind==="max"?(c.inclusive?a.data>c.value:a.data>=c.value)&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.too_big,maximum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),u.dirty()):c.kind==="multipleOf"?floatSafeRemainder(a.data,c.value)!==0&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.not_multiple_of,multipleOf:c.value,message:c.message}),u.dirty()):c.kind==="finite"?Number.isFinite(a.data)||(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.not_finite,message:c.message}),u.dirty()):util.assertNever(c);return{status:u.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,o,u){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:a,value:l,inclusive:o,message:errorUtil.toString(u)}]})}_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 o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(l===null||o.value>l)&&(l=o.value):o.kind==="max"&&(a===null||o.value<a)&&(a=o.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 o;const u=new ParseStatus;for(const c of this._def.checks)c.kind==="min"?(c.inclusive?a.data<c.value:a.data<=c.value)&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.too_small,type:"bigint",minimum:c.value,inclusive:c.inclusive,message:c.message}),u.dirty()):c.kind==="max"?(c.inclusive?a.data>c.value:a.data>=c.value)&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.too_big,type:"bigint",maximum:c.value,inclusive:c.inclusive,message:c.message}),u.dirty()):c.kind==="multipleOf"?a.data%c.value!==BigInt(0)&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.not_multiple_of,multipleOf:c.value,message:c.message}),u.dirty()):util.assertNever(c);return{status:u.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,o,u){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:a,value:l,inclusive:o,message:errorUtil.toString(u)}]})}_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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:o.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 c=this._getOrReturnCtx(a);return addIssueToContext(c,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:c.parsedType}),INVALID}if(Number.isNaN(a.data.getTime())){const c=this._getOrReturnCtx(a);return addIssueToContext(c,{code:ZodIssueCode.invalid_date}),INVALID}const o=new ParseStatus;let u;for(const c of this._def.checks)c.kind==="min"?a.data.getTime()<c.value&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),o.dirty()):c.kind==="max"?a.data.getTime()>c.value&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),o.dirty()):util.assertNever(c);return{status:o.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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:o.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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:o.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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:o.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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:o.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:o}=this._processInputParams(a),u=this._def;if(l.parsedType!==ZodParsedType.array)return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:l.parsedType}),INVALID;if(u.exactLength!==null){const d=l.data.length>u.exactLength.value,g=l.data.length<u.exactLength.value;(d||g)&&(addIssueToContext(l,{code:d?ZodIssueCode.too_big:ZodIssueCode.too_small,minimum:g?u.exactLength.value:void 0,maximum:d?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),o.dirty())}if(u.minLength!==null&&l.data.length<u.minLength.value&&(addIssueToContext(l,{code:ZodIssueCode.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),o.dirty()),u.maxLength!==null&&l.data.length>u.maxLength.value&&(addIssueToContext(l,{code:ZodIssueCode.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),o.dirty()),l.common.async)return Promise.all([...l.data].map((d,g)=>u.type._parseAsync(new ParseInputLazyPath(l,d,l.path,g)))).then(d=>ParseStatus.mergeArray(o,d));const c=[...l.data].map((d,g)=>u.type._parseSync(new ParseInputLazyPath(l,d,l.path,g)));return ParseStatus.mergeArray(o,c)}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 o=t.shape[l];a[l]=ZodOptional.create(deepPartialify(o))}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:o,ctx:u}=this._processInputParams(a),{shape:c,keys:d}=this._getCached(),g=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys==="strip"))for(const m in u.data)d.includes(m)||g.push(m);const p=[];for(const m of d){const x=c[m],b=u.data[m];p.push({key:{status:"valid",value:m},value:x._parse(new ParseInputLazyPath(u,b,u.path,m)),alwaysSet:m in u.data})}if(this._def.catchall instanceof ZodNever){const m=this._def.unknownKeys;if(m==="passthrough")for(const x of g)p.push({key:{status:"valid",value:x},value:{status:"valid",value:u.data[x]}});else if(m==="strict")g.length>0&&(addIssueToContext(u,{code:ZodIssueCode.unrecognized_keys,keys:g}),o.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 b=u.data[x];p.push({key:{status:"valid",value:x},value:m._parse(new ParseInputLazyPath(u,b,u.path,x)),alwaysSet:x in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const m=[];for(const x of p){const b=await x.key,C=await x.value;m.push({key:b,value:C,alwaysSet:x.alwaysSet})}return m}).then(m=>ParseStatus.mergeObjectSync(o,m)):ParseStatus.mergeObjectSync(o,p)}get shape(){return this._def.shape()}strict(a){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(l,o)=>{var c,d;const u=((d=(c=this._def).errorMap)==null?void 0:d.call(c,l,o).message)??o.defaultError;return l.code==="unrecognized_keys"?{message:errorUtil.errToObj(a).message??u}:{message:u}}}:{}})}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 o of util.objectKeys(a))a[o]&&this.shape[o]&&(l[o]=this.shape[o]);return new ZodObject({...this._def,shape:()=>l})}omit(a){const l={};for(const o of util.objectKeys(this.shape))a[o]||(l[o]=this.shape[o]);return new ZodObject({...this._def,shape:()=>l})}deepPartial(){return deepPartialify(this)}partial(a){const l={};for(const o of util.objectKeys(this.shape)){const u=this.shape[o];a&&!a[o]?l[o]=u:l[o]=u.optional()}return new ZodObject({...this._def,shape:()=>l})}required(a){const l={};for(const o of util.objectKeys(this.shape))if(a&&!a[o])l[o]=this.shape[o];else{let c=this.shape[o];for(;c instanceof ZodOptional;)c=c._def.innerType;l[o]=c}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),o=this._def.options;function u(c){for(const g of c)if(g.result.status==="valid")return g.result;for(const g of c)if(g.result.status==="dirty")return l.common.issues.push(...g.ctx.common.issues),g.result;const d=c.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(o.map(async c=>{const d={...l,common:{...l.common,issues:[]},parent:null};return{result:await c._parseAsync({data:l.data,path:l.path,parent:d}),ctx:d}})).then(u);{let c;const d=[];for(const p of o){const m={...l,common:{...l.common,issues:[]},parent:null},x=p._parseSync({data:l.data,path:l.path,parent:m});if(x.status==="valid")return x;x.status==="dirty"&&!c&&(c={result:x,ctx:m}),m.common.issues.length&&d.push(m.common.issues)}if(c)return l.common.issues.push(...c.ctx.common.issues),c.result;const g=d.map(p=>new ZodError(p));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),o=getParsedType(a);if(t===a)return{valid:!0,data:t};if(l===ZodParsedType.object&&o===ZodParsedType.object){const u=util.objectKeys(a),c=util.objectKeys(t).filter(g=>u.indexOf(g)!==-1),d={...t,...a};for(const g of c){const p=mergeValues(t[g],a[g]);if(!p.valid)return{valid:!1};d[g]=p.data}return{valid:!0,data:d}}else if(l===ZodParsedType.array&&o===ZodParsedType.array){if(t.length!==a.length)return{valid:!1};const u=[];for(let c=0;c<t.length;c++){const d=t[c],g=a[c],p=mergeValues(d,g);if(!p.valid)return{valid:!1};u.push(p.data)}return{valid:!0,data:u}}else return l===ZodParsedType.date&&o===ZodParsedType.date&&+t==+a?{valid:!0,data:t}:{valid:!1}}class ZodIntersection extends ZodType{_parse(a){const{status:l,ctx:o}=this._processInputParams(a),u=(c,d)=>{if(isAborted(c)||isAborted(d))return INVALID;const g=mergeValues(c.value,d.value);return g.valid?((isDirty(c)||isDirty(d))&&l.dirty(),{status:l.value,value:g.data}):(addIssueToContext(o,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([c,d])=>u(c,d)):u(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}}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:o}=this._processInputParams(a);if(o.parsedType!==ZodParsedType.array)return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:o.parsedType}),INVALID;if(o.data.length<this._def.items.length)return addIssueToContext(o,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),INVALID;!this._def.rest&&o.data.length>this._def.items.length&&(addIssueToContext(o,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const c=[...o.data].map((d,g)=>{const p=this._def.items[g]||this._def.rest;return p?p._parse(new ParseInputLazyPath(o,d,o.path,g)):null}).filter(d=>!!d);return o.common.async?Promise.all(c).then(d=>ParseStatus.mergeArray(l,d)):ParseStatus.mergeArray(l,c)}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:o}=this._processInputParams(a);if(o.parsedType!==ZodParsedType.object)return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:o.parsedType}),INVALID;const u=[],c=this._def.keyType,d=this._def.valueType;for(const g in o.data)u.push({key:c._parse(new ParseInputLazyPath(o,g,o.path,g)),value:d._parse(new ParseInputLazyPath(o,o.data[g],o.path,g)),alwaysSet:g in o.data});return o.common.async?ParseStatus.mergeObjectAsync(l,u):ParseStatus.mergeObjectSync(l,u)}get element(){return this._def.valueType}static create(a,l,o){return l instanceof ZodType?new ZodRecord({keyType:a,valueType:l,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(o)}):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:o}=this._processInputParams(a);if(o.parsedType!==ZodParsedType.map)return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:o.parsedType}),INVALID;const u=this._def.keyType,c=this._def.valueType,d=[...o.data.entries()].map(([g,p],m)=>({key:u._parse(new ParseInputLazyPath(o,g,o.path,[m,"key"])),value:c._parse(new ParseInputLazyPath(o,p,o.path,[m,"value"]))}));if(o.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const p of d){const m=await p.key,x=await p.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 p of d){const m=p.key,x=p.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:o}=this._processInputParams(a);if(o.parsedType!==ZodParsedType.set)return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:o.parsedType}),INVALID;const u=this._def;u.minSize!==null&&o.data.size<u.minSize.value&&(addIssueToContext(o,{code:ZodIssueCode.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),l.dirty()),u.maxSize!==null&&o.data.size>u.maxSize.value&&(addIssueToContext(o,{code:ZodIssueCode.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),l.dirty());const c=this._def.valueType;function d(p){const m=new Set;for(const x of p){if(x.status==="aborted")return INVALID;x.status==="dirty"&&l.dirty(),m.add(x.value)}return{status:l.value,value:m}}const g=[...o.data.values()].map((p,m)=>c._parse(new ParseInputLazyPath(o,p,o.path,m)));return o.common.async?Promise.all(g).then(p=>d(p)):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),o=this._def.values;return addIssueToContext(l,{expected:util.joinValues(o),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),o=this._def.values;return addIssueToContext(l,{received:l.data,code:ZodIssueCode.invalid_enum_value,options:o}),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(o=>!a.includes(o)),{...this._def,...l})}}ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{_parse(a){const l=util.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(a);if(o.parsedType!==ZodParsedType.string&&o.parsedType!==ZodParsedType.number){const u=util.objectValues(l);return addIssueToContext(o,{expected:util.joinValues(u),received:o.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||(this._cache=new Set(util.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const u=util.objectValues(l);return addIssueToContext(o,{received:o.data,code:ZodIssueCode.invalid_enum_value,options:u}),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 o=l.parsedType===ZodParsedType.promise?l.data:Promise.resolve(l.data);return OK(o.then(u=>this._def.type.parseAsync(u,{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:o}=this._processInputParams(a),u=this._def.effect||null,c={addIssue:d=>{addIssueToContext(o,d),d.fatal?l.abort():l.dirty()},get path(){return o.path}};if(c.addIssue=c.addIssue.bind(c),u.type==="preprocess"){const d=u.transform(o.data,c);if(o.common.async)return Promise.resolve(d).then(async g=>{if(l.value==="aborted")return INVALID;const p=await this._def.schema._parseAsync({data:g,path:o.path,parent:o});return p.status==="aborted"?INVALID:p.status==="dirty"||l.value==="dirty"?DIRTY(p.value):p});{if(l.value==="aborted")return INVALID;const g=this._def.schema._parseSync({data:d,path:o.path,parent:o});return g.status==="aborted"?INVALID:g.status==="dirty"||l.value==="dirty"?DIRTY(g.value):g}}if(u.type==="refinement"){const d=g=>{const p=u.refinement(g,c);if(o.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(o.common.async===!1){const g=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});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:o.data,path:o.path,parent:o}).then(g=>g.status==="aborted"?INVALID:(g.status==="dirty"&&l.dirty(),d(g.value).then(()=>({status:l.value,value:g.value}))))}if(u.type==="transform")if(o.common.async===!1){const d=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!isValid(d))return INVALID;const g=u.transform(d.value,c);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:o.data,path:o.path,parent:o}).then(d=>isValid(d)?Promise.resolve(u.transform(d.value,c)).then(g=>({status:l.value,value:g})):INVALID);util.assertNever(u)}}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 o=l.data;return l.parsedType===ZodParsedType.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,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),o={...l,common:{...l.common,issues:[]}},u=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return isAsync(u)?u.then(c=>({status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new ZodError(o.common.issues)},input:o.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new ZodError(o.common.issues)},input:o.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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:o.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),o=l.data;return this._def.type._parse({data:o,path:l.path,parent:l})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(a){const{status:l,ctx:o}=this._processInputParams(a);if(o.common.async)return(async()=>{const c=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return c.status==="aborted"?INVALID:c.status==="dirty"?(l.dirty(),DIRTY(c.value)):this._def.out._parseAsync({data:c.value,path:o.path,parent:o})})();{const u=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return u.status==="aborted"?INVALID:u.status==="dirty"?(l.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:o.path,parent:o})}}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),o=u=>(isValid(u)&&(u.value=Object.freeze(u.value)),u);return isAsync(l)?l.then(u=>o(u)):o(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 o=`gap-${t}`;return jsxRuntimeExports.jsx("div",{className:cn("flex flex-col",o,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:o,className:u}){return jsxRuntimeExports.jsx("div",{className:cn("flex flex-row",`gap-${t}`,alignMap[a],justifyMap[l],u),children:o})}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 o=`h${t}`;return jsxRuntimeExports.jsx(o,{className:cn(levelStyles[t],l),children:a})}const Input=reactExports.forwardRef(({className:t,type:a,...l},o)=>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:o,...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({}),o=(c,d)=>{l(g=>({...g,[c]:d}))},u=()=>{l({})};return jsxRuntimeExports.jsx(FormContext.Provider,{value:{values:a,setValue:o,reset:u},children:t})}function TextInput({name:t,type:a="text",placeholder:l}){const{values:o,setValue:u}=useFormContext(),c=o[t]??"";return jsxRuntimeExports.jsx(Input,{type:a,name:t,placeholder:l,value:c,onChange:d=>u(t,d.target.value)})}function IntentFormInner({intent:t,submitLabel:a="Submit",children:l}){const{values:o,reset:u}=useFormContext(),{sendIntent:c}=useClappContext(),d=g=>{g.preventDefault(),c(t,o),u()};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:o="default",label:u,children:c}){const{emit:d}=useIntent(),g=l==="primary"?"default":l;return jsxRuntimeExports.jsx(Button,{variant:g,size:o,onClick:()=>d(t,a),children:c||u})}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:o,className:u}){const c=useClappState(t||"_empty_")??[],d=useClappState(l||"_empty_"),{emit:g}=useIntent();return t?c.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",u),children:c.map((p,m)=>{const x=typeof p=="object"&&p!==null,b=x?p:null,C=String(b?b.text??JSON.stringify(p):p),R=b!=null&&b.role?String(b.role):void 0,_=b!=null&&b.id?String(b.id):`${m}`,B=p===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",B?"bg-accent text-accent-foreground":"hover:bg-accent/50",R==="assistant"&&"bg-muted/50",R==="user"&&"bg-primary/10"),onClick:a?()=>g(a,x?p:{value:p}):void 0,role:a?"button":void 0,children:C},_)})}):jsxRuntimeExports.jsx("ul",{className:cn("flex flex-col gap-1",u),children:o})}function ListItem({active:t,children:a,className:l,onClick:o}){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:o,children:a})}function Conditional({when:t,children:a}){const l=(t==null?void 0:t.startsWith("!"))??!1,o=l?t.slice(1):t??"",u=useClappState(o||"_empty_");return(l?!u:!!u)?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:a}):null}function MarkdownContent({source:t,content:a,className:l}){const o=useClappState(t||"_empty_"),u=a??o??"";return u?jsxRuntimeExports.jsx("div",{className:cn("prose prose-invert prose-sm max-w-none",l),children:jsxRuntimeExports.jsx(Markdown,{components:{h1:({children:c})=>jsxRuntimeExports.jsx("h1",{className:"text-xl font-bold mt-4 mb-2",children:c}),h2:({children:c})=>jsxRuntimeExports.jsx("h2",{className:"text-lg font-semibold mt-3 mb-2",children:c}),h3:({children:c})=>jsxRuntimeExports.jsx("h3",{className:"text-base font-semibold mt-2 mb-1",children:c}),p:({children:c})=>jsxRuntimeExports.jsx("p",{className:"my-2 text-sm leading-relaxed",children:c}),ul:({children:c})=>jsxRuntimeExports.jsx("ul",{className:"list-disc list-inside my-2 text-sm",children:c}),ol:({children:c})=>jsxRuntimeExports.jsx("ol",{className:"list-decimal list-inside my-2 text-sm",children:c}),li:({children:c})=>jsxRuntimeExports.jsx("li",{className:"my-0.5",children:c}),code:({children:c,className:d})=>!d?jsxRuntimeExports.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs font-mono",children:c}):jsxRuntimeExports.jsx("code",{className:d,children:c}),pre:({children:c})=>jsxRuntimeExports.jsx("pre",{className:"bg-card border border-border rounded-md p-3 overflow-x-auto my-2 text-xs",children:c}),blockquote:({children:c})=>jsxRuntimeExports.jsx("blockquote",{className:"border-l-2 border-primary pl-3 my-2 text-muted-foreground italic",children:c}),a:({href:c,children:d})=>jsxRuntimeExports.jsx("a",{href:c,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:d}),strong:({children:c})=>jsxRuntimeExports.jsx("strong",{className:"font-semibold",children:c}),em:({children:c})=>jsxRuntimeExports.jsx("em",{className:"italic",children:c})},children:u})}):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:o}=useIntent(),[u,c]=reactExports.useState("select"),[d,g]=reactExports.useState(null),[p,m]=reactExports.useState(null),[x,b]=reactExports.useState(""),[C,R]=reactExports.useState({}),[_,B]=reactExports.useState({}),[L,D]=reactExports.useState(!1),[H,V]=reactExports.useState(null);reactExports.useEffect(()=>{if(t){if(l){g(l.type);const ae=l.authType==="subscription"||l.authType==="oauth"||l.mode==="oauth"?"subscription":"api-key";m(ae),b(l.name),c("configure")}else c("select"),g(null),m(null),b("");R({}),B({}),V(null),D(!1)}},[t,l]);const se=d?PROVIDER_CONFIGS.find(ae=>ae.type===d):null,te=se&&p?se.authModes.find(ae=>ae.mode===p):null,Y=ae=>{g(ae);const Ce=PROVIDER_CONFIGS.find(ye=>ye.type===ae);Ce&&(m(Ce.authModes[0].mode),b(Ce.name)),c("configure")},ge=(ae,Ce)=>{R(ye=>({...ye,[ae]:Ce})),V(null)},W=ae=>{B(Ce=>({...Ce,[ae]:!Ce[ae]}))},ve=async()=>{var ae,Ce;if(!(!d||!p||!se)){if(te!=null&&te.fields.length){for(const ye of te.fields)if(!((ae=C[ye.name])!=null&&ae.trim())){V(`${ye.label} is required`);return}}D(!0),V(null);try{const ye=getIntentName(d,p),ee={customName:x.trim()||se.name,profileId:l==null?void 0:l.id};for(const P of(te==null?void 0:te.fields)??[])ee[P.name]=(Ce=C[P.name])==null?void 0:Ce.trim();o(ye,ee),await new Promise(P=>setTimeout(P,1e3)),a()}catch(ye){V(ye instanceof Error?ye.message:"Failed to save provider")}finally{D(!1)}}},K=()=>{d&&(D(!0),o("settings.startOAuth",{provider:d==="openai"?"openai-codex":d,customName:x.trim()||(se==null?void 0:se.name)}))},Ee=()=>{l&&confirm(`Delete "${l.name}"? This cannot be undone.`)&&(o("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:[u==="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(ae=>jsxRuntimeExports.jsxs("button",{onClick:()=>Y(ae.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:ae.name}),jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground",children:ae.description})]},ae.type))]}),u==="configure"&&se&&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:ae=>b(ae.target.value),placeholder:se.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")'})]}),se.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:se.authModes.map(ae=>jsxRuntimeExports.jsxs("button",{onClick:()=>m(ae.mode),className:cn("p-3 rounded-lg border text-left transition-colors",p===ae.mode?"border-primary bg-primary/10":"border-border hover:border-muted-foreground"),children:[jsxRuntimeExports.jsx("div",{className:"text-sm font-medium",children:ae.label}),jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:ae.description})]},ae.mode))})]}),te&&jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[te.fields.length>0?te.fields.map(ae=>jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:ae.label}),(l==null?void 0:l.maskedCredential)&&!C[ae.name]&&jsxRuntimeExports.jsxs("div",{className:"text-xs text-muted-foreground bg-muted/50 px-2 py-1 rounded mb-1",children:["Current: ",l.maskedCredential]}),ae.type==="textarea"?jsxRuntimeExports.jsx("textarea",{value:C[ae.name]??"",onChange:Ce=>ge(ae.name,Ce.target.value),placeholder:l?"Enter new value to replace...":ae.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:ae.type==="password"&&!_[ae.name]?"password":"text",value:C[ae.name]??"",onChange:Ce=>ge(ae.name,Ce.target.value),placeholder:l?"Enter new value to replace...":ae.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"}),ae.type==="password"&&jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>W(ae.name),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 text-muted-foreground hover:text-foreground",children:_[ae.name]?jsxRuntimeExports.jsx(EyeOff,{className:"h-4 w-4"}):jsxRuntimeExports.jsx(Eye,{className:"h-4 w-4"})})]}),ae.helpText&&jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground",children:ae.helpText})]},ae.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 ",se.name," account."]}),jsxRuntimeExports.jsx(Button,{onClick:K,disabled:L,className:"w-full",children:L?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin mr-2"}),"Connecting..."]}):`Sign in with ${se.name}`})]}),te.helpUrl&&jsxRuntimeExports.jsxs("a",{href:te.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"})]})]}),H&&jsxRuntimeExports.jsx("div",{className:"p-3 rounded-md bg-destructive/10 text-destructive text-sm",children:H})]})]}),u==="configure"&&(te==null?void 0:te.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:Ee,disabled:L,className:"mr-auto",children:"Delete"}),jsxRuntimeExports.jsx(Button,{variant:"outline",onClick:()=>l?a():c("select"),disabled:L,children:l?"Cancel":"Back"}),jsxRuntimeExports.jsx(Button,{onClick:ve,disabled:L,children:L?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 o;return((o={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:o[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")??"",o=useClappState("active.profileId")??"",{emit:u}=useIntent(),c=a.find(ee=>ee.active)??a[0],[d,g]=reactExports.useState(o||(c==null?void 0:c.id)||""),[p,m]=reactExports.useState(l??""),[x,b]=reactExports.useState(!1),[C,R]=reactExports.useState(!1),[_,B]=reactExports.useState(null),[L,D]=reactExports.useState(!1),[H,V]=reactExports.useState(null),se=d!==(o||(c==null?void 0:c.id)||"")||p!==(l??"");reactExports.useEffect(()=>{!c&&!o||(!d||!x&&!se)&&g(o||(c==null?void 0:c.id)||"")},[c,o,x,se,d]),reactExports.useEffect(()=>{l&&(!p||!x&&!se)&&m(l)},[l,x,p,se]);const te=reactExports.useMemo(()=>{const ee=a.find(P=>P.id===d);return(ee==null?void 0:ee.models)??[]},[a,d]);reactExports.useEffect(()=>{if(!te.length)return;te.some(P=>P.id===p)||m(te[0].id)},[te,p]);const Y=d!==(o||(c==null?void 0:c.id)||""),ge=!!(p&&p!==l),W=Y||ge;reactExports.useEffect(()=>{if(!x)return;const ee=(o||(c==null?void 0:c.id)||"")===d,P=!ge||l===p&&l.length>0;ee&&P&&(b(!1),R(!1),B(null))},[l,p,d,o,c,ge,x]),reactExports.useEffect(()=>{if(!x)return;const ee=setTimeout(()=>R(!0),1e4),P=setTimeout(()=>{b(!1),R(!1),B("Still applying took too long. Changes may still complete in the background.")},3e4);return()=>{clearTimeout(ee),clearTimeout(P)}},[x]);const ve=a.find(ee=>ee.id===d),K=ee=>{var fe,_e;if(x)return;g(ee);const P=a.find(O=>O.id===ee),he=(_e=(fe=P==null?void 0:P.models)==null?void 0:fe[0])==null?void 0:_e.id;m(he||"")},Ee=()=>{!W||!p||x||(b(!0),R(!1),B(null),Y&&u("settings.setActiveProfile",{profileId:d}),ge&&u("settings.setActiveModel",{model:p}))},ae=()=>{V(null),D(!0)},Ce=ee=>{const P=ee.id.split(":")[0],he={anthropic:"anthropic",openai:"openai","openai-codex":"openai","kimi-coding":"kimi-coding",moonshot:"kimi-coding"};V({id:ee.id,name:ee.name,type:he[P]??"anthropic",mode:ee.mode,authType:ee.authType,maskedCredential:ee.maskedCredential}),D(!0)},ye=()=>{D(!1),V(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:d,onChange:ee=>K(ee.target.value),disabled:x||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(ee=>jsxRuntimeExports.jsx("option",{value:ee.id,children:providerOptionLabel(ee)},ee.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"})]}),ve&&jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>Ce(ve),disabled:x,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 ${ve.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:p,onChange:ee=>m(ee.target.value),disabled:x||te.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:te.length===0?jsxRuntimeExports.jsx("option",{value:"",children:"No models available"}):te.map(ee=>jsxRuntimeExports.jsx("option",{value:ee.id,children:ee.label},ee.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"})]})]}),ve&&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(ve),": ",ve.maskedCredential??"No credential"]}),jsxRuntimeExports.jsxs("div",{className:"opacity-70",children:["id: ",ve.id]})]}),jsxRuntimeExports.jsx("button",{type:"button",onClick:Ee,disabled:!W||!p||x,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:x?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin"}),C?"Still applying…":"Updating model…"]}):W?"Save changes":jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Check,{className:"h-4 w-4"}),"Up to date"]})}),_&&jsxRuntimeExports.jsx("p",{className:"text-xs text-amber-600 dark:text-amber-400",children:_}),jsxRuntimeExports.jsx("div",{className:"pt-2 border-t border-border",children:jsxRuntimeExports.jsxs("button",{type:"button",onClick:ae,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:L,onClose:ye,editingProvider:H})]})}function SessionList(){const t=useClappState("sessions"),a=(t==null?void 0:t.sessions)??[],l=t==null?void 0:t.globalModel,{emit:o}=useIntent(),[u,c]=reactExports.useState(!1),[d,g]=reactExports.useState(null),[p,m]=reactExports.useState(!1);reactExports.useEffect(()=>{o("settings.listSessions",{})},[o]);const x=()=>{c(!0),o("settings.listSessions",{}),setTimeout(()=>c(!1),1500)},b=L=>{g(L),o("settings.resetSessionModel",{sessionKey:L}),setTimeout(()=>g(null),2e3)},C=()=>{m(!0),o("settings.applyDefaultToAll",{}),setTimeout(()=>m(!1),3e3)},R=a.filter(L=>L.isOverride).length,_=a.find(L=>L.key==="agent:main:main")??a[0],B=!!(_!=null&&_.isOverride);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:x,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":"",R>0&&jsxRuntimeExports.jsxs("span",{className:"text-amber-500 ml-1",children:["• ",R," override",R!==1?"s":""]})]})]}),jsxRuntimeExports.jsx("button",{onClick:x,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.jsxs("div",{className:cn("rounded-lg border p-3 space-y-2",B?"border-amber-500/50 bg-amber-500/5":"border-border bg-muted/30"),children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground",children:"Model source of truth"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-4 text-sm",children:[jsxRuntimeExports.jsxs("div",{className:"min-w-0",children:[jsxRuntimeExports.jsx("div",{className:"text-muted-foreground text-xs",children:"Global default"}),jsxRuntimeExports.jsx("div",{className:"font-medium truncate",children:l??"unknown"})]}),jsxRuntimeExports.jsxs("div",{className:"min-w-0 text-right",children:[jsxRuntimeExports.jsx("div",{className:"text-muted-foreground text-xs",children:"This session"}),jsxRuntimeExports.jsx("div",{className:"font-medium truncate",children:(_==null?void 0:_.model)??"unknown"})]})]}),_&&jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsx("span",{className:cn("text-xs",B?"text-amber-500":"text-green-600 dark:text-green-400"),children:B?"Session override is active":"Session matches global default"}),B&&jsxRuntimeExports.jsx("button",{onClick:()=>b(_.key),disabled:d===_.key,className:"shrink-0 px-2 py-1 text-xs rounded-md border border-border hover:bg-muted transition-colors disabled:opacity-50",children:d===_.key?"Resetting…":"Reset this session"})]})]}),jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-2",children:a.map(L=>jsxRuntimeExports.jsxs("div",{className:cn("flex items-start justify-between gap-2 p-3 rounded-lg border",L.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:[L.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:L.label})]}),jsxRuntimeExports.jsxs("div",{className:"mt-1 ml-6",children:[jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground",children:L.modelLabel}),L.isOverride&&jsxRuntimeExports.jsx("span",{className:"text-xs text-amber-500 ml-2",children:"(override)"})]})]}),L.isOverride&&jsxRuntimeExports.jsx("button",{onClick:()=>b(L.key),disabled:d===L.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:d===L.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"]})})]},L.key))}),R>0&&jsxRuntimeExports.jsx("button",{onClick:C,disabled:p,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:p?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 ${R} override${R!==1?"s":""}`})]})}function ChatMessages({messages:t,loading:a,loadingText:l="Thinking...",hasMore:o=!1,loadingOlder:u=!1,onLoadOlder:c}){const d=reactExports.useRef(null),g=reactExports.useRef(null),p=reactExports.useRef(!0);reactExports.useEffect(()=>{t.length===0&&(p.current=!0)},[t.length]),reactExports.useEffect(()=>{var C,R;const x=d.current;if(!x)return;if(p.current&&t.length>0){p.current=!1,(C=g.current)==null||C.scrollIntoView({behavior:"instant"});return}(x.scrollHeight-x.scrollTop-x.clientHeight<200||a)&&((R=g.current)==null||R.scrollIntoView({behavior:"smooth",block:"end"}))},[t,a]);const m=()=>{const x=d.current;!x||!o||u||!c||x.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:d,onScroll:m,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…"}),o&&!u&&jsxRuntimeExports.jsx("div",{className:"text-center text-xs text-muted-foreground",children:"Scroll up to load older messages"}),t.map(x=>jsxRuntimeExports.jsx(MessageBubble,{message:x},x.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 line-clamp-2",children:l})]})})]}),jsxRuntimeExports.jsx("div",{ref:g})]})})}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.jsxs("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:[t.attachments&&t.attachments.length>0&&jsxRuntimeExports.jsxs("div",{className:"mb-2 space-y-2",children:[jsxRuntimeExports.jsx("div",{className:"grid grid-cols-2 gap-2",children:t.attachments.filter(o=>o.type==="image").map(o=>jsxRuntimeExports.jsx("a",{href:o.url,target:"_blank",rel:"noreferrer",children:jsxRuntimeExports.jsx("img",{src:o.url,alt:o.name,className:"rounded-md border border-black/10 dark:border-white/10 max-h-52 object-cover",loading:"lazy"})},o.id))}),t.attachments.filter(o=>o.type==="file").map(o=>jsxRuntimeExports.jsxs("a",{href:o.url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 rounded-md border border-black/10 dark:border-white/10 px-2 py-1.5 text-xs hover:bg-black/5 dark:hover:bg-white/5",children:[jsxRuntimeExports.jsx(Paperclip,{className:"h-3.5 w-3.5"}),jsxRuntimeExports.jsx("span",{className:"truncate",children:o.name})]},o.id))]}),t.content&&jsxRuntimeExports.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none break-words",children:jsxRuntimeExports.jsx(Markdown,{components:{code:({className:o,children:u,...c})=>o?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",...c,children:u})}):jsxRuntimeExports.jsx("code",{className:"bg-black/10 dark:bg-white/10 px-1 py-0.5 rounded text-sm",...c,children:u}),p:({children:o})=>jsxRuntimeExports.jsx("p",{className:"mb-2 last:mb-0",children:o})},children:t.content})})]})})]})}function ChatInput({onSend:t,disabled:a=!1,placeholder:l="Message..."}){const[o,u]=reactExports.useState(""),[c,d]=reactExports.useState([]),g=reactExports.useRef(null),p=reactExports.useRef(null);reactExports.useEffect(()=>{const L=g.current;L&&(L.style.height="auto",L.style.height=`${Math.min(L.scrollHeight,200)}px`)},[o]);const m=L=>new Promise((D,H)=>{const V=new FileReader;V.onload=()=>D(String(V.result??"")),V.onerror=()=>H(new Error(`Failed to read file: ${L.name}`)),V.readAsDataURL(L)}),x=async L=>{if(!L.length)return;const D=await Promise.all(L.map(async(H,V)=>{const se=await m(H);return{id:`file-${Date.now()}-${V}`,name:H.name||`attachment-${Date.now()}`,mimeType:H.type||"application/octet-stream",size:H.size,dataUrl:se,isImage:H.type.startsWith("image/")}}));d(H=>[...H,...D])},b=async L=>{var se;const H=Array.from(((se=L.clipboardData)==null?void 0:se.items)??[]).filter(te=>te.type.startsWith("image/"));if(!H.length)return;L.preventDefault();const V=H.map(te=>te.getAsFile()).filter(Boolean);await x(V)},C=async L=>{const D=Array.from(L.target.files??[]);await x(D),L.target.value=""},R=()=>{const L=o.trim();!L&&c.length===0||a||(t(L,c.map(({id:D,isImage:H,...V})=>V)),u(""),d([]),g.current&&(g.current.style.height="auto"))},_=L=>d(D=>D.filter(H=>H.id!==L)),B=L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),R())};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:[!!c.length&&jsxRuntimeExports.jsx("div",{className:"mb-2 flex flex-wrap gap-2",children:c.map(L=>jsxRuntimeExports.jsxs("div",{className:"relative rounded-md border bg-muted/40 overflow-hidden",children:[L.isImage?jsxRuntimeExports.jsx("img",{src:L.dataUrl,alt:L.name,className:"h-16 w-16 object-cover"}):jsxRuntimeExports.jsxs("div",{className:"h-16 min-w-40 px-2 flex items-center gap-2 text-xs",children:[jsxRuntimeExports.jsx(Paperclip,{className:"h-3.5 w-3.5"}),jsxRuntimeExports.jsx("span",{className:"truncate max-w-28",children:L.name})]}),jsxRuntimeExports.jsx("button",{onClick:()=>_(L.id),className:"absolute top-0.5 right-0.5 rounded-full bg-black/70 text-white p-0.5",title:"Remove",children:jsxRuntimeExports.jsx(X,{className:"h-3 w-3"})})]},L.id))}),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("input",{ref:p,type:"file",multiple:!0,onChange:C,className:"hidden",accept:"image/*,.pdf,.txt,.md,.csv,.json,.doc,.docx,.xls,.xlsx,.ppt,.pptx"}),jsxRuntimeExports.jsx("button",{onClick:()=>{var L;return(L=p.current)==null?void 0:L.click()},className:"shrink-0 p-2 rounded-xl bg-background border border-border hover:bg-muted transition-colors",title:"Add photos & files",children:jsxRuntimeExports.jsx(Plus,{className:"h-4 w-4"})}),jsxRuntimeExports.jsx("textarea",{ref:g,value:o,onChange:L=>u(L.target.value),onKeyDown:B,onPaste:b,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:R,disabled:a||!o.trim()&&c.length===0,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:"Enter to send • Shift+Enter newline • Paste images or use + for files"})]})})}function ChatLayout(){const t=useClappState("chat"),a=(t==null?void 0:t.sessions)??[],l=t==null?void 0:t.activeSession,o=(t==null?void 0:t.messages)??[],u=(t==null?void 0:t.loading)??!1,c=(t==null?void 0:t.loadingText)??"Thinking...",d=(t==null?void 0:t.loadingOlder)??!1,g=(t==null?void 0:t.hasMore)??!1,{emit:p}=useIntent(),[m,x]=reactExports.useState(!1),[b,C]=reactExports.useState(null),R=reactExports.useRef(!1);reactExports.useEffect(()=>{l&&x(!1)},[l]),reactExports.useEffect(()=>{R.current||(R.current=!0,p("chat.init",{}))},[p]);const _=()=>{p("chat.newSession",{}),x(!1)},B=W=>{W!==l&&p("chat.switchSession",{sessionKey:W}),x(!1)},L=(W,ve)=>{ve.stopPropagation(),C(W),p("chat.deleteSession",{sessionKey:W}),setTimeout(()=>C(null),1e3)},[D,H]=reactExports.useState(null),V=(W,ve)=>{W.trim()&&H({id:`pending-${Date.now()}`,role:"user",content:W,timestamp:new Date().toISOString()}),p("chat.send",{text:W,attachments:ve??[]})};reactExports.useEffect(()=>{D&&o.some(W=>W.role==="user"&&W.content===D.content)&&H(null)},[o,D]);const se=D?[...o,D]:o,te=u||!!D,Y=()=>{!d&&g&&p("chat.loadOlder",{})},ge=a.find(W=>W.key===l);return jsxRuntimeExports.jsxs("div",{className:"flex h-full bg-background",children:[m&&jsxRuntimeExports.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 lg:hidden",onClick:()=>x(!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",m?"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:_,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:()=>x(!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(W=>jsxRuntimeExports.jsx("button",{onClick:()=>B(W.key),className:cn("w-full text-left p-3 rounded-lg transition-colors group","hover:bg-muted",W.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:W.title||"New conversation"}),jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground truncate mt-0.5",children:W.preview||"No messages"})]}),jsxRuntimeExports.jsx("button",{onClick:ve=>L(W.key,ve),className:cn("p-1 rounded opacity-0 group-hover:opacity-100 transition-opacity","hover:bg-destructive/20 hover:text-destructive",b===W.key&&"opacity-100"),title:"Delete conversation",children:jsxRuntimeExports.jsx(Trash2,{className:"h-3.5 w-3.5"})})]})},W.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:()=>x(!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:(ge==null?void 0:ge.title)||"New conversation"})})]}),jsxRuntimeExports.jsx(ChatMessages,{messages:se,loading:te,loadingText:c,hasMore:g,loadingOlder:d,onLoadOlder:Y}),jsxRuntimeExports.jsx(ChatInput,{onSend:V,disabled:u})]})]})}function AccountCard({item:t}){const{emit:a}=useIntent();return jsxRuntimeExports.jsx(Card$1,{className:cn("p-4",!t.enabled&&"opacity-60"),children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsx("div",{className:"font-semibold",children:t.id}),jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground",children:t.mode==="socket"?"Socket Mode":"HTTP Mode"}),jsxRuntimeExports.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["Token: ",t.botToken]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("button",{onClick:()=>a("slack.testAccount",{accountId:t.id}),className:"px-3 py-1 text-sm rounded-md bg-muted hover:bg-muted/80",children:"Test"}),jsxRuntimeExports.jsx("button",{onClick:()=>a("slack.editAccount",{accountId:t.id}),className:"px-3 py-1 text-sm rounded-md bg-muted hover:bg-muted/80",children:"Edit"}),jsxRuntimeExports.jsx("button",{onClick:()=>a("slack.deleteAccount",{accountId:t.id}),className:"px-3 py-1 text-sm rounded-md bg-destructive/20 text-destructive hover:bg-destructive/30",children:"Delete"})]})]})})}function AccountEditor({account:t}){const{emit:a}=useIntent(),l=useClappState("slack.saving")??!1,o=useClappState("slack.saveError")??null,[u,c]=reactExports.useState(!1),d=reactExports.useRef(l),[g,p]=reactExports.useState((t==null?void 0:t.id)||""),[m,x]=reactExports.useState((t==null?void 0:t.mode)||"socket"),[b,C]=reactExports.useState((t==null?void 0:t.botToken)||""),[R,_]=reactExports.useState((t==null?void 0:t.appToken)||""),[B,L]=reactExports.useState((t==null?void 0:t.signingSecret)||""),[D,H]=reactExports.useState((t==null?void 0:t.webhookPath)||"/slack/events");reactExports.useEffect(()=>{l&&!d.current||!l&&d.current&&c(!1),d.current=l},[l]),reactExports.useEffect(()=>{if(!u)return;const te=setTimeout(()=>c(!1),2e4);return()=>clearTimeout(te)},[u]);const V=()=>{c(!0),a("slack.saveAccount",{accountId:g||"default",mode:m,botToken:b,appToken:m==="socket"?R:void 0,signingSecret:m==="http"?B:void 0,webhookPath:m==="http"?D:void 0})},se=()=>{p(""),x("socket"),C(""),_(""),L(""),H("/slack/events")};return jsxRuntimeExports.jsx(Card$1,{className:"p-6",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Account ID"}),jsxRuntimeExports.jsx(Input,{value:g,onChange:te=>p(te.target.value),placeholder:"default",disabled:u})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Mode"}),jsxRuntimeExports.jsxs("div",{className:"flex gap-2 mt-2",children:[jsxRuntimeExports.jsx(Button,{type:"button",variant:m==="socket"?"default":"outline",onClick:()=>x("socket"),disabled:u,children:"Socket Mode"}),jsxRuntimeExports.jsx(Button,{type:"button",variant:m==="http"?"default":"outline",onClick:()=>x("http"),disabled:u,children:"HTTP Events API"})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Bot Token"}),jsxRuntimeExports.jsx(Input,{value:b,onChange:te=>C(te.target.value),placeholder:"xoxb-...",type:"password",disabled:u})]}),m==="socket"&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"App Token"}),jsxRuntimeExports.jsx(Input,{value:R,onChange:te=>_(te.target.value),placeholder:"xapp-...",type:"password",disabled:u})]}),m==="http"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Signing Secret"}),jsxRuntimeExports.jsx(Input,{value:B,onChange:te=>L(te.target.value),placeholder:"Signing secret",type:"password",disabled:u})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Webhook Path"}),jsxRuntimeExports.jsx(Input,{value:D,onChange:te=>H(te.target.value),placeholder:"/slack/events",disabled:u})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[jsxRuntimeExports.jsx(Button,{type:"button",variant:"outline",onClick:se,disabled:u,children:"Clear"}),jsxRuntimeExports.jsx(Button,{type:"button",onClick:V,disabled:!b||u,children:u?"Saving…":"Save Account"})]}),o&&jsxRuntimeExports.jsx("p",{className:"text-xs text-rose-500",children:o})]})})}function ChannelList({channels:t}){const{emit:a}=useIntent();return!Array.isArray(t)||t.length===0?jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground text-center py-4",children:"No channels configured"}):jsxRuntimeExports.jsx("div",{className:"space-y-2",children:t.map(l=>jsxRuntimeExports.jsx(Card$1,{className:"p-4",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsx("div",{className:"font-semibold",children:l.name||l.id}),jsxRuntimeExports.jsxs("div",{className:"text-sm text-muted-foreground mt-1 space-y-1",children:[l.requireMention!==void 0&&jsxRuntimeExports.jsxs("div",{children:["Require mention: ",l.requireMention?"Yes":"No"]}),l.users&&l.users.length>0&&jsxRuntimeExports.jsxs("div",{children:["Users: ",l.users.join(", ")]}),l.skills&&l.skills.length>0&&jsxRuntimeExports.jsxs("div",{children:["Skills: ",l.skills.join(", ")]})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",onClick:()=>a("slack.editChannel",{channelId:l.id}),children:jsxRuntimeExports.jsx(SquarePen,{className:"h-4 w-4"})}),jsxRuntimeExports.jsx(Button,{size:"sm",variant:"destructive",onClick:()=>a("slack.removeChannel",{channelId:l.id}),children:jsxRuntimeExports.jsx(Trash2,{className:"h-4 w-4"})})]})]})},l.id))})}function ChannelEditor({channel:t,onClose:a}){const{emit:l}=useIntent(),[o,u]=reactExports.useState((t==null?void 0:t.id)||""),[c,d]=reactExports.useState((t==null?void 0:t.requireMention)??!0),[g,p]=reactExports.useState(((t==null?void 0:t.users)||[]).join(", ")),[m,x]=reactExports.useState(((t==null?void 0:t.skills)||[]).join(", ")),b=()=>{l("slack.saveChannel",{channelId:o,requireMention:c,users:g.split(",").map(C=>C.trim()).filter(Boolean),skills:m.split(",").map(C=>C.trim()).filter(Boolean)}),a==null||a()};return jsxRuntimeExports.jsx(Card$1,{className:"p-6 max-w-2xl mx-auto",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold",children:t?"Edit Channel":"Add Channel"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Channel ID"}),jsxRuntimeExports.jsx(Input,{value:o,onChange:C=>u(C.target.value),placeholder:"C1234567890",disabled:!!t}),jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Use Slack channel ID or name"})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:c,onChange:C=>d(C.target.checked),id:"requireMention",className:"rounded border-gray-300"}),jsxRuntimeExports.jsx("label",{htmlFor:"requireMention",className:"text-sm font-medium cursor-pointer",children:"Require mention to respond"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Allowed Users (optional)"}),jsxRuntimeExports.jsx(Input,{value:g,onChange:C=>p(C.target.value),placeholder:"user:U123, user:U456"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Comma-separated list of user IDs or names"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Custom Skills (optional)"}),jsxRuntimeExports.jsx(Input,{value:m,onChange:C=>x(C.target.value),placeholder:"weather, calendar"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Comma-separated list of skill IDs"})]}),jsxRuntimeExports.jsxs("div",{className:"flex gap-2 justify-end pt-4",children:[a&&jsxRuntimeExports.jsx(Button,{variant:"outline",onClick:a,children:"Cancel"}),jsxRuntimeExports.jsx(Button,{onClick:b,disabled:!o,children:"Save Channel"})]})]})})}function PolicySelector({value:t,type:a}){const{emit:l}=useIntent(),o=a==="dm"?[{value:"pairing",label:"Pairing (default)"},{value:"allowlist",label:"Allowlist"},{value:"open",label:"Open"},{value:"disabled",label:"Disabled"}]:[{value:"open",label:"Open"},{value:"allowlist",label:"Allowlist (recommended)"},{value:"disabled",label:"Disabled"}],u=c=>{a==="dm"?l("slack.setDmPolicy",{policy:c}):l("slack.setGroupPolicy",{policy:c})};return jsxRuntimeExports.jsx("select",{value:t,onChange:c=>u(c.target.value),className:"w-full px-3 py-2 border rounded-md bg-background",children:o.map(c=>jsxRuntimeExports.jsx("option",{value:c.value,children:c.label},c.value))})}function FeatureToggles({actions:t}){const{emit:a}=useIntent(),l=[{key:"messages",label:"Messages"},{key:"reactions",label:"Reactions"},{key:"pins",label:"Pins"},{key:"memberInfo",label:"Member Info"},{key:"emojiList",label:"Emoji List"}],o=(u,c)=>{a("slack.toggleAction",{group:u,enabled:c})};return jsxRuntimeExports.jsx("div",{className:"space-y-3",children:l.map(u=>{const c=t[u.key]!==!1;return jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsx("span",{className:"text-sm font-medium",children:u.label}),jsxRuntimeExports.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:c,onChange:d=>o(u.key,d.target.checked),className:"sr-only peer"}),jsxRuntimeExports.jsx("div",{className:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"})]})]},u.key)})})}function SlashCommandConfig({config:t}){const{emit:a}=useIntent(),[l,o]=reactExports.useState((t==null?void 0:t.enabled)||!1),[u,c]=reactExports.useState((t==null?void 0:t.name)||"openclaw"),d=()=>{a("slack.setSlashCommand",{enabled:l,name:u})};return jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:l,onChange:g=>o(g.target.checked),id:"slashEnabled",className:"rounded border-gray-300"}),jsxRuntimeExports.jsx("label",{htmlFor:"slashEnabled",className:"text-sm font-medium cursor-pointer",children:"Enable single slash command"})]}),l&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Command Name"}),jsxRuntimeExports.jsx(Input,{value:u,onChange:g=>c(g.target.value),placeholder:"openclaw"}),jsxRuntimeExports.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Register /",u," in Slack app settings"]})]}),jsxRuntimeExports.jsx(Button,{onClick:d,size:"sm",children:"Save"}),jsxRuntimeExports.jsxs("div",{className:"text-xs text-muted-foreground mt-4 p-3 bg-muted rounded-md",children:[jsxRuntimeExports.jsx("p",{className:"font-medium mb-1",children:"Note:"}),jsxRuntimeExports.jsxs("p",{children:["For native command support, set"," ",jsxRuntimeExports.jsx("code",{className:"bg-background px-1 py-0.5 rounded",children:"channels.slack.commands.native: true"})," ","and register matching slash commands in Slack (use /agentstatus for the status command)."]})]})]})}function ConnectionStatus({status:t}){var o,u;if(!t)return 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:"Loading status..."})]});const a=((o=t.accounts)==null?void 0:o.filter(c=>c.connected).length)||0,l=((u=t.accounts)==null?void 0:u.length)||0;return jsxRuntimeExports.jsxs("div",{className:"space-y-3",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center gap-2",children:t.connected?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CircleCheckBig,{className:"h-5 w-5 text-green-600"}),jsxRuntimeExports.jsx("span",{className:"font-medium",children:"Connected"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CircleX,{className:"h-5 w-5 text-red-600"}),jsxRuntimeExports.jsx("span",{className:"font-medium",children:"Disconnected"})]})}),t.accounts&&t.accounts.length>0&&jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsxs("div",{className:"text-sm text-muted-foreground",children:[a," of ",l," accounts connected"]}),jsxRuntimeExports.jsx("div",{className:"space-y-1",children:t.accounts.map(c=>jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[c.connected?jsxRuntimeExports.jsx(CircleCheckBig,{className:"h-3 w-3 text-green-600"}):jsxRuntimeExports.jsx(CircleX,{className:"h-3 w-3 text-red-600"}),jsxRuntimeExports.jsx("span",{children:c.id})]},c.id))})]})]})}const componentMap={Column,Row,Heading,IntentButton,Icon,List,ListItem,Conditional,Skeleton,MarkdownContent,Card,TextInput,IntentForm,ProviderList,SessionList,ChatLayout,ChatMessages,ChatInput,AccountCard,AccountEditor,ChannelList,ChannelEditor,PolicySelector,FeatureToggles,SlashCommandConfig,ConnectionStatus};function LayoutNodeRenderer({node:t,moduleMap:a}){if(t.component==="Module"&&t.props.ref&&a){const u=String(t.props.ref),c=a.get(u);return c?jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:c,moduleMap:a}):jsxRuntimeExports.jsxs("div",{className:"text-destructive text-sm p-2",children:["Module not found: ",u]})}const l=componentMap[t.component];if(!l)return jsxRuntimeExports.jsxs("div",{className:"text-destructive text-sm p-2",children:["Unknown component: ",t.component]});const o=t.children.map((u,c)=>typeof u=="string"?jsxRuntimeExports.jsx("span",{children:u},c):jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:u,moduleMap:a},c));return jsxRuntimeExports.jsx(l,{...t.props,children:o})}function AppRenderer({spec:t,modules:a}){const l=reactExports.useMemo(()=>{const o=new Map;for(const u of a)o.set(`${u.domain}/${u.name}`,u.layout);return o},[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,o]=reactExports.useState({status:"loading"});reactExports.useEffect(()=>{a.sendIntent(t,`${t}.init`,{})},[t,a]);const u=reactExports.useCallback(async()=>{try{const c=await a.fetchView(`${t}.app`);if(!c){o({status:"no-view"});return}const d=parseAppMd(c),p=(await Promise.all(d.modules.map(async m=>{const x=m.replace("/","."),b=await a.fetchView(`${x}.view`);return b?parseViewMd(b):null}))).filter(m=>m!==null);o({status:"ready",appSpec:d,modules:p})}catch(c){o({status:"error",message:c instanceof Error?c.message:"Failed to load views"})}},[t,a]);switch(reactExports.useEffect(()=>(u(),a.onView(d=>{(d===`${t}.app`||d.endsWith(".view"))&&u()})),[u,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,o=>o.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,o])=>{const u=a?`${a}.${l}`:l;return o!==null&&typeof o=="object"&&!Array.isArray(o)?jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-muted-foreground font-semibold",children:u}),jsxRuntimeExports.jsx("div",{className:"pl-4",children:renderEntries(o,u)})]},u):jsxRuntimeExports.jsxs("div",{className:"flex gap-2 py-0.5",children:[jsxRuntimeExports.jsxs("span",{className:"text-muted-foreground",children:[u,":"]}),jsxRuntimeExports.jsx("span",{children:typeof o=="string"?o:JSON.stringify(o)})]},u)})}function getServerUrl(){return window.location.origin}function AppRoutes({transport:t,apps:a}){return jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(AppLauncher,{transport:t,apps:a})}),jsxRuntimeExports.jsx(Route,{path:"/apps/:appId",element:jsxRuntimeExports.jsx(AppView,{transport:t,apps:a})})]})}function AppLauncher({transport:t,apps:a}){const l=useNavigate(),o=u=>{l(`/apps/${u}`)};return jsxRuntimeExports.jsxs("div",{className:"absolute inset-0 flex flex-col overflow-y-auto",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:a,transport:t,onOpenApp:o})]})}function AppView({transport:t,apps:a}){const{appId:l}=useParams(),o=useNavigate(),u=()=>{o("/")},c=a.find(d=>d.id===l);return jsxRuntimeExports.jsxs("div",{className:"absolute inset-0 flex flex-col overflow-hidden",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:u,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:[(c==null?void 0:c.emoji)&&jsxRuntimeExports.jsx("span",{className:"mr-1.5",children:c.emoji}),(c==null?void 0:c.name)??l]})}),jsxRuntimeExports.jsx("div",{className:"w-[60px]"})]}),l&&jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-hidden",children:jsxRuntimeExports.jsx(ClappRenderer,{clappId:l,transport:t})})]})}function App(){const t=reactExports.useRef(void 0);t.current||(t.current=new ClappTransport({serverUrl:getServerUrl(),context:{platform:"web"}}));const a=t.current,[l,o]=reactExports.useState([]);return reactExports.useEffect(()=>{a.connect();const u=a.onApps(c=>{o(c)});return a.fetchApps().then(o).catch(()=>{}),()=>{u(),a.disconnect()}},[a]),jsxRuntimeExports.jsx("div",{className:"relative h-screen overflow-hidden bg-background",children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppRoutes,{transport:a,apps:l})})})}clientExports.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));
|
|
275
|
+
`))+1))}const d="#".repeat(u),h=l.enter("headingAtx"),p=l.enter("phrasing");c.move(d+" ");let g=l.containerPhrasing(t,{before:"# ",after:`
|
|
276
|
+
`,...c.current()});return/^[\t ]/.test(g)&&(g=encodeCharacterReference(g.charCodeAt(0))+g.slice(1)),g=g?d+" "+g:d,l.options.closeAtx&&(g+=" "+d),p(),h(),g}html.peek=htmlPeek;function html(t){return t.value||""}function htmlPeek(){return"<"}image.peek=imagePeek;function image(t,a,l,o){const u=checkQuote(l),c=u==='"'?"Quote":"Apostrophe",d=l.enter("image");let h=l.enter("label");const p=l.createTracker(o);let g=p.move("![");return g+=p.move(l.safe(t.alt,{before:g,after:"]",...p.current()})),g+=p.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=l.enter("destinationLiteral"),g+=p.move("<"),g+=p.move(l.safe(t.url,{before:g,after:">",...p.current()})),g+=p.move(">")):(h=l.enter("destinationRaw"),g+=p.move(l.safe(t.url,{before:g,after:t.title?" ":")",...p.current()}))),h(),t.title&&(h=l.enter(`title${c}`),g+=p.move(" "+u),g+=p.move(l.safe(t.title,{before:g,after:u,...p.current()})),g+=p.move(u),h()),g+=p.move(")"),d(),g}function imagePeek(){return"!"}imageReference.peek=imageReferencePeek;function imageReference(t,a,l,o){const u=t.referenceType,c=l.enter("imageReference");let d=l.enter("label");const h=l.createTracker(o);let p=h.move("![");const g=l.safe(t.alt,{before:p,after:"]",...h.current()});p+=h.move(g+"]["),d();const x=l.stack;l.stack=[],d=l.enter("reference");const b=l.safe(l.associationId(t),{before:p,after:"]",...h.current()});return d(),l.stack=x,c(),u==="full"||!g||g!==b?p+=h.move(b+"]"):u==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function imageReferencePeek(){return"!"}inlineCode.peek=inlineCodePeek;function inlineCode(t,a,l){let o=t.value||"",u="`",c=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(o);)u+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++c<l.unsafe.length;){const d=l.unsafe[c],h=l.compilePattern(d);let p;if(d.atBreak)for(;p=h.exec(o);){let g=p.index;o.charCodeAt(g)===10&&o.charCodeAt(g-1)===13&&g--,o=o.slice(0,g)+" "+o.slice(p.index+1)}}return u+o+u}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,o){const u=checkQuote(l),c=u==='"'?"Quote":"Apostrophe",d=l.createTracker(o);let h,p;if(formatLinkAsAutolink(t,l)){const x=l.stack;l.stack=[],h=l.enter("autolink");let b=d.move("<");return b+=d.move(l.containerPhrasing(t,{before:b,after:">",...d.current()})),b+=d.move(">"),h(),l.stack=x,b}h=l.enter("link"),p=l.enter("label");let g=d.move("[");return g+=d.move(l.containerPhrasing(t,{before:g,after:"](",...d.current()})),g+=d.move("]("),p(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(p=l.enter("destinationLiteral"),g+=d.move("<"),g+=d.move(l.safe(t.url,{before:g,after:">",...d.current()})),g+=d.move(">")):(p=l.enter("destinationRaw"),g+=d.move(l.safe(t.url,{before:g,after:t.title?" ":")",...d.current()}))),p(),t.title&&(p=l.enter(`title${c}`),g+=d.move(" "+u),g+=d.move(l.safe(t.title,{before:g,after:u,...d.current()})),g+=d.move(u),p()),g+=d.move(")"),h(),g}function linkPeek(t,a,l){return formatLinkAsAutolink(t,l)?"<":"["}linkReference.peek=linkReferencePeek;function linkReference(t,a,l,o){const u=t.referenceType,c=l.enter("linkReference");let d=l.enter("label");const h=l.createTracker(o);let p=h.move("[");const g=l.containerPhrasing(t,{before:p,after:"]",...h.current()});p+=h.move(g+"]["),d();const x=l.stack;l.stack=[],d=l.enter("reference");const b=l.safe(l.associationId(t),{before:p,after:"]",...h.current()});return d(),l.stack=x,c(),u==="full"||!g||g!==b?p+=h.move(b+"]"):u==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}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,o){const u=l.enter("list"),c=l.bulletCurrent;let d=t.ordered?checkBulletOrdered(l):checkBullet(l);const h=t.ordered?d==="."?")":".":checkBulletOther(l);let p=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&&(p=!0),checkRule(l)===d&&x){let b=-1;for(;++b<t.children.length;){const C=t.children[b];if(C&&C.type==="listItem"&&C.children&&C.children[0]&&C.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(d=h),l.bulletCurrent=d;const g=l.containerFlow(t,o);return l.bulletLastUsed=d,l.bulletCurrent=c,u(),g}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,o){const u=checkListItemIndent(l);let c=l.bulletCurrent||checkBullet(l);a&&a.type==="list"&&a.ordered&&(c=(typeof a.start=="number"&&a.start>-1?a.start:1)+(l.options.incrementListMarker===!1?0:a.children.indexOf(t))+c);let d=c.length+1;(u==="tab"||u==="mixed"&&(a&&a.type==="list"&&a.spread||t.spread))&&(d=Math.ceil(d/4)*4);const h=l.createTracker(o);h.move(c+" ".repeat(d-c.length)),h.shift(d);const p=l.enter("listItem"),g=l.indentLines(l.containerFlow(t,h.current()),x);return p(),g;function x(b,C,R){return C?(R?"":" ".repeat(d))+b:(R?c:c+" ".repeat(d-c.length))+b}}function paragraph(t,a,l,o){const u=l.enter("paragraph"),c=l.enter("phrasing"),d=l.containerPhrasing(t,o);return c(),u(),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,o){return(t.children.some(function(d){return phrasing(d)})?l.containerPhrasing:l.containerFlow).call(l,t,o)}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,o){const u=checkStrong(l),c=l.enter("strong"),d=l.createTracker(o),h=d.move(u+u);let p=d.move(l.containerPhrasing(t,{after:u,before:h,...d.current()}));const g=p.charCodeAt(0),x=encodeInfo(o.before.charCodeAt(o.before.length-1),g,u);x.inside&&(p=encodeCharacterReference(g)+p.slice(1));const b=p.charCodeAt(p.length-1),C=encodeInfo(o.after.charCodeAt(0),b,u);C.inside&&(p=p.slice(0,-1)+encodeCharacterReference(b));const R=d.move(u+u);return c(),l.attentionEncodeSurroundingInfo={after:C.outside,before:x.outside},h+p+R}function strongPeek(t,a,l){return l.options.strong||"*"}function text$1(t,a,l,o){return l.safe(t.value,o)}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 o=(checkRule(l)+(l.options.ruleSpaces?" ":"")).repeat(checkRuleRepetition(l));return l.options.ruleSpaces?o.slice(0,-1):o}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,o=a.tablePipeAlign,u=a.stringLength,c=l?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
277
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:C,table:d,tableCell:p,tableRow:h}};function d(R,_,B,L){return g(x(R,B,L),R.align)}function h(R,_,B,L){const D=b(R,B,L),$=g([D]);return $.slice(0,$.indexOf(`
|
|
278
|
+
`))}function p(R,_,B,L){const D=B.enter("tableCell"),$=B.enter("phrasing"),V=B.containerPhrasing(R,{...L,before:c,after:c});return $(),D(),V}function g(R,_){return markdownTable(R,{align:_,alignDelimiters:o,padding:l,stringLength:u})}function x(R,_,B){const L=R.children;let D=-1;const $=[],V=_.enter("table");for(;++D<L.length;)$[D]=b(L[D],_,B);return V(),$}function b(R,_,B){const L=R.children;let D=-1;const $=[],V=_.enter("tableRow");for(;++D<L.length;)$[D]=p(L[D],R,_,B);return V(),$}function C(R,_,B){let L=handle.inlineCode(R,_,B);return B.stack.includes("tableCell")&&(L=L.replace(/\|/g,"\\$&")),L}}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 o=l.children[0];if(o&&o.type==="text"){const u=a.children;let c=-1,d;for(;++c<u.length;){const h=u[c];if(h.type==="paragraph"){d=h;break}}d===l&&(o.value=o.value.slice(1),o.value.length===0?l.children.shift():l.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,l.position.start=Object.assign({},o.position.start)))}}this.exit(t)}function listItemWithTaskListItem(t,a,l,o){const u=t.children[0],c=typeof t.checked=="boolean"&&u&&u.type==="paragraph",d="["+(t.checked?"x":" ")+"] ",h=l.createTracker(o);c&&h.move(d);let p=handle.listItem(t,a,l,{...o,...h.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,g)),p;function g(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 o=this;let u,c;return d;function d(b){return!gfmAtext(b)||!previousEmail.call(o,o.previous)||previousUnbalanced(o.events)?l(b):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),h(b))}function h(b){return gfmAtext(b)?(t.consume(b),h):b===64?(t.consume(b),p):l(b)}function p(b){return b===46?t.check(emailDomainDotTrail,x,g)(b):b===45||b===95||asciiAlphanumeric(b)?(c=!0,t.consume(b),p):x(b)}function g(b){return t.consume(b),u=!0,p}function x(b){return c&&u&&asciiAlpha(o.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),a(b)):l(b)}}function tokenizeWwwAutolink(t,a,l){const o=this;return u;function u(d){return d!==87&&d!==119||!previousWww.call(o,o.previous)||previousUnbalanced(o.events)?l(d):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(wwwPrefix,t.attempt(domain,t.attempt(path,c),l),l)(d))}function c(d){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),a(d)}}function tokenizeProtocolAutolink(t,a,l){const o=this;let u="",c=!1;return d;function d(b){return(b===72||b===104)&&previousProtocol.call(o,o.previous)&&!previousUnbalanced(o.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),u+=String.fromCodePoint(b),t.consume(b),h):l(b)}function h(b){if(asciiAlpha(b)&&u.length<5)return u+=String.fromCodePoint(b),t.consume(b),h;if(b===58){const C=u.toLowerCase();if(C==="http"||C==="https")return t.consume(b),p}return l(b)}function p(b){return b===47?(t.consume(b),c?g:(c=!0,p)):l(b)}function g(b){return b===null||asciiControl(b)||markdownLineEndingOrSpace(b)||unicodeWhitespace(b)||unicodePunctuation(b)?l(b):t.attempt(domain,t.attempt(path,x),l)(b)}function x(b){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),a(b)}}function tokenizeWwwPrefix(t,a,l){let o=0;return u;function u(d){return(d===87||d===119)&&o<3?(o++,t.consume(d),u):d===46&&o===3?(t.consume(d),c):l(d)}function c(d){return d===null?l(d):a(d)}}function tokenizeDomain(t,a,l){let o,u,c;return d;function d(g){return g===46||g===95?t.check(trail,p,h)(g):g===null||markdownLineEndingOrSpace(g)||unicodeWhitespace(g)||g!==45&&unicodePunctuation(g)?p(g):(c=!0,t.consume(g),d)}function h(g){return g===95?o=!0:(u=o,o=void 0),t.consume(g),d}function p(g){return u||o||!c?l(g):a(g)}}function tokenizePath(t,a){let l=0,o=0;return u;function u(d){return d===40?(l++,t.consume(d),u):d===41&&o<l?c(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,c)(d):d===null||markdownLineEndingOrSpace(d)||unicodeWhitespace(d)?a(d):(t.consume(d),u)}function c(d){return d===41&&o++,t.consume(d),u}}function tokenizeTrail(t,a,l){return o;function o(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(t.consume(h),o):h===38?(t.consume(h),c):h===93?(t.consume(h),u):h===60||h===null||markdownLineEndingOrSpace(h)||unicodeWhitespace(h)?a(h):l(h)}function u(h){return h===null||h===40||h===91||markdownLineEndingOrSpace(h)||unicodeWhitespace(h)?a(h):o(h)}function c(h){return asciiAlpha(h)?d(h):l(h)}function d(h){return h===59?(t.consume(h),o):asciiAlpha(h)?(t.consume(h),d):l(h)}}function tokenizeEmailDomainDotTrail(t,a,l){return o;function o(c){return t.consume(c),u}function u(c){return asciiAlphanumeric(c)?l(c):a(c)}}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 o=t[a][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){l=!0;break}if(o._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 o=this;let u=o.events.length;const c=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let d;for(;u--;){const p=o.events[u][1];if(p.type==="labelImage"){d=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return h;function h(p){if(!d||!d._balanced)return l(p);const g=normalizeIdentifier(o.sliceSerialize({start:d.end,end:o.now()}));return g.codePointAt(0)!==94||!c.includes(g.slice(1))?l(p):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),a(p))}}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 o={type:"gfmFootnoteCall",start:Object.assign({},t[l+3][1].start),end:Object.assign({},t[t.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},t[l+3][1].end),end:Object.assign({},t[l+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},t[t.length-1][1].start)},d={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},h=[t[l+1],t[l+2],["enter",o,a],t[l+3],t[l+4],["enter",u,a],["exit",u,a],["enter",c,a],["enter",d,a],["exit",d,a],["exit",c,a],t[t.length-2],t[t.length-1],["exit",o,a]];return t.splice(l,t.length-l+1,...h),t}function tokenizeGfmFootnoteCall(t,a,l){const o=this,u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c=0,d;return h;function h(b){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(b),t.exit("gfmFootnoteCallLabelMarker"),p}function p(b){return b!==94?l(b):(t.enter("gfmFootnoteCallMarker"),t.consume(b),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(b){if(c>999||b===93&&!d||b===null||b===91||markdownLineEndingOrSpace(b))return l(b);if(b===93){t.exit("chunkString");const C=t.exit("gfmFootnoteCallString");return u.includes(normalizeIdentifier(o.sliceSerialize(C)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(b),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),a):l(b)}return markdownLineEndingOrSpace(b)||(d=!0),c++,t.consume(b),b===92?x:g}function x(b){return b===91||b===92||b===93?(t.consume(b),c++,g):g(b)}}function tokenizeDefinitionStart(t,a,l){const o=this,u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c,d=0,h;return p;function p(_){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(_){return _===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",x):l(_)}function x(_){if(d>999||_===93&&!h||_===null||_===91||markdownLineEndingOrSpace(_))return l(_);if(_===93){t.exit("chunkString");const B=t.exit("gfmFootnoteDefinitionLabelString");return c=normalizeIdentifier(o.sliceSerialize(B)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),C}return markdownLineEndingOrSpace(_)||(h=!0),d++,t.consume(_),_===92?b:x}function b(_){return _===91||_===92||_===93?(t.consume(_),d++,x):x(_)}function C(_){return _===58?(t.enter("definitionMarker"),t.consume(_),t.exit("definitionMarker"),u.includes(c)||u.push(c),factorySpace(t,R,"gfmFootnoteDefinitionWhitespace")):l(_)}function R(_){return a(_)}}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 o=this;return factorySpace(t,u,"gfmFootnoteDefinitionIndent",5);function u(c){const d=o.events[o.events.length-1];return d&&d[1].type==="gfmFootnoteDefinitionIndent"&&d[2].sliceSerialize(d[1],!0).length===4?a(c):l(c)}}function gfmStrikethrough(t){let l=(t||{}).singleTilde;const o={name:"strikethrough",tokenize:c,resolveAll:u};return l==null&&(l=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function u(d,h){let p=-1;for(;++p<d.length;)if(d[p][0]==="enter"&&d[p][1].type==="strikethroughSequenceTemporary"&&d[p][1]._close){let g=p;for(;g--;)if(d[g][0]==="exit"&&d[g][1].type==="strikethroughSequenceTemporary"&&d[g][1]._open&&d[p][1].end.offset-d[p][1].start.offset===d[g][1].end.offset-d[g][1].start.offset){d[p][1].type="strikethroughSequence",d[g][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},d[g][1].start),end:Object.assign({},d[p][1].end)},b={type:"strikethroughText",start:Object.assign({},d[g][1].end),end:Object.assign({},d[p][1].start)},C=[["enter",x,h],["enter",d[g][1],h],["exit",d[g][1],h],["enter",b,h]],R=h.parser.constructs.insideSpan.null;R&&splice(C,C.length,0,resolveAll(R,d.slice(g+1,p),h)),splice(C,C.length,0,[["exit",b,h],["enter",d[p][1],h],["exit",d[p][1],h],["exit",x,h]]),splice(d,g-1,p-g+3,C),p=g+C.length-2;break}}for(p=-1;++p<d.length;)d[p][1].type==="strikethroughSequenceTemporary"&&(d[p][1].type="data");return d}function c(d,h,p){const g=this.previous,x=this.events;let b=0;return C;function C(_){return g===126&&x[x.length-1][1].type!=="characterEscape"?p(_):(d.enter("strikethroughSequenceTemporary"),R(_))}function R(_){const B=classifyCharacter(g);if(_===126)return b>1?p(_):(d.consume(_),b++,R);if(b<2&&!l)return p(_);const L=d.exit("strikethroughSequenceTemporary"),D=classifyCharacter(_);return L._open=!D||D===2&&!!B,L._close=!B||B===2&&!!D,h(_)}}}class EditMap{constructor(){this.map=[]}add(a,l,o){addImplementation(this,a,l,o)}consume(a){if(this.map.sort(function(c,d){return c[0]-d[0]}),this.map.length===0)return;let l=this.map.length;const o=[];for(;l>0;)l-=1,o.push(a.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),a.length=this.map[l][0];o.push(a.slice()),a.length=0;let u=o.pop();for(;u;){for(const c of u)a.push(c);u=o.pop()}this.map.length=0}}function addImplementation(t,a,l,o){let u=0;if(!(l===0&&o.length===0)){for(;u<t.map.length;){if(t.map[u][0]===a){t.map[u][1]+=l,t.map[u][2].push(...o);return}u+=1}t.map.push([a,l,o])}}function gfmTableAlign(t,a){let l=!1;const o=[];for(;a<t.length;){const u=t[a];if(l){if(u[0]==="enter")u[1].type==="tableContent"&&o.push(t[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(t[a-1][1].type==="tableDelimiterMarker"){const c=o.length-1;o[c]=o[c]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(l=!0);a+=1}return o}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(t,a,l){const o=this;let u=0,c=0,d;return h;function h(K){let Ee=o.events.length-1;for(;Ee>-1;){const ye=o.events[Ee][1].type;if(ye==="lineEnding"||ye==="linePrefix")Ee--;else break}const ae=Ee>-1?o.events[Ee][1].type:null,Ce=ae==="tableHead"||ae==="tableRow"?H:p;return Ce===H&&o.parser.lazy[o.now().line]?l(K):Ce(K)}function p(K){return t.enter("tableHead"),t.enter("tableRow"),g(K)}function g(K){return K===124||(d=!0,c+=1),x(K)}function x(K){return K===null?l(K):markdownLineEnding(K)?c>1?(c=0,o.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(K),t.exit("lineEnding"),R):l(K):markdownSpace(K)?factorySpace(t,x,"whitespace")(K):(c+=1,d&&(d=!1,u+=1),K===124?(t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),d=!0,x):(t.enter("data"),b(K)))}function b(K){return K===null||K===124||markdownLineEndingOrSpace(K)?(t.exit("data"),x(K)):(t.consume(K),K===92?C:b)}function C(K){return K===92||K===124?(t.consume(K),b):b(K)}function R(K){return o.interrupt=!1,o.parser.lazy[o.now().line]?l(K):(t.enter("tableDelimiterRow"),d=!1,markdownSpace(K)?factorySpace(t,_,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):_(K))}function _(K){return K===45||K===58?L(K):K===124?(d=!0,t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),B):ie(K)}function B(K){return markdownSpace(K)?factorySpace(t,L,"whitespace")(K):L(K)}function L(K){return K===58?(c+=1,d=!0,t.enter("tableDelimiterMarker"),t.consume(K),t.exit("tableDelimiterMarker"),D):K===45?(c+=1,D(K)):K===null||markdownLineEnding(K)?se(K):ie(K)}function D(K){return K===45?(t.enter("tableDelimiterFiller"),$(K)):ie(K)}function $(K){return K===45?(t.consume(K),$):K===58?(d=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(K),t.exit("tableDelimiterMarker"),V):(t.exit("tableDelimiterFiller"),V(K))}function V(K){return markdownSpace(K)?factorySpace(t,se,"whitespace")(K):se(K)}function se(K){return K===124?_(K):K===null||markdownLineEnding(K)?!d||u!==c?ie(K):(t.exit("tableDelimiterRow"),t.exit("tableHead"),a(K)):ie(K)}function ie(K){return l(K)}function H(K){return t.enter("tableRow"),ge(K)}function ge(K){return K===124?(t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),ge):K===null||markdownLineEnding(K)?(t.exit("tableRow"),a(K)):markdownSpace(K)?factorySpace(t,ge,"whitespace")(K):(t.enter("data"),W(K))}function W(K){return K===null||K===124||markdownLineEndingOrSpace(K)?(t.exit("data"),ge(K)):(t.consume(K),K===92?ve:W)}function ve(K){return K===92||K===124?(t.consume(K),W):W(K)}}function resolveTable(t,a){let l=-1,o=!0,u=0,c=[0,0,0,0],d=[0,0,0,0],h=!1,p=0,g,x,b;const C=new EditMap;for(;++l<t.length;){const R=t[l],_=R[1];R[0]==="enter"?_.type==="tableHead"?(h=!1,p!==0&&(flushTableEnd(C,a,p,g,x),x=void 0,p=0),g={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},C.add(l,0,[["enter",g,a]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(o=!0,b=void 0,c=[0,0,0,0],d=[0,l+1,0,0],h&&(h=!1,x={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},C.add(l,0,[["enter",x,a]])),u=_.type==="tableDelimiterRow"?2:x?3:1):u&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(o=!1,d[2]===0&&(c[1]!==0&&(d[0]=d[1],b=flushCell(C,a,c,u,void 0,b),c=[0,0,0,0]),d[2]=l)):_.type==="tableCellDivider"&&(o?o=!1:(c[1]!==0&&(d[0]=d[1],b=flushCell(C,a,c,u,void 0,b)),c=d,d=[c[1],l,0,0])):_.type==="tableHead"?(h=!0,p=l):_.type==="tableRow"||_.type==="tableDelimiterRow"?(p=l,c[1]!==0?(d[0]=d[1],b=flushCell(C,a,c,u,l,b)):d[1]!==0&&(b=flushCell(C,a,d,u,l,b)),u=0):u&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(d[3]=l)}for(p!==0&&flushTableEnd(C,a,p,g,x),C.consume(a.events),l=-1;++l<a.events.length;){const R=a.events[l];R[0]==="enter"&&R[1].type==="table"&&(R[1]._align=gfmTableAlign(a.events,l))}return t}function flushCell(t,a,l,o,u,c){const d=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",h="tableContent";l[0]!==0&&(c.end=Object.assign({},getPoint(a.events,l[0])),t.add(l[0],0,[["exit",c,a]]));const p=getPoint(a.events,l[1]);if(c={type:d,start:Object.assign({},p),end:Object.assign({},p)},t.add(l[1],0,[["enter",c,a]]),l[2]!==0){const g=getPoint(a.events,l[2]),x=getPoint(a.events,l[3]),b={type:h,start:Object.assign({},g),end:Object.assign({},x)};if(t.add(l[2],0,[["enter",b,a]]),o!==2){const C=a.events[l[2]],R=a.events[l[3]];if(C[1].end=Object.assign({},R[1].end),C[1].type="chunkText",C[1].contentType="text",l[3]>l[2]+1){const _=l[2]+1,B=l[3]-l[2]-1;t.add(_,B,[])}}t.add(l[3]+1,0,[["exit",b,a]])}return u!==void 0&&(c.end=Object.assign({},getPoint(a.events,u)),t.add(u,0,[["exit",c,a]]),c=void 0),c}function flushTableEnd(t,a,l,o,u){const c=[],d=getPoint(a.events,l);u&&(u.end=Object.assign({},d),c.push(["exit",u,a])),o.end=Object.assign({},d),c.push(["exit",o,a]),t.add(l+1,0,c)}function getPoint(t,a){const l=t[a],o=l[0]==="enter"?"start":"end";return l[1][o]}const tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:tasklistCheck}}}function tokenizeTasklistCheck(t,a,l){const o=this;return u;function u(p){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?l(p):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),c)}function c(p){return markdownLineEndingOrSpace(p)?(t.enter("taskListCheckValueUnchecked"),t.consume(p),t.exit("taskListCheckValueUnchecked"),d):p===88||p===120?(t.enter("taskListCheckValueChecked"),t.consume(p),t.exit("taskListCheckValueChecked"),d):l(p)}function d(p){return p===93?(t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),h):l(p)}function h(p){return markdownLineEnding(p)?a(p):markdownSpace(p)?t.check({tokenize:spaceThenNonSpace},a,l)(p):l(p)}}function spaceThenNonSpace(t,a,l){return factorySpace(t,o,"whitespace");function o(u){return u===null?l(u):a(u)}}function gfm(t){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(t),gfmTable(),gfmTaskListItem()])}const emptyOptions={};function remarkGfm(t){const a=this,l=t||emptyOptions,o=a.data(),u=o.micromarkExtensions||(o.micromarkExtensions=[]),c=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),d=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);u.push(gfm(l)),c.push(gfmFromMarkdown()),d.push(gfmToMarkdown(l))}function parseViewMd(t){const{data:a,content:l}=matter(t),o=unified().use(remarkParse).use(remarkGfm).parse(l),u=splitByH2$1(o);return{name:a.name??"",domain:a.domain??"",version:a.version??"0.1.0",stateBindings:parseStateBindings(u["State Bindings"]),layout:parseLayoutSection$1(u.Layout),intents:parseIntentsTable(u.Intents)}}function splitByH2$1(t){var o;const a={};let l="__intro__";a[l]=[];for(const u of t.children)u.type==="heading"&&u.depth===2?(l=getTextContent(u),a[l]=[]):(o=a[l])==null||o.push(u);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 o=l;for(const u of o.children){const d=extractListItemText(u).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 o=l;for(let u=1;u<o.children.length;u++){const d=o.children[u].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),o=unified().use(remarkParse).parse(l),u=splitByH2(o);return{name:a.name??"",domain:a.domain??"",modules:parseModulesList(u.Modules),layout:parseLayoutSection(u.Layout)}}function splitByH2(t){var o;const a={};let l="__intro__";a[l]=[];for(const u of t.children)u.type==="heading"&&u.depth===2?(l=u.children.map(d=>d.type==="text"?d.value:"").join(""),a[l]=[]):(o=a[l])==null||o.push(u);return a}function parseModulesList(t){if(!t)return[];const a=[];for(const l of t){if(l.type!=="list")continue;const o=l;for(const u of o.children){const c=u.children.map(d=>d.type==="paragraph"?d.children.map(h=>h.type==="text"?h.value:"").join(""):"").join("").trim();c&&a.push(c)}}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=u=>{};function a(u){}t.assertIs=a;function l(u){throw new Error}t.assertNever=l,t.arrayToEnum=u=>{const c={};for(const d of u)c[d]=d;return c},t.getValidEnumValues=u=>{const c=t.objectKeys(u).filter(h=>typeof u[u[h]]!="number"),d={};for(const h of c)d[h]=u[h];return t.objectValues(d)},t.objectValues=u=>t.objectKeys(u).map(function(c){return u[c]}),t.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const c=[];for(const d in u)Object.prototype.hasOwnProperty.call(u,d)&&c.push(d);return c},t.find=(u,c)=>{for(const d of u)if(c(d))return d},t.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function o(u,c=" | "){return u.map(d=>typeof d=="string"?`'${d}'`:d).join(c)}t.joinValues=o,t.jsonStringifyReplacer=(u,c)=>typeof c=="bigint"?c.toString():c})(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=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};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(c){return c.message},o={_errors:[]},u=c=>{for(const d of c.issues)if(d.code==="invalid_union")d.unionErrors.map(u);else if(d.code==="invalid_return_type")u(d.returnTypeError);else if(d.code==="invalid_arguments")u(d.argumentsError);else if(d.path.length===0)o._errors.push(l(d));else{let h=o,p=0;for(;p<d.path.length;){const g=d.path[p];p===d.path.length-1?(h[g]=h[g]||{_errors:[]},h[g]._errors.push(l(d))):h[g]=h[g]||{_errors:[]},h=h[g],p++}}};return u(this),o}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={},o=[];for(const u of this.issues)if(u.path.length>0){const c=u.path[0];l[c]=l[c]||[],l[c].push(a(u))}else o.push(a(u));return{formErrors:o,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:o,issueData:u}=t,c=[...l,...u.path||[]],d={...u,path:c};if(u.message!==void 0)return{...u,path:c,message:u.message};let h="";const p=o.filter(g=>!!g).slice().reverse();for(const g of p)h=g(d,{data:a,defaultError:h}).message;return{...u,path:c,message:h}};function addIssueToContext(t,a){const l=getErrorMap(),o=makeIssue({issueData:a,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,l===errorMap?void 0:errorMap].filter(u=>!!u)});t.common.issues.push(o)}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 o=[];for(const u of l){if(u.status==="aborted")return INVALID;u.status==="dirty"&&a.dirty(),o.push(u.value)}return{status:a.value,value:o}}static async mergeObjectAsync(a,l){const o=[];for(const u of l){const c=await u.key,d=await u.value;o.push({key:c,value:d})}return ParseStatus.mergeObjectSync(a,o)}static mergeObjectSync(a,l){const o={};for(const u of l){const{key:c,value:d}=u;if(c.status==="aborted"||d.status==="aborted")return INVALID;c.status==="dirty"&&a.dirty(),d.status==="dirty"&&a.dirty(),c.value!=="__proto__"&&(typeof d.value<"u"||u.alwaysSet)&&(o[c.value]=d.value)}return{status:a.value,value:o}}}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,o,u){this._cachedPath=[],this.parent=a,this.data=l,this._path=o,this._key=u}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:o,description:u}=t;if(a&&(l||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:u}:{errorMap:(d,h)=>{const{message:p}=t;return d.code==="invalid_enum_value"?{message:p??h.defaultError}:typeof h.data>"u"?{message:p??o??h.defaultError}:d.code!=="invalid_type"?{message:h.defaultError}:{message:p??l??h.defaultError}},description:u}}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 o=this.safeParse(a,l);if(o.success)return o.data;throw o.error}safeParse(a,l){const o={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)},u=this._parseSync({data:a,path:o.path,parent:o});return handleResult(o,u)}"~validate"(a){var o,u;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 c=this._parseSync({data:a,path:[],parent:l});return isValid(c)?{value:c.value}:{issues:l.common.issues}}catch(c){(u=(o=c==null?void 0:c.message)==null?void 0:o.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:l}).then(c=>isValid(c)?{value:c.value}:{issues:l.common.issues})}async parseAsync(a,l){const o=await this.safeParseAsync(a,l);if(o.success)return o.data;throw o.error}async safeParseAsync(a,l){const o={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)},u=this._parse({data:a,path:o.path,parent:o}),c=await(isAsync(u)?u:Promise.resolve(u));return handleResult(o,c)}refine(a,l){const o=u=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(u):l;return this._refinement((u,c)=>{const d=a(u),h=()=>c.addIssue({code:ZodIssueCode.custom,...o(u)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(h(),!1)):d?!0:(h(),!1)})}refinement(a,l){return this._refinement((o,u)=>a(o)?!0:(u.addIssue(typeof l=="function"?l(o,u):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 o=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),u=JSON.parse(atob(o));return!(typeof u!="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||a&&u.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 c=this._getOrReturnCtx(a);return addIssueToContext(c,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:c.parsedType}),INVALID}const o=new ParseStatus;let u;for(const c of this._def.checks)if(c.kind==="min")a.data.length<c.value&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),o.dirty());else if(c.kind==="max")a.data.length>c.value&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),o.dirty());else if(c.kind==="length"){const d=a.data.length>c.value,h=a.data.length<c.value;(d||h)&&(u=this._getOrReturnCtx(a,u),d?addIssueToContext(u,{code:ZodIssueCode.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):h&&addIssueToContext(u,{code:ZodIssueCode.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),o.dirty())}else if(c.kind==="email")emailRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"email",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="emoji")emojiRegex||(emojiRegex=new RegExp(_emojiRegex,"u")),emojiRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"emoji",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="uuid")uuidRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"uuid",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="nanoid")nanoidRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"nanoid",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="cuid")cuidRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"cuid",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="cuid2")cuid2Regex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="ulid")ulidRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"ulid",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty());else if(c.kind==="url")try{new URL(a.data)}catch{u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"url",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()}else c.kind==="regex"?(c.regex.lastIndex=0,c.regex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"regex",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty())):c.kind==="trim"?a.data=a.data.trim():c.kind==="includes"?a.data.includes(c.value,c.position)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),o.dirty()):c.kind==="toLowerCase"?a.data=a.data.toLowerCase():c.kind==="toUpperCase"?a.data=a.data.toUpperCase():c.kind==="startsWith"?a.data.startsWith(c.value)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:{startsWith:c.value},message:c.message}),o.dirty()):c.kind==="endsWith"?a.data.endsWith(c.value)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:{endsWith:c.value},message:c.message}),o.dirty()):c.kind==="datetime"?datetimeRegex(c).test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:"datetime",message:c.message}),o.dirty()):c.kind==="date"?dateRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:"date",message:c.message}),o.dirty()):c.kind==="time"?timeRegex(c).test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.invalid_string,validation:"time",message:c.message}),o.dirty()):c.kind==="duration"?durationRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"duration",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):c.kind==="ip"?isValidIP(a.data,c.version)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"ip",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):c.kind==="jwt"?isValidJWT(a.data,c.alg)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"jwt",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):c.kind==="cidr"?isValidCidr(a.data,c.version)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"cidr",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):c.kind==="base64"?base64Regex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"base64",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):c.kind==="base64url"?base64urlRegex.test(a.data)||(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{validation:"base64url",code:ZodIssueCode.invalid_string,message:c.message}),o.dirty()):util.assertNever(c);return{status:o.value,value:a.data}}_regex(a,l,o){return this.refinement(u=>a.test(u),{validation:l,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(o)})}_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,o=(a.toString().split(".")[1]||"").length,u=l>o?l:o,c=Number.parseInt(t.toFixed(u).replace(".","")),d=Number.parseInt(a.toFixed(u).replace(".",""));return c%d/10**u}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 c=this._getOrReturnCtx(a);return addIssueToContext(c,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:c.parsedType}),INVALID}let o;const u=new ParseStatus;for(const c of this._def.checks)c.kind==="int"?util.isInteger(a.data)||(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:c.message}),u.dirty()):c.kind==="min"?(c.inclusive?a.data<c.value:a.data<=c.value)&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.too_small,minimum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),u.dirty()):c.kind==="max"?(c.inclusive?a.data>c.value:a.data>=c.value)&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.too_big,maximum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),u.dirty()):c.kind==="multipleOf"?floatSafeRemainder(a.data,c.value)!==0&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.not_multiple_of,multipleOf:c.value,message:c.message}),u.dirty()):c.kind==="finite"?Number.isFinite(a.data)||(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.not_finite,message:c.message}),u.dirty()):util.assertNever(c);return{status:u.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,o,u){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:a,value:l,inclusive:o,message:errorUtil.toString(u)}]})}_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 o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(l===null||o.value>l)&&(l=o.value):o.kind==="max"&&(a===null||o.value<a)&&(a=o.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 o;const u=new ParseStatus;for(const c of this._def.checks)c.kind==="min"?(c.inclusive?a.data<c.value:a.data<=c.value)&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.too_small,type:"bigint",minimum:c.value,inclusive:c.inclusive,message:c.message}),u.dirty()):c.kind==="max"?(c.inclusive?a.data>c.value:a.data>=c.value)&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.too_big,type:"bigint",maximum:c.value,inclusive:c.inclusive,message:c.message}),u.dirty()):c.kind==="multipleOf"?a.data%c.value!==BigInt(0)&&(o=this._getOrReturnCtx(a,o),addIssueToContext(o,{code:ZodIssueCode.not_multiple_of,multipleOf:c.value,message:c.message}),u.dirty()):util.assertNever(c);return{status:u.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,o,u){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:a,value:l,inclusive:o,message:errorUtil.toString(u)}]})}_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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:o.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 c=this._getOrReturnCtx(a);return addIssueToContext(c,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:c.parsedType}),INVALID}if(Number.isNaN(a.data.getTime())){const c=this._getOrReturnCtx(a);return addIssueToContext(c,{code:ZodIssueCode.invalid_date}),INVALID}const o=new ParseStatus;let u;for(const c of this._def.checks)c.kind==="min"?a.data.getTime()<c.value&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),o.dirty()):c.kind==="max"?a.data.getTime()>c.value&&(u=this._getOrReturnCtx(a,u),addIssueToContext(u,{code:ZodIssueCode.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),o.dirty()):util.assertNever(c);return{status:o.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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:o.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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:o.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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:o.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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:o.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:o}=this._processInputParams(a),u=this._def;if(l.parsedType!==ZodParsedType.array)return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:l.parsedType}),INVALID;if(u.exactLength!==null){const d=l.data.length>u.exactLength.value,h=l.data.length<u.exactLength.value;(d||h)&&(addIssueToContext(l,{code:d?ZodIssueCode.too_big:ZodIssueCode.too_small,minimum:h?u.exactLength.value:void 0,maximum:d?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),o.dirty())}if(u.minLength!==null&&l.data.length<u.minLength.value&&(addIssueToContext(l,{code:ZodIssueCode.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),o.dirty()),u.maxLength!==null&&l.data.length>u.maxLength.value&&(addIssueToContext(l,{code:ZodIssueCode.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),o.dirty()),l.common.async)return Promise.all([...l.data].map((d,h)=>u.type._parseAsync(new ParseInputLazyPath(l,d,l.path,h)))).then(d=>ParseStatus.mergeArray(o,d));const c=[...l.data].map((d,h)=>u.type._parseSync(new ParseInputLazyPath(l,d,l.path,h)));return ParseStatus.mergeArray(o,c)}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 o=t.shape[l];a[l]=ZodOptional.create(deepPartialify(o))}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 g=this._getOrReturnCtx(a);return addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:g.parsedType}),INVALID}const{status:o,ctx:u}=this._processInputParams(a),{shape:c,keys:d}=this._getCached(),h=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys==="strip"))for(const g in u.data)d.includes(g)||h.push(g);const p=[];for(const g of d){const x=c[g],b=u.data[g];p.push({key:{status:"valid",value:g},value:x._parse(new ParseInputLazyPath(u,b,u.path,g)),alwaysSet:g in u.data})}if(this._def.catchall instanceof ZodNever){const g=this._def.unknownKeys;if(g==="passthrough")for(const x of h)p.push({key:{status:"valid",value:x},value:{status:"valid",value:u.data[x]}});else if(g==="strict")h.length>0&&(addIssueToContext(u,{code:ZodIssueCode.unrecognized_keys,keys:h}),o.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const x of h){const b=u.data[x];p.push({key:{status:"valid",value:x},value:g._parse(new ParseInputLazyPath(u,b,u.path,x)),alwaysSet:x in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const g=[];for(const x of p){const b=await x.key,C=await x.value;g.push({key:b,value:C,alwaysSet:x.alwaysSet})}return g}).then(g=>ParseStatus.mergeObjectSync(o,g)):ParseStatus.mergeObjectSync(o,p)}get shape(){return this._def.shape()}strict(a){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(l,o)=>{var c,d;const u=((d=(c=this._def).errorMap)==null?void 0:d.call(c,l,o).message)??o.defaultError;return l.code==="unrecognized_keys"?{message:errorUtil.errToObj(a).message??u}:{message:u}}}:{}})}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 o of util.objectKeys(a))a[o]&&this.shape[o]&&(l[o]=this.shape[o]);return new ZodObject({...this._def,shape:()=>l})}omit(a){const l={};for(const o of util.objectKeys(this.shape))a[o]||(l[o]=this.shape[o]);return new ZodObject({...this._def,shape:()=>l})}deepPartial(){return deepPartialify(this)}partial(a){const l={};for(const o of util.objectKeys(this.shape)){const u=this.shape[o];a&&!a[o]?l[o]=u:l[o]=u.optional()}return new ZodObject({...this._def,shape:()=>l})}required(a){const l={};for(const o of util.objectKeys(this.shape))if(a&&!a[o])l[o]=this.shape[o];else{let c=this.shape[o];for(;c instanceof ZodOptional;)c=c._def.innerType;l[o]=c}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),o=this._def.options;function u(c){for(const h of c)if(h.result.status==="valid")return h.result;for(const h of c)if(h.result.status==="dirty")return l.common.issues.push(...h.ctx.common.issues),h.result;const d=c.map(h=>new ZodError(h.ctx.common.issues));return addIssueToContext(l,{code:ZodIssueCode.invalid_union,unionErrors:d}),INVALID}if(l.common.async)return Promise.all(o.map(async c=>{const d={...l,common:{...l.common,issues:[]},parent:null};return{result:await c._parseAsync({data:l.data,path:l.path,parent:d}),ctx:d}})).then(u);{let c;const d=[];for(const p of o){const g={...l,common:{...l.common,issues:[]},parent:null},x=p._parseSync({data:l.data,path:l.path,parent:g});if(x.status==="valid")return x;x.status==="dirty"&&!c&&(c={result:x,ctx:g}),g.common.issues.length&&d.push(g.common.issues)}if(c)return l.common.issues.push(...c.ctx.common.issues),c.result;const h=d.map(p=>new ZodError(p));return addIssueToContext(l,{code:ZodIssueCode.invalid_union,unionErrors:h}),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),o=getParsedType(a);if(t===a)return{valid:!0,data:t};if(l===ZodParsedType.object&&o===ZodParsedType.object){const u=util.objectKeys(a),c=util.objectKeys(t).filter(h=>u.indexOf(h)!==-1),d={...t,...a};for(const h of c){const p=mergeValues(t[h],a[h]);if(!p.valid)return{valid:!1};d[h]=p.data}return{valid:!0,data:d}}else if(l===ZodParsedType.array&&o===ZodParsedType.array){if(t.length!==a.length)return{valid:!1};const u=[];for(let c=0;c<t.length;c++){const d=t[c],h=a[c],p=mergeValues(d,h);if(!p.valid)return{valid:!1};u.push(p.data)}return{valid:!0,data:u}}else return l===ZodParsedType.date&&o===ZodParsedType.date&&+t==+a?{valid:!0,data:t}:{valid:!1}}class ZodIntersection extends ZodType{_parse(a){const{status:l,ctx:o}=this._processInputParams(a),u=(c,d)=>{if(isAborted(c)||isAborted(d))return INVALID;const h=mergeValues(c.value,d.value);return h.valid?((isDirty(c)||isDirty(d))&&l.dirty(),{status:l.value,value:h.data}):(addIssueToContext(o,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([c,d])=>u(c,d)):u(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}}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:o}=this._processInputParams(a);if(o.parsedType!==ZodParsedType.array)return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:o.parsedType}),INVALID;if(o.data.length<this._def.items.length)return addIssueToContext(o,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),INVALID;!this._def.rest&&o.data.length>this._def.items.length&&(addIssueToContext(o,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const c=[...o.data].map((d,h)=>{const p=this._def.items[h]||this._def.rest;return p?p._parse(new ParseInputLazyPath(o,d,o.path,h)):null}).filter(d=>!!d);return o.common.async?Promise.all(c).then(d=>ParseStatus.mergeArray(l,d)):ParseStatus.mergeArray(l,c)}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:o}=this._processInputParams(a);if(o.parsedType!==ZodParsedType.object)return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:o.parsedType}),INVALID;const u=[],c=this._def.keyType,d=this._def.valueType;for(const h in o.data)u.push({key:c._parse(new ParseInputLazyPath(o,h,o.path,h)),value:d._parse(new ParseInputLazyPath(o,o.data[h],o.path,h)),alwaysSet:h in o.data});return o.common.async?ParseStatus.mergeObjectAsync(l,u):ParseStatus.mergeObjectSync(l,u)}get element(){return this._def.valueType}static create(a,l,o){return l instanceof ZodType?new ZodRecord({keyType:a,valueType:l,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(o)}):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:o}=this._processInputParams(a);if(o.parsedType!==ZodParsedType.map)return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:o.parsedType}),INVALID;const u=this._def.keyType,c=this._def.valueType,d=[...o.data.entries()].map(([h,p],g)=>({key:u._parse(new ParseInputLazyPath(o,h,o.path,[g,"key"])),value:c._parse(new ParseInputLazyPath(o,p,o.path,[g,"value"]))}));if(o.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const p of d){const g=await p.key,x=await p.value;if(g.status==="aborted"||x.status==="aborted")return INVALID;(g.status==="dirty"||x.status==="dirty")&&l.dirty(),h.set(g.value,x.value)}return{status:l.value,value:h}})}else{const h=new Map;for(const p of d){const g=p.key,x=p.value;if(g.status==="aborted"||x.status==="aborted")return INVALID;(g.status==="dirty"||x.status==="dirty")&&l.dirty(),h.set(g.value,x.value)}return{status:l.value,value:h}}}}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:o}=this._processInputParams(a);if(o.parsedType!==ZodParsedType.set)return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:o.parsedType}),INVALID;const u=this._def;u.minSize!==null&&o.data.size<u.minSize.value&&(addIssueToContext(o,{code:ZodIssueCode.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),l.dirty()),u.maxSize!==null&&o.data.size>u.maxSize.value&&(addIssueToContext(o,{code:ZodIssueCode.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),l.dirty());const c=this._def.valueType;function d(p){const g=new Set;for(const x of p){if(x.status==="aborted")return INVALID;x.status==="dirty"&&l.dirty(),g.add(x.value)}return{status:l.value,value:g}}const h=[...o.data.values()].map((p,g)=>c._parse(new ParseInputLazyPath(o,p,o.path,g)));return o.common.async?Promise.all(h).then(p=>d(p)):d(h)}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),o=this._def.values;return addIssueToContext(l,{expected:util.joinValues(o),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),o=this._def.values;return addIssueToContext(l,{received:l.data,code:ZodIssueCode.invalid_enum_value,options:o}),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(o=>!a.includes(o)),{...this._def,...l})}}ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{_parse(a){const l=util.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(a);if(o.parsedType!==ZodParsedType.string&&o.parsedType!==ZodParsedType.number){const u=util.objectValues(l);return addIssueToContext(o,{expected:util.joinValues(u),received:o.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||(this._cache=new Set(util.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const u=util.objectValues(l);return addIssueToContext(o,{received:o.data,code:ZodIssueCode.invalid_enum_value,options:u}),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 o=l.parsedType===ZodParsedType.promise?l.data:Promise.resolve(l.data);return OK(o.then(u=>this._def.type.parseAsync(u,{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:o}=this._processInputParams(a),u=this._def.effect||null,c={addIssue:d=>{addIssueToContext(o,d),d.fatal?l.abort():l.dirty()},get path(){return o.path}};if(c.addIssue=c.addIssue.bind(c),u.type==="preprocess"){const d=u.transform(o.data,c);if(o.common.async)return Promise.resolve(d).then(async h=>{if(l.value==="aborted")return INVALID;const p=await this._def.schema._parseAsync({data:h,path:o.path,parent:o});return p.status==="aborted"?INVALID:p.status==="dirty"||l.value==="dirty"?DIRTY(p.value):p});{if(l.value==="aborted")return INVALID;const h=this._def.schema._parseSync({data:d,path:o.path,parent:o});return h.status==="aborted"?INVALID:h.status==="dirty"||l.value==="dirty"?DIRTY(h.value):h}}if(u.type==="refinement"){const d=h=>{const p=u.refinement(h,c);if(o.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(o.common.async===!1){const h=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return h.status==="aborted"?INVALID:(h.status==="dirty"&&l.dirty(),d(h.value),{status:l.value,value:h.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(h=>h.status==="aborted"?INVALID:(h.status==="dirty"&&l.dirty(),d(h.value).then(()=>({status:l.value,value:h.value}))))}if(u.type==="transform")if(o.common.async===!1){const d=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!isValid(d))return INVALID;const h=u.transform(d.value,c);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:h}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(d=>isValid(d)?Promise.resolve(u.transform(d.value,c)).then(h=>({status:l.value,value:h})):INVALID);util.assertNever(u)}}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 o=l.data;return l.parsedType===ZodParsedType.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,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),o={...l,common:{...l.common,issues:[]}},u=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return isAsync(u)?u.then(c=>({status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new ZodError(o.common.issues)},input:o.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new ZodError(o.common.issues)},input:o.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 o=this._getOrReturnCtx(a);return addIssueToContext(o,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:o.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),o=l.data;return this._def.type._parse({data:o,path:l.path,parent:l})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(a){const{status:l,ctx:o}=this._processInputParams(a);if(o.common.async)return(async()=>{const c=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return c.status==="aborted"?INVALID:c.status==="dirty"?(l.dirty(),DIRTY(c.value)):this._def.out._parseAsync({data:c.value,path:o.path,parent:o})})();{const u=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return u.status==="aborted"?INVALID:u.status==="dirty"?(l.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:o.path,parent:o})}}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),o=u=>(isValid(u)&&(u.value=Object.freeze(u.value)),u);return isAsync(l)?l.then(u=>o(u)):o(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 o=`gap-${t}`;return jsxRuntimeExports.jsx("div",{className:cn("flex flex-col",o,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:o,className:u}){return jsxRuntimeExports.jsx("div",{className:cn("flex flex-row",`gap-${t}`,alignMap[a],justifyMap[l],u),children:o})}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 o=`h${t}`;return jsxRuntimeExports.jsx(o,{className:cn(levelStyles[t],l),children:a})}const Input=reactExports.forwardRef(({className:t,type:a,...l},o)=>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:o,...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({}),o=(c,d)=>{l(h=>({...h,[c]:d}))},u=()=>{l({})};return jsxRuntimeExports.jsx(FormContext.Provider,{value:{values:a,setValue:o,reset:u},children:t})}function TextInput({name:t,type:a="text",placeholder:l}){const{values:o,setValue:u}=useFormContext(),c=o[t]??"";return jsxRuntimeExports.jsx(Input,{type:a,name:t,placeholder:l,value:c,onChange:d=>u(t,d.target.value)})}function IntentFormInner({intent:t,submitLabel:a="Submit",children:l}){const{values:o,reset:u}=useFormContext(),{sendIntent:c}=useClappContext(),d=h=>{h.preventDefault(),c(t,o),u()};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:o="default",label:u,children:c}){const{emit:d}=useIntent(),h=l==="primary"?"default":l;return jsxRuntimeExports.jsx(Button,{variant:h,size:o,onClick:()=>d(t,a),children:c||u})}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:o,className:u}){const c=useClappState(t||"_empty_")??[],d=useClappState(l||"_empty_"),{emit:h}=useIntent();return t?c.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",u),children:c.map((p,g)=>{const x=typeof p=="object"&&p!==null,b=x?p:null,C=String(b?b.text??JSON.stringify(p):p),R=b!=null&&b.role?String(b.role):void 0,_=b!=null&&b.id?String(b.id):`${g}`,B=p===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",B?"bg-accent text-accent-foreground":"hover:bg-accent/50",R==="assistant"&&"bg-muted/50",R==="user"&&"bg-primary/10"),onClick:a?()=>h(a,x?p:{value:p}):void 0,role:a?"button":void 0,children:C},_)})}):jsxRuntimeExports.jsx("ul",{className:cn("flex flex-col gap-1",u),children:o})}function ListItem({active:t,children:a,className:l,onClick:o}){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:o,children:a})}function Conditional({when:t,children:a}){const l=(t==null?void 0:t.startsWith("!"))??!1,o=l?t.slice(1):t??"",u=useClappState(o||"_empty_");return(l?!u:!!u)?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:a}):null}function MarkdownContent({source:t,content:a,className:l}){const o=useClappState(t||"_empty_"),u=a??o??"";return u?jsxRuntimeExports.jsx("div",{className:cn("prose prose-invert prose-sm max-w-none",l),children:jsxRuntimeExports.jsx(Markdown,{components:{h1:({children:c})=>jsxRuntimeExports.jsx("h1",{className:"text-xl font-bold mt-4 mb-2",children:c}),h2:({children:c})=>jsxRuntimeExports.jsx("h2",{className:"text-lg font-semibold mt-3 mb-2",children:c}),h3:({children:c})=>jsxRuntimeExports.jsx("h3",{className:"text-base font-semibold mt-2 mb-1",children:c}),p:({children:c})=>jsxRuntimeExports.jsx("p",{className:"my-2 text-sm leading-relaxed",children:c}),ul:({children:c})=>jsxRuntimeExports.jsx("ul",{className:"list-disc list-inside my-2 text-sm",children:c}),ol:({children:c})=>jsxRuntimeExports.jsx("ol",{className:"list-decimal list-inside my-2 text-sm",children:c}),li:({children:c})=>jsxRuntimeExports.jsx("li",{className:"my-0.5",children:c}),code:({children:c,className:d})=>!d?jsxRuntimeExports.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs font-mono",children:c}):jsxRuntimeExports.jsx("code",{className:d,children:c}),pre:({children:c})=>jsxRuntimeExports.jsx("pre",{className:"bg-card border border-border rounded-md p-3 overflow-x-auto my-2 text-xs",children:c}),blockquote:({children:c})=>jsxRuntimeExports.jsx("blockquote",{className:"border-l-2 border-primary pl-3 my-2 text-muted-foreground italic",children:c}),a:({href:c,children:d})=>jsxRuntimeExports.jsx("a",{href:c,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:d}),strong:({children:c})=>jsxRuntimeExports.jsx("strong",{className:"font-semibold",children:c}),em:({children:c})=>jsxRuntimeExports.jsx("em",{className:"italic",children:c})},children:u})}):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:o}=useIntent(),[u,c]=reactExports.useState("select"),[d,h]=reactExports.useState(null),[p,g]=reactExports.useState(null),[x,b]=reactExports.useState(""),[C,R]=reactExports.useState({}),[_,B]=reactExports.useState({}),[L,D]=reactExports.useState(!1),[$,V]=reactExports.useState(null);reactExports.useEffect(()=>{if(t){if(l){h(l.type);const ae=l.authType==="subscription"||l.authType==="oauth"||l.mode==="oauth"?"subscription":"api-key";g(ae),b(l.name),c("configure")}else c("select"),h(null),g(null),b("");R({}),B({}),V(null),D(!1)}},[t,l]);const se=d?PROVIDER_CONFIGS.find(ae=>ae.type===d):null,ie=se&&p?se.authModes.find(ae=>ae.mode===p):null,H=ae=>{h(ae);const Ce=PROVIDER_CONFIGS.find(ye=>ye.type===ae);Ce&&(g(Ce.authModes[0].mode),b(Ce.name)),c("configure")},ge=(ae,Ce)=>{R(ye=>({...ye,[ae]:Ce})),V(null)},W=ae=>{B(Ce=>({...Ce,[ae]:!Ce[ae]}))},ve=async()=>{var ae,Ce;if(!(!d||!p||!se)){if(ie!=null&&ie.fields.length){for(const ye of ie.fields)if(!((ae=C[ye.name])!=null&&ae.trim())){V(`${ye.label} is required`);return}}D(!0),V(null);try{const ye=getIntentName(d,p),ee={customName:x.trim()||se.name,profileId:l==null?void 0:l.id};for(const P of(ie==null?void 0:ie.fields)??[])ee[P.name]=(Ce=C[P.name])==null?void 0:Ce.trim();o(ye,ee),await new Promise(P=>setTimeout(P,1e3)),a()}catch(ye){V(ye instanceof Error?ye.message:"Failed to save provider")}finally{D(!1)}}},K=()=>{d&&(D(!0),o("settings.startOAuth",{provider:d==="openai"?"openai-codex":d,customName:x.trim()||(se==null?void 0:se.name)}))},Ee=()=>{l&&confirm(`Delete "${l.name}"? This cannot be undone.`)&&(o("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:[u==="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(ae=>jsxRuntimeExports.jsxs("button",{onClick:()=>H(ae.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:ae.name}),jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground",children:ae.description})]},ae.type))]}),u==="configure"&&se&&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:ae=>b(ae.target.value),placeholder:se.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")'})]}),se.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:se.authModes.map(ae=>jsxRuntimeExports.jsxs("button",{onClick:()=>g(ae.mode),className:cn("p-3 rounded-lg border text-left transition-colors",p===ae.mode?"border-primary bg-primary/10":"border-border hover:border-muted-foreground"),children:[jsxRuntimeExports.jsx("div",{className:"text-sm font-medium",children:ae.label}),jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:ae.description})]},ae.mode))})]}),ie&&jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[ie.fields.length>0?ie.fields.map(ae=>jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:ae.label}),(l==null?void 0:l.maskedCredential)&&!C[ae.name]&&jsxRuntimeExports.jsxs("div",{className:"text-xs text-muted-foreground bg-muted/50 px-2 py-1 rounded mb-1",children:["Current: ",l.maskedCredential]}),ae.type==="textarea"?jsxRuntimeExports.jsx("textarea",{value:C[ae.name]??"",onChange:Ce=>ge(ae.name,Ce.target.value),placeholder:l?"Enter new value to replace...":ae.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:ae.type==="password"&&!_[ae.name]?"password":"text",value:C[ae.name]??"",onChange:Ce=>ge(ae.name,Ce.target.value),placeholder:l?"Enter new value to replace...":ae.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"}),ae.type==="password"&&jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>W(ae.name),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 text-muted-foreground hover:text-foreground",children:_[ae.name]?jsxRuntimeExports.jsx(EyeOff,{className:"h-4 w-4"}):jsxRuntimeExports.jsx(Eye,{className:"h-4 w-4"})})]}),ae.helpText&&jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground",children:ae.helpText})]},ae.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 ",se.name," account."]}),jsxRuntimeExports.jsx(Button,{onClick:K,disabled:L,className:"w-full",children:L?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin mr-2"}),"Connecting..."]}):`Sign in with ${se.name}`})]}),ie.helpUrl&&jsxRuntimeExports.jsxs("a",{href:ie.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"})]})]}),$&&jsxRuntimeExports.jsx("div",{className:"p-3 rounded-md bg-destructive/10 text-destructive text-sm",children:$})]})]}),u==="configure"&&(ie==null?void 0:ie.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:Ee,disabled:L,className:"mr-auto",children:"Delete"}),jsxRuntimeExports.jsx(Button,{variant:"outline",onClick:()=>l?a():c("select"),disabled:L,children:l?"Cancel":"Back"}),jsxRuntimeExports.jsx(Button,{onClick:ve,disabled:L,children:L?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 o;return((o={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:o[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")??"",o=useClappState("active.profileId")??"",{emit:u}=useIntent(),c=a.find(ee=>ee.active)??a[0],[d,h]=reactExports.useState(o||(c==null?void 0:c.id)||""),[p,g]=reactExports.useState(l??""),[x,b]=reactExports.useState(!1),[C,R]=reactExports.useState(!1),[_,B]=reactExports.useState(null),[L,D]=reactExports.useState(!1),[$,V]=reactExports.useState(null),se=d!==(o||(c==null?void 0:c.id)||"")||p!==(l??"");reactExports.useEffect(()=>{!c&&!o||(!d||!x&&!se)&&h(o||(c==null?void 0:c.id)||"")},[c,o,x,se,d]),reactExports.useEffect(()=>{l&&(!p||!x&&!se)&&g(l)},[l,x,p,se]);const ie=reactExports.useMemo(()=>{const ee=a.find(P=>P.id===d);return(ee==null?void 0:ee.models)??[]},[a,d]);reactExports.useEffect(()=>{if(!ie.length)return;ie.some(P=>P.id===p)||g(ie[0].id)},[ie,p]);const H=d!==(o||(c==null?void 0:c.id)||""),ge=!!(p&&p!==l),W=H||ge;reactExports.useEffect(()=>{if(!x)return;const ee=(o||(c==null?void 0:c.id)||"")===d,P=!ge||l===p&&l.length>0;ee&&P&&(b(!1),R(!1),B(null))},[l,p,d,o,c,ge,x]),reactExports.useEffect(()=>{if(!x)return;const ee=setTimeout(()=>R(!0),1e4),P=setTimeout(()=>{b(!1),R(!1),B("Still applying took too long. Changes may still complete in the background.")},3e4);return()=>{clearTimeout(ee),clearTimeout(P)}},[x]);const ve=a.find(ee=>ee.id===d),K=ee=>{var fe,_e;if(x)return;h(ee);const P=a.find(O=>O.id===ee),he=(_e=(fe=P==null?void 0:P.models)==null?void 0:fe[0])==null?void 0:_e.id;g(he||"")},Ee=()=>{!W||!p||x||(b(!0),R(!1),B(null),H&&u("settings.setActiveProfile",{profileId:d}),ge&&u("settings.setActiveModel",{model:p}))},ae=()=>{V(null),D(!0)},Ce=ee=>{const P=ee.id.split(":")[0],he={anthropic:"anthropic",openai:"openai","openai-codex":"openai","kimi-coding":"kimi-coding",moonshot:"kimi-coding"};V({id:ee.id,name:ee.name,type:he[P]??"anthropic",mode:ee.mode,authType:ee.authType,maskedCredential:ee.maskedCredential}),D(!0)},ye=()=>{D(!1),V(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:d,onChange:ee=>K(ee.target.value),disabled:x||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(ee=>jsxRuntimeExports.jsx("option",{value:ee.id,children:providerOptionLabel(ee)},ee.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"})]}),ve&&jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>Ce(ve),disabled:x,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 ${ve.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:p,onChange:ee=>g(ee.target.value),disabled:x||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(ee=>jsxRuntimeExports.jsx("option",{value:ee.id,children:ee.label},ee.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"})]})]}),ve&&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(ve),": ",ve.maskedCredential??"No credential"]}),jsxRuntimeExports.jsxs("div",{className:"opacity-70",children:["id: ",ve.id]})]}),jsxRuntimeExports.jsx("button",{type:"button",onClick:Ee,disabled:!W||!p||x,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:x?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin"}),C?"Still applying…":"Updating model…"]}):W?"Save changes":jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Check,{className:"h-4 w-4"}),"Up to date"]})}),_&&jsxRuntimeExports.jsx("p",{className:"text-xs text-amber-600 dark:text-amber-400",children:_}),jsxRuntimeExports.jsx("div",{className:"pt-2 border-t border-border",children:jsxRuntimeExports.jsxs("button",{type:"button",onClick:ae,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:L,onClose:ye,editingProvider:$})]})}function SessionList(){const t=useClappState("sessions"),a=(t==null?void 0:t.sessions)??[],l=t==null?void 0:t.globalModel,{emit:o}=useIntent(),[u,c]=reactExports.useState(!1),[d,h]=reactExports.useState(null),[p,g]=reactExports.useState(!1);reactExports.useEffect(()=>{o("settings.listSessions",{})},[o]);const x=()=>{c(!0),o("settings.listSessions",{}),setTimeout(()=>c(!1),1500)},b=L=>{h(L),o("settings.resetSessionModel",{sessionKey:L}),setTimeout(()=>h(null),2e3)},C=()=>{g(!0),o("settings.applyDefaultToAll",{}),setTimeout(()=>g(!1),3e3)},R=a.filter(L=>L.isOverride).length,_=a.find(L=>L.key==="agent:main:main")??a[0],B=!!(_!=null&&_.isOverride);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:x,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":"",R>0&&jsxRuntimeExports.jsxs("span",{className:"text-amber-500 ml-1",children:["• ",R," override",R!==1?"s":""]})]})]}),jsxRuntimeExports.jsx("button",{onClick:x,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.jsxs("div",{className:cn("rounded-lg border p-3 space-y-2",B?"border-amber-500/50 bg-amber-500/5":"border-border bg-muted/30"),children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground",children:"Model source of truth"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-4 text-sm",children:[jsxRuntimeExports.jsxs("div",{className:"min-w-0",children:[jsxRuntimeExports.jsx("div",{className:"text-muted-foreground text-xs",children:"Global default"}),jsxRuntimeExports.jsx("div",{className:"font-medium truncate",children:l??"unknown"})]}),jsxRuntimeExports.jsxs("div",{className:"min-w-0 text-right",children:[jsxRuntimeExports.jsx("div",{className:"text-muted-foreground text-xs",children:"This session"}),jsxRuntimeExports.jsx("div",{className:"font-medium truncate",children:(_==null?void 0:_.model)??"unknown"})]})]}),_&&jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsx("span",{className:cn("text-xs",B?"text-amber-500":"text-green-600 dark:text-green-400"),children:B?"Session override is active":"Session matches global default"}),B&&jsxRuntimeExports.jsx("button",{onClick:()=>b(_.key),disabled:d===_.key,className:"shrink-0 px-2 py-1 text-xs rounded-md border border-border hover:bg-muted transition-colors disabled:opacity-50",children:d===_.key?"Resetting…":"Reset this session"})]})]}),jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-2",children:a.map(L=>jsxRuntimeExports.jsxs("div",{className:cn("flex items-start justify-between gap-2 p-3 rounded-lg border",L.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:[L.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:L.label})]}),jsxRuntimeExports.jsxs("div",{className:"mt-1 ml-6",children:[jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground",children:L.modelLabel}),L.isOverride&&jsxRuntimeExports.jsx("span",{className:"text-xs text-amber-500 ml-2",children:"(override)"})]})]}),L.isOverride&&jsxRuntimeExports.jsx("button",{onClick:()=>b(L.key),disabled:d===L.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:d===L.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"]})})]},L.key))}),R>0&&jsxRuntimeExports.jsx("button",{onClick:C,disabled:p,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:p?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 ${R} override${R!==1?"s":""}`})]})}function ChatMessages({messages:t,loading:a,loadingText:l="Thinking...",hasMore:o=!1,loadingOlder:u=!1,onLoadOlder:c}){const d=reactExports.useRef(null),h=reactExports.useRef(null),p=reactExports.useRef(!0);reactExports.useEffect(()=>{t.length===0&&(p.current=!0)},[t.length]),reactExports.useEffect(()=>{var C,R;const x=d.current;if(!x)return;if(p.current&&t.length>0){p.current=!1,(C=h.current)==null||C.scrollIntoView({behavior:"instant"});return}(x.scrollHeight-x.scrollTop-x.clientHeight<200||a)&&((R=h.current)==null||R.scrollIntoView({behavior:"smooth",block:"end"}))},[t,a]);const g=()=>{const x=d.current;!x||!o||u||!c||x.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:d,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…"}),o&&!u&&jsxRuntimeExports.jsx("div",{className:"text-center text-xs text-muted-foreground",children:"Scroll up to load older messages"}),t.map(x=>jsxRuntimeExports.jsx(MessageBubble,{message:x},x.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 line-clamp-2",children:l})]})})]}),jsxRuntimeExports.jsx("div",{ref:h})]})})}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.jsxs("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:[t.attachments&&t.attachments.length>0&&jsxRuntimeExports.jsxs("div",{className:"mb-2 space-y-2",children:[jsxRuntimeExports.jsx("div",{className:"grid grid-cols-2 gap-2",children:t.attachments.filter(o=>o.type==="image").map(o=>jsxRuntimeExports.jsx("a",{href:o.url,target:"_blank",rel:"noreferrer",children:jsxRuntimeExports.jsx("img",{src:o.url,alt:o.name,className:"rounded-md border border-black/10 dark:border-white/10 max-h-52 object-cover",loading:"lazy"})},o.id))}),t.attachments.filter(o=>o.type==="file").map(o=>jsxRuntimeExports.jsxs("a",{href:o.url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 rounded-md border border-black/10 dark:border-white/10 px-2 py-1.5 text-xs hover:bg-black/5 dark:hover:bg-white/5",children:[jsxRuntimeExports.jsx(Paperclip,{className:"h-3.5 w-3.5"}),jsxRuntimeExports.jsx("span",{className:"truncate",children:o.name})]},o.id))]}),t.content&&jsxRuntimeExports.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none break-words",children:jsxRuntimeExports.jsx(Markdown,{components:{code:({className:o,children:u,...c})=>o?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",...c,children:u})}):jsxRuntimeExports.jsx("code",{className:"bg-black/10 dark:bg-white/10 px-1 py-0.5 rounded text-sm",...c,children:u}),p:({children:o})=>jsxRuntimeExports.jsx("p",{className:"mb-2 last:mb-0",children:o})},children:t.content})})]})})]})}function ChatInput({onSend:t,disabled:a=!1,placeholder:l="Message..."}){const[o,u]=reactExports.useState(""),[c,d]=reactExports.useState([]),h=reactExports.useRef(null),p=reactExports.useRef(null);reactExports.useEffect(()=>{const L=h.current;L&&(L.style.height="auto",L.style.height=`${Math.min(L.scrollHeight,200)}px`)},[o]);const g=L=>new Promise((D,$)=>{const V=new FileReader;V.onload=()=>D(String(V.result??"")),V.onerror=()=>$(new Error(`Failed to read file: ${L.name}`)),V.readAsDataURL(L)}),x=async L=>{if(!L.length)return;const D=await Promise.all(L.map(async($,V)=>{const se=await g($);return{id:`file-${Date.now()}-${V}`,name:$.name||`attachment-${Date.now()}`,mimeType:$.type||"application/octet-stream",size:$.size,dataUrl:se,isImage:$.type.startsWith("image/")}}));d($=>[...$,...D])},b=async L=>{var se;const $=Array.from(((se=L.clipboardData)==null?void 0:se.items)??[]).filter(ie=>ie.type.startsWith("image/"));if(!$.length)return;L.preventDefault();const V=$.map(ie=>ie.getAsFile()).filter(Boolean);await x(V)},C=async L=>{const D=Array.from(L.target.files??[]);await x(D),L.target.value=""},R=()=>{const L=o.trim();!L&&c.length===0||a||(t(L,c.map(({id:D,isImage:$,...V})=>V)),u(""),d([]),h.current&&(h.current.style.height="auto"))},_=L=>d(D=>D.filter($=>$.id!==L)),B=L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),R())};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:[!!c.length&&jsxRuntimeExports.jsx("div",{className:"mb-2 flex flex-wrap gap-2",children:c.map(L=>jsxRuntimeExports.jsxs("div",{className:"relative rounded-md border bg-muted/40 overflow-hidden",children:[L.isImage?jsxRuntimeExports.jsx("img",{src:L.dataUrl,alt:L.name,className:"h-16 w-16 object-cover"}):jsxRuntimeExports.jsxs("div",{className:"h-16 min-w-40 px-2 flex items-center gap-2 text-xs",children:[jsxRuntimeExports.jsx(Paperclip,{className:"h-3.5 w-3.5"}),jsxRuntimeExports.jsx("span",{className:"truncate max-w-28",children:L.name})]}),jsxRuntimeExports.jsx("button",{onClick:()=>_(L.id),className:"absolute top-0.5 right-0.5 rounded-full bg-black/70 text-white p-0.5",title:"Remove",children:jsxRuntimeExports.jsx(X,{className:"h-3 w-3"})})]},L.id))}),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("input",{ref:p,type:"file",multiple:!0,onChange:C,className:"hidden",accept:"image/*,.pdf,.txt,.md,.csv,.json,.doc,.docx,.xls,.xlsx,.ppt,.pptx"}),jsxRuntimeExports.jsx("button",{onClick:()=>{var L;return(L=p.current)==null?void 0:L.click()},className:"shrink-0 p-2 rounded-xl bg-background border border-border hover:bg-muted transition-colors",title:"Add photos & files",children:jsxRuntimeExports.jsx(Plus,{className:"h-4 w-4"})}),jsxRuntimeExports.jsx("textarea",{ref:h,value:o,onChange:L=>u(L.target.value),onKeyDown:B,onPaste:b,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:R,disabled:a||!o.trim()&&c.length===0,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:"Enter to send • Shift+Enter newline • Paste images or use + for files"})]})})}function ChatLayout(){const t=useClappState("chat"),a=(t==null?void 0:t.sessions)??[],l=t==null?void 0:t.activeSession,o=(t==null?void 0:t.messages)??[],u=(t==null?void 0:t.loading)??!1,c=(t==null?void 0:t.loadingText)??"Thinking...",d=(t==null?void 0:t.loadingOlder)??!1,h=(t==null?void 0:t.hasMore)??!1,{emit:p}=useIntent(),[g,x]=reactExports.useState(!1),[b,C]=reactExports.useState(null),R=reactExports.useRef(!1);reactExports.useEffect(()=>{l&&x(!1)},[l]),reactExports.useEffect(()=>{R.current||(R.current=!0,p("chat.init",{}))},[p]);const _=()=>{p("chat.newSession",{}),x(!1)},B=W=>{W!==l&&p("chat.switchSession",{sessionKey:W}),x(!1)},L=(W,ve)=>{ve.stopPropagation(),C(W),p("chat.deleteSession",{sessionKey:W}),setTimeout(()=>C(null),1e3)},[D,$]=reactExports.useState(null),V=(W,ve)=>{W.trim()&&$({id:`pending-${Date.now()}`,role:"user",content:W,timestamp:new Date().toISOString()}),p("chat.send",{text:W,attachments:ve??[]})};reactExports.useEffect(()=>{D&&o.some(W=>W.role==="user"&&W.content===D.content)&&$(null)},[o,D]);const se=D?[...o,D]:o,ie=u||!!D,H=()=>{!d&&h&&p("chat.loadOlder",{})},ge=a.find(W=>W.key===l);return jsxRuntimeExports.jsxs("div",{className:"flex h-full bg-background",children:[g&&jsxRuntimeExports.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 lg:hidden",onClick:()=>x(!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",g?"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:_,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:()=>x(!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(W=>jsxRuntimeExports.jsx("button",{onClick:()=>B(W.key),className:cn("w-full text-left p-3 rounded-lg transition-colors group","hover:bg-muted",W.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:W.title||"New conversation"}),jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground truncate mt-0.5",children:W.preview||"No messages"})]}),jsxRuntimeExports.jsx("button",{onClick:ve=>L(W.key,ve),className:cn("p-1 rounded opacity-0 group-hover:opacity-100 transition-opacity","hover:bg-destructive/20 hover:text-destructive",b===W.key&&"opacity-100"),title:"Delete conversation",children:jsxRuntimeExports.jsx(Trash2,{className:"h-3.5 w-3.5"})})]})},W.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:()=>x(!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:(ge==null?void 0:ge.title)||"New conversation"})})]}),jsxRuntimeExports.jsx(ChatMessages,{messages:se,loading:ie,loadingText:c,hasMore:h,loadingOlder:d,onLoadOlder:H}),jsxRuntimeExports.jsx(ChatInput,{onSend:V,disabled:u})]})]})}function AccountCard({item:t}){const{emit:a}=useIntent();return jsxRuntimeExports.jsx(Card$1,{className:cn("p-4",!t.enabled&&"opacity-60"),children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsx("div",{className:"font-semibold",children:t.id}),jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground",children:t.mode==="socket"?"Socket Mode":"HTTP Mode"}),jsxRuntimeExports.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["Token: ",t.botToken]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("button",{onClick:()=>a("slack.testAccount",{accountId:t.id}),className:"px-3 py-1 text-sm rounded-md bg-muted hover:bg-muted/80",children:"Test"}),jsxRuntimeExports.jsx("button",{onClick:()=>a("slack.editAccount",{accountId:t.id}),className:"px-3 py-1 text-sm rounded-md bg-muted hover:bg-muted/80",children:"Edit"}),jsxRuntimeExports.jsx("button",{onClick:()=>a("slack.deleteAccount",{accountId:t.id}),className:"px-3 py-1 text-sm rounded-md bg-destructive/20 text-destructive hover:bg-destructive/30",children:"Delete"})]})]})})}function AccountEditor({account:t}){const{emit:a}=useIntent(),l=useClappState("slack.saving")??!1,o=useClappState("slack.saveError")??null,u=useClappState("slack.saveSuccess")??null,[c,d]=reactExports.useState(!1),h=reactExports.useRef(l),[p,g]=reactExports.useState((t==null?void 0:t.id)||""),[x,b]=reactExports.useState((t==null?void 0:t.mode)||"socket"),[C,R]=reactExports.useState((t==null?void 0:t.botToken)||""),[_,B]=reactExports.useState((t==null?void 0:t.appToken)||""),[L,D]=reactExports.useState((t==null?void 0:t.signingSecret)||""),[$,V]=reactExports.useState((t==null?void 0:t.webhookPath)||"/slack/events");reactExports.useEffect(()=>{l&&!h.current||!l&&h.current&&d(!1),h.current=l},[l]),reactExports.useEffect(()=>{if(!c)return;const H=setTimeout(()=>d(!1),2e4);return()=>clearTimeout(H)},[c]);const se=()=>{d(!0),a("slack.saveAccount",{accountId:p||"default",mode:x,botToken:C,appToken:x==="socket"?_:void 0,signingSecret:x==="http"?L:void 0,webhookPath:x==="http"?$:void 0})},ie=()=>{g(""),b("socket"),R(""),B(""),D(""),V("/slack/events")};return u?jsxRuntimeExports.jsx(Card$1,{className:"p-6",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-green-600 font-medium",children:u}),jsxRuntimeExports.jsx("div",{className:"flex justify-end",children:jsxRuntimeExports.jsx(Button,{type:"button",onClick:()=>a("slack.cancelEdit"),children:"Done"})})]})}):jsxRuntimeExports.jsx(Card$1,{className:"p-6",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Account ID"}),jsxRuntimeExports.jsx(Input,{value:p,onChange:H=>g(H.target.value),placeholder:"default",disabled:c})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Mode"}),jsxRuntimeExports.jsxs("div",{className:"flex gap-2 mt-2",children:[jsxRuntimeExports.jsx(Button,{type:"button",variant:x==="socket"?"default":"outline",onClick:()=>b("socket"),disabled:c,children:"Socket Mode"}),jsxRuntimeExports.jsx(Button,{type:"button",variant:x==="http"?"default":"outline",onClick:()=>b("http"),disabled:c,children:"HTTP Events API"})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Bot Token"}),jsxRuntimeExports.jsx(Input,{value:C,onChange:H=>R(H.target.value),placeholder:"xoxb-...",type:"password",disabled:c})]}),x==="socket"&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"App Token"}),jsxRuntimeExports.jsx(Input,{value:_,onChange:H=>B(H.target.value),placeholder:"xapp-...",type:"password",disabled:c})]}),x==="http"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Signing Secret"}),jsxRuntimeExports.jsx(Input,{value:L,onChange:H=>D(H.target.value),placeholder:"Signing secret",type:"password",disabled:c})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Webhook Path"}),jsxRuntimeExports.jsx(Input,{value:$,onChange:H=>V(H.target.value),placeholder:"/slack/events",disabled:c})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[jsxRuntimeExports.jsx(Button,{type:"button",variant:"outline",onClick:ie,disabled:c,children:"Clear"}),jsxRuntimeExports.jsx(Button,{type:"button",onClick:se,disabled:!C||c,children:c?"Saving…":"Save Account"})]}),o&&jsxRuntimeExports.jsx("p",{className:"text-xs text-rose-500",children:o})]})})}function ChannelList({channels:t}){const{emit:a}=useIntent();return!Array.isArray(t)||t.length===0?jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground text-center py-4",children:"No channels configured"}):jsxRuntimeExports.jsx("div",{className:"space-y-2",children:t.map(l=>jsxRuntimeExports.jsx(Card$1,{className:"p-4",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsx("div",{className:"font-semibold",children:l.name||l.id}),jsxRuntimeExports.jsxs("div",{className:"text-sm text-muted-foreground mt-1 space-y-1",children:[l.requireMention!==void 0&&jsxRuntimeExports.jsxs("div",{children:["Require mention: ",l.requireMention?"Yes":"No"]}),l.users&&l.users.length>0&&jsxRuntimeExports.jsxs("div",{children:["Users: ",l.users.join(", ")]}),l.skills&&l.skills.length>0&&jsxRuntimeExports.jsxs("div",{children:["Skills: ",l.skills.join(", ")]})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",onClick:()=>a("slack.editChannel",{channelId:l.id}),children:jsxRuntimeExports.jsx(SquarePen,{className:"h-4 w-4"})}),jsxRuntimeExports.jsx(Button,{size:"sm",variant:"destructive",onClick:()=>a("slack.removeChannel",{channelId:l.id}),children:jsxRuntimeExports.jsx(Trash2,{className:"h-4 w-4"})})]})]})},l.id))})}function ChannelEditor({channel:t,onClose:a}){const{emit:l}=useIntent(),[o,u]=reactExports.useState((t==null?void 0:t.id)||""),[c,d]=reactExports.useState((t==null?void 0:t.requireMention)??!0),[h,p]=reactExports.useState(((t==null?void 0:t.users)||[]).join(", ")),[g,x]=reactExports.useState(((t==null?void 0:t.skills)||[]).join(", ")),b=()=>{l("slack.saveChannel",{channelId:o,requireMention:c,users:h.split(",").map(C=>C.trim()).filter(Boolean),skills:g.split(",").map(C=>C.trim()).filter(Boolean)}),a==null||a()};return jsxRuntimeExports.jsx(Card$1,{className:"p-6 max-w-2xl mx-auto",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold",children:t?"Edit Channel":"Add Channel"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Channel ID"}),jsxRuntimeExports.jsx(Input,{value:o,onChange:C=>u(C.target.value),placeholder:"C1234567890",disabled:!!t}),jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Use Slack channel ID or name"})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:c,onChange:C=>d(C.target.checked),id:"requireMention",className:"rounded border-gray-300"}),jsxRuntimeExports.jsx("label",{htmlFor:"requireMention",className:"text-sm font-medium cursor-pointer",children:"Require mention to respond"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Allowed Users (optional)"}),jsxRuntimeExports.jsx(Input,{value:h,onChange:C=>p(C.target.value),placeholder:"user:U123, user:U456"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Comma-separated list of user IDs or names"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Custom Skills (optional)"}),jsxRuntimeExports.jsx(Input,{value:g,onChange:C=>x(C.target.value),placeholder:"weather, calendar"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Comma-separated list of skill IDs"})]}),jsxRuntimeExports.jsxs("div",{className:"flex gap-2 justify-end pt-4",children:[a&&jsxRuntimeExports.jsx(Button,{variant:"outline",onClick:a,children:"Cancel"}),jsxRuntimeExports.jsx(Button,{onClick:b,disabled:!o,children:"Save Channel"})]})]})})}function PolicySelector({value:t,type:a}){const{emit:l}=useIntent(),o=a==="dm"?[{value:"pairing",label:"Pairing (default)"},{value:"allowlist",label:"Allowlist"},{value:"open",label:"Open"},{value:"disabled",label:"Disabled"}]:[{value:"open",label:"Open"},{value:"allowlist",label:"Allowlist (recommended)"},{value:"disabled",label:"Disabled"}],u=c=>{a==="dm"?l("slack.setDmPolicy",{policy:c}):l("slack.setGroupPolicy",{policy:c})};return jsxRuntimeExports.jsx("select",{value:t,onChange:c=>u(c.target.value),className:"w-full px-3 py-2 border rounded-md bg-background",children:o.map(c=>jsxRuntimeExports.jsx("option",{value:c.value,children:c.label},c.value))})}function FeatureToggles({actions:t}){const{emit:a}=useIntent(),l=[{key:"messages",label:"Messages"},{key:"reactions",label:"Reactions"},{key:"pins",label:"Pins"},{key:"memberInfo",label:"Member Info"},{key:"emojiList",label:"Emoji List"}],o=(u,c)=>{a("slack.toggleAction",{group:u,enabled:c})};return jsxRuntimeExports.jsx("div",{className:"space-y-3",children:l.map(u=>{const c=t[u.key]!==!1;return jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsx("span",{className:"text-sm font-medium",children:u.label}),jsxRuntimeExports.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:c,onChange:d=>o(u.key,d.target.checked),className:"sr-only peer"}),jsxRuntimeExports.jsx("div",{className:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"})]})]},u.key)})})}function SlashCommandConfig({config:t}){const{emit:a}=useIntent(),[l,o]=reactExports.useState((t==null?void 0:t.enabled)||!1),[u,c]=reactExports.useState((t==null?void 0:t.name)||"openclaw"),d=()=>{a("slack.setSlashCommand",{enabled:l,name:u})};return jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:l,onChange:h=>o(h.target.checked),id:"slashEnabled",className:"rounded border-gray-300"}),jsxRuntimeExports.jsx("label",{htmlFor:"slashEnabled",className:"text-sm font-medium cursor-pointer",children:"Enable single slash command"})]}),l&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium",children:"Command Name"}),jsxRuntimeExports.jsx(Input,{value:u,onChange:h=>c(h.target.value),placeholder:"openclaw"}),jsxRuntimeExports.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Register /",u," in Slack app settings"]})]}),jsxRuntimeExports.jsx(Button,{onClick:d,size:"sm",children:"Save"}),jsxRuntimeExports.jsxs("div",{className:"text-xs text-muted-foreground mt-4 p-3 bg-muted rounded-md",children:[jsxRuntimeExports.jsx("p",{className:"font-medium mb-1",children:"Note:"}),jsxRuntimeExports.jsxs("p",{children:["For native command support, set"," ",jsxRuntimeExports.jsx("code",{className:"bg-background px-1 py-0.5 rounded",children:"channels.slack.commands.native: true"})," ","and register matching slash commands in Slack (use /agentstatus for the status command)."]})]})]})}function ConnectionStatus({status:t}){var o,u;if(!t)return 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:"Loading status..."})]});const a=((o=t.accounts)==null?void 0:o.filter(c=>c.connected).length)||0,l=((u=t.accounts)==null?void 0:u.length)||0;return jsxRuntimeExports.jsxs("div",{className:"space-y-3",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center gap-2",children:t.connected?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CircleCheckBig,{className:"h-5 w-5 text-green-600"}),jsxRuntimeExports.jsx("span",{className:"font-medium",children:"Connected"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CircleX,{className:"h-5 w-5 text-red-600"}),jsxRuntimeExports.jsx("span",{className:"font-medium",children:"Disconnected"})]})}),t.accounts&&t.accounts.length>0&&jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsxs("div",{className:"text-sm text-muted-foreground",children:[a," of ",l," accounts connected"]}),jsxRuntimeExports.jsx("div",{className:"space-y-1",children:t.accounts.map(c=>jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[c.connected?jsxRuntimeExports.jsx(CircleCheckBig,{className:"h-3 w-3 text-green-600"}):jsxRuntimeExports.jsx(CircleX,{className:"h-3 w-3 text-red-600"}),jsxRuntimeExports.jsx("span",{children:c.id})]},c.id))})]})]})}const componentMap={Column,Row,Heading,IntentButton,Icon,List,ListItem,Conditional,Skeleton,MarkdownContent,Card,TextInput,IntentForm,ProviderList,SessionList,ChatLayout,ChatMessages,ChatInput,AccountCard,AccountEditor,ChannelList,ChannelEditor,PolicySelector,FeatureToggles,SlashCommandConfig,ConnectionStatus};function LayoutNodeRenderer({node:t,moduleMap:a}){if(t.component==="Module"&&t.props.ref&&a){const u=String(t.props.ref),c=a.get(u);return c?jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:c,moduleMap:a}):jsxRuntimeExports.jsxs("div",{className:"text-destructive text-sm p-2",children:["Module not found: ",u]})}const l=componentMap[t.component];if(!l)return jsxRuntimeExports.jsxs("div",{className:"text-destructive text-sm p-2",children:["Unknown component: ",t.component]});const o=t.children.map((u,c)=>typeof u=="string"?jsxRuntimeExports.jsx("span",{children:u},c):jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:u,moduleMap:a},c));return jsxRuntimeExports.jsx(l,{...t.props,children:o})}function AppRenderer({spec:t,modules:a}){const l=reactExports.useMemo(()=>{const o=new Map;for(const u of a)o.set(`${u.domain}/${u.name}`,u.layout);return o},[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,o]=reactExports.useState({status:"loading"});reactExports.useEffect(()=>{a.sendIntent(t,`${t}.init`,{})},[t,a]);const u=reactExports.useCallback(async()=>{try{const c=await a.fetchView(`${t}.app`);if(!c){o({status:"no-view"});return}const d=parseAppMd(c),p=(await Promise.all(d.modules.map(async g=>{const x=g.replace("/","."),b=await a.fetchView(`${x}.view`);return b?parseViewMd(b):null}))).filter(g=>g!==null);o({status:"ready",appSpec:d,modules:p})}catch(c){o({status:"error",message:c instanceof Error?c.message:"Failed to load views"})}},[t,a]);switch(reactExports.useEffect(()=>(u(),a.onView(d=>{(d===`${t}.app`||d.endsWith(".view"))&&u()})),[u,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,o=>o.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,o])=>{const u=a?`${a}.${l}`:l;return o!==null&&typeof o=="object"&&!Array.isArray(o)?jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-muted-foreground font-semibold",children:u}),jsxRuntimeExports.jsx("div",{className:"pl-4",children:renderEntries(o,u)})]},u):jsxRuntimeExports.jsxs("div",{className:"flex gap-2 py-0.5",children:[jsxRuntimeExports.jsxs("span",{className:"text-muted-foreground",children:[u,":"]}),jsxRuntimeExports.jsx("span",{children:typeof o=="string"?o:JSON.stringify(o)})]},u)})}function getServerUrl(){return window.location.origin}function AppRoutes({transport:t,apps:a}){return jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(AppLauncher,{transport:t,apps:a})}),jsxRuntimeExports.jsx(Route,{path:"/apps/:appId",element:jsxRuntimeExports.jsx(AppView,{transport:t,apps:a})})]})}function AppLauncher({transport:t,apps:a}){const l=useNavigate(),o=u=>{l(`/apps/${u}`)};return jsxRuntimeExports.jsxs("div",{className:"absolute inset-0 flex flex-col overflow-y-auto",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:a,transport:t,onOpenApp:o})]})}function AppView({transport:t,apps:a}){const{appId:l}=useParams(),o=useNavigate(),u=()=>{o("/")},c=a.find(d=>d.id===l);return jsxRuntimeExports.jsxs("div",{className:"absolute inset-0 flex flex-col overflow-hidden",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:u,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:[(c==null?void 0:c.emoji)&&jsxRuntimeExports.jsx("span",{className:"mr-1.5",children:c.emoji}),(c==null?void 0:c.name)??l]})}),jsxRuntimeExports.jsx("div",{className:"w-[60px]"})]}),l&&jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-hidden",children:jsxRuntimeExports.jsx(ClappRenderer,{clappId:l,transport:t})})]})}function App(){const t=reactExports.useRef(void 0);t.current||(t.current=new ClappTransport({serverUrl:getServerUrl(),context:{platform:"web"}}));const a=t.current,[l,o]=reactExports.useState([]);return reactExports.useEffect(()=>{a.connect();const u=a.onApps(c=>{o(c)});return a.fetchApps().then(o).catch(()=>{}),()=>{u(),a.disconnect()}},[a]),jsxRuntimeExports.jsx("div",{className:"relative h-screen overflow-hidden bg-background",children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppRoutes,{transport:a,apps:l})})})}clientExports.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));
|