@nicmeriano/spool-shell 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-Crk4L_ZU.css +1 -0
- package/dist/assets/index-L9lTqPqC.js +132 -0
- package/dist/index.html +16 -0
- package/package.json +56 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
var U2=Object.defineProperty;var q2=(t,l,r)=>l in t?U2(t,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[l]=r;var Je=(t,l,r)=>q2(t,typeof l!="symbol"?l+"":l,r);function I2(t,l){for(var r=0;r<l.length;r++){const a=l[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const u=Object.getOwnPropertyDescriptor(a,s);u&&Object.defineProperty(t,s,u.get?u:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(s){if(s.ep)return;s.ep=!0;const u=r(s);fetch(s.href,u)}})();function Is(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wf={exports:{}},Ea={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var h1;function V2(){if(h1)return Ea;h1=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(a,s,u){var c=null;if(u!==void 0&&(c=""+u),s.key!==void 0&&(c=""+s.key),"key"in s){u={};for(var d in s)d!=="key"&&(u[d]=s[d])}else u=s;return s=u.ref,{$$typeof:t,type:a,key:c,ref:s!==void 0?s:null,props:u}}return Ea.Fragment=l,Ea.jsx=r,Ea.jsxs=r,Ea}var p1;function Y2(){return p1||(p1=1,wf.exports=V2()),wf.exports}var w=Y2(),kf={exports:{}},ke={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var m1;function G2(){if(m1)return ke;m1=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=x&&O[x]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,R={};function E(O,Q,A){this.props=O,this.context=Q,this.refs=R,this.updater=A||S}E.prototype.isReactComponent={},E.prototype.setState=function(O,Q){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Q,"setState")},E.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function _(){}_.prototype=E.prototype;function M(O,Q,A){this.props=O,this.context=Q,this.refs=R,this.updater=A||S}var D=M.prototype=new _;D.constructor=M,T(D,E.prototype),D.isPureReactComponent=!0;var I=Array.isArray;function N(){}var H={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function Z(O,Q,A){var se=A.ref;return{$$typeof:t,type:O,key:Q,ref:se!==void 0?se:null,props:A}}function U(O,Q){return Z(O.type,Q,O.props)}function re(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function V(O){var Q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(A){return Q[A]})}var ue=/\/+/g;function ne(O,Q){return typeof O=="object"&&O!==null&&O.key!=null?V(""+O.key):Q.toString(36)}function ee(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(N,N):(O.status="pending",O.then(function(Q){O.status==="pending"&&(O.status="fulfilled",O.value=Q)},function(Q){O.status==="pending"&&(O.status="rejected",O.reason=Q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function B(O,Q,A,se,me){var pe=typeof O;(pe==="undefined"||pe==="boolean")&&(O=null);var ae=!1;if(O===null)ae=!0;else switch(pe){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(O.$$typeof){case t:case l:ae=!0;break;case g:return ae=O._init,B(ae(O._payload),Q,A,se,me)}}if(ae)return me=me(O),ae=se===""?"."+ne(O,0):se,I(me)?(A="",ae!=null&&(A=ae.replace(ue,"$&/")+"/"),B(me,Q,A,"",function(at){return at})):me!=null&&(re(me)&&(me=U(me,A+(me.key==null||O&&O.key===me.key?"":(""+me.key).replace(ue,"$&/")+"/")+ae)),Q.push(me)),1;ae=0;var Me=se===""?".":se+":";if(I(O))for(var ze=0;ze<O.length;ze++)se=O[ze],pe=Me+ne(se,ze),ae+=B(se,Q,A,pe,me);else if(ze=b(O),typeof ze=="function")for(O=ze.call(O),ze=0;!(se=O.next()).done;)se=se.value,pe=Me+ne(se,ze++),ae+=B(se,Q,A,pe,me);else if(pe==="object"){if(typeof O.then=="function")return B(ee(O),Q,A,se,me);throw Q=String(O),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ae}function X(O,Q,A){if(O==null)return O;var se=[],me=0;return B(O,se,"","",function(pe){return Q.call(A,pe,me++)}),se}function te(O){if(O._status===-1){var Q=O._result;Q=Q(),Q.then(function(A){(O._status===0||O._status===-1)&&(O._status=1,O._result=A)},function(A){(O._status===0||O._status===-1)&&(O._status=2,O._result=A)}),O._status===-1&&(O._status=0,O._result=Q)}if(O._status===1)return O._result.default;throw O._result}var oe=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},z={map:X,forEach:function(O,Q,A){X(O,function(){Q.apply(this,arguments)},A)},count:function(O){var Q=0;return X(O,function(){Q++}),Q},toArray:function(O){return X(O,function(Q){return Q})||[]},only:function(O){if(!re(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return ke.Activity=y,ke.Children=z,ke.Component=E,ke.Fragment=r,ke.Profiler=s,ke.PureComponent=M,ke.StrictMode=a,ke.Suspense=p,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ke.__COMPILER_RUNTIME={__proto__:null,c:function(O){return H.H.useMemoCache(O)}},ke.cache=function(O){return function(){return O.apply(null,arguments)}},ke.cacheSignal=function(){return null},ke.cloneElement=function(O,Q,A){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var se=T({},O.props),me=O.key;if(Q!=null)for(pe in Q.key!==void 0&&(me=""+Q.key),Q)!F.call(Q,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&Q.ref===void 0||(se[pe]=Q[pe]);var pe=arguments.length-2;if(pe===1)se.children=A;else if(1<pe){for(var ae=Array(pe),Me=0;Me<pe;Me++)ae[Me]=arguments[Me+2];se.children=ae}return Z(O.type,me,se)},ke.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:u,_context:O},O},ke.createElement=function(O,Q,A){var se,me={},pe=null;if(Q!=null)for(se in Q.key!==void 0&&(pe=""+Q.key),Q)F.call(Q,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(me[se]=Q[se]);var ae=arguments.length-2;if(ae===1)me.children=A;else if(1<ae){for(var Me=Array(ae),ze=0;ze<ae;ze++)Me[ze]=arguments[ze+2];me.children=Me}if(O&&O.defaultProps)for(se in ae=O.defaultProps,ae)me[se]===void 0&&(me[se]=ae[se]);return Z(O,pe,me)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(O){return{$$typeof:d,render:O}},ke.isValidElement=re,ke.lazy=function(O){return{$$typeof:g,_payload:{_status:-1,_result:O},_init:te}},ke.memo=function(O,Q){return{$$typeof:f,type:O,compare:Q===void 0?null:Q}},ke.startTransition=function(O){var Q=H.T,A={};H.T=A;try{var se=O(),me=H.S;me!==null&&me(A,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(N,oe)}catch(pe){oe(pe)}finally{Q!==null&&A.types!==null&&(Q.types=A.types),H.T=Q}},ke.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ke.use=function(O){return H.H.use(O)},ke.useActionState=function(O,Q,A){return H.H.useActionState(O,Q,A)},ke.useCallback=function(O,Q){return H.H.useCallback(O,Q)},ke.useContext=function(O){return H.H.useContext(O)},ke.useDebugValue=function(){},ke.useDeferredValue=function(O,Q){return H.H.useDeferredValue(O,Q)},ke.useEffect=function(O,Q){return H.H.useEffect(O,Q)},ke.useEffectEvent=function(O){return H.H.useEffectEvent(O)},ke.useId=function(){return H.H.useId()},ke.useImperativeHandle=function(O,Q,A){return H.H.useImperativeHandle(O,Q,A)},ke.useInsertionEffect=function(O,Q){return H.H.useInsertionEffect(O,Q)},ke.useLayoutEffect=function(O,Q){return H.H.useLayoutEffect(O,Q)},ke.useMemo=function(O,Q){return H.H.useMemo(O,Q)},ke.useOptimistic=function(O,Q){return H.H.useOptimistic(O,Q)},ke.useReducer=function(O,Q,A){return H.H.useReducer(O,Q,A)},ke.useRef=function(O){return H.H.useRef(O)},ke.useState=function(O){return H.H.useState(O)},ke.useSyncExternalStore=function(O,Q,A){return H.H.useSyncExternalStore(O,Q,A)},ke.useTransition=function(){return H.H.useTransition()},ke.version="19.2.4",ke}var g1;function Rd(){return g1||(g1=1,kf.exports=G2()),kf.exports}var k=Rd();const Py=Is(k),Vs=I2({__proto__:null,default:Py},[k]);var Cf={exports:{}},Ta={},Ef={exports:{}},Tf={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var y1;function P2(){return y1||(y1=1,(function(t){function l(B,X){var te=B.length;B.push(X);e:for(;0<te;){var oe=te-1>>>1,z=B[oe];if(0<s(z,X))B[oe]=X,B[te]=z,te=oe;else break e}}function r(B){return B.length===0?null:B[0]}function a(B){if(B.length===0)return null;var X=B[0],te=B.pop();if(te!==X){B[0]=te;e:for(var oe=0,z=B.length,O=z>>>1;oe<O;){var Q=2*(oe+1)-1,A=B[Q],se=Q+1,me=B[se];if(0>s(A,te))se<z&&0>s(me,A)?(B[oe]=me,B[se]=te,oe=se):(B[oe]=A,B[Q]=te,oe=Q);else if(se<z&&0>s(me,te))B[oe]=me,B[se]=te,oe=se;else break e}}return X}function s(B,X){var te=B.sortIndex-X.sortIndex;return te!==0?te:B.id-X.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var p=[],f=[],g=1,y=null,x=3,b=!1,S=!1,T=!1,R=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function D(B){for(var X=r(f);X!==null;){if(X.callback===null)a(f);else if(X.startTime<=B)a(f),X.sortIndex=X.expirationTime,l(p,X);else break;X=r(f)}}function I(B){if(T=!1,D(B),!S)if(r(p)!==null)S=!0,N||(N=!0,V());else{var X=r(f);X!==null&&ee(I,X.startTime-B)}}var N=!1,H=-1,F=5,Z=-1;function U(){return R?!0:!(t.unstable_now()-Z<F)}function re(){if(R=!1,N){var B=t.unstable_now();Z=B;var X=!0;try{e:{S=!1,T&&(T=!1,_(H),H=-1),b=!0;var te=x;try{t:{for(D(B),y=r(p);y!==null&&!(y.expirationTime>B&&U());){var oe=y.callback;if(typeof oe=="function"){y.callback=null,x=y.priorityLevel;var z=oe(y.expirationTime<=B);if(B=t.unstable_now(),typeof z=="function"){y.callback=z,D(B),X=!0;break t}y===r(p)&&a(p),D(B)}else a(p);y=r(p)}if(y!==null)X=!0;else{var O=r(f);O!==null&&ee(I,O.startTime-B),X=!1}}break e}finally{y=null,x=te,b=!1}X=void 0}}finally{X?V():N=!1}}}var V;if(typeof M=="function")V=function(){M(re)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,ne=ue.port2;ue.port1.onmessage=re,V=function(){ne.postMessage(null)}}else V=function(){E(re,0)};function ee(B,X){H=E(function(){B(t.unstable_now())},X)}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(B){B.callback=null},t.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(B){switch(x){case 1:case 2:case 3:var X=3;break;default:X=x}var te=x;x=X;try{return B()}finally{x=te}},t.unstable_requestPaint=function(){R=!0},t.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var te=x;x=B;try{return X()}finally{x=te}},t.unstable_scheduleCallback=function(B,X,te){var oe=t.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?oe+te:oe):te=oe,B){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=te+z,B={id:g++,callback:X,priorityLevel:B,startTime:te,expirationTime:z,sortIndex:-1},te>oe?(B.sortIndex=te,l(f,B),r(p)===null&&B===r(f)&&(T?(_(H),H=-1):T=!0,ee(I,te-oe))):(B.sortIndex=z,l(p,B),S||b||(S=!0,N||(N=!0,V()))),B},t.unstable_shouldYield=U,t.unstable_wrapCallback=function(B){var X=x;return function(){var te=x;x=X;try{return B.apply(this,arguments)}finally{x=te}}}})(Tf)),Tf}var x1;function X2(){return x1||(x1=1,Ef.exports=P2()),Ef.exports}var Af={exports:{}},Dt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var b1;function Q2(){if(b1)return Dt;b1=1;var t=Rd();function l(p){var f="https://react.dev/errors/"+p;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(p,f,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:p,containerInfo:f,implementation:g}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,f){if(p==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Dt.createPortal=function(p,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(l(299));return u(p,f,null,g)},Dt.flushSync=function(p){var f=c.T,g=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=f,a.p=g,a.d.f()}},Dt.preconnect=function(p,f){typeof p=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,a.d.C(p,f))},Dt.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},Dt.preinit=function(p,f){if(typeof p=="string"&&f&&typeof f.as=="string"){var g=f.as,y=d(g,f.crossOrigin),x=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;g==="style"?a.d.S(p,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:b}):g==="script"&&a.d.X(p,{crossOrigin:y,integrity:x,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Dt.preinitModule=function(p,f){if(typeof p=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var g=d(f.as,f.crossOrigin);a.d.M(p,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&a.d.M(p)},Dt.preload=function(p,f){if(typeof p=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var g=f.as,y=d(g,f.crossOrigin);a.d.L(p,g,{crossOrigin:y,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Dt.preloadModule=function(p,f){if(typeof p=="string")if(f){var g=d(f.as,f.crossOrigin);a.d.m(p,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else a.d.m(p)},Dt.requestFormReset=function(p){a.d.r(p)},Dt.unstable_batchedUpdates=function(p,f){return p(f)},Dt.useFormState=function(p,f,g){return c.H.useFormState(p,f,g)},Dt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Dt.version="19.2.4",Dt}var v1;function Xy(){if(v1)return Af.exports;v1=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(l){console.error(l)}}return t(),Af.exports=Q2(),Af.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var S1;function Z2(){if(S1)return Ta;S1=1;var t=X2(),l=Rd(),r=Xy();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(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 d(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(u(e)!==e)throw Error(a(188))}function f(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(a(188));return n!==e?null:e}for(var i=e,o=n;;){var h=i.return;if(h===null)break;var m=h.alternate;if(m===null){if(o=h.return,o!==null){i=o;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===i)return p(h),e;if(m===o)return p(h),n;m=m.sibling}throw Error(a(188))}if(i.return!==o.return)i=h,o=m;else{for(var v=!1,C=h.child;C;){if(C===i){v=!0,i=h,o=m;break}if(C===o){v=!0,o=h,i=m;break}C=C.sibling}if(!v){for(C=m.child;C;){if(C===i){v=!0,i=m,o=h;break}if(C===o){v=!0,o=m,i=h;break}C=C.sibling}if(!v)throw Error(a(189))}}if(i.alternate!==o)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?e:n}function g(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=g(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),M=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function V(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Symbol.for("react.client.reference");function ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case E:return"Profiler";case R:return"StrictMode";case I:return"Suspense";case N:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case M:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case D:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return n=e.displayName||null,n!==null?n:ne(e.type)||"Memo";case F:n=e._payload,e=e._init;try{return ne(e(n))}catch{}}return null}var ee=Array.isArray,B=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},oe=[],z=-1;function O(e){return{current:e}}function Q(e){0>z||(e.current=oe[z],oe[z]=null,z--)}function A(e,n){z++,oe[z]=e.current,e.current=n}var se=O(null),me=O(null),pe=O(null),ae=O(null);function Me(e,n){switch(A(pe,n),A(me,e),A(se,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Lg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Lg(n),e=Bg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(se),A(se,e)}function ze(){Q(se),Q(me),Q(pe)}function at(e){e.memoizedState!==null&&A(ae,e);var n=se.current,i=Bg(n,e.type);n!==i&&(A(me,e),A(se,i))}function Ct(e){me.current===e&&(Q(se),Q(me)),ae.current===e&&(Q(ae),Sa._currentValue=te)}var Wt,It;function jt(e){if(Wt===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Wt=n&&n[1]||"",It=-1<i.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Wt+e+It}var pn=!1;function Vt(e,n){if(!e||pn)return"";pn=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch($){var P=$}Reflect.construct(e,[],ie)}else{try{ie.call()}catch($){P=$}e.call(ie.prototype)}}else{try{throw Error()}catch($){P=$}(ie=e())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch($){if($&&P&&typeof $.stack=="string")return[$.stack,P.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=o.DetermineComponentFrameRoot(),v=m[0],C=m[1];if(v&&C){var j=v.split(`
|
|
44
|
+
`),G=C.split(`
|
|
45
|
+
`);for(h=o=0;o<j.length&&!j[o].includes("DetermineComponentFrameRoot");)o++;for(;h<G.length&&!G[h].includes("DetermineComponentFrameRoot");)h++;if(o===j.length||h===G.length)for(o=j.length-1,h=G.length-1;1<=o&&0<=h&&j[o]!==G[h];)h--;for(;1<=o&&0<=h;o--,h--)if(j[o]!==G[h]){if(o!==1||h!==1)do if(o--,h--,0>h||j[o]!==G[h]){var J=`
|
|
46
|
+
`+j[o].replace(" at new "," at ");return e.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",e.displayName)),J}while(1<=o&&0<=h);break}}}finally{pn=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?jt(i):""}function An(e,n){switch(e.tag){case 26:case 27:case 5:return jt(e.type);case 16:return jt("Lazy");case 13:return e.child!==n&&n!==null?jt("Suspense Fallback"):jt("Suspense");case 19:return jt("SuspenseList");case 0:case 15:return Vt(e.type,!1);case 11:return Vt(e.type.render,!1);case 1:return Vt(e.type,!0);case 31:return jt("Activity");default:return""}}function Rn(e){try{var n="",i=null;do n+=An(e,i),i=e,e=e.return;while(e);return n}catch(o){return`
|
|
47
|
+
Error generating stack: `+o.message+`
|
|
48
|
+
`+o.stack}}var Et=Object.prototype.hasOwnProperty,Ln=t.unstable_scheduleCallback,Qn=t.unstable_cancelCallback,tr=t.unstable_shouldYield,nr=t.unstable_requestPaint,bt=t.unstable_now,lr=t.unstable_getCurrentPriorityLevel,W=t.unstable_ImmediatePriority,K=t.unstable_UserBlockingPriority,fe=t.unstable_NormalPriority,he=t.unstable_LowPriority,be=t.unstable_IdlePriority,vt=t.log,tt=t.unstable_setDisableYieldValue,ot=null,Fe=null;function dt(e){if(typeof vt=="function"&&tt(e),Fe&&typeof Fe.setStrictMode=="function")try{Fe.setStrictMode(ot,e)}catch{}}var He=Math.clz32?Math.clz32:su,zn=Math.log,en=Math.LN2;function su(e){return e>>>=0,e===0?32:31-(zn(e)/en|0)|0}var zr=256,Mr=262144,Nr=4194304;function Zn(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 _r(e,n,i){var o=e.pendingLanes;if(o===0)return 0;var h=0,m=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var C=o&134217727;return C!==0?(o=C&~m,o!==0?h=Zn(o):(v&=C,v!==0?h=Zn(v):i||(i=C&~e,i!==0&&(h=Zn(i))))):(C=o&~m,C!==0?h=Zn(C):v!==0?h=Zn(v):i||(i=o&~e,i!==0&&(h=Zn(i)))),h===0?0:n!==0&&n!==h&&(n&m)===0&&(m=h&-h,i=n&-n,m>=i||m===32&&(i&4194048)!==0)?n:h}function de(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ee(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 Ue(){var e=Nr;return Nr<<=1,(Nr&62914560)===0&&(Nr=4194304),e}function St(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function Tt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uu(e,n,i,o,h,m){var v=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var C=e.entanglements,j=e.expirationTimes,G=e.hiddenUpdates;for(i=v&~i;0<i;){var J=31-He(i),ie=1<<J;C[J]=0,j[J]=-1;var P=G[J];if(P!==null)for(G[J]=null,J=0;J<P.length;J++){var $=P[J];$!==null&&($.lane&=-536870913)}i&=~ie}o!==0&&xh(e,o,0),m!==0&&h===0&&e.tag!==0&&(e.suspendedLanes|=m&~(v&~n))}function xh(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-He(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|i&261930}function bh(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var o=31-He(i),h=1<<o;h&n|e[o]&n&&(e[o]|=n),i&=~h}}function vh(e,n){var i=n&-n;return i=(i&42)!==0?1:cu(i),(i&(e.suspendedLanes|n))!==0?0:i}function cu(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 fu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sh(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:a1(e.type))}function wh(e,n){var i=X.p;try{return X.p=e,n()}finally{X.p=i}}var Sl=Math.random().toString(36).slice(2),zt="__reactFiber$"+Sl,Yt="__reactProps$"+Sl,Or="__reactContainer$"+Sl,du="__reactEvents$"+Sl,R0="__reactListeners$"+Sl,z0="__reactHandles$"+Sl,kh="__reactResources$"+Sl,Li="__reactMarker$"+Sl;function hu(e){delete e[zt],delete e[Yt],delete e[du],delete e[R0],delete e[z0]}function jr(e){var n=e[zt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[Or]||i[zt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Gg(e);e!==null;){if(i=e[zt])return i;e=Gg(e)}return n}e=i,i=e.parentNode}return null}function Dr(e){if(e=e[zt]||e[Or]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Bi(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function Lr(e){var n=e[kh];return n||(n=e[kh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function At(e){e[Li]=!0}var Ch=new Set,Eh={};function rr(e,n){Br(e,n),Br(e+"Capture",n)}function Br(e,n){for(Eh[e]=n,e=0;e<n.length;e++)Ch.add(n[e])}var M0=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]*$"),Th={},Ah={};function N0(e){return Et.call(Ah,e)?!0:Et.call(Th,e)?!1:M0.test(e)?Ah[e]=!0:(Th[e]=!0,!1)}function to(e,n,i){if(N0(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function no(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function $n(e,n,i,o){if(o===null)e.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+o)}}function mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function _0(e,n,i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,m=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return h.call(this)},set:function(v){i=""+v,m.call(this,v)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(v){i=""+v},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function pu(e){if(!e._valueTracker){var n=Rh(e)?"checked":"value";e._valueTracker=_0(e,n,""+e[n])}}function zh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return e&&(o=Rh(e)?e.checked?"true":"false":e.value),e=o,e!==i?(n.setValue(e),!0):!1}function lo(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 O0=/[\n"\\]/g;function gn(e){return e.replace(O0,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function mu(e,n,i,o,h,m,v,C){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),n!=null?v==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+mn(n)):e.value!==""+mn(n)&&(e.value=""+mn(n)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),n!=null?gu(e,v,mn(n)):i!=null?gu(e,v,mn(i)):o!=null&&e.removeAttribute("value"),h==null&&m!=null&&(e.defaultChecked=!!m),h!=null&&(e.checked=h&&typeof h!="function"&&typeof h!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?e.name=""+mn(C):e.removeAttribute("name")}function Mh(e,n,i,o,h,m,v,C){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),n!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){pu(e);return}i=i!=null?""+mn(i):"",n=n!=null?""+mn(n):i,C||n===e.value||(e.value=n),e.defaultValue=n}o=o??h,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=C?e.checked:!!o,e.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),pu(e)}function gu(e,n,i){n==="number"&&lo(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Hr(e,n,i,o){if(e=e.options,n){n={};for(var h=0;h<i.length;h++)n["$"+i[h]]=!0;for(i=0;i<e.length;i++)h=n.hasOwnProperty("$"+e[i].value),e[i].selected!==h&&(e[i].selected=h),h&&o&&(e[i].defaultSelected=!0)}else{for(i=""+mn(i),n=null,h=0;h<e.length;h++){if(e[h].value===i){e[h].selected=!0,o&&(e[h].defaultSelected=!0);return}n!==null||e[h].disabled||(n=e[h])}n!==null&&(n.selected=!0)}}function Nh(e,n,i){if(n!=null&&(n=""+mn(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+mn(i):""}function _h(e,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(a(92));if(ee(o)){if(1<o.length)throw Error(a(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=mn(n),e.defaultValue=i,o=e.textContent,o===i&&o!==""&&o!==null&&(e.value=o),pu(e)}function Ur(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var j0=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 Oh(e,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,i):typeof i!="number"||i===0||j0.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function jh(e,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var h in n)o=n[h],n.hasOwnProperty(h)&&i[h]!==o&&Oh(e,h,o)}else for(var m in n)n.hasOwnProperty(m)&&Oh(e,m,n[m])}function yu(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 D0=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"]]),L0=/^[\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 ro(e){return L0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fn(){}var xu=null;function bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qr=null,Ir=null;function Dh(e){var n=Dr(e);if(n&&(e=n.stateNode)){var i=e[Yt]||null;e:switch(e=n.stateNode,n.type){case"input":if(mu(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+gn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==e&&o.form===e.form){var h=o[Yt]||null;if(!h)throw Error(a(90));mu(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===e.form&&zh(o)}break e;case"textarea":Nh(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Hr(e,!!i.multiple,n,!1)}}}var vu=!1;function Lh(e,n,i){if(vu)return e(n,i);vu=!0;try{var o=e(n);return o}finally{if(vu=!1,(qr!==null||Ir!==null)&&(Xo(),qr&&(n=qr,e=Ir,Ir=qr=null,Dh(n),e)))for(n=0;n<e.length;n++)Dh(e[n])}}function Hi(e,n){var i=e.stateNode;if(i===null)return null;var o=i[Yt]||null;if(o===null)return null;i=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Su=!1;if(Kn)try{var Ui={};Object.defineProperty(Ui,"passive",{get:function(){Su=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{Su=!1}var wl=null,wu=null,io=null;function Bh(){if(io)return io;var e,n=wu,i=n.length,o,h="value"in wl?wl.value:wl.textContent,m=h.length;for(e=0;e<i&&n[e]===h[e];e++);var v=i-e;for(o=1;o<=v&&n[i-o]===h[m-o];o++);return io=h.slice(e,1<o?1-o:void 0)}function ao(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 oo(){return!0}function Hh(){return!1}function Gt(e){function n(i,o,h,m,v){this._reactName=i,this._targetInst=h,this.type=o,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(i=e[C],this[C]=i?i(m):m[C]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?oo:Hh,this.isPropagationStopped=Hh,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=oo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=oo)},persist:function(){},isPersistent:oo}),n}var ir={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},so=Gt(ir),qi=y({},ir,{view:0,detail:0}),B0=Gt(qi),ku,Cu,Ii,uo=y({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tu,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!==Ii&&(Ii&&e.type==="mousemove"?(ku=e.screenX-Ii.screenX,Cu=e.screenY-Ii.screenY):Cu=ku=0,Ii=e),ku)},movementY:function(e){return"movementY"in e?e.movementY:Cu}}),Uh=Gt(uo),H0=y({},uo,{dataTransfer:0}),U0=Gt(H0),q0=y({},qi,{relatedTarget:0}),Eu=Gt(q0),I0=y({},ir,{animationName:0,elapsedTime:0,pseudoElement:0}),V0=Gt(I0),Y0=y({},ir,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),G0=Gt(Y0),P0=y({},ir,{data:0}),qh=Gt(P0),X0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q0={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"},Z0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $0(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Z0[e])?!!n[e]:!1}function Tu(){return $0}var F0=y({},qi,{key:function(e){if(e.key){var n=X0[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ao(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Q0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tu,charCode:function(e){return e.type==="keypress"?ao(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ao(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),K0=Gt(F0),J0=y({},uo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ih=Gt(J0),W0=y({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tu}),ev=Gt(W0),tv=y({},ir,{propertyName:0,elapsedTime:0,pseudoElement:0}),nv=Gt(tv),lv=y({},uo,{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}),rv=Gt(lv),iv=y({},ir,{newState:0,oldState:0}),av=Gt(iv),ov=[9,13,27,32],Au=Kn&&"CompositionEvent"in window,Vi=null;Kn&&"documentMode"in document&&(Vi=document.documentMode);var sv=Kn&&"TextEvent"in window&&!Vi,Vh=Kn&&(!Au||Vi&&8<Vi&&11>=Vi),Yh=" ",Gh=!1;function Ph(e,n){switch(e){case"keyup":return ov.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vr=!1;function uv(e,n){switch(e){case"compositionend":return Xh(n);case"keypress":return n.which!==32?null:(Gh=!0,Yh);case"textInput":return e=n.data,e===Yh&&Gh?null:e;default:return null}}function cv(e,n){if(Vr)return e==="compositionend"||!Au&&Ph(e,n)?(e=Bh(),io=wu=wl=null,Vr=!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 Vh&&n.locale!=="ko"?null:n.data;default:return null}}var fv={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 Qh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!fv[e.type]:n==="textarea"}function Zh(e,n,i,o){qr?Ir?Ir.push(o):Ir=[o]:qr=o,n=Wo(n,"onChange"),0<n.length&&(i=new so("onChange","change",null,i,o),e.push({event:i,listeners:n}))}var Yi=null,Gi=null;function dv(e){Mg(e,0)}function co(e){var n=Bi(e);if(zh(n))return e}function $h(e,n){if(e==="change")return n}var Fh=!1;if(Kn){var Ru;if(Kn){var zu="oninput"in document;if(!zu){var Kh=document.createElement("div");Kh.setAttribute("oninput","return;"),zu=typeof Kh.oninput=="function"}Ru=zu}else Ru=!1;Fh=Ru&&(!document.documentMode||9<document.documentMode)}function Jh(){Yi&&(Yi.detachEvent("onpropertychange",Wh),Gi=Yi=null)}function Wh(e){if(e.propertyName==="value"&&co(Gi)){var n=[];Zh(n,Gi,e,bu(e)),Lh(dv,n)}}function hv(e,n,i){e==="focusin"?(Jh(),Yi=n,Gi=i,Yi.attachEvent("onpropertychange",Wh)):e==="focusout"&&Jh()}function pv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return co(Gi)}function mv(e,n){if(e==="click")return co(n)}function gv(e,n){if(e==="input"||e==="change")return co(n)}function yv(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var tn=typeof Object.is=="function"?Object.is:yv;function Pi(e,n){if(tn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var h=i[o];if(!Et.call(n,h)||!tn(e[h],n[h]))return!1}return!0}function ep(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tp(e,n){var i=ep(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=n&&o>=n)return{node:i,offset:n-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ep(i)}}function np(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?np(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function lp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=lo(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=lo(e.document)}return n}function Mu(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 xv=Kn&&"documentMode"in document&&11>=document.documentMode,Yr=null,Nu=null,Xi=null,_u=!1;function rp(e,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;_u||Yr==null||Yr!==lo(o)||(o=Yr,"selectionStart"in o&&Mu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Xi&&Pi(Xi,o)||(Xi=o,o=Wo(Nu,"onSelect"),0<o.length&&(n=new so("onSelect","select",null,n,i),e.push({event:n,listeners:o}),n.target=Yr)))}function ar(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var Gr={animationend:ar("Animation","AnimationEnd"),animationiteration:ar("Animation","AnimationIteration"),animationstart:ar("Animation","AnimationStart"),transitionrun:ar("Transition","TransitionRun"),transitionstart:ar("Transition","TransitionStart"),transitioncancel:ar("Transition","TransitionCancel"),transitionend:ar("Transition","TransitionEnd")},Ou={},ip={};Kn&&(ip=document.createElement("div").style,"AnimationEvent"in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),"TransitionEvent"in window||delete Gr.transitionend.transition);function or(e){if(Ou[e])return Ou[e];if(!Gr[e])return e;var n=Gr[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in ip)return Ou[e]=n[i];return e}var ap=or("animationend"),op=or("animationiteration"),sp=or("animationstart"),bv=or("transitionrun"),vv=or("transitionstart"),Sv=or("transitioncancel"),up=or("transitionend"),cp=new Map,ju="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(" ");ju.push("scrollEnd");function Mn(e,n){cp.set(e,n),rr(n,[e])}var fo=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=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},yn=[],Pr=0,Du=0;function ho(){for(var e=Pr,n=Du=Pr=0;n<e;){var i=yn[n];yn[n++]=null;var o=yn[n];yn[n++]=null;var h=yn[n];yn[n++]=null;var m=yn[n];if(yn[n++]=null,o!==null&&h!==null){var v=o.pending;v===null?h.next=h:(h.next=v.next,v.next=h),o.pending=h}m!==0&&fp(i,h,m)}}function po(e,n,i,o){yn[Pr++]=e,yn[Pr++]=n,yn[Pr++]=i,yn[Pr++]=o,Du|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Lu(e,n,i,o){return po(e,n,i,o),mo(e)}function sr(e,n){return po(e,null,null,n),mo(e)}function fp(e,n,i){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i);for(var h=!1,m=e.return;m!==null;)m.childLanes|=i,o=m.alternate,o!==null&&(o.childLanes|=i),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(h=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,h&&n!==null&&(h=31-He(i),e=m.hiddenUpdates,o=e[h],o===null?e[h]=[n]:o.push(n),n.lane=i|536870912),m):null}function mo(e){if(50<pa)throw pa=0,Pc=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Xr={};function wv(e,n,i,o){this.tag=e,this.key=i,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,n,i,o){return new wv(e,n,i,o)}function Bu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jn(e,n){var i=e.alternate;return i===null?(i=nn(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function dp(e,n){e.flags&=65011714;var i=e.alternate;return i===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=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function go(e,n,i,o,h,m){var v=0;if(o=e,typeof e=="function")Bu(e)&&(v=1);else if(typeof e=="string")v=A2(e,i,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=nn(31,i,n,h),e.elementType=Z,e.lanes=m,e;case T:return ur(i.children,h,m,n);case R:v=8,h|=24;break;case E:return e=nn(12,i,n,h|2),e.elementType=E,e.lanes=m,e;case I:return e=nn(13,i,n,h),e.elementType=I,e.lanes=m,e;case N:return e=nn(19,i,n,h),e.elementType=N,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:v=10;break e;case _:v=9;break e;case D:v=11;break e;case H:v=14;break e;case F:v=16,o=null;break e}v=29,i=Error(a(130,e===null?"null":typeof e,"")),o=null}return n=nn(v,i,n,h),n.elementType=e,n.type=o,n.lanes=m,n}function ur(e,n,i,o){return e=nn(7,e,o,n),e.lanes=i,e}function Hu(e,n,i){return e=nn(6,e,null,n),e.lanes=i,e}function hp(e){var n=nn(18,null,null,0);return n.stateNode=e,n}function Uu(e,n,i){return n=nn(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var pp=new WeakMap;function xn(e,n){if(typeof e=="object"&&e!==null){var i=pp.get(e);return i!==void 0?i:(n={value:e,source:n,stack:Rn(n)},pp.set(e,n),n)}return{value:e,source:n,stack:Rn(n)}}var Qr=[],Zr=0,yo=null,Qi=0,bn=[],vn=0,kl=null,Bn=1,Hn="";function Wn(e,n){Qr[Zr++]=Qi,Qr[Zr++]=yo,yo=e,Qi=n}function mp(e,n,i){bn[vn++]=Bn,bn[vn++]=Hn,bn[vn++]=kl,kl=e;var o=Bn;e=Hn;var h=32-He(o)-1;o&=~(1<<h),i+=1;var m=32-He(n)+h;if(30<m){var v=h-h%5;m=(o&(1<<v)-1).toString(32),o>>=v,h-=v,Bn=1<<32-He(n)+h|i<<h|o,Hn=m+e}else Bn=1<<m|i<<h|o,Hn=e}function qu(e){e.return!==null&&(Wn(e,1),mp(e,1,0))}function Iu(e){for(;e===yo;)yo=Qr[--Zr],Qr[Zr]=null,Qi=Qr[--Zr],Qr[Zr]=null;for(;e===kl;)kl=bn[--vn],bn[vn]=null,Hn=bn[--vn],bn[vn]=null,Bn=bn[--vn],bn[vn]=null}function gp(e,n){bn[vn++]=Bn,bn[vn++]=Hn,bn[vn++]=kl,Bn=n.id,Hn=n.overflow,kl=e}var Mt=null,nt=null,Le=!1,Cl=null,Sn=!1,Vu=Error(a(519));function El(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(xn(n,e)),Vu}function yp(e){var n=e.stateNode,i=e.type,o=e.memoizedProps;switch(n[zt]=e,n[Yt]=o,i){case"dialog":_e("cancel",n),_e("close",n);break;case"iframe":case"object":case"embed":_e("load",n);break;case"video":case"audio":for(i=0;i<ga.length;i++)_e(ga[i],n);break;case"source":_e("error",n);break;case"img":case"image":case"link":_e("error",n),_e("load",n);break;case"details":_e("toggle",n);break;case"input":_e("invalid",n),Mh(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":_e("invalid",n);break;case"textarea":_e("invalid",n),_h(n,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||jg(n.textContent,i)?(o.popover!=null&&(_e("beforetoggle",n),_e("toggle",n)),o.onScroll!=null&&_e("scroll",n),o.onScrollEnd!=null&&_e("scrollend",n),o.onClick!=null&&(n.onclick=Fn),n=!0):n=!1,n||El(e,!0)}function xp(e){for(Mt=e.return;Mt;)switch(Mt.tag){case 5:case 31:case 13:Sn=!1;return;case 27:case 3:Sn=!0;return;default:Mt=Mt.return}}function $r(e){if(e!==Mt)return!1;if(!Le)return xp(e),Le=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||of(e.type,e.memoizedProps)),i=!i),i&&nt&&El(e),xp(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));nt=Yg(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));nt=Yg(e)}else n===27?(n=nt,Ul(e.type)?(e=df,df=null,nt=e):nt=n):nt=Mt?kn(e.stateNode.nextSibling):null;return!0}function cr(){nt=Mt=null,Le=!1}function Yu(){var e=Cl;return e!==null&&(Zt===null?Zt=e:Zt.push.apply(Zt,e),Cl=null),e}function Zi(e){Cl===null?Cl=[e]:Cl.push(e)}var Gu=O(null),fr=null,el=null;function Tl(e,n,i){A(Gu,n._currentValue),n._currentValue=i}function tl(e){e._currentValue=Gu.current,Q(Gu)}function Pu(e,n,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===i)break;e=e.return}}function Xu(e,n,i,o){var h=e.child;for(h!==null&&(h.return=e);h!==null;){var m=h.dependencies;if(m!==null){var v=h.child;m=m.firstContext;e:for(;m!==null;){var C=m;m=h;for(var j=0;j<n.length;j++)if(C.context===n[j]){m.lanes|=i,C=m.alternate,C!==null&&(C.lanes|=i),Pu(m.return,i,e),o||(v=null);break e}m=C.next}}else if(h.tag===18){if(v=h.return,v===null)throw Error(a(341));v.lanes|=i,m=v.alternate,m!==null&&(m.lanes|=i),Pu(v,i,e),v=null}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===e){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}}function Fr(e,n,i,o){e=null;for(var h=n,m=!1;h!==null;){if(!m){if((h.flags&524288)!==0)m=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var v=h.alternate;if(v===null)throw Error(a(387));if(v=v.memoizedProps,v!==null){var C=h.type;tn(h.pendingProps.value,v.value)||(e!==null?e.push(C):e=[C])}}else if(h===ae.current){if(v=h.alternate,v===null)throw Error(a(387));v.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(e!==null?e.push(Sa):e=[Sa])}h=h.return}e!==null&&Xu(n,e,i,o),n.flags|=262144}function xo(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function dr(e){fr=e,el=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return bp(fr,e)}function bo(e,n){return fr===null&&dr(e),bp(e,n)}function bp(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},el===null){if(e===null)throw Error(a(308));el=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else el=el.next=n;return i}var kv=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},Cv=t.unstable_scheduleCallback,Ev=t.unstable_NormalPriority,ht={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qu(){return{controller:new kv,data:new Map,refCount:0}}function $i(e){e.refCount--,e.refCount===0&&Cv(Ev,function(){e.controller.abort()})}var Fi=null,Zu=0,Kr=0,Jr=null;function Tv(e,n){if(Fi===null){var i=Fi=[];Zu=0,Kr=Kc(),Jr={status:"pending",value:void 0,then:function(o){i.push(o)}}}return Zu++,n.then(vp,vp),n}function vp(){if(--Zu===0&&Fi!==null){Jr!==null&&(Jr.status="fulfilled");var e=Fi;Fi=null,Kr=0,Jr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Av(e,n){var i=[],o={status:"pending",value:null,reason:null,then:function(h){i.push(h)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var h=0;h<i.length;h++)(0,i[h])(n)},function(h){for(o.status="rejected",o.reason=h,h=0;h<i.length;h++)(0,i[h])(void 0)}),o}var Sp=B.S;B.S=function(e,n){rg=bt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Tv(e,n),Sp!==null&&Sp(e,n)};var hr=O(null);function $u(){var e=hr.current;return e!==null?e:Ke.pooledCache}function vo(e,n){n===null?A(hr,hr.current):A(hr,n.pool)}function wp(){var e=$u();return e===null?null:{parent:ht._currentValue,pool:e}}var Wr=Error(a(460)),Fu=Error(a(474)),So=Error(a(542)),wo={then:function(){}};function kp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Cp(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(Fn,Fn),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Tp(e),e;default:if(typeof n.status=="string")n.then(Fn,Fn);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var h=n;h.status="fulfilled",h.value=o}},function(o){if(n.status==="pending"){var h=n;h.status="rejected",h.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Tp(e),e}throw mr=n,Wr}}function pr(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(mr=i,Wr):i}}var mr=null;function Ep(){if(mr===null)throw Error(a(459));var e=mr;return mr=null,e}function Tp(e){if(e===Wr||e===So)throw Error(a(483))}var ei=null,Ki=0;function ko(e){var n=Ki;return Ki+=1,ei===null&&(ei=[]),Cp(ei,e,n)}function Ji(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Co(e,n){throw n.$$typeof===x?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Ap(e){function n(q,L){if(e){var Y=q.deletions;Y===null?(q.deletions=[L],q.flags|=16):Y.push(L)}}function i(q,L){if(!e)return null;for(;L!==null;)n(q,L),L=L.sibling;return null}function o(q){for(var L=new Map;q!==null;)q.key!==null?L.set(q.key,q):L.set(q.index,q),q=q.sibling;return L}function h(q,L){return q=Jn(q,L),q.index=0,q.sibling=null,q}function m(q,L,Y){return q.index=Y,e?(Y=q.alternate,Y!==null?(Y=Y.index,Y<L?(q.flags|=67108866,L):Y):(q.flags|=67108866,L)):(q.flags|=1048576,L)}function v(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function C(q,L,Y,le){return L===null||L.tag!==6?(L=Hu(Y,q.mode,le),L.return=q,L):(L=h(L,Y),L.return=q,L)}function j(q,L,Y,le){var ve=Y.type;return ve===T?J(q,L,Y.props.children,le,Y.key):L!==null&&(L.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===F&&pr(ve)===L.type)?(L=h(L,Y.props),Ji(L,Y),L.return=q,L):(L=go(Y.type,Y.key,Y.props,null,q.mode,le),Ji(L,Y),L.return=q,L)}function G(q,L,Y,le){return L===null||L.tag!==4||L.stateNode.containerInfo!==Y.containerInfo||L.stateNode.implementation!==Y.implementation?(L=Uu(Y,q.mode,le),L.return=q,L):(L=h(L,Y.children||[]),L.return=q,L)}function J(q,L,Y,le,ve){return L===null||L.tag!==7?(L=ur(Y,q.mode,le,ve),L.return=q,L):(L=h(L,Y),L.return=q,L)}function ie(q,L,Y){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Hu(""+L,q.mode,Y),L.return=q,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case b:return Y=go(L.type,L.key,L.props,null,q.mode,Y),Ji(Y,L),Y.return=q,Y;case S:return L=Uu(L,q.mode,Y),L.return=q,L;case F:return L=pr(L),ie(q,L,Y)}if(ee(L)||V(L))return L=ur(L,q.mode,Y,null),L.return=q,L;if(typeof L.then=="function")return ie(q,ko(L),Y);if(L.$$typeof===M)return ie(q,bo(q,L),Y);Co(q,L)}return null}function P(q,L,Y,le){var ve=L!==null?L.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return ve!==null?null:C(q,L,""+Y,le);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:return Y.key===ve?j(q,L,Y,le):null;case S:return Y.key===ve?G(q,L,Y,le):null;case F:return Y=pr(Y),P(q,L,Y,le)}if(ee(Y)||V(Y))return ve!==null?null:J(q,L,Y,le,null);if(typeof Y.then=="function")return P(q,L,ko(Y),le);if(Y.$$typeof===M)return P(q,L,bo(q,Y),le);Co(q,Y)}return null}function $(q,L,Y,le,ve){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return q=q.get(Y)||null,C(L,q,""+le,ve);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case b:return q=q.get(le.key===null?Y:le.key)||null,j(L,q,le,ve);case S:return q=q.get(le.key===null?Y:le.key)||null,G(L,q,le,ve);case F:return le=pr(le),$(q,L,Y,le,ve)}if(ee(le)||V(le))return q=q.get(Y)||null,J(L,q,le,ve,null);if(typeof le.then=="function")return $(q,L,Y,ko(le),ve);if(le.$$typeof===M)return $(q,L,Y,bo(L,le),ve);Co(L,le)}return null}function ge(q,L,Y,le){for(var ve=null,qe=null,xe=L,Te=L=0,De=null;xe!==null&&Te<Y.length;Te++){xe.index>Te?(De=xe,xe=null):De=xe.sibling;var Ie=P(q,xe,Y[Te],le);if(Ie===null){xe===null&&(xe=De);break}e&&xe&&Ie.alternate===null&&n(q,xe),L=m(Ie,L,Te),qe===null?ve=Ie:qe.sibling=Ie,qe=Ie,xe=De}if(Te===Y.length)return i(q,xe),Le&&Wn(q,Te),ve;if(xe===null){for(;Te<Y.length;Te++)xe=ie(q,Y[Te],le),xe!==null&&(L=m(xe,L,Te),qe===null?ve=xe:qe.sibling=xe,qe=xe);return Le&&Wn(q,Te),ve}for(xe=o(xe);Te<Y.length;Te++)De=$(xe,q,Te,Y[Te],le),De!==null&&(e&&De.alternate!==null&&xe.delete(De.key===null?Te:De.key),L=m(De,L,Te),qe===null?ve=De:qe.sibling=De,qe=De);return e&&xe.forEach(function(Gl){return n(q,Gl)}),Le&&Wn(q,Te),ve}function we(q,L,Y,le){if(Y==null)throw Error(a(151));for(var ve=null,qe=null,xe=L,Te=L=0,De=null,Ie=Y.next();xe!==null&&!Ie.done;Te++,Ie=Y.next()){xe.index>Te?(De=xe,xe=null):De=xe.sibling;var Gl=P(q,xe,Ie.value,le);if(Gl===null){xe===null&&(xe=De);break}e&&xe&&Gl.alternate===null&&n(q,xe),L=m(Gl,L,Te),qe===null?ve=Gl:qe.sibling=Gl,qe=Gl,xe=De}if(Ie.done)return i(q,xe),Le&&Wn(q,Te),ve;if(xe===null){for(;!Ie.done;Te++,Ie=Y.next())Ie=ie(q,Ie.value,le),Ie!==null&&(L=m(Ie,L,Te),qe===null?ve=Ie:qe.sibling=Ie,qe=Ie);return Le&&Wn(q,Te),ve}for(xe=o(xe);!Ie.done;Te++,Ie=Y.next())Ie=$(xe,q,Te,Ie.value,le),Ie!==null&&(e&&Ie.alternate!==null&&xe.delete(Ie.key===null?Te:Ie.key),L=m(Ie,L,Te),qe===null?ve=Ie:qe.sibling=Ie,qe=Ie);return e&&xe.forEach(function(H2){return n(q,H2)}),Le&&Wn(q,Te),ve}function $e(q,L,Y,le){if(typeof Y=="object"&&Y!==null&&Y.type===T&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:e:{for(var ve=Y.key;L!==null;){if(L.key===ve){if(ve=Y.type,ve===T){if(L.tag===7){i(q,L.sibling),le=h(L,Y.props.children),le.return=q,q=le;break e}}else if(L.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===F&&pr(ve)===L.type){i(q,L.sibling),le=h(L,Y.props),Ji(le,Y),le.return=q,q=le;break e}i(q,L);break}else n(q,L);L=L.sibling}Y.type===T?(le=ur(Y.props.children,q.mode,le,Y.key),le.return=q,q=le):(le=go(Y.type,Y.key,Y.props,null,q.mode,le),Ji(le,Y),le.return=q,q=le)}return v(q);case S:e:{for(ve=Y.key;L!==null;){if(L.key===ve)if(L.tag===4&&L.stateNode.containerInfo===Y.containerInfo&&L.stateNode.implementation===Y.implementation){i(q,L.sibling),le=h(L,Y.children||[]),le.return=q,q=le;break e}else{i(q,L);break}else n(q,L);L=L.sibling}le=Uu(Y,q.mode,le),le.return=q,q=le}return v(q);case F:return Y=pr(Y),$e(q,L,Y,le)}if(ee(Y))return ge(q,L,Y,le);if(V(Y)){if(ve=V(Y),typeof ve!="function")throw Error(a(150));return Y=ve.call(Y),we(q,L,Y,le)}if(typeof Y.then=="function")return $e(q,L,ko(Y),le);if(Y.$$typeof===M)return $e(q,L,bo(q,Y),le);Co(q,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,L!==null&&L.tag===6?(i(q,L.sibling),le=h(L,Y),le.return=q,q=le):(i(q,L),le=Hu(Y,q.mode,le),le.return=q,q=le),v(q)):i(q,L)}return function(q,L,Y,le){try{Ki=0;var ve=$e(q,L,Y,le);return ei=null,ve}catch(xe){if(xe===Wr||xe===So)throw xe;var qe=nn(29,xe,null,q.mode);return qe.lanes=le,qe.return=q,qe}finally{}}}var gr=Ap(!0),Rp=Ap(!1),Al=!1;function Ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ju(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 Rl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function zl(e,n,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ve&2)!==0){var h=o.pending;return h===null?n.next=n:(n.next=h.next,h.next=n),o.pending=n,n=mo(e),fp(e,null,i),n}return po(e,o,n,i),mo(e)}function Wi(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,bh(e,i)}}function Wu(e,n){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var h=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?h=m=v:m=m.next=v,i=i.next}while(i!==null);m===null?h=m=n:m=m.next=n}else h=m=n;i={baseState:o.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:o.shared,callbacks:o.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var ec=!1;function ea(){if(ec){var e=Jr;if(e!==null)throw e}}function ta(e,n,i,o){ec=!1;var h=e.updateQueue;Al=!1;var m=h.firstBaseUpdate,v=h.lastBaseUpdate,C=h.shared.pending;if(C!==null){h.shared.pending=null;var j=C,G=j.next;j.next=null,v===null?m=G:v.next=G,v=j;var J=e.alternate;J!==null&&(J=J.updateQueue,C=J.lastBaseUpdate,C!==v&&(C===null?J.firstBaseUpdate=G:C.next=G,J.lastBaseUpdate=j))}if(m!==null){var ie=h.baseState;v=0,J=G=j=null,C=m;do{var P=C.lane&-536870913,$=P!==C.lane;if($?(je&P)===P:(o&P)===P){P!==0&&P===Kr&&(ec=!0),J!==null&&(J=J.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var ge=e,we=C;P=n;var $e=i;switch(we.tag){case 1:if(ge=we.payload,typeof ge=="function"){ie=ge.call($e,ie,P);break e}ie=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=we.payload,P=typeof ge=="function"?ge.call($e,ie,P):ge,P==null)break e;ie=y({},ie,P);break e;case 2:Al=!0}}P=C.callback,P!==null&&(e.flags|=64,$&&(e.flags|=8192),$=h.callbacks,$===null?h.callbacks=[P]:$.push(P))}else $={lane:P,tag:C.tag,payload:C.payload,callback:C.callback,next:null},J===null?(G=J=$,j=ie):J=J.next=$,v|=P;if(C=C.next,C===null){if(C=h.shared.pending,C===null)break;$=C,C=$.next,$.next=null,h.lastBaseUpdate=$,h.shared.pending=null}}while(!0);J===null&&(j=ie),h.baseState=j,h.firstBaseUpdate=G,h.lastBaseUpdate=J,m===null&&(h.shared.lanes=0),jl|=v,e.lanes=v,e.memoizedState=ie}}function zp(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function Mp(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)zp(i[e],n)}var ti=O(null),Eo=O(0);function Np(e,n){e=cl,A(Eo,e),A(ti,n),cl=e|n.baseLanes}function tc(){A(Eo,cl),A(ti,ti.current)}function nc(){cl=Eo.current,Q(ti),Q(Eo)}var ln=O(null),wn=null;function Ml(e){var n=e.alternate;A(ct,ct.current&1),A(ln,e),wn===null&&(n===null||ti.current!==null||n.memoizedState!==null)&&(wn=e)}function lc(e){A(ct,ct.current),A(ln,e),wn===null&&(wn=e)}function _p(e){e.tag===22?(A(ct,ct.current),A(ln,e),wn===null&&(wn=e)):Nl()}function Nl(){A(ct,ct.current),A(ln,ln.current)}function rn(e){Q(ln),wn===e&&(wn=null),Q(ct)}var ct=O(0);function To(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||cf(i)||ff(i)))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 nl=0,Ce=null,Qe=null,pt=null,Ao=!1,ni=!1,yr=!1,Ro=0,na=0,li=null,Rv=0;function st(){throw Error(a(321))}function rc(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!tn(e[i],n[i]))return!1;return!0}function ic(e,n,i,o,h,m){return nl=m,Ce=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,B.H=e===null||e.memoizedState===null?mm:vc,yr=!1,m=i(o,h),yr=!1,ni&&(m=jp(n,i,o,h)),Op(e),m}function Op(e){B.H=ia;var n=Qe!==null&&Qe.next!==null;if(nl=0,pt=Qe=Ce=null,Ao=!1,na=0,li=null,n)throw Error(a(300));e===null||mt||(e=e.dependencies,e!==null&&xo(e)&&(mt=!0))}function jp(e,n,i,o){Ce=e;var h=0;do{if(ni&&(li=null),na=0,ni=!1,25<=h)throw Error(a(301));if(h+=1,pt=Qe=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}B.H=gm,m=n(i,o)}while(ni);return m}function zv(){var e=B.H,n=e.useState()[0];return n=typeof n.then=="function"?la(n):n,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(Ce.flags|=1024),n}function ac(){var e=Ro!==0;return Ro=0,e}function oc(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function sc(e){if(Ao){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Ao=!1}nl=0,pt=Qe=Ce=null,ni=!1,na=Ro=0,li=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Ce.memoizedState=pt=e:pt=pt.next=e,pt}function ft(){if(Qe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var n=pt===null?Ce.memoizedState:pt.next;if(n!==null)pt=n,Qe=e;else{if(e===null)throw Ce.alternate===null?Error(a(467)):Error(a(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},pt===null?Ce.memoizedState=pt=e:pt=pt.next=e}return pt}function zo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function la(e){var n=na;return na+=1,li===null&&(li=[]),e=Cp(li,e,n),n=Ce,(pt===null?n.memoizedState:pt.next)===null&&(n=n.alternate,B.H=n===null||n.memoizedState===null?mm:vc),e}function Mo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return la(e);if(e.$$typeof===M)return Nt(e)}throw Error(a(438,String(e)))}function uc(e){var n=null,i=Ce.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=Ce.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(h){return h.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=zo(),Ce.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),o=0;o<e;o++)i[o]=U;return n.index++,i}function ll(e,n){return typeof n=="function"?n(e):n}function No(e){var n=ft();return cc(n,Qe,e)}function cc(e,n,i){var o=e.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=i;var h=e.baseQueue,m=o.pending;if(m!==null){if(h!==null){var v=h.next;h.next=m.next,m.next=v}n.baseQueue=h=m,o.pending=null}if(m=e.baseState,h===null)e.memoizedState=m;else{n=h.next;var C=v=null,j=null,G=n,J=!1;do{var ie=G.lane&-536870913;if(ie!==G.lane?(je&ie)===ie:(nl&ie)===ie){var P=G.revertLane;if(P===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),ie===Kr&&(J=!0);else if((nl&P)===P){G=G.next,P===Kr&&(J=!0);continue}else ie={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},j===null?(C=j=ie,v=m):j=j.next=ie,Ce.lanes|=P,jl|=P;ie=G.action,yr&&i(m,ie),m=G.hasEagerState?G.eagerState:i(m,ie)}else P={lane:ie,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},j===null?(C=j=P,v=m):j=j.next=P,Ce.lanes|=ie,jl|=ie;G=G.next}while(G!==null&&G!==n);if(j===null?v=m:j.next=C,!tn(m,e.memoizedState)&&(mt=!0,J&&(i=Jr,i!==null)))throw i;e.memoizedState=m,e.baseState=v,e.baseQueue=j,o.lastRenderedState=m}return h===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function fc(e){var n=ft(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=e;var o=i.dispatch,h=i.pending,m=n.memoizedState;if(h!==null){i.pending=null;var v=h=h.next;do m=e(m,v.action),v=v.next;while(v!==h);tn(m,n.memoizedState)||(mt=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),i.lastRenderedState=m}return[m,o]}function Dp(e,n,i){var o=Ce,h=ft(),m=Le;if(m){if(i===void 0)throw Error(a(407));i=i()}else i=n();var v=!tn((Qe||h).memoizedState,i);if(v&&(h.memoizedState=i,mt=!0),h=h.queue,pc(Hp.bind(null,o,h,e),[e]),h.getSnapshot!==n||v||pt!==null&&pt.memoizedState.tag&1){if(o.flags|=2048,ri(9,{destroy:void 0},Bp.bind(null,o,h,i,n),null),Ke===null)throw Error(a(349));m||(nl&127)!==0||Lp(o,n,i)}return i}function Lp(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=Ce.updateQueue,n===null?(n=zo(),Ce.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Bp(e,n,i,o){n.value=i,n.getSnapshot=o,Up(n)&&qp(e)}function Hp(e,n,i){return i(function(){Up(n)&&qp(e)})}function Up(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!tn(e,i)}catch{return!0}}function qp(e){var n=sr(e,2);n!==null&&$t(n,e,2)}function dc(e){var n=Ht();if(typeof e=="function"){var i=e;if(e=i(),yr){dt(!0);try{i()}finally{dt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},n}function Ip(e,n,i,o){return e.baseState=i,cc(e,Qe,typeof o=="function"?o:ll)}function Mv(e,n,i,o,h){if(jo(e))throw Error(a(485));if(e=n.action,e!==null){var m={payload:h,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};B.T!==null?i(!0):m.isTransition=!1,o(m),i=n.pending,i===null?(m.next=n.pending=m,Vp(n,m)):(m.next=i.next,n.pending=i.next=m)}}function Vp(e,n){var i=n.action,o=n.payload,h=e.state;if(n.isTransition){var m=B.T,v={};B.T=v;try{var C=i(h,o),j=B.S;j!==null&&j(v,C),Yp(e,n,C)}catch(G){hc(e,n,G)}finally{m!==null&&v.types!==null&&(m.types=v.types),B.T=m}}else try{m=i(h,o),Yp(e,n,m)}catch(G){hc(e,n,G)}}function Yp(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){Gp(e,n,o)},function(o){return hc(e,n,o)}):Gp(e,n,i)}function Gp(e,n,i){n.status="fulfilled",n.value=i,Pp(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Vp(e,i)))}function hc(e,n,i){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,Pp(n),n=n.next;while(n!==o)}e.action=null}function Pp(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Xp(e,n){return n}function Qp(e,n){if(Le){var i=Ke.formState;if(i!==null){e:{var o=Ce;if(Le){if(nt){t:{for(var h=nt,m=Sn;h.nodeType!==8;){if(!m){h=null;break t}if(h=kn(h.nextSibling),h===null){h=null;break t}}m=h.data,h=m==="F!"||m==="F"?h:null}if(h){nt=kn(h.nextSibling),o=h.data==="F!";break e}}El(o)}o=!1}o&&(n=i[0])}}return i=Ht(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xp,lastRenderedState:n},i.queue=o,i=dm.bind(null,Ce,o),o.dispatch=i,o=dc(!1),m=bc.bind(null,Ce,!1,o.queue),o=Ht(),h={state:n,dispatch:null,action:e,pending:null},o.queue=h,i=Mv.bind(null,Ce,h,m,i),h.dispatch=i,o.memoizedState=e,[n,i,!1]}function Zp(e){var n=ft();return $p(n,Qe,e)}function $p(e,n,i){if(n=cc(e,n,Xp)[0],e=No(ll)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=la(n)}catch(v){throw v===Wr?So:v}else o=n;n=ft();var h=n.queue,m=h.dispatch;return i!==n.memoizedState&&(Ce.flags|=2048,ri(9,{destroy:void 0},Nv.bind(null,h,i),null)),[o,m,e]}function Nv(e,n){e.action=n}function Fp(e){var n=ft(),i=Qe;if(i!==null)return $p(n,i,e);ft(),n=n.memoizedState,i=ft();var o=i.queue.dispatch;return i.memoizedState=e,[n,o,!1]}function ri(e,n,i,o){return e={tag:e,create:i,deps:o,inst:n,next:null},n=Ce.updateQueue,n===null&&(n=zo(),Ce.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,n.lastEffect=e),e}function Kp(){return ft().memoizedState}function _o(e,n,i,o){var h=Ht();Ce.flags|=e,h.memoizedState=ri(1|n,{destroy:void 0},i,o===void 0?null:o)}function Oo(e,n,i,o){var h=ft();o=o===void 0?null:o;var m=h.memoizedState.inst;Qe!==null&&o!==null&&rc(o,Qe.memoizedState.deps)?h.memoizedState=ri(n,m,i,o):(Ce.flags|=e,h.memoizedState=ri(1|n,m,i,o))}function Jp(e,n){_o(8390656,8,e,n)}function pc(e,n){Oo(2048,8,e,n)}function _v(e){Ce.flags|=4;var n=Ce.updateQueue;if(n===null)n=zo(),Ce.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Wp(e){var n=ft().memoizedState;return _v({ref:n,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function em(e,n){return Oo(4,2,e,n)}function tm(e,n){return Oo(4,4,e,n)}function nm(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function lm(e,n,i){i=i!=null?i.concat([e]):null,Oo(4,4,nm.bind(null,n,e),i)}function mc(){}function rm(e,n){var i=ft();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&rc(n,o[1])?o[0]:(i.memoizedState=[e,n],e)}function im(e,n){var i=ft();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&rc(n,o[1]))return o[0];if(o=e(),yr){dt(!0);try{e()}finally{dt(!1)}}return i.memoizedState=[o,n],o}function gc(e,n,i){return i===void 0||(nl&1073741824)!==0&&(je&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=ag(),Ce.lanes|=e,jl|=e,i)}function am(e,n,i,o){return tn(i,n)?i:ti.current!==null?(e=gc(e,i,o),tn(e,n)||(mt=!0),e):(nl&42)===0||(nl&1073741824)!==0&&(je&261930)===0?(mt=!0,e.memoizedState=i):(e=ag(),Ce.lanes|=e,jl|=e,n)}function om(e,n,i,o,h){var m=X.p;X.p=m!==0&&8>m?m:8;var v=B.T,C={};B.T=C,bc(e,!1,n,i);try{var j=h(),G=B.S;if(G!==null&&G(C,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var J=Av(j,o);ra(e,n,J,sn(e))}else ra(e,n,o,sn(e))}catch(ie){ra(e,n,{then:function(){},status:"rejected",reason:ie},sn())}finally{X.p=m,v!==null&&C.types!==null&&(v.types=C.types),B.T=v}}function Ov(){}function yc(e,n,i,o){if(e.tag!==5)throw Error(a(476));var h=sm(e).queue;om(e,h,n,te,i===null?Ov:function(){return um(e),i(o)})}function sm(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:te},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function um(e){var n=sm(e);n.next===null&&(n=e.alternate.memoizedState),ra(e,n.next.queue,{},sn())}function xc(){return Nt(Sa)}function cm(){return ft().memoizedState}function fm(){return ft().memoizedState}function jv(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=sn();e=Rl(i);var o=zl(n,e,i);o!==null&&($t(o,n,i),Wi(o,n,i)),n={cache:Qu()},e.payload=n;return}n=n.return}}function Dv(e,n,i){var o=sn();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},jo(e)?hm(n,i):(i=Lu(e,n,i,o),i!==null&&($t(i,e,o),pm(i,n,o)))}function dm(e,n,i){var o=sn();ra(e,n,i,o)}function ra(e,n,i,o){var h={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(jo(e))hm(n,h);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var v=n.lastRenderedState,C=m(v,i);if(h.hasEagerState=!0,h.eagerState=C,tn(C,v))return po(e,n,h,0),Ke===null&&ho(),!1}catch{}finally{}if(i=Lu(e,n,h,o),i!==null)return $t(i,e,o),pm(i,n,o),!0}return!1}function bc(e,n,i,o){if(o={lane:2,revertLane:Kc(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},jo(e)){if(n)throw Error(a(479))}else n=Lu(e,i,o,2),n!==null&&$t(n,e,2)}function jo(e){var n=e.alternate;return e===Ce||n!==null&&n===Ce}function hm(e,n){ni=Ao=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function pm(e,n,i){if((i&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,bh(e,i)}}var ia={readContext:Nt,use:Mo,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};ia.useEffectEvent=st;var mm={readContext:Nt,use:Mo,useCallback:function(e,n){return Ht().memoizedState=[e,n===void 0?null:n],e},useContext:Nt,useEffect:Jp,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,_o(4194308,4,nm.bind(null,n,e),i)},useLayoutEffect:function(e,n){return _o(4194308,4,e,n)},useInsertionEffect:function(e,n){_o(4,2,e,n)},useMemo:function(e,n){var i=Ht();n=n===void 0?null:n;var o=e();if(yr){dt(!0);try{e()}finally{dt(!1)}}return i.memoizedState=[o,n],o},useReducer:function(e,n,i){var o=Ht();if(i!==void 0){var h=i(n);if(yr){dt(!0);try{i(n)}finally{dt(!1)}}}else h=n;return o.memoizedState=o.baseState=h,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:h},o.queue=e,e=e.dispatch=Dv.bind(null,Ce,e),[o.memoizedState,e]},useRef:function(e){var n=Ht();return e={current:e},n.memoizedState=e},useState:function(e){e=dc(e);var n=e.queue,i=dm.bind(null,Ce,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:mc,useDeferredValue:function(e,n){var i=Ht();return gc(i,e,n)},useTransition:function(){var e=dc(!1);return e=om.bind(null,Ce,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var o=Ce,h=Ht();if(Le){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),Ke===null)throw Error(a(349));(je&127)!==0||Lp(o,n,i)}h.memoizedState=i;var m={value:i,getSnapshot:n};return h.queue=m,Jp(Hp.bind(null,o,m,e),[e]),o.flags|=2048,ri(9,{destroy:void 0},Bp.bind(null,o,m,i,n),null),i},useId:function(){var e=Ht(),n=Ke.identifierPrefix;if(Le){var i=Hn,o=Bn;i=(o&~(1<<32-He(o)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Ro++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=Rv++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:xc,useFormState:Qp,useActionState:Qp,useOptimistic:function(e){var n=Ht();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=bc.bind(null,Ce,!0,i),i.dispatch=n,[e,n]},useMemoCache:uc,useCacheRefresh:function(){return Ht().memoizedState=jv.bind(null,Ce)},useEffectEvent:function(e){var n=Ht(),i={impl:e};return n.memoizedState=i,function(){if((Ve&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},vc={readContext:Nt,use:Mo,useCallback:rm,useContext:Nt,useEffect:pc,useImperativeHandle:lm,useInsertionEffect:em,useLayoutEffect:tm,useMemo:im,useReducer:No,useRef:Kp,useState:function(){return No(ll)},useDebugValue:mc,useDeferredValue:function(e,n){var i=ft();return am(i,Qe.memoizedState,e,n)},useTransition:function(){var e=No(ll)[0],n=ft().memoizedState;return[typeof e=="boolean"?e:la(e),n]},useSyncExternalStore:Dp,useId:cm,useHostTransitionStatus:xc,useFormState:Zp,useActionState:Zp,useOptimistic:function(e,n){var i=ft();return Ip(i,Qe,e,n)},useMemoCache:uc,useCacheRefresh:fm};vc.useEffectEvent=Wp;var gm={readContext:Nt,use:Mo,useCallback:rm,useContext:Nt,useEffect:pc,useImperativeHandle:lm,useInsertionEffect:em,useLayoutEffect:tm,useMemo:im,useReducer:fc,useRef:Kp,useState:function(){return fc(ll)},useDebugValue:mc,useDeferredValue:function(e,n){var i=ft();return Qe===null?gc(i,e,n):am(i,Qe.memoizedState,e,n)},useTransition:function(){var e=fc(ll)[0],n=ft().memoizedState;return[typeof e=="boolean"?e:la(e),n]},useSyncExternalStore:Dp,useId:cm,useHostTransitionStatus:xc,useFormState:Fp,useActionState:Fp,useOptimistic:function(e,n){var i=ft();return Qe!==null?Ip(i,Qe,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:uc,useCacheRefresh:fm};gm.useEffectEvent=Wp;function Sc(e,n,i,o){n=e.memoizedState,i=i(o,n),i=i==null?n:y({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var wc={enqueueSetState:function(e,n,i){e=e._reactInternals;var o=sn(),h=Rl(o);h.payload=n,i!=null&&(h.callback=i),n=zl(e,h,o),n!==null&&($t(n,e,o),Wi(n,e,o))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var o=sn(),h=Rl(o);h.tag=1,h.payload=n,i!=null&&(h.callback=i),n=zl(e,h,o),n!==null&&($t(n,e,o),Wi(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=sn(),o=Rl(i);o.tag=2,n!=null&&(o.callback=n),n=zl(e,o,i),n!==null&&($t(n,e,i),Wi(n,e,i))}};function ym(e,n,i,o,h,m,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,m,v):n.prototype&&n.prototype.isPureReactComponent?!Pi(i,o)||!Pi(h,m):!0}function xm(e,n,i,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==e&&wc.enqueueReplaceState(n,n.state,null)}function xr(e,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(e=e.defaultProps){i===n&&(i=y({},i));for(var h in e)i[h]===void 0&&(i[h]=e[h])}return i}function bm(e){fo(e)}function vm(e){console.error(e)}function Sm(e){fo(e)}function Do(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function wm(e,n,i){try{var o=e.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function kc(e,n,i){return i=Rl(i),i.tag=3,i.payload={element:null},i.callback=function(){Do(e,n)},i}function km(e){return e=Rl(e),e.tag=3,e}function Cm(e,n,i,o){var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var m=o.value;e.payload=function(){return h(m)},e.callback=function(){wm(n,i,o)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){wm(n,i,o),typeof h!="function"&&(Dl===null?Dl=new Set([this]):Dl.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})})}function Lv(e,n,i,o,h){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&Fr(n,i,h,!0),i=ln.current,i!==null){switch(i.tag){case 31:case 13:return wn===null?Qo():i.alternate===null&&ut===0&&(ut=3),i.flags&=-257,i.flags|=65536,i.lanes=h,o===wo?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),Zc(e,o,h)),!1;case 22:return i.flags|=65536,o===wo?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),Zc(e,o,h)),!1}throw Error(a(435,i.tag))}return Zc(e,o,h),Qo(),!1}if(Le)return n=ln.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=h,o!==Vu&&(e=Error(a(422),{cause:o}),Zi(xn(e,i)))):(o!==Vu&&(n=Error(a(423),{cause:o}),Zi(xn(n,i))),e=e.current.alternate,e.flags|=65536,h&=-h,e.lanes|=h,o=xn(o,i),h=kc(e.stateNode,o,h),Wu(e,h),ut!==4&&(ut=2)),!1;var m=Error(a(520),{cause:o});if(m=xn(m,i),ha===null?ha=[m]:ha.push(m),ut!==4&&(ut=2),n===null)return!0;o=xn(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=h&-h,i.lanes|=e,e=kc(i.stateNode,o,e),Wu(i,e),!1;case 1:if(n=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Dl===null||!Dl.has(m))))return i.flags|=65536,h&=-h,i.lanes|=h,h=km(h),Cm(h,e,i,o),Wu(i,h),!1}i=i.return}while(i!==null);return!1}var Cc=Error(a(461)),mt=!1;function _t(e,n,i,o){n.child=e===null?Rp(n,null,i,o):gr(n,e.child,i,o)}function Em(e,n,i,o,h){i=i.render;var m=n.ref;if("ref"in o){var v={};for(var C in o)C!=="ref"&&(v[C]=o[C])}else v=o;return dr(n),o=ic(e,n,i,v,m,h),C=ac(),e!==null&&!mt?(oc(e,n,h),rl(e,n,h)):(Le&&C&&qu(n),n.flags|=1,_t(e,n,o,h),n.child)}function Tm(e,n,i,o,h){if(e===null){var m=i.type;return typeof m=="function"&&!Bu(m)&&m.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=m,Am(e,n,m,o,h)):(e=go(i.type,null,o,n,n.mode,h),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!_c(e,h)){var v=m.memoizedProps;if(i=i.compare,i=i!==null?i:Pi,i(v,o)&&e.ref===n.ref)return rl(e,n,h)}return n.flags|=1,e=Jn(m,o),e.ref=n.ref,e.return=n,n.child=e}function Am(e,n,i,o,h){if(e!==null){var m=e.memoizedProps;if(Pi(m,o)&&e.ref===n.ref)if(mt=!1,n.pendingProps=o=m,_c(e,h))(e.flags&131072)!==0&&(mt=!0);else return n.lanes=e.lanes,rl(e,n,h)}return Ec(e,n,i,o,h)}function Rm(e,n,i,o){var h=o.children,m=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,e!==null){for(o=n.child=e.child,h=0;o!==null;)h=h|o.lanes|o.childLanes,o=o.sibling;o=h&~m}else o=0,n.child=null;return zm(e,n,m,i,o)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&vo(n,m!==null?m.cachePool:null),m!==null?Np(n,m):tc(),_p(n);else return o=n.lanes=536870912,zm(e,n,m!==null?m.baseLanes|i:i,i,o)}else m!==null?(vo(n,m.cachePool),Np(n,m),Nl(),n.memoizedState=null):(e!==null&&vo(n,null),tc(),Nl());return _t(e,n,h,i),n.child}function aa(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function zm(e,n,i,o,h){var m=$u();return m=m===null?null:{parent:ht._currentValue,pool:m},n.memoizedState={baseLanes:i,cachePool:m},e!==null&&vo(n,null),tc(),_p(n),e!==null&&Fr(e,n,o,!0),n.childLanes=h,null}function Lo(e,n){return n=Ho({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Mm(e,n,i){return gr(n,e.child,null,i),e=Lo(n,n.pendingProps),e.flags|=2,rn(n),n.memoizedState=null,e}function Bv(e,n,i){var o=n.pendingProps,h=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Le){if(o.mode==="hidden")return e=Lo(n,o),n.lanes=536870912,aa(null,e);if(lc(n),(e=nt)?(e=Vg(e,Sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:kl!==null?{id:Bn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},i=hp(e),i.return=n,n.child=i,Mt=n,nt=null)):e=null,e===null)throw El(n);return n.lanes=536870912,null}return Lo(n,o)}var m=e.memoizedState;if(m!==null){var v=m.dehydrated;if(lc(n),h)if(n.flags&256)n.flags&=-257,n=Mm(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(mt||Fr(e,n,i,!1),h=(i&e.childLanes)!==0,mt||h){if(o=Ke,o!==null&&(v=vh(o,i),v!==0&&v!==m.retryLane))throw m.retryLane=v,sr(e,v),$t(o,e,v),Cc;Qo(),n=Mm(e,n,i)}else e=m.treeContext,nt=kn(v.nextSibling),Mt=n,Le=!0,Cl=null,Sn=!1,e!==null&&gp(n,e),n=Lo(n,o),n.flags|=4096;return n}return e=Jn(e.child,{mode:o.mode,children:o.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Bo(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function Ec(e,n,i,o,h){return dr(n),i=ic(e,n,i,o,void 0,h),o=ac(),e!==null&&!mt?(oc(e,n,h),rl(e,n,h)):(Le&&o&&qu(n),n.flags|=1,_t(e,n,i,h),n.child)}function Nm(e,n,i,o,h,m){return dr(n),n.updateQueue=null,i=jp(n,o,i,h),Op(e),o=ac(),e!==null&&!mt?(oc(e,n,m),rl(e,n,m)):(Le&&o&&qu(n),n.flags|=1,_t(e,n,i,m),n.child)}function _m(e,n,i,o,h){if(dr(n),n.stateNode===null){var m=Xr,v=i.contextType;typeof v=="object"&&v!==null&&(m=Nt(v)),m=new i(o,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=wc,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=o,m.state=n.memoizedState,m.refs={},Ku(n),v=i.contextType,m.context=typeof v=="object"&&v!==null?Nt(v):Xr,m.state=n.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(Sc(n,i,v,o),m.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&wc.enqueueReplaceState(m,m.state,null),ta(n,o,m,h),ea(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){m=n.stateNode;var C=n.memoizedProps,j=xr(i,C);m.props=j;var G=m.context,J=i.contextType;v=Xr,typeof J=="object"&&J!==null&&(v=Nt(J));var ie=i.getDerivedStateFromProps;J=typeof ie=="function"||typeof m.getSnapshotBeforeUpdate=="function",C=n.pendingProps!==C,J||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(C||G!==v)&&xm(n,m,o,v),Al=!1;var P=n.memoizedState;m.state=P,ta(n,o,m,h),ea(),G=n.memoizedState,C||P!==G||Al?(typeof ie=="function"&&(Sc(n,i,ie,o),G=n.memoizedState),(j=Al||ym(n,i,j,o,P,G,v))?(J||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=G),m.props=o,m.state=G,m.context=v,o=j):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{m=n.stateNode,Ju(e,n),v=n.memoizedProps,J=xr(i,v),m.props=J,ie=n.pendingProps,P=m.context,G=i.contextType,j=Xr,typeof G=="object"&&G!==null&&(j=Nt(G)),C=i.getDerivedStateFromProps,(G=typeof C=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==ie||P!==j)&&xm(n,m,o,j),Al=!1,P=n.memoizedState,m.state=P,ta(n,o,m,h),ea();var $=n.memoizedState;v!==ie||P!==$||Al||e!==null&&e.dependencies!==null&&xo(e.dependencies)?(typeof C=="function"&&(Sc(n,i,C,o),$=n.memoizedState),(J=Al||ym(n,i,J,o,P,$,j)||e!==null&&e.dependencies!==null&&xo(e.dependencies))?(G||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,$,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,$,j)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=$),m.props=o,m.state=$,m.context=j,o=J):(typeof m.componentDidUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),o=!1)}return m=o,Bo(e,n),o=(n.flags&128)!==0,m||o?(m=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,e!==null&&o?(n.child=gr(n,e.child,null,h),n.child=gr(n,null,i,h)):_t(e,n,i,h),n.memoizedState=m.state,e=n.child):e=rl(e,n,h),e}function Om(e,n,i,o){return cr(),n.flags|=256,_t(e,n,i,o),n.child}var Tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ac(e){return{baseLanes:e,cachePool:wp()}}function Rc(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=on),e}function jm(e,n,i){var o=n.pendingProps,h=!1,m=(n.flags&128)!==0,v;if((v=m)||(v=e!==null&&e.memoizedState===null?!1:(ct.current&2)!==0),v&&(h=!0,n.flags&=-129),v=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(h?Ml(n):Nl(),(e=nt)?(e=Vg(e,Sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:kl!==null?{id:Bn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},i=hp(e),i.return=n,n.child=i,Mt=n,nt=null)):e=null,e===null)throw El(n);return ff(e)?n.lanes=32:n.lanes=536870912,null}var C=o.children;return o=o.fallback,h?(Nl(),h=n.mode,C=Ho({mode:"hidden",children:C},h),o=ur(o,h,i,null),C.return=n,o.return=n,C.sibling=o,n.child=C,o=n.child,o.memoizedState=Ac(i),o.childLanes=Rc(e,v,i),n.memoizedState=Tc,aa(null,o)):(Ml(n),zc(n,C))}var j=e.memoizedState;if(j!==null&&(C=j.dehydrated,C!==null)){if(m)n.flags&256?(Ml(n),n.flags&=-257,n=Mc(e,n,i)):n.memoizedState!==null?(Nl(),n.child=e.child,n.flags|=128,n=null):(Nl(),C=o.fallback,h=n.mode,o=Ho({mode:"visible",children:o.children},h),C=ur(C,h,i,null),C.flags|=2,o.return=n,C.return=n,o.sibling=C,n.child=o,gr(n,e.child,null,i),o=n.child,o.memoizedState=Ac(i),o.childLanes=Rc(e,v,i),n.memoizedState=Tc,n=aa(null,o));else if(Ml(n),ff(C)){if(v=C.nextSibling&&C.nextSibling.dataset,v)var G=v.dgst;v=G,o=Error(a(419)),o.stack="",o.digest=v,Zi({value:o,source:null,stack:null}),n=Mc(e,n,i)}else if(mt||Fr(e,n,i,!1),v=(i&e.childLanes)!==0,mt||v){if(v=Ke,v!==null&&(o=vh(v,i),o!==0&&o!==j.retryLane))throw j.retryLane=o,sr(e,o),$t(v,e,o),Cc;cf(C)||Qo(),n=Mc(e,n,i)}else cf(C)?(n.flags|=192,n.child=e.child,n=null):(e=j.treeContext,nt=kn(C.nextSibling),Mt=n,Le=!0,Cl=null,Sn=!1,e!==null&&gp(n,e),n=zc(n,o.children),n.flags|=4096);return n}return h?(Nl(),C=o.fallback,h=n.mode,j=e.child,G=j.sibling,o=Jn(j,{mode:"hidden",children:o.children}),o.subtreeFlags=j.subtreeFlags&65011712,G!==null?C=Jn(G,C):(C=ur(C,h,i,null),C.flags|=2),C.return=n,o.return=n,o.sibling=C,n.child=o,aa(null,o),o=n.child,C=e.child.memoizedState,C===null?C=Ac(i):(h=C.cachePool,h!==null?(j=ht._currentValue,h=h.parent!==j?{parent:j,pool:j}:h):h=wp(),C={baseLanes:C.baseLanes|i,cachePool:h}),o.memoizedState=C,o.childLanes=Rc(e,v,i),n.memoizedState=Tc,aa(e.child,o)):(Ml(n),i=e.child,e=i.sibling,i=Jn(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,e!==null&&(v=n.deletions,v===null?(n.deletions=[e],n.flags|=16):v.push(e)),n.child=i,n.memoizedState=null,i)}function zc(e,n){return n=Ho({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Ho(e,n){return e=nn(22,e,null,n),e.lanes=0,e}function Mc(e,n,i){return gr(n,e.child,null,i),e=zc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Dm(e,n,i){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),Pu(e.return,n,i)}function Nc(e,n,i,o,h,m){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:h,treeForkCount:m}:(v.isBackwards=n,v.rendering=null,v.renderingStartTime=0,v.last=o,v.tail=i,v.tailMode=h,v.treeForkCount=m)}function Lm(e,n,i){var o=n.pendingProps,h=o.revealOrder,m=o.tail;o=o.children;var v=ct.current,C=(v&2)!==0;if(C?(v=v&1|2,n.flags|=128):v&=1,A(ct,v),_t(e,n,o,i),o=Le?Qi:0,!C&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dm(e,i,n);else if(e.tag===19)Dm(e,i,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(i=n.child,h=null;i!==null;)e=i.alternate,e!==null&&To(e)===null&&(h=i),i=i.sibling;i=h,i===null?(h=n.child,n.child=null):(h=i.sibling,i.sibling=null),Nc(n,!1,h,i,m,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,h=n.child,n.child=null;h!==null;){if(e=h.alternate,e!==null&&To(e)===null){n.child=h;break}e=h.sibling,h.sibling=i,i=h,h=e}Nc(n,!0,i,null,m,o);break;case"together":Nc(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function rl(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),jl|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(Fr(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,i=Jn(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Jn(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function _c(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&xo(e)))}function Hv(e,n,i){switch(n.tag){case 3:Me(n,n.stateNode.containerInfo),Tl(n,ht,e.memoizedState.cache),cr();break;case 27:case 5:at(n);break;case 4:Me(n,n.stateNode.containerInfo);break;case 10:Tl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,lc(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Ml(n),n.flags|=128,null):(i&n.child.childLanes)!==0?jm(e,n,i):(Ml(n),e=rl(e,n,i),e!==null?e.sibling:null);Ml(n);break;case 19:var h=(e.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(Fr(e,n,i,!1),o=(i&n.childLanes)!==0),h){if(o)return Lm(e,n,i);n.flags|=128}if(h=n.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),A(ct,ct.current),o)break;return null;case 22:return n.lanes=0,Rm(e,n,i,n.pendingProps);case 24:Tl(n,ht,e.memoizedState.cache)}return rl(e,n,i)}function Bm(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)mt=!0;else{if(!_c(e,i)&&(n.flags&128)===0)return mt=!1,Hv(e,n,i);mt=(e.flags&131072)!==0}else mt=!1,Le&&(n.flags&1048576)!==0&&mp(n,Qi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(e=pr(n.elementType),n.type=e,typeof e=="function")Bu(e)?(o=xr(e,o),n.tag=1,n=_m(null,n,e,o,i)):(n.tag=0,n=Ec(null,n,e,o,i));else{if(e!=null){var h=e.$$typeof;if(h===D){n.tag=11,n=Em(null,n,e,o,i);break e}else if(h===H){n.tag=14,n=Tm(null,n,e,o,i);break e}}throw n=ne(e)||e,Error(a(306,n,""))}}return n;case 0:return Ec(e,n,n.type,n.pendingProps,i);case 1:return o=n.type,h=xr(o,n.pendingProps),_m(e,n,o,h,i);case 3:e:{if(Me(n,n.stateNode.containerInfo),e===null)throw Error(a(387));o=n.pendingProps;var m=n.memoizedState;h=m.element,Ju(e,n),ta(n,o,null,i);var v=n.memoizedState;if(o=v.cache,Tl(n,ht,o),o!==m.cache&&Xu(n,[ht],i,!0),ea(),o=v.element,m.isDehydrated)if(m={element:o,isDehydrated:!1,cache:v.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=Om(e,n,o,i);break e}else if(o!==h){h=xn(Error(a(424)),n),Zi(h),n=Om(e,n,o,i);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(nt=kn(e.firstChild),Mt=n,Le=!0,Cl=null,Sn=!0,i=Rp(n,null,o,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(cr(),o===h){n=rl(e,n,i);break e}_t(e,n,o,i)}n=n.child}return n;case 26:return Bo(e,n),e===null?(i=Zg(n.type,null,n.pendingProps,null))?n.memoizedState=i:Le||(i=n.type,e=n.pendingProps,o=es(pe.current).createElement(i),o[zt]=n,o[Yt]=e,Ot(o,i,e),At(o),n.stateNode=o):n.memoizedState=Zg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return at(n),e===null&&Le&&(o=n.stateNode=Pg(n.type,n.pendingProps,pe.current),Mt=n,Sn=!0,h=nt,Ul(n.type)?(df=h,nt=kn(o.firstChild)):nt=h),_t(e,n,n.pendingProps.children,i),Bo(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((h=o=nt)&&(o=p2(o,n.type,n.pendingProps,Sn),o!==null?(n.stateNode=o,Mt=n,nt=kn(o.firstChild),Sn=!1,h=!0):h=!1),h||El(n)),at(n),h=n.type,m=n.pendingProps,v=e!==null?e.memoizedProps:null,o=m.children,of(h,m)?o=null:v!==null&&of(h,v)&&(n.flags|=32),n.memoizedState!==null&&(h=ic(e,n,zv,null,null,i),Sa._currentValue=h),Bo(e,n),_t(e,n,o,i),n.child;case 6:return e===null&&Le&&((e=i=nt)&&(i=m2(i,n.pendingProps,Sn),i!==null?(n.stateNode=i,Mt=n,nt=null,e=!0):e=!1),e||El(n)),null;case 13:return jm(e,n,i);case 4:return Me(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=gr(n,null,o,i):_t(e,n,o,i),n.child;case 11:return Em(e,n,n.type,n.pendingProps,i);case 7:return _t(e,n,n.pendingProps,i),n.child;case 8:return _t(e,n,n.pendingProps.children,i),n.child;case 12:return _t(e,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,Tl(n,n.type,o.value),_t(e,n,o.children,i),n.child;case 9:return h=n.type._context,o=n.pendingProps.children,dr(n),h=Nt(h),o=o(h),n.flags|=1,_t(e,n,o,i),n.child;case 14:return Tm(e,n,n.type,n.pendingProps,i);case 15:return Am(e,n,n.type,n.pendingProps,i);case 19:return Lm(e,n,i);case 31:return Bv(e,n,i);case 22:return Rm(e,n,i,n.pendingProps);case 24:return dr(n),o=Nt(ht),e===null?(h=$u(),h===null&&(h=Ke,m=Qu(),h.pooledCache=m,m.refCount++,m!==null&&(h.pooledCacheLanes|=i),h=m),n.memoizedState={parent:o,cache:h},Ku(n),Tl(n,ht,h)):((e.lanes&i)!==0&&(Ju(e,n),ta(n,null,null,i),ea()),h=e.memoizedState,m=n.memoizedState,h.parent!==o?(h={parent:o,cache:o},n.memoizedState=h,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=h),Tl(n,ht,o)):(o=m.cache,Tl(n,ht,o),o!==h.cache&&Xu(n,[ht],i,!0))),_t(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function il(e){e.flags|=4}function Oc(e,n,i,o,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(cg())e.flags|=8192;else throw mr=wo,Fu}else e.flags&=-16777217}function Hm(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Wg(n))if(cg())e.flags|=8192;else throw mr=wo,Fu}function Uo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Ue():536870912,e.lanes|=n,si|=n)}function oa(e,n){if(!Le)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function lt(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(n)for(var h=e.child;h!==null;)i|=h.lanes|h.childLanes,o|=h.subtreeFlags&65011712,o|=h.flags&65011712,h.return=e,h=h.sibling;else for(h=e.child;h!==null;)i|=h.lanes|h.childLanes,o|=h.subtreeFlags,o|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=o,e.childLanes=i,n}function Uv(e,n,i){var o=n.pendingProps;switch(Iu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(n),null;case 1:return lt(n),null;case 3:return i=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),tl(ht),ze(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&($r(n)?il(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Yu())),lt(n),null;case 26:var h=n.type,m=n.memoizedState;return e===null?(il(n),m!==null?(lt(n),Hm(n,m)):(lt(n),Oc(n,h,null,o,i))):m?m!==e.memoizedState?(il(n),lt(n),Hm(n,m)):(lt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==o&&il(n),lt(n),Oc(n,h,e,o,i)),null;case 27:if(Ct(n),i=pe.current,h=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&il(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return lt(n),null}e=se.current,$r(n)?yp(n):(e=Pg(h,o,i),n.stateNode=e,il(n))}return lt(n),null;case 5:if(Ct(n),h=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&il(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return lt(n),null}if(m=se.current,$r(n))yp(n);else{var v=es(pe.current);switch(m){case 1:m=v.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:m=v.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":m=v.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":m=v.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":m=v.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof o.is=="string"?v.createElement("select",{is:o.is}):v.createElement("select"),o.multiple?m.multiple=!0:o.size&&(m.size=o.size);break;default:m=typeof o.is=="string"?v.createElement(h,{is:o.is}):v.createElement(h)}}m[zt]=n,m[Yt]=o;e:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)m.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===n)break e;for(;v.sibling===null;){if(v.return===null||v.return===n)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}n.stateNode=m;e:switch(Ot(m,h,o),h){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&il(n)}}return lt(n),Oc(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&il(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(a(166));if(e=pe.current,$r(n)){if(e=n.stateNode,i=n.memoizedProps,o=null,h=Mt,h!==null)switch(h.tag){case 27:case 5:o=h.memoizedProps}e[zt]=n,e=!!(e.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||jg(e.nodeValue,i)),e||El(n,!0)}else e=es(e).createTextNode(o),e[zt]=n,n.stateNode=e}return lt(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(o=$r(n),i!==null){if(e===null){if(!o)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[zt]=n}else cr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;lt(n),e=!1}else i=Yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(rn(n),n):(rn(n),null);if((n.flags&128)!==0)throw Error(a(558))}return lt(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(h=$r(n),o!==null&&o.dehydrated!==null){if(e===null){if(!h)throw Error(a(318));if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[zt]=n}else cr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;lt(n),h=!1}else h=Yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=h),h=!0;if(!h)return n.flags&256?(rn(n),n):(rn(n),null)}return rn(n),(n.flags&128)!==0?(n.lanes=i,n):(i=o!==null,e=e!==null&&e.memoizedState!==null,i&&(o=n.child,h=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(h=o.alternate.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==h&&(o.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),Uo(n,n.updateQueue),lt(n),null);case 4:return ze(),e===null&&tf(n.stateNode.containerInfo),lt(n),null;case 10:return tl(n.type),lt(n),null;case 19:if(Q(ct),o=n.memoizedState,o===null)return lt(n),null;if(h=(n.flags&128)!==0,m=o.rendering,m===null)if(h)oa(o,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=To(e),m!==null){for(n.flags|=128,oa(o,!1),e=m.updateQueue,n.updateQueue=e,Uo(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)dp(i,e),i=i.sibling;return A(ct,ct.current&1|2),Le&&Wn(n,o.treeForkCount),n.child}e=e.sibling}o.tail!==null&&bt()>Go&&(n.flags|=128,h=!0,oa(o,!1),n.lanes=4194304)}else{if(!h)if(e=To(m),e!==null){if(n.flags|=128,h=!0,e=e.updateQueue,n.updateQueue=e,Uo(n,e),oa(o,!0),o.tail===null&&o.tailMode==="hidden"&&!m.alternate&&!Le)return lt(n),null}else 2*bt()-o.renderingStartTime>Go&&i!==536870912&&(n.flags|=128,h=!0,oa(o,!1),n.lanes=4194304);o.isBackwards?(m.sibling=n.child,n.child=m):(e=o.last,e!==null?e.sibling=m:n.child=m,o.last=m)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=bt(),e.sibling=null,i=ct.current,A(ct,h?i&1|2:i&1),Le&&Wn(n,o.treeForkCount),e):(lt(n),null);case 22:case 23:return rn(n),nc(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(i&536870912)!==0&&(n.flags&128)===0&&(lt(n),n.subtreeFlags&6&&(n.flags|=8192)):lt(n),i=n.updateQueue,i!==null&&Uo(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),e!==null&&Q(hr),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),tl(ht),lt(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function qv(e,n){switch(Iu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return tl(ht),ze(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ct(n),null;case 31:if(n.memoizedState!==null){if(rn(n),n.alternate===null)throw Error(a(340));cr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(rn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));cr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Q(ct),null;case 4:return ze(),null;case 10:return tl(n.type),null;case 22:case 23:return rn(n),nc(),e!==null&&Q(hr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return tl(ht),null;case 25:return null;default:return null}}function Um(e,n){switch(Iu(n),n.tag){case 3:tl(ht),ze();break;case 26:case 27:case 5:Ct(n);break;case 4:ze();break;case 31:n.memoizedState!==null&&rn(n);break;case 13:rn(n);break;case 19:Q(ct);break;case 10:tl(n.type);break;case 22:case 23:rn(n),nc(),e!==null&&Q(hr);break;case 24:tl(ht)}}function sa(e,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var h=o.next;i=h;do{if((i.tag&e)===e){o=void 0;var m=i.create,v=i.inst;o=m(),v.destroy=o}i=i.next}while(i!==h)}}catch(C){Pe(n,n.return,C)}}function _l(e,n,i){try{var o=n.updateQueue,h=o!==null?o.lastEffect:null;if(h!==null){var m=h.next;o=m;do{if((o.tag&e)===e){var v=o.inst,C=v.destroy;if(C!==void 0){v.destroy=void 0,h=n;var j=i,G=C;try{G()}catch(J){Pe(h,j,J)}}}o=o.next}while(o!==m)}}catch(J){Pe(n,n.return,J)}}function qm(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{Mp(n,i)}catch(o){Pe(e,e.return,o)}}}function Im(e,n,i){i.props=xr(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(o){Pe(e,n,o)}}function ua(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof i=="function"?e.refCleanup=i(o):i.current=o}}catch(h){Pe(e,n,h)}}function Un(e,n){var i=e.ref,o=e.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(h){Pe(e,n,h)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(h){Pe(e,n,h)}else i.current=null}function Vm(e){var n=e.type,i=e.memoizedProps,o=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(h){Pe(e,e.return,h)}}function jc(e,n,i){try{var o=e.stateNode;s2(o,e.type,i,n),o[Yt]=n}catch(h){Pe(e,e.return,h)}}function Ym(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ul(e.type)||e.tag===4}function Dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ym(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&&Ul(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 Lc(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Fn));else if(o!==4&&(o===27&&Ul(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Lc(e,n,i),e=e.sibling;e!==null;)Lc(e,n,i),e=e.sibling}function qo(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(o!==4&&(o===27&&Ul(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(qo(e,n,i),e=e.sibling;e!==null;)qo(e,n,i),e=e.sibling}function Gm(e){var n=e.stateNode,i=e.memoizedProps;try{for(var o=e.type,h=n.attributes;h.length;)n.removeAttributeNode(h[0]);Ot(n,o,i),n[zt]=e,n[Yt]=i}catch(m){Pe(e,e.return,m)}}var al=!1,gt=!1,Bc=!1,Pm=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function Iv(e,n){if(e=e.containerInfo,rf=os,e=lp(e),Mu(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var h=o.anchorOffset,m=o.focusNode;o=o.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var v=0,C=-1,j=-1,G=0,J=0,ie=e,P=null;t:for(;;){for(var $;ie!==i||h!==0&&ie.nodeType!==3||(C=v+h),ie!==m||o!==0&&ie.nodeType!==3||(j=v+o),ie.nodeType===3&&(v+=ie.nodeValue.length),($=ie.firstChild)!==null;)P=ie,ie=$;for(;;){if(ie===e)break t;if(P===i&&++G===h&&(C=v),P===m&&++J===o&&(j=v),($=ie.nextSibling)!==null)break;ie=P,P=ie.parentNode}ie=$}i=C===-1||j===-1?null:{start:C,end:j}}else i=null}i=i||{start:0,end:0}}else i=null;for(af={focusedElem:e,selectionRange:i},os=!1,Rt=n;Rt!==null;)if(n=Rt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Rt=e;else for(;Rt!==null;){switch(n=Rt,m=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(i=0;i<e.length;i++)h=e[i],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,i=n,h=m.memoizedProps,m=m.memoizedState,o=i.stateNode;try{var ge=xr(i.type,h);e=o.getSnapshotBeforeUpdate(ge,m),o.__reactInternalSnapshotBeforeUpdate=e}catch(we){Pe(i,i.return,we)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)uf(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":uf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=n.sibling,e!==null){e.return=n.return,Rt=e;break}Rt=n.return}}function Xm(e,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:sl(e,i),o&4&&sa(5,i);break;case 1:if(sl(e,i),o&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(v){Pe(i,i.return,v)}else{var h=xr(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(h,n,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Pe(i,i.return,v)}}o&64&&qm(i),o&512&&ua(i,i.return);break;case 3:if(sl(e,i),o&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Mp(e,n)}catch(v){Pe(i,i.return,v)}}break;case 27:n===null&&o&4&&Gm(i);case 26:case 5:sl(e,i),n===null&&o&4&&Vm(i),o&512&&ua(i,i.return);break;case 12:sl(e,i);break;case 31:sl(e,i),o&4&&$m(e,i);break;case 13:sl(e,i),o&4&&Fm(e,i),o&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=Fv.bind(null,i),g2(e,i))));break;case 22:if(o=i.memoizedState!==null||al,!o){n=n!==null&&n.memoizedState!==null||gt,h=al;var m=gt;al=o,(gt=n)&&!m?ul(e,i,(i.subtreeFlags&8772)!==0):sl(e,i),al=h,gt=m}break;case 30:break;default:sl(e,i)}}function Qm(e){var n=e.alternate;n!==null&&(e.alternate=null,Qm(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&hu(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 it=null,Pt=!1;function ol(e,n,i){for(i=i.child;i!==null;)Zm(e,n,i),i=i.sibling}function Zm(e,n,i){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(ot,i)}catch{}switch(i.tag){case 26:gt||Un(i,n),ol(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:gt||Un(i,n);var o=it,h=Pt;Ul(i.type)&&(it=i.stateNode,Pt=!1),ol(e,n,i),xa(i.stateNode),it=o,Pt=h;break;case 5:gt||Un(i,n);case 6:if(o=it,h=Pt,it=null,ol(e,n,i),it=o,Pt=h,it!==null)if(Pt)try{(it.nodeType===9?it.body:it.nodeName==="HTML"?it.ownerDocument.body:it).removeChild(i.stateNode)}catch(m){Pe(i,n,m)}else try{it.removeChild(i.stateNode)}catch(m){Pe(i,n,m)}break;case 18:it!==null&&(Pt?(e=it,qg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),gi(e)):qg(it,i.stateNode));break;case 4:o=it,h=Pt,it=i.stateNode.containerInfo,Pt=!0,ol(e,n,i),it=o,Pt=h;break;case 0:case 11:case 14:case 15:_l(2,i,n),gt||_l(4,i,n),ol(e,n,i);break;case 1:gt||(Un(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Im(i,n,o)),ol(e,n,i);break;case 21:ol(e,n,i);break;case 22:gt=(o=gt)||i.memoizedState!==null,ol(e,n,i),gt=o;break;default:ol(e,n,i)}}function $m(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gi(e)}catch(i){Pe(n,n.return,i)}}}function Fm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gi(e)}catch(i){Pe(n,n.return,i)}}function Vv(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Pm),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Pm),n;default:throw Error(a(435,e.tag))}}function Io(e,n){var i=Vv(e);n.forEach(function(o){if(!i.has(o)){i.add(o);var h=Kv.bind(null,e,o);o.then(h,h)}})}function Xt(e,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var h=i[o],m=e,v=n,C=v;e:for(;C!==null;){switch(C.tag){case 27:if(Ul(C.type)){it=C.stateNode,Pt=!1;break e}break;case 5:it=C.stateNode,Pt=!1;break e;case 3:case 4:it=C.stateNode.containerInfo,Pt=!0;break e}C=C.return}if(it===null)throw Error(a(160));Zm(m,v,h),it=null,Pt=!1,m=h.alternate,m!==null&&(m.return=null),h.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Km(n,e),n=n.sibling}var Nn=null;function Km(e,n){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(n,e),Qt(e),o&4&&(_l(3,e,e.return),sa(3,e),_l(5,e,e.return));break;case 1:Xt(n,e),Qt(e),o&512&&(gt||i===null||Un(i,i.return)),o&64&&al&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var h=Nn;if(Xt(n,e),Qt(e),o&512&&(gt||i===null||Un(i,i.return)),o&4){var m=i!==null?i.memoizedState:null;if(o=e.memoizedState,i===null)if(o===null)if(e.stateNode===null){e:{o=e.type,i=e.memoizedProps,h=h.ownerDocument||h;t:switch(o){case"title":m=h.getElementsByTagName("title")[0],(!m||m[Li]||m[zt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=h.createElement(o),h.head.insertBefore(m,h.querySelector("head > title"))),Ot(m,o,i),m[zt]=e,At(m),o=m;break e;case"link":var v=Kg("link","href",h).get(o+(i.href||""));if(v){for(var C=0;C<v.length;C++)if(m=v[C],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){v.splice(C,1);break t}}m=h.createElement(o),Ot(m,o,i),h.head.appendChild(m);break;case"meta":if(v=Kg("meta","content",h).get(o+(i.content||""))){for(C=0;C<v.length;C++)if(m=v[C],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){v.splice(C,1);break t}}m=h.createElement(o),Ot(m,o,i),h.head.appendChild(m);break;default:throw Error(a(468,o))}m[zt]=e,At(m),o=m}e.stateNode=o}else Jg(h,e.type,e.stateNode);else e.stateNode=Fg(h,o,e.memoizedProps);else m!==o?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,o===null?Jg(h,e.type,e.stateNode):Fg(h,o,e.memoizedProps)):o===null&&e.stateNode!==null&&jc(e,e.memoizedProps,i.memoizedProps)}break;case 27:Xt(n,e),Qt(e),o&512&&(gt||i===null||Un(i,i.return)),i!==null&&o&4&&jc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Xt(n,e),Qt(e),o&512&&(gt||i===null||Un(i,i.return)),e.flags&32){h=e.stateNode;try{Ur(h,"")}catch(ge){Pe(e,e.return,ge)}}o&4&&e.stateNode!=null&&(h=e.memoizedProps,jc(e,h,i!==null?i.memoizedProps:h)),o&1024&&(Bc=!0);break;case 6:if(Xt(n,e),Qt(e),o&4){if(e.stateNode===null)throw Error(a(162));o=e.memoizedProps,i=e.stateNode;try{i.nodeValue=o}catch(ge){Pe(e,e.return,ge)}}break;case 3:if(ls=null,h=Nn,Nn=ts(n.containerInfo),Xt(n,e),Nn=h,Qt(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{gi(n.containerInfo)}catch(ge){Pe(e,e.return,ge)}Bc&&(Bc=!1,Jm(e));break;case 4:o=Nn,Nn=ts(e.stateNode.containerInfo),Xt(n,e),Qt(e),Nn=o;break;case 12:Xt(n,e),Qt(e);break;case 31:Xt(n,e),Qt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Io(e,o)));break;case 13:Xt(n,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Yo=bt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Io(e,o)));break;case 22:h=e.memoizedState!==null;var j=i!==null&&i.memoizedState!==null,G=al,J=gt;if(al=G||h,gt=J||j,Xt(n,e),gt=J,al=G,Qt(e),o&8192)e:for(n=e.stateNode,n._visibility=h?n._visibility&-2:n._visibility|1,h&&(i===null||j||al||gt||br(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){j=i=n;try{if(m=j.stateNode,h)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{C=j.stateNode;var ie=j.memoizedProps.style,P=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;C.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ge){Pe(j,j.return,ge)}}}else if(n.tag===6){if(i===null){j=n;try{j.stateNode.nodeValue=h?"":j.memoizedProps}catch(ge){Pe(j,j.return,ge)}}}else if(n.tag===18){if(i===null){j=n;try{var $=j.stateNode;h?Ig($,!0):Ig(j.stateNode,!1)}catch(ge){Pe(j,j.return,ge)}}}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;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Io(e,i))));break;case 19:Xt(n,e),Qt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Io(e,o)));break;case 30:break;case 21:break;default:Xt(n,e),Qt(e)}}function Qt(e){var n=e.flags;if(n&2){try{for(var i,o=e.return;o!==null;){if(Ym(o)){i=o;break}o=o.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var h=i.stateNode,m=Dc(e);qo(e,m,h);break;case 5:var v=i.stateNode;i.flags&32&&(Ur(v,""),i.flags&=-33);var C=Dc(e);qo(e,C,v);break;case 3:case 4:var j=i.stateNode.containerInfo,G=Dc(e);Lc(e,G,j);break;default:throw Error(a(161))}}catch(J){Pe(e,e.return,J)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Jm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Jm(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function sl(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Xm(e,n.alternate,n),n=n.sibling}function br(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:_l(4,n,n.return),br(n);break;case 1:Un(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Im(n,n.return,i),br(n);break;case 27:xa(n.stateNode);case 26:case 5:Un(n,n.return),br(n);break;case 22:n.memoizedState===null&&br(n);break;case 30:br(n);break;default:br(n)}e=e.sibling}}function ul(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,h=e,m=n,v=m.flags;switch(m.tag){case 0:case 11:case 15:ul(h,m,i),sa(4,m);break;case 1:if(ul(h,m,i),o=m,h=o.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(G){Pe(o,o.return,G)}if(o=m,h=o.updateQueue,h!==null){var C=o.stateNode;try{var j=h.shared.hiddenCallbacks;if(j!==null)for(h.shared.hiddenCallbacks=null,h=0;h<j.length;h++)zp(j[h],C)}catch(G){Pe(o,o.return,G)}}i&&v&64&&qm(m),ua(m,m.return);break;case 27:Gm(m);case 26:case 5:ul(h,m,i),i&&o===null&&v&4&&Vm(m),ua(m,m.return);break;case 12:ul(h,m,i);break;case 31:ul(h,m,i),i&&v&4&&$m(h,m);break;case 13:ul(h,m,i),i&&v&4&&Fm(h,m);break;case 22:m.memoizedState===null&&ul(h,m,i),ua(m,m.return);break;case 30:break;default:ul(h,m,i)}n=n.sibling}}function Hc(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&$i(i))}function Uc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&$i(e))}function _n(e,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Wm(e,n,i,o),n=n.sibling}function Wm(e,n,i,o){var h=n.flags;switch(n.tag){case 0:case 11:case 15:_n(e,n,i,o),h&2048&&sa(9,n);break;case 1:_n(e,n,i,o);break;case 3:_n(e,n,i,o),h&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&$i(e)));break;case 12:if(h&2048){_n(e,n,i,o),e=n.stateNode;try{var m=n.memoizedProps,v=m.id,C=m.onPostCommit;typeof C=="function"&&C(v,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Pe(n,n.return,j)}}else _n(e,n,i,o);break;case 31:_n(e,n,i,o);break;case 13:_n(e,n,i,o);break;case 23:break;case 22:m=n.stateNode,v=n.alternate,n.memoizedState!==null?m._visibility&2?_n(e,n,i,o):ca(e,n):m._visibility&2?_n(e,n,i,o):(m._visibility|=2,ii(e,n,i,o,(n.subtreeFlags&10256)!==0||!1)),h&2048&&Hc(v,n);break;case 24:_n(e,n,i,o),h&2048&&Uc(n.alternate,n);break;default:_n(e,n,i,o)}}function ii(e,n,i,o,h){for(h=h&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=e,v=n,C=i,j=o,G=v.flags;switch(v.tag){case 0:case 11:case 15:ii(m,v,C,j,h),sa(8,v);break;case 23:break;case 22:var J=v.stateNode;v.memoizedState!==null?J._visibility&2?ii(m,v,C,j,h):ca(m,v):(J._visibility|=2,ii(m,v,C,j,h)),h&&G&2048&&Hc(v.alternate,v);break;case 24:ii(m,v,C,j,h),h&&G&2048&&Uc(v.alternate,v);break;default:ii(m,v,C,j,h)}n=n.sibling}}function ca(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,o=n,h=o.flags;switch(o.tag){case 22:ca(i,o),h&2048&&Hc(o.alternate,o);break;case 24:ca(i,o),h&2048&&Uc(o.alternate,o);break;default:ca(i,o)}n=n.sibling}}var fa=8192;function ai(e,n,i){if(e.subtreeFlags&fa)for(e=e.child;e!==null;)eg(e,n,i),e=e.sibling}function eg(e,n,i){switch(e.tag){case 26:ai(e,n,i),e.flags&fa&&e.memoizedState!==null&&R2(i,Nn,e.memoizedState,e.memoizedProps);break;case 5:ai(e,n,i);break;case 3:case 4:var o=Nn;Nn=ts(e.stateNode.containerInfo),ai(e,n,i),Nn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=fa,fa=16777216,ai(e,n,i),fa=o):ai(e,n,i));break;default:ai(e,n,i)}}function tg(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 da(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Rt=o,lg(o,e)}tg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ng(e),e=e.sibling}function ng(e){switch(e.tag){case 0:case 11:case 15:da(e),e.flags&2048&&_l(9,e,e.return);break;case 3:da(e);break;case 12:da(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Vo(e)):da(e);break;default:da(e)}}function Vo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Rt=o,lg(o,e)}tg(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:_l(8,n,n.return),Vo(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Vo(n));break;default:Vo(n)}e=e.sibling}}function lg(e,n){for(;Rt!==null;){var i=Rt;switch(i.tag){case 0:case 11:case 15:_l(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:$i(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Rt=o;else e:for(i=e;Rt!==null;){o=Rt;var h=o.sibling,m=o.return;if(Qm(o),o===i){Rt=null;break e}if(h!==null){h.return=m,Rt=h;break e}Rt=m}}}var Yv={getCacheForType:function(e){var n=Nt(ht),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return Nt(ht).controller.signal}},Gv=typeof WeakMap=="function"?WeakMap:Map,Ve=0,Ke=null,Ne=null,je=0,Ge=0,an=null,Ol=!1,oi=!1,qc=!1,cl=0,ut=0,jl=0,vr=0,Ic=0,on=0,si=0,ha=null,Zt=null,Vc=!1,Yo=0,rg=0,Go=1/0,Po=null,Dl=null,wt=0,Ll=null,ui=null,fl=0,Yc=0,Gc=null,ig=null,pa=0,Pc=null;function sn(){return(Ve&2)!==0&&je!==0?je&-je:B.T!==null?Kc():Sh()}function ag(){if(on===0)if((je&536870912)===0||Le){var e=Mr;Mr<<=1,(Mr&3932160)===0&&(Mr=262144),on=e}else on=536870912;return e=ln.current,e!==null&&(e.flags|=32),on}function $t(e,n,i){(e===Ke&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(ci(e,0),Bl(e,je,on,!1)),Tt(e,i),((Ve&2)===0||e!==Ke)&&(e===Ke&&((Ve&2)===0&&(vr|=i),ut===4&&Bl(e,je,on,!1)),qn(e))}function og(e,n,i){if((Ve&6)!==0)throw Error(a(327));var o=!i&&(n&127)===0&&(n&e.expiredLanes)===0||de(e,n),h=o?Qv(e,n):Qc(e,n,!0),m=o;do{if(h===0){oi&&!o&&Bl(e,n,0,!1);break}else{if(i=e.current.alternate,m&&!Pv(i)){h=Qc(e,n,!1),m=!1;continue}if(h===2){if(m=n,e.errorRecoveryDisabledLanes&m)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){n=v;e:{var C=e;h=ha;var j=C.current.memoizedState.isDehydrated;if(j&&(ci(C,v).flags|=256),v=Qc(C,v,!1),v!==2){if(qc&&!j){C.errorRecoveryDisabledLanes|=m,vr|=m,h=4;break e}m=Zt,Zt=h,m!==null&&(Zt===null?Zt=m:Zt.push.apply(Zt,m))}h=v}if(m=!1,h!==2)continue}}if(h===1){ci(e,0),Bl(e,n,0,!0);break}e:{switch(o=e,m=h,m){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:Bl(o,n,on,!Ol);break e;case 2:Zt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(h=Yo+300-bt(),10<h)){if(Bl(o,n,on,!Ol),_r(o,0,!0)!==0)break e;fl=n,o.timeoutHandle=Hg(sg.bind(null,o,i,Zt,Po,Vc,n,on,vr,si,Ol,m,"Throttled",-0,0),h);break e}sg(o,i,Zt,Po,Vc,n,on,vr,si,Ol,m,null,-0,0)}}break}while(!0);qn(e)}function sg(e,n,i,o,h,m,v,C,j,G,J,ie,P,$){if(e.timeoutHandle=-1,ie=n.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fn},eg(n,m,ie);var ge=(m&62914560)===m?Yo-bt():(m&4194048)===m?rg-bt():0;if(ge=z2(ie,ge),ge!==null){fl=m,e.cancelPendingCommit=ge(gg.bind(null,e,n,m,i,o,h,v,C,j,J,ie,null,P,$)),Bl(e,m,v,!G);return}}gg(e,n,m,i,o,h,v,C,j)}function Pv(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var h=i[o],m=h.getSnapshot;h=h.value;try{if(!tn(m(),h))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;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 Bl(e,n,i,o){n&=~Ic,n&=~vr,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var h=n;0<h;){var m=31-He(h),v=1<<m;o[m]=-1,h&=~v}i!==0&&xh(e,i,n)}function Xo(){return(Ve&6)===0?(ma(0),!1):!0}function Xc(){if(Ne!==null){if(Ge===0)var e=Ne.return;else e=Ne,el=fr=null,sc(e),ei=null,Ki=0,e=Ne;for(;e!==null;)Um(e.alternate,e),e=e.return;Ne=null}}function ci(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,f2(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),fl=0,Xc(),Ke=e,Ne=i=Jn(e.current,null),je=n,Ge=0,an=null,Ol=!1,oi=de(e,n),qc=!1,si=on=Ic=vr=jl=ut=0,Zt=ha=null,Vc=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var h=31-He(o),m=1<<h;n|=e[h],o&=~m}return cl=n,ho(),i}function ug(e,n){Ce=null,B.H=ia,n===Wr||n===So?(n=Ep(),Ge=3):n===Fu?(n=Ep(),Ge=4):Ge=n===Cc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,an=n,Ne===null&&(ut=1,Do(e,xn(n,e.current)))}function cg(){var e=ln.current;return e===null?!0:(je&4194048)===je?wn===null:(je&62914560)===je||(je&536870912)!==0?e===wn:!1}function fg(){var e=B.H;return B.H=ia,e===null?ia:e}function dg(){var e=B.A;return B.A=Yv,e}function Qo(){ut=4,Ol||(je&4194048)!==je&&ln.current!==null||(oi=!0),(jl&134217727)===0&&(vr&134217727)===0||Ke===null||Bl(Ke,je,on,!1)}function Qc(e,n,i){var o=Ve;Ve|=2;var h=fg(),m=dg();(Ke!==e||je!==n)&&(Po=null,ci(e,n)),n=!1;var v=ut;e:do try{if(Ge!==0&&Ne!==null){var C=Ne,j=an;switch(Ge){case 8:Xc(),v=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(n=!0);var G=Ge;if(Ge=0,an=null,fi(e,C,j,G),i&&oi){v=0;break e}break;default:G=Ge,Ge=0,an=null,fi(e,C,j,G)}}Xv(),v=ut;break}catch(J){ug(e,J)}while(!0);return n&&e.shellSuspendCounter++,el=fr=null,Ve=o,B.H=h,B.A=m,Ne===null&&(Ke=null,je=0,ho()),v}function Xv(){for(;Ne!==null;)hg(Ne)}function Qv(e,n){var i=Ve;Ve|=2;var o=fg(),h=dg();Ke!==e||je!==n?(Po=null,Go=bt()+500,ci(e,n)):oi=de(e,n);e:do try{if(Ge!==0&&Ne!==null){n=Ne;var m=an;t:switch(Ge){case 1:Ge=0,an=null,fi(e,n,m,1);break;case 2:case 9:if(kp(m)){Ge=0,an=null,pg(n);break}n=function(){Ge!==2&&Ge!==9||Ke!==e||(Ge=7),qn(e)},m.then(n,n);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:kp(m)?(Ge=0,an=null,pg(n)):(Ge=0,an=null,fi(e,n,m,7));break;case 5:var v=null;switch(Ne.tag){case 26:v=Ne.memoizedState;case 5:case 27:var C=Ne;if(v?Wg(v):C.stateNode.complete){Ge=0,an=null;var j=C.sibling;if(j!==null)Ne=j;else{var G=C.return;G!==null?(Ne=G,Zo(G)):Ne=null}break t}}Ge=0,an=null,fi(e,n,m,5);break;case 6:Ge=0,an=null,fi(e,n,m,6);break;case 8:Xc(),ut=6;break e;default:throw Error(a(462))}}Zv();break}catch(J){ug(e,J)}while(!0);return el=fr=null,B.H=o,B.A=h,Ve=i,Ne!==null?0:(Ke=null,je=0,ho(),ut)}function Zv(){for(;Ne!==null&&!tr();)hg(Ne)}function hg(e){var n=Bm(e.alternate,e,cl);e.memoizedProps=e.pendingProps,n===null?Zo(e):Ne=n}function pg(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=Nm(i,n,n.pendingProps,n.type,void 0,je);break;case 11:n=Nm(i,n,n.pendingProps,n.type.render,n.ref,je);break;case 5:sc(n);default:Um(i,n),n=Ne=dp(n,cl),n=Bm(i,n,cl)}e.memoizedProps=e.pendingProps,n===null?Zo(e):Ne=n}function fi(e,n,i,o){el=fr=null,sc(n),ei=null,Ki=0;var h=n.return;try{if(Lv(e,h,n,i,je)){ut=1,Do(e,xn(i,e.current)),Ne=null;return}}catch(m){if(h!==null)throw Ne=h,m;ut=1,Do(e,xn(i,e.current)),Ne=null;return}n.flags&32768?(Le||o===1?e=!0:oi||(je&536870912)!==0?e=!1:(Ol=e=!0,(o===2||o===9||o===3||o===6)&&(o=ln.current,o!==null&&o.tag===13&&(o.flags|=16384))),mg(n,e)):Zo(n)}function Zo(e){var n=e;do{if((n.flags&32768)!==0){mg(n,Ol);return}e=n.return;var i=Uv(n.alternate,n,cl);if(i!==null){Ne=i;return}if(n=n.sibling,n!==null){Ne=n;return}Ne=n=e}while(n!==null);ut===0&&(ut=5)}function mg(e,n){do{var i=qv(e.alternate,e);if(i!==null){i.flags&=32767,Ne=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=i}while(e!==null);ut=6,Ne=null}function gg(e,n,i,o,h,m,v,C,j){e.cancelPendingCommit=null;do $o();while(wt!==0);if((Ve&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(m=n.lanes|n.childLanes,m|=Du,uu(e,i,m,v,C,j),e===Ke&&(Ne=Ke=null,je=0),ui=n,Ll=e,fl=i,Yc=m,Gc=h,ig=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Jv(fe,function(){return Sg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=B.T,B.T=null,h=X.p,X.p=2,v=Ve,Ve|=4;try{Iv(e,n,i)}finally{Ve=v,X.p=h,B.T=o}}wt=1,yg(),xg(),bg()}}function yg(){if(wt===1){wt=0;var e=Ll,n=ui,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=B.T,B.T=null;var o=X.p;X.p=2;var h=Ve;Ve|=4;try{Km(n,e);var m=af,v=lp(e.containerInfo),C=m.focusedElem,j=m.selectionRange;if(v!==C&&C&&C.ownerDocument&&np(C.ownerDocument.documentElement,C)){if(j!==null&&Mu(C)){var G=j.start,J=j.end;if(J===void 0&&(J=G),"selectionStart"in C)C.selectionStart=G,C.selectionEnd=Math.min(J,C.value.length);else{var ie=C.ownerDocument||document,P=ie&&ie.defaultView||window;if(P.getSelection){var $=P.getSelection(),ge=C.textContent.length,we=Math.min(j.start,ge),$e=j.end===void 0?we:Math.min(j.end,ge);!$.extend&&we>$e&&(v=$e,$e=we,we=v);var q=tp(C,we),L=tp(C,$e);if(q&&L&&($.rangeCount!==1||$.anchorNode!==q.node||$.anchorOffset!==q.offset||$.focusNode!==L.node||$.focusOffset!==L.offset)){var Y=ie.createRange();Y.setStart(q.node,q.offset),$.removeAllRanges(),we>$e?($.addRange(Y),$.extend(L.node,L.offset)):(Y.setEnd(L.node,L.offset),$.addRange(Y))}}}}for(ie=[],$=C;$=$.parentNode;)$.nodeType===1&&ie.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<ie.length;C++){var le=ie[C];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}os=!!rf,af=rf=null}finally{Ve=h,X.p=o,B.T=i}}e.current=n,wt=2}}function xg(){if(wt===2){wt=0;var e=Ll,n=ui,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=B.T,B.T=null;var o=X.p;X.p=2;var h=Ve;Ve|=4;try{Xm(e,n.alternate,n)}finally{Ve=h,X.p=o,B.T=i}}wt=3}}function bg(){if(wt===4||wt===3){wt=0,nr();var e=Ll,n=ui,i=fl,o=ig;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?wt=5:(wt=0,ui=Ll=null,vg(e,e.pendingLanes));var h=e.pendingLanes;if(h===0&&(Dl=null),fu(i),n=n.stateNode,Fe&&typeof Fe.onCommitFiberRoot=="function")try{Fe.onCommitFiberRoot(ot,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=B.T,h=X.p,X.p=2,B.T=null;try{for(var m=e.onRecoverableError,v=0;v<o.length;v++){var C=o[v];m(C.value,{componentStack:C.stack})}}finally{B.T=n,X.p=h}}(fl&3)!==0&&$o(),qn(e),h=e.pendingLanes,(i&261930)!==0&&(h&42)!==0?e===Pc?pa++:(pa=0,Pc=e):pa=0,ma(0)}}function vg(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,$i(n)))}function $o(){return yg(),xg(),bg(),Sg()}function Sg(){if(wt!==5)return!1;var e=Ll,n=Yc;Yc=0;var i=fu(fl),o=B.T,h=X.p;try{X.p=32>i?32:i,B.T=null,i=Gc,Gc=null;var m=Ll,v=fl;if(wt=0,ui=Ll=null,fl=0,(Ve&6)!==0)throw Error(a(331));var C=Ve;if(Ve|=4,ng(m.current),Wm(m,m.current,v,i),Ve=C,ma(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot=="function")try{Fe.onPostCommitFiberRoot(ot,m)}catch{}return!0}finally{X.p=h,B.T=o,vg(e,n)}}function wg(e,n,i){n=xn(i,n),n=kc(e.stateNode,n,2),e=zl(e,n,2),e!==null&&(Tt(e,2),qn(e))}function Pe(e,n,i){if(e.tag===3)wg(e,e,i);else for(;n!==null;){if(n.tag===3){wg(n,e,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Dl===null||!Dl.has(o))){e=xn(i,e),i=km(2),o=zl(n,i,2),o!==null&&(Cm(i,o,n,e),Tt(o,2),qn(o));break}}n=n.return}}function Zc(e,n,i){var o=e.pingCache;if(o===null){o=e.pingCache=new Gv;var h=new Set;o.set(n,h)}else h=o.get(n),h===void 0&&(h=new Set,o.set(n,h));h.has(i)||(qc=!0,h.add(i),e=$v.bind(null,e,n,i),n.then(e,e))}function $v(e,n,i){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Ke===e&&(je&i)===i&&(ut===4||ut===3&&(je&62914560)===je&&300>bt()-Yo?(Ve&2)===0&&ci(e,0):Ic|=i,si===je&&(si=0)),qn(e)}function kg(e,n){n===0&&(n=Ue()),e=sr(e,n),e!==null&&(Tt(e,n),qn(e))}function Fv(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),kg(e,i)}function Kv(e,n){var i=0;switch(e.tag){case 31:case 13:var o=e.stateNode,h=e.memoizedState;h!==null&&(i=h.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(n),kg(e,i)}function Jv(e,n){return Ln(e,n)}var Fo=null,di=null,$c=!1,Ko=!1,Fc=!1,Hl=0;function qn(e){e!==di&&e.next===null&&(di===null?Fo=di=e:di=di.next=e),Ko=!0,$c||($c=!0,e2())}function ma(e,n){if(!Fc&&Ko){Fc=!0;do for(var i=!1,o=Fo;o!==null;){if(e!==0){var h=o.pendingLanes;if(h===0)var m=0;else{var v=o.suspendedLanes,C=o.pingedLanes;m=(1<<31-He(42|e)+1)-1,m&=h&~(v&~C),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Ag(o,m))}else m=je,m=_r(o,o===Ke?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(m&3)===0||de(o,m)||(i=!0,Ag(o,m));o=o.next}while(i);Fc=!1}}function Wv(){Cg()}function Cg(){Ko=$c=!1;var e=0;Hl!==0&&c2()&&(e=Hl);for(var n=bt(),i=null,o=Fo;o!==null;){var h=o.next,m=Eg(o,n);m===0?(o.next=null,i===null?Fo=h:i.next=h,h===null&&(di=i)):(i=o,(e!==0||(m&3)!==0)&&(Ko=!0)),o=h}wt!==0&&wt!==5||ma(e),Hl!==0&&(Hl=0)}function Eg(e,n){for(var i=e.suspendedLanes,o=e.pingedLanes,h=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var v=31-He(m),C=1<<v,j=h[v];j===-1?((C&i)===0||(C&o)!==0)&&(h[v]=Ee(C,n)):j<=n&&(e.expiredLanes|=C),m&=~C}if(n=Ke,i=je,i=_r(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,i===0||e===n&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Qn(o),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||de(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(o!==null&&Qn(o),fu(i)){case 2:case 8:i=K;break;case 32:i=fe;break;case 268435456:i=be;break;default:i=fe}return o=Tg.bind(null,e),i=Ln(i,o),e.callbackPriority=n,e.callbackNode=i,n}return o!==null&&o!==null&&Qn(o),e.callbackPriority=2,e.callbackNode=null,2}function Tg(e,n){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if($o()&&e.callbackNode!==i)return null;var o=je;return o=_r(e,e===Ke?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(og(e,o,n),Eg(e,bt()),e.callbackNode!=null&&e.callbackNode===i?Tg.bind(null,e):null)}function Ag(e,n){if($o())return null;og(e,n,!0)}function e2(){d2(function(){(Ve&6)!==0?Ln(W,Wv):Cg()})}function Kc(){if(Hl===0){var e=Kr;e===0&&(e=zr,zr<<=1,(zr&261888)===0&&(zr=256)),Hl=e}return Hl}function Rg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ro(""+e)}function zg(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function t2(e,n,i,o,h){if(n==="submit"&&i&&i.stateNode===h){var m=Rg((h[Yt]||null).action),v=o.submitter;v&&(n=(n=v[Yt]||null)?Rg(n.formAction):v.getAttribute("formAction"),n!==null&&(m=n,v=null));var C=new so("action","action",null,o,h);e.push({event:C,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Hl!==0){var j=v?zg(h,v):new FormData(h);yc(i,{pending:!0,data:j,method:h.method,action:m},null,j)}}else typeof m=="function"&&(C.preventDefault(),j=v?zg(h,v):new FormData(h),yc(i,{pending:!0,data:j,method:h.method,action:m},m,j))},currentTarget:h}]})}}for(var Jc=0;Jc<ju.length;Jc++){var Wc=ju[Jc],n2=Wc.toLowerCase(),l2=Wc[0].toUpperCase()+Wc.slice(1);Mn(n2,"on"+l2)}Mn(ap,"onAnimationEnd"),Mn(op,"onAnimationIteration"),Mn(sp,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(bv,"onTransitionRun"),Mn(vv,"onTransitionStart"),Mn(Sv,"onTransitionCancel"),Mn(up,"onTransitionEnd"),Br("onMouseEnter",["mouseout","mouseover"]),Br("onMouseLeave",["mouseout","mouseover"]),Br("onPointerEnter",["pointerout","pointerover"]),Br("onPointerLeave",["pointerout","pointerover"]),rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rr("onBeforeInput",["compositionend","keypress","textInput","paste"]),rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ga="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(" "),r2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ga));function Mg(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],h=o.event;o=o.listeners;e:{var m=void 0;if(n)for(var v=o.length-1;0<=v;v--){var C=o[v],j=C.instance,G=C.currentTarget;if(C=C.listener,j!==m&&h.isPropagationStopped())break e;m=C,h.currentTarget=G;try{m(h)}catch(J){fo(J)}h.currentTarget=null,m=j}else for(v=0;v<o.length;v++){if(C=o[v],j=C.instance,G=C.currentTarget,C=C.listener,j!==m&&h.isPropagationStopped())break e;m=C,h.currentTarget=G;try{m(h)}catch(J){fo(J)}h.currentTarget=null,m=j}}}}function _e(e,n){var i=n[du];i===void 0&&(i=n[du]=new Set);var o=e+"__bubble";i.has(o)||(Ng(n,e,2,!1),i.add(o))}function ef(e,n,i){var o=0;n&&(o|=4),Ng(i,e,o,n)}var Jo="_reactListening"+Math.random().toString(36).slice(2);function tf(e){if(!e[Jo]){e[Jo]=!0,Ch.forEach(function(i){i!=="selectionchange"&&(r2.has(i)||ef(i,!1,e),ef(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Jo]||(n[Jo]=!0,ef("selectionchange",!1,n))}}function Ng(e,n,i,o){switch(a1(n)){case 2:var h=_2;break;case 8:h=O2;break;default:h=yf}i=h.bind(null,n,i,e),h=void 0,!Su||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(h=!0),o?h!==void 0?e.addEventListener(n,i,{capture:!0,passive:h}):e.addEventListener(n,i,!0):h!==void 0?e.addEventListener(n,i,{passive:h}):e.addEventListener(n,i,!1)}function nf(e,n,i,o,h){var m=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var v=o.tag;if(v===3||v===4){var C=o.stateNode.containerInfo;if(C===h)break;if(v===4)for(v=o.return;v!==null;){var j=v.tag;if((j===3||j===4)&&v.stateNode.containerInfo===h)return;v=v.return}for(;C!==null;){if(v=jr(C),v===null)return;if(j=v.tag,j===5||j===6||j===26||j===27){o=m=v;continue e}C=C.parentNode}}o=o.return}Lh(function(){var G=m,J=bu(i),ie=[];e:{var P=cp.get(e);if(P!==void 0){var $=so,ge=e;switch(e){case"keypress":if(ao(i)===0)break e;case"keydown":case"keyup":$=K0;break;case"focusin":ge="focus",$=Eu;break;case"focusout":ge="blur",$=Eu;break;case"beforeblur":case"afterblur":$=Eu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=U0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=ev;break;case ap:case op:case sp:$=V0;break;case up:$=nv;break;case"scroll":case"scrollend":$=B0;break;case"wheel":$=rv;break;case"copy":case"cut":case"paste":$=G0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Ih;break;case"toggle":case"beforetoggle":$=av}var we=(n&4)!==0,$e=!we&&(e==="scroll"||e==="scrollend"),q=we?P!==null?P+"Capture":null:P;we=[];for(var L=G,Y;L!==null;){var le=L;if(Y=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||Y===null||q===null||(le=Hi(L,q),le!=null&&we.push(ya(L,le,Y))),$e)break;L=L.return}0<we.length&&(P=new $(P,ge,null,i,J),ie.push({event:P,listeners:we}))}}if((n&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",P&&i!==xu&&(ge=i.relatedTarget||i.fromElement)&&(jr(ge)||ge[Or]))break e;if(($||P)&&(P=J.window===J?J:(P=J.ownerDocument)?P.defaultView||P.parentWindow:window,$?(ge=i.relatedTarget||i.toElement,$=G,ge=ge?jr(ge):null,ge!==null&&($e=u(ge),we=ge.tag,ge!==$e||we!==5&&we!==27&&we!==6)&&(ge=null)):($=null,ge=G),$!==ge)){if(we=Uh,le="onMouseLeave",q="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(we=Ih,le="onPointerLeave",q="onPointerEnter",L="pointer"),$e=$==null?P:Bi($),Y=ge==null?P:Bi(ge),P=new we(le,L+"leave",$,i,J),P.target=$e,P.relatedTarget=Y,le=null,jr(J)===G&&(we=new we(q,L+"enter",ge,i,J),we.target=Y,we.relatedTarget=$e,le=we),$e=le,$&&ge)t:{for(we=i2,q=$,L=ge,Y=0,le=q;le;le=we(le))Y++;le=0;for(var ve=L;ve;ve=we(ve))le++;for(;0<Y-le;)q=we(q),Y--;for(;0<le-Y;)L=we(L),le--;for(;Y--;){if(q===L||L!==null&&q===L.alternate){we=q;break t}q=we(q),L=we(L)}we=null}else we=null;$!==null&&_g(ie,P,$,we,!1),ge!==null&&$e!==null&&_g(ie,$e,ge,we,!0)}}e:{if(P=G?Bi(G):window,$=P.nodeName&&P.nodeName.toLowerCase(),$==="select"||$==="input"&&P.type==="file")var qe=$h;else if(Qh(P))if(Fh)qe=gv;else{qe=pv;var xe=hv}else $=P.nodeName,!$||$.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?G&&yu(G.elementType)&&(qe=$h):qe=mv;if(qe&&(qe=qe(e,G))){Zh(ie,qe,i,J);break e}xe&&xe(e,P,G),e==="focusout"&&G&&P.type==="number"&&G.memoizedProps.value!=null&&gu(P,"number",P.value)}switch(xe=G?Bi(G):window,e){case"focusin":(Qh(xe)||xe.contentEditable==="true")&&(Yr=xe,Nu=G,Xi=null);break;case"focusout":Xi=Nu=Yr=null;break;case"mousedown":_u=!0;break;case"contextmenu":case"mouseup":case"dragend":_u=!1,rp(ie,i,J);break;case"selectionchange":if(xv)break;case"keydown":case"keyup":rp(ie,i,J)}var Te;if(Au)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Vr?Ph(e,i)&&(De="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(De="onCompositionStart");De&&(Vh&&i.locale!=="ko"&&(Vr||De!=="onCompositionStart"?De==="onCompositionEnd"&&Vr&&(Te=Bh()):(wl=J,wu="value"in wl?wl.value:wl.textContent,Vr=!0)),xe=Wo(G,De),0<xe.length&&(De=new qh(De,e,null,i,J),ie.push({event:De,listeners:xe}),Te?De.data=Te:(Te=Xh(i),Te!==null&&(De.data=Te)))),(Te=sv?uv(e,i):cv(e,i))&&(De=Wo(G,"onBeforeInput"),0<De.length&&(xe=new qh("onBeforeInput","beforeinput",null,i,J),ie.push({event:xe,listeners:De}),xe.data=Te)),t2(ie,e,G,i,J)}Mg(ie,n)})}function ya(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Wo(e,n){for(var i=n+"Capture",o=[];e!==null;){var h=e,m=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||m===null||(h=Hi(e,i),h!=null&&o.unshift(ya(e,h,m)),h=Hi(e,n),h!=null&&o.push(ya(e,h,m))),e.tag===3)return o;e=e.return}return[]}function i2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _g(e,n,i,o,h){for(var m=n._reactName,v=[];i!==null&&i!==o;){var C=i,j=C.alternate,G=C.stateNode;if(C=C.tag,j!==null&&j===o)break;C!==5&&C!==26&&C!==27||G===null||(j=G,h?(G=Hi(i,m),G!=null&&v.unshift(ya(i,G,j))):h||(G=Hi(i,m),G!=null&&v.push(ya(i,G,j)))),i=i.return}v.length!==0&&e.push({event:n,listeners:v})}var a2=/\r\n?/g,o2=/\u0000|\uFFFD/g;function Og(e){return(typeof e=="string"?e:""+e).replace(a2,`
|
|
49
|
+
`).replace(o2,"")}function jg(e,n){return n=Og(n),Og(e)===n}function Ze(e,n,i,o,h,m){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Ur(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Ur(e,""+o);break;case"className":no(e,"class",o);break;case"tabIndex":no(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":no(e,i,o);break;case"style":jh(e,o,m);break;case"data":if(n!=="object"){no(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=ro(""+o),e.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(i,"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 m=="function"&&(i==="formAction"?(n!=="input"&&Ze(e,n,"name",h.name,h,null),Ze(e,n,"formEncType",h.formEncType,h,null),Ze(e,n,"formMethod",h.formMethod,h,null),Ze(e,n,"formTarget",h.formTarget,h,null)):(Ze(e,n,"encType",h.encType,h,null),Ze(e,n,"method",h.method,h,null),Ze(e,n,"target",h.target,h,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=ro(""+o),e.setAttribute(i,o);break;case"onClick":o!=null&&(e.onclick=Fn);break;case"onScroll":o!=null&&_e("scroll",e);break;case"onScrollEnd":o!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(h.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}i=ro(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""+o):e.removeAttribute(i);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":o===!0?e.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,o):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(i,o):e.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(i):e.setAttribute(i,o);break;case"popover":_e("beforetoggle",e),_e("toggle",e),to(e,"popover",o);break;case"xlinkActuate":$n(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":$n(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":$n(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":$n(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":$n(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":$n(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":$n(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":$n(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":$n(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":to(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=D0.get(i)||i,to(e,i,o))}}function lf(e,n,i,o,h,m){switch(i){case"style":jh(e,o,m);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(h.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"children":typeof o=="string"?Ur(e,o):(typeof o=="number"||typeof o=="bigint")&&Ur(e,""+o);break;case"onScroll":o!=null&&_e("scroll",e);break;case"onScrollEnd":o!=null&&_e("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Fn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Eh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(h=i.endsWith("Capture"),n=i.slice(2,h?i.length-7:void 0),m=e[Yt]||null,m=m!=null?m[i]:null,typeof m=="function"&&e.removeEventListener(n,m,h),typeof o=="function")){typeof m!="function"&&m!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,o,h);break e}i in e?e[i]=o:o===!0?e.setAttribute(i,""):to(e,i,o)}}}function Ot(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var o=!1,h=!1,m;for(m in i)if(i.hasOwnProperty(m)){var v=i[m];if(v!=null)switch(m){case"src":o=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ze(e,n,m,v,i,null)}}h&&Ze(e,n,"srcSet",i.srcSet,i,null),o&&Ze(e,n,"src",i.src,i,null);return;case"input":_e("invalid",e);var C=m=v=h=null,j=null,G=null;for(o in i)if(i.hasOwnProperty(o)){var J=i[o];if(J!=null)switch(o){case"name":h=J;break;case"type":v=J;break;case"checked":j=J;break;case"defaultChecked":G=J;break;case"value":m=J;break;case"defaultValue":C=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,n));break;default:Ze(e,n,o,J,i,null)}}Mh(e,m,C,j,G,v,h,!1);return;case"select":_e("invalid",e),o=v=m=null;for(h in i)if(i.hasOwnProperty(h)&&(C=i[h],C!=null))switch(h){case"value":m=C;break;case"defaultValue":v=C;break;case"multiple":o=C;default:Ze(e,n,h,C,i,null)}n=m,i=v,e.multiple=!!o,n!=null?Hr(e,!!o,n,!1):i!=null&&Hr(e,!!o,i,!0);return;case"textarea":_e("invalid",e),m=h=o=null;for(v in i)if(i.hasOwnProperty(v)&&(C=i[v],C!=null))switch(v){case"value":o=C;break;case"defaultValue":h=C;break;case"children":m=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(a(91));break;default:Ze(e,n,v,C,i,null)}_h(e,o,h,m);return;case"option":for(j in i)if(i.hasOwnProperty(j)&&(o=i[j],o!=null))switch(j){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ze(e,n,j,o,i,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(o=0;o<ga.length;o++)_e(ga[o],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in i)if(i.hasOwnProperty(G)&&(o=i[G],o!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ze(e,n,G,o,i,null)}return;default:if(yu(n)){for(J in i)i.hasOwnProperty(J)&&(o=i[J],o!==void 0&&lf(e,n,J,o,i,void 0));return}}for(C in i)i.hasOwnProperty(C)&&(o=i[C],o!=null&&Ze(e,n,C,o,i,null))}function s2(e,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,m=null,v=null,C=null,j=null,G=null,J=null;for($ in i){var ie=i[$];if(i.hasOwnProperty($)&&ie!=null)switch($){case"checked":break;case"value":break;case"defaultValue":j=ie;default:o.hasOwnProperty($)||Ze(e,n,$,null,o,ie)}}for(var P in o){var $=o[P];if(ie=i[P],o.hasOwnProperty(P)&&($!=null||ie!=null))switch(P){case"type":m=$;break;case"name":h=$;break;case"checked":G=$;break;case"defaultChecked":J=$;break;case"value":v=$;break;case"defaultValue":C=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,n));break;default:$!==ie&&Ze(e,n,P,$,o,ie)}}mu(e,v,C,j,G,J,m,h);return;case"select":$=v=C=P=null;for(m in i)if(j=i[m],i.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":$=j;default:o.hasOwnProperty(m)||Ze(e,n,m,null,o,j)}for(h in o)if(m=o[h],j=i[h],o.hasOwnProperty(h)&&(m!=null||j!=null))switch(h){case"value":P=m;break;case"defaultValue":C=m;break;case"multiple":v=m;default:m!==j&&Ze(e,n,h,m,o,j)}n=C,i=v,o=$,P!=null?Hr(e,!!i,P,!1):!!o!=!!i&&(n!=null?Hr(e,!!i,n,!0):Hr(e,!!i,i?[]:"",!1));return;case"textarea":$=P=null;for(C in i)if(h=i[C],i.hasOwnProperty(C)&&h!=null&&!o.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:Ze(e,n,C,null,o,h)}for(v in o)if(h=o[v],m=i[v],o.hasOwnProperty(v)&&(h!=null||m!=null))switch(v){case"value":P=h;break;case"defaultValue":$=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==m&&Ze(e,n,v,h,o,m)}Nh(e,P,$);return;case"option":for(var ge in i)if(P=i[ge],i.hasOwnProperty(ge)&&P!=null&&!o.hasOwnProperty(ge))switch(ge){case"selected":e.selected=!1;break;default:Ze(e,n,ge,null,o,P)}for(j in o)if(P=o[j],$=i[j],o.hasOwnProperty(j)&&P!==$&&(P!=null||$!=null))switch(j){case"selected":e.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:Ze(e,n,j,P,o,$)}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 we in i)P=i[we],i.hasOwnProperty(we)&&P!=null&&!o.hasOwnProperty(we)&&Ze(e,n,we,null,o,P);for(G in o)if(P=o[G],$=i[G],o.hasOwnProperty(G)&&P!==$&&(P!=null||$!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(a(137,n));break;default:Ze(e,n,G,P,o,$)}return;default:if(yu(n)){for(var $e in i)P=i[$e],i.hasOwnProperty($e)&&P!==void 0&&!o.hasOwnProperty($e)&&lf(e,n,$e,void 0,o,P);for(J in o)P=o[J],$=i[J],!o.hasOwnProperty(J)||P===$||P===void 0&&$===void 0||lf(e,n,J,P,o,$);return}}for(var q in i)P=i[q],i.hasOwnProperty(q)&&P!=null&&!o.hasOwnProperty(q)&&Ze(e,n,q,null,o,P);for(ie in o)P=o[ie],$=i[ie],!o.hasOwnProperty(ie)||P===$||P==null&&$==null||Ze(e,n,ie,P,o,$)}function Dg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function u2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var h=i[o],m=h.transferSize,v=h.initiatorType,C=h.duration;if(m&&C&&Dg(v)){for(v=0,C=h.responseEnd,o+=1;o<i.length;o++){var j=i[o],G=j.startTime;if(G>C)break;var J=j.transferSize,ie=j.initiatorType;J&&Dg(ie)&&(j=j.responseEnd,v+=J*(j<C?1:(C-G)/(j-G)))}if(--o,n+=8*(m+v)/(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 rf=null,af=null;function es(e){return e.nodeType===9?e:e.ownerDocument}function Lg(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 Bg(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 of(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 sf=null;function c2(){var e=window.event;return e&&e.type==="popstate"?e===sf?!1:(sf=e,!0):(sf=null,!1)}var Hg=typeof setTimeout=="function"?setTimeout:void 0,f2=typeof clearTimeout=="function"?clearTimeout:void 0,Ug=typeof Promise=="function"?Promise:void 0,d2=typeof queueMicrotask=="function"?queueMicrotask:typeof Ug<"u"?function(e){return Ug.resolve(null).then(e).catch(h2)}:Hg;function h2(e){setTimeout(function(){throw e})}function Ul(e){return e==="head"}function qg(e,n){var i=n,o=0;do{var h=i.nextSibling;if(e.removeChild(i),h&&h.nodeType===8)if(i=h.data,i==="/$"||i==="/&"){if(o===0){e.removeChild(h),gi(n);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")xa(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,xa(i);for(var m=i.firstChild;m;){var v=m.nextSibling,C=m.nodeName;m[Li]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=v}}else i==="body"&&xa(e.ownerDocument.body);i=h}while(i);gi(n)}function Ig(e,n){var i=e;e=0;do{var o=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=o}while(i)}function uf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":uf(i),hu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function p2(e,n,i,o){for(;e.nodeType===1;){var h=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Li])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==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(m=e.getAttribute("src"),(m!==(h.src==null?null:h.src)||e.getAttribute("type")!==(h.type==null?null:h.type)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var m=h.name==null?null:""+h.name;if(h.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=kn(e.nextSibling),e===null)break}return null}function m2(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=kn(e.nextSibling),e===null))return null;return e}function Vg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=kn(e.nextSibling),e===null))return null;return e}function cf(e){return e.data==="$?"||e.data==="$~"}function ff(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function g2(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var o=function(){n(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function kn(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 df=null;function Yg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return kn(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function Gg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function Pg(e,n,i){switch(n=es(i),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function xa(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);hu(e)}var Cn=new Map,Xg=new Set;function ts(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var dl=X.d;X.d={f:y2,r:x2,D:b2,C:v2,L:S2,m:w2,X:C2,S:k2,M:E2};function y2(){var e=dl.f(),n=Xo();return e||n}function x2(e){var n=Dr(e);n!==null&&n.tag===5&&n.type==="form"?um(n):dl.r(e)}var hi=typeof document>"u"?null:document;function Qg(e,n,i){var o=hi;if(o&&typeof n=="string"&&n){var h=gn(n);h='link[rel="'+e+'"][href="'+h+'"]',typeof i=="string"&&(h+='[crossorigin="'+i+'"]'),Xg.has(h)||(Xg.add(h),e={rel:e,crossOrigin:i,href:n},o.querySelector(h)===null&&(n=o.createElement("link"),Ot(n,"link",e),At(n),o.head.appendChild(n)))}}function b2(e){dl.D(e),Qg("dns-prefetch",e,null)}function v2(e,n){dl.C(e,n),Qg("preconnect",e,n)}function S2(e,n,i){dl.L(e,n,i);var o=hi;if(o&&e&&n){var h='link[rel="preload"][as="'+gn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(h+='[imagesrcset="'+gn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(h+='[imagesizes="'+gn(i.imageSizes)+'"]')):h+='[href="'+gn(e)+'"]';var m=h;switch(n){case"style":m=pi(e);break;case"script":m=mi(e)}Cn.has(m)||(e=y({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),Cn.set(m,e),o.querySelector(h)!==null||n==="style"&&o.querySelector(ba(m))||n==="script"&&o.querySelector(va(m))||(n=o.createElement("link"),Ot(n,"link",e),At(n),o.head.appendChild(n)))}}function w2(e,n){dl.m(e,n);var i=hi;if(i&&e){var o=n&&typeof n.as=="string"?n.as:"script",h='link[rel="modulepreload"][as="'+gn(o)+'"][href="'+gn(e)+'"]',m=h;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=mi(e)}if(!Cn.has(m)&&(e=y({rel:"modulepreload",href:e},n),Cn.set(m,e),i.querySelector(h)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(va(m)))return}o=i.createElement("link"),Ot(o,"link",e),At(o),i.head.appendChild(o)}}}function k2(e,n,i){dl.S(e,n,i);var o=hi;if(o&&e){var h=Lr(o).hoistableStyles,m=pi(e);n=n||"default";var v=h.get(m);if(!v){var C={loading:0,preload:null};if(v=o.querySelector(ba(m)))C.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},i),(i=Cn.get(m))&&hf(e,i);var j=v=o.createElement("link");At(j),Ot(j,"link",e),j._p=new Promise(function(G,J){j.onload=G,j.onerror=J}),j.addEventListener("load",function(){C.loading|=1}),j.addEventListener("error",function(){C.loading|=2}),C.loading|=4,ns(v,n,o)}v={type:"stylesheet",instance:v,count:1,state:C},h.set(m,v)}}}function C2(e,n){dl.X(e,n);var i=hi;if(i&&e){var o=Lr(i).hoistableScripts,h=mi(e),m=o.get(h);m||(m=i.querySelector(va(h)),m||(e=y({src:e,async:!0},n),(n=Cn.get(h))&&pf(e,n),m=i.createElement("script"),At(m),Ot(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(h,m))}}function E2(e,n){dl.M(e,n);var i=hi;if(i&&e){var o=Lr(i).hoistableScripts,h=mi(e),m=o.get(h);m||(m=i.querySelector(va(h)),m||(e=y({src:e,async:!0,type:"module"},n),(n=Cn.get(h))&&pf(e,n),m=i.createElement("script"),At(m),Ot(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(h,m))}}function Zg(e,n,i,o){var h=(h=pe.current)?ts(h):null;if(!h)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=pi(i.href),i=Lr(h).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=pi(i.href);var m=Lr(h).hoistableStyles,v=m.get(e);if(v||(h=h.ownerDocument||h,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,v),(m=h.querySelector(ba(e)))&&!m._p&&(v.instance=m,v.state.loading=5),Cn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Cn.set(e,i),m||T2(h,e,i,v.state))),n&&o===null)throw Error(a(528,""));return v}if(n&&o!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=mi(i),i=Lr(h).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function pi(e){return'href="'+gn(e)+'"'}function ba(e){return'link[rel="stylesheet"]['+e+"]"}function $g(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function T2(e,n,i,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),Ot(n,"link",i),At(n),e.head.appendChild(n))}function mi(e){return'[src="'+gn(e)+'"]'}function va(e){return"script[async]"+e}function Fg(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+gn(i.href)+'"]');if(o)return n.instance=o,At(o),o;var h=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),At(o),Ot(o,"style",h),ns(o,i.precedence,e),n.instance=o;case"stylesheet":h=pi(i.href);var m=e.querySelector(ba(h));if(m)return n.state.loading|=4,n.instance=m,At(m),m;o=$g(i),(h=Cn.get(h))&&hf(o,h),m=(e.ownerDocument||e).createElement("link"),At(m);var v=m;return v._p=new Promise(function(C,j){v.onload=C,v.onerror=j}),Ot(m,"link",o),n.state.loading|=4,ns(m,i.precedence,e),n.instance=m;case"script":return m=mi(i.src),(h=e.querySelector(va(m)))?(n.instance=h,At(h),h):(o=i,(h=Cn.get(m))&&(o=y({},i),pf(o,h)),e=e.ownerDocument||e,h=e.createElement("script"),At(h),Ot(h,"link",o),e.head.appendChild(h),n.instance=h);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,ns(o,i.precedence,e));return n.instance}function ns(e,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=o.length?o[o.length-1]:null,m=h,v=0;v<o.length;v++){var C=o[v];if(C.dataset.precedence===n)m=C;else if(m!==h)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function hf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function pf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var ls=null;function Kg(e,n,i){if(ls===null){var o=new Map,h=ls=new Map;h.set(i,o)}else h=ls,o=h.get(i),o||(o=new Map,h.set(i,o));if(o.has(e))return o;for(o.set(e,null),i=i.getElementsByTagName(e),h=0;h<i.length;h++){var m=i[h];if(!(m[Li]||m[zt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(n)||"";v=e+v;var C=o.get(v);C?C.push(m):o.set(v,[m])}}return o}function Jg(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function A2(e,n,i){if(i===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 Wg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function R2(e,n,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var h=pi(o.href),m=n.querySelector(ba(h));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=rs.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=m,At(m);return}m=n.ownerDocument||n,o=$g(o),(h=Cn.get(h))&&hf(o,h),m=m.createElement("link"),At(m);var v=m;v._p=new Promise(function(C,j){v.onload=C,v.onerror=j}),Ot(m,"link",o),i.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=rs.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var mf=0;function z2(e,n){return e.stylesheets&&e.count===0&&as(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var o=setTimeout(function(){if(e.stylesheets&&as(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+n);0<e.imgBytes&&mf===0&&(mf=62500*u2());var h=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&as(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>mf?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(h)}}:null}function rs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)as(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var is=null;function as(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,is=new Map,n.forEach(M2,e),is=null,rs.call(e))}function M2(e,n){if(!(n.state.loading&4)){var i=is.get(e);if(i)var o=i.get(null);else{i=new Map,is.set(e,i);for(var h=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<h.length;m++){var v=h[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),o=v)}o&&i.set(null,o)}h=n.instance,v=h.getAttribute("data-precedence"),m=i.get(v)||o,m===o&&i.set(null,h),i.set(v,h),this.count++,o=rs.bind(this),h.addEventListener("load",o),h.addEventListener("error",o),m?m.parentNode.insertBefore(h,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(h,e.firstChild)),n.state.loading|=4}}var Sa={$$typeof:M,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function N2(e,n,i,o,h,m,v,C,j){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=St(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=St(0),this.hiddenUpdates=St(null),this.identifierPrefix=o,this.onUncaughtError=h,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function e1(e,n,i,o,h,m,v,C,j,G,J,ie){return e=new N2(e,n,i,v,j,G,J,ie,C),n=1,m===!0&&(n|=24),m=nn(3,null,null,n),e.current=m,m.stateNode=e,n=Qu(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:o,isDehydrated:i,cache:n},Ku(m),e}function t1(e){return e?(e=Xr,e):Xr}function n1(e,n,i,o,h,m){h=t1(h),o.context===null?o.context=h:o.pendingContext=h,o=Rl(n),o.payload={element:i},m=m===void 0?null:m,m!==null&&(o.callback=m),i=zl(e,o,n),i!==null&&($t(i,e,n),Wi(i,e,n))}function l1(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function gf(e,n){l1(e,n),(e=e.alternate)&&l1(e,n)}function r1(e){if(e.tag===13||e.tag===31){var n=sr(e,67108864);n!==null&&$t(n,e,67108864),gf(e,67108864)}}function i1(e){if(e.tag===13||e.tag===31){var n=sn();n=cu(n);var i=sr(e,n);i!==null&&$t(i,e,n),gf(e,n)}}var os=!0;function _2(e,n,i,o){var h=B.T;B.T=null;var m=X.p;try{X.p=2,yf(e,n,i,o)}finally{X.p=m,B.T=h}}function O2(e,n,i,o){var h=B.T;B.T=null;var m=X.p;try{X.p=8,yf(e,n,i,o)}finally{X.p=m,B.T=h}}function yf(e,n,i,o){if(os){var h=xf(o);if(h===null)nf(e,n,o,ss,i),o1(e,o);else if(D2(h,e,n,i,o))o.stopPropagation();else if(o1(e,o),n&4&&-1<j2.indexOf(e)){for(;h!==null;){var m=Dr(h);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=Zn(m.pendingLanes);if(v!==0){var C=m;for(C.pendingLanes|=2,C.entangledLanes|=2;v;){var j=1<<31-He(v);C.entanglements[1]|=j,v&=~j}qn(m),(Ve&6)===0&&(Go=bt()+500,ma(0))}}break;case 31:case 13:C=sr(m,2),C!==null&&$t(C,m,2),Xo(),gf(m,2)}if(m=xf(o),m===null&&nf(e,n,o,ss,i),m===h)break;h=m}h!==null&&o.stopPropagation()}else nf(e,n,o,null,i)}}function xf(e){return e=bu(e),bf(e)}var ss=null;function bf(e){if(ss=null,e=jr(e),e!==null){var n=u(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===31){if(e=d(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return ss=e,null}function a1(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(lr()){case W:return 2;case K:return 8;case fe:case he:return 32;case be:return 268435456;default:return 32}default:return 32}}var vf=!1,ql=null,Il=null,Vl=null,wa=new Map,ka=new Map,Yl=[],j2="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 o1(e,n){switch(e){case"focusin":case"focusout":ql=null;break;case"dragenter":case"dragleave":Il=null;break;case"mouseover":case"mouseout":Vl=null;break;case"pointerover":case"pointerout":wa.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ka.delete(n.pointerId)}}function Ca(e,n,i,o,h,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:m,targetContainers:[h]},n!==null&&(n=Dr(n),n!==null&&r1(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,h!==null&&n.indexOf(h)===-1&&n.push(h),e)}function D2(e,n,i,o,h){switch(n){case"focusin":return ql=Ca(ql,e,n,i,o,h),!0;case"dragenter":return Il=Ca(Il,e,n,i,o,h),!0;case"mouseover":return Vl=Ca(Vl,e,n,i,o,h),!0;case"pointerover":var m=h.pointerId;return wa.set(m,Ca(wa.get(m)||null,e,n,i,o,h)),!0;case"gotpointercapture":return m=h.pointerId,ka.set(m,Ca(ka.get(m)||null,e,n,i,o,h)),!0}return!1}function s1(e){var n=jr(e.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,wh(e.priority,function(){i1(i)});return}}else if(n===31){if(n=d(i),n!==null){e.blockedOn=n,wh(e.priority,function(){i1(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function us(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=xf(e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);xu=o,i.target.dispatchEvent(o),xu=null}else return n=Dr(i),n!==null&&r1(n),e.blockedOn=i,!1;n.shift()}return!0}function u1(e,n,i){us(e)&&i.delete(n)}function L2(){vf=!1,ql!==null&&us(ql)&&(ql=null),Il!==null&&us(Il)&&(Il=null),Vl!==null&&us(Vl)&&(Vl=null),wa.forEach(u1),ka.forEach(u1)}function cs(e,n){e.blockedOn===n&&(e.blockedOn=null,vf||(vf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,L2)))}var fs=null;function c1(e){fs!==e&&(fs=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){fs===e&&(fs=null);for(var n=0;n<e.length;n+=3){var i=e[n],o=e[n+1],h=e[n+2];if(typeof o!="function"){if(bf(o||i)===null)continue;break}var m=Dr(i);m!==null&&(e.splice(n,3),n-=3,yc(m,{pending:!0,data:h,method:i.method,action:o},o,h))}}))}function gi(e){function n(j){return cs(j,e)}ql!==null&&cs(ql,e),Il!==null&&cs(Il,e),Vl!==null&&cs(Vl,e),wa.forEach(n),ka.forEach(n);for(var i=0;i<Yl.length;i++){var o=Yl[i];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Yl.length&&(i=Yl[0],i.blockedOn===null);)s1(i),i.blockedOn===null&&Yl.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var h=i[o],m=i[o+1],v=h[Yt]||null;if(typeof m=="function")v||c1(i);else if(v){var C=null;if(m&&m.hasAttribute("formAction")){if(h=m,v=m[Yt]||null)C=v.formAction;else if(bf(h)!==null)continue}else C=v.action;typeof C=="function"?i[o+1]=C:(i.splice(o,3),o-=3),c1(i)}}}function f1(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(v){return h=v})},focusReset:"manual",scroll:"manual"})}function n(){h!==null&&(h(),h=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,h=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),h!==null&&(h(),h=null)}}}function Sf(e){this._internalRoot=e}ds.prototype.render=Sf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,o=sn();n1(i,o,e,n,null,null)},ds.prototype.unmount=Sf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;n1(e.current,2,null,e,null,null),Xo(),n[Or]=null}};function ds(e){this._internalRoot=e}ds.prototype.unstable_scheduleHydration=function(e){if(e){var n=Sh();e={blockedOn:null,target:e,priority:n};for(var i=0;i<Yl.length&&n!==0&&n<Yl[i].priority;i++);Yl.splice(i,0,e),i===0&&s1(e)}};var d1=l.version;if(d1!=="19.2.4")throw Error(a(527,d1,"19.2.4"));X.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=f(n),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var B2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{ot=hs.inject(B2),Fe=hs}catch{}}return Ta.createRoot=function(e,n){if(!s(e))throw Error(a(299));var i=!1,o="",h=bm,m=vm,v=Sm;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(h=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError)),n=e1(e,1,!1,null,null,i,o,null,h,m,v,f1),e[Or]=n.current,tf(e),new Sf(n)},Ta.hydrateRoot=function(e,n,i){if(!s(e))throw Error(a(299));var o=!1,h="",m=bm,v=vm,C=Sm,j=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(C=i.onRecoverableError),i.formState!==void 0&&(j=i.formState)),n=e1(e,1,!0,n,i??null,o,h,j,m,v,C,f1),n.context=t1(null),i=n.current,o=sn(),o=cu(o),h=Rl(o),h.callback=null,zl(i,h,o),i=o,n.current.lanes=i,Tt(n,i),qn(n),e[Or]=n.current,tf(e),new ds(n)},Ta.version="19.2.4",Ta}var w1;function $2(){if(w1)return Cf.exports;w1=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(l){console.error(l)}}return t(),Cf.exports=Z2(),Cf.exports}var F2=$2();function Qy(t){var l,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(l=0;l<s;l++)t[l]&&(r=Qy(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function K2(){for(var t,l,r=0,a="",s=arguments.length;r<s;r++)(t=arguments[r])&&(l=Qy(t))&&(a&&(a+=" "),a+=l);return a}const zd="-",J2=t=>{const l=eS(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:c=>{const d=c.split(zd);return d[0]===""&&d.length!==1&&d.shift(),Zy(d,l)||W2(c)},getConflictingClassGroupIds:(c,d)=>{const p=r[c]||[];return d&&a[c]?[...p,...a[c]]:p}}},Zy=(t,l)=>{var c;if(t.length===0)return l.classGroupId;const r=t[0],a=l.nextPart.get(r),s=a?Zy(t.slice(1),a):void 0;if(s)return s;if(l.validators.length===0)return;const u=t.join(zd);return(c=l.validators.find(({validator:d})=>d(u)))==null?void 0:c.classGroupId},k1=/^\[(.+)\]$/,W2=t=>{if(k1.test(t)){const l=k1.exec(t)[1],r=l==null?void 0:l.substring(0,l.indexOf(":"));if(r)return"arbitrary.."+r}},eS=t=>{const{theme:l,prefix:r}=t,a={nextPart:new Map,validators:[]};return nS(Object.entries(t.classGroups),r).forEach(([u,c])=>{nd(c,a,u,l)}),a},nd=(t,l,r,a)=>{t.forEach(s=>{if(typeof s=="string"){const u=s===""?l:C1(l,s);u.classGroupId=r;return}if(typeof s=="function"){if(tS(s)){nd(s(a),l,r,a);return}l.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([u,c])=>{nd(c,C1(l,u),r,a)})})},C1=(t,l)=>{let r=t;return l.split(zd).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},tS=t=>t.isThemeGetter,nS=(t,l)=>l?t.map(([r,a])=>{const s=a.map(u=>typeof u=="string"?l+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([c,d])=>[l+c,d])):u);return[r,s]}):t,lS=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,r=new Map,a=new Map;const s=(u,c)=>{r.set(u,c),l++,l>t&&(l=0,a=r,r=new Map)};return{get(u){let c=r.get(u);if(c!==void 0)return c;if((c=a.get(u))!==void 0)return s(u,c),c},set(u,c){r.has(u)?r.set(u,c):s(u,c)}}},$y="!",rS=t=>{const{separator:l,experimentalParseClassName:r}=t,a=l.length===1,s=l[0],u=l.length,c=d=>{const p=[];let f=0,g=0,y;for(let R=0;R<d.length;R++){let E=d[R];if(f===0){if(E===s&&(a||d.slice(R,R+u)===l)){p.push(d.slice(g,R)),g=R+u;continue}if(E==="/"){y=R;continue}}E==="["?f++:E==="]"&&f--}const x=p.length===0?d:d.substring(g),b=x.startsWith($y),S=b?x.substring(1):x,T=y&&y>g?y-g:void 0;return{modifiers:p,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:T}};return r?d=>r({className:d,parseClassName:c}):c},iS=t=>{if(t.length<=1)return t;const l=[];let r=[];return t.forEach(a=>{a[0]==="["?(l.push(...r.sort(),a),r=[]):r.push(a)}),l.push(...r.sort()),l},aS=t=>({cache:lS(t.cacheSize),parseClassName:rS(t),...J2(t)}),oS=/\s+/,sS=(t,l)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s}=l,u=[],c=t.trim().split(oS);let d="";for(let p=c.length-1;p>=0;p-=1){const f=c[p],{modifiers:g,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:b}=r(f);let S=!!b,T=a(S?x.substring(0,b):x);if(!T){if(!S){d=f+(d.length>0?" "+d:d);continue}if(T=a(x),!T){d=f+(d.length>0?" "+d:d);continue}S=!1}const R=iS(g).join(":"),E=y?R+$y:R,_=E+T;if(u.includes(_))continue;u.push(_);const M=s(T,S);for(let D=0;D<M.length;++D){const I=M[D];u.push(E+I)}d=f+(d.length>0?" "+d:d)}return d};function uS(){let t=0,l,r,a="";for(;t<arguments.length;)(l=arguments[t++])&&(r=Fy(l))&&(a&&(a+=" "),a+=r);return a}const Fy=t=>{if(typeof t=="string")return t;let l,r="";for(let a=0;a<t.length;a++)t[a]&&(l=Fy(t[a]))&&(r&&(r+=" "),r+=l);return r};function cS(t,...l){let r,a,s,u=c;function c(p){const f=l.reduce((g,y)=>y(g),t());return r=aS(f),a=r.cache.get,s=r.cache.set,u=d,d(p)}function d(p){const f=a(p);if(f)return f;const g=sS(p,r);return s(p,g),g}return function(){return u(uS.apply(null,arguments))}}const rt=t=>{const l=r=>r[t]||[];return l.isThemeGetter=!0,l},Ky=/^\[(?:([a-z-]+):)?(.+)\]$/i,fS=/^\d+\/\d+$/,dS=new Set(["px","full","screen"]),hS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pS=/\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$/,mS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hl=t=>Ci(t)||dS.has(t)||fS.test(t),Pl=t=>Ni(t,"length",ES),Ci=t=>!!t&&!Number.isNaN(Number(t)),Rf=t=>Ni(t,"number",Ci),Aa=t=>!!t&&Number.isInteger(Number(t)),xS=t=>t.endsWith("%")&&Ci(t.slice(0,-1)),Ae=t=>Ky.test(t),Xl=t=>hS.test(t),bS=new Set(["length","size","percentage"]),vS=t=>Ni(t,bS,Jy),SS=t=>Ni(t,"position",Jy),wS=new Set(["image","url"]),kS=t=>Ni(t,wS,AS),CS=t=>Ni(t,"",TS),Ra=()=>!0,Ni=(t,l,r)=>{const a=Ky.exec(t);return a?a[1]?typeof l=="string"?a[1]===l:l.has(a[1]):r(a[2]):!1},ES=t=>pS.test(t)&&!mS.test(t),Jy=()=>!1,TS=t=>gS.test(t),AS=t=>yS.test(t),RS=()=>{const t=rt("colors"),l=rt("spacing"),r=rt("blur"),a=rt("brightness"),s=rt("borderColor"),u=rt("borderRadius"),c=rt("borderSpacing"),d=rt("borderWidth"),p=rt("contrast"),f=rt("grayscale"),g=rt("hueRotate"),y=rt("invert"),x=rt("gap"),b=rt("gradientColorStops"),S=rt("gradientColorStopPositions"),T=rt("inset"),R=rt("margin"),E=rt("opacity"),_=rt("padding"),M=rt("saturate"),D=rt("scale"),I=rt("sepia"),N=rt("skew"),H=rt("space"),F=rt("translate"),Z=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],re=()=>["auto",Ae,l],V=()=>[Ae,l],ue=()=>["",hl,Pl],ne=()=>["auto",Ci,Ae],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],oe=()=>["","0",Ae],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>[Ci,Ae];return{cacheSize:500,separator:":",theme:{colors:[Ra],spacing:[hl,Pl],blur:["none","",Xl,Ae],brightness:O(),borderColor:[t],borderRadius:["none","","full",Xl,Ae],borderSpacing:V(),borderWidth:ue(),contrast:O(),grayscale:oe(),hueRotate:O(),invert:oe(),gap:V(),gradientColorStops:[t],gradientColorStopPositions:[xS,Pl],inset:re(),margin:re(),opacity:O(),padding:V(),saturate:O(),scale:O(),sepia:oe(),skew:O(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",Ae]}],container:["container"],columns:[{columns:[Xl]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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"],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:[...ee(),Ae]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Aa,Ae]}],basis:[{basis:re()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ae]}],grow:[{grow:oe()}],shrink:[{shrink:oe()}],order:[{order:["first","last","none",Aa,Ae]}],"grid-cols":[{"grid-cols":[Ra]}],"col-start-end":[{col:["auto",{span:["full",Aa,Ae]},Ae]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[Ra]}],"row-start-end":[{row:["auto",{span:[Aa,Ae]},Ae]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ae]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ae,l]}],"min-w":[{"min-w":[Ae,l,"min","max","fit"]}],"max-w":[{"max-w":[Ae,l,"none","full","min","max","fit","prose",{screen:[Xl]},Xl]}],h:[{h:[Ae,l,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ae,l,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ae,l,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ae,l,"auto","min","max","fit"]}],"font-size":[{text:["base",Xl,Pl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rf]}],"font-family":[{font:[Ra]}],"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:["tighter","tight","normal","wide","wider","widest",Ae]}],"line-clamp":[{"line-clamp":["none",Ci,Rf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hl,Ae]}],"list-image":[{"list-image":["none",Ae]}],"list-style-type":[{list:["none","disc","decimal",Ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hl,Pl]}],"underline-offset":[{"underline-offset":["auto",hl,Ae]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),SS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kS]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:B()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[hl,Ae]}],"outline-w":[{outline:[hl,Pl]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[hl,Pl]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Xl,CS]}],"shadow-color":[{shadow:[Ra]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Xl,Ae]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[y]}],saturate:[{saturate:[M]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ae]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",Ae]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[Aa,Ae]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ae]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],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",Ae]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",Ae]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[hl,Pl,Rf]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},zS=cS(RS);function ye(...t){return zS(K2(t))}const zf={base:["inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md","text-sm font-medium transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ann-accent focus-visible:ring-offset-1 focus-visible:ring-offset-ann-bg","disabled:pointer-events-none disabled:opacity-50","[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"].join(" "),variant:{default:["bg-ann-text text-ann-bg","hover:bg-ann-text/90","shadow-ann-sm"].join(" "),destructive:["bg-ann-danger text-white","hover:bg-ann-danger/90","shadow-ann-sm"].join(" "),outline:["border border-ann-border bg-transparent","hover:bg-ann-bg-hover hover:border-ann-border-hover","text-ann-text-secondary hover:text-ann-text"].join(" "),secondary:["bg-ann-bg-elevated text-ann-text-secondary","hover:bg-ann-bg-surface hover:text-ann-text","border border-ann-border"].join(" "),ghost:["bg-transparent text-ann-text-secondary","hover:bg-ann-bg-hover hover:text-ann-text"].join(" "),link:["text-ann-accent underline-offset-4","hover:underline hover:text-ann-accent-hover"].join(" "),brand:["bg-ann-accent text-white","hover:bg-ann-accent-hover","shadow-ann-sm"].join(" ")},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",xs:"h-6 px-2 text-xs rounded",lg:"h-10 px-6",icon:"h-8 w-8"}},$l=k.forwardRef(({className:t,variant:l="default",size:r="default",...a},s)=>w.jsx("button",{className:ye(zf.base,zf.variant[l],zf.size[r],t),ref:s,...a}));$l.displayName="Button";const Wy=k.forwardRef(({className:t,type:l,variant:r="default",...a},s)=>w.jsx("input",{type:l,className:ye("flex h-9 w-full rounded-md px-3 py-1.5 text-sm transition-colors","placeholder:text-ann-text-muted","focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50",r==="default"&&["bg-ann-bg-secondary border border-ann-border","text-ann-text","focus-visible:ring-1 focus-visible:ring-ann-accent focus-visible:border-transparent"],r==="ghost"&&["bg-transparent border-none","text-ann-text","focus-visible:bg-ann-bg-hover"],t),ref:s,...a}));Wy.displayName="Input";function MS({className:t,...l}){return w.jsx("textarea",{"data-slot":"textarea",className:ye("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...l})}const NS=k.forwardRef(({className:t,elevated:l=!1,...r},a)=>w.jsx("div",{ref:a,className:ye("rounded-lg bg-ann-bg-secondary border border-ann-border","text-ann-text",l&&"shadow-ann-md",t),...r}));NS.displayName="Card";const _S=k.forwardRef(({className:t,...l},r)=>w.jsx("div",{ref:r,className:ye("flex flex-col space-y-1.5 p-4",t),...l}));_S.displayName="CardHeader";const OS=k.forwardRef(({className:t,...l},r)=>w.jsx("h3",{ref:r,className:ye("text-sm font-semibold text-ann-text leading-none tracking-tight",t),...l}));OS.displayName="CardTitle";const jS=k.forwardRef(({className:t,...l},r)=>w.jsx("p",{ref:r,className:ye("text-xs text-ann-text-muted",t),...l}));jS.displayName="CardDescription";const DS=k.forwardRef(({className:t,...l},r)=>w.jsx("div",{ref:r,className:ye("p-4 pt-0",t),...l}));DS.displayName="CardContent";const LS=k.forwardRef(({className:t,...l},r)=>w.jsx("div",{ref:r,className:ye("flex items-center p-4 pt-0",t),...l}));LS.displayName="CardFooter";const BS=()=>{},On=typeof document<"u"?k.useLayoutEffect:BS,E1={};function Ya(t,l){const r=k.useRef(E1);return r.current===E1&&(r.current=t(l)),r}const Mf=Vs[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],HS=Mf&&Mf!==k.useLayoutEffect?Mf:t=>t();function ml(t){const l=Ya(US).current;return l.next=t,HS(l.effect),l.trampoline}function US(){const t={next:void 0,callback:qS,trampoline:(...l)=>{var r;return(r=t.callback)==null?void 0:r.call(t,...l)},effect:()=>{t.callback=t.next}};return t}function qS(){}function Ys(t,...l){const r=new URL("https://base-ui.com/production-error");return r.searchParams.set("code",t.toString()),l.forEach(a=>r.searchParams.append("args[]",a)),`Base UI error #${t}; visit ${r} for the full message.`}function Rs(t,l,r,a){const s=Ya(ex).current;return VS(s,t,l,r,a)&&tx(s,[t,l,r,a]),s.callback}function IS(t){const l=Ya(ex).current;return YS(l,t)&&tx(l,t),l.callback}function ex(){return{callback:null,cleanup:null,refs:[]}}function VS(t,l,r,a,s){return t.refs[0]!==l||t.refs[1]!==r||t.refs[2]!==a||t.refs[3]!==s}function YS(t,l){return t.refs.length!==l.length||t.refs.some((r,a)=>r!==l[a])}function tx(t,l){if(t.refs=l,l.every(r=>r==null)){t.callback=null;return}t.callback=r=>{if(t.cleanup&&(t.cleanup(),t.cleanup=null),r!=null){const a=Array(l.length).fill(null);for(let s=0;s<l.length;s+=1){const u=l[s];if(u!=null)switch(typeof u){case"function":{const c=u(r);typeof c=="function"&&(a[s]=c);break}case"object":{u.current=r;break}}}t.cleanup=()=>{for(let s=0;s<l.length;s+=1){const u=l[s];if(u!=null)switch(typeof u){case"function":{const c=a[s];typeof c=="function"?c():u(null);break}case"object":{u.current=null;break}}}}}}}const GS=parseInt(k.version,10);function PS(t){return GS>=t}function T1(t){if(!k.isValidElement(t))return null;const l=t,r=l.props;return(PS(19)?r==null?void 0:r.ref:l.ref)??null}function ld(t,l){if(t&&!l)return t;if(!t&&l)return l;if(t||l)return{...t,...l}}function XS(t,l){const r={};for(const a in t){const s=t[a];if(l!=null&&l.hasOwnProperty(a)){const u=l[a](s);u!=null&&Object.assign(r,u);continue}s===!0?r[`data-${a.toLowerCase()}`]="":s&&(r[`data-${a.toLowerCase()}`]=s.toString())}return r}function QS(t,l){return typeof t=="function"?t(l):t}function ZS(t,l){return typeof t=="function"?t(l):t}const Da={};function nx(t,l,r,a,s){let u={...rd(t,Da)};return l&&(u=ks(u,l)),r&&(u=ks(u,r)),a&&(u=ks(u,a)),u}function $S(t){if(t.length===0)return Da;if(t.length===1)return rd(t[0],Da);let l={...rd(t[0],Da)};for(let r=1;r<t.length;r+=1)l=ks(l,t[r]);return l}function ks(t,l){return lx(l)?l(t):FS(t,l)}function FS(t,l){if(!l)return t;for(const r in l){const a=l[r];switch(r){case"style":{t[r]=ld(t.style,a);break}case"className":{t[r]=rx(t.className,a);break}default:KS(r,a)?t[r]=JS(t[r],a):t[r]=a}}return t}function KS(t,l){const r=t.charCodeAt(0),a=t.charCodeAt(1),s=t.charCodeAt(2);return r===111&&a===110&&s>=65&&s<=90&&(typeof l=="function"||typeof l>"u")}function lx(t){return typeof t=="function"}function rd(t,l){return lx(t)?t(l):t??Da}function JS(t,l){return l?t?r=>{if(WS(r)){const s=r;id(s);const u=l(s);return s.baseUIHandlerPrevented||t==null||t(s),u}const a=l(r);return t==null||t(r),a}:l:t}function id(t){return t.preventBaseUIHandler=()=>{t.baseUIHandlerPrevented=!0},t}function rx(t,l){return l?t?l+" "+t:l:t}function WS(t){return t!=null&&typeof t=="object"&&"nativeEvent"in t}const ad=Object.freeze([]),Zl=Object.freeze({});function Gs(t,l,r={}){const a=l.render,s=ew(l,r);if(r.enabled===!1)return null;const u=r.state??Zl;return tw(t,a,s,u)}function ew(t,l={}){const{className:r,style:a,render:s}=t,{state:u=Zl,ref:c,props:d,stateAttributesMapping:p,enabled:f=!0}=l,g=f?QS(r,u):void 0,y=f?ZS(a,u):void 0,x=f?XS(u,p):Zl,b=f?ld(x,Array.isArray(d)?$S(d):d)??Zl:Zl;return typeof document<"u"&&(f?Array.isArray(c)?b.ref=IS([b.ref,T1(s),...c]):b.ref=Rs(b.ref,T1(s),c):Rs(null,null)),f?(g!==void 0&&(b.className=rx(b.className,g)),y!==void 0&&(b.style=ld(b.style,y)),b):Zl}function tw(t,l,r,a){if(l){if(typeof l=="function")return l(r,a);const s=nx(r,l.props);return s.ref=r.ref,k.cloneElement(l,s)}if(t&&typeof t=="string")return nw(t,r);throw new Error(Ys(8))}function nw(t,l){return t==="button"?k.createElement("button",{type:"button",...l,key:l.key}):t==="img"?k.createElement("img",{alt:"",...l,key:l.key}):k.createElement(t,l)}const ix=k.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function lw(){return k.useContext(ix)}function rw(t){const{children:l,elementsRef:r,labelsRef:a,onMapChange:s}=t,u=ml(s),c=k.useRef(0),d=Ya(aw).current,p=Ya(iw).current,[f,g]=k.useState(0),y=k.useRef(f),x=ml((E,_)=>{p.set(E,_??null),y.current+=1,g(y.current)}),b=ml(E=>{p.delete(E),y.current+=1,g(y.current)}),S=k.useMemo(()=>{const E=new Map;return Array.from(p.keys()).filter(M=>M.isConnected).sort(ow).forEach((M,D)=>{const I=p.get(M)??{};E.set(M,{...I,index:D})}),E},[p,f]);On(()=>{if(typeof MutationObserver!="function"||S.size===0)return;const E=new MutationObserver(_=>{const M=new Set,D=I=>M.has(I)?M.delete(I):M.add(I);_.forEach(I=>{I.removedNodes.forEach(D),I.addedNodes.forEach(D)}),M.size===0&&(y.current+=1,g(y.current))});return S.forEach((_,M)=>{M.parentElement&&E.observe(M.parentElement,{childList:!0})}),()=>{E.disconnect()}},[S]),On(()=>{y.current===f&&(r.current.length!==S.size&&(r.current.length=S.size),a&&a.current.length!==S.size&&(a.current.length=S.size),c.current=S.size),u(S)},[u,S,r,a,f]),On(()=>()=>{r.current=[]},[r]),On(()=>()=>{a&&(a.current=[])},[a]);const T=ml(E=>(d.add(E),()=>{d.delete(E)}));On(()=>{d.forEach(E=>E(S))},[d,S]);const R=k.useMemo(()=>({register:x,unregister:b,subscribeMapChange:T,elementsRef:r,labelsRef:a,nextIndexRef:c}),[x,b,T,r,a,c]);return w.jsx(ix.Provider,{value:R,children:l})}function iw(){return new Map}function aw(){return new Set}function ow(t,l){const r=t.compareDocumentPosition(l);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}const sw=k.createContext(void 0);function uw(){const t=k.useContext(sw);return(t==null?void 0:t.direction)??"ltr"}const cw=k.createContext(void 0);function Ga(){const t=k.useContext(cw);if(t===void 0)throw new Error(Ys(64));return t}let fw=(function(t){return t.activationDirection="data-activation-direction",t.orientation="data-orientation",t})({});const Md={tabActivationDirection:t=>({[fw.activationDirection]:t})};function Ps(){return typeof window<"u"}function _i(t){return ax(t)?(t.nodeName||"").toLowerCase():"#document"}function dn(t){var l;return(t==null||(l=t.ownerDocument)==null?void 0:l.defaultView)||window}function Pn(t){var l;return(l=(ax(t)?t.ownerDocument:t.document)||window.document)==null?void 0:l.documentElement}function ax(t){return Ps()?t instanceof Node||t instanceof dn(t).Node:!1}function Dn(t){return Ps()?t instanceof Element||t instanceof dn(t).Element:!1}function Kt(t){return Ps()?t instanceof HTMLElement||t instanceof dn(t).HTMLElement:!1}function od(t){return!Ps()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dn(t).ShadowRoot}const dw=new Set(["inline","contents"]);function $a(t){const{overflow:l,overflowX:r,overflowY:a,display:s}=Tn(t);return/auto|scroll|overlay|hidden|clip/.test(l+a+r)&&!dw.has(s)}const hw=new Set(["table","td","th"]);function pw(t){return hw.has(_i(t))}const mw=[":popover-open",":modal"];function Xs(t){return mw.some(l=>{try{return t.matches(l)}catch{return!1}})}const gw=["transform","translate","scale","rotate","perspective"],yw=["transform","translate","scale","rotate","perspective","filter"],xw=["paint","layout","strict","content"];function Nd(t){const l=_d(),r=Dn(t)?Tn(t):t;return gw.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!l&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!l&&(r.filter?r.filter!=="none":!1)||yw.some(a=>(r.willChange||"").includes(a))||xw.some(a=>(r.contain||"").includes(a))}function bw(t){let l=Fl(t);for(;Kt(l)&&!Ai(l);){if(Nd(l))return l;if(Xs(l))return null;l=Fl(l)}return null}function _d(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vw=new Set(["html","body","#document"]);function Ai(t){return vw.has(_i(t))}function Tn(t){return dn(t).getComputedStyle(t)}function Qs(t){return Dn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fl(t){if(_i(t)==="html")return t;const l=t.assignedSlot||t.parentNode||od(t)&&t.host||Pn(t);return od(l)?l.host:l}function ox(t){const l=Fl(t);return Ai(l)?t.ownerDocument?t.ownerDocument.body:t.body:Kt(l)&&$a(l)?l:ox(l)}function Pa(t,l,r){var a;l===void 0&&(l=[]),r===void 0&&(r=!0);const s=ox(t),u=s===((a=t.ownerDocument)==null?void 0:a.body),c=dn(s);if(u){const d=sd(c);return l.concat(c,c.visualViewport||[],$a(s)?s:[],d&&r?Pa(d):[])}return l.concat(s,Pa(s,[],r))}function sd(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function A1(t){return(t==null?void 0:t.ownerDocument)||document}const Sw={...Vs};let R1=0;function ww(t,l="mui"){const[r,a]=k.useState(t),s=t||r;return k.useEffect(()=>{r==null&&(R1+=1,a(`${l}-${R1}`))},[r,l]),s}const z1=Sw.useId;function kw(t,l){if(z1!==void 0){const r=z1();return t??`${l}-${r}`}return ww(t,l)}function sx(t){return kw(t,"base-ui")}const ux=k.createContext(void 0);function cx(t=!1){const l=k.useContext(ux);if(l===void 0&&!t)throw new Error(Ys(16));return l}function Cw(t){const{focusableWhenDisabled:l,disabled:r,composite:a=!1,tabIndex:s=0,isNativeButton:u}=t,c=a&&l!==!1,d=a&&l===!1;return{props:k.useMemo(()=>{const f={onKeyDown(g){r&&l&&g.key!=="Tab"&&g.preventDefault()}};return a||(f.tabIndex=s,!u&&r&&(f.tabIndex=l?s:-1)),(u&&(l||c)||!u&&r)&&(f["aria-disabled"]=r),u&&(!l||d)&&(f.disabled=r),f},[a,r,l,c,d,u,s])}}function Ew(t={}){const{disabled:l=!1,focusableWhenDisabled:r,tabIndex:a=0,native:s=!0}=t,u=k.useRef(null),c=cx(!0)!==void 0,d=ml(()=>{const x=u.current;return!!((x==null?void 0:x.tagName)==="A"&&(x!=null&&x.href))}),{props:p}=Cw({focusableWhenDisabled:r,disabled:l,composite:c,tabIndex:a,isNativeButton:s}),f=k.useCallback(()=>{const x=u.current;Tw(x)&&c&&l&&p.disabled===void 0&&x.disabled&&(x.disabled=!1)},[l,p.disabled,c]);On(f,[f]);const g=k.useCallback((x={})=>{const{onClick:b,onMouseDown:S,onKeyUp:T,onKeyDown:R,onPointerDown:E,..._}=x;return nx({type:s?"button":void 0,onClick(D){if(l){D.preventDefault();return}b==null||b(D)},onMouseDown(D){l||S==null||S(D)},onKeyDown(D){if(l||(id(D),R==null||R(D)),D.baseUIHandlerPrevented)return;const I=D.target===D.currentTarget&&!s&&!d()&&!l,N=D.key==="Enter",H=D.key===" ";I&&((H||N)&&D.preventDefault(),N&&(b==null||b(D)))},onKeyUp(D){l||(id(D),T==null||T(D)),!D.baseUIHandlerPrevented&&D.target===D.currentTarget&&!s&&!l&&D.key===" "&&(b==null||b(D))},onPointerDown(D){if(l){D.preventDefault();return}E==null||E(D)}},s?void 0:{role:"button"},p,_)},[l,p,s,d]),y=ml(x=>{u.current=x,f()});return{getButtonProps:g,buttonRef:y}}function Tw(t){return Kt(t)&&t.tagName==="BUTTON"}const fx="data-composite-item-active";let Aw=(function(t){return t[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t})({});function dx(t={}){const{label:l,metadata:r,textRef:a,indexGuessBehavior:s,index:u}=t,{register:c,unregister:d,subscribeMapChange:p,elementsRef:f,labelsRef:g,nextIndexRef:y}=lw(),x=k.useRef(-1),[b,S]=k.useState(u??(s===Aw.GuessFromOrder?()=>{if(x.current===-1){const E=y.current;y.current+=1,x.current=E}return x.current}:-1)),T=k.useRef(null),R=k.useCallback(E=>{var _;if(T.current=E,b!==-1&&E!==null&&(f.current[b]=E,g)){const M=l!==void 0;g.current[b]=M?l:((_=a==null?void 0:a.current)==null?void 0:_.textContent)??E.textContent}},[b,f,g,l,a]);return On(()=>{if(u!=null)return;const E=T.current;if(E)return c(E,r),()=>{d(E)}},[u,c,d,r]),On(()=>{if(u==null)return p(E=>{var M;const _=T.current?(M=E.get(T.current))==null?void 0:M.index:null;_!=null&&S(_)})},[u,p,S]),k.useMemo(()=>({ref:R,index:b}),[b,R])}function Rw(t={}){const{highlightItemOnHover:l,highlightedIndex:r,onHighlightedIndexChange:a}=cx(),{ref:s,index:u}=dx(t),c=r===u,d=k.useRef(null),p=Rs(s,d);return{compositeProps:k.useMemo(()=>({tabIndex:c?0:-1,onFocus(){a(u)},onMouseMove(){const g=d.current;if(!l||!g)return;const y=g.hasAttribute("disabled")||g.ariaDisabled==="true";!c&&!y&&g.focus()}}),[c,a,u,l]),compositeRef:p,index:u}}const hx=k.createContext(void 0);function px(){const t=k.useContext(hx);if(t===void 0)throw new Error(Ys(65));return t}const M1="none";function N1(t,l,r,a){let s=!1,u=!1;const c=a??Zl;return{reason:t,event:l??new Event("base-ui"),cancel(){s=!0},allowPropagation(){u=!0},get isCanceled(){return s},get isPropagationAllowed(){return u},trigger:r,...c}}const Nf="ArrowLeft",_f="ArrowRight",zw="ArrowUp",Mw="ArrowDown";function Nw(t){var r;let l=t.activeElement;for(;((r=l==null?void 0:l.shadowRoot)==null?void 0:r.activeElement)!=null;)l=l.shadowRoot.activeElement;return l}function _w(t,l){var a;if(!t||!l)return!1;const r=(a=l.getRootNode)==null?void 0:a.call(l);if(t.contains(l))return!0;if(r&&od(r)){let s=l;for(;s;){if(t===s)return!0;s=s.parentNode||s.host}}return!1}function yi(t){t.preventDefault(),t.stopPropagation()}const Ow=["top","right","bottom","left"],Kl=Math.min,fn=Math.max,Ri=Math.round,wi=Math.floor,Gn=t=>({x:t,y:t}),jw={left:"right",right:"left",bottom:"top",top:"bottom"},Dw={start:"end",end:"start"};function ud(t,l,r){return fn(t,Kl(l,r))}function xl(t,l){return typeof t=="function"?t(l):t}function bl(t){return t.split("-")[0]}function Oi(t){return t.split("-")[1]}function Od(t){return t==="x"?"y":"x"}function jd(t){return t==="y"?"height":"width"}const Lw=new Set(["top","bottom"]);function Yn(t){return Lw.has(bl(t))?"y":"x"}function Dd(t){return Od(Yn(t))}function Bw(t,l,r){r===void 0&&(r=!1);const a=Oi(t),s=Dd(t),u=jd(s);let c=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return l.reference[u]>l.floating[u]&&(c=zs(c)),[c,zs(c)]}function Hw(t){const l=zs(t);return[cd(t),l,cd(l)]}function cd(t){return t.replace(/start|end/g,l=>Dw[l])}const _1=["left","right"],O1=["right","left"],Uw=["top","bottom"],qw=["bottom","top"];function Iw(t,l,r){switch(t){case"top":case"bottom":return r?l?O1:_1:l?_1:O1;case"left":case"right":return l?Uw:qw;default:return[]}}function Vw(t,l,r,a){const s=Oi(t);let u=Iw(bl(t),r==="start",a);return s&&(u=u.map(c=>c+"-"+s),l&&(u=u.concat(u.map(cd)))),u}function zs(t){return t.replace(/left|right|bottom|top/g,l=>jw[l])}function Yw(t){return{top:0,right:0,bottom:0,left:0,...t}}function mx(t){return typeof t!="number"?Yw(t):{top:t,right:t,bottom:t,left:t}}function Ms(t){const{x:l,y:r,width:a,height:s}=t;return{width:a,height:s,top:r,left:l,right:l+a,bottom:r+s,x:l,y:r}}function ps(t,l,r){return Math.floor(t/l)!==r}function Cs(t,l){return l<0||l>=t.current.length}function Gw(t,l){return cn(t,{disabledIndices:l})}function Pw(t,l){return cn(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:l})}function cn(t,{startingIndex:l=-1,decrement:r=!1,disabledIndices:a,amount:s=1}={}){let u=l;do u+=r?-s:s;while(u>=0&&u<=t.current.length-1&&La(t,u,a));return u}function Xw(t,{event:l,orientation:r,loopFocus:a,rtl:s,cols:u,disabledIndices:c,minIndex:d,maxIndex:p,prevIndex:f,stopEvent:g=!1}){let y=f;const x=[],b={};let S=!1;{let E=null,_=-1;t.current.forEach((M,D)=>{if(M==null)return;const I=M.closest('[role="row"]');I&&(S=!0),(I!==E||_===-1)&&(E=I,_+=1,x[_]=[]),x[_].push(D),b[D]=_})}const T=S&&x.length>0&&x.some(E=>E.length!==u);function R(E){if(!T||f===-1)return;const _=b[f];if(_==null)return;const M=x[_].indexOf(f);let D=E==="up"?_-1:_+1;a&&(D<0?D=x.length-1:D>=x.length&&(D=0));const I=new Set;for(;D>=0&&D<x.length&&!I.has(D);){I.add(D);const N=x[D];if(N.length===0){D=E==="up"?D-1:D+1;continue}const H=Math.min(M,N.length-1);for(let F=H;F>=0;F-=1){const Z=N[F];if(!La(t,Z,c))return Z}D=E==="up"?D-1:D+1,a&&(D<0?D=x.length-1:D>=x.length&&(D=0))}}if(l.key===zw){const E=R("up");if(E!==void 0)g&&yi(l),y=E;else{if(g&&yi(l),f===-1)y=p;else if(y=cn(t,{startingIndex:y,amount:u,decrement:!0,disabledIndices:c}),a&&(f-u<d||y<0)){const _=f%u,M=p%u,D=p-(M-_);M===_?y=p:y=M>_?D:D-u}Cs(t,y)&&(y=f)}}if(l.key===Mw){const E=R("down");E!==void 0?(g&&yi(l),y=E):(g&&yi(l),f===-1?y=d:(y=cn(t,{startingIndex:f,amount:u,disabledIndices:c}),a&&f+u>p&&(y=cn(t,{startingIndex:f%u-u,amount:u,disabledIndices:c}))),Cs(t,y)&&(y=f))}if(r==="both"){const E=wi(f/u);l.key===(s?Nf:_f)&&(g&&yi(l),f%u!==u-1?(y=cn(t,{startingIndex:f,disabledIndices:c}),a&&ps(y,u,E)&&(y=cn(t,{startingIndex:f-f%u-1,disabledIndices:c}))):a&&(y=cn(t,{startingIndex:f-f%u-1,disabledIndices:c})),ps(y,u,E)&&(y=f)),l.key===(s?_f:Nf)&&(g&&yi(l),f%u!==0?(y=cn(t,{startingIndex:f,decrement:!0,disabledIndices:c}),a&&ps(y,u,E)&&(y=cn(t,{startingIndex:f+(u-f%u),decrement:!0,disabledIndices:c}))):a&&(y=cn(t,{startingIndex:f+(u-f%u),decrement:!0,disabledIndices:c})),ps(y,u,E)&&(y=f));const _=wi(p/u)===E;Cs(t,y)&&(a&&_?y=l.key===(s?_f:Nf)?p:cn(t,{startingIndex:f-f%u-1,disabledIndices:c}):y=f)}return y}function Qw(t,l,r){const a=[];let s=0;return t.forEach(({width:u,height:c},d)=>{let p=!1;for(r&&(s=0);!p;){const f=[];for(let g=0;g<u;g+=1)for(let y=0;y<c;y+=1)f.push(s+g+y*l);s%l+u<=l&&f.every(g=>a[g]==null)?(f.forEach(g=>{a[g]=d}),p=!0):s+=1}}),[...a]}function Zw(t,l,r,a,s){if(t===-1)return-1;const u=r.indexOf(t),c=l[t];switch(s){case"tl":return u;case"tr":return c?u+c.width-1:u;case"bl":return c?u+(c.height-1)*a:u;case"br":return r.lastIndexOf(t);default:return-1}}function $w(t,l){return l.flatMap((r,a)=>t.includes(r)?[a]:[])}function La(t,l,r){if(typeof r=="function")return r(l);if(r)return r.includes(l);const a=t.current[l];return a?a.hasAttribute("disabled")||a.getAttribute("aria-disabled")==="true":!1}const Fw=k.forwardRef(function(l,r){const{className:a,disabled:s=!1,render:u,value:c,id:d,nativeButton:p=!0,...f}=l,{value:g,getTabPanelIdByValue:y,orientation:x}=Ga(),{activateOnFocus:b,highlightedTabIndex:S,onTabActivation:T,setHighlightedTabIndex:R,tabsListElement:E}=px(),_=sx(d),M=k.useMemo(()=>({disabled:s,id:_,value:c}),[s,_,c]),{compositeProps:D,compositeRef:I,index:N}=Rw({metadata:M}),H=c===g,F=k.useRef(!1);On(()=>{if(F.current){F.current=!1;return}if(!(H&&N>-1&&S!==N))return;const oe=E;if(oe!=null){const z=Nw(A1(oe));if(z&&_w(oe,z))return}s||R(N)},[H,N,S,R,s,E]);const{getButtonProps:Z,buttonRef:U}=Ew({disabled:s,native:p,focusableWhenDisabled:!0}),re=y(c),V=k.useRef(!1),ue=k.useRef(!1);function ne(oe){H||s||T(c,N1(M1,oe.nativeEvent,void 0,{activationDirection:"none"}))}function ee(oe){H||(N>-1&&!s&&R(N),!s&&b&&(!V.current||V.current&&ue.current)&&T(c,N1(M1,oe.nativeEvent,void 0,{activationDirection:"none"})))}function B(oe){if(H||s)return;V.current=!0;function z(){V.current=!1,ue.current=!1}(!oe.button||oe.button===0)&&(ue.current=!0,A1(oe.currentTarget).addEventListener("pointerup",z,{once:!0}))}const X=k.useMemo(()=>({disabled:s,active:H,orientation:x}),[s,H,x]);return Gs("button",l,{state:X,ref:[r,U,I],props:[D,{role:"tab","aria-controls":re,"aria-selected":H,id:_,onClick:ne,onFocus:ee,onPointerDown:B,[fx]:H?"":void 0,onKeyDownCapture(){F.current=!0}},f,Z]})});function Kw(){const[,t]=k.useState({});return k.useCallback(()=>{t({})},[])}const Jw=[];function Ww(t){k.useEffect(t,Jw)}function j1(t){const l=Tn(t);let r=parseFloat(l.width)||0,a=parseFloat(l.height)||0;const s=Kt(t),u=s?t.offsetWidth:r,c=s?t.offsetHeight:a;return(Ri(r)!==u||Ri(a)!==c)&&(r=u,a=c),{width:r,height:a}}const ek='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';let xi=(function(t){return t.activeTabLeft="--active-tab-left",t.activeTabRight="--active-tab-right",t.activeTabTop="--active-tab-top",t.activeTabBottom="--active-tab-bottom",t.activeTabWidth="--active-tab-width",t.activeTabHeight="--active-tab-height",t})({});const tk=k.createContext(void 0),nk={disableStyleElements:!1};function lk(){return k.useContext(tk)??nk}const rk={...Md,activeTabPosition:()=>null,activeTabSize:()=>null},ik=k.forwardRef(function(l,r){const{className:a,render:s,renderBeforeHydration:u=!1,...c}=l,{nonce:d}=lk(),{getTabElementBySelectedValue:p,orientation:f,tabActivationDirection:g,value:y}=Ga(),{tabsListElement:x}=px(),[b,S]=k.useState(!1),{value:T}=Ga();Ww(()=>S(!0));const R=Kw();k.useEffect(()=>{if(y!=null&&x!=null&&typeof ResizeObserver<"u"){const ne=new ResizeObserver(R);return ne.observe(x),()=>{ne.disconnect()}}},[y,x,R]);let E=0,_=0,M=0,D=0,I=0,N=0,H=!1;if(y!=null&&x!=null){const ne=p(y);if(H=!0,ne!=null){const{width:ee,height:B}=j1(ne),{width:X,height:te}=j1(x),oe=ne.getBoundingClientRect(),z=x.getBoundingClientRect(),O=X>0?z.width/X:1,Q=te>0?z.height/te:1;if(Math.abs(O)>Number.EPSILON&&Math.abs(Q)>Number.EPSILON){const se=oe.left-z.left,me=oe.top-z.top;E=se/O+x.scrollLeft-x.clientLeft,M=me/Q+x.scrollTop-x.clientTop}else E=ne.offsetLeft,M=ne.offsetTop;I=ee,N=B,_=x.scrollWidth-E-I,D=x.scrollHeight-M-N}}const F=k.useMemo(()=>H?{left:E,right:_,top:M,bottom:D}:null,[E,_,M,D,H]),Z=k.useMemo(()=>H?{width:I,height:N}:null,[I,N,H]),U=k.useMemo(()=>{if(H)return{[xi.activeTabLeft]:`${E}px`,[xi.activeTabRight]:`${_}px`,[xi.activeTabTop]:`${M}px`,[xi.activeTabBottom]:`${D}px`,[xi.activeTabWidth]:`${I}px`,[xi.activeTabHeight]:`${N}px`}},[E,_,M,D,I,N,H]),re=H&&I>0&&N>0,V=k.useMemo(()=>({orientation:f,activeTabPosition:F,activeTabSize:Z,tabActivationDirection:g}),[f,F,Z,g]),ue=Gs("span",l,{state:V,ref:r,props:[{role:"presentation",style:U,hidden:!re},c,{suppressHydrationWarning:!0}],stateAttributesMapping:rk});return T==null?null:w.jsxs(k.Fragment,{children:[ue,!b&&u&&w.jsx("script",{nonce:d,dangerouslySetInnerHTML:{__html:ek},suppressHydrationWarning:!0})]})});let ak=(function(t){return t.index="data-index",t.activationDirection="data-activation-direction",t.orientation="data-orientation",t.hidden="data-hidden",t})({});const ok=k.forwardRef(function(l,r){const{className:a,value:s,render:u,keepMounted:c=!1,...d}=l,{value:p,getTabIdByPanelValue:f,orientation:g,tabActivationDirection:y,registerMountedTabPanel:x,unregisterMountedTabPanel:b}=Ga(),S=sx(),T=k.useMemo(()=>({id:S,value:s}),[S,s]),{ref:R,index:E}=dx({metadata:T}),_=s!==p,M=f(s),D=k.useMemo(()=>({hidden:_,orientation:g,tabActivationDirection:y}),[_,g,y]),I=Gs("div",l,{state:D,ref:[r,R],props:[{"aria-labelledby":M,hidden:_,id:S??void 0,role:"tabpanel",tabIndex:_?-1:0,[ak.index]:E},d],stateAttributesMapping:Md});return On(()=>{if(!(_&&!c)&&S!=null)return x(s,S),()=>{b(s,S)}},[_,c,s,S,x,b]),!_||c?I:null});function sk(t){return t==null||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true"}const Ba="ArrowUp",ki="ArrowDown",Ns="ArrowLeft",Ha="ArrowRight",Zs="Home",$s="End",gx=new Set([Ns,Ha]),uk=new Set([Ns,Ha,Zs,$s]),yx=new Set([Ba,ki]),ck=new Set([Ba,ki,Zs,$s]),xx=new Set([...gx,...yx]),fk=new Set([...xx,Zs,$s]),dk="Shift",hk="Control",pk="Alt",mk="Meta",gk=new Set([dk,hk,pk,mk]);function yk(t){return Kt(t)&&t.tagName==="INPUT"}function D1(t){return!!(yk(t)&&t.selectionStart!=null||Kt(t)&&t.tagName==="TEXTAREA")}function L1(t,l,r,a){if(!t||!l||!l.scrollTo)return;let s=t.scrollLeft,u=t.scrollTop;const c=t.clientWidth<t.scrollWidth,d=t.clientHeight<t.scrollHeight;if(c&&a!=="vertical"){const p=B1(t,l,"left"),f=ms(t),g=ms(l);r==="ltr"&&(p+l.offsetWidth+g.scrollMarginRight>t.scrollLeft+t.clientWidth-f.scrollPaddingRight?s=p+l.offsetWidth+g.scrollMarginRight-t.clientWidth+f.scrollPaddingRight:p-g.scrollMarginLeft<t.scrollLeft+f.scrollPaddingLeft&&(s=p-g.scrollMarginLeft-f.scrollPaddingLeft)),r==="rtl"&&(p-g.scrollMarginRight<t.scrollLeft+f.scrollPaddingLeft?s=p-g.scrollMarginLeft-f.scrollPaddingLeft:p+l.offsetWidth+g.scrollMarginRight>t.scrollLeft+t.clientWidth-f.scrollPaddingRight&&(s=p+l.offsetWidth+g.scrollMarginRight-t.clientWidth+f.scrollPaddingRight))}if(d&&a!=="horizontal"){const p=B1(t,l,"top"),f=ms(t),g=ms(l);p-g.scrollMarginTop<t.scrollTop+f.scrollPaddingTop?u=p-g.scrollMarginTop-f.scrollPaddingTop:p+l.offsetHeight+g.scrollMarginBottom>t.scrollTop+t.clientHeight-f.scrollPaddingBottom&&(u=p+l.offsetHeight+g.scrollMarginBottom-t.clientHeight+f.scrollPaddingBottom)}t.scrollTo({left:s,top:u,behavior:"auto"})}function B1(t,l,r){const a=r==="left"?"offsetLeft":"offsetTop";let s=0;for(;l.offsetParent&&(s+=l[a],l.offsetParent!==t);)l=l.offsetParent;return s}function ms(t){const l=getComputedStyle(t);return{scrollMarginTop:parseFloat(l.scrollMarginTop)||0,scrollMarginRight:parseFloat(l.scrollMarginRight)||0,scrollMarginBottom:parseFloat(l.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(l.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(l.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(l.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(l.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(l.scrollPaddingLeft)||0}}const xk=[];function bk(t){const{itemSizes:l,cols:r=1,loopFocus:a=!0,dense:s=!1,orientation:u="both",direction:c,highlightedIndex:d,onHighlightedIndexChange:p,rootRef:f,enableHomeAndEndKeys:g=!1,stopEventPropagation:y=!1,disabledIndices:x,modifierKeys:b=xk}=t,[S,T]=k.useState(0),R=r>1,E=k.useRef(null),_=Rs(E,f),M=k.useRef([]),D=k.useRef(!1),I=d??S,N=ml((Z,U=!1)=>{if((p??T)(Z),U){const re=M.current[Z];L1(E.current,re,c,u)}}),H=ml(Z=>{if(Z.size===0||D.current)return;D.current=!0;const U=Array.from(Z.keys()),re=U.find(ue=>ue==null?void 0:ue.hasAttribute(fx))??null,V=re?U.indexOf(re):-1;V!==-1&&N(V),L1(E.current,re,c,u)}),F=k.useMemo(()=>({"aria-orientation":u==="both"?void 0:u,ref:_,onFocus(Z){!E.current||!D1(Z.target)||Z.target.setSelectionRange(0,Z.target.value.length??0)},onKeyDown(Z){const U=g?fk:xx;if(!U.has(Z.key)||vk(Z,b)||!E.current)return;const V=c==="rtl",ue=V?Ns:Ha,ne={horizontal:ue,vertical:ki,both:ue}[u],ee=V?Ha:Ns,B={horizontal:ee,vertical:Ba,both:ee}[u];if(D1(Z.target)&&!sk(Z.target)){const A=Z.target.selectionStart,se=Z.target.selectionEnd,me=Z.target.value??"";if(A==null||Z.shiftKey||A!==se||Z.key!==B&&A<me.length||Z.key!==ne&&A>0)return}let X=I;const te=Gw(M,x),oe=Pw(M,x);if(R){const A=l||Array.from({length:M.current.length},()=>({width:1,height:1})),se=Qw(A,r,s),me=se.findIndex(ae=>ae!=null&&!La(M,ae,x)),pe=se.reduce((ae,Me,ze)=>Me!=null&&!La(M,Me,x)?ze:ae,-1);X=se[Xw({current:se.map(ae=>ae?M.current[ae]:null)},{event:Z,orientation:u,loopFocus:a,cols:r,disabledIndices:$w([...x||M.current.map((ae,Me)=>La(M,Me)?Me:void 0),void 0],se),minIndex:me,maxIndex:pe,prevIndex:Zw(I>oe?te:I,A,se,r,Z.key===ki?"bl":Z.key===Ha?"tr":"tl"),rtl:V})]}const z={horizontal:[ue],vertical:[ki],both:[ue,ki]}[u],O={horizontal:[ee],vertical:[Ba],both:[ee,Ba]}[u],Q=R?U:{horizontal:g?uk:gx,vertical:g?ck:yx,both:U}[u];g&&(Z.key===Zs?X=te:Z.key===$s&&(X=oe)),X===I&&(z.includes(Z.key)||O.includes(Z.key))&&(a&&X===oe&&z.includes(Z.key)?X=te:a&&X===te&&O.includes(Z.key)?X=oe:X=cn(M,{startingIndex:X,decrement:O.includes(Z.key),disabledIndices:x})),X!==I&&!Cs(M,X)&&(y&&Z.stopPropagation(),Q.has(Z.key)&&Z.preventDefault(),N(X,!0),queueMicrotask(()=>{var A;(A=M.current[X])==null||A.focus()}))}}),[r,s,c,x,M,g,I,R,l,a,_,b,N,u,y]);return k.useMemo(()=>({props:F,highlightedIndex:I,onHighlightedIndexChange:N,elementsRef:M,disabledIndices:x,onMapChange:H,relayKeyboardEvent:F.onKeyDown}),[F,I,N,M,x,H])}function vk(t,l){for(const r of gk.values())if(!l.includes(r)&&t.getModifierState(r))return!0;return!1}function Sk(t){const{render:l,className:r,refs:a=ad,props:s=ad,state:u=Zl,stateAttributesMapping:c,highlightedIndex:d,onHighlightedIndexChange:p,orientation:f,dense:g,itemSizes:y,loopFocus:x,cols:b,enableHomeAndEndKeys:S,onMapChange:T,stopEventPropagation:R=!0,rootRef:E,disabledIndices:_,modifierKeys:M,highlightItemOnHover:D=!1,tag:I="div",...N}=t,H=uw(),{props:F,highlightedIndex:Z,onHighlightedIndexChange:U,elementsRef:re,onMapChange:V,relayKeyboardEvent:ue}=bk({itemSizes:y,cols:b,loopFocus:x,dense:g,orientation:f,highlightedIndex:d,onHighlightedIndexChange:p,rootRef:E,stopEventPropagation:R,enableHomeAndEndKeys:S,direction:H,disabledIndices:_,modifierKeys:M}),ne=Gs(I,t,{state:u,ref:a,props:[F,...s,N],stateAttributesMapping:c}),ee=k.useMemo(()=>({highlightedIndex:Z,onHighlightedIndexChange:U,highlightItemOnHover:D,relayKeyboardEvent:ue}),[Z,U,D,ue]);return w.jsx(ux.Provider,{value:ee,children:w.jsx(rw,{elementsRef:re,onMapChange:B=>{T==null||T(B),V(B)},children:ne})})}const wk=k.forwardRef(function(l,r){const{activateOnFocus:a=!1,className:s,loopFocus:u=!0,render:c,...d}=l,{getTabElementBySelectedValue:p,onValueChange:f,orientation:g,value:y,setTabMap:x,tabActivationDirection:b}=Ga(),[S,T]=k.useState(0),[R,E]=k.useState(null),_=kk(y,g,R,p),M=ml((H,F)=>{if(H!==y){const Z=_(H);F.activationDirection=Z,f(H,F)}}),D=k.useMemo(()=>({orientation:g,tabActivationDirection:b}),[g,b]),I={"aria-orientation":g==="vertical"?"vertical":void 0,role:"tablist"},N=k.useMemo(()=>({activateOnFocus:a,highlightedTabIndex:S,onTabActivation:M,setHighlightedTabIndex:T,tabsListElement:R,value:y}),[a,S,M,T,R,y]);return w.jsx(hx.Provider,{value:N,children:w.jsx(Sk,{render:c,className:s,state:D,refs:[r,E],props:[I,d],stateAttributesMapping:Md,highlightedIndex:S,enableHomeAndEndKeys:!0,loopFocus:u,orientation:g,onHighlightedIndexChange:T,onMapChange:x,disabledIndices:ad})})});function H1(t,l){const{left:r,top:a}=t.getBoundingClientRect(),{left:s,top:u}=l.getBoundingClientRect(),c=r-s,d=a-u;return{left:c,top:d}}function kk(t,l,r,a){const[s,u]=k.useState(null);return On(()=>{if(t==null||r==null){u(null);return}const c=a(t);if(c==null){u(null);return}const{left:d,top:p}=H1(c,r);u(l==="horizontal"?d:p)},[l,a,r,t]),k.useCallback(c=>{if(c===t)return"none";if(c==null)return u(null),"none";if(c!=null&&r!=null){const d=a(c);if(d!=null){const{left:p,top:f}=H1(d,r);if(s==null)return u(l==="horizontal"?p:f),"none";if(l==="horizontal"){if(p<s)return u(p),"left";if(p>s)return u(p),"right"}else{if(f<s)return u(f),"up";if(f>s)return u(f),"down"}}}return"none"},[a,l,s,r,t])}const Ck=k.forwardRef(({className:t,variant:l="default",...r},a)=>w.jsx(wk,{ref:a,className:ye("inline-flex items-center",l==="default"&&["h-9 gap-1 rounded-lg bg-ann-bg-secondary p-1","border border-ann-border"],l==="pill"&&["h-8 gap-0.5 rounded-lg bg-ann-bg-elevated p-0.5"],t),...r}));Ck.displayName="TabsList";const Ek=k.forwardRef(({className:t,variant:l="default",...r},a)=>w.jsx(Fw,{ref:a,className:ye("inline-flex items-center justify-center whitespace-nowrap","text-xs font-medium transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ann-accent focus-visible:ring-offset-1 focus-visible:ring-offset-ann-bg","disabled:pointer-events-none disabled:opacity-50",l==="default"&&["rounded-md px-3 py-1.5","text-ann-text-muted","hover:text-ann-text-secondary hover:bg-ann-bg-hover","data-[selected]:bg-ann-bg data-[selected]:text-ann-text data-[selected]:shadow-ann-sm"],l==="pill"&&["rounded-md px-2.5 py-1","text-ann-text-muted","hover:text-ann-text-secondary","data-[selected]:bg-ann-bg-secondary data-[selected]:text-ann-text data-[selected]:shadow-sm"],t),...r}));Ek.displayName="TabsTrigger";const Tk=k.forwardRef(({className:t,...l},r)=>w.jsx(ok,{ref:r,className:ye("mt-2","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ann-accent focus-visible:ring-offset-1",t),...l}));Tk.displayName="TabsContent";const Ak=k.forwardRef(({className:t,...l},r)=>w.jsx(ik,{ref:r,className:ye("absolute bottom-0 h-0.5 bg-ann-accent transition-all",t),...l}));Ak.displayName="TabsIndicator";const Rk=k.forwardRef(({className:t,orientation:l="vertical",children:r,...a},s)=>w.jsx("div",{ref:s,className:ye("relative",l==="vertical"&&"overflow-y-auto overflow-x-hidden",l==="horizontal"&&"overflow-x-auto overflow-y-hidden",l==="both"&&"overflow-auto","ann-scrollbar",t),...a,children:r}));Rk.displayName="ScrollArea";function pl(t,l,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return l==null?void 0:l(s)}}function U1(t,l){if(typeof t=="function")return t(l);t!=null&&(t.current=l)}function bx(...t){return l=>{let r=!1;const a=t.map(s=>{const u=U1(s,l);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s<a.length;s++){const u=a[s];typeof u=="function"?u():U1(t[s],null)}}}}function Er(...t){return k.useCallback(bx(...t),t)}function vx(t,l=[]){let r=[];function a(u,c){const d=k.createContext(c),p=r.length;r=[...r,c];const f=y=>{var E;const{scope:x,children:b,...S}=y,T=((E=x==null?void 0:x[t])==null?void 0:E[p])||d,R=k.useMemo(()=>S,Object.values(S));return w.jsx(T.Provider,{value:R,children:b})};f.displayName=u+"Provider";function g(y,x){var T;const b=((T=x==null?void 0:x[t])==null?void 0:T[p])||d,S=k.useContext(b);if(S)return S;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[f,g]}const s=()=>{const u=r.map(c=>k.createContext(c));return function(d){const p=(d==null?void 0:d[t])||u;return k.useMemo(()=>({[`__scope${t}`]:{...d,[t]:p}}),[d,p])}};return s.scopeName=t,[a,zk(s,...l)]}function zk(...t){const l=t[0];if(t.length===1)return l;const r=()=>{const a=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(u){const c=a.reduce((d,{useScope:p,scopeName:f})=>{const y=p(u)[`__scope${f}`];return{...d,...y}},{});return k.useMemo(()=>({[`__scope${l.scopeName}`]:c}),[c])}};return r.scopeName=l.scopeName,r}var Ld=Xy();const Mk=Is(Ld);function Nk(t){const l=_k(t),r=k.forwardRef((a,s)=>{const{children:u,...c}=a,d=k.Children.toArray(u),p=d.find(jk);if(p){const f=p.props.children,g=d.map(y=>y===p?k.Children.count(f)>1?k.Children.only(null):k.isValidElement(f)?f.props.children:null:y);return w.jsx(l,{...c,ref:s,children:k.isValidElement(f)?k.cloneElement(f,void 0,g):null})}return w.jsx(l,{...c,ref:s,children:u})});return r.displayName=`${t}.Slot`,r}function _k(t){const l=k.forwardRef((r,a)=>{const{children:s,...u}=r;if(k.isValidElement(s)){const c=Lk(s),d=Dk(u,s.props);return s.type!==k.Fragment&&(d.ref=a?bx(a,c):c),k.cloneElement(s,d)}return k.Children.count(s)>1?k.Children.only(null):null});return l.displayName=`${t}.SlotClone`,l}var Sx=Symbol("radix.slottable");function Ok(t){const l=({children:r})=>w.jsx(w.Fragment,{children:r});return l.displayName=`${t}.Slottable`,l.__radixId=Sx,l}function jk(t){return k.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Sx}function Dk(t,l){const r={...l};for(const a in l){const s=t[a],u=l[a];/^on[A-Z]/.test(a)?s&&u?r[a]=(...d)=>{const p=u(...d);return s(...d),p}:s&&(r[a]=s):a==="style"?r[a]={...s,...u}:a==="className"&&(r[a]=[s,u].filter(Boolean).join(" "))}return{...t,...r}}function Lk(t){var a,s;let l=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?t.ref:(l=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Bk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wl=Bk.reduce((t,l)=>{const r=Nk(`Primitive.${l}`),a=k.forwardRef((s,u)=>{const{asChild:c,...d}=s,p=c?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(p,{...d,ref:u})});return a.displayName=`Primitive.${l}`,{...t,[l]:a}},{});function Hk(t,l){t&&Ld.flushSync(()=>t.dispatchEvent(l))}function Fs(t){const l=k.useRef(t);return k.useEffect(()=>{l.current=t}),k.useMemo(()=>(...r)=>{var a;return(a=l.current)==null?void 0:a.call(l,...r)},[])}function Uk(t,l=globalThis==null?void 0:globalThis.document){const r=Fs(t);k.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return l.addEventListener("keydown",a,{capture:!0}),()=>l.removeEventListener("keydown",a,{capture:!0})},[r,l])}var qk="DismissableLayer",fd="dismissableLayer.update",Ik="dismissableLayer.pointerDownOutside",Vk="dismissableLayer.focusOutside",q1,wx=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kx=k.forwardRef((t,l)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:c,onDismiss:d,...p}=t,f=k.useContext(wx),[g,y]=k.useState(null),x=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=k.useState({}),S=Er(l,H=>y(H)),T=Array.from(f.layers),[R]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),E=T.indexOf(R),_=g?T.indexOf(g):-1,M=f.layersWithOutsidePointerEventsDisabled.size>0,D=_>=E,I=Pk(H=>{const F=H.target,Z=[...f.branches].some(U=>U.contains(F));!D||Z||(s==null||s(H),c==null||c(H),H.defaultPrevented||d==null||d())},x),N=Xk(H=>{const F=H.target;[...f.branches].some(U=>U.contains(F))||(u==null||u(H),c==null||c(H),H.defaultPrevented||d==null||d())},x);return Uk(H=>{_===f.layers.size-1&&(a==null||a(H),!H.defaultPrevented&&d&&(H.preventDefault(),d()))},x),k.useEffect(()=>{if(g)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(q1=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(g)),f.layers.add(g),I1(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=q1)}},[g,x,r,f]),k.useEffect(()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),I1())},[g,f]),k.useEffect(()=>{const H=()=>b({});return document.addEventListener(fd,H),()=>document.removeEventListener(fd,H)},[]),w.jsx(Wl.div,{...p,ref:S,style:{pointerEvents:M?D?"auto":"none":void 0,...t.style},onFocusCapture:pl(t.onFocusCapture,N.onFocusCapture),onBlurCapture:pl(t.onBlurCapture,N.onBlurCapture),onPointerDownCapture:pl(t.onPointerDownCapture,I.onPointerDownCapture)})});kx.displayName=qk;var Yk="DismissableLayerBranch",Gk=k.forwardRef((t,l)=>{const r=k.useContext(wx),a=k.useRef(null),s=Er(l,a);return k.useEffect(()=>{const u=a.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),w.jsx(Wl.div,{...t,ref:s})});Gk.displayName=Yk;function Pk(t,l=globalThis==null?void 0:globalThis.document){const r=Fs(t),a=k.useRef(!1),s=k.useRef(()=>{});return k.useEffect(()=>{const u=d=>{if(d.target&&!a.current){let p=function(){Cx(Ik,r,f,{discrete:!0})};const f={originalEvent:d};d.pointerType==="touch"?(l.removeEventListener("click",s.current),s.current=p,l.addEventListener("click",s.current,{once:!0})):p()}else l.removeEventListener("click",s.current);a.current=!1},c=window.setTimeout(()=>{l.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),l.removeEventListener("pointerdown",u),l.removeEventListener("click",s.current)}},[l,r]),{onPointerDownCapture:()=>a.current=!0}}function Xk(t,l=globalThis==null?void 0:globalThis.document){const r=Fs(t),a=k.useRef(!1);return k.useEffect(()=>{const s=u=>{u.target&&!a.current&&Cx(Vk,r,{originalEvent:u},{discrete:!1})};return l.addEventListener("focusin",s),()=>l.removeEventListener("focusin",s)},[l,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function I1(){const t=new CustomEvent(fd);document.dispatchEvent(t)}function Cx(t,l,r,{discrete:a}){const s=r.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});l&&s.addEventListener(t,l,{once:!0}),a?Hk(s,u):s.dispatchEvent(u)}var Jl=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},Qk=Vs[" useId ".trim().toString()]||(()=>{}),Zk=0;function $k(t){const[l,r]=k.useState(Qk());return Jl(()=>{r(a=>a??String(Zk++))},[t]),l?`radix-${l}`:""}function V1(t,l,r){let{reference:a,floating:s}=t;const u=Yn(l),c=Dd(l),d=jd(c),p=bl(l),f=u==="y",g=a.x+a.width/2-s.width/2,y=a.y+a.height/2-s.height/2,x=a[d]/2-s[d]/2;let b;switch(p){case"top":b={x:g,y:a.y-s.height};break;case"bottom":b={x:g,y:a.y+a.height};break;case"right":b={x:a.x+a.width,y};break;case"left":b={x:a.x-s.width,y};break;default:b={x:a.x,y:a.y}}switch(Oi(l)){case"start":b[c]-=x*(r&&f?-1:1);break;case"end":b[c]+=x*(r&&f?-1:1);break}return b}async function Fk(t,l){var r;l===void 0&&(l={});const{x:a,y:s,platform:u,rects:c,elements:d,strategy:p}=t,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:x=!1,padding:b=0}=xl(l,t),S=mx(b),R=d[x?y==="floating"?"reference":"floating":y],E=Ms(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(R)))==null||r?R:R.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(d.floating)),boundary:f,rootBoundary:g,strategy:p})),_=y==="floating"?{x:a,y:s,width:c.floating.width,height:c.floating.height}:c.reference,M=await(u.getOffsetParent==null?void 0:u.getOffsetParent(d.floating)),D=await(u.isElement==null?void 0:u.isElement(M))?await(u.getScale==null?void 0:u.getScale(M))||{x:1,y:1}:{x:1,y:1},I=Ms(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:_,offsetParent:M,strategy:p}):_);return{top:(E.top-I.top+S.top)/D.y,bottom:(I.bottom-E.bottom+S.bottom)/D.y,left:(E.left-I.left+S.left)/D.x,right:(I.right-E.right+S.right)/D.x}}const Kk=async(t,l,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:u=[],platform:c}=r,d=u.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(l));let f=await c.getElementRects({reference:t,floating:l,strategy:s}),{x:g,y}=V1(f,a,p),x=a,b={},S=0;for(let R=0;R<d.length;R++){var T;const{name:E,fn:_}=d[R],{x:M,y:D,data:I,reset:N}=await _({x:g,y,initialPlacement:a,placement:x,strategy:s,middlewareData:b,rects:f,platform:{...c,detectOverflow:(T=c.detectOverflow)!=null?T:Fk},elements:{reference:t,floating:l}});g=M??g,y=D??y,b={...b,[E]:{...b[E],...I}},N&&S<=50&&(S++,typeof N=="object"&&(N.placement&&(x=N.placement),N.rects&&(f=N.rects===!0?await c.getElementRects({reference:t,floating:l,strategy:s}):N.rects),{x:g,y}=V1(f,x,p)),R=-1)}return{x:g,y,placement:x,strategy:s,middlewareData:b}},Jk=t=>({name:"arrow",options:t,async fn(l){const{x:r,y:a,placement:s,rects:u,platform:c,elements:d,middlewareData:p}=l,{element:f,padding:g=0}=xl(t,l)||{};if(f==null)return{};const y=mx(g),x={x:r,y:a},b=Dd(s),S=jd(b),T=await c.getDimensions(f),R=b==="y",E=R?"top":"left",_=R?"bottom":"right",M=R?"clientHeight":"clientWidth",D=u.reference[S]+u.reference[b]-x[b]-u.floating[S],I=x[b]-u.reference[b],N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f));let H=N?N[M]:0;(!H||!await(c.isElement==null?void 0:c.isElement(N)))&&(H=d.floating[M]||u.floating[S]);const F=D/2-I/2,Z=H/2-T[S]/2-1,U=Kl(y[E],Z),re=Kl(y[_],Z),V=U,ue=H-T[S]-re,ne=H/2-T[S]/2+F,ee=ud(V,ne,ue),B=!p.arrow&&Oi(s)!=null&&ne!==ee&&u.reference[S]/2-(ne<V?U:re)-T[S]/2<0,X=B?ne<V?ne-V:ne-ue:0;return{[b]:x[b]+X,data:{[b]:ee,centerOffset:ne-ee-X,...B&&{alignmentOffset:X}},reset:B}}}),Wk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(l){var r,a;const{placement:s,middlewareData:u,rects:c,initialPlacement:d,platform:p,elements:f}=l,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:T=!0,...R}=xl(t,l);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const E=bl(s),_=Yn(d),M=bl(d)===d,D=await(p.isRTL==null?void 0:p.isRTL(f.floating)),I=x||(M||!T?[zs(d)]:Hw(d)),N=S!=="none";!x&&N&&I.push(...Vw(d,T,S,D));const H=[d,...I],F=await p.detectOverflow(l,R),Z=[];let U=((a=u.flip)==null?void 0:a.overflows)||[];if(g&&Z.push(F[E]),y){const ne=Bw(s,c,D);Z.push(F[ne[0]],F[ne[1]])}if(U=[...U,{placement:s,overflows:Z}],!Z.every(ne=>ne<=0)){var re,V;const ne=(((re=u.flip)==null?void 0:re.index)||0)+1,ee=H[ne];if(ee&&(!(y==="alignment"?_!==Yn(ee):!1)||U.every(te=>Yn(te.placement)===_?te.overflows[0]>0:!0)))return{data:{index:ne,overflows:U},reset:{placement:ee}};let B=(V=U.filter(X=>X.overflows[0]<=0).sort((X,te)=>X.overflows[1]-te.overflows[1])[0])==null?void 0:V.placement;if(!B)switch(b){case"bestFit":{var ue;const X=(ue=U.filter(te=>{if(N){const oe=Yn(te.placement);return oe===_||oe==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(oe=>oe>0).reduce((oe,z)=>oe+z,0)]).sort((te,oe)=>te[1]-oe[1])[0])==null?void 0:ue[0];X&&(B=X);break}case"initialPlacement":B=d;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function Y1(t,l){return{top:t.top-l.height,right:t.right-l.width,bottom:t.bottom-l.height,left:t.left-l.width}}function G1(t){return Ow.some(l=>t[l]>=0)}const eC=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(l){const{rects:r,platform:a}=l,{strategy:s="referenceHidden",...u}=xl(t,l);switch(s){case"referenceHidden":{const c=await a.detectOverflow(l,{...u,elementContext:"reference"}),d=Y1(c,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:G1(d)}}}case"escaped":{const c=await a.detectOverflow(l,{...u,altBoundary:!0}),d=Y1(c,r.floating);return{data:{escapedOffsets:d,escaped:G1(d)}}}default:return{}}}}},Ex=new Set(["left","top"]);async function tC(t,l){const{placement:r,platform:a,elements:s}=t,u=await(a.isRTL==null?void 0:a.isRTL(s.floating)),c=bl(r),d=Oi(r),p=Yn(r)==="y",f=Ex.has(c)?-1:1,g=u&&p?-1:1,y=xl(l,t);let{mainAxis:x,crossAxis:b,alignmentAxis:S}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof S=="number"&&(b=d==="end"?S*-1:S),p?{x:b*g,y:x*f}:{x:x*f,y:b*g}}const nC=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(l){var r,a;const{x:s,y:u,placement:c,middlewareData:d}=l,p=await tC(l,t);return c===((r=d.offset)==null?void 0:r.placement)&&(a=d.arrow)!=null&&a.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:c}}}}},lC=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(l){const{x:r,y:a,placement:s,platform:u}=l,{mainAxis:c=!0,crossAxis:d=!1,limiter:p={fn:E=>{let{x:_,y:M}=E;return{x:_,y:M}}},...f}=xl(t,l),g={x:r,y:a},y=await u.detectOverflow(l,f),x=Yn(bl(s)),b=Od(x);let S=g[b],T=g[x];if(c){const E=b==="y"?"top":"left",_=b==="y"?"bottom":"right",M=S+y[E],D=S-y[_];S=ud(M,S,D)}if(d){const E=x==="y"?"top":"left",_=x==="y"?"bottom":"right",M=T+y[E],D=T-y[_];T=ud(M,T,D)}const R=p.fn({...l,[b]:S,[x]:T});return{...R,data:{x:R.x-r,y:R.y-a,enabled:{[b]:c,[x]:d}}}}}},rC=function(t){return t===void 0&&(t={}),{options:t,fn(l){const{x:r,y:a,placement:s,rects:u,middlewareData:c}=l,{offset:d=0,mainAxis:p=!0,crossAxis:f=!0}=xl(t,l),g={x:r,y:a},y=Yn(s),x=Od(y);let b=g[x],S=g[y];const T=xl(d,l),R=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(p){const M=x==="y"?"height":"width",D=u.reference[x]-u.floating[M]+R.mainAxis,I=u.reference[x]+u.reference[M]-R.mainAxis;b<D?b=D:b>I&&(b=I)}if(f){var E,_;const M=x==="y"?"width":"height",D=Ex.has(bl(s)),I=u.reference[y]-u.floating[M]+(D&&((E=c.offset)==null?void 0:E[y])||0)+(D?0:R.crossAxis),N=u.reference[y]+u.reference[M]+(D?0:((_=c.offset)==null?void 0:_[y])||0)-(D?R.crossAxis:0);S<I?S=I:S>N&&(S=N)}return{[x]:b,[y]:S}}}},iC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(l){var r,a;const{placement:s,rects:u,platform:c,elements:d}=l,{apply:p=()=>{},...f}=xl(t,l),g=await c.detectOverflow(l,f),y=bl(s),x=Oi(s),b=Yn(s)==="y",{width:S,height:T}=u.floating;let R,E;y==="top"||y==="bottom"?(R=y,E=x===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(E=y,R=x==="end"?"top":"bottom");const _=T-g.top-g.bottom,M=S-g.left-g.right,D=Kl(T-g[R],_),I=Kl(S-g[E],M),N=!l.middlewareData.shift;let H=D,F=I;if((r=l.middlewareData.shift)!=null&&r.enabled.x&&(F=M),(a=l.middlewareData.shift)!=null&&a.enabled.y&&(H=_),N&&!x){const U=fn(g.left,0),re=fn(g.right,0),V=fn(g.top,0),ue=fn(g.bottom,0);b?F=S-2*(U!==0||re!==0?U+re:fn(g.left,g.right)):H=T-2*(V!==0||ue!==0?V+ue:fn(g.top,g.bottom))}await p({...l,availableWidth:F,availableHeight:H});const Z=await c.getDimensions(d.floating);return S!==Z.width||T!==Z.height?{reset:{rects:!0}}:{}}}};function Tx(t){const l=Tn(t);let r=parseFloat(l.width)||0,a=parseFloat(l.height)||0;const s=Kt(t),u=s?t.offsetWidth:r,c=s?t.offsetHeight:a,d=Ri(r)!==u||Ri(a)!==c;return d&&(r=u,a=c),{width:r,height:a,$:d}}function Bd(t){return Dn(t)?t:t.contextElement}function Ei(t){const l=Bd(t);if(!Kt(l))return Gn(1);const r=l.getBoundingClientRect(),{width:a,height:s,$:u}=Tx(l);let c=(u?Ri(r.width):r.width)/a,d=(u?Ri(r.height):r.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const aC=Gn(0);function Ax(t){const l=dn(t);return!_d()||!l.visualViewport?aC:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function oC(t,l,r){return l===void 0&&(l=!1),!r||l&&r!==dn(t)?!1:l}function wr(t,l,r,a){l===void 0&&(l=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),u=Bd(t);let c=Gn(1);l&&(a?Dn(a)&&(c=Ei(a)):c=Ei(t));const d=oC(u,r,a)?Ax(u):Gn(0);let p=(s.left+d.x)/c.x,f=(s.top+d.y)/c.y,g=s.width/c.x,y=s.height/c.y;if(u){const x=dn(u),b=a&&Dn(a)?dn(a):a;let S=x,T=sd(S);for(;T&&a&&b!==S;){const R=Ei(T),E=T.getBoundingClientRect(),_=Tn(T),M=E.left+(T.clientLeft+parseFloat(_.paddingLeft))*R.x,D=E.top+(T.clientTop+parseFloat(_.paddingTop))*R.y;p*=R.x,f*=R.y,g*=R.x,y*=R.y,p+=M,f+=D,S=dn(T),T=sd(S)}}return Ms({width:g,height:y,x:p,y:f})}function Ks(t,l){const r=Qs(t).scrollLeft;return l?l.left+r:wr(Pn(t)).left+r}function Rx(t,l){const r=t.getBoundingClientRect(),a=r.left+l.scrollLeft-Ks(t,r),s=r.top+l.scrollTop;return{x:a,y:s}}function sC(t){let{elements:l,rect:r,offsetParent:a,strategy:s}=t;const u=s==="fixed",c=Pn(a),d=l?Xs(l.floating):!1;if(a===c||d&&u)return r;let p={scrollLeft:0,scrollTop:0},f=Gn(1);const g=Gn(0),y=Kt(a);if((y||!y&&!u)&&((_i(a)!=="body"||$a(c))&&(p=Qs(a)),Kt(a))){const b=wr(a);f=Ei(a),g.x=b.x+a.clientLeft,g.y=b.y+a.clientTop}const x=c&&!y&&!u?Rx(c,p):Gn(0);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-p.scrollLeft*f.x+g.x+x.x,y:r.y*f.y-p.scrollTop*f.y+g.y+x.y}}function uC(t){return Array.from(t.getClientRects())}function cC(t){const l=Pn(t),r=Qs(t),a=t.ownerDocument.body,s=fn(l.scrollWidth,l.clientWidth,a.scrollWidth,a.clientWidth),u=fn(l.scrollHeight,l.clientHeight,a.scrollHeight,a.clientHeight);let c=-r.scrollLeft+Ks(t);const d=-r.scrollTop;return Tn(a).direction==="rtl"&&(c+=fn(l.clientWidth,a.clientWidth)-s),{width:s,height:u,x:c,y:d}}const P1=25;function fC(t,l){const r=dn(t),a=Pn(t),s=r.visualViewport;let u=a.clientWidth,c=a.clientHeight,d=0,p=0;if(s){u=s.width,c=s.height;const g=_d();(!g||g&&l==="fixed")&&(d=s.offsetLeft,p=s.offsetTop)}const f=Ks(a);if(f<=0){const g=a.ownerDocument,y=g.body,x=getComputedStyle(y),b=g.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,S=Math.abs(a.clientWidth-y.clientWidth-b);S<=P1&&(u-=S)}else f<=P1&&(u+=f);return{width:u,height:c,x:d,y:p}}const dC=new Set(["absolute","fixed"]);function hC(t,l){const r=wr(t,!0,l==="fixed"),a=r.top+t.clientTop,s=r.left+t.clientLeft,u=Kt(t)?Ei(t):Gn(1),c=t.clientWidth*u.x,d=t.clientHeight*u.y,p=s*u.x,f=a*u.y;return{width:c,height:d,x:p,y:f}}function X1(t,l,r){let a;if(l==="viewport")a=fC(t,r);else if(l==="document")a=cC(Pn(t));else if(Dn(l))a=hC(l,r);else{const s=Ax(t);a={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return Ms(a)}function zx(t,l){const r=Fl(t);return r===l||!Dn(r)||Ai(r)?!1:Tn(r).position==="fixed"||zx(r,l)}function pC(t,l){const r=l.get(t);if(r)return r;let a=Pa(t,[],!1).filter(d=>Dn(d)&&_i(d)!=="body"),s=null;const u=Tn(t).position==="fixed";let c=u?Fl(t):t;for(;Dn(c)&&!Ai(c);){const d=Tn(c),p=Nd(c);!p&&d.position==="fixed"&&(s=null),(u?!p&&!s:!p&&d.position==="static"&&!!s&&dC.has(s.position)||$a(c)&&!p&&zx(t,c))?a=a.filter(g=>g!==c):s=d,c=Fl(c)}return l.set(t,a),a}function mC(t){let{element:l,boundary:r,rootBoundary:a,strategy:s}=t;const c=[...r==="clippingAncestors"?Xs(l)?[]:pC(l,this._c):[].concat(r),a],d=c[0],p=c.reduce((f,g)=>{const y=X1(l,g,s);return f.top=fn(y.top,f.top),f.right=Kl(y.right,f.right),f.bottom=Kl(y.bottom,f.bottom),f.left=fn(y.left,f.left),f},X1(l,d,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function gC(t){const{width:l,height:r}=Tx(t);return{width:l,height:r}}function yC(t,l,r){const a=Kt(l),s=Pn(l),u=r==="fixed",c=wr(t,!0,u,l);let d={scrollLeft:0,scrollTop:0};const p=Gn(0);function f(){p.x=Ks(s)}if(a||!a&&!u)if((_i(l)!=="body"||$a(s))&&(d=Qs(l)),a){const b=wr(l,!0,u,l);p.x=b.x+l.clientLeft,p.y=b.y+l.clientTop}else s&&f();u&&!a&&s&&f();const g=s&&!a&&!u?Rx(s,d):Gn(0),y=c.left+d.scrollLeft-p.x-g.x,x=c.top+d.scrollTop-p.y-g.y;return{x:y,y:x,width:c.width,height:c.height}}function Of(t){return Tn(t).position==="static"}function Q1(t,l){if(!Kt(t)||Tn(t).position==="fixed")return null;if(l)return l(t);let r=t.offsetParent;return Pn(t)===r&&(r=r.ownerDocument.body),r}function Mx(t,l){const r=dn(t);if(Xs(t))return r;if(!Kt(t)){let s=Fl(t);for(;s&&!Ai(s);){if(Dn(s)&&!Of(s))return s;s=Fl(s)}return r}let a=Q1(t,l);for(;a&&pw(a)&&Of(a);)a=Q1(a,l);return a&&Ai(a)&&Of(a)&&!Nd(a)?r:a||bw(t)||r}const xC=async function(t){const l=this.getOffsetParent||Mx,r=this.getDimensions,a=await r(t.floating);return{reference:yC(t.reference,await l(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function bC(t){return Tn(t).direction==="rtl"}const vC={convertOffsetParentRelativeRectToViewportRelativeRect:sC,getDocumentElement:Pn,getClippingRect:mC,getOffsetParent:Mx,getElementRects:xC,getClientRects:uC,getDimensions:gC,getScale:Ei,isElement:Dn,isRTL:bC};function Nx(t,l){return t.x===l.x&&t.y===l.y&&t.width===l.width&&t.height===l.height}function SC(t,l){let r=null,a;const s=Pn(t);function u(){var d;clearTimeout(a),(d=r)==null||d.disconnect(),r=null}function c(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),u();const f=t.getBoundingClientRect(),{left:g,top:y,width:x,height:b}=f;if(d||l(),!x||!b)return;const S=wi(y),T=wi(s.clientWidth-(g+x)),R=wi(s.clientHeight-(y+b)),E=wi(g),M={rootMargin:-S+"px "+-T+"px "+-R+"px "+-E+"px",threshold:fn(0,Kl(1,p))||1};let D=!0;function I(N){const H=N[0].intersectionRatio;if(H!==p){if(!D)return c();H?c(!1,H):a=setTimeout(()=>{c(!1,1e-7)},1e3)}H===1&&!Nx(f,t.getBoundingClientRect())&&c(),D=!1}try{r=new IntersectionObserver(I,{...M,root:s.ownerDocument})}catch{r=new IntersectionObserver(I,M)}r.observe(t)}return c(!0),u}function wC(t,l,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=a,f=Bd(t),g=s||u?[...f?Pa(f):[],...Pa(l)]:[];g.forEach(E=>{s&&E.addEventListener("scroll",r,{passive:!0}),u&&E.addEventListener("resize",r)});const y=f&&d?SC(f,r):null;let x=-1,b=null;c&&(b=new ResizeObserver(E=>{let[_]=E;_&&_.target===f&&b&&(b.unobserve(l),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var M;(M=b)==null||M.observe(l)})),r()}),f&&!p&&b.observe(f),b.observe(l));let S,T=p?wr(t):null;p&&R();function R(){const E=wr(t);T&&!Nx(T,E)&&r(),T=E,S=requestAnimationFrame(R)}return r(),()=>{var E;g.forEach(_=>{s&&_.removeEventListener("scroll",r),u&&_.removeEventListener("resize",r)}),y==null||y(),(E=b)==null||E.disconnect(),b=null,p&&cancelAnimationFrame(S)}}const kC=nC,CC=lC,EC=Wk,TC=iC,AC=eC,Z1=Jk,RC=rC,zC=(t,l,r)=>{const a=new Map,s={platform:vC,...r},u={...s.platform,_c:a};return Kk(t,l,{...s,platform:u})};var MC=typeof document<"u",NC=function(){},Es=MC?k.useLayoutEffect:NC;function _s(t,l){if(t===l)return!0;if(typeof t!=typeof l)return!1;if(typeof t=="function"&&t.toString()===l.toString())return!0;let r,a,s;if(t&&l&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==l.length)return!1;for(a=r;a--!==0;)if(!_s(t[a],l[a]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(l).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(l,s[a]))return!1;for(a=r;a--!==0;){const u=s[a];if(!(u==="_owner"&&t.$$typeof)&&!_s(t[u],l[u]))return!1}return!0}return t!==t&&l!==l}function _x(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function $1(t,l){const r=_x(t);return Math.round(l*r)/r}function jf(t){const l=k.useRef(t);return Es(()=>{l.current=t}),l}function _C(t){t===void 0&&(t={});const{placement:l="bottom",strategy:r="absolute",middleware:a=[],platform:s,elements:{reference:u,floating:c}={},transform:d=!0,whileElementsMounted:p,open:f}=t,[g,y]=k.useState({x:0,y:0,strategy:r,placement:l,middlewareData:{},isPositioned:!1}),[x,b]=k.useState(a);_s(x,a)||b(a);const[S,T]=k.useState(null),[R,E]=k.useState(null),_=k.useCallback(te=>{te!==N.current&&(N.current=te,T(te))},[]),M=k.useCallback(te=>{te!==H.current&&(H.current=te,E(te))},[]),D=u||S,I=c||R,N=k.useRef(null),H=k.useRef(null),F=k.useRef(g),Z=p!=null,U=jf(p),re=jf(s),V=jf(f),ue=k.useCallback(()=>{if(!N.current||!H.current)return;const te={placement:l,strategy:r,middleware:x};re.current&&(te.platform=re.current),zC(N.current,H.current,te).then(oe=>{const z={...oe,isPositioned:V.current!==!1};ne.current&&!_s(F.current,z)&&(F.current=z,Ld.flushSync(()=>{y(z)}))})},[x,l,r,re,V]);Es(()=>{f===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,y(te=>({...te,isPositioned:!1})))},[f]);const ne=k.useRef(!1);Es(()=>(ne.current=!0,()=>{ne.current=!1}),[]),Es(()=>{if(D&&(N.current=D),I&&(H.current=I),D&&I){if(U.current)return U.current(D,I,ue);ue()}},[D,I,ue,U,Z]);const ee=k.useMemo(()=>({reference:N,floating:H,setReference:_,setFloating:M}),[_,M]),B=k.useMemo(()=>({reference:D,floating:I}),[D,I]),X=k.useMemo(()=>{const te={position:r,left:0,top:0};if(!B.floating)return te;const oe=$1(B.floating,g.x),z=$1(B.floating,g.y);return d?{...te,transform:"translate("+oe+"px, "+z+"px)",..._x(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:oe,top:z}},[r,d,B.floating,g.x,g.y]);return k.useMemo(()=>({...g,update:ue,refs:ee,elements:B,floatingStyles:X}),[g,ue,ee,B,X])}const OC=t=>{function l(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:a,padding:s}=typeof t=="function"?t(r):t;return a&&l(a)?a.current!=null?Z1({element:a.current,padding:s}).fn(r):{}:a?Z1({element:a,padding:s}).fn(r):{}}}},jC=(t,l)=>({...kC(t),options:[t,l]}),DC=(t,l)=>({...CC(t),options:[t,l]}),LC=(t,l)=>({...RC(t),options:[t,l]}),BC=(t,l)=>({...EC(t),options:[t,l]}),HC=(t,l)=>({...TC(t),options:[t,l]}),UC=(t,l)=>({...AC(t),options:[t,l]}),qC=(t,l)=>({...OC(t),options:[t,l]});var IC="Arrow",Ox=k.forwardRef((t,l)=>{const{children:r,width:a=10,height:s=5,...u}=t;return w.jsx(Wl.svg,{...u,ref:l,width:a,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ox.displayName=IC;var VC=Ox;function YC(t){const[l,r]=k.useState(void 0);return Jl(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const u=s[0];let c,d;if("borderBoxSize"in u){const p=u.borderBoxSize,f=Array.isArray(p)?p[0]:p;c=f.inlineSize,d=f.blockSize}else c=t.offsetWidth,d=t.offsetHeight;r({width:c,height:d})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else r(void 0)},[t]),l}var Hd="Popper",[jx,Dx]=vx(Hd),[GC,Lx]=jx(Hd),Bx=t=>{const{__scopePopper:l,children:r}=t,[a,s]=k.useState(null);return w.jsx(GC,{scope:l,anchor:a,onAnchorChange:s,children:r})};Bx.displayName=Hd;var Hx="PopperAnchor",Ux=k.forwardRef((t,l)=>{const{__scopePopper:r,virtualRef:a,...s}=t,u=Lx(Hx,r),c=k.useRef(null),d=Er(l,c),p=k.useRef(null);return k.useEffect(()=>{const f=p.current;p.current=(a==null?void 0:a.current)||c.current,f!==p.current&&u.onAnchorChange(p.current)}),a?null:w.jsx(Wl.div,{...s,ref:d})});Ux.displayName=Hx;var Ud="PopperContent",[PC,XC]=jx(Ud),qx=k.forwardRef((t,l)=>{var ae,Me,ze,at,Ct,Wt;const{__scopePopper:r,side:a="bottom",sideOffset:s=0,align:u="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:p=!0,collisionBoundary:f=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:b="optimized",onPlaced:S,...T}=t,R=Lx(Ud,r),[E,_]=k.useState(null),M=Er(l,It=>_(It)),[D,I]=k.useState(null),N=YC(D),H=(N==null?void 0:N.width)??0,F=(N==null?void 0:N.height)??0,Z=a+(u!=="center"?"-"+u:""),U=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},re=Array.isArray(f)?f:[f],V=re.length>0,ue={padding:U,boundary:re.filter(ZC),altBoundary:V},{refs:ne,floatingStyles:ee,placement:B,isPositioned:X,middlewareData:te}=_C({strategy:"fixed",placement:Z,whileElementsMounted:(...It)=>wC(...It,{animationFrame:b==="always"}),elements:{reference:R.anchor},middleware:[jC({mainAxis:s+F,alignmentAxis:c}),p&&DC({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?LC():void 0,...ue}),p&&BC({...ue}),HC({...ue,apply:({elements:It,rects:jt,availableWidth:pn,availableHeight:Vt})=>{const{width:An,height:Rn}=jt.reference,Et=It.floating.style;Et.setProperty("--radix-popper-available-width",`${pn}px`),Et.setProperty("--radix-popper-available-height",`${Vt}px`),Et.setProperty("--radix-popper-anchor-width",`${An}px`),Et.setProperty("--radix-popper-anchor-height",`${Rn}px`)}}),D&&qC({element:D,padding:d}),$C({arrowWidth:H,arrowHeight:F}),x&&UC({strategy:"referenceHidden",...ue})]}),[oe,z]=Yx(B),O=Fs(S);Jl(()=>{X&&(O==null||O())},[X,O]);const Q=(ae=te.arrow)==null?void 0:ae.x,A=(Me=te.arrow)==null?void 0:Me.y,se=((ze=te.arrow)==null?void 0:ze.centerOffset)!==0,[me,pe]=k.useState();return Jl(()=>{E&&pe(window.getComputedStyle(E).zIndex)},[E]),w.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:X?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(at=te.transformOrigin)==null?void 0:at.x,(Ct=te.transformOrigin)==null?void 0:Ct.y].join(" "),...((Wt=te.hide)==null?void 0:Wt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:w.jsx(PC,{scope:r,placedSide:oe,onArrowChange:I,arrowX:Q,arrowY:A,shouldHideArrow:se,children:w.jsx(Wl.div,{"data-side":oe,"data-align":z,...T,ref:M,style:{...T.style,animation:X?void 0:"none"}})})})});qx.displayName=Ud;var Ix="PopperArrow",QC={top:"bottom",right:"left",bottom:"top",left:"right"},Vx=k.forwardRef(function(l,r){const{__scopePopper:a,...s}=l,u=XC(Ix,a),c=QC[u.placedSide];return w.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:w.jsx(VC,{...s,ref:r,style:{...s.style,display:"block"}})})});Vx.displayName=Ix;function ZC(t){return t!==null}var $C=t=>({name:"transformOrigin",options:t,fn(l){var R,E,_;const{placement:r,rects:a,middlewareData:s}=l,c=((R=s.arrow)==null?void 0:R.centerOffset)!==0,d=c?0:t.arrowWidth,p=c?0:t.arrowHeight,[f,g]=Yx(r),y={start:"0%",center:"50%",end:"100%"}[g],x=(((E=s.arrow)==null?void 0:E.x)??0)+d/2,b=(((_=s.arrow)==null?void 0:_.y)??0)+p/2;let S="",T="";return f==="bottom"?(S=c?y:`${x}px`,T=`${-p}px`):f==="top"?(S=c?y:`${x}px`,T=`${a.floating.height+p}px`):f==="right"?(S=`${-p}px`,T=c?y:`${b}px`):f==="left"&&(S=`${a.floating.width+p}px`,T=c?y:`${b}px`),{data:{x:S,y:T}}}});function Yx(t){const[l,r="center"]=t.split("-");return[l,r]}var FC=Bx,KC=Ux,JC=qx,WC=Vx,e3="Portal",Gx=k.forwardRef((t,l)=>{var d;const{container:r,...a}=t,[s,u]=k.useState(!1);Jl(()=>u(!0),[]);const c=r||s&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return c?Mk.createPortal(w.jsx(Wl.div,{...a,ref:l}),c):null});Gx.displayName=e3;function t3(t,l){return k.useReducer((r,a)=>l[r][a]??r,t)}var qd=t=>{const{present:l,children:r}=t,a=n3(l),s=typeof r=="function"?r({present:a.isPresent}):k.Children.only(r),u=Er(a.ref,l3(s));return typeof r=="function"||a.isPresent?k.cloneElement(s,{ref:u}):null};qd.displayName="Presence";function n3(t){const[l,r]=k.useState(),a=k.useRef(null),s=k.useRef(t),u=k.useRef("none"),c=t?"mounted":"unmounted",[d,p]=t3(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const f=gs(a.current);u.current=d==="mounted"?f:"none"},[d]),Jl(()=>{const f=a.current,g=s.current;if(g!==t){const x=u.current,b=gs(f);t?p("MOUNT"):b==="none"||(f==null?void 0:f.display)==="none"?p("UNMOUNT"):p(g&&x!==b?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,p]),Jl(()=>{if(l){let f;const g=l.ownerDocument.defaultView??window,y=b=>{const T=gs(a.current).includes(CSS.escape(b.animationName));if(b.target===l&&T&&(p("ANIMATION_END"),!s.current)){const R=l.style.animationFillMode;l.style.animationFillMode="forwards",f=g.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=R)})}},x=b=>{b.target===l&&(u.current=gs(a.current))};return l.addEventListener("animationstart",x),l.addEventListener("animationcancel",y),l.addEventListener("animationend",y),()=>{g.clearTimeout(f),l.removeEventListener("animationstart",x),l.removeEventListener("animationcancel",y),l.removeEventListener("animationend",y)}}else p("ANIMATION_END")},[l,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:k.useCallback(f=>{a.current=f?getComputedStyle(f):null,r(f)},[])}}function gs(t){return(t==null?void 0:t.animationName)||"none"}function l3(t){var a,s;let l=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?t.ref:(l=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var r3=Vs[" useInsertionEffect ".trim().toString()]||Jl;function i3({prop:t,defaultProp:l,onChange:r=()=>{},caller:a}){const[s,u,c]=a3({defaultProp:l,onChange:r}),d=t!==void 0,p=d?t:s;{const g=k.useRef(t!==void 0);k.useEffect(()=>{const y=g.current;y!==d&&console.warn(`${a} is changing from ${y?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=d},[d,a])}const f=k.useCallback(g=>{var y;if(d){const x=o3(g)?g(t):g;x!==t&&((y=c.current)==null||y.call(c,x))}else u(g)},[d,t,u,c]);return[p,f]}function a3({defaultProp:t,onChange:l}){const[r,a]=k.useState(t),s=k.useRef(r),u=k.useRef(l);return r3(()=>{u.current=l},[l]),k.useEffect(()=>{var c;s.current!==r&&((c=u.current)==null||c.call(u,r),s.current=r)},[r,s]),[r,a,u]}function o3(t){return typeof t=="function"}var s3=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),u3="VisuallyHidden",Px=k.forwardRef((t,l)=>w.jsx(Wl.span,{...t,ref:l,style:{...s3,...t.style}}));Px.displayName=u3;var c3=Px,[Js]=vx("Tooltip",[Dx]),Ws=Dx(),Xx="TooltipProvider",f3=700,dd="tooltip.open",[d3,Id]=Js(Xx),Qx=t=>{const{__scopeTooltip:l,delayDuration:r=f3,skipDelayDuration:a=300,disableHoverableContent:s=!1,children:u}=t,c=k.useRef(!0),d=k.useRef(!1),p=k.useRef(0);return k.useEffect(()=>{const f=p.current;return()=>window.clearTimeout(f)},[]),w.jsx(d3,{scope:l,isOpenDelayedRef:c,delayDuration:r,onOpen:k.useCallback(()=>{window.clearTimeout(p.current),c.current=!1},[]),onClose:k.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>c.current=!0,a)},[a]),isPointerInTransitRef:d,onPointerInTransitChange:k.useCallback(f=>{d.current=f},[]),disableHoverableContent:s,children:u})};Qx.displayName=Xx;var Xa="Tooltip",[h3,Fa]=Js(Xa),Zx=t=>{const{__scopeTooltip:l,children:r,open:a,defaultOpen:s,onOpenChange:u,disableHoverableContent:c,delayDuration:d}=t,p=Id(Xa,t.__scopeTooltip),f=Ws(l),[g,y]=k.useState(null),x=$k(),b=k.useRef(0),S=c??p.disableHoverableContent,T=d??p.delayDuration,R=k.useRef(!1),[E,_]=i3({prop:a,defaultProp:s??!1,onChange:H=>{H?(p.onOpen(),document.dispatchEvent(new CustomEvent(dd))):p.onClose(),u==null||u(H)},caller:Xa}),M=k.useMemo(()=>E?R.current?"delayed-open":"instant-open":"closed",[E]),D=k.useCallback(()=>{window.clearTimeout(b.current),b.current=0,R.current=!1,_(!0)},[_]),I=k.useCallback(()=>{window.clearTimeout(b.current),b.current=0,_(!1)},[_]),N=k.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{R.current=!0,_(!0),b.current=0},T)},[T,_]);return k.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),w.jsx(FC,{...f,children:w.jsx(h3,{scope:l,contentId:x,open:E,stateAttribute:M,trigger:g,onTriggerChange:y,onTriggerEnter:k.useCallback(()=>{p.isOpenDelayedRef.current?N():D()},[p.isOpenDelayedRef,N,D]),onTriggerLeave:k.useCallback(()=>{S?I():(window.clearTimeout(b.current),b.current=0)},[I,S]),onOpen:D,onClose:I,disableHoverableContent:S,children:r})})};Zx.displayName=Xa;var hd="TooltipTrigger",$x=k.forwardRef((t,l)=>{const{__scopeTooltip:r,...a}=t,s=Fa(hd,r),u=Id(hd,r),c=Ws(r),d=k.useRef(null),p=Er(l,d,s.onTriggerChange),f=k.useRef(!1),g=k.useRef(!1),y=k.useCallback(()=>f.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),w.jsx(KC,{asChild:!0,...c,children:w.jsx(Wl.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:p,onPointerMove:pl(t.onPointerMove,x=>{x.pointerType!=="touch"&&!g.current&&!u.isPointerInTransitRef.current&&(s.onTriggerEnter(),g.current=!0)}),onPointerLeave:pl(t.onPointerLeave,()=>{s.onTriggerLeave(),g.current=!1}),onPointerDown:pl(t.onPointerDown,()=>{s.open&&s.onClose(),f.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:pl(t.onFocus,()=>{f.current||s.onOpen()}),onBlur:pl(t.onBlur,s.onClose),onClick:pl(t.onClick,s.onClose)})})});$x.displayName=hd;var Vd="TooltipPortal",[p3,m3]=Js(Vd,{forceMount:void 0}),Fx=t=>{const{__scopeTooltip:l,forceMount:r,children:a,container:s}=t,u=Fa(Vd,l);return w.jsx(p3,{scope:l,forceMount:r,children:w.jsx(qd,{present:r||u.open,children:w.jsx(Gx,{asChild:!0,container:s,children:a})})})};Fx.displayName=Vd;var zi="TooltipContent",Kx=k.forwardRef((t,l)=>{const r=m3(zi,t.__scopeTooltip),{forceMount:a=r.forceMount,side:s="top",...u}=t,c=Fa(zi,t.__scopeTooltip);return w.jsx(qd,{present:a||c.open,children:c.disableHoverableContent?w.jsx(Jx,{side:s,...u,ref:l}):w.jsx(g3,{side:s,...u,ref:l})})}),g3=k.forwardRef((t,l)=>{const r=Fa(zi,t.__scopeTooltip),a=Id(zi,t.__scopeTooltip),s=k.useRef(null),u=Er(l,s),[c,d]=k.useState(null),{trigger:p,onClose:f}=r,g=s.current,{onPointerInTransitChange:y}=a,x=k.useCallback(()=>{d(null),y(!1)},[y]),b=k.useCallback((S,T)=>{const R=S.currentTarget,E={x:S.clientX,y:S.clientY},_=v3(E,R.getBoundingClientRect()),M=S3(E,_),D=w3(T.getBoundingClientRect()),I=C3([...M,...D]);d(I),y(!0)},[y]);return k.useEffect(()=>()=>x(),[x]),k.useEffect(()=>{if(p&&g){const S=R=>b(R,g),T=R=>b(R,p);return p.addEventListener("pointerleave",S),g.addEventListener("pointerleave",T),()=>{p.removeEventListener("pointerleave",S),g.removeEventListener("pointerleave",T)}}},[p,g,b,x]),k.useEffect(()=>{if(c){const S=T=>{const R=T.target,E={x:T.clientX,y:T.clientY},_=(p==null?void 0:p.contains(R))||(g==null?void 0:g.contains(R)),M=!k3(E,c);_?x():M&&(x(),f())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[p,g,c,f,x]),w.jsx(Jx,{...t,ref:u})}),[y3,x3]=Js(Xa,{isInside:!1}),b3=Ok("TooltipContent"),Jx=k.forwardRef((t,l)=>{const{__scopeTooltip:r,children:a,"aria-label":s,onEscapeKeyDown:u,onPointerDownOutside:c,...d}=t,p=Fa(zi,r),f=Ws(r),{onClose:g}=p;return k.useEffect(()=>(document.addEventListener(dd,g),()=>document.removeEventListener(dd,g)),[g]),k.useEffect(()=>{if(p.trigger){const y=x=>{const b=x.target;b!=null&&b.contains(p.trigger)&&g()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[p.trigger,g]),w.jsx(kx,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:g,children:w.jsxs(JC,{"data-state":p.stateAttribute,...f,...d,ref:l,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx(b3,{children:a}),w.jsx(y3,{scope:r,isInside:!0,children:w.jsx(c3,{id:p.contentId,role:"tooltip",children:s||a})})]})})});Kx.displayName=zi;var Wx="TooltipArrow",eb=k.forwardRef((t,l)=>{const{__scopeTooltip:r,...a}=t,s=Ws(r);return x3(Wx,r).isInside?null:w.jsx(WC,{...s,...a,ref:l})});eb.displayName=Wx;function v3(t,l){const r=Math.abs(l.top-t.y),a=Math.abs(l.bottom-t.y),s=Math.abs(l.right-t.x),u=Math.abs(l.left-t.x);switch(Math.min(r,a,s,u)){case u:return"left";case s:return"right";case r:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function S3(t,l,r=5){const a=[];switch(l){case"top":a.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":a.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":a.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":a.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return a}function w3(t){const{top:l,right:r,bottom:a,left:s}=t;return[{x:s,y:l},{x:r,y:l},{x:r,y:a},{x:s,y:a}]}function k3(t,l){const{x:r,y:a}=t;let s=!1;for(let u=0,c=l.length-1;u<l.length;c=u++){const d=l[u],p=l[c],f=d.x,g=d.y,y=p.x,x=p.y;g>a!=x>a&&r<(y-f)*(a-g)/(x-g)+f&&(s=!s)}return s}function C3(t){const l=t.slice();return l.sort((r,a)=>r.x<a.x?-1:r.x>a.x?1:r.y<a.y?-1:r.y>a.y?1:0),E3(l)}function E3(t){if(t.length<=1)return t.slice();const l=[];for(let a=0;a<t.length;a++){const s=t[a];for(;l.length>=2;){const u=l[l.length-1],c=l[l.length-2];if((u.x-c.x)*(s.y-c.y)>=(u.y-c.y)*(s.x-c.x))l.pop();else break}l.push(s)}l.pop();const r=[];for(let a=t.length-1;a>=0;a--){const s=t[a];for(;r.length>=2;){const u=r[r.length-1],c=r[r.length-2];if((u.x-c.x)*(s.y-c.y)>=(u.y-c.y)*(s.x-c.x))r.pop();else break}r.push(s)}return r.pop(),l.length===1&&r.length===1&&l[0].x===r[0].x&&l[0].y===r[0].y?l:l.concat(r)}var T3=Qx,A3=Zx,R3=$x,z3=Fx,M3=Kx,N3=eb;function tb({delayDuration:t=0,...l}){return w.jsx(T3,{"data-slot":"tooltip-provider",delayDuration:t,...l})}function _3({...t}){return w.jsx(tb,{children:w.jsx(A3,{"data-slot":"tooltip",...t})})}function O3({...t}){return w.jsx(R3,{"data-slot":"tooltip-trigger",...t})}function j3({className:t,sideOffset:l=0,children:r,...a}){return w.jsx(z3,{children:w.jsxs(M3,{"data-slot":"tooltip-content",sideOffset:l,className:ye("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...a,children:[r,w.jsx(N3,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const D3=k.forwardRef(({className:t,orientation:l="horizontal",decorative:r=!0,...a},s)=>w.jsx("div",{ref:s,role:r?"none":"separator","aria-orientation":r?void 0:l,className:ye("shrink-0 bg-ann-border",l==="horizontal"?"h-px w-full":"h-full w-px",t),...a}));D3.displayName="Separator";const L3={xs:10,sm:14,md:18,lg:24};function Tr({size:t="sm",className:l}){const r=L3[t];return w.jsx("span",{className:ye("inline-block",l),style:{width:r,height:r,borderRadius:"50%",border:"2px solid var(--color-ann-accent, #3b82f6)",borderTopColor:"transparent",animation:"spin 0.8s linear infinite"},role:"status","aria-label":"Loading"})}function B3(t){if(/^#[0-9a-f]{6}$/i.test(t))return t;const l=t.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(l){const r=parseInt(l[1]).toString(16).padStart(2,"0"),a=parseInt(l[2]).toString(16).padStart(2,"0"),s=parseInt(l[3]).toString(16).padStart(2,"0");return`#${r}${a}${s}`}return"#000000"}function Df({label:t,value:l,onChange:r,className:a}){const s=k.useRef(null),[u,c]=k.useState(l);k.useEffect(()=>{c(l)},[l]);const d=k.useMemo(()=>B3(l),[l]),p=()=>{var b;(b=s.current)==null||b.click()},f=b=>{const S=b.target.value;c(S),r(S)},g=b=>{c(b.target.value)},y=()=>{u.trim()?r(u.trim()):c(l)},x=b=>{b.key==="Enter"&&y()};return w.jsxs("div",{className:ye("flex items-center gap-2",a),children:[w.jsx("button",{type:"button",onClick:p,className:ye("w-7 h-7 rounded-md","border border-ann-border","cursor-pointer hover:border-ann-border-hover transition-colors","flex-shrink-0","focus:outline-none focus:ring-2 focus:ring-ann-accent focus:ring-offset-1 focus:ring-offset-ann-bg"),style:{backgroundColor:l},title:"Click to pick color"}),w.jsx("input",{ref:s,type:"color",value:d,onChange:f,className:"sr-only"}),w.jsxs("div",{className:"flex-1 flex flex-col gap-0.5",children:[w.jsx("label",{className:"text-[10px] text-ann-text-muted uppercase tracking-wide",children:t}),w.jsx("input",{type:"text",value:u,onChange:g,onBlur:y,onKeyDown:x,placeholder:"#000000",className:ye("w-full px-2 py-1 rounded-md","bg-ann-bg-elevated border border-ann-border","text-xs text-ann-text font-mono","focus:outline-none focus:ring-1 focus:ring-ann-accent focus:border-transparent","placeholder:text-ann-text-muted")})]})]})}function H3(t){const l=t.match(/^(-?\d+(?:\.\d+)?)/);return l!=null&&l[1]?parseFloat(l[1]):0}function ys({label:t,value:l,onChange:r,placeholder:a="0px",max:s=64,className:u}){const[c,d]=k.useState(l),p=H3(l);k.useEffect(()=>{d(l)},[l]);const f=b=>{d(b.target.value)},g=b=>{const T=`${parseInt(b.target.value,10)}px`;d(T),r(T)},y=()=>{const b=c.trim();b?/^\d+$/.test(b)?(r(`${b}px`),d(`${b}px`)):r(b):d(l)},x=b=>{b.key==="Enter"&&y()};return w.jsxs("div",{className:ye("flex flex-col gap-2",u),children:[w.jsxs("div",{className:"flex items-center justify-between gap-2",children:[w.jsx("label",{className:"text-[10px] text-ann-text-muted uppercase tracking-wide flex-1",children:t}),w.jsx("input",{type:"text",value:c,onChange:f,onBlur:y,onKeyDown:x,placeholder:a,className:ye("w-16 px-2 py-1 rounded-md text-right","bg-ann-bg-elevated border border-ann-border","text-xs text-ann-text font-mono","focus:outline-none focus:ring-1 focus:ring-ann-accent focus:border-transparent")})]}),w.jsx("input",{type:"range",min:"0",max:s,step:"1",value:p,onChange:g,className:ye("w-full h-1 rounded-full appearance-none cursor-pointer","bg-ann-bg-elevated","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-3","[&::-webkit-slider-thumb]:h-3","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:bg-ann-text","[&::-webkit-slider-thumb]:cursor-pointer","[&::-webkit-slider-thumb]:transition-transform","[&::-webkit-slider-thumb]:hover:scale-110","[&::-webkit-slider-thumb]:shadow-ann-sm","[&::-moz-range-thumb]:w-3","[&::-moz-range-thumb]:h-3","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:bg-ann-text","[&::-moz-range-thumb]:border-0","[&::-moz-range-thumb]:cursor-pointer")})]})}const nb=k.createContext({isLoading:!1,value:"",setValue:()=>{},maxHeight:240,onSubmit:void 0,disabled:!1,textareaRef:Py.createRef()});function lb(){return k.useContext(nb)}function rb({className:t,isLoading:l=!1,maxHeight:r=240,value:a,onValueChange:s,onSubmit:u,children:c,disabled:d=!1,onClick:p,...f}){const[g,y]=k.useState(a||""),x=k.useRef(null),b=T=>{y(T),s==null||s(T)},S=T=>{var R;d||(R=x.current)==null||R.focus(),p==null||p(T)};return w.jsx(tb,{children:w.jsx(nb.Provider,{value:{isLoading:l,value:a??g,setValue:s??b,maxHeight:r,onSubmit:u,disabled:d,textareaRef:x},children:w.jsx("div",{onClick:S,className:ye("border-input bg-secondary cursor-text rounded-xl border p-2.5",d&&"cursor-not-allowed opacity-60",t),...f,children:c})})})}function ib({className:t,onKeyDown:l,disableAutosize:r=!1,...a}){const{value:s,setValue:u,maxHeight:c,onSubmit:d,disabled:p,textareaRef:f}=lb(),g=S=>{!S||r||(S.style.height="auto",typeof c=="number"?S.style.height=`${Math.min(S.scrollHeight,c)}px`:S.style.height=`min(${S.scrollHeight}px, ${c})`)},y=S=>{f.current=S,g(S)};k.useLayoutEffect(()=>{if(!f.current||r)return;const S=f.current;S.style.height="auto",typeof c=="number"?S.style.height=`${Math.min(S.scrollHeight,c)}px`:S.style.height=`min(${S.scrollHeight}px, ${c})`},[s,c,r]);const x=S=>{g(S.target),u(S.target.value)},b=S=>{S.key==="Enter"&&!S.shiftKey&&(S.preventDefault(),d==null||d()),l==null||l(S)};return w.jsx(MS,{ref:y,value:s,onChange:x,onKeyDown:b,className:ye("text-primary text-sm min-h-[36px] w-full resize-none border-none bg-transparent shadow-none outline-none focus-visible:ring-0 focus-visible:ring-offset-0",t),rows:1,disabled:p,...a})}function ab({children:t,className:l,...r}){return w.jsx("div",{className:ye("flex items-center gap-2",l),...r,children:t})}function ob({tooltip:t,children:l,className:r,side:a="top",...s}){const{disabled:u}=lb();return w.jsxs(_3,{...s,children:[w.jsx(O3,{asChild:!0,disabled:u,onClick:c=>c.stopPropagation(),children:l}),w.jsx(j3,{side:a,className:r,children:t})]})}const U3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},xt=k.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:r,absoluteStrokeWidth:a=!1,className:s="",altIcon:u,showAlt:c=!1,icon:d,primaryColor:p,secondaryColor:f,disableSecondaryOpacity:g=!1,...y},x)=>{const b=r!==void 0?a?Number(r)*24/Number(l):r:void 0,S=b!==void 0?{strokeWidth:b,stroke:"currentColor"}:{},T={ref:x,...U3,width:l,height:l,color:p||t,className:s,...S,...y},E=[...c&&u?u:d].sort(([,_],[,M])=>{const D=_.opacity!==void 0;return M.opacity!==void 0?1:D?-1:0}).map(([_,M])=>{const D=M.opacity!==void 0,I=D&&!g?M.opacity:void 0,N=f?{...M.stroke!==void 0?{stroke:D?f:p||t}:{fill:D?f:p||t}}:{};return k.createElement(_,{...M,...S,...N,opacity:I,key:M.key})});return k.createElement("svg",T,E)});xt.displayName="HugeiconsIcon";const q3=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 15.9883V15.9983",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8",key:"2"}]],I3=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],V3=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Y3=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],G3=[["path",{d:"M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],P3=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],X3=[["path",{d:"M7.5 8.5H16.5M7.5 12.5H13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 10.5C2 9.72921 2.01346 8.97679 2.03909 8.2503C2.12282 5.87683 2.16469 4.69009 3.13007 3.71745C4.09545 2.74481 5.3157 2.6926 7.7562 2.58819C9.09517 2.5309 10.5209 2.5 12 2.5C13.4791 2.5 14.9048 2.5309 16.2438 2.58819C18.6843 2.6926 19.9046 2.74481 20.8699 3.71745C21.8353 4.69009 21.8772 5.87683 21.9609 8.2503C21.9865 8.97679 22 9.72921 22 10.5C22 11.2708 21.9865 12.0232 21.9609 12.7497C21.8772 15.1232 21.8353 16.3099 20.8699 17.2826C19.9046 18.2552 18.6843 18.3074 16.2437 18.4118C15.5098 18.4432 14.7498 18.4667 13.9693 18.4815C13.2282 18.4955 12.8576 18.5026 12.532 18.6266C12.2064 18.7506 11.9325 18.9855 11.3845 19.4553L9.20503 21.3242C9.07273 21.4376 8.90419 21.5 8.72991 21.5C8.32679 21.5 8 21.1732 8 20.7701V18.4219C7.91842 18.4186 7.83715 18.4153 7.75619 18.4118C5.31569 18.3074 4.09545 18.2552 3.13007 17.2825C2.16469 16.3099 2.12282 15.1232 2.03909 12.7497C2.01346 12.0232 2 11.2708 2 10.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Q3=[["path",{d:"M7.99994 12H8.00891M11.9955 12H12.0044M15.991 12H15.9999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"0"}],["path",{d:"M18 21C19.2322 21 20.231 19.8487 20.231 18.4286C20.231 16.1808 20.1312 14.6864 21.6733 12.9091C22.1089 12.407 22.1089 11.5929 21.6733 11.0908C20.1312 9.31353 20.231 7.81914 20.231 5.57141C20.231 4.15125 19.2322 2.99998 18 2.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 21C4.76784 21 3.76897 19.8487 3.76897 18.4286C3.76897 16.1808 3.86877 14.6864 2.32673 12.9091C1.89109 12.407 1.89109 11.5929 2.32673 11.0908C3.83496 9.35249 3.76897 7.8399 3.76897 5.57141C3.76897 4.15125 4.76784 2.99998 6 2.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Z3=[["path",{d:"M6.09881 19C4.7987 18.8721 3.82475 18.4816 3.17157 17.8284C2 16.6569 2 14.7712 2 11V10.5C2 6.72876 2 4.84315 3.17157 3.67157C4.34315 2.5 6.22876 2.5 10 2.5H14C17.7712 2.5 19.6569 2.5 20.8284 3.67157C22 4.84315 22 6.72876 22 10.5V11C22 14.7712 22 16.6569 20.8284 17.8284C19.6569 19 17.7712 19 14 19C13.4395 19.0125 12.9931 19.0551 12.5546 19.155C11.3562 19.4309 10.2465 20.0441 9.14987 20.5789C7.58729 21.3408 6.806 21.7218 6.31569 21.3651C5.37769 20.6665 6.29454 18.5019 6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]],$3=[["path",{d:"M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],F3=[["path",{d:"M5.10772 14.3857L5.58594 7.91256C5.61875 7.46854 5.64642 7.05187 5.67232 6.66186C5.85017 3.98379 5.94481 2.55876 7.04807 2.10979C8.15132 1.66082 9.2022 2.61969 11.1771 4.42168C11.4647 4.68413 11.772 4.96446 12.1018 5.26093L16.9102 9.58273C18.2626 10.7983 18.9389 11.4062 18.9934 11.9885C19.0309 12.3882 18.9067 12.7862 18.6489 13.0924C18.2733 13.5385 17.3734 13.6473 15.5737 13.8647C14.8156 13.9563 14.4365 14.0021 14.2073 14.2038C14.0479 14.344 13.9376 14.5321 13.8925 14.7404C13.8277 15.0399 13.9707 15.3964 14.2567 16.1095L15.7394 19.8058C15.9107 20.2328 15.9963 20.4464 15.995 20.6429C15.9932 20.9078 15.8865 21.1609 15.6986 21.3462C15.5591 21.4837 15.3471 21.57 14.9232 21.7425C14.4993 21.915 14.2873 22.0013 14.0921 22C13.8292 21.9982 13.5778 21.8907 13.3939 21.7015C13.2574 21.561 13.1717 21.3475 13.0004 20.9204L11.5177 17.2241C11.2317 16.5111 11.0887 16.1545 10.8355 15.9844C10.6595 15.8662 10.4503 15.8081 10.239 15.8187C9.935 15.834 9.63074 16.0663 9.02224 16.5308C7.57763 17.6337 6.85532 18.1851 6.27746 18.1269C5.88085 18.0871 5.51701 17.8877 5.26831 17.574C4.90595 17.1169 4.9732 16.2065 5.10772 14.3857Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],K3=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 5.5H21M16.0557 5.5L15.3731 4.09173C14.9196 3.15626 14.6928 2.68852 14.3017 2.39681C14.215 2.3321 14.1231 2.27454 14.027 2.2247C13.5939 2 13.0741 2 12.0345 2C10.9688 2 10.436 2 9.99568 2.23412C9.8981 2.28601 9.80498 2.3459 9.71729 2.41317C9.32164 2.7167 9.10063 3.20155 8.65861 4.17126L8.05292 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],J3=[["path",{d:"M3 7H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 17H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 17L21 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15 7L21 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M6 7C6 6.06812 6 5.60218 6.15224 5.23463C6.35523 4.74458 6.74458 4.35523 7.23463 4.15224C7.60218 4 8.06812 4 9 4C9.93188 4 10.3978 4 10.7654 4.15224C11.2554 4.35523 11.6448 4.74458 11.8478 5.23463C12 5.60218 12 6.06812 12 7C12 7.93188 12 8.39782 11.8478 8.76537C11.6448 9.25542 11.2554 9.64477 10.7654 9.84776C10.3978 10 9.93188 10 9 10C8.06812 10 7.60218 10 7.23463 9.84776C6.74458 9.64477 6.35523 9.25542 6.15224 8.76537C6 8.39782 6 7.93188 6 7Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 17C12 16.0681 12 15.6022 12.1522 15.2346C12.3552 14.7446 12.7446 14.3552 13.2346 14.1522C13.6022 14 14.0681 14 15 14C15.9319 14 16.3978 14 16.7654 14.1522C17.2554 14.3552 17.6448 14.7446 17.8478 15.2346C18 15.6022 18 16.0681 18 17C18 17.9319 18 18.3978 17.8478 18.7654C17.6448 19.2554 17.2554 19.6448 16.7654 19.8478C16.3978 20 15.9319 20 15 20C14.0681 20 13.6022 20 13.2346 19.8478C12.7446 19.6448 12.3552 19.2554 12.1522 18.7654C12 18.3978 12 17.9319 12 17Z",stroke:"currentColor",strokeWidth:"1.5",key:"5"}]],W3=[["path",{d:"M8.64298 3.14559L6.93816 3.93362C4.31272 5.14719 3 5.75397 3 6.75C3 7.74603 4.31272 8.35281 6.93817 9.56638L8.64298 10.3544C10.2952 11.1181 11.1214 11.5 12 11.5C12.8786 11.5 13.7048 11.1181 15.357 10.3544L17.0618 9.56638C19.6873 8.35281 21 7.74603 21 6.75C21 5.75397 19.6873 5.14719 17.0618 3.93362L15.357 3.14559C13.7048 2.38186 12.8786 2 12 2C11.1214 2 10.2952 2.38186 8.64298 3.14559Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.788 11.0972C20.9293 11.2959 21 11.5031 21 11.7309C21 12.7127 19.6873 13.3109 17.0618 14.5072L15.357 15.284C13.7048 16.0368 12.8786 16.4133 12 16.4133C11.1214 16.4133 10.2952 16.0368 8.64298 15.284L6.93817 14.5072C4.31272 13.3109 3 12.7127 3 11.7309C3 11.5031 3.07067 11.2959 3.212 11.0972",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.3767 16.2661C20.7922 16.5971 21 16.927 21 17.3176C21 18.2995 19.6873 18.8976 17.0618 20.0939L15.357 20.8707C13.7048 21.6236 12.8786 22 12 22C11.1214 22 10.2952 21.6236 8.64298 20.8707L6.93817 20.0939C4.31272 18.8976 3 18.2995 3 17.3176C3 16.927 3.20778 16.5971 3.62334 16.2661",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],eE=[["path",{d:"M3.89089 20.8727L3 21L3.12727 20.1091C3.32086 18.754 3.41765 18.0764 3.71832 17.4751C4.01899 16.8738 4.50296 16.3898 5.47091 15.4218L16.9827 3.91009C17.4062 3.48654 17.618 3.27476 17.8464 3.16155C18.2811 2.94615 18.7914 2.94615 19.2261 3.16155C19.4546 3.27476 19.6663 3.48654 20.0899 3.91009C20.5135 4.33365 20.7252 4.54543 20.8385 4.77389C21.0539 5.20856 21.0539 5.71889 20.8385 6.15356C20.7252 6.38201 20.5135 6.59379 20.0899 7.01735L8.57816 18.5291C7.61022 19.497 7.12625 19.981 6.52491 20.2817C5.92357 20.5823 5.246 20.6791 3.89089 20.8727Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 15L9 18M8.5 12.5L11.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],tE=[["path",{d:"M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],nE=[["path",{d:"M15 2L15.5387 4.39157C15.9957 6.42015 17.5798 8.00431 19.6084 8.46127L22 9L19.6084 9.53873C17.5798 9.99569 15.9957 11.5798 15.5387 13.6084L15 16L14.4613 13.6084C14.0043 11.5798 12.4202 9.99569 10.3916 9.53873L8 9L10.3916 8.46127C12.4201 8.00431 14.0043 6.42015 14.4613 4.39158L15 2Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 12L7.38481 13.7083C7.71121 15.1572 8.84275 16.2888 10.2917 16.6152L12 17L10.2917 17.3848C8.84275 17.7112 7.71121 18.8427 7.38481 20.2917L7 22L6.61519 20.2917C6.28879 18.8427 5.15725 17.7112 3.70827 17.3848L2 17L3.70827 16.6152C5.15725 16.2888 6.28879 15.1573 6.61519 13.7083L7 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],lE=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.38886 15.1629C9.89331 15.5 10.5955 15.5 12 15.5C13.4045 15.5 14.1067 15.5 14.6111 15.1629C14.8295 15.017 15.017 14.8295 15.1629 14.6111C15.5 14.1067 15.5 13.4045 15.5 12C15.5 10.5955 15.5 9.89331 15.1629 9.38886C15.017 9.17048 14.8295 8.98298 14.6111 8.83706C14.1067 8.5 13.4045 8.5 12 8.5C10.5955 8.5 9.89331 8.5 9.38886 8.83706C9.17048 8.98298 8.98298 9.17048 8.83706 9.38886C8.5 9.89331 8.5 10.5955 8.5 12C8.5 13.4045 8.5 14.1067 8.83706 14.6111C8.98298 14.8295 9.17048 15.017 9.38886 15.1629Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],rE=[["path",{d:"M5 14.5C5 14.5 6.5 14.5 8.5 18C8.5 18 14.0588 8.83333 19 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],iE={xs:12,sm:14,md:16,lg:20,xl:24},kt=(t="md")=>typeof t=="number"?t:iE[t],eu=(t="stroke")=>t==="solid"?"[&_path]:fill-current [&_path]:stroke-none [&_circle]:fill-current [&_circle]:stroke-none [&_rect]:fill-current [&_rect]:stroke-none":"";function aE({className:t,size:l="md",type:r="stroke"}){return w.jsx(xt,{icon:X3,size:kt(l),className:`${t||""} ${eu(r)}`})}function oE({className:t,size:l="md",type:r="stroke"}){return w.jsx(xt,{icon:Z3,size:kt(l),className:`${t||""} ${eu(r)}`})}function sb({className:t,size:l="md"}){return w.jsx(xt,{icon:P3,size:kt(l),className:t})}function Os({className:t,size:l="md"}){return w.jsx(xt,{icon:rE,size:kt(l),className:t})}function sE({className:t,size:l="md"}){return w.jsx(xt,{icon:J3,size:kt(l),className:t})}function uE({className:t,size:l="md"}){return w.jsx(xt,{icon:W3,size:kt(l),className:t})}function cE({className:t,size:l="md",type:r="stroke"}){return w.jsx(xt,{icon:eE,size:kt(l),className:`${t||""} ${eu(r)}`})}function fE({className:t,size:l="md"}){return w.jsx(xt,{icon:q3,size:kt(l),className:t})}function dE({className:t,size:l="md"}){return w.jsx(xt,{icon:tE,size:kt(l),className:t})}function hE({className:t,size:l="md"}){return w.jsx(xt,{icon:lE,size:kt(l),className:t})}function Yd({className:t,size:l="md"}){return w.jsx(xt,{icon:V3,size:kt(l),className:t})}function Gd({className:t,size:l="md"}){return w.jsx(xt,{icon:Y3,size:kt(l),className:t})}function pE({className:t,size:l="md"}){return w.jsx(xt,{icon:I3,size:kt(l),className:t})}function ub({className:t,size:l="md"}){return w.jsx(xt,{icon:G3,size:kt(l),className:t})}function mE({className:t,size:l="md"}){return w.jsx(xt,{icon:K3,size:kt(l),className:t})}function gE({className:t,size:l="md"}){return w.jsx(xt,{icon:$3,size:kt(l),className:t})}function cb({className:t,size:l="md"}){return w.jsx(xt,{icon:Q3,size:kt(l),className:t})}function yE({className:t,size:l="md"}){return w.jsx(xt,{icon:nE,size:kt(l),className:t})}function xE({className:t,size:l="md",type:r="stroke"}){return w.jsx(xt,{icon:F3,size:kt(l),className:`${t||""} ${eu(r)}`})}function bE({src:t,iframeRef:l,isReady:r,hoveredElement:a,selectedElement:s}){var E;const[u,c]=k.useState(!0),[d,p]=k.useState(null),[f,g]=k.useState(!1);k.useEffect(()=>{c(!0),p(null),g(!1)},[t]),k.useEffect(()=>{if(u||r)return;const _=setTimeout(async()=>{try{await fetch(t,{mode:"no-cors",cache:"no-cache"}),p(!0)}catch{p(!1)}},2e3);return()=>clearTimeout(_)},[u,r,t]);const y=()=>{c(!1)},x=()=>{c(!1),p(!1)},b=k.useCallback(()=>{c(!0),p(null),l.current&&(l.current.src=t)},[l,t]),S=u||!r&&d===null,T=!u&&!r&&d===!1,R=!u&&!r&&d===!0&&!f;return w.jsxs("div",{className:"relative h-full bg-ann-bg-secondary",children:[S&&w.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-ann-bg/80 z-10",children:w.jsxs("div",{className:"text-center",children:[w.jsx("div",{className:"animate-spin size-8 border-2 border-ann-text-muted border-t-ann-accent rounded-full mx-auto mb-3"}),w.jsx("p",{className:"text-sm text-ann-text-secondary",children:u?"Loading app...":"Connecting..."})]})}),T&&w.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-ann-bg z-10",children:w.jsxs("div",{className:"text-center max-w-[320px]",children:[w.jsx("div",{className:"size-16 rounded-2xl bg-ann-bg-elevated border border-ann-border flex items-center justify-center mx-auto mb-5",children:w.jsx("svg",{className:"size-8 text-ann-text-muted",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),w.jsx("h3",{className:"text-sm font-medium text-ann-text mb-2 text-balance",children:"App Not Running"}),w.jsx("p",{className:"text-xs text-ann-text-muted leading-relaxed text-pretty mb-4",children:"Start your development server to preview and annotate your app."}),w.jsxs("div",{className:"bg-ann-bg-secondary border border-ann-border rounded-lg p-3 text-left mb-4",children:[w.jsx("p",{className:"text-[10px] text-ann-text-muted uppercase tracking-wide mb-1.5 tabular-nums",children:"Expected URL"}),w.jsx("code",{className:"text-xs text-ann-accent break-all",children:t})]}),w.jsx("button",{onClick:b,className:"px-4 py-2 text-xs font-medium text-ann-text bg-ann-bg-elevated border border-ann-border rounded-lg hover:bg-ann-bg-surface hover:border-ann-border-hover transition-colors",children:"Retry Connection"})]})}),R&&w.jsxs("div",{className:"absolute top-0 inset-x-0 z-10 flex items-center gap-2.5 px-3 py-2 bg-ann-warning-muted border-b border-ann-warning/20",children:[w.jsx("svg",{className:"size-4 text-ann-warning flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),w.jsxs("p",{className:"flex-1 text-xs text-ann-warning text-pretty",children:["Inject script not detected. Add the"," ",w.jsx("code",{className:"font-mono bg-ann-warning/10 px-1 py-0.5 rounded text-[11px]",children:"spool()"})," ","Vite plugin to your app config."]}),w.jsx("button",{onClick:()=>g(!0),className:"p-1 rounded-md text-ann-warning/60 hover:text-ann-warning hover:bg-ann-warning/10 transition-colors","aria-label":"Dismiss banner",children:w.jsx("svg",{className:"size-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),a&&!s&&w.jsx("div",{className:"absolute bottom-4 left-4 z-20 pointer-events-none",children:w.jsxs("div",{className:"bg-ann-bg-elevated border border-ann-border rounded-lg px-3 py-2 shadow-ann-md max-w-[300px]",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"font-mono text-xs bg-ann-bg-secondary px-1.5 py-0.5 rounded text-ann-accent",children:((E=a.reactComponent)==null?void 0:E.name)||a.tagName}),a.id&&w.jsxs("span",{className:"text-xs text-ann-text-muted",children:["#",a.id]})]}),a.className&&w.jsxs("p",{className:"text-[10px] text-ann-text-muted mt-1 truncate",children:[".",a.className.split(" ").slice(0,3).join(".")]})]})}),w.jsx("iframe",{ref:l,src:t,className:"w-full h-full border-0",onLoad:y,onError:x,title:"App Preview",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups"})]})}const Lf=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#3b82f6","#8b5cf6","#ec4899","#6b7280"];function vE({element:t,selector:l,onApplyPreview:r,onRevertPreview:a,onApplyDirect:s,isApplying:u=!1}){const c=k.useMemo(()=>{var S,T,R,E,_,M,D;return{backgroundColor:((S=t.computedStyles)==null?void 0:S.backgroundColor)||"transparent",color:((T=t.computedStyles)==null?void 0:T.color)||"#000000",padding:((R=t.computedStyles)==null?void 0:R.padding)||"0px",margin:((E=t.computedStyles)==null?void 0:E.margin)||"0px",borderWidth:((_=t.computedStyles)==null?void 0:_.borderWidth)||"0px",borderColor:((M=t.computedStyles)==null?void 0:M.borderColor)||"#000000",borderRadius:((D=t.computedStyles)==null?void 0:D.borderRadius)||"0px"}},[t.computedStyles]),[d,p]=k.useState(c),[f,g]=k.useState(!1);k.useEffect(()=>{p(c),g(!1)},[c,l]),k.useEffect(()=>{if(f){const S={};Object.entries(d).forEach(([T,R])=>{R&&R!==c[T]&&(S[T]=R)}),Object.keys(S).length>0&&r(l,S)}},[d,f,l,c,r]);const y=(S,T)=>{p(R=>({...R,[S]:T})),g(!0)},x=()=>{const S={};Object.entries(d).forEach(([T,R])=>{R&&R!==c[T]&&(S[T]=R)}),Object.keys(S).length!==0&&s({selector:l,styles:S,originalStyles:c})},b=()=>{p(c),g(!1),a(l)};return w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{className:"space-y-2",children:[w.jsx("h4",{className:"text-[10px] font-medium text-ann-text-muted uppercase tracking-wide",children:"Fill"}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Df,{label:"",value:d.backgroundColor||"transparent",onChange:S=>y("backgroundColor",S)}),w.jsx("div",{className:"flex-1 flex flex-wrap gap-1",children:Lf.map(S=>w.jsx("button",{onClick:()=>y("backgroundColor",S),className:ye("w-5 h-5 rounded border border-ann-border transition-transform hover:scale-110",d.backgroundColor===S&&"ring-2 ring-ann-accent ring-offset-1"),style:{backgroundColor:S},title:S},S))})]})]}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h4",{className:"text-[10px] font-medium text-ann-text-muted uppercase tracking-wide",children:"Text"}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Df,{label:"",value:d.color||"#ffffff",onChange:S=>y("color",S)}),w.jsx("div",{className:"flex-1 flex flex-wrap gap-1",children:Lf.map(S=>w.jsx("button",{onClick:()=>y("color",S),className:ye("w-5 h-5 rounded border border-ann-border transition-transform hover:scale-110",d.color===S&&"ring-2 ring-ann-accent ring-offset-1"),style:{backgroundColor:S},title:S},S))})]})]}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h4",{className:"text-[10px] font-medium text-ann-text-muted uppercase tracking-wide",children:"Spacing"}),w.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[w.jsx(ys,{label:"Padding",value:d.padding||"0px",onChange:S=>y("padding",S),placeholder:"0px"}),w.jsx(ys,{label:"Margin",value:d.margin||"0px",onChange:S=>y("margin",S),placeholder:"0px"})]})]}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h4",{className:"text-[10px] font-medium text-ann-text-muted uppercase tracking-wide",children:"Border"}),w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[w.jsx(ys,{label:"Width",value:d.borderWidth||"0px",onChange:S=>y("borderWidth",S),placeholder:"0px"}),w.jsx(ys,{label:"Radius",value:d.borderRadius||"0px",onChange:S=>y("borderRadius",S),placeholder:"0px"})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Df,{label:"",value:d.borderColor||"#000000",onChange:S=>y("borderColor",S)}),w.jsx("div",{className:"flex-1 flex flex-wrap gap-1",children:Lf.slice(0,6).map(S=>w.jsx("button",{onClick:()=>y("borderColor",S),className:ye("w-5 h-5 rounded border border-ann-border transition-transform hover:scale-110",d.borderColor===S&&"ring-2 ring-ann-accent ring-offset-1"),style:{backgroundColor:S},title:S},S))})]})]})]}),w.jsxs("div",{className:"flex gap-2 pt-2 border-t border-ann-border",children:[w.jsx($l,{variant:"secondary",size:"sm",onClick:b,disabled:!f||u,className:"flex-1",children:"Reset"}),w.jsx($l,{variant:"default",size:"sm",onClick:x,disabled:!f||u,className:"flex-1",children:u?w.jsxs(w.Fragment,{children:[w.jsx(Tr,{size:"sm",className:"mr-1.5"}),"Applying..."]}):"Apply"})]})]})}function SE({variants:t,selectedIndex:l,onIndexChange:r,onSelect:a,disabled:s=!1,isApplying:u=!1}){var g;const c=t.length,d=()=>{if(s)return;const y=l===0?c-1:l-1;r(y)},p=()=>{if(s)return;const y=l===c-1?0:l+1;r(y)};k.useEffect(()=>{const y=x=>{s||(x.key==="ArrowLeft"?(x.preventDefault(),d()):x.key==="ArrowRight"?(x.preventDefault(),p()):x.key==="Enter"&&(x.preventDefault(),a()))};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[s,l,c,a]);const f=t[l];return w.jsxs("div",{className:"space-y-2",children:[((g=f==null?void 0:f.metadata)==null?void 0:g.description)&&w.jsx("p",{className:"text-xs text-ann-text-secondary line-clamp-2",children:f.metadata.description}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("button",{onClick:d,disabled:s||c<=1,className:ye("flex items-center justify-center","w-8 h-8 rounded-full","bg-ann-bg-secondary border border-ann-border","transition-colors",s||c<=1?"opacity-30 cursor-not-allowed":"hover:bg-ann-bg-hover text-ann-text-secondary hover:text-ann-text"),title:"Previous variant",children:w.jsx(Yd,{})}),w.jsxs("div",{className:"flex-1 flex flex-col items-center gap-1",children:[w.jsxs("span",{className:"text-xs text-ann-text-secondary font-medium",children:[l+1," / ",c]}),w.jsx("div",{className:"flex items-center gap-1",children:t.map((y,x)=>w.jsx("button",{onClick:()=>!s&&r(x),disabled:s,className:ye("w-1.5 h-1.5 rounded-full transition-all",x===l?"bg-ann-accent w-3":"bg-ann-text-muted hover:bg-ann-text-secondary",s&&"cursor-not-allowed"),title:`Variant ${x+1}`},x))})]}),w.jsx("button",{onClick:p,disabled:s||c<=1,className:ye("flex items-center justify-center","w-8 h-8 rounded-full","bg-ann-bg-secondary border border-ann-border","transition-colors",s||c<=1?"opacity-30 cursor-not-allowed":"hover:bg-ann-bg-hover text-ann-text-secondary hover:text-ann-text"),title:"Next variant",children:w.jsx(Gd,{})})]}),w.jsx("button",{onClick:a,disabled:s||u,className:ye("w-full flex items-center justify-center gap-2","px-3 py-2 rounded-lg","bg-ann-accent text-white","text-sm font-medium","transition-colors",s||u?"opacity-50 cursor-not-allowed":"hover:bg-ann-accent-hover"),children:u?w.jsxs(w.Fragment,{children:[w.jsx(Tr,{size:"sm"}),"Applying..."]}):w.jsxs(w.Fragment,{children:[w.jsx(Os,{size:"sm"}),"Select"]})}),w.jsx("p",{className:"text-xs text-ann-text-muted text-center",children:"Use arrow keys to navigate"})]})}function wE({element:t,selector:l,onGenerateVariants:r,onApplyDirect:a,onApplyPreview:s,onRevertPreview:u,getOriginalHtml:c,initialPrompt:d="",isApplying:p=!1}){const[f,g]=k.useState(d),[y,x]=k.useState([]),[b,S]=k.useState(0),[T,R]=k.useState("input"),[E,_]=k.useState(null),[M,D]=k.useState(null),I=k.useRef(null);k.useEffect(()=>{const V=c(l);D(V)},[l,c]),k.useEffect(()=>{if(T==="carousel"&&y.length>0){const V=y[b];V&&s(l,V.html)}},[T,y,b,l,s]),k.useEffect(()=>()=>{T==="carousel"&&u(l)},[T,l,u]);const N=async()=>{if(!f.trim()){_("Please describe the variant you want to generate");return}_(null),R("generating");try{const V=await r(f.trim());if(V.length===0){_("No variants were generated. Try a different prompt."),R("input");return}x(V),S(0),R("carousel")}catch(V){_(V instanceof Error?V.message:"Failed to generate variants"),R("error")}},H=V=>{S(V)},F=()=>{y.length===0||M===null||a({selector:l,element:t,prompt:f,variants:y,selectedVariantIndex:b,originalHtml:M})},Z=()=>{var V;R("input"),_(null),x([]),S(0),(V=I.current)==null||V.focus()},U=()=>{u(l),R("input"),x([]),S(0)},re=()=>{var V;u(l),x([]),S(0),R("input"),(V=I.current)==null||V.focus()};return T==="input"?w.jsxs("div",{className:"space-y-2",children:[w.jsx("textarea",{ref:I,value:f,onChange:V=>g(V.target.value),placeholder:"Describe the variant you want to generate...",className:ye("w-full px-3 py-2 rounded-lg resize-none","bg-ann-bg-secondary border border-ann-border","text-sm text-ann-text placeholder:text-ann-text-muted","focus:outline-none focus:ring-1 focus:ring-ann-accent focus:border-transparent"),rows:2,autoFocus:!0,onKeyDown:V=>{V.key==="Enter"&&(V.metaKey||V.ctrlKey)&&(V.preventDefault(),N())}}),E&&w.jsx("p",{className:"text-xs text-ann-error",children:E}),w.jsxs("button",{onClick:N,disabled:!f.trim(),className:ye("w-full flex items-center justify-center gap-2","px-3 py-2 rounded-lg","text-sm font-medium","transition-colors",f.trim()?"bg-ann-accent text-white hover:bg-ann-accent-hover":"bg-ann-bg-secondary text-ann-text-muted cursor-not-allowed"),children:[w.jsx(yE,{size:"sm"}),"Generate Variants"]}),w.jsx("p",{className:"text-xs text-ann-text-muted text-center",children:"AI will generate up to 6 alternatives"})]}):T==="generating"?w.jsxs("div",{className:"flex flex-col items-center justify-center py-6 space-y-3",children:[w.jsx(Tr,{size:"md"}),w.jsx("p",{className:"text-sm text-ann-text-secondary",children:"Generating variants..."}),w.jsx("p",{className:"text-xs text-ann-text-muted text-center max-w-[200px]",children:"This may take a few seconds"})]}):T==="error"?w.jsxs("div",{className:"flex flex-col items-center justify-center py-4 space-y-3",children:[w.jsx("div",{className:"w-10 h-10 rounded-full bg-ann-error/10 flex items-center justify-center",children:w.jsx(fE,{size:"lg",className:"text-ann-error"})}),w.jsx("p",{className:"text-sm text-ann-text-secondary text-center",children:E}),w.jsx("button",{onClick:Z,className:ye("flex items-center gap-2 px-4 py-2 rounded-lg","bg-ann-bg-secondary border border-ann-border","text-sm text-ann-text","hover:bg-ann-bg-hover transition-colors"),children:"Try Again"})]}):w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{className:"flex items-start gap-2",children:[w.jsx("button",{onClick:U,className:ye("flex items-center justify-center","w-6 h-6 rounded-full","bg-ann-bg-secondary border border-ann-border","text-ann-text-muted hover:text-ann-text hover:bg-ann-bg-hover","transition-colors"),title:"Back to prompt",children:w.jsx(Yd,{size:"xs"})}),w.jsxs("p",{className:"flex-1 text-xs text-ann-text-muted line-clamp-2",children:['"',f,'"']})]}),w.jsx(SE,{variants:y,selectedIndex:b,onIndexChange:H,onSelect:F,isApplying:p}),w.jsxs("button",{onClick:re,className:ye("w-full flex items-center justify-center gap-2","px-3 py-2 rounded-lg","bg-ann-bg-secondary border border-ann-border","text-sm text-ann-text-secondary","hover:bg-ann-bg-hover hover:text-ann-text transition-colors"),children:[w.jsx(uE,{size:"sm"}),"Generate More"]})]})}const kE={sm:14,md:16};function fb({status:t,size:l="md",className:r}){const a=kE[l];switch(t){case"pending":return w.jsx("svg",{width:a,height:a,viewBox:"0 0 16 16",fill:"none",className:ye("flex-shrink-0",r),children:w.jsx("circle",{cx:"8",cy:"8",r:"6.5",stroke:"currentColor",strokeWidth:"1.5",className:"text-ann-text-muted"})});case"in_progress":return w.jsxs("svg",{width:a,height:a,viewBox:"0 0 16 16",fill:"none",className:ye("flex-shrink-0 animate-spin",r),children:[w.jsx("circle",{cx:"8",cy:"8",r:"6.5",stroke:"currentColor",strokeWidth:"1.5",className:"text-ann-border"}),w.jsx("path",{d:"M8 1.5A6.5 6.5 0 0114.5 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",className:"text-ann-accent"})]});case"done":return w.jsxs("svg",{width:a,height:a,viewBox:"0 0 16 16",fill:"none",className:ye("flex-shrink-0",r),children:[w.jsx("circle",{cx:"8",cy:"8",r:"7",className:"fill-ann-success"}),w.jsx("path",{d:"M5 8L7 10L11 6",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});case"error":return w.jsxs("svg",{width:a,height:a,viewBox:"0 0 16 16",fill:"none",className:ye("flex-shrink-0",r),children:[w.jsx("circle",{cx:"8",cy:"8",r:"7",className:"fill-ann-error"}),w.jsx("path",{d:"M6 6L10 10M10 6L6 10",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"})]})}}function CE(t){switch(t.type){case"variant":return t.prompt||"Variant change";case"style":const l=Object.keys(t.styles).length;return`${l} style${l!==1?"s":""} modified`;case"note":return t.content||"Note"}}function EE({annotations:t,selectedId:l,onApplyAll:r,onClearAll:a,onRemove:s,onSelect:u,onRunSingle:c,isApplying:d=!1}){const p=t.filter(y=>y.status==="pending").length,f=t.length>0,g=p>0&&!d;return f?w.jsxs("div",{className:"flex flex-col h-full",children:[w.jsx("div",{className:"flex-1 overflow-y-auto ann-scrollbar",children:t.map(y=>{var T;const x=l===y.id,b=y.status==="pending"&&!d,S=!d;return w.jsxs("div",{onClick:()=>u(y.id),className:ye("group px-3 py-3 cursor-pointer","flex items-center gap-3 transition-colors",x?"bg-ann-bg-hover border-l-2 border-l-ann-accent":"hover:bg-ann-bg-hover/50",y.status==="done"&&"opacity-60"),children:[w.jsx(fb,{status:y.status,size:"sm"}),w.jsxs("div",{className:"flex-1 min-w-0",children:[w.jsx("div",{className:"flex items-center gap-1.5",children:w.jsx("span",{className:"text-[11px] font-mono text-ann-text-secondary bg-ann-bg-elevated px-1.5 py-0.5 rounded truncate",children:((T=y.element.reactComponent)==null?void 0:T.name)||y.element.tagName})}),w.jsx("p",{className:"text-xs text-ann-text-muted truncate mt-1",children:CE(y)}),y.status==="error"&&y.errorMessage&&w.jsx("p",{className:"text-xs text-ann-error mt-0.5 truncate",children:y.errorMessage})]}),w.jsxs("div",{className:ye("flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",x&&"opacity-100"),onClick:R=>R.stopPropagation(),children:[b&&w.jsx("button",{onClick:()=>c(y.id),className:"p-1.5 rounded text-ann-text-muted hover:text-ann-accent hover:bg-ann-bg-elevated transition-colors",title:"Run this annotation",children:w.jsx(dE,{size:"sm"})}),S&&w.jsx("button",{onClick:()=>s(y.id),className:"p-1.5 rounded text-ann-text-muted hover:text-ann-error hover:bg-ann-bg-elevated transition-colors",title:"Remove annotation",children:w.jsx(sb,{size:"sm"})})]})]},y.id)})}),w.jsxs("div",{className:"sticky bottom-0 px-3 py-2 border-t border-ann-border bg-ann-bg-secondary flex gap-2",children:[w.jsx($l,{variant:"outline",size:"sm",onClick:a,disabled:d,className:"flex-1",children:"Clear all"}),w.jsx($l,{variant:"default",size:"sm",onClick:r,disabled:!g,className:"flex-1",children:d?w.jsxs(w.Fragment,{children:[w.jsx(Tr,{size:"xs",className:"mr-2"}),"Running..."]}):`Run all (${p})`})]})]}):w.jsx("div",{className:"px-3 py-4",children:w.jsx("p",{className:"text-xs text-ann-text-muted text-center",children:"No annotations"})})}function TE({element:t,selector:l,position:r,onSubmit:a,onCancel:s,onClickOutside:u,isShaking:c=!1,zIndex:d=99999,editingNote:p,onReopenChange:f}){var te,oe;const[g,y]=k.useState((p==null?void 0:p.content)??""),[x,b]=k.useState(!1),[S,T]=k.useState(!1),[R,E]=k.useState(!1),_=k.useRef(null),[M,D]=k.useState({x:0,y:0}),[I,N]=k.useState(!1),H=k.useRef({x:0,y:0,offsetX:0,offsetY:0}),Z=(p==null?void 0:p.status)==="done"&&!S;k.useEffect(()=>{T(!1),D({x:0,y:0}),y((p==null?void 0:p.content)??"")},[p==null?void 0:p.id]),k.useEffect(()=>{D({x:0,y:0})},[r.x,r.y]);const U=async()=>{if(g.trim()){b(!0);try{await a(g.trim()),y("")}finally{b(!1)}}};k.useEffect(()=>{const z=Q=>{var me;if(!_.current)return;if(!Q.composedPath().includes(_.current)){const pe=Q.target;if((me=pe==null?void 0:pe.closest)!=null&&me.call(pe,"[data-annotation-ui]"))return;u?(Q.preventDefault(),Q.stopPropagation(),u()):s()}},O=setTimeout(()=>{document.addEventListener("mousedown",z,!0)},100);return()=>{clearTimeout(O),document.removeEventListener("mousedown",z,!0)}},[s,u]),k.useEffect(()=>{const z=O=>{O.key==="Escape"&&s()};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[s]);const re=z=>{z.button!==0||z.target.closest("button, input, textarea, select")||(z.preventDefault(),N(!0),H.current={x:z.clientX,y:z.clientY,offsetX:M.x,offsetY:M.y})};k.useEffect(()=>{if(!I)return;const z=Q=>{const A=Q.clientX-H.current.x,se=Q.clientY-H.current.y;D({x:H.current.offsetX+A,y:H.current.offsetY+se})},O=()=>{N(!1)};return document.addEventListener("mousemove",z),document.addEventListener("mouseup",O),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",O)}},[I]);const V=320,ue=160,ne=16,ee=24;let B=r.x+ee+8,X=r.y-ee;return typeof window<"u"&&(B+V+ne>window.innerWidth&&(B=r.x-V-20),X+ue+ne>window.innerHeight&&(X=window.innerHeight-ue-ne),X<ne&&(X=ne)),w.jsx("div",{ref:_,className:ye("pointer-events-auto","fixed bg-ann-bg shadow-lg border border-ann-border","rounded-xl p-3 w-[320px]",c&&"animate-[ann-shake_0.4s_ease-in-out]",I&&"select-none"),style:{zIndex:d,left:`${B+M.x}px`,top:`${X+M.y}px`},onClick:z=>z.stopPropagation(),children:w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{className:ye("flex items-center gap-2 text-xs text-ann-text-secondary",I?"cursor-grabbing":"cursor-grab"),onMouseDown:re,children:[w.jsx("span",{className:"font-mono bg-ann-bg-secondary px-1.5 py-0.5 rounded",children:((te=t.reactComponent)==null?void 0:te.name)||t.tagName.toLowerCase()}),((oe=t.reactComponent)==null?void 0:oe.file)&&w.jsx("span",{className:"text-ann-text-muted truncate flex-1",children:t.reactComponent.file.split("/").pop()}),l&&w.jsx("button",{onClick:async z=>{z.stopPropagation(),await navigator.clipboard.writeText(l),E(!0),setTimeout(()=>E(!1),2e3)},className:ye("p-1 rounded transition-colors flex-shrink-0","text-ann-text-muted hover:text-ann-text hover:bg-ann-bg-secondary"),title:"Copy selector",children:R?w.jsx(Os,{size:"xs",className:"text-ann-success"}):w.jsx(gE,{size:"xs"})})]}),Z&&w.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 rounded-lg bg-ann-success/10 border border-ann-success/20",children:[w.jsxs("div",{className:"flex items-center gap-2 text-xs text-ann-success",children:[w.jsx(Os,{size:"sm"}),w.jsx("span",{children:"This note has been applied"})]}),w.jsxs("div",{className:"flex items-center gap-1",children:[w.jsx("button",{onClick:()=>{p&&f&&(f(p.id),s())},className:ye("px-2 py-1 rounded text-xs font-medium","text-ann-warning hover:bg-ann-warning/10","transition-colors"),title:"Re-queue this note",children:"Re-open"}),w.jsx("button",{onClick:()=>T(!0),className:ye("px-2 py-1 rounded text-xs font-medium","text-ann-accent hover:bg-ann-accent/10","transition-colors"),title:"Edit and re-queue",children:"Edit"})]})]}),Z?w.jsxs("div",{className:"space-y-2",children:[w.jsx("label",{className:"text-xs text-ann-text-muted",children:"Note"}),w.jsx("div",{className:"px-3 py-2 rounded-lg bg-ann-bg-secondary border border-ann-border text-sm text-ann-text-secondary",children:p==null?void 0:p.content}),w.jsx("p",{className:"text-xs text-ann-text-muted text-center",children:'Click "Re-open" to queue again or "Edit" to modify'})]}):w.jsxs(rb,{value:g,onValueChange:y,isLoading:x,onSubmit:U,children:[w.jsx(ib,{placeholder:"Describe the change you want...",autoFocus:!0}),w.jsx(ab,{className:"justify-end pt-2",children:w.jsx(ob,{tooltip:x?"Adding...":"Add to queue",children:w.jsx($l,{variant:"default",size:"icon",disabled:!g.trim()||x,className:"rounded-full",children:x?w.jsx(Tr,{size:"sm"}):w.jsx(ub,{size:"md"})})})})]})]})})}const AE={pending:"bg-ann-warning",in_progress:"bg-ann-warning",done:"bg-ann-success",error:"bg-ann-error"};function RE({change:t,isSelected:l=!1,isHovered:r=!1,onHoverChange:a,onClick:s,className:u,style:c}){const d=AE[t.status],p=k.useRef(null),f=r&&!l,g=k.useMemo(()=>!f||!p.current?!1:p.current.getBoundingClientRect().left+24+12+200>window.innerWidth,[f]),y=()=>{switch(t.type){case"variant":return t.prompt.slice(0,40)+(t.prompt.length>40?"...":"");case"style":{const S=Object.keys(t.styles).length;return`${S} style${S>1?"s":""} changed`}case"note":return t.content.slice(0,40)+(t.content.length>40?"...":"")}},x=()=>{switch(t.type){case"variant":return"Variant";case"style":return"Style";case"note":return"Note"}},b=()=>{var S;return((S=t.element.reactComponent)==null?void 0:S.name)||t.element.tagName.toLowerCase()};return w.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>a==null?void 0:a(!0),onMouseLeave:()=>a==null?void 0:a(!1),children:[f&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"absolute top-0 h-6",style:{[g?"right":"left"]:"100%",width:"12px"}}),w.jsxs("div",{className:ye("absolute top-0",g?"right-full mr-3":"left-full ml-3","w-52 p-2.5 rounded-lg","bg-ann-bg border border-ann-border shadow-lg"),children:[w.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[w.jsx("span",{className:"text-xs font-medium text-ann-text",children:x()}),w.jsx("span",{className:"text-xs text-ann-text-muted",children:b()})]}),w.jsx("p",{className:"text-xs text-ann-text-secondary line-clamp-2",children:y()}),t.status==="error"&&t.errorMessage&&w.jsx("p",{className:"text-xs text-ann-error mt-1.5",children:t.errorMessage})]})]}),w.jsx("button",{type:"button",onClick:s,className:ye("relative flex items-center justify-center","w-6 h-6","rounded-full rounded-bl-none","bg-ann-bg","border border-ann-border","shadow-md","cursor-pointer","transition-all duration-200 ease-in-out","hover:scale-110 hover:shadow-lg",r&&!l&&"scale-110 shadow-lg",l&&"ring-2 ring-ann-accent ring-offset-1 scale-110",u),style:c,title:`${x()} change (${t.status})`,"aria-label":`${x()} change, ${t.status}`,children:t.status==="in_progress"?w.jsx(Tr,{size:"md"}):w.jsx("span",{className:ye("w-4 h-4 rounded-full",d)})})]})}const Bf=24,zE=k.forwardRef(function({pendingChanges:l,selectedId:r,onBubbleClick:a,statusFilter:s="all",zIndex:u=99998,iframeOffset:c,hidden:d=!1},p){const[f,g]=k.useState(null),x=k.useMemo(()=>l.map(b=>{if(s!=="all"&&b.status!==s)return null;const S=b.element.rect;if(!S)return null;let T,R;return b.clickOffset?(T=c.y+S.top+b.clickOffset.y-Bf,R=c.x+S.left+b.clickOffset.x):b.position?(T=b.position.y-Bf,R=b.position.x):(T=c.y+S.top-Bf,R=c.x+S.left),{change:b,style:{position:"fixed",top:T,left:R,zIndex:u+(r===b.id?1:0)},bubblePosition:{top:T,left:R}}}),[l,r,s,u,c]).filter(b=>b!==null);return w.jsx("div",{ref:p,className:"pointer-events-none fixed inset-0 transition-opacity duration-100",style:{zIndex:u,opacity:d?0:1},"aria-label":"Pending change bubbles",children:x.map(({change:b,style:S,bubblePosition:T})=>w.jsx("div",{className:"pointer-events-auto",style:S,children:w.jsx(RE,{change:b,isSelected:r===b.id,isHovered:f===b.id,onHoverChange:R=>g(R?b.id:null),onClick:()=>a(b,T)})},b.id))})});function ME({elementRef:t,onRemove:l,onClick:r,compact:a=!1,className:s}){var p,f;const{element:u}=t,c=((p=u.reactComponent)==null?void 0:p.name)||u.tagName.toLowerCase(),d=u.textContent?u.textContent.length>30?u.textContent.slice(0,30)+"...":u.textContent:null;return w.jsxs("div",{className:ye("inline-flex items-center gap-1","px-2 py-0.5","bg-ann-bg-secondary text-ann-text","border border-ann-border rounded-full","text-xs font-medium","transition-colors","hover:bg-ann-bg-hover",a&&"px-1.5 py-0",s),title:d||((f=u.reactComponent)==null?void 0:f.file)||t.selector,children:[w.jsx(cb,{size:"xs",className:"text-ann-text-muted flex-shrink-0"}),w.jsx("button",{type:"button",onClick:r,className:"hover:underline cursor-pointer bg-transparent border-none p-0 text-inherit font-inherit",children:c}),l&&w.jsx("button",{type:"button",onClick:g=>{g.stopPropagation(),l()},className:ye("flex items-center justify-center","w-3.5 h-3.5 -mr-0.5","rounded-full","text-ann-text-muted hover:text-ann-text","hover:bg-ann-bg-active","transition-colors"),title:"Remove reference",children:w.jsx(sb,{size:"xs"})})]})}function db({elementRefs:t,onRemove:l,onClick:r,compact:a=!1,className:s}){return t.length===0?null:w.jsx("div",{className:ye("flex flex-wrap gap-1",s),children:t.map(u=>w.jsx(ME,{elementRef:u,onRemove:l?()=>l(u.id):void 0,onClick:r?()=>r(u.id):void 0,compact:a},u.id))})}function NE(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const _E=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,OE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jE={};function F1(t,l){return(jE.jsx?OE:_E).test(t)}const DE=/[ \t\n\f\r]/g;function LE(t){return typeof t=="object"?t.type==="text"?K1(t.value):!1:K1(t)}function K1(t){return t.replace(DE,"")===""}class Ka{constructor(l,r,a){this.normal=r,this.property=l,a&&(this.space=a)}}Ka.prototype.normal={};Ka.prototype.property={};Ka.prototype.space=void 0;function hb(t,l){const r={},a={};for(const s of t)Object.assign(r,s.property),Object.assign(a,s.normal);return new Ka(r,a,l)}function pd(t){return t.toLowerCase()}class Jt{constructor(l,r){this.attribute=r,this.property=l}}Jt.prototype.attribute="";Jt.prototype.booleanish=!1;Jt.prototype.boolean=!1;Jt.prototype.commaOrSpaceSeparated=!1;Jt.prototype.commaSeparated=!1;Jt.prototype.defined=!1;Jt.prototype.mustUseProperty=!1;Jt.prototype.number=!1;Jt.prototype.overloadedBoolean=!1;Jt.prototype.property="";Jt.prototype.spaceSeparated=!1;Jt.prototype.space=void 0;let BE=0;const Re=Ar(),yt=Ar(),md=Ar(),ce=Ar(),et=Ar(),Ti=Ar(),un=Ar();function Ar(){return 2**++BE}const gd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:yt,commaOrSpaceSeparated:un,commaSeparated:Ti,number:ce,overloadedBoolean:md,spaceSeparated:et},Symbol.toStringTag,{value:"Module"})),Hf=Object.keys(gd);class Pd extends Jt{constructor(l,r,a,s){let u=-1;if(super(l,r),J1(this,"space",s),typeof a=="number")for(;++u<Hf.length;){const c=Hf[u];J1(this,Hf[u],(a&gd[c])===gd[c])}}}Pd.prototype.defined=!0;function J1(t,l,r){r&&(t[l]=r)}function ji(t){const l={},r={};for(const[a,s]of Object.entries(t.properties)){const u=new Pd(a,t.transform(t.attributes||{},a),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),l[a]=u,r[pd(a)]=a,r[pd(u.attribute)]=a}return new Ka(l,r,t.space)}const pb=ji({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:et,ariaCurrent:null,ariaDescribedBy:et,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:et,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:et,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:et,ariaLevel:ce,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:et,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:et,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:yt,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function mb(t,l){return l in t?t[l]:l}function gb(t,l){return mb(t,l.toLowerCase())}const HE=ji({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ti,acceptCharset:et,accessKey:et,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:et,autoFocus:Re,autoPlay:Re,blocking:et,capture:null,charSet:null,checked:Re,cite:null,className:et,cols:ce,colSpan:null,content:null,contentEditable:yt,controls:Re,controlsList:et,coords:ce|Ti,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:md,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:et,height:ce,hidden:md,high:ce,href:null,hrefLang:null,htmlFor:et,httpEquiv:et,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:et,itemRef:et,itemScope:Re,itemType:et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,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:Re,optimum:ce,pattern:null,ping:et,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:et,required:Re,reversed:Re,rows:ce,rowSpan:ce,sandbox:et,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:yt,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:et,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:gb}),UE=ji({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:un,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:et,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:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,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:Ti,g2:Ti,glyphName:Ti,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:un,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,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:ce,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:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:un,rev:un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:un,requiredFeatures:un,requiredFonts:un,requiredFormats:un,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:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:un,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:un,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:un,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:mb}),yb=ji({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),xb=ji({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gb}),bb=ji({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),qE={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"},IE=/[A-Z]/g,W1=/-[a-z]/g,VE=/^data[-\w.:]+$/i;function YE(t,l){const r=pd(l);let a=l,s=Jt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&VE.test(l)){if(l.charAt(4)==="-"){const u=l.slice(5).replace(W1,PE);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=l.slice(4);if(!W1.test(u)){let c=u.replace(IE,GE);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}s=Pd}return new s(a,l)}function GE(t){return"-"+t.toLowerCase()}function PE(t){return t.charAt(1).toUpperCase()}const XE=hb([pb,HE,yb,xb,bb],"html"),Xd=hb([pb,UE,yb,xb,bb],"svg");function QE(t){return t.join(" ").trim()}var bi={},Uf,ey;function ZE(){if(ey)return Uf;ey=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
50
|
+
`,f="/",g="*",y="",x="comment",b="declaration";function S(R,E){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];E=E||{};var _=1,M=1;function D(ne){var ee=ne.match(l);ee&&(_+=ee.length);var B=ne.lastIndexOf(p);M=~B?ne.length-B:M+ne.length}function I(){var ne={line:_,column:M};return function(ee){return ee.position=new N(ne),Z(),ee}}function N(ne){this.start=ne,this.end={line:_,column:M},this.source=E.source}N.prototype.content=R;function H(ne){var ee=new Error(E.source+":"+_+":"+M+": "+ne);if(ee.reason=ne,ee.filename=E.source,ee.line=_,ee.column=M,ee.source=R,!E.silent)throw ee}function F(ne){var ee=ne.exec(R);if(ee){var B=ee[0];return D(B),R=R.slice(B.length),ee}}function Z(){F(r)}function U(ne){var ee;for(ne=ne||[];ee=re();)ee!==!1&&ne.push(ee);return ne}function re(){var ne=I();if(!(f!=R.charAt(0)||g!=R.charAt(1))){for(var ee=2;y!=R.charAt(ee)&&(g!=R.charAt(ee)||f!=R.charAt(ee+1));)++ee;if(ee+=2,y===R.charAt(ee-1))return H("End of comment missing");var B=R.slice(2,ee-2);return M+=2,D(B),R=R.slice(ee),M+=2,ne({type:x,comment:B})}}function V(){var ne=I(),ee=F(a);if(ee){if(re(),!F(s))return H("property missing ':'");var B=F(u),X=ne({type:b,property:T(ee[0].replace(t,y)),value:B?T(B[0].replace(t,y)):y});return F(c),X}}function ue(){var ne=[];U(ne);for(var ee;ee=V();)ee!==!1&&(ne.push(ee),U(ne));return ne}return Z(),ue()}function T(R){return R?R.replace(d,y):y}return Uf=S,Uf}var ty;function $E(){if(ty)return bi;ty=1;var t=bi&&bi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=r;const l=t(ZE());function r(a,s){let u=null;if(!a||typeof a!="string")return u;const c=(0,l.default)(a),d=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:f,value:g}=p;d?s(f,g,p):g&&(u=u||{},u[f]=g)}),u}return bi}var za={},ny;function FE(){if(ny)return za;ny=1,Object.defineProperty(za,"__esModule",{value:!0}),za.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(f){return!f||r.test(f)||t.test(f)},c=function(f,g){return g.toUpperCase()},d=function(f,g){return"".concat(g,"-")},p=function(f,g){return g===void 0&&(g={}),u(f)?f:(f=f.toLowerCase(),g.reactCompat?f=f.replace(s,d):f=f.replace(a,d),f.replace(l,c))};return za.camelCase=p,za}var Ma,ly;function KE(){if(ly)return Ma;ly=1;var t=Ma&&Ma.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},l=t($E()),r=FE();function a(s,u){var c={};return!s||typeof s!="string"||(0,l.default)(s,function(d,p){d&&p&&(c[(0,r.camelCase)(d,u)]=p)}),c}return a.default=a,Ma=a,Ma}var JE=KE();const WE=Is(JE),vb=Sb("end"),Qd=Sb("start");function Sb(t){return l;function l(r){const a=r&&r.position&&r.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function e5(t){const l=Qd(t),r=vb(t);if(l&&r)return{start:l,end:r}}function Ua(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?ry(t.position):"start"in t||"end"in t?ry(t):"line"in t||"column"in t?yd(t):""}function yd(t){return iy(t&&t.line)+":"+iy(t&&t.column)}function ry(t){return yd(t&&t.start)+"-"+yd(t&&t.end)}function iy(t){return t&&typeof t=="number"?t:1}class Bt extends Error{constructor(l,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let s="",u={},c=!1;if(r&&("line"in r&&"column"in r?u={place:r}:"start"in r&&"end"in r?u={place:r}:"type"in r?u={ancestors:[r],place:r.position}:u={...r}),typeof l=="string"?s=l:!u.cause&&l&&(c=!0,s=l.message,u.cause=l),!u.ruleId&&!u.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?u.ruleId=a:(u.source=a.slice(0,p),u.ruleId=a.slice(p+1))}if(!u.place&&u.ancestors&&u.ancestors){const p=u.ancestors[u.ancestors.length-1];p&&(u.place=p.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=Ua(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Bt.prototype.file="";Bt.prototype.name="";Bt.prototype.reason="";Bt.prototype.message="";Bt.prototype.stack="";Bt.prototype.column=void 0;Bt.prototype.line=void 0;Bt.prototype.ancestors=void 0;Bt.prototype.cause=void 0;Bt.prototype.fatal=void 0;Bt.prototype.place=void 0;Bt.prototype.ruleId=void 0;Bt.prototype.source=void 0;const Zd={}.hasOwnProperty,t5=new Map,n5=/[A-Z]/g,l5=new Set(["table","tbody","thead","tfoot","tr"]),r5=new Set(["td","th"]),wb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function i5(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=h5(r,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=d5(r,l.jsx,l.jsxs)}const s={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Xd:XE,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},u=kb(s,t,void 0);return u&&typeof u!="string"?u:s.create(t,s.Fragment,{children:u||void 0},void 0)}function kb(t,l,r){if(l.type==="element")return a5(t,l,r);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return o5(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return u5(t,l,r);if(l.type==="mdxjsEsm")return s5(t,l);if(l.type==="root")return c5(t,l,r);if(l.type==="text")return f5(t,l)}function a5(t,l,r){const a=t.schema;let s=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=Xd,t.schema=s),t.ancestors.push(l);const u=Eb(t,l.tagName,!1),c=p5(t,l);let d=Fd(t,l);return l5.has(l.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!LE(p):!0})),Cb(t,c,u,l),$d(c,d),t.ancestors.pop(),t.schema=a,t.create(l,u,c,r)}function o5(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}Qa(t,l.position)}function s5(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);Qa(t,l.position)}function u5(t,l,r){const a=t.schema;let s=a;l.name==="svg"&&a.space==="html"&&(s=Xd,t.schema=s),t.ancestors.push(l);const u=l.name===null?t.Fragment:Eb(t,l.name,!0),c=m5(t,l),d=Fd(t,l);return Cb(t,c,u,l),$d(c,d),t.ancestors.pop(),t.schema=a,t.create(l,u,c,r)}function c5(t,l,r){const a={};return $d(a,Fd(t,l)),t.create(l,t.Fragment,a,r)}function f5(t,l){return l.value}function Cb(t,l,r,a){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(l.node=a)}function $d(t,l){if(l.length>0){const r=l.length>1?l:l[0];r&&(t.children=r)}}function d5(t,l,r){return a;function a(s,u,c,d){const f=Array.isArray(c.children)?r:l;return d?f(u,c,d):f(u,c)}}function h5(t,l){return r;function r(a,s,u,c){const d=Array.isArray(u.children),p=Qd(a);return l(s,u,c,d,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function p5(t,l){const r={};let a,s;for(s in l.properties)if(s!=="children"&&Zd.call(l.properties,s)){const u=g5(t,s,l.properties[s]);if(u){const[c,d]=u;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&r5.has(l.tagName)?a=d:r[c]=d}}if(a){const u=r.style||(r.style={});u[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function m5(t,l){const r={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else Qa(t,l.position);else{const s=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,u=t.evaluater.evaluateExpression(d.expression)}else Qa(t,l.position);else u=a.value===null?!0:a.value;r[s]=u}return r}function Fd(t,l){const r=[];let a=-1;const s=t.passKeys?new Map:t5;for(;++a<l.children.length;){const u=l.children[a];let c;if(t.passKeys){const p=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(p){const f=s.get(p)||0;c=p+"-"+f,s.set(p,f+1)}}const d=kb(t,u,c);d!==void 0&&r.push(d)}return r}function g5(t,l,r){const a=YE(t.schema,l);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?NE(r):QE(r)),a.property==="style"){let s=typeof r=="object"?r:y5(t,String(r));return t.stylePropertyNameCase==="css"&&(s=x5(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&a.space?qE[a.property]||a.property:a.attribute,r]}}function y5(t,l){try{return WE(l,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const a=r,s=new Bt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=wb+"#cannot-parse-style-attribute",s}}function Eb(t,l,r){let a;if(!r)a={type:"Literal",value:l};else if(l.includes(".")){const s=l.split(".");let u=-1,c;for(;++u<s.length;){const d=F1(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}a=c}else a=F1(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const s=a.value;return Zd.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(a);Qa(t)}function Qa(t,l){const r=new Bt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=wb+"#cannot-handle-mdx-estrees-without-createevaluater",r}function x5(t){const l={};let r;for(r in t)Zd.call(t,r)&&(l[b5(r)]=t[r]);return l}function b5(t){let l=t.replace(n5,v5);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function v5(t){return"-"+t.toLowerCase()}const qf={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"]},S5={};function Kd(t,l){const r=S5,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Tb(t,a,s)}function Tb(t,l,r){if(w5(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return ay(t.children,l,r)}return Array.isArray(t)?ay(t,l,r):""}function ay(t,l,r){const a=[];let s=-1;for(;++s<t.length;)a[s]=Tb(t[s],l,r);return a.join("")}function w5(t){return!!(t&&typeof t=="object")}const oy=document.createElement("i");function Jd(t){const l="&"+t+";";oy.innerHTML=l;const r=oy.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===l?!1:r}function hn(t,l,r,a){const s=t.length;let u=0,c;if(l<0?l=-l>s?0:s+l:l=l>s?s:l,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(l,r),t.splice(...c);else for(r&&t.splice(l,r);u<a.length;)c=a.slice(u,u+1e4),c.unshift(l,0),t.splice(...c),u+=1e4,l+=1e4}function En(t,l){return t.length>0?(hn(t,t.length,0,l),t):l}const sy={}.hasOwnProperty;function Ab(t){const l={};let r=-1;for(;++r<t.length;)k5(l,t[r]);return l}function k5(t,l){let r;for(r in l){const s=(sy.call(t,r)?t[r]:void 0)||(t[r]={}),u=l[r];let c;if(u)for(c in u){sy.call(s,c)||(s[c]=[]);const d=u[c];C5(s[c],Array.isArray(d)?d:d?[d]:[])}}}function C5(t,l){let r=-1;const a=[];for(;++r<l.length;)(l[r].add==="after"?t:a).push(l[r]);hn(t,0,0,a)}function Rb(t,l){const r=Number.parseInt(t,l);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function jn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ut=er(/[A-Za-z]/),Lt=er(/[\dA-Za-z]/),E5=er(/[#-'*+\--9=?A-Z^-~]/);function js(t){return t!==null&&(t<32||t===127)}const xd=er(/\d/),T5=er(/[\dA-Fa-f]/),A5=er(/[!-/:-@[-`{-~]/);function Se(t){return t!==null&&t<-2}function We(t){return t!==null&&(t<0||t===32)}function Oe(t){return t===-2||t===-1||t===32}const tu=er(new RegExp("\\p{P}|\\p{S}","u")),kr=er(/\s/);function er(t){return l;function l(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Di(t){const l=[];let r=-1,a=0,s=0;for(;++r<t.length;){const u=t.charCodeAt(r);let c="";if(u===37&&Lt(t.charCodeAt(r+1))&&Lt(t.charCodeAt(r+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=t.charCodeAt(r+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),s=1):c="�"}else c=String.fromCharCode(u);c&&(l.push(t.slice(a,r),encodeURIComponent(c)),a=r+s+1,c=""),s&&(r+=s,s=0)}return l.join("")+t.slice(a)}function Be(t,l,r,a){const s=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(p){return Oe(p)?(t.enter(r),d(p)):l(p)}function d(p){return Oe(p)&&u++<s?(t.consume(p),d):(t.exit(r),l(p))}}const R5={tokenize:z5};function z5(t){const l=t.attempt(this.parser.constructs.contentInitial,a,s);let r;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Be(t,l,"linePrefix")}function s(d){return t.enter("paragraph"),u(d)}function u(d){const p=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return Se(d)?(t.consume(d),t.exit("chunkText"),u):(t.consume(d),c)}}const M5={tokenize:N5},uy={tokenize:_5};function N5(t){const l=this,r=[];let a=0,s,u,c;return d;function d(M){if(a<r.length){const D=r[a];return l.containerState=D[1],t.attempt(D[0].continuation,p,f)(M)}return f(M)}function p(M){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,s&&_();const D=l.events.length;let I=D,N;for(;I--;)if(l.events[I][0]==="exit"&&l.events[I][1].type==="chunkFlow"){N=l.events[I][1].end;break}E(a);let H=D;for(;H<l.events.length;)l.events[H][1].end={...N},H++;return hn(l.events,I+1,0,l.events.slice(D)),l.events.length=H,f(M)}return d(M)}function f(M){if(a===r.length){if(!s)return x(M);if(s.currentConstruct&&s.currentConstruct.concrete)return S(M);l.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(uy,g,y)(M)}function g(M){return s&&_(),E(a),x(M)}function y(M){return l.parser.lazy[l.now().line]=a!==r.length,c=l.now().offset,S(M)}function x(M){return l.containerState={},t.attempt(uy,b,S)(M)}function b(M){return a++,r.push([l.currentConstruct,l.containerState]),x(M)}function S(M){if(M===null){s&&_(),E(0),t.consume(M);return}return s=s||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),T(M)}function T(M){if(M===null){R(t.exit("chunkFlow"),!0),E(0),t.consume(M);return}return Se(M)?(t.consume(M),R(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(M),T)}function R(M,D){const I=l.sliceStream(M);if(D&&I.push(null),M.previous=u,u&&(u.next=M),u=M,s.defineSkip(M.start),s.write(I),l.parser.lazy[M.start.line]){let N=s.events.length;for(;N--;)if(s.events[N][1].start.offset<c&&(!s.events[N][1].end||s.events[N][1].end.offset>c))return;const H=l.events.length;let F=H,Z,U;for(;F--;)if(l.events[F][0]==="exit"&&l.events[F][1].type==="chunkFlow"){if(Z){U=l.events[F][1].end;break}Z=!0}for(E(a),N=H;N<l.events.length;)l.events[N][1].end={...U},N++;hn(l.events,F+1,0,l.events.slice(H)),l.events.length=N}}function E(M){let D=r.length;for(;D-- >M;){const I=r[D];l.containerState=I[1],I[0].exit.call(l,t)}r.length=M}function _(){s.write([null]),u=void 0,s=void 0,l.containerState._closeFlow=void 0}}function _5(t,l,r){return Be(t,t.attempt(this.parser.constructs.document,l,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Mi(t){if(t===null||We(t)||kr(t))return 1;if(tu(t))return 2}function nu(t,l,r){const a=[];let s=-1;for(;++s<t.length;){const u=t[s].resolveAll;u&&!a.includes(u)&&(l=u(l,r),a.push(u))}return l}const bd={name:"attention",resolveAll:O5,tokenize:j5};function O5(t,l){let r=-1,a,s,u,c,d,p,f,g;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(a=r;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[a][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;p=t[a][1].end.offset-t[a][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const y={...t[a][1].end},x={...t[r][1].start};cy(y,-p),cy(x,p),c={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...t[a][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:x},u={type:p>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[r][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[r][1].start={...d.end},f=[],t[a][1].end.offset-t[a][1].start.offset&&(f=En(f,[["enter",t[a][1],l],["exit",t[a][1],l]])),f=En(f,[["enter",s,l],["enter",c,l],["exit",c,l],["enter",u,l]]),f=En(f,nu(l.parser.constructs.insideSpan.null,t.slice(a+1,r),l)),f=En(f,[["exit",u,l],["enter",d,l],["exit",d,l],["exit",s,l]]),t[r][1].end.offset-t[r][1].start.offset?(g=2,f=En(f,[["enter",t[r][1],l],["exit",t[r][1],l]])):g=0,hn(t,a-1,r-a+3,f),r=a+f.length-g-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function j5(t,l){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Mi(a);let u;return c;function c(p){return u=p,t.enter("attentionSequence"),d(p)}function d(p){if(p===u)return t.consume(p),d;const f=t.exit("attentionSequence"),g=Mi(p),y=!g||g===2&&s||r.includes(p),x=!s||s===2&&g||r.includes(a);return f._open=!!(u===42?y:y&&(s||!x)),f._close=!!(u===42?x:x&&(g||!y)),l(p)}}function cy(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const D5={name:"autolink",tokenize:L5};function L5(t,l,r){let a=0;return s;function s(b){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),u}function u(b){return Ut(b)?(t.consume(b),c):b===64?r(b):f(b)}function c(b){return b===43||b===45||b===46||Lt(b)?(a=1,d(b)):f(b)}function d(b){return b===58?(t.consume(b),a=0,p):(b===43||b===45||b===46||Lt(b))&&a++<32?(t.consume(b),d):(a=0,f(b))}function p(b){return b===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.exit("autolink"),l):b===null||b===32||b===60||js(b)?r(b):(t.consume(b),p)}function f(b){return b===64?(t.consume(b),g):E5(b)?(t.consume(b),f):r(b)}function g(b){return Lt(b)?y(b):r(b)}function y(b){return b===46?(t.consume(b),a=0,g):b===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.exit("autolink"),l):x(b)}function x(b){if((b===45||Lt(b))&&a++<63){const S=b===45?x:y;return t.consume(b),S}return r(b)}}const Ja={partial:!0,tokenize:B5};function B5(t,l,r){return a;function a(u){return Oe(u)?Be(t,s,"linePrefix")(u):s(u)}function s(u){return u===null||Se(u)?l(u):r(u)}}const zb={continuation:{tokenize:U5},exit:q5,name:"blockQuote",tokenize:H5};function H5(t,l,r){const a=this;return s;function s(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),u}return r(c)}function u(c){return Oe(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(c))}}function U5(t,l,r){const a=this;return s;function s(c){return Oe(c)?Be(t,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return t.attempt(zb,l,r)(c)}}function q5(t){t.exit("blockQuote")}const Mb={name:"characterEscape",tokenize:I5};function I5(t,l,r){return a;function a(u){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(u),t.exit("escapeMarker"),s}function s(u){return A5(u)?(t.enter("characterEscapeValue"),t.consume(u),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):r(u)}}const Nb={name:"characterReference",tokenize:V5};function V5(t,l,r){const a=this;let s=0,u,c;return d;function d(y){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),p}function p(y){return y===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(y),t.exit("characterReferenceMarkerNumeric"),f):(t.enter("characterReferenceValue"),u=31,c=Lt,g(y))}function f(y){return y===88||y===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(y),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),u=6,c=T5,g):(t.enter("characterReferenceValue"),u=7,c=xd,g(y))}function g(y){if(y===59&&s){const x=t.exit("characterReferenceValue");return c===Lt&&!Jd(a.sliceSerialize(x))?r(y):(t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return c(y)&&s++<u?(t.consume(y),g):r(y)}}const fy={partial:!0,tokenize:G5},dy={concrete:!0,name:"codeFenced",tokenize:Y5};function Y5(t,l,r){const a=this,s={partial:!0,tokenize:I};let u=0,c=0,d;return p;function p(N){return f(N)}function f(N){const H=a.events[a.events.length-1];return u=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,d=N,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),g(N)}function g(N){return N===d?(c++,t.consume(N),g):c<3?r(N):(t.exit("codeFencedFenceSequence"),Oe(N)?Be(t,y,"whitespace")(N):y(N))}function y(N){return N===null||Se(N)?(t.exit("codeFencedFence"),a.interrupt?l(N):t.check(fy,T,D)(N)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(N))}function x(N){return N===null||Se(N)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(N)):Oe(N)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Be(t,b,"whitespace")(N)):N===96&&N===d?r(N):(t.consume(N),x)}function b(N){return N===null||Se(N)?y(N):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),S(N))}function S(N){return N===null||Se(N)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(N)):N===96&&N===d?r(N):(t.consume(N),S)}function T(N){return t.attempt(s,D,R)(N)}function R(N){return t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),E}function E(N){return u>0&&Oe(N)?Be(t,_,"linePrefix",u+1)(N):_(N)}function _(N){return N===null||Se(N)?t.check(fy,T,D)(N):(t.enter("codeFlowValue"),M(N))}function M(N){return N===null||Se(N)?(t.exit("codeFlowValue"),_(N)):(t.consume(N),M)}function D(N){return t.exit("codeFenced"),l(N)}function I(N,H,F){let Z=0;return U;function U(ee){return N.enter("lineEnding"),N.consume(ee),N.exit("lineEnding"),re}function re(ee){return N.enter("codeFencedFence"),Oe(ee)?Be(N,V,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):V(ee)}function V(ee){return ee===d?(N.enter("codeFencedFenceSequence"),ue(ee)):F(ee)}function ue(ee){return ee===d?(Z++,N.consume(ee),ue):Z>=c?(N.exit("codeFencedFenceSequence"),Oe(ee)?Be(N,ne,"whitespace")(ee):ne(ee)):F(ee)}function ne(ee){return ee===null||Se(ee)?(N.exit("codeFencedFence"),H(ee)):F(ee)}}}function G5(t,l,r){const a=this;return s;function s(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}const If={name:"codeIndented",tokenize:X5},P5={partial:!0,tokenize:Q5};function X5(t,l,r){const a=this;return s;function s(f){return t.enter("codeIndented"),Be(t,u,"linePrefix",5)(f)}function u(f){const g=a.events[a.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(f):r(f)}function c(f){return f===null?p(f):Se(f)?t.attempt(P5,c,p)(f):(t.enter("codeFlowValue"),d(f))}function d(f){return f===null||Se(f)?(t.exit("codeFlowValue"),c(f)):(t.consume(f),d)}function p(f){return t.exit("codeIndented"),l(f)}}function Q5(t,l,r){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?r(c):Se(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):Be(t,u,"linePrefix",5)(c)}function u(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):Se(c)?s(c):r(c)}}const Z5={name:"codeText",previous:F5,resolve:$5,tokenize:K5};function $5(t){let l=t.length-4,r=3,a,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=r;++a<l;)if(t[a][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[l][1].type="codeTextPadding",r+=2,l-=2;break}}for(a=r-1,l++;++a<=l;)s===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(s=a):(a===l||t[a][1].type==="lineEnding")&&(t[s][1].type="codeTextData",a!==s+2&&(t[s][1].end=t[a-1][1].end,t.splice(s+2,a-s-2),l-=a-s-2,a=s+2),s=void 0);return t}function F5(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function K5(t,l,r){let a=0,s,u;return c;function c(y){return t.enter("codeText"),t.enter("codeTextSequence"),d(y)}function d(y){return y===96?(t.consume(y),a++,d):(t.exit("codeTextSequence"),p(y))}function p(y){return y===null?r(y):y===32?(t.enter("space"),t.consume(y),t.exit("space"),p):y===96?(u=t.enter("codeTextSequence"),s=0,g(y)):Se(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),p):(t.enter("codeTextData"),f(y))}function f(y){return y===null||y===32||y===96||Se(y)?(t.exit("codeTextData"),p(y)):(t.consume(y),f)}function g(y){return y===96?(t.consume(y),s++,g):s===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(y)):(u.type="codeTextData",f(y))}}class J5{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,r,a){const s=r||0;this.setCursor(Math.trunc(l));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&Na(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),Na(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),Na(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const r=this.left.splice(l,Number.POSITIVE_INFINITY);Na(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);Na(this.left,r.reverse())}}}function Na(t,l){let r=0;if(l.length<1e4)t.push(...l);else for(;r<l.length;)t.push(...l.slice(r,r+1e4)),r+=1e4}function _b(t){const l={};let r=-1,a,s,u,c,d,p,f;const g=new J5(t);for(;++r<g.length;){for(;r in l;)r=l[r];if(a=g.get(r),r&&a[1].type==="chunkFlow"&&g.get(r-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,u=0,u<p.length&&p[u][1].type==="lineEndingBlank"&&(u+=2),u<p.length&&p[u][1].type==="content"))for(;++u<p.length&&p[u][1].type!=="content";)p[u][1].type==="chunkText"&&(p[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,W5(g,r)),r=l[r],f=!0);else if(a[1]._container){for(u=r,s=void 0;u--;)if(c=g.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(g.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...g.get(s)[1].start},d=g.slice(s,r),d.unshift(a),g.splice(s,r-s+1,d))}}return hn(t,0,Number.POSITIVE_INFINITY,g.slice(0)),!f}function W5(t,l){const r=t.get(l)[1],a=t.get(l)[2];let s=l-1;const u=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],f={};let g,y,x=-1,b=r,S=0,T=0;const R=[T];for(;b;){for(;t.get(++s)[1]!==b;);u.push(s),b._tokenizer||(g=a.sliceStream(b),b.next||g.push(null),y&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=b,b=b.next}for(b=r;++x<d.length;)d[x][0]==="exit"&&d[x-1][0]==="enter"&&d[x][1].type===d[x-1][1].type&&d[x][1].start.line!==d[x][1].end.line&&(T=x+1,R.push(T),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):R.pop(),x=R.length;x--;){const E=d.slice(R[x],R[x+1]),_=u.pop();p.push([_,_+E.length-1]),t.splice(_,2,E)}for(p.reverse(),x=-1;++x<p.length;)f[S+p[x][0]]=S+p[x][1],S+=p[x][1]-p[x][0]-1;return f}const e4={resolve:n4,tokenize:l4},t4={partial:!0,tokenize:r4};function n4(t){return _b(t),t}function l4(t,l){let r;return a;function a(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?u(d):Se(d)?t.check(t4,c,u)(d):(t.consume(d),s)}function u(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function c(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function r4(t,l,r){const a=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Be(t,u,"linePrefix")}function u(c){if(c===null||Se(c))return r(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):t.interrupt(a.parser.constructs.flow,r,l)(c)}}function Ob(t,l,r,a,s,u,c,d,p){const f=p||Number.POSITIVE_INFINITY;let g=0;return y;function y(E){return E===60?(t.enter(a),t.enter(s),t.enter(u),t.consume(E),t.exit(u),x):E===null||E===32||E===41||js(E)?r(E):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),T(E))}function x(E){return E===62?(t.enter(u),t.consume(E),t.exit(u),t.exit(s),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===62?(t.exit("chunkString"),t.exit(d),x(E)):E===null||E===60||Se(E)?r(E):(t.consume(E),E===92?S:b)}function S(E){return E===60||E===62||E===92?(t.consume(E),b):b(E)}function T(E){return!g&&(E===null||E===41||We(E))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),l(E)):g<f&&E===40?(t.consume(E),g++,T):E===41?(t.consume(E),g--,T):E===null||E===32||E===40||js(E)?r(E):(t.consume(E),E===92?R:T)}function R(E){return E===40||E===41||E===92?(t.consume(E),T):T(E)}}function jb(t,l,r,a,s,u){const c=this;let d=0,p;return f;function f(b){return t.enter(a),t.enter(s),t.consume(b),t.exit(s),t.enter(u),g}function g(b){return d>999||b===null||b===91||b===93&&!p||b===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(b):b===93?(t.exit(u),t.enter(s),t.consume(b),t.exit(s),t.exit(a),l):Se(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),g):(t.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||b===91||b===93||Se(b)||d++>999?(t.exit("chunkString"),g(b)):(t.consume(b),p||(p=!Oe(b)),b===92?x:y)}function x(b){return b===91||b===92||b===93?(t.consume(b),d++,y):y(b)}}function Db(t,l,r,a,s,u){let c;return d;function d(x){return x===34||x===39||x===40?(t.enter(a),t.enter(s),t.consume(x),t.exit(s),c=x===40?41:x,p):r(x)}function p(x){return x===c?(t.enter(s),t.consume(x),t.exit(s),t.exit(a),l):(t.enter(u),f(x))}function f(x){return x===c?(t.exit(u),p(c)):x===null?r(x):Se(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),Be(t,f,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===c||x===null||Se(x)?(t.exit("chunkString"),f(x)):(t.consume(x),x===92?y:g)}function y(x){return x===c||x===92?(t.consume(x),g):g(x)}}function qa(t,l){let r;return a;function a(s){return Se(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,a):Oe(s)?Be(t,a,r?"linePrefix":"lineSuffix")(s):l(s)}}const i4={name:"definition",tokenize:o4},a4={partial:!0,tokenize:s4};function o4(t,l,r){const a=this;let s;return u;function u(b){return t.enter("definition"),c(b)}function c(b){return jb.call(a,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function d(b){return s=jn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),b===58?(t.enter("definitionMarker"),t.consume(b),t.exit("definitionMarker"),p):r(b)}function p(b){return We(b)?qa(t,f)(b):f(b)}function f(b){return Ob(t,g,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function g(b){return t.attempt(a4,y,y)(b)}function y(b){return Oe(b)?Be(t,x,"whitespace")(b):x(b)}function x(b){return b===null||Se(b)?(t.exit("definition"),a.parser.defined.push(s),l(b)):r(b)}}function s4(t,l,r){return a;function a(d){return We(d)?qa(t,s)(d):r(d)}function s(d){return Db(t,u,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return Oe(d)?Be(t,c,"whitespace")(d):c(d)}function c(d){return d===null||Se(d)?l(d):r(d)}}const u4={name:"hardBreakEscape",tokenize:c4};function c4(t,l,r){return a;function a(u){return t.enter("hardBreakEscape"),t.consume(u),s}function s(u){return Se(u)?(t.exit("hardBreakEscape"),l(u)):r(u)}}const f4={name:"headingAtx",resolve:d4,tokenize:h4};function d4(t,l){let r=t.length-2,a=3,s,u;return t[a][1].type==="whitespace"&&(a+=2),r-2>a&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&t[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(s={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},u={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},hn(t,a,r-a+1,[["enter",s,l],["enter",u,l],["exit",u,l],["exit",s,l]])),t}function h4(t,l,r){let a=0;return s;function s(g){return t.enter("atxHeading"),u(g)}function u(g){return t.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&a++<6?(t.consume(g),c):g===null||We(g)?(t.exit("atxHeadingSequence"),d(g)):r(g)}function d(g){return g===35?(t.enter("atxHeadingSequence"),p(g)):g===null||Se(g)?(t.exit("atxHeading"),l(g)):Oe(g)?Be(t,d,"whitespace")(g):(t.enter("atxHeadingText"),f(g))}function p(g){return g===35?(t.consume(g),p):(t.exit("atxHeadingSequence"),d(g))}function f(g){return g===null||g===35||We(g)?(t.exit("atxHeadingText"),d(g)):(t.consume(g),f)}}const p4=["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"],hy=["pre","script","style","textarea"],m4={concrete:!0,name:"htmlFlow",resolveTo:x4,tokenize:b4},g4={partial:!0,tokenize:S4},y4={partial:!0,tokenize:v4};function x4(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function b4(t,l,r){const a=this;let s,u,c,d,p;return f;function f(A){return g(A)}function g(A){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(A),y}function y(A){return A===33?(t.consume(A),x):A===47?(t.consume(A),u=!0,T):A===63?(t.consume(A),s=3,a.interrupt?l:z):Ut(A)?(t.consume(A),c=String.fromCharCode(A),R):r(A)}function x(A){return A===45?(t.consume(A),s=2,b):A===91?(t.consume(A),s=5,d=0,S):Ut(A)?(t.consume(A),s=4,a.interrupt?l:z):r(A)}function b(A){return A===45?(t.consume(A),a.interrupt?l:z):r(A)}function S(A){const se="CDATA[";return A===se.charCodeAt(d++)?(t.consume(A),d===se.length?a.interrupt?l:V:S):r(A)}function T(A){return Ut(A)?(t.consume(A),c=String.fromCharCode(A),R):r(A)}function R(A){if(A===null||A===47||A===62||We(A)){const se=A===47,me=c.toLowerCase();return!se&&!u&&hy.includes(me)?(s=1,a.interrupt?l(A):V(A)):p4.includes(c.toLowerCase())?(s=6,se?(t.consume(A),E):a.interrupt?l(A):V(A)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(A):u?_(A):M(A))}return A===45||Lt(A)?(t.consume(A),c+=String.fromCharCode(A),R):r(A)}function E(A){return A===62?(t.consume(A),a.interrupt?l:V):r(A)}function _(A){return Oe(A)?(t.consume(A),_):U(A)}function M(A){return A===47?(t.consume(A),U):A===58||A===95||Ut(A)?(t.consume(A),D):Oe(A)?(t.consume(A),M):U(A)}function D(A){return A===45||A===46||A===58||A===95||Lt(A)?(t.consume(A),D):I(A)}function I(A){return A===61?(t.consume(A),N):Oe(A)?(t.consume(A),I):M(A)}function N(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(t.consume(A),p=A,H):Oe(A)?(t.consume(A),N):F(A)}function H(A){return A===p?(t.consume(A),p=null,Z):A===null||Se(A)?r(A):(t.consume(A),H)}function F(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||We(A)?I(A):(t.consume(A),F)}function Z(A){return A===47||A===62||Oe(A)?M(A):r(A)}function U(A){return A===62?(t.consume(A),re):r(A)}function re(A){return A===null||Se(A)?V(A):Oe(A)?(t.consume(A),re):r(A)}function V(A){return A===45&&s===2?(t.consume(A),B):A===60&&s===1?(t.consume(A),X):A===62&&s===4?(t.consume(A),O):A===63&&s===3?(t.consume(A),z):A===93&&s===5?(t.consume(A),oe):Se(A)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(g4,Q,ue)(A)):A===null||Se(A)?(t.exit("htmlFlowData"),ue(A)):(t.consume(A),V)}function ue(A){return t.check(y4,ne,Q)(A)}function ne(A){return t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),ee}function ee(A){return A===null||Se(A)?ue(A):(t.enter("htmlFlowData"),V(A))}function B(A){return A===45?(t.consume(A),z):V(A)}function X(A){return A===47?(t.consume(A),c="",te):V(A)}function te(A){if(A===62){const se=c.toLowerCase();return hy.includes(se)?(t.consume(A),O):V(A)}return Ut(A)&&c.length<8?(t.consume(A),c+=String.fromCharCode(A),te):V(A)}function oe(A){return A===93?(t.consume(A),z):V(A)}function z(A){return A===62?(t.consume(A),O):A===45&&s===2?(t.consume(A),z):V(A)}function O(A){return A===null||Se(A)?(t.exit("htmlFlowData"),Q(A)):(t.consume(A),O)}function Q(A){return t.exit("htmlFlow"),l(A)}}function v4(t,l,r){const a=this;return s;function s(c){return Se(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u):r(c)}function u(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}function S4(t,l,r){return a;function a(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Ja,l,r)}}const w4={name:"htmlText",tokenize:k4};function k4(t,l,r){const a=this;let s,u,c;return d;function d(z){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(z),p}function p(z){return z===33?(t.consume(z),f):z===47?(t.consume(z),I):z===63?(t.consume(z),M):Ut(z)?(t.consume(z),F):r(z)}function f(z){return z===45?(t.consume(z),g):z===91?(t.consume(z),u=0,S):Ut(z)?(t.consume(z),_):r(z)}function g(z){return z===45?(t.consume(z),b):r(z)}function y(z){return z===null?r(z):z===45?(t.consume(z),x):Se(z)?(c=y,X(z)):(t.consume(z),y)}function x(z){return z===45?(t.consume(z),b):y(z)}function b(z){return z===62?B(z):z===45?x(z):y(z)}function S(z){const O="CDATA[";return z===O.charCodeAt(u++)?(t.consume(z),u===O.length?T:S):r(z)}function T(z){return z===null?r(z):z===93?(t.consume(z),R):Se(z)?(c=T,X(z)):(t.consume(z),T)}function R(z){return z===93?(t.consume(z),E):T(z)}function E(z){return z===62?B(z):z===93?(t.consume(z),E):T(z)}function _(z){return z===null||z===62?B(z):Se(z)?(c=_,X(z)):(t.consume(z),_)}function M(z){return z===null?r(z):z===63?(t.consume(z),D):Se(z)?(c=M,X(z)):(t.consume(z),M)}function D(z){return z===62?B(z):M(z)}function I(z){return Ut(z)?(t.consume(z),N):r(z)}function N(z){return z===45||Lt(z)?(t.consume(z),N):H(z)}function H(z){return Se(z)?(c=H,X(z)):Oe(z)?(t.consume(z),H):B(z)}function F(z){return z===45||Lt(z)?(t.consume(z),F):z===47||z===62||We(z)?Z(z):r(z)}function Z(z){return z===47?(t.consume(z),B):z===58||z===95||Ut(z)?(t.consume(z),U):Se(z)?(c=Z,X(z)):Oe(z)?(t.consume(z),Z):B(z)}function U(z){return z===45||z===46||z===58||z===95||Lt(z)?(t.consume(z),U):re(z)}function re(z){return z===61?(t.consume(z),V):Se(z)?(c=re,X(z)):Oe(z)?(t.consume(z),re):Z(z)}function V(z){return z===null||z===60||z===61||z===62||z===96?r(z):z===34||z===39?(t.consume(z),s=z,ue):Se(z)?(c=V,X(z)):Oe(z)?(t.consume(z),V):(t.consume(z),ne)}function ue(z){return z===s?(t.consume(z),s=void 0,ee):z===null?r(z):Se(z)?(c=ue,X(z)):(t.consume(z),ue)}function ne(z){return z===null||z===34||z===39||z===60||z===61||z===96?r(z):z===47||z===62||We(z)?Z(z):(t.consume(z),ne)}function ee(z){return z===47||z===62||We(z)?Z(z):r(z)}function B(z){return z===62?(t.consume(z),t.exit("htmlTextData"),t.exit("htmlText"),l):r(z)}function X(z){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(z),t.exit("lineEnding"),te}function te(z){return Oe(z)?Be(t,oe,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):oe(z)}function oe(z){return t.enter("htmlTextData"),c(z)}}const Wd={name:"labelEnd",resolveAll:A4,resolveTo:R4,tokenize:z4},C4={tokenize:M4},E4={tokenize:N4},T4={tokenize:_4};function A4(t){let l=-1;const r=[];for(;++l<t.length;){const a=t[l][1];if(r.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",l+=s}}return t.length!==r.length&&hn(t,0,t.length,r),t}function R4(t,l){let r=t.length,a=0,s,u,c,d;for(;r--;)if(s=t[r][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=r,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=r);const p={type:t[u][1].type==="labelLink"?"link":"image",start:{...t[u][1].start},end:{...t[t.length-1][1].end}},f={type:"label",start:{...t[u][1].start},end:{...t[c][1].end}},g={type:"labelText",start:{...t[u+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",p,l],["enter",f,l]],d=En(d,t.slice(u+1,u+a+3)),d=En(d,[["enter",g,l]]),d=En(d,nu(l.parser.constructs.insideSpan.null,t.slice(u+a+4,c-3),l)),d=En(d,[["exit",g,l],t[c-2],t[c-1],["exit",f,l]]),d=En(d,t.slice(c+1)),d=En(d,[["exit",p,l]]),hn(t,u,t.length,d),t}function z4(t,l,r){const a=this;let s=a.events.length,u,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){u=a.events[s][1];break}return d;function d(x){return u?u._inactive?y(x):(c=a.parser.defined.includes(jn(a.sliceSerialize({start:u.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(x),t.exit("labelMarker"),t.exit("labelEnd"),p):r(x)}function p(x){return x===40?t.attempt(C4,g,c?g:y)(x):x===91?t.attempt(E4,g,c?f:y)(x):c?g(x):y(x)}function f(x){return t.attempt(T4,g,y)(x)}function g(x){return l(x)}function y(x){return u._balanced=!0,r(x)}}function M4(t,l,r){return a;function a(y){return t.enter("resource"),t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),s}function s(y){return We(y)?qa(t,u)(y):u(y)}function u(y){return y===41?g(y):Ob(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return We(y)?qa(t,p)(y):g(y)}function d(y){return r(y)}function p(y){return y===34||y===39||y===40?Db(t,f,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function f(y){return We(y)?qa(t,g)(y):g(y)}function g(y){return y===41?(t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),t.exit("resource"),l):r(y)}}function N4(t,l,r){const a=this;return s;function s(d){return jb.call(a,t,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return a.parser.defined.includes(jn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):r(d)}function c(d){return r(d)}}function _4(t,l,r){return a;function a(u){return t.enter("reference"),t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),s}function s(u){return u===93?(t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),t.exit("reference"),l):r(u)}}const O4={name:"labelStartImage",resolveAll:Wd.resolveAll,tokenize:j4};function j4(t,l,r){const a=this;return s;function s(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),u}function u(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):l(d)}}const D4={name:"labelStartLink",resolveAll:Wd.resolveAll,tokenize:L4};function L4(t,l,r){const a=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):l(c)}}const Vf={name:"lineEnding",tokenize:B4};function B4(t,l){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Be(t,l,"linePrefix")}}const Ts={name:"thematicBreak",tokenize:H4};function H4(t,l,r){let a=0,s;return u;function u(f){return t.enter("thematicBreak"),c(f)}function c(f){return s=f,d(f)}function d(f){return f===s?(t.enter("thematicBreakSequence"),p(f)):a>=3&&(f===null||Se(f))?(t.exit("thematicBreak"),l(f)):r(f)}function p(f){return f===s?(t.consume(f),a++,p):(t.exit("thematicBreakSequence"),Oe(f)?Be(t,d,"whitespace")(f):d(f))}}const Ft={continuation:{tokenize:V4},exit:G4,name:"list",tokenize:I4},U4={partial:!0,tokenize:P4},q4={partial:!0,tokenize:Y4};function I4(t,l,r){const a=this,s=a.events[a.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(b){const S=a.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!a.containerState.marker||b===a.containerState.marker:xd(b)){if(a.containerState.type||(a.containerState.type=S,t.enter(S,{_container:!0})),S==="listUnordered")return t.enter("listItemPrefix"),b===42||b===45?t.check(Ts,r,f)(b):f(b);if(!a.interrupt||b===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(b)}return r(b)}function p(b){return xd(b)&&++c<10?(t.consume(b),p):(!a.interrupt||c<2)&&(a.containerState.marker?b===a.containerState.marker:b===41||b===46)?(t.exit("listItemValue"),f(b)):r(b)}function f(b){return t.enter("listItemMarker"),t.consume(b),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||b,t.check(Ja,a.interrupt?r:g,t.attempt(U4,x,y))}function g(b){return a.containerState.initialBlankLine=!0,u++,x(b)}function y(b){return Oe(b)?(t.enter("listItemPrefixWhitespace"),t.consume(b),t.exit("listItemPrefixWhitespace"),x):r(b)}function x(b){return a.containerState.size=u+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(b)}}function V4(t,l,r){const a=this;return a.containerState._closeFlow=void 0,t.check(Ja,s,u);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Be(t,l,"listItemIndent",a.containerState.size+1)(d)}function u(d){return a.containerState.furtherBlankLines||!Oe(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(q4,l,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,Be(t,t.attempt(Ft,l,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function Y4(t,l,r){const a=this;return Be(t,s,"listItemIndent",a.containerState.size+1);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?l(u):r(u)}}function G4(t){t.exit(this.containerState.type)}function P4(t,l,r){const a=this;return Be(t,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const c=a.events[a.events.length-1];return!Oe(u)&&c&&c[1].type==="listItemPrefixWhitespace"?l(u):r(u)}}const py={name:"setextUnderline",resolveTo:X4,tokenize:Q4};function X4(t,l){let r=t.length,a,s,u;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){a=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!u&&t[r][1].type==="definition"&&(u=r);const c={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",u?(t.splice(s,0,["enter",c,l]),t.splice(u+1,0,["exit",t[a][1],l]),t[a][1].end={...t[u][1].end}):t[a][1]=c,t.push(["exit",c,l]),t}function Q4(t,l,r){const a=this;let s;return u;function u(f){let g=a.events.length,y;for(;g--;)if(a.events[g][1].type!=="lineEnding"&&a.events[g][1].type!=="linePrefix"&&a.events[g][1].type!=="content"){y=a.events[g][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||y)?(t.enter("setextHeadingLine"),s=f,c(f)):r(f)}function c(f){return t.enter("setextHeadingLineSequence"),d(f)}function d(f){return f===s?(t.consume(f),d):(t.exit("setextHeadingLineSequence"),Oe(f)?Be(t,p,"lineSuffix")(f):p(f))}function p(f){return f===null||Se(f)?(t.exit("setextHeadingLine"),l(f)):r(f)}}const Z4={tokenize:$4};function $4(t){const l=this,r=t.attempt(Ja,a,t.attempt(this.parser.constructs.flowInitial,s,Be(t,t.attempt(this.parser.constructs.flow,s,t.attempt(e4,s)),"linePrefix")));return r;function a(u){if(u===null){t.consume(u);return}return t.enter("lineEndingBlank"),t.consume(u),t.exit("lineEndingBlank"),l.currentConstruct=void 0,r}function s(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),l.currentConstruct=void 0,r}}const F4={resolveAll:Bb()},K4=Lb("string"),J4=Lb("text");function Lb(t){return{resolveAll:Bb(t==="text"?W4:void 0),tokenize:l};function l(r){const a=this,s=this.parser.constructs[t],u=r.attempt(s,c,d);return c;function c(g){return f(g)?u(g):d(g)}function d(g){if(g===null){r.consume(g);return}return r.enter("data"),r.consume(g),p}function p(g){return f(g)?(r.exit("data"),u(g)):(r.consume(g),p)}function f(g){if(g===null)return!0;const y=s[g];let x=-1;if(y)for(;++x<y.length;){const b=y[x];if(!b.previous||b.previous.call(a,a.previous))return!0}return!1}}}function Bb(t){return l;function l(r,a){let s=-1,u;for(;++s<=r.length;)u===void 0?r[s]&&r[s][1].type==="data"&&(u=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==u+2&&(r[u][1].end=r[s-1][1].end,r.splice(u+2,s-u-2),s=u+2),u=void 0);return t?t(r,a):r}}function W4(t,l){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const a=t[r-1][1],s=l.sliceStream(a);let u=s.length,c=-1,d=0,p;for(;u--;){const f=s[u];if(typeof f=="string"){for(c=f.length;f.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(f===-2)p=!0,d++;else if(f!==-1){u++;break}}if(l._contentTypeTextTrailing&&r===t.length&&(d=0),d){const f={type:r===t.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...f.start},a.start.offset===a.end.offset?Object.assign(a,f):(t.splice(r,0,["enter",f,l],["exit",f,l]),r+=2)}r++}return t}const eT={42:Ft,43:Ft,45:Ft,48:Ft,49:Ft,50:Ft,51:Ft,52:Ft,53:Ft,54:Ft,55:Ft,56:Ft,57:Ft,62:zb},tT={91:i4},nT={[-2]:If,[-1]:If,32:If},lT={35:f4,42:Ts,45:[py,Ts],60:m4,61:py,95:Ts,96:dy,126:dy},rT={38:Nb,92:Mb},iT={[-5]:Vf,[-4]:Vf,[-3]:Vf,33:O4,38:Nb,42:bd,60:[D5,w4],91:D4,92:[u4,Mb],93:Wd,95:bd,96:Z5},aT={null:[bd,F4]},oT={null:[42,95]},sT={null:[]},uT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:oT,contentInitial:tT,disable:sT,document:eT,flow:lT,flowInitial:nT,insideSpan:aT,string:rT,text:iT},Symbol.toStringTag,{value:"Module"}));function cT(t,l,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},u=[];let c=[],d=[];const p={attempt:H(I),check:H(N),consume:_,enter:M,exit:D,interrupt:H(N,{interrupt:!0})},f={code:null,containerState:{},defineSkip:T,events:[],now:S,parser:t,previous:null,sliceSerialize:x,sliceStream:b,write:y};let g=l.tokenize.call(f,p);return l.resolveAll&&u.push(l),f;function y(re){return c=En(c,re),R(),c[c.length-1]!==null?[]:(F(l,0),f.events=nu(u,f.events,f),f.events)}function x(re,V){return dT(b(re),V)}function b(re){return fT(c,re)}function S(){const{_bufferIndex:re,_index:V,line:ue,column:ne,offset:ee}=a;return{_bufferIndex:re,_index:V,line:ue,column:ne,offset:ee}}function T(re){s[re.line]=re.column,U()}function R(){let re;for(;a._index<c.length;){const V=c[a._index];if(typeof V=="string")for(re=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===re&&a._bufferIndex<V.length;)E(V.charCodeAt(a._bufferIndex));else E(V)}}function E(re){g=g(re)}function _(re){Se(re)?(a.line++,a.column=1,a.offset+=re===-3?2:1,U()):re!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),f.previous=re}function M(re,V){const ue=V||{};return ue.type=re,ue.start=S(),f.events.push(["enter",ue,f]),d.push(ue),ue}function D(re){const V=d.pop();return V.end=S(),f.events.push(["exit",V,f]),V}function I(re,V){F(re,V.from)}function N(re,V){V.restore()}function H(re,V){return ue;function ue(ne,ee,B){let X,te,oe,z;return Array.isArray(ne)?Q(ne):"tokenize"in ne?Q([ne]):O(ne);function O(pe){return ae;function ae(Me){const ze=Me!==null&&pe[Me],at=Me!==null&&pe.null,Ct=[...Array.isArray(ze)?ze:ze?[ze]:[],...Array.isArray(at)?at:at?[at]:[]];return Q(Ct)(Me)}}function Q(pe){return X=pe,te=0,pe.length===0?B:A(pe[te])}function A(pe){return ae;function ae(Me){return z=Z(),oe=pe,pe.partial||(f.currentConstruct=pe),pe.name&&f.parser.constructs.disable.null.includes(pe.name)?me():pe.tokenize.call(V?Object.assign(Object.create(f),V):f,p,se,me)(Me)}}function se(pe){return re(oe,z),ee}function me(pe){return z.restore(),++te<X.length?A(X[te]):B}}}function F(re,V){re.resolveAll&&!u.includes(re)&&u.push(re),re.resolve&&hn(f.events,V,f.events.length-V,re.resolve(f.events.slice(V),f)),re.resolveTo&&(f.events=re.resolveTo(f.events,f))}function Z(){const re=S(),V=f.previous,ue=f.currentConstruct,ne=f.events.length,ee=Array.from(d);return{from:ne,restore:B};function B(){a=re,f.previous=V,f.currentConstruct=ue,f.events.length=ne,d=ee,U()}}function U(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function fT(t,l){const r=l.start._index,a=l.start._bufferIndex,s=l.end._index,u=l.end._bufferIndex;let c;if(r===s)c=[t[r].slice(a,u)];else{if(c=t.slice(r,s),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}u>0&&c.push(t[s].slice(0,u))}return c}function dT(t,l){let r=-1;const a=[];let s;for(;++r<t.length;){const u=t[r];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
|
51
|
+
`;break}case-3:{c=`\r
|
|
52
|
+
`;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&s)continue;c=" ";break}default:c=String.fromCharCode(u)}s=u===-2,a.push(c)}return a.join("")}function hT(t){const a={constructs:Ab([uT,...(t||{}).extensions||[]]),content:s(R5),defined:[],document:s(M5),flow:s(Z4),lazy:{},string:s(K4),text:s(J4)};return a;function s(u){return c;function c(d){return cT(a,u,d)}}}function pT(t){for(;!_b(t););return t}const my=/[\0\t\n\r]/g;function mT(){let t=1,l="",r=!0,a;return s;function s(u,c,d){const p=[];let f,g,y,x,b;for(u=l+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),y=0,l="",r&&(u.charCodeAt(0)===65279&&y++,r=void 0);y<u.length;){if(my.lastIndex=y,f=my.exec(u),x=f&&f.index!==void 0?f.index:u.length,b=u.charCodeAt(x),!f){l=u.slice(y);break}if(b===10&&y===x&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),y<x&&(p.push(u.slice(y,x)),t+=x-y),b){case 0:{p.push(65533),t++;break}case 9:{for(g=Math.ceil(t/4)*4,p.push(-2);t++<g;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:a=!0,t=1}y=x+1}return d&&(a&&p.push(-5),l&&p.push(l),p.push(null)),p}}const gT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yT(t){return t.replace(gT,xT)}function xT(t,l,r){if(l)return l;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),u=s===120||s===88;return Rb(r.slice(u?2:1),u?16:10)}return Jd(r)||t}const Hb={}.hasOwnProperty;function bT(t,l,r){return typeof l!="string"&&(r=l,l=void 0),vT(r)(pT(hT(r).document().write(mT()(t,l,!0))))}function vT(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Et),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:u(pn),blockQuote:u(at),characterEscape:Z,characterReference:Z,codeFenced:u(Ct),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Ct,c),codeText:u(Wt,c),codeTextData:Z,data:Z,codeFlowValue:Z,definition:u(It),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(jt),hardBreakEscape:u(Vt),hardBreakTrailing:u(Vt),htmlFlow:u(An,c),htmlFlowData:Z,htmlText:u(An,c),htmlTextData:Z,image:u(Rn),label:c,link:u(Et),listItem:u(Qn),listItemValue:x,listOrdered:u(Ln,y),listUnordered:u(Ln),paragraph:u(tr),reference:A,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(pn),strong:u(nr),thematicBreak:u(lr)},exit:{atxHeading:p(),atxHeadingSequence:I,autolink:p(),autolinkEmail:ze,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:pe,characterReference:ae,codeFenced:p(R),codeFencedFence:T,codeFencedFenceInfo:b,codeFencedFenceMeta:S,codeFlowValue:U,codeIndented:p(E),codeText:p(ee),codeTextData:U,data:U,definition:p(),definitionDestinationString:D,definitionLabelString:_,definitionTitleString:M,emphasis:p(),hardBreakEscape:p(V),hardBreakTrailing:p(V),htmlFlow:p(ue),htmlFlowData:U,htmlText:p(ne),htmlTextData:U,image:p(X),label:oe,labelText:te,lineEnding:re,link:p(B),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:se,resourceDestinationString:z,resourceTitleString:O,resource:Q,setextHeading:p(F),setextHeadingLineSequence:H,setextHeadingText:N,strong:p(),thematicBreak:p()}};Ub(l,(t||{}).mdastExtensions||[]);const r={};return a;function a(W){let K={type:"root",children:[]};const fe={stack:[K],tokenStack:[],config:l,enter:d,exit:f,buffer:c,resume:g,data:r},he=[];let be=-1;for(;++be<W.length;)if(W[be][1].type==="listOrdered"||W[be][1].type==="listUnordered")if(W[be][0]==="enter")he.push(be);else{const vt=he.pop();be=s(W,vt,be)}for(be=-1;++be<W.length;){const vt=l[W[be][0]];Hb.call(vt,W[be][1].type)&&vt[W[be][1].type].call(Object.assign({sliceSerialize:W[be][2].sliceSerialize},fe),W[be][1])}if(fe.tokenStack.length>0){const vt=fe.tokenStack[fe.tokenStack.length-1];(vt[1]||gy).call(fe,void 0,vt[0])}for(K.position={start:Ql(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:Ql(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},be=-1;++be<l.transforms.length;)K=l.transforms[be](K)||K;return K}function s(W,K,fe){let he=K-1,be=-1,vt=!1,tt,ot,Fe,dt;for(;++he<=fe;){const He=W[he];switch(He[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{He[0]==="enter"?be++:be--,dt=void 0;break}case"lineEndingBlank":{He[0]==="enter"&&(tt&&!dt&&!be&&!Fe&&(Fe=he),dt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dt=void 0}if(!be&&He[0]==="enter"&&He[1].type==="listItemPrefix"||be===-1&&He[0]==="exit"&&(He[1].type==="listUnordered"||He[1].type==="listOrdered")){if(tt){let zn=he;for(ot=void 0;zn--;){const en=W[zn];if(en[1].type==="lineEnding"||en[1].type==="lineEndingBlank"){if(en[0]==="exit")continue;ot&&(W[ot][1].type="lineEndingBlank",vt=!0),en[1].type="lineEnding",ot=zn}else if(!(en[1].type==="linePrefix"||en[1].type==="blockQuotePrefix"||en[1].type==="blockQuotePrefixWhitespace"||en[1].type==="blockQuoteMarker"||en[1].type==="listItemIndent"))break}Fe&&(!ot||Fe<ot)&&(tt._spread=!0),tt.end=Object.assign({},ot?W[ot][1].start:He[1].end),W.splice(ot||he,0,["exit",tt,He[2]]),he++,fe++}if(He[1].type==="listItemPrefix"){const zn={type:"listItem",_spread:!1,start:Object.assign({},He[1].start),end:void 0};tt=zn,W.splice(he,0,["enter",zn,He[2]]),he++,fe++,Fe=void 0,dt=!0}}}return W[K][1]._spread=vt,fe}function u(W,K){return fe;function fe(he){d.call(this,W(he),he),K&&K.call(this,he)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(W,K,fe){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([K,fe||void 0]),W.position={start:Ql(K.start),end:void 0}}function p(W){return K;function K(fe){W&&W.call(this,fe),f.call(this,fe)}}function f(W,K){const fe=this.stack.pop(),he=this.tokenStack.pop();if(he)he[0].type!==W.type&&(K?K.call(this,W,he[0]):(he[1]||gy).call(this,W,he[0]));else throw new Error("Cannot close `"+W.type+"` ("+Ua({start:W.start,end:W.end})+"): it’s not open");fe.position.end=Ql(W.end)}function g(){return Kd(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function x(W){if(this.data.expectingFirstListItemValue){const K=this.stack[this.stack.length-2];K.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function b(){const W=this.resume(),K=this.stack[this.stack.length-1];K.lang=W}function S(){const W=this.resume(),K=this.stack[this.stack.length-1];K.meta=W}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const W=this.resume(),K=this.stack[this.stack.length-1];K.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const W=this.resume(),K=this.stack[this.stack.length-1];K.value=W.replace(/(\r?\n|\r)$/g,"")}function _(W){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.label=K,fe.identifier=jn(this.sliceSerialize(W)).toLowerCase()}function M(){const W=this.resume(),K=this.stack[this.stack.length-1];K.title=W}function D(){const W=this.resume(),K=this.stack[this.stack.length-1];K.url=W}function I(W){const K=this.stack[this.stack.length-1];if(!K.depth){const fe=this.sliceSerialize(W).length;K.depth=fe}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function H(W){const K=this.stack[this.stack.length-1];K.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(W){const fe=this.stack[this.stack.length-1].children;let he=fe[fe.length-1];(!he||he.type!=="text")&&(he=bt(),he.position={start:Ql(W.start),end:void 0},fe.push(he)),this.stack.push(he)}function U(W){const K=this.stack.pop();K.value+=this.sliceSerialize(W),K.position.end=Ql(W.end)}function re(W){const K=this.stack[this.stack.length-1];if(this.data.atHardBreak){const fe=K.children[K.children.length-1];fe.position.end=Ql(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(K.type)&&(Z.call(this,W),U.call(this,W))}function V(){this.data.atHardBreak=!0}function ue(){const W=this.resume(),K=this.stack[this.stack.length-1];K.value=W}function ne(){const W=this.resume(),K=this.stack[this.stack.length-1];K.value=W}function ee(){const W=this.resume(),K=this.stack[this.stack.length-1];K.value=W}function B(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=K,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function X(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=K,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function te(W){const K=this.sliceSerialize(W),fe=this.stack[this.stack.length-2];fe.label=yT(K),fe.identifier=jn(K).toLowerCase()}function oe(){const W=this.stack[this.stack.length-1],K=this.resume(),fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,fe.type==="link"){const he=W.children;fe.children=he}else fe.alt=K}function z(){const W=this.resume(),K=this.stack[this.stack.length-1];K.url=W}function O(){const W=this.resume(),K=this.stack[this.stack.length-1];K.title=W}function Q(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function se(W){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.label=K,fe.identifier=jn(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function me(W){this.data.characterReferenceType=W.type}function pe(W){const K=this.sliceSerialize(W),fe=this.data.characterReferenceType;let he;fe?(he=Rb(K,fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):he=Jd(K);const be=this.stack[this.stack.length-1];be.value+=he}function ae(W){const K=this.stack.pop();K.position.end=Ql(W.end)}function Me(W){U.call(this,W);const K=this.stack[this.stack.length-1];K.url=this.sliceSerialize(W)}function ze(W){U.call(this,W);const K=this.stack[this.stack.length-1];K.url="mailto:"+this.sliceSerialize(W)}function at(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function Wt(){return{type:"inlineCode",value:""}}function It(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function jt(){return{type:"emphasis",children:[]}}function pn(){return{type:"heading",depth:0,children:[]}}function Vt(){return{type:"break"}}function An(){return{type:"html",value:""}}function Rn(){return{type:"image",title:null,url:"",alt:null}}function Et(){return{type:"link",title:null,url:"",children:[]}}function Ln(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function Qn(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function tr(){return{type:"paragraph",children:[]}}function nr(){return{type:"strong",children:[]}}function bt(){return{type:"text",value:""}}function lr(){return{type:"thematicBreak"}}}function Ql(t){return{line:t.line,column:t.column,offset:t.offset}}function Ub(t,l){let r=-1;for(;++r<l.length;){const a=l[r];Array.isArray(a)?Ub(t,a):ST(t,a)}}function ST(t,l){let r;for(r in l)if(Hb.call(l,r))switch(r){case"canContainEols":{const a=l[r];a&&t[r].push(...a);break}case"transforms":{const a=l[r];a&&t[r].push(...a);break}case"enter":case"exit":{const a=l[r];a&&Object.assign(t[r],a);break}}}function gy(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+Ua({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+Ua({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+Ua({start:l.start,end:l.end})+") is still open")}function wT(t){const l=this;l.parser=r;function r(a){return bT(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function kT(t,l){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,r),t.applyData(l,r)}function CT(t,l){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,r),[t.applyData(l,r),{type:"text",value:`
|
|
53
|
+
`}]}function ET(t,l){const r=l.value?l.value+`
|
|
54
|
+
`:"",a={},s=l.lang?l.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return l.meta&&(u.data={meta:l.meta}),t.patch(l,u),u=t.applyData(l,u),u={type:"element",tagName:"pre",properties:{},children:[u]},t.patch(l,u),u}function TT(t,l){const r={type:"element",tagName:"del",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function AT(t,l){const r={type:"element",tagName:"em",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function RT(t,l){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(l.identifier).toUpperCase(),s=Di(a.toLowerCase()),u=t.footnoteOrder.indexOf(a);let c,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),c=t.footnoteOrder.length):c=u+1,d+=1,t.footnoteCounts.set(a,d);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(l,p);const f={type:"element",tagName:"sup",properties:{},children:[p]};return t.patch(l,f),t.applyData(l,f)}function zT(t,l){const r={type:"element",tagName:"h"+l.depth,properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function MT(t,l){if(t.options.allowDangerousHtml){const r={type:"raw",value:l.value};return t.patch(l,r),t.applyData(l,r)}}function qb(t,l){const r=l.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+a}];const s=t.all(l),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function NT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return qb(t,l);const s={src:Di(a.url||""),alt:l.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"img",properties:s,children:[]};return t.patch(l,u),t.applyData(l,u)}function _T(t,l){const r={src:Di(l.url)};l.alt!==null&&l.alt!==void 0&&(r.alt=l.alt),l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"img",properties:r,children:[]};return t.patch(l,a),t.applyData(l,a)}function OT(t,l){const r={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};t.patch(l,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(l,a),t.applyData(l,a)}function jT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return qb(t,l);const s={href:Di(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"a",properties:s,children:t.all(l)};return t.patch(l,u),t.applyData(l,u)}function DT(t,l){const r={href:Di(l.url)};l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"a",properties:r,children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function LT(t,l,r){const a=t.all(l),s=r?BT(r):Ib(l),u={},c=[];if(typeof l.checked=="boolean"){const g=a[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},a.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const g=a[d];(s||d!==0||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
|
|
55
|
+
`}),g.type==="element"&&g.tagName==="p"&&!s?c.push(...g.children):c.push(g)}const p=a[a.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
|
|
56
|
+
`});const f={type:"element",tagName:"li",properties:u,children:c};return t.patch(l,f),t.applyData(l,f)}function BT(t){let l=!1;if(t.type==="list"){l=t.spread||!1;const r=t.children;let a=-1;for(;!l&&++a<r.length;)l=Ib(r[a])}return l}function Ib(t){const l=t.spread;return l??t.children.length>1}function HT(t,l){const r={},a=t.all(l);let s=-1;for(typeof l.start=="number"&&l.start!==1&&(r.start=l.start);++s<a.length;){const c=a[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const u={type:"element",tagName:l.ordered?"ol":"ul",properties:r,children:t.wrap(a,!0)};return t.patch(l,u),t.applyData(l,u)}function UT(t,l){const r={type:"element",tagName:"p",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function qT(t,l){const r={type:"root",children:t.wrap(t.all(l))};return t.patch(l,r),t.applyData(l,r)}function IT(t,l){const r={type:"element",tagName:"strong",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function VT(t,l){const r=t.all(l),a=r.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(l.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},d=Qd(l.children[1]),p=vb(l.children[l.children.length-1]);d&&p&&(c.position={start:d,end:p}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(l,u),t.applyData(l,u)}function YT(t,l,r){const a=r?r.children:void 0,u=(a?a.indexOf(l):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:l.children.length;let p=-1;const f=[];for(;++p<d;){const y=l.children[p],x={},b=c?c[p]:void 0;b&&(x.align=b);let S={type:"element",tagName:u,properties:x,children:[]};y&&(S.children=t.all(y),t.patch(y,S),S=t.applyData(y,S)),f.push(S)}const g={type:"element",tagName:"tr",properties:{},children:t.wrap(f,!0)};return t.patch(l,g),t.applyData(l,g)}function GT(t,l){const r={type:"element",tagName:"td",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}const yy=9,xy=32;function PT(t){const l=String(t),r=/\r?\n|\r/g;let a=r.exec(l),s=0;const u=[];for(;a;)u.push(by(l.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=r.exec(l);return u.push(by(l.slice(s),s>0,!1)),u.join("")}function by(t,l,r){let a=0,s=t.length;if(l){let u=t.codePointAt(a);for(;u===yy||u===xy;)a++,u=t.codePointAt(a)}if(r){let u=t.codePointAt(s-1);for(;u===yy||u===xy;)s--,u=t.codePointAt(s-1)}return s>a?t.slice(a,s):""}function XT(t,l){const r={type:"text",value:PT(String(l.value))};return t.patch(l,r),t.applyData(l,r)}function QT(t,l){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(l,r),t.applyData(l,r)}const ZT={blockquote:kT,break:CT,code:ET,delete:TT,emphasis:AT,footnoteReference:RT,heading:zT,html:MT,imageReference:NT,image:_T,inlineCode:OT,linkReference:jT,link:DT,listItem:LT,list:HT,paragraph:UT,root:qT,strong:IT,table:VT,tableCell:GT,tableRow:YT,text:XT,thematicBreak:QT,toml:xs,yaml:xs,definition:xs,footnoteDefinition:xs};function xs(){}const Vb=-1,lu=0,Ia=1,Ds=2,eh=3,th=4,nh=5,lh=6,Yb=7,Gb=8,vy=typeof self=="object"?self:globalThis,$T=(t,l)=>{const r=(s,u)=>(t.set(u,s),s),a=s=>{if(t.has(s))return t.get(s);const[u,c]=l[s];switch(u){case lu:case Vb:return r(c,s);case Ia:{const d=r([],s);for(const p of c)d.push(a(p));return d}case Ds:{const d=r({},s);for(const[p,f]of c)d[a(p)]=a(f);return d}case eh:return r(new Date(c),s);case th:{const{source:d,flags:p}=c;return r(new RegExp(d,p),s)}case nh:{const d=r(new Map,s);for(const[p,f]of c)d.set(a(p),a(f));return d}case lh:{const d=r(new Set,s);for(const p of c)d.add(a(p));return d}case Yb:{const{name:d,message:p}=c;return r(new vy[d](p),s)}case Gb:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(new vy[u](c),s)};return a},Sy=t=>$T(new Map,t)(0),vi="",{toString:FT}={},{keys:KT}=Object,_a=t=>{const l=typeof t;if(l!=="object"||!t)return[lu,l];const r=FT.call(t).slice(8,-1);switch(r){case"Array":return[Ia,vi];case"Object":return[Ds,vi];case"Date":return[eh,vi];case"RegExp":return[th,vi];case"Map":return[nh,vi];case"Set":return[lh,vi];case"DataView":return[Ia,r]}return r.includes("Array")?[Ia,r]:r.includes("Error")?[Yb,r]:[Ds,r]},bs=([t,l])=>t===lu&&(l==="function"||l==="symbol"),JT=(t,l,r,a)=>{const s=(c,d)=>{const p=a.push(c)-1;return r.set(d,p),p},u=c=>{if(r.has(c))return r.get(c);let[d,p]=_a(c);switch(d){case lu:{let g=c;switch(p){case"bigint":d=Gb,g=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+p);g=null;break;case"undefined":return s([Vb],c)}return s([d,g],c)}case Ia:{if(p){let x=c;return p==="DataView"?x=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(x=new Uint8Array(c)),s([p,[...x]],c)}const g=[],y=s([d,g],c);for(const x of c)g.push(u(x));return y}case Ds:{if(p)switch(p){case"BigInt":return s([p,c.toString()],c);case"Boolean":case"Number":case"String":return s([p,c.valueOf()],c)}if(l&&"toJSON"in c)return u(c.toJSON());const g=[],y=s([d,g],c);for(const x of KT(c))(t||!bs(_a(c[x])))&&g.push([u(x),u(c[x])]);return y}case eh:return s([d,c.toISOString()],c);case th:{const{source:g,flags:y}=c;return s([d,{source:g,flags:y}],c)}case nh:{const g=[],y=s([d,g],c);for(const[x,b]of c)(t||!(bs(_a(x))||bs(_a(b))))&&g.push([u(x),u(b)]);return y}case lh:{const g=[],y=s([d,g],c);for(const x of c)(t||!bs(_a(x)))&&g.push(u(x));return y}}const{message:f}=c;return s([d,{name:p,message:f}],c)};return u},wy=(t,{json:l,lossy:r}={})=>{const a=[];return JT(!(l||r),!!l,new Map,a)(t),a},Ls=typeof structuredClone=="function"?(t,l)=>l&&("json"in l||"lossy"in l)?Sy(wy(t,l)):structuredClone(t):(t,l)=>Sy(wy(t,l));function WT(t,l){const r=[{type:"text",value:"↩"}];return l>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),r}function eA(t,l){return"Back to reference "+(t+1)+(l>1?"-"+l:"")}function tA(t){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||WT,a=t.options.footnoteBackLabel||eA,s=t.options.footnoteLabel||"Footnotes",u=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<t.footnoteOrder.length;){const f=t.footnoteById.get(t.footnoteOrder[p]);if(!f)continue;const g=t.all(f),y=String(f.identifier).toUpperCase(),x=Di(y.toLowerCase());let b=0;const S=[],T=t.footnoteCounts.get(y);for(;T!==void 0&&++b<=T;){S.length>0&&S.push({type:"text",value:" "});let _=typeof r=="string"?r:r(p,b);typeof _=="string"&&(_={type:"text",value:_}),S.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,b),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const R=g[g.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const _=R.children[R.children.length-1];_&&_.type==="text"?_.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...S)}else g.push(...S);const E={type:"element",tagName:"li",properties:{id:l+"fn-"+x},children:t.wrap(g,!0)};t.patch(f,E),d.push(E)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Ls(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
57
|
+
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
|
|
58
|
+
`}]}}const ru=(function(t){if(t==null)return iA;if(typeof t=="function")return iu(t);if(typeof t=="object")return Array.isArray(t)?nA(t):lA(t);if(typeof t=="string")return rA(t);throw new Error("Expected function, string, or object as test")});function nA(t){const l=[];let r=-1;for(;++r<t.length;)l[r]=ru(t[r]);return iu(a);function a(...s){let u=-1;for(;++u<l.length;)if(l[u].apply(this,s))return!0;return!1}}function lA(t){const l=t;return iu(r);function r(a){const s=a;let u;for(u in t)if(s[u]!==l[u])return!1;return!0}}function rA(t){return iu(l);function l(r){return r&&r.type===t}}function iu(t){return l;function l(r,a,s){return!!(aA(r)&&t.call(this,r,typeof a=="number"?a:void 0,s||void 0))}}function iA(){return!0}function aA(t){return t!==null&&typeof t=="object"&&"type"in t}const Pb=[],oA=!0,vd=!1,sA="skip";function Xb(t,l,r,a){let s;typeof l=="function"&&typeof r!="function"?(a=r,r=l):s=l;const u=ru(s),c=a?-1:1;d(t,void 0,[])();function d(p,f,g){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const b=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(p.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=Pb,S,T,R;if((!l||u(p,f,g[g.length-1]||void 0))&&(b=uA(r(p,g)),b[0]===vd))return b;if("children"in p&&p.children){const E=p;if(E.children&&b[0]!==sA)for(T=(a?E.children.length:-1)+c,R=g.concat(E);T>-1&&T<E.children.length;){const _=E.children[T];if(S=d(_,T,R)(),S[0]===vd)return S;T=typeof S[1]=="number"?S[1]:T+c}}return b}}}function uA(t){return Array.isArray(t)?t:typeof t=="number"?[oA,t]:t==null?Pb:[t]}function rh(t,l,r,a){let s,u,c;typeof l=="function"&&typeof r!="function"?(u=void 0,c=l,s=r):(u=l,c=r,s=a),Xb(t,u,d,s);function d(p,f){const g=f[f.length-1],y=g?g.children.indexOf(p):void 0;return c(p,y,g)}}const Sd={}.hasOwnProperty,cA={};function fA(t,l){const r=l||cA,a=new Map,s=new Map,u=new Map,c={...ZT,...r.handlers},d={all:f,applyData:hA,definitionById:a,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:p,options:r,patch:dA,wrap:mA};return rh(t,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?a:s,x=String(g.identifier).toUpperCase();y.has(x)||y.set(x,g)}}),d;function p(g,y){const x=g.type,b=d.handlers[x];if(Sd.call(d.handlers,x)&&b)return b(d,g,y);if(d.options.passThrough&&d.options.passThrough.includes(x)){if("children"in g){const{children:T,...R}=g,E=Ls(R);return E.children=d.all(g),E}return Ls(g)}return(d.options.unknownHandler||pA)(d,g,y)}function f(g){const y=[];if("children"in g){const x=g.children;let b=-1;for(;++b<x.length;){const S=d.one(x[b],g);if(S){if(b&&x[b-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=ky(S.value)),!Array.isArray(S)&&S.type==="element")){const T=S.children[0];T&&T.type==="text"&&(T.value=ky(T.value))}Array.isArray(S)?y.push(...S):y.push(S)}}}return y}}function dA(t,l){t.position&&(l.position=e5(t))}function hA(t,l){let r=l;if(t&&t.data){const a=t.data.hName,s=t.data.hChildren,u=t.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const c="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:c}}r.type==="element"&&u&&Object.assign(r.properties,Ls(u)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function pA(t,l){const r=l.data||{},a="value"in l&&!(Sd.call(r,"hProperties")||Sd.call(r,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function mA(t,l){const r=[];let a=-1;for(l&&r.push({type:"text",value:`
|
|
59
|
+
`});++a<t.length;)a&&r.push({type:"text",value:`
|
|
60
|
+
`}),r.push(t[a]);return l&&t.length>0&&r.push({type:"text",value:`
|
|
61
|
+
`}),r}function ky(t){let l=0,r=t.charCodeAt(l);for(;r===9||r===32;)l++,r=t.charCodeAt(l);return t.slice(l)}function Cy(t,l){const r=fA(t,l),a=r.one(t,void 0),s=tA(r),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&u.children.push({type:"text",value:`
|
|
62
|
+
`},s),u}function gA(t,l){return t&&"run"in t?async function(r,a){const s=Cy(r,{file:a,...l});await t.run(s,a)}:function(r,a){return Cy(r,{file:a,...t||l})}}function Ey(t){if(t)throw t}var Yf,Ty;function yA(){if(Ty)return Yf;Ty=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(f){return typeof Array.isArray=="function"?Array.isArray(f):l.call(f)==="[object Array]"},u=function(f){if(!f||l.call(f)!=="[object Object]")return!1;var g=t.call(f,"constructor"),y=f.constructor&&f.constructor.prototype&&t.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!g&&!y)return!1;var x;for(x in f);return typeof x>"u"||t.call(f,x)},c=function(f,g){r&&g.name==="__proto__"?r(f,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):f[g.name]=g.newValue},d=function(f,g){if(g==="__proto__")if(t.call(f,g)){if(a)return a(f,g).value}else return;return f[g]};return Yf=function p(){var f,g,y,x,b,S,T=arguments[0],R=1,E=arguments.length,_=!1;for(typeof T=="boolean"&&(_=T,T=arguments[1]||{},R=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});R<E;++R)if(f=arguments[R],f!=null)for(g in f)y=d(T,g),x=d(f,g),T!==x&&(_&&x&&(u(x)||(b=s(x)))?(b?(b=!1,S=y&&s(y)?y:[]):S=y&&u(y)?y:{},c(T,{name:g,newValue:p(_,S,x)})):typeof x<"u"&&c(T,{name:g,newValue:x}));return T},Yf}var xA=yA();const Gf=Is(xA);function wd(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function bA(){const t=[],l={run:r,use:a};return l;function r(...s){let u=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...s);function d(p,...f){const g=t[++u];let y=-1;if(p){c(p);return}for(;++y<s.length;)(f[y]===null||f[y]===void 0)&&(f[y]=s[y]);s=f,g?vA(g,d)(...f):c(null,...f)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),l}}function vA(t,l){let r;return a;function a(...c){const d=t.length>c.length;let p;d&&c.push(s);try{p=t.apply(this,c)}catch(f){const g=f;if(d&&r)throw g;return s(g)}d||(p&&p.then&&typeof p.then=="function"?p.then(u,s):p instanceof Error?s(p):u(p))}function s(c,...d){r||(r=!0,l(c,...d))}function u(c){s(null,c)}}const Vn={basename:SA,dirname:wA,extname:kA,join:CA,sep:"/"};function SA(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');Wa(t);let r=0,a=-1,s=t.length,u;if(l===void 0||l.length===0||l.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(u){r=s+1;break}}else a<0&&(u=!0,a=s+1);return a<0?"":t.slice(r,a)}if(l===t)return"";let c=-1,d=l.length-1;for(;s--;)if(t.codePointAt(s)===47){if(u){r=s+1;break}}else c<0&&(u=!0,c=s+1),d>-1&&(t.codePointAt(s)===l.codePointAt(d--)?d<0&&(a=s):(d=-1,a=c));return r===a?a=c:a<0&&(a=t.length),t.slice(r,a)}function wA(t){if(Wa(t),t.length===0)return".";let l=-1,r=t.length,a;for(;--r;)if(t.codePointAt(r)===47){if(a){l=r;break}}else a||(a=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function kA(t){Wa(t);let l=t.length,r=-1,a=0,s=-1,u=0,c;for(;l--;){const d=t.codePointAt(l);if(d===47){if(c){a=l+1;break}continue}r<0&&(c=!0,r=l+1),d===46?s<0?s=l:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||r<0||u===0||u===1&&s===r-1&&s===a+1?"":t.slice(s,r)}function CA(...t){let l=-1,r;for(;++l<t.length;)Wa(t[l]),t[l]&&(r=r===void 0?t[l]:r+"/"+t[l]);return r===void 0?".":EA(r)}function EA(t){Wa(t);const l=t.codePointAt(0)===47;let r=TA(t,!l);return r.length===0&&!l&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),l?"/"+r:r}function TA(t,l){let r="",a=0,s=-1,u=0,c=-1,d,p;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(s===c-1||u===1))if(s!==c-1&&u===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",a=0):(r=r.slice(0,p),a=r.length-1-r.lastIndexOf("/")),s=c,u=0;continue}}else if(r.length>0){r="",a=0,s=c,u=0;continue}}l&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+t.slice(s+1,c):r=t.slice(s+1,c),a=c-s-1;s=c,u=0}else d===46&&u>-1?u++:u=-1}return r}function Wa(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const AA={cwd:RA};function RA(){return"/"}function kd(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function zA(t){if(typeof t=="string")t=new URL(t);else if(!kd(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return MA(t)}function MA(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const l=t.pathname;let r=-1;for(;++r<l.length;)if(l.codePointAt(r)===37&&l.codePointAt(r+1)===50){const a=l.codePointAt(r+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(l)}const Pf=["history","path","basename","stem","extname","dirname"];class Qb{constructor(l){let r;l?kd(l)?r={path:l}:typeof l=="string"||NA(l)?r={value:l}:r=l:r={},this.cwd="cwd"in r?"":AA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Pf.length;){const u=Pf[a];u in r&&r[u]!==void 0&&r[u]!==null&&(this[u]=u==="history"?[...r[u]]:r[u])}let s;for(s in r)Pf.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Vn.basename(this.path):void 0}set basename(l){Qf(l,"basename"),Xf(l,"basename"),this.path=Vn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?Vn.dirname(this.path):void 0}set dirname(l){Ay(this.basename,"dirname"),this.path=Vn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?Vn.extname(this.path):void 0}set extname(l){if(Xf(l,"extname"),Ay(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Vn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){kd(l)&&(l=zA(l)),Qf(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?Vn.basename(this.path,this.extname):void 0}set stem(l){Qf(l,"stem"),Xf(l,"stem"),this.path=Vn.join(this.dirname||"",l+(this.extname||""))}fail(l,r,a){const s=this.message(l,r,a);throw s.fatal=!0,s}info(l,r,a){const s=this.message(l,r,a);return s.fatal=void 0,s}message(l,r,a){const s=new Bt(l,r,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Xf(t,l){if(t&&t.includes(Vn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+Vn.sep+"`")}function Qf(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function Ay(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function NA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const _A=(function(t){const a=this.constructor.prototype,s=a[t],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),OA={}.hasOwnProperty;class ih extends _A{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=bA()}copy(){const l=new ih;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];l.use(...a)}return l.data(Gf(!0,{},this.namespace)),l}data(l,r){return typeof l=="string"?arguments.length===2?(Ff("data",this.frozen),this.namespace[l]=r,this):OA.call(this.namespace,l)&&this.namespace[l]||void 0:l?(Ff("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const s=r.call(l,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const r=vs(l),a=this.parser||this.Parser;return Zf("parse",a),a(String(r),r)}process(l,r){const a=this;return this.freeze(),Zf("process",this.parser||this.Parser),$f("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(u,c){const d=vs(l),p=a.parse(d);a.run(p,d,function(g,y,x){if(g||!y||!x)return f(g);const b=y,S=a.stringify(b,x);LA(S)?x.value=S:x.result=S,f(g,x)});function f(g,y){g||!y?c(g):u?u(y):r(void 0,y)}}}processSync(l){let r=!1,a;return this.freeze(),Zf("processSync",this.parser||this.Parser),$f("processSync",this.compiler||this.Compiler),this.process(l,s),zy("processSync","process",r),a;function s(u,c){r=!0,Ey(u),a=c}}run(l,r,a){Ry(l),this.freeze();const s=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?u(void 0,a):new Promise(u);function u(c,d){const p=vs(r);s.run(l,p,f);function f(g,y,x){const b=y||l;g?d(g):c?c(b):a(void 0,b,x)}}}runSync(l,r){let a=!1,s;return this.run(l,r,u),zy("runSync","run",a),s;function u(c,d){Ey(c),s=d,a=!0}}stringify(l,r){this.freeze();const a=vs(r),s=this.compiler||this.Compiler;return $f("stringify",s),Ry(l),s(l,a)}use(l,...r){const a=this.attachers,s=this.namespace;if(Ff("use",this.frozen),l!=null)if(typeof l=="function")p(l,r);else if(typeof l=="object")Array.isArray(l)?d(l):c(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function u(f){if(typeof f=="function")p(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[g,...y]=f;p(g,y)}else c(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function c(f){if(!("plugins"in f)&&!("settings"in f))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");d(f.plugins),f.settings&&(s.settings=Gf(!0,s.settings,f.settings))}function d(f){let g=-1;if(f!=null)if(Array.isArray(f))for(;++g<f.length;){const y=f[g];u(y)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function p(f,g){let y=-1,x=-1;for(;++y<a.length;)if(a[y][0]===f){x=y;break}if(x===-1)a.push([f,...g]);else if(g.length>0){let[b,...S]=g;const T=a[x][1];wd(T)&&wd(b)&&(b=Gf(!0,T,b)),a[x]=[f,b,...S]}}}}const jA=new ih().freeze();function Zf(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function $f(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Ff(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ry(t){if(!wd(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function zy(t,l,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function vs(t){return DA(t)?t:new Qb(t)}function DA(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function LA(t){return typeof t=="string"||BA(t)}function BA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const HA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",My=[],Ny={allowDangerousHtml:!0},UA=/^(https?|ircs?|mailto|xmpp)$/i,qA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function IA(t){const l=VA(t),r=YA(t);return GA(l.runSync(l.parse(r),r),t)}function VA(t){const l=t.rehypePlugins||My,r=t.remarkPlugins||My,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Ny}:Ny;return jA().use(wT).use(r).use(gA,a).use(l)}function YA(t){const l=t.children||"",r=new Qb;return typeof l=="string"&&(r.value=l),r}function GA(t,l){const r=l.allowedElements,a=l.allowElement,s=l.components,u=l.disallowedElements,c=l.skipHtml,d=l.unwrapDisallowed,p=l.urlTransform||PA;for(const g of qA)Object.hasOwn(l,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+HA+g.id,void 0);return rh(t,f),i5(t,{Fragment:w.Fragment,components:s,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.jsxs,passKeys:!0,passNode:!0});function f(g,y,x){if(g.type==="raw"&&x&&typeof y=="number")return c?x.children.splice(y,1):x.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let b;for(b in qf)if(Object.hasOwn(qf,b)&&Object.hasOwn(g.properties,b)){const S=g.properties[b],T=qf[b];(T===null||T.includes(g.tagName))&&(g.properties[b]=p(String(S||""),b,g))}}if(g.type==="element"){let b=r?!r.includes(g.tagName):u?u.includes(g.tagName):!1;if(!b&&a&&typeof y=="number"&&(b=!a(g,y,x)),b&&x&&typeof y=="number")return d&&g.children?x.children.splice(y,1,...g.children):x.children.splice(y,1),y}}}function PA(t){const l=t.indexOf(":"),r=t.indexOf("?"),a=t.indexOf("#"),s=t.indexOf("/");return l===-1||s!==-1&&l>s||r!==-1&&l>r||a!==-1&&l>a||UA.test(t.slice(0,l))?t:""}function _y(t,l){const r=String(t);if(typeof l!="string")throw new TypeError("Expected character");let a=0,s=r.indexOf(l);for(;s!==-1;)a++,s=r.indexOf(l,s+l.length);return a}function XA(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function QA(t,l,r){const s=ru((r||{}).ignore||[]),u=ZA(l);let c=-1;for(;++c<u.length;)Xb(t,"text",d);function d(f,g){let y=-1,x;for(;++y<g.length;){const b=g[y],S=x?x.children:void 0;if(s(b,S?S.indexOf(b):void 0,x))return;x=b}if(x)return p(f,g)}function p(f,g){const y=g[g.length-1],x=u[c][0],b=u[c][1];let S=0;const R=y.children.indexOf(f);let E=!1,_=[];x.lastIndex=0;let M=x.exec(f.value);for(;M;){const D=M.index,I={index:M.index,input:M.input,stack:[...g,f]};let N=b(...M,I);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?x.lastIndex=D+1:(S!==D&&_.push({type:"text",value:f.value.slice(S,D)}),Array.isArray(N)?_.push(...N):N&&_.push(N),S=D+M[0].length,E=!0),!x.global)break;M=x.exec(f.value)}return E?(S<f.value.length&&_.push({type:"text",value:f.value.slice(S)}),y.children.splice(R,1,..._)):_=[f],R+_.length}}function ZA(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<r.length;){const s=r[a];l.push([$A(s[0]),FA(s[1])])}return l}function $A(t){return typeof t=="string"?new RegExp(XA(t),"g"):t}function FA(t){return typeof t=="function"?t:function(){return t}}const Kf="phrasing",Jf=["autolink","link","image","label"];function KA(){return{transforms:[r6],enter:{literalAutolink:WA,literalAutolinkEmail:Wf,literalAutolinkHttp:Wf,literalAutolinkWww:Wf},exit:{literalAutolink:l6,literalAutolinkEmail:n6,literalAutolinkHttp:e6,literalAutolinkWww:t6}}}function JA(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Kf,notInConstruct:Jf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Kf,notInConstruct:Jf},{character:":",before:"[ps]",after:"\\/",inConstruct:Kf,notInConstruct:Jf}]}}function WA(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Wf(t){this.config.enter.autolinkProtocol.call(this,t)}function e6(t){this.config.exit.autolinkProtocol.call(this,t)}function t6(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function n6(t){this.config.exit.autolinkEmail.call(this,t)}function l6(t){this.exit(t)}function r6(t){QA(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,i6],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),a6]],{ignore:["link","linkReference"]})}function i6(t,l,r,a,s){let u="";if(!Zb(s)||(/^w/i.test(l)&&(r=l+r,l="",u="http://"),!o6(r)))return!1;const c=s6(r+a);if(!c[0])return!1;const d={type:"link",title:null,url:u+l+c[0],children:[{type:"text",value:l+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function a6(t,l,r,a){return!Zb(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+r,children:[{type:"text",value:l+"@"+r}]}}function o6(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function s6(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let r=l[0],a=r.indexOf(")");const s=_y(t,"(");let u=_y(t,")");for(;a!==-1&&s>u;)t+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),u++;return[t,r]}function Zb(t,l){const r=t.input.charCodeAt(t.index-1);return(t.index===0||kr(r)||tu(r))&&(!l||r!==47)}$b.peek=y6;function u6(){this.buffer()}function c6(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function f6(){this.buffer()}function d6(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function h6(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=jn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function p6(t){this.exit(t)}function m6(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=jn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function g6(t){this.exit(t)}function y6(){return"["}function $b(t,l,r,a){const s=r.createTracker(a);let u=s.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return u+=s.move(r.safe(r.associationId(t),{after:"]",before:u})),d(),c(),u+=s.move("]"),u}function x6(){return{enter:{gfmFootnoteCallString:u6,gfmFootnoteCall:c6,gfmFootnoteDefinitionLabelString:f6,gfmFootnoteDefinition:d6},exit:{gfmFootnoteCallString:h6,gfmFootnoteCall:p6,gfmFootnoteDefinitionLabelString:m6,gfmFootnoteDefinition:g6}}}function b6(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:r,footnoteReference:$b},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,s,u,c){const d=u.createTracker(c);let p=d.move("[^");const f=u.enter("footnoteDefinition"),g=u.enter("label");return p+=d.move(u.safe(u.associationId(a),{before:p,after:"]"})),g(),p+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),p+=d.move((l?`
|
|
63
|
+
`:" ")+u.indentLines(u.containerFlow(a,d.current()),l?Fb:v6))),f(),p}}function v6(t,l,r){return l===0?t:Fb(t,l,r)}function Fb(t,l,r){return(r?"":" ")+t}const S6=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Kb.peek=T6;function w6(){return{canContainEols:["delete"],enter:{strikethrough:C6},exit:{strikethrough:E6}}}function k6(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:S6}],handlers:{delete:Kb}}}function C6(t){this.enter({type:"delete",children:[]},t)}function E6(t){this.exit(t)}function Kb(t,l,r,a){const s=r.createTracker(a),u=r.enter("strikethrough");let c=s.move("~~");return c+=r.containerPhrasing(t,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),u(),c}function T6(){return"~"}function A6(t){return t.length}function R6(t,l){const r=l||{},a=(r.align||[]).concat(),s=r.stringLength||A6,u=[],c=[],d=[],p=[];let f=0,g=-1;for(;++g<t.length;){const T=[],R=[];let E=-1;for(t[g].length>f&&(f=t[g].length);++E<t[g].length;){const _=z6(t[g][E]);if(r.alignDelimiters!==!1){const M=s(_);R[E]=M,(p[E]===void 0||M>p[E])&&(p[E]=M)}T.push(_)}c[g]=T,d[g]=R}let y=-1;if(typeof a=="object"&&"length"in a)for(;++y<f;)u[y]=Oy(a[y]);else{const T=Oy(a);for(;++y<f;)u[y]=T}y=-1;const x=[],b=[];for(;++y<f;){const T=u[y];let R="",E="";T===99?(R=":",E=":"):T===108?R=":":T===114&&(E=":");let _=r.alignDelimiters===!1?1:Math.max(1,p[y]-R.length-E.length);const M=R+"-".repeat(_)+E;r.alignDelimiters!==!1&&(_=R.length+_+E.length,_>p[y]&&(p[y]=_),b[y]=_),x[y]=M}c.splice(1,0,x),d.splice(1,0,b),g=-1;const S=[];for(;++g<c.length;){const T=c[g],R=d[g];y=-1;const E=[];for(;++y<f;){const _=T[y]||"";let M="",D="";if(r.alignDelimiters!==!1){const I=p[y]-(R[y]||0),N=u[y];N===114?M=" ".repeat(I):N===99?I%2?(M=" ".repeat(I/2+.5),D=" ".repeat(I/2-.5)):(M=" ".repeat(I/2),D=M):D=" ".repeat(I)}r.delimiterStart!==!1&&!y&&E.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&_==="")&&(r.delimiterStart!==!1||y)&&E.push(" "),r.alignDelimiters!==!1&&E.push(M),E.push(_),r.alignDelimiters!==!1&&E.push(D),r.padding!==!1&&E.push(" "),(r.delimiterEnd!==!1||y!==f-1)&&E.push("|")}S.push(r.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return S.join(`
|
|
64
|
+
`)}function z6(t){return t==null?"":String(t)}function Oy(t){const l=typeof t=="string"?t.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function M6(t,l,r,a){const s=r.enter("blockquote"),u=r.createTracker(a);u.move("> "),u.shift(2);const c=r.indentLines(r.containerFlow(t,u.current()),N6);return s(),c}function N6(t,l,r){return">"+(r?"":" ")+t}function _6(t,l){return jy(t,l.inConstruct,!0)&&!jy(t,l.notInConstruct,!1)}function jy(t,l,r){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return r;let a=-1;for(;++a<l.length;)if(t.includes(l[a]))return!0;return!1}function Dy(t,l,r,a){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
|
|
65
|
+
`&&_6(r.stack,r.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
66
|
+
`}function O6(t,l){const r=String(t);let a=r.indexOf(l),s=a,u=0,c=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===s?++u>c&&(c=u):u=1,s=a+l.length,a=r.indexOf(l,s);return c}function j6(t,l){return!!(l.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function D6(t){const l=t.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function L6(t,l,r,a){const s=D6(r),u=t.value||"",c=s==="`"?"GraveAccent":"Tilde";if(j6(t,r)){const y=r.enter("codeIndented"),x=r.indentLines(u,B6);return y(),x}const d=r.createTracker(a),p=s.repeat(Math.max(O6(u,s)+1,3)),f=r.enter("codeFenced");let g=d.move(p);if(t.lang){const y=r.enter(`codeFencedLang${c}`);g+=d.move(r.safe(t.lang,{before:g,after:" ",encode:["`"],...d.current()})),y()}if(t.lang&&t.meta){const y=r.enter(`codeFencedMeta${c}`);g+=d.move(" "),g+=d.move(r.safe(t.meta,{before:g,after:`
|
|
67
|
+
`,encode:["`"],...d.current()})),y()}return g+=d.move(`
|
|
68
|
+
`),u&&(g+=d.move(u+`
|
|
69
|
+
`)),g+=d.move(p),f(),g}function B6(t,l,r){return(r?"":" ")+t}function ah(t){const l=t.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function H6(t,l,r,a){const s=ah(r),u=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const p=r.createTracker(a);let f=p.move("[");return f+=p.move(r.safe(r.associationId(t),{before:f,after:"]",...p.current()})),f+=p.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),f+=p.move("<"),f+=p.move(r.safe(t.url,{before:f,after:">",...p.current()})),f+=p.move(">")):(d=r.enter("destinationRaw"),f+=p.move(r.safe(t.url,{before:f,after:t.title?" ":`
|
|
70
|
+
`,...p.current()}))),d(),t.title&&(d=r.enter(`title${u}`),f+=p.move(" "+s),f+=p.move(r.safe(t.title,{before:f,after:s,...p.current()})),f+=p.move(s),d()),c(),f}function U6(t){const l=t.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function Za(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Bs(t,l,r){const a=Mi(t),s=Mi(l);return a===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Jb.peek=q6;function Jb(t,l,r,a){const s=U6(r),u=r.enter("emphasis"),c=r.createTracker(a),d=c.move(s);let p=c.move(r.containerPhrasing(t,{after:s,before:d,...c.current()}));const f=p.charCodeAt(0),g=Bs(a.before.charCodeAt(a.before.length-1),f,s);g.inside&&(p=Za(f)+p.slice(1));const y=p.charCodeAt(p.length-1),x=Bs(a.after.charCodeAt(0),y,s);x.inside&&(p=p.slice(0,-1)+Za(y));const b=c.move(s);return u(),r.attentionEncodeSurroundingInfo={after:x.outside,before:g.outside},d+p+b}function q6(t,l,r){return r.options.emphasis||"*"}function I6(t,l){let r=!1;return rh(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,vd}),!!((!t.depth||t.depth<3)&&Kd(t)&&(l.options.setext||r))}function V6(t,l,r,a){const s=Math.max(Math.min(6,t.depth||1),1),u=r.createTracker(a);if(I6(t,r)){const g=r.enter("headingSetext"),y=r.enter("phrasing"),x=r.containerPhrasing(t,{...u.current(),before:`
|
|
71
|
+
`,after:`
|
|
72
|
+
`});return y(),g(),x+`
|
|
73
|
+
`+(s===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
|
|
74
|
+
`))+1))}const c="#".repeat(s),d=r.enter("headingAtx"),p=r.enter("phrasing");u.move(c+" ");let f=r.containerPhrasing(t,{before:"# ",after:`
|
|
75
|
+
`,...u.current()});return/^[\t ]/.test(f)&&(f=Za(f.charCodeAt(0))+f.slice(1)),f=f?c+" "+f:c,r.options.closeAtx&&(f+=" "+c),p(),d(),f}Wb.peek=Y6;function Wb(t){return t.value||""}function Y6(){return"<"}e0.peek=G6;function e0(t,l,r,a){const s=ah(r),u=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const p=r.createTracker(a);let f=p.move("![");return f+=p.move(r.safe(t.alt,{before:f,after:"]",...p.current()})),f+=p.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),f+=p.move("<"),f+=p.move(r.safe(t.url,{before:f,after:">",...p.current()})),f+=p.move(">")):(d=r.enter("destinationRaw"),f+=p.move(r.safe(t.url,{before:f,after:t.title?" ":")",...p.current()}))),d(),t.title&&(d=r.enter(`title${u}`),f+=p.move(" "+s),f+=p.move(r.safe(t.title,{before:f,after:s,...p.current()})),f+=p.move(s),d()),f+=p.move(")"),c(),f}function G6(){return"!"}t0.peek=P6;function t0(t,l,r,a){const s=t.referenceType,u=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(a);let p=d.move("![");const f=r.safe(t.alt,{before:p,after:"]",...d.current()});p+=d.move(f+"]["),c();const g=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(t),{before:p,after:"]",...d.current()});return c(),r.stack=g,u(),s==="full"||!f||f!==y?p+=d.move(y+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function P6(){return"!"}n0.peek=X6;function n0(t,l,r){let a=t.value||"",s="`",u=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++u<r.unsafe.length;){const c=r.unsafe[u],d=r.compilePattern(c);let p;if(c.atBreak)for(;p=d.exec(a);){let f=p.index;a.charCodeAt(f)===10&&a.charCodeAt(f-1)===13&&f--,a=a.slice(0,f)+" "+a.slice(p.index+1)}}return s+a+s}function X6(){return"`"}function l0(t,l){const r=Kd(t);return!!(!l.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}r0.peek=Q6;function r0(t,l,r,a){const s=ah(r),u=s==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let d,p;if(l0(t,r)){const g=r.stack;r.stack=[],d=r.enter("autolink");let y=c.move("<");return y+=c.move(r.containerPhrasing(t,{before:y,after:">",...c.current()})),y+=c.move(">"),d(),r.stack=g,y}d=r.enter("link"),p=r.enter("label");let f=c.move("[");return f+=c.move(r.containerPhrasing(t,{before:f,after:"](",...c.current()})),f+=c.move("]("),p(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(p=r.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(r.safe(t.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(p=r.enter("destinationRaw"),f+=c.move(r.safe(t.url,{before:f,after:t.title?" ":")",...c.current()}))),p(),t.title&&(p=r.enter(`title${u}`),f+=c.move(" "+s),f+=c.move(r.safe(t.title,{before:f,after:s,...c.current()})),f+=c.move(s),p()),f+=c.move(")"),d(),f}function Q6(t,l,r){return l0(t,r)?"<":"["}i0.peek=Z6;function i0(t,l,r,a){const s=t.referenceType,u=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(a);let p=d.move("[");const f=r.containerPhrasing(t,{before:p,after:"]",...d.current()});p+=d.move(f+"]["),c();const g=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(t),{before:p,after:"]",...d.current()});return c(),r.stack=g,u(),s==="full"||!f||f!==y?p+=d.move(y+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function Z6(){return"["}function oh(t){const l=t.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function $6(t){const l=oh(t),r=t.options.bulletOther;if(!r)return l==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+r+"`) to be different");return r}function F6(t){const l=t.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function a0(t){const l=t.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function K6(t,l,r,a){const s=r.enter("list"),u=r.bulletCurrent;let c=t.ordered?F6(r):oh(r);const d=t.ordered?c==="."?")":".":$6(r);let p=l&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const g=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&g&&(!g.children||!g.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),a0(r)===c&&g){let y=-1;for(;++y<t.children.length;){const x=t.children[y];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=d),r.bulletCurrent=c;const f=r.containerFlow(t,a);return r.bulletLastUsed=c,r.bulletCurrent=u,s(),f}function J6(t){const l=t.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function W6(t,l,r,a){const s=J6(r);let u=r.bulletCurrent||oh(r);l&&l.type==="list"&&l.ordered&&(u=(typeof l.start=="number"&&l.start>-1?l.start:1)+(r.options.incrementListMarker===!1?0:l.children.indexOf(t))+u);let c=u.length+1;(s==="tab"||s==="mixed"&&(l&&l.type==="list"&&l.spread||t.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(a);d.move(u+" ".repeat(c-u.length)),d.shift(c);const p=r.enter("listItem"),f=r.indentLines(r.containerFlow(t,d.current()),g);return p(),f;function g(y,x,b){return x?(b?"":" ".repeat(c))+y:(b?u:u+" ".repeat(c-u.length))+y}}function e8(t,l,r,a){const s=r.enter("paragraph"),u=r.enter("phrasing"),c=r.containerPhrasing(t,a);return u(),s(),c}const t8=ru(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function n8(t,l,r,a){return(t.children.some(function(c){return t8(c)})?r.containerPhrasing:r.containerFlow).call(r,t,a)}function l8(t){const l=t.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}o0.peek=r8;function o0(t,l,r,a){const s=l8(r),u=r.enter("strong"),c=r.createTracker(a),d=c.move(s+s);let p=c.move(r.containerPhrasing(t,{after:s,before:d,...c.current()}));const f=p.charCodeAt(0),g=Bs(a.before.charCodeAt(a.before.length-1),f,s);g.inside&&(p=Za(f)+p.slice(1));const y=p.charCodeAt(p.length-1),x=Bs(a.after.charCodeAt(0),y,s);x.inside&&(p=p.slice(0,-1)+Za(y));const b=c.move(s+s);return u(),r.attentionEncodeSurroundingInfo={after:x.outside,before:g.outside},d+p+b}function r8(t,l,r){return r.options.strong||"*"}function i8(t,l,r,a){return r.safe(t.value,a)}function a8(t){const l=t.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function o8(t,l,r){const a=(a0(r)+(r.options.ruleSpaces?" ":"")).repeat(a8(r));return r.options.ruleSpaces?a.slice(0,-1):a}const s0={blockquote:M6,break:Dy,code:L6,definition:H6,emphasis:Jb,hardBreak:Dy,heading:V6,html:Wb,image:e0,imageReference:t0,inlineCode:n0,link:r0,linkReference:i0,list:K6,listItem:W6,paragraph:e8,root:n8,strong:o0,text:i8,thematicBreak:o8};function s8(){return{enter:{table:u8,tableData:Ly,tableHeader:Ly,tableRow:f8},exit:{codeText:d8,table:c8,tableData:ed,tableHeader:ed,tableRow:ed}}}function u8(t){const l=t._align;this.enter({type:"table",align:l.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function c8(t){this.exit(t),this.data.inTable=void 0}function f8(t){this.enter({type:"tableRow",children:[]},t)}function ed(t){this.exit(t)}function Ly(t){this.enter({type:"tableCell",children:[]},t)}function d8(t){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,h8));const r=this.stack[this.stack.length-1];r.type,r.value=l,this.exit(t)}function h8(t,l){return l==="|"?l:t}function p8(t){const l=t||{},r=l.tableCellPadding,a=l.tablePipeAlign,s=l.stringLength,u=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
76
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:p,tableRow:d}};function c(b,S,T,R){return f(g(b,T,R),b.align)}function d(b,S,T,R){const E=y(b,T,R),_=f([E]);return _.slice(0,_.indexOf(`
|
|
77
|
+
`))}function p(b,S,T,R){const E=T.enter("tableCell"),_=T.enter("phrasing"),M=T.containerPhrasing(b,{...R,before:u,after:u});return _(),E(),M}function f(b,S){return R6(b,{align:S,alignDelimiters:a,padding:r,stringLength:s})}function g(b,S,T){const R=b.children;let E=-1;const _=[],M=S.enter("table");for(;++E<R.length;)_[E]=y(R[E],S,T);return M(),_}function y(b,S,T){const R=b.children;let E=-1;const _=[],M=S.enter("tableRow");for(;++E<R.length;)_[E]=p(R[E],b,S,T);return M(),_}function x(b,S,T){let R=s0.inlineCode(b,S,T);return T.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function m8(){return{exit:{taskListCheckValueChecked:By,taskListCheckValueUnchecked:By,paragraph:y8}}}function g8(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:x8}}}function By(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function y8(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const s=l.children;let u=-1,c;for(;++u<s.length;){const d=s[u];if(d.type==="paragraph"){c=d;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function x8(t,l,r,a){const s=t.children[0],u=typeof t.checked=="boolean"&&s&&s.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",d=r.createTracker(a);u&&d.move(c);let p=s0.listItem(t,l,r,{...a,...d.current()});return u&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),p;function f(g){return g+c}}function b8(){return[KA(),x6(),w6(),s8(),m8()]}function v8(t){return{extensions:[JA(),b6(t),k6(),p8(t),g8()]}}const S8={tokenize:A8,partial:!0},u0={tokenize:R8,partial:!0},c0={tokenize:z8,partial:!0},f0={tokenize:M8,partial:!0},w8={tokenize:N8,partial:!0},d0={name:"wwwAutolink",tokenize:E8,previous:p0},h0={name:"protocolAutolink",tokenize:T8,previous:m0},vl={name:"emailAutolink",tokenize:C8,previous:g0},Xn={};function k8(){return{text:Xn}}let Sr=48;for(;Sr<123;)Xn[Sr]=vl,Sr++,Sr===58?Sr=65:Sr===91&&(Sr=97);Xn[43]=vl;Xn[45]=vl;Xn[46]=vl;Xn[95]=vl;Xn[72]=[vl,h0];Xn[104]=[vl,h0];Xn[87]=[vl,d0];Xn[119]=[vl,d0];function C8(t,l,r){const a=this;let s,u;return c;function c(y){return!Cd(y)||!g0.call(a,a.previous)||sh(a.events)?r(y):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(y))}function d(y){return Cd(y)?(t.consume(y),d):y===64?(t.consume(y),p):r(y)}function p(y){return y===46?t.check(w8,g,f)(y):y===45||y===95||Lt(y)?(u=!0,t.consume(y),p):g(y)}function f(y){return t.consume(y),s=!0,p}function g(y){return u&&s&&Ut(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(y)):r(y)}}function E8(t,l,r){const a=this;return s;function s(c){return c!==87&&c!==119||!p0.call(a,a.previous)||sh(a.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(S8,t.attempt(u0,t.attempt(c0,u),r),r)(c))}function u(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(c)}}function T8(t,l,r){const a=this;let s="",u=!1;return c;function c(y){return(y===72||y===104)&&m0.call(a,a.previous)&&!sh(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),t.consume(y),d):r(y)}function d(y){if(Ut(y)&&s.length<5)return s+=String.fromCodePoint(y),t.consume(y),d;if(y===58){const x=s.toLowerCase();if(x==="http"||x==="https")return t.consume(y),p}return r(y)}function p(y){return y===47?(t.consume(y),u?f:(u=!0,p)):r(y)}function f(y){return y===null||js(y)||We(y)||kr(y)||tu(y)?r(y):t.attempt(u0,t.attempt(c0,g),r)(y)}function g(y){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(y)}}function A8(t,l,r){let a=0;return s;function s(c){return(c===87||c===119)&&a<3?(a++,t.consume(c),s):c===46&&a===3?(t.consume(c),u):r(c)}function u(c){return c===null?r(c):l(c)}}function R8(t,l,r){let a,s,u;return c;function c(f){return f===46||f===95?t.check(f0,p,d)(f):f===null||We(f)||kr(f)||f!==45&&tu(f)?p(f):(u=!0,t.consume(f),c)}function d(f){return f===95?a=!0:(s=a,a=void 0),t.consume(f),c}function p(f){return s||a||!u?r(f):l(f)}}function z8(t,l){let r=0,a=0;return s;function s(c){return c===40?(r++,t.consume(c),s):c===41&&a<r?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(f0,l,u)(c):c===null||We(c)||kr(c)?l(c):(t.consume(c),s)}function u(c){return c===41&&a++,t.consume(c),s}}function M8(t,l,r){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),u):d===93?(t.consume(d),s):d===60||d===null||We(d)||kr(d)?l(d):r(d)}function s(d){return d===null||d===40||d===91||We(d)||kr(d)?l(d):a(d)}function u(d){return Ut(d)?c(d):r(d)}function c(d){return d===59?(t.consume(d),a):Ut(d)?(t.consume(d),c):r(d)}}function N8(t,l,r){return a;function a(u){return t.consume(u),s}function s(u){return Lt(u)?r(u):l(u)}}function p0(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||We(t)}function m0(t){return!Ut(t)}function g0(t){return!(t===47||Cd(t))}function Cd(t){return t===43||t===45||t===46||t===95||Lt(t)}function sh(t){let l=t.length,r=!1;for(;l--;){const a=t[l][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const _8={tokenize:q8,partial:!0};function O8(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:B8,continuation:{tokenize:H8},exit:U8}},text:{91:{name:"gfmFootnoteCall",tokenize:L8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:j8,resolveTo:D8}}}}function j8(t,l,r){const a=this;let s=a.events.length;const u=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const p=a.events[s][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return d;function d(p){if(!c||!c._balanced)return r(p);const f=jn(a.sliceSerialize({start:c.end,end:a.now()}));return f.codePointAt(0)!==94||!u.includes(f.slice(1))?r(p):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),l(p))}}function D8(t,l){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},d=[t[r+1],t[r+2],["enter",a,l],t[r+3],t[r+4],["enter",s,l],["exit",s,l],["enter",u,l],["enter",c,l],["exit",c,l],["exit",u,l],t[t.length-2],t[t.length-1],["exit",a,l]];return t.splice(r,t.length-r+1,...d),t}function L8(t,l,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u=0,c;return d;function d(y){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(y),t.exit("gfmFootnoteCallLabelMarker"),p}function p(y){return y!==94?r(y):(t.enter("gfmFootnoteCallMarker"),t.consume(y),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",f)}function f(y){if(u>999||y===93&&!c||y===null||y===91||We(y))return r(y);if(y===93){t.exit("chunkString");const x=t.exit("gfmFootnoteCallString");return s.includes(jn(a.sliceSerialize(x)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(y),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):r(y)}return We(y)||(c=!0),u++,t.consume(y),y===92?g:f}function g(y){return y===91||y===92||y===93?(t.consume(y),u++,f):f(y)}}function B8(t,l,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u,c=0,d;return p;function p(S){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(S),t.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(S){return S===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(S),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",g):r(S)}function g(S){if(c>999||S===93&&!d||S===null||S===91||We(S))return r(S);if(S===93){t.exit("chunkString");const T=t.exit("gfmFootnoteDefinitionLabelString");return u=jn(a.sliceSerialize(T)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(S),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),x}return We(S)||(d=!0),c++,t.consume(S),S===92?y:g}function y(S){return S===91||S===92||S===93?(t.consume(S),c++,g):g(S)}function x(S){return S===58?(t.enter("definitionMarker"),t.consume(S),t.exit("definitionMarker"),s.includes(u)||s.push(u),Be(t,b,"gfmFootnoteDefinitionWhitespace")):r(S)}function b(S){return l(S)}}function H8(t,l,r){return t.check(Ja,l,t.attempt(_8,l,r))}function U8(t){t.exit("gfmFootnoteDefinition")}function q8(t,l,r){const a=this;return Be(t,s,"gfmFootnoteDefinitionIndent",5);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?l(u):r(u)}}function I8(t){let r=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:u,resolveAll:s};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,d){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let f=p;for(;f--;)if(c[f][0]==="exit"&&c[f][1].type==="strikethroughSequenceTemporary"&&c[f][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[f][1].end.offset-c[f][1].start.offset){c[p][1].type="strikethroughSequence",c[f][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},c[f][1].start),end:Object.assign({},c[p][1].end)},y={type:"strikethroughText",start:Object.assign({},c[f][1].end),end:Object.assign({},c[p][1].start)},x=[["enter",g,d],["enter",c[f][1],d],["exit",c[f][1],d],["enter",y,d]],b=d.parser.constructs.insideSpan.null;b&&hn(x,x.length,0,nu(b,c.slice(f+1,p),d)),hn(x,x.length,0,[["exit",y,d],["enter",c[p][1],d],["exit",c[p][1],d],["exit",g,d]]),hn(c,f-1,p-f+3,x),p=f+x.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function u(c,d,p){const f=this.previous,g=this.events;let y=0;return x;function x(S){return f===126&&g[g.length-1][1].type!=="characterEscape"?p(S):(c.enter("strikethroughSequenceTemporary"),b(S))}function b(S){const T=Mi(f);if(S===126)return y>1?p(S):(c.consume(S),y++,b);if(y<2&&!r)return p(S);const R=c.exit("strikethroughSequenceTemporary"),E=Mi(S);return R._open=!E||E===2&&!!T,R._close=!T||T===2&&!!E,d(S)}}}class V8{constructor(){this.map=[]}add(l,r,a){Y8(this,l,r,a)}consume(l){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(l.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),l.length=this.map[r][0];a.push(l.slice()),l.length=0;let s=a.pop();for(;s;){for(const u of s)l.push(u);s=a.pop()}this.map.length=0}}function Y8(t,l,r,a){let s=0;if(!(r===0&&a.length===0)){for(;s<t.map.length;){if(t.map[s][0]===l){t.map[s][1]+=r,t.map[s][2].push(...a);return}s+=1}t.map.push([l,r,a])}}function G8(t,l){let r=!1;const a=[];for(;l<t.length;){const s=t[l];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const u=a.length-1;a[u]=a[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);l+=1}return a}function P8(){return{flow:{null:{name:"table",tokenize:X8,resolveAll:Q8}}}}function X8(t,l,r){const a=this;let s=0,u=0,c;return d;function d(U){let re=a.events.length-1;for(;re>-1;){const ne=a.events[re][1].type;if(ne==="lineEnding"||ne==="linePrefix")re--;else break}const V=re>-1?a.events[re][1].type:null,ue=V==="tableHead"||V==="tableRow"?N:p;return ue===N&&a.parser.lazy[a.now().line]?r(U):ue(U)}function p(U){return t.enter("tableHead"),t.enter("tableRow"),f(U)}function f(U){return U===124||(c=!0,u+=1),g(U)}function g(U){return U===null?r(U):Se(U)?u>1?(u=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(U),t.exit("lineEnding"),b):r(U):Oe(U)?Be(t,g,"whitespace")(U):(u+=1,c&&(c=!1,s+=1),U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),c=!0,g):(t.enter("data"),y(U)))}function y(U){return U===null||U===124||We(U)?(t.exit("data"),g(U)):(t.consume(U),U===92?x:y)}function x(U){return U===92||U===124?(t.consume(U),y):y(U)}function b(U){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(U):(t.enter("tableDelimiterRow"),c=!1,Oe(U)?Be(t,S,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):S(U))}function S(U){return U===45||U===58?R(U):U===124?(c=!0,t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),T):I(U)}function T(U){return Oe(U)?Be(t,R,"whitespace")(U):R(U)}function R(U){return U===58?(u+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(U),t.exit("tableDelimiterMarker"),E):U===45?(u+=1,E(U)):U===null||Se(U)?D(U):I(U)}function E(U){return U===45?(t.enter("tableDelimiterFiller"),_(U)):I(U)}function _(U){return U===45?(t.consume(U),_):U===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(U),t.exit("tableDelimiterMarker"),M):(t.exit("tableDelimiterFiller"),M(U))}function M(U){return Oe(U)?Be(t,D,"whitespace")(U):D(U)}function D(U){return U===124?S(U):U===null||Se(U)?!c||s!==u?I(U):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(U)):I(U)}function I(U){return r(U)}function N(U){return t.enter("tableRow"),H(U)}function H(U){return U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),H):U===null||Se(U)?(t.exit("tableRow"),l(U)):Oe(U)?Be(t,H,"whitespace")(U):(t.enter("data"),F(U))}function F(U){return U===null||U===124||We(U)?(t.exit("data"),H(U)):(t.consume(U),U===92?Z:F)}function Z(U){return U===92||U===124?(t.consume(U),F):F(U)}}function Q8(t,l){let r=-1,a=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],d=!1,p=0,f,g,y;const x=new V8;for(;++r<t.length;){const b=t[r],S=b[1];b[0]==="enter"?S.type==="tableHead"?(d=!1,p!==0&&(Hy(x,l,p,f,g),g=void 0,p=0),f={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},x.add(r,0,[["enter",f,l]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(a=!0,y=void 0,u=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,g={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},x.add(r,0,[["enter",g,l]])),s=S.type==="tableDelimiterRow"?2:g?3:1):s&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],y=Ss(x,l,u,s,void 0,y),u=[0,0,0,0]),c[2]=r)):S.type==="tableCellDivider"&&(a?a=!1:(u[1]!==0&&(c[0]=c[1],y=Ss(x,l,u,s,void 0,y)),u=c,c=[u[1],r,0,0])):S.type==="tableHead"?(d=!0,p=r):S.type==="tableRow"||S.type==="tableDelimiterRow"?(p=r,u[1]!==0?(c[0]=c[1],y=Ss(x,l,u,s,r,y)):c[1]!==0&&(y=Ss(x,l,c,s,r,y)),s=0):s&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(c[3]=r)}for(p!==0&&Hy(x,l,p,f,g),x.consume(l.events),r=-1;++r<l.events.length;){const b=l.events[r];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=G8(l.events,r))}return t}function Ss(t,l,r,a,s,u){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(u.end=Object.assign({},Si(l.events,r[0])),t.add(r[0],0,[["exit",u,l]]));const p=Si(l.events,r[1]);if(u={type:c,start:Object.assign({},p),end:Object.assign({},p)},t.add(r[1],0,[["enter",u,l]]),r[2]!==0){const f=Si(l.events,r[2]),g=Si(l.events,r[3]),y={type:d,start:Object.assign({},f),end:Object.assign({},g)};if(t.add(r[2],0,[["enter",y,l]]),a!==2){const x=l.events[r[2]],b=l.events[r[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",r[3]>r[2]+1){const S=r[2]+1,T=r[3]-r[2]-1;t.add(S,T,[])}}t.add(r[3]+1,0,[["exit",y,l]])}return s!==void 0&&(u.end=Object.assign({},Si(l.events,s)),t.add(s,0,[["exit",u,l]]),u=void 0),u}function Hy(t,l,r,a,s){const u=[],c=Si(l.events,r);s&&(s.end=Object.assign({},c),u.push(["exit",s,l])),a.end=Object.assign({},c),u.push(["exit",a,l]),t.add(r+1,0,u)}function Si(t,l){const r=t[l],a=r[0]==="enter"?"start":"end";return r[1][a]}const Z8={name:"tasklistCheck",tokenize:F8};function $8(){return{text:{91:Z8}}}function F8(t,l,r){const a=this;return s;function s(p){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(p):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),u)}function u(p){return We(p)?(t.enter("taskListCheckValueUnchecked"),t.consume(p),t.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(t.enter("taskListCheckValueChecked"),t.consume(p),t.exit("taskListCheckValueChecked"),c):r(p)}function c(p){return p===93?(t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(p)}function d(p){return Se(p)?l(p):Oe(p)?t.check({tokenize:K8},l,r)(p):r(p)}}function K8(t,l,r){return Be(t,a,"whitespace");function a(s){return s===null?r(s):l(s)}}function J8(t){return Ab([k8(),O8(),I8(t),P8(),$8()])}const W8={};function e9(t){const l=this,r=t||W8,a=l.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),u=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(J8(r)),u.push(b8()),c.push(v8(r))}function uh(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Rr=uh();function y0(t){Rr=t}var Va={exec:()=>null};function Ye(t,l=""){let r=typeof t=="string"?t:t.source;const a={replace:(s,u)=>{let c=typeof u=="string"?u:u.source;return c=c.replace(qt.caret,"$1"),r=r.replace(s,c),a},getRegex:()=>new RegExp(r,l)};return a}var qt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},t9=/^(?:[ \t]*(?:\n|$))+/,n9=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,l9=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,eo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,r9=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ch=/(?:[*+-]|\d{1,9}[.)])/,x0=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,b0=Ye(x0).replace(/bull/g,ch).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),i9=Ye(x0).replace(/bull/g,ch).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),fh=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,a9=/^[^\n]+/,dh=/(?!\s*\])(?:\\.|[^\[\]\\])+/,o9=Ye(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",dh).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),s9=Ye(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ch).getRegex(),au="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",hh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,u9=Ye("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",hh).replace("tag",au).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),v0=Ye(fh).replace("hr",eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",au).getRegex(),c9=Ye(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",v0).getRegex(),ph={blockquote:c9,code:n9,def:o9,fences:l9,heading:r9,hr:eo,html:u9,lheading:b0,list:s9,newline:t9,paragraph:v0,table:Va,text:a9},Uy=Ye("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",au).getRegex(),f9={...ph,lheading:i9,table:Uy,paragraph:Ye(fh).replace("hr",eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Uy).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",au).getRegex()},d9={...ph,html:Ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",hh).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Va,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ye(fh).replace("hr",eo).replace("heading",` *#{1,6} *[^
|
|
78
|
+
]`).replace("lheading",b0).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},h9=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,p9=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,S0=/^( {2,}|\\)\n(?!\s*$)/,m9=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ou=/[\p{P}\p{S}]/u,mh=/[\s\p{P}\p{S}]/u,w0=/[^\s\p{P}\p{S}]/u,g9=Ye(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,mh).getRegex(),k0=/(?!~)[\p{P}\p{S}]/u,y9=/(?!~)[\s\p{P}\p{S}]/u,x9=/(?:[^\s\p{P}\p{S}]|~)/u,b9=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,C0=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,v9=Ye(C0,"u").replace(/punct/g,ou).getRegex(),S9=Ye(C0,"u").replace(/punct/g,k0).getRegex(),E0="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",w9=Ye(E0,"gu").replace(/notPunctSpace/g,w0).replace(/punctSpace/g,mh).replace(/punct/g,ou).getRegex(),k9=Ye(E0,"gu").replace(/notPunctSpace/g,x9).replace(/punctSpace/g,y9).replace(/punct/g,k0).getRegex(),C9=Ye("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,w0).replace(/punctSpace/g,mh).replace(/punct/g,ou).getRegex(),E9=Ye(/\\(punct)/,"gu").replace(/punct/g,ou).getRegex(),T9=Ye(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),A9=Ye(hh).replace("(?:-->|$)","-->").getRegex(),R9=Ye("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",A9).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Hs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,z9=Ye(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Hs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),T0=Ye(/^!?\[(label)\]\[(ref)\]/).replace("label",Hs).replace("ref",dh).getRegex(),A0=Ye(/^!?\[(ref)\](?:\[\])?/).replace("ref",dh).getRegex(),M9=Ye("reflink|nolink(?!\\()","g").replace("reflink",T0).replace("nolink",A0).getRegex(),gh={_backpedal:Va,anyPunctuation:E9,autolink:T9,blockSkip:b9,br:S0,code:p9,del:Va,emStrongLDelim:v9,emStrongRDelimAst:w9,emStrongRDelimUnd:C9,escape:h9,link:z9,nolink:A0,punctuation:g9,reflink:T0,reflinkSearch:M9,tag:R9,text:m9,url:Va},N9={...gh,link:Ye(/^!?\[(label)\]\((.*?)\)/).replace("label",Hs).getRegex(),reflink:Ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Hs).getRegex()},Ed={...gh,emStrongRDelimAst:k9,emStrongLDelim:S9,url:Ye(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},_9={...Ed,br:Ye(S0).replace("{2,}","*").getRegex(),text:Ye(Ed.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ws={normal:ph,gfm:f9,pedantic:d9},Oa={normal:gh,gfm:Ed,breaks:_9,pedantic:N9},O9={"&":"&","<":"<",">":">",'"':""","'":"'"},qy=t=>O9[t];function In(t,l){if(l){if(qt.escapeTest.test(t))return t.replace(qt.escapeReplace,qy)}else if(qt.escapeTestNoEncode.test(t))return t.replace(qt.escapeReplaceNoEncode,qy);return t}function Iy(t){try{t=encodeURI(t).replace(qt.percentDecode,"%")}catch{return null}return t}function Vy(t,l){var u;const r=t.replace(qt.findPipe,(c,d,p)=>{let f=!1,g=d;for(;--g>=0&&p[g]==="\\";)f=!f;return f?"|":" |"}),a=r.split(qt.splitPipe);let s=0;if(a[0].trim()||a.shift(),a.length>0&&!((u=a.at(-1))!=null&&u.trim())&&a.pop(),l)if(a.length>l)a.splice(l);else for(;a.length<l;)a.push("");for(;s<a.length;s++)a[s]=a[s].trim().replace(qt.slashPipe,"|");return a}function ja(t,l,r){const a=t.length;if(a===0)return"";let s=0;for(;s<a&&t.charAt(a-s-1)===l;)s++;return t.slice(0,a-s)}function j9(t,l){if(t.indexOf(l[1])===-1)return-1;let r=0;for(let a=0;a<t.length;a++)if(t[a]==="\\")a++;else if(t[a]===l[0])r++;else if(t[a]===l[1]&&(r--,r<0))return a;return r>0?-2:-1}function Yy(t,l,r,a,s){const u=l.href,c=l.title||null,d=t[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;const p={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:u,title:c,text:d,tokens:a.inlineTokens(d)};return a.state.inLink=!1,p}function D9(t,l,r){const a=t.match(r.other.indentCodeCompensation);if(a===null)return l;const s=a[1];return l.split(`
|
|
79
|
+
`).map(u=>{const c=u.match(r.other.beginningSpace);if(c===null)return u;const[d]=c;return d.length>=s.length?u.slice(s.length):u}).join(`
|
|
80
|
+
`)}var Us=class{constructor(t){Je(this,"options");Je(this,"rules");Je(this,"lexer");this.options=t||Rr}space(t){const l=this.rules.block.newline.exec(t);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(t){const l=this.rules.block.code.exec(t);if(l){const r=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?r:ja(r,`
|
|
81
|
+
`)}}}fences(t){const l=this.rules.block.fences.exec(t);if(l){const r=l[0],a=D9(r,l[3]||"",this.rules);return{type:"code",raw:r,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:a}}}heading(t){const l=this.rules.block.heading.exec(t);if(l){let r=l[2].trim();if(this.rules.other.endingHash.test(r)){const a=ja(r,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(r=a.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const l=this.rules.block.hr.exec(t);if(l)return{type:"hr",raw:ja(l[0],`
|
|
82
|
+
`)}}blockquote(t){const l=this.rules.block.blockquote.exec(t);if(l){let r=ja(l[0],`
|
|
83
|
+
`).split(`
|
|
84
|
+
`),a="",s="";const u=[];for(;r.length>0;){let c=!1;const d=[];let p;for(p=0;p<r.length;p++)if(this.rules.other.blockquoteStart.test(r[p]))d.push(r[p]),c=!0;else if(!c)d.push(r[p]);else break;r=r.slice(p);const f=d.join(`
|
|
85
|
+
`),g=f.replace(this.rules.other.blockquoteSetextReplace,`
|
|
86
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
|
|
87
|
+
${f}`:f,s=s?`${s}
|
|
88
|
+
${g}`:g;const y=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,u,!0),this.lexer.state.top=y,r.length===0)break;const x=u.at(-1);if((x==null?void 0:x.type)==="code")break;if((x==null?void 0:x.type)==="blockquote"){const b=x,S=b.raw+`
|
|
89
|
+
`+r.join(`
|
|
90
|
+
`),T=this.blockquote(S);u[u.length-1]=T,a=a.substring(0,a.length-b.raw.length)+T.raw,s=s.substring(0,s.length-b.text.length)+T.text;break}else if((x==null?void 0:x.type)==="list"){const b=x,S=b.raw+`
|
|
91
|
+
`+r.join(`
|
|
92
|
+
`),T=this.list(S);u[u.length-1]=T,a=a.substring(0,a.length-x.raw.length)+T.raw,s=s.substring(0,s.length-b.raw.length)+T.raw,r=S.substring(u.at(-1).raw.length).split(`
|
|
93
|
+
`);continue}}return{type:"blockquote",raw:a,tokens:u,text:s}}}list(t){let l=this.rules.block.list.exec(t);if(l){let r=l[1].trim();const a=r.length>1,s={type:"list",raw:"",ordered:a,start:a?+r.slice(0,-1):"",loose:!1,items:[]};r=a?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=a?r:"[*+-]");const u=this.rules.other.listItemRegex(r);let c=!1;for(;t;){let p=!1,f="",g="";if(!(l=u.exec(t))||this.rules.block.hr.test(t))break;f=l[0],t=t.substring(f.length);let y=l[2].split(`
|
|
94
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,E=>" ".repeat(3*E.length)),x=t.split(`
|
|
95
|
+
`,1)[0],b=!y.trim(),S=0;if(this.options.pedantic?(S=2,g=y.trimStart()):b?S=l[1].length+1:(S=l[2].search(this.rules.other.nonSpaceChar),S=S>4?1:S,g=y.slice(S),S+=l[1].length),b&&this.rules.other.blankLine.test(x)&&(f+=x+`
|
|
96
|
+
`,t=t.substring(x.length+1),p=!0),!p){const E=this.rules.other.nextBulletRegex(S),_=this.rules.other.hrRegex(S),M=this.rules.other.fencesBeginRegex(S),D=this.rules.other.headingBeginRegex(S),I=this.rules.other.htmlBeginRegex(S);for(;t;){const N=t.split(`
|
|
97
|
+
`,1)[0];let H;if(x=N,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),H=x):H=x.replace(this.rules.other.tabCharGlobal," "),M.test(x)||D.test(x)||I.test(x)||E.test(x)||_.test(x))break;if(H.search(this.rules.other.nonSpaceChar)>=S||!x.trim())g+=`
|
|
98
|
+
`+H.slice(S);else{if(b||y.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(y)||D.test(y)||_.test(y))break;g+=`
|
|
99
|
+
`+x}!b&&!x.trim()&&(b=!0),f+=N+`
|
|
100
|
+
`,t=t.substring(N.length+1),y=H.slice(S)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(c=!0));let T=null,R;this.options.gfm&&(T=this.rules.other.listIsTask.exec(g),T&&(R=T[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:f,task:!!T,checked:R,loose:!1,text:g,tokens:[]}),s.raw+=f}const d=s.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let p=0;p<s.items.length;p++)if(this.lexer.state.top=!1,s.items[p].tokens=this.lexer.blockTokens(s.items[p].text,[]),!s.loose){const f=s.items[p].tokens.filter(y=>y.type==="space"),g=f.length>0&&f.some(y=>this.rules.other.anyLine.test(y.raw));s.loose=g}if(s.loose)for(let p=0;p<s.items.length;p++)s.items[p].loose=!0;return s}}html(t){const l=this.rules.block.html.exec(t);if(l)return{type:"html",block:!0,raw:l[0],pre:l[1]==="pre"||l[1]==="script"||l[1]==="style",text:l[0]}}def(t){const l=this.rules.block.def.exec(t);if(l){const r=l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=l[2]?l[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=l[3]?l[3].substring(1,l[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):l[3];return{type:"def",tag:r,raw:l[0],href:a,title:s}}}table(t){var c;const l=this.rules.block.table.exec(t);if(!l||!this.rules.other.tableDelimiter.test(l[2]))return;const r=Vy(l[1]),a=l[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=l[3])!=null&&c.trim()?l[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
101
|
+
`):[],u={type:"table",raw:l[0],header:[],align:[],rows:[]};if(r.length===a.length){for(const d of a)this.rules.other.tableAlignRight.test(d)?u.align.push("right"):this.rules.other.tableAlignCenter.test(d)?u.align.push("center"):this.rules.other.tableAlignLeft.test(d)?u.align.push("left"):u.align.push(null);for(let d=0;d<r.length;d++)u.header.push({text:r[d],tokens:this.lexer.inline(r[d]),header:!0,align:u.align[d]});for(const d of s)u.rows.push(Vy(d,u.header.length).map((p,f)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:u.align[f]})));return u}}lheading(t){const l=this.rules.block.lheading.exec(t);if(l)return{type:"heading",raw:l[0],depth:l[2].charAt(0)==="="?1:2,text:l[1],tokens:this.lexer.inline(l[1])}}paragraph(t){const l=this.rules.block.paragraph.exec(t);if(l){const r=l[1].charAt(l[1].length-1)===`
|
|
102
|
+
`?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const l=this.rules.block.text.exec(t);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(t){const l=this.rules.inline.escape.exec(t);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(t){const l=this.rules.inline.tag.exec(t);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(t){const l=this.rules.inline.link.exec(t);if(l){const r=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const u=ja(r.slice(0,-1),"\\");if((r.length-u.length)%2===0)return}else{const u=j9(l[2],"()");if(u===-2)return;if(u>-1){const d=(l[0].indexOf("!")===0?5:4)+l[1].length+u;l[2]=l[2].substring(0,u),l[0]=l[0].substring(0,d).trim(),l[3]=""}}let a=l[2],s="";if(this.options.pedantic){const u=this.rules.other.pedanticHrefTitle.exec(a);u&&(a=u[1],s=u[3])}else s=l[3]?l[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?a=a.slice(1):a=a.slice(1,-1)),Yy(l,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(t,l){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const a=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=l[a.toLowerCase()];if(!s){const u=r[0].charAt(0);return{type:"text",raw:u,text:u}}return Yy(r,s,r[0],this.lexer,this.rules)}}emStrong(t,l,r=""){let a=this.rules.inline.emStrongLDelim.exec(t);if(!a||a[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const u=[...a[0]].length-1;let c,d,p=u,f=0;const g=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,l=l.slice(-1*t.length+u);(a=g.exec(l))!=null;){if(c=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!c)continue;if(d=[...c].length,a[3]||a[4]){p+=d;continue}else if((a[5]||a[6])&&u%3&&!((u+d)%3)){f+=d;continue}if(p-=d,p>0)continue;d=Math.min(d,d+p+f);const y=[...a[0]][0].length,x=t.slice(0,u+a.index+y+d);if(Math.min(u,d)%2){const S=x.slice(1,-1);return{type:"em",raw:x,text:S,tokens:this.lexer.inlineTokens(S)}}const b=x.slice(2,-2);return{type:"strong",raw:x,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(t){const l=this.rules.inline.code.exec(t);if(l){let r=l[2].replace(this.rules.other.newLineCharGlobal," ");const a=this.rules.other.nonSpaceChar.test(r),s=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return a&&s&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:l[0],text:r}}}br(t){const l=this.rules.inline.br.exec(t);if(l)return{type:"br",raw:l[0]}}del(t){const l=this.rules.inline.del.exec(t);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(t){const l=this.rules.inline.autolink.exec(t);if(l){let r,a;return l[2]==="@"?(r=l[1],a="mailto:"+r):(r=l[1],a=r),{type:"link",raw:l[0],text:r,href:a,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let l;if(l=this.rules.inline.url.exec(t)){let a,s;if(l[2]==="@")a=l[0],s="mailto:"+a;else{let u;do u=l[0],l[0]=((r=this.rules.inline._backpedal.exec(l[0]))==null?void 0:r[0])??"";while(u!==l[0]);a=l[0],l[1]==="www."?s="http://"+l[0]:s=l[0]}return{type:"link",raw:l[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(t){const l=this.rules.inline.text.exec(t);if(l){const r=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:r}}}},gl=class Td{constructor(l){Je(this,"tokens");Je(this,"options");Je(this,"state");Je(this,"tokenizer");Je(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=l||Rr,this.options.tokenizer=this.options.tokenizer||new Us,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:qt,block:ws.normal,inline:Oa.normal};this.options.pedantic?(r.block=ws.pedantic,r.inline=Oa.pedantic):this.options.gfm&&(r.block=ws.gfm,this.options.breaks?r.inline=Oa.breaks:r.inline=Oa.gfm),this.tokenizer.rules=r}static get rules(){return{block:ws,inline:Oa}}static lex(l,r){return new Td(r).lex(l)}static lexInline(l,r){return new Td(r).inlineTokens(l)}lex(l){l=l.replace(qt.carriageReturn,`
|
|
103
|
+
`),this.blockTokens(l,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const a=this.inlineQueue[r];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,r=[],a=!1){var s,u,c;for(this.options.pedantic&&(l=l.replace(qt.tabCharGlobal," ").replace(qt.spaceLine,""));l;){let d;if((u=(s=this.options.extensions)==null?void 0:s.block)!=null&&u.some(f=>(d=f.call({lexer:this},l,r))?(l=l.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.space(l)){l=l.substring(d.raw.length);const f=r.at(-1);d.raw.length===1&&f!==void 0?f.raw+=`
|
|
104
|
+
`:r.push(d);continue}if(d=this.tokenizer.code(l)){l=l.substring(d.raw.length);const f=r.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=`
|
|
105
|
+
`+d.raw,f.text+=`
|
|
106
|
+
`+d.text,this.inlineQueue.at(-1).src=f.text):r.push(d);continue}if(d=this.tokenizer.fences(l)){l=l.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.heading(l)){l=l.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.hr(l)){l=l.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.blockquote(l)){l=l.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.list(l)){l=l.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.html(l)){l=l.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.def(l)){l=l.substring(d.raw.length);const f=r.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=`
|
|
107
|
+
`+d.raw,f.text+=`
|
|
108
|
+
`+d.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[d.tag]||(this.tokens.links[d.tag]={href:d.href,title:d.title});continue}if(d=this.tokenizer.table(l)){l=l.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.lheading(l)){l=l.substring(d.raw.length),r.push(d);continue}let p=l;if((c=this.options.extensions)!=null&&c.startBlock){let f=1/0;const g=l.slice(1);let y;this.options.extensions.startBlock.forEach(x=>{y=x.call({lexer:this},g),typeof y=="number"&&y>=0&&(f=Math.min(f,y))}),f<1/0&&f>=0&&(p=l.substring(0,f+1))}if(this.state.top&&(d=this.tokenizer.paragraph(p))){const f=r.at(-1);a&&(f==null?void 0:f.type)==="paragraph"?(f.raw+=`
|
|
109
|
+
`+d.raw,f.text+=`
|
|
110
|
+
`+d.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(d),a=p.length!==l.length,l=l.substring(d.raw.length);continue}if(d=this.tokenizer.text(l)){l=l.substring(d.raw.length);const f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=`
|
|
111
|
+
`+d.raw,f.text+=`
|
|
112
|
+
`+d.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(d);continue}if(l){const f="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,r}inline(l,r=[]){return this.inlineQueue.push({src:l,tokens:r}),r}inlineTokens(l,r=[]){var d,p,f;let a=l,s=null;if(this.tokens.links){const g=Object.keys(this.tokens.links);if(g.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)g.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let u=!1,c="";for(;l;){u||(c=""),u=!1;let g;if((p=(d=this.options.extensions)==null?void 0:d.inline)!=null&&p.some(x=>(g=x.call({lexer:this},l,r))?(l=l.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.escape(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.tag(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.link(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(g.raw.length);const x=r.at(-1);g.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=g.raw,x.text+=g.text):r.push(g);continue}if(g=this.tokenizer.emStrong(l,a,c)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.codespan(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.br(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.del(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.autolink(l)){l=l.substring(g.raw.length),r.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(l))){l=l.substring(g.raw.length),r.push(g);continue}let y=l;if((f=this.options.extensions)!=null&&f.startInline){let x=1/0;const b=l.slice(1);let S;this.options.extensions.startInline.forEach(T=>{S=T.call({lexer:this},b),typeof S=="number"&&S>=0&&(x=Math.min(x,S))}),x<1/0&&x>=0&&(y=l.substring(0,x+1))}if(g=this.tokenizer.inlineText(y)){l=l.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(c=g.raw.slice(-1)),u=!0;const x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=g.raw,x.text+=g.text):r.push(g);continue}if(l){const x="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},qs=class{constructor(t){Je(this,"options");Je(this,"parser");this.options=t||Rr}space(t){return""}code({text:t,lang:l,escaped:r}){var u;const a=(u=(l||"").match(qt.notSpaceStart))==null?void 0:u[0],s=t.replace(qt.endingNewline,"")+`
|
|
113
|
+
`;return a?'<pre><code class="language-'+In(a)+'">'+(r?s:In(s,!0))+`</code></pre>
|
|
114
|
+
`:"<pre><code>"+(r?s:In(s,!0))+`</code></pre>
|
|
115
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
116
|
+
${this.parser.parse(t)}</blockquote>
|
|
117
|
+
`}html({text:t}){return t}heading({tokens:t,depth:l}){return`<h${l}>${this.parser.parseInline(t)}</h${l}>
|
|
118
|
+
`}hr(t){return`<hr>
|
|
119
|
+
`}list(t){const l=t.ordered,r=t.start;let a="";for(let c=0;c<t.items.length;c++){const d=t.items[c];a+=this.listitem(d)}const s=l?"ol":"ul",u=l&&r!==1?' start="'+r+'"':"";return"<"+s+u+`>
|
|
120
|
+
`+a+"</"+s+`>
|
|
121
|
+
`}listitem(t){var r;let l="";if(t.task){const a=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=a+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=a+" "+In(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):l+=a+" "}return l+=this.parser.parse(t.tokens,!!t.loose),`<li>${l}</li>
|
|
122
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
123
|
+
`}table(t){let l="",r="";for(let s=0;s<t.header.length;s++)r+=this.tablecell(t.header[s]);l+=this.tablerow({text:r});let a="";for(let s=0;s<t.rows.length;s++){const u=t.rows[s];r="";for(let c=0;c<u.length;c++)r+=this.tablecell(u[c]);a+=this.tablerow({text:r})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
|
|
124
|
+
<thead>
|
|
125
|
+
`+l+`</thead>
|
|
126
|
+
`+a+`</table>
|
|
127
|
+
`}tablerow({text:t}){return`<tr>
|
|
128
|
+
${t}</tr>
|
|
129
|
+
`}tablecell(t){const l=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+l+`</${r}>
|
|
130
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${In(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:l,tokens:r}){const a=this.parser.parseInline(r),s=Iy(t);if(s===null)return a;t=s;let u='<a href="'+t+'"';return l&&(u+=' title="'+In(l)+'"'),u+=">"+a+"</a>",u}image({href:t,title:l,text:r,tokens:a}){a&&(r=this.parser.parseInline(a,this.parser.textRenderer));const s=Iy(t);if(s===null)return In(r);t=s;let u=`<img src="${t}" alt="${r}"`;return l&&(u+=` title="${In(l)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:In(t.text)}},yh=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},yl=class Ad{constructor(l){Je(this,"options");Je(this,"renderer");Je(this,"textRenderer");this.options=l||Rr,this.options.renderer=this.options.renderer||new qs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yh}static parse(l,r){return new Ad(r).parse(l)}static parseInline(l,r){return new Ad(r).parseInline(l)}parse(l,r=!0){var s,u;let a="";for(let c=0;c<l.length;c++){const d=l[c];if((u=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&u[d.type]){const f=d,g=this.options.extensions.renderers[f.type].call({parser:this},f);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(f.type)){a+=g||"";continue}}const p=d;switch(p.type){case"space":{a+=this.renderer.space(p);continue}case"hr":{a+=this.renderer.hr(p);continue}case"heading":{a+=this.renderer.heading(p);continue}case"code":{a+=this.renderer.code(p);continue}case"table":{a+=this.renderer.table(p);continue}case"blockquote":{a+=this.renderer.blockquote(p);continue}case"list":{a+=this.renderer.list(p);continue}case"html":{a+=this.renderer.html(p);continue}case"paragraph":{a+=this.renderer.paragraph(p);continue}case"text":{let f=p,g=this.renderer.text(f);for(;c+1<l.length&&l[c+1].type==="text";)f=l[++c],g+=`
|
|
131
|
+
`+this.renderer.text(f);r?a+=this.renderer.paragraph({type:"paragraph",raw:g,text:g,tokens:[{type:"text",raw:g,text:g,escaped:!0}]}):a+=g;continue}default:{const f='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return a}parseInline(l,r=this.renderer){var s,u;let a="";for(let c=0;c<l.length;c++){const d=l[c];if((u=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&u[d.type]){const f=this.options.extensions.renderers[d.type].call({parser:this},d);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(d.type)){a+=f||"";continue}}const p=d;switch(p.type){case"escape":{a+=r.text(p);break}case"html":{a+=r.html(p);break}case"link":{a+=r.link(p);break}case"image":{a+=r.image(p);break}case"strong":{a+=r.strong(p);break}case"em":{a+=r.em(p);break}case"codespan":{a+=r.codespan(p);break}case"br":{a+=r.br(p);break}case"del":{a+=r.del(p);break}case"text":{a+=r.text(p);break}default:{const f='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return a}},td,As=(td=class{constructor(t){Je(this,"options");Je(this,"block");this.options=t||Rr}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?gl.lex:gl.lexInline}provideParser(){return this.block?yl.parse:yl.parseInline}},Je(td,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),td),L9=class{constructor(...t){Je(this,"defaults",uh());Je(this,"options",this.setOptions);Je(this,"parse",this.parseMarkdown(!0));Je(this,"parseInline",this.parseMarkdown(!1));Je(this,"Parser",yl);Je(this,"Renderer",qs);Je(this,"TextRenderer",yh);Je(this,"Lexer",gl);Je(this,"Tokenizer",Us);Je(this,"Hooks",As);this.use(...t)}walkTokens(t,l){var a,s;let r=[];for(const u of t)switch(r=r.concat(l.call(this,u)),u.type){case"table":{const c=u;for(const d of c.header)r=r.concat(this.walkTokens(d.tokens,l));for(const d of c.rows)for(const p of d)r=r.concat(this.walkTokens(p.tokens,l));break}case"list":{const c=u;r=r.concat(this.walkTokens(c.items,l));break}default:{const c=u;(s=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&s[c.type]?this.defaults.extensions.childTokens[c.type].forEach(d=>{const p=c[d].flat(1/0);r=r.concat(this.walkTokens(p,l))}):c.tokens&&(r=r.concat(this.walkTokens(c.tokens,l)))}}return r}use(...t){const l=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const a={...r};if(a.async=this.defaults.async||a.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const u=l.renderers[s.name];u?l.renderers[s.name]=function(...c){let d=s.renderer.apply(this,c);return d===!1&&(d=u.apply(this,c)),d}:l.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const u=l[s.level];u?u.unshift(s.tokenizer):l[s.level]=[s.tokenizer],s.start&&(s.level==="block"?l.startBlock?l.startBlock.push(s.start):l.startBlock=[s.start]:s.level==="inline"&&(l.startInline?l.startInline.push(s.start):l.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(l.childTokens[s.name]=s.childTokens)}),a.extensions=l),r.renderer){const s=this.defaults.renderer||new qs(this.defaults);for(const u in r.renderer){if(!(u in s))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;const c=u,d=r.renderer[c],p=s[c];s[c]=(...f)=>{let g=d.apply(s,f);return g===!1&&(g=p.apply(s,f)),g||""}}a.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new Us(this.defaults);for(const u in r.tokenizer){if(!(u in s))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;const c=u,d=r.tokenizer[c],p=s[c];s[c]=(...f)=>{let g=d.apply(s,f);return g===!1&&(g=p.apply(s,f)),g}}a.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new As;for(const u in r.hooks){if(!(u in s))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;const c=u,d=r.hooks[c],p=s[c];As.passThroughHooks.has(u)?s[c]=f=>{if(this.defaults.async)return Promise.resolve(d.call(s,f)).then(y=>p.call(s,y));const g=d.call(s,f);return p.call(s,g)}:s[c]=(...f)=>{let g=d.apply(s,f);return g===!1&&(g=p.apply(s,f)),g}}a.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,u=r.walkTokens;a.walkTokens=function(c){let d=[];return d.push(u.call(this,c)),s&&(d=d.concat(s.call(this,c))),d}}this.defaults={...this.defaults,...a}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,l){return gl.lex(t,l??this.defaults)}parser(t,l){return yl.parse(t,l??this.defaults)}parseMarkdown(t){return(r,a)=>{const s={...a},u={...this.defaults,...s},c=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&s.async===!1)return c(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));u.hooks&&(u.hooks.options=u,u.hooks.block=t);const d=u.hooks?u.hooks.provideLexer():t?gl.lex:gl.lexInline,p=u.hooks?u.hooks.provideParser():t?yl.parse:yl.parseInline;if(u.async)return Promise.resolve(u.hooks?u.hooks.preprocess(r):r).then(f=>d(f,u)).then(f=>u.hooks?u.hooks.processAllTokens(f):f).then(f=>u.walkTokens?Promise.all(this.walkTokens(f,u.walkTokens)).then(()=>f):f).then(f=>p(f,u)).then(f=>u.hooks?u.hooks.postprocess(f):f).catch(c);try{u.hooks&&(r=u.hooks.preprocess(r));let f=d(r,u);u.hooks&&(f=u.hooks.processAllTokens(f)),u.walkTokens&&this.walkTokens(f,u.walkTokens);let g=p(f,u);return u.hooks&&(g=u.hooks.postprocess(g)),g}catch(f){return c(f)}}}onError(t,l){return r=>{if(r.message+=`
|
|
132
|
+
Please report this to https://github.com/markedjs/marked.`,t){const a="<p>An error occurred:</p><pre>"+In(r.message+"",!0)+"</pre>";return l?Promise.resolve(a):a}if(l)return Promise.reject(r);throw r}}},Cr=new L9;function Xe(t,l){return Cr.parse(t,l)}Xe.options=Xe.setOptions=function(t){return Cr.setOptions(t),Xe.defaults=Cr.defaults,y0(Xe.defaults),Xe};Xe.getDefaults=uh;Xe.defaults=Rr;Xe.use=function(...t){return Cr.use(...t),Xe.defaults=Cr.defaults,y0(Xe.defaults),Xe};Xe.walkTokens=function(t,l){return Cr.walkTokens(t,l)};Xe.parseInline=Cr.parseInline;Xe.Parser=yl;Xe.parser=yl.parse;Xe.Renderer=qs;Xe.TextRenderer=yh;Xe.Lexer=gl;Xe.lexer=gl.lex;Xe.Tokenizer=Us;Xe.Hooks=As;Xe.parse=Xe;Xe.options;Xe.setOptions;Xe.use;Xe.walkTokens;Xe.parseInline;yl.parse;gl.lex;function B9(t){return Xe.lexer(t).map(r=>r.raw)}const H9=[e9],U9={a:({href:t,children:l})=>w.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:l}),code:({className:t,children:l,...r})=>{const a=/language-(\w+)/.exec(t||"");return a?w.jsxs(w.Fragment,{children:[a&&w.jsx("div",{className:"text-[10px] uppercase mb-2 opacity-50 font-mono not-prose",children:a[1]}),w.jsx("code",{className:t,...r,children:l})]}):w.jsx("code",{className:t,...r,children:l})}},q9=k.memo(function({content:l}){return w.jsx(IA,{remarkPlugins:H9,components:U9,children:l})},(t,l)=>t.content===l.content);function I9({content:t,id:l,isStreaming:r,className:a}){const s=k.useMemo(()=>B9(t),[t]);return w.jsxs("div",{className:ye("prose prose-invert prose-sm max-w-none",a),children:[s.map((u,c)=>w.jsx(q9,{content:u},`${l}-block-${c}`)),r&&w.jsx("span",{className:"inline-block w-1.5 h-4 ml-0.5 bg-current animate-pulse"})]})}function V9({message:t,className:l}){const r=t.role==="user";return w.jsxs("div",{className:ye("flex flex-col gap-1",r?"items-end":"items-start",l),children:[r&&t.elementRefs&&t.elementRefs.length>0&&w.jsx(db,{elementRefs:t.elementRefs,compact:!0,className:"max-w-[280px]"}),w.jsx("div",{className:ye("rounded-lg px-3 py-2",r?"max-w-[280px] bg-ann-accent text-white rounded-br-sm":"max-w-[95%] bg-ann-bg-secondary text-ann-text rounded-bl-sm"),children:r?w.jsx("p",{className:"text-sm whitespace-pre-wrap break-words",children:t.content}):w.jsx(I9,{content:t.content,id:t.id,isStreaming:t.isStreaming})}),!r&&t.toolCalls&&t.toolCalls.length>0&&w.jsx("div",{className:"max-w-[95%] mt-1",children:w.jsx(Y9,{toolCalls:t.toolCalls})}),w.jsx("span",{className:"text-[10px] text-ann-text-muted px-1",children:P9(t.timestamp)})]})}function Y9({toolCalls:t}){const[l,r]=k.useState(!1);return t.length===0?null:w.jsxs("div",{className:"rounded-lg border border-ann-border bg-ann-bg-secondary/50",children:[w.jsxs("button",{type:"button",onClick:()=>r(!l),className:"flex items-center gap-2 w-full px-2 py-1.5 text-xs text-ann-text-muted hover:text-ann-text transition-colors",children:[l?w.jsx(pE,{size:"xs"}):w.jsx(Gd,{size:"xs"}),w.jsx(cb,{size:"xs"}),w.jsxs("span",{children:[t.length," tool call",t.length>1?"s":""]})]}),l&&w.jsx("div",{className:"border-t border-ann-border px-2 py-1.5 space-y-2",children:t.map((a,s)=>w.jsx(G9,{call:a},s))})]})}function G9({call:t}){const[l,r]=k.useState(!1),s=t.toolName==="Edit"&&t.toolInput.file_path||t.toolName==="Read"&&t.toolInput.file_path||t.toolName==="Write"&&t.toolInput.file_path?String(t.toolInput.file_path).split("/").pop()||"file":"";return w.jsxs("div",{className:"text-xs",children:[w.jsxs("button",{type:"button",onClick:()=>r(!l),className:"flex items-center gap-1.5 text-ann-text-secondary hover:text-ann-text transition-colors",children:[w.jsx("span",{className:"font-mono font-medium",children:t.toolName}),s&&w.jsx("span",{className:"text-ann-text-muted truncate max-w-[150px]",children:s})]}),l&&w.jsx("pre",{className:"mt-1 p-2 bg-ann-bg rounded text-[10px] text-ann-text-muted overflow-x-auto max-h-32 overflow-y-auto",children:JSON.stringify(t.toolInput,null,2)})]})}function P9(t){return new Date(t).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function X9({value:t,onChange:l,elementRefs:r,onRemoveElementRef:a,onSubmit:s,isLoading:u=!1,placeholder:c="Ask Claude anything...",disabled:d=!1,className:p}){const f=!d&&!u&&(t.trim()||r.length>0),g=k.useCallback(()=>{f&&s()},[f,s]);return w.jsxs("div",{className:ye("flex flex-col gap-2",p),children:[r.length>0&&w.jsx(db,{elementRefs:r,onRemove:a,className:"px-1"}),w.jsxs(rb,{value:t,onValueChange:l,isLoading:u,disabled:d,onSubmit:g,children:[w.jsx(ib,{placeholder:c}),w.jsx(ab,{className:"justify-end pt-2",children:w.jsx(ob,{tooltip:u?"Stop":"Send message",children:w.jsx($l,{variant:"default",size:"icon",disabled:!f,className:"rounded-full",children:u?w.jsx(Tr,{size:"sm"}):w.jsx(ub,{size:"md"})})})})]})]})}function Q9({messages:t,elementRefs:l,onRemoveElementRef:r,inputValue:a,onInputChange:s,onSendMessage:u,onCancel:c,onClearHistory:d,isStreaming:p=!1,streamingContent:f="",error:g=null}){const y=k.useRef(null);k.useEffect(()=>{var b;(b=y.current)==null||b.scrollIntoView({behavior:"smooth"})},[t,f]);const x=[...t];if(p&&f){const b=x[x.length-1];b!=null&&b.isStreaming?x[x.length-1]={...b,content:f}:x.push({id:"streaming",role:"assistant",content:f,timestamp:new Date().toISOString(),isStreaming:!0})}return w.jsxs("div",{className:"flex flex-col h-full",children:[t.length>0&&w.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-ann-border",children:[w.jsxs("span",{className:"text-xs text-ann-text-muted",children:[t.length," message",t.length!==1?"s":""]}),d&&w.jsx("button",{onClick:d,className:"p-1.5 text-ann-text-muted hover:text-ann-text hover:bg-ann-bg-hover rounded-lg transition-colors",title:"Clear chat history",children:w.jsx(mE,{size:"sm"})})]}),w.jsxs("div",{className:"flex-1 overflow-y-auto p-3 space-y-4 spool-scrollbar",children:[x.length===0?w.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-8",children:[w.jsx("div",{className:"w-12 h-12 rounded-full bg-ann-bg-secondary flex items-center justify-center mb-4",children:w.jsx("svg",{className:"w-6 h-6 text-ann-text-muted",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})})}),w.jsx("h3",{className:"text-sm font-medium text-ann-text mb-2",children:"Chat with Claude"}),w.jsx("p",{className:"text-xs text-ann-text-muted max-w-[220px]",children:"Type a message or click elements in the page to reference them in your chat."})]}):x.map(b=>w.jsx(V9,{message:b},b.id)),w.jsx("div",{ref:y})]}),g&&w.jsx("div",{className:"px-3 py-2 bg-ann-error/10 border-t border-ann-error/20",children:w.jsx("p",{className:"text-xs text-ann-error",children:g})}),p&&c&&w.jsx("div",{className:"px-3 py-2 border-t border-ann-border",children:w.jsxs("button",{onClick:c,className:ye("w-full flex items-center justify-center gap-2","px-3 py-2 rounded-lg","bg-ann-error/10 text-ann-error","hover:bg-ann-error/20","text-sm font-medium transition-colors"),children:[w.jsx(hE,{size:"sm"}),"Stop"]})}),w.jsx("div",{className:"p-3 border-t border-ann-border",children:w.jsx(X9,{value:a,onChange:s,elementRefs:l,onRemoveElementRef:r,onSubmit:u,isLoading:p,disabled:p})})]})}function Z9({isServerConnected:t,isIframeReady:l}){const a=t?l?"online":"error":"offline",u={online:{label:"Online",dotColor:"bg-ann-success",textColor:"text-ann-success"},offline:{label:"Offline",dotColor:"bg-ann-warning animate-pulse",textColor:"text-ann-warning"},error:{label:"Error",dotColor:"bg-ann-danger animate-pulse",textColor:"text-ann-danger"}}[a];return w.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-ann-bg-elevated border border-ann-border",children:[w.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${u.dotColor}`}),w.jsx("span",{className:`text-[10px] font-medium uppercase tracking-wide ${u.textColor}`,children:u.label})]})}const $9=[{mode:"chat",icon:aE,label:"Chat"},{mode:"design",icon:cE,label:"Design"},{mode:"markup",icon:oE,label:"Markup"}];function F9({mode:t,onModeChange:l}){return w.jsx("nav",{className:"flex flex-col items-center gap-1 py-3 pr-2 bg-ann-bg",children:$9.map(({mode:r,icon:a,label:s})=>{const u=t===r;return w.jsx("button",{onClick:()=>l(r),title:s,className:`w-9 h-9 flex items-center justify-center rounded-lg transition-all ${u?"text-ann-text":"text-ann-text-muted hover:text-ann-text-secondary"}`,children:w.jsx(a,{size:"md",type:u?"solid":"stroke"})},r)})})}function K9({url:t,inputUrl:l,onInputUrlChange:r,onSubmit:a,isSidebarCollapsed:s,onToggleSidebar:u,selectionEnabled:c,onToggleSelection:d}){return w.jsxs("div",{className:"flex items-center h-12 px-3 border-b border-ann-border bg-ann-bg-secondary rounded-t-lg",children:[w.jsx("button",{onClick:u,title:s?"Expand sidebar":"Collapse sidebar",className:"w-7 h-7 flex items-center justify-center rounded-md text-ann-text-muted hover:text-ann-text hover:bg-ann-bg-hover transition-colors",children:s?w.jsx(Gd,{size:"sm"}):w.jsx(Yd,{size:"sm"})}),w.jsx("form",{onSubmit:a,className:"flex-1 flex justify-center",children:w.jsxs("div",{className:"flex items-center gap-2 w-full max-w-[300px] bg-ann-bg rounded-lg px-3 py-1.5 border border-ann-border hover:border-ann-border-hover focus-within:border-ann-accent focus-within:ring-1 focus-within:ring-ann-accent/20 transition-all",children:[w.jsx("svg",{className:"w-3.5 h-3.5 text-ann-text-muted flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})}),w.jsx("input",{type:"url",value:l,onChange:p=>r(p.target.value),placeholder:"Enter app URL...",className:"flex-1 bg-transparent text-sm text-ann-text placeholder:text-ann-text-muted outline-none"}),l!==t&&w.jsx("button",{type:"submit",className:"text-xs text-ann-accent hover:text-ann-accent-hover font-medium transition-colors",children:"Go"})]})}),w.jsx("button",{onClick:d,title:c?"Disable selection":"Enable selection",className:`w-7 h-7 flex items-center justify-center rounded-md transition-colors ${c?"bg-ann-accent text-white":"text-ann-text-muted hover:text-ann-text hover:bg-ann-bg-hover"}`,children:w.jsx(xE,{size:"sm",type:c?"solid":"stroke"})})]})}const J9=24;function W9({onResize:t,onResizeStart:l,onResizeEnd:r,containerRef:a}){const s=k.useRef(!1),u=k.useRef(0),c=k.useRef(0),d=k.useCallback(p=>{p.preventDefault(),s.current=!0,u.current=p.clientX,a.current&&(c.current=a.current.clientWidth-J9),l==null||l(),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[l,a]);return k.useEffect(()=>{const p=g=>{if(!s.current)return;const y=g.clientX-u.current;if(u.current=g.clientX,c.current>0){const x=y/c.current;t(x)}},f=()=>{s.current&&(s.current=!1,r==null||r(),document.body.style.cursor="",document.body.style.userSelect="")};return document.addEventListener("mousemove",p),document.addEventListener("mouseup",f),()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",f)}},[t,r]),w.jsxs("div",{className:"resize-handle relative w-0 cursor-col-resize group",onMouseDown:d,children:[w.jsx("div",{className:"absolute inset-y-0 -left-1 w-2 z-10"}),w.jsx("div",{className:"absolute inset-y-0 left-0 w-px bg-transparent group-hover:bg-ann-accent transition-colors"})]})}const eR=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in_progress",label:"In Progress"},{value:"done",label:"Done"},{value:"error",label:"Error"}];function tR({selectedStatuses:t,onSelectionChange:l,className:r}){const[a,s]=k.useState(!1),u=k.useRef(null);k.useEffect(()=>{if(!a)return;const f=g=>{u.current&&!u.current.contains(g.target)&&s(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[a]);const c=f=>{if(f==="all")l([]);else if(t.includes(f)){const y=t.filter(x=>x!==f);l(y)}else l([...t,f])},d=t.length===0,p=t.length;return w.jsxs("div",{ref:u,className:ye("relative",r),children:[w.jsxs($l,{variant:"ghost",size:"sm",onClick:()=>s(!a),className:ye("gap-1.5 px-2 h-8",(p>0||a)&&"bg-ann-bg-hover"),children:[w.jsx(sE,{size:"sm"}),p>0&&w.jsx("span",{className:"text-xs font-medium bg-ann-accent text-white rounded-full w-4 h-4 flex items-center justify-center",children:p})]}),a&&w.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 min-w-[140px] bg-ann-bg-secondary border border-ann-border rounded-lg shadow-ann-lg overflow-hidden",children:eR.map(f=>{const g=f.value==="all"?d:t.includes(f.value);return w.jsxs("button",{onClick:()=>c(f.value),className:ye("w-full flex items-center gap-2 px-3 py-2 text-xs text-left","hover:bg-ann-bg-hover transition-colors",g&&"text-ann-text",!g&&"text-ann-text-muted"),children:[w.jsx("div",{className:ye("w-4 h-4 rounded border flex items-center justify-center flex-shrink-0",g?"bg-ann-accent border-ann-accent":"border-ann-border bg-transparent"),children:g&&w.jsx(Os,{size:"xs",className:"text-white"})}),f.value!=="all"&&w.jsx(fb,{status:f.value,size:"sm"}),w.jsx("span",{className:"flex-1",children:f.label})]},f.value)})})]})}function nR(t={}){const{onElementHovered:l,onElementSelected:r,onStylesUpdated:a,onScrollStart:s,onScrollEnd:u}=t,c=k.useRef(null),[d,p]=k.useState(!1),f=k.useRef(new Map),g=k.useRef({onElementHovered:l,onElementSelected:r,onStylesUpdated:a,onScrollStart:s,onScrollEnd:u});g.current={onElementHovered:l,onElementSelected:r,onStylesUpdated:a,onScrollStart:s,onScrollEnd:u};const y=k.useCallback(N=>{var F;if(!((F=c.current)!=null&&F.contentWindow)){console.warn("[useIframeCommunication] Iframe not ready");return}const H={...N,source:"spool-shell"};c.current.contentWindow.postMessage(H,"*")},[]);k.useEffect(()=>{const N=H=>{var Z,U,re,V,ue,ne,ee,B,X,te;const F=H.data;if((F==null?void 0:F.source)==="spool-inject")switch(F.type){case"IFRAME_READY":console.log("[useIframeCommunication] Iframe ready"),p(!0);break;case"ELEMENT_HOVERED":(U=(Z=g.current).onElementHovered)==null||U.call(Z,F.payload);break;case"ELEMENT_SELECTED":(V=(re=g.current).onElementSelected)==null||V.call(re,F.payload);break;case"STYLES_UPDATED":(ne=(ue=g.current).onStylesUpdated)==null||ne.call(ue,F.payload.selector,F.payload.styles);break;case"ELEMENT_HTML":{const oe=f.current.get(F.payload.requestId);oe&&(f.current.delete(F.payload.requestId),oe.resolve(F.payload.html));break}case"COMPUTED_STYLES":{const oe=f.current.get(F.payload.requestId);oe&&(f.current.delete(F.payload.requestId),oe.resolve(F.payload.styles));break}case"SCROLL_START":(B=(ee=g.current).onScrollStart)==null||B.call(ee);break;case"SCROLL_END":(te=(X=g.current).onScrollEnd)==null||te.call(X);break;case"ELEMENT_POSITIONS":{const oe=f.current.get(F.payload.requestId);oe&&(f.current.delete(F.payload.requestId),oe.resolve(F.payload.positions));break}}};return window.addEventListener("message",N),()=>window.removeEventListener("message",N)},[]);const x=k.useCallback(N=>{y({type:"TOGGLE_SELECTION_MODE",payload:N})},[y]),b=k.useCallback((N,H)=>{y({type:"APPLY_STYLE_CHANGE",payload:{selector:N,styles:H}})},[y]),S=k.useCallback(N=>{y({type:"REVERT_STYLE_CHANGE",payload:{selector:N}})},[y]),T=k.useCallback((N,H)=>{y({type:"APPLY_VARIANT_PREVIEW",payload:{selector:N,html:H}})},[y]),R=k.useCallback(N=>{y({type:"REVERT_VARIANT_PREVIEW",payload:{selector:N}})},[y]),E=k.useCallback(N=>{y({type:"HIGHLIGHT_ELEMENT",payload:{selector:N}})},[y]),_=k.useCallback(()=>{y({type:"CLEAR_HIGHLIGHT",payload:null})},[y]),M=k.useCallback(N=>new Promise((H,F)=>{const Z=`html_${Date.now()}_${Math.random().toString(36).slice(2,9)}`;f.current.set(Z,{resolve:H,reject:F}),y({type:"GET_ELEMENT_HTML",payload:{selector:N,requestId:Z}}),setTimeout(()=>{f.current.has(Z)&&(f.current.delete(Z),F(new Error("Request timed out")))},5e3)}),[y]),D=k.useCallback(N=>new Promise((H,F)=>{const Z=`styles_${Date.now()}_${Math.random().toString(36).slice(2,9)}`;f.current.set(Z,{resolve:H,reject:F}),y({type:"GET_COMPUTED_STYLES",payload:{selector:N,requestId:Z}}),setTimeout(()=>{f.current.has(Z)&&(f.current.delete(Z),F(new Error("Request timed out")))},5e3)}),[y]),I=k.useCallback(N=>new Promise((H,F)=>{if(N.length===0){H([]);return}const Z=`positions_${Date.now()}_${Math.random().toString(36).slice(2,9)}`;f.current.set(Z,{resolve:H,reject:F}),y({type:"GET_ELEMENT_POSITIONS",payload:{selectors:N,requestId:Z}}),setTimeout(()=>{f.current.has(Z)&&(f.current.delete(Z),F(new Error("Request timed out")))},5e3)}),[y]);return{isIframeReady:d,iframeRef:c,toggleSelectionMode:x,applyStylePreview:b,revertStylePreview:S,applyVariantPreview:T,revertVariantPreview:R,highlightElement:E,clearHighlight:_,getElementHtml:M,getComputedStyles:D,getElementPositions:I}}function lR(t){const[l,r]=k.useState({x:0,y:0});return k.useEffect(()=>{var u;const a=()=>{var d;const c=(d=t.current)==null?void 0:d.getBoundingClientRect();c&&r({x:c.left,y:c.top})};a(),window.addEventListener("resize",a),window.addEventListener("scroll",a,!0);let s=null;return(u=t.current)!=null&&u.parentElement&&(s=new ResizeObserver(a),s.observe(t.current.parentElement)),()=>{window.removeEventListener("resize",a),window.removeEventListener("scroll",a,!0),s==null||s.disconnect()}},[t]),l}function rR(){return`msg_${Date.now()}_${Math.random().toString(36).slice(2,9)}`}function iR(){return`ref_${Date.now()}_${Math.random().toString(36).slice(2,9)}`}function Gy(t){if(typeof window>"u")return"";try{const l=new URL(t??window.location.href);let r=l.pathname;return r.length>1&&r.endsWith("/")&&(r=r.slice(0,-1)),`${l.origin}${r}`}catch{return t??window.location.href}}function aR({url:t,appId:l,pageUrl:r,onStateUpdate:a,onApplyProgress:s,onApplyComplete:u,onAppUrl:c,autoConnect:d=!0}){const p=k.useCallback(()=>r?Gy(r):Gy(),[r]),[f,g]=k.useState("disconnected"),[y,x]=k.useState(null),[b,S]=k.useState(!1),[T,R]=k.useState(null),[E,_]=k.useState([]),[M,D]=k.useState(new Set),[I,N]=k.useState(!1),[H,F]=k.useState(()=>{try{const K=l?`spool-chat-${l}`:"spool-chat",fe=typeof localStorage<"u"?localStorage.getItem(K):null;if(fe)return JSON.parse(fe).map(be=>({...be,isStreaming:!1}))}catch{}return[]}),[Z,U]=k.useState(!1),[re,V]=k.useState(""),[ue,ne]=k.useState(null),[ee,B]=k.useState([]),[X,te]=k.useState(null);k.useEffect(()=>{try{const K=l?`spool-chat-${l}`:"spool-chat";if(H.length>0){const fe=H.map(he=>({id:he.id,role:he.role,content:he.content,elementRefs:he.elementRefs,timestamp:he.timestamp}));typeof localStorage<"u"&&localStorage.setItem(K,JSON.stringify(fe))}else typeof localStorage<"u"&&localStorage.removeItem(K)}catch{}},[H,l]);const oe=k.useRef(null),z=k.useRef(a);z.current=a;const O=k.useRef(s);O.current=s;const Q=k.useRef(u);Q.current=u;const A=k.useRef(c);A.current=c;const se=k.useRef(re);se.current=re;const me=k.useRef(ue);me.current=ue;const pe=k.useRef(ee);pe.current=ee;const ae=k.useCallback(async(K,fe)=>(await fetch(`${t}${K}`,{method:(fe==null?void 0:fe.method)??"POST",headers:{"Content-Type":"application/json"},body:(fe==null?void 0:fe.body)!==void 0?JSON.stringify(fe.body):void 0})).json(),[t]),Me=k.useCallback((K,fe)=>{if(!fe)return;let he;try{he=JSON.parse(fe)}catch{console.error("[useSSE] Invalid JSON from SSE");return}switch(he.type){case"state:update":{const{state:be}=he,vt=p();let tt=be.pages[vt];if(!tt){const Fe=r||(typeof window<"u"?window.location.href:""),dt=Fe?new URL(Fe).pathname:"";for(const He of Object.values(be.pages))try{if(new URL(He.url).pathname===dt){tt=He;break}}catch{}}tt&&z.current&&z.current(tt.annotations,tt.pendingChanges??[],be.appId);const ot=be.chatMessages;ot&&ot.length>0&&F(Fe=>ot.length>=Fe.length?ot.map(dt=>({...dt,isStreaming:!1})):Fe),be.appUrl&&A.current&&A.current(be.appUrl),S(be.status==="generating"),R(be.currentTaskId);break}case"task:ack":S(!0),R(he.taskId),_([]);break;case"stream:text":_(be=>[...be,{type:"text",content:he.content,isPartial:he.isPartial,timestamp:Date.now()}]);break;case"stream:tool_call":_(be=>[...be,{type:"tool_call",toolName:he.toolName,toolInput:he.toolInput,timestamp:Date.now()}]);break;case"task:complete":S(!1),R(null);break;case"task:error":S(!1),R(null),x(he.error.message);break;case"apply:progress":O.current&&O.current(he.changeId,he.status,he.error);break;case"apply:complete":N(!1),Q.current&&Q.current(he.success,he.message);break;case"chat:stream":he.isPartial?V(be=>be+he.content):V(he.content);break;case"chat:tool_call":B(be=>[...be,{toolName:he.toolName,toolInput:he.toolInput,timestamp:Date.now()}]);break;case"chat:complete":{U(!1),ne(null),V(""),B([]),!he.success&&he.error&&te(he.error);break}case"app:url":A.current&&A.current(he.url);break}},[p,r]),ze=k.useCallback(()=>{oe.current&&(oe.current.close(),oe.current=null),g("connecting"),x(null);try{const K=new EventSource(`${t}/api/events`);oe.current=K,K.onopen=()=>{g("connected"),x(null)},K.onerror=()=>{g("disconnected")};const fe=["state:update","task:ack","stream:text","stream:tool_call","task:complete","task:error","apply:progress","apply:complete","chat:stream","chat:tool_call","chat:complete","app:url","ping"];for(const he of fe)K.addEventListener(he,be=>{g("connected"),Me(he,be.data)})}catch(K){g("error"),x(K instanceof Error?K.message:"Failed to connect")}},[t,Me]),at=k.useCallback(()=>{oe.current&&(oe.current.close(),oe.current=null),g("disconnected")},[]),Ct=k.useCallback((K,fe)=>{ae("/api/annotations",{body:{url:K,annotation:fe}})},[ae]),Wt=k.useCallback((K,fe)=>{ae(`/api/annotations/${K}`,{method:"PATCH",body:fe})},[ae]),It=k.useCallback(K=>{ae(`/api/annotations/${K}`,{method:"DELETE"})},[ae]),jt=k.useCallback(async K=>{D(fe=>new Set(fe).add(K));try{const fe=await ae(`/api/annotations/${K}/revert`);D(he=>{const be=new Set(he);return be.delete(K),be}),!fe.success&&fe.error&&x(fe.error)}catch{D(fe=>{const he=new Set(fe);return he.delete(K),he})}},[ae]),pn=k.useCallback(K=>{if(f!=="connected"||b)return;const fe=`task_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;ae("/api/tasks",{body:{id:fe,payload:{action:"address",annotationIds:K==null?void 0:K.annotationIds,feedback:K==null?void 0:K.feedback}}})},[f,b,ae]),Vt=k.useCallback(()=>{T&&ae(`/api/tasks/${T}/cancel`)},[T,ae]),An=k.useCallback(async K=>{if(f!=="connected")throw new Error("Not connected to server");const fe=await ae("/api/variants/generate",{body:K});if(fe.error)throw new Error(fe.error);return fe.variants},[f,ae]),Rn=k.useCallback(K=>{ae("/api/changes",{body:{url:p(),change:K}})},[ae,p]),Et=k.useCallback(K=>{ae(`/api/changes/${K}`,{method:"DELETE"})},[ae]),Ln=k.useCallback(()=>{f!=="connected"||I||(N(!0),ae("/api/changes/apply-all",{body:{url:p()}}))},[f,I,ae,p]),Qn=k.useCallback(K=>{f!=="connected"||I||(N(!0),ae(`/api/changes/${K}/apply`,{body:{url:p()}}))},[f,I,ae,p]),tr=k.useCallback(K=>{f!=="connected"||I||(N(!0),ae("/api/changes/apply-direct",{body:{change:K}}))},[f,I,ae]),nr=k.useCallback((K,fe)=>{if(f!=="connected"||Z)return;const he=rR(),be={id:he+"_user",role:"user",content:K,elementRefs:fe,timestamp:new Date().toISOString()};F(tt=>[...tt,be]),U(!0),ne(he),V(""),B([]),te(null);const vt=H.map(tt=>({id:tt.id,role:tt.role,content:tt.content,elementRefs:tt.elementRefs,timestamp:tt.timestamp}));ae("/api/chat",{body:{id:he,content:K,elementRefs:fe,history:vt}})},[f,Z,H,ae]),bt=k.useCallback(()=>{ue&&(ae("/api/chat/cancel",{body:{messageId:ue}}),U(!1),ne(null),V(""),B([]))},[ue,ae]),lr=k.useCallback(()=>{F([]),te(null);try{const K=l?`spool-chat-${l}`:"spool-chat";typeof localStorage<"u"&&localStorage.removeItem(K)}catch{}ae("/api/chat/history",{method:"PUT",body:{messages:[]}})},[ae,l]);return k.useEffect(()=>(d&&ze(),()=>{at()}),[]),{...k.useMemo(()=>({status:f,isConnected:f==="connected",isGenerating:b,currentTaskId:T,error:y,streamMessages:E}),[f,b,T,y,E]),connect:ze,disconnect:at,sendAnnotationCreate:Ct,sendAnnotationUpdate:Wt,sendAnnotationDelete:It,sendAnnotationRevert:jt,revertingIds:M,submitTask:pn,cancelTask:Vt,generateVariants:An,addPendingChange:Rn,removePendingChange:Et,applyAllChanges:Ln,applyChange:Qn,applyDirect:tr,isApplying:I,chatMessages:H,isChatStreaming:Z,chatStreamingContent:re,chatError:X,sendChatMessage:nr,cancelChat:bt,clearChatHistory:lr}}const oR=.15,sR=.5;function uR(){return window.location.origin}function cR(){const l=new URLSearchParams(window.location.search).get("app")||"http://localhost:5174",[r,a]=k.useState(l),[s,u]=k.useState(l),[c,d]=k.useState(()=>{const de=localStorage.getItem("spool-shell-mode");return de==="design"||de==="markup"||de==="chat"?de:"chat"}),[p,f]=k.useState(()=>{const de=localStorage.getItem("spool-shell-design-tab");return de==="styles"||de==="variants"?de:"styles"}),[g,y]=k.useState(!0),[x,b]=k.useState(null),[S,T]=k.useState(null),[R,E]=k.useState([]),[_,M]=k.useState({left:.3177,right:.6823}),[D,I]=k.useState(!1),[N,H]=k.useState(null),[F,Z]=k.useState(null),[U,re]=k.useState(""),[V,ue]=k.useState([]),[ne,ee]=k.useState(null),[B,X]=k.useState(!1),[te,oe]=k.useState(!1),[z,O]=k.useState(""),[Q,A]=k.useState([]),se=uR(),[me,pe]=k.useState(),ae=aR({url:se,appId:me,pageUrl:r,onStateUpdate:(de,Ee,Ue)=>{E(Ee),Ue&&pe(Ue)},onApplyProgress:(de,Ee,Ue)=>{E(St=>St.map(Tt=>Tt.id===de?{...Tt,status:Ee,errorMessage:Ue}:Tt))},onApplyComplete:(de,Ee)=>{},onAppUrl:de=>{a(de),u(de)}}),Me=k.useRef(null),ze=k.useRef(new Map),{isIframeReady:at,iframeRef:Ct,toggleSelectionMode:Wt,applyStylePreview:It,revertStylePreview:jt,applyVariantPreview:pn,revertVariantPreview:Vt,highlightElement:An,clearHighlight:Rn,getElementHtml:Et,getElementPositions:Ln}=nR({onElementHovered:b,onElementSelected:de=>{var Ee;if(T(de),c==="markup"&&de.clickOffset&&de.rect){const Ue=(Ee=Ct.current)==null?void 0:Ee.getBoundingClientRect();if(Ue){const St=Ue.left+de.rect.left+de.clickOffset.x,Tt=Ue.top+de.rect.top+de.clickOffset.y;H({x:St,y:Tt}),Z(null)}}if(c==="chat"){if(!Q.some(St=>St.selector===de.selector)){const St={id:iR(),selector:de.selector,element:de};A(Tt=>[...Tt,St])}T(null)}},onScrollStart:()=>{oe(!0)},onScrollEnd:async()=>{const de=R.map(Ee=>Ee.selector);if(de.length>0)try{const Ee=await Ln(de);E(Ue=>Ue.map(St=>{const Tt=Ee.find(uu=>uu.selector===St.selector);return Tt!=null&&Tt.rect?{...St,element:{...St.element,rect:Tt.rect}}:St}))}catch(Ee){console.warn("[App] Failed to fetch element positions after scroll:",Ee)}oe(!1)}}),Qn=lR(Ct);k.useEffect(()=>{localStorage.setItem("spool-shell-mode",c)},[c]),k.useEffect(()=>{localStorage.setItem("spool-shell-design-tab",p)},[p]),k.useEffect(()=>{at&&Wt(g)},[at,g,Wt]);const tr=k.useCallback(de=>{de.preventDefault(),s&&s!==r&&(a(s),T(null),b(null))},[s,r]),nr=k.useCallback(()=>{T(null),Rn()},[Rn]),bt=k.useCallback(de=>{ae.removePendingChange(de),E(Ee=>Ee.filter(Ue=>Ue.id!==de))},[ae]),lr=k.useCallback(de=>{if(!S)return;const Ee={id:`style_${Date.now()}`,type:"style",selector:de.selector,element:S,status:"pending",createdAt:new Date().toISOString(),styles:de.styles,originalStyles:de.originalStyles};ae.applyDirect(Ee)},[S,ae]),W=k.useCallback(de=>{const Ee={id:`variant_${Date.now()}`,type:"variant",selector:de.selector,element:de.element,status:"pending",createdAt:new Date().toISOString(),prompt:de.prompt,variants:de.variants,selectedVariantIndex:de.selectedVariantIndex,originalHtml:de.originalHtml};ae.applyDirect(Ee),Vt(de.selector)},[Vt,ae]),K=k.useCallback(async de=>{if(!S)return;const Ee={id:`note_${Date.now()}`,type:"note",selector:S.selector,element:S,status:"pending",createdAt:new Date().toISOString(),content:de,clickOffset:S.clickOffset};ae.addPendingChange(Ee),E(Ue=>[...Ue,Ee]),H(null),T(null)},[S,ae]),fe=k.useCallback((de,Ee)=>{T(de.element),H({x:Ee.left,y:Ee.top+24}),Z(de.id),ee(de.id)},[]),he=k.useCallback(()=>{H(null),Z(null),T(null)},[]),be=k.useCallback(()=>{X(!0),setTimeout(()=>X(!1),400)},[]),vt=k.useCallback(de=>{E(Ee=>Ee.map(Ue=>Ue.id===de?{...Ue,status:"pending"}:Ue))},[]),tt=k.useCallback(()=>{E([])},[]),ot=k.useCallback(()=>{ae.applyAllChanges()},[ae]),Fe=k.useCallback(de=>{ae.applyChange(de)},[ae]),dt=k.useCallback(de=>{ee(de);const Ee=R.find(Ue=>Ue.id===de);Ee&&An(Ee.selector)},[R,An]),He=k.useCallback(de=>{A(Ee=>Ee.filter(Ue=>Ue.id!==de))},[]),zn=k.useCallback(()=>{const de=z.trim();!de&&Q.length===0||(ae.sendChatMessage(de,Q),O(""),A([]))},[ae,z,Q]),en=k.useCallback(()=>{ae.cancelChat()},[ae]),su=k.useCallback(()=>{ae.clearChatHistory()},[ae]),zr=k.useCallback(de=>ze.current.has(de)?ze.current.get(de)||null:(Et(de).then(Ee=>{Ee&&ze.current.set(de,Ee)}),null),[Et]),Mr=k.useCallback(async de=>{var Ue,St;if(!S)throw new Error("No element selected");const Ee=await Et(S.selector);return ae.generateVariants({selector:S.selector,prompt:de,elementHtml:Ee||"",elementInfo:{tagName:S.tagName,componentName:(Ue=S.reactComponent)==null?void 0:Ue.name,componentFile:(St=S.reactComponent)==null?void 0:St.file}})},[ae,S,Et]),Nr=k.useCallback(de=>{M(Ee=>{const Ue=Math.max(oR,Math.min(sR,Ee.left+de));return{left:Ue,right:1-Ue}})},[]),Zn=k.useCallback(()=>{I(de=>!de)},[]),_r=D?"52px 0px 1fr":`${_.left}fr 0px ${_.right}fr`;return w.jsxs("div",{className:"flex flex-col h-screen bg-ann-bg",children:[w.jsxs("header",{className:"flex items-center justify-between h-[50px] px-4 bg-ann-bg",children:[w.jsxs("div",{className:"flex items-center gap-2.5",children:[w.jsx("div",{className:"w-7 h-7 rounded-lg bg-ann-accent flex items-center justify-center shadow-ann-sm",children:w.jsx("span",{className:"text-white text-xs font-bold",children:"S"})}),w.jsx("span",{className:"font-semibold text-sm text-ann-text tracking-tight",children:"Spool"})]}),w.jsx(Z9,{isServerConnected:ae.isConnected,isIframeReady:at})]}),w.jsxs("div",{ref:Me,className:"flex-1 overflow-hidden grid gap-3 p-3 pt-0",style:{gridTemplateColumns:_r},children:[w.jsxs("aside",{className:"flex min-h-0 overflow-hidden",children:[w.jsx(F9,{mode:c,onModeChange:d}),!D&&w.jsx("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden bg-ann-bg-secondary border border-ann-border rounded-lg",children:w.jsxs("div",{className:"flex-1 overflow-y-auto ann-scrollbar",children:[c==="design"&&w.jsx(fR,{element:S,activeTab:p,onTabChange:f,onDeselect:nr,onApplyStyle:It,onRevertStyle:jt,onApplyStyleDirect:lr,onApplyVariant:pn,onRevertVariant:Vt,onApplyVariantDirect:W,onGenerateVariants:Mr,getOriginalHtml:zr,isApplying:ae.isApplying}),c==="markup"&&w.jsx(dR,{pendingChanges:R,searchQuery:U,onSearchChange:re,selectedStatuses:V,onStatusesChange:ue,selectedAnnotationId:ne,onApplyAll:ot,onClearAll:tt,onRemove:bt,onSelect:dt,onRunSingle:Fe,isApplying:ae.isApplying}),c==="chat"&&w.jsx(Q9,{messages:ae.chatMessages,elementRefs:Q,onRemoveElementRef:He,inputValue:z,onInputChange:O,onSendMessage:zn,onCancel:en,onClearHistory:su,isStreaming:ae.isChatStreaming,streamingContent:ae.chatStreamingContent,error:ae.chatError})]})})]}),!D&&w.jsx(W9,{onResize:Nr,containerRef:Me}),D&&w.jsx("div",{className:"w-0"}),w.jsxs("div",{className:"flex flex-col min-h-0 overflow-hidden border border-ann-border rounded-lg bg-ann-bg-secondary",children:[w.jsx(K9,{url:r,inputUrl:s,onInputUrlChange:u,onSubmit:tr,isSidebarCollapsed:D,onToggleSidebar:Zn,selectionEnabled:g,onToggleSelection:()=>y(!g)}),w.jsxs("div",{className:"relative flex-1 min-h-0",children:[w.jsx(bE,{src:r,iframeRef:Ct,isReady:at,hoveredElement:x,selectedElement:S}),c==="markup"&&R.length>0&&w.jsx(zE,{pendingChanges:R,selectedId:ne||F,onBubbleClick:fe,statusFilter:"all",iframeOffset:Qn,hidden:te})]})]}),c==="markup"&&N&&S&&w.jsx(TE,{element:S,selector:S.selector,position:N,onSubmit:K,onCancel:he,onClickOutside:be,isShaking:B,editingNote:F?R.find(de=>de.id===F&&de.type==="note")??null:null,onReopenChange:vt})]})]})}function fR({element:t,activeTab:l,onTabChange:r,onDeselect:a,onApplyStyle:s,onRevertStyle:u,onApplyStyleDirect:c,onApplyVariant:d,onRevertVariant:p,onApplyVariantDirect:f,onGenerateVariants:g,getOriginalHtml:y,isApplying:x}){var b,S;return t?w.jsxs("div",{className:"flex flex-col h-full",children:[w.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-ann-border bg-ann-bg",children:[w.jsx("span",{className:"font-mono text-[11px] bg-ann-bg-elevated border border-ann-border px-2 py-0.5 rounded-md text-ann-text",children:((b=t.reactComponent)==null?void 0:b.name)||t.tagName}),((S=t.reactComponent)==null?void 0:S.file)&&w.jsx("span",{className:"text-[10px] text-ann-text-muted truncate flex-1",children:t.reactComponent.file.split("/").pop()}),w.jsx("button",{onClick:a,className:"p-1.5 rounded-md text-ann-text-muted hover:text-ann-text hover:bg-ann-bg-hover transition-colors",title:"Deselect",children:w.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),w.jsx("div",{className:"px-3 pt-3",children:w.jsxs("div",{className:"flex gap-0.5 p-0.5 bg-ann-bg-elevated rounded-lg",children:[w.jsxs("button",{onClick:()=>r("styles"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-all flex-1 justify-center ${l==="styles"?"bg-ann-bg-secondary text-ann-text shadow-ann-sm":"text-ann-text-muted hover:text-ann-text-secondary"}`,children:[w.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})}),"Styles"]}),w.jsxs("button",{onClick:()=>r("variants"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-all flex-1 justify-center ${l==="variants"?"bg-ann-bg-secondary text-ann-text shadow-ann-sm":"text-ann-text-muted hover:text-ann-text-secondary"}`,children:[w.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})}),"Variants"]})]})}),w.jsx("div",{className:"flex-1 overflow-y-auto p-3 ann-scrollbar",children:l==="styles"?w.jsx(vE,{element:t,selector:t.selector,onApplyPreview:s,onRevertPreview:u,onApplyDirect:c,isApplying:x}):w.jsx(wE,{element:t,selector:t.selector,onGenerateVariants:g,onApplyDirect:f,onApplyPreview:d,onRevertPreview:p,getOriginalHtml:y,isApplying:x})})]}):w.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-6 py-12 text-center",children:[w.jsx("div",{className:"w-14 h-14 rounded-2xl bg-ann-bg-elevated border border-ann-border flex items-center justify-center mb-5",children:w.jsx("svg",{className:"w-6 h-6 text-ann-text-muted",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})})}),w.jsx("h3",{className:"text-sm font-medium text-ann-text mb-1.5",children:"No Element Selected"}),w.jsx("p",{className:"text-xs text-ann-text-muted max-w-[180px] leading-relaxed",children:"Click on an element in the page to start designing"})]})}function dR({pendingChanges:t,searchQuery:l,onSearchChange:r,selectedStatuses:a,onStatusesChange:s,selectedAnnotationId:u,onApplyAll:c,onClearAll:d,onRemove:p,onSelect:f,onRunSingle:g,isApplying:y}){const x=k.useMemo(()=>{let b=t;if(a.length>0&&(b=b.filter(S=>a.includes(S.status))),l.trim()){const S=l.toLowerCase();b=b.filter(T=>{var M,D,I;const R=(((M=T.element.reactComponent)==null?void 0:M.name)||T.element.tagName).toLowerCase(),E=T.selector.toLowerCase(),_=T.type==="note"?((D=T.content)==null?void 0:D.toLowerCase())||"":T.type==="variant"&&((I=T.prompt)==null?void 0:I.toLowerCase())||"";return R.includes(S)||E.includes(S)||_.includes(S)})}return b},[t,a,l]);return t.length===0?w.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-6 py-12 text-center",children:[w.jsx("div",{className:"w-14 h-14 rounded-2xl bg-ann-bg-elevated border border-ann-border flex items-center justify-center mb-5",children:w.jsx("svg",{className:"w-6 h-6 text-ann-text-muted",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})})}),w.jsx("h3",{className:"text-sm font-medium text-ann-text mb-1.5",children:"Add Annotations"}),w.jsx("p",{className:"text-xs text-ann-text-muted max-w-[180px] leading-relaxed",children:"Click on elements in the page to add notes and feedback"})]}):w.jsxs("div",{className:"flex flex-col h-full",children:[w.jsxs("div",{className:"px-3 py-3 border-b border-ann-border flex gap-2",children:[w.jsxs("div",{className:"flex-1 relative",children:[w.jsx("svg",{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-ann-text-muted",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),w.jsx(Wy,{type:"text",placeholder:"Search annotations...",value:l,onChange:b=>r(b.target.value),className:"pl-8 h-8 text-xs"})]}),w.jsx(tR,{selectedStatuses:a,onSelectionChange:s})]}),w.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:w.jsx(EE,{annotations:x,selectedId:u,onApplyAll:c,onClearAll:d,onRemove:p,onSelect:f,onRunSingle:g,isApplying:y})})]})}F2.createRoot(document.getElementById("root")).render(w.jsx(k.StrictMode,{children:w.jsx(cR,{})}));
|