auto-archiver/docs/source/installation/settings.html

396 wiersze
755 KiB
HTML
Czysty Wina Historia

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<script type="module" crossorigin>var h2=Object.defineProperty;var m2=(e,t,n)=>t in e?h2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xs=(e,t,n)=>m2(e,typeof t!="symbol"?t+"":t,n);function g2(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(i,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wp={exports:{}},Ws={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var b0;function y2(){if(b0)return Ws;b0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,o,l){var u=null;if(l!==void 0&&(u=""+l),o.key!==void 0&&(u=""+o.key),"key"in o){l={};for(var f in o)f!=="key"&&(l[f]=o[f])}else l=o;return o=l.ref,{$$typeof:e,type:i,key:u,ref:o!==void 0?o:null,props:l}}return Ws.Fragment=t,Ws.jsx=n,Ws.jsxs=n,Ws}var v0;function b2(){return v0||(v0=1,Wp.exports=y2()),Wp.exports}var B=b2(),Qp={exports:{}},Ue={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var S0;function v2(){if(S0)return Ue;S0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function C(k,X,se){this.props=k,this.context=X,this.refs=S,this.updater=se||b}C.prototype.isReactComponent={},C.prototype.setState=function(k,X){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,X,"setState")},C.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function A(){}A.prototype=C.prototype;function O(k,X,se){this.props=k,this.context=X,this.refs=S,this.updater=se||b}var _=O.prototype=new A;_.constructor=O,w(_,C.prototype),_.isPureReactComponent=!0;var M=Array.isArray,R={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function P(k,X,se,L,re,fe){return se=fe.ref,{$$typeof:e,type:k,key:X,ref:se!==void 0?se:null,props:fe}}function z(k,X){return P(k.type,X,void 0,void 0,void 0,k.props)}function $(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function E(k){var X={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(se){return X[se]})}var I=/\/+/g;function U(k,X){return typeof k=="object"&&k!==null&&k.key!=null?E(""+k.key):X.toString(36)}function G(){}function Y(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(G,G):(k.status="pending",k.then(function(X){k.status==="pending"&&(k.status="fulfilled",k.value=X)},function(X){k.status==="pending"&&(k.status="rejected",k.reason=X)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function V(k,X,se,L,re){var fe=typeof k;(fe==="undefined"||fe==="boolean")&&(k=null);var le=!1;if(k===null)le=!0;else switch(fe){case"bigint":case"string":case"number":le=!0;break;case"object":switch(k.$$typeof){case e:case t:le=!0;break;case m:return le=k._init,V(le(k._payload),X,se,L,re)}}if(le)return re=re(k),le=L===""?"."+U(k,0):L,M(re)?(se="",le!=null&&(se=le.replace(I,"$&/")+"/"),V(re,X,se,"",function(be){return be})):re!=null&&($(re)&&(re=z(re,se+(re.key==null||k&&k.key===re.key?"":(""+re.key).replace(I,"$&/")+"/")+le)),X.push(re)),1;le=0;var Ae=L===""?".":L+":";if(M(k))for(var ge=0;ge<k.length;ge++)L=k[ge],fe=Ae+U(L,ge),le+=V(L,X,se,fe,re);else if(ge=v(k),typeof ge=="function")for(k=ge.call(k),ge=0;!(L=k.next()).done;)L=L.value,fe=Ae+U(L,ge++),le+=V(L,X,se,fe,re);else if(fe==="object"){if(typeof k.then=="function")return V(Y(k),X,se,L,re);throw X=String(k),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return le}function H(k,X,se){if(k==null)return k;var L=[],re=0;return V(k,L,"","",function(fe){return X.call(se,fe,re++)}),L}function Z(k){if(k._status===-1){var X=k._result;X=X(),X.then(function(se){(k._status===0||k._status===-1)&&(k._status=1,k._result=se)},function(se){(k._status===0||k._status===-1)&&(k._status=2,k._result=se)}),k._status===-1&&(k._status=0,k._result=X)}if(k._status===1)return k._result.default;throw k._result}var ae=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function J(){}return Ue.Children={map:H,forEach:function(k,X,se){H(k,function(){X.apply(this,arguments)},se)},count:function(k){var X=0;return H(k,function(){X++}),X},toArray:function(k){return H(k,function(X){return X})||[]},only:function(k){if(!$(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Ue.Component=C,Ue.Fragment=n,Ue.Profiler=o,Ue.PureComponent=O,Ue.StrictMode=i,Ue.Suspense=d,Ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Ue.act=function(){throw Error("act(...) is not supported in production builds of React.")},Ue.cache=function(k){return function(){return k.apply(null,arguments)}},Ue.cloneElement=function(k,X,se){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var L=w({},k.props),re=k.key,fe=void 0;if(X!=null)for(le in X.ref!==void 0&&(fe=void 0),X.key!==void 0&&(re=""+X.key),X)!D.call(X,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&X.ref===void 0||(L[le]=X[le]);var le=arguments.length-2;if(le===1)L.children=se;else if(1<le){for(var Ae=Array(le),ge=0;ge<le;ge++)Ae[ge]=arguments[ge+2];L.children=Ae}return P(k.type,re,void 0,void 0,fe,L)},Ue.createContext=function(k){return k={$$typeof:u,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:l,_context:k},k},Ue.createElement=function(k,X,se){var L,re={},fe=null;if(X!=null)for(L in X.key!==void 0&&(fe=""+X.key),X)D.call(X,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(re[L]=X[L]);var le=arguments.length-2;if(le===1)re.children=se;else if(1<le){for(var Ae=Array(le),ge=0;ge<le;ge++)Ae[ge]=arguments[ge+2];re.children=Ae}if(k&&k.defaultProps)for(L in le=k.defaultProps,le)re[L]===void 0&&(re[L]=le[L]);return P(k,fe,void 0,void 0,null,re)},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(k){return{$$typeof:f,render:k}},Ue.isValidElement=$,Ue.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:Z}},Ue.memo=function(k,X){return{$$typeof:p,type:k,compare:X===void 0?null:X}},Ue.startTransition=function(k){var X=R.T,se={};R.T=se;try{var L=k(),re=R.S;re!==null&&re(se,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(J,ae)}catch(fe){ae(fe)}finally{R.T=X}},Ue.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Ue.use=function(k){return R.H.use(k)},Ue.useActionState=function(k,X,se){return R.H.useActionState(k,X,se)},Ue.useCallback=function(k,X){return R.H.useCallback(k,X)},Ue.useContext=function(k){return R.H.useContext(k)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(k,X){return R.H.useDeferredValue(k,X)},Ue.useEffect=function(k,X){return R.H.useEffect(k,X)},Ue.useId=function(){return R.H.useId()},Ue.useImperativeHandle=function(k,X,se){return R.H.useImperativeHandle(k,X,se)},Ue.useInsertionEffect=function(k,X){return R.H.useInsertionEffect(k,X)},Ue.useLayoutEffect=function(k,X){return R.H.useLayoutEffect(k,X)},Ue.useMemo=function(k,X){return R.H.useMemo(k,X)},Ue.useOptimistic=function(k,X){return R.H.useOptimistic(k,X)},Ue.useReducer=function(k,X,se){return R.H.useReducer(k,X,se)},Ue.useRef=function(k){return R.H.useRef(k)},Ue.useState=function(k){return R.H.useState(k)},Ue.useSyncExternalStore=function(k,X,se){return R.H.useSyncExternalStore(k,X,se)},Ue.useTransition=function(){return R.H.useTransition()},Ue.version="19.0.0",Ue}var w0;function Rm(){return w0||(w0=1,Qp.exports=v2()),Qp.exports}var T=Rm();const rt=rf(T),Uh=g2({__proto__:null,default:rt},[T]);var Zp={exports:{}},Qs={},Jp={exports:{}},eh={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var x0;function S2(){return x0||(x0=1,function(e){function t(H,Z){var ae=H.length;H.push(Z);e:for(;0<ae;){var J=ae-1>>>1,k=H[J];if(0<o(k,Z))H[J]=Z,H[ae]=k,ae=J;else break e}}function n(H){return H.length===0?null:H[0]}function i(H){if(H.length===0)return null;var Z=H[0],ae=H.pop();if(ae!==Z){H[0]=ae;e:for(var J=0,k=H.length,X=k>>>1;J<X;){var se=2*(J+1)-1,L=H[se],re=se+1,fe=H[re];if(0>o(L,ae))re<k&&0>o(fe,L)?(H[J]=fe,H[re]=ae,J=re):(H[J]=L,H[se]=ae,J=se);else if(re<k&&0>o(fe,ae))H[J]=fe,H[re]=ae,J=re;else break e}}return Z}function o(H,Z){var ae=H.sortIndex-Z.sortIndex;return ae!==0?ae:H.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],p=[],m=1,g=null,v=3,b=!1,w=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function _(H){for(var Z=n(p);Z!==null;){if(Z.callback===null)i(p);else if(Z.startTime<=H)i(p),Z.sortIndex=Z.expirationTime,t(d,Z);else break;Z=n(p)}}function M(H){if(S=!1,_(H),!w)if(n(d)!==null)w=!0,Y();else{var Z=n(p);Z!==null&&V(M,Z.startTime-H)}}var R=!1,D=-1,P=5,z=-1;function $(){return!(e.unstable_now()-z<P)}function E(){if(R){var H=e.unstable_now();z=H;var Z=!0;try{e:{w=!1,S&&(S=!1,A(D),D=-1),b=!0;var ae=v;try{t:{for(_(H),g=n(d);g!==null&&!(g.expirationTime>H&&$());){var J=g.callback;if(typeof J=="function"){g.callback=null,v=g.priorityLevel;var k=J(g.expirationTime<=H);if(H=e.unstable_now(),typeof k=="function"){g.callback=k,_(H),Z=!0;break t}g===n(d)&&i(d),_(H)}else i(d);g=n(d)}if(g!==null)Z=!0;else{var X=n(p);X!==null&&V(M,X.startTime-H),Z=!1}}break e}finally{g=null,v=ae,b=!1}Z=void 0}}finally{Z?I():R=!1}}}var I;if(typeof O=="function")I=function(){O(E)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,G=U.port2;U.port1.onmessage=E,I=function(){G.postMessage(null)}}else I=function(){C(E,0)};function Y(){R||(R=!0,I())}function V(H,Z){D=C(function(){H(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_continueExecution=function(){w||b||(w=!0,Y())},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(H){switch(v){case 1:case 2:case 3:var Z=3;break;default:Z=v}var ae=v;v=Z;try{return H()}finally{v=ae}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ae=v;v=H;try{return Z()}finally{v=ae}},e.unstable_scheduleCallback=function(H,Z,ae){var J=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?J+ae:J):ae=J,H){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=ae+k,H={id:m++,callback:Z,priorityLevel:H,startTime:ae,expirationTime:k,sortIndex:-1},ae>J?(H.sortIndex=ae,t(p,H),n(d)===null&&H===n(p)&&(S?(A(D),D=-1):S=!0,V(M,ae-J))):(H.sortIndex=k,t(d,H),w||b||(w=!0,Y())),H},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(H){var Z=v;return function(){var ae=v;v=Z;try{return H.apply(this,arguments)}finally{v=ae}}}}(eh)),eh}var C0;function w2(){return C0||(C0=1,Jp.exports=S2()),Jp.exports}var th={exports:{}},gn={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var k0;function x2(){if(k0)return gn;k0=1;var e=Rm();function t(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function l(d,p,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:d,containerInfo:p,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return gn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,gn.createPortal=function(d,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return l(d,p,null,m)},gn.flushSync=function(d){var p=u.T,m=i.p;try{if(u.T=null,i.p=2,d)return d()}finally{u.T=p,i.p=m,i.d.f()}},gn.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(d,p))},gn.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},gn.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var m=p.as,g=f(m,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?i.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:b}):m==="script"&&i.d.X(d,{crossOrigin:g,integrity:v,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},gn.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=f(p.as,p.crossOrigin);i.d.M(d,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(d)},gn.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,g=f(m,p.crossOrigin);i.d.L(d,m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},gn.preloadModule=function(d,p){if(typeof d=="string")if(p){var m=f(p.as,p.crossOrigin);i.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(d)},gn.requestFormReset=function(d){i.d.r(d)},gn.unstable_batchedUpdates=function(d,p){return d(p)},gn.useFormState=function(d,p,m){return u.H.useFormState(d,p,m)},gn.useFormStatus=function(){return u.H.useHostTransitionStatus()},gn.version="19.0.0",gn}var E0;function X1(){if(E0)return th.exports;E0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),th.exports=x2(),th.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var T0;function C2(){if(T0)return Qs;T0=1;var e=w2(),t=Rm(),n=X1();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}var l=Symbol.for("react.element"),u=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),M=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function D(r){return r===null||typeof r!="object"?null:(r=R&&r[R]||r["@@iterator"],typeof r=="function"?r:null)}var P=Symbol.for("react.client.reference");function z(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===P?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case d:return"Fragment";case f:return"Portal";case m:return"Profiler";case p:return"StrictMode";case S:return"Suspense";case C:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case b:return(r.displayName||"Context")+".Provider";case v:return(r._context.displayName||"Context")+".Consumer";case w:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case A:return a=r.displayName||null,a!==null?a:z(r.type)||"Memo";case O:a=r._payload,r=r._init;try{return z(r(a))}catch{}}return null}var $=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=Object.assign,I,U;function G(r){if(I===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);I=a&&a[1]||"",U=-1<s.stack.indexOf(`
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+I+r+U}var Y=!1;function V(r,a){if(!r||Y)return"";Y=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ne){var Q=ne}Reflect.construct(r,[],ce)}else{try{ce.call()}catch(ne){Q=ne}r.call(ce.prototype)}}else{try{throw Error()}catch(ne){Q=ne}(ce=r())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ne){if(ne&&Q&&typeof ne.stack=="string")return[ne.stack,Q.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),x=y[0],N=y[1];if(x&&N){var j=x.split(`
`),F=N.split(`
`);for(h=c=0;c<j.length&&!j[c].includes("DetermineComponentFrameRoot");)c++;for(;h<F.length&&!F[h].includes("DetermineComponentFrameRoot");)h++;if(c===j.length||h===F.length)for(c=j.length-1,h=F.length-1;1<=c&&0<=h&&j[c]!==F[h];)h--;for(;1<=c&&0<=h;c--,h--)if(j[c]!==F[h]){if(c!==1||h!==1)do if(c--,h--,0>h||j[c]!==F[h]){var ie=`
`+j[c].replace(" at new "," at ");return r.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",r.displayName)),ie}while(1<=c&&0<=h);break}}}finally{Y=!1,Error.prepareStackTrace=s}return(s=r?r.displayName||r.name:"")?G(s):""}function H(r){switch(r.tag){case 26:case 27:case 5:return G(r.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 15:return r=V(r.type,!1),r;case 11:return r=V(r.type.render,!1),r;case 1:return r=V(r.type,!0),r;default:return""}}function Z(r){try{var a="";do a+=H(r),r=r.return;while(r);return a}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}function ae(r){var a=r,s=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(s=a.return),r=a.return;while(r)}return a.tag===3?s:null}function J(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function k(r){if(ae(r)!==r)throw Error(i(188))}function X(r){var a=r.alternate;if(!a){if(a=ae(r),a===null)throw Error(i(188));return a!==r?null:r}for(var s=r,c=a;;){var h=s.return;if(h===null)break;var y=h.alternate;if(y===null){if(c=h.return,c!==null){s=c;continue}break}if(h.child===y.child){for(y=h.child;y;){if(y===s)return k(h),r;if(y===c)return k(h),a;y=y.sibling}throw Error(i(188))}if(s.return!==c.return)s=h,c=y;else{for(var x=!1,N=h.child;N;){if(N===s){x=!0,s=h,c=y;break}if(N===c){x=!0,c=h,s=y;break}N=N.sibling}if(!x){for(N=y.child;N;){if(N===s){x=!0,s=y,c=h;break}if(N===c){x=!0,c=y,s=h;break}N=N.sibling}if(!x)throw Error(i(189))}}if(s.alternate!==c)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?r:a}function se(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=se(r),a!==null)return a;r=r.sibling}return null}var L=Array.isArray,re=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},le=[],Ae=-1;function ge(r){return{current:r}}function be(r){0>Ae||(r.current=le[Ae],le[Ae]=null,Ae--)}function ue(r,a){Ae++,le[Ae]=r.current,r.current=a}var xe=ge(null),ke=ge(null),je=ge(null),Ce=ge(null);function $e(r,a){switch(ue(je,a),ue(ke,r),ue(xe,null),r=a.nodeType,r){case 9:case 11:a=(a=a.documentElement)&&(a=a.namespaceURI)?Kv(a):0;break;default:if(r=r===8?a.parentNode:a,a=r.tagName,r=r.namespaceURI)r=Kv(r),a=Yv(r,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}be(xe),ue(xe,a)}function et(){be(xe),be(ke),be(je)}function dt(r){r.memoizedState!==null&&ue(Ce,r);var a=xe.current,s=Yv(a,r.type);a!==s&&(ue(ke,r),ue(xe,s))}function Pe(r){ke.current===r&&(be(xe),be(ke)),Ce.current===r&&(be(Ce),Fs._currentValue=fe)}var bt=Object.prototype.hasOwnProperty,Ye=e.unstable_scheduleCallback,it=e.unstable_cancelCallback,we=e.unstable_shouldYield,pn=e.unstable_requestPaint,tt=e.unstable_now,Sn=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,de=e.unstable_UserBlockingPriority,he=e.unstable_NormalPriority,ye=e.unstable_LowPriority,Re=e.unstable_IdlePriority,Me=e.log,st=e.unstable_setDisableYieldValue,nt=null,At=null;function Ee(r){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(nt,r,void 0,(r.current.flags&128)===128)}catch{}}function Ne(r){if(typeof Me=="function"&&st(r),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(nt,r)}catch{}}var He=Math.clz32?Math.clz32:Vf,Bt=Math.log,Da=Math.LN2;function Vf(r){return r>>>=0,r===0?32:31-(Bt(r)/Da|0)|0}var La=128,jt=4194304;function $t(r){var a=r&42;if(a!==0)return a;switch(r&-r){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: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 r&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function tn(r,a){var s=r.pendingLanes;if(s===0)return 0;var c=0,h=r.suspendedLanes,y=r.pingedLanes,x=r.warmLanes;r=r.finishedLanes!==0;var N=s&134217727;return N!==0?(s=N&~h,s!==0?c=$t(s):(y&=N,y!==0?c=$t(y):r||(x=N&~x,x!==0&&(c=$t(x))))):(N=s&~h,N!==0?c=$t(N):y!==0?c=$t(y):r||(x=s&~x,x!==0&&(c=$t(x)))),c===0?0:a!==0&&a!==c&&(a&h)===0&&(h=c&-c,x=a&-a,h>=x||h===32&&(x&4194176)!==0)?a:c}function An(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function _n(r,a){switch(r){case 1:case 2:case 4:case 8:return a+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+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 hn(){var r=La;return La<<=1,(La&4194176)===0&&(La=128),r}function jn(){var r=jt;return jt<<=1,(jt&62914560)===0&&(jt=4194304),r}function Ar(r){for(var a=[],s=0;31>s;s++)a.push(r);return a}function Rt(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function _r(r,a,s,c,h,y){var x=r.pendingLanes;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=s,r.entangledLanes&=s,r.errorRecoveryDisabledLanes&=s,r.shellSuspendCounter=0;var N=r.entanglements,j=r.expirationTimes,F=r.hiddenUpdates;for(s=x&~s;0<s;){var ie=31-He(s),ce=1<<ie;N[ie]=0,j[ie]=-1;var Q=F[ie];if(Q!==null)for(F[ie]=null,ie=0;ie<Q.length;ie++){var ne=Q[ie];ne!==null&&(ne.lane&=-536870913)}s&=~ce}c!==0&&$n(r,c,0),y!==0&&h===0&&r.tag!==0&&(r.suspendedLanes|=y&~(x&~a))}function $n(r,a,s){r.pendingLanes|=a,r.suspendedLanes&=~a;var c=31-He(a);r.entangledLanes|=a,r.entanglements[c]=r.entanglements[c]|1073741824|s&4194218}function Xn(r,a){var s=r.entangledLanes|=a;for(r=r.entanglements;s;){var c=31-He(s),h=1<<c;h&a|r[c]&a&&(r[c]|=a),s&=~h}}function Si(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function wi(){var r=re.p;return r!==0?r:(r=window.event,r===void 0?32:d0(r.type))}function Rr(r,a){var s=re.p;try{return re.p=r,a()}finally{re.p=s}}var Rn=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Rn,On="__reactProps$"+Rn,za="__reactContainer$"+Rn,Gf="__reactEvents$"+Rn,ak="__reactListeners$"+Rn,ok="__reactHandles$"+Rn,Vg="__reactResources$"+Rn,ns="__reactMarker$"+Rn;function Kf(r){delete r[Vt],delete r[On],delete r[Gf],delete r[ak],delete r[ok]}function Qi(r){var a=r[Vt];if(a)return a;for(var s=r.parentNode;s;){if(a=s[za]||s[Vt]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(r=Qv(r);r!==null;){if(s=r[Vt])return s;r=Qv(r)}return a}r=s,s=r.parentNode}return null}function Ia(r){if(r=r[Vt]||r[za]){var a=r.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return r}return null}function rs(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Ba(r){var a=r[Vg];return a||(a=r[Vg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function nn(r){r[ns]=!0}var Gg=new Set,Kg={};function Zi(r,a){ja(r,a),ja(r+"Capture",a)}function ja(r,a){for(Kg[r]=a,r=0;r<a.length;r++)Gg.add(a[r])}var Yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sk=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]*$"),Yg={},Xg={};function lk(r){return bt.call(Xg,r)?!0:bt.call(Yg,r)?!1:sk.test(r)?Xg[r]=!0:(Yg[r]=!0,!1)}function iu(r,a,s){if(lk(a))if(s===null)r.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+s)}}function au(r,a,s){if(s===null)r.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+s)}}function Xr(r,a,s,c){if(c===null)r.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttributeNS(a,s,""+c)}}function Wn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Wg(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function uk(r){var a=Wg(r)?"checked":"value",s=Object.getOwnPropertyDescriptor(r.constructor.prototype,a),c=""+r[a];if(!r.hasOwnProperty(a)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,y=s.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return h.call(this)},set:function(x){c=""+x,y.call(this,x)}}),Object.defineProperty(r,a,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function ou(r){r._valueTracker||(r._valueTracker=uk(r))}function Qg(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var s=a.getValue(),c="";return r&&(c=Wg(r)?r.checked?"true":"false":r.value),r=c,r!==s?(a.setValue(r),!0):!1}function su(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var ck=/[\n"\\]/g;function Qn(r){return r.replace(ck,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Yf(r,a,s,c,h,y,x,N){r.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?r.type=x:r.removeAttribute("type"),a!=null?x==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Wn(a)):r.value!==""+Wn(a)&&(r.value=""+Wn(a)):x!=="submit"&&x!=="reset"||r.removeAttribute("value"),a!=null?Xf(r,x,Wn(a)):s!=null?Xf(r,x,Wn(s)):c!=null&&r.removeAttribute("value"),h==null&&y!=null&&(r.defaultChecked=!!y),h!=null&&(r.checked=h&&typeof h!="function"&&typeof h!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?r.name=""+Wn(N):r.removeAttribute("name")}function Zg(r,a,s,c,h,y,x,N){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(r.type=y),a!=null||s!=null){if(!(y!=="submit"&&y!=="reset"||a!=null))return;s=s!=null?""+Wn(s):"",a=a!=null?""+Wn(a):s,N||a===r.value||(r.value=a),r.defaultValue=a}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=N?r.checked:!!c,r.defaultChecked=!!c,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(r.name=x)}function Xf(r,a,s){a==="number"&&su(r.ownerDocument)===r||r.defaultValue===""+s||(r.defaultValue=""+s)}function $a(r,a,s,c){if(r=r.options,a){a={};for(var h=0;h<s.length;h++)a["$"+s[h]]=!0;for(s=0;s<r.length;s++)h=a.hasOwnProperty("$"+r[s].value),r[s].selected!==h&&(r[s].selected=h),h&&c&&(r[s].defaultSelected=!0)}else{for(s=""+Wn(s),a=null,h=0;h<r.length;h++){if(r[h].value===s){r[h].selected=!0,c&&(r[h].defaultSelected=!0);return}a!==null||r[h].disabled||(a=r[h])}a!==null&&(a.selected=!0)}}function Jg(r,a,s){if(a!=null&&(a=""+Wn(a),a!==r.value&&(r.value=a),s==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=s!=null?""+Wn(s):""}function ey(r,a,s,c){if(a==null){if(c!=null){if(s!=null)throw Error(i(92));if(L(c)){if(1<c.length)throw Error(i(93));c=c[0]}s=c}s==null&&(s=""),a=s}s=Wn(a),r.defaultValue=s,c=r.textContent,c===s&&c!==""&&c!==null&&(r.value=c)}function Pa(r,a){if(a){var s=r.firstChild;if(s&&s===r.lastChild&&s.nodeType===3){s.nodeValue=a;return}}r.textContent=a}var fk=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 ty(r,a,s){var c=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?c?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":c?r.setProperty(a,s):typeof s!="number"||s===0||fk.has(a)?a==="float"?r.cssFloat=s:r[a]=(""+s).trim():r[a]=s+"px"}function ny(r,a,s){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,s!=null){for(var c in s)!s.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var h in a)c=a[h],a.hasOwnProperty(h)&&s[h]!==c&&ty(r,h,c)}else for(var y in a)a.hasOwnProperty(y)&&ty(r,y,a[y])}function Wf(r){if(r.indexOf("-")===-1)return!1;switch(r){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 dk=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"]]),pk=/^[\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 lu(r){return pk.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}var Qf=null;function Zf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ua=null,Ha=null;function ry(r){var a=Ia(r);if(a&&(r=a.stateNode)){var s=r[On]||null;e:switch(r=a.stateNode,a.type){case"input":if(Yf(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=r;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Qn(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var c=s[a];if(c!==r&&c.form===r.form){var h=c[On]||null;if(!h)throw Error(i(90));Yf(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(a=0;a<s.length;a++)c=s[a],c.form===r.form&&Qg(c)}break e;case"textarea":Jg(r,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&$a(r,!!s.multiple,a,!1)}}}var Jf=!1;function iy(r,a,s){if(Jf)return r(a,s);Jf=!0;try{var c=r(a);return c}finally{if(Jf=!1,(Ua!==null||Ha!==null)&&(Vu(),Ua&&(a=Ua,r=Ha,Ha=Ua=null,ry(a),r)))for(a=0;a<r.length;a++)ry(r[a])}}function is(r,a){var s=r.stateNode;if(s===null)return null;var c=s[On]||null;if(c===null)return null;s=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(s&&typeof s!="function")throw Error(i(231,a,typeof s));return s}var ed=!1;if(Yr)try{var as={};Object.defineProperty(as,"passive",{get:function(){ed=!0}}),window.addEventListener("test",as,as),window.removeEventListener("test",as,as)}catch{ed=!1}var xi=null,td=null,uu=null;function ay(){if(uu)return uu;var r,a=td,s=a.length,c,h="value"in xi?xi.value:xi.textContent,y=h.length;for(r=0;r<s&&a[r]===h[r];r++);var x=s-r;for(c=1;c<=x&&a[s-c]===h[y-c];c++);return uu=h.slice(r,1<c?1-c:void 0)}function cu(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function fu(){return!0}function oy(){return!1}function Mn(r){function a(s,c,h,y,x){this._reactName=s,this._targetInst=h,this.type=c,this.nativeEvent=y,this.target=x,this.currentTarget=null;for(var N in r)r.hasOwnProperty(N)&&(s=r[N],this[N]=s?s(y):y[N]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?fu:oy,this.isPropagationStopped=oy,this}return E(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=fu)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=fu)},persist:function(){},isPersistent:fu}),a}var Ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},du=Mn(Ji),os=E({},Ji,{view:0,detail:0}),hk=Mn(os),nd,rd,ss,pu=E({},os,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ad,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ss&&(ss&&r.type==="mousemove"?(nd=r.screenX-ss.screenX,rd=r.screenY-ss.screenY):rd=nd=0,ss=r),nd)},movementY:function(r){return"movementY"in r?r.movementY:rd}}),sy=Mn(pu),mk=E({},pu,{dataTransfer:0}),gk=Mn(mk),yk=E({},os,{relatedTarget:0}),id=Mn(yk),bk=E({},Ji,{animationName:0,elapsedTime:0,pseudoElement:0}),vk=Mn(bk),Sk=E({},Ji,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),wk=Mn(Sk),xk=E({},Ji,{data:0}),ly=Mn(xk),Ck={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kk={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"},Ek={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tk(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=Ek[r])?!!a[r]:!1}function ad(){return Tk}var Ak=E({},os,{key:function(r){if(r.key){var a=Ck[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=cu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?kk[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ad,charCode:function(r){return r.type==="keypress"?cu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?cu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),_k=Mn(Ak),Rk=E({},pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uy=Mn(Rk),Ok=E({},os,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ad}),Mk=Mn(Ok),Nk=E({},Ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dk=Mn(Nk),Lk=E({},pu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),zk=Mn(Lk),Ik=E({},Ji,{newState:0,oldState:0}),Bk=Mn(Ik),jk=[9,13,27,32],od=Yr&&"CompositionEvent"in window,ls=null;Yr&&"documentMode"in document&&(ls=document.documentMode);var $k=Yr&&"TextEvent"in window&&!ls,cy=Yr&&(!od||ls&&8<ls&&11>=ls),fy=" ",dy=!1;function py(r,a){switch(r){case"keyup":return jk.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hy(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var qa=!1;function Pk(r,a){switch(r){case"compositionend":return hy(a);case"keypress":return a.which!==32?null:(dy=!0,fy);case"textInput":return r=a.data,r===fy&&dy?null:r;default:return null}}function Uk(r,a){if(qa)return r==="compositionend"||!od&&py(r,a)?(r=ay(),uu=td=xi=null,qa=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return cy&&a.locale!=="ko"?null:a.data;default:return null}}var Hk={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 my(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!Hk[r.type]:a==="textarea"}function gy(r,a,s,c){Ua?Ha?Ha.push(c):Ha=[c]:Ua=c,a=Wu(a,"onChange"),0<a.length&&(s=new du("onChange","change",null,s,c),r.push({event:s,listeners:a}))}var us=null,cs=null;function qk(r){Hv(r,0)}function hu(r){var a=rs(r);if(Qg(a))return r}function yy(r,a){if(r==="change")return a}var by=!1;if(Yr){var sd;if(Yr){var ld="oninput"in document;if(!ld){var vy=document.createElement("div");vy.setAttribute("oninput","return;"),ld=typeof vy.oninput=="function"}sd=ld}else sd=!1;by=sd&&(!document.documentMode||9<document.documentMode)}function Sy(){us&&(us.detachEvent("onpropertychange",wy),cs=us=null)}function wy(r){if(r.propertyName==="value"&&hu(cs)){var a=[];gy(a,cs,r,Zf(r)),iy(qk,a)}}function Fk(r,a,s){r==="focusin"?(Sy(),us=a,cs=s,us.attachEvent("onpropertychange",wy)):r==="focusout"&&Sy()}function Vk(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return hu(cs)}function Gk(r,a){if(r==="click")return hu(a)}function Kk(r,a){if(r==="input"||r==="change")return hu(a)}function Yk(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Pn=typeof Object.is=="function"?Object.is:Yk;function fs(r,a){if(Pn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var s=Object.keys(r),c=Object.keys(a);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var h=s[c];if(!bt.call(a,h)||!Pn(r[h],a[h]))return!1}return!0}function xy(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Cy(r,a){var s=xy(r);r=0;for(var c;s;){if(s.nodeType===3){if(c=r+s.textContent.length,r<=a&&c>=a)return{node:s,offset:a-r};r=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=xy(s)}}function ky(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?ky(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Ey(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=su(r.document);a instanceof r.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)r=a.contentWindow;else break;a=su(r.document)}return a}function ud(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function Xk(r,a){var s=Ey(a);a=r.focusedElem;var c=r.selectionRange;if(s!==a&&a&&a.ownerDocument&&ky(a.ownerDocument.documentElement,a)){if(c!==null&&ud(a)){if(r=c.start,s=c.end,s===void 0&&(s=r),"selectionStart"in a)a.selectionStart=r,a.selectionEnd=Math.min(s,a.value.length);else if(s=(r=a.ownerDocument||document)&&r.defaultView||window,s.getSelection){s=s.getSelection();var h=a.textContent.length,y=Math.min(c.start,h);c=c.end===void 0?y:Math.min(c.end,h),!s.extend&&y>c&&(h=c,c=y,y=h),h=Cy(a,y);var x=Cy(a,c);h&&x&&(s.rangeCount!==1||s.anchorNode!==h.node||s.anchorOffset!==h.offset||s.focusNode!==x.node||s.focusOffset!==x.offset)&&(r=r.createRange(),r.setStart(h.node,h.offset),s.removeAllRanges(),y>c?(s.addRange(r),s.extend(x.node,x.offset)):(r.setEnd(x.node,x.offset),s.addRange(r)))}}for(r=[],s=a;s=s.parentNode;)s.nodeType===1&&r.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<r.length;a++)s=r[a],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var Wk=Yr&&"documentMode"in document&&11>=document.documentMode,Fa=null,cd=null,ds=null,fd=!1;function Ty(r,a,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;fd||Fa==null||Fa!==su(c)||(c=Fa,"selectionStart"in c&&ud(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),ds&&fs(ds,c)||(ds=c,c=Wu(cd,"onSelect"),0<c.length&&(a=new du("onSelect","select",null,a,s),r.push({event:a,listeners:c}),a.target=Fa)))}function ea(r,a){var s={};return s[r.toLowerCase()]=a.toLowerCase(),s["Webkit"+r]="webkit"+a,s["Moz"+r]="moz"+a,s}var Va={animationend:ea("Animation","AnimationEnd"),animationiteration:ea("Animation","AnimationIteration"),animationstart:ea("Animation","AnimationStart"),transitionrun:ea("Transition","TransitionRun"),transitionstart:ea("Transition","TransitionStart"),transitioncancel:ea("Transition","TransitionCancel"),transitionend:ea("Transition","TransitionEnd")},dd={},Ay={};Yr&&(Ay=document.createElement("div").style,"AnimationEvent"in window||(delete Va.animationend.animation,delete Va.animationiteration.animation,delete Va.animationstart.animation),"TransitionEvent"in window||delete Va.transitionend.transition);function ta(r){if(dd[r])return dd[r];if(!Va[r])return r;var a=Va[r],s;for(s in a)if(a.hasOwnProperty(s)&&s in Ay)return dd[r]=a[s];return r}var _y=ta("animationend"),Ry=ta("animationiteration"),Oy=ta("animationstart"),Qk=ta("transitionrun"),Zk=ta("transitionstart"),Jk=ta("transitioncancel"),My=ta("transitionend"),Ny=new Map,Dy="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 scrollEnd toggle touchMove waiting wheel".split(" ");function gr(r,a){Ny.set(r,a),Zi(a,[r])}var Zn=[],Ga=0,pd=0;function mu(){for(var r=Ga,a=pd=Ga=0;a<r;){var s=Zn[a];Zn[a++]=null;var c=Zn[a];Zn[a++]=null;var h=Zn[a];Zn[a++]=null;var y=Zn[a];if(Zn[a++]=null,c!==null&&h!==null){var x=c.pending;x===null?h.next=h:(h.next=x.next,x.next=h),c.pending=h}y!==0&&Ly(s,h,y)}}function gu(r,a,s,c){Zn[Ga++]=r,Zn[Ga++]=a,Zn[Ga++]=s,Zn[Ga++]=c,pd|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function hd(r,a,s,c){return gu(r,a,s,c),yu(r)}function Ci(r,a){return gu(r,null,null,a),yu(r)}function Ly(r,a,s){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s);for(var h=!1,y=r.return;y!==null;)y.childLanes|=s,c=y.alternate,c!==null&&(c.childLanes|=s),y.tag===22&&(r=y.stateNode,r===null||r._visibility&1||(h=!0)),r=y,y=y.return;h&&a!==null&&r.tag===3&&(y=r.stateNode,h=31-He(s),y=y.hiddenUpdates,r=y[h],r===null?y[h]=[a]:r.push(a),a.lane=s|536870912)}function yu(r){if(50<Bs)throw Bs=0,Sp=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var Ka={},zy=new WeakMap;function Jn(r,a){if(typeof r=="object"&&r!==null){var s=zy.get(r);return s!==void 0?s:(a={value:r,source:a,stack:Z(a)},zy.set(r,a),a)}return{value:r,source:a,stack:Z(a)}}var Ya=[],Xa=0,bu=null,vu=0,er=[],tr=0,na=null,Wr=1,Qr="";function ra(r,a){Ya[Xa++]=vu,Ya[Xa++]=bu,bu=r,vu=a}function Iy(r,a,s){er[tr++]=Wr,er[tr++]=Qr,er[tr++]=na,na=r;var c=Wr;r=Qr;var h=32-He(c)-1;c&=~(1<<h),s+=1;var y=32-He(a)+h;if(30<y){var x=h-h%5;y=(c&(1<<x)-1).toString(32),c>>=x,h-=x,Wr=1<<32-He(a)+h|s<<h|c,Qr=y+r}else Wr=1<<y|s<<h|c,Qr=r}function md(r){r.return!==null&&(ra(r,1),Iy(r,1,0))}function gd(r){for(;r===bu;)bu=Ya[--Xa],Ya[Xa]=null,vu=Ya[--Xa],Ya[Xa]=null;for(;r===na;)na=er[--tr],er[tr]=null,Qr=er[--tr],er[tr]=null,Wr=er[--tr],er[tr]=null}var wn=null,un=null,at=!1,yr=null,Or=!1,yd=Error(i(519));function ia(r){var a=Error(i(418,""));throw ms(Jn(a,r)),yd}function By(r){var a=r.stateNode,s=r.type,c=r.memoizedProps;switch(a[Vt]=r,a[On]=c,s){case"dialog":Qe("cancel",a),Qe("close",a);break;case"iframe":case"object":case"embed":Qe("load",a);break;case"video":case"audio":for(s=0;s<$s.length;s++)Qe($s[s],a);break;case"source":Qe("error",a);break;case"img":case"image":case"link":Qe("error",a),Qe("load",a);break;case"details":Qe("toggle",a);break;case"input":Qe("invalid",a),Zg(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),ou(a);break;case"select":Qe("invalid",a);break;case"textarea":Qe("invalid",a),ey(a,c.value,c.defaultValue,c.children),ou(a)}s=c.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||c.suppressHydrationWarning===!0||Gv(a.textContent,s)?(c.popover!=null&&(Qe("beforetoggle",a),Qe("toggle",a)),c.onScroll!=null&&Qe("scroll",a),c.onScrollEnd!=null&&Qe("scrollend",a),c.onClick!=null&&(a.onclick=Qu),a=!0):a=!1,a||ia(r)}function jy(r){for(wn=r.return;wn;)switch(wn.tag){case 3:case 27:Or=!0;return;case 5:case 13:Or=!1;return;default:wn=wn.return}}function ps(r){if(r!==wn)return!1;if(!at)return jy(r),at=!0,!1;var a=!1,s;if((s=r.tag!==3&&r.tag!==27)&&((s=r.tag===5)&&(s=r.type,s=!(s!=="form"&&s!=="button")||Bp(r.type,r.memoizedProps)),s=!s),s&&(a=!0),a&&un&&ia(r),jy(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));e:{for(r=r.nextSibling,a=0;r;){if(r.nodeType===8)if(s=r.data,s==="/$"){if(a===0){un=vr(r.nextSibling);break e}a--}else s!=="$"&&s!=="$!"&&s!=="$?"||a++;r=r.nextSibling}un=null}}else un=wn?vr(r.stateNode.nextSibling):null;return!0}function hs(){un=wn=null,at=!1}function ms(r){yr===null?yr=[r]:yr.push(r)}var gs=Error(i(460)),$y=Error(i(474)),bd={then:function(){}};function Py(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Su(){}function Uy(r,a,s){switch(s=r[s],s===void 0?r.push(a):s!==a&&(a.then(Su,Su),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,r===gs?Error(i(483)):r;default:if(typeof a.status=="string")a.then(Su,Su);else{if(r=xt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(c){if(a.status==="pending"){var h=a;h.status="fulfilled",h.value=c}},function(c){if(a.status==="pending"){var h=a;h.status="rejected",h.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,r===gs?Error(i(483)):r}throw ys=a,gs}}var ys=null;function Hy(){if(ys===null)throw Error(i(459));var r=ys;return ys=null,r}var Wa=null,bs=0;function wu(r){var a=bs;return bs+=1,Wa===null&&(Wa=[]),Uy(Wa,r,a)}function vs(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function xu(r,a){throw a.$$typeof===l?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function qy(r){var a=r._init;return a(r._payload)}function Fy(r){function a(K,q){if(r){var W=K.deletions;W===null?(K.deletions=[q],K.flags|=16):W.push(q)}}function s(K,q){if(!r)return null;for(;q!==null;)a(K,q),q=q.sibling;return null}function c(K){for(var q=new Map;K!==null;)K.key!==null?q.set(K.key,K):q.set(K.index,K),K=K.sibling;return q}function h(K,q){return K=zi(K,q),K.index=0,K.sibling=null,K}function y(K,q,W){return K.index=W,r?(W=K.alternate,W!==null?(W=W.index,W<q?(K.flags|=33554434,q):W):(K.flags|=33554434,q)):(K.flags|=1048576,q)}function x(K){return r&&K.alternate===null&&(K.flags|=33554434),K}function N(K,q,W,oe){return q===null||q.tag!==6?(q=dp(W,K.mode,oe),q.return=K,q):(q=h(q,W),q.return=K,q)}function j(K,q,W,oe){var ve=W.type;return ve===d?ie(K,q,W.props.children,oe,W.key):q!==null&&(q.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===O&&qy(ve)===q.type)?(q=h(q,W.props),vs(q,W),q.return=K,q):(q=Pu(W.type,W.key,W.props,null,K.mode,oe),vs(q,W),q.return=K,q)}function F(K,q,W,oe){return q===null||q.tag!==4||q.stateNode.containerInfo!==W.containerInfo||q.stateNode.implementation!==W.implementation?(q=pp(W,K.mode,oe),q.return=K,q):(q=h(q,W.children||[]),q.return=K,q)}function ie(K,q,W,oe,ve){return q===null||q.tag!==7?(q=ha(W,K.mode,oe,ve),q.return=K,q):(q=h(q,W),q.return=K,q)}function ce(K,q,W){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=dp(""+q,K.mode,W),q.return=K,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case u:return W=Pu(q.type,q.key,q.props,null,K.mode,W),vs(W,q),W.return=K,W;case f:return q=pp(q,K.mode,W),q.return=K,q;case O:var oe=q._init;return q=oe(q._payload),ce(K,q,W)}if(L(q)||D(q))return q=ha(q,K.mode,W,null),q.return=K,q;if(typeof q.then=="function")return ce(K,wu(q),W);if(q.$$typeof===b)return ce(K,Bu(K,q),W);xu(K,q)}return null}function Q(K,q,W,oe){var ve=q!==null?q.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return ve!==null?null:N(K,q,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case u:return W.key===ve?j(K,q,W,oe):null;case f:return W.key===ve?F(K,q,W,oe):null;case O:return ve=W._init,W=ve(W._payload),Q(K,q,W,oe)}if(L(W)||D(W))return ve!==null?null:ie(K,q,W,oe,null);if(typeof W.then=="function")return Q(K,q,wu(W),oe);if(W.$$typeof===b)return Q(K,q,Bu(K,W),oe);xu(K,W)}return null}function ne(K,q,W,oe,ve){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return K=K.get(W)||null,N(q,K,""+oe,ve);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case u:return K=K.get(oe.key===null?W:oe.key)||null,j(q,K,oe,ve);case f:return K=K.get(oe.key===null?W:oe.key)||null,F(q,K,oe,ve);case O:var Ve=oe._init;return oe=Ve(oe._payload),ne(K,q,W,oe,ve)}if(L(oe)||D(oe))return K=K.get(W)||null,ie(q,K,oe,ve,null);if(typeof oe.then=="function")return ne(K,q,W,wu(oe),ve);if(oe.$$typeof===b)return ne(K,q,W,Bu(q,oe),ve);xu(q,oe)}return null}function Te(K,q,W,oe){for(var ve=null,Ve=null,_e=q,De=q=0,on=null;_e!==null&&De<W.length;De++){_e.index>De?(on=_e,_e=null):on=_e.sibling;var ot=Q(K,_e,W[De],oe);if(ot===null){_e===null&&(_e=on);break}r&&_e&&ot.alternate===null&&a(K,_e),q=y(ot,q,De),Ve===null?ve=ot:Ve.sibling=ot,Ve=ot,_e=on}if(De===W.length)return s(K,_e),at&&ra(K,De),ve;if(_e===null){for(;De<W.length;De++)_e=ce(K,W[De],oe),_e!==null&&(q=y(_e,q,De),Ve===null?ve=_e:Ve.sibling=_e,Ve=_e);return at&&ra(K,De),ve}for(_e=c(_e);De<W.length;De++)on=ne(_e,K,De,W[De],oe),on!==null&&(r&&on.alternate!==null&&_e.delete(on.key===null?De:on.key),q=y(on,q,De),Ve===null?ve=on:Ve.sibling=on,Ve=on);return r&&_e.forEach(function(Hi){return a(K,Hi)}),at&&ra(K,De),ve}function ze(K,q,W,oe){if(W==null)throw Error(i(151));for(var ve=null,Ve=null,_e=q,De=q=0,on=null,ot=W.next();_e!==null&&!ot.done;De++,ot=W.next()){_e.index>De?(on=_e,_e=null):on=_e.sibling;var Hi=Q(K,_e,ot.value,oe);if(Hi===null){_e===null&&(_e=on);break}r&&_e&&Hi.alternate===null&&a(K,_e),q=y(Hi,q,De),Ve===null?ve=Hi:Ve.sibling=Hi,Ve=Hi,_e=on}if(ot.done)return s(K,_e),at&&ra(K,De),ve;if(_e===null){for(;!ot.done;De++,ot=W.next())ot=ce(K,ot.value,oe),ot!==null&&(q=y(ot,q,De),Ve===null?ve=ot:Ve.sibling=ot,Ve=ot);return at&&ra(K,De),ve}for(_e=c(_e);!ot.done;De++,ot=W.next())ot=ne(_e,K,De,ot.value,oe),ot!==null&&(r&&ot.alternate!==null&&_e.delete(ot.key===null?De:ot.key),q=y(ot,q,De),Ve===null?ve=ot:Ve.sibling=ot,Ve=ot);return r&&_e.forEach(function(p2){return a(K,p2)}),at&&ra(K,De),ve}function Lt(K,q,W,oe){if(typeof W=="object"&&W!==null&&W.type===d&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case u:e:{for(var ve=W.key;q!==null;){if(q.key===ve){if(ve=W.type,ve===d){if(q.tag===7){s(K,q.sibling),oe=h(q,W.props.children),oe.return=K,K=oe;break e}}else if(q.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===O&&qy(ve)===q.type){s(K,q.sibling),oe=h(q,W.props),vs(oe,W),oe.return=K,K=oe;break e}s(K,q);break}else a(K,q);q=q.sibling}W.type===d?(oe=ha(W.props.children,K.mode,oe,W.key),oe.return=K,K=oe):(oe=Pu(W.type,W.key,W.props,null,K.mode,oe),vs(oe,W),oe.return=K,K=oe)}return x(K);case f:e:{for(ve=W.key;q!==null;){if(q.key===ve)if(q.tag===4&&q.stateNode.containerInfo===W.containerInfo&&q.stateNode.implementation===W.implementation){s(K,q.sibling),oe=h(q,W.children||[]),oe.return=K,K=oe;break e}else{s(K,q);break}else a(K,q);q=q.sibling}oe=pp(W,K.mode,oe),oe.return=K,K=oe}return x(K);case O:return ve=W._init,W=ve(W._payload),Lt(K,q,W,oe)}if(L(W))return Te(K,q,W,oe);if(D(W)){if(ve=D(W),typeof ve!="function")throw Error(i(150));return W=ve.call(W),ze(K,q,W,oe)}if(typeof W.then=="function")return Lt(K,q,wu(W),oe);if(W.$$typeof===b)return Lt(K,q,Bu(K,W),oe);xu(K,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,q!==null&&q.tag===6?(s(K,q.sibling),oe=h(q,W),oe.return=K,K=oe):(s(K,q),oe=dp(W,K.mode,oe),oe.return=K,K=oe),x(K)):s(K,q)}return function(K,q,W,oe){try{bs=0;var ve=Lt(K,q,W,oe);return Wa=null,ve}catch(_e){if(_e===gs)throw _e;var Ve=ar(29,_e,null,K.mode);return Ve.lanes=oe,Ve.return=K,Ve}finally{}}}var aa=Fy(!0),Vy=Fy(!1),Qa=ge(null),Cu=ge(0);function Gy(r,a){r=li,ue(Cu,r),ue(Qa,a),li=r|a.baseLanes}function vd(){ue(Cu,li),ue(Qa,Qa.current)}function Sd(){li=Cu.current,be(Qa),be(Cu)}var nr=ge(null),Mr=null;function ki(r){var a=r.alternate;ue(Qt,Qt.current&1),ue(nr,r),Mr===null&&(a===null||Qa.current!==null||a.memoizedState!==null)&&(Mr=r)}function Ky(r){if(r.tag===22){if(ue(Qt,Qt.current),ue(nr,r),Mr===null){var a=r.alternate;a!==null&&a.memoizedState!==null&&(Mr=r)}}else Ei()}function Ei(){ue(Qt,Qt.current),ue(nr,nr.current)}function Zr(r){be(nr),Mr===r&&(Mr=null),be(Qt)}var Qt=ge(0);function ku(r){for(var a=r;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var eE=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(s,c){r.push(c)}};this.abort=function(){a.aborted=!0,r.forEach(function(s){return s()})}},tE=e.unstable_scheduleCallback,nE=e.unstable_NormalPriority,Zt={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wd(){return{controller:new eE,data:new Map,refCount:0}}function Ss(r){r.refCount--,r.refCount===0&&tE(nE,function(){r.controller.abort()})}var ws=null,xd=0,Za=0,Ja=null;function rE(r,a){if(ws===null){var s=ws=[];xd=0,Za=_p(),Ja={status:"pending",value:void 0,then:function(c){s.push(c)}}}return xd++,a.then(Yy,Yy),a}function Yy(){if(--xd===0&&ws!==null){Ja!==null&&(Ja.status="fulfilled");var r=ws;ws=null,Za=0,Ja=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function iE(r,a){var s=[],c={status:"pending",value:null,reason:null,then:function(h){s.push(h)}};return r.then(function(){c.status="fulfilled",c.value=a;for(var h=0;h<s.length;h++)(0,s[h])(a)},function(h){for(c.status="rejected",c.reason=h,h=0;h<s.length;h++)(0,s[h])(void 0)}),c}var Xy=$.S;$.S=function(r,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&rE(r,a),Xy!==null&&Xy(r,a)};var oa=ge(null);function Cd(){var r=oa.current;return r!==null?r:xt.pooledCache}function Eu(r,a){a===null?ue(oa,oa.current):ue(oa,a.pool)}function Wy(){var r=Cd();return r===null?null:{parent:Zt._currentValue,pool:r}}var Ti=0,qe=null,mt=null,Gt=null,Tu=!1,eo=!1,sa=!1,Au=0,xs=0,to=null,aE=0;function Pt(){throw Error(i(321))}function kd(r,a){if(a===null)return!1;for(var s=0;s<a.length&&s<r.length;s++)if(!Pn(r[s],a[s]))return!1;return!0}function Ed(r,a,s,c,h,y){return Ti=y,qe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,$.H=r===null||r.memoizedState===null?la:Ai,sa=!1,y=s(c,h),sa=!1,eo&&(y=Zy(a,s,c,h)),Qy(r),y}function Qy(r){$.H=Nr;var a=mt!==null&&mt.next!==null;if(Ti=0,Gt=mt=qe=null,Tu=!1,xs=0,to=null,a)throw Error(i(300));r===null||rn||(r=r.dependencies,r!==null&&Iu(r)&&(rn=!0))}function Zy(r,a,s,c){qe=r;var h=0;do{if(eo&&(to=null),xs=0,eo=!1,25<=h)throw Error(i(301));if(h+=1,Gt=mt=null,r.updateQueue!=null){var y=r.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}$.H=ua,y=a(s,c)}while(eo);return y}function oE(){var r=$.H,a=r.useState()[0];return a=typeof a.then=="function"?Cs(a):a,r=r.useState()[0],(mt!==null?mt.memoizedState:null)!==r&&(qe.flags|=1024),a}function Td(){var r=Au!==0;return Au=0,r}function Ad(r,a,s){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~s}function _d(r){if(Tu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Tu=!1}Ti=0,Gt=mt=qe=null,eo=!1,xs=Au=0,to=null}function Nn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gt===null?qe.memoizedState=Gt=r:Gt=Gt.next=r,Gt}function Kt(){if(mt===null){var r=qe.alternate;r=r!==null?r.memoizedState:null}else r=mt.next;var a=Gt===null?qe.memoizedState:Gt.next;if(a!==null)Gt=a,mt=r;else{if(r===null)throw qe.alternate===null?Error(i(467)):Error(i(310));mt=r,r={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Gt===null?qe.memoizedState=Gt=r:Gt=Gt.next=r}return Gt}var _u;_u=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Cs(r){var a=xs;return xs+=1,to===null&&(to=[]),r=Uy(to,r,a),a=qe,(Gt===null?a.memoizedState:Gt.next)===null&&(a=a.alternate,$.H=a===null||a.memoizedState===null?la:Ai),r}function Ru(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Cs(r);if(r.$$typeof===b)return mn(r)}throw Error(i(438,String(r)))}function Rd(r){var a=null,s=qe.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var c=qe.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(h){return h.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=_u(),qe.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(r),c=0;c<r;c++)s[c]=M;return a.index++,s}function Jr(r,a){return typeof a=="function"?a(r):a}function Ou(r){var a=Kt();return Od(a,mt,r)}function Od(r,a,s){var c=r.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=s;var h=r.baseQueue,y=c.pending;if(y!==null){if(h!==null){var x=h.next;h.next=y.next,y.next=x}a.baseQueue=h=y,c.pending=null}if(y=r.baseState,h===null)r.memoizedState=y;else{a=h.next;var N=x=null,j=null,F=a,ie=!1;do{var ce=F.lane&-536870913;if(ce!==F.lane?(Je&ce)===ce:(Ti&ce)===ce){var Q=F.revertLane;if(Q===0)j!==null&&(j=j.next={lane:0,revertLane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),ce===Za&&(ie=!0);else if((Ti&Q)===Q){F=F.next,Q===Za&&(ie=!0);continue}else ce={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(N=j=ce,x=y):j=j.next=ce,qe.lanes|=Q,Ii|=Q;ce=F.action,sa&&s(y,ce),y=F.hasEagerState?F.eagerState:s(y,ce)}else Q={lane:ce,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(N=j=Q,x=y):j=j.next=Q,qe.lanes|=ce,Ii|=ce;F=F.next}while(F!==null&&F!==a);if(j===null?x=y:j.next=N,!Pn(y,r.memoizedState)&&(rn=!0,ie&&(s=Ja,s!==null)))throw s;r.memoizedState=y,r.baseState=x,r.baseQueue=j,c.lastRenderedState=y}return h===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Md(r){var a=Kt(),s=a.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=r;var c=s.dispatch,h=s.pending,y=a.memoizedState;if(h!==null){s.pending=null;var x=h=h.next;do y=r(y,x.action),x=x.next;while(x!==h);Pn(y,a.memoizedState)||(rn=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),s.lastRenderedState=y}return[y,c]}function Jy(r,a,s){var c=qe,h=Kt(),y=at;if(y){if(s===void 0)throw Error(i(407));s=s()}else s=a();var x=!Pn((mt||h).memoizedState,s);if(x&&(h.memoizedState=s,rn=!0),h=h.queue,Ld(nb.bind(null,c,h,r),[r]),h.getSnapshot!==a||x||Gt!==null&&Gt.memoizedState.tag&1){if(c.flags|=2048,no(9,tb.bind(null,c,h,s,a),{destroy:void 0},null),xt===null)throw Error(i(349));y||(Ti&60)!==0||eb(c,a,s)}return s}function eb(r,a,s){r.flags|=16384,r={getSnapshot:a,value:s},a=qe.updateQueue,a===null?(a=_u(),qe.updateQueue=a,a.stores=[r]):(s=a.stores,s===null?a.stores=[r]:s.push(r))}function tb(r,a,s,c){a.value=s,a.getSnapshot=c,rb(a)&&ib(r)}function nb(r,a,s){return s(function(){rb(a)&&ib(r)})}function rb(r){var a=r.getSnapshot;r=r.value;try{var s=a();return!Pn(r,s)}catch{return!0}}function ib(r){var a=Ci(r,2);a!==null&&xn(a,r,2)}function Nd(r){var a=Nn();if(typeof r=="function"){var s=r;if(r=s(),sa){Ne(!0);try{s()}finally{Ne(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:r},a}function ab(r,a,s,c){return r.baseState=s,Od(r,mt,typeof c=="function"?c:Jr)}function sE(r,a,s,c,h){if(Du(r))throw Error(i(485));if(r=a.action,r!==null){var y={payload:h,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){y.listeners.push(x)}};$.T!==null?s(!0):y.isTransition=!1,c(y),s=a.pending,s===null?(y.next=a.pending=y,ob(a,y)):(y.next=s.next,a.pending=s.next=y)}}function ob(r,a){var s=a.action,c=a.payload,h=r.state;if(a.isTransition){var y=$.T,x={};$.T=x;try{var N=s(h,c),j=$.S;j!==null&&j(x,N),sb(r,a,N)}catch(F){Dd(r,a,F)}finally{$.T=y}}else try{y=s(h,c),sb(r,a,y)}catch(F){Dd(r,a,F)}}function sb(r,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){lb(r,a,c)},function(c){return Dd(r,a,c)}):lb(r,a,s)}function lb(r,a,s){a.status="fulfilled",a.value=s,ub(a),r.state=s,a=r.pending,a!==null&&(s=a.next,s===a?r.pending=null:(s=s.next,a.next=s,ob(r,s)))}function Dd(r,a,s){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=s,ub(a),a=a.next;while(a!==c)}r.action=null}function ub(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function cb(r,a){return a}function fb(r,a){if(at){var s=xt.formState;if(s!==null){e:{var c=qe;if(at){if(un){t:{for(var h=un,y=Or;h.nodeType!==8;){if(!y){h=null;break t}if(h=vr(h.nextSibling),h===null){h=null;break t}}y=h.data,h=y==="F!"||y==="F"?h:null}if(h){un=vr(h.nextSibling),c=h.data==="F!";break e}}ia(c)}c=!1}c&&(a=s[0])}}return s=Nn(),s.memoizedState=s.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cb,lastRenderedState:a},s.queue=c,s=Rb.bind(null,qe,c),c.dispatch=s,c=Nd(!1),y=$d.bind(null,qe,!1,c.queue),c=Nn(),h={state:a,dispatch:null,action:r,pending:null},c.queue=h,s=sE.bind(null,qe,h,y,s),h.dispatch=s,c.memoizedState=r,[a,s,!1]}function db(r){var a=Kt();return pb(a,mt,r)}function pb(r,a,s){a=Od(r,a,cb)[0],r=Ou(Jr)[0],a=typeof a=="object"&&a!==null&&typeof a.then=="function"?Cs(a):a;var c=Kt(),h=c.queue,y=h.dispatch;return s!==c.memoizedState&&(qe.flags|=2048,no(9,lE.bind(null,h,s),{destroy:void 0},null)),[a,y,r]}function lE(r,a){r.action=a}function hb(r){var a=Kt(),s=mt;if(s!==null)return pb(a,s,r);Kt(),a=a.memoizedState,s=Kt();var c=s.queue.dispatch;return s.memoizedState=r,[a,c,!1]}function no(r,a,s,c){return r={tag:r,create:a,inst:s,deps:c,next:null},a=qe.updateQueue,a===null&&(a=_u(),qe.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=r.next=r:(c=s.next,s.next=r,r.next=c,a.lastEffect=r),r}function mb(){return Kt().memoizedState}function Mu(r,a,s,c){var h=Nn();qe.flags|=r,h.memoizedState=no(1|a,s,{destroy:void 0},c===void 0?null:c)}function Nu(r,a,s,c){var h=Kt();c=c===void 0?null:c;var y=h.memoizedState.inst;mt!==null&&c!==null&&kd(c,mt.memoizedState.deps)?h.memoizedState=no(a,s,y,c):(qe.flags|=r,h.memoizedState=no(1|a,s,y,c))}function gb(r,a){Mu(8390656,8,r,a)}function Ld(r,a){Nu(2048,8,r,a)}function yb(r,a){return Nu(4,2,r,a)}function bb(r,a){return Nu(4,4,r,a)}function vb(r,a){if(typeof a=="function"){r=r();var s=a(r);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Sb(r,a,s){s=s!=null?s.concat([r]):null,Nu(4,4,vb.bind(null,a,r),s)}function zd(){}function wb(r,a){var s=Kt();a=a===void 0?null:a;var c=s.memoizedState;return a!==null&&kd(a,c[1])?c[0]:(s.memoizedState=[r,a],r)}function xb(r,a){var s=Kt();a=a===void 0?null:a;var c=s.memoizedState;if(a!==null&&kd(a,c[1]))return c[0];if(c=r(),sa){Ne(!0);try{r()}finally{Ne(!1)}}return s.memoizedState=[c,a],c}function Id(r,a,s){return s===void 0||(Ti&1073741824)!==0?r.memoizedState=a:(r.memoizedState=s,r=kv(),qe.lanes|=r,Ii|=r,s)}function Cb(r,a,s,c){return Pn(s,a)?s:Qa.current!==null?(r=Id(r,s,c),Pn(r,a)||(rn=!0),r):(Ti&42)===0?(rn=!0,r.memoizedState=s):(r=kv(),qe.lanes|=r,Ii|=r,a)}function kb(r,a,s,c,h){var y=re.p;re.p=y!==0&&8>y?y:8;var x=$.T,N={};$.T=N,$d(r,!1,a,s);try{var j=h(),F=$.S;if(F!==null&&F(N,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var ie=iE(j,c);ks(r,a,ie,Fn(r))}else ks(r,a,c,Fn(r))}catch(ce){ks(r,a,{then:function(){},status:"rejected",reason:ce},Fn())}finally{re.p=y,$.T=x}}function uE(){}function Bd(r,a,s,c){if(r.tag!==5)throw Error(i(476));var h=Eb(r).queue;kb(r,h,a,fe,s===null?uE:function(){return Tb(r),s(c)})}function Eb(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:fe},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:s},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function Tb(r){var a=Eb(r).next.queue;ks(r,a,{},Fn())}function jd(){return mn(Fs)}function Ab(){return Kt().memoizedState}function _b(){return Kt().memoizedState}function cE(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var s=Fn();r=Oi(s);var c=Mi(a,r,s);c!==null&&(xn(c,a,s),As(c,a,s)),a={cache:wd()},r.payload=a;return}a=a.return}}function fE(r,a,s){var c=Fn();s={lane:c,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},Du(r)?Ob(a,s):(s=hd(r,a,s,c),s!==null&&(xn(s,r,c),Mb(s,a,c)))}function Rb(r,a,s){var c=Fn();ks(r,a,s,c)}function ks(r,a,s,c){var h={lane:c,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(Du(r))Ob(a,h);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var x=a.lastRenderedState,N=y(x,s);if(h.hasEagerState=!0,h.eagerState=N,Pn(N,x))return gu(r,a,h,0),xt===null&&mu(),!1}catch{}finally{}if(s=hd(r,a,h,c),s!==null)return xn(s,r,c),Mb(s,a,c),!0}return!1}function $d(r,a,s,c){if(c={lane:2,revertLane:_p(),action:c,hasEagerState:!1,eagerState:null,next:null},Du(r)){if(a)throw Error(i(479))}else a=hd(r,s,c,2),a!==null&&xn(a,r,2)}function Du(r){var a=r.alternate;return r===qe||a!==null&&a===qe}function Ob(r,a){eo=Tu=!0;var s=r.pending;s===null?a.next=a:(a.next=s.next,s.next=a),r.pending=a}function Mb(r,a,s){if((s&4194176)!==0){var c=a.lanes;c&=r.pendingLanes,s|=c,a.lanes=s,Xn(r,s)}}var Nr={readContext:mn,use:Ru,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useLayoutEffect:Pt,useInsertionEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useSyncExternalStore:Pt,useId:Pt};Nr.useCacheRefresh=Pt,Nr.useMemoCache=Pt,Nr.useHostTransitionStatus=Pt,Nr.useFormState=Pt,Nr.useActionState=Pt,Nr.useOptimistic=Pt;var la={readContext:mn,use:Ru,useCallback:function(r,a){return Nn().memoizedState=[r,a===void 0?null:a],r},useContext:mn,useEffect:gb,useImperativeHandle:function(r,a,s){s=s!=null?s.concat([r]):null,Mu(4194308,4,vb.bind(null,a,r),s)},useLayoutEffect:function(r,a){return Mu(4194308,4,r,a)},useInsertionEffect:function(r,a){Mu(4,2,r,a)},useMemo:function(r,a){var s=Nn();a=a===void 0?null:a;var c=r();if(sa){Ne(!0);try{r()}finally{Ne(!1)}}return s.memoizedState=[c,a],c},useReducer:function(r,a,s){var c=Nn();if(s!==void 0){var h=s(a);if(sa){Ne(!0);try{s(a)}finally{Ne(!1)}}}else h=a;return c.memoizedState=c.baseState=h,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:h},c.queue=r,r=r.dispatch=fE.bind(null,qe,r),[c.memoizedState,r]},useRef:function(r){var a=Nn();return r={current:r},a.memoizedState=r},useState:function(r){r=Nd(r);var a=r.queue,s=Rb.bind(null,qe,a);return a.dispatch=s,[r.memoizedState,s]},useDebugValue:zd,useDeferredValue:function(r,a){var s=Nn();return Id(s,r,a)},useTransition:function(){var r=Nd(!1);return r=kb.bind(null,qe,r.queue,!0,!1),Nn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,s){var c=qe,h=Nn();if(at){if(s===void 0)throw Error(i(407));s=s()}else{if(s=a(),xt===null)throw Error(i(349));(Je&60)!==0||eb(c,a,s)}h.memoizedState=s;var y={value:s,getSnapshot:a};return h.queue=y,gb(nb.bind(null,c,y,r),[r]),c.flags|=2048,no(9,tb.bind(null,c,y,s,a),{destroy:void 0},null),s},useId:function(){var r=Nn(),a=xt.identifierPrefix;if(at){var s=Qr,c=Wr;s=(c&~(1<<32-He(c)-1)).toString(32)+s,a=":"+a+"R"+s,s=Au++,0<s&&(a+="H"+s.toString(32)),a+=":"}else s=aE++,a=":"+a+"r"+s.toString(32)+":";return r.memoizedState=a},useCacheRefresh:function(){return Nn().memoizedState=cE.bind(null,qe)}};la.useMemoCache=Rd,la.useHostTransitionStatus=jd,la.useFormState=fb,la.useActionState=fb,la.useOptimistic=function(r){var a=Nn();a.memoizedState=a.baseState=r;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=$d.bind(null,qe,!0,s),s.dispatch=a,[r,a]};var Ai={readContext:mn,use:Ru,useCallback:wb,useContext:mn,useEffect:Ld,useImperativeHandle:Sb,useInsertionEffect:yb,useLayoutEffect:bb,useMemo:xb,useReducer:Ou,useRef:mb,useState:function(){return Ou(Jr)},useDebugValue:zd,useDeferredValue:function(r,a){var s=Kt();return Cb(s,mt.memoizedState,r,a)},useTransition:function(){var r=Ou(Jr)[0],a=Kt().memoizedState;return[typeof r=="boolean"?r:Cs(r),a]},useSyncExternalStore:Jy,useId:Ab};Ai.useCacheRefresh=_b,Ai.useMemoCache=Rd,Ai.useHostTransitionStatus=jd,Ai.useFormState=db,Ai.useActionState=db,Ai.useOptimistic=function(r,a){var s=Kt();return ab(s,mt,r,a)};var ua={readContext:mn,use:Ru,useCallback:wb,useContext:mn,useEffect:Ld,useImperativeHandle:Sb,useInsertionEffect:yb,useLayoutEffect:bb,useMemo:xb,useReducer:Md,useRef:mb,useState:function(){return Md(Jr)},useDebugValue:zd,useDeferredValue:function(r,a){var s=Kt();return mt===null?Id(s,r,a):Cb(s,mt.memoizedState,r,a)},useTransition:function(){var r=Md(Jr)[0],a=Kt().memoizedState;return[typeof r=="boolean"?r:Cs(r),a]},useSyncExternalStore:Jy,useId:Ab};ua.useCacheRefresh=_b,ua.useMemoCache=Rd,ua.useHostTransitionStatus=jd,ua.useFormState=hb,ua.useActionState=hb,ua.useOptimistic=function(r,a){var s=Kt();return mt!==null?ab(s,mt,r,a):(s.baseState=r,[r,s.queue.dispatch])};function Pd(r,a,s,c){a=r.memoizedState,s=s(c,a),s=s==null?a:E({},a,s),r.memoizedState=s,r.lanes===0&&(r.updateQueue.baseState=s)}var Ud={isMounted:function(r){return(r=r._reactInternals)?ae(r)===r:!1},enqueueSetState:function(r,a,s){r=r._reactInternals;var c=Fn(),h=Oi(c);h.payload=a,s!=null&&(h.callback=s),a=Mi(r,h,c),a!==null&&(xn(a,r,c),As(a,r,c))},enqueueReplaceState:function(r,a,s){r=r._reactInternals;var c=Fn(),h=Oi(c);h.tag=1,h.payload=a,s!=null&&(h.callback=s),a=Mi(r,h,c),a!==null&&(xn(a,r,c),As(a,r,c))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var s=Fn(),c=Oi(s);c.tag=2,a!=null&&(c.callback=a),a=Mi(r,c,s),a!==null&&(xn(a,r,s),As(a,r,s))}};function Nb(r,a,s,c,h,y,x){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,y,x):a.prototype&&a.prototype.isPureReactComponent?!fs(s,c)||!fs(h,y):!0}function Db(r,a,s,c){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,c),a.state!==r&&Ud.enqueueReplaceState(a,a.state,null)}function ca(r,a){var s=a;if("ref"in a){s={};for(var c in a)c!=="ref"&&(s[c]=a[c])}if(r=r.defaultProps){s===a&&(s=E({},s));for(var h in r)s[h]===void 0&&(s[h]=r[h])}return s}var Lu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function Lb(r){Lu(r)}function zb(r){console.error(r)}function Ib(r){Lu(r)}function zu(r,a){try{var s=r.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function Bb(r,a,s){try{var c=r.onCaughtError;c(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Hd(r,a,s){return s=Oi(s),s.tag=3,s.payload={element:null},s.callback=function(){zu(r,a)},s}function jb(r){return r=Oi(r),r.tag=3,r}function $b(r,a,s,c){var h=s.type.getDerivedStateFromError;if(typeof h=="function"){var y=c.value;r.payload=function(){return h(y)},r.callback=function(){Bb(a,s,c)}}var x=s.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(r.callback=function(){Bb(a,s,c),typeof h!="function"&&(Bi===null?Bi=new Set([this]):Bi.add(this));var N=c.stack;this.componentDidCatch(c.value,{componentStack:N!==null?N:""})})}function dE(r,a,s,c,h){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=s.alternate,a!==null&&Ts(a,s,h,!0),s=nr.current,s!==null){switch(s.tag){case 13:return Mr===null?Cp():s.alternate===null&&Dt===0&&(Dt=3),s.flags&=-257,s.flags|=65536,s.lanes=h,c===bd?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([c]):a.add(c),Ep(r,c,h)),!1;case 22:return s.flags|=65536,c===bd?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([c]):s.add(c)),Ep(r,c,h)),!1}throw Error(i(435,s.tag))}return Ep(r,c,h),Cp(),!1}if(at)return a=nr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=h,c!==yd&&(r=Error(i(422),{cause:c}),ms(Jn(r,s)))):(c!==yd&&(a=Error(i(423),{cause:c}),ms(Jn(a,s))),r=r.current.alternate,r.flags|=65536,h&=-h,r.lanes|=h,c=Jn(c,s),h=Hd(r.stateNode,c,h),rp(r,h),Dt!==4&&(Dt=2)),!1;var y=Error(i(520),{cause:c});if(y=Jn(y,s),zs===null?zs=[y]:zs.push(y),Dt!==4&&(Dt=2),a===null)return!0;c=Jn(c,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,r=h&-h,s.lanes|=r,r=Hd(s.stateNode,c,r),rp(s,r),!1;case 1:if(a=s.type,y=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Bi===null||!Bi.has(y))))return s.flags|=65536,h&=-h,s.lanes|=h,h=jb(h),$b(h,r,s,c),rp(s,h),!1}s=s.return}while(s!==null);return!1}var Pb=Error(i(461)),rn=!1;function cn(r,a,s,c){a.child=r===null?Vy(a,null,s,c):aa(a,r.child,s,c)}function Ub(r,a,s,c,h){s=s.render;var y=a.ref;if("ref"in c){var x={};for(var N in c)N!=="ref"&&(x[N]=c[N])}else x=c;return da(a),c=Ed(r,a,s,x,y,h),N=Td(),r!==null&&!rn?(Ad(r,a,h),ei(r,a,h)):(at&&N&&md(a),a.flags|=1,cn(r,a,c,h),a.child)}function Hb(r,a,s,c,h){if(r===null){var y=s.type;return typeof y=="function"&&!fp(y)&&y.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=y,qb(r,a,y,c,h)):(r=Pu(s.type,null,c,a,a.mode,h),r.ref=a.ref,r.return=a,a.child=r)}if(y=r.child,!Qd(r,h)){var x=y.memoizedProps;if(s=s.compare,s=s!==null?s:fs,s(x,c)&&r.ref===a.ref)return ei(r,a,h)}return a.flags|=1,r=zi(y,c),r.ref=a.ref,r.return=a,a.child=r}function qb(r,a,s,c,h){if(r!==null){var y=r.memoizedProps;if(fs(y,c)&&r.ref===a.ref)if(rn=!1,a.pendingProps=c=y,Qd(r,h))(r.flags&131072)!==0&&(rn=!0);else return a.lanes=r.lanes,ei(r,a,h)}return qd(r,a,s,c,h)}function Fb(r,a,s){var c=a.pendingProps,h=c.children,y=(a.stateNode._pendingVisibility&2)!==0,x=r!==null?r.memoizedState:null;if(Es(r,a),c.mode==="hidden"||y){if((a.flags&128)!==0){if(c=x!==null?x.baseLanes|s:s,r!==null){for(h=a.child=r.child,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;a.childLanes=y&~c}else a.childLanes=0,a.child=null;return Vb(r,a,c,s)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Eu(a,x!==null?x.cachePool:null),x!==null?Gy(a,x):vd(),Ky(a);else return a.lanes=a.childLanes=536870912,Vb(r,a,x!==null?x.baseLanes|s:s,s)}else x!==null?(Eu(a,x.cachePool),Gy(a,x),Ei(),a.memoizedState=null):(r!==null&&Eu(a,null),vd(),Ei());return cn(r,a,h,s),a.child}function Vb(r,a,s,c){var h=Cd();return h=h===null?null:{parent:Zt._currentValue,pool:h},a.memoizedState={baseLanes:s,cachePool:h},r!==null&&Eu(a,null),vd(),Ky(a),r!==null&&Ts(r,a,c,!0),null}function Es(r,a){var s=a.ref;if(s===null)r!==null&&r.ref!==null&&(a.flags|=2097664);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(r===null||r.ref!==s)&&(a.flags|=2097664)}}function qd(r,a,s,c,h){return da(a),s=Ed(r,a,s,c,void 0,h),c=Td(),r!==null&&!rn?(Ad(r,a,h),ei(r,a,h)):(at&&c&&md(a),a.flags|=1,cn(r,a,s,h),a.child)}function Gb(r,a,s,c,h,y){return da(a),a.updateQueue=null,s=Zy(a,c,s,h),Qy(r),c=Td(),r!==null&&!rn?(Ad(r,a,y),ei(r,a,y)):(at&&c&&md(a),a.flags|=1,cn(r,a,s,y),a.child)}function Kb(r,a,s,c,h){if(da(a),a.stateNode===null){var y=Ka,x=s.contextType;typeof x=="object"&&x!==null&&(y=mn(x)),y=new s(c,y),a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Ud,a.stateNode=y,y._reactInternals=a,y=a.stateNode,y.props=c,y.state=a.memoizedState,y.refs={},tp(a),x=s.contextType,y.context=typeof x=="object"&&x!==null?mn(x):Ka,y.state=a.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(Pd(a,s,x,c),y.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(x=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),x!==y.state&&Ud.enqueueReplaceState(y,y.state,null),Rs(a,c,y,h),_s(),y.state=a.memoizedState),typeof y.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(r===null){y=a.stateNode;var N=a.memoizedProps,j=ca(s,N);y.props=j;var F=y.context,ie=s.contextType;x=Ka,typeof ie=="object"&&ie!==null&&(x=mn(ie));var ce=s.getDerivedStateFromProps;ie=typeof ce=="function"||typeof y.getSnapshotBeforeUpdate=="function",N=a.pendingProps!==N,ie||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(N||F!==x)&&Db(a,y,c,x),Ri=!1;var Q=a.memoizedState;y.state=Q,Rs(a,c,y,h),_s(),F=a.memoizedState,N||Q!==F||Ri?(typeof ce=="function"&&(Pd(a,s,ce,c),F=a.memoizedState),(j=Ri||Nb(a,s,j,c,Q,F,x))?(ie||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(a.flags|=4194308)):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=F),y.props=c,y.state=F,y.context=x,c=j):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{y=a.stateNode,np(r,a),x=a.memoizedProps,ie=ca(s,x),y.props=ie,ce=a.pendingProps,Q=y.context,F=s.contextType,j=Ka,typeof F=="object"&&F!==null&&(j=mn(F)),N=s.getDerivedStateFromProps,(F=typeof N=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(x!==ce||Q!==j)&&Db(a,y,c,j),Ri=!1,Q=a.memoizedState,y.state=Q,Rs(a,c,y,h),_s();var ne=a.memoizedState;x!==ce||Q!==ne||Ri||r!==null&&r.dependencies!==null&&Iu(r.dependencies)?(typeof N=="function"&&(Pd(a,s,N,c),ne=a.memoizedState),(ie=Ri||Nb(a,s,ie,c,Q,ne,j)||r!==null&&r.dependencies!==null&&Iu(r.dependencies))?(F||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,ne,j),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,ne,j)),typeof y.componentDidUpdate=="function"&&(a.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof y.componentDidUpdate!="function"||x===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=ne),y.props=c,y.state=ne,y.context=j,c=ie):(typeof y.componentDidUpdate!="function"||x===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),c=!1)}return y=c,Es(r,a),c=(a.flags&128)!==0,y||c?(y=a.stateNode,s=c&&typeof s.getDerivedStateFromError!="function"?null:y.render(),a.flags|=1,r!==null&&c?(a.child=aa(a,r.child,null,h),a.child=aa(a,null,s,h)):cn(r,a,s,h),a.memoizedState=y.state,r=a.child):r=ei(r,a,h),r}function Yb(r,a,s,c){return hs(),a.flags|=256,cn(r,a,s,c),a.child}var Fd={dehydrated:null,treeContext:null,retryLane:0};function Vd(r){return{baseLanes:r,cachePool:Wy()}}function Gd(r,a,s){return r=r!==null?r.childLanes&~s:0,a&&(r|=or),r}function Xb(r,a,s){var c=a.pendingProps,h=!1,y=(a.flags&128)!==0,x;if((x=y)||(x=r!==null&&r.memoizedState===null?!1:(Qt.current&2)!==0),x&&(h=!0,a.flags&=-129),x=(a.flags&32)!==0,a.flags&=-33,r===null){if(at){if(h?ki(a):Ei(),at){var N=un,j;if(j=N){e:{for(j=N,N=Or;j.nodeType!==8;){if(!N){N=null;break e}if(j=vr(j.nextSibling),j===null){N=null;break e}}N=j}N!==null?(a.memoizedState={dehydrated:N,treeContext:na!==null?{id:Wr,overflow:Qr}:null,retryLane:536870912},j=ar(18,null,null,0),j.stateNode=N,j.return=a,a.child=j,wn=a,un=null,j=!0):j=!1}j||ia(a)}if(N=a.memoizedState,N!==null&&(N=N.dehydrated,N!==null))return N.data==="$!"?a.lanes=16:a.lanes=536870912,null;Zr(a)}return N=c.children,c=c.fallback,h?(Ei(),h=a.mode,N=Yd({mode:"hidden",children:N},h),c=ha(c,h,s,null),N.return=a,c.return=a,N.sibling=c,a.child=N,h=a.child,h.memoizedState=Vd(s),h.childLanes=Gd(r,x,s),a.memoizedState=Fd,c):(ki(a),Kd(a,N))}if(j=r.memoizedState,j!==null&&(N=j.dehydrated,N!==null)){if(y)a.flags&256?(ki(a),a.flags&=-257,a=Xd(r,a,s)):a.memoizedState!==null?(Ei(),a.child=r.child,a.flags|=128,a=null):(Ei(),h=c.fallback,N=a.mode,c=Yd({mode:"visible",children:c.children},N),h=ha(h,N,s,null),h.flags|=2,c.return=a,h.return=a,c.sibling=h,a.child=c,aa(a,r.child,null,s),c=a.child,c.memoizedState=Vd(s),c.childLanes=Gd(r,x,s),a.memoizedState=Fd,a=h);else if(ki(a),N.data==="$!"){if(x=N.nextSibling&&N.nextSibling.dataset,x)var F=x.dgst;x=F,c=Error(i(419)),c.stack="",c.digest=x,ms({value:c,source:null,stack:null}),a=Xd(r,a,s)}else if(rn||Ts(r,a,s,!1),x=(s&r.childLanes)!==0,rn||x){if(x=xt,x!==null){if(c=s&-s,(c&42)!==0)c=1;else switch(c){case 2:c=1;break;case 8:c=4;break;case 32:c=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:c=64;break;case 268435456:c=134217728;break;default:c=0}if(c=(c&(x.suspendedLanes|s))!==0?0:c,c!==0&&c!==j.retryLane)throw j.retryLane=c,Ci(r,c),xn(x,r,c),Pb}N.data==="$?"||Cp(),a=Xd(r,a,s)}else N.data==="$?"?(a.flags|=128,a.child=r.child,a=AE.bind(null,r),N._reactRetry=a,a=null):(r=j.treeContext,un=vr(N.nextSibling),wn=a,at=!0,yr=null,Or=!1,r!==null&&(er[tr++]=Wr,er[tr++]=Qr,er[tr++]=na,Wr=r.id,Qr=r.overflow,na=a),a=Kd(a,c.children),a.flags|=4096);return a}return h?(Ei(),h=c.fallback,N=a.mode,j=r.child,F=j.sibling,c=zi(j,{mode:"hidden",children:c.children}),c.subtreeFlags=j.subtreeFlags&31457280,F!==null?h=zi(F,h):(h=ha(h,N,s,null),h.flags|=2),h.return=a,c.return=a,c.sibling=h,a.child=c,c=h,h=a.child,N=r.child.memoizedState,N===null?N=Vd(s):(j=N.cachePool,j!==null?(F=Zt._currentValue,j=j.parent!==F?{parent:F,pool:F}:j):j=Wy(),N={baseLanes:N.baseLanes|s,cachePool:j}),h.memoizedState=N,h.childLanes=Gd(r,x,s),a.memoizedState=Fd,c):(ki(a),s=r.child,r=s.sibling,s=zi(s,{mode:"visible",children:c.children}),s.return=a,s.sibling=null,r!==null&&(x=a.deletions,x===null?(a.deletions=[r],a.flags|=16):x.push(r)),a.child=s,a.memoizedState=null,s)}function Kd(r,a){return a=Yd({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Yd(r,a){return wv(r,a,0,null)}function Xd(r,a,s){return aa(a,r.child,null,s),r=Kd(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function Wb(r,a,s){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),Jd(r.return,a,s)}function Wd(r,a,s,c,h){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:h}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=s,y.tailMode=h)}function Qb(r,a,s){var c=a.pendingProps,h=c.revealOrder,y=c.tail;if(cn(r,a,c.children,s),c=Qt.current,(c&2)!==0)c=c&1|2,a.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Wb(r,s,a);else if(r.tag===19)Wb(r,s,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}switch(ue(Qt,c),h){case"forwards":for(s=a.child,h=null;s!==null;)r=s.alternate,r!==null&&ku(r)===null&&(h=s),s=s.sibling;s=h,s===null?(h=a.child,a.child=null):(h=s.sibling,s.sibling=null),Wd(a,!1,h,s,y);break;case"backwards":for(s=null,h=a.child,a.child=null;h!==null;){if(r=h.alternate,r!==null&&ku(r)===null){a.child=h;break}r=h.sibling,h.sibling=s,s=h,h=r}Wd(a,!0,s,null,y);break;case"together":Wd(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ei(r,a,s){if(r!==null&&(a.dependencies=r.dependencies),Ii|=a.lanes,(s&a.childLanes)===0)if(r!==null){if(Ts(r,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,s=zi(r,r.pendingProps),a.child=s,s.return=a;r.sibling!==null;)r=r.sibling,s=s.sibling=zi(r,r.pendingProps),s.return=a;s.sibling=null}return a.child}function Qd(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Iu(r)))}function pE(r,a,s){switch(a.tag){case 3:$e(a,a.stateNode.containerInfo),_i(a,Zt,r.memoizedState.cache),hs();break;case 27:case 5:dt(a);break;case 4:$e(a,a.stateNode.containerInfo);break;case 10:_i(a,a.type,a.memoizedProps.value);break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(ki(a),a.flags|=128,null):(s&a.child.childLanes)!==0?Xb(r,a,s):(ki(a),r=ei(r,a,s),r!==null?r.sibling:null);ki(a);break;case 19:var h=(r.flags&128)!==0;if(c=(s&a.childLanes)!==0,c||(Ts(r,a,s,!1),c=(s&a.childLanes)!==0),h){if(c)return Qb(r,a,s);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ue(Qt,Qt.current),c)break;return null;case 22:case 23:return a.lanes=0,Fb(r,a,s);case 24:_i(a,Zt,r.memoizedState.cache)}return ei(r,a,s)}function Zb(r,a,s){if(r!==null)if(r.memoizedProps!==a.pendingProps)rn=!0;else{if(!Qd(r,s)&&(a.flags&128)===0)return rn=!1,pE(r,a,s);rn=(r.flags&131072)!==0}else rn=!1,at&&(a.flags&1048576)!==0&&Iy(a,vu,a.index);switch(a.lanes=0,a.tag){case 16:e:{r=a.pendingProps;var c=a.elementType,h=c._init;if(c=h(c._payload),a.type=c,typeof c=="function")fp(c)?(r=ca(c,r),a.tag=1,a=Kb(null,a,c,r,s)):(a.tag=0,a=qd(null,a,c,r,s));else{if(c!=null){if(h=c.$$typeof,h===w){a.tag=11,a=Ub(null,a,c,r,s);break e}else if(h===A){a.tag=14,a=Hb(null,a,c,r,s);break e}}throw a=z(c)||c,Error(i(306,a,""))}}return a;case 0:return qd(r,a,a.type,a.pendingProps,s);case 1:return c=a.type,h=ca(c,a.pendingProps),Kb(r,a,c,h,s);case 3:e:{if($e(a,a.stateNode.containerInfo),r===null)throw Error(i(387));var y=a.pendingProps;h=a.memoizedState,c=h.element,np(r,a),Rs(a,y,null,s);var x=a.memoizedState;if(y=x.cache,_i(a,Zt,y),y!==h.cache&&ep(a,[Zt],s,!0),_s(),y=x.element,h.isDehydrated)if(h={element:y,isDehydrated:!1,cache:x.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=Yb(r,a,y,s);break e}else if(y!==c){c=Jn(Error(i(424)),a),ms(c),a=Yb(r,a,y,s);break e}else for(un=vr(a.stateNode.containerInfo.firstChild),wn=a,at=!0,yr=null,Or=!0,s=Vy(a,null,y,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(hs(),y===c){a=ei(r,a,s);break e}cn(r,a,y,s)}a=a.child}return a;case 26:return Es(r,a),r===null?(s=t0(a.type,null,a.pendingProps,null))?a.memoizedState=s:at||(s=a.type,r=a.pendingProps,c=Zu(je.current).createElement(s),c[Vt]=a,c[On]=r,fn(c,s,r),nn(c),a.stateNode=c):a.memoizedState=t0(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return dt(a),r===null&&at&&(c=a.stateNode=Zv(a.type,a.pendingProps,je.current),wn=a,Or=!0,un=vr(c.firstChild)),c=a.pendingProps.children,r!==null||at?cn(r,a,c,s):a.child=aa(a,null,c,s),Es(r,a),a.child;case 5:return r===null&&at&&((h=c=un)&&(c=qE(c,a.type,a.pendingProps,Or),c!==null?(a.stateNode=c,wn=a,un=vr(c.firstChild),Or=!1,h=!0):h=!1),h||ia(a)),dt(a),h=a.type,y=a.pendingProps,x=r!==null?r.memoizedProps:null,c=y.children,Bp(h,y)?c=null:x!==null&&Bp(h,x)&&(a.flags|=32),a.memoizedState!==null&&(h=Ed(r,a,oE,null,null,s),Fs._currentValue=h),Es(r,a),cn(r,a,c,s),a.child;case 6:return r===null&&at&&((r=s=un)&&(s=FE(s,a.pendingProps,Or),s!==null?(a.stateNode=s,wn=a,un=null,r=!0):r=!1),r||ia(a)),null;case 13:return Xb(r,a,s);case 4:return $e(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=aa(a,null,c,s):cn(r,a,c,s),a.child;case 11:return Ub(r,a,a.type,a.pendingProps,s);case 7:return cn(r,a,a.pendingProps,s),a.child;case 8:return cn(r,a,a.pendingProps.children,s),a.child;case 12:return cn(r,a,a.pendingProps.children,s),a.child;case 10:return c=a.pendingProps,_i(a,a.type,c.value),cn(r,a,c.children,s),a.child;case 9:return h=a.type._context,c=a.pendingProps.children,da(a),h=mn(h),c=c(h),a.flags|=1,cn(r,a,c,s),a.child;case 14:return Hb(r,a,a.type,a.pendingProps,s);case 15:return qb(r,a,a.type,a.pendingProps,s);case 19:return Qb(r,a,s);case 22:return Fb(r,a,s);case 24:return da(a),c=mn(Zt),r===null?(h=Cd(),h===null&&(h=xt,y=wd(),h.pooledCache=y,y.refCount++,y!==null&&(h.pooledCacheLanes|=s),h=y),a.memoizedState={parent:c,cache:h},tp(a),_i(a,Zt,h)):((r.lanes&s)!==0&&(np(r,a),Rs(a,null,null,s),_s()),h=r.memoizedState,y=a.memoizedState,h.parent!==c?(h={parent:c,cache:c},a.memoizedState=h,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=h),_i(a,Zt,c)):(c=y.cache,_i(a,Zt,c),c!==h.cache&&ep(a,[Zt],s,!0))),cn(r,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}var Zd=ge(null),fa=null,ti=null;function _i(r,a,s){ue(Zd,a._currentValue),a._currentValue=s}function ni(r){r._currentValue=Zd.current,be(Zd)}function Jd(r,a,s){for(;r!==null;){var c=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),r===s)break;r=r.return}}function ep(r,a,s,c){var h=r.child;for(h!==null&&(h.return=r);h!==null;){var y=h.dependencies;if(y!==null){var x=h.child;y=y.firstContext;e:for(;y!==null;){var N=y;y=h;for(var j=0;j<a.length;j++)if(N.context===a[j]){y.lanes|=s,N=y.alternate,N!==null&&(N.lanes|=s),Jd(y.return,s,r),c||(x=null);break e}y=N.next}}else if(h.tag===18){if(x=h.return,x===null)throw Error(i(341));x.lanes|=s,y=x.alternate,y!==null&&(y.lanes|=s),Jd(x,s,r),x=null}else x=h.child;if(x!==null)x.return=h;else for(x=h;x!==null;){if(x===r){x=null;break}if(h=x.sibling,h!==null){h.return=x.return,x=h;break}x=x.return}h=x}}function Ts(r,a,s,c){r=null;for(var h=a,y=!1;h!==null;){if(!y){if((h.flags&524288)!==0)y=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var x=h.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var N=h.type;Pn(h.pendingProps.value,x.value)||(r!==null?r.push(N):r=[N])}}else if(h===Ce.current){if(x=h.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(r!==null?r.push(Fs):r=[Fs])}h=h.return}r!==null&&ep(a,r,s,c),a.flags|=262144}function Iu(r){for(r=r.firstContext;r!==null;){if(!Pn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function da(r){fa=r,ti=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function mn(r){return Jb(fa,r)}function Bu(r,a){return fa===null&&da(r),Jb(r,a)}function Jb(r,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},ti===null){if(r===null)throw Error(i(308));ti=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else ti=ti.next=a;return s}var Ri=!1;function tp(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function np(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Oi(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Mi(r,a,s){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Mt&2)!==0){var h=c.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),c.pending=a,a=yu(r),Ly(r,null,s),a}return gu(r,c,a,s),yu(r)}function As(r,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194176)!==0)){var c=a.lanes;c&=r.pendingLanes,s|=c,a.lanes=s,Xn(r,s)}}function rp(r,a){var s=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var h=null,y=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};y===null?h=y=x:y=y.next=x,s=s.next}while(s!==null);y===null?h=y=a:y=y.next=a}else h=y=a;s={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},r.updateQueue=s;return}r=s.lastBaseUpdate,r===null?s.firstBaseUpdate=a:r.next=a,s.lastBaseUpdate=a}var ip=!1;function _s(){if(ip){var r=Ja;if(r!==null)throw r}}function Rs(r,a,s,c){ip=!1;var h=r.updateQueue;Ri=!1;var y=h.firstBaseUpdate,x=h.lastBaseUpdate,N=h.shared.pending;if(N!==null){h.shared.pending=null;var j=N,F=j.next;j.next=null,x===null?y=F:x.next=F,x=j;var ie=r.alternate;ie!==null&&(ie=ie.updateQueue,N=ie.lastBaseUpdate,N!==x&&(N===null?ie.firstBaseUpdate=F:N.next=F,ie.lastBaseUpdate=j))}if(y!==null){var ce=h.baseState;x=0,ie=F=j=null,N=y;do{var Q=N.lane&-536870913,ne=Q!==N.lane;if(ne?(Je&Q)===Q:(c&Q)===Q){Q!==0&&Q===Za&&(ip=!0),ie!==null&&(ie=ie.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Te=r,ze=N;Q=a;var Lt=s;switch(ze.tag){case 1:if(Te=ze.payload,typeof Te=="function"){ce=Te.call(Lt,ce,Q);break e}ce=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=ze.payload,Q=typeof Te=="function"?Te.call(Lt,ce,Q):Te,Q==null)break e;ce=E({},ce,Q);break e;case 2:Ri=!0}}Q=N.callback,Q!==null&&(r.flags|=64,ne&&(r.flags|=8192),ne=h.callbacks,ne===null?h.callbacks=[Q]:ne.push(Q))}else ne={lane:Q,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ie===null?(F=ie=ne,j=ce):ie=ie.next=ne,x|=Q;if(N=N.next,N===null){if(N=h.shared.pending,N===null)break;ne=N,N=ne.next,ne.next=null,h.lastBaseUpdate=ne,h.shared.pending=null}}while(!0);ie===null&&(j=ce),h.baseState=j,h.firstBaseUpdate=F,h.lastBaseUpdate=ie,y===null&&(h.shared.lanes=0),Ii|=x,r.lanes=x,r.memoizedState=ce}}function ev(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function tv(r,a){var s=r.callbacks;if(s!==null)for(r.callbacks=null,r=0;r<s.length;r++)ev(s[r],a)}function Os(r,a){try{var s=a.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var h=c.next;s=h;do{if((s.tag&r)===r){c=void 0;var y=s.create,x=s.inst;c=y(),x.destroy=c}s=s.next}while(s!==h)}}catch(N){vt(a,a.return,N)}}function Ni(r,a,s){try{var c=a.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var y=h.next;c=y;do{if((c.tag&r)===r){var x=c.inst,N=x.destroy;if(N!==void 0){x.destroy=void 0,h=a;var j=s;try{N()}catch(F){vt(h,j,F)}}}c=c.next}while(c!==y)}}catch(F){vt(a,a.return,F)}}function nv(r){var a=r.updateQueue;if(a!==null){var s=r.stateNode;try{tv(a,s)}catch(c){vt(r,r.return,c)}}}function rv(r,a,s){s.props=ca(r.type,r.memoizedProps),s.state=r.memoizedState;try{s.componentWillUnmount()}catch(c){vt(r,a,c)}}function pa(r,a){try{var s=r.ref;if(s!==null){var c=r.stateNode;switch(r.tag){case 26:case 27:case 5:var h=c;break;default:h=c}typeof s=="function"?r.refCleanup=s(h):s.current=h}}catch(y){vt(r,a,y)}}function Un(r,a){var s=r.ref,c=r.refCleanup;if(s!==null)if(typeof c=="function")try{c()}catch(h){vt(r,a,h)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(h){vt(r,a,h)}else s.current=null}function iv(r){var a=r.type,s=r.memoizedProps,c=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&c.focus();break e;case"img":s.src?c.src=s.src:s.srcSet&&(c.srcset=s.srcSet)}}catch(h){vt(r,r.return,h)}}function av(r,a,s){try{var c=r.stateNode;jE(c,r.type,s,a),c[On]=a}catch(h){vt(r,r.return,h)}}function ov(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27||r.tag===4}function ap(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||ov(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==27&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function op(r,a,s){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?s.nodeType===8?s.parentNode.insertBefore(r,a):s.insertBefore(r,a):(s.nodeType===8?(a=s.parentNode,a.insertBefore(r,s)):(a=s,a.appendChild(r)),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=Qu));else if(c!==4&&c!==27&&(r=r.child,r!==null))for(op(r,a,s),r=r.sibling;r!==null;)op(r,a,s),r=r.sibling}function ju(r,a,s){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?s.insertBefore(r,a):s.appendChild(r);else if(c!==4&&c!==27&&(r=r.child,r!==null))for(ju(r,a,s),r=r.sibling;r!==null;)ju(r,a,s),r=r.sibling}var ri=!1,Nt=!1,sp=!1,sv=typeof WeakSet=="function"?WeakSet:Set,an=null,lv=!1;function hE(r,a){if(r=r.containerInfo,zp=ic,r=Ey(r),ud(r)){if("selectionStart"in r)var s={start:r.selectionStart,end:r.selectionEnd};else e:{s=(s=r.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var h=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{s.nodeType,y.nodeType}catch{s=null;break e}var x=0,N=-1,j=-1,F=0,ie=0,ce=r,Q=null;t:for(;;){for(var ne;ce!==s||h!==0&&ce.nodeType!==3||(N=x+h),ce!==y||c!==0&&ce.nodeType!==3||(j=x+c),ce.nodeType===3&&(x+=ce.nodeValue.length),(ne=ce.firstChild)!==null;)Q=ce,ce=ne;for(;;){if(ce===r)break t;if(Q===s&&++F===h&&(N=x),Q===y&&++ie===c&&(j=x),(ne=ce.nextSibling)!==null)break;ce=Q,Q=ce.parentNode}ce=ne}s=N===-1||j===-1?null:{start:N,end:j}}else s=null}s=s||{start:0,end:0}}else s=null;for(Ip={focusedElem:r,selectionRange:s},ic=!1,an=a;an!==null;)if(a=an,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,an=r;else for(;an!==null;){switch(a=an,y=a.alternate,r=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((r&1024)!==0&&y!==null){r=void 0,s=a,h=y.memoizedProps,y=y.memoizedState,c=s.stateNode;try{var Te=ca(s.type,h,s.elementType===s.type);r=c.getSnapshotBeforeUpdate(Te,y),c.__reactInternalSnapshotBeforeUpdate=r}catch(ze){vt(s,s.return,ze)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,s=r.nodeType,s===9)Pp(r);else if(s===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Pp(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,an=r;break}an=a.return}return Te=lv,lv=!1,Te}function uv(r,a,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:ai(r,s),c&4&&Os(5,s);break;case 1:if(ai(r,s),c&4)if(r=s.stateNode,a===null)try{r.componentDidMount()}catch(N){vt(s,s.return,N)}else{var h=ca(s.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(h,a,r.__reactInternalSnapshotBeforeUpdate)}catch(N){vt(s,s.return,N)}}c&64&&nv(s),c&512&&pa(s,s.return);break;case 3:if(ai(r,s),c&64&&(c=s.updateQueue,c!==null)){if(r=null,s.child!==null)switch(s.child.tag){case 27:case 5:r=s.child.stateNode;break;case 1:r=s.child.stateNode}try{tv(c,r)}catch(N){vt(s,s.return,N)}}break;case 26:ai(r,s),c&512&&pa(s,s.return);break;case 27:case 5:ai(r,s),a===null&&c&4&&iv(s),c&512&&pa(s,s.return);break;case 12:ai(r,s);break;case 13:ai(r,s),c&4&&dv(r,s);break;case 22:if(h=s.memoizedState!==null||ri,!h){a=a!==null&&a.memoizedState!==null||Nt;var y=ri,x=Nt;ri=h,(Nt=a)&&!x?Di(r,s,(s.subtreeFlags&8772)!==0):ai(r,s),ri=y,Nt=x}c&512&&(s.memoizedProps.mode==="manual"?pa(s,s.return):Un(s,s.return));break;default:ai(r,s)}}function cv(r){var a=r.alternate;a!==null&&(r.alternate=null,cv(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Kf(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Yt=null,Hn=!1;function ii(r,a,s){for(s=s.child;s!==null;)fv(r,a,s),s=s.sibling}function fv(r,a,s){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(nt,s)}catch{}switch(s.tag){case 26:Nt||Un(s,a),ii(r,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Nt||Un(s,a);var c=Yt,h=Hn;for(Yt=s.stateNode,ii(r,a,s),s=s.stateNode,a=s.attributes;a.length;)s.removeAttributeNode(a[0]);Kf(s),Yt=c,Hn=h;break;case 5:Nt||Un(s,a);case 6:h=Yt;var y=Hn;if(Yt=null,ii(r,a,s),Yt=h,Hn=y,Yt!==null)if(Hn)try{r=Yt,c=s.stateNode,r.nodeType===8?r.parentNode.removeChild(c):r.removeChild(c)}catch(x){vt(s,a,x)}else try{Yt.removeChild(s.stateNode)}catch(x){vt(s,a,x)}break;case 18:Yt!==null&&(Hn?(a=Yt,s=s.stateNode,a.nodeType===8?$p(a.parentNode,s):a.nodeType===1&&$p(a,s),Ys(a)):$p(Yt,s.stateNode));break;case 4:c=Yt,h=Hn,Yt=s.stateNode.containerInfo,Hn=!0,ii(r,a,s),Yt=c,Hn=h;break;case 0:case 11:case 14:case 15:Nt||Ni(2,s,a),Nt||Ni(4,s,a),ii(r,a,s);break;case 1:Nt||(Un(s,a),c=s.stateNode,typeof c.componentWillUnmount=="function"&&rv(s,a,c)),ii(r,a,s);break;case 21:ii(r,a,s);break;case 22:Nt||Un(s,a),Nt=(c=Nt)||s.memoizedState!==null,ii(r,a,s),Nt=c;break;default:ii(r,a,s)}}function dv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Ys(r)}catch(s){vt(a,a.return,s)}}function mE(r){switch(r.tag){case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new sv),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new sv),a;default:throw Error(i(435,r.tag))}}function lp(r,a){var s=mE(r);a.forEach(function(c){var h=_E.bind(null,r,c);s.has(c)||(s.add(c),c.then(h,h))})}function rr(r,a){var s=a.deletions;if(s!==null)for(var c=0;c<s.length;c++){var h=s[c],y=r,x=a,N=x;e:for(;N!==null;){switch(N.tag){case 27:case 5:Yt=N.stateNode,Hn=!1;break e;case 3:Yt=N.stateNode.containerInfo,Hn=!0;break e;case 4:Yt=N.stateNode.containerInfo,Hn=!0;break e}N=N.return}if(Yt===null)throw Error(i(160));fv(y,x,h),Yt=null,Hn=!1,y=h.alternate,y!==null&&(y.return=null),h.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)pv(a,r),a=a.sibling}var br=null;function pv(r,a){var s=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:rr(a,r),ir(r),c&4&&(Ni(3,r,r.return),Os(3,r),Ni(5,r,r.return));break;case 1:rr(a,r),ir(r),c&512&&(Nt||s===null||Un(s,s.return)),c&64&&ri&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(s=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=s===null?c:s.concat(c))));break;case 26:var h=br;if(rr(a,r),ir(r),c&512&&(Nt||s===null||Un(s,s.return)),c&4){var y=s!==null?s.memoizedState:null;if(c=r.memoizedState,s===null)if(c===null)if(r.stateNode===null){e:{c=r.type,s=r.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":y=h.getElementsByTagName("title")[0],(!y||y[ns]||y[Vt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=h.createElement(c),h.head.insertBefore(y,h.querySelector("head > title"))),fn(y,c,s),y[Vt]=r,nn(y),c=y;break e;case"link":var x=i0("link","href",h).get(c+(s.href||""));if(x){for(var N=0;N<x.length;N++)if(y=x[N],y.getAttribute("href")===(s.href==null?null:s.href)&&y.getAttribute("rel")===(s.rel==null?null:s.rel)&&y.getAttribute("title")===(s.title==null?null:s.title)&&y.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(N,1);break t}}y=h.createElement(c),fn(y,c,s),h.head.appendChild(y);break;case"meta":if(x=i0("meta","content",h).get(c+(s.content||""))){for(N=0;N<x.length;N++)if(y=x[N],y.getAttribute("content")===(s.content==null?null:""+s.content)&&y.getAttribute("name")===(s.name==null?null:s.name)&&y.getAttribute("property")===(s.property==null?null:s.property)&&y.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&y.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(N,1);break t}}y=h.createElement(c),fn(y,c,s),h.head.appendChild(y);break;default:throw Error(i(468,c))}y[Vt]=r,nn(y),c=y}r.stateNode=c}else a0(h,r.type,r.stateNode);else r.stateNode=r0(h,c,r.memoizedProps);else y!==c?(y===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):y.count--,c===null?a0(h,r.type,r.stateNode):r0(h,c,r.memoizedProps)):c===null&&r.stateNode!==null&&av(r,r.memoizedProps,s.memoizedProps)}break;case 27:if(c&4&&r.alternate===null){h=r.stateNode,y=r.memoizedProps;try{for(var j=h.firstChild;j;){var F=j.nextSibling,ie=j.nodeName;j[ns]||ie==="HEAD"||ie==="BODY"||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&j.rel.toLowerCase()==="stylesheet"||h.removeChild(j),j=F}for(var ce=r.type,Q=h.attributes;Q.length;)h.removeAttributeNode(Q[0]);fn(h,ce,y),h[Vt]=r,h[On]=y}catch(Te){vt(r,r.return,Te)}}case 5:if(rr(a,r),ir(r),c&512&&(Nt||s===null||Un(s,s.return)),r.flags&32){h=r.stateNode;try{Pa(h,"")}catch(Te){vt(r,r.return,Te)}}c&4&&r.stateNode!=null&&(h=r.memoizedProps,av(r,h,s!==null?s.memoizedProps:h)),c&1024&&(sp=!0);break;case 6:if(rr(a,r),ir(r),c&4){if(r.stateNode===null)throw Error(i(162));c=r.memoizedProps,s=r.stateNode;try{s.nodeValue=c}catch(Te){vt(r,r.return,Te)}}break;case 3:if(tc=null,h=br,br=Ju(a.containerInfo),rr(a,r),br=h,ir(r),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Ys(a.containerInfo)}catch(Te){vt(r,r.return,Te)}sp&&(sp=!1,hv(r));break;case 4:c=br,br=Ju(r.stateNode.containerInfo),rr(a,r),ir(r),br=c;break;case 12:rr(a,r),ir(r);break;case 13:rr(a,r),ir(r),r.child.flags&8192&&r.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(yp=tt()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,lp(r,c)));break;case 22:if(c&512&&(Nt||s===null||Un(s,s.return)),j=r.memoizedState!==null,F=s!==null&&s.memoizedState!==null,ie=ri,ce=Nt,ri=ie||j,Nt=ce||F,rr(a,r),Nt=ce,ri=ie,ir(r),a=r.stateNode,a._current=r,a._visibility&=-3,a._visibility|=a._pendingVisibility&2,c&8192&&(a._visibility=j?a._visibility&-2:a._visibility|1,j&&(a=ri||Nt,s===null||F||a||ro(r)),r.memoizedProps===null||r.memoizedProps.mode!=="manual"))e:for(s=null,a=r;;){if(a.tag===5||a.tag===26||a.tag===27){if(s===null){F=s=a;try{if(h=F.stateNode,j)y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{x=F.stateNode,N=F.memoizedProps.style;var ne=N!=null&&N.hasOwnProperty("display")?N.display:null;x.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Te){vt(F,F.return,Te)}}}else if(a.tag===6){if(s===null){F=a;try{F.stateNode.nodeValue=j?"":F.memoizedProps}catch(Te){vt(F,F.return,Te)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=r.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,lp(r,s))));break;case 19:rr(a,r),ir(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,lp(r,c)));break;case 21:break;default:rr(a,r),ir(r)}}function ir(r){var a=r.flags;if(a&2){try{if(r.tag!==27){e:{for(var s=r.return;s!==null;){if(ov(s)){var c=s;break e}s=s.return}throw Error(i(160))}switch(c.tag){case 27:var h=c.stateNode,y=ap(r);ju(r,y,h);break;case 5:var x=c.stateNode;c.flags&32&&(Pa(x,""),c.flags&=-33);var N=ap(r);ju(r,N,x);break;case 3:case 4:var j=c.stateNode.containerInfo,F=ap(r);op(r,F,j);break;default:throw Error(i(161))}}}catch(ie){vt(r,r.return,ie)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function hv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;hv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function ai(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)uv(r,a.alternate,a),a=a.sibling}function ro(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Ni(4,a,a.return),ro(a);break;case 1:Un(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&rv(a,a.return,s),ro(a);break;case 26:case 27:case 5:Un(a,a.return),ro(a);break;case 22:Un(a,a.return),a.memoizedState===null&&ro(a);break;default:ro(a)}r=r.sibling}}function Di(r,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,h=r,y=a,x=y.flags;switch(y.tag){case 0:case 11:case 15:Di(h,y,s),Os(4,y);break;case 1:if(Di(h,y,s),c=y,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(F){vt(c,c.return,F)}if(c=y,h=c.updateQueue,h!==null){var N=c.stateNode;try{var j=h.shared.hiddenCallbacks;if(j!==null)for(h.shared.hiddenCallbacks=null,h=0;h<j.length;h++)ev(j[h],N)}catch(F){vt(c,c.return,F)}}s&&x&64&&nv(y),pa(y,y.return);break;case 26:case 27:case 5:Di(h,y,s),s&&c===null&&x&4&&iv(y),pa(y,y.return);break;case 12:Di(h,y,s);break;case 13:Di(h,y,s),s&&x&4&&dv(h,y);break;case 22:y.memoizedState===null&&Di(h,y,s),pa(y,y.return);break;default:Di(h,y,s)}a=a.sibling}}function up(r,a){var s=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==s&&(r!=null&&r.refCount++,s!=null&&Ss(s))}function cp(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Ss(r))}function Li(r,a,s,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)mv(r,a,s,c),a=a.sibling}function mv(r,a,s,c){var h=a.flags;switch(a.tag){case 0:case 11:case 15:Li(r,a,s,c),h&2048&&Os(9,a);break;case 3:Li(r,a,s,c),h&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Ss(r)));break;case 12:if(h&2048){Li(r,a,s,c),r=a.stateNode;try{var y=a.memoizedProps,x=y.id,N=y.onPostCommit;typeof N=="function"&&N(x,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(j){vt(a,a.return,j)}}else Li(r,a,s,c);break;case 23:break;case 22:y=a.stateNode,a.memoizedState!==null?y._visibility&4?Li(r,a,s,c):Ms(r,a):y._visibility&4?Li(r,a,s,c):(y._visibility|=4,io(r,a,s,c,(a.subtreeFlags&10256)!==0)),h&2048&&up(a.alternate,a);break;case 24:Li(r,a,s,c),h&2048&&cp(a.alternate,a);break;default:Li(r,a,s,c)}}function io(r,a,s,c,h){for(h=h&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var y=r,x=a,N=s,j=c,F=x.flags;switch(x.tag){case 0:case 11:case 15:io(y,x,N,j,h),Os(8,x);break;case 23:break;case 22:var ie=x.stateNode;x.memoizedState!==null?ie._visibility&4?io(y,x,N,j,h):Ms(y,x):(ie._visibility|=4,io(y,x,N,j,h)),h&&F&2048&&up(x.alternate,x);break;case 24:io(y,x,N,j,h),h&&F&2048&&cp(x.alternate,x);break;default:io(y,x,N,j,h)}a=a.sibling}}function Ms(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=r,c=a,h=c.flags;switch(c.tag){case 22:Ms(s,c),h&2048&&up(c.alternate,c);break;case 24:Ms(s,c),h&2048&&cp(c.alternate,c);break;default:Ms(s,c)}a=a.sibling}}var Ns=8192;function ao(r){if(r.subtreeFlags&Ns)for(r=r.child;r!==null;)gv(r),r=r.sibling}function gv(r){switch(r.tag){case 26:ao(r),r.flags&Ns&&r.memoizedState!==null&&r2(br,r.memoizedState,r.memoizedProps);break;case 5:ao(r);break;case 3:case 4:var a=br;br=Ju(r.stateNode.containerInfo),ao(r),br=a;break;case 22:r.memoizedState===null&&(a=r.alternate,a!==null&&a.memoizedState!==null?(a=Ns,Ns=16777216,ao(r),Ns=a):ao(r));break;default:ao(r)}}function yv(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Ds(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var c=a[s];an=c,vv(c,r)}yv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)bv(r),r=r.sibling}function bv(r){switch(r.tag){case 0:case 11:case 15:Ds(r),r.flags&2048&&Ni(9,r,r.return);break;case 3:Ds(r);break;case 12:Ds(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&4&&(r.return===null||r.return.tag!==13)?(a._visibility&=-5,$u(r)):Ds(r);break;default:Ds(r)}}function $u(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var c=a[s];an=c,vv(c,r)}yv(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Ni(8,a,a.return),$u(a);break;case 22:s=a.stateNode,s._visibility&4&&(s._visibility&=-5,$u(a));break;default:$u(a)}r=r.sibling}}function vv(r,a){for(;an!==null;){var s=an;switch(s.tag){case 0:case 11:case 15:Ni(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var c=s.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Ss(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,an=c;else e:for(s=r;an!==null;){c=an;var h=c.sibling,y=c.return;if(cv(c),c===s){an=null;break e}if(h!==null){h.return=y,an=h;break e}an=y}}}function gE(r,a,s,c){this.tag=r,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ar(r,a,s,c){return new gE(r,a,s,c)}function fp(r){return r=r.prototype,!(!r||!r.isReactComponent)}function zi(r,a){var s=r.alternate;return s===null?(s=ar(r.tag,a,r.key,r.mode),s.elementType=r.elementType,s.type=r.type,s.stateNode=r.stateNode,s.alternate=r,r.alternate=s):(s.pendingProps=a,s.type=r.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=r.flags&31457280,s.childLanes=r.childLanes,s.lanes=r.lanes,s.child=r.child,s.memoizedProps=r.memoizedProps,s.memoizedState=r.memoizedState,s.updateQueue=r.updateQueue,a=r.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=r.sibling,s.index=r.index,s.ref=r.ref,s.refCleanup=r.refCleanup,s}function Sv(r,a){r.flags&=31457282;var s=r.alternate;return s===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=s.childLanes,r.lanes=s.lanes,r.child=s.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,r.type=s.type,a=s.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Pu(r,a,s,c,h,y){var x=0;if(c=r,typeof r=="function")fp(r)&&(x=1);else if(typeof r=="string")x=t2(r,s,xe.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case d:return ha(s.children,h,y,a);case p:x=8,h|=24;break;case m:return r=ar(12,s,a,h|2),r.elementType=m,r.lanes=y,r;case S:return r=ar(13,s,a,h),r.elementType=S,r.lanes=y,r;case C:return r=ar(19,s,a,h),r.elementType=C,r.lanes=y,r;case _:return wv(s,h,y,a);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case g:case b:x=10;break e;case v:x=9;break e;case w:x=11;break e;case A:x=14;break e;case O:x=16,c=null;break e}x=29,s=Error(i(130,r===null?"null":typeof r,"")),c=null}return a=ar(x,s,a,h),a.elementType=r,a.type=c,a.lanes=y,a}function ha(r,a,s,c){return r=ar(7,r,c,a),r.lanes=s,r}function wv(r,a,s,c){r=ar(22,r,c,a),r.elementType=_,r.lanes=s;var h={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var y=h._current;if(y===null)throw Error(i(456));if((h._pendingVisibility&2)===0){var x=Ci(y,2);x!==null&&(h._pendingVisibility|=2,xn(x,y,2))}},attach:function(){var y=h._current;if(y===null)throw Error(i(456));if((h._pendingVisibility&2)!==0){var x=Ci(y,2);x!==null&&(h._pendingVisibility&=-3,xn(x,y,2))}}};return r.stateNode=h,r}function dp(r,a,s){return r=ar(6,r,null,a),r.lanes=s,r}function pp(r,a,s){return a=ar(4,r.children!==null?r.children:[],r.key,a),a.lanes=s,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}function oi(r){r.flags|=4}function xv(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!o0(a)){if(a=nr.current,a!==null&&((Je&4194176)===Je?Mr!==null:(Je&62914560)!==Je&&(Je&536870912)===0||a!==Mr))throw ys=bd,$y;r.flags|=8192}}function Uu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?jn():536870912,r.lanes|=a,so|=a)}function Ls(r,a){if(!at)switch(r.tailMode){case"hidden":a=r.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?r.tail=null:s.sibling=null;break;case"collapsed":s=r.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function Ot(r){var a=r.alternate!==null&&r.alternate.child===r.child,s=0,c=0;if(a)for(var h=r.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags&31457280,c|=h.flags&31457280,h.return=r,h=h.sibling;else for(h=r.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=r,h=h.sibling;return r.subtreeFlags|=c,r.childLanes=s,a}function yE(r,a,s){var c=a.pendingProps;switch(gd(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(a),null;case 1:return Ot(a),null;case 3:return s=a.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),ni(Zt),et(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(r===null||r.child===null)&&(ps(a)?oi(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,yr!==null&&(wp(yr),yr=null))),Ot(a),null;case 26:return s=a.memoizedState,r===null?(oi(a),s!==null?(Ot(a),xv(a,s)):(Ot(a),a.flags&=-16777217)):s?s!==r.memoizedState?(oi(a),Ot(a),xv(a,s)):(Ot(a),a.flags&=-16777217):(r.memoizedProps!==c&&oi(a),Ot(a),a.flags&=-16777217),null;case 27:Pe(a),s=je.current;var h=a.type;if(r!==null&&a.stateNode!=null)r.memoizedProps!==c&&oi(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return Ot(a),null}r=xe.current,ps(a)?By(a):(r=Zv(h,c,s),a.stateNode=r,oi(a))}return Ot(a),null;case 5:if(Pe(a),s=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&oi(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return Ot(a),null}if(r=xe.current,ps(a))By(a);else{switch(h=Zu(je.current),r){case 1:r=h.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:r=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":r=h.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":r=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":r=h.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof c.is=="string"?h.createElement("select",{is:c.is}):h.createElement("select"),c.multiple?r.multiple=!0:c.size&&(r.size=c.size);break;default:r=typeof c.is=="string"?h.createElement(s,{is:c.is}):h.createElement(s)}}r[Vt]=a,r[On]=c;e:for(h=a.child;h!==null;){if(h.tag===5||h.tag===6)r.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===a)break e;for(;h.sibling===null;){if(h.return===null||h.return===a)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}a.stateNode=r;e:switch(fn(r,s,c),s){case"button":case"input":case"select":case"textarea":r=!!c.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&oi(a)}}return Ot(a),a.flags&=-16777217,null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==c&&oi(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(r=je.current,ps(a)){if(r=a.stateNode,s=a.memoizedProps,c=null,h=wn,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}r[Vt]=a,r=!!(r.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||Gv(r.nodeValue,s)),r||ia(a)}else r=Zu(r).createTextNode(c),r[Vt]=a,a.stateNode=r}return Ot(a),null;case 13:if(c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(h=ps(a),c!==null&&c.dehydrated!==null){if(r===null){if(!h)throw Error(i(318));if(h=a.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[Vt]=a}else hs(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ot(a),h=!1}else yr!==null&&(wp(yr),yr=null),h=!0;if(!h)return a.flags&256?(Zr(a),a):(Zr(a),null)}if(Zr(a),(a.flags&128)!==0)return a.lanes=s,a;if(s=c!==null,r=r!==null&&r.memoizedState!==null,s){c=a.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool);var y=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==h&&(c.flags|=2048)}return s!==r&&s&&(a.child.flags|=8192),Uu(a,a.updateQueue),Ot(a),null;case 4:return et(),r===null&&Np(a.stateNode.containerInfo),Ot(a),null;case 10:return ni(a.type),Ot(a),null;case 19:if(be(Qt),h=a.memoizedState,h===null)return Ot(a),null;if(c=(a.flags&128)!==0,y=h.rendering,y===null)if(c)Ls(h,!1);else{if(Dt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(y=ku(r),y!==null){for(a.flags|=128,Ls(h,!1),r=y.updateQueue,a.updateQueue=r,Uu(a,r),a.subtreeFlags=0,r=s,s=a.child;s!==null;)Sv(s,r),s=s.sibling;return ue(Qt,Qt.current&1|2),a.child}r=r.sibling}h.tail!==null&&tt()>Hu&&(a.flags|=128,c=!0,Ls(h,!1),a.lanes=4194304)}else{if(!c)if(r=ku(y),r!==null){if(a.flags|=128,c=!0,r=r.updateQueue,a.updateQueue=r,Uu(a,r),Ls(h,!0),h.tail===null&&h.tailMode==="hidden"&&!y.alternate&&!at)return Ot(a),null}else 2*tt()-h.renderingStartTime>Hu&&s!==536870912&&(a.flags|=128,c=!0,Ls(h,!1),a.lanes=4194304);h.isBackwards?(y.sibling=a.child,a.child=y):(r=h.last,r!==null?r.sibling=y:a.child=y,h.last=y)}return h.tail!==null?(a=h.tail,h.rendering=a,h.tail=a.sibling,h.renderingStartTime=tt(),a.sibling=null,r=Qt.current,ue(Qt,c?r&1|2:r&1),a):(Ot(a),null);case 22:case 23:return Zr(a),Sd(),c=a.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(s&536870912)!==0&&(a.flags&128)===0&&(Ot(a),a.subtreeFlags&6&&(a.flags|=8192)):Ot(a),s=a.updateQueue,s!==null&&Uu(a,s.retryQueue),s=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==s&&(a.flags|=2048),r!==null&&be(oa),null;case 24:return s=null,r!==null&&(s=r.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),ni(Zt),Ot(a),null;case 25:return null}throw Error(i(156,a.tag))}function bE(r,a){switch(gd(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return ni(Zt),et(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Pe(a),null;case 13:if(Zr(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));hs()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return be(Qt),null;case 4:return et(),null;case 10:return ni(a.type),null;case 22:case 23:return Zr(a),Sd(),r!==null&&be(oa),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return ni(Zt),null;case 25:return null;default:return null}}function Cv(r,a){switch(gd(a),a.tag){case 3:ni(Zt),et();break;case 26:case 27:case 5:Pe(a);break;case 4:et();break;case 13:Zr(a);break;case 19:be(Qt);break;case 10:ni(a.type);break;case 22:case 23:Zr(a),Sd(),r!==null&&be(oa);break;case 24:ni(Zt)}}var vE={getCacheForType:function(r){var a=mn(Zt),s=a.data.get(r);return s===void 0&&(s=r(),a.data.set(r,s)),s}},SE=typeof WeakMap=="function"?WeakMap:Map,Mt=0,xt=null,Xe=null,Je=0,Ct=0,qn=null,si=!1,oo=!1,hp=!1,li=0,Dt=0,Ii=0,ma=0,mp=0,or=0,so=0,zs=null,Dr=null,gp=!1,yp=0,Hu=1/0,qu=null,Bi=null,Fu=!1,ga=null,Is=0,bp=0,vp=null,Bs=0,Sp=null;function Fn(){if((Mt&2)!==0&&Je!==0)return Je&-Je;if($.T!==null){var r=Za;return r!==0?r:_p()}return wi()}function kv(){or===0&&(or=(Je&536870912)===0||at?hn():536870912);var r=nr.current;return r!==null&&(r.flags|=32),or}function xn(r,a,s){(r===xt&&Ct===2||r.cancelPendingCommit!==null)&&(lo(r,0),ui(r,Je,or,!1)),Rt(r,s),((Mt&2)===0||r!==xt)&&(r===xt&&((Mt&2)===0&&(ma|=s),Dt===4&&ui(r,Je,or,!1)),Lr(r))}function Ev(r,a,s){if((Mt&6)!==0)throw Error(i(327));var c=!s&&(a&60)===0&&(a&r.expiredLanes)===0||An(r,a),h=c?CE(r,a):kp(r,a,!0),y=c;do{if(h===0){oo&&!c&&ui(r,a,0,!1);break}else if(h===6)ui(r,a,0,!si);else{if(s=r.current.alternate,y&&!wE(s)){h=kp(r,a,!1),y=!1;continue}if(h===2){if(y=a,r.errorRecoveryDisabledLanes&y)var x=0;else x=r.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){a=x;e:{var N=r;h=zs;var j=N.current.memoizedState.isDehydrated;if(j&&(lo(N,x).flags|=256),x=kp(N,x,!1),x!==2){if(hp&&!j){N.errorRecoveryDisabledLanes|=y,ma|=y,h=4;break e}y=Dr,Dr=h,y!==null&&wp(y)}h=x}if(y=!1,h!==2)continue}}if(h===1){lo(r,0),ui(r,a,0,!0);break}e:{switch(c=r,h){case 0:case 1:throw Error(i(345));case 4:if((a&4194176)===a){ui(c,a,or,!si);break e}break;case 2:Dr=null;break;case 3:case 5:break;default:throw Error(i(329))}if(c.finishedWork=s,c.finishedLanes=a,(a&62914560)===a&&(y=yp+300-tt(),10<y)){if(ui(c,a,or,!si),tn(c,0)!==0)break e;c.timeoutHandle=Xv(Tv.bind(null,c,s,Dr,qu,gp,a,or,ma,so,si,2,-0,0),y);break e}Tv(c,s,Dr,qu,gp,a,or,ma,so,si,0,-0,0)}}break}while(!0);Lr(r)}function wp(r){Dr===null?Dr=r:Dr.push.apply(Dr,r)}function Tv(r,a,s,c,h,y,x,N,j,F,ie,ce,Q){var ne=a.subtreeFlags;if((ne&8192||(ne&16785408)===16785408)&&(qs={stylesheets:null,count:0,unsuspend:n2},gv(a),a=i2(),a!==null)){r.cancelPendingCommit=a(Dv.bind(null,r,s,c,h,x,N,j,1,ce,Q)),ui(r,y,x,!F);return}Dv(r,s,c,h,x,N,j,ie,ce,Q)}function wE(r){for(var a=r;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var c=0;c<s.length;c++){var h=s[c],y=h.getSnapshot;h=h.value;try{if(!Pn(y(),h))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ui(r,a,s,c){a&=~mp,a&=~ma,r.suspendedLanes|=a,r.pingedLanes&=~a,c&&(r.warmLanes|=a),c=r.expirationTimes;for(var h=a;0<h;){var y=31-He(h),x=1<<y;c[y]=-1,h&=~x}s!==0&&$n(r,s,a)}function Vu(){return(Mt&6)===0?(js(0),!1):!0}function xp(){if(Xe!==null){if(Ct===0)var r=Xe.return;else r=Xe,ti=fa=null,_d(r),Wa=null,bs=0,r=Xe;for(;r!==null;)Cv(r.alternate,r),r=r.return;Xe=null}}function lo(r,a){r.finishedWork=null,r.finishedLanes=0;var s=r.timeoutHandle;s!==-1&&(r.timeoutHandle=-1,PE(s)),s=r.cancelPendingCommit,s!==null&&(r.cancelPendingCommit=null,s()),xp(),xt=r,Xe=s=zi(r.current,null),Je=a,Ct=0,qn=null,si=!1,oo=An(r,a),hp=!1,so=or=mp=ma=Ii=Dt=0,Dr=zs=null,gp=!1,(a&8)!==0&&(a|=a&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=a;0<c;){var h=31-He(c),y=1<<h;a|=r[h],c&=~y}return li=a,mu(),s}function Av(r,a){qe=null,$.H=Nr,a===gs?(a=Hy(),Ct=3):a===$y?(a=Hy(),Ct=4):Ct=a===Pb?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,qn=a,Xe===null&&(Dt=1,zu(r,Jn(a,r.current)))}function _v(){var r=$.H;return $.H=Nr,r===null?Nr:r}function Rv(){var r=$.A;return $.A=vE,r}function Cp(){Dt=4,si||(Je&4194176)!==Je&&nr.current!==null||(oo=!0),(Ii&134217727)===0&&(ma&134217727)===0||xt===null||ui(xt,Je,or,!1)}function kp(r,a,s){var c=Mt;Mt|=2;var h=_v(),y=Rv();(xt!==r||Je!==a)&&(qu=null,lo(r,a)),a=!1;var x=Dt;e:do try{if(Ct!==0&&Xe!==null){var N=Xe,j=qn;switch(Ct){case 8:xp(),x=6;break e;case 3:case 2:case 6:nr.current===null&&(a=!0);var F=Ct;if(Ct=0,qn=null,uo(r,N,j,F),s&&oo){x=0;break e}break;default:F=Ct,Ct=0,qn=null,uo(r,N,j,F)}}xE(),x=Dt;break}catch(ie){Av(r,ie)}while(!0);return a&&r.shellSuspendCounter++,ti=fa=null,Mt=c,$.H=h,$.A=y,Xe===null&&(xt=null,Je=0,mu()),x}function xE(){for(;Xe!==null;)Ov(Xe)}function CE(r,a){var s=Mt;Mt|=2;var c=_v(),h=Rv();xt!==r||Je!==a?(qu=null,Hu=tt()+500,lo(r,a)):oo=An(r,a);e:do try{if(Ct!==0&&Xe!==null){a=Xe;var y=qn;t:switch(Ct){case 1:Ct=0,qn=null,uo(r,a,y,1);break;case 2:if(Py(y)){Ct=0,qn=null,Mv(a);break}a=function(){Ct===2&&xt===r&&(Ct=7),Lr(r)},y.then(a,a);break e;case 3:Ct=7;break e;case 4:Ct=5;break e;case 7:Py(y)?(Ct=0,qn=null,Mv(a)):(Ct=0,qn=null,uo(r,a,y,7));break;case 5:var x=null;switch(Xe.tag){case 26:x=Xe.memoizedState;case 5:case 27:var N=Xe;if(!x||o0(x)){Ct=0,qn=null;var j=N.sibling;if(j!==null)Xe=j;else{var F=N.return;F!==null?(Xe=F,Gu(F)):Xe=null}break t}}Ct=0,qn=null,uo(r,a,y,5);break;case 6:Ct=0,qn=null,uo(r,a,y,6);break;case 8:xp(),Dt=6;break e;default:throw Error(i(462))}}kE();break}catch(ie){Av(r,ie)}while(!0);return ti=fa=null,$.H=c,$.A=h,Mt=s,Xe!==null?0:(xt=null,Je=0,mu(),Dt)}function kE(){for(;Xe!==null&&!we();)Ov(Xe)}function Ov(r){var a=Zb(r.alternate,r,li);r.memoizedProps=r.pendingProps,a===null?Gu(r):Xe=a}function Mv(r){var a=r,s=a.alternate;switch(a.tag){case 15:case 0:a=Gb(s,a,a.pendingProps,a.type,void 0,Je);break;case 11:a=Gb(s,a,a.pendingProps,a.type.render,a.ref,Je);break;case 5:_d(a);default:Cv(s,a),a=Xe=Sv(a,li),a=Zb(s,a,li)}r.memoizedProps=r.pendingProps,a===null?Gu(r):Xe=a}function uo(r,a,s,c){ti=fa=null,_d(a),Wa=null,bs=0;var h=a.return;try{if(dE(r,h,a,s,Je)){Dt=1,zu(r,Jn(s,r.current)),Xe=null;return}}catch(y){if(h!==null)throw Xe=h,y;Dt=1,zu(r,Jn(s,r.current)),Xe=null;return}a.flags&32768?(at||c===1?r=!0:oo||(Je&536870912)!==0?r=!1:(si=r=!0,(c===2||c===3||c===6)&&(c=nr.current,c!==null&&c.tag===13&&(c.flags|=16384))),Nv(a,r)):Gu(a)}function Gu(r){var a=r;do{if((a.flags&32768)!==0){Nv(a,si);return}r=a.return;var s=yE(a.alternate,a,li);if(s!==null){Xe=s;return}if(a=a.sibling,a!==null){Xe=a;return}Xe=a=r}while(a!==null);Dt===0&&(Dt=5)}function Nv(r,a){do{var s=bE(r.alternate,r);if(s!==null){s.flags&=32767,Xe=s;return}if(s=r.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(r=r.sibling,r!==null)){Xe=r;return}Xe=r=s}while(r!==null);Dt=6,Xe=null}function Dv(r,a,s,c,h,y,x,N,j,F){var ie=$.T,ce=re.p;try{re.p=2,$.T=null,EE(r,a,s,c,ce,h,y,x,N,j,F)}finally{$.T=ie,re.p=ce}}function EE(r,a,s,c,h,y,x,N){do co();while(ga!==null);if((Mt&6)!==0)throw Error(i(327));var j=r.finishedWork;if(c=r.finishedLanes,j===null)return null;if(r.finishedWork=null,r.finishedLanes=0,j===r.current)throw Error(i(177));r.callbackNode=null,r.callbackPriority=0,r.cancelPendingCommit=null;var F=j.lanes|j.childLanes;if(F|=pd,_r(r,c,F,y,x,N),r===xt&&(Xe=xt=null,Je=0),(j.subtreeFlags&10256)===0&&(j.flags&10256)===0||Fu||(Fu=!0,bp=F,vp=s,RE(he,function(){return co(),null})),s=(j.flags&15990)!==0,(j.subtreeFlags&15990)!==0||s?(s=$.T,$.T=null,y=re.p,re.p=2,x=Mt,Mt|=4,hE(r,j),pv(j,r),Xk(Ip,r.containerInfo),ic=!!zp,Ip=zp=null,r.current=j,uv(r,j.alternate,j),pn(),Mt=x,re.p=y,$.T=s):r.current=j,Fu?(Fu=!1,ga=r,Is=c):Lv(r,F),F=r.pendingLanes,F===0&&(Bi=null),Ee(j.stateNode),Lr(r),a!==null)for(h=r.onRecoverableError,j=0;j<a.length;j++)F=a[j],h(F.value,{componentStack:F.stack});return(Is&3)!==0&&co(),F=r.pendingLanes,(c&4194218)!==0&&(F&42)!==0?r===Sp?Bs++:(Bs=0,Sp=r):Bs=0,js(0),null}function Lv(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Ss(a)))}function co(){if(ga!==null){var r=ga,a=bp;bp=0;var s=Si(Is),c=$.T,h=re.p;try{if(re.p=32>s?32:s,$.T=null,ga===null)var y=!1;else{s=vp,vp=null;var x=ga,N=Is;if(ga=null,Is=0,(Mt&6)!==0)throw Error(i(331));var j=Mt;if(Mt|=4,bv(x.current),mv(x,x.current,N,s),Mt=j,js(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(nt,x)}catch{}y=!0}return y}finally{re.p=h,$.T=c,Lv(r,a)}}return!1}function zv(r,a,s){a=Jn(s,a),a=Hd(r.stateNode,a,2),r=Mi(r,a,2),r!==null&&(Rt(r,2),Lr(r))}function vt(r,a,s){if(r.tag===3)zv(r,r,s);else for(;a!==null;){if(a.tag===3){zv(a,r,s);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Bi===null||!Bi.has(c))){r=Jn(s,r),s=jb(2),c=Mi(a,s,2),c!==null&&($b(s,c,a,r),Rt(c,2),Lr(c));break}}a=a.return}}function Ep(r,a,s){var c=r.pingCache;if(c===null){c=r.pingCache=new SE;var h=new Set;c.set(a,h)}else h=c.get(a),h===void 0&&(h=new Set,c.set(a,h));h.has(s)||(hp=!0,h.add(s),r=TE.bind(null,r,a,s),a.then(r,r))}function TE(r,a,s){var c=r.pingCache;c!==null&&c.delete(a),r.pingedLanes|=r.suspendedLanes&s,r.warmLanes&=~s,xt===r&&(Je&s)===s&&(Dt===4||Dt===3&&(Je&62914560)===Je&&300>tt()-yp?(Mt&2)===0&&lo(r,0):mp|=s,so===Je&&(so=0)),Lr(r)}function Iv(r,a){a===0&&(a=jn()),r=Ci(r,a),r!==null&&(Rt(r,a),Lr(r))}function AE(r){var a=r.memoizedState,s=0;a!==null&&(s=a.retryLane),Iv(r,s)}function _E(r,a){var s=0;switch(r.tag){case 13:var c=r.stateNode,h=r.memoizedState;h!==null&&(s=h.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),Iv(r,s)}function RE(r,a){return Ye(r,a)}var Ku=null,fo=null,Tp=!1,Yu=!1,Ap=!1,ya=0;function Lr(r){r!==fo&&r.next===null&&(fo===null?Ku=fo=r:fo=fo.next=r),Yu=!0,Tp||(Tp=!0,ME(OE))}function js(r,a){if(!Ap&&Yu){Ap=!0;do for(var s=!1,c=Ku;c!==null;){if(r!==0){var h=c.pendingLanes;if(h===0)var y=0;else{var x=c.suspendedLanes,N=c.pingedLanes;y=(1<<31-He(42|r)+1)-1,y&=h&~(x&~N),y=y&201326677?y&201326677|1:y?y|2:0}y!==0&&(s=!0,$v(c,y))}else y=Je,y=tn(c,c===xt?y:0),(y&3)===0||An(c,y)||(s=!0,$v(c,y));c=c.next}while(s);Ap=!1}}function OE(){Yu=Tp=!1;var r=0;ya!==0&&($E()&&(r=ya),ya=0);for(var a=tt(),s=null,c=Ku;c!==null;){var h=c.next,y=Bv(c,a);y===0?(c.next=null,s===null?Ku=h:s.next=h,h===null&&(fo=s)):(s=c,(r!==0||(y&3)!==0)&&(Yu=!0)),c=h}js(r)}function Bv(r,a){for(var s=r.suspendedLanes,c=r.pingedLanes,h=r.expirationTimes,y=r.pendingLanes&-62914561;0<y;){var x=31-He(y),N=1<<x,j=h[x];j===-1?((N&s)===0||(N&c)!==0)&&(h[x]=_n(N,a)):j<=a&&(r.expiredLanes|=N),y&=~N}if(a=xt,s=Je,s=tn(r,r===a?s:0),c=r.callbackNode,s===0||r===a&&Ct===2||r.cancelPendingCommit!==null)return c!==null&&c!==null&&it(c),r.callbackNode=null,r.callbackPriority=0;if((s&3)===0||An(r,s)){if(a=s&-s,a===r.callbackPriority)return a;switch(c!==null&&it(c),Si(s)){case 2:case 8:s=de;break;case 32:s=he;break;case 268435456:s=Re;break;default:s=he}return c=jv.bind(null,r),s=Ye(s,c),r.callbackPriority=a,r.callbackNode=s,a}return c!==null&&c!==null&&it(c),r.callbackPriority=2,r.callbackNode=null,2}function jv(r,a){var s=r.callbackNode;if(co()&&r.callbackNode!==s)return null;var c=Je;return c=tn(r,r===xt?c:0),c===0?null:(Ev(r,c,a),Bv(r,tt()),r.callbackNode!=null&&r.callbackNode===s?jv.bind(null,r):null)}function $v(r,a){if(co())return null;Ev(r,a,!0)}function ME(r){UE(function(){(Mt&6)!==0?Ye(ee,r):r()})}function _p(){return ya===0&&(ya=hn()),ya}function Pv(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:lu(""+r)}function Uv(r,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,r.id&&s.setAttribute("form",r.id),a.parentNode.insertBefore(s,a),r=new FormData(r),s.parentNode.removeChild(s),r}function NE(r,a,s,c,h){if(a==="submit"&&s&&s.stateNode===h){var y=Pv((h[On]||null).action),x=c.submitter;x&&(a=(a=x[On]||null)?Pv(a.formAction):x.getAttribute("formAction"),a!==null&&(y=a,x=null));var N=new du("action","action",null,c,h);r.push({event:N,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(ya!==0){var j=x?Uv(h,x):new FormData(h);Bd(s,{pending:!0,data:j,method:h.method,action:y},null,j)}}else typeof y=="function"&&(N.preventDefault(),j=x?Uv(h,x):new FormData(h),Bd(s,{pending:!0,data:j,method:h.method,action:y},y,j))},currentTarget:h}]})}}for(var Rp=0;Rp<Dy.length;Rp++){var Op=Dy[Rp],DE=Op.toLowerCase(),LE=Op[0].toUpperCase()+Op.slice(1);gr(DE,"on"+LE)}gr(_y,"onAnimationEnd"),gr(Ry,"onAnimationIteration"),gr(Oy,"onAnimationStart"),gr("dblclick","onDoubleClick"),gr("focusin","onFocus"),gr("focusout","onBlur"),gr(Qk,"onTransitionRun"),gr(Zk,"onTransitionStart"),gr(Jk,"onTransitionCancel"),gr(My,"onTransitionEnd"),ja("onMouseEnter",["mouseout","mouseover"]),ja("onMouseLeave",["mouseout","mouseover"]),ja("onPointerEnter",["pointerout","pointerover"]),ja("onPointerLeave",["pointerout","pointerover"]),Zi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $s="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(" "),zE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($s));function Hv(r,a){a=(a&4)!==0;for(var s=0;s<r.length;s++){var c=r[s],h=c.event;c=c.listeners;e:{var y=void 0;if(a)for(var x=c.length-1;0<=x;x--){var N=c[x],j=N.instance,F=N.currentTarget;if(N=N.listener,j!==y&&h.isPropagationStopped())break e;y=N,h.currentTarget=F;try{y(h)}catch(ie){Lu(ie)}h.currentTarget=null,y=j}else for(x=0;x<c.length;x++){if(N=c[x],j=N.instance,F=N.currentTarget,N=N.listener,j!==y&&h.isPropagationStopped())break e;y=N,h.currentTarget=F;try{y(h)}catch(ie){Lu(ie)}h.currentTarget=null,y=j}}}}function Qe(r,a){var s=a[Gf];s===void 0&&(s=a[Gf]=new Set);var c=r+"__bubble";s.has(c)||(qv(a,r,2,!1),s.add(c))}function Mp(r,a,s){var c=0;a&&(c|=4),qv(s,r,c,a)}var Xu="_reactListening"+Math.random().toString(36).slice(2);function Np(r){if(!r[Xu]){r[Xu]=!0,Gg.forEach(function(s){s!=="selectionchange"&&(zE.has(s)||Mp(s,!1,r),Mp(s,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Xu]||(a[Xu]=!0,Mp("selectionchange",!1,a))}}function qv(r,a,s,c){switch(d0(a)){case 2:var h=s2;break;case 8:h=l2;break;default:h=Vp}s=h.bind(null,a,s,r),h=void 0,!ed||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(h=!0),c?h!==void 0?r.addEventListener(a,s,{capture:!0,passive:h}):r.addEventListener(a,s,!0):h!==void 0?r.addEventListener(a,s,{passive:h}):r.addEventListener(a,s,!1)}function Dp(r,a,s,c,h){var y=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var N=c.stateNode.containerInfo;if(N===h||N.nodeType===8&&N.parentNode===h)break;if(x===4)for(x=c.return;x!==null;){var j=x.tag;if((j===3||j===4)&&(j=x.stateNode.containerInfo,j===h||j.nodeType===8&&j.parentNode===h))return;x=x.return}for(;N!==null;){if(x=Qi(N),x===null)return;if(j=x.tag,j===5||j===6||j===26||j===27){c=y=x;continue e}N=N.parentNode}}c=c.return}iy(function(){var F=y,ie=Zf(s),ce=[];e:{var Q=Ny.get(r);if(Q!==void 0){var ne=du,Te=r;switch(r){case"keypress":if(cu(s)===0)break e;case"keydown":case"keyup":ne=_k;break;case"focusin":Te="focus",ne=id;break;case"focusout":Te="blur",ne=id;break;case"beforeblur":case"afterblur":ne=id;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=sy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=gk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=Mk;break;case _y:case Ry:case Oy:ne=vk;break;case My:ne=Dk;break;case"scroll":case"scrollend":ne=hk;break;case"wheel":ne=zk;break;case"copy":case"cut":case"paste":ne=wk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=uy;break;case"toggle":case"beforetoggle":ne=Bk}var ze=(a&4)!==0,Lt=!ze&&(r==="scroll"||r==="scrollend"),K=ze?Q!==null?Q+"Capture":null:Q;ze=[];for(var q=F,W;q!==null;){var oe=q;if(W=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||W===null||K===null||(oe=is(q,K),oe!=null&&ze.push(Ps(q,oe,W))),Lt)break;q=q.return}0<ze.length&&(Q=new ne(Q,Te,null,s,ie),ce.push({event:Q,listeners:ze}))}}if((a&7)===0){e:{if(Q=r==="mouseover"||r==="pointerover",ne=r==="mouseout"||r==="pointerout",Q&&s!==Qf&&(Te=s.relatedTarget||s.fromElement)&&(Qi(Te)||Te[za]))break e;if((ne||Q)&&(Q=ie.window===ie?ie:(Q=ie.ownerDocument)?Q.defaultView||Q.parentWindow:window,ne?(Te=s.relatedTarget||s.toElement,ne=F,Te=Te?Qi(Te):null,Te!==null&&(Lt=ae(Te),ze=Te.tag,Te!==Lt||ze!==5&&ze!==27&&ze!==6)&&(Te=null)):(ne=null,Te=F),ne!==Te)){if(ze=sy,oe="onMouseLeave",K="onMouseEnter",q="mouse",(r==="pointerout"||r==="pointerover")&&(ze=uy,oe="onPointerLeave",K="onPointerEnter",q="pointer"),Lt=ne==null?Q:rs(ne),W=Te==null?Q:rs(Te),Q=new ze(oe,q+"leave",ne,s,ie),Q.target=Lt,Q.relatedTarget=W,oe=null,Qi(ie)===F&&(ze=new ze(K,q+"enter",Te,s,ie),ze.target=W,ze.relatedTarget=Lt,oe=ze),Lt=oe,ne&&Te)t:{for(ze=ne,K=Te,q=0,W=ze;W;W=po(W))q++;for(W=0,oe=K;oe;oe=po(oe))W++;for(;0<q-W;)ze=po(ze),q--;for(;0<W-q;)K=po(K),W--;for(;q--;){if(ze===K||K!==null&&ze===K.alternate)break t;ze=po(ze),K=po(K)}ze=null}else ze=null;ne!==null&&Fv(ce,Q,ne,ze,!1),Te!==null&&Lt!==null&&Fv(ce,Lt,Te,ze,!0)}}e:{if(Q=F?rs(F):window,ne=Q.nodeName&&Q.nodeName.toLowerCase(),ne==="select"||ne==="input"&&Q.type==="file")var ve=yy;else if(my(Q))if(by)ve=Kk;else{ve=Vk;var Ve=Fk}else ne=Q.nodeName,!ne||ne.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?F&&Wf(F.elementType)&&(ve=yy):ve=Gk;if(ve&&(ve=ve(r,F))){gy(ce,ve,s,ie);break e}Ve&&Ve(r,Q,F),r==="focusout"&&F&&Q.type==="number"&&F.memoizedProps.value!=null&&Xf(Q,"number",Q.value)}switch(Ve=F?rs(F):window,r){case"focusin":(my(Ve)||Ve.contentEditable==="true")&&(Fa=Ve,cd=F,ds=null);break;case"focusout":ds=cd=Fa=null;break;case"mousedown":fd=!0;break;case"contextmenu":case"mouseup":case"dragend":fd=!1,Ty(ce,s,ie);break;case"selectionchange":if(Wk)break;case"keydown":case"keyup":Ty(ce,s,ie)}var _e;if(od)e:{switch(r){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else qa?py(r,s)&&(De="onCompositionEnd"):r==="keydown"&&s.keyCode===229&&(De="onCompositionStart");De&&(cy&&s.locale!=="ko"&&(qa||De!=="onCompositionStart"?De==="onCompositionEnd"&&qa&&(_e=ay()):(xi=ie,td="value"in xi?xi.value:xi.textContent,qa=!0)),Ve=Wu(F,De),0<Ve.length&&(De=new ly(De,r,null,s,ie),ce.push({event:De,listeners:Ve}),_e?De.data=_e:(_e=hy(s),_e!==null&&(De.data=_e)))),(_e=$k?Pk(r,s):Uk(r,s))&&(De=Wu(F,"onBeforeInput"),0<De.length&&(Ve=new ly("onBeforeInput","beforeinput",null,s,ie),ce.push({event:Ve,listeners:De}),Ve.data=_e)),NE(ce,r,F,s,ie)}Hv(ce,a)})}function Ps(r,a,s){return{instance:r,listener:a,currentTarget:s}}function Wu(r,a){for(var s=a+"Capture",c=[];r!==null;){var h=r,y=h.stateNode;h=h.tag,h!==5&&h!==26&&h!==27||y===null||(h=is(r,s),h!=null&&c.unshift(Ps(r,h,y)),h=is(r,a),h!=null&&c.push(Ps(r,h,y))),r=r.return}return c}function po(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function Fv(r,a,s,c,h){for(var y=a._reactName,x=[];s!==null&&s!==c;){var N=s,j=N.alternate,F=N.stateNode;if(N=N.tag,j!==null&&j===c)break;N!==5&&N!==26&&N!==27||F===null||(j=F,h?(F=is(s,y),F!=null&&x.unshift(Ps(s,F,j))):h||(F=is(s,y),F!=null&&x.push(Ps(s,F,j)))),s=s.return}x.length!==0&&r.push({event:a,listeners:x})}var IE=/\r\n?/g,BE=/\u0000|\uFFFD/g;function Vv(r){return(typeof r=="string"?r:""+r).replace(IE,`
`).replace(BE,"")}function Gv(r,a){return a=Vv(a),Vv(r)===a}function Qu(){}function gt(r,a,s,c,h,y){switch(s){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Pa(r,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Pa(r,""+c);break;case"className":au(r,"class",c);break;case"tabIndex":au(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":au(r,s,c);break;case"style":ny(r,c,y);break;case"data":if(a!=="object"){au(r,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||s!=="href")){r.removeAttribute(s);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(s);break}c=lu(""+c),r.setAttribute(s,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(s==="formAction"?(a!=="input"&&gt(r,a,"name",h.name,h,null),gt(r,a,"formEncType",h.formEncType,h,null),gt(r,a,"formMethod",h.formMethod,h,null),gt(r,a,"formTarget",h.formTarget,h,null)):(gt(r,a,"encType",h.encType,h,null),gt(r,a,"method",h.method,h,null),gt(r,a,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(s);break}c=lu(""+c),r.setAttribute(s,c);break;case"onClick":c!=null&&(r.onclick=Qu);break;case"onScroll":c!=null&&Qe("scroll",r);break;case"onScrollEnd":c!=null&&Qe("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(h.children!=null)throw Error(i(60));r.innerHTML=s}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}s=lu(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(s,""+c):r.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(s,""):r.removeAttribute(s);break;case"capture":case"download":c===!0?r.setAttribute(s,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(s,c):r.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(s,c):r.removeAttribute(s);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(s):r.setAttribute(s,c);break;case"popover":Qe("beforetoggle",r),Qe("toggle",r),iu(r,"popover",c);break;case"xlinkActuate":Xr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Xr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Xr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Xr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Xr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Xr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Xr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Xr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Xr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":iu(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=dk.get(s)||s,iu(r,s,c))}}function Lp(r,a,s,c,h,y){switch(s){case"style":ny(r,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(h.children!=null)throw Error(i(60));r.innerHTML=s}}break;case"children":typeof c=="string"?Pa(r,c):(typeof c=="number"||typeof c=="bigint")&&Pa(r,""+c);break;case"onScroll":c!=null&&Qe("scroll",r);break;case"onScrollEnd":c!=null&&Qe("scrollend",r);break;case"onClick":c!=null&&(r.onclick=Qu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kg.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(h=s.endsWith("Capture"),a=s.slice(2,h?s.length-7:void 0),y=r[On]||null,y=y!=null?y[s]:null,typeof y=="function"&&r.removeEventListener(a,y,h),typeof c=="function")){typeof y!="function"&&y!==null&&(s in r?r[s]=null:r.hasAttribute(s)&&r.removeAttribute(s)),r.addEventListener(a,c,h);break e}s in r?r[s]=c:c===!0?r.setAttribute(s,""):iu(r,s,c)}}}function fn(r,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",r),Qe("load",r);var c=!1,h=!1,y;for(y in s)if(s.hasOwnProperty(y)){var x=s[y];if(x!=null)switch(y){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:gt(r,a,y,x,s,null)}}h&&gt(r,a,"srcSet",s.srcSet,s,null),c&&gt(r,a,"src",s.src,s,null);return;case"input":Qe("invalid",r);var N=y=x=h=null,j=null,F=null;for(c in s)if(s.hasOwnProperty(c)){var ie=s[c];if(ie!=null)switch(c){case"name":h=ie;break;case"type":x=ie;break;case"checked":j=ie;break;case"defaultChecked":F=ie;break;case"value":y=ie;break;case"defaultValue":N=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(i(137,a));break;default:gt(r,a,c,ie,s,null)}}Zg(r,y,N,j,F,x,h,!1),ou(r);return;case"select":Qe("invalid",r),c=x=y=null;for(h in s)if(s.hasOwnProperty(h)&&(N=s[h],N!=null))switch(h){case"value":y=N;break;case"defaultValue":x=N;break;case"multiple":c=N;default:gt(r,a,h,N,s,null)}a=y,s=x,r.multiple=!!c,a!=null?$a(r,!!c,a,!1):s!=null&&$a(r,!!c,s,!0);return;case"textarea":Qe("invalid",r),y=h=c=null;for(x in s)if(s.hasOwnProperty(x)&&(N=s[x],N!=null))switch(x){case"value":c=N;break;case"defaultValue":h=N;break;case"children":y=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:gt(r,a,x,N,s,null)}ey(r,c,h,y),ou(r);return;case"option":for(j in s)if(s.hasOwnProperty(j)&&(c=s[j],c!=null))switch(j){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:gt(r,a,j,c,s,null)}return;case"dialog":Qe("cancel",r),Qe("close",r);break;case"iframe":case"object":Qe("load",r);break;case"video":case"audio":for(c=0;c<$s.length;c++)Qe($s[c],r);break;case"image":Qe("error",r),Qe("load",r);break;case"details":Qe("toggle",r);break;case"embed":case"source":case"link":Qe("error",r),Qe("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in s)if(s.hasOwnProperty(F)&&(c=s[F],c!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:gt(r,a,F,c,s,null)}return;default:if(Wf(a)){for(ie in s)s.hasOwnProperty(ie)&&(c=s[ie],c!==void 0&&Lp(r,a,ie,c,s,void 0));return}}for(N in s)s.hasOwnProperty(N)&&(c=s[N],c!=null&&gt(r,a,N,c,s,null))}function jE(r,a,s,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,y=null,x=null,N=null,j=null,F=null,ie=null;for(ne in s){var ce=s[ne];if(s.hasOwnProperty(ne)&&ce!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":j=ce;default:c.hasOwnProperty(ne)||gt(r,a,ne,null,c,ce)}}for(var Q in c){var ne=c[Q];if(ce=s[Q],c.hasOwnProperty(Q)&&(ne!=null||ce!=null))switch(Q){case"type":y=ne;break;case"name":h=ne;break;case"checked":F=ne;break;case"defaultChecked":ie=ne;break;case"value":x=ne;break;case"defaultValue":N=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,a));break;default:ne!==ce&&gt(r,a,Q,ne,c,ce)}}Yf(r,x,N,j,F,ie,y,h);return;case"select":ne=x=N=Q=null;for(y in s)if(j=s[y],s.hasOwnProperty(y)&&j!=null)switch(y){case"value":break;case"multiple":ne=j;default:c.hasOwnProperty(y)||gt(r,a,y,null,c,j)}for(h in c)if(y=c[h],j=s[h],c.hasOwnProperty(h)&&(y!=null||j!=null))switch(h){case"value":Q=y;break;case"defaultValue":N=y;break;case"multiple":x=y;default:y!==j&&gt(r,a,h,y,c,j)}a=N,s=x,c=ne,Q!=null?$a(r,!!s,Q,!1):!!c!=!!s&&(a!=null?$a(r,!!s,a,!0):$a(r,!!s,s?[]:"",!1));return;case"textarea":ne=Q=null;for(N in s)if(h=s[N],s.hasOwnProperty(N)&&h!=null&&!c.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:gt(r,a,N,null,c,h)}for(x in c)if(h=c[x],y=s[x],c.hasOwnProperty(x)&&(h!=null||y!=null))switch(x){case"value":Q=h;break;case"defaultValue":ne=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(i(91));break;default:h!==y&&gt(r,a,x,h,c,y)}Jg(r,Q,ne);return;case"option":for(var Te in s)if(Q=s[Te],s.hasOwnProperty(Te)&&Q!=null&&!c.hasOwnProperty(Te))switch(Te){case"selected":r.selected=!1;break;default:gt(r,a,Te,null,c,Q)}for(j in c)if(Q=c[j],ne=s[j],c.hasOwnProperty(j)&&Q!==ne&&(Q!=null||ne!=null))switch(j){case"selected":r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:gt(r,a,j,Q,c,ne)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ze in s)Q=s[ze],s.hasOwnProperty(ze)&&Q!=null&&!c.hasOwnProperty(ze)&&gt(r,a,ze,null,c,Q);for(F in c)if(Q=c[F],ne=s[F],c.hasOwnProperty(F)&&Q!==ne&&(Q!=null||ne!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,a));break;default:gt(r,a,F,Q,c,ne)}return;default:if(Wf(a)){for(var Lt in s)Q=s[Lt],s.hasOwnProperty(Lt)&&Q!==void 0&&!c.hasOwnProperty(Lt)&&Lp(r,a,Lt,void 0,c,Q);for(ie in c)Q=c[ie],ne=s[ie],!c.hasOwnProperty(ie)||Q===ne||Q===void 0&&ne===void 0||Lp(r,a,ie,Q,c,ne);return}}for(var K in s)Q=s[K],s.hasOwnProperty(K)&&Q!=null&&!c.hasOwnProperty(K)&&gt(r,a,K,null,c,Q);for(ce in c)Q=c[ce],ne=s[ce],!c.hasOwnProperty(ce)||Q===ne||Q==null&&ne==null||gt(r,a,ce,Q,c,ne)}var zp=null,Ip=null;function Zu(r){return r.nodeType===9?r:r.ownerDocument}function Kv(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Yv(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Bp(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var jp=null;function $E(){var r=window.event;return r&&r.type==="popstate"?r===jp?!1:(jp=r,!0):(jp=null,!1)}var Xv=typeof setTimeout=="function"?setTimeout:void 0,PE=typeof clearTimeout=="function"?clearTimeout:void 0,Wv=typeof Promise=="function"?Promise:void 0,UE=typeof queueMicrotask=="function"?queueMicrotask:typeof Wv<"u"?function(r){return Wv.resolve(null).then(r).catch(HE)}:Xv;function HE(r){setTimeout(function(){throw r})}function $p(r,a){var s=a,c=0;do{var h=s.nextSibling;if(r.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(c===0){r.removeChild(h),Ys(a);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=h}while(s);Ys(a)}function Pp(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Pp(s),Kf(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}r.removeChild(s)}}function qE(r,a,s,c){for(;r.nodeType===1;){var h=s;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[ns])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(y=r.getAttribute("rel"),y==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(y!==h.rel||r.getAttribute("href")!==(h.href==null?null:h.href)||r.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||r.getAttribute("title")!==(h.title==null?null:h.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(y=r.getAttribute("src"),(y!==(h.src==null?null:h.src)||r.getAttribute("type")!==(h.type==null?null:h.type)||r.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&y&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var y=h.name==null?null:""+h.name;if(h.type==="hidden"&&r.getAttribute("name")===y)return r}else return r;if(r=vr(r.nextSibling),r===null)break}return null}function FE(r,a,s){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=vr(r.nextSibling),r===null))return null;return r}function vr(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return r}function Qv(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var s=r.data;if(s==="$"||s==="$!"||s==="$?"){if(a===0)return r;a--}else s==="/$"&&a++}r=r.previousSibling}return null}function Zv(r,a,s){switch(a=Zu(s),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}var sr=new Map,Jv=new Set;function Ju(r){return typeof r.getRootNode=="function"?r.getRootNode():r.ownerDocument}var ci=re.d;re.d={f:VE,r:GE,D:KE,C:YE,L:XE,m:WE,X:ZE,S:QE,M:JE};function VE(){var r=ci.f(),a=Vu();return r||a}function GE(r){var a=Ia(r);a!==null&&a.tag===5&&a.type==="form"?Tb(a):ci.r(r)}var ho=typeof document>"u"?null:document;function e0(r,a,s){var c=ho;if(c&&typeof a=="string"&&a){var h=Qn(a);h='link[rel="'+r+'"][href="'+h+'"]',typeof s=="string"&&(h+='[crossorigin="'+s+'"]'),Jv.has(h)||(Jv.add(h),r={rel:r,crossOrigin:s,href:a},c.querySelector(h)===null&&(a=c.createElement("link"),fn(a,"link",r),nn(a),c.head.appendChild(a)))}}function KE(r){ci.D(r),e0("dns-prefetch",r,null)}function YE(r,a){ci.C(r,a),e0("preconnect",r,a)}function XE(r,a,s){ci.L(r,a,s);var c=ho;if(c&&r&&a){var h='link[rel="preload"][as="'+Qn(a)+'"]';a==="image"&&s&&s.imageSrcSet?(h+='[imagesrcset="'+Qn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(h+='[imagesizes="'+Qn(s.imageSizes)+'"]')):h+='[href="'+Qn(r)+'"]';var y=h;switch(a){case"style":y=mo(r);break;case"script":y=go(r)}sr.has(y)||(r=E({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:r,as:a},s),sr.set(y,r),c.querySelector(h)!==null||a==="style"&&c.querySelector(Us(y))||a==="script"&&c.querySelector(Hs(y))||(a=c.createElement("link"),fn(a,"link",r),nn(a),c.head.appendChild(a)))}}function WE(r,a){ci.m(r,a);var s=ho;if(s&&r){var c=a&&typeof a.as=="string"?a.as:"script",h='link[rel="modulepreload"][as="'+Qn(c)+'"][href="'+Qn(r)+'"]',y=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=go(r)}if(!sr.has(y)&&(r=E({rel:"modulepreload",href:r},a),sr.set(y,r),s.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Hs(y)))return}c=s.createElement("link"),fn(c,"link",r),nn(c),s.head.appendChild(c)}}}function QE(r,a,s){ci.S(r,a,s);var c=ho;if(c&&r){var h=Ba(c).hoistableStyles,y=mo(r);a=a||"default";var x=h.get(y);if(!x){var N={loading:0,preload:null};if(x=c.querySelector(Us(y)))N.loading=5;else{r=E({rel:"stylesheet",href:r,"data-precedence":a},s),(s=sr.get(y))&&Up(r,s);var j=x=c.createElement("link");nn(j),fn(j,"link",r),j._p=new Promise(function(F,ie){j.onload=F,j.onerror=ie}),j.addEventListener("load",function(){N.loading|=1}),j.addEventListener("error",function(){N.loading|=2}),N.loading|=4,ec(x,a,c)}x={type:"stylesheet",instance:x,count:1,state:N},h.set(y,x)}}}function ZE(r,a){ci.X(r,a);var s=ho;if(s&&r){var c=Ba(s).hoistableScripts,h=go(r),y=c.get(h);y||(y=s.querySelector(Hs(h)),y||(r=E({src:r,async:!0},a),(a=sr.get(h))&&Hp(r,a),y=s.createElement("script"),nn(y),fn(y,"link",r),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(h,y))}}function JE(r,a){ci.M(r,a);var s=ho;if(s&&r){var c=Ba(s).hoistableScripts,h=go(r),y=c.get(h);y||(y=s.querySelector(Hs(h)),y||(r=E({src:r,async:!0,type:"module"},a),(a=sr.get(h))&&Hp(r,a),y=s.createElement("script"),nn(y),fn(y,"link",r),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(h,y))}}function t0(r,a,s,c){var h=(h=je.current)?Ju(h):null;if(!h)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=mo(s.href),s=Ba(h).hoistableStyles,c=s.get(a),c||(c={type:"style",instance:null,count:0,state:null},s.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){r=mo(s.href);var y=Ba(h).hoistableStyles,x=y.get(r);if(x||(h=h.ownerDocument||h,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(r,x),(y=h.querySelector(Us(r)))&&!y._p&&(x.instance=y,x.state.loading=5),sr.has(r)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},sr.set(r,s),y||e2(h,r,s,x.state))),a&&c===null)throw Error(i(528,""));return x}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=go(s),s=Ba(h).hoistableScripts,c=s.get(a),c||(c={type:"script",instance:null,count:0,state:null},s.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function mo(r){return'href="'+Qn(r)+'"'}function Us(r){return'link[rel="stylesheet"]['+r+"]"}function n0(r){return E({},r,{"data-precedence":r.precedence,precedence:null})}function e2(r,a,s,c){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=r.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),fn(a,"link",s),nn(a),r.head.appendChild(a))}function go(r){return'[src="'+Qn(r)+'"]'}function Hs(r){return"script[async]"+r}function r0(r,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var c=r.querySelector('style[data-href~="'+Qn(s.href)+'"]');if(c)return a.instance=c,nn(c),c;var h=E({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),nn(c),fn(c,"style",h),ec(c,s.precedence,r),a.instance=c;case"stylesheet":h=mo(s.href);var y=r.querySelector(Us(h));if(y)return a.state.loading|=4,a.instance=y,nn(y),y;c=n0(s),(h=sr.get(h))&&Up(c,h),y=(r.ownerDocument||r).createElement("link"),nn(y);var x=y;return x._p=new Promise(function(N,j){x.onload=N,x.onerror=j}),fn(y,"link",c),a.state.loading|=4,ec(y,s.precedence,r),a.instance=y;case"script":return y=go(s.src),(h=r.querySelector(Hs(y)))?(a.instance=h,nn(h),h):(c=s,(h=sr.get(y))&&(c=E({},s),Hp(c,h)),r=r.ownerDocument||r,h=r.createElement("script"),nn(h),fn(h,"link",c),r.head.appendChild(h),a.instance=h);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,ec(c,s.precedence,r));return a.instance}function ec(r,a,s){for(var c=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,y=h,x=0;x<c.length;x++){var N=c[x];if(N.dataset.precedence===a)y=N;else if(y!==h)break}y?y.parentNode.insertBefore(r,y.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(r,a.firstChild))}function Up(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Hp(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var tc=null;function i0(r,a,s){if(tc===null){var c=new Map,h=tc=new Map;h.set(s,c)}else h=tc,c=h.get(s),c||(c=new Map,h.set(s,c));if(c.has(r))return c;for(c.set(r,null),s=s.getElementsByTagName(r),h=0;h<s.length;h++){var y=s[h];if(!(y[ns]||y[Vt]||r==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var x=y.getAttribute(a)||"";x=r+x;var N=c.get(x);N?N.push(y):c.set(x,[y])}}return c}function a0(r,a,s){r=r.ownerDocument||r,r.head.insertBefore(s,a==="title"?r.querySelector("head > title"):null)}function t2(r,a,s){if(s===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function o0(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}var qs=null;function n2(){}function r2(r,a,s){if(qs===null)throw Error(i(475));var c=qs;if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=mo(s.href),y=r.querySelector(Us(h));if(y){r=y._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(c.count++,c=nc.bind(c),r.then(c,c)),a.state.loading|=4,a.instance=y,nn(y);return}y=r.ownerDocument||r,s=n0(s),(h=sr.get(h))&&Up(s,h),y=y.createElement("link"),nn(y);var x=y;x._p=new Promise(function(N,j){x.onload=N,x.onerror=j}),fn(y,"link",s),a.instance=y}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(c.count++,a=nc.bind(c),r.addEventListener("load",a),r.addEventListener("error",a))}}function i2(){if(qs===null)throw Error(i(475));var r=qs;return r.stylesheets&&r.count===0&&qp(r,r.stylesheets),0<r.count?function(a){var s=setTimeout(function(){if(r.stylesheets&&qp(r,r.stylesheets),r.unsuspend){var c=r.unsuspend;r.unsuspend=null,c()}},6e4);return r.unsuspend=a,function(){r.unsuspend=null,clearTimeout(s)}}:null}function nc(){if(this.count--,this.count===0){if(this.stylesheets)qp(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var rc=null;function qp(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,rc=new Map,a.forEach(a2,r),rc=null,nc.call(r))}function a2(r,a){if(!(a.state.loading&4)){var s=rc.get(r);if(s)var c=s.get(null);else{s=new Map,rc.set(r,s);for(var h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<h.length;y++){var x=h[y];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(s.set(x.dataset.precedence,x),c=x)}c&&s.set(null,c)}h=a.instance,x=h.getAttribute("data-precedence"),y=s.get(x)||c,y===c&&s.set(null,h),s.set(x,h),this.count++,c=nc.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),y?y.parentNode.insertBefore(h,y.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(h,r.firstChild)),a.state.loading|=4}}var Fs={$$typeof:b,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function o2(r,a,s,c,h,y,x,N){this.tag=1,this.containerInfo=r,this.finishedWork=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=Ar(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ar(0),this.hiddenUpdates=Ar(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=y,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function s0(r,a,s,c,h,y,x,N,j,F,ie,ce){return r=new o2(r,a,s,x,N,j,F,ce),a=1,y===!0&&(a|=24),y=ar(3,null,null,a),r.current=y,y.stateNode=r,a=wd(),a.refCount++,r.pooledCache=a,a.refCount++,y.memoizedState={element:c,isDehydrated:s,cache:a},tp(y),r}function l0(r){return r?(r=Ka,r):Ka}function u0(r,a,s,c,h,y){h=l0(h),c.context===null?c.context=h:c.pendingContext=h,c=Oi(a),c.payload={element:s},y=y===void 0?null:y,y!==null&&(c.callback=y),s=Mi(r,c,a),s!==null&&(xn(s,r,a),As(s,r,a))}function c0(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var s=r.retryLane;r.retryLane=s!==0&&s<a?s:a}}function Fp(r,a){c0(r,a),(r=r.alternate)&&c0(r,a)}function f0(r){if(r.tag===13){var a=Ci(r,67108864);a!==null&&xn(a,r,67108864),Fp(r,67108864)}}var ic=!0;function s2(r,a,s,c){var h=$.T;$.T=null;var y=re.p;try{re.p=2,Vp(r,a,s,c)}finally{re.p=y,$.T=h}}function l2(r,a,s,c){var h=$.T;$.T=null;var y=re.p;try{re.p=8,Vp(r,a,s,c)}finally{re.p=y,$.T=h}}function Vp(r,a,s,c){if(ic){var h=Gp(c);if(h===null)Dp(r,a,c,ac,s),p0(r,c);else if(c2(h,r,a,s,c))c.stopPropagation();else if(p0(r,c),a&4&&-1<u2.indexOf(r)){for(;h!==null;){var y=Ia(h);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var x=$t(y.pendingLanes);if(x!==0){var N=y;for(N.pendingLanes|=2,N.entangledLanes|=2;x;){var j=1<<31-He(x);N.entanglements[1]|=j,x&=~j}Lr(y),(Mt&6)===0&&(Hu=tt()+500,js(0))}}break;case 13:N=Ci(y,2),N!==null&&xn(N,y,2),Vu(),Fp(y,2)}if(y=Gp(c),y===null&&Dp(r,a,c,ac,s),y===h)break;h=y}h!==null&&c.stopPropagation()}else Dp(r,a,c,null,s)}}function Gp(r){return r=Zf(r),Kp(r)}var ac=null;function Kp(r){if(ac=null,r=Qi(r),r!==null){var a=ae(r);if(a===null)r=null;else{var s=a.tag;if(s===13){if(r=J(a),r!==null)return r;r=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return ac=r,null}function d0(r){switch(r){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(Sn()){case ee:return 2;case de:return 8;case he:case ye:return 32;case Re:return 268435456;default:return 32}default:return 32}}var Yp=!1,ji=null,$i=null,Pi=null,Vs=new Map,Gs=new Map,Ui=[],u2="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 p0(r,a){switch(r){case"focusin":case"focusout":ji=null;break;case"dragenter":case"dragleave":$i=null;break;case"mouseover":case"mouseout":Pi=null;break;case"pointerover":case"pointerout":Vs.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gs.delete(a.pointerId)}}function Ks(r,a,s,c,h,y){return r===null||r.nativeEvent!==y?(r={blockedOn:a,domEventName:s,eventSystemFlags:c,nativeEvent:y,targetContainers:[h]},a!==null&&(a=Ia(a),a!==null&&f0(a)),r):(r.eventSystemFlags|=c,a=r.targetContainers,h!==null&&a.indexOf(h)===-1&&a.push(h),r)}function c2(r,a,s,c,h){switch(a){case"focusin":return ji=Ks(ji,r,a,s,c,h),!0;case"dragenter":return $i=Ks($i,r,a,s,c,h),!0;case"mouseover":return Pi=Ks(Pi,r,a,s,c,h),!0;case"pointerover":var y=h.pointerId;return Vs.set(y,Ks(Vs.get(y)||null,r,a,s,c,h)),!0;case"gotpointercapture":return y=h.pointerId,Gs.set(y,Ks(Gs.get(y)||null,r,a,s,c,h)),!0}return!1}function h0(r){var a=Qi(r.target);if(a!==null){var s=ae(a);if(s!==null){if(a=s.tag,a===13){if(a=J(s),a!==null){r.blockedOn=a,Rr(r.priority,function(){if(s.tag===13){var c=Fn(),h=Ci(s,c);h!==null&&xn(h,s,c),Fp(s,c)}});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){r.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}r.blockedOn=null}function oc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var s=Gp(r.nativeEvent);if(s===null){s=r.nativeEvent;var c=new s.constructor(s.type,s);Qf=c,s.target.dispatchEvent(c),Qf=null}else return a=Ia(s),a!==null&&f0(a),r.blockedOn=s,!1;a.shift()}return!0}function m0(r,a,s){oc(r)&&s.delete(a)}function f2(){Yp=!1,ji!==null&&oc(ji)&&(ji=null),$i!==null&&oc($i)&&($i=null),Pi!==null&&oc(Pi)&&(Pi=null),Vs.forEach(m0),Gs.forEach(m0)}function sc(r,a){r.blockedOn===a&&(r.blockedOn=null,Yp||(Yp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,f2)))}var lc=null;function g0(r){lc!==r&&(lc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){lc===r&&(lc=null);for(var a=0;a<r.length;a+=3){var s=r[a],c=r[a+1],h=r[a+2];if(typeof c!="function"){if(Kp(c||s)===null)continue;break}var y=Ia(s);y!==null&&(r.splice(a,3),a-=3,Bd(y,{pending:!0,data:h,method:s.method,action:c},c,h))}}))}function Ys(r){function a(j){return sc(j,r)}ji!==null&&sc(ji,r),$i!==null&&sc($i,r),Pi!==null&&sc(Pi,r),Vs.forEach(a),Gs.forEach(a);for(var s=0;s<Ui.length;s++){var c=Ui[s];c.blockedOn===r&&(c.blockedOn=null)}for(;0<Ui.length&&(s=Ui[0],s.blockedOn===null);)h0(s),s.blockedOn===null&&Ui.shift();if(s=(r.ownerDocument||r).$$reactFormReplay,s!=null)for(c=0;c<s.length;c+=3){var h=s[c],y=s[c+1],x=h[On]||null;if(typeof y=="function")x||g0(s);else if(x){var N=null;if(y&&y.hasAttribute("formAction")){if(h=y,x=y[On]||null)N=x.formAction;else if(Kp(h)!==null)continue}else N=x.action;typeof N=="function"?s[c+1]=N:(s.splice(c,3),c-=3),g0(s)}}}function Xp(r){this._internalRoot=r}uc.prototype.render=Xp.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var s=a.current,c=Fn();u0(s,c,r,a,null,null)},uc.prototype.unmount=Xp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;r.tag===0&&co(),u0(r.current,2,null,r,null,null),Vu(),a[za]=null}};function uc(r){this._internalRoot=r}uc.prototype.unstable_scheduleHydration=function(r){if(r){var a=wi();r={blockedOn:null,target:r,priority:a};for(var s=0;s<Ui.length&&a!==0&&a<Ui[s].priority;s++);Ui.splice(s,0,r),s===0&&h0(r)}};var y0=t.version;if(y0!=="19.0.0")throw Error(i(527,y0,"19.0.0"));re.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=X(a),r=r!==null?se(r):null,r=r===null?null:r.stateNode,r};var d2={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:$,findFiberByHostInstance:Qi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cc.isDisabled&&cc.supportsFiber)try{nt=cc.inject(d2),At=cc}catch{}}return Qs.createRoot=function(r,a){if(!o(r))throw Error(i(299));var s=!1,c="",h=Lb,y=zb,x=Ib,N=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(N=a.unstable_transitionCallbacks)),a=s0(r,1,!1,null,null,s,c,h,y,x,N,null),r[za]=a.current,Np(r.nodeType===8?r.parentNode:r),new Xp(a)},Qs.hydrateRoot=function(r,a,s){if(!o(r))throw Error(i(299));var c=!1,h="",y=Lb,x=zb,N=Ib,j=null,F=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(y=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(N=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(j=s.unstable_transitionCallbacks),s.formState!==void 0&&(F=s.formState)),a=s0(r,1,!0,a,s??null,c,h,y,x,N,j,F),a.context=l0(null),s=a.current,c=Fn(),h=Oi(c),h.callback=null,Mi(s,h,c),a.current.lanes=c,Rt(a,c),Lr(a),r[za]=a.current,Np(r),new uc(a)},Qs.version="19.0.0",Qs}var A0;function k2(){if(A0)return Zp.exports;A0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Zp.exports=C2(),Zp.exports}var E2=k2();function mi(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}const qr="$$material";function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jc.apply(null,arguments)}function T2(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function A2(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var _2=function(){function e(n){var i=this;this._insertTag=function(o){var l;i.tags.length===0?i.insertionPoint?l=i.insertionPoint.nextSibling:i.prepend?l=i.container.firstChild:l=i.before:l=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,l),i.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(A2(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var l=T2(o);try{l.insertRule(i,l.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var o;return(o=i.parentNode)==null?void 0:o.removeChild(i)}),this.tags=[],this.ctr=0},e}(),yn="-ms-",$c="-moz-",lt="-webkit-",W1="comm",Om="rule",Mm="decl",R2="@import",Q1="@keyframes",O2="@layer",M2=Math.abs,af=String.fromCharCode,N2=Object.assign;function D2(e,t){return dn(e,0)^45?(((t<<2^dn(e,0))<<2^dn(e,1))<<2^dn(e,2))<<2^dn(e,3):0}function Z1(e){return e.trim()}function L2(e,t){return(e=t.exec(e))?e[0]:e}function ut(e,t,n){return e.replace(t,n)}function Hh(e,t){return e.indexOf(t)}function dn(e,t){return e.charCodeAt(t)|0}function Tl(e,t,n){return e.slice(t,n)}function jr(e){return e.length}function Nm(e){return e.length}function fc(e,t){return t.push(e),e}function z2(e,t){return e.map(t).join("")}var of=1,Po=1,J1=0,zn=0,Wt=0,Fo="";function sf(e,t,n,i,o,l,u){return{value:e,root:t,parent:n,type:i,props:o,children:l,line:of,column:Po,length:u,return:""}}function Zs(e,t){return N2(sf("",null,null,"",null,null,0),e,{length:-e.length},t)}function I2(){return Wt}function B2(){return Wt=zn>0?dn(Fo,--zn):0,Po--,Wt===10&&(Po=1,of--),Wt}function Yn(){return Wt=zn<J1?dn(Fo,zn++):0,Po++,Wt===10&&(Po=1,of++),Wt}function Fr(){return dn(Fo,zn)}function Ac(){return zn}function Bl(e,t){return Tl(Fo,e,t)}function Al(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ew(e){return of=Po=1,J1=jr(Fo=e),zn=0,[]}function tw(e){return Fo="",e}function _c(e){return Z1(Bl(zn-1,qh(e===91?e+2:e===40?e+1:e)))}function j2(e){for(;(Wt=Fr())&&Wt<33;)Yn();return Al(e)>2||Al(Wt)>3?"":" "}function $2(e,t){for(;--t&&Yn()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return Bl(e,Ac()+(t<6&&Fr()==32&&Yn()==32))}function qh(e){for(;Yn();)switch(Wt){case e:return zn;case 34:case 39:e!==34&&e!==39&&qh(Wt);break;case 40:e===41&&qh(e);break;case 92:Yn();break}return zn}function P2(e,t){for(;Yn()&&e+Wt!==57;)if(e+Wt===84&&Fr()===47)break;return"/*"+Bl(t,zn-1)+"*"+af(e===47?e:Yn())}function U2(e){for(;!Al(Fr());)Yn();return Bl(e,zn)}function H2(e){return tw(Rc("",null,null,null,[""],e=ew(e),0,[0],e))}function Rc(e,t,n,i,o,l,u,f,d){for(var p=0,m=0,g=u,v=0,b=0,w=0,S=1,C=1,A=1,O=0,_="",M=o,R=l,D=i,P=_;C;)switch(w=O,O=Yn()){case 40:if(w!=108&&dn(P,g-1)==58){Hh(P+=ut(_c(O),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:P+=_c(O);break;case 9:case 10:case 13:case 32:P+=j2(w);break;case 92:P+=$2(Ac()-1,7);continue;case 47:switch(Fr()){case 42:case 47:fc(q2(P2(Yn(),Ac()),t,n),d);break;default:P+="/"}break;case 123*S:f[p++]=jr(P)*A;case 125*S:case 59:case 0:switch(O){case 0:case 125:C=0;case 59+m:A==-1&&(P=ut(P,/\f/g,"")),b>0&&jr(P)-g&&fc(b>32?R0(P+";",i,n,g-1):R0(ut(P," ","")+";",i,n,g-2),d);break;case 59:P+=";";default:if(fc(D=_0(P,t,n,p,m,o,f,_,M=[],R=[],g),l),O===123)if(m===0)Rc(P,t,D,D,M,l,g,f,R);else switch(v===99&&dn(P,3)===110?100:v){case 100:case 108:case 109:case 115:Rc(e,D,D,i&&fc(_0(e,D,D,0,0,o,f,_,o,M=[],g),R),o,R,g,f,i?M:R);break;default:Rc(P,D,D,D,[""],R,0,f,R)}}p=m=b=0,S=A=1,_=P="",g=u;break;case 58:g=1+jr(P),b=w;default:if(S<1){if(O==123)--S;else if(O==125&&S++==0&&B2()==125)continue}switch(P+=af(O),O*S){case 38:A=m>0?1:(P+="\f",-1);break;case 44:f[p++]=(jr(P)-1)*A,A=1;break;case 64:Fr()===45&&(P+=_c(Yn())),v=Fr(),m=g=jr(_=P+=U2(Ac())),O++;break;case 45:w===45&&jr(P)==2&&(S=0)}}return l}function _0(e,t,n,i,o,l,u,f,d,p,m){for(var g=o-1,v=o===0?l:[""],b=Nm(v),w=0,S=0,C=0;w<i;++w)for(var A=0,O=Tl(e,g+1,g=M2(S=u[w])),_=e;A<b;++A)(_=Z1(S>0?v[A]+" "+O:ut(O,/&\f/g,v[A])))&&(d[C++]=_);return sf(e,t,n,o===0?Om:f,d,p,m)}function q2(e,t,n){return sf(e,t,n,W1,af(I2()),Tl(e,2,-2),0)}function R0(e,t,n,i){return sf(e,t,n,Mm,Tl(e,0,i),Tl(e,i+1,-1),i)}function Mo(e,t){for(var n="",i=Nm(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function F2(e,t,n,i){switch(e.type){case O2:if(e.children.length)break;case R2:case Mm:return e.return=e.return||e.value;case W1:return"";case Q1:return e.return=e.value+"{"+Mo(e.children,i)+"}";case Om:e.value=e.props.join(",")}return jr(n=Mo(e.children,i))?e.return=e.value+"{"+n+"}":""}function V2(e){var t=Nm(e);return function(n,i,o,l){for(var u="",f=0;f<t;f++)u+=e[f](n,i,o,l)||"";return u}}function G2(e){return function(t){t.root||(t=t.return)&&e(t)}}function nw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var K2=function(t,n,i){for(var o=0,l=0;o=l,l=Fr(),o===38&&l===12&&(n[i]=1),!Al(l);)Yn();return Bl(t,zn)},Y2=function(t,n){var i=-1,o=44;do switch(Al(o)){case 0:o===38&&Fr()===12&&(n[i]=1),t[i]+=K2(zn-1,n,i);break;case 2:t[i]+=_c(o);break;case 4:if(o===44){t[++i]=Fr()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=af(o)}while(o=Yn());return t},X2=function(t,n){return tw(Y2(ew(t),n))},O0=new WeakMap,W2=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!O0.get(i))&&!o){O0.set(t,!0);for(var l=[],u=X2(n,l),f=i.props,d=0,p=0;d<u.length;d++)for(var m=0;m<f.length;m++,p++)t.props[p]=l[d]?u[d].replace(/&\f/g,f[m]):f[m]+" "+u[d]}}},Q2=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function rw(e,t){switch(D2(e,t)){case 5103:return lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+$c+e+yn+e+e;case 6828:case 4268:return lt+e+yn+e+e;case 6165:return lt+e+yn+"flex-"+e+e;case 5187:return lt+e+ut(e,/(\w+).+(:[^]+)/,lt+"box-$1$2"+yn+"flex-$1$2")+e;case 5443:return lt+e+yn+"flex-item-"+ut(e,/flex-|-self/,"")+e;case 4675:return lt+e+yn+"flex-line-pack"+ut(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+yn+ut(e,"shrink","negative")+e;case 5292:return lt+e+yn+ut(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+ut(e,"-grow","")+lt+e+yn+ut(e,"grow","positive")+e;case 4554:return lt+ut(e,/([^-])(transform)/g,"$1"+lt+"$2")+e;case 6187:return ut(ut(ut(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return ut(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return ut(ut(e,/(.+:)(flex-)?(.*)/,lt+"box-pack:$3"+yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return ut(e,/(.+)-inline(.+)/,lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jr(e)-1-t>6)switch(dn(e,t+1)){case 109:if(dn(e,t+4)!==45)break;case 102:return ut(e,/(.+:)(.+)-([^]+)/,"$1"+lt+"$2-$3$1"+$c+(dn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hh(e,"stretch")?rw(ut(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dn(e,t+1)!==115)break;case 6444:switch(dn(e,jr(e)-3-(~Hh(e,"!important")&&10))){case 107:return ut(e,":",":"+lt)+e;case 101:return ut(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(dn(e,14)===45?"inline-":"")+"box$3$1"+lt+"$2$3$1"+yn+"$2box$3")+e}break;case 5936:switch(dn(e,t+11)){case 114:return lt+e+yn+ut(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+yn+ut(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+yn+ut(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+yn+e+e}return e}var Z2=function(t,n,i,o){if(t.length>-1&&!t.return)switch(t.type){case Mm:t.return=rw(t.value,t.length);break;case Q1:return Mo([Zs(t,{value:ut(t.value,"@","@"+lt)})],o);case Om:if(t.length)return z2(t.props,function(l){switch(L2(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mo([Zs(t,{props:[ut(l,/:(read-\w+)/,":"+$c+"$1")]})],o);case"::placeholder":return Mo([Zs(t,{props:[ut(l,/:(plac\w+)/,":"+lt+"input-$1")]}),Zs(t,{props:[ut(l,/:(plac\w+)/,":"+$c+"$1")]}),Zs(t,{props:[ut(l,/:(plac\w+)/,yn+"input-$1")]})],o)}return""})}},J2=[Z2],eT=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||J2,l={},u,f=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),A=1;A<C.length;A++)l[C[A]]=!0;f.push(S)});var d,p=[W2,Q2];{var m,g=[F2,G2(function(S){m.insert(S)})],v=V2(p.concat(o,g)),b=function(C){return Mo(H2(C),v)};d=function(C,A,O,_){m=O,b(C?C+"{"+A.styles+"}":A.styles),_&&(w.inserted[A.name]=!0)}}var w={key:n,sheet:new _2({key:n,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:d};return w.sheet.hydrate(f),w},nh={exports:{}},ft={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var M0;function tT(){if(M0)return ft;M0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function _(R){if(typeof R=="object"&&R!==null){var D=R.$$typeof;switch(D){case t:switch(R=R.type,R){case d:case p:case i:case l:case o:case g:return R;default:switch(R=R&&R.$$typeof,R){case f:case m:case w:case b:case u:return R;default:return D}}case n:return D}}}function M(R){return _(R)===p}return ft.AsyncMode=d,ft.ConcurrentMode=p,ft.ContextConsumer=f,ft.ContextProvider=u,ft.Element=t,ft.ForwardRef=m,ft.Fragment=i,ft.Lazy=w,ft.Memo=b,ft.Portal=n,ft.Profiler=l,ft.StrictMode=o,ft.Suspense=g,ft.isAsyncMode=function(R){return M(R)||_(R)===d},ft.isConcurrentMode=M,ft.isContextConsumer=function(R){return _(R)===f},ft.isContextProvider=function(R){return _(R)===u},ft.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},ft.isForwardRef=function(R){return _(R)===m},ft.isFragment=function(R){return _(R)===i},ft.isLazy=function(R){return _(R)===w},ft.isMemo=function(R){return _(R)===b},ft.isPortal=function(R){return _(R)===n},ft.isProfiler=function(R){return _(R)===l},ft.isStrictMode=function(R){return _(R)===o},ft.isSuspense=function(R){return _(R)===g},ft.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===i||R===p||R===l||R===o||R===g||R===v||typeof R=="object"&&R!==null&&(R.$$typeof===w||R.$$typeof===b||R.$$typeof===u||R.$$typeof===f||R.$$typeof===m||R.$$typeof===C||R.$$typeof===A||R.$$typeof===O||R.$$typeof===S)},ft.typeOf=_,ft}var N0;function nT(){return N0||(N0=1,nh.exports=tT()),nh.exports}var rh,D0;function rT(){if(D0)return rh;D0=1;var e=nT(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[e.ForwardRef]=i,l[e.Memo]=o;function u(w){return e.isMemo(w)?o:l[w.$$typeof]||t}var f=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,v=Object.prototype;function b(w,S,C){if(typeof S!="string"){if(v){var A=g(S);A&&A!==v&&b(w,A,C)}var O=d(S);p&&(O=O.concat(p(S)));for(var _=u(w),M=u(S),R=0;R<O.length;++R){var D=O[R];if(!n[D]&&!(C&&C[D])&&!(M&&M[D])&&!(_&&_[D])){var P=m(S,D);try{f(w,D,P)}catch{}}}}return w}return rh=b,rh}rT();var iT=!0;function iw(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}var Dm=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||iT===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Lm=function(t,n,i){Dm(t,n,i);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var l=n;do t.insert(n===l?"."+o:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function aT(e){for(var t=0,n,i=0,o=e.length;o>=4;++i,o-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var oT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sT=/[A-Z]|^ms/g,lT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,aw=function(t){return t.charCodeAt(1)===45},L0=function(t){return t!=null&&typeof t!="boolean"},ih=nw(function(e){return aw(e)?e:e.replace(sT,"-$&").toLowerCase()}),z0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(lT,function(i,o,l){return $r={name:o,styles:l,next:$r},o})}return oT[t]!==1&&!aw(t)&&typeof n=="number"&&n!==0?n+"px":n};function _l(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return $r={name:o.name,styles:o.styles,next:$r},o.name;var l=n;if(l.styles!==void 0){var u=l.next;if(u!==void 0)for(;u!==void 0;)$r={name:u.name,styles:u.styles,next:$r},u=u.next;var f=l.styles+";";return f}return uT(e,t,n)}case"function":{if(e!==void 0){var d=$r,p=n(e);return $r=d,_l(e,t,p)}break}}var m=n;if(t==null)return m;var g=t[m];return g!==void 0?g:m}function uT(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=_l(e,t,n[o])+";";else for(var l in n){var u=n[l];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?i+=l+"{"+t[f]+"}":L0(f)&&(i+=ih(l)+":"+z0(l,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var d=0;d<u.length;d++)L0(u[d])&&(i+=ih(l)+":"+z0(l,u[d])+";");else{var p=_l(e,t,u);switch(l){case"animation":case"animationName":{i+=ih(l)+":"+p+";";break}default:i+=l+"{"+p+"}"}}}return i}var I0=/label:\s*([^\s;{]+)\s*(;|$)/g,$r;function jl(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";$r=void 0;var l=e[0];if(l==null||l.raw===void 0)i=!1,o+=_l(n,t,l);else{var u=l;o+=u[0]}for(var f=1;f<e.length;f++)if(o+=_l(n,t,e[f]),i){var d=l;o+=d[f]}I0.lastIndex=0;for(var p="",m;(m=I0.exec(o))!==null;)p+="-"+m[1];var g=aT(o)+p;return{name:g,styles:o,next:$r}}var cT=function(t){return t()},ow=Uh.useInsertionEffect?Uh.useInsertionEffect:!1,sw=ow||cT,B0=ow||T.useLayoutEffect,lw=T.createContext(typeof HTMLElement<"u"?eT({key:"css"}):null);lw.Provider;var zm=function(t){return T.forwardRef(function(n,i){var o=T.useContext(lw);return t(n,o,i)})},$l=T.createContext({}),Im={}.hasOwnProperty,Fh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",fT=function(t,n){var i={};for(var o in n)Im.call(n,o)&&(i[o]=n[o]);return i[Fh]=t,i},dT=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return Dm(n,i,o),sw(function(){return Lm(n,i,o)}),null},pT=zm(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Fh],l=[i],u="";typeof e.className=="string"?u=iw(t.registered,l,e.className):e.className!=null&&(u=e.className+" ");var f=jl(l,void 0,T.useContext($l));u+=t.key+"-"+f.name;var d={};for(var p in e)Im.call(e,p)&&p!=="css"&&p!==Fh&&(d[p]=e[p]);return d.className=u,n&&(d.ref=n),T.createElement(T.Fragment,null,T.createElement(dT,{cache:t,serialized:f,isStringTag:typeof o=="string"}),T.createElement(o,d))}),hT=pT,j0=function(t,n){var i=arguments;if(n==null||!Im.call(n,"css"))return T.createElement.apply(void 0,i);var o=i.length,l=new Array(o);l[0]=hT,l[1]=fT(t,n);for(var u=2;u<o;u++)l[u]=i[u];return T.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(j0||(j0={}));var mT=zm(function(e,t){var n=e.styles,i=jl([n],void 0,T.useContext($l)),o=T.useRef();return B0(function(){var l=t.key+"-global",u=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,d=document.querySelector('style[data-emotion="'+l+" "+i.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),d!==null&&(f=!0,d.setAttribute("data-emotion",l),u.hydrate([d])),o.current=[u,f],function(){u.flush()}},[t]),B0(function(){var l=o.current,u=l[0],f=l[1];if(f){l[1]=!1;return}if(i.next!==void 0&&Lm(t,i.next,!0),u.tags.length){var d=u.tags[u.tags.length-1].nextElementSibling;u.before=d,u.flush()}t.insert("",i,u,!1)},[t,i.name]),null});function Bm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jl(t)}function Pl(){var e=Bm.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var gT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,yT=nw(function(e){return gT.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),bT=yT,vT=function(t){return t!=="theme"},$0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?bT:vT},P0=function(t,n,i){var o;if(n){var l=n.shouldForwardProp;o=t.__emotion_forwardProp&&l?function(u){return t.__emotion_forwardProp(u)&&l(u)}:l}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},ST=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return Dm(n,i,o),sw(function(){return Lm(n,i,o)}),null},wT=function e(t,n){var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,l,u;n!==void 0&&(l=n.label,u=n.target);var f=P0(t,n,i),d=f||$0(o),p=!d("as");return function(){var m=arguments,g=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&g.push("label:"+l+";"),m[0]==null||m[0].raw===void 0)g.push.apply(g,m);else{var v=m[0];g.push(v[0]);for(var b=m.length,w=1;w<b;w++)g.push(m[w],v[w])}var S=zm(function(C,A,O){var _=p&&C.as||o,M="",R=[],D=C;if(C.theme==null){D={};for(var P in C)D[P]=C[P];D.theme=T.useContext($l)}typeof C.className=="string"?M=iw(A.registered,R,C.className):C.className!=null&&(M=C.className+" ");var z=jl(g.concat(R),A.registered,D);M+=A.key+"-"+z.name,u!==void 0&&(M+=" "+u);var $=p&&f===void 0?$0(_):d,E={};for(var I in C)p&&I==="as"||$(I)&&(E[I]=C[I]);return E.className=M,O&&(E.ref=O),T.createElement(T.Fragment,null,T.createElement(ST,{cache:A,serialized:z,isStringTag:typeof _=="string"}),T.createElement(_,E))});return S.displayName=l!==void 0?l:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=o,S.__emotion_styles=g,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+u}}),S.withComponent=function(C,A){var O=e(C,jc({},n,A,{shouldForwardProp:P0(S,A,!0)}));return O.apply(void 0,g)},S}},xT=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Vh=wT.bind(null);xT.forEach(function(e){Vh[e]=Vh(e)});function CT(e){return e==null||Object.keys(e).length===0}function uw(e){const{styles:t,defaultTheme:n={}}=e,i=typeof t=="function"?o=>t(CT(o)?n:o):t;return B.jsx(mT,{styles:i})}/**
* @mui/styled-engine v6.4.6
*
* @license MIT
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function cw(e,t){return Vh(e,t)}function kT(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const U0=[];function H0(e){return U0[0]=e,jl(U0)}var ah={exports:{}},yt={};/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var q0;function ET(){if(q0)return yt;q0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");function w(S){if(typeof S=="object"&&S!==null){var C=S.$$typeof;switch(C){case e:switch(S=S.type,S){case n:case o:case i:case d:case p:return S;default:switch(S=S&&S.$$typeof,S){case u:case f:case g:case m:return S;case l:return S;default:return C}}case t:return C}}}return yt.ContextConsumer=l,yt.ContextProvider=u,yt.Element=e,yt.ForwardRef=f,yt.Fragment=n,yt.Lazy=g,yt.Memo=m,yt.Portal=t,yt.Profiler=o,yt.StrictMode=i,yt.Suspense=d,yt.SuspenseList=p,yt.isContextConsumer=function(S){return w(S)===l},yt.isContextProvider=function(S){return w(S)===u},yt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},yt.isForwardRef=function(S){return w(S)===f},yt.isFragment=function(S){return w(S)===n},yt.isLazy=function(S){return w(S)===g},yt.isMemo=function(S){return w(S)===m},yt.isPortal=function(S){return w(S)===t},yt.isProfiler=function(S){return w(S)===o},yt.isStrictMode=function(S){return w(S)===i},yt.isSuspense=function(S){return w(S)===d},yt.isSuspenseList=function(S){return w(S)===p},yt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===o||S===i||S===d||S===p||S===v||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===m||S.$$typeof===u||S.$$typeof===l||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},yt.typeOf=w,yt}var F0;function TT(){return F0||(F0=1,ah.exports=ET()),ah.exports}var fw=TT();function Ur(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function dw(e){if(T.isValidElement(e)||fw.isValidElementType(e)||!Ur(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=dw(e[n])}),t}function ln(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return Ur(e)&&Ur(t)&&Object.keys(t).forEach(o=>{T.isValidElement(t[o])||fw.isValidElementType(t[o])?i[o]=t[o]:Ur(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ur(e[o])?i[o]=ln(e[o],t[o],n):n.clone?i[o]=Ur(t[o])?dw(t[o]):t[o]:i[o]=t[o]}),i}const AT=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>({...n,[i.key]:i.val}),{})};function _T(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...o}=e,l=AT(t),u=Object.keys(l);function f(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-i/100}${n})`}function p(v,b){const w=u.indexOf(b);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(w!==-1&&typeof t[u[w]]=="number"?t[u[w]]:b)-i/100}${n})`}function m(v){return u.indexOf(v)+1<u.length?p(v,u[u.indexOf(v)+1]):f(v)}function g(v){const b=u.indexOf(v);return b===0?f(u[1]):b===u.length-1?d(u[b]):p(v,u[u.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:u,values:l,up:f,down:d,between:p,only:m,not:g,unit:n,...o}}function RT(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,o)=>{var u,f;const l=/min-width:\s*([0-9.]+)/;return+(((u=i.match(l))==null?void 0:u[1])||0)-+(((f=o.match(l))==null?void 0:f[1])||0)});return n.length?n.reduce((i,o)=>{const l=t[o];return delete i[o],i[o]=l,i},{...t}):t}function OT(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function MT(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,i,o]=n,l=Number.isNaN(+i)?i||0:+i;return e.containerQueries(o).up(l)}function NT(e){const t=(l,u)=>l.replace("@media",u?`@container ${u}`:"@container");function n(l,u){l.up=(...f)=>t(e.breakpoints.up(...f),u),l.down=(...f)=>t(e.breakpoints.down(...f),u),l.between=(...f)=>t(e.breakpoints.between(...f),u),l.only=(...f)=>t(e.breakpoints.only(...f),u),l.not=(...f)=>{const d=t(e.breakpoints.not(...f),u);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const i={},o=l=>(n(i,l),i);return n(o),{...e,containerQueries:o}}const DT={borderRadius:4};function ml(e,t){return t?ln(e,t,{clone:!1}):e}const lf={xs:0,sm:600,md:900,lg:1200,xl:1536},V0={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lf[e]}px)`},LT={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:lf[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function wr(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const l=i.breakpoints||V0;return t.reduce((u,f,d)=>(u[l.up(l.keys[d])]=n(t[d]),u),{})}if(typeof t=="object"){const l=i.breakpoints||V0;return Object.keys(t).reduce((u,f)=>{if(OT(l.keys,f)){const d=MT(i.containerQueries?i:LT,f);d&&(u[d]=n(t[f],f))}else if(Object.keys(l.values||lf).includes(f)){const d=l.up(f);u[d]=n(t[f],f)}else{const d=f;u[d]=t[d]}return u},{})}return n(t)}function pw(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((i,o)=>{const l=e.up(o);return i[l]={},i},{}))||{}}function hw(e,t){return e.reduce((n,i)=>{const o=n[i];return(!o||Object.keys(o).length===0)&&delete n[i],n},t)}function zT(e,...t){const n=pw(e),i=[n,...t].reduce((o,l)=>ln(o,l),{});return hw(Object.keys(n),i)}function IT(e,t){if(typeof e!="object")return{};const n={},i=Object.keys(t);return Array.isArray(e)?i.forEach((o,l)=>{l<e.length&&(n[o]=!0)}):i.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function oh({values:e,breakpoints:t,base:n}){const i=n||IT(e,t),o=Object.keys(i);if(o.length===0)return e;let l;return o.reduce((u,f,d)=>(Array.isArray(e)?(u[f]=e[d]!=null?e[d]:e[l],l=d):typeof e=="object"?(u[f]=e[f]!=null?e[f]:e[l],l=f):u[f]=e,u),{})}function Se(e){if(typeof e!="string")throw new Error(mi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function uf(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((o,l)=>o&&o[l]?o[l]:null,e);if(i!=null)return i}return t.split(".").reduce((i,o)=>i&&i[o]!=null?i[o]:null,e)}function Pc(e,t,n,i=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||i:o=uf(e,n)||i,t&&(o=t(o,i,e)),o}function Ft(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:o}=e,l=u=>{if(u[t]==null)return null;const f=u[t],d=u.theme,p=uf(d,i)||{};return wr(u,f,g=>{let v=Pc(p,o,g);return g===v&&typeof g=="string"&&(v=Pc(p,o,`${t}${g==="default"?"":Se(g)}`,g)),n===!1?v:{[n]:v}})};return l.propTypes={},l.filterProps=[t],l}function BT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const jT={m:"margin",p:"padding"},$T={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},G0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},PT=BT(e=>{if(e.length>2)if(G0[e])e=G0[e];else return[e];const[t,n]=e.split(""),i=jT[t],o=$T[n]||"";return Array.isArray(o)?o.map(l=>i+l):[i+o]}),jm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$m=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...jm,...$m];function Ul(e,t,n,i){const o=uf(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?l=>typeof l=="string"?l:typeof o=="string"?`calc(${l} * ${o})`:o*l:Array.isArray(o)?l=>{if(typeof l=="string")return l;const u=Math.abs(l),f=o[u];return l>=0?f:typeof f=="number"?-f:`-${f}`}:typeof o=="function"?o:()=>{}}function cf(e){return Ul(e,"spacing",8)}function _a(e,t){return typeof t=="string"||t==null?t:e(t)}function UT(e,t){return n=>e.reduce((i,o)=>(i[o]=_a(t,n),i),{})}function HT(e,t,n,i){if(!t.includes(n))return null;const o=PT(n),l=UT(o,i),u=e[n];return wr(e,u,l)}function mw(e,t){const n=cf(e.theme);return Object.keys(e).map(i=>HT(e,t,i,n)).reduce(ml,{})}function zt(e){return mw(e,jm)}zt.propTypes={};zt.filterProps=jm;function It(e){return mw(e,$m)}It.propTypes={};It.filterProps=$m;function gw(e=8,t=cf({spacing:e})){if(e.mui)return e;const n=(...i)=>(i.length===0?[1]:i).map(l=>{const u=t(l);return typeof u=="number"?`${u}px`:u}).join(" ");return n.mui=!0,n}function ff(...e){const t=e.reduce((i,o)=>(o.filterProps.forEach(l=>{i[l]=o}),i),{}),n=i=>Object.keys(i).reduce((o,l)=>t[l]?ml(o,t[l](i)):o,{});return n.propTypes={},n.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),n}function cr(e){return typeof e!="number"?e:`${e}px solid`}function mr(e,t){return Ft({prop:e,themeKey:"borders",transform:t})}const qT=mr("border",cr),FT=mr("borderTop",cr),VT=mr("borderRight",cr),GT=mr("borderBottom",cr),KT=mr("borderLeft",cr),YT=mr("borderColor"),XT=mr("borderTopColor"),WT=mr("borderRightColor"),QT=mr("borderBottomColor"),ZT=mr("borderLeftColor"),JT=mr("outline",cr),eA=mr("outlineColor"),df=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ul(e.theme,"shape.borderRadius",4),n=i=>({borderRadius:_a(t,i)});return wr(e,e.borderRadius,n)}return null};df.propTypes={};df.filterProps=["borderRadius"];ff(qT,FT,VT,GT,KT,YT,XT,WT,QT,ZT,df,JT,eA);const pf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ul(e.theme,"spacing",8),n=i=>({gap:_a(t,i)});return wr(e,e.gap,n)}return null};pf.propTypes={};pf.filterProps=["gap"];const hf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ul(e.theme,"spacing",8),n=i=>({columnGap:_a(t,i)});return wr(e,e.columnGap,n)}return null};hf.propTypes={};hf.filterProps=["columnGap"];const mf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ul(e.theme,"spacing",8),n=i=>({rowGap:_a(t,i)});return wr(e,e.rowGap,n)}return null};mf.propTypes={};mf.filterProps=["rowGap"];const tA=Ft({prop:"gridColumn"}),nA=Ft({prop:"gridRow"}),rA=Ft({prop:"gridAutoFlow"}),iA=Ft({prop:"gridAutoColumns"}),aA=Ft({prop:"gridAutoRows"}),oA=Ft({prop:"gridTemplateColumns"}),sA=Ft({prop:"gridTemplateRows"}),lA=Ft({prop:"gridTemplateAreas"}),uA=Ft({prop:"gridArea"});ff(pf,hf,mf,tA,nA,rA,iA,aA,oA,sA,lA,uA);function No(e,t){return t==="grey"?t:e}const cA=Ft({prop:"color",themeKey:"palette",transform:No}),fA=Ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:No}),dA=Ft({prop:"backgroundColor",themeKey:"palette",transform:No});ff(cA,fA,dA);function Gn(e){return e<=1&&e!==0?`${e*100}%`:e}const pA=Ft({prop:"width",transform:Gn}),Pm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,l,u,f,d;const i=((u=(l=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:l.values)==null?void 0:u[n])||lf[n];return i?((d=(f=e.theme)==null?void 0:f.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Gn(n)}};return wr(e,e.maxWidth,t)}return null};Pm.filterProps=["maxWidth"];const hA=Ft({prop:"minWidth",transform:Gn}),mA=Ft({prop:"height",transform:Gn}),gA=Ft({prop:"maxHeight",transform:Gn}),yA=Ft({prop:"minHeight",transform:Gn});Ft({prop:"size",cssProperty:"width",transform:Gn});Ft({prop:"size",cssProperty:"height",transform:Gn});const bA=Ft({prop:"boxSizing"});ff(pA,Pm,hA,mA,gA,yA,bA);const Hl={border:{themeKey:"borders",transform:cr},borderTop:{themeKey:"borders",transform:cr},borderRight:{themeKey:"borders",transform:cr},borderBottom:{themeKey:"borders",transform:cr},borderLeft:{themeKey:"borders",transform:cr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:cr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:df},color:{themeKey:"palette",transform:No},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:No},backgroundColor:{themeKey:"palette",transform:No},p:{style:It},pt:{style:It},pr:{style:It},pb:{style:It},pl:{style:It},px:{style:It},py:{style:It},padding:{style:It},paddingTop:{style:It},paddingRight:{style:It},paddingBottom:{style:It},paddingLeft:{style:It},paddingX:{style:It},paddingY:{style:It},paddingInline:{style:It},paddingInlineStart:{style:It},paddingInlineEnd:{style:It},paddingBlock:{style:It},paddingBlockStart:{style:It},paddingBlockEnd:{style:It},m:{style:zt},mt:{style:zt},mr:{style:zt},mb:{style:zt},ml:{style:zt},mx:{style:zt},my:{style:zt},margin:{style:zt},marginTop:{style:zt},marginRight:{style:zt},marginBottom:{style:zt},marginLeft:{style:zt},marginX:{style:zt},marginY:{style:zt},marginInline:{style:zt},marginInlineStart:{style:zt},marginInlineEnd:{style:zt},marginBlock:{style:zt},marginBlockStart:{style:zt},marginBlockEnd:{style:zt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pf},rowGap:{style:mf},columnGap:{style:hf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gn},maxWidth:{style:Pm},minWidth:{transform:Gn},height:{transform:Gn},maxHeight:{transform:Gn},minHeight:{transform:Gn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vA(...e){const t=e.reduce((i,o)=>i.concat(Object.keys(o)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function SA(e,t){return typeof e=="function"?e(t):e}function wA(){function e(n,i,o,l){const u={[n]:i,theme:o},f=l[n];if(!f)return{[n]:i};const{cssProperty:d=n,themeKey:p,transform:m,style:g}=f;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[n]:i};const v=uf(o,p)||{};return g?g(u):wr(u,i,w=>{let S=Pc(v,m,w);return w===S&&typeof w=="string"&&(S=Pc(v,m,`${n}${w==="default"?"":Se(w)}`,w)),d===!1?S:{[d]:S}})}function t(n){const{sx:i,theme:o={}}=n||{};if(!i)return null;const l=o.unstable_sxConfig??Hl;function u(f){let d=f;if(typeof f=="function")d=f(o);else if(typeof f!="object")return f;if(!d)return null;const p=pw(o.breakpoints),m=Object.keys(p);let g=p;return Object.keys(d).forEach(v=>{const b=SA(d[v],o);if(b!=null)if(typeof b=="object")if(l[v])g=ml(g,e(v,b,o,l));else{const w=wr({theme:o},b,S=>({[v]:S}));vA(w,b)?g[v]=t({sx:b,theme:o}):g=ml(g,w)}else g=ml(g,e(v,b,o,l))}),RT(o,hw(m,g))}return Array.isArray(i)?i.map(u):u(i)}return t}const Ki=wA();Ki.filterProps=["sx"];function xA(e,t){var i;const n=this;if(n.vars){if(!((i=n.colorSchemes)!=null&&i[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Vo(e={},...t){const{breakpoints:n={},palette:i={},spacing:o,shape:l={},...u}=e,f=_T(n),d=gw(o);let p=ln({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:d,shape:{...DT,...l}},u);return p=NT(p),p.applyStyles=xA,p=t.reduce((m,g)=>ln(m,g),p),p.unstable_sxConfig={...Hl,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(g){return Ki({sx:g,theme:this})},p}function CA(e){return Object.keys(e).length===0}function yw(e=null){const t=T.useContext($l);return!t||CA(t)?e:t}const kA=Vo();function ql(e=kA){return yw(e)}function EA({styles:e,themeId:t,defaultTheme:n={}}){const i=ql(n),o=typeof e=="function"?e(t&&i[t]||i):e;return B.jsx(uw,{styles:o})}const TA=e=>{var i;const t={systemProps:{},otherProps:{}},n=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??Hl;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function gf(e){const{sx:t,...n}=e,{systemProps:i,otherProps:o}=TA(n);let l;return Array.isArray(t)?l=[i,...t]:typeof t=="function"?l=(...u)=>{const f=t(...u);return Ur(f)?{...i,...f}:i}:l={...i,...t},{...o,sx:l}}const K0=e=>e,AA=()=>{let e=K0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=K0}}},bw=AA();function vw(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vw(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Oe(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vw(e))&&(i&&(i+=" "),i+=t);return i}function _A(e={}){const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:o}=e,l=cw("div",{shouldForwardProp:f=>f!=="theme"&&f!=="sx"&&f!=="as"})(Ki);return T.forwardRef(function(d,p){const m=ql(n),{className:g,component:v="div",...b}=gf(d);return B.jsx(l,{as:v,ref:p,className:Oe(g,o?o(i):i),theme:t&&m[t]||m,...b})})}const RA={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ge(e,t,n="Mui"){const i=RA[t];return i?`${n}-${i}`:`${bw.generate(e)}-${t}`}function Fe(e,t,n="Mui"){const i={};return t.forEach(o=>{i[o]=Ge(e,o,n)}),i}function Sw(e){const{variants:t,...n}=e,i={variants:t,style:H0(n),isProcessed:!0};return i.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=H0(o.style))}),i}const OA=Vo();function sh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function MA(e){return e?(t,n)=>n[e]:null}function NA(e,t,n){e.theme=LA(e.theme)?n:e.theme[t]||e.theme}function Oc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(i=>Oc(e,i));if(Array.isArray(n==null?void 0:n.variants)){let i;if(n.isProcessed)i=n.style;else{const{variants:o,...l}=n;i=l}return ww(e,n.variants,[i])}return n!=null&&n.isProcessed?n.style:n}function ww(e,t,n=[]){var o;let i;e:for(let l=0;l<t.length;l+=1){const u=t[l];if(typeof u.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!u.props(i))continue}else for(const f in u.props)if(e[f]!==u.props[f]&&((o=e.ownerState)==null?void 0:o[f])!==u.props[f])continue e;typeof u.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),n.push(u.style(i))):n.push(u.style)}return n}function xw(e={}){const{themeId:t,defaultTheme:n=OA,rootShouldForwardProp:i=sh,slotShouldForwardProp:o=sh}=e;function l(f){NA(f,t,n)}return(f,d={})=>{kT(f,R=>R.filter(D=>D!==Ki));const{name:p,slot:m,skipVariantsResolver:g,skipSx:v,overridesResolver:b=MA(IA(m)),...w}=d,S=g!==void 0?g:m&&m!=="Root"&&m!=="root"||!1,C=v||!1;let A=sh;m==="Root"||m==="root"?A=i:m?A=o:zA(f)&&(A=void 0);const O=cw(f,{shouldForwardProp:A,label:DA(),...w}),_=R=>{if(typeof R=="function"&&R.__emotion_real!==R)return function(P){return Oc(P,R)};if(Ur(R)){const D=Sw(R);return D.variants?function(z){return Oc(z,D)}:D.style}return R},M=(...R)=>{const D=[],P=R.map(_),z=[];if(D.push(l),p&&b&&z.push(function(U){var H,Z;const Y=(Z=(H=U.theme.components)==null?void 0:H[p])==null?void 0:Z.styleOverrides;if(!Y)return null;const V={};for(const ae in Y)V[ae]=Oc(U,Y[ae]);return b(U,V)}),p&&!S&&z.push(function(U){var V,H;const G=U.theme,Y=(H=(V=G==null?void 0:G.components)==null?void 0:V[p])==null?void 0:H.variants;return Y?ww(U,Y):null}),C||z.push(Ki),Array.isArray(P[0])){const I=P.shift(),U=new Array(D.length).fill(""),G=new Array(z.length).fill("");let Y;Y=[...U,...I,...G],Y.raw=[...U,...I.raw,...G],D.unshift(Y)}const $=[...D,...P,...z],E=O(...$);return f.muiName&&(E.muiName=f.muiName),E};return O.withConfig&&(M.withConfig=O.withConfig),M}}function DA(e,t){return void 0}function LA(e){for(const t in e)return!1;return!0}function zA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function IA(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Um=xw();function Rl(e,t){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const l=e[o],u=t[o];if(!u)n[o]=l||{};else if(!l)n[o]=u;else{n[o]={...u};for(const f in l)if(Object.prototype.hasOwnProperty.call(l,f)){const d=f;n[o][d]=Rl(l[d],u[d])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function BA(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:Rl(t.components[n].defaultProps,i)}function Hm({props:e,name:t,defaultTheme:n,themeId:i}){let o=ql(n);return i&&(o=o[i]||o),BA({theme:o,name:t,props:e})}const gi=typeof window<"u"?T.useLayoutEffect:T.useEffect;function jA(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function qm(e,t=0,n=1){return jA(e,t,n)}function $A(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),n?`rgb${n.length===4?"a":""}(${n.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Yi(e){if(e.type)return e;if(e.charAt(0)==="#")return Yi($A(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(mi(9,e));let i=e.substring(t+1,e.length-1),o;if(n==="color"){if(i=i.split(" "),o=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(mi(10,o))}else i=i.split(",");return i=i.map(l=>parseFloat(l)),{type:n,values:i,colorSpace:o}}const PA=e=>{const t=Yi(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},ll=(e,t)=>{try{return PA(e)}catch{return e}};function yf(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((o,l)=>l<3?parseInt(o,10):o):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Cw(e){e=Yi(e);const{values:t}=e,n=t[0],i=t[1]/100,o=t[2]/100,l=i*Math.min(o,1-o),u=(p,m=(p+n/30)%12)=>o-l*Math.max(Math.min(m-3,9-m,1),-1);let f="rgb";const d=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(f+="a",d.push(t[3])),yf({type:f,values:d})}function Gh(e){e=Yi(e);let t=e.type==="hsl"||e.type==="hsla"?Yi(Cw(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function UA(e,t){const n=Gh(e),i=Gh(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function bn(e,t){return e=Yi(e),t=qm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,yf(e)}function dc(e,t,n){try{return bn(e,t)}catch{return e}}function Fm(e,t){if(e=Yi(e),t=qm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return yf(e)}function St(e,t,n){try{return Fm(e,t)}catch{return e}}function Vm(e,t){if(e=Yi(e),t=qm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return yf(e)}function wt(e,t,n){try{return Vm(e,t)}catch{return e}}function HA(e,t=.15){return Gh(e)>.5?Fm(e,t):Vm(e,t)}function pc(e,t,n){try{return HA(e,t)}catch{return e}}function Y0(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function kw(e,t=166){let n;function i(...o){const l=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(l,t)}return i.clear=()=>{clearTimeout(n)},i}function Mc(e,t){var n,i,o;return T.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(i=(n=e.type)==null?void 0:n._payload)==null?void 0:i.value)==null?void 0:o.muiName))!==-1}function xr(e){return e&&e.ownerDocument||document}function yi(e){return xr(e).defaultView||window}function Kh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let X0=0;function qA(e){const[t,n]=T.useState(e),i=e||t;return T.useEffect(()=>{t==null&&(X0+=1,n(`mui-${X0}`))},[t]),i}const FA={...Uh},W0=FA.useId;function Fl(e){if(W0!==void 0){const t=W0();return e??t}return qA(e)}function Yh({controlled:e,default:t,name:n,state:i="value"}){const{current:o}=T.useRef(e!==void 0),[l,u]=T.useState(t),f=o?e:l,d=T.useCallback(p=>{o||u(p)},[]);return[f,d]}function Do(e){const t=T.useRef(e);return gi(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function En(...e){return T.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Kh(n,t)})},e)}const Q0={};function Ew(e,t){const n=T.useRef(Q0);return n.current===Q0&&(n.current=e(t)),n}const VA=[];function GA(e){T.useEffect(e,VA)}class Gm{constructor(){Xs(this,"currentId",null);Xs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Xs(this,"disposeEffect",()=>this.clear)}static create(){return new Gm}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Tw(){const e=Ew(Gm.create).current;return GA(e.disposeEffect),e}function Z0(e){try{return e.matches(":focus-visible")}catch{}return!1}function Aw(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ke(e,t,n=void 0){const i={};for(const o in e){const l=e[o];let u="",f=!0;for(let d=0;d<l.length;d+=1){const p=l[d];p&&(u+=(f===!0?"":" ")+t(p),f=!1,n&&n[p]&&(u+=" "+n[p]))}i[o]=u}return i}function KA(e){return typeof e=="string"}function _w(e,t,n){return e===void 0||KA(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Rw(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function J0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Ow(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:l}=e;if(!t){const b=Oe(n==null?void 0:n.className,l,o==null?void 0:o.className,i==null?void 0:i.className),w={...n==null?void 0:n.style,...o==null?void 0:o.style,...i==null?void 0:i.style},S={...n,...o,...i};return b.length>0&&(S.className=b),Object.keys(w).length>0&&(S.style=w),{props:S,internalRef:void 0}}const u=Rw({...o,...i}),f=J0(i),d=J0(o),p=t(u),m=Oe(p==null?void 0:p.className,n==null?void 0:n.className,l,o==null?void 0:o.className,i==null?void 0:i.className),g={...p==null?void 0:p.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...i==null?void 0:i.style},v={...p,...n,...d,...f};return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:p.ref}}function Mw(e,t,n){return typeof e=="function"?e(t,n):e}function YA(e){var g;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...l}=e,u=o?{}:Mw(n,i),{props:f,internalRef:d}=Ow({...l,externalSlotProps:u}),p=En(d,u==null?void 0:u.ref,(g=e.additionalProps)==null?void 0:g.ref);return _w(t,{...f,ref:p},i)}function Vl(e){var t;return parseInt(T.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Nw=T.createContext(null);function Km(){return T.useContext(Nw)}const XA=typeof Symbol=="function"&&Symbol.for,WA=XA?Symbol.for("mui.nested"):"__THEME_NESTED__";function QA(e,t){return typeof t=="function"?t(e):{...e,...t}}function ZA(e){const{children:t,theme:n}=e,i=Km(),o=T.useMemo(()=>{const l=i===null?{...n}:QA(i,n);return l!=null&&(l[WA]=i!==null),l},[n,i]);return B.jsx(Nw.Provider,{value:o,children:t})}const Dw=T.createContext();function JA({value:e,...t}){return B.jsx(Dw.Provider,{value:e??!0,...t})}const e_=()=>T.useContext(Dw)??!1,Lw=T.createContext(void 0);function t_({value:e,children:t}){return B.jsx(Lw.Provider,{value:e,children:t})}function n_(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const o=t.components[n];return o.defaultProps?Rl(o.defaultProps,i):!o.styleOverrides&&!o.variants?Rl(o,i):i}function r_({props:e,name:t}){const n=T.useContext(Lw);return n_({props:e,name:t,theme:{components:n}})}const eS={};function tS(e,t,n,i=!1){return T.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const l=n(o),u=e?{...t,[e]:l}:l;return i?()=>u:u}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,i])}function zw(e){const{children:t,theme:n,themeId:i}=e,o=yw(eS),l=Km()||eS,u=tS(i,o,n),f=tS(i,l,n,!0),d=(i?u[i]:u).direction==="rtl";return B.jsx(ZA,{theme:f,children:B.jsx($l.Provider,{value:u,children:B.jsx(JA,{value:d,children:B.jsx(t_,{value:i?u[i].components:u.components,children:t})})})})}const nS={theme:void 0};function i_(e){let t,n;return function(o){let l=t;return(l===void 0||o.theme!==n)&&(nS.theme=o.theme,l=Sw(e(nS)),t=l,n=o.theme),l}}const Ym="mode",Xm="color-scheme",a_="data-color-scheme";function o_(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:i="dark",modeStorageKey:o=Ym,colorSchemeStorageKey:l=Xm,attribute:u=a_,colorSchemeNode:f="document.documentElement",nonce:d}=e||{};let p="",m=u;if(u==="class"&&(m=".%s"),u==="data"&&(m="[data-%s]"),m.startsWith(".")){const v=m.substring(1);p+=`${f}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
${f}.classList.add('${v}'.replace('%s', colorScheme));`}const g=m.match(/\[([^\]]+)\]/);if(g){const[v,b]=g[1].split("=");b||(p+=`${f}.removeAttribute('${v}'.replace('%s', light));
${f}.removeAttribute('${v}'.replace('%s', dark));`),p+=`
${f}.setAttribute('${v}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else p+=`${f}.setAttribute('${m}', colorScheme);`;return B.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
let colorScheme = '';
const mode = localStorage.getItem('${o}') || '${t}';
const dark = localStorage.getItem('${l}-dark') || '${i}';
const light = localStorage.getItem('${l}-light') || '${n}';
if (mode === 'system') {
// handle system mode
const mql = window.matchMedia('(prefers-color-scheme: dark)');
if (mql.matches) {
colorScheme = dark
} else {
colorScheme = light
}
}
if (mode === 'light') {
colorScheme = light;
}
if (mode === 'dark') {
colorScheme = dark;
}
if (colorScheme) {
${p}
}
} catch(e){}})();`}},"mui-color-scheme-init")}function s_(){}const l_=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let i;try{i=t.localStorage.getItem(e)}catch{}return i||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return s_;const i=o=>{const l=o.newValue;o.key===e&&n(l)};return t.addEventListener("storage",i),()=>{t.removeEventListener("storage",i)}}});function lh(){}function rS(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Iw(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function u_(e){return Iw(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function c_(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:i,supportedColorSchemes:o=[],modeStorageKey:l=Ym,colorSchemeStorageKey:u=Xm,storageWindow:f=typeof window>"u"?void 0:window,storageManager:d=l_,noSsr:p=!1}=e,m=o.join(","),g=o.length>1,v=T.useMemo(()=>d==null?void 0:d({key:l,storageWindow:f}),[d,l,f]),b=T.useMemo(()=>d==null?void 0:d({key:`${u}-light`,storageWindow:f}),[d,u,f]),w=T.useMemo(()=>d==null?void 0:d({key:`${u}-dark`,storageWindow:f}),[d,u,f]),[S,C]=T.useState(()=>{const z=(v==null?void 0:v.get(t))||t,$=(b==null?void 0:b.get(n))||n,E=(w==null?void 0:w.get(i))||i;return{mode:z,systemMode:rS(z),lightColorScheme:$,darkColorScheme:E}}),[A,O]=T.useState(p||!g);T.useEffect(()=>{O(!0)},[]);const _=u_(S),M=T.useCallback(z=>{C($=>{if(z===$.mode)return $;const E=z??t;return v==null||v.set(E),{...$,mode:E,systemMode:rS(E)}})},[v,t]),R=T.useCallback(z=>{z?typeof z=="string"?z&&!m.includes(z)?console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`):C($=>{const E={...$};return Iw($,I=>{I==="light"&&(b==null||b.set(z),E.lightColorScheme=z),I==="dark"&&(w==null||w.set(z),E.darkColorScheme=z)}),E}):C($=>{const E={...$},I=z.light===null?n:z.light,U=z.dark===null?i:z.dark;return I&&(m.includes(I)?(E.lightColorScheme=I,b==null||b.set(I)):console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`)),U&&(m.includes(U)?(E.darkColorScheme=U,w==null||w.set(U)):console.error(`\`${U}\` does not exist in \`theme.colorSchemes\`.`)),E}):C($=>(b==null||b.set(n),w==null||w.set(i),{...$,lightColorScheme:n,darkColorScheme:i}))},[m,b,w,n,i]),D=T.useCallback(z=>{S.mode==="system"&&C($=>{const E=z!=null&&z.matches?"dark":"light";return $.systemMode===E?$:{...$,systemMode:E}})},[S.mode]),P=T.useRef(D);return P.current=D,T.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const z=(...E)=>P.current(...E),$=window.matchMedia("(prefers-color-scheme: dark)");return $.addListener(z),z($),()=>{$.removeListener(z)}},[g]),T.useEffect(()=>{if(g){const z=(v==null?void 0:v.subscribe(I=>{(!I||["light","dark","system"].includes(I))&&M(I||t)}))||lh,$=(b==null?void 0:b.subscribe(I=>{(!I||m.match(I))&&R({light:I})}))||lh,E=(w==null?void 0:w.subscribe(I=>{(!I||m.match(I))&&R({dark:I})}))||lh;return()=>{z(),$(),E()}}},[R,M,m,t,f,g,v,b,w]),{...S,mode:A?S.mode:void 0,systemMode:A?S.systemMode:void 0,colorScheme:A?_:void 0,setMode:M,setColorScheme:R}}const f_="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function d_(e){const{themeId:t,theme:n={},modeStorageKey:i=Ym,colorSchemeStorageKey:o=Xm,disableTransitionOnChange:l=!1,defaultColorScheme:u,resolveTheme:f}=e,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=T.createContext(void 0),m=()=>T.useContext(p)||d,g={},v={};function b(A){var tt,Sn,ee,de;const{children:O,theme:_,modeStorageKey:M=i,colorSchemeStorageKey:R=o,disableTransitionOnChange:D=l,storageManager:P,storageWindow:z=typeof window>"u"?void 0:window,documentNode:$=typeof document>"u"?void 0:document,colorSchemeNode:E=typeof document>"u"?void 0:document.documentElement,disableNestedContext:I=!1,disableStyleSheetGeneration:U=!1,defaultMode:G="system",noSsr:Y}=A,V=T.useRef(!1),H=Km(),Z=T.useContext(p),ae=!!Z&&!I,J=T.useMemo(()=>_||(typeof n=="function"?n():n),[_]),k=J[t],X=k||J,{colorSchemes:se=g,components:L=v,cssVarPrefix:re}=X,fe=Object.keys(se).filter(he=>!!se[he]).join(","),le=T.useMemo(()=>fe.split(","),[fe]),Ae=typeof u=="string"?u:u.light,ge=typeof u=="string"?u:u.dark,be=se[Ae]&&se[ge]?G:((Sn=(tt=se[X.defaultColorScheme])==null?void 0:tt.palette)==null?void 0:Sn.mode)||((ee=X.palette)==null?void 0:ee.mode),{mode:ue,setMode:xe,systemMode:ke,lightColorScheme:je,darkColorScheme:Ce,colorScheme:$e,setColorScheme:et}=c_({supportedColorSchemes:le,defaultLightColorScheme:Ae,defaultDarkColorScheme:ge,modeStorageKey:M,colorSchemeStorageKey:R,defaultMode:be,storageManager:P,storageWindow:z,noSsr:Y});let dt=ue,Pe=$e;ae&&(dt=Z.mode,Pe=Z.colorScheme);const bt=T.useMemo(()=>{var Me;const he=Pe||X.defaultColorScheme,ye=((Me=X.generateThemeVars)==null?void 0:Me.call(X))||X.vars,Re={...X,components:L,colorSchemes:se,cssVarPrefix:re,vars:ye};if(typeof Re.generateSpacing=="function"&&(Re.spacing=Re.generateSpacing()),he){const st=se[he];st&&typeof st=="object"&&Object.keys(st).forEach(nt=>{st[nt]&&typeof st[nt]=="object"?Re[nt]={...Re[nt],...st[nt]}:Re[nt]=st[nt]})}return f?f(Re):Re},[X,Pe,L,se,re]),Ye=X.colorSchemeSelector;gi(()=>{if(Pe&&E&&Ye&&Ye!=="media"){const he=Ye;let ye=Ye;if(he==="class"&&(ye=".%s"),he==="data"&&(ye="[data-%s]"),he!=null&&he.startsWith("data-")&&!he.includes("%s")&&(ye=`[${he}="%s"]`),ye.startsWith("."))E.classList.remove(...le.map(Re=>ye.substring(1).replace("%s",Re))),E.classList.add(ye.substring(1).replace("%s",Pe));else{const Re=ye.replace("%s",Pe).match(/\[([^\]]+)\]/);if(Re){const[Me,st]=Re[1].split("=");st||le.forEach(nt=>{E.removeAttribute(Me.replace(Pe,nt))}),E.setAttribute(Me,st?st.replace(/"|'/g,""):"")}else E.setAttribute(ye,Pe)}}},[Pe,Ye,E,le]),T.useEffect(()=>{let he;if(D&&V.current&&$){const ye=$.createElement("style");ye.appendChild($.createTextNode(f_)),$.head.appendChild(ye),window.getComputedStyle($.body),he=setTimeout(()=>{$.head.removeChild(ye)},1)}return()=>{clearTimeout(he)}},[Pe,D,$]),T.useEffect(()=>(V.current=!0,()=>{V.current=!1}),[]);const it=T.useMemo(()=>({allColorSchemes:le,colorScheme:Pe,darkColorScheme:Ce,lightColorScheme:je,mode:dt,setColorScheme:et,setMode:xe,systemMode:ke}),[le,Pe,Ce,je,dt,et,xe,ke,bt.colorSchemeSelector]);let we=!0;(U||X.cssVariables===!1||ae&&(H==null?void 0:H.cssVarPrefix)===re)&&(we=!1);const pn=B.jsxs(T.Fragment,{children:[B.jsx(zw,{themeId:k?t:void 0,theme:bt,children:O}),we&&B.jsx(uw,{styles:((de=bt.generateStyleSheets)==null?void 0:de.call(bt))||[]})]});return ae?pn:B.jsx(p.Provider,{value:it,children:pn})}const w=typeof u=="string"?u:u.light,S=typeof u=="string"?u:u.dark;return{CssVarsProvider:b,useColorScheme:m,getInitColorSchemeScript:A=>o_({colorSchemeStorageKey:o,defaultLightColorScheme:w,defaultDarkColorScheme:S,modeStorageKey:i,...A})}}function p_(e=""){function t(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${t(...o)})`}const iS=(e,t,n,i=[])=>{let o=e;t.forEach((l,u)=>{u===t.length-1?Array.isArray(o)?o[Number(l)]=n:o&&typeof o=="object"&&(o[l]=n):o&&typeof o=="object"&&(o[l]||(o[l]=i.includes(l)?[]:{}),o=o[l])})},h_=(e,t,n)=>{function i(o,l=[],u=[]){Object.entries(o).forEach(([f,d])=>{(!n||n&&!n([...l,f]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?i(d,[...l,f],Array.isArray(d)?[...u,f]:u):t([...l,f],d,u))})}i(e)},m_=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function uh(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},o={},l={},u={};return h_(e,(f,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!i||!i(f,d))){const m=`--${n?`${n}-`:""}${f.join("-")}`,g=m_(f,d);Object.assign(o,{[m]:g}),iS(l,f,`var(${m})`,p),iS(u,f,`var(${m}, ${g})`,p)}},f=>f[0]==="vars"),{css:o,vars:l,varsWithDefaults:u}}function g_(e,t={}){const{getSelector:n=C,disableCssColorScheme:i,colorSchemeSelector:o}=t,{colorSchemes:l={},components:u,defaultColorScheme:f="light",...d}=e,{vars:p,css:m,varsWithDefaults:g}=uh(d,t);let v=g;const b={},{[f]:w,...S}=l;if(Object.entries(S||{}).forEach(([_,M])=>{const{vars:R,css:D,varsWithDefaults:P}=uh(M,t);v=ln(v,P),b[_]={css:D,vars:R}}),w){const{css:_,vars:M,varsWithDefaults:R}=uh(w,t);v=ln(v,R),b[f]={css:_,vars:M}}function C(_,M){var D,P;let R=o;if(o==="class"&&(R=".%s"),o==="data"&&(R="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(R=`[${o}="%s"]`),_){if(R==="media")return e.defaultColorScheme===_?":root":{[`@media (prefers-color-scheme: ${((P=(D=l[_])==null?void 0:D.palette)==null?void 0:P.mode)||_})`]:{":root":M}};if(R)return e.defaultColorScheme===_?`:root, ${R.replace("%s",String(_))}`:R.replace("%s",String(_))}return":root"}return{vars:v,generateThemeVars:()=>{let _={...p};return Object.entries(b).forEach(([,{vars:M}])=>{_=ln(_,M)}),_},generateStyleSheets:()=>{var z,$;const _=[],M=e.defaultColorScheme||"light";function R(E,I){Object.keys(I).length&&_.push(typeof E=="string"?{[E]:{...I}}:E)}R(n(void 0,{...m}),m);const{[M]:D,...P}=b;if(D){const{css:E}=D,I=($=(z=l[M])==null?void 0:z.palette)==null?void 0:$.mode,U=!i&&I?{colorScheme:I,...E}:{...E};R(n(M,{...U}),U)}return Object.entries(P).forEach(([E,{css:I}])=>{var Y,V;const U=(V=(Y=l[E])==null?void 0:Y.palette)==null?void 0:V.mode,G=!i&&U?{colorScheme:U,...I}:{...I};R(n(E,{...G}),G)}),_}}}function y_(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const b_=Vo(),v_=Um("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Se(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),S_=e=>Hm({props:e,name:"MuiContainer",defaultTheme:b_}),w_=(e,t)=>{const n=d=>Ge(t,d),{classes:i,fixed:o,disableGutters:l,maxWidth:u}=e,f={root:["root",u&&`maxWidth${Se(String(u))}`,o&&"fixed",l&&"disableGutters"]};return Ke(f,n,i)};function x_(e={}){const{createStyledComponent:t=v_,useThemeProps:n=S_,componentName:i="MuiContainer"}=e,o=t(({theme:u,ownerState:f})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!f.disableGutters&&{paddingLeft:u.spacing(2),paddingRight:u.spacing(2),[u.breakpoints.up("sm")]:{paddingLeft:u.spacing(3),paddingRight:u.spacing(3)}}}),({theme:u,ownerState:f})=>f.fixed&&Object.keys(u.breakpoints.values).reduce((d,p)=>{const m=p,g=u.breakpoints.values[m];return g!==0&&(d[u.breakpoints.up(m)]={maxWidth:`${g}${u.breakpoints.unit}`}),d},{}),({theme:u,ownerState:f})=>({...f.maxWidth==="xs"&&{[u.breakpoints.up("xs")]:{maxWidth:Math.max(u.breakpoints.values.xs,444)}},...f.maxWidth&&f.maxWidth!=="xs"&&{[u.breakpoints.up(f.maxWidth)]:{maxWidth:`${u.breakpoints.values[f.maxWidth]}${u.breakpoints.unit}`}}}));return T.forwardRef(function(f,d){const p=n(f),{className:m,component:g="div",disableGutters:v=!1,fixed:b=!1,maxWidth:w="lg",classes:S,...C}=p,A={...p,component:g,disableGutters:v,fixed:b,maxWidth:w},O=w_(A,i);return B.jsx(o,{as:g,ownerState:A,className:Oe(O.root,m),ref:d,...C})})}const C_=(e,t)=>e.filter(n=>t.includes(n)),Go=(e,t,n)=>{const i=e.keys[0];Array.isArray(t)?t.forEach((o,l)=>{n((u,f)=>{l<=e.keys.length-1&&(l===0?Object.assign(u,f):u[e.up(e.keys[l])]=f)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:C_(e.keys,Object.keys(t))).forEach(l=>{if(e.keys.includes(l)){const u=t[l];u!==void 0&&n((f,d)=>{i===l?Object.assign(f,d):f[e.up(l)]=d},u)}}):(typeof t=="number"||typeof t=="string")&&n((o,l)=>{Object.assign(o,l)},t)};function Uc(e){return`--Grid-${e}Spacing`}function bf(e){return`--Grid-parent-${e}Spacing`}const aS="--Grid-columns",Lo="--Grid-parent-columns",k_=({theme:e,ownerState:t})=>{const n={};return Go(e.breakpoints,t.size,(i,o)=>{let l={};o==="grow"&&(l={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(l={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Lo}) - (var(${Lo}) - ${o}) * (var(${bf("column")}) / var(${Lo})))`}),i(n,l)}),n},E_=({theme:e,ownerState:t})=>{const n={};return Go(e.breakpoints,t.offset,(i,o)=>{let l={};o==="auto"&&(l={marginLeft:"auto"}),typeof o=="number"&&(l={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Lo}) + var(${bf("column")}) * ${o} / var(${Lo}))`}),i(n,l)}),n},T_=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[aS]:12};return Go(e.breakpoints,t.columns,(i,o)=>{const l=o??12;i(n,{[aS]:l,"> *":{[Lo]:l}})}),n},A_=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Go(e.breakpoints,t.rowSpacing,(i,o)=>{var u;const l=typeof o=="string"?o:(u=e.spacing)==null?void 0:u.call(e,o);i(n,{[Uc("row")]:l,"> *":{[bf("row")]:l}})}),n},__=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Go(e.breakpoints,t.columnSpacing,(i,o)=>{var u;const l=typeof o=="string"?o:(u=e.spacing)==null?void 0:u.call(e,o);i(n,{[Uc("column")]:l,"> *":{[bf("column")]:l}})}),n},R_=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Go(e.breakpoints,t.direction,(i,o)=>{i(n,{flexDirection:o})}),n},O_=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Uc("row")}) var(${Uc("column")})`}}),M_=e=>{const t=[];return Object.entries(e).forEach(([n,i])=>{i!==!1&&i!==void 0&&t.push(`grid-${n}-${String(i)}`)}),t},N_=(e,t="xs")=>{function n(i){return i===void 0?!1:typeof i=="string"&&!Number.isNaN(Number(i))||typeof i=="number"&&i>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const i=[];return Object.entries(e).forEach(([o,l])=>{n(l)&&i.push(`spacing-${o}-${String(l)}`)}),i}return[]},D_=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function L_(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const z_=Vo(),I_=Um("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function B_(e){return Hm({props:e,name:"MuiGrid",defaultTheme:z_})}function j_(e={}){const{createStyledComponent:t=I_,useThemeProps:n=B_,useTheme:i=ql,componentName:o="MuiGrid"}=e,l=(p,m)=>{const{container:g,direction:v,spacing:b,wrap:w,size:S}=p,C={root:["root",g&&"container",w!=="wrap"&&`wrap-xs-${String(w)}`,...D_(v),...M_(S),...g?N_(b,m.breakpoints.keys[0]):[]]};return Ke(C,A=>Ge(o,A),{})};function u(p,m,g=()=>!0){const v={};return p===null||(Array.isArray(p)?p.forEach((b,w)=>{b!==null&&g(b)&&m.keys[w]&&(v[m.keys[w]]=b)}):typeof p=="object"?Object.keys(p).forEach(b=>{const w=p[b];w!=null&&g(w)&&(v[b]=w)}):v[m.keys[0]]=p),v}const f=t(T_,__,A_,k_,R_,O_,E_),d=T.forwardRef(function(m,g){const v=i(),b=n(m),w=gf(b);L_(w,v.breakpoints);const{className:S,children:C,columns:A=12,container:O=!1,component:_="div",direction:M="row",wrap:R="wrap",size:D={},offset:P={},spacing:z=0,rowSpacing:$=z,columnSpacing:E=z,unstable_level:I=0,...U}=w,G=u(D,v.breakpoints,X=>X!==!1),Y=u(P,v.breakpoints),V=m.columns??(I?void 0:A),H=m.spacing??(I?void 0:z),Z=m.rowSpacing??m.spacing??(I?void 0:$),ae=m.columnSpacing??m.spacing??(I?void 0:E),J={...w,level:I,columns:V,container:O,direction:M,wrap:R,spacing:H,rowSpacing:Z,columnSpacing:ae,size:G,offset:Y},k=l(J,v);return B.jsx(f,{ref:g,as:_,ownerState:J,className:Oe(k.root,S),...U,children:T.Children.map(C,X=>{var se;return T.isValidElement(X)&&Mc(X,["Grid"])&&O&&X.props.container?T.cloneElement(X,{unstable_level:((se=X.props)==null?void 0:se.unstable_level)??I+1}):X})})});return d.muiName="Grid",d}const $_=Vo(),P_=Um("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function U_(e){return Hm({props:e,name:"MuiStack",defaultTheme:$_})}function H_(e,t){const n=T.Children.toArray(e).filter(Boolean);return n.reduce((i,o,l)=>(i.push(o),l<n.length-1&&i.push(T.cloneElement(t,{key:`separator-${l}`})),i),[])}const q_=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],F_=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...wr({theme:t},oh({values:e.direction,breakpoints:t.breakpoints.values}),i=>({flexDirection:i}))};if(e.spacing){const i=cf(t),o=Object.keys(t.breakpoints.values).reduce((d,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(d[p]=!0),d),{}),l=oh({values:e.direction,base:o}),u=oh({values:e.spacing,base:o});typeof l=="object"&&Object.keys(l).forEach((d,p,m)=>{if(!l[d]){const v=p>0?l[m[p-1]]:"column";l[d]=v}}),n=ln(n,wr({theme:t},u,(d,p)=>e.useFlexGap?{gap:_a(i,d)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${q_(p?l[p]:e.direction)}`]:_a(i,d)}}))}return n=zT(t.breakpoints,n),n};function V_(e={}){const{createStyledComponent:t=P_,useThemeProps:n=U_,componentName:i="MuiStack"}=e,o=()=>Ke({root:["root"]},d=>Ge(i,d),{}),l=t(F_);return T.forwardRef(function(d,p){const m=n(d),g=gf(m),{component:v="div",direction:b="column",spacing:w=0,divider:S,children:C,className:A,useFlexGap:O=!1,..._}=g,M={direction:b,spacing:w,useFlexGap:O},R=o();return B.jsx(l,{as:v,ownerState:M,ref:p,className:Oe(R.root,A),..._,children:S?H_(C,S):C})})}const Ol={black:"#000",white:"#fff"},G_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},yo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},bo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Js={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},vo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},So={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},wo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Bw(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ol.white,default:Ol.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const K_=Bw();function jw(){return{text:{primary:Ol.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ol.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const oS=jw();function sS(e,t,n,i){const o=i.light||i,l=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Vm(e.main,o):t==="dark"&&(e.dark=Fm(e.main,l)))}function Y_(e="light"){return e==="dark"?{main:vo[200],light:vo[50],dark:vo[400]}:{main:vo[700],light:vo[400],dark:vo[800]}}function X_(e="light"){return e==="dark"?{main:yo[200],light:yo[50],dark:yo[400]}:{main:yo[500],light:yo[300],dark:yo[700]}}function W_(e="light"){return e==="dark"?{main:bo[500],light:bo[300],dark:bo[700]}:{main:bo[700],light:bo[400],dark:bo[800]}}function Q_(e="light"){return e==="dark"?{main:So[400],light:So[300],dark:So[700]}:{main:So[700],light:So[500],dark:So[900]}}function Z_(e="light"){return e==="dark"?{main:wo[400],light:wo[300],dark:wo[700]}:{main:wo[800],light:wo[500],dark:wo[900]}}function J_(e="light"){return e==="dark"?{main:Js[400],light:Js[300],dark:Js[700]}:{main:"#ed6c02",light:Js[500],dark:Js[900]}}function Wm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,...o}=e,l=e.primary||Y_(t),u=e.secondary||X_(t),f=e.error||W_(t),d=e.info||Q_(t),p=e.success||Z_(t),m=e.warning||J_(t);function g(S){return UA(S,oS.text.primary)>=n?oS.text.primary:K_.text.primary}const v=({color:S,name:C,mainShade:A=500,lightShade:O=300,darkShade:_=700})=>{if(S={...S},!S.main&&S[A]&&(S.main=S[A]),!S.hasOwnProperty("main"))throw new Error(mi(11,C?` (${C})`:"",A));if(typeof S.main!="string")throw new Error(mi(12,C?` (${C})`:"",JSON.stringify(S.main)));return sS(S,"light",O,i),sS(S,"dark",_,i),S.contrastText||(S.contrastText=g(S.main)),S};let b;return t==="light"?b=Bw():t==="dark"&&(b=jw()),ln({common:{...Ol},mode:t,primary:v({color:l,name:"primary"}),secondary:v({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:f,name:"error"}),warning:v({color:m,name:"warning"}),info:v({color:d,name:"info"}),success:v({color:p,name:"success"}),grey:G_,contrastThreshold:n,getContrastText:g,augmentColor:v,tonalOffset:i,...b},o)}function eR(e){const t={};return Object.entries(e).forEach(i=>{const[o,l]=i;typeof l=="object"&&(t[o]=`${l.fontStyle?`${l.fontStyle} `:""}${l.fontVariant?`${l.fontVariant} `:""}${l.fontWeight?`${l.fontWeight} `:""}${l.fontStretch?`${l.fontStretch} `:""}${l.fontSize||""}${l.lineHeight?`/${l.lineHeight} `:""}${l.fontFamily||""}`)}),t}function tR(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function nR(e){return Math.round(e*1e5)/1e5}const lS={textTransform:"uppercase"},uS='"Roboto", "Helvetica", "Arial", sans-serif';function $w(e,t){const{fontFamily:n=uS,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:d=16,allVariants:p,pxToRem:m,...g}=typeof t=="function"?t(e):t,v=i/14,b=m||(C=>`${C/d*v}rem`),w=(C,A,O,_,M)=>({fontFamily:n,fontWeight:C,fontSize:b(A),lineHeight:O,...n===uS?{letterSpacing:`${nR(_/A)}em`}:{},...M,...p}),S={h1:w(o,96,1.167,-1.5),h2:w(o,60,1.2,-.5),h3:w(l,48,1.167,0),h4:w(l,34,1.235,.25),h5:w(l,24,1.334,0),h6:w(u,20,1.6,.15),subtitle1:w(l,16,1.75,.15),subtitle2:w(u,14,1.57,.1),body1:w(l,16,1.5,.15),body2:w(l,14,1.43,.15),button:w(u,14,1.75,.4,lS),caption:w(l,12,1.66,.4),overline:w(l,12,2.66,1,lS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ln({htmlFontSize:d,pxToRem:b,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:f,...S},g,{clone:!1})}const rR=.2,iR=.14,aR=.12;function _t(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rR})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iR})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${aR})`].join(",")}const oR=["none",_t(0,2,1,-1,0,1,1,0,0,1,3,0),_t(0,3,1,-2,0,2,2,0,0,1,5,0),_t(0,3,3,-2,0,3,4,0,0,1,8,0),_t(0,2,4,-1,0,4,5,0,0,1,10,0),_t(0,3,5,-1,0,5,8,0,0,1,14,0),_t(0,3,5,-1,0,6,10,0,0,1,18,0),_t(0,4,5,-2,0,7,10,1,0,2,16,1),_t(0,5,5,-3,0,8,10,1,0,3,14,2),_t(0,5,6,-3,0,9,12,1,0,3,16,2),_t(0,6,6,-3,0,10,14,1,0,4,18,3),_t(0,6,7,-4,0,11,15,1,0,4,20,3),_t(0,7,8,-4,0,12,17,2,0,5,22,4),_t(0,7,8,-4,0,13,19,2,0,5,24,4),_t(0,7,9,-4,0,14,21,2,0,5,26,4),_t(0,8,9,-5,0,15,22,2,0,6,28,5),_t(0,8,10,-5,0,16,24,2,0,6,30,5),_t(0,8,11,-5,0,17,26,2,0,6,32,5),_t(0,9,11,-5,0,18,28,2,0,7,34,6),_t(0,9,12,-6,0,19,29,2,0,7,36,6),_t(0,10,13,-6,0,20,31,3,0,8,38,7),_t(0,10,13,-6,0,21,33,3,0,8,40,7),_t(0,10,14,-6,0,22,35,3,0,8,42,7),_t(0,11,14,-7,0,23,36,3,0,9,44,8),_t(0,11,15,-7,0,24,38,3,0,9,46,8)],sR={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},lR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cS(e){return`${Math.round(e)}ms`}function uR(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function cR(e){const t={...sR,...e.easing},n={...lR,...e.duration};return{getAutoHeightDuration:uR,create:(o=["all"],l={})=>{const{duration:u=n.standard,easing:f=t.easeInOut,delay:d=0,...p}=l;return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof u=="string"?u:cS(u)} ${f} ${typeof d=="string"?d:cS(d)}`).join(",")},...e,easing:t,duration:n}}const fR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function dR(e){return Ur(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Pw(e={}){const t={...e};function n(i){const o=Object.entries(i);for(let l=0;l<o.length;l++){const[u,f]=o[l];!dR(f)||u.startsWith("unstable_")?delete i[u]:Ur(f)&&(i[u]={...f},n(i[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
const theme = ${JSON.stringify(t,null,2)};
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});
export default theme;`}function Xh(e={},...t){const{breakpoints:n,mixins:i={},spacing:o,palette:l={},transitions:u={},typography:f={},shape:d,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(mi(20));const m=Wm(l),g=Vo(e);let v=ln(g,{mixins:tR(g.breakpoints,i),palette:m,shadows:oR.slice(),typography:$w(m,f),transitions:cR(u),zIndex:{...fR}});return v=ln(v,p),v=t.reduce((b,w)=>ln(b,w),v),v.unstable_sxConfig={...Hl,...p==null?void 0:p.unstable_sxConfig},v.unstable_sx=function(w){return Ki({sx:w,theme:this})},v.toRuntimeSource=Pw,v}function Wh(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const pR=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Wh(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Uw(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Hw(e){return e==="dark"?pR:[]}function hR(e){const{palette:t={mode:"light"},opacity:n,overlays:i,...o}=e,l=Wm(t);return{palette:l,opacity:{...Uw(l.mode),...n},overlays:i||Hw(l.mode),...o}}function mR(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const gR=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],yR=e=>(t,n)=>{const i=e.rootSelector||":root",o=e.colorSchemeSelector;let l=o;if(o==="class"&&(l=".%s"),o==="data"&&(l="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(l=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return gR(e.cssVarPrefix).forEach(f=>{u[f]=n[f],delete n[f]}),l==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:u}}:l?{[l.replace("%s",t)]:u,[`${i}, ${l.replace("%s",t)}`]:n}:{[i]:{...n,...u}}}if(l&&l!=="media")return`${i}, ${l.replace("%s",String(t))}`}else if(t){if(l==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:n}};if(l)return l.replace("%s",String(t))}return i};function bR(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function te(e,t,n){!e[t]&&n&&(e[t]=n)}function ul(e){return typeof e!="string"||!e.startsWith("hsl")?e:Cw(e)}function fi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ll(ul(e[t])))}function vR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zr=e=>{try{return e()}catch{}},SR=(e="mui")=>p_(e);function ch(e,t,n,i){if(!t)return;t=t===!0?{}:t;const o=i==="dark"?"dark":"light";if(!n){e[i]=hR({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:l,...u}=Xh({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[i]={...t,palette:l,opacity:{...Uw(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Hw(o)},u}function wR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:u=mR,colorSchemeSelector:f=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...p}=e,m=Object.keys(n)[0],g=i||(n.light&&m!=="light"?"light":m),v=SR(l),{[g]:b,light:w,dark:S,...C}=n,A={...C};let O=b;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(O=!0),!O)throw new Error(mi(21,g));const _=ch(A,O,p,g);w&&!A.light&&ch(A,w,void 0,"light"),S&&!A.dark&&ch(A,S,void 0,"dark");let M={defaultColorScheme:g,..._,cssVarPrefix:l,colorSchemeSelector:f,rootSelector:d,getCssVar:v,colorSchemes:A,font:{...eR(_.typography),..._.font},spacing:vR(p.spacing)};Object.keys(M.colorSchemes).forEach($=>{const E=M.colorSchemes[$].palette,I=U=>{const G=U.split("-"),Y=G[1],V=G[2];return v(U,E[Y][V])};if(E.mode==="light"&&(te(E.common,"background","#fff"),te(E.common,"onBackground","#000")),E.mode==="dark"&&(te(E.common,"background","#000"),te(E.common,"onBackground","#fff")),bR(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){te(E.Alert,"errorColor",St(E.error.light,.6)),te(E.Alert,"infoColor",St(E.info.light,.6)),te(E.Alert,"successColor",St(E.success.light,.6)),te(E.Alert,"warningColor",St(E.warning.light,.6)),te(E.Alert,"errorFilledBg",I("palette-error-main")),te(E.Alert,"infoFilledBg",I("palette-info-main")),te(E.Alert,"successFilledBg",I("palette-success-main")),te(E.Alert,"warningFilledBg",I("palette-warning-main")),te(E.Alert,"errorFilledColor",zr(()=>E.getContrastText(E.error.main))),te(E.Alert,"infoFilledColor",zr(()=>E.getContrastText(E.info.main))),te(E.Alert,"successFilledColor",zr(()=>E.getContrastText(E.success.main))),te(E.Alert,"warningFilledColor",zr(()=>E.getContrastText(E.warning.main))),te(E.Alert,"errorStandardBg",wt(E.error.light,.9)),te(E.Alert,"infoStandardBg",wt(E.info.light,.9)),te(E.Alert,"successStandardBg",wt(E.success.light,.9)),te(E.Alert,"warningStandardBg",wt(E.warning.light,.9)),te(E.Alert,"errorIconColor",I("palette-error-main")),te(E.Alert,"infoIconColor",I("palette-info-main")),te(E.Alert,"successIconColor",I("palette-success-main")),te(E.Alert,"warningIconColor",I("palette-warning-main")),te(E.AppBar,"defaultBg",I("palette-grey-100")),te(E.Avatar,"defaultBg",I("palette-grey-400")),te(E.Button,"inheritContainedBg",I("palette-grey-300")),te(E.Button,"inheritContainedHoverBg",I("palette-grey-A100")),te(E.Chip,"defaultBorder",I("palette-grey-400")),te(E.Chip,"defaultAvatarColor",I("palette-grey-700")),te(E.Chip,"defaultIconColor",I("palette-grey-700")),te(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),te(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),te(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),te(E.LinearProgress,"primaryBg",wt(E.primary.main,.62)),te(E.LinearProgress,"secondaryBg",wt(E.secondary.main,.62)),te(E.LinearProgress,"errorBg",wt(E.error.main,.62)),te(E.LinearProgress,"infoBg",wt(E.info.main,.62)),te(E.LinearProgress,"successBg",wt(E.success.main,.62)),te(E.LinearProgress,"warningBg",wt(E.warning.main,.62)),te(E.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.11)`),te(E.Slider,"primaryTrack",wt(E.primary.main,.62)),te(E.Slider,"secondaryTrack",wt(E.secondary.main,.62)),te(E.Slider,"errorTrack",wt(E.error.main,.62)),te(E.Slider,"infoTrack",wt(E.info.main,.62)),te(E.Slider,"successTrack",wt(E.success.main,.62)),te(E.Slider,"warningTrack",wt(E.warning.main,.62));const U=pc(E.background.default,.8);te(E.SnackbarContent,"bg",U),te(E.SnackbarContent,"color",zr(()=>E.getContrastText(U))),te(E.SpeedDialAction,"fabHoverBg",pc(E.background.paper,.15)),te(E.StepConnector,"border",I("palette-grey-400")),te(E.StepContent,"border",I("palette-grey-400")),te(E.Switch,"defaultColor",I("palette-common-white")),te(E.Switch,"defaultDisabledColor",I("palette-grey-100")),te(E.Switch,"primaryDisabledColor",wt(E.primary.main,.62)),te(E.Switch,"secondaryDisabledColor",wt(E.secondary.main,.62)),te(E.Switch,"errorDisabledColor",wt(E.error.main,.62)),te(E.Switch,"infoDisabledColor",wt(E.info.main,.62)),te(E.Switch,"successDisabledColor",wt(E.success.main,.62)),te(E.Switch,"warningDisabledColor",wt(E.warning.main,.62)),te(E.TableCell,"border",wt(dc(E.divider,1),.88)),te(E.Tooltip,"bg",dc(E.grey[700],.92))}if(E.mode==="dark"){te(E.Alert,"errorColor",wt(E.error.light,.6)),te(E.Alert,"infoColor",wt(E.info.light,.6)),te(E.Alert,"successColor",wt(E.success.light,.6)),te(E.Alert,"warningColor",wt(E.warning.light,.6)),te(E.Alert,"errorFilledBg",I("palette-error-dark")),te(E.Alert,"infoFilledBg",I("palette-info-dark")),te(E.Alert,"successFilledBg",I("palette-success-dark")),te(E.Alert,"warningFilledBg",I("palette-warning-dark")),te(E.Alert,"errorFilledColor",zr(()=>E.getContrastText(E.error.dark))),te(E.Alert,"infoFilledColor",zr(()=>E.getContrastText(E.info.dark))),te(E.Alert,"successFilledColor",zr(()=>E.getContrastText(E.success.dark))),te(E.Alert,"warningFilledColor",zr(()=>E.getContrastText(E.warning.dark))),te(E.Alert,"errorStandardBg",St(E.error.light,.9)),te(E.Alert,"infoStandardBg",St(E.info.light,.9)),te(E.Alert,"successStandardBg",St(E.success.light,.9)),te(E.Alert,"warningStandardBg",St(E.warning.light,.9)),te(E.Alert,"errorIconColor",I("palette-error-main")),te(E.Alert,"infoIconColor",I("palette-info-main")),te(E.Alert,"successIconColor",I("palette-success-main")),te(E.Alert,"warningIconColor",I("palette-warning-main")),te(E.AppBar,"defaultBg",I("palette-grey-900")),te(E.AppBar,"darkBg",I("palette-background-paper")),te(E.AppBar,"darkColor",I("palette-text-primary")),te(E.Avatar,"defaultBg",I("palette-grey-600")),te(E.Button,"inheritContainedBg",I("palette-grey-800")),te(E.Button,"inheritContainedHoverBg",I("palette-grey-700")),te(E.Chip,"defaultBorder",I("palette-grey-700")),te(E.Chip,"defaultAvatarColor",I("palette-grey-300")),te(E.Chip,"defaultIconColor",I("palette-grey-300")),te(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),te(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),te(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),te(E.LinearProgress,"primaryBg",St(E.primary.main,.5)),te(E.LinearProgress,"secondaryBg",St(E.secondary.main,.5)),te(E.LinearProgress,"errorBg",St(E.error.main,.5)),te(E.LinearProgress,"infoBg",St(E.info.main,.5)),te(E.LinearProgress,"successBg",St(E.success.main,.5)),te(E.LinearProgress,"warningBg",St(E.warning.main,.5)),te(E.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.13)`),te(E.Slider,"primaryTrack",St(E.primary.main,.5)),te(E.Slider,"secondaryTrack",St(E.secondary.main,.5)),te(E.Slider,"errorTrack",St(E.error.main,.5)),te(E.Slider,"infoTrack",St(E.info.main,.5)),te(E.Slider,"successTrack",St(E.success.main,.5)),te(E.Slider,"warningTrack",St(E.warning.main,.5));const U=pc(E.background.default,.98);te(E.SnackbarContent,"bg",U),te(E.SnackbarContent,"color",zr(()=>E.getContrastText(U))),te(E.SpeedDialAction,"fabHoverBg",pc(E.background.paper,.15)),te(E.StepConnector,"border",I("palette-grey-600")),te(E.StepContent,"border",I("palette-grey-600")),te(E.Switch,"defaultColor",I("palette-grey-300")),te(E.Switch,"defaultDisabledColor",I("palette-grey-600")),te(E.Switch,"primaryDisabledColor",St(E.primary.main,.55)),te(E.Switch,"secondaryDisabledColor",St(E.secondary.main,.55)),te(E.Switch,"errorDisabledColor",St(E.error.main,.55)),te(E.Switch,"infoDisabledColor",St(E.info.main,.55)),te(E.Switch,"successDisabledColor",St(E.success.main,.55)),te(E.Switch,"warningDisabledColor",St(E.warning.main,.55)),te(E.TableCell,"border",St(dc(E.divider,1),.68)),te(E.Tooltip,"bg",dc(E.grey[700],.92))}fi(E.background,"default"),fi(E.background,"paper"),fi(E.common,"background"),fi(E.common,"onBackground"),fi(E,"divider"),Object.keys(E).forEach(U=>{const G=E[U];U!=="tonalOffset"&&G&&typeof G=="object"&&(G.main&&te(E[U],"mainChannel",ll(ul(G.main))),G.light&&te(E[U],"lightChannel",ll(ul(G.light))),G.dark&&te(E[U],"darkChannel",ll(ul(G.dark))),G.contrastText&&te(E[U],"contrastTextChannel",ll(ul(G.contrastText))),U==="text"&&(fi(E[U],"primary"),fi(E[U],"secondary")),U==="action"&&(G.active&&fi(E[U],"active"),G.selected&&fi(E[U],"selected")))})}),M=t.reduce(($,E)=>ln($,E),M);const R={prefix:l,disableCssColorScheme:o,shouldSkipGeneratingVar:u,getSelector:yR(M)},{vars:D,generateThemeVars:P,generateStyleSheets:z}=g_(M,R);return M.vars=D,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([$,E])=>{M[$]=E}),M.generateThemeVars=P,M.generateStyleSheets=z,M.generateSpacing=function(){return gw(p.spacing,cf(this))},M.getColorSchemeSelector=y_(f),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=u,M.unstable_sxConfig={...Hl,...p==null?void 0:p.unstable_sxConfig},M.unstable_sx=function(E){return Ki({sx:E,theme:this})},M.toRuntimeSource=Pw,M}function fS(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Wm({...n===!0?{}:n.palette,mode:t})})}function vf(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:l=n==null?void 0:n.mode,...u}=e,f=l||"light",d=o==null?void 0:o[f],p={...o,...n?{[f]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Xh(e,...t);let m=n;"palette"in e||p[f]&&(p[f]!==!0?m=p[f].palette:f==="dark"&&(m={mode:"dark"}));const g=Xh({...e,palette:m},...t);return g.defaultColorScheme=f,g.colorSchemes=p,g.palette.mode==="light"&&(g.colorSchemes.light={...p.light!==!0&&p.light,palette:g.palette},fS(g,"dark",p.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:g.palette},fS(g,"light",p.light)),g}return!n&&!("light"in p)&&f==="light"&&(p.light=!0),wR({...u,colorSchemes:p,defaultColorScheme:f,...typeof i!="boolean"&&i},...t)}const Qm=vf();function Gl(){const e=ql(Qm);return e[qr]||e}function qw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const In=e=>qw(e)&&e!=="classes",me=xw({themeId:qr,defaultTheme:Qm,rootShouldForwardProp:In});function dS({theme:e,...t}){const n=qr in e?e[qr]:void 0;return B.jsx(zw,{...t,themeId:n?qr:void 0,theme:n||e})}const hc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:xR}=d_({themeId:qr,theme:()=>vf({cssVariables:!0}),colorSchemeStorageKey:hc.colorSchemeStorageKey,modeStorageKey:hc.modeStorageKey,defaultColorScheme:{light:hc.defaultLightColorScheme,dark:hc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:$w(e.palette,e.typography)};return t.unstable_sx=function(i){return Ki({sx:i,theme:this})},t}}),CR=xR;function kR({theme:e,...t}){return typeof e=="function"?B.jsx(dS,{theme:e,...t}):"colorSchemes"in(qr in e?e[qr]:e)?B.jsx(CR,{theme:e,...t}):B.jsx(dS,{theme:e,...t})}function ER(e){return B.jsx(EA,{...e,defaultTheme:Qm,themeId:qr})}function Zm(e){return function(n){return B.jsx(ER,{styles:typeof e=="function"?i=>e({theme:i,...n}):e})}}function TR(){return gf}const ht=i_;function We(e){return r_(e)}function AR(e){return Ge("MuiSvgIcon",e)}Fe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _R=e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root",t!=="inherit"&&`color${Se(t)}`,`fontSize${Se(n)}`]};return Ke(o,AR,i)},RR=me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Se(n.color)}`],t[`fontSize${Se(n.fontSize)}`]]}})(ht(({theme:e})=>{var t,n,i,o,l,u,f,d,p,m,g,v,b,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(i=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:d.call(f,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:m.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var C,A;return{props:{color:S},style:{color:(A=(C=(e.vars??e).palette)==null?void 0:C[S])==null?void 0:A.main}}}),{props:{color:"action"},style:{color:(v=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(w=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Qh=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiSvgIcon"}),{children:o,className:l,color:u="inherit",component:f="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:m=!1,titleAccess:g,viewBox:v="0 0 24 24",...b}=i,w=T.isValidElement(o)&&o.type==="svg",S={...i,color:u,component:f,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:v,hasSvgAsChild:w},C={};m||(C.viewBox=v);const A=_R(S);return B.jsxs(RR,{as:f,className:Oe(A.root,l),focusable:"false",color:p,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...C,...b,...w&&o.props,ownerState:S,children:[w?o.props.children:o,g?B.jsx("title",{children:g}):null]})});Qh.muiName="SvgIcon";function bi(e,t){function n(i,o){return B.jsx(Qh,{"data-testid":`${t}Icon`,ref:o,...i,children:e})}return n.muiName=Qh.muiName,T.memo(T.forwardRef(n))}function Fw(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return o=>{const l=typeof t=="function"?t(o):t,u=typeof e=="function"?e({...o,...l}):e,f=Oe(o==null?void 0:o.className,l==null?void 0:l.className,u==null?void 0:u.className);return{...l,...u,...!!f&&{className:f},...(l==null?void 0:l.style)&&(u==null?void 0:u.style)&&{style:{...l.style,...u.style}},...(l==null?void 0:l.sx)&&(u==null?void 0:u.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const n=t,i=Oe(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...!!i&&{className:i},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Vw(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Zh(e,t){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zh(e,t)}function Gw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zh(e,t)}var ka=X1();const mc=rf(ka),pS={disabled:!1},Hc=rt.createContext(null);var OR=function(t){return t.scrollTop},cl="unmounted",Sa="exited",wa="entering",Ao="entered",Jh="exiting",Kr=function(e){Gw(t,e);function t(i,o){var l;l=e.call(this,i,o)||this;var u=o,f=u&&!u.isMounting?i.enter:i.appear,d;return l.appearStatus=null,i.in?f?(d=Sa,l.appearStatus=wa):d=Ao:i.unmountOnExit||i.mountOnEnter?d=cl:d=Sa,l.state={status:d},l.nextCallback=null,l}t.getDerivedStateFromProps=function(o,l){var u=o.in;return u&&l.status===cl?{status:Sa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var l=null;if(o!==this.props){var u=this.state.status;this.props.in?u!==wa&&u!==Ao&&(l=wa):(u===wa||u===Ao)&&(l=Jh)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,l,u,f;return l=u=f=o,o!=null&&typeof o!="number"&&(l=o.exit,u=o.enter,f=o.appear!==void 0?o.appear:u),{exit:l,enter:u,appear:f}},n.updateStatus=function(o,l){if(o===void 0&&(o=!1),l!==null)if(this.cancelNextCallback(),l===wa){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:mc.findDOMNode(this);u&&OR(u)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sa&&this.setState({status:cl})},n.performEnter=function(o){var l=this,u=this.props.enter,f=this.context?this.context.isMounting:o,d=this.props.nodeRef?[f]:[mc.findDOMNode(this),f],p=d[0],m=d[1],g=this.getTimeouts(),v=f?g.appear:g.enter;if(!o&&!u||pS.disabled){this.safeSetState({status:Ao},function(){l.props.onEntered(p)});return}this.props.onEnter(p,m),this.safeSetState({status:wa},function(){l.props.onEntering(p,m),l.onTransitionEnd(v,function(){l.safeSetState({status:Ao},function(){l.props.onEntered(p,m)})})})},n.performExit=function(){var o=this,l=this.props.exit,u=this.getTimeouts(),f=this.props.nodeRef?void 0:mc.findDOMNode(this);if(!l||pS.disabled){this.safeSetState({status:Sa},function(){o.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:Jh},function(){o.props.onExiting(f),o.onTransitionEnd(u.exit,function(){o.safeSetState({status:Sa},function(){o.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,l){l=this.setNextCallback(l),this.setState(o,l)},n.setNextCallback=function(o){var l=this,u=!0;return this.nextCallback=function(f){u&&(u=!1,l.nextCallback=null,o(f))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(o,l){this.setNextCallback(l);var u=this.props.nodeRef?this.props.nodeRef.current:mc.findDOMNode(this),f=o==null&&!this.props.addEndListener;if(!u||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],p=d[0],m=d[1];this.props.addEndListener(p,m)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===cl)return null;var l=this.props,u=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var f=Vw(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return rt.createElement(Hc.Provider,{value:null},typeof u=="function"?u(o,f):rt.cloneElement(rt.Children.only(u),f))},t}(rt.Component);Kr.contextType=Hc;Kr.propTypes={};function xo(){}Kr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xo,onEntering:xo,onEntered:xo,onExit:xo,onExiting:xo,onExited:xo};Kr.UNMOUNTED=cl;Kr.EXITED=Sa;Kr.ENTERING=wa;Kr.ENTERED=Ao;Kr.EXITING=Jh;function MR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jm(e,t){var n=function(l){return t&&T.isValidElement(l)?t(l):l},i=Object.create(null);return e&&T.Children.map(e,function(o){return o}).forEach(function(o){i[o.key]=n(o)}),i}function NR(e,t){e=e||{},t=t||{};function n(m){return m in t?t[m]:e[m]}var i=Object.create(null),o=[];for(var l in e)l in t?o.length&&(i[l]=o,o=[]):o.push(l);var u,f={};for(var d in t){if(i[d])for(u=0;u<i[d].length;u++){var p=i[d][u];f[i[d][u]]=n(p)}f[d]=n(d)}for(u=0;u<o.length;u++)f[o[u]]=n(o[u]);return f}function Ea(e,t,n){return n[t]!=null?n[t]:e.props[t]}function DR(e,t){return Jm(e.children,function(n){return T.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ea(n,"appear",e),enter:Ea(n,"enter",e),exit:Ea(n,"exit",e)})})}function LR(e,t,n){var i=Jm(e.children),o=NR(t,i);return Object.keys(o).forEach(function(l){var u=o[l];if(T.isValidElement(u)){var f=l in t,d=l in i,p=t[l],m=T.isValidElement(p)&&!p.props.in;d&&(!f||m)?o[l]=T.cloneElement(u,{onExited:n.bind(null,u),in:!0,exit:Ea(u,"exit",e),enter:Ea(u,"enter",e)}):!d&&f&&!m?o[l]=T.cloneElement(u,{in:!1}):d&&f&&T.isValidElement(p)&&(o[l]=T.cloneElement(u,{onExited:n.bind(null,u),in:p.props.in,exit:Ea(u,"exit",e),enter:Ea(u,"enter",e)}))}}),o}var zR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},IR={component:"div",childFactory:function(t){return t}},eg=function(e){Gw(t,e);function t(i,o){var l;l=e.call(this,i,o)||this;var u=l.handleExited.bind(MR(l));return l.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},l}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,l){var u=l.children,f=l.handleExited,d=l.firstRender;return{children:d?DR(o,f):LR(o,u,f),firstRender:!1}},n.handleExited=function(o,l){var u=Jm(this.props.children);o.key in u||(o.props.onExited&&o.props.onExited(l),this.mounted&&this.setState(function(f){var d=jc({},f.children);return delete d[o.key],{children:d}}))},n.render=function(){var o=this.props,l=o.component,u=o.childFactory,f=Vw(o,["component","childFactory"]),d=this.state.contextValue,p=zR(this.state.children).map(u);return delete f.appear,delete f.enter,delete f.exit,l===null?rt.createElement(Hc.Provider,{value:d},p):rt.createElement(Hc.Provider,{value:d},rt.createElement(l,f,p))},t}(rt.Component);eg.propTypes={};eg.defaultProps=IR;const Kw=e=>e.scrollTop;function qc(e,t){const{timeout:n,easing:i,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:o.transitionDelay}}function BR(e){return Ge("MuiPaper",e)}Fe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const jR=e=>{const{square:t,elevation:n,variant:i,classes:o}=e,l={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return Ke(l,BR,o)},$R=me("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ht(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Sf=T.forwardRef(function(t,n){var b;const i=We({props:t,name:"MuiPaper"}),o=Gl(),{className:l,component:u="div",elevation:f=1,square:d=!1,variant:p="elevation",...m}=i,g={...i,component:u,elevation:f,square:d,variant:p},v=jR(g);return B.jsx($R,{as:u,ownerState:g,className:Oe(v.root,l),ref:n,...m,style:{...p==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[f],...o.vars&&{"--Paper-overlay":(b=o.vars.overlays)==null?void 0:b[f]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${bn("#fff",Wh(f))}, ${bn("#fff",Wh(f))})`}},...m.style}})});function pt(e,t){const{className:n,elementType:i,ownerState:o,externalForwardedProps:l,internalForwardedProps:u,shouldForwardComponentProp:f=!1,...d}=t,{component:p,slots:m={[e]:void 0},slotProps:g={[e]:void 0},...v}=l,b=m[e]||i,w=Mw(g[e],o),{props:{component:S,...C},internalRef:A}=Ow({className:n,...d,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:w}),O=En(A,w==null?void 0:w.ref,t.ref),_=e==="root"?S||p:S,M=_w(b,{...e==="root"&&!p&&!m[e]&&u,...e!=="root"&&!m[e]&&u,...C,..._&&!f&&{as:_},..._&&f&&{component:_},ref:O},o);return[b,M]}class Fc{constructor(){Xs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Fc}static use(){const t=Ew(Fc.create).current,[n,i]=T.useState(!1);return t.shouldMount=n,t.setShouldMount=i,T.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=UR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function PR(){return Fc.use()}function UR(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n}function HR(e){const{className:t,classes:n,pulsate:i=!1,rippleX:o,rippleY:l,rippleSize:u,in:f,onExited:d,timeout:p}=e,[m,g]=T.useState(!1),v=Oe(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),b={width:u,height:u,top:-(u/2)+l,left:-(u/2)+o},w=Oe(n.child,m&&n.childLeaving,i&&n.childPulsate);return!f&&!m&&g(!0),T.useEffect(()=>{if(!f&&d!=null){const S=setTimeout(d,p);return()=>{clearTimeout(S)}}},[d,f,p]),B.jsx("span",{className:v,style:b,children:B.jsx("span",{className:w})})}const lr=Fe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),em=550,qR=80,FR=Pl`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`,VR=Pl`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`,GR=Pl`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`,KR=me("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),YR=me(HR,{name:"MuiTouchRipple",slot:"Ripple"})`
opacity: 0;
position: absolute;
&.${lr.rippleVisible} {
opacity: 0.3;
transform: scale(1);
animation-name: ${FR};
animation-duration: ${em}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
&.${lr.ripplePulsate} {
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
}
& .${lr.child} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${lr.childLeaving} {
opacity: 0;
animation-name: ${VR};
animation-duration: ${em}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
& .${lr.childPulsate} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${GR};
animation-duration: 2500ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`,XR=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:u,...f}=i,[d,p]=T.useState([]),m=T.useRef(0),g=T.useRef(null);T.useEffect(()=>{g.current&&(g.current(),g.current=null)},[d]);const v=T.useRef(!1),b=Tw(),w=T.useRef(null),S=T.useRef(null),C=T.useCallback(M=>{const{pulsate:R,rippleX:D,rippleY:P,rippleSize:z,cb:$}=M;p(E=>[...E,B.jsx(YR,{classes:{ripple:Oe(l.ripple,lr.ripple),rippleVisible:Oe(l.rippleVisible,lr.rippleVisible),ripplePulsate:Oe(l.ripplePulsate,lr.ripplePulsate),child:Oe(l.child,lr.child),childLeaving:Oe(l.childLeaving,lr.childLeaving),childPulsate:Oe(l.childPulsate,lr.childPulsate)},timeout:em,pulsate:R,rippleX:D,rippleY:P,rippleSize:z},m.current)]),m.current+=1,g.current=$},[l]),A=T.useCallback((M={},R={},D=()=>{})=>{const{pulsate:P=!1,center:z=o||R.pulsate,fakeElement:$=!1}=R;if((M==null?void 0:M.type)==="mousedown"&&v.current){v.current=!1;return}(M==null?void 0:M.type)==="touchstart"&&(v.current=!0);const E=$?null:S.current,I=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,Y;if(z||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)U=Math.round(I.width/2),G=Math.round(I.height/2);else{const{clientX:V,clientY:H}=M.touches&&M.touches.length>0?M.touches[0]:M;U=Math.round(V-I.left),G=Math.round(H-I.top)}if(z)Y=Math.sqrt((2*I.width**2+I.height**2)/3),Y%2===0&&(Y+=1);else{const V=Math.max(Math.abs((E?E.clientWidth:0)-U),U)*2+2,H=Math.max(Math.abs((E?E.clientHeight:0)-G),G)*2+2;Y=Math.sqrt(V**2+H**2)}M!=null&&M.touches?w.current===null&&(w.current=()=>{C({pulsate:P,rippleX:U,rippleY:G,rippleSize:Y,cb:D})},b.start(qR,()=>{w.current&&(w.current(),w.current=null)})):C({pulsate:P,rippleX:U,rippleY:G,rippleSize:Y,cb:D})},[o,C,b]),O=T.useCallback(()=>{A({},{pulsate:!0})},[A]),_=T.useCallback((M,R)=>{if(b.clear(),(M==null?void 0:M.type)==="touchend"&&w.current){w.current(),w.current=null,b.start(0,()=>{_(M,R)});return}w.current=null,p(D=>D.length>0?D.slice(1):D),g.current=R},[b]);return T.useImperativeHandle(n,()=>({pulsate:O,start:A,stop:_}),[O,A,_]),B.jsx(KR,{className:Oe(lr.root,l.root,u),ref:S,...f,children:B.jsx(eg,{component:null,exit:!0,children:d})})});function WR(e){return Ge("MuiButtonBase",e)}const QR=Fe("MuiButtonBase",["root","disabled","focusVisible"]),ZR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:o}=e,u=Ke({root:["root",t&&"disabled",n&&"focusVisible"]},WR,o);return n&&i&&(u.root+=` ${i}`),u},JR=me("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${QR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),wf=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:u,className:f,component:d="button",disabled:p=!1,disableRipple:m=!1,disableTouchRipple:g=!1,focusRipple:v=!1,focusVisibleClassName:b,LinkComponent:w="a",onBlur:S,onClick:C,onContextMenu:A,onDragLeave:O,onFocus:_,onFocusVisible:M,onKeyDown:R,onKeyUp:D,onMouseDown:P,onMouseLeave:z,onMouseUp:$,onTouchEnd:E,onTouchMove:I,onTouchStart:U,tabIndex:G=0,TouchRippleProps:Y,touchRippleRef:V,type:H,...Z}=i,ae=T.useRef(null),J=PR(),k=En(J.ref,V),[X,se]=T.useState(!1);p&&X&&se(!1),T.useImperativeHandle(o,()=>({focusVisible:()=>{se(!0),ae.current.focus()}}),[]);const L=J.shouldMount&&!m&&!p;T.useEffect(()=>{X&&v&&!m&&J.pulsate()},[m,v,X,J]);const re=di(J,"start",P,g),fe=di(J,"stop",A,g),le=di(J,"stop",O,g),Ae=di(J,"stop",$,g),ge=di(J,"stop",we=>{X&&we.preventDefault(),z&&z(we)},g),be=di(J,"start",U,g),ue=di(J,"stop",E,g),xe=di(J,"stop",I,g),ke=di(J,"stop",we=>{Z0(we.target)||se(!1),S&&S(we)},!1),je=Do(we=>{ae.current||(ae.current=we.currentTarget),Z0(we.target)&&(se(!0),M&&M(we)),_&&_(we)}),Ce=()=>{const we=ae.current;return d&&d!=="button"&&!(we.tagName==="A"&&we.href)},$e=Do(we=>{v&&!we.repeat&&X&&we.key===" "&&J.stop(we,()=>{J.start(we)}),we.target===we.currentTarget&&Ce()&&we.key===" "&&we.preventDefault(),R&&R(we),we.target===we.currentTarget&&Ce()&&we.key==="Enter"&&!p&&(we.preventDefault(),C&&C(we))}),et=Do(we=>{v&&we.key===" "&&X&&!we.defaultPrevented&&J.stop(we,()=>{J.pulsate(we)}),D&&D(we),C&&we.target===we.currentTarget&&Ce()&&we.key===" "&&!we.defaultPrevented&&C(we)});let dt=d;dt==="button"&&(Z.href||Z.to)&&(dt=w);const Pe={};dt==="button"?(Pe.type=H===void 0?"button":H,Pe.disabled=p):(!Z.href&&!Z.to&&(Pe.role="button"),p&&(Pe["aria-disabled"]=p));const bt=En(n,ae),Ye={...i,centerRipple:l,component:d,disabled:p,disableRipple:m,disableTouchRipple:g,focusRipple:v,tabIndex:G,focusVisible:X},it=ZR(Ye);return B.jsxs(JR,{as:dt,className:Oe(it.root,f),ownerState:Ye,onBlur:ke,onClick:C,onContextMenu:fe,onFocus:je,onKeyDown:$e,onKeyUp:et,onMouseDown:re,onMouseLeave:ge,onMouseUp:Ae,onDragLeave:le,onTouchEnd:ue,onTouchMove:xe,onTouchStart:be,ref:bt,tabIndex:p?-1:G,type:H,...Pe,...Z,children:[u,L?B.jsx(XR,{ref:k,center:l,...Y}):null]})});function di(e,t,n,i=!1){return Do(o=>(n&&n(o),i||e[t](o),!0))}function eO(e){return typeof e.main=="string"}function tO(e,t=[]){if(!eO(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Cr(e=[]){return([,t])=>t&&tO(t,e)}function nO(e){return Ge("MuiCircularProgress",e)}Fe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qi=44,tm=Pl`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`,nm=Pl`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: -126px;
}
`,rO=typeof tm!="string"?Bm`
animation: ${tm} 1.4s linear infinite;
`:null,iO=typeof nm!="string"?Bm`
animation: ${nm} 1.4s ease-in-out infinite;
`:null,aO=e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,l={root:["root",n,`color${Se(i)}`],svg:["svg"],circle:["circle",`circle${Se(n)}`,o&&"circleDisableShrink"]};return Ke(l,nO,t)},oO=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Se(n.color)}`]]}})(ht(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:rO||{animation:`${tm} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),sO=me("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),lO=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Se(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ht(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:iO||{animation:`${nm} 1.4s ease-in-out infinite`}}]}))),Yw=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:u=!1,size:f=40,style:d,thickness:p=3.6,value:m=0,variant:g="indeterminate",...v}=i,b={...i,color:l,disableShrink:u,size:f,thickness:p,value:m,variant:g},w=aO(b),S={},C={},A={};if(g==="determinate"){const O=2*Math.PI*((qi-p)/2);S.strokeDasharray=O.toFixed(3),A["aria-valuenow"]=Math.round(m),S.strokeDashoffset=`${((100-m)/100*O).toFixed(3)}px`,C.transform="rotate(-90deg)"}return B.jsx(oO,{className:Oe(w.root,o),style:{width:f,height:f,...C,...d},ownerState:b,ref:n,role:"progressbar",...A,...v,children:B.jsx(sO,{className:w.svg,ownerState:b,viewBox:`${qi/2} ${qi/2} ${qi} ${qi}`,children:B.jsx(lO,{className:w.circle,style:S,ownerState:b,cx:qi,cy:qi,r:(qi-p)/2,fill:"none",strokeWidth:p})})})});function uO(e){return Ge("MuiIconButton",e)}const hS=Fe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),cO=e=>{const{classes:t,disabled:n,color:i,edge:o,size:l,loading:u}=e,f={root:["root",u&&"loading",n&&"disabled",i!=="default"&&`color${Se(i)}`,o&&`edge${Se(o)}`,`size${Se(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ke(f,uO,t)},fO=me(wf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Se(n.color)}`],n.edge&&t[`edge${Se(n.edge)}`],t[`size${Se(n.size)}`]]}})(ht(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ht(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bn((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${hS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${hS.loading}`]:{color:"transparent"}}))),dO=me("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),rm=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiIconButton"}),{edge:o=!1,children:l,className:u,color:f="default",disabled:d=!1,disableFocusRipple:p=!1,size:m="medium",id:g,loading:v=null,loadingIndicator:b,...w}=i,S=Fl(g),C=b??B.jsx(Yw,{"aria-labelledby":S,color:"inherit",size:16}),A={...i,edge:o,color:f,disabled:d,disableFocusRipple:p,loading:v,loadingIndicator:C,size:m},O=cO(A);return B.jsxs(fO,{id:v?S:g,className:Oe(O.root,u),centerRipple:!0,focusRipple:!p,disabled:d||v,ref:n,...w,ownerState:A,children:[typeof v=="boolean"&&B.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:B.jsx(dO,{className:O.loadingIndicator,ownerState:A,children:v&&C})}),l]})});function pO(e){return Ge("MuiTypography",e)}const mS=Fe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),hO={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mO=TR(),gO=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:l,classes:u}=e,f={root:["root",l,e.align!=="inherit"&&`align${Se(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return Ke(f,pO,u)},yO=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Se(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ht(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,i])=>n!=="inherit"&&i&&typeof i=="object").map(([n,i])=>({props:{variant:n},style:i})),...Object.entries(e.palette).filter(Cr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Se(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),gS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},en=T.forwardRef(function(t,n){const{color:i,...o}=We({props:t,name:"MuiTypography"}),l=!hO[i],u=mO({...o,...l&&{color:i}}),{align:f="inherit",className:d,component:p,gutterBottom:m=!1,noWrap:g=!1,paragraph:v=!1,variant:b="body1",variantMapping:w=gS,...S}=u,C={...u,align:f,color:i,className:d,component:p,gutterBottom:m,noWrap:g,paragraph:v,variant:b,variantMapping:w},A=p||(v?"p":w[b]||gS[b])||"span",O=gO(C);return B.jsx(yO,{as:A,ref:n,className:Oe(O.root,d),...S,ownerState:C,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...S.style}})});function bO(e){return typeof e=="function"?e():e}const vO=T.forwardRef(function(t,n){const{children:i,container:o,disablePortal:l=!1}=t,[u,f]=T.useState(null),d=En(T.isValidElement(i)?Vl(i):null,n);if(gi(()=>{l||f(bO(o)||document.body)},[o,l]),gi(()=>{if(u&&!l)return Kh(n,u),()=>{Kh(n,null)}},[n,u,l]),l){if(T.isValidElement(i)){const p={ref:d};return T.cloneElement(i,p)}return i}return u&&ka.createPortal(i,u)});function gc(e){return parseInt(e,10)||0}const SO={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function wO(e){for(const t in e)return!1;return!0}function xO(e){return wO(e)||e.outerHeightStyle===0&&!e.overflowing}const CO=T.forwardRef(function(t,n){const{onChange:i,maxRows:o,minRows:l=1,style:u,value:f,...d}=t,{current:p}=T.useRef(f!=null),m=T.useRef(null),g=En(n,m),v=T.useRef(null),b=T.useRef(null),w=T.useCallback(()=>{const O=m.current,_=b.current;if(!O||!_)return;const R=yi(O).getComputedStyle(O);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};_.style.width=R.width,_.value=O.value||t.placeholder||"x",_.value.slice(-1)===`
`&&(_.value+=" ");const D=R.boxSizing,P=gc(R.paddingBottom)+gc(R.paddingTop),z=gc(R.borderBottomWidth)+gc(R.borderTopWidth),$=_.scrollHeight;_.value="x";const E=_.scrollHeight;let I=$;l&&(I=Math.max(Number(l)*E,I)),o&&(I=Math.min(Number(o)*E,I)),I=Math.max(I,E);const U=I+(D==="border-box"?P+z:0),G=Math.abs(I-$)<=1;return{outerHeightStyle:U,overflowing:G}},[o,l,t.placeholder]),S=T.useCallback(()=>{const O=m.current,_=w();if(!O||!_||xO(_))return;const M=_.outerHeightStyle;v.current!==M&&(v.current=M,O.style.height=`${M}px`),O.style.overflow=_.overflowing?"hidden":""},[w]),C=T.useRef(-1);gi(()=>{const O=kw(()=>S()),_=m==null?void 0:m.current;if(!_)return;const M=yi(_);M.addEventListener("resize",O);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(()=>{R.unobserve(_),cancelAnimationFrame(C.current),S(),C.current=requestAnimationFrame(()=>{R.observe(_)})}),R.observe(_)),()=>{O.clear(),cancelAnimationFrame(C.current),M.removeEventListener("resize",O),R&&R.disconnect()}},[w,S]),gi(()=>{S()});const A=O=>{p||S(),i&&i(O)};return B.jsxs(T.Fragment,{children:[B.jsx("textarea",{value:f,onChange:A,ref:g,rows:l,style:u,...d}),B.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...SO.shadow,...u,paddingTop:0,paddingBottom:0}})]})});function im(e){return typeof e=="string"}function Ma({props:e,states:t,muiFormControl:n}){return t.reduce((i,o)=>(i[o]=e[o],n&&typeof e[o]>"u"&&(i[o]=n[o]),i),{})}const xf=T.createContext(void 0);function vi(){return T.useContext(xf)}function yS(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Vc(e,t=!1){return e&&(yS(e.value)&&e.value!==""||t&&yS(e.defaultValue)&&e.defaultValue!=="")}function kO(e){return e.startAdornment}function EO(e){return Ge("MuiInputBase",e)}const Uo=Fe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var bS;const Cf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Se(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kf=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},TO=e=>{const{classes:t,color:n,disabled:i,error:o,endAdornment:l,focused:u,formControl:f,fullWidth:d,hiddenLabel:p,multiline:m,readOnly:g,size:v,startAdornment:b,type:w}=e,S={root:["root",`color${Se(n)}`,i&&"disabled",o&&"error",d&&"fullWidth",u&&"focused",f&&"formControl",v&&v!=="medium"&&`size${Se(v)}`,m&&"multiline",b&&"adornedStart",l&&"adornedEnd",p&&"hiddenLabel",g&&"readOnly"],input:["input",i&&"disabled",w==="search"&&"inputTypeSearch",m&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",b&&"inputAdornedStart",l&&"inputAdornedEnd",g&&"readOnly"]};return Ke(S,EO,t)},Ef=me("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Cf})(ht(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Uo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Tf=me("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kf})(ht(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Uo.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Uo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:l})=>!l.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:l})=>l.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),vS=Zm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),tg=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:l,autoFocus:u,className:f,color:d,components:p={},componentsProps:m={},defaultValue:g,disabled:v,disableInjectingGlobalStyles:b,endAdornment:w,error:S,fullWidth:C=!1,id:A,inputComponent:O="input",inputProps:_={},inputRef:M,margin:R,maxRows:D,minRows:P,multiline:z=!1,name:$,onBlur:E,onChange:I,onClick:U,onFocus:G,onKeyDown:Y,onKeyUp:V,placeholder:H,readOnly:Z,renderSuffix:ae,rows:J,size:k,slotProps:X={},slots:se={},startAdornment:L,type:re="text",value:fe,...le}=i,Ae=_.value!=null?_.value:fe,{current:ge}=T.useRef(Ae!=null),be=T.useRef(),ue=T.useCallback(Me=>{},[]),xe=En(be,M,_.ref,ue),[ke,je]=T.useState(!1),Ce=vi(),$e=Ma({props:i,muiFormControl:Ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=Ce?Ce.focused:ke,T.useEffect(()=>{!Ce&&v&&ke&&(je(!1),E&&E())},[Ce,v,ke,E]);const et=Ce&&Ce.onFilled,dt=Ce&&Ce.onEmpty,Pe=T.useCallback(Me=>{Vc(Me)?et&&et():dt&&dt()},[et,dt]);gi(()=>{ge&&Pe({value:Ae})},[Ae,Pe,ge]);const bt=Me=>{G&&G(Me),_.onFocus&&_.onFocus(Me),Ce&&Ce.onFocus?Ce.onFocus(Me):je(!0)},Ye=Me=>{E&&E(Me),_.onBlur&&_.onBlur(Me),Ce&&Ce.onBlur?Ce.onBlur(Me):je(!1)},it=(Me,...st)=>{if(!ge){const nt=Me.target||be.current;if(nt==null)throw new Error(mi(1));Pe({value:nt.value})}_.onChange&&_.onChange(Me,...st),I&&I(Me,...st)};T.useEffect(()=>{Pe(be.current)},[]);const we=Me=>{be.current&&Me.currentTarget===Me.target&&be.current.focus(),U&&U(Me)};let pn=O,tt=_;z&&pn==="input"&&(J?tt={type:void 0,minRows:J,maxRows:J,...tt}:tt={type:void 0,maxRows:D,minRows:P,...tt},pn=CO);const Sn=Me=>{Pe(Me.animationName==="mui-auto-fill-cancel"?be.current:{value:"x"})};T.useEffect(()=>{Ce&&Ce.setAdornedStart(!!L)},[Ce,L]);const ee={...i,color:$e.color||"primary",disabled:$e.disabled,endAdornment:w,error:$e.error,focused:$e.focused,formControl:Ce,fullWidth:C,hiddenLabel:$e.hiddenLabel,multiline:z,size:$e.size,startAdornment:L,type:re},de=TO(ee),he=se.root||p.Root||Ef,ye=X.root||m.root||{},Re=se.input||p.Input||Tf;return tt={...tt,...X.input??m.input},B.jsxs(T.Fragment,{children:[!b&&typeof vS=="function"&&(bS||(bS=B.jsx(vS,{}))),B.jsxs(he,{...ye,ref:n,onClick:we,...le,...!im(he)&&{ownerState:{...ee,...ye.ownerState}},className:Oe(de.root,ye.className,f,Z&&"MuiInputBase-readOnly"),children:[L,B.jsx(xf.Provider,{value:null,children:B.jsx(Re,{"aria-invalid":$e.error,"aria-describedby":o,autoComplete:l,autoFocus:u,defaultValue:g,disabled:$e.disabled,id:A,onAnimationStart:Sn,name:$,placeholder:H,readOnly:Z,required:$e.required,rows:J,value:Ae,onKeyDown:Y,onKeyUp:V,type:re,...tt,...!im(Re)&&{as:pn,ownerState:{...ee,...tt.ownerState}},ref:xe,className:Oe(de.input,tt.className,Z&&"MuiInputBase-readOnly"),onBlur:Ye,onChange:it,onFocus:bt})}),w,ae?ae({...$e,startAdornment:L}):null]})]})});function AO(e){return Ge("MuiInput",e)}const el={...Uo,...Fe("MuiInput",["root","underline","input"])};function _O(e){return Ge("MuiOutlinedInput",e)}const Ir={...Uo,...Fe("MuiOutlinedInput",["root","notchedOutline","input"])};function RO(e){return Ge("MuiFilledInput",e)}const ba={...Uo,...Fe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},OO=bi(B.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),MO={entering:{opacity:1},entered:{opacity:1}},am=T.forwardRef(function(t,n){const i=Gl(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:f,easing:d,in:p,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:w,onExiting:S,style:C,timeout:A=o,TransitionComponent:O=Kr,..._}=t,M=T.useRef(null),R=En(M,Vl(f),n),D=Y=>V=>{if(Y){const H=M.current;V===void 0?Y(H):Y(H,V)}},P=D(v),z=D((Y,V)=>{Kw(Y);const H=qc({style:C,timeout:A,easing:d},{mode:"enter"});Y.style.webkitTransition=i.transitions.create("opacity",H),Y.style.transition=i.transitions.create("opacity",H),m&&m(Y,V)}),$=D(g),E=D(S),I=D(Y=>{const V=qc({style:C,timeout:A,easing:d},{mode:"exit"});Y.style.webkitTransition=i.transitions.create("opacity",V),Y.style.transition=i.transitions.create("opacity",V),b&&b(Y)}),U=D(w),G=Y=>{l&&l(M.current,Y)};return B.jsx(O,{appear:u,in:p,nodeRef:M,onEnter:z,onEntered:$,onEntering:P,onExit:I,onExited:U,onExiting:E,addEndListener:G,timeout:A,..._,children:(Y,{ownerState:V,...H})=>T.cloneElement(f,{style:{opacity:0,visibility:Y==="exited"&&!p?"hidden":void 0,...MO[Y],...C,...f.props.style},ref:R,...H})})});function NO(e){return Ge("MuiBackdrop",e)}Fe("MuiBackdrop",["root","invisible"]);const DO=e=>{const{classes:t,invisible:n}=e;return Ke({root:["root",n&&"invisible"]},NO,t)},LO=me("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Xw=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",invisible:f=!1,open:d,components:p={},componentsProps:m={},slotProps:g={},slots:v={},TransitionComponent:b,transitionDuration:w,...S}=i,C={...i,component:u,invisible:f},A=DO(C),O={transition:b,root:p.Root,...v},_={...m,...g},M={slots:O,slotProps:_},[R,D]=pt("root",{elementType:LO,externalForwardedProps:M,className:Oe(A.root,l),ownerState:C}),[P,z]=pt("transition",{elementType:am,externalForwardedProps:M,ownerState:C});return B.jsx(P,{in:d,timeout:w,...S,...z,children:B.jsx(R,{"aria-hidden":!0,...D,classes:A,ref:n,children:o})})}),zO=Fe("MuiBox",["root"]),IO=vf(),Pr=_A({themeId:qr,defaultTheme:IO,defaultClassName:zO.root,generateClassName:bw.generate});function BO(e){return Ge("MuiButton",e)}const va=Fe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),jO=T.createContext({}),$O=T.createContext(void 0),PO=e=>{const{color:t,disableElevation:n,fullWidth:i,size:o,variant:l,loading:u,loadingPosition:f,classes:d}=e,p={root:["root",u&&"loading",l,`${l}${Se(t)}`,`size${Se(o)}`,`${l}Size${Se(o)}`,`color${Se(t)}`,n&&"disableElevation",i&&"fullWidth",u&&`loadingPosition${Se(f)}`],startIcon:["icon","startIcon",`iconSize${Se(o)}`],endIcon:["icon","endIcon",`iconSize${Se(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},m=Ke(p,BO,d);return{...d,...m}},Ww=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],UO=me(wf,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Se(n.color)}`],t[`size${Se(n.size)}`],t[`${n.variant}Size${Se(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ht(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${va.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${va.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${va.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${va.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Cr()).map(([i])=>({props:{color:i},style:{"--variant-textColor":(e.vars||e).palette[i].main,"--variant-outlinedColor":(e.vars||e).palette[i].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[i].mainChannel} / 0.5)`:bn(e.palette[i].main,.5),"--variant-containedColor":(e.vars||e).palette[i].contrastText,"--variant-containedBg":(e.vars||e).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[i].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[i].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette[i].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[i].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[i].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette[i].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${va.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${va.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${va.loading}`]:{color:"transparent"}}}]}})),HO=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Se(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ww]})),qO=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Se(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ww]})),FO=me("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),SS=me("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),om=T.forwardRef(function(t,n){const i=T.useContext(jO),o=T.useContext($O),l=Rl(i,t),u=We({props:l,name:"MuiButton"}),{children:f,color:d="primary",component:p="button",className:m,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:w,focusVisibleClassName:S,fullWidth:C=!1,id:A,loading:O=null,loadingIndicator:_,loadingPosition:M="center",size:R="medium",startIcon:D,type:P,variant:z="text",...$}=u,E=Fl(A),I=_??B.jsx(Yw,{"aria-labelledby":E,color:"inherit",size:16}),U={...u,color:d,component:p,disabled:g,disableElevation:v,disableFocusRipple:b,fullWidth:C,loading:O,loadingIndicator:I,loadingPosition:M,size:R,type:P,variant:z},G=PO(U),Y=(D||O&&M==="start")&&B.jsx(HO,{className:G.startIcon,ownerState:U,children:D||B.jsx(SS,{className:G.loadingIconPlaceholder,ownerState:U})}),V=(w||O&&M==="end")&&B.jsx(qO,{className:G.endIcon,ownerState:U,children:w||B.jsx(SS,{className:G.loadingIconPlaceholder,ownerState:U})}),H=o||"",Z=typeof O=="boolean"?B.jsx("span",{className:G.loadingWrapper,style:{display:"contents"},children:O&&B.jsx(FO,{className:G.loadingIndicator,ownerState:U,children:I})}):null;return B.jsxs(UO,{ownerState:U,className:Oe(i.className,G.root,m,H),component:p,disabled:g||O,focusRipple:!b,focusVisibleClassName:Oe(G.focusVisible,S),ref:n,type:P,id:O?E:A,...$,classes:G,children:[Y,M!=="end"&&Z,f,M==="end"&&Z,V]})});function VO(e){return Ge("MuiCard",e)}Fe("MuiCard",["root"]);const GO=e=>{const{classes:t}=e;return Ke({root:["root"]},VO,t)},KO=me(Sf,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),wS=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiCard"}),{className:o,raised:l=!1,...u}=i,f={...i,raised:l},d=GO(f);return B.jsx(KO,{className:Oe(d.root,o),elevation:l?8:void 0,ref:n,ownerState:f,...u})});function YO(e){return Ge("MuiCardActions",e)}Fe("MuiCardActions",["root","spacing"]);const XO=e=>{const{classes:t,disableSpacing:n}=e;return Ke({root:["root",!n&&"spacing"]},YO,t)},WO=me("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),QO=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:l,...u}=i,f={...i,disableSpacing:o},d=XO(f);return B.jsx(WO,{className:Oe(d.root,l),ownerState:f,ref:n,...u})});function ZO(e){return Ge("MuiCardHeader",e)}const Gc=Fe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),JO=e=>{const{classes:t}=e;return Ke({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},ZO,t)},eM=me("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Gc.title}`]:t.title},{[`& .${Gc.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),tM=me("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),nM=me("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),rM=me("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${mS.root}:where(& .${Gc.title})`]:{display:"block"},[`.${mS.root}:where(& .${Gc.subheader})`]:{display:"block"}}),iM=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiCardHeader"}),{action:o,avatar:l,component:u="div",disableTypography:f=!1,subheader:d,subheaderTypographyProps:p,title:m,titleTypographyProps:g,slots:v={},slotProps:b={},...w}=i,S={...i,component:u,disableTypography:f},C=JO(S),A={slots:v,slotProps:{title:g,subheader:p,...b}};let O=m;const[_,M]=pt("title",{className:C.title,elementType:en,externalForwardedProps:A,ownerState:S,additionalProps:{variant:l?"body2":"h5",component:"span"}});O!=null&&O.type!==en&&!f&&(O=B.jsx(_,{...M,children:O}));let R=d;const[D,P]=pt("subheader",{className:C.subheader,elementType:en,externalForwardedProps:A,ownerState:S,additionalProps:{variant:l?"body2":"body1",color:"textSecondary",component:"span"}});R!=null&&R.type!==en&&!f&&(R=B.jsx(D,{...P,children:R}));const[z,$]=pt("root",{ref:n,className:C.root,elementType:eM,externalForwardedProps:{...A,...w,component:u},ownerState:S}),[E,I]=pt("avatar",{className:C.avatar,elementType:tM,externalForwardedProps:A,ownerState:S}),[U,G]=pt("content",{className:C.content,elementType:rM,externalForwardedProps:A,ownerState:S}),[Y,V]=pt("action",{className:C.action,elementType:nM,externalForwardedProps:A,ownerState:S});return B.jsxs(z,{...$,children:[l&&B.jsx(E,{...I,children:l}),B.jsxs(U,{...G,children:[O,R]}),o&&B.jsx(Y,{...V,children:o})]})});function aM(e){return Ge("PrivateSwitchBase",e)}Fe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const oM=e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,l={root:["root",n&&"checked",i&&"disabled",o&&`edge${Se(o)}`],input:["input"]};return Ke(l,aM,t)},sM=me(wf)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),lM=me("input",{shouldForwardProp:In})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),uM=T.forwardRef(function(t,n){const{autoFocus:i,checked:o,checkedIcon:l,defaultChecked:u,disabled:f,disableFocusRipple:d=!1,edge:p=!1,icon:m,id:g,inputProps:v,inputRef:b,name:w,onBlur:S,onChange:C,onFocus:A,readOnly:O,required:_=!1,tabIndex:M,type:R,value:D,slots:P={},slotProps:z={},...$}=t,[E,I]=Yh({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),U=vi(),G=fe=>{A&&A(fe),U&&U.onFocus&&U.onFocus(fe)},Y=fe=>{S&&S(fe),U&&U.onBlur&&U.onBlur(fe)},V=fe=>{if(fe.nativeEvent.defaultPrevented)return;const le=fe.target.checked;I(le),C&&C(fe,le)};let H=f;U&&typeof H>"u"&&(H=U.disabled);const Z=R==="checkbox"||R==="radio",ae={...t,checked:E,disabled:H,disableFocusRipple:d,edge:p},J=oM(ae),k={slots:P,slotProps:{input:v,...z}},[X,se]=pt("root",{ref:n,elementType:sM,className:J.root,shouldForwardComponentProp:!0,externalForwardedProps:{...k,component:"span",...$},getSlotProps:fe=>({...fe,onFocus:le=>{var Ae;(Ae=fe.onFocus)==null||Ae.call(fe,le),G(le)},onBlur:le=>{var Ae;(Ae=fe.onBlur)==null||Ae.call(fe,le),Y(le)}}),ownerState:ae,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:H,role:void 0,tabIndex:null}}),[L,re]=pt("input",{ref:b,elementType:lM,className:J.input,externalForwardedProps:k,getSlotProps:fe=>({onChange:le=>{var Ae;(Ae=fe.onChange)==null||Ae.call(fe,le),V(le)}}),ownerState:ae,additionalProps:{autoFocus:i,checked:o,defaultChecked:u,disabled:H,id:Z?g:void 0,name:w,readOnly:O,required:_,tabIndex:M,type:R,...R==="checkbox"&&D===void 0?{}:{value:D}}});return B.jsxs(X,{...se,children:[B.jsx(L,{...re}),E?l:m]})}),cM=bi(B.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),fM=bi(B.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),dM=bi(B.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function pM(e){return Ge("MuiCheckbox",e)}const fh=Fe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),hM=e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,l={root:["root",n&&"indeterminate",`color${Se(i)}`,`size${Se(o)}`]},u=Ke(l,pM,t);return{...t,...u}},mM=me(uM,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Se(n.size)}`],n.color!=="default"&&t[`color${Se(n.color)}`]]}})(ht(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{[`&.${fh.checked}, &.${fh.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${fh.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),gM=B.jsx(fM,{}),yM=B.jsx(cM,{}),bM=B.jsx(dM,{}),Qw=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiCheckbox"}),{checkedIcon:o=gM,color:l="primary",icon:u=yM,indeterminate:f=!1,indeterminateIcon:d=bM,inputProps:p,size:m="medium",disableRipple:g=!1,className:v,slots:b={},slotProps:w={},...S}=i,C=f?d:u,A=f?d:o,O={...i,disableRipple:g,color:l,indeterminate:f,size:m},_=hM(O),M=w.input??p,[R,D]=pt("root",{ref:n,elementType:mM,className:Oe(_.root,v),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:w,...S},ownerState:O,additionalProps:{type:"checkbox",icon:T.cloneElement(C,{fontSize:C.props.fontSize??m}),checkedIcon:T.cloneElement(A,{fontSize:A.props.fontSize??m}),disableRipple:g,slots:b,slotProps:{input:Fw(typeof M=="function"?M(O):M,{"data-indeterminate":f})}}});return B.jsx(R,{...D,classes:_})}),vM=x_({createStyledComponent:me("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Se(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>We({props:e,name:"MuiContainer"})}),sm=typeof Zm({})=="function",SM=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),wM=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Zw=(e,t=!1)=>{var l,u;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([f,d])=>{var m,g;const p=e.getColorSchemeSelector(f);p.startsWith("@")?n[p]={":root":{colorScheme:(m=d.palette)==null?void 0:m.mode}}:n[p.replace(/\s*&/,"")]={colorScheme:(g=d.palette)==null?void 0:g.mode}});let i={html:SM(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...wM(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(u=(l=e.components)==null?void 0:l.MuiCssBaseline)==null?void 0:u.styleOverrides;return o&&(i=[i,o]),i},Nc="mui-ecs",xM=e=>{const t=Zw(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Nc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,o])=>{var u,f;const l=e.getColorSchemeSelector(i);l.startsWith("@")?n[l]={[`:root:not(:has(.${Nc}))`]:{colorScheme:(u=o.palette)==null?void 0:u.mode}}:n[l.replace(/\s*&/,"")]={[`&:not(:has(.${Nc}))`]:{colorScheme:(f=o.palette)==null?void 0:f.mode}}}),t},CM=Zm(sm?({theme:e,enableColorScheme:t})=>Zw(e,t):({theme:e})=>xM(e));function kM(e){const t=We({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:i=!1}=t;return B.jsxs(T.Fragment,{children:[sm&&B.jsx(CM,{enableColorScheme:i}),!sm&&!i&&B.jsx("span",{className:Nc,style:{display:"none"}}),n]})}function EM(e){const t=xr(e);return t.body===e?yi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function gl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xS(e){return parseInt(yi(e).getComputedStyle(e).paddingRight,10)||0}function TM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function CS(e,t,n,i,o){const l=[t,n,...i];[].forEach.call(e.children,u=>{const f=!l.includes(u),d=!TM(u);f&&d&&gl(u,o)})}function dh(e,t){let n=-1;return e.some((i,o)=>t(i)?(n=o,!0):!1),n}function AM(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(EM(i)){const u=Aw(yi(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${xS(i)+u}px`;const f=xr(i).querySelectorAll(".mui-fixed");[].forEach.call(f,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${xS(d)+u}px`})}let l;if(i.parentNode instanceof DocumentFragment)l=xr(i).body;else{const u=i.parentElement,f=yi(i);l=(u==null?void 0:u.nodeName)==="HTML"&&f.getComputedStyle(u).overflowY==="scroll"?u:i}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:u,property:f})=>{l?u.style.setProperty(f,l):u.style.removeProperty(f)})}}function _M(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class RM{constructor(){this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&gl(t.modalRef,!1);const o=_M(n);CS(n,t.mount,t.modalRef,o,!0);const l=dh(this.containers,u=>u.container===n);return l!==-1?(this.containers[l].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),i)}mount(t,n){const i=dh(this.containers,l=>l.modals.includes(t)),o=this.containers[i];o.restore||(o.restore=AM(o,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const o=dh(this.containers,u=>u.modals.includes(t)),l=this.containers[o];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(i,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&gl(t.modalRef,n),CS(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(o,1);else{const u=l.modals[l.modals.length-1];u.modalRef&&gl(u.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const OM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function MM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function NM(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function DM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||NM(e))}function LM(e){const t=[],n=[];return Array.from(e.querySelectorAll(OM)).forEach((i,o)=>{const l=MM(i);l===-1||!DM(i)||(l===0?t.push(i):n.push({documentOrder:o,tabIndex:l,node:i}))}),n.sort((i,o)=>i.tabIndex===o.tabIndex?i.documentOrder-o.documentOrder:i.tabIndex-o.tabIndex).map(i=>i.node).concat(t)}function zM(){return!0}function IM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:l=LM,isEnabled:u=zM,open:f}=e,d=T.useRef(!1),p=T.useRef(null),m=T.useRef(null),g=T.useRef(null),v=T.useRef(null),b=T.useRef(!1),w=T.useRef(null),S=En(Vl(t),w),C=T.useRef(null);T.useEffect(()=>{!f||!w.current||(b.current=!n)},[n,f]),T.useEffect(()=>{if(!f||!w.current)return;const _=xr(w.current);return w.current.contains(_.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),b.current&&w.current.focus()),()=>{o||(g.current&&g.current.focus&&(d.current=!0,g.current.focus()),g.current=null)}},[f]),T.useEffect(()=>{if(!f||!w.current)return;const _=xr(w.current),M=P=>{C.current=P,!(i||!u()||P.key!=="Tab")&&_.activeElement===w.current&&P.shiftKey&&(d.current=!0,m.current&&m.current.focus())},R=()=>{var $,E;const P=w.current;if(P===null)return;if(!_.hasFocus()||!u()||d.current){d.current=!1;return}if(P.contains(_.activeElement)||i&&_.activeElement!==p.current&&_.activeElement!==m.current)return;if(_.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!b.current)return;let z=[];if((_.activeElement===p.current||_.activeElement===m.current)&&(z=l(w.current)),z.length>0){const I=!!(($=C.current)!=null&&$.shiftKey&&((E=C.current)==null?void 0:E.key)==="Tab"),U=z[0],G=z[z.length-1];typeof U!="string"&&typeof G!="string"&&(I?G.focus():U.focus())}else P.focus()};_.addEventListener("focusin",R),_.addEventListener("keydown",M,!0);const D=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(D),_.removeEventListener("focusin",R),_.removeEventListener("keydown",M,!0)}},[n,i,o,u,f,l]);const A=_=>{g.current===null&&(g.current=_.relatedTarget),b.current=!0,v.current=_.target;const M=t.props.onFocus;M&&M(_)},O=_=>{g.current===null&&(g.current=_.relatedTarget),b.current=!0};return B.jsxs(T.Fragment,{children:[B.jsx("div",{tabIndex:f?0:-1,onFocus:O,ref:p,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:S,onFocus:A}),B.jsx("div",{tabIndex:f?0:-1,onFocus:O,ref:m,"data-testid":"sentinelEnd"})]})}function BM(e){return typeof e=="function"?e():e}function jM(e){return e?e.props.hasOwnProperty("in"):!1}const kS=()=>{},yc=new RM;function $M(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:u,children:f,onClose:d,open:p,rootRef:m}=e,g=T.useRef({}),v=T.useRef(null),b=T.useRef(null),w=En(b,m),[S,C]=T.useState(!p),A=jM(f);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const _=()=>xr(v.current),M=()=>(g.current.modalRef=b.current,g.current.mount=v.current,g.current),R=()=>{yc.mount(M(),{disableScrollLock:i}),b.current&&(b.current.scrollTop=0)},D=Do(()=>{const V=BM(t)||_().body;yc.add(M(),V),b.current&&R()}),P=()=>yc.isTopModal(M()),z=Do(V=>{v.current=V,V&&(p&&P()?R():b.current&&gl(b.current,O))}),$=T.useCallback(()=>{yc.remove(M(),O)},[O]);T.useEffect(()=>()=>{$()},[$]),T.useEffect(()=>{p?D():(!A||!o)&&$()},[p,$,A,o,D]);const E=V=>H=>{var Z;(Z=V.onKeyDown)==null||Z.call(V,H),!(H.key!=="Escape"||H.which===229||!P())&&(n||(H.stopPropagation(),d&&d(H,"escapeKeyDown")))},I=V=>H=>{var Z;(Z=V.onClick)==null||Z.call(V,H),H.target===H.currentTarget&&d&&d(H,"backdropClick")};return{getRootProps:(V={})=>{const H=Rw(e);delete H.onTransitionEnter,delete H.onTransitionExited;const Z={...H,...V};return{role:"presentation",...Z,onKeyDown:E(Z),ref:w}},getBackdropProps:(V={})=>{const H=V;return{"aria-hidden":!0,...H,onClick:I(H),open:p}},getTransitionProps:()=>{const V=()=>{C(!1),l&&l()},H=()=>{C(!0),u&&u(),o&&$()};return{onEnter:Y0(V,(f==null?void 0:f.props.onEnter)??kS),onExited:Y0(H,(f==null?void 0:f.props.onExited)??kS)}},rootRef:w,portalRef:z,isTopModal:P,exited:S,hasTransition:A}}function PM(e){return Ge("MuiModal",e)}Fe("MuiModal",["root","hidden","backdrop"]);const UM=e=>{const{open:t,exited:n,classes:i}=e;return Ke({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},PM,i)},HM=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ht(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),qM=me(Xw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Jw=T.forwardRef(function(t,n){const i=We({name:"MuiModal",props:t}),{BackdropComponent:o=qM,BackdropProps:l,classes:u,className:f,closeAfterTransition:d=!1,children:p,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:w=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:C=!1,disablePortal:A=!1,disableRestoreFocus:O=!1,disableScrollLock:_=!1,hideBackdrop:M=!1,keepMounted:R=!1,onBackdropClick:D,onClose:P,onTransitionEnter:z,onTransitionExited:$,open:E,slotProps:I={},slots:U={},theme:G,...Y}=i,V={...i,closeAfterTransition:d,disableAutoFocus:w,disableEnforceFocus:S,disableEscapeKeyDown:C,disablePortal:A,disableRestoreFocus:O,disableScrollLock:_,hideBackdrop:M,keepMounted:R},{getRootProps:H,getBackdropProps:Z,getTransitionProps:ae,portalRef:J,isTopModal:k,exited:X,hasTransition:se}=$M({...V,rootRef:n}),L={...V,exited:X},re=UM(L),fe={};if(p.props.tabIndex===void 0&&(fe.tabIndex="-1"),se){const{onEnter:xe,onExited:ke}=ae();fe.onEnter=xe,fe.onExited=ke}const le={slots:{root:v.Root,backdrop:v.Backdrop,...U},slotProps:{...b,...I}},[Ae,ge]=pt("root",{ref:n,elementType:HM,externalForwardedProps:{...le,...Y,component:g},getSlotProps:H,ownerState:L,className:Oe(f,re==null?void 0:re.root,!L.open&&L.exited&&(re==null?void 0:re.hidden))}),[be,ue]=pt("backdrop",{ref:l==null?void 0:l.ref,elementType:o,externalForwardedProps:le,shouldForwardComponentProp:!0,additionalProps:l,getSlotProps:xe=>Z({...xe,onClick:ke=>{D&&D(ke),xe!=null&&xe.onClick&&xe.onClick(ke)}}),className:Oe(l==null?void 0:l.className,re==null?void 0:re.backdrop),ownerState:L});return!R&&!E&&(!se||X)?null:B.jsx(vO,{ref:J,container:m,disablePortal:A,children:B.jsxs(Ae,{...ge,children:[!M&&o?B.jsx(be,{...ue}):null,B.jsx(IM,{disableEnforceFocus:S,disableAutoFocus:w,disableRestoreFocus:O,isEnabled:k,open:E,children:T.cloneElement(p,fe)})]})})});function FM(e){return Ge("MuiDialog",e)}const ph=Fe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),ex=T.createContext({}),VM=me(Xw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),GM=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:l}=e,u={root:["root"],container:["container",`scroll${Se(n)}`],paper:["paper",`paperScroll${Se(n)}`,`paperWidth${Se(String(i))}`,o&&"paperFullWidth",l&&"paperFullScreen"]};return Ke(u,FM,t)},KM=me(Jw,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),YM=me("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Se(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),XM=me(Sf,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Se(n.scroll)}`],t[`paperWidth${Se(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ht(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ph.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ph.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ph.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),tx=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiDialog"}),o=Gl(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":u,"aria-labelledby":f,"aria-modal":d=!0,BackdropComponent:p,BackdropProps:m,children:g,className:v,disableEscapeKeyDown:b=!1,fullScreen:w=!1,fullWidth:S=!1,maxWidth:C="sm",onBackdropClick:A,onClick:O,onClose:_,open:M,PaperComponent:R=Sf,PaperProps:D={},scroll:P="paper",slots:z={},slotProps:$={},TransitionComponent:E=am,transitionDuration:I=l,TransitionProps:U,...G}=i,Y={...i,disableEscapeKeyDown:b,fullScreen:w,fullWidth:S,maxWidth:C,scroll:P},V=GM(Y),H=T.useRef(),Z=Ce=>{H.current=Ce.target===Ce.currentTarget},ae=Ce=>{O&&O(Ce),H.current&&(H.current=null,A&&A(Ce),_&&_(Ce,"backdropClick"))},J=Fl(f),k=T.useMemo(()=>({titleId:J}),[J]),X={transition:E,...z},se={transition:U,paper:D,backdrop:m,...$},L={slots:X,slotProps:se},[re,fe]=pt("root",{elementType:KM,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:Y,className:Oe(V.root,v),ref:n}),[le,Ae]=pt("backdrop",{elementType:VM,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:Y}),[ge,be]=pt("paper",{elementType:XM,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:Y,className:Oe(V.paper,D.className)}),[ue,xe]=pt("container",{elementType:YM,externalForwardedProps:L,ownerState:Y,className:Oe(V.container)}),[ke,je]=pt("transition",{elementType:am,externalForwardedProps:L,ownerState:Y,additionalProps:{appear:!0,in:M,timeout:I,role:"presentation"}});return B.jsx(re,{closeAfterTransition:!0,slots:{backdrop:le},slotProps:{backdrop:{transitionDuration:I,as:p,...Ae}},disableEscapeKeyDown:b,onClose:_,open:M,onClick:ae,...fe,...G,children:B.jsx(ke,{...je,children:B.jsx(ue,{onMouseDown:Z,...xe,children:B.jsx(ge,{as:R,elevation:24,role:"dialog","aria-describedby":u,"aria-labelledby":J,"aria-modal":d,...be,children:B.jsx(ex.Provider,{value:k,children:g})})})})})});function WM(e){return Ge("MuiDialogContent",e)}Fe("MuiDialogContent",["root","dividers"]);function QM(e){return Ge("MuiDialogTitle",e)}const ZM=Fe("MuiDialogTitle",["root"]),JM=e=>{const{classes:t,dividers:n}=e;return Ke({root:["root",n&&"dividers"]},WM,t)},eN=me("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ht(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${ZM.root} + &`]:{paddingTop:0}}}]}))),nx=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiDialogContent"}),{className:o,dividers:l=!1,...u}=i,f={...i,dividers:l},d=JM(f);return B.jsx(eN,{className:Oe(d.root,o),ownerState:f,ref:n,...u})}),tN=e=>{const{classes:t}=e;return Ke({root:["root"]},QM,t)},nN=me(en,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),rx=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiDialogTitle"}),{className:o,id:l,...u}=i,f=i,d=tN(f),{titleId:p=l}=T.useContext(ex);return B.jsx(nN,{component:"h2",className:Oe(d.root,o),ownerState:f,ref:n,variant:"h6",id:l??p,...u})}),ES=Fe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),rN=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:o,size:l,hiddenLabel:u,multiline:f}=e,d={root:["root",!n&&"underline",i&&"adornedStart",o&&"adornedEnd",l==="small"&&`size${Se(l)}`,u&&"hiddenLabel",f&&"multiline"],input:["input"]},p=Ke(d,RO,t);return{...t,...p}},iN=me(Ef,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Cf(e,t),!n.disableUnderline&&t.underline]}})(ht(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${ba.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ba.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l},variants:[{props:({ownerState:u})=>!u.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ba.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ba.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ba.disabled}, .${ba.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ba.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Cr()).map(([u])=>{var f;return{props:{disableUnderline:!1,color:u},style:{"&::after":{borderBottom:`2px solid ${(f=(e.vars||e).palette[u])==null?void 0:f.main}`}}}}),{props:({ownerState:u})=>u.startAdornment,style:{paddingLeft:12}},{props:({ownerState:u})=>u.endAdornment,style:{paddingRight:12}},{props:({ownerState:u})=>u.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:u,size:f})=>u.multiline&&f==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel&&u.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),aN=me(Tf,{name:"MuiFilledInput",slot:"Input",overridesResolver:kf})(ht(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ng=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:l={},componentsProps:u,fullWidth:f=!1,hiddenLabel:d,inputComponent:p="input",multiline:m=!1,slotProps:g,slots:v={},type:b="text",...w}=i,S={...i,disableUnderline:o,fullWidth:f,inputComponent:p,multiline:m,type:b},C=rN(i),A={root:{ownerState:S},input:{ownerState:S}},O=g??u?ln(A,g??u):A,_=v.root??l.Root??iN,M=v.input??l.Input??aN;return B.jsx(tg,{slots:{root:_,input:M},slotProps:O,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:b,...w,classes:C})});ng.muiName="Input";function oN(e){return Ge("MuiFormControl",e)}Fe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const sN=e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root",n!=="none"&&`margin${Se(n)}`,i&&"fullWidth"]};return Ke(o,oN,t)},lN=me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Se(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ix=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiFormControl"}),{children:o,className:l,color:u="primary",component:f="div",disabled:d=!1,error:p=!1,focused:m,fullWidth:g=!1,hiddenLabel:v=!1,margin:b="none",required:w=!1,size:S="medium",variant:C="outlined",...A}=i,O={...i,color:u,component:f,disabled:d,error:p,fullWidth:g,hiddenLabel:v,margin:b,required:w,size:S,variant:C},_=sN(O),[M,R]=T.useState(()=>{let V=!1;return o&&T.Children.forEach(o,H=>{if(!Mc(H,["Input","Select"]))return;const Z=Mc(H,["Select"])?H.props.input:H;Z&&kO(Z.props)&&(V=!0)}),V}),[D,P]=T.useState(()=>{let V=!1;return o&&T.Children.forEach(o,H=>{Mc(H,["Input","Select"])&&(Vc(H.props,!0)||Vc(H.props.inputProps,!0))&&(V=!0)}),V}),[z,$]=T.useState(!1);d&&z&&$(!1);const E=m!==void 0&&!d?m:z;let I;T.useRef(!1);const U=T.useCallback(()=>{P(!0)},[]),G=T.useCallback(()=>{P(!1)},[]),Y=T.useMemo(()=>({adornedStart:M,setAdornedStart:R,color:u,disabled:d,error:p,filled:D,focused:E,fullWidth:g,hiddenLabel:v,size:S,onBlur:()=>{$(!1)},onFocus:()=>{$(!0)},onEmpty:G,onFilled:U,registerEffect:I,required:w,variant:C}),[M,u,d,p,D,E,g,v,I,G,U,w,S,C]);return B.jsx(xf.Provider,{value:Y,children:B.jsx(lN,{as:f,ownerState:O,className:Oe(_.root,l),ref:n,...A,children:o})})});function uN(e){return Ge("MuiFormControlLabel",e)}const fl=Fe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),cN=e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:l}=e,u={root:["root",n&&"disabled",`labelPlacement${Se(i)}`,o&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ke(u,uN,t)},fN=me("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fl.label}`]:t.label},t.root,t[`labelPlacement${Se(n.labelPlacement)}`]]}})(ht(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${fl.disabled}`]:{cursor:"default"},[`& .${fl.label}`]:{[`&.${fl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),dN=me("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ht(({theme:e})=>({[`&.${fl.error}`]:{color:(e.vars||e).palette.error.main}}))),ax=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiFormControlLabel"}),{checked:o,className:l,componentsProps:u={},control:f,disabled:d,disableTypography:p,inputRef:m,label:g,labelPlacement:v="end",name:b,onChange:w,required:S,slots:C={},slotProps:A={},value:O,..._}=i,M=vi(),R=d??f.props.disabled??(M==null?void 0:M.disabled),D=S??f.props.required,P={disabled:R,required:D};["checked","name","onChange","value","inputRef"].forEach(V=>{typeof f.props[V]>"u"&&typeof i[V]<"u"&&(P[V]=i[V])});const z=Ma({props:i,muiFormControl:M,states:["error"]}),$={...i,disabled:R,labelPlacement:v,required:D,error:z.error},E=cN($),I={slots:C,slotProps:{...u,...A}},[U,G]=pt("typography",{elementType:en,externalForwardedProps:I,ownerState:$});let Y=g;return Y!=null&&Y.type!==en&&!p&&(Y=B.jsx(U,{component:"span",...G,className:Oe(E.label,G==null?void 0:G.className),children:Y})),B.jsxs(fN,{className:Oe(E.root,l),ownerState:$,ref:n,..._,children:[T.cloneElement(f,P),D?B.jsxs("div",{children:[Y,B.jsxs(dN,{ownerState:$,"aria-hidden":!0,className:E.asterisk,children:["","*"]})]}):Y]})});function pN(e){return Ge("MuiFormHelperText",e)}const TS=Fe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var AS;const hN=e=>{const{classes:t,contained:n,size:i,disabled:o,error:l,filled:u,focused:f,required:d}=e,p={root:["root",o&&"disabled",l&&"error",i&&`size${Se(i)}`,n&&"contained",f&&"focused",u&&"filled",d&&"required"]};return Ke(p,pN,t)},mN=me("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Se(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ht(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${TS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${TS.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),ox=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiFormHelperText"}),{children:o,className:l,component:u="p",disabled:f,error:d,filled:p,focused:m,margin:g,required:v,variant:b,...w}=i,S=vi(),C=Ma({props:i,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),A={...i,component:u,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete A.ownerState;const O=hN(A);return B.jsx(mN,{as:u,className:Oe(O.root,l),ref:n,...w,ownerState:A,children:o===" "?AS||(AS=B.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function gN(e){return Ge("MuiFormLabel",e)}const yl=Fe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),yN=e=>{const{classes:t,color:n,focused:i,disabled:o,error:l,filled:u,required:f}=e,d={root:["root",`color${Se(n)}`,o&&"disabled",l&&"error",u&&"filled",i&&"focused",f&&"required"],asterisk:["asterisk",l&&"error"]};return Ke(d,gN,t)},bN=me("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ht(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{[`&.${yl.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${yl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yl.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),vN=me("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ht(({theme:e})=>({[`&.${yl.error}`]:{color:(e.vars||e).palette.error.main}}))),SN=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiFormLabel"}),{children:o,className:l,color:u,component:f="label",disabled:d,error:p,filled:m,focused:g,required:v,...b}=i,w=vi(),S=Ma({props:i,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),C={...i,color:S.color||"primary",component:f,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},A=yN(C);return B.jsxs(bN,{as:f,ownerState:C,className:Oe(A.root,l),ref:n,...b,children:[o,S.required&&B.jsxs(vN,{ownerState:C,"aria-hidden":!0,className:A.asterisk,children:["","*"]})]})}),sx=j_({createStyledComponent:me("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>We({props:e,name:"MuiGrid2"}),useTheme:Gl});function lm(e){return`scale(${e}, ${e**2})`}const wN={entering:{opacity:1,transform:lm(1)},entered:{opacity:1,transform:"none"}},hh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),um=T.forwardRef(function(t,n){const{addEndListener:i,appear:o=!0,children:l,easing:u,in:f,onEnter:d,onEntered:p,onEntering:m,onExit:g,onExited:v,onExiting:b,style:w,timeout:S="auto",TransitionComponent:C=Kr,...A}=t,O=Tw(),_=T.useRef(),M=Gl(),R=T.useRef(null),D=En(R,Vl(l),n),P=V=>H=>{if(V){const Z=R.current;H===void 0?V(Z):V(Z,H)}},z=P(m),$=P((V,H)=>{Kw(V);const{duration:Z,delay:ae,easing:J}=qc({style:w,timeout:S,easing:u},{mode:"enter"});let k;S==="auto"?(k=M.transitions.getAutoHeightDuration(V.clientHeight),_.current=k):k=Z,V.style.transition=[M.transitions.create("opacity",{duration:k,delay:ae}),M.transitions.create("transform",{duration:hh?k:k*.666,delay:ae,easing:J})].join(","),d&&d(V,H)}),E=P(p),I=P(b),U=P(V=>{const{duration:H,delay:Z,easing:ae}=qc({style:w,timeout:S,easing:u},{mode:"exit"});let J;S==="auto"?(J=M.transitions.getAutoHeightDuration(V.clientHeight),_.current=J):J=H,V.style.transition=[M.transitions.create("opacity",{duration:J,delay:Z}),M.transitions.create("transform",{duration:hh?J:J*.666,delay:hh?Z:Z||J*.333,easing:ae})].join(","),V.style.opacity=0,V.style.transform=lm(.75),g&&g(V)}),G=P(v),Y=V=>{S==="auto"&&O.start(_.current||0,V),i&&i(R.current,V)};return B.jsx(C,{appear:o,in:f,nodeRef:R,onEnter:$,onEntered:E,onEntering:z,onExit:U,onExited:G,onExiting:I,addEndListener:Y,timeout:S==="auto"?null:S,...A,children:(V,{ownerState:H,...Z})=>T.cloneElement(l,{style:{opacity:0,transform:lm(.75),visibility:V==="exited"&&!f?"hidden":void 0,...wN[V],...w,...l.props.style},ref:D,...Z})})});um&&(um.muiSupportAuto=!0);const xN=e=>{const{classes:t,disableUnderline:n}=e,o=Ke({root:["root",!n&&"underline"],input:["input"]},AO,t);return{...t,...o}},CN=me(Ef,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Cf(e,t),!n.disableUnderline&&t.underline]}})(ht(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${el.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${el.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${el.disabled}, .${el.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${el.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Cr()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),kN=me(Tf,{name:"MuiInput",slot:"Input",overridesResolver:kf})({}),rg=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:l={},componentsProps:u,fullWidth:f=!1,inputComponent:d="input",multiline:p=!1,slotProps:m,slots:g={},type:v="text",...b}=i,w=xN(i),C={root:{ownerState:{disableUnderline:o}}},A=m??u?ln(m??u,C):C,O=g.root??l.Root??CN,_=g.input??l.Input??kN;return B.jsx(tg,{slots:{root:O,input:_},slotProps:A,fullWidth:f,inputComponent:d,multiline:p,ref:n,type:v,...b,classes:w})});rg.muiName="Input";function EN(e){return Ge("MuiInputAdornment",e)}const _S=Fe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var RS;const TN=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Se(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},AN=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:l,variant:u}=e,f={root:["root",n&&"disablePointerEvents",o&&`position${Se(o)}`,u,i&&"hiddenLabel",l&&`size${Se(l)}`]};return Ke(f,EN,t)},_N=me("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:TN})(ht(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${_S.positionStart}&:not(.${_S.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),RN=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiInputAdornment"}),{children:o,className:l,component:u="div",disablePointerEvents:f=!1,disableTypography:d=!1,position:p,variant:m,...g}=i,v=vi()||{};let b=m;m&&v.variant,v&&!b&&(b=v.variant);const w={...i,hiddenLabel:v.hiddenLabel,size:v.size,disablePointerEvents:f,position:p,variant:b},S=AN(w);return B.jsx(xf.Provider,{value:null,children:B.jsx(_N,{as:u,ownerState:w,className:Oe(S.root,l),ref:n,...g,children:typeof o=="string"&&!d?B.jsx(en,{color:"textSecondary",children:o}):B.jsxs(T.Fragment,{children:[p==="start"?RS||(RS=B.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});function ON(e){return Ge("MuiInputLabel",e)}Fe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const MN=e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:l,variant:u,required:f}=e,d={root:["root",n&&"formControl",!l&&"animated",o&&"shrink",i&&i!=="normal"&&`size${Se(i)}`,u],asterisk:[f&&"asterisk"]},p=Ke(d,ON,t);return{...t,...p}},NN=me(SN,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yl.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ht(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:i})=>t==="filled"&&n.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),DN=T.forwardRef(function(t,n){const i=We({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:l,shrink:u,variant:f,className:d,...p}=i,m=vi();let g=u;typeof g>"u"&&m&&(g=m.filled||m.focused||m.adornedStart);const v=Ma({props:i,muiFormControl:m,states:["size","variant","required","focused"]}),b={...i,disableAnimation:o,formControl:m,shrink:g,size:v.size,variant:v.variant,required:v.required,focused:v.focused},w=MN(b);return B.jsx(NN,{"data-shrink":g,ref:n,className:Oe(w.root,d),...p,ownerState:b,classes:w})}),cm=T.createContext({});function LN(e){return Ge("MuiList",e)}Fe("MuiList",["root","padding","dense","subheader"]);const zN=e=>{const{classes:t,disablePadding:n,dense:i,subheader:o}=e;return Ke({root:["root",!n&&"padding",i&&"dense",o&&"subheader"]},LN,t)},IN=me("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),BN=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiList"}),{children:o,className:l,component:u="ul",dense:f=!1,disablePadding:d=!1,subheader:p,...m}=i,g=T.useMemo(()=>({dense:f}),[f]),v={...i,component:u,dense:f,disablePadding:d},b=zN(v);return B.jsx(cm.Provider,{value:g,children:B.jsxs(IN,{as:u,className:Oe(b.root,l),ref:n,ownerState:v,...m,children:[p,o]})})}),OS=Fe("MuiListItemIcon",["root","alignItemsFlexStart"]),MS=Fe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function mh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function NS(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lx(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function tl(e,t,n,i,o,l){let u=!1,f=o(e,t,t?n:!1);for(;f;){if(f===e.firstChild){if(u)return!1;u=!0}const d=i?!1:f.disabled||f.getAttribute("aria-disabled")==="true";if(!f.hasAttribute("tabindex")||!lx(f,l)||d)f=o(e,f,n);else return f.focus(),!0}return!1}const jN=T.forwardRef(function(t,n){const{actions:i,autoFocus:o=!1,autoFocusItem:l=!1,children:u,className:f,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:m,variant:g="selectedMenu",...v}=t,b=T.useRef(null),w=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gi(()=>{o&&b.current.focus()},[o]),T.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(_,{direction:M})=>{const R=!b.current.style.width;if(_.clientHeight<b.current.clientHeight&&R){const D=`${Aw(yi(_))}px`;b.current.style[M==="rtl"?"paddingLeft":"paddingRight"]=D,b.current.style.width=`calc(100% + ${D})`}return b.current}}),[]);const S=_=>{const M=b.current,R=_.key;if(_.ctrlKey||_.metaKey||_.altKey){m&&m(_);return}const P=xr(M).activeElement;if(R==="ArrowDown")_.preventDefault(),tl(M,P,p,d,mh);else if(R==="ArrowUp")_.preventDefault(),tl(M,P,p,d,NS);else if(R==="Home")_.preventDefault(),tl(M,null,p,d,mh);else if(R==="End")_.preventDefault(),tl(M,null,p,d,NS);else if(R.length===1){const z=w.current,$=R.toLowerCase(),E=performance.now();z.keys.length>0&&(E-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&$!==z.keys[0]&&(z.repeating=!1)),z.lastTime=E,z.keys.push($);const I=P&&!z.repeating&&lx(P,z);z.previousKeyMatched&&(I||tl(M,P,!1,d,mh,z))?_.preventDefault():z.previousKeyMatched=!1}m&&m(_)},C=En(b,n);let A=-1;T.Children.forEach(u,(_,M)=>{if(!T.isValidElement(_)){A===M&&(A+=1,A>=u.length&&(A=-1));return}_.props.disabled||(g==="selectedMenu"&&_.props.selected||A===-1)&&(A=M),A===M&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(A+=1,A>=u.length&&(A=-1))});const O=T.Children.map(u,(_,M)=>{if(M===A){const R={};return l&&(R.autoFocus=!0),_.props.tabIndex===void 0&&g==="selectedMenu"&&(R.tabIndex=0),T.cloneElement(_,R)}return _});return B.jsx(BN,{role:"menu",ref:C,className:f,onKeyDown:S,tabIndex:o?0:-1,...v,children:O})});function $N(e){return Ge("MuiPopover",e)}Fe("MuiPopover",["root","paper"]);function DS(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function LS(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function zS(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function gh(e){return typeof e=="function"?e():e}const PN=e=>{const{classes:t}=e;return Ke({root:["root"],paper:["paper"]},$N,t)},UN=me(Jw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ux=me(Sf,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),HN=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:d="anchorEl",children:p,className:m,container:g,elevation:v=8,marginThreshold:b=16,open:w,PaperProps:S={},slots:C={},slotProps:A={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:_,transitionDuration:M="auto",TransitionProps:R={},disableScrollLock:D=!1,...P}=i,z=T.useRef(),$={...i,anchorOrigin:u,anchorReference:d,elevation:v,marginThreshold:b,transformOrigin:O,TransitionComponent:_,transitionDuration:M,TransitionProps:R},E=PN($),I=T.useCallback(()=>{if(d==="anchorPosition")return f;const ue=gh(l),ke=(ue&&ue.nodeType===1?ue:xr(z.current).body).getBoundingClientRect();return{top:ke.top+DS(ke,u.vertical),left:ke.left+LS(ke,u.horizontal)}},[l,u.horizontal,u.vertical,f,d]),U=T.useCallback(ue=>({vertical:DS(ue,O.vertical),horizontal:LS(ue,O.horizontal)}),[O.horizontal,O.vertical]),G=T.useCallback(ue=>{const xe={width:ue.offsetWidth,height:ue.offsetHeight},ke=U(xe);if(d==="none")return{top:null,left:null,transformOrigin:zS(ke)};const je=I();let Ce=je.top-ke.vertical,$e=je.left-ke.horizontal;const et=Ce+xe.height,dt=$e+xe.width,Pe=yi(gh(l)),bt=Pe.innerHeight-b,Ye=Pe.innerWidth-b;if(b!==null&&Ce<b){const it=Ce-b;Ce-=it,ke.vertical+=it}else if(b!==null&&et>bt){const it=et-bt;Ce-=it,ke.vertical+=it}if(b!==null&&$e<b){const it=$e-b;$e-=it,ke.horizontal+=it}else if(dt>Ye){const it=dt-Ye;$e-=it,ke.horizontal+=it}return{top:`${Math.round(Ce)}px`,left:`${Math.round($e)}px`,transformOrigin:zS(ke)}},[l,d,I,U,b]),[Y,V]=T.useState(w),H=T.useCallback(()=>{const ue=z.current;if(!ue)return;const xe=G(ue);xe.top!==null&&ue.style.setProperty("top",xe.top),xe.left!==null&&(ue.style.left=xe.left),ue.style.transformOrigin=xe.transformOrigin,V(!0)},[G]);T.useEffect(()=>(D&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[l,D,H]);const Z=()=>{H()},ae=()=>{V(!1)};T.useEffect(()=>{w&&H()}),T.useImperativeHandle(o,()=>w?{updatePosition:()=>{H()}}:null,[w,H]),T.useEffect(()=>{if(!w)return;const ue=kw(()=>{H()}),xe=yi(l);return xe.addEventListener("resize",ue),()=>{ue.clear(),xe.removeEventListener("resize",ue)}},[l,w,H]);let J=M;const k={slots:{transition:_,...C},slotProps:{transition:R,paper:S,...A}},[X,se]=pt("transition",{elementType:um,externalForwardedProps:k,ownerState:$,getSlotProps:ue=>({...ue,onEntering:(xe,ke)=>{var je;(je=ue.onEntering)==null||je.call(ue,xe,ke),Z()},onExited:xe=>{var ke;(ke=ue.onExited)==null||ke.call(ue,xe),ae()}}),additionalProps:{appear:!0,in:w}});M==="auto"&&!X.muiSupportAuto&&(J=void 0);const L=g||(l?xr(gh(l)).body:void 0),[re,{slots:fe,slotProps:le,...Ae}]=pt("root",{ref:n,elementType:UN,externalForwardedProps:{...k,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:Fw(typeof A.backdrop=="function"?A.backdrop($):A.backdrop,{invisible:!0})},container:L,open:w},ownerState:$,className:Oe(E.root,m)}),[ge,be]=pt("paper",{ref:z,className:E.paper,elementType:ux,externalForwardedProps:k,shouldForwardComponentProp:!0,additionalProps:{elevation:v,style:Y?void 0:{opacity:0}},ownerState:$});return B.jsx(re,{...Ae,...!im(re)&&{slots:fe,slotProps:le,disableScrollLock:D},children:B.jsx(X,{...se,timeout:J,children:B.jsx(ge,{...be,children:p})})})});function qN(e){return Ge("MuiMenu",e)}Fe("MuiMenu",["root","paper","list"]);const FN={vertical:"top",horizontal:"right"},VN={vertical:"top",horizontal:"left"},GN=e=>{const{classes:t}=e;return Ke({root:["root"],paper:["paper"],list:["list"]},qN,t)},KN=me(HN,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YN=me(ux,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),XN=me(jN,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),WN=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:l,className:u,disableAutoFocusItem:f=!1,MenuListProps:d={},onClose:p,open:m,PaperProps:g={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:w,...S}={},variant:C="selectedMenu",slots:A={},slotProps:O={},..._}=i,M=e_(),R={...i,autoFocus:o,disableAutoFocusItem:f,MenuListProps:d,onEntering:w,PaperProps:g,transitionDuration:b,TransitionProps:S,variant:C},D=GN(R),P=o&&!f&&m,z=T.useRef(null),$=(J,k)=>{z.current&&z.current.adjustStyleForScrollbar(J,{direction:M?"rtl":"ltr"}),w&&w(J,k)},E=J=>{J.key==="Tab"&&(J.preventDefault(),p&&p(J,"tabKeyDown"))};let I=-1;T.Children.map(l,(J,k)=>{T.isValidElement(J)&&(J.props.disabled||(C==="selectedMenu"&&J.props.selected||I===-1)&&(I=k))});const U={slots:A,slotProps:{list:d,transition:S,paper:g,...O}},G=YA({elementType:A.root,externalSlotProps:O.root,ownerState:R,className:[D.root,u]}),[Y,V]=pt("paper",{className:D.paper,elementType:YN,externalForwardedProps:U,shouldForwardComponentProp:!0,ownerState:R}),[H,Z]=pt("list",{className:Oe(D.list,d.className),elementType:XN,shouldForwardComponentProp:!0,externalForwardedProps:U,getSlotProps:J=>({...J,onKeyDown:k=>{var X;E(k),(X=J.onKeyDown)==null||X.call(J,k)}}),ownerState:R}),ae=typeof U.slotProps.transition=="function"?U.slotProps.transition(R):U.slotProps.transition;return B.jsx(KN,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?FN:VN,slots:{root:A.root,paper:Y,backdrop:A.backdrop,...A.transition&&{transition:A.transition}},slotProps:{root:G,paper:V,backdrop:typeof O.backdrop=="function"?O.backdrop(R):O.backdrop,transition:{...ae,onEntering:(...J)=>{var k;$(...J),(k=ae==null?void 0:ae.onEntering)==null||k.call(ae,...J)}}},open:m,ref:n,transitionDuration:b,ownerState:R,..._,classes:v,children:B.jsx(H,{actions:z,autoFocus:o&&(I===-1||f),autoFocusItem:P,variant:C,...Z,children:l})})});function QN(e){return Ge("MuiMenuItem",e)}const nl=Fe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ZN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},JN=e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:l,classes:u}=e,d=Ke({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",l&&"selected"]},QN,u);return{...u,...d}},eD=me(wf,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ZN})(ht(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${nl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ES.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ES.inset}`]:{marginLeft:52},[`& .${MS.root}`]:{marginTop:0,marginBottom:0},[`& .${MS.inset}`]:{paddingLeft:36},[`& .${OS.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${OS.root} svg`]:{fontSize:"1.25rem"}}}]}))),tD=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:l="li",dense:u=!1,divider:f=!1,disableGutters:d=!1,focusVisibleClassName:p,role:m="menuitem",tabIndex:g,className:v,...b}=i,w=T.useContext(cm),S=T.useMemo(()=>({dense:u||w.dense||!1,disableGutters:d}),[w.dense,u,d]),C=T.useRef(null);gi(()=>{o&&C.current&&C.current.focus()},[o]);const A={...i,dense:S.dense,divider:f,disableGutters:d},O=JN(i),_=En(C,n);let M;return i.disabled||(M=g!==void 0?g:-1),B.jsx(cm.Provider,{value:S,children:B.jsx(eD,{ref:_,role:m,tabIndex:M,component:l,focusVisibleClassName:Oe(O.focusVisible,p),className:Oe(O.root,v),...b,ownerState:A,classes:O})})});function nD(e){return Ge("MuiNativeSelect",e)}const ig=Fe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),rD=e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:l,error:u}=e,f={select:["select",n,i&&"disabled",o&&"multiple",u&&"error"],icon:["icon",`icon${Se(n)}`,l&&"iconOpen",i&&"disabled"]};return Ke(f,nD,t)},cx=me("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ig.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),iD=me(cx,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:In,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ig.multiple}`]:t.multiple}]}})({}),fx=me("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${ig.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),aD=me(fx,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Se(n.variant)}`],n.open&&t.iconOpen]}})({}),oD=T.forwardRef(function(t,n){const{className:i,disabled:o,error:l,IconComponent:u,inputRef:f,variant:d="standard",...p}=t,m={...t,disabled:o,variant:d,error:l},g=rD(m);return B.jsxs(T.Fragment,{children:[B.jsx(iD,{ownerState:m,className:Oe(g.select,i),disabled:o,ref:f||n,...p}),t.multiple?null:B.jsx(aD,{as:u,ownerState:m,className:g.icon})]})});var IS;const sD=me("fieldset",{shouldForwardProp:In})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),lD=me("legend",{shouldForwardProp:In})(ht(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function uD(e){const{children:t,classes:n,className:i,label:o,notched:l,...u}=e,f=o!=null&&o!=="",d={...e,notched:l,withLabel:f};return B.jsx(sD,{"aria-hidden":!0,className:i,ownerState:d,...u,children:B.jsx(lD,{ownerState:d,children:f?B.jsx("span",{children:o}):IS||(IS=B.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const cD=e=>{const{classes:t}=e,i=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_O,t);return{...t,...i}},fD=me(Ef,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Cf})(ht(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ir.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ir.focused} .${Ir.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Cr()).map(([n])=>({props:{color:n},style:{[`&.${Ir.focused} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ir.error} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ir.disabled} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:i})=>n.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),dD=me(uD,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ht(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),pD=me(Tf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kf})(ht(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),ag=T.forwardRef(function(t,n){var i;const o=We({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:f="input",label:d,multiline:p=!1,notched:m,slots:g={},type:v="text",...b}=o,w=cD(o),S=vi(),C=Ma({props:o,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:S,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:p,size:C.size,type:v},O=g.root??l.Root??fD,_=g.input??l.Input??pD;return B.jsx(tg,{slots:{root:O,input:_},renderSuffix:M=>B.jsx(dD,{ownerState:A,className:w.notchedOutline,label:d!=null&&d!==""&&C.required?i||(i=B.jsxs(T.Fragment,{children:[d,"","*"]})):d,notched:typeof m<"u"?m:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v,...b,classes:{...w,notchedOutline:null}})});ag.muiName="Input";function dx(e){return Ge("MuiSelect",e)}const rl=Fe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var BS;const hD=me(cx,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${rl.select}`]:t.select},{[`&.${rl.select}`]:t[n.variant]},{[`&.${rl.error}`]:t.error},{[`&.${rl.multiple}`]:t.multiple}]}})({[`&.${rl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mD=me(fx,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Se(n.variant)}`],n.open&&t.iconOpen]}})({}),gD=me("input",{shouldForwardProp:e=>qw(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function jS(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function yD(e){return e==null||typeof e=="string"&&!e.trim()}const bD=e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:l,error:u}=e,f={select:["select",n,i&&"disabled",o&&"multiple",u&&"error"],icon:["icon",`icon${Se(n)}`,l&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return Ke(f,dx,t)},vD=T.forwardRef(function(t,n){var At;const{"aria-describedby":i,"aria-label":o,autoFocus:l,autoWidth:u,children:f,className:d,defaultOpen:p,defaultValue:m,disabled:g,displayEmpty:v,error:b=!1,IconComponent:w,inputRef:S,labelId:C,MenuProps:A={},multiple:O,name:_,onBlur:M,onChange:R,onClose:D,onFocus:P,onOpen:z,open:$,readOnly:E,renderValue:I,required:U,SelectDisplayProps:G={},tabIndex:Y,type:V,value:H,variant:Z="standard",...ae}=t,[J,k]=Yh({controlled:H,default:m,name:"Select"}),[X,se]=Yh({controlled:$,default:p,name:"Select"}),L=T.useRef(null),re=T.useRef(null),[fe,le]=T.useState(null),{current:Ae}=T.useRef($!=null),[ge,be]=T.useState(),ue=En(n,S),xe=T.useCallback(Ee=>{re.current=Ee,Ee&&le(Ee)},[]),ke=fe==null?void 0:fe.parentNode;T.useImperativeHandle(ue,()=>({focus:()=>{re.current.focus()},node:L.current,value:J}),[J]),T.useEffect(()=>{p&&X&&fe&&!Ae&&(be(u?null:ke.clientWidth),re.current.focus())},[fe,u]),T.useEffect(()=>{l&&re.current.focus()},[l]),T.useEffect(()=>{if(!C)return;const Ee=xr(re.current).getElementById(C);if(Ee){const Ne=()=>{getSelection().isCollapsed&&re.current.focus()};return Ee.addEventListener("click",Ne),()=>{Ee.removeEventListener("click",Ne)}}},[C]);const je=(Ee,Ne)=>{Ee?z&&z(Ne):D&&D(Ne),Ae||(be(u?null:ke.clientWidth),se(Ee))},Ce=Ee=>{Ee.button===0&&(Ee.preventDefault(),re.current.focus(),je(!0,Ee))},$e=Ee=>{je(!1,Ee)},et=T.Children.toArray(f),dt=Ee=>{const Ne=et.find(He=>He.props.value===Ee.target.value);Ne!==void 0&&(k(Ne.props.value),R&&R(Ee,Ne))},Pe=Ee=>Ne=>{let He;if(Ne.currentTarget.hasAttribute("tabindex")){if(O){He=Array.isArray(J)?J.slice():[];const Bt=J.indexOf(Ee.props.value);Bt===-1?He.push(Ee.props.value):He.splice(Bt,1)}else He=Ee.props.value;if(Ee.props.onClick&&Ee.props.onClick(Ne),J!==He&&(k(He),R)){const Bt=Ne.nativeEvent||Ne,Da=new Bt.constructor(Bt.type,Bt);Object.defineProperty(Da,"target",{writable:!0,value:{value:He,name:_}}),R(Da,Ee)}O||je(!1,Ne)}},bt=Ee=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(Ee.key)&&(Ee.preventDefault(),je(!0,Ee))},Ye=fe!==null&&X,it=Ee=>{!Ye&&M&&(Object.defineProperty(Ee,"target",{writable:!0,value:{value:J,name:_}}),M(Ee))};delete ae["aria-invalid"];let we,pn;const tt=[];let Sn=!1;(Vc({value:J})||v)&&(I?we=I(J):Sn=!0);const ee=et.map(Ee=>{if(!T.isValidElement(Ee))return null;let Ne;if(O){if(!Array.isArray(J))throw new Error(mi(2));Ne=J.some(He=>jS(He,Ee.props.value)),Ne&&Sn&&tt.push(Ee.props.children)}else Ne=jS(J,Ee.props.value),Ne&&Sn&&(pn=Ee.props.children);return T.cloneElement(Ee,{"aria-selected":Ne?"true":"false",onClick:Pe(Ee),onKeyUp:He=>{He.key===" "&&He.preventDefault(),Ee.props.onKeyUp&&Ee.props.onKeyUp(He)},role:"option",selected:Ne,value:void 0,"data-value":Ee.props.value})});Sn&&(O?tt.length===0?we=null:we=tt.reduce((Ee,Ne,He)=>(Ee.push(Ne),He<tt.length-1&&Ee.push(", "),Ee),[]):we=pn);let de=ge;!u&&Ae&&fe&&(de=ke.clientWidth);let he;typeof Y<"u"?he=Y:he=g?null:0;const ye=G.id||(_?`mui-component-select-${_}`:void 0),Re={...t,variant:Z,value:J,open:Ye,error:b},Me=bD(Re),st={...A.PaperProps,...(At=A.slotProps)==null?void 0:At.paper},nt=Fl();return B.jsxs(T.Fragment,{children:[B.jsx(hD,{as:"div",ref:xe,tabIndex:he,role:"combobox","aria-controls":Ye?nt:void 0,"aria-disabled":g?"true":void 0,"aria-expanded":Ye?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[C,ye].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":U?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:bt,onMouseDown:g||E?null:Ce,onBlur:it,onFocus:P,...G,ownerState:Re,className:Oe(G.className,Me.select,d),id:ye,children:yD(we)?BS||(BS=B.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):we}),B.jsx(gD,{"aria-invalid":b,value:Array.isArray(J)?J.join(","):J,name:_,ref:L,"aria-hidden":!0,onChange:dt,tabIndex:-1,disabled:g,className:Me.nativeInput,autoFocus:l,required:U,...ae,ownerState:Re}),B.jsx(mD,{as:w,className:Me.icon,ownerState:Re}),B.jsx(WN,{id:`menu-${_||""}`,anchorEl:ke,open:Ye,onClose:$e,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...A,slotProps:{...A.slotProps,list:{"aria-labelledby":C,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:nt,...A.MenuListProps},paper:{...st,style:{minWidth:de,...st!=null?st.style:null}}},children:ee})]})}),SD=e=>{const{classes:t}=e,i=Ke({root:["root"]},dx,t);return{...t,...i}},og={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>In(e)&&e!=="variant",slot:"Root"},wD=me(rg,og)(""),xD=me(ag,og)(""),CD=me(ng,og)(""),sg=T.forwardRef(function(t,n){const i=We({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:l,classes:u={},className:f,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:m=OO,id:g,input:v,inputProps:b,label:w,labelId:S,MenuProps:C,multiple:A=!1,native:O=!1,onClose:_,onOpen:M,open:R,renderValue:D,SelectDisplayProps:P,variant:z="outlined",...$}=i,E=O?oD:vD,I=vi(),U=Ma({props:i,muiFormControl:I,states:["variant","error"]}),G=U.variant||z,Y={...i,variant:G,classes:u},V=SD(Y),{root:H,...Z}=V,ae=v||{standard:B.jsx(wD,{ownerState:Y}),outlined:B.jsx(xD,{label:w,ownerState:Y}),filled:B.jsx(CD,{ownerState:Y})}[G],J=En(n,Vl(ae));return B.jsx(T.Fragment,{children:T.cloneElement(ae,{inputComponent:E,inputProps:{children:l,error:U.error,IconComponent:m,variant:G,type:void 0,multiple:A,...O?{id:g}:{autoWidth:o,defaultOpen:d,displayEmpty:p,labelId:S,MenuProps:C,onClose:_,onOpen:M,open:R,renderValue:D,SelectDisplayProps:{id:g,...P}},...b,classes:b?ln(Z,b.classes):Z,...v?v.props.inputProps:{}},...(A&&O||p)&&G==="outlined"?{notched:!0}:{},ref:J,className:Oe(ae.props.className,f,V.root),...!v&&{variant:G},...$})})});sg.muiName="Select";const px=V_({createStyledComponent:me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>We({props:e,name:"MuiStack"})});function kD(e){return Ge("MuiTextField",e)}Fe("MuiTextField",["root"]);const ED={standard:rg,filled:ng,outlined:ag},TD=e=>{const{classes:t}=e;return Ke({root:["root"]},kD,t)},AD=me(ix,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$S=T.forwardRef(function(t,n){const i=We({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:l=!1,children:u,className:f,color:d="primary",defaultValue:p,disabled:m=!1,error:g=!1,FormHelperTextProps:v,fullWidth:b=!1,helperText:w,id:S,InputLabelProps:C,inputProps:A,InputProps:O,inputRef:_,label:M,maxRows:R,minRows:D,multiline:P=!1,name:z,onBlur:$,onChange:E,onFocus:I,placeholder:U,required:G=!1,rows:Y,select:V=!1,SelectProps:H,slots:Z={},slotProps:ae={},type:J,value:k,variant:X="outlined",...se}=i,L={...i,autoFocus:l,color:d,disabled:m,error:g,fullWidth:b,multiline:P,required:G,select:V,variant:X},re=TD(L),fe=Fl(S),le=w&&fe?`${fe}-helper-text`:void 0,Ae=M&&fe?`${fe}-label`:void 0,ge=ED[X],be={slots:Z,slotProps:{input:O,inputLabel:C,htmlInput:A,formHelperText:v,select:H,...ae}},ue={},xe=be.slotProps.inputLabel;X==="outlined"&&(xe&&typeof xe.shrink<"u"&&(ue.notched=xe.shrink),ue.label=M),V&&((!H||!H.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const[ke,je]=pt("input",{elementType:ge,externalForwardedProps:be,additionalProps:ue,ownerState:L}),[Ce,$e]=pt("inputLabel",{elementType:DN,externalForwardedProps:be,ownerState:L}),[et,dt]=pt("htmlInput",{elementType:"input",externalForwardedProps:be,ownerState:L}),[Pe,bt]=pt("formHelperText",{elementType:ox,externalForwardedProps:be,ownerState:L}),[Ye,it]=pt("select",{elementType:sg,externalForwardedProps:be,ownerState:L}),we=B.jsx(ke,{"aria-describedby":le,autoComplete:o,autoFocus:l,defaultValue:p,fullWidth:b,multiline:P,name:z,rows:Y,maxRows:R,minRows:D,type:J,value:k,id:fe,inputRef:_,onBlur:$,onChange:E,onFocus:I,placeholder:U,inputProps:dt,slots:{input:Z.htmlInput?et:void 0},...je});return B.jsxs(AD,{className:Oe(re.root,f),disabled:m,error:g,fullWidth:b,ref:n,required:G,color:d,variant:X,ownerState:L,...se,children:[M!=null&&M!==""&&B.jsx(Ce,{htmlFor:fe,id:Ae,...$e,children:M}),V?B.jsx(Ye,{"aria-describedby":le,id:fe,labelId:Ae,value:k,input:we,...it,children:u}):we,w&&B.jsx(Pe,{id:le,...bt,children:w})]})}),_D=bi(B.jsx("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload");function RD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T.useMemo(()=>i=>{t.forEach(o=>o(i))},t)}const Af=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ko(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function lg(e){return"nodeType"in e}function Tn(e){var t,n;return e?Ko(e)?e:lg(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function ug(e){const{Document:t}=Tn(e);return e instanceof t}function Kl(e){return Ko(e)?!1:e instanceof Tn(e).HTMLElement}function hx(e){return e instanceof Tn(e).SVGElement}function Yo(e){return e?Ko(e)?e.document:lg(e)?ug(e)?e:Kl(e)||hx(e)?e.ownerDocument:document:document:document}const kr=Af?T.useLayoutEffect:T.useEffect;function _f(e){const t=T.useRef(e);return kr(()=>{t.current=e}),T.useCallback(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t.current==null?void 0:t.current(...i)},[])}function OD(){const e=T.useRef(null),t=T.useCallback((i,o)=>{e.current=setInterval(i,o)},[]),n=T.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ml(e,t){t===void 0&&(t=[e]);const n=T.useRef(e);return kr(()=>{n.current!==e&&(n.current=e)},t),n}function Yl(e,t){const n=T.useRef();return T.useMemo(()=>{const i=e(n.current);return n.current=i,i},[...t])}function Kc(e){const t=_f(e),n=T.useRef(null),i=T.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,i]}function Yc(e){const t=T.useRef();return T.useEffect(()=>{t.current=e},[e]),t.current}let yh={};function Xl(e,t){return T.useMemo(()=>{if(t)return t;const n=yh[e]==null?0:yh[e]+1;return yh[e]=n,e+"-"+n},[e,t])}function mx(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return i.reduce((l,u)=>{const f=Object.entries(u);for(const[d,p]of f){const m=l[d];m!=null&&(l[d]=m+e*p)}return l},{...t})}}const zo=mx(1),Nl=mx(-1);function MD(e){return"clientX"in e&&"clientY"in e}function Rf(e){if(!e)return!1;const{KeyboardEvent:t}=Tn(e.target);return t&&e instanceof t}function ND(e){if(!e)return!1;const{TouchEvent:t}=Tn(e.target);return t&&e instanceof t}function Xc(e){if(ND(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return MD(e)?{x:e.clientX,y:e.clientY}:null}const Xi=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Xi.Translate.toString(e),Xi.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),PS="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function DD(e){return e.matches(PS)?e:e.querySelector(PS)}const LD={display:"none"};function zD(e){let{id:t,value:n}=e;return rt.createElement("div",{id:t,style:LD},n)}function ID(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return rt.createElement("div",{id:t,style:o,role:"status","aria-live":i,"aria-atomic":!0},n)}function BD(){const[e,t]=T.useState("");return{announce:T.useCallback(i=>{i!=null&&t(i)},[]),announcement:e}}const gx=T.createContext(null);function jD(e){const t=T.useContext(gx);T.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function $D(){const[e]=T.useState(()=>new Set),t=T.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[T.useCallback(i=>{let{type:o,event:l}=i;e.forEach(u=>{var f;return(f=u[o])==null?void 0:f.call(u,l)})},[e]),t]}const PD={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},UD={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function HD(e){let{announcements:t=UD,container:n,hiddenTextDescribedById:i,screenReaderInstructions:o=PD}=e;const{announce:l,announcement:u}=BD(),f=Xl("DndLiveRegion"),[d,p]=T.useState(!1);if(T.useEffect(()=>{p(!0)},[]),jD(T.useMemo(()=>({onDragStart(g){let{active:v}=g;l(t.onDragStart({active:v}))},onDragMove(g){let{active:v,over:b}=g;t.onDragMove&&l(t.onDragMove({active:v,over:b}))},onDragOver(g){let{active:v,over:b}=g;l(t.onDragOver({active:v,over:b}))},onDragEnd(g){let{active:v,over:b}=g;l(t.onDragEnd({active:v,over:b}))},onDragCancel(g){let{active:v,over:b}=g;l(t.onDragCancel({active:v,over:b}))}}),[l,t])),!d)return null;const m=rt.createElement(rt.Fragment,null,rt.createElement(zD,{id:i,value:o.draggable}),rt.createElement(ID,{id:f,announcement:u}));return n?ka.createPortal(m,n):m}var Jt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Jt||(Jt={}));function Wc(){}function US(e,t){return T.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function qD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T.useMemo(()=>[...t].filter(i=>i!=null),[...t])}const Er=Object.freeze({x:0,y:0});function yx(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function FD(e,t){const n=Xc(e);if(!n)return"0 0";const i={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return i.x+"% "+i.y+"%"}function bx(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function VD(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function HS(e){let{left:t,top:n,height:i,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+i},{x:t+o,y:n+i}]}function vx(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function qS(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const GD=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const o=qS(t,t.left,t.top),l=[];for(const u of i){const{id:f}=u,d=n.get(f);if(d){const p=yx(qS(d),o);l.push({id:f,data:{droppableContainer:u,value:p}})}}return l.sort(bx)},KD=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const o=HS(t),l=[];for(const u of i){const{id:f}=u,d=n.get(f);if(d){const p=HS(d),m=o.reduce((v,b,w)=>v+yx(p[w],b),0),g=Number((m/4).toFixed(4));l.push({id:f,data:{droppableContainer:u,value:g}})}}return l.sort(bx)};function YD(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),u=o-i,f=l-n;if(i<o&&n<l){const d=t.width*t.height,p=e.width*e.height,m=u*f,g=m/(d+p-m);return Number(g.toFixed(4))}return 0}const XD=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const o=[];for(const l of i){const{id:u}=l,f=n.get(u);if(f){const d=YD(f,t);d>0&&o.push({id:u,data:{droppableContainer:l,value:d}})}}return o.sort(VD)};function WD(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Sx(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Er}function QD(e){return function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return o.reduce((u,f)=>({...u,top:u.top+e*f.y,bottom:u.bottom+e*f.y,left:u.left+e*f.x,right:u.right+e*f.x}),{...n})}}const ZD=QD(1);function wx(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function JD(e,t,n){const i=wx(t);if(!i)return e;const{scaleX:o,scaleY:l,x:u,y:f}=i,d=e.left-u-(1-o)*parseFloat(n),p=e.top-f-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),m=o?e.width/o:e.width,g=l?e.height/l:e.height;return{width:m,height:g,top:p,right:d+m,bottom:p+g,left:d}}const e5={ignoreTransform:!1};function Xo(e,t){t===void 0&&(t=e5);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:p,transformOrigin:m}=Tn(e).getComputedStyle(e);p&&(n=JD(n,p,m))}const{top:i,left:o,width:l,height:u,bottom:f,right:d}=n;return{top:i,left:o,width:l,height:u,bottom:f,right:d}}function FS(e){return Xo(e,{ignoreTransform:!0})}function t5(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function n5(e,t){return t===void 0&&(t=Tn(e).getComputedStyle(e)),t.position==="fixed"}function r5(e,t){t===void 0&&(t=Tn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const l=t[o];return typeof l=="string"?n.test(l):!1})}function Of(e,t){const n=[];function i(o){if(t!=null&&n.length>=t||!o)return n;if(ug(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Kl(o)||hx(o)||n.includes(o))return n;const l=Tn(e).getComputedStyle(o);return o!==e&&r5(o,l)&&n.push(o),n5(o,l)?n:i(o.parentNode)}return e?i(e):n}function xx(e){const[t]=Of(e,1);return t??null}function bh(e){return!Af||!e?null:Ko(e)?e:lg(e)?ug(e)||e===Yo(e).scrollingElement?window:Kl(e)?e:null:null}function Cx(e){return Ko(e)?e.scrollX:e.scrollLeft}function kx(e){return Ko(e)?e.scrollY:e.scrollTop}function fm(e){return{x:Cx(e),y:kx(e)}}var sn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(sn||(sn={}));function Ex(e){return!Af||!e?!1:e===document.scrollingElement}function Tx(e){const t={x:0,y:0},n=Ex(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,l=e.scrollLeft<=t.x,u=e.scrollTop>=i.y,f=e.scrollLeft>=i.x;return{isTop:o,isLeft:l,isBottom:u,isRight:f,maxScroll:i,minScroll:t}}const i5={x:.2,y:.2};function a5(e,t,n,i,o){let{top:l,left:u,right:f,bottom:d}=n;i===void 0&&(i=10),o===void 0&&(o=i5);const{isTop:p,isBottom:m,isLeft:g,isRight:v}=Tx(e),b={x:0,y:0},w={x:0,y:0},S={height:t.height*o.y,width:t.width*o.x};return!p&&l<=t.top+S.height?(b.y=sn.Backward,w.y=i*Math.abs((t.top+S.height-l)/S.height)):!m&&d>=t.bottom-S.height&&(b.y=sn.Forward,w.y=i*Math.abs((t.bottom-S.height-d)/S.height)),!v&&f>=t.right-S.width?(b.x=sn.Forward,w.x=i*Math.abs((t.right-S.width-f)/S.width)):!g&&u<=t.left+S.width&&(b.x=sn.Backward,w.x=i*Math.abs((t.left+S.width-u)/S.width)),{direction:b,speed:w}}function o5(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:u}=window;return{top:0,left:0,right:l,bottom:u,width:l,height:u}}const{top:t,left:n,right:i,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Ax(e){return e.reduce((t,n)=>zo(t,fm(n)),Er)}function s5(e){return e.reduce((t,n)=>t+Cx(n),0)}function l5(e){return e.reduce((t,n)=>t+kx(n),0)}function _x(e,t){if(t===void 0&&(t=Xo),!e)return;const{top:n,left:i,bottom:o,right:l}=t(e);xx(e)&&(o<=0||l<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const u5=[["x",["left","right"],s5],["y",["top","bottom"],l5]];class cg{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=Of(n),o=Ax(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,u,f]of u5)for(const d of u)Object.defineProperty(this,d,{get:()=>{const p=f(i),m=o[l]-p;return this.rect[d]+m},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class bl{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...n)})},this.target=t}add(t,n,i){var o;(o=this.target)==null||o.addEventListener(t,n,i),this.listeners.push([t,n,i])}}function c5(e){const{EventTarget:t}=Tn(e);return e instanceof t?e:Yo(e)}function vh(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t?i>t.y:!1}var ur;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ur||(ur={}));function VS(e){e.preventDefault()}function f5(e){e.stopPropagation()}var Ze;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ze||(Ze={}));const Rx={start:[Ze.Space,Ze.Enter],cancel:[Ze.Esc],end:[Ze.Space,Ze.Enter,Ze.Tab]},d5=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ze.Right:return{...n,x:n.x+25};case Ze.Left:return{...n,x:n.x-25};case Ze.Down:return{...n,y:n.y+25};case Ze.Up:return{...n,y:n.y-25}}};class fg{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new bl(Yo(n)),this.windowListeners=new bl(Tn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ur.Resize,this.handleCancel),this.windowListeners.add(ur.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ur.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,i=t.node.current;i&&_x(i),n(Er)}handleKeyDown(t){if(Rf(t)){const{active:n,context:i,options:o}=this.props,{keyboardCodes:l=Rx,coordinateGetter:u=d5,scrollBehavior:f="smooth"}=o,{code:d}=t;if(l.end.includes(d)){this.handleEnd(t);return}if(l.cancel.includes(d)){this.handleCancel(t);return}const{collisionRect:p}=i.current,m=p?{x:p.left,y:p.top}:Er;this.referenceCoordinates||(this.referenceCoordinates=m);const g=u(t,{active:n,context:i.current,currentCoordinates:m});if(g){const v=Nl(g,m),b={x:0,y:0},{scrollableAncestors:w}=i.current;for(const S of w){const C=t.code,{isTop:A,isRight:O,isLeft:_,isBottom:M,maxScroll:R,minScroll:D}=Tx(S),P=o5(S),z={x:Math.min(C===Ze.Right?P.right-P.width/2:P.right,Math.max(C===Ze.Right?P.left:P.left+P.width/2,g.x)),y:Math.min(C===Ze.Down?P.bottom-P.height/2:P.bottom,Math.max(C===Ze.Down?P.top:P.top+P.height/2,g.y))},$=C===Ze.Right&&!O||C===Ze.Left&&!_,E=C===Ze.Down&&!M||C===Ze.Up&&!A;if($&&z.x!==g.x){const I=S.scrollLeft+v.x,U=C===Ze.Right&&I<=R.x||C===Ze.Left&&I>=D.x;if(U&&!v.y){S.scrollTo({left:I,behavior:f});return}U?b.x=S.scrollLeft-I:b.x=C===Ze.Right?S.scrollLeft-R.x:S.scrollLeft-D.x,b.x&&S.scrollBy({left:-b.x,behavior:f});break}else if(E&&z.y!==g.y){const I=S.scrollTop+v.y,U=C===Ze.Down&&I<=R.y||C===Ze.Up&&I>=D.y;if(U&&!v.x){S.scrollTo({top:I,behavior:f});return}U?b.y=S.scrollTop-I:b.y=C===Ze.Down?S.scrollTop-R.y:S.scrollTop-D.y,b.y&&S.scrollBy({top:-b.y,behavior:f});break}}this.handleMove(t,zo(Nl(g,this.referenceCoordinates),b))}}}handleMove(t,n){const{onMove:i}=this.props;t.preventDefault(),i(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}fg.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=Rx,onActivation:o}=t,{active:l}=n;const{code:u}=e.nativeEvent;if(i.start.includes(u)){const f=l.activatorNode.current;return f&&e.target!==f?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function GS(e){return!!(e&&"distance"in e)}function KS(e){return!!(e&&"delay"in e)}class dg{constructor(t,n,i){var o;i===void 0&&(i=c5(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:u}=l;this.props=t,this.events=n,this.document=Yo(u),this.documentListeners=new bl(this.document),this.listeners=new bl(i),this.windowListeners=new bl(Tn(u)),this.initialCoordinates=(o=Xc(l))!=null?o:Er,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ur.Resize,this.handleCancel),this.windowListeners.add(ur.DragStart,VS),this.windowListeners.add(ur.VisibilityChange,this.handleCancel),this.windowListeners.add(ur.ContextMenu,VS),this.documentListeners.add(ur.Keydown,this.handleKeydown),n){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(KS(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(GS(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:i,onPending:o}=this.props;o(i,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ur.Click,f5,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ur.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:i,initialCoordinates:o,props:l}=this,{onMove:u,options:{activationConstraint:f}}=l;if(!o)return;const d=(n=Xc(t))!=null?n:Er,p=Nl(o,d);if(!i&&f){if(GS(f)){if(f.tolerance!=null&&vh(p,f.tolerance))return this.handleCancel();if(vh(p,f.distance))return this.handleStart()}if(KS(f)&&vh(p,f.tolerance))return this.handleCancel();this.handlePending(f,p);return}t.cancelable&&t.preventDefault(),u(d)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ze.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const p5={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class pg extends dg{constructor(t){const{event:n}=t,i=Yo(n.target);super(t,p5,i)}}pg.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!n.isPrimary||n.button!==0?!1:(i==null||i({event:n}),!0)}}];const h5={move:{name:"mousemove"},end:{name:"mouseup"}};var dm;(function(e){e[e.RightClick=2]="RightClick"})(dm||(dm={}));class m5 extends dg{constructor(t){super(t,h5,Yo(t.event.target))}}m5.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button===dm.RightClick?!1:(i==null||i({event:n}),!0)}}];const Sh={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class g5 extends dg{constructor(t){super(t,Sh)}static setup(){return window.addEventListener(Sh.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Sh.move.name,t)};function t(){}}}g5.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:o}=n;return o.length>1?!1:(i==null||i({event:n}),!0)}}];var vl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(vl||(vl={}));var Qc;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Qc||(Qc={}));function y5(e){let{acceleration:t,activator:n=vl.Pointer,canScroll:i,draggingRect:o,enabled:l,interval:u=5,order:f=Qc.TreeOrder,pointerCoordinates:d,scrollableAncestors:p,scrollableAncestorRects:m,delta:g,threshold:v}=e;const b=v5({delta:g,disabled:!l}),[w,S]=OD(),C=T.useRef({x:0,y:0}),A=T.useRef({x:0,y:0}),O=T.useMemo(()=>{switch(n){case vl.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case vl.DraggableRect:return o}},[n,o,d]),_=T.useRef(null),M=T.useCallback(()=>{const D=_.current;if(!D)return;const P=C.current.x*A.current.x,z=C.current.y*A.current.y;D.scrollBy(P,z)},[]),R=T.useMemo(()=>f===Qc.TreeOrder?[...p].reverse():p,[f,p]);T.useEffect(()=>{if(!l||!p.length||!O){S();return}for(const D of R){if((i==null?void 0:i(D))===!1)continue;const P=p.indexOf(D),z=m[P];if(!z)continue;const{direction:$,speed:E}=a5(D,z,O,t,v);for(const I of["x","y"])b[I][$[I]]||(E[I]=0,$[I]=0);if(E.x>0||E.y>0){S(),_.current=D,w(M,u),C.current=E,A.current=$;return}}C.current={x:0,y:0},A.current={x:0,y:0},S()},[t,M,i,S,l,u,JSON.stringify(O),JSON.stringify(b),w,p,R,m,JSON.stringify(v)])}const b5={x:{[sn.Backward]:!1,[sn.Forward]:!1},y:{[sn.Backward]:!1,[sn.Forward]:!1}};function v5(e){let{delta:t,disabled:n}=e;const i=Yc(t);return Yl(o=>{if(n||!i||!o)return b5;const l={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[sn.Backward]:o.x[sn.Backward]||l.x===-1,[sn.Forward]:o.x[sn.Forward]||l.x===1},y:{[sn.Backward]:o.y[sn.Backward]||l.y===-1,[sn.Forward]:o.y[sn.Forward]||l.y===1}}},[n,t,i])}function S5(e,t){const n=t!=null?e.get(t):void 0,i=n?n.node.current:null;return Yl(o=>{var l;return t==null?null:(l=i??o)!=null?l:null},[i,t])}function w5(e,t){return T.useMemo(()=>e.reduce((n,i)=>{const{sensor:o}=i,l=o.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,i)}));return[...n,...l]},[]),[e,t])}var Dl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Dl||(Dl={}));var pm;(function(e){e.Optimized="optimized"})(pm||(pm={}));const YS=new Map;function x5(e,t){let{dragging:n,dependencies:i,config:o}=t;const[l,u]=T.useState(null),{frequency:f,measure:d,strategy:p}=o,m=T.useRef(e),g=C(),v=Ml(g),b=T.useCallback(function(A){A===void 0&&(A=[]),!v.current&&u(O=>O===null?A:O.concat(A.filter(_=>!O.includes(_))))},[v]),w=T.useRef(null),S=Yl(A=>{if(g&&!n)return YS;if(!A||A===YS||m.current!==e||l!=null){const O=new Map;for(let _ of e){if(!_)continue;if(l&&l.length>0&&!l.includes(_.id)&&_.rect.current){O.set(_.id,_.rect.current);continue}const M=_.node.current,R=M?new cg(d(M),M):null;_.rect.current=R,R&&O.set(_.id,R)}return O}return A},[e,l,n,g,d]);return T.useEffect(()=>{m.current=e},[e]),T.useEffect(()=>{g||b()},[n,g]),T.useEffect(()=>{l&&l.length>0&&u(null)},[JSON.stringify(l)]),T.useEffect(()=>{g||typeof f!="number"||w.current!==null||(w.current=setTimeout(()=>{b(),w.current=null},f))},[f,g,b,...i]),{droppableRects:S,measureDroppableContainers:b,measuringScheduled:l!=null};function C(){switch(p){case Dl.Always:return!1;case Dl.BeforeDragging:return n;default:return!n}}}function hg(e,t){return Yl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function C5(e,t){return hg(e,t)}function k5(e){let{callback:t,disabled:n}=e;const i=_f(t),o=T.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(i)},[i,n]);return T.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Mf(e){let{callback:t,disabled:n}=e;const i=_f(t),o=T.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(i)},[n]);return T.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function E5(e){return new cg(Xo(e),e)}function XS(e,t,n){t===void 0&&(t=E5);const[i,o]=T.useState(null);function l(){o(d=>{if(!e)return null;if(e.isConnected===!1){var p;return(p=d??n)!=null?p:null}const m=t(e);return JSON.stringify(d)===JSON.stringify(m)?d:m})}const u=k5({callback(d){if(e)for(const p of d){const{type:m,target:g}=p;if(m==="childList"&&g instanceof HTMLElement&&g.contains(e)){l();break}}}}),f=Mf({callback:l});return kr(()=>{l(),e?(f==null||f.observe(e),u==null||u.observe(document.body,{childList:!0,subtree:!0})):(f==null||f.disconnect(),u==null||u.disconnect())},[e]),i}function T5(e){const t=hg(e);return Sx(e,t)}const WS=[];function A5(e){const t=T.useRef(e),n=Yl(i=>e?i&&i!==WS&&e&&t.current&&e.parentNode===t.current.parentNode?i:Of(e):WS,[e]);return T.useEffect(()=>{t.current=e},[e]),n}function _5(e){const[t,n]=T.useState(null),i=T.useRef(e),o=T.useCallback(l=>{const u=bh(l.target);u&&n(f=>f?(f.set(u,fm(u)),new Map(f)):null)},[]);return T.useEffect(()=>{const l=i.current;if(e!==l){u(l);const f=e.map(d=>{const p=bh(d);return p?(p.addEventListener("scroll",o,{passive:!0}),[p,fm(p)]):null}).filter(d=>d!=null);n(f.length?new Map(f):null),i.current=e}return()=>{u(e),u(l)};function u(f){f.forEach(d=>{const p=bh(d);p==null||p.removeEventListener("scroll",o)})}},[o,e]),T.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,u)=>zo(l,u),Er):Ax(e):Er,[e,t])}function QS(e,t){t===void 0&&(t=[]);const n=T.useRef(null);return T.useEffect(()=>{n.current=null},t),T.useEffect(()=>{const i=e!==Er;i&&!n.current&&(n.current=e),!i&&n.current&&(n.current=null)},[e]),n.current?Nl(e,n.current):Er}function R5(e){T.useEffect(()=>{if(!Af)return;const t=e.map(n=>{let{sensor:i}=n;return i.setup==null?void 0:i.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function O5(e,t){return T.useMemo(()=>e.reduce((n,i)=>{let{eventName:o,handler:l}=i;return n[o]=u=>{l(u,t)},n},{}),[e,t])}function Ox(e){return T.useMemo(()=>e?t5(e):null,[e])}const ZS=[];function M5(e,t){t===void 0&&(t=Xo);const[n]=e,i=Ox(n?Tn(n):null),[o,l]=T.useState(ZS);function u(){l(()=>e.length?e.map(d=>Ex(d)?i:new cg(t(d),d)):ZS)}const f=Mf({callback:u});return kr(()=>{f==null||f.disconnect(),u(),e.forEach(d=>f==null?void 0:f.observe(d))},[e]),o}function Mx(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Kl(t)?t:e}function N5(e){let{measure:t}=e;const[n,i]=T.useState(null),o=T.useCallback(p=>{for(const{target:m}of p)if(Kl(m)){i(g=>{const v=t(m);return g?{...g,width:v.width,height:v.height}:v});break}},[t]),l=Mf({callback:o}),u=T.useCallback(p=>{const m=Mx(p);l==null||l.disconnect(),m&&(l==null||l.observe(m)),i(m?t(m):null)},[t,l]),[f,d]=Kc(u);return T.useMemo(()=>({nodeRef:f,rect:n,setRef:d}),[n,f,d])}const D5=[{sensor:pg,options:{}},{sensor:fg,options:{}}],L5={current:{}},Dc={draggable:{measure:FS},droppable:{measure:FS,strategy:Dl.WhileDragging,frequency:pm.Optimized},dragOverlay:{measure:Xo}};class Sl extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,i;return(n=(i=this.get(t))==null?void 0:i.node.current)!=null?n:void 0}}const z5={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Sl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Wc},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Dc,measureDroppableContainers:Wc,windowRect:null,measuringScheduled:!1},Nx={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Wc,draggableNodes:new Map,over:null,measureDroppableContainers:Wc},Wl=T.createContext(Nx),Dx=T.createContext(z5);function I5(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Sl}}}function B5(e,t){switch(t.type){case Jt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Jt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Jt.DragEnd:case Jt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Jt.RegisterDroppable:{const{element:n}=t,{id:i}=n,o=new Sl(e.droppable.containers);return o.set(i,n),{...e,droppable:{...e.droppable,containers:o}}}case Jt.SetDroppableDisabled:{const{id:n,key:i,disabled:o}=t,l=e.droppable.containers.get(n);if(!l||i!==l.key)return e;const u=new Sl(e.droppable.containers);return u.set(n,{...l,disabled:o}),{...e,droppable:{...e.droppable,containers:u}}}case Jt.UnregisterDroppable:{const{id:n,key:i}=t,o=e.droppable.containers.get(n);if(!o||i!==o.key)return e;const l=new Sl(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function j5(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:o}=T.useContext(Wl),l=Yc(i),u=Yc(n==null?void 0:n.id);return T.useEffect(()=>{if(!t&&!i&&l&&u!=null){if(!Rf(l)||document.activeElement===l.target)return;const f=o.get(u);if(!f)return;const{activatorNode:d,node:p}=f;if(!d.current&&!p.current)return;requestAnimationFrame(()=>{for(const m of[d.current,p.current]){if(!m)continue;const g=DD(m);if(g){g.focus();break}}})}},[i,t,o,u,l]),null}function Lx(e,t){let{transform:n,...i}=t;return e!=null&&e.length?e.reduce((o,l)=>l({transform:o,...i}),n):n}function $5(e){return T.useMemo(()=>({draggable:{...Dc.draggable,...e==null?void 0:e.draggable},droppable:{...Dc.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Dc.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function P5(e){let{activeNode:t,measure:n,initialRect:i,config:o=!0}=e;const l=T.useRef(!1),{x:u,y:f}=typeof o=="boolean"?{x:o,y:o}:o;kr(()=>{if(!u&&!f||!t){l.current=!1;return}if(l.current||!i)return;const p=t==null?void 0:t.node.current;if(!p||p.isConnected===!1)return;const m=n(p),g=Sx(m,i);if(u||(g.x=0),f||(g.y=0),l.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const v=xx(p);v&&v.scrollBy({top:g.y,left:g.x})}},[t,u,f,i,n])}const Nf=T.createContext({...Er,scaleX:1,scaleY:1});var Vi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Vi||(Vi={}));const U5=T.memo(function(t){var n,i,o,l;let{id:u,accessibility:f,autoScroll:d=!0,children:p,sensors:m=D5,collisionDetection:g=XD,measuring:v,modifiers:b,...w}=t;const S=T.useReducer(B5,void 0,I5),[C,A]=S,[O,_]=$D(),[M,R]=T.useState(Vi.Uninitialized),D=M===Vi.Initialized,{draggable:{active:P,nodes:z,translate:$},droppable:{containers:E}}=C,I=P!=null?z.get(P):null,U=T.useRef({initial:null,translated:null}),G=T.useMemo(()=>{var jt;return P!=null?{id:P,data:(jt=I==null?void 0:I.data)!=null?jt:L5,rect:U}:null},[P,I]),Y=T.useRef(null),[V,H]=T.useState(null),[Z,ae]=T.useState(null),J=Ml(w,Object.values(w)),k=Xl("DndDescribedBy",u),X=T.useMemo(()=>E.getEnabled(),[E]),se=$5(v),{droppableRects:L,measureDroppableContainers:re,measuringScheduled:fe}=x5(X,{dragging:D,dependencies:[$.x,$.y],config:se.droppable}),le=S5(z,P),Ae=T.useMemo(()=>Z?Xc(Z):null,[Z]),ge=La(),be=C5(le,se.draggable.measure);P5({activeNode:P!=null?z.get(P):null,config:ge.layoutShiftCompensation,initialRect:be,measure:se.draggable.measure});const ue=XS(le,se.draggable.measure,be),xe=XS(le?le.parentElement:null),ke=T.useRef({activatorEvent:null,active:null,activeNode:le,collisionRect:null,collisions:null,droppableRects:L,draggableNodes:z,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),je=E.getNodeFor((n=ke.current.over)==null?void 0:n.id),Ce=N5({measure:se.dragOverlay.measure}),$e=(i=Ce.nodeRef.current)!=null?i:le,et=D?(o=Ce.rect)!=null?o:ue:null,dt=!!(Ce.nodeRef.current&&Ce.rect),Pe=T5(dt?null:ue),bt=Ox($e?Tn($e):null),Ye=A5(D?je??le:null),it=M5(Ye),we=Lx(b,{transform:{x:$.x-Pe.x,y:$.y-Pe.y,scaleX:1,scaleY:1},activatorEvent:Z,active:G,activeNodeRect:ue,containerNodeRect:xe,draggingNodeRect:et,over:ke.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:Ye,scrollableAncestorRects:it,windowRect:bt}),pn=Ae?zo(Ae,$):null,tt=_5(Ye),Sn=QS(tt),ee=QS(tt,[ue]),de=zo(we,Sn),he=et?ZD(et,we):null,ye=G&&he?g({active:G,collisionRect:he,droppableRects:L,droppableContainers:X,pointerCoordinates:pn}):null,Re=vx(ye,"id"),[Me,st]=T.useState(null),nt=dt?we:zo(we,ee),At=WD(nt,(l=Me==null?void 0:Me.rect)!=null?l:null,ue),Ee=T.useRef(null),Ne=T.useCallback((jt,$t)=>{let{sensor:tn,options:An}=$t;if(Y.current==null)return;const _n=z.get(Y.current);if(!_n)return;const hn=jt.nativeEvent,jn=new tn({active:Y.current,activeNode:_n,event:hn,options:An,context:ke,onAbort(Rt){if(!z.get(Rt))return;const{onDragAbort:$n}=J.current,Xn={id:Rt};$n==null||$n(Xn),O({type:"onDragAbort",event:Xn})},onPending(Rt,_r,$n,Xn){if(!z.get(Rt))return;const{onDragPending:wi}=J.current,Rr={id:Rt,constraint:_r,initialCoordinates:$n,offset:Xn};wi==null||wi(Rr),O({type:"onDragPending",event:Rr})},onStart(Rt){const _r=Y.current;if(_r==null)return;const $n=z.get(_r);if(!$n)return;const{onDragStart:Xn}=J.current,Si={activatorEvent:hn,active:{id:_r,data:$n.data,rect:U}};ka.unstable_batchedUpdates(()=>{Xn==null||Xn(Si),R(Vi.Initializing),A({type:Jt.DragStart,initialCoordinates:Rt,active:_r}),O({type:"onDragStart",event:Si}),H(Ee.current),ae(hn)})},onMove(Rt){A({type:Jt.DragMove,coordinates:Rt})},onEnd:Ar(Jt.DragEnd),onCancel:Ar(Jt.DragCancel)});Ee.current=jn;function Ar(Rt){return async function(){const{active:$n,collisions:Xn,over:Si,scrollAdjustedTranslate:wi}=ke.current;let Rr=null;if($n&&wi){const{cancelDrop:Rn}=J.current;Rr={activatorEvent:hn,active:$n,collisions:Xn,delta:wi,over:Si},Rt===Jt.DragEnd&&typeof Rn=="function"&&await Promise.resolve(Rn(Rr))&&(Rt=Jt.DragCancel)}Y.current=null,ka.unstable_batchedUpdates(()=>{A({type:Rt}),R(Vi.Uninitialized),st(null),H(null),ae(null),Ee.current=null;const Rn=Rt===Jt.DragEnd?"onDragEnd":"onDragCancel";if(Rr){const Vt=J.current[Rn];Vt==null||Vt(Rr),O({type:Rn,event:Rr})}})}}},[z]),He=T.useCallback((jt,$t)=>(tn,An)=>{const _n=tn.nativeEvent,hn=z.get(An);if(Y.current!==null||!hn||_n.dndKit||_n.defaultPrevented)return;const jn={active:hn};jt(tn,$t.options,jn)===!0&&(_n.dndKit={capturedBy:$t.sensor},Y.current=An,Ne(tn,$t))},[z,Ne]),Bt=w5(m,He);R5(m),kr(()=>{ue&&M===Vi.Initializing&&R(Vi.Initialized)},[ue,M]),T.useEffect(()=>{const{onDragMove:jt}=J.current,{active:$t,activatorEvent:tn,collisions:An,over:_n}=ke.current;if(!$t||!tn)return;const hn={active:$t,activatorEvent:tn,collisions:An,delta:{x:de.x,y:de.y},over:_n};ka.unstable_batchedUpdates(()=>{jt==null||jt(hn),O({type:"onDragMove",event:hn})})},[de.x,de.y]),T.useEffect(()=>{const{active:jt,activatorEvent:$t,collisions:tn,droppableContainers:An,scrollAdjustedTranslate:_n}=ke.current;if(!jt||Y.current==null||!$t||!_n)return;const{onDragOver:hn}=J.current,jn=An.get(Re),Ar=jn&&jn.rect.current?{id:jn.id,rect:jn.rect.current,data:jn.data,disabled:jn.disabled}:null,Rt={active:jt,activatorEvent:$t,collisions:tn,delta:{x:_n.x,y:_n.y},over:Ar};ka.unstable_batchedUpdates(()=>{st(Ar),hn==null||hn(Rt),O({type:"onDragOver",event:Rt})})},[Re]),kr(()=>{ke.current={activatorEvent:Z,active:G,activeNode:le,collisionRect:he,collisions:ye,droppableRects:L,draggableNodes:z,draggingNode:$e,draggingNodeRect:et,droppableContainers:E,over:Me,scrollableAncestors:Ye,scrollAdjustedTranslate:de},U.current={initial:et,translated:he}},[G,le,ye,he,z,$e,et,L,E,Me,Ye,de]),y5({...ge,delta:$,draggingRect:he,pointerCoordinates:pn,scrollableAncestors:Ye,scrollableAncestorRects:it});const Da=T.useMemo(()=>({active:G,activeNode:le,activeNodeRect:ue,activatorEvent:Z,collisions:ye,containerNodeRect:xe,dragOverlay:Ce,draggableNodes:z,droppableContainers:E,droppableRects:L,over:Me,measureDroppableContainers:re,scrollableAncestors:Ye,scrollableAncestorRects:it,measuringConfiguration:se,measuringScheduled:fe,windowRect:bt}),[G,le,ue,Z,ye,xe,Ce,z,E,L,Me,re,Ye,it,se,fe,bt]),Vf=T.useMemo(()=>({activatorEvent:Z,activators:Bt,active:G,activeNodeRect:ue,ariaDescribedById:{draggable:k},dispatch:A,draggableNodes:z,over:Me,measureDroppableContainers:re}),[Z,Bt,G,ue,A,k,z,Me,re]);return rt.createElement(gx.Provider,{value:_},rt.createElement(Wl.Provider,{value:Vf},rt.createElement(Dx.Provider,{value:Da},rt.createElement(Nf.Provider,{value:At},p)),rt.createElement(j5,{disabled:(f==null?void 0:f.restoreFocus)===!1})),rt.createElement(HD,{...f,hiddenTextDescribedById:k}));function La(){const jt=(V==null?void 0:V.autoScrollEnabled)===!1,$t=typeof d=="object"?d.enabled===!1:d===!1,tn=D&&!jt&&!$t;return typeof d=="object"?{...d,enabled:tn}:{enabled:tn}}}),H5=T.createContext(null),JS="button",q5="Draggable";function F5(e){let{id:t,data:n,disabled:i=!1,attributes:o}=e;const l=Xl(q5),{activators:u,activatorEvent:f,active:d,activeNodeRect:p,ariaDescribedById:m,draggableNodes:g,over:v}=T.useContext(Wl),{role:b=JS,roleDescription:w="draggable",tabIndex:S=0}=o??{},C=(d==null?void 0:d.id)===t,A=T.useContext(C?Nf:H5),[O,_]=Kc(),[M,R]=Kc(),D=O5(u,t),P=Ml(n);kr(()=>(g.set(t,{id:t,key:l,node:O,activatorNode:M,data:P}),()=>{const $=g.get(t);$&&$.key===l&&g.delete(t)}),[g,t]);const z=T.useMemo(()=>({role:b,tabIndex:S,"aria-disabled":i,"aria-pressed":C&&b===JS?!0:void 0,"aria-roledescription":w,"aria-describedby":m.draggable}),[i,b,S,C,w,m.draggable]);return{active:d,activatorEvent:f,activeNodeRect:p,attributes:z,isDragging:C,listeners:i?void 0:D,node:O,over:v,setNodeRef:_,setActivatorNodeRef:R,transform:A}}function zx(){return T.useContext(Dx)}const V5="Droppable",G5={timeout:25};function K5(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:o}=e;const l=Xl(V5),{active:u,dispatch:f,over:d,measureDroppableContainers:p}=T.useContext(Wl),m=T.useRef({disabled:n}),g=T.useRef(!1),v=T.useRef(null),b=T.useRef(null),{disabled:w,updateMeasurementsFor:S,timeout:C}={...G5,...o},A=Ml(S??i),O=T.useCallback(()=>{if(!g.current){g.current=!0;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{p(Array.isArray(A.current)?A.current:[A.current]),b.current=null},C)},[C]),_=Mf({callback:O,disabled:w||!u}),M=T.useCallback((z,$)=>{_&&($&&(_.unobserve($),g.current=!1),z&&_.observe(z))},[_]),[R,D]=Kc(M),P=Ml(t);return T.useEffect(()=>{!_||!R.current||(_.disconnect(),g.current=!1,_.observe(R.current))},[R,_]),T.useEffect(()=>(f({type:Jt.RegisterDroppable,element:{id:i,key:l,disabled:n,node:R,rect:v,data:P}}),()=>f({type:Jt.UnregisterDroppable,key:l,id:i})),[i]),T.useEffect(()=>{n!==m.current.disabled&&(f({type:Jt.SetDroppableDisabled,id:i,key:l,disabled:n}),m.current.disabled=n)},[i,l,n,f]),{active:u,rect:v,isOver:(d==null?void 0:d.id)===i,node:R,over:d,setNodeRef:D}}function Y5(e){let{animation:t,children:n}=e;const[i,o]=T.useState(null),[l,u]=T.useState(null),f=Yc(n);return!n&&!i&&f&&o(f),kr(()=>{if(!l)return;const d=i==null?void 0:i.key,p=i==null?void 0:i.props.id;if(d==null||p==null){o(null);return}Promise.resolve(t(p,l)).then(()=>{o(null)})},[t,i,l]),rt.createElement(rt.Fragment,null,n,i?T.cloneElement(i,{ref:u}):null)}const X5={x:0,y:0,scaleX:1,scaleY:1};function W5(e){let{children:t}=e;return rt.createElement(Wl.Provider,{value:Nx},rt.createElement(Nf.Provider,{value:X5},t))}const Q5={position:"fixed",touchAction:"none"},Z5=e=>Rf(e)?"transform 250ms ease":void 0,J5=T.forwardRef((e,t)=>{let{as:n,activatorEvent:i,adjustScale:o,children:l,className:u,rect:f,style:d,transform:p,transition:m=Z5}=e;if(!f)return null;const g=o?p:{...p,scaleX:1,scaleY:1},v={...Q5,width:f.width,height:f.height,top:f.top,left:f.left,transform:Xi.Transform.toString(g),transformOrigin:o&&i?FD(i,f):void 0,transition:typeof m=="function"?m(i):m,...d};return rt.createElement(n,{className:u,style:v,ref:t},l)}),eL=e=>t=>{let{active:n,dragOverlay:i}=t;const o={},{styles:l,className:u}=e;if(l!=null&&l.active)for(const[f,d]of Object.entries(l.active))d!==void 0&&(o[f]=n.node.style.getPropertyValue(f),n.node.style.setProperty(f,d));if(l!=null&&l.dragOverlay)for(const[f,d]of Object.entries(l.dragOverlay))d!==void 0&&i.node.style.setProperty(f,d);return u!=null&&u.active&&n.node.classList.add(u.active),u!=null&&u.dragOverlay&&i.node.classList.add(u.dragOverlay),function(){for(const[d,p]of Object.entries(o))n.node.style.setProperty(d,p);u!=null&&u.active&&n.node.classList.remove(u.active)}},tL=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Xi.Transform.toString(t)},{transform:Xi.Transform.toString(n)}]},nL={duration:250,easing:"ease",keyframes:tL,sideEffects:eL({styles:{active:{opacity:"0"}}})};function rL(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:o}=e;return _f((l,u)=>{if(t===null)return;const f=n.get(l);if(!f)return;const d=f.node.current;if(!d)return;const p=Mx(u);if(!p)return;const{transform:m}=Tn(u).getComputedStyle(u),g=wx(m);if(!g)return;const v=typeof t=="function"?t:iL(t);return _x(d,o.draggable.measure),v({active:{id:l,data:f.data,node:d,rect:o.draggable.measure(d)},draggableNodes:n,dragOverlay:{node:u,rect:o.dragOverlay.measure(p)},droppableContainers:i,measuringConfiguration:o,transform:g})})}function iL(e){const{duration:t,easing:n,sideEffects:i,keyframes:o}={...nL,...e};return l=>{let{active:u,dragOverlay:f,transform:d,...p}=l;if(!t)return;const m={x:f.rect.left-u.rect.left,y:f.rect.top-u.rect.top},g={scaleX:d.scaleX!==1?u.rect.width*d.scaleX/f.rect.width:1,scaleY:d.scaleY!==1?u.rect.height*d.scaleY/f.rect.height:1},v={x:d.x-m.x,y:d.y-m.y,...g},b=o({...p,active:u,dragOverlay:f,transform:{initial:d,final:v}}),[w]=b,S=b[b.length-1];if(JSON.stringify(w)===JSON.stringify(S))return;const C=i==null?void 0:i({active:u,dragOverlay:f,...p}),A=f.node.animate(b,{duration:t,easing:n,fill:"forwards"});return new Promise(O=>{A.onfinish=()=>{C==null||C(),O()}})}}let e1=0;function aL(e){return T.useMemo(()=>{if(e!=null)return e1++,e1},[e])}const oL=rt.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:o,transition:l,modifiers:u,wrapperElement:f="div",className:d,zIndex:p=999}=e;const{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggableNodes:w,droppableContainers:S,dragOverlay:C,over:A,measuringConfiguration:O,scrollableAncestors:_,scrollableAncestorRects:M,windowRect:R}=zx(),D=T.useContext(Nf),P=aL(g==null?void 0:g.id),z=Lx(u,{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggingNodeRect:C.rect,over:A,overlayNodeRect:C.rect,scrollableAncestors:_,scrollableAncestorRects:M,transform:D,windowRect:R}),$=hg(v),E=rL({config:i,draggableNodes:w,droppableContainers:S,measuringConfiguration:O}),I=$?C.setRef:void 0;return rt.createElement(W5,null,rt.createElement(Y5,{animation:E},g&&P?rt.createElement(J5,{key:P,id:g.id,ref:I,as:f,activatorEvent:m,adjustScale:t,className:d,transition:l,rect:$,style:{zIndex:p,...o},transform:z},n):null))});function mg(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function sL(e,t){return e.reduce((n,i,o)=>{const l=t.get(i);return l&&(n[o]=l),n},Array(e.length))}function bc(e){return e!==null&&e>=0}function lL(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function uL(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const gg=e=>{let{rects:t,activeIndex:n,overIndex:i,index:o}=e;const l=mg(t,i,n),u=t[o],f=l[o];return!f||!u?null:{x:f.left-u.left,y:f.top-u.top,scaleX:f.width/u.width,scaleY:f.height/u.height}},Ix="Sortable",Bx=rt.createContext({activeIndex:-1,containerId:Ix,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:gg,disabled:{draggable:!1,droppable:!1}});function cL(e){let{children:t,id:n,items:i,strategy:o=gg,disabled:l=!1}=e;const{active:u,dragOverlay:f,droppableRects:d,over:p,measureDroppableContainers:m}=zx(),g=Xl(Ix,n),v=f.rect!==null,b=T.useMemo(()=>i.map(D=>typeof D=="object"&&"id"in D?D.id:D),[i]),w=u!=null,S=u?b.indexOf(u.id):-1,C=p?b.indexOf(p.id):-1,A=T.useRef(b),O=!lL(b,A.current),_=C!==-1&&S===-1||O,M=uL(l);kr(()=>{O&&w&&m(b)},[O,b,w,m]),T.useEffect(()=>{A.current=b},[b]);const R=T.useMemo(()=>({activeIndex:S,containerId:g,disabled:M,disableTransforms:_,items:b,overIndex:C,useDragOverlay:v,sortedRects:sL(b,d),strategy:o}),[S,g,M.draggable,M.droppable,_,b,C,d,v,o]);return rt.createElement(Bx.Provider,{value:R},t)}const fL=e=>{let{id:t,items:n,activeIndex:i,overIndex:o}=e;return mg(n,i,o).indexOf(t)},dL=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:o,items:l,newIndex:u,previousItems:f,previousContainerId:d,transition:p}=e;return!p||!i||f!==l&&o===u?!1:n?!0:u!==o&&t===d},pL={duration:200,easing:"ease"},jx="transform",hL=Xi.Transition.toString({property:jx,duration:0,easing:"linear"}),mL={roleDescription:"sortable"};function gL(e){let{disabled:t,index:n,node:i,rect:o}=e;const[l,u]=T.useState(null),f=T.useRef(n);return kr(()=>{if(!t&&n!==f.current&&i.current){const d=o.current;if(d){const p=Xo(i.current,{ignoreTransform:!0}),m={x:d.left-p.left,y:d.top-p.top,scaleX:d.width/p.width,scaleY:d.height/p.height};(m.x||m.y)&&u(m)}}n!==f.current&&(f.current=n)},[t,n,i,o]),T.useEffect(()=>{l&&u(null)},[l]),l}function yL(e){let{animateLayoutChanges:t=dL,attributes:n,disabled:i,data:o,getNewIndex:l=fL,id:u,strategy:f,resizeObserverConfig:d,transition:p=pL}=e;const{items:m,containerId:g,activeIndex:v,disabled:b,disableTransforms:w,sortedRects:S,overIndex:C,useDragOverlay:A,strategy:O}=T.useContext(Bx),_=bL(i,b),M=m.indexOf(u),R=T.useMemo(()=>({sortable:{containerId:g,index:M,items:m},...o}),[g,o,M,m]),D=T.useMemo(()=>m.slice(m.indexOf(u)),[m,u]),{rect:P,node:z,isOver:$,setNodeRef:E}=K5({id:u,data:R,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...d}}),{active:I,activatorEvent:U,activeNodeRect:G,attributes:Y,setNodeRef:V,listeners:H,isDragging:Z,over:ae,setActivatorNodeRef:J,transform:k}=F5({id:u,data:R,attributes:{...mL,...n},disabled:_.draggable}),X=RD(E,V),se=!!I,L=se&&!w&&bc(v)&&bc(C),re=!A&&Z,fe=re&&L?k:null,Ae=L?fe??(f??O)({rects:S,activeNodeRect:G,activeIndex:v,overIndex:C,index:M}):null,ge=bc(v)&&bc(C)?l({id:u,items:m,activeIndex:v,overIndex:C}):M,be=I==null?void 0:I.id,ue=T.useRef({activeId:be,items:m,newIndex:ge,containerId:g}),xe=m!==ue.current.items,ke=t({active:I,containerId:g,isDragging:Z,isSorting:se,id:u,index:M,items:m,newIndex:ue.current.newIndex,previousItems:ue.current.items,previousContainerId:ue.current.containerId,transition:p,wasDragging:ue.current.activeId!=null}),je=gL({disabled:!ke,index:M,node:z,rect:P});return T.useEffect(()=>{se&&ue.current.newIndex!==ge&&(ue.current.newIndex=ge),g!==ue.current.containerId&&(ue.current.containerId=g),m!==ue.current.items&&(ue.current.items=m)},[se,ge,g,m]),T.useEffect(()=>{if(be===ue.current.activeId)return;if(be!=null&&ue.current.activeId==null){ue.current.activeId=be;return}const $e=setTimeout(()=>{ue.current.activeId=be},50);return()=>clearTimeout($e)},[be]),{active:I,activeIndex:v,attributes:Y,data:R,rect:P,index:M,newIndex:ge,items:m,isOver:$,isSorting:se,isDragging:Z,listeners:H,node:z,overIndex:C,over:ae,setNodeRef:X,setActivatorNodeRef:J,setDroppableNodeRef:E,setDraggableNodeRef:V,transform:je??Ae,transition:Ce()};function Ce(){if(je||xe&&ue.current.newIndex===M)return hL;if(!(re&&!Rf(U)||!p)&&(se||ke))return Xi.Transition.toString({...p,property:jx})}}function bL(e,t){var n,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:t.droppable}}function Zc(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const vL=[Ze.Down,Ze.Right,Ze.Up,Ze.Left],SL=(e,t)=>{let{context:{active:n,collisionRect:i,droppableRects:o,droppableContainers:l,over:u,scrollableAncestors:f}}=t;if(vL.includes(e.code)){if(e.preventDefault(),!n||!i)return;const d=[];l.getEnabled().forEach(g=>{if(!g||g!=null&&g.disabled)return;const v=o.get(g.id);if(v)switch(e.code){case Ze.Down:i.top<v.top&&d.push(g);break;case Ze.Up:i.top>v.top&&d.push(g);break;case Ze.Left:i.left>v.left&&d.push(g);break;case Ze.Right:i.left<v.left&&d.push(g);break}});const p=KD({collisionRect:i,droppableRects:o,droppableContainers:d});let m=vx(p,"id");if(m===(u==null?void 0:u.id)&&p.length>1&&(m=p[1].id),m!=null){const g=l.get(n.id),v=l.get(m),b=v?o.get(v.id):null,w=v==null?void 0:v.node.current;if(w&&b&&g&&v){const C=Of(w).some((D,P)=>f[P]!==D),A=$x(g,v),O=wL(g,v),_=C||!A?{x:0,y:0}:{x:O?i.width-b.width:0,y:O?i.height-b.height:0},M={x:b.left,y:b.top};return _.x&&_.y?M:Nl(M,_)}}}};function $x(e,t){return!Zc(e)||!Zc(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function wL(e,t){return!Zc(e)||!Zc(t)||!$x(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const dl=JSON.parse('{"atlos_feeder_db_storage":{"name":"atlos_feeder_db_storage","display_name":"Atlos Feeder Database Storage","manifest":{"name":"Atlos Feeder Database Storage","author":"Bellingcat","type":["feeder","database","storage"],"requires_setup":true,"description":"\\n A module that integrates with the Atlos API to fetch source material URLs for archival, uplaod extracted media,\\n \\n [Atlos](https://www.atlos.org/) is a visual investigation and archiving platform designed for investigative research, journalism, and open-source intelligence (OSINT). \\n It helps users organize, analyze, and store media from various sources, making it easier to track and investigate digital evidence.\\n \\n To get started create a new project and obtain an API token from the settings page. You can group event\'s into Atlos\'s \'incidents\'.\\n Here you can add \'source material\' by URLn and the Atlos feeder will fetch these URLs for archival.\\n \\n You can use Atlos only as a \'feeder\', however you can also implement the \'database\' and \'storage\' features to store the media files in Atlos which is recommended.\\n The Auto Archiver will retain the Atlos ID for each item, ensuring that the media and database outputs are uplaoded back into the relevant media item.\\n \\n \\n ### Features\\n - Connects to the Atlos API to retrieve a list of source material URLs.\\n - Iterates through the URLs from all source material items which are unprocessed, visible, and ready to archive.\\n - If the storage option is selected, it will store the media files alongside the original source material item in Atlos.\\n - Is the database option is selected it will output the results to the media item, as well as updating failure status with error details when archiving fails.\\n - Skips Storege/ database upload for items without an Atlos ID - restricting that you must use the Atlos feeder so that it has the Atlos ID to store the results with.\\n\\n ### Notes\\n - Requires an Atlos account with a project and a valid API token for authentication.\\n - Ensures only unprocessed, visible, and ready-to-archive URLs are returned.\\n - Feches any media items within an Atlos project, regardless of separation into incidents.\\n ","dependencies":{"python":["loguru","requests"]},"entry_point":"atlos_feeder_db_storage::AtlosFeederDbStorage","version":"1.0","configs":{"api_token":{"type":"str","required":true,"help":"An Atlos API token. For more information, see https://docs.atlos.org/technical/api/"},"atlos_url":{"default":"https://platform.atlos.org","help":"The URL of your Atlos instance (e.g., https://platform.atlos.org), without a trailing slash.","type":"str"}}},"configs":{"api_token":{"type":"str","required":true,"help":"An Atlos API token. For more information, see https://docs.atlos.org/technical/api/"},"atlos_url":{"default":"https://platform.atlos.org","help":"The URL of your Atlos instance (e.g., https://platform.atlos.org), without a trailing slash.","type":"str"}}},"csv_feeder":{"name":"csv_feeder","display_name":"CSV Feeder","manifest":{"name":"CSV Feeder","author":"Bellingcat","type":["feeder"],"requires_setup":true,"description":"\\n Reads URLs from CSV files and feeds them into the archiving process.\\n\\n ### Features\\n - Supports reading URLs from multiple input files, specified as a comma-separated list.\\n - Allows specifying the column number or name to extract URLs from.\\n - Skips header rows if the first value is not a valid URL.\\n\\n ### Setup\\n - Input files should be formatted with one URL per line, with or without a header row.\\n - If you have a header row, you can specify the column number or name to read URLs from using the \'column\' config option.\\n ","dependencies":{"python":["loguru"],"bin":[""]},"entry_point":"csv_feeder::CSVFeeder","version":"1.0","configs":{"files":{"default":null,"help":"Path to the input file(s) to read the URLs from, comma separated. Input files should be formatted with one URL per line","required":true,"type":"valid_file","nargs":"+"},"column":{"default":null,"help":"Column number or name to read the URLs from, 0-indexed"}}},"configs":{"files":{"default":null,"help":"Path to the input file(s) to read the URLs from, comma separated. Input files should be formatted with one URL per line","required":true,"type":"valid_file","nargs":"+"},"column":{"default":null,"help":"Column number or name to read the URLs from, 0-indexed"}}},"gsheet_feeder_db":{"name":"gsheet_feeder_db","display_name":"Google Sheets Feeder Database","manifest":{"name":"Google Sheets Feeder Database","author":"Bellingcat","type":["feeder","database"],"requires_setup":true,"description":"\\n GsheetsFeederDatabase\\n A Google Sheets-based feeder and optional database for the Auto Archiver.\\n\\n This reads data from Google Sheets and filters rows based on user-defined rules.\\n The filtered rows are processed into `Metadata` objects.\\n\\n ### Features\\n - Validates the sheet structure and filters rows based on input configurations.\\n - Processes only worksheets allowed by the `allow_worksheets` and `block_worksheets` configurations.\\n - Ensures only rows with valid URLs and unprocessed statuses are included for archival.\\n - Supports organizing stored files into folder paths based on sheet and worksheet names.\\n - If the database is enabled, this updates the Google Sheet with the status of the archived URLs, including in progress, success or failure, and method used.\\n - Saves metadata such as title, text, timestamp, hashes, screenshots, and media URLs to designated columns.\\n - Formats media-specific metadata, such as thumbnails and PDQ hashes for the sheet.\\n - Skips redundant updates for empty or invalid data fields.\\n\\n ### Setup\\n - Requires a Google Service Account JSON file for authentication, which should be stored in `secrets/gsheets_service_account.json`.\\n To set up a service account, follow the instructions [here](https://gspread.readthedocs.io/en/latest/oauth2.html).\\n - Define the `sheet` or `sheet_id` configuration to specify the sheet to archive.\\n - Customize the column names in your Google sheet using the `columns` configuration.\\n - The Google Sheet can be used soley as a feeder or as a feeder and database, but note you can\'t currently feed into the database from an alternate feeder.\\n ","dependencies":{"python":["loguru","gspread","slugify"]},"entry_point":"gsheet_feeder_db::GsheetsFeederDB","version":"1.0","configs":{"sheet":{"default":null,"help":"name of the sheet to archive"},"sheet_id":{"default":null,"help":"the id of the sheet to archive (alternative to \'sheet\' config)"},"header":{"default":1,"type":"int","help":"index of the header row (starts at 1)"},"service_account":{"default":"secrets/service_account.json","help":"service account JSON file path. Learn how to create one: https://gspread.readthedocs.io/en/latest/oauth2.html","required":true},"columns":{"default":{"url":"link","status":"archive status","folder":"destination folder","archive":"archive location","date":"archive date","thumbnail":"thumbnail","timestamp":"upload timestamp","title":"upload title","text":"text content","screenshot":"screenshot","hash":"hash","pdq_hash":"perceptual hashes","wacz":"wacz","replaywebpage":"replaywebpage"},"help":"Custom names for the columns in your Google sheet. If you don\'t want to use the default column names, change them with this setting","type":"json_loader"},"allow_worksheets":{"default":[],"help":"(CSV) only worksheets whose name is included in allow are included (overrides worksheet_block), leave empty so all are allowed"},"block_worksheets":{"default":[],"help":"(CSV) explicitly block some worksheets from being processed"},"use_sheet_names_in_stored_paths":{"default":true,"type":"bool","help":"if True the stored files path will include \'workbook_name/worksheet_name/...\'"}}},"configs":{"sheet":{"default":null,"help":"name of the sheet to archive"},"sheet_id":{"default":null,"help":"the id of the sheet to archive (alternative to \'sheet\' config)"},"header":{"default":1,"type":"int","help":"index of the header row (starts at 1)"},"service_account":{"default":"secrets/service_account.json","help":"service account JSON file path. Learn how to create one: https://gspread.readthedocs.io/en/latest/oauth2.html","required":true},"columns":{"default":{"url":"link","status":"archive status","folder":"destination folder","archive":"archive location","date":"archive date","thumbnail":"thumbnail","timestamp":"upload timestamp","title":"upload title","text":"text content","screenshot":"screenshot","hash":"hash","pdq_hash":"perceptual hashes","wacz":"wacz","replaywebpage":"replaywebpage"},"help":"Custom names for the columns in your Google sheet. If you don\'t want to use the default column names, change them with this setting","type":"json_loader"},"allow_worksheets":{"default":[],"help":"(CSV) only worksheets whose name is included in allow are included (overrides worksheet_block), leave empty so all are allowed"},"block_worksheets":{"default":[],"help":"(CSV) explicitly block some worksheets from being processed"},"use_sheet_names_in_stored_paths":{"default":true,"type":"bool","help":"if True the stored files path will include \'workbook_name/worksheet_name/...\'"}}},"cli_feeder":{"name":"cli_feeder","display_name":"Command Line Feeder","manifest":{"name":"Command Line Feeder","author":"Bellingcat","type":["feeder"],"requires_setup":false,"description":"\\nThe Command Line Feeder is the default enabled feeder for the Auto Archiver. It allows you to pass URLs directly to the orchestrator from the command line \\nwithout the need to specify any additional configuration or command line arguments:\\n\\n`auto-archiver --feeder cli_feeder -- \\"https://example.com/1/,https://example.com/2/\\"`\\n\\nYou can pass multiple URLs by separating them with a space. The URLs will be processed in the order they are provided.\\n\\n`auto-archiver --feeder cli_feeder -- https://example.com/1/ https://example.com/2/`\\n","dependencies":{},"entry_point":"cli_feeder::CLIFeeder","version":"1.0","configs":{"urls":{"default":null,"help":"URL(s) to archive, either a single URL or a list of urls, should not come from config.yaml"}}},"configs":{"urls":{"default":null,"help":"URL(s) to archive, either a single URL or a list of urls, should not come from config.yaml"}}},"instagram_api_extractor":{"name":"instagram_api_extractor","display_name":"Instagram API Extractor","manifest":{"name":"Instagram API Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\nArchives various types of Instagram content using the Instagrapi API.\\n\\nRequires setting up an Instagrapi API deployment and providing an access token and API endpoint.\\n\\n### Features\\n- Connects to an Instagrapi API deployment to fetch Instagram profiles, posts, stories, highlights, reels, and tagged content.\\n- Supports advanced configuration options, including:\\n - Full profile download (all posts, stories, highlights, and tagged content).\\n - Limiting the number of posts to fetch for large profiles.\\n - Minimising JSON output to remove empty fields and redundant data.\\n- Provides robust error handling and retries for API calls.\\n- Ensures efficient media scraping, including handling nested or carousel media items.\\n- Adds downloaded media and metadata to the result for further processing.\\n\\n### Notes\\n- Requires a valid Instagrapi API token (`access_token`) and API endpoint (`api_endpoint`).\\n- Full-profile downloads can be limited by setting `full_profile_max_posts`.\\n- Designed to fetch content in batches for large profiles, minimising API load.\\n","dependencies":{"python":["requests","loguru","retrying","tqdm"]},"entry_point":"instagram_api_extractor::InstagramAPIExtractor","version":"1.0","configs":{"access_token":{"default":null,"help":"a valid instagrapi-api token"},"api_endpoint":{"required":true,"help":"API endpoint to use"},"full_profile":{"default":false,"type":"bool","help":"if true, will download all posts, tagged posts, stories, and highlights for a profile, if false, will only download the profile pic and information."},"full_profile_max_posts":{"default":0,"type":"int","help":"Use to limit the number of posts to download when full_profile is true. 0 means no limit. limit is applied softly since posts are fetched in batch, once to: posts, tagged posts, and highlights"},"minimize_json_output":{"default":true,"type":"bool","help":"if true, will remove empty values from the json output"}}},"configs":{"access_token":{"default":null,"help":"a valid instagrapi-api token"},"api_endpoint":{"required":true,"help":"API endpoint to use"},"full_profile":{"default":false,"type":"bool","help":"if true, will download all posts, tagged posts, stories, and highlights for a profile, if false, will only download the profile pic and information."},"full_profile_max_posts":{"default":0,"type":"int","help":"Use to limit the number of posts to download when full_profile is true. 0 means no limit. limit is applied softly since posts are fetched in batch, once to: posts, tagged posts, and highlights"},"minimize_json_output":{"default":true,"type":"bool","help":"if true, will remove empty values from the json output"}}},"instagram_tbot_extractor":{"name":"instagram_tbot_extractor","display_name":"Instagram Telegram Bot Extractor","manifest":{"name":"Instagram Telegram Bot Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\nThe `InstagramTbotExtractor` module uses a Telegram bot (`instagram_load_bot`) to fetch and archive Instagram content,\\nsuch as posts and stories. It leverages the Telethon library to interact with the Telegram API, sending Instagram URLs\\nto the bot and downloading the resulting media and metadata. The downloaded content is stored as `Media` objects and\\nreturned as part of a `Metadata` object.\\n\\n### Features\\n- Supports archiving Instagram posts and stories through the Telegram bot.\\n- Downloads and saves media files (e.g., images, videos) in a temporary directory.\\n- Captures and returns metadata, including titles and descriptions, as a `Metadata` object.\\n- Automatically manages Telegram session files for secure access.\\n\\n### Setup\\n\\nTo use the `InstagramTbotExtractor`, you need to provide the following configuration settings:\\n- **API ID and Hash**: Telegram API credentials obtained from [my.telegram.org/apps](https://my.telegram.org/apps).\\n- **Session File**: Optional path to store the Telegram session file for future use.\\n- The session file is created automatically and should be unique for each instance.\\n- You may need to enter your Telegram credentials (phone) and use the a 2FA code sent to you the first time you run the extractor.:\\n```2025-01-30 00:43:49.348 | INFO | auto_archiver.modules.instagram_tbot_extractor.instagram_tbot_extractor:setup:36 - SETUP instagram_tbot_extractor checking login...\\nPlease enter your phone (or bot token): +447123456789\\nPlease enter the code you received: 00000\\nSigned in successfully as E C; remember to not break the ToS or you will risk an account ban!\\n```\\n ","dependencies":{"python":["loguru","telethon"]},"entry_point":"","version":"1.0","configs":{"api_id":{"default":null,"help":"telegram API_ID value, go to https://my.telegram.org/apps"},"api_hash":{"default":null,"help":"telegram API_HASH value, go to https://my.telegram.org/apps"},"session_file":{"default":"secrets/anon-insta","help":"optional, records the telegram login session for future usage, \'.session\' will be appended to the provided value."},"timeout":{"default":45,"type":"int","help":"timeout to fetch the instagram content in seconds."}}},"configs":{"api_id":{"default":null,"help":"telegram API_ID value, go to https://my.telegram.org/apps"},"api_hash":{"default":null,"help":"telegram API_HASH value, go to https://my.telegram.org/apps"},"session_file":{"default":"secrets/anon-insta","help":"optional, records the telegram login session for future usage, \'.session\' will be appended to the provided value."},"timeout":{"default":45,"type":"int","help":"timeout to fetch the instagram content in seconds."}}},"twitter_api_extractor":{"name":"twitter_api_extractor","display_name":"Twitter API Extractor","manifest":{"name":"Twitter API Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\n The `TwitterApiExtractor` fetches tweets and associated media using the Twitter API. \\n It supports multiple API configurations for extended rate limits and reliable access. \\n Features include URL expansion, media downloads (e.g., images, videos), and structured output \\n via `Metadata` and `Media` objects. Requires Twitter API credentials such as bearer tokens \\n or consumer key/secret and access token/secret.\\n \\n ### Features\\n - Fetches tweets and their metadata, including text, creation timestamp, and author information.\\n - Downloads media attachments (e.g., images, videos) in high quality.\\n - Supports multiple API configurations for improved rate limiting.\\n - Expands shortened URLs (e.g., `t.co` links).\\n - Outputs structured metadata and media using `Metadata` and `Media` objects.\\n \\n ### Setup\\n To use the `TwitterApiExtractor`, you must provide valid Twitter API credentials via configuration:\\n - **Bearer Token(s)**: A single token or a list for rate-limited API access.\\n - **Consumer Key and Secret**: Required for user-authenticated API access.\\n - **Access Token and Secret**: Complements the consumer key for enhanced API capabilities.\\n \\n Credentials can be obtained by creating a Twitter developer account at [Twitter Developer Platform](https://developer.twitter.com/en).\\n ","dependencies":{"python":["requests","loguru","pytwitter","slugify"],"bin":[""]},"entry_point":"","version":"1.0","configs":{"bearer_token":{"default":null,"help":"[deprecated: see bearer_tokens] twitter API bearer_token which is enough for archiving, if not provided you will need consumer_key, consumer_secret, access_token, access_secret"},"bearer_tokens":{"default":[],"help":" a list of twitter API bearer_token which is enough for archiving, if not provided you will need consumer_key, consumer_secret, access_token, access_secret, if provided you can still add those for better rate limits. CSV of bearer tokens if provided via the command line"},"consumer_key":{"default":null,"help":"twitter API consumer_key"},"consumer_secret":{"default":null,"help":"twitter API consumer_secret"},"access_token":{"default":null,"help":"twitter API access_token"},"access_secret":{"default":null,"help":"twitter API access_secret"}}},"configs":{"bearer_token":{"default":null,"help":"[deprecated: see bearer_tokens] twitter API bearer_token which is enough for archiving, if not provided you will need consumer_key, consumer_secret, access_token, access_secret"},"bearer_tokens":{"default":[],"help":" a list of twitter API bearer_token which is enough for archiving, if not provided you will need consumer_key, consumer_secret, access_token, access_secret, if provided you can still add those for better rate limits. CSV of bearer tokens if provided via the command line"},"consumer_key":{"default":null,"help":"twitter API consumer_key"},"consumer_secret":{"default":null,"help":"twitter API consumer_secret"},"access_token":{"default":null,"help":"twitter API access_token"},"access_secret":{"default":null,"help":"twitter API access_secret"}}},"instagram_extractor":{"name":"instagram_extractor","display_name":"Instagram Extractor","manifest":{"name":"Instagram Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\n Uses the [Instaloader library](https://instaloader.github.io/as-module.html) to download content from Instagram. \\n \\n > ⚠️ **Warning** \\n > This module is not actively maintained due to known issues with blocking. \\n > Prioritise usage of the [Instagram Tbot Extractor](./instagram_tbot_extractor.md) and [Instagram API Extractor](./instagram_api_extractor.md)\\n \\n This class handles both individual posts and user profiles, downloading as much information as possible, including images, videos, text, stories,\\n highlights, and tagged posts. \\n Authentication is required via username/password or a session file.\\n \\n ","dependencies":{"python":["instaloader","loguru"]},"entry_point":"","version":"1.0","configs":{"username":{"required":true,"help":"A valid Instagram username."},"password":{"required":true,"help":"The corresponding Instagram account password."},"download_folder":{"default":"instaloader","help":"Name of a folder to temporarily download content to."},"session_file":{"default":"secrets/instaloader.session","help":"Path to the instagram session file which saves session credentials. If one doesn\'t exist this gives the path to store a new one."}}},"configs":{"username":{"required":true,"help":"A valid Instagram username."},"password":{"required":true,"help":"The corresponding Instagram account password."},"download_folder":{"default":"instaloader","help":"Name of a folder to temporarily download content to."},"session_file":{"default":"secrets/instaloader.session","help":"Path to the instagram session file which saves session credentials. If one doesn\'t exist this gives the path to store a new one."}}},"telethon_extractor":{"name":"telethon_extractor","display_name":"Telethon Extractor","manifest":{"name":"Telethon Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\nThe `TelethonExtractor` uses the Telethon library to archive posts and media from Telegram channels and groups. \\nIt supports private and public channels, downloading grouped posts with media, and can join channels using invite links \\nif provided in the configuration. \\n\\n### Features\\n- Fetches posts and metadata from Telegram channels and groups, including private channels.\\n- Downloads media attachments (e.g., images, videos, audio) from individual posts or grouped posts.\\n- Handles channel invites to join channels dynamically during setup.\\n- Utilizes Telethon\'s capabilities for reliable Telegram interactions.\\n- Outputs structured metadata and media using `Metadata` and `Media` objects.\\n\\n### Setup\\nTo use the `TelethonExtractor`, you must configure the following:\\n- **API ID and API Hash**: Obtain these from [my.telegram.org](https://my.telegram.org/apps).\\n- **Session File**: Optional, but records login sessions for future use (default: `secrets/anon.session`).\\n- **Bot Token**: Optional, allows access to additional content (e.g., large videos) but limits private channel archiving.\\n- **Channel Invites**: Optional, specify a JSON string of invite links to join channels during setup.\\n\\n### First Time Login\\nThe first time you run, you will be prompted to do a authentication with the phone number associated, alternatively you can put your `anon.session` in the root.\\n\\n\\n","dependencies":{"python":["telethon","loguru","tqdm"],"bin":[""]},"entry_point":"","version":"1.0","configs":{"api_id":{"default":null,"help":"telegram API_ID value, go to https://my.telegram.org/apps"},"api_hash":{"default":null,"help":"telegram API_HASH value, go to https://my.telegram.org/apps"},"bot_token":{"default":null,"help":"optional, but allows access to more content such as large videos, talk to @botfather"},"session_file":{"default":"secrets/anon","help":"optional, records the telegram login session for future usage, \'.session\' will be appended to the provided value."},"join_channels":{"default":true,"type":"bool","help":"disables the initial setup with channel_invites config, useful if you have a lot and get stuck"},"channel_invites":{"default":{},"help":"(JSON string) private channel invite links (format: t.me/joinchat/HASH OR t.me/+HASH) and (optional but important to avoid hanging for minutes on startup) channel id (format: CHANNEL_ID taken from a post url like https://t.me/c/CHANNEL_ID/1), the telegram account will join any new channels on setup","type":"json_loader"}}},"configs":{"api_id":{"default":null,"help":"telegram API_ID value, go to https://my.telegram.org/apps"},"api_hash":{"default":null,"help":"telegram API_HASH value, go to https://my.telegram.org/apps"},"bot_token":{"default":null,"help":"optional, but allows access to more content such as large videos, talk to @botfather"},"session_file":{"default":"secrets/anon","help":"optional, records the telegram login session for future usage, \'.session\' will be appended to the provided value."},"join_channels":{"default":true,"type":"bool","help":"disables the initial setup with channel_invites config, useful if you have a lot and get stuck"},"channel_invites":{"default":{},"help":"(JSON string) private channel invite links (format: t.me/joinchat/HASH OR t.me/+HASH) and (optional but important to avoid hanging for minutes on startup) channel id (format: CHANNEL_ID taken from a post url like https://t.me/c/CHANNEL_ID/1), the telegram account will join any new channels on setup","type":"json_loader"}}},"vk_extractor":{"name":"vk_extractor","display_name":"VKontakte Extractor","manifest":{"name":"VKontakte Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\nThe `VkExtractor` fetches posts, text, and images from VK (VKontakte) social media pages. \\nThis archiver is specialized for `/wall` posts and uses the `VkScraper` library to extract \\nand download content. Note that VK videos are handled separately by the `YTDownloader`.\\n\\n### Features\\n- Extracts text, timestamps, and metadata from VK `/wall` posts.\\n- Downloads associated images and attaches them to the resulting `Metadata` object.\\n- Processes multiple segments of VK URLs that contain mixed content (e.g., wall, photo).\\n- Outputs structured metadata and media using `Metadata` and `Media` objects.\\n\\n### Setup\\nTo use the `VkArchiver`, you must provide valid VKontakte login credentials and session information:\\n- **Username**: A valid VKontakte account username.\\n- **Password**: The corresponding password for the VKontakte account.\\n- **Session File**: Optional. Path to a session configuration file (`.json`) for persistent VK login.\\n\\nCredentials can be set in the configuration file or directly via environment variables. Ensure you \\nhave access to the VKontakte API by creating an account at [VKontakte](https://vk.com/).\\n","dependencies":{"python":["loguru","vk_url_scraper"]},"entry_point":"","version":"1.0","configs":{"username":{"required":true,"help":"valid VKontakte username"},"password":{"required":true,"help":"valid VKontakte password"},"session_file":{"default":"secrets/vk_config.v2.json","help":"valid VKontakte password"}},"depends":["core","utils"]},"configs":{"username":{"required":true,"help":"valid VKontakte username"},"password":{"required":true,"help":"valid VKontakte password"},"session_file":{"default":"secrets/vk_config.v2.json","help":"valid VKontakte password"}}},"generic_extractor":{"name":"generic_extractor","display_name":"Generic Extractor","manifest":{"name":"Generic Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":false,"description":"\\nThis is the generic extractor used by auto-archiver, which uses `yt-dlp` under the hood.\\n\\nThis module is responsible for downloading and processing media content from platforms\\nsupported by `yt-dlp`, such as YouTube, Facebook, and others. It provides functionality\\nfor retrieving videos, subtitles, comments, and other metadata, and it integrates with\\nthe broader archiving framework.\\n\\n### Features\\n- Supports downloading videos and playlists.\\n- Retrieves metadata like titles, descriptions, upload dates, and durations.\\n- Downloads subtitles and comments when enabled.\\n- Configurable options for handling live streams, proxies, and more.\\n- Supports authentication of websites using the \'authentication\' settings from your orchestration.\\n\\n### Dropins\\n- For websites supported by `yt-dlp` that also contain posts in addition to videos\\n (e.g. Facebook, Twitter, Bluesky), dropins can be created to extract post data and create \\n metadata objects. Some dropins are included in this generic_archiver by default, but\\ncustom dropins can be created to handle additional websites and passed to the archiver\\nvia the command line using the `--dropins` option (TODO!).\\n\\n### Auto-Updates\\n\\nThe Generic Extractor will also automatically check for updates to `yt-dlp` (every 5 days by default).\\nThis can be configured using the `ytdlp_update_interval` setting (or disabled by setting it to -1).\\nIf you are having issues with the extractor, you can review the version of `yt-dlp` being used with `yt-dlp --version`.\\n\\n","dependencies":{"python":["yt_dlp","requests","loguru","slugify"]},"entry_point":"","version":"0.1.0","configs":{"subtitles":{"default":true,"help":"download subtitles if available","type":"bool"},"comments":{"default":false,"help":"download all comments if available, may lead to large metadata","type":"bool"},"livestreams":{"default":false,"help":"if set, will download live streams, otherwise will skip them; see --max-filesize for more control","type":"bool"},"live_from_start":{"default":false,"help":"if set, will download live streams from their earliest available moment, otherwise starts now.","type":"bool"},"proxy":{"default":"","help":"http/socks (https seems to not work atm) proxy to use for the webdriver, eg https://proxy-user:password@proxy-ip:port"},"end_means_success":{"default":true,"help":"if True, any archived content will mean a \'success\', if False this archiver will not return a \'success\' stage; this is useful for cases when the yt-dlp will archive a video but ignore other types of content like images or text only pages that the subsequent archivers can retrieve.","type":"bool"},"allow_playlist":{"default":false,"help":"If True will also download playlists, set to False if the expectation is to download a single video.","type":"bool"},"max_downloads":{"default":"inf","help":"Use to limit the number of videos to download when a channel or long page is being extracted. \'inf\' means no limit."},"ytdlp_update_interval":{"default":5,"help":"How often to check for yt-dlp updates (days). If positive, will check and update yt-dlp every [num] days. Set it to -1 to disable, or 0 to always update on every run.","type":"int"}}},"configs":{"subtitles":{"default":true,"help":"download subtitles if available","type":"bool"},"comments":{"default":false,"help":"download all comments if available, may lead to large metadata","type":"bool"},"livestreams":{"default":false,"help":"if set, will download live streams, otherwise will skip them; see --max-filesize for more control","type":"bool"},"live_from_start":{"default":false,"help":"if set, will download live streams from their earliest available moment, otherwise starts now.","type":"bool"},"proxy":{"default":"","help":"http/socks (https seems to not work atm) proxy to use for the webdriver, eg https://proxy-user:password@proxy-ip:port"},"end_means_success":{"default":true,"help":"if True, any archived content will mean a \'success\', if False this archiver will not return a \'success\' stage; this is useful for cases when the yt-dlp will archive a video but ignore other types of content like images or text only pages that the subsequent archivers can retrieve.","type":"bool"},"allow_playlist":{"default":false,"help":"If True will also download playlists, set to False if the expectation is to download a single video.","type":"bool"},"max_downloads":{"default":"inf","help":"Use to limit the number of videos to download when a channel or long page is being extracted. \'inf\' means no limit."},"ytdlp_update_interval":{"default":5,"help":"How often to check for yt-dlp updates (days). If positive, will check and update yt-dlp every [num] days. Set it to -1 to disable, or 0 to always update on every run.","type":"int"}}},"tiktok_tikwm_extractor":{"name":"tiktok_tikwm_extractor","display_name":"Tiktok Tikwm Extractor","manifest":{"name":"Tiktok Tikwm Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":false,"description":"\\n Uses an unofficial TikTok video download platform\'s API to download videos: https://tikwm.com/\\n\\t\\n\\tThis extractor complements the generic_extractor which can already get TikTok videos, but this one can extract special videos like those marked as sensitive.\\n\\n ### Features\\n - Downloads the video and, if possible, also the video cover.\\n\\t- Stores extra metadata about the post like author information, and more as returned by tikwm.com. \\n\\n ### Notes\\n - If tikwm.com is down, this extractor will not work.\\n\\t- If tikwm.com changes their API, this extractor may break.\\n\\t- If no video is found, this extractor will consider the extraction failed.\\n ","dependencies":{"python":["loguru","requests"],"bin":[]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"telegram_extractor":{"name":"telegram_extractor","display_name":"Telegram Extractor","manifest":{"name":"Telegram Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":false,"description":" \\n The `TelegramExtractor` retrieves publicly available media content from Telegram message links without requiring login credentials. \\n It processes URLs to fetch images and videos embedded in Telegram messages, ensuring a structured output using `Metadata` \\n and `Media` objects. Recommended for scenarios where login-based archiving is not viable, although `telethon_archiver` \\n is advised for more comprehensive functionality, and higher quality media extraction.\\n \\n ### Features\\n- Extracts images and videos from public Telegram message links (`t.me`).\\n- Processes HTML content of messages to retrieve embedded media.\\n- Sets structured metadata, including timestamps, content, and media details.\\n- Does not require user authentication for Telegram.\\n\\n ","dependencies":{"python":["requests","bs4","loguru"]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"wayback_extractor_enricher":{"name":"wayback_extractor_enricher","display_name":"Wayback Machine Enricher (and Extractor)","manifest":{"name":"Wayback Machine Enricher (and Extractor)","author":"Bellingcat","type":["enricher","extractor"],"requires_setup":true,"description":"\\n Submits the current URL to the Wayback Machine for archiving and returns either a job ID or the completed archive URL.\\n\\n ### Features\\n - Archives URLs using the Internet Archive\'s Wayback Machine API.\\n - Supports conditional archiving based on the existence of prior archives within a specified time range.\\n - Provides proxies for HTTP and HTTPS requests.\\n - Fetches and confirms the archive URL or provides a job ID for later status checks.\\n\\n ### Notes\\n - Requires a valid Wayback Machine API key and secret.\\n - Handles rate-limiting by Wayback Machine and retries status checks with exponential backoff.\\n \\n ### Steps to Get an Wayback API Key:\\n - Sign up for an account at [Internet Archive](https://archive.org/account/signup).\\n - Log in to your account.\\n - Navigte to your [account settings](https://archive.org/account).\\n - or: https://archive.org/developers/tutorial-get-ia-credentials.html\\n - Under Wayback Machine API Keys, generate a new key.\\n - Note down your API key and secret, as they will be required for authentication.\\n ","dependencies":{"python":["loguru","requests"]},"entry_point":"wayback_extractor_enricher::WaybackExtractorEnricher","version":"1.0","configs":{"timeout":{"default":15,"type":"int","help":"seconds to wait for successful archive confirmation from wayback, if more than this passes the result contains the job_id so the status can later be checked manually."},"if_not_archived_within":{"default":null,"help":"only tell wayback to archive if no archive is available before the number of seconds specified, use None to ignore this option. For more information: https://docs.google.com/document/d/1Nsv52MvSjbLb2PCpHlat0gkzw0EvtSgpKHu4mk0MnrA"},"key":{"required":true,"help":"wayback API key. to get credentials visit https://archive.org/account/s3.php"},"secret":{"required":true,"help":"wayback API secret. to get credentials visit https://archive.org/account/s3.php"},"proxy_http":{"default":null,"help":"http proxy to use for wayback requests, eg http://proxy-user:password@proxy-ip:port"},"proxy_https":{"default":null,"help":"https proxy to use for wayback requests, eg https://proxy-user:password@proxy-ip:port"}}},"configs":{"timeout":{"default":15,"type":"int","help":"seconds to wait for successful archive confirmation from wayback, if more than this passes the result contains the job_id so the status can later be checked manually."},"if_not_archived_within":{"default":null,"help":"only tell wayback to archive if no archive is available before the number of seconds specified, use None to ignore this option. For more information: https://docs.google.com/document/d/1Nsv52MvSjbLb2PCpHlat0gkzw0EvtSgpKHu4mk0MnrA"},"key":{"required":true,"help":"wayback API key. to get credentials visit https://archive.org/account/s3.php"},"secret":{"required":true,"help":"wayback API secret. to get credentials visit https://archive.org/account/s3.php"},"proxy_http":{"default":null,"help":"http proxy to use for wayback requests, eg http://proxy-user:password@proxy-ip:port"},"proxy_https":{"default":null,"help":"https proxy to use for wayback requests, eg https://proxy-user:password@proxy-ip:port"}}},"wacz_extractor_enricher":{"name":"wacz_extractor_enricher","display_name":"WACZ Enricher (and Extractor)","manifest":{"name":"WACZ Enricher (and Extractor)","author":"Bellingcat","type":["enricher","extractor"],"requires_setup":true,"description":"\\n Creates .WACZ archives of web pages using the `browsertrix-crawler` tool, with options for media extraction and screenshot saving.\\n [Browsertrix-crawler](https://crawler.docs.browsertrix.com/user-guide/) is a headless browser-based crawler that archives web pages in WACZ format.\\n\\n ### Features\\n - Archives web pages into .WACZ format using Docker or direct invocation of `browsertrix-crawler`.\\n - Supports custom profiles for archiving private or dynamic content.\\n - Extracts media (images, videos, audio) and screenshots from the archive, optionally adding them to the enrichment pipeline.\\n - Generates metadata from the archived page\'s content and structure (e.g., titles, text).\\n\\n ### Notes\\n - Requires Docker for running `browsertrix-crawler` .\\n - Configurable via parameters for timeout, media extraction, screenshots, and proxy settings.\\n ","dependencies":{"python":["loguru","jsonlines","warcio"],"bin":["docker"]},"entry_point":"wacz_extractor_enricher::WaczExtractorEnricher","version":"1.0","configs":{"profile":{"default":null,"help":"browsertrix-profile (for profile generation see https://github.com/webrecorder/browsertrix-crawler#creating-and-using-browser-profiles)."},"docker_commands":{"default":null,"help":"if a custom docker invocation is needed"},"timeout":{"default":120,"type":"int","help":"timeout for WACZ generation in seconds"},"extract_media":{"default":false,"type":"bool","help":"If enabled all the images/videos/audio present in the WACZ archive will be extracted into separate Media and appear in the html report. The .wacz file will be kept untouched."},"extract_screenshot":{"default":true,"type":"bool","help":"If enabled the screenshot captured by browsertrix will be extracted into separate Media and appear in the html report. The .wacz file will be kept untouched."},"socks_proxy_host":{"default":null,"help":"SOCKS proxy host for browsertrix-crawler, use in combination with socks_proxy_port. eg: user:password@host"},"socks_proxy_port":{"default":null,"type":"int","help":"SOCKS proxy port for browsertrix-crawler, use in combination with socks_proxy_host. eg 1234"},"proxy_server":{"default":null,"help":"SOCKS server proxy URL, in development"}}},"configs":{"profile":{"default":null,"help":"browsertrix-profile (for profile generation see https://github.com/webrecorder/browsertrix-crawler#creating-and-using-browser-profiles)."},"docker_commands":{"default":null,"help":"if a custom docker invocation is needed"},"timeout":{"default":120,"type":"int","help":"timeout for WACZ generation in seconds"},"extract_media":{"default":false,"type":"bool","help":"If enabled all the images/videos/audio present in the WACZ archive will be extracted into separate Media and appear in the html report. The .wacz file will be kept untouched."},"extract_screenshot":{"default":true,"type":"bool","help":"If enabled the screenshot captured by browsertrix will be extracted into separate Media and appear in the html report. The .wacz file will be kept untouched."},"socks_proxy_host":{"default":null,"help":"SOCKS proxy host for browsertrix-crawler, use in combination with socks_proxy_port. eg: user:password@host"},"socks_proxy_port":{"default":null,"type":"int","help":"SOCKS proxy port for browsertrix-crawler, use in combination with socks_proxy_host. eg 1234"},"proxy_server":{"default":null,"help":"SOCKS server proxy URL, in development"}}},"metadata_enricher":{"name":"metadata_enricher","display_name":"Media Metadata Enricher","manifest":{"name":"Media Metadata Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":true,"description":"\\n Extracts metadata information from files using ExifTool.\\n\\n ### Features\\n - Uses ExifTool to extract detailed metadata from media files.\\n - Processes file-specific data like camera settings, geolocation, timestamps, and other embedded metadata.\\n - Adds extracted metadata to the corresponding `Media` object within the `Metadata`.\\n\\n ### Notes\\n - Requires ExifTool to be installed and accessible via the system\'s PATH.\\n - Skips enrichment for files where metadata extraction fails.\\n ","dependencies":{"python":["loguru"],"bin":["exiftool"]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"timestamping_enricher":{"name":"timestamping_enricher","display_name":"Timestamping Enricher","manifest":{"name":"Timestamping Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":true,"description":"\\n Generates RFC3161-compliant timestamp tokens using Time Stamp Authorities (TSA) for archived files.\\n\\n ### Features\\n - Creates timestamp tokens to prove the existence of files at a specific time, useful for legal and authenticity purposes.\\n - Aggregates file hashes into a text file and timestamps the concatenated data.\\n - Uses multiple Time Stamp Authorities (TSAs) to ensure reliability and redundancy.\\n - Validates timestamping certificates against trusted Certificate Authorities (CAs) using the `certifi` trust store.\\n\\n ### Notes\\n - Should be run after the `hash_enricher` to ensure file hashes are available.\\n - Requires internet access to interact with the configured TSAs.\\n ","dependencies":{"python":["loguru","slugify","tsp_client","asn1crypto","certvalidator","certifi"]},"entry_point":"","version":"1.0","configs":{"tsa_urls":{"default":["http://timestamp.digicert.com","http://timestamp.identrust.com","http://timestamp.globalsign.com/tsa/r6advanced1","http://tss.accv.es:8318/tsa"],"help":"List of RFC3161 Time Stamp Authorities to use, separate with commas if passed via the command line."}}},"configs":{"tsa_urls":{"default":["http://timestamp.digicert.com","http://timestamp.identrust.com","http://timestamp.globalsign.com/tsa/r6advanced1","http://tss.accv.es:8318/tsa"],"help":"List of RFC3161 Time Stamp Authorities to use, separate with commas if passed via the command line."}}},"screenshot_enricher":{"name":"screenshot_enricher","display_name":"Screenshot Enricher","manifest":{"name":"Screenshot Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":true,"description":"\\n Captures screenshots and optionally saves web pages as PDFs using a WebDriver.\\n\\n ### Features\\n - Takes screenshots of web pages, with configurable width, height, and timeout settings.\\n - Optionally saves pages as PDFs, with additional configuration for PDF printing options.\\n - Bypasses URLs detected as authentication walls.\\n - Integrates seamlessly with the metadata enrichment pipeline, adding screenshots and PDFs as media.\\n\\n ### Notes\\n - Requires a WebDriver (e.g., ChromeDriver) installed and accessible via the system\'s PATH.\\n ","dependencies":{"python":["loguru","selenium"]},"entry_point":"","version":"1.0","configs":{"width":{"default":1280,"type":"int","help":"width of the screenshots"},"height":{"default":1024,"type":"int","help":"height of the screenshots"},"timeout":{"default":60,"type":"int","help":"timeout for taking the screenshot"},"sleep_before_screenshot":{"default":4,"type":"int","help":"seconds to wait for the pages to load before taking screenshot"},"http_proxy":{"default":"","help":"http proxy to use for the webdriver, eg http://proxy-user:password@proxy-ip:port"},"save_to_pdf":{"default":false,"type":"bool","help":"save the page as pdf along with the screenshot. PDF saving options can be adjusted with the \'print_options\' parameter"},"print_options":{"default":{},"help":"options to pass to the pdf printer, in JSON format. See https://www.selenium.dev/documentation/webdriver/interactions/print_page/ for more information","type":"json_loader"}}},"configs":{"width":{"default":1280,"type":"int","help":"width of the screenshots"},"height":{"default":1024,"type":"int","help":"height of the screenshots"},"timeout":{"default":60,"type":"int","help":"timeout for taking the screenshot"},"sleep_before_screenshot":{"default":4,"type":"int","help":"seconds to wait for the pages to load before taking screenshot"},"http_proxy":{"default":"","help":"http proxy to use for the webdriver, eg http://proxy-user:password@proxy-ip:port"},"save_to_pdf":{"default":false,"type":"bool","help":"save the page as pdf along with the screenshot. PDF saving options can be adjusted with the \'print_options\' parameter"},"print_options":{"default":{},"help":"options to pass to the pdf printer, in JSON format. See https://www.selenium.dev/documentation/webdriver/interactions/print_page/ for more information","type":"json_loader"}}},"whisper_enricher":{"name":"whisper_enricher","display_name":"Whisper Enricher","manifest":{"name":"Whisper Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":true,"description":"\\n Integrates with a Whisper API service to transcribe, translate, or detect the language of audio and video files.\\n\\n ### Features\\n - Submits audio or video files to a Whisper API deployment for processing.\\n - Supports operations such as transcription, translation, and language detection.\\n - Optionally generates SRT subtitle files for video content.\\n - Integrates with S3-compatible storage systems to make files publicly accessible for processing.\\n - Handles job submission, status checking, artifact retrieval, and cleanup.\\n\\n ### Notes\\n - Requires a Whisper API endpoint and API key for authentication.\\n - Only compatible with S3-compatible storage systems for media file accessibility.\\n - ** This stores the media files in S3 prior to enriching them as Whisper requires public URLs to access the media files.\\n - Handles multiple jobs and retries for failed or incomplete processing.\\n ","dependencies":{"python":["s3_storage","loguru","requests"]},"entry_point":"","version":"1.0","configs":{"api_endpoint":{"required":true,"help":"WhisperApi api endpoint, eg: https://whisperbox-api.com/api/v1, a deployment of https://github.com/bellingcat/whisperbox-transcribe."},"api_key":{"required":true,"help":"WhisperApi api key for authentication"},"include_srt":{"default":false,"type":"bool","help":"Whether to include a subtitle SRT (SubRip Subtitle file) for the video (can be used in video players)."},"timeout":{"default":90,"type":"int","help":"How many seconds to wait at most for a successful job completion."},"action":{"default":"translate","help":"which Whisper operation to execute","choices":["transcribe","translate","language_detection"]}}},"configs":{"api_endpoint":{"required":true,"help":"WhisperApi api endpoint, eg: https://whisperbox-api.com/api/v1, a deployment of https://github.com/bellingcat/whisperbox-transcribe."},"api_key":{"required":true,"help":"WhisperApi api key for authentication"},"include_srt":{"default":false,"type":"bool","help":"Whether to include a subtitle SRT (SubRip Subtitle file) for the video (can be used in video players)."},"timeout":{"default":90,"type":"int","help":"How many seconds to wait at most for a successful job completion."},"action":{"default":"translate","help":"which Whisper operation to execute","choices":["transcribe","translate","language_detection"]}}},"opentimestamps_enricher":{"name":"opentimestamps_enricher","display_name":"OpenTimestamps Enricher","manifest":{"name":"OpenTimestamps Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":true,"description":"\\n Creates OpenTimestamps proofs for archived files, providing blockchain-backed evidence of file existence at a specific time.\\n\\n Uses OpenTimestamps – a service that timestamps data using the Bitcoin blockchain, providing a decentralized \\n and secure way to prove that data existed at a certain point in time.\\n\\n ### Features\\n - Creates cryptographic timestamp proofs that link files to the Bitcoin blockchain\\n - Verifies existing timestamp proofs to confirm the time a file existed\\n - Uses multiple calendar servers to ensure reliability and redundancy\\n - Stores timestamp proofs alongside original files for future verification\\n\\n ### Notes\\n - Can work offline to create timestamp proofs that can be upgraded later\\n - Verification checks if timestamps have been confirmed in the Bitcoin blockchain\\n - Should run after files have been archived and hashed\\n\\n ### Verifying Timestamps Later\\n If you wish to verify a timestamp (ots) file later, you can install the opentimestamps-client command line tool and use the `ots verify` command.\\n Example: `ots verify my_file.ots`\\n\\n Note: if you\'re using local storage with a filename_generator set to \'static\' (a hash) or random, the files will be renamed when they are saved to the\\n final location meaning you will need to specify the original filename when verifying the timestamp with `ots verify -f original_filename my_file.ots`.\\n ","dependencies":{"python":["loguru","opentimestamps"]},"entry_point":"","version":"1.0","configs":{"use_calendars":{"default":true,"help":"Whether to connect to OpenTimestamps calendar servers to create timestamps. If false, creates local timestamp proofs only.","type":"bool"},"calendar_urls":{"default":["https://alice.btc.calendar.opentimestamps.org","https://bob.btc.calendar.opentimestamps.org","https://finney.calendar.eternitywall.com"],"help":"List of OpenTimestamps calendar servers to use for timestamping. See here for a list of calendars maintained by opentimestamps:https://opentimestamps.org/#calendars","type":"list"},"calendar_whitelist":{"default":[],"help":"Optional whitelist of calendar servers. Override this if you are using your own calendar servers. e.g. [\'https://mycalendar.com\']","type":"list"},"verify_timestamps":{"default":true,"help":"Whether to verify timestamps after creating them.","type":"bool"}}},"configs":{"use_calendars":{"default":true,"help":"Whether to connect to OpenTimestamps calendar servers to create timestamps. If false, creates local timestamp proofs only.","type":"bool"},"calendar_urls":{"default":["https://alice.btc.calendar.opentimestamps.org","https://bob.btc.calendar.opentimestamps.org","https://finney.calendar.eternitywall.com"],"help":"List of OpenTimestamps calendar servers to use for timestamping. See here for a list of calendars maintained by opentimestamps:https://opentimestamps.org/#calendars","type":"list"},"calendar_whitelist":{"default":[],"help":"Optional whitelist of calendar servers. Override this if you are using your own calendar servers. e.g. [\'https://mycalendar.com\']","type":"list"},"verify_timestamps":{"default":true,"help":"Whether to verify timestamps after creating them.","type":"bool"}}},"thumbnail_enricher":{"name":"thumbnail_enricher","display_name":"Thumbnail Enricher","manifest":{"name":"Thumbnail Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":false,"description":"\\n Generates thumbnails for video files to provide visual previews.\\n\\n ### Features\\n - Processes video files and generates evenly distributed thumbnails.\\n - Calculates the number of thumbnails based on video duration, `thumbnails_per_minute`, and `max_thumbnails`.\\n - Distributes thumbnails equally across the video\'s duration and stores them as media objects.\\n - Adds metadata for each thumbnail, including timestamps and IDs.\\n\\n ### Notes\\n - Requires `ffmpeg` to be installed and accessible via the system\'s PATH.\\n - Handles videos without pre-existing duration metadata by probing with `ffmpeg`.\\n - Skips enrichment for non-video media files.\\n ","dependencies":{"python":["loguru","ffmpeg"],"bin":["ffmpeg"]},"entry_point":"","version":"1.0","configs":{"thumbnails_per_minute":{"default":60,"type":"int","help":"how many thumbnails to generate per minute of video, can be limited by max_thumbnails"},"max_thumbnails":{"default":16,"type":"int","help":"limit the number of thumbnails to generate per video, 0 means no limit"}}},"configs":{"thumbnails_per_minute":{"default":60,"type":"int","help":"how many thumbnails to generate per minute of video, can be limited by max_thumbnails"},"max_thumbnails":{"default":16,"type":"int","help":"limit the number of thumbnails to generate per video, 0 means no limit"}}},"meta_enricher":{"name":"meta_enricher","display_name":"Archive Metadata Enricher","manifest":{"name":"Archive Metadata Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":false,"description":" \\n Adds metadata information about the archive operations, Adds metadata about archive operations, including file sizes and archive duration./\\n To be included at the end of all enrichments.\\n \\n ### Features\\n- Calculates the total size of all archived media files, storing the result in human-readable and byte formats.\\n- Computes the duration of the archival process, storing the elapsed time in seconds.\\n- Ensures all enrichments are performed only if the `Metadata` object contains valid data.\\n- Adds detailed metadata to provide insights into file sizes and archival performance.\\n\\n### Notes\\n- Skips enrichment if no media or metadata is available in the `Metadata` object.\\n- File sizes are calculated using the `os.stat` module, ensuring accurate byte-level reporting.\\n","dependencies":{"python":["loguru"]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"pdq_hash_enricher":{"name":"pdq_hash_enricher","display_name":"PDQ Hash Enricher","manifest":{"name":"PDQ Hash Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":false,"description":"\\n PDQ Hash Enricher for generating perceptual hashes of media files.\\n\\n ### Features\\n - Calculates perceptual hashes for image files using the PDQ hashing algorithm.\\n - Enables detection of duplicate or near-duplicate visual content.\\n - Processes images stored in `Metadata` objects, adding computed hashes to the corresponding `Media` entries.\\n - Skips non-image media or files unsuitable for hashing (e.g., corrupted or unsupported formats).\\n\\n ### Notes\\n - Best used after enrichers like `thumbnail_enricher` or `screenshot_enricher` to ensure images are available.\\n - Uses the `pdqhash` library to compute 256-bit perceptual hashes, which are stored as hexadecimal strings.\\n ","dependencies":{"python":["loguru","pdqhash","numpy","PIL"]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"ssl_enricher":{"name":"ssl_enricher","display_name":"SSL Certificate Enricher","manifest":{"name":"SSL Certificate Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":false,"description":"\\n Retrieves SSL certificate information for a domain and stores it as a file.\\n\\n ### Features\\n - Fetches SSL certificates for domains using the HTTPS protocol.\\n - Stores certificates in PEM format and adds them as media to the metadata.\\n - Skips enrichment if no media has been archived, based on the `skip_when_nothing_archived` configuration.\\n\\n ### Notes\\n - Requires the target URL to use the HTTPS scheme; other schemes are not supported.\\n ","dependencies":{"python":["loguru","slugify"]},"entry_point":"ssl_enricher::SSLEnricher","version":"1.0","configs":{"skip_when_nothing_archived":{"default":true,"type":"bool","help":"if true, will skip enriching when no media is archived"}}},"configs":{"skip_when_nothing_archived":{"default":true,"type":"bool","help":"if true, will skip enriching when no media is archived"}}},"hash_enricher":{"name":"hash_enricher","display_name":"Hash Enricher","manifest":{"name":"Hash Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":false,"description":"\\nGenerates cryptographic hashes for media files to ensure data integrity and authenticity.\\n\\n### Features\\n- Calculates cryptographic hashes (SHA-256 or SHA3-512) for media files stored in `Metadata` objects.\\n- Ensures content authenticity, integrity validation, and duplicate identification.\\n- Efficiently processes large files by reading file bytes in configurable chunk sizes.\\n- Supports dynamic configuration of hash algorithms and chunk sizes.\\n- Updates media metadata with the computed hash value in the format `<algorithm>:<hash>`.\\n\\n### Notes\\n- Default hash algorithm is SHA-256, but SHA3-512 is also supported.\\n- Chunk size defaults to 16 MB but can be adjusted based on memory requirements.\\n- Useful for workflows requiring hash-based content validation or deduplication.\\n","dependencies":{"python":["loguru"]},"entry_point":"","version":"1.0","configs":{"algorithm":{"default":"SHA-256","help":"hash algorithm to use","choices":["SHA-256","SHA3-512"]},"chunksize":{"default":16000000,"help":"number of bytes to use when reading files in chunks (if this value is too large you will run out of RAM), default is 16MB","type":"int"}}},"configs":{"algorithm":{"default":"SHA-256","help":"hash algorithm to use","choices":["SHA-256","SHA3-512"]},"chunksize":{"default":16000000,"help":"number of bytes to use when reading files in chunks (if this value is too large you will run out of RAM), default is 16MB","type":"int"}}},"api_db":{"name":"api_db","display_name":"Auto Archiver API Database","manifest":{"name":"Auto Archiver API Database","author":"Bellingcat","type":["database"],"requires_setup":true,"description":"\\n Provides integration with the Auto Archiver API for querying and storing archival data.\\n\\n### Features\\n- **API Integration**: Supports querying for existing archives and submitting results.\\n- **Duplicate Prevention**: Avoids redundant archiving when `use_api_cache` is disabled.\\n- **Configurable**: Supports settings like API endpoint, authentication token, tags, and permissions.\\n- **Tagging and Metadata**: Adds tags and manages metadata for archives.\\n- **Optional Storage**: Archives results conditionally based on configuration.\\n\\n### Setup\\nRequires access to an Auto Archiver API instance and a valid API token.\\n ","dependencies":{"python":["requests","loguru"]},"entry_point":"api_db::AAApiDb","version":"1.0","configs":{"api_endpoint":{"required":true,"help":"API endpoint where calls are made to"},"api_token":{"default":null,"help":"API Bearer token."},"public":{"default":false,"type":"bool","help":"whether the URL should be publicly available via the API"},"author_id":{"default":null,"help":"which email to assign as author"},"group_id":{"default":null,"help":"which group of users have access to the archive in case public=false as author"},"use_api_cache":{"default":false,"type":"bool","help":"if True then the API database will be queried prior to any archiving operations and stop if the link has already been archived"},"store_results":{"default":true,"type":"bool","help":"when set, will send the results to the API database."},"tags":{"default":[],"help":"what tags to add to the archived URL"}}},"configs":{"api_endpoint":{"required":true,"help":"API endpoint where calls are made to"},"api_token":{"default":null,"help":"API Bearer token."},"public":{"default":false,"type":"bool","help":"whether the URL should be publicly available via the API"},"author_id":{"default":null,"help":"which email to assign as author"},"group_id":{"default":null,"help":"which group of users have access to the archive in case public=false as author"},"use_api_cache":{"default":false,"type":"bool","help":"if True then the API database will be queried prior to any archiving operations and stop if the link has already been archived"},"store_results":{"default":true,"type":"bool","help":"when set, will send the results to the API database."},"tags":{"default":[],"help":"what tags to add to the archived URL"}}},"console_db":{"name":"console_db","display_name":"Console Database","manifest":{"name":"Console Database","author":"Bellingcat","type":["database"],"requires_setup":false,"description":"\\nProvides a simple database implementation that outputs archival results and status updates to the console.\\n\\n### Features\\n- Logs the status of archival tasks directly to the console, including:\\n - started\\n - failed (with error details)\\n - aborted\\n - done (with optional caching status)\\n- Useful for debugging or lightweight setups where no external database is required.\\n\\n### Setup\\nNo additional configuration is required.\\n","dependencies":{"python":["loguru"]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"csv_db":{"name":"csv_db","display_name":"CSV Database","manifest":{"name":"CSV Database","author":"Bellingcat","type":["database"],"requires_setup":false,"description":"\\nHandles exporting archival results to a CSV file.\\n\\n### Features\\n- Saves archival metadata as rows in a CSV file.\\n- Automatically creates the CSV file with a header if it does not exist.\\n- Appends new metadata entries to the existing file.\\n\\n### Setup\\nRequired config:\\n- csv_file: Path to the CSV file where results will be stored (default: \\"db.csv\\").\\n","dependencies":{"python":["loguru"]},"entry_point":"csv_db::CSVDb","version":"1.0","configs":{"csv_file":{"default":"db.csv","help":"CSV file name to save metadata to"}}},"configs":{"csv_file":{"default":"db.csv","help":"CSV file name to save metadata to"}}},"gdrive_storage":{"name":"gdrive_storage","display_name":"Google Drive Storage","manifest":{"name":"Google Drive Storage","author":"Dave Mateer","type":["storage"],"requires_setup":true,"description":"\\n \\n GDriveStorage: A storage module for saving archived content to Google Drive.\\n\\n Source Documentation: https://davemateer.com/2022/04/28/google-drive-with-python\\n\\n ### Features\\n - Saves media files to Google Drive, organizing them into folders based on the provided path structure.\\n - Supports OAuth token-based authentication or service account credentials for API access.\\n - Automatically creates folders in Google Drive if they don\'t exist.\\n - Retrieves CDN URLs for stored files, enabling easy sharing and access.\\n\\n ### Notes\\n - Requires setup with either a Google OAuth token or a service account JSON file.\\n - Files are uploaded to the specified `root_folder_id` and organized by the `media.key` structure.\\n - Automatically handles Google Drive API token refreshes for long-running jobs.\\n \\n ## Overview\\nThis module integrates Google Drive as a storage backend, enabling automatic folder creation and file uploads. It supports authentication via **service accounts** (recommended for automation) or **OAuth tokens** (for user-based authentication).\\n\\n## Features\\n- Saves files to Google Drive, organizing them into structured folders.\\n- Supports both **service account** and **OAuth token** authentication.\\n- Automatically creates folders if they don\'t exist.\\n- Generates public URLs for easy file sharing.\\n\\n## Setup Guide\\n1. **Enable Google Drive API**\\n - Create a Google Cloud project at [Google Cloud Console](https://console.cloud.google.com/)\\n - Enable the **Google Drive API**.\\n\\n2. **Set Up a Google Drive Folder**\\n - Create a folder in **Google Drive** and copy its **folder ID** from the URL.\\n - Add the **folder ID** to your configuration (`orchestration.yaml`):\\n ```yaml\\n root_folder_id: \\"FOLDER_ID\\"\\n ```\\n\\n3. **Authentication Options**\\n - **Option 1: Service Account (Recommended)**\\n - Create a **service account** in Google Cloud IAM.\\n - Download the JSON key file and save it as:\\n ```\\n secrets/service_account.json\\n ```\\n - **Share your Drive folder** with the service accounts `client_email` (found in the JSON file).\\n \\n - **Option 2: OAuth Token (User Authentication)**\\n - Create OAuth **Desktop App credentials** in Google Cloud.\\n - Save the credentials as:\\n ```\\n secrets/oauth_credentials.json\\n ```\\n - Generate an OAuth token by running:\\n ```sh\\n python scripts/create_update_gdrive_oauth_token.py -c secrets/oauth_credentials.json\\n ```\\n\\n \\n Notes on the OAuth token:\\n Tokens are refreshed after 1 hour however keep working for 7 days (tbc)\\n so as long as the job doesn\'t last for 7 days then this method of refreshing only once per run will work\\n see this link for details on the token:\\n https://davemateer.com/2022/04/28/google-drive-with-python#tokens\\n \\n \\n","dependencies":{"python":["loguru","googleapiclient","google"]},"entry_point":"gdrive_storage::GDriveStorage","version":"1.0","configs":{"path_generator":{"default":"url","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a hash, with the settings of the \'hash_enricher\' module (defaults to SHA256 if not enabled).","choices":["random","static"]},"root_folder_id":{"required":true,"help":"root google drive folder ID to use as storage, found in URL: \'https://drive.google.com/drive/folders/FOLDER_ID\'"},"oauth_token":{"default":null,"help":"JSON filename with Google Drive OAuth token: check auto-archiver repository scripts folder for create_update_gdrive_oauth_token.py. NOTE: storage used will count towards owner of GDrive folder, therefore it is best to use oauth_token_filename over service_account."},"service_account":{"default":"secrets/service_account.json","help":"service account JSON file path, same as used for Google Sheets. NOTE: storage used will count towards the developer account."}}},"configs":{"path_generator":{"default":"url","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a hash, with the settings of the \'hash_enricher\' module (defaults to SHA256 if not enabled).","choices":["random","static"]},"root_folder_id":{"required":true,"help":"root google drive folder ID to use as storage, found in URL: \'https://drive.google.com/drive/folders/FOLDER_ID\'"},"oauth_token":{"default":null,"help":"JSON filename with Google Drive OAuth token: check auto-archiver repository scripts folder for create_update_gdrive_oauth_token.py. NOTE: storage used will count towards owner of GDrive folder, therefore it is best to use oauth_token_filename over service_account."},"service_account":{"default":"secrets/service_account.json","help":"service account JSON file path, same as used for Google Sheets. NOTE: storage used will count towards the developer account."}}},"s3_storage":{"name":"s3_storage","display_name":"S3 Storage","manifest":{"name":"S3 Storage","author":"Bellingcat","type":["storage"],"requires_setup":true,"description":"\\n S3Storage: A storage module for saving media files to an S3-compatible object storage.\\n\\n ### Features\\n - Uploads media files to an S3 bucket with customizable configurations.\\n - Supports `random_no_duplicate` mode to avoid duplicate uploads by checking existing files based on SHA-256 hashes.\\n - Automatically generates unique paths for files when duplicates are found.\\n - Configurable endpoint and CDN URL for different S3-compatible providers.\\n - Supports both private and public file storage, with public files being readable online.\\n\\n ### Notes\\n - Requires S3 credentials (API key and secret) and a bucket name to function.\\n - The `random_no_duplicate` option ensures no duplicate uploads by leveraging hash-based folder structures.\\n - Uses `boto3` for interaction with the S3 API.\\n - Depends on the `HashEnricher` module for hash calculation.\\n ","dependencies":{"python":["hash_enricher","boto3","loguru"]},"entry_point":"","version":"1.0","configs":{"path_generator":{"default":"flat","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a hash, with the settings of the \'hash_enricher\' module (defaults to SHA256 if not enabled).","choices":["random","static"]},"bucket":{"default":null,"help":"S3 bucket name"},"region":{"default":null,"help":"S3 region name"},"key":{"default":null,"help":"S3 API key"},"secret":{"default":null,"help":"S3 API secret"},"random_no_duplicate":{"default":false,"type":"bool","help":"if set, it will override `path_generator`, `filename_generator` and `folder`. It will check if the file already exists and if so it will not upload it again. Creates a new root folder path `no-dups/`"},"endpoint_url":{"default":"https://{region}.digitaloceanspaces.com","help":"S3 bucket endpoint, {region} are inserted at runtime"},"cdn_url":{"default":"https://{bucket}.{region}.cdn.digitaloceanspaces.com/{key}","help":"S3 CDN url, {bucket}, {region} and {key} are inserted at runtime"},"private":{"default":false,"type":"bool","help":"if true S3 files will not be readable online"}}},"configs":{"path_generator":{"default":"flat","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a hash, with the settings of the \'hash_enricher\' module (defaults to SHA256 if not enabled).","choices":["random","static"]},"bucket":{"default":null,"help":"S3 bucket name"},"region":{"default":null,"help":"S3 region name"},"key":{"default":null,"help":"S3 API key"},"secret":{"default":null,"help":"S3 API secret"},"random_no_duplicate":{"default":false,"type":"bool","help":"if set, it will override `path_generator`, `filename_generator` and `folder`. It will check if the file already exists and if so it will not upload it again. Creates a new root folder path `no-dups/`"},"endpoint_url":{"default":"https://{region}.digitaloceanspaces.com","help":"S3 bucket endpoint, {region} are inserted at runtime"},"cdn_url":{"default":"https://{bucket}.{region}.cdn.digitaloceanspaces.com/{key}","help":"S3 CDN url, {bucket}, {region} and {key} are inserted at runtime"},"private":{"default":false,"type":"bool","help":"if true S3 files will not be readable online"}}},"local_storage":{"name":"local_storage","display_name":"Local Storage","manifest":{"name":"Local Storage","author":"Bellingcat","type":["storage"],"requires_setup":false,"description":"\\n LocalStorage: A storage module for saving archived content locally on the filesystem.\\n\\n ### Features\\n - Saves archived media files to a specified folder on the local filesystem.\\n - Maintains file metadata during storage using `shutil.copy2`.\\n - Supports both absolute and relative paths for stored files, configurable via `save_absolute`.\\n - Automatically creates directories as needed for storing files.\\n\\n ### Notes\\n - Default storage folder is `./archived`, but this can be changed via the `save_to` configuration.\\n - The `save_absolute` option can reveal the file structure in output formats; use with caution.\\n ","dependencies":{"python":["loguru"]},"entry_point":"","version":"1.0","configs":{"path_generator":{"default":"flat","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a hash, with the settings of the \'hash_enricher\' module (defaults to SHA256 if not enabled)","choices":["random","static"]},"save_to":{"default":"./local_archive","help":"folder where to save archived content"},"save_absolute":{"default":false,"type":"bool","help":"whether the path to the stored file is absolute or relative in the output result inc. formatters (WARN: leaks the file structure)"}}},"configs":{"path_generator":{"default":"flat","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a hash, with the settings of the \'hash_enricher\' module (defaults to SHA256 if not enabled)","choices":["random","static"]},"save_to":{"default":"./local_archive","help":"folder where to save archived content"},"save_absolute":{"default":false,"type":"bool","help":"whether the path to the stored file is absolute or relative in the output result inc. formatters (WARN: leaks the file structure)"}}},"mute_formatter":{"name":"mute_formatter","display_name":"Mute Formatter","manifest":{"name":"Mute Formatter","author":"Bellingcat","type":["formatter"],"requires_setup":true,"description":" Default formatter.\\n ","dependencies":{},"entry_point":"","version":"1.0","configs":{}},"configs":null},"html_formatter":{"name":"html_formatter","display_name":"HTML Formatter","manifest":{"name":"HTML Formatter","author":"Bellingcat","type":["formatter"],"requires_setup":false,"description":" ","dependencies":{"python":["hash_enricher","loguru","jinja2"],"bin":[""]},"entry_point":"","version":"1.0","configs":{"detect_thumbnails":{"default":true,"help":"if true will group by thumbnails generated by thumbnail enricher by id \'thumbnail_00\'","type":"bool"}}},"configs":{"detect_thumbnails":{"default":true,"help":"if true will group by thumbnails generated by thumbnail enricher by id \'thumbnail_00\'","type":"bool"}}}}'),il={feeders:["cli_feeder","atlos_feeder_db_storage","csv_feeder","gsheet_feeder_db"],extractors:["wayback_extractor_enricher","wacz_extractor_enricher","instagram_api_extractor","instagram_tbot_extractor","generic_extractor","tiktok_tikwm_extractor","twitter_api_extractor","instagram_extractor","telethon_extractor","vk_extractor","telegram_extractor"],enrichers:["wayback_extractor_enricher","wacz_extractor_enricher","metadata_enricher","timestamping_enricher","thumbnail_enricher","screenshot_enricher","meta_enricher","pdq_hash_enricher","whisper_enricher","opentimestamps_enricher","ssl_enricher","hash_enricher"],databases:["console_db","api_db","csv_db","atlos_feeder_db_storage","gsheet_feeder_db"],storages:["local_storage","gdrive_storage","atlos_feeder_db_storage","s3_storage"],formatters:["html_formatter","mute_formatter"]},wh=["feeder","extractor","enricher","database","storage","formatter"],xL=`# Auto Archiver Configuration
# Steps are the modules that will be run in the order they are defined
steps:
feeders: []
extractors: []
enrichers: []
databases: []
storages: []
formatters: []
# Global configuration
# Authentication
# a dictionary of authentication information that can be used by extractors to login to website.
# you can use a comma separated list for multiple domains on the same line (common usecase: x.com,twitter.com)
# Common login 'types' are username/password, cookie, api key/token.
# There are two special keys for using cookies, they are: cookies_file and cookies_from_browser.
# Some Examples:
# facebook.com:
# username: "my_username"
# password: "my_password"
# or for a site that uses an API key:
# twitter.com,x.com:
# api_key
# api_secret
# youtube.com:
# cookie: "login_cookie=value ; other_cookie=123" # multiple 'key=value' pairs should be separated by ;
authentication: {}
# These are the global configurations that are used by the modules
logging:
level: INFO
`,yg=Symbol.for("yaml.alias"),hm=Symbol.for("yaml.document"),Gi=Symbol.for("yaml.map"),Px=Symbol.for("yaml.pair"),Vr=Symbol.for("yaml.scalar"),Wo=Symbol.for("yaml.seq"),hr=Symbol.for("yaml.node.type"),Qo=e=>!!e&&typeof e=="object"&&e[hr]===yg,Df=e=>!!e&&typeof e=="object"&&e[hr]===hm,Ql=e=>!!e&&typeof e=="object"&&e[hr]===Gi,qt=e=>!!e&&typeof e=="object"&&e[hr]===Px,Tt=e=>!!e&&typeof e=="object"&&e[hr]===Vr,Zl=e=>!!e&&typeof e=="object"&&e[hr]===Wo;function Ut(e){if(e&&typeof e=="object")switch(e[hr]){case Gi:case Wo:return!0}return!1}function Ht(e){if(e&&typeof e=="object")switch(e[hr]){case yg:case Gi:case Vr:case Wo:return!0}return!1}const CL=e=>(Tt(e)||Ut(e))&&!!e.anchor,xa=Symbol("break visit"),kL=Symbol("skip children"),wl=Symbol("remove node");function Ra(e,t){const n=EL(t);Df(e)?_o(null,e.contents,n,Object.freeze([e]))===wl&&(e.contents=null):_o(null,e,n,Object.freeze([]))}Ra.BREAK=xa;Ra.SKIP=kL;Ra.REMOVE=wl;function _o(e,t,n,i){const o=TL(e,t,n,i);if(Ht(o)||qt(o))return AL(e,i,o),_o(e,o,n,i);if(typeof o!="symbol"){if(Ut(t)){i=Object.freeze(i.concat(t));for(let l=0;l<t.items.length;++l){const u=_o(l,t.items[l],n,i);if(typeof u=="number")l=u-1;else{if(u===xa)return xa;u===wl&&(t.items.splice(l,1),l-=1)}}}else if(qt(t)){i=Object.freeze(i.concat(t));const l=_o("key",t.key,n,i);if(l===xa)return xa;l===wl&&(t.key=null);const u=_o("value",t.value,n,i);if(u===xa)return xa;u===wl&&(t.value=null)}}return o}function EL(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function TL(e,t,n,i){var o,l,u,f,d;if(typeof n=="function")return n(e,t,i);if(Ql(t))return(o=n.Map)==null?void 0:o.call(n,e,t,i);if(Zl(t))return(l=n.Seq)==null?void 0:l.call(n,e,t,i);if(qt(t))return(u=n.Pair)==null?void 0:u.call(n,e,t,i);if(Tt(t))return(f=n.Scalar)==null?void 0:f.call(n,e,t,i);if(Qo(t))return(d=n.Alias)==null?void 0:d.call(n,e,t,i)}function AL(e,t,n){const i=t[t.length-1];if(Ut(i))i.items[e]=n;else if(qt(i))e==="key"?i.key=n:i.value=n;else if(Df(i))i.contents=n;else{const o=Qo(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const _L={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},RL=e=>e.replace(/[!,[\]{}]/g,t=>_L[t]);class Cn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Cn.defaultYaml,t),this.tags=Object.assign({},Cn.defaultTags,n)}clone(){const t=new Cn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Cn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Cn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Cn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Cn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Cn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),o=i.shift();switch(o){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[l,u]=i;return this.tags[l]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[l]=i;if(l==="1.1"||l==="1.2")return this.yaml.version=l,!0;{const u=/^\d+\.\d+$/.test(l);return n(6,`Unsupported YAML version ${l}`,u),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const u=t.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,i,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const l=this.tags[i];if(l)try{return l+decodeURIComponent(o)}catch(u){return n(String(u)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+RL(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let o;if(t&&i.length>0&&Ht(t.contents)){const l={};Ra(t.contents,(u,f)=>{Ht(f)&&f.tag&&(l[f.tag]=!0)}),o=Object.keys(l)}else o=[];for(const[l,u]of i)l==="!!"&&u==="tag:yaml.org,2002:"||(!t||o.some(f=>f.startsWith(u)))&&n.push(`%TAG ${l} ${u}`);return n.join(`
`)}}Cn.defaultYaml={explicit:!1,version:"1.2"};Cn.defaultTags={"!!":"tag:yaml.org,2002:"};function Ux(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Hx(e){const t=new Set;return Ra(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function qx(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function OL(e,t){const n=[],i=new Map;let o=null;return{onAnchor:l=>{n.push(l),o||(o=Hx(e));const u=qx(t,o);return o.add(u),u},setAnchors:()=>{for(const l of n){const u=i.get(l);if(typeof u=="object"&&u.anchor&&(Tt(u.node)||Ut(u.node)))u.node.anchor=u.anchor;else{const f=new Error("Failed to resolve repeated object (this should not happen)");throw f.source=l,f}}},sourceObjects:i}}function Ro(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0,l=i.length;o<l;++o){const u=i[o],f=Ro(e,i,String(o),u);f===void 0?delete i[o]:f!==u&&(i[o]=f)}else if(i instanceof Map)for(const o of Array.from(i.keys())){const l=i.get(o),u=Ro(e,i,o,l);u===void 0?i.delete(o):u!==l&&i.set(o,u)}else if(i instanceof Set)for(const o of Array.from(i)){const l=Ro(e,i,o,o);l===void 0?i.delete(o):l!==o&&(i.delete(o),i.add(l))}else for(const[o,l]of Object.entries(i)){const u=Ro(e,i,o,l);u===void 0?delete i[o]:u!==l&&(i[o]=u)}return e.call(t,n,i)}function pr(e,t,n){if(Array.isArray(e))return e.map((i,o)=>pr(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!CL(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=l=>{i.res=l,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class bg{constructor(t){Object.defineProperty(this,hr,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:l}={}){if(!Df(t))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},f=pr(this,"",u);if(typeof o=="function")for(const{count:d,res:p}of u.anchors.values())o(p,d);return typeof l=="function"?Ro(l,{"":f},"",f):f}}class vg extends bg{constructor(t){super(yg),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Ra(t,{Node:(i,o)=>{if(o===this)return Ra.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:l}=n,u=this.resolve(o);if(!u){const d=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(d)}let f=i.get(u);if(f||(pr(u,null,n),f=i.get(u)),!f||f.res===void 0){const d="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(d)}if(l>=0&&(f.count+=1,f.aliasCount===0&&(f.aliasCount=Lc(o,u,i)),f.count*f.aliasCount>l)){const d="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(d)}return f.res}toString(t,n,i){const o=`*${this.source}`;if(t){if(Ux(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(l)}if(t.implicitKey)return`${o} `}return o}}function Lc(e,t,n){if(Qo(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(Ut(t)){let i=0;for(const o of t.items){const l=Lc(e,o,n);l>i&&(i=l)}return i}else if(qt(t)){const i=Lc(e,t.key,n),o=Lc(e,t.value,n);return Math.max(i,o)}return 1}const Fx=e=>!e||typeof e!="function"&&typeof e!="object";class Ie extends bg{constructor(t){super(Vr),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:pr(this.value,t,n)}toString(){return String(this.value)}}Ie.BLOCK_FOLDED="BLOCK_FOLDED";Ie.BLOCK_LITERAL="BLOCK_LITERAL";Ie.PLAIN="PLAIN";Ie.QUOTE_DOUBLE="QUOTE_DOUBLE";Ie.QUOTE_SINGLE="QUOTE_SINGLE";const ML="tag:yaml.org,2002:";function NL(e,t,n){if(t){const i=n.filter(l=>l.tag===t),o=i.find(l=>!l.format)??i[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(i=>{var o;return((o=i.identify)==null?void 0:o.call(i,e))&&!i.format})}function Ll(e,t,n){var g,v,b;if(Df(e)&&(e=e.contents),Ht(e))return e;if(qt(e)){const w=(v=(g=n.schema[Gi]).createNode)==null?void 0:v.call(g,n.schema,null,n);return w.items.push(e),w}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:l,schema:u,sourceObjects:f}=n;let d;if(i&&e&&typeof e=="object"){if(d=f.get(e),d)return d.anchor||(d.anchor=o(e)),new vg(d.anchor);d={anchor:null,node:null},f.set(e,d)}t!=null&&t.startsWith("!!")&&(t=ML+t.slice(2));let p=NL(e,t,u.tags);if(!p){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const w=new Ie(e);return d&&(d.node=w),w}p=e instanceof Map?u[Gi]:Symbol.iterator in Object(e)?u[Wo]:u[Gi]}l&&(l(p),delete n.onTagObj);const m=p!=null&&p.createNode?p.createNode(n.schema,e,n):typeof((b=p==null?void 0:p.nodeClass)==null?void 0:b.from)=="function"?p.nodeClass.from(n.schema,e,n):new Ie(e);return t?m.tag=t:p.default||(m.tag=p.tag),d&&(d.node=m),m}function Jc(e,t,n){let i=n;for(let o=t.length-1;o>=0;--o){const l=t[o];if(typeof l=="number"&&Number.isInteger(l)&&l>=0){const u=[];u[l]=i,i=u}else i=new Map([[l,i]])}return Ll(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const pl=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Vx extends bg{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>Ht(i)||qt(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(pl(t))this.add(n);else{const[i,...o]=t,l=this.get(i,!0);if(Ut(l))l.addIn(o,n);else if(l===void 0&&this.schema)this.set(i,Jc(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}deleteIn(t){const[n,...i]=t;if(i.length===0)return this.delete(n);const o=this.get(n,!0);if(Ut(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,l=this.get(i,!0);return o.length===0?!n&&Tt(l)?l.value:l:Ut(l)?l.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!qt(n))return!1;const i=n.value;return i==null||t&&Tt(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return Ut(o)?o.hasIn(i):!1}setIn(t,n){const[i,...o]=t;if(o.length===0)this.set(i,n);else{const l=this.get(i,!0);if(Ut(l))l.setIn(o,n);else if(l===void 0&&this.schema)this.set(i,Jc(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const DL=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function pi(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Ta=(e,t,n)=>e.endsWith(`
`)?pi(n,t):n.includes(`
`)?`
`+pi(n,t):(e.endsWith(" ")?"":" ")+n,Gx="flow",mm="block",zc="quoted";function Lf(e,t,n="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:l=20,onFold:u,onOverflow:f}={}){if(!o||o<0)return e;o<l&&(l=0);const d=Math.max(1+l,1+o-t.length);if(e.length<=d)return e;const p=[],m={};let g=o-t.length;typeof i=="number"&&(i>o-Math.max(2,l)?p.push(0):g=o-i);let v,b,w=!1,S=-1,C=-1,A=-1;n===mm&&(S=t1(e,S,t.length),S!==-1&&(g=S+d));for(let _;_=e[S+=1];){if(n===zc&&_==="\\"){switch(C=S,e[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}A=S}if(_===`
`)n===mm&&(S=t1(e,S,t.length)),g=S+t.length+d,v=void 0;else{if(_===" "&&b&&b!==" "&&b!==`
`&&b!==" "){const M=e[S+1];M&&M!==" "&&M!==`
`&&M!==" "&&(v=S)}if(S>=g)if(v)p.push(v),g=v+d,v=void 0;else if(n===zc){for(;b===" "||b===" ";)b=_,_=e[S+=1],w=!0;const M=S>A+1?S-2:C-1;if(m[M])return e;p.push(M),m[M]=!0,g=M+d,v=void 0}else w=!0}b=_}if(w&&f&&f(),p.length===0)return e;u&&u();let O=e.slice(0,p[0]);for(let _=0;_<p.length;++_){const M=p[_],R=p[_+1]||e.length;M===0?O=`
${t}${e.slice(0,R)}`:(n===zc&&m[M]&&(O+=`${e[M]}\\`),O+=`
${t}${e.slice(M+1,R)}`)}return O}function t1(e,t,n){let i=t,o=t+1,l=e[o];for(;l===" "||l===" ";)if(t<o+n)l=e[++t];else{do l=e[++t];while(l&&l!==`
`);i=t,o=t+1,l=e[o]}return i}const zf=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),If=e=>/^(%|---|\.\.\.)/m.test(e);function LL(e,t,n){if(!t||t<0)return!1;const i=t-n,o=e.length;if(o<=i)return!1;for(let l=0,u=0;l<o;++l)if(e[l]===`
`){if(l-u>i)return!0;if(u=l+1,o-u<=i)return!1}return!0}function xl(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:i}=t,o=t.options.doubleQuotedMinMultiLineLength,l=t.indent||(If(e)?" ":"");let u="",f=0;for(let d=0,p=n[d];p;p=n[++d])if(p===" "&&n[d+1]==="\\"&&n[d+2]==="n"&&(u+=n.slice(f,d)+"\\ ",d+=1,f=d,p="\\"),p==="\\")switch(n[d+1]){case"u":{u+=n.slice(f,d);const m=n.substr(d+2,4);switch(m){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:m.substr(0,2)==="00"?u+="\\x"+m.substr(2):u+=n.substr(d,6)}d+=5,f=d+1}break;case"n":if(i||n[d+2]==='"'||n.length<o)d+=1;else{for(u+=n.slice(f,d)+`
`;n[d+2]==="\\"&&n[d+3]==="n"&&n[d+4]!=='"';)u+=`
`,d+=2;u+=l,n[d+2]===" "&&(u+="\\"),d+=1,f=d+1}break;default:d+=1}return u=f?u+n.slice(f):n,i?u:Lf(u,l,zc,zf(t,!1))}function gm(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
`)||/[ \t]\n|\n[ \t]/.test(e))return xl(e,t);const n=t.indent||(If(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
${n}`)+"'";return t.implicitKey?i:Lf(i,n,Gx,zf(t,!1))}function Oo(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=xl;else{const o=e.includes('"'),l=e.includes("'");o&&!l?i=gm:l&&!o?i=xl:i=n?gm:xl}return i(e,t)}let ym;try{ym=new RegExp(`(^|(?<!
))
+(?!
|$)`,"g")}catch{ym=/\n+(?!\n|$)/g}function Ic({comment:e,type:t,value:n},i,o,l){const{blockQuote:u,commentString:f,lineWidth:d}=i.options;if(!u||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Oo(n,i);const p=i.indent||(i.forceBlockIndent||If(n)?" ":""),m=u==="literal"?!0:u==="folded"||t===Ie.BLOCK_FOLDED?!1:t===Ie.BLOCK_LITERAL?!0:!LL(n,d,p.length);if(!n)return m?`|
`:`>
`;let g,v;for(v=n.length;v>0;--v){const R=n[v-1];if(R!==`
`&&R!==" "&&R!==" ")break}let b=n.substring(v);const w=b.indexOf(`
`);w===-1?g="-":n===b||w!==b.length-1?(g="+",l&&l()):g="",b&&(n=n.slice(0,-b.length),b[b.length-1]===`
`&&(b=b.slice(0,-1)),b=b.replace(ym,`$&${p}`));let S=!1,C,A=-1;for(C=0;C<n.length;++C){const R=n[C];if(R===" ")S=!0;else if(R===`
`)A=C;else break}let O=n.substring(0,A<C?A+1:C);O&&(n=n.substring(O.length),O=O.replace(/\n+/g,`$&${p}`));let M=(S?p?"2":"1":"")+g;if(e&&(M+=" "+f(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!m){const R=n.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);let D=!1;const P=zf(i,!0);u!=="folded"&&t!==Ie.BLOCK_FOLDED&&(P.onOverflow=()=>{D=!0});const z=Lf(`${O}${R}${b}`,p,mm,P);if(!D)return`>${M}
${p}${z}`}return n=n.replace(/\n+/g,`$&${p}`),`|${M}
${p}${O}${n}${b}`}function zL(e,t,n,i){const{type:o,value:l}=e,{actualString:u,implicitKey:f,indent:d,indentStep:p,inFlow:m}=t;if(f&&l.includes(`
`)||m&&/[[\]{},]/.test(l))return Oo(l,t);if(!l||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(l))return f||m||!l.includes(`
`)?Oo(l,t):Ic(e,t,n,i);if(!f&&!m&&o!==Ie.PLAIN&&l.includes(`
`))return Ic(e,t,n,i);if(If(l)){if(d==="")return t.forceBlockIndent=!0,Ic(e,t,n,i);if(f&&d===p)return Oo(l,t)}const g=l.replace(/\n+/g,`$&
${d}`);if(u){const v=S=>{var C;return S.default&&S.tag!=="tag:yaml.org,2002:str"&&((C=S.test)==null?void 0:C.test(g))},{compat:b,tags:w}=t.doc.schema;if(w.some(v)||b!=null&&b.some(v))return Oo(l,t)}return f?g:Lf(g,d,Gx,zf(t,!1))}function Sg(e,t,n,i){const{implicitKey:o,inFlow:l}=t,u=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:f}=e;f!==Ie.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(f=Ie.QUOTE_DOUBLE);const d=m=>{switch(m){case Ie.BLOCK_FOLDED:case Ie.BLOCK_LITERAL:return o||l?Oo(u.value,t):Ic(u,t,n,i);case Ie.QUOTE_DOUBLE:return xl(u.value,t);case Ie.QUOTE_SINGLE:return gm(u.value,t);case Ie.PLAIN:return zL(u,t,n,i);default:return null}};let p=d(f);if(p===null){const{defaultKeyType:m,defaultStringType:g}=t.options,v=o&&m||g;if(p=d(v),p===null)throw new Error(`Unsupported default string type ${v}`)}return p}function Kx(e,t){const n=Object.assign({blockQuote:!0,commentString:DL,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function IL(e,t){var o;if(t.tag){const l=e.filter(u=>u.tag===t.tag);if(l.length>0)return l.find(u=>u.format===t.format)??l[0]}let n,i;if(Tt(t)){i=t.value;let l=e.filter(u=>{var f;return(f=u.identify)==null?void 0:f.call(u,i)});if(l.length>1){const u=l.filter(f=>f.test);u.length>0&&(l=u)}n=l.find(u=>u.format===t.format)??l.find(u=>!u.format)}else i=t,n=e.find(l=>l.nodeClass&&i instanceof l.nodeClass);if(!n){const l=((o=i==null?void 0:i.constructor)==null?void 0:o.name)??typeof i;throw new Error(`Tag not resolved for ${l} value`)}return n}function BL(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],l=(Tt(e)||Ut(e))&&e.anchor;l&&Ux(l)&&(n.add(l),o.push(`&${l}`));const u=e.tag?e.tag:t.default?null:t.tag;return u&&o.push(i.directives.tagString(u)),o.join(" ")}function Ho(e,t,n,i){var d;if(qt(e))return e.toString(t,n,i);if(Qo(e)){if(t.doc.directives)return e.toString(t);if((d=t.resolvedAliases)!=null&&d.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const l=Ht(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=IL(t.doc.schema.tags,l));const u=BL(l,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const f=typeof o.stringify=="function"?o.stringify(l,t,n,i):Tt(l)?Sg(l,t,n,i):l.toString(t,n,i);return u?Tt(l)||f[0]==="{"||f[0]==="["?`${u} ${f}`:`${u}
${t.indent}${f}`:f}function jL({key:e,value:t},n,i,o){const{allNullValues:l,doc:u,indent:f,indentStep:d,options:{commentString:p,indentSeq:m,simpleKeys:g}}=n;let v=Ht(e)&&e.comment||null;if(g){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(Ut(e)||!Ht(e)&&typeof e=="object"){const P="With simple keys, collection cannot be used as a key value";throw new Error(P)}}let b=!g&&(!e||v&&t==null&&!n.inFlow||Ut(e)||(Tt(e)?e.type===Ie.BLOCK_FOLDED||e.type===Ie.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!b&&(g||!l),indent:f+d});let w=!1,S=!1,C=Ho(e,n,()=>w=!0,()=>S=!0);if(!b&&!n.inFlow&&C.length>1024){if(g)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");b=!0}if(n.inFlow){if(l||t==null)return w&&i&&i(),C===""?"?":b?`? ${C}`:C}else if(l&&!g||t==null&&b)return C=`? ${C}`,v&&!w?C+=Ta(C,n.indent,p(v)):S&&o&&o(),C;w&&(v=null),b?(v&&(C+=Ta(C,n.indent,p(v))),C=`? ${C}
${f}:`):(C=`${C}:`,v&&(C+=Ta(C,n.indent,p(v))));let A,O,_;Ht(t)?(A=!!t.spaceBefore,O=t.commentBefore,_=t.comment):(A=!1,O=null,_=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!b&&!v&&Tt(t)&&(n.indentAtStart=C.length+1),S=!1,!m&&d.length>=2&&!n.inFlow&&!b&&Zl(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let M=!1;const R=Ho(t,n,()=>M=!0,()=>S=!0);let D=" ";if(v||A||O){if(D=A?`
`:"",O){const P=p(O);D+=`
${pi(P,n.indent)}`}R===""&&!n.inFlow?D===`
`&&(D=`
`):D+=`
${n.indent}`}else if(!b&&Ut(t)){const P=R[0],z=R.indexOf(`
`),$=z!==-1,E=n.inFlow??t.flow??t.items.length===0;if($||!E){let I=!1;if($&&(P==="&"||P==="!")){let U=R.indexOf(" ");P==="&"&&U!==-1&&U<z&&R[U+1]==="!"&&(U=R.indexOf(" ",U+1)),(U===-1||z<U)&&(I=!0)}I||(D=`
${n.indent}`)}}else(R===""||R[0]===`
`)&&(D="");return C+=D+R,n.inFlow?M&&i&&i():_&&!M?C+=Ta(C,n.indent,p(_)):S&&o&&o(),C}function $L(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const vc="<<",hi={identify:e=>e===vc||typeof e=="symbol"&&e.description===vc,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ie(Symbol(vc)),{addToJSMap:Yx}),stringify:()=>vc},PL=(e,t)=>(hi.identify(t)||Tt(t)&&(!t.type||t.type===Ie.PLAIN)&&hi.identify(t.value))&&(e==null?void 0:e.doc.schema.tags.some(n=>n.tag===hi.tag&&n.default));function Yx(e,t,n){if(n=e&&Qo(n)?n.resolve(e.doc):n,Zl(n))for(const i of n.items)xh(e,t,i);else if(Array.isArray(n))for(const i of n)xh(e,t,i);else xh(e,t,n)}function xh(e,t,n){const i=e&&Qo(n)?n.resolve(e.doc):n;if(!Ql(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[l,u]of o)t instanceof Map?t.has(l)||t.set(l,u):t instanceof Set?t.add(l):Object.prototype.hasOwnProperty.call(t,l)||Object.defineProperty(t,l,{value:u,writable:!0,enumerable:!0,configurable:!0});return t}function Xx(e,t,{key:n,value:i}){if(Ht(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(PL(e,n))Yx(e,t,i);else{const o=pr(n,"",e);if(t instanceof Map)t.set(o,pr(i,o,e));else if(t instanceof Set)t.add(o);else{const l=UL(n,o,e),u=pr(i,l,e);l in t?Object.defineProperty(t,l,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[l]=u}}return t}function UL(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Ht(e)&&(n!=null&&n.doc)){const i=Kx(n.doc,{});i.anchors=new Set;for(const l of n.anchors.keys())i.anchors.add(l.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!n.mapKeyWarned){let l=JSON.stringify(o);l.length>40&&(l=l.substring(0,36)+'..."'),$L(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${l}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function wg(e,t,n){const i=Ll(e,void 0,n),o=Ll(t,void 0,n);return new kn(i,o)}class kn{constructor(t,n=null){Object.defineProperty(this,hr,{value:Px}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return Ht(n)&&(n=n.clone(t)),Ht(i)&&(i=i.clone(t)),new kn(n,i)}toJSON(t,n){const i=n!=null&&n.mapAsMap?new Map:{};return Xx(n,i,this)}toString(t,n,i){return t!=null&&t.doc?jL(this,t,n,i):JSON.stringify(this)}}function Wx(e,t,n){return(t.inFlow??e.flow?qL:HL)(e,t,n)}function HL({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:l,onChompKeep:u,onComment:f}){const{indent:d,options:{commentString:p}}=n,m=Object.assign({},n,{indent:l,type:null});let g=!1;const v=[];for(let w=0;w<t.length;++w){const S=t[w];let C=null;if(Ht(S))!g&&S.spaceBefore&&v.push(""),ef(n,v,S.commentBefore,g),S.comment&&(C=S.comment);else if(qt(S)){const O=Ht(S.key)?S.key:null;O&&(!g&&O.spaceBefore&&v.push(""),ef(n,v,O.commentBefore,g))}g=!1;let A=Ho(S,m,()=>C=null,()=>g=!0);C&&(A+=Ta(A,l,p(C))),g&&C&&(g=!1),v.push(i+A)}let b;if(v.length===0)b=o.start+o.end;else{b=v[0];for(let w=1;w<v.length;++w){const S=v[w];b+=S?`
${d}${S}`:`
`}}return e?(b+=`
`+pi(p(e),d),f&&f()):g&&u&&u(),b}function qL({items:e},t,{flowChars:n,itemIndent:i}){const{indent:o,indentStep:l,flowCollectionPadding:u,options:{commentString:f}}=t;i+=l;const d=Object.assign({},t,{indent:i,inFlow:!0,type:null});let p=!1,m=0;const g=[];for(let w=0;w<e.length;++w){const S=e[w];let C=null;if(Ht(S))S.spaceBefore&&g.push(""),ef(t,g,S.commentBefore,!1),S.comment&&(C=S.comment);else if(qt(S)){const O=Ht(S.key)?S.key:null;O&&(O.spaceBefore&&g.push(""),ef(t,g,O.commentBefore,!1),O.comment&&(p=!0));const _=Ht(S.value)?S.value:null;_?(_.comment&&(C=_.comment),_.commentBefore&&(p=!0)):S.value==null&&(O!=null&&O.comment)&&(C=O.comment)}C&&(p=!0);let A=Ho(S,d,()=>C=null);w<e.length-1&&(A+=","),C&&(A+=Ta(A,i,f(C))),!p&&(g.length>m||A.includes(`
`))&&(p=!0),g.push(A),m=g.length}const{start:v,end:b}=n;if(g.length===0)return v+b;if(!p){const w=g.reduce((S,C)=>S+C.length+2,2);p=t.options.lineWidth>0&&w>t.options.lineWidth}if(p){let w=v;for(const S of g)w+=S?`
${l}${o}${S}`:`
`;return`${w}
${o}${b}`}else return`${v}${u}${g.join(" ")}${u}${b}`}function ef({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const l=pi(t(i),e);n.push(l.trimStart())}}function Aa(e,t){const n=Tt(t)?t.value:t;for(const i of e)if(qt(i)&&(i.key===t||i.key===n||Tt(i.key)&&i.key.value===n))return i}class dr extends Vx{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Gi,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:l}=i,u=new this(t),f=(d,p)=>{if(typeof l=="function")p=l.call(n,d,p);else if(Array.isArray(l)&&!l.includes(d))return;(p!==void 0||o)&&u.items.push(wg(d,p,i))};if(n instanceof Map)for(const[d,p]of n)f(d,p);else if(n&&typeof n=="object")for(const d of Object.keys(n))f(d,n[d]);return typeof t.sortMapEntries=="function"&&u.items.sort(t.sortMapEntries),u}add(t,n){var u;let i;qt(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new kn(t,t==null?void 0:t.value):i=new kn(t.key,t.value);const o=Aa(this.items,i.key),l=(u=this.schema)==null?void 0:u.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);Tt(o.value)&&Fx(i.value)?o.value.value=i.value:o.value=i.value}else if(l){const f=this.items.findIndex(d=>l(i,d)<0);f===-1?this.items.push(i):this.items.splice(f,0,i)}else this.items.push(i)}delete(t){const n=Aa(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const i=Aa(this.items,t),o=i==null?void 0:i.value;return(!n&&Tt(o)?o.value:o)??void 0}has(t){return!!Aa(this.items,t)}set(t,n){this.add(new kn(t,n),!0)}toJSON(t,n,i){const o=i?new i:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(o);for(const l of this.items)Xx(n,o,l);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!qt(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Wx(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const Zo={collection:"map",default:!0,nodeClass:dr,tag:"tag:yaml.org,2002:map",resolve(e,t){return Ql(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>dr.from(e,t,n)};class Oa extends Vx{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Wo,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Sc(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=Sc(t);if(typeof i!="number")return;const o=this.items[i];return!n&&Tt(o)?o.value:o}has(t){const n=Sc(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=Sc(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];Tt(o)&&Fx(n)?o.value=n:this.items[i]=n}toJSON(t,n){const i=[];n!=null&&n.onCreate&&n.onCreate(i);let o=0;for(const l of this.items)i.push(pr(l,String(o++),n));return i}toString(t,n,i){return t?Wx(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){const{replacer:o}=i,l=new this(t);if(n&&Symbol.iterator in Object(n)){let u=0;for(let f of n){if(typeof o=="function"){const d=n instanceof Set?f:String(u++);f=o.call(n,d,f)}l.items.push(Ll(f,void 0,i))}}return l}}function Sc(e){let t=Tt(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const Jo={collection:"seq",default:!0,nodeClass:Oa,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Zl(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Oa.from(e,t,n)},Bf={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),Sg(e,t,n,i)}},jf={identify:e=>e==null,createNode:()=>new Ie(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ie(null),stringify:({source:e},t)=>typeof e=="string"&&jf.test.test(e)?e:t.options.nullStr},xg={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ie(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&xg.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};function Tr({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);const o=typeof i=="number"?i:Number(i);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let l=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(l)){let u=l.indexOf(".");u<0&&(u=l.length,l+=".");let f=t-(l.length-u-1);for(;f-- >0;)l+="0"}return l}const Qx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Tr},Zx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Tr(e)}},Jx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Ie(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Tr},$f=e=>typeof e=="bigint"||Number.isInteger(e),Cg=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function eC(e,t,n){const{value:i}=e;return $f(i)&&i>=0?n+i.toString(t):Tr(e)}const tC={identify:e=>$f(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Cg(e,2,8,n),stringify:e=>eC(e,8,"0o")},nC={identify:$f,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Cg(e,0,10,n),stringify:Tr},rC={identify:e=>$f(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Cg(e,2,16,n),stringify:e=>eC(e,16,"0x")},FL=[Zo,Jo,Bf,jf,xg,tC,nC,rC,Qx,Zx,Jx];function n1(e){return typeof e=="bigint"||Number.isInteger(e)}const wc=({value:e})=>JSON.stringify(e),VL=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:wc},{identify:e=>e==null,createNode:()=>new Ie(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:wc},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:wc},{identify:n1,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>n1(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:wc}],GL={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},KL=[Zo,Jo].concat(VL,GL),kg={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,o,l){const u=n;let f;if(typeof btoa=="function"){let d="";for(let p=0;p<u.length;++p)d+=String.fromCharCode(u[p]);f=btoa(d)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Ie.BLOCK_LITERAL),t!==Ie.QUOTE_DOUBLE){const d=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),p=Math.ceil(f.length/d),m=new Array(p);for(let g=0,v=0;g<p;++g,v+=d)m[g]=f.substr(v,d);f=m.join(t===Ie.BLOCK_LITERAL?`
`:" ")}return Sg({comment:e,type:t,value:f},i,o,l)}};function iC(e,t){if(Zl(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!qt(i)){if(Ql(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new kn(new Ie(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
${o.key.commentBefore}`:i.commentBefore),i.comment){const l=o.value??o.key;l.comment=l.comment?`${i.comment}
${l.comment}`:i.comment}i=o}e.items[n]=qt(i)?i:new kn(i)}}else t("Expected a sequence for this tag");return e}function aC(e,t,n){const{replacer:i}=n,o=new Oa(e);o.tag="tag:yaml.org,2002:pairs";let l=0;if(t&&Symbol.iterator in Object(t))for(let u of t){typeof i=="function"&&(u=i.call(t,String(l++),u));let f,d;if(Array.isArray(u))if(u.length===2)f=u[0],d=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const p=Object.keys(u);if(p.length===1)f=p[0],d=u[f];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else f=u;o.items.push(wg(f,d,n))}return o}const Eg={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:iC,createNode:aC};class Io extends Oa{constructor(){super(),this.add=dr.prototype.add.bind(this),this.delete=dr.prototype.delete.bind(this),this.get=dr.prototype.get.bind(this),this.has=dr.prototype.has.bind(this),this.set=dr.prototype.set.bind(this),this.tag=Io.tag}toJSON(t,n){if(!n)return super.toJSON(t);const i=new Map;n!=null&&n.onCreate&&n.onCreate(i);for(const o of this.items){let l,u;if(qt(o)?(l=pr(o.key,"",n),u=pr(o.value,l,n)):l=pr(o,"",n),i.has(l))throw new Error("Ordered maps must not include duplicate keys");i.set(l,u)}return i}static from(t,n,i){const o=aC(t,n,i),l=new this;return l.items=o.items,l}}Io.tag="tag:yaml.org,2002:omap";const Tg={collection:"seq",identify:e=>e instanceof Map,nodeClass:Io,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=iC(e,t),i=[];for(const{key:o}of n.items)Tt(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new Io,n)},createNode:(e,t,n)=>Io.from(e,t,n)};function oC({value:e,source:t},n){return t&&(e?sC:lC).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const sC={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ie(!0),stringify:oC},lC={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ie(!1),stringify:oC},YL={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Tr},XL={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Tr(e)}},WL={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Ie(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:Tr},Jl=e=>typeof e=="bigint"||Number.isInteger(e);function Pf(e,t,n,{intAsBigInt:i}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const u=BigInt(e);return o==="-"?BigInt(-1)*u:u}const l=parseInt(e,n);return o==="-"?-1*l:l}function Ag(e,t,n){const{value:i}=e;if(Jl(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return Tr(e)}const QL={identify:Jl,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Pf(e,2,2,n),stringify:e=>Ag(e,2,"0b")},ZL={identify:Jl,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Pf(e,1,8,n),stringify:e=>Ag(e,8,"0")},JL={identify:Jl,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Pf(e,0,10,n),stringify:Tr},ez={identify:Jl,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Pf(e,2,16,n),stringify:e=>Ag(e,16,"0x")};class Bo extends dr{constructor(t){super(t),this.tag=Bo.tag}add(t){let n;qt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new kn(t.key,null):n=new kn(t,null),Aa(this.items,n.key)||this.items.push(n)}get(t,n){const i=Aa(this.items,t);return!n&&qt(i)?Tt(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=Aa(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new kn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){const{replacer:o}=i,l=new this(t);if(n&&Symbol.iterator in Object(n))for(let u of n)typeof o=="function"&&(u=o.call(n,u,u)),l.items.push(wg(u,null,i));return l}}Bo.tag="tag:yaml.org,2002:set";const _g={collection:"map",identify:e=>e instanceof Set,nodeClass:Bo,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Bo.from(e,t,n),resolve(e,t){if(Ql(e)){if(e.hasAllNullValues(!0))return Object.assign(new Bo,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Rg(e,t){const n=e[0],i=n==="-"||n==="+"?e.substring(1):e,o=u=>t?BigInt(u):Number(u),l=i.replace(/_/g,"").split(":").reduce((u,f)=>u*o(60)+o(f),o(0));return n==="-"?o(-1)*l:l}function uC(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return Tr(e);let i="";t<0&&(i="-",t*=n(-1));const o=n(60),l=[t%o];return t<60?l.unshift(0):(t=(t-l[0])/o,l.unshift(t%o),t>=60&&(t=(t-l[0])/o,l.unshift(t))),i+l.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const cC={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Rg(e,n),stringify:uC},fC={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Rg(e,!1),stringify:uC},Uf={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Uf.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,l,u,f]=t.map(Number),d=t[7]?Number((t[7]+"00").substr(1,3)):0;let p=Date.UTC(n,i-1,o,l||0,u||0,f||0,d);const m=t[8];if(m&&m!=="Z"){let g=Rg(m,!1);Math.abs(g)<30&&(g*=60),p-=6e4*g}return new Date(p)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},r1=[Zo,Jo,Bf,jf,sC,lC,QL,ZL,JL,ez,YL,XL,WL,kg,hi,Tg,Eg,_g,cC,fC,Uf],i1=new Map([["core",FL],["failsafe",[Zo,Jo,Bf]],["json",KL],["yaml11",r1],["yaml-1.1",r1]]),a1={binary:kg,bool:xg,float:Jx,floatExp:Zx,floatNaN:Qx,floatTime:fC,int:nC,intHex:rC,intOct:tC,intTime:cC,map:Zo,merge:hi,null:jf,omap:Tg,pairs:Eg,seq:Jo,set:_g,timestamp:Uf},tz={"tag:yaml.org,2002:binary":kg,"tag:yaml.org,2002:merge":hi,"tag:yaml.org,2002:omap":Tg,"tag:yaml.org,2002:pairs":Eg,"tag:yaml.org,2002:set":_g,"tag:yaml.org,2002:timestamp":Uf};function Ch(e,t,n){const i=i1.get(t);if(i&&!e)return n&&!i.includes(hi)?i.concat(hi):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const l=Array.from(i1.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${l} or define customTags array`)}if(Array.isArray(e))for(const l of e)o=o.concat(l);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(hi)),o.reduce((l,u)=>{const f=typeof u=="string"?a1[u]:u;if(!f){const d=JSON.stringify(u),p=Object.keys(a1).map(m=>JSON.stringify(m)).join(", ");throw new Error(`Unknown custom tag ${d}; use one of ${p}`)}return l.includes(f)||l.push(f),l},[])}const nz=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;let rz=class dC{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:l,sortMapEntries:u,toStringDefaults:f}){this.compat=Array.isArray(t)?Ch(t,"compat"):t?Ch(null,t):null,this.name=typeof l=="string"&&l||"core",this.knownTags=o?tz:{},this.tags=Ch(n,this.name,i),this.toStringOptions=f??null,Object.defineProperty(this,Gi,{value:Zo}),Object.defineProperty(this,Vr,{value:Bf}),Object.defineProperty(this,Wo,{value:Jo}),this.sortMapEntries=typeof u=="function"?u:u===!0?nz:null}clone(){const t=Object.create(dC.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function iz(e,t){var d;const n=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const p=e.directives.toString(e);p?(n.push(p),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const o=Kx(e,t),{commentString:l}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const p=l(e.commentBefore);n.unshift(pi(p,""))}let u=!1,f=null;if(e.contents){if(Ht(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const g=l(e.contents.commentBefore);n.push(pi(g,""))}o.forceBlockIndent=!!e.comment,f=e.contents.comment}const p=f?void 0:()=>u=!0;let m=Ho(e.contents,o,()=>f=null,p);f&&(m+=Ta(m,"",l(f))),(m[0]==="|"||m[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${m}`:n.push(m)}else n.push(Ho(e.contents,o));if((d=e.directives)!=null&&d.docEnd)if(e.comment){const p=l(e.comment);p.includes(`
`)?(n.push("..."),n.push(pi(p,""))):n.push(`... ${p}`)}else n.push("...");else{let p=e.comment;p&&u&&(p=p.replace(/^\n+/,"")),p&&((!u||f)&&n[n.length-1]!==""&&n.push(""),n.push(pi(l(p),"")))}return n.join(`
`)+`
`}class eu{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,hr,{value:hm});let o=null;typeof n=="function"||Array.isArray(n)?o=n:i===void 0&&n&&(i=n,n=void 0);const l=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=l;let{version:u}=l;i!=null&&i._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new Cn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(eu.prototype,{[hr]:{value:hm}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Ht(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Co(this.contents)&&this.contents.add(t)}addIn(t,n){Co(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=Hx(this);t.anchor=!n||i.has(n)?qx(n||"a",i):n}return new vg(t.anchor)}createNode(t,n,i){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const C=O=>typeof O=="number"||O instanceof String||O instanceof Number,A=n.filter(C).map(String);A.length>0&&(n=n.concat(A)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:l,anchorPrefix:u,flow:f,keepUndefined:d,onTagObj:p,tag:m}=i??{},{onAnchor:g,setAnchors:v,sourceObjects:b}=OL(this,u||"a"),w={aliasDuplicateObjects:l??!0,keepUndefined:d??!1,onAnchor:g,onTagObj:p,replacer:o,schema:this.schema,sourceObjects:b},S=Ll(t,m,w);return f&&Ut(S)&&(S.flow=!0),v(),S}createPair(t,n,i={}){const o=this.createNode(t,null,i),l=this.createNode(n,null,i);return new kn(o,l)}delete(t){return Co(this.contents)?this.contents.delete(t):!1}deleteIn(t){return pl(t)?this.contents==null?!1:(this.contents=null,!0):Co(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Ut(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return pl(t)?!n&&Tt(this.contents)?this.contents.value:this.contents:Ut(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Ut(this.contents)?this.contents.has(t):!1}hasIn(t){return pl(t)?this.contents!==void 0:Ut(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Jc(this.schema,[t],n):Co(this.contents)&&this.contents.set(t,n)}setIn(t,n){pl(t)?this.contents=n:this.contents==null?this.contents=Jc(this.schema,Array.from(t),n):Co(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Cn({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Cn({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new rz(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:o,onAnchor:l,reviver:u}={}){const f={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},d=pr(this.contents,n??"",f);if(typeof l=="function")for(const{count:p,res:m}of f.anchors.values())l(m,p);return typeof u=="function"?Ro(u,{"":d},"",d):d}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return iz(this,t)}}function Co(e){if(Ut(e))return!0;throw new Error("Expected a YAML collection as document contents")}class pC extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class hl extends pC{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class az extends pC{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const o1=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(f=>t.linePos(f));const{line:i,col:o}=n.linePos[0];n.message+=` at line ${i}, column ${o}`;let l=o-1,u=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(l>=60&&u.length>80){const f=Math.min(l-39,u.length-79);u="…"+u.substring(f),l-=f-1}if(u.length>80&&(u=u.substring(0,79)+"…"),i>1&&/^ *$/.test(u.substring(0,l))){let f=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);f.length>80&&(f=f.substring(0,79)+`
`),u=f+u}if(/[^ ]/.test(u)){let f=1;const d=n.linePos[1];d&&d.line===i&&d.col>o&&(f=Math.max(1,Math.min(d.col-o,80-l)));const p=" ".repeat(l)+"^".repeat(f);n.message+=`:
${u}
${p}
`}};function qo(e,{flow:t,indicator:n,next:i,offset:o,onError:l,parentIndent:u,startOnNewline:f}){let d=!1,p=f,m=f,g="",v="",b=!1,w=!1,S=null,C=null,A=null,O=null,_=null,M=null,R=null;for(const z of e)switch(w&&(z.type!=="space"&&z.type!=="newline"&&z.type!=="comma"&&l(z.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),w=!1),S&&(p&&z.type!=="comment"&&z.type!=="newline"&&l(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),z.type){case"space":!t&&(n!=="doc-start"||(i==null?void 0:i.type)!=="flow-collection")&&z.source.includes(" ")&&(S=z),m=!0;break;case"comment":{m||l(z,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const $=z.source.substring(1)||" ";g?g+=v+$:g=$,v="",p=!1;break}case"newline":p?g?g+=z.source:(!M||n!=="seq-item-ind")&&(d=!0):v+=z.source,p=!0,b=!0,(C||A)&&(O=z),m=!0;break;case"anchor":C&&l(z,"MULTIPLE_ANCHORS","A node can have at most one anchor"),z.source.endsWith(":")&&l(z.offset+z.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),C=z,R===null&&(R=z.offset),p=!1,m=!1,w=!0;break;case"tag":{A&&l(z,"MULTIPLE_TAGS","A node can have at most one tag"),A=z,R===null&&(R=z.offset),p=!1,m=!1,w=!0;break}case n:(C||A)&&l(z,"BAD_PROP_ORDER",`Anchors and tags must be after the ${z.source} indicator`),M&&l(z,"UNEXPECTED_TOKEN",`Unexpected ${z.source} in ${t??"collection"}`),M=z,p=n==="seq-item-ind"||n==="explicit-key-ind",m=!1;break;case"comma":if(t){_&&l(z,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),_=z,p=!1,m=!1;break}default:l(z,"UNEXPECTED_TOKEN",`Unexpected ${z.type} token`),p=!1,m=!1}const D=e[e.length-1],P=D?D.offset+D.source.length:o;return w&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&l(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(p&&S.indent<=u||(i==null?void 0:i.type)==="block-map"||(i==null?void 0:i.type)==="block-seq")&&l(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:_,found:M,spaceBefore:d,comment:g,hasNewline:b,anchor:C,tag:A,newlineAfterProp:O,end:P,start:R??P}}function zl(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(zl(t.key)||zl(t.value))return!0}return!1;default:return!0}}function bm(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&zl(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function hC(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(l,u)=>l===u||Tt(l)&&Tt(u)&&l.value===u.value;return t.some(l=>o(l.key,n))}const s1="All mapping items must start at the same column";function oz({composeNode:e,composeEmptyNode:t},n,i,o,l){var m;const u=(l==null?void 0:l.nodeClass)??dr,f=new u(n.schema);n.atRoot&&(n.atRoot=!1);let d=i.offset,p=null;for(const g of i.items){const{start:v,key:b,sep:w,value:S}=g,C=qo(v,{indicator:"explicit-key-ind",next:b??(w==null?void 0:w[0]),offset:d,onError:o,parentIndent:i.indent,startOnNewline:!0}),A=!C.found;if(A){if(b&&(b.type==="block-seq"?o(d,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in b&&b.indent!==i.indent&&o(d,"BAD_INDENT",s1)),!C.anchor&&!C.tag&&!w){p=C.end,C.comment&&(f.comment?f.comment+=`
`+C.comment:f.comment=C.comment);continue}(C.newlineAfterProp||zl(b))&&o(b??v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((m=C.found)==null?void 0:m.indent)!==i.indent&&o(d,"BAD_INDENT",s1);n.atKey=!0;const O=C.end,_=b?e(n,b,C,o):t(n,O,v,null,C,o);n.schema.compat&&bm(i.indent,b,o),n.atKey=!1,hC(n,f.items,_)&&o(O,"DUPLICATE_KEY","Map keys must be unique");const M=qo(w??[],{indicator:"map-value-ind",next:S,offset:_.range[2],onError:o,parentIndent:i.indent,startOnNewline:!b||b.type==="block-scalar"});if(d=M.end,M.found){A&&((S==null?void 0:S.type)==="block-map"&&!M.hasNewline&&o(d,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&C.start<M.found.offset-1024&&o(_.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const R=S?e(n,S,M,o):t(n,d,w,null,M,o);n.schema.compat&&bm(i.indent,S,o),d=R.range[2];const D=new kn(_,R);n.options.keepSourceTokens&&(D.srcToken=g),f.items.push(D)}else{A&&o(_.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),M.comment&&(_.comment?_.comment+=`
`+M.comment:_.comment=M.comment);const R=new kn(_);n.options.keepSourceTokens&&(R.srcToken=g),f.items.push(R)}}return p&&p<d&&o(p,"IMPOSSIBLE","Map comment with trailing content"),f.range=[i.offset,d,p??d],f}function sz({composeNode:e,composeEmptyNode:t},n,i,o,l){const u=(l==null?void 0:l.nodeClass)??Oa,f=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let d=i.offset,p=null;for(const{start:m,value:g}of i.items){const v=qo(m,{indicator:"seq-item-ind",next:g,offset:d,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||g)g&&g.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(d,"MISSING_CHAR","Sequence item without - indicator");else{p=v.end,v.comment&&(f.comment=v.comment);continue}const b=g?e(n,g,v,o):t(n,v.end,m,null,v,o);n.schema.compat&&bm(i.indent,g,o),d=b.range[2],f.items.push(b)}return f.range=[i.offset,d,p??d],f}function tu(e,t,n,i){let o="";if(e){let l=!1,u="";for(const f of e){const{source:d,type:p}=f;switch(p){case"space":l=!0;break;case"comment":{n&&!l&&i(f,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const m=d.substring(1)||" ";o?o+=u+m:o=m,u="";break}case"newline":o&&(u+=d),l=!0;break;default:i(f,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}t+=d.length}}return{comment:o,offset:t}}const kh="Block collections are not allowed within flow collections",Eh=e=>e&&(e.type==="block-map"||e.type==="block-seq");function lz({composeNode:e,composeEmptyNode:t},n,i,o,l){const u=i.start.source==="{",f=u?"flow map":"flow sequence",d=(l==null?void 0:l.nodeClass)??(u?dr:Oa),p=new d(n.schema);p.flow=!0;const m=n.atRoot;m&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let g=i.offset+i.start.source.length;for(let C=0;C<i.items.length;++C){const A=i.items[C],{start:O,key:_,sep:M,value:R}=A,D=qo(O,{flow:f,indicator:"explicit-key-ind",next:_??(M==null?void 0:M[0]),offset:g,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!D.found){if(!D.anchor&&!D.tag&&!M&&!R){C===0&&D.comma?o(D.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${f}`):C<i.items.length-1&&o(D.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${f}`),D.comment&&(p.comment?p.comment+=`
`+D.comment:p.comment=D.comment),g=D.end;continue}!u&&n.options.strict&&zl(_)&&o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(C===0)D.comma&&o(D.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${f}`);else if(D.comma||o(D.start,"MISSING_CHAR",`Missing , between ${f} items`),D.comment){let P="";e:for(const z of O)switch(z.type){case"comma":case"space":break;case"comment":P=z.source.substring(1);break e;default:break e}if(P){let z=p.items[p.items.length-1];qt(z)&&(z=z.value??z.key),z.comment?z.comment+=`
`+P:z.comment=P,D.comment=D.comment.substring(P.length+1)}}if(!u&&!M&&!D.found){const P=R?e(n,R,D,o):t(n,D.end,M,null,D,o);p.items.push(P),g=P.range[2],Eh(R)&&o(P.range,"BLOCK_IN_FLOW",kh)}else{n.atKey=!0;const P=D.end,z=_?e(n,_,D,o):t(n,P,O,null,D,o);Eh(_)&&o(z.range,"BLOCK_IN_FLOW",kh),n.atKey=!1;const $=qo(M??[],{flow:f,indicator:"map-value-ind",next:R,offset:z.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if($.found){if(!u&&!D.found&&n.options.strict){if(M)for(const U of M){if(U===$.found)break;if(U.type==="newline"){o(U,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}D.start<$.found.offset-1024&&o($.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else R&&("source"in R&&R.source&&R.source[0]===":"?o(R,"MISSING_CHAR",`Missing space after : in ${f}`):o($.start,"MISSING_CHAR",`Missing , or : between ${f} items`));const E=R?e(n,R,$,o):$.found?t(n,$.end,M,null,$,o):null;E?Eh(R)&&o(E.range,"BLOCK_IN_FLOW",kh):$.comment&&(z.comment?z.comment+=`
`+$.comment:z.comment=$.comment);const I=new kn(z,E);if(n.options.keepSourceTokens&&(I.srcToken=A),u){const U=p;hC(n,U.items,z)&&o(P,"DUPLICATE_KEY","Map keys must be unique"),U.items.push(I)}else{const U=new dr(n.schema);U.flow=!0,U.items.push(I);const G=(E??z).range;U.range=[z.range[0],G[1],G[2]],p.items.push(U)}g=E?E.range[2]:$.end}}const v=u?"}":"]",[b,...w]=i.end;let S=g;if(b&&b.source===v)S=b.offset+b.source.length;else{const C=f[0].toUpperCase()+f.substring(1),A=m?`${C} must end with a ${v}`:`${C} in block collection must be sufficiently indented and end with a ${v}`;o(g,m?"MISSING_CHAR":"BAD_INDENT",A),b&&b.source.length!==1&&w.unshift(b)}if(w.length>0){const C=tu(w,S,n.options.strict,o);C.comment&&(p.comment?p.comment+=`
`+C.comment:p.comment=C.comment),p.range=[i.offset,S,C.offset]}else p.range=[i.offset,S,S];return p}function Th(e,t,n,i,o,l){const u=n.type==="block-map"?oz(e,t,n,i,l):n.type==="block-seq"?sz(e,t,n,i,l):lz(e,t,n,i,l),f=u.constructor;return o==="!"||o===f.tagName?(u.tag=f.tagName,u):(o&&(u.tag=o),u)}function uz(e,t,n,i,o){var v;const l=i.tag,u=l?t.directives.tagName(l.source,b=>o(l,"TAG_RESOLVE_FAILED",b)):null;if(n.type==="block-seq"){const{anchor:b,newlineAfterProp:w}=i,S=b&&l?b.offset>l.offset?b:l:b??l;S&&(!w||w.offset<S.offset)&&o(S,"MISSING_CHAR","Missing newline after block sequence props")}const f=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!l||!u||u==="!"||u===dr.tagName&&f==="map"||u===Oa.tagName&&f==="seq")return Th(e,t,n,o,u);let d=t.schema.tags.find(b=>b.tag===u&&b.collection===f);if(!d){const b=t.schema.knownTags[u];if(b&&b.collection===f)t.schema.tags.push(Object.assign({},b,{default:!1})),d=b;else return b!=null&&b.collection?o(l,"BAD_COLLECTION_TYPE",`${b.tag} used for ${f} collection, but expects ${b.collection}`,!0):o(l,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),Th(e,t,n,o,u)}const p=Th(e,t,n,o,u,d),m=((v=d.resolve)==null?void 0:v.call(d,p,b=>o(l,"TAG_RESOLVE_FAILED",b),t.options))??p,g=Ht(m)?m:new Ie(m);return g.range=p.range,g.tag=u,d!=null&&d.format&&(g.format=d.format),g}function cz(e,t,n){const i=t.offset,o=fz(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const l=o.mode===">"?Ie.BLOCK_FOLDED:Ie.BLOCK_LITERAL,u=t.source?dz(t.source):[];let f=u.length;for(let S=u.length-1;S>=0;--S){const C=u[S][1];if(C===""||C==="\r")f=S;else break}if(f===0){const S=o.chomp==="+"&&u.length>0?`
`.repeat(Math.max(1,u.length-1)):"";let C=i+o.length;return t.source&&(C+=t.source.length),{value:S,type:l,comment:o.comment,range:[i,C,C]}}let d=t.indent+o.indent,p=t.offset+o.length,m=0;for(let S=0;S<f;++S){const[C,A]=u[S];if(A===""||A==="\r")o.indent===0&&C.length>d&&(d=C.length);else{C.length<d&&n(p+C.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(d=C.length),m=S,d===0&&!e.atRoot&&n(p,"BAD_INDENT","Block scalar values in collections must be indented");break}p+=C.length+A.length+1}for(let S=u.length-1;S>=f;--S)u[S][0].length>d&&(f=S+1);let g="",v="",b=!1;for(let S=0;S<m;++S)g+=u[S][0].slice(d)+`
`;for(let S=m;S<f;++S){let[C,A]=u[S];p+=C.length+A.length+1;const O=A[A.length-1]==="\r";if(O&&(A=A.slice(0,-1)),A&&C.length<d){const M=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(p-A.length-(O?2:1),"BAD_INDENT",M),C=""}l===Ie.BLOCK_LITERAL?(g+=v+C.slice(d)+A,v=`
`):C.length>d||A[0]===" "?(v===" "?v=`
`:!b&&v===`
`&&(v=`
`),g+=v+C.slice(d)+A,v=`
`,b=!0):A===""?v===`
`?g+=`
`:v=`
`:(g+=v+A,v=" ",b=!1)}switch(o.chomp){case"-":break;case"+":for(let S=f;S<u.length;++S)g+=`
`+u[S][0].slice(d);g[g.length-1]!==`
`&&(g+=`
`);break;default:g+=`
`}const w=i+o.length+t.source.length;return{value:g,type:l,comment:o.comment,range:[i,w,w]}}function fz({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],l=o[0];let u=0,f="",d=-1;for(let v=1;v<o.length;++v){const b=o[v];if(!f&&(b==="-"||b==="+"))f=b;else{const w=Number(b);!u&&w?u=w:d===-1&&(d=e+v)}}d!==-1&&i(d,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let p=!1,m="",g=o.length;for(let v=1;v<t.length;++v){const b=t[v];switch(b.type){case"space":p=!0;case"newline":g+=b.source.length;break;case"comment":n&&!p&&i(b,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),g+=b.source.length,m=b.source.substring(1);break;case"error":i(b,"UNEXPECTED_TOKEN",b.message),g+=b.source.length;break;default:{const w=`Unexpected token in block scalar header: ${b.type}`;i(b,"UNEXPECTED_TOKEN",w);const S=b.source;S&&typeof S=="string"&&(g+=S.length)}}}return{mode:l,indent:u,chomp:f,comment:m,length:g}}function dz(e){const t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),l=[i!=null&&i[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let u=1;u<t.length;u+=2)l.push([t[u],t[u+1]]);return l}function pz(e,t,n){const{offset:i,type:o,source:l,end:u}=e;let f,d;const p=(v,b,w)=>n(i+v,b,w);switch(o){case"scalar":f=Ie.PLAIN,d=hz(l,p);break;case"single-quoted-scalar":f=Ie.QUOTE_SINGLE,d=mz(l,p);break;case"double-quoted-scalar":f=Ie.QUOTE_DOUBLE,d=gz(l,p);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+l.length,i+l.length]}}const m=i+l.length,g=tu(u,m,t,n);return{value:d,type:f,comment:g.comment,range:[i,m,g.offset]}}function hz(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),mC(e)}function mz(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),mC(e.slice(1,-1)).replace(/''/g,"'")}function mC(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let o=i[1],l=" ",u=t.lastIndex;for(n.lastIndex=u;i=n.exec(e);)i[1]===""?l===`
`?o+=l:l=`
`:(o+=l+i[1],l=" "),u=n.lastIndex;const f=/[ \t]*(.*)/sy;return f.lastIndex=u,i=f.exec(e),o+l+((i==null?void 0:i[1])??"")}function gz(e,t){let n="";for(let i=1;i<e.length-1;++i){const o=e[i];if(!(o==="\r"&&e[i+1]===`
`))if(o===`
`){const{fold:l,offset:u}=yz(e,i);n+=l,i=u}else if(o==="\\"){let l=e[++i];const u=bz[l];if(u)n+=u;else if(l===`
`)for(l=e[i+1];l===" "||l===" ";)l=e[++i+1];else if(l==="\r"&&e[i+1]===`
`)for(l=e[++i+1];l===" "||l===" ";)l=e[++i+1];else if(l==="x"||l==="u"||l==="U"){const f={x:2,u:4,U:8}[l];n+=vz(e,i+1,f,t),i+=f}else{const f=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${f}`),n+=f}}else if(o===" "||o===" "){const l=i;let u=e[i+1];for(;u===" "||u===" ";)u=e[++i+1];u!==`
`&&!(u==="\r"&&e[i+2]===`
`)&&(n+=i>l?e.slice(l,i+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function yz(e,t){let n="",i=e[t+1];for(;(i===" "||i===" "||i===`
`||i==="\r")&&!(i==="\r"&&e[t+2]!==`
`);)i===`
`&&(n+=`
`),t+=1,i=e[t+1];return n||(n=" "),{fold:n,offset:t}}const bz={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
`,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function vz(e,t,n,i){const o=e.substr(t,n),u=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const f=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${f}`),f}return String.fromCodePoint(u)}function gC(e,t,n,i){const{value:o,type:l,comment:u,range:f}=t.type==="block-scalar"?cz(e,t,i):pz(t,e.options.strict,i),d=n?e.directives.tagName(n.source,g=>i(n,"TAG_RESOLVE_FAILED",g)):null;let p;e.options.stringKeys&&e.atKey?p=e.schema[Vr]:d?p=Sz(e.schema,o,d,n,i):t.type==="scalar"?p=wz(e,o,t,i):p=e.schema[Vr];let m;try{const g=p.resolve(o,v=>i(n??t,"TAG_RESOLVE_FAILED",v),e.options);m=Tt(g)?g:new Ie(g)}catch(g){const v=g instanceof Error?g.message:String(g);i(n??t,"TAG_RESOLVE_FAILED",v),m=new Ie(o)}return m.range=f,m.source=o,l&&(m.type=l),d&&(m.tag=d),p.format&&(m.format=p.format),u&&(m.comment=u),m}function Sz(e,t,n,i,o){var f;if(n==="!")return e[Vr];const l=[];for(const d of e.tags)if(!d.collection&&d.tag===n)if(d.default&&d.test)l.push(d);else return d;for(const d of l)if((f=d.test)!=null&&f.test(t))return d;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Vr])}function wz({atKey:e,directives:t,schema:n},i,o,l){const u=n.tags.find(f=>{var d;return(f.default===!0||e&&f.default==="key")&&((d=f.test)==null?void 0:d.test(i))})||n[Vr];if(n.compat){const f=n.compat.find(d=>{var p;return d.default&&((p=d.test)==null?void 0:p.test(i))})??n[Vr];if(u.tag!==f.tag){const d=t.tagString(u.tag),p=t.tagString(f.tag),m=`Value may be parsed as either ${d} or ${p}`;l(o,"TAG_RESOLVE_FAILED",m,!0)}}return u}function xz(e,t,n){if(t){n===null&&(n=t.length);for(let i=n-1;i>=0;--i){let o=t[i];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++i];(o==null?void 0:o.type)==="space";)e+=o.source.length,o=t[++i];break}}return e}const Cz={composeNode:yC,composeEmptyNode:Og};function yC(e,t,n,i){const o=e.atKey,{spaceBefore:l,comment:u,anchor:f,tag:d}=n;let p,m=!0;switch(t.type){case"alias":p=kz(e,t,i),(f||d)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=gC(e,t,d,i),f&&(p.anchor=f.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=uz(Cz,e,t,n,i),f&&(p.anchor=f.source.substring(1));break;default:{const g=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",g),p=Og(e,t.offset,void 0,null,n,i),m=!1}}return f&&p.anchor===""&&i(f,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!Tt(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&i(d??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),l&&(p.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?p.comment=u:p.commentBefore=u),e.options.keepSourceTokens&&m&&(p.srcToken=t),p}function Og(e,t,n,i,{spaceBefore:o,comment:l,anchor:u,tag:f,end:d},p){const m={type:"scalar",offset:xz(t,n,i),indent:-1,source:""},g=gC(e,m,f,p);return u&&(g.anchor=u.source.substring(1),g.anchor===""&&p(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(g.spaceBefore=!0),l&&(g.comment=l,g.range[2]=d),g}function kz({options:e},{offset:t,source:n,end:i},o){const l=new vg(n.substring(1));l.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),l.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=t+n.length,f=tu(i,u,e.strict,o);return l.range=[t,u,f.offset],f.comment&&(l.comment=f.comment),l}function Ez(e,t,{offset:n,start:i,value:o,end:l},u){const f=Object.assign({_directives:t},e),d=new eu(void 0,f),p={atKey:!1,atRoot:!0,directives:d.directives,options:d.options,schema:d.schema},m=qo(i,{indicator:"doc-start",next:o??(l==null?void 0:l[0]),offset:n,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(d.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!m.hasNewline&&u(m.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),d.contents=o?yC(p,o,m,u):Og(p,m.end,i,null,m,u);const g=d.contents.range[2],v=tu(l,g,!1,u);return v.comment&&(d.comment=v.comment),d.range=[n,g,v.offset],d}function al(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function l1(e){var o;let t="",n=!1,i=!1;for(let l=0;l<e.length;++l){const u=e[l];switch(u[0]){case"#":t+=(t===""?"":i?`
`:`
`)+(u.substring(1)||" "),n=!0,i=!1;break;case"%":((o=e[l+1])==null?void 0:o[0])!=="#"&&(l+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}class Tz{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,l)=>{const u=al(n);l?this.warnings.push(new az(u,i,o)):this.errors.push(new hl(u,i,o))},this.directives=new Cn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=l1(this.prelude);if(i){const l=t.contents;if(n)t.comment=t.comment?`${t.comment}
${i}`:i;else if(o||t.directives.docStart||!l)t.commentBefore=i;else if(Ut(l)&&!l.flow&&l.items.length>0){let u=l.items[0];qt(u)&&(u=u.key);const f=u.commentBefore;u.commentBefore=f?`${i}
${f}`:i}else{const u=l.commentBefore;l.commentBefore=u?`${i}
${u}`:i}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:l1(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(const o of t)yield*this.next(o);yield*this.end(n,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,i,o)=>{const l=al(t);l[0]+=n,this.onError(l,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Ez(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new hl(al(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new hl(al(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=tu(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new hl(al(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const i=Object.assign({_directives:this.directives},this.options),o=new eu(void 0,i);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const bC="\uFEFF",vC="",SC="",vm="";function Az(e){switch(e){case bC:return"byte-order-mark";case vC:return"doc-mode";case SC:return"flow-error-end";case vm:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
`:case`\r
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Sr(e){switch(e){case void 0:case" ":case`
`:case"\r":case" ":return!0;default:return!1}}const u1=new Set("0123456789ABCDEFabcdef"),_z=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),xc=new Set(",[]{}"),Rz=new Set(` ,[]{}
\r `),Ah=e=>!e||Rz.has(e);class Oz{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let i=this.next??"stream";for(;i&&(n||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
`?!0:n==="\r"?this.buffer[t+1]===`
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let i=0;for(;n===" ";)n=this.buffer[++i+t];if(n==="\r"){const o=this.buffer[i+t+1];if(o===`
`||!o&&!this.atEnd)return t+i+1}return n===`
`||i>=this.indentNext||!n&&!this.atEnd?t+i:-1}if(n==="-"||n==="."){const i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&Sr(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===bC&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,i=t.indexOf("#");for(;i!==-1;){const l=t[i-1];if(l===" "||l===" "){n=i-1;break}else i=t.indexOf("#",i+1)}for(;;){const l=t[n-1];if(l===" "||l===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield vC,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&Sr(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Sr(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Sr(n)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Ah),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,i=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=i=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&o[0]!=="#"||i===0&&(o.startsWith("---")||o.startsWith("..."))&&Sr(o[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield SC,yield*this.parseLineStart();let l=0;for(;o[l]===",";)l+=yield*this.pushCount(1),l+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(l+=yield*this.pushIndicators(),o[l]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-l),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Ah),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const u=this.charAt(1);if(this.flowKey||Sr(u)||u===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let l=0;for(;this.buffer[n-1-l]==="\\";)l+=1;if(l%2===0)break;n=this.buffer.indexOf('"',n+1)}const i=this.buffer.substring(0,n);let o=i.indexOf(`
`,this.pos);if(o!==-1){for(;o!==-1;){const l=this.continueScalar(o+1);if(l===-1)break;o=i.indexOf(`
`,l)}o!==-1&&(n=o-(i[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Sr(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,i;e:for(let l=this.pos;i=this.buffer[l];++l)switch(i){case" ":n+=1;break;case`
`:t=l,n=0;break;case"\r":{const u=this.buffer[l+1];if(!u&&!this.atEnd)return this.setNext("block-scalar");if(u===`
`)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const l=this.continueScalar(t+1);if(l===-1)break;t=this.buffer.indexOf(`
`,l)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(i=this.buffer[o];i===" ";)i=this.buffer[++o];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
`;)i=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let l=t-1,u=this.buffer[l];u==="\r"&&(u=this.buffer[--l]);const f=l;for(;u===" ";)u=this.buffer[--l];if(u===`
`&&l>=this.pos&&l+1+n>f)t=l;else break}while(!0);return yield vm,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,i=this.pos-1,o;for(;o=this.buffer[++i];)if(o===":"){const l=this.buffer[i+1];if(Sr(l)||t&&xc.has(l))break;n=i}else if(Sr(o)){let l=this.buffer[i+1];if(o==="\r"&&(l===`
`?(i+=1,o=`
`,l=this.buffer[i+1]):n=i),l==="#"||t&&xc.has(l))break;if(o===`
`){const u=this.continueScalar(i+1);if(u===-1)break;i=Math.max(i,u-2)}}else{if(t&&xc.has(o))break;n=i}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield vm,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Ah))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Sr(n)||t&&xc.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Sr(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(_z.has(n))n=this.buffer[++t];else if(n==="%"&&u1.has(this.buffer[t+1])&&u1.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,i;do i=this.buffer[++n];while(i===" "||t&&i===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,i=this.buffer[n];for(;!t(i);)i=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Mz{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,i=this.lineStarts.length;for(;n<i;){const l=n+i>>1;this.lineStarts[l]<t?n=l+1:i=l}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function Ca(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function c1(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function wC(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Cc(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function ko(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function f1(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Ca(t.start,"explicit-key-ind")&&!Ca(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,wC(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Nz{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Oz,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const i of this.lexer.lex(t,n))yield*this.next(i);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=Az(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const i=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in i?i.indent:0:n.type==="flow-collection"&&i.type==="document"&&(n.indent=0),n.type==="flow-collection"&&f1(n),i.type){case"document":i.value=n;break;case"block-scalar":i.props.push(n);break;case"block-map":{const o=i.items[i.items.length-1];if(o.value){i.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=i.items[i.items.length-1];o.value?i.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=i.items[i.items.length-1];!o||o.value?i.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&c1(o.start)===-1&&(n.indent===0||o.start.every(l=>l.type!=="comment"||l.indent<n.indent))&&(i.type==="document"?i.end=o.start:i.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{c1(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=Cc(this.peek(2)),i=ko(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var i;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,l=Array.isArray(o)?o[o.length-1]:void 0;(l==null?void 0:l.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],l=(i=o==null?void 0:o.value)==null?void 0:i.end;if(Array.isArray(l)){Array.prototype.push.apply(l,n.start),l.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const o=!this.onKeyLine&&this.indent===t.indent,l=o&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let u=[];if(l&&n.sep&&!n.value){const f=[];for(let d=0;d<n.sep.length;++d){const p=n.sep[d];switch(p.type){case"newline":f.push(d);break;case"space":break;case"comment":p.indent>t.indent&&(f.length=0);break;default:f.length=0}}f.length>=2&&(u=n.sep.splice(f[1]))}switch(this.type){case"anchor":case"tag":l||n.value?(u.push(this.sourceToken),t.items.push({start:u}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):l||n.value?(u.push(this.sourceToken),t.items.push({start:u,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ca(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]});else if(wC(n.key)&&!Ca(n.sep,"newline")){const f=ko(n.start),d=n.key,p=n.sep;p.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:d,sep:p}]})}else u.length>0?n.sep=n.sep.concat(u,this.sourceToken):n.sep.push(this.sourceToken);else if(Ca(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const f=ko(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||l?t.items.push({start:u,key:null,sep:[this.sourceToken]}):Ca(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const f=this.flowScalar(this.type);l||n.value?(t.items.push({start:u,key:f,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(f):(Object.assign(n,{key:f,sep:[]}),this.onKeyLine=!0);return}default:{const f=this.startBlockValue(t);if(f){o&&f.type!=="block-seq"&&t.items.push({start:u}),this.stack.push(f);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var i;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,l=Array.isArray(o)?o[o.length-1]:void 0;(l==null?void 0:l.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],l=(i=o==null?void 0:o.value)==null?void 0:i.end;if(Array.isArray(l)){Array.prototype.push.apply(l,n.start),l.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||Ca(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const o=Cc(i),l=ko(o);f1(t);const u=t.end.splice(1,t.end.length);u.push(this.sourceToken);const f={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:l,key:t,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=f}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Cc(t),i=ko(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Cc(t),i=ko(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Dz(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Mz||null,prettyErrors:t}}function xC(e,t={}){const{lineCounter:n,prettyErrors:i}=Dz(t),o=new Nz(n==null?void 0:n.addNewLine),l=new Tz(t);let u=null;for(const f of l.compose(o.parse(e),!0,e.length))if(!u)u=f;else if(u.options.logLevel!=="silent"){u.errors.push(new hl(f.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(o1(e,n)),u.warnings.forEach(o1(e,n))),u}function Lz(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const zz=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Iz=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bz={};function d1(e,t){return(Bz.jsx?Iz:zz).test(e)}const jz=/[ \t\n\f\r]/g;function $z(e){return typeof e=="object"?e.type==="text"?p1(e.value):!1:p1(e)}function p1(e){return e.replace(jz,"")===""}class nu{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}nu.prototype.normal={};nu.prototype.property={};nu.prototype.space=void 0;function CC(e,t){const n={},i={};for(const o of e)Object.assign(n,o.property),Object.assign(i,o.normal);return new nu(n,i,t)}function Sm(e){return e.toLowerCase()}class Bn{constructor(t,n){this.attribute=n,this.property=t}}Bn.prototype.attribute="";Bn.prototype.booleanish=!1;Bn.prototype.boolean=!1;Bn.prototype.commaOrSpaceSeparated=!1;Bn.prototype.commaSeparated=!1;Bn.prototype.defined=!1;Bn.prototype.mustUseProperty=!1;Bn.prototype.number=!1;Bn.prototype.overloadedBoolean=!1;Bn.prototype.property="";Bn.prototype.spaceSeparated=!1;Bn.prototype.space=void 0;let Pz=0;const Be=Na(),Xt=Na(),kC=Na(),pe=Na(),kt=Na(),jo=Na(),Vn=Na();function Na(){return 2**++Pz}const wm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Be,booleanish:Xt,commaOrSpaceSeparated:Vn,commaSeparated:jo,number:pe,overloadedBoolean:kC,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),_h=Object.keys(wm);class Mg extends Bn{constructor(t,n,i,o){let l=-1;if(super(t,n),h1(this,"space",o),typeof i=="number")for(;++l<_h.length;){const u=_h[l];h1(this,_h[l],(i&wm[u])===wm[u])}}}Mg.prototype.defined=!0;function h1(e,t,n){n&&(e[t]=n)}function es(e){const t={},n={};for(const[i,o]of Object.entries(e.properties)){const l=new Mg(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[Sm(i)]=i,n[Sm(l.attribute)]=i}return new nu(t,n,e.space)}const EC=es({properties:{ariaActiveDescendant:null,ariaAtomic:Xt,ariaAutoComplete:null,ariaBusy:Xt,ariaChecked:Xt,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Xt,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Xt,ariaFlowTo:kt,ariaGrabbed:Xt,ariaHasPopup:null,ariaHidden:Xt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:pe,ariaLive:null,ariaModal:Xt,ariaMultiLine:Xt,ariaMultiSelectable:Xt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Xt,ariaReadOnly:Xt,ariaRelevant:null,ariaRequired:Xt,ariaRoleDescription:kt,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Xt,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function TC(e,t){return t in e?e[t]:t}function AC(e,t){return TC(e,t.toLowerCase())}const Uz=es({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jo,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:Be,allowPaymentRequest:Be,allowUserMedia:Be,alt:null,as:null,async:Be,autoCapitalize:null,autoComplete:kt,autoFocus:Be,autoPlay:Be,blocking:kt,capture:null,charSet:null,checked:Be,cite:null,className:kt,cols:pe,colSpan:null,content:null,contentEditable:Xt,controls:Be,controlsList:kt,coords:pe|jo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Be,defer:Be,dir:null,dirName:null,disabled:Be,download:kC,draggable:Xt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Be,formTarget:null,headers:kt,height:pe,hidden:Be,high:pe,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:Be,inputMode:null,integrity:null,is:null,isMap:Be,itemId:null,itemProp:kt,itemRef:kt,itemScope:Be,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Be,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Be,muted:Be,name:null,nonce:null,noModule:Be,noValidate:Be,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:Be,optimum:pe,pattern:null,ping:kt,placeholder:null,playsInline:Be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Be,referrerPolicy:null,rel:kt,required:Be,reversed:Be,rows:pe,rowSpan:pe,sandbox:kt,scope:null,scoped:Be,seamless:Be,selected:Be,shadowRootClonable:Be,shadowRootDelegatesFocus:Be,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Xt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Be,useMap:null,value:Xt,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Be,declare:Be,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Be,noHref:Be,noShade:Be,noWrap:Be,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Xt,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Be,disableRemotePlayback:Be,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:AC}),Hz=es({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:Vn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:kt,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:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Be,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,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:jo,g2:jo,glyphName:jo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:Vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,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:pe,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:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vn,rev:Vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vn,requiredFeatures:Vn,requiredFonts:Vn,requiredFormats:Vn,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:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:Vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:TC}),_C=es({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),RC=es({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:AC}),OC=es({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),qz={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"},Fz=/[A-Z]/g,m1=/-[a-z]/g,Vz=/^data[-\w.:]+$/i;function Gz(e,t){const n=Sm(t);let i=t,o=Bn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Vz.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(m1,Yz);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!m1.test(l)){let u=l.replace(Fz,Kz);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}o=Mg}return new o(i,t)}function Kz(e){return"-"+e.toLowerCase()}function Yz(e){return e.charAt(1).toUpperCase()}const Xz=CC([EC,Uz,_C,RC,OC],"html"),Ng=CC([EC,Hz,_C,RC,OC],"svg");function Wz(e){return e.join(" ").trim()}var Eo={},Rh,g1;function Qz(){if(g1)return Rh;g1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
`,p="/",m="*",g="",v="comment",b="declaration";Rh=function(S,C){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];C=C||{};var A=1,O=1;function _(G){var Y=G.match(t);Y&&(A+=Y.length);var V=G.lastIndexOf(d);O=~V?G.length-V:O+G.length}function M(){var G={line:A,column:O};return function(Y){return Y.position=new R(G),z(),Y}}function R(G){this.start=G,this.end={line:A,column:O},this.source=C.source}R.prototype.content=S;function D(G){var Y=new Error(C.source+":"+A+":"+O+": "+G);if(Y.reason=G,Y.filename=C.source,Y.line=A,Y.column=O,Y.source=S,!C.silent)throw Y}function P(G){var Y=G.exec(S);if(Y){var V=Y[0];return _(V),S=S.slice(V.length),Y}}function z(){P(n)}function $(G){var Y;for(G=G||[];Y=E();)Y!==!1&&G.push(Y);return G}function E(){var G=M();if(!(p!=S.charAt(0)||m!=S.charAt(1))){for(var Y=2;g!=S.charAt(Y)&&(m!=S.charAt(Y)||p!=S.charAt(Y+1));)++Y;if(Y+=2,g===S.charAt(Y-1))return D("End of comment missing");var V=S.slice(2,Y-2);return O+=2,_(V),S=S.slice(Y),O+=2,G({type:v,comment:V})}}function I(){var G=M(),Y=P(i);if(Y){if(E(),!P(o))return D("property missing ':'");var V=P(l),H=G({type:b,property:w(Y[0].replace(e,g)),value:V?w(V[0].replace(e,g)):g});return P(u),H}}function U(){var G=[];$(G);for(var Y;Y=I();)Y!==!1&&(G.push(Y),$(G));return G}return z(),U()};function w(S){return S?S.replace(f,g):g}return Rh}var y1;function Zz(){if(y1)return Eo;y1=1;var e=Eo&&Eo.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=n;var t=e(Qz());function n(i,o){var l=null;if(!i||typeof i!="string")return l;var u=(0,t.default)(i),f=typeof o=="function";return u.forEach(function(d){if(d.type==="declaration"){var p=d.property,m=d.value;f?o(p,m,d):m&&(l=l||{},l[p]=m)}}),l}return Eo}var Jz=Zz();const b1=rf(Jz),e4=b1.default||b1,MC=NC("end"),Dg=NC("start");function NC(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function t4(e){const t=Dg(e),n=MC(e);if(t&&n)return{start:t,end:n}}function Cl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?v1(e.position):"start"in e||"end"in e?v1(e):"line"in e||"column"in e?xm(e):""}function xm(e){return S1(e&&e.line)+":"+S1(e&&e.column)}function v1(e){return xm(e&&e.start)+"-"+xm(e&&e.end)}function S1(e){return e&&typeof e=="number"?e:1}class vn extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let o="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?o=t:!l.cause&&t&&(u=!0,o=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?l.ruleId=i:(l.source=i.slice(0,d),l.ruleId=i.slice(d+1))}if(!l.place&&l.ancestors&&l.ancestors){const d=l.ancestors[l.ancestors.length-1];d&&(l.place=d.position)}const f=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=f?f.line:void 0,this.name=Cl(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}vn.prototype.file="";vn.prototype.name="";vn.prototype.reason="";vn.prototype.message="";vn.prototype.stack="";vn.prototype.column=void 0;vn.prototype.line=void 0;vn.prototype.ancestors=void 0;vn.prototype.cause=void 0;vn.prototype.fatal=void 0;vn.prototype.place=void 0;vn.prototype.ruleId=void 0;vn.prototype.source=void 0;const Lg={}.hasOwnProperty,n4=new Map,r4=/[A-Z]/g,i4=/-([a-z])/g,a4=new Set(["table","tbody","thead","tfoot","tr"]),o4=new Set(["td","th"]),DC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function s4(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=m4(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=h4(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ng:Xz,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=LC(o,e,void 0);return l&&typeof l!="string"?l:o.create(e,o.Fragment,{children:l||void 0},void 0)}function LC(e,t,n){if(t.type==="element")return l4(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return u4(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return f4(e,t,n);if(t.type==="mdxjsEsm")return c4(e,t);if(t.type==="root")return d4(e,t,n);if(t.type==="text")return p4(e,t)}function l4(e,t,n){const i=e.schema;let o=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=Ng,e.schema=o),e.ancestors.push(t);const l=IC(e,t.tagName,!1),u=g4(e,t);let f=Ig(e,t);return a4.has(t.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!$z(d):!0})),zC(e,u,l,t),zg(u,f),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function u4(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Il(e,t.position)}function c4(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Il(e,t.position)}function f4(e,t,n){const i=e.schema;let o=i;t.name==="svg"&&i.space==="html"&&(o=Ng,e.schema=o),e.ancestors.push(t);const l=t.name===null?e.Fragment:IC(e,t.name,!0),u=y4(e,t),f=Ig(e,t);return zC(e,u,l,t),zg(u,f),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function d4(e,t,n){const i={};return zg(i,Ig(e,t)),e.create(t,e.Fragment,i,n)}function p4(e,t){return t.value}function zC(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function zg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function h4(e,t,n){return i;function i(o,l,u,f){const p=Array.isArray(u.children)?n:t;return f?p(l,u,f):p(l,u)}}function m4(e,t){return n;function n(i,o,l,u){const f=Array.isArray(l.children),d=Dg(i);return t(o,l,u,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function g4(e,t){const n={};let i,o;for(o in t.properties)if(o!=="children"&&Lg.call(t.properties,o)){const l=b4(e,o,t.properties[o]);if(l){const[u,f]=l;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&o4.has(t.tagName)?i=f:n[u]=f}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function y4(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const l=i.data.estree.body[0];l.type;const u=l.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else Il(e,t.position);else{const o=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,l=e.evaluater.evaluateExpression(f.expression)}else Il(e,t.position);else l=i.value===null?!0:i.value;n[o]=l}return n}function Ig(e,t){const n=[];let i=-1;const o=e.passKeys?new Map:n4;for(;++i<t.children.length;){const l=t.children[i];let u;if(e.passKeys){const d=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(d){const p=o.get(d)||0;u=d+"-"+p,o.set(d,p+1)}}const f=LC(e,l,u);f!==void 0&&n.push(f)}return n}function b4(e,t,n){const i=Gz(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Lz(n):Wz(n)),i.property==="style"){let o=typeof n=="object"?n:v4(e,String(n));return e.stylePropertyNameCase==="css"&&(o=S4(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?qz[i.property]||i.property:i.attribute,n]}}function v4(e,t){const n={};try{e4(t,i)}catch(o){if(!e.ignoreInvalidStyle){const l=o,u=new vn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=e.filePath||void 0,u.url=DC+"#cannot-parse-style-attribute",u}}return n;function i(o,l){let u=o;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(i4,x4)),n[u]=l}}function IC(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let l=-1,u;for(;++l<o.length;){const f=d1(o[l])?{type:"Identifier",name:o[l]}:{type:"Literal",value:o[l]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(l&&f.type==="Literal"),optional:!1}:f}i=u}else i=d1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const o=i.value;return Lg.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);Il(e)}function Il(e,t){const n=new vn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=DC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function S4(e){const t={};let n;for(n in e)Lg.call(e,n)&&(t[w4(n)]=e[n]);return t}function w4(e){let t=e.replace(r4,C4);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function x4(e,t){return t.toUpperCase()}function C4(e){return"-"+e.toLowerCase()}const Oh={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"]},k4={};function E4(e,t){const n=k4,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return BC(e,i,o)}function BC(e,t,n){if(T4(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return w1(e.children,t,n)}return Array.isArray(e)?w1(e,t,n):""}function w1(e,t,n){const i=[];let o=-1;for(;++o<e.length;)i[o]=BC(e[o],t,n);return i.join("")}function T4(e){return!!(e&&typeof e=="object")}const x1=document.createElement("i");function Bg(e){const t="&"+e+";";x1.innerHTML=t;const n=x1.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Gr(e,t,n,i){const o=e.length;let l=0,u;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<i.length;)u=i.slice(l,l+1e4),u.unshift(t,0),e.splice(...u),l+=1e4,t+=1e4}function fr(e,t){return e.length>0?(Gr(e,e.length,0,t),e):t}const C1={}.hasOwnProperty;function A4(e){const t={};let n=-1;for(;++n<e.length;)_4(t,e[n]);return t}function _4(e,t){let n;for(n in t){const o=(C1.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){C1.call(o,u)||(o[u]=[]);const f=l[u];R4(o[u],Array.isArray(f)?f:f?[f]:[])}}}function R4(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Gr(e,0,0,i)}function jC(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"<22>":String.fromCodePoint(n)}function $o(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Hr=Wi(/[A-Za-z]/),Kn=Wi(/[\dA-Za-z]/),O4=Wi(/[#-'*+\--9=?A-Z^-~]/);function Cm(e){return e!==null&&(e<32||e===127)}const km=Wi(/\d/),M4=Wi(/[\dA-Fa-f]/),N4=Wi(/[!-/:-@[-`{-~]/);function Le(e){return e!==null&&e<-2}function Ln(e){return e!==null&&(e<0||e===32)}function ct(e){return e===-2||e===-1||e===32}const D4=Wi(new RegExp("\\p{P}|\\p{S}","u")),L4=Wi(/\s/);function Wi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ts(e){const t=[];let n=-1,i=0,o=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&Kn(e.charCodeAt(n+1))&&Kn(e.charCodeAt(n+2)))o=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const f=e.charCodeAt(n+1);l<56320&&f>56319&&f<57344?(u=String.fromCharCode(l,f),o=1):u="<22>"}else u=String.fromCharCode(l);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+o+1,u=""),o&&(n+=o,o=0)}return t.join("")+e.slice(i)}function Et(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(d){return ct(d)?(e.enter(n),f(d)):t(d)}function f(d){return ct(d)&&l++<o?(e.consume(d),f):(e.exit(n),t(d))}}const z4={tokenize:I4};function I4(e){const t=e.attempt(this.parser.constructs.contentInitial,i,o);let n;return t;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Et(e,t,"linePrefix")}function o(f){return e.enter("paragraph"),l(f)}function l(f){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Le(f)?(e.consume(f),e.exit("chunkText"),l):(e.consume(f),u)}}const B4={tokenize:j4},k1={tokenize:$4};function j4(e){const t=this,n=[];let i=0,o,l,u;return f;function f(_){if(i<n.length){const M=n[i];return t.containerState=M[1],e.attempt(M[0].continuation,d,p)(_)}return p(_)}function d(_){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&O();const M=t.events.length;let R=M,D;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){D=t.events[R][1].end;break}A(i);let P=M;for(;P<t.events.length;)t.events[P][1].end={...D},P++;return Gr(t.events,R+1,0,t.events.slice(M)),t.events.length=P,p(_)}return f(_)}function p(_){if(i===n.length){if(!o)return v(_);if(o.currentConstruct&&o.currentConstruct.concrete)return w(_);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(k1,m,g)(_)}function m(_){return o&&O(),A(i),v(_)}function g(_){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,w(_)}function v(_){return t.containerState={},e.attempt(k1,b,w)(_)}function b(_){return i++,n.push([t.currentConstruct,t.containerState]),v(_)}function w(_){if(_===null){o&&O(),A(0),e.consume(_);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:l}),S(_)}function S(_){if(_===null){C(e.exit("chunkFlow"),!0),A(0),e.consume(_);return}return Le(_)?(e.consume(_),C(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(_),S)}function C(_,M){const R=t.sliceStream(_);if(M&&R.push(null),_.previous=l,l&&(l.next=_),l=_,o.defineSkip(_.start),o.write(R),t.parser.lazy[_.start.line]){let D=o.events.length;for(;D--;)if(o.events[D][1].start.offset<u&&(!o.events[D][1].end||o.events[D][1].end.offset>u))return;const P=t.events.length;let z=P,$,E;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if($){E=t.events[z][1].end;break}$=!0}for(A(i),D=P;D<t.events.length;)t.events[D][1].end={...E},D++;Gr(t.events,z+1,0,t.events.slice(P)),t.events.length=D}}function A(_){let M=n.length;for(;M-- >_;){const R=n[M];t.containerState=R[1],R[0].exit.call(t,e)}n.length=_}function O(){o.write([null]),l=void 0,o=void 0,t.containerState._closeFlow=void 0}}function $4(e,t,n){return Et(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function E1(e){if(e===null||Ln(e)||L4(e))return 1;if(D4(e))return 2}function jg(e,t,n){const i=[];let o=-1;for(;++o<e.length;){const l=e[o].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const Em={name:"attention",resolveAll:P4,tokenize:U4};function P4(e,t){let n=-1,i,o,l,u,f,d,p,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g={...e[i][1].end},v={...e[n][1].start};T1(g,-d),T1(v,d),u={type:d>1?"strongSequence":"emphasisSequence",start:g,end:{...e[i][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:v},l={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},o={type:d>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[i][1].end={...u.start},e[n][1].start={...f.end},p=[],e[i][1].end.offset-e[i][1].start.offset&&(p=fr(p,[["enter",e[i][1],t],["exit",e[i][1],t]])),p=fr(p,[["enter",o,t],["enter",u,t],["exit",u,t],["enter",l,t]]),p=fr(p,jg(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),p=fr(p,[["exit",l,t],["enter",f,t],["exit",f,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,p=fr(p,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Gr(e,i-1,n-i+3,p),n=i+p.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function U4(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,o=E1(i);let l;return u;function u(d){return l=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===l)return e.consume(d),f;const p=e.exit("attentionSequence"),m=E1(d),g=!m||m===2&&o||n.includes(d),v=!o||o===2&&m||n.includes(i);return p._open=!!(l===42?g:g&&(o||!v)),p._close=!!(l===42?v:v&&(m||!g)),t(d)}}function T1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const H4={name:"autolink",tokenize:q4};function q4(e,t,n){let i=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(b){return Hr(b)?(e.consume(b),u):b===64?n(b):p(b)}function u(b){return b===43||b===45||b===46||Kn(b)?(i=1,f(b)):p(b)}function f(b){return b===58?(e.consume(b),i=0,d):(b===43||b===45||b===46||Kn(b))&&i++<32?(e.consume(b),f):(i=0,p(b))}function d(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||Cm(b)?n(b):(e.consume(b),d)}function p(b){return b===64?(e.consume(b),m):O4(b)?(e.consume(b),p):n(b)}function m(b){return Kn(b)?g(b):n(b)}function g(b){return b===46?(e.consume(b),i=0,m):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):v(b)}function v(b){if((b===45||Kn(b))&&i++<63){const w=b===45?v:g;return e.consume(b),w}return n(b)}}const Hf={partial:!0,tokenize:F4};function F4(e,t,n){return i;function i(l){return ct(l)?Et(e,o,"linePrefix")(l):o(l)}function o(l){return l===null||Le(l)?t(l):n(l)}}const $C={continuation:{tokenize:G4},exit:K4,name:"blockQuote",tokenize:V4};function V4(e,t,n){const i=this;return o;function o(u){if(u===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),l}return n(u)}function l(u){return ct(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function G4(e,t,n){const i=this;return o;function o(u){return ct(u)?Et(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt($C,t,n)(u)}}function K4(e){e.exit("blockQuote")}const PC={name:"characterEscape",tokenize:Y4};function Y4(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),o}function o(l){return N4(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const UC={name:"characterReference",tokenize:X4};function X4(e,t,n){const i=this;let o=0,l,u;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),l=31,u=Kn,m(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,u=M4,m):(e.enter("characterReferenceValue"),l=7,u=km,m(g))}function m(g){if(g===59&&o){const v=e.exit("characterReferenceValue");return u===Kn&&!Bg(i.sliceSerialize(v))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&o++<l?(e.consume(g),m):n(g)}}const A1={partial:!0,tokenize:Q4},_1={concrete:!0,name:"codeFenced",tokenize:W4};function W4(e,t,n){const i=this,o={partial:!0,tokenize:R};let l=0,u=0,f;return d;function d(D){return p(D)}function p(D){const P=i.events[i.events.length-1];return l=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,f=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(D)}function m(D){return D===f?(u++,e.consume(D),m):u<3?n(D):(e.exit("codeFencedFenceSequence"),ct(D)?Et(e,g,"whitespace")(D):g(D))}function g(D){return D===null||Le(D)?(e.exit("codeFencedFence"),i.interrupt?t(D):e.check(A1,S,M)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(D))}function v(D){return D===null||Le(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(D)):ct(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,b,"whitespace")(D)):D===96&&D===f?n(D):(e.consume(D),v)}function b(D){return D===null||Le(D)?g(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===null||Le(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(D)):D===96&&D===f?n(D):(e.consume(D),w)}function S(D){return e.attempt(o,M,C)(D)}function C(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),A}function A(D){return l>0&&ct(D)?Et(e,O,"linePrefix",l+1)(D):O(D)}function O(D){return D===null||Le(D)?e.check(A1,S,M)(D):(e.enter("codeFlowValue"),_(D))}function _(D){return D===null||Le(D)?(e.exit("codeFlowValue"),O(D)):(e.consume(D),_)}function M(D){return e.exit("codeFenced"),t(D)}function R(D,P,z){let $=0;return E;function E(V){return D.enter("lineEnding"),D.consume(V),D.exit("lineEnding"),I}function I(V){return D.enter("codeFencedFence"),ct(V)?Et(D,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):U(V)}function U(V){return V===f?(D.enter("codeFencedFenceSequence"),G(V)):z(V)}function G(V){return V===f?($++,D.consume(V),G):$>=u?(D.exit("codeFencedFenceSequence"),ct(V)?Et(D,Y,"whitespace")(V):Y(V)):z(V)}function Y(V){return V===null||Le(V)?(D.exit("codeFencedFence"),P(V)):z(V)}}}function Q4(e,t,n){const i=this;return o;function o(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const Mh={name:"codeIndented",tokenize:J4},Z4={partial:!0,tokenize:eI};function J4(e,t,n){const i=this;return o;function o(p){return e.enter("codeIndented"),Et(e,l,"linePrefix",5)(p)}function l(p){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):n(p)}function u(p){return p===null?d(p):Le(p)?e.attempt(Z4,u,d)(p):(e.enter("codeFlowValue"),f(p))}function f(p){return p===null||Le(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),f)}function d(p){return e.exit("codeIndented"),t(p)}}function eI(e,t,n){const i=this;return o;function o(u){return i.parser.lazy[i.now().line]?n(u):Le(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):Et(e,l,"linePrefix",5)(u)}function l(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):Le(u)?o(u):n(u)}}const tI={name:"codeText",previous:rI,resolve:nI,tokenize:iI};function nI(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function rI(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function iI(e,t,n){let i=0,o,l;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),i++,f):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(l=e.enter("codeTextSequence"),o=0,m(g)):Le(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||Le(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),p)}function m(g){return g===96?(e.consume(g),o++,m):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(l.type="codeTextData",p(g))}}class aI{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const o=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&ol(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ol(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ol(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ol(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ol(this.left,n.reverse())}}}function ol(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function HC(e){const t={};let n=-1,i,o,l,u,f,d,p;const m=new aI(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(i=m.get(n),n&&i[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,l=0,l<d.length&&d[l][1].type==="lineEndingBlank"&&(l+=2),l<d.length&&d[l][1].type==="content"))for(;++l<d.length&&d[l][1].type!=="content";)d[l][1].type==="chunkText"&&(d[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,oI(m,n)),n=t[n],p=!0);else if(i[1]._container){for(l=n,o=void 0;l--;)if(u=m.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(m.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=l);else if(u[1].type!=="linePrefix")break;o&&(i[1].end={...m.get(o)[1].start},f=m.slice(o,n),f.unshift(i),m.splice(o,n-o+1,f))}}return Gr(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!p}function oI(e,t){const n=e.get(t)[1],i=e.get(t)[2];let o=t-1;const l=[],u=n._tokenizer||i.parser[n.contentType](n.start),f=u.events,d=[],p={};let m,g,v=-1,b=n,w=0,S=0;const C=[S];for(;b;){for(;e.get(++o)[1]!==b;);l.push(o),b._tokenizer||(m=i.sliceStream(b),b.next||m.push(null),g&&u.defineSkip(b.start),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=n;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(S=v+1,C.push(S),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(u.events=[],b?(b._tokenizer=void 0,b.previous=void 0):C.pop(),v=C.length;v--;){const A=f.slice(C[v],C[v+1]),O=l.pop();d.push([O,O+A.length-1]),e.splice(O,2,A)}for(d.reverse(),v=-1;++v<d.length;)p[w+d[v][0]]=w+d[v][1],w+=d[v][1]-d[v][0]-1;return p}const sI={resolve:uI,tokenize:cI},lI={partial:!0,tokenize:fI};function uI(e){return HC(e),e}function cI(e,t){let n;return i;function i(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?l(f):Le(f)?e.check(lI,u,l)(f):(e.consume(f),o)}function l(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function fI(e,t,n){const i=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Et(e,l,"linePrefix")}function l(u){if(u===null||Le(u))return n(u);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function qC(e,t,n,i,o,l,u,f,d){const p=d||Number.POSITIVE_INFINITY;let m=0;return g;function g(A){return A===60?(e.enter(i),e.enter(o),e.enter(l),e.consume(A),e.exit(l),v):A===null||A===32||A===41||Cm(A)?n(A):(e.enter(i),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),S(A))}function v(A){return A===62?(e.enter(l),e.consume(A),e.exit(l),e.exit(o),e.exit(i),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(A))}function b(A){return A===62?(e.exit("chunkString"),e.exit(f),v(A)):A===null||A===60||Le(A)?n(A):(e.consume(A),A===92?w:b)}function w(A){return A===60||A===62||A===92?(e.consume(A),b):b(A)}function S(A){return!m&&(A===null||A===41||Ln(A))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(i),t(A)):m<p&&A===40?(e.consume(A),m++,S):A===41?(e.consume(A),m--,S):A===null||A===32||A===40||Cm(A)?n(A):(e.consume(A),A===92?C:S)}function C(A){return A===40||A===41||A===92?(e.consume(A),S):S(A)}}function FC(e,t,n,i,o,l){const u=this;let f=0,d;return p;function p(b){return e.enter(i),e.enter(o),e.consume(b),e.exit(o),e.enter(l),m}function m(b){return f>999||b===null||b===91||b===93&&!d||b===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(b):b===93?(e.exit(l),e.enter(o),e.consume(b),e.exit(o),e.exit(i),t):Le(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||Le(b)||f++>999?(e.exit("chunkString"),m(b)):(e.consume(b),d||(d=!ct(b)),b===92?v:g)}function v(b){return b===91||b===92||b===93?(e.consume(b),f++,g):g(b)}}function VC(e,t,n,i,o,l){let u;return f;function f(v){return v===34||v===39||v===40?(e.enter(i),e.enter(o),e.consume(v),e.exit(o),u=v===40?41:v,d):n(v)}function d(v){return v===u?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),t):(e.enter(l),p(v))}function p(v){return v===u?(e.exit(l),d(u)):v===null?n(v):Le(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Et(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===u||v===null||Le(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:m)}function g(v){return v===u||v===92?(e.consume(v),m):m(v)}}function kl(e,t){let n;return i;function i(o){return Le(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):ct(o)?Et(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const dI={name:"definition",tokenize:hI},pI={partial:!0,tokenize:mI};function hI(e,t,n){const i=this;let o;return l;function l(b){return e.enter("definition"),u(b)}function u(b){return FC.call(i,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return o=$o(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):n(b)}function d(b){return Ln(b)?kl(e,p)(b):p(b)}function p(b){return qC(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function m(b){return e.attempt(pI,g,g)(b)}function g(b){return ct(b)?Et(e,v,"whitespace")(b):v(b)}function v(b){return b===null||Le(b)?(e.exit("definition"),i.parser.defined.push(o),t(b)):n(b)}}function mI(e,t,n){return i;function i(f){return Ln(f)?kl(e,o)(f):n(f)}function o(f){return VC(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function l(f){return ct(f)?Et(e,u,"whitespace")(f):u(f)}function u(f){return f===null||Le(f)?t(f):n(f)}}const gI={name:"hardBreakEscape",tokenize:yI};function yI(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),o}function o(l){return Le(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const bI={name:"headingAtx",resolve:vI,tokenize:SI};function vI(e,t){let n=e.length-2,i=3,o,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Gr(e,i,n-i+1,[["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t]])),e}function SI(e,t,n){let i=0;return o;function o(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&i++<6?(e.consume(m),u):m===null||Ln(m)?(e.exit("atxHeadingSequence"),f(m)):n(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Le(m)?(e.exit("atxHeading"),t(m)):ct(m)?Et(e,f,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),f(m))}function p(m){return m===null||m===35||Ln(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),p)}}const wI=["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"],R1=["pre","script","style","textarea"],xI={concrete:!0,name:"htmlFlow",resolveTo:EI,tokenize:TI},CI={partial:!0,tokenize:_I},kI={partial:!0,tokenize:AI};function EI(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function TI(e,t,n){const i=this;let o,l,u,f,d;return p;function p(L){return m(L)}function m(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),g}function g(L){return L===33?(e.consume(L),v):L===47?(e.consume(L),l=!0,S):L===63?(e.consume(L),o=3,i.interrupt?t:k):Hr(L)?(e.consume(L),u=String.fromCharCode(L),C):n(L)}function v(L){return L===45?(e.consume(L),o=2,b):L===91?(e.consume(L),o=5,f=0,w):Hr(L)?(e.consume(L),o=4,i.interrupt?t:k):n(L)}function b(L){return L===45?(e.consume(L),i.interrupt?t:k):n(L)}function w(L){const re="CDATA[";return L===re.charCodeAt(f++)?(e.consume(L),f===re.length?i.interrupt?t:U:w):n(L)}function S(L){return Hr(L)?(e.consume(L),u=String.fromCharCode(L),C):n(L)}function C(L){if(L===null||L===47||L===62||Ln(L)){const re=L===47,fe=u.toLowerCase();return!re&&!l&&R1.includes(fe)?(o=1,i.interrupt?t(L):U(L)):wI.includes(u.toLowerCase())?(o=6,re?(e.consume(L),A):i.interrupt?t(L):U(L)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(L):l?O(L):_(L))}return L===45||Kn(L)?(e.consume(L),u+=String.fromCharCode(L),C):n(L)}function A(L){return L===62?(e.consume(L),i.interrupt?t:U):n(L)}function O(L){return ct(L)?(e.consume(L),O):E(L)}function _(L){return L===47?(e.consume(L),E):L===58||L===95||Hr(L)?(e.consume(L),M):ct(L)?(e.consume(L),_):E(L)}function M(L){return L===45||L===46||L===58||L===95||Kn(L)?(e.consume(L),M):R(L)}function R(L){return L===61?(e.consume(L),D):ct(L)?(e.consume(L),R):_(L)}function D(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),d=L,P):ct(L)?(e.consume(L),D):z(L)}function P(L){return L===d?(e.consume(L),d=null,$):L===null||Le(L)?n(L):(e.consume(L),P)}function z(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Ln(L)?R(L):(e.consume(L),z)}function $(L){return L===47||L===62||ct(L)?_(L):n(L)}function E(L){return L===62?(e.consume(L),I):n(L)}function I(L){return L===null||Le(L)?U(L):ct(L)?(e.consume(L),I):n(L)}function U(L){return L===45&&o===2?(e.consume(L),H):L===60&&o===1?(e.consume(L),Z):L===62&&o===4?(e.consume(L),X):L===63&&o===3?(e.consume(L),k):L===93&&o===5?(e.consume(L),J):Le(L)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(CI,se,G)(L)):L===null||Le(L)?(e.exit("htmlFlowData"),G(L)):(e.consume(L),U)}function G(L){return e.check(kI,Y,se)(L)}function Y(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),V}function V(L){return L===null||Le(L)?G(L):(e.enter("htmlFlowData"),U(L))}function H(L){return L===45?(e.consume(L),k):U(L)}function Z(L){return L===47?(e.consume(L),u="",ae):U(L)}function ae(L){if(L===62){const re=u.toLowerCase();return R1.includes(re)?(e.consume(L),X):U(L)}return Hr(L)&&u.length<8?(e.consume(L),u+=String.fromCharCode(L),ae):U(L)}function J(L){return L===93?(e.consume(L),k):U(L)}function k(L){return L===62?(e.consume(L),X):L===45&&o===2?(e.consume(L),k):U(L)}function X(L){return L===null||Le(L)?(e.exit("htmlFlowData"),se(L)):(e.consume(L),X)}function se(L){return e.exit("htmlFlow"),t(L)}}function AI(e,t,n){const i=this;return o;function o(u){return Le(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function _I(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Hf,t,n)}}const RI={name:"htmlText",tokenize:OI};function OI(e,t,n){const i=this;let o,l,u;return f;function f(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),d}function d(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),R):k===63?(e.consume(k),_):Hr(k)?(e.consume(k),z):n(k)}function p(k){return k===45?(e.consume(k),m):k===91?(e.consume(k),l=0,w):Hr(k)?(e.consume(k),O):n(k)}function m(k){return k===45?(e.consume(k),b):n(k)}function g(k){return k===null?n(k):k===45?(e.consume(k),v):Le(k)?(u=g,Z(k)):(e.consume(k),g)}function v(k){return k===45?(e.consume(k),b):g(k)}function b(k){return k===62?H(k):k===45?v(k):g(k)}function w(k){const X="CDATA[";return k===X.charCodeAt(l++)?(e.consume(k),l===X.length?S:w):n(k)}function S(k){return k===null?n(k):k===93?(e.consume(k),C):Le(k)?(u=S,Z(k)):(e.consume(k),S)}function C(k){return k===93?(e.consume(k),A):S(k)}function A(k){return k===62?H(k):k===93?(e.consume(k),A):S(k)}function O(k){return k===null||k===62?H(k):Le(k)?(u=O,Z(k)):(e.consume(k),O)}function _(k){return k===null?n(k):k===63?(e.consume(k),M):Le(k)?(u=_,Z(k)):(e.consume(k),_)}function M(k){return k===62?H(k):_(k)}function R(k){return Hr(k)?(e.consume(k),D):n(k)}function D(k){return k===45||Kn(k)?(e.consume(k),D):P(k)}function P(k){return Le(k)?(u=P,Z(k)):ct(k)?(e.consume(k),P):H(k)}function z(k){return k===45||Kn(k)?(e.consume(k),z):k===47||k===62||Ln(k)?$(k):n(k)}function $(k){return k===47?(e.consume(k),H):k===58||k===95||Hr(k)?(e.consume(k),E):Le(k)?(u=$,Z(k)):ct(k)?(e.consume(k),$):H(k)}function E(k){return k===45||k===46||k===58||k===95||Kn(k)?(e.consume(k),E):I(k)}function I(k){return k===61?(e.consume(k),U):Le(k)?(u=I,Z(k)):ct(k)?(e.consume(k),I):$(k)}function U(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),o=k,G):Le(k)?(u=U,Z(k)):ct(k)?(e.consume(k),U):(e.consume(k),Y)}function G(k){return k===o?(e.consume(k),o=void 0,V):k===null?n(k):Le(k)?(u=G,Z(k)):(e.consume(k),G)}function Y(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||Ln(k)?$(k):(e.consume(k),Y)}function V(k){return k===47||k===62||Ln(k)?$(k):n(k)}function H(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function Z(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),ae}function ae(k){return ct(k)?Et(e,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):J(k)}function J(k){return e.enter("htmlTextData"),u(k)}}const $g={name:"labelEnd",resolveAll:LI,resolveTo:zI,tokenize:II},MI={tokenize:BI},NI={tokenize:jI},DI={tokenize:$I};function LI(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",t+=o}}return e.length!==n.length&&Gr(e,0,e.length,n),e}function zI(e,t){let n=e.length,i=0,o,l,u,f;for(;n--;)if(o=e[n][1],l){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(l=n,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(u=n);const d={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[l][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",d,t],["enter",p,t]],f=fr(f,e.slice(l+1,l+i+3)),f=fr(f,[["enter",m,t]]),f=fr(f,jg(t.parser.constructs.insideSpan.null,e.slice(l+i+4,u-3),t)),f=fr(f,[["exit",m,t],e[u-2],e[u-1],["exit",p,t]]),f=fr(f,e.slice(u+1)),f=fr(f,[["exit",d,t]]),Gr(e,l,e.length,f),e}function II(e,t,n){const i=this;let o=i.events.length,l,u;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){l=i.events[o][1];break}return f;function f(v){return l?l._inactive?g(v):(u=i.parser.defined.includes($o(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),d):n(v)}function d(v){return v===40?e.attempt(MI,m,u?m:g)(v):v===91?e.attempt(NI,m,u?p:g)(v):u?m(v):g(v)}function p(v){return e.attempt(DI,m,g)(v)}function m(v){return t(v)}function g(v){return l._balanced=!0,n(v)}}function BI(e,t,n){return i;function i(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return Ln(g)?kl(e,l)(g):l(g)}function l(g){return g===41?m(g):qC(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return Ln(g)?kl(e,d)(g):m(g)}function f(g){return n(g)}function d(g){return g===34||g===39||g===40?VC(e,p,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function p(g){return Ln(g)?kl(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function jI(e,t,n){const i=this;return o;function o(f){return FC.call(i,e,l,u,"reference","referenceMarker","referenceString")(f)}function l(f){return i.parser.defined.includes($o(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function $I(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),o}function o(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const PI={name:"labelStartImage",resolveAll:$g.resolveAll,tokenize:UI};function UI(e,t,n){const i=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),l}function l(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const HI={name:"labelStartLink",resolveAll:$g.resolveAll,tokenize:qI};function qI(e,t,n){const i=this;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const Nh={name:"lineEnding",tokenize:FI};function FI(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Et(e,t,"linePrefix")}}const Bc={name:"thematicBreak",tokenize:VI};function VI(e,t,n){let i=0,o;return l;function l(p){return e.enter("thematicBreak"),u(p)}function u(p){return o=p,f(p)}function f(p){return p===o?(e.enter("thematicBreakSequence"),d(p)):i>=3&&(p===null||Le(p))?(e.exit("thematicBreak"),t(p)):n(p)}function d(p){return p===o?(e.consume(p),i++,d):(e.exit("thematicBreakSequence"),ct(p)?Et(e,f,"whitespace")(p):f(p))}}const Dn={continuation:{tokenize:XI},exit:QI,name:"list",tokenize:YI},GI={partial:!0,tokenize:ZI},KI={partial:!0,tokenize:WI};function YI(e,t,n){const i=this,o=i.events[i.events.length-1];let l=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return f;function f(b){const w=i.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||b===i.containerState.marker:km(b)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Bc,n,p)(b):p(b);if(!i.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return n(b)}function d(b){return km(b)&&++u<10?(e.consume(b),d):(!i.interrupt||u<2)&&(i.containerState.marker?b===i.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),p(b)):n(b)}function p(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||b,e.check(Hf,i.interrupt?n:m,e.attempt(GI,v,g))}function m(b){return i.containerState.initialBlankLine=!0,l++,v(b)}function g(b){return ct(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),v):n(b)}function v(b){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function XI(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Hf,o,l);function o(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Et(e,t,"listItemIndent",i.containerState.size+1)(f)}function l(f){return i.containerState.furtherBlankLines||!ct(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(KI,t,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,Et(e,e.attempt(Dn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function WI(e,t,n){const i=this;return Et(e,o,"listItemIndent",i.containerState.size+1);function o(l){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(l):n(l)}}function QI(e){e.exit(this.containerState.type)}function ZI(e,t,n){const i=this;return Et(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(l){const u=i.events[i.events.length-1];return!ct(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const O1={name:"setextUnderline",resolveTo:JI,tokenize:e3};function JI(e,t){let n=e.length,i,o,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",l?(e.splice(o,0,["enter",u,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function e3(e,t,n){const i=this;let o;return l;function l(p){let m=i.events.length,g;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){g=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||g)?(e.enter("setextHeadingLine"),o=p,u(p)):n(p)}function u(p){return e.enter("setextHeadingLineSequence"),f(p)}function f(p){return p===o?(e.consume(p),f):(e.exit("setextHeadingLineSequence"),ct(p)?Et(e,d,"lineSuffix")(p):d(p))}function d(p){return p===null||Le(p)?(e.exit("setextHeadingLine"),t(p)):n(p)}}const t3={tokenize:n3};function n3(e){const t=this,n=e.attempt(Hf,i,e.attempt(this.parser.constructs.flowInitial,o,Et(e,e.attempt(this.parser.constructs.flow,o,e.attempt(sI,o)),"linePrefix")));return n;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const r3={resolveAll:KC()},i3=GC("string"),a3=GC("text");function GC(e){return{resolveAll:KC(e==="text"?o3:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],l=n.attempt(o,u,f);return u;function u(m){return p(m)?l(m):f(m)}function f(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return p(m)?(n.exit("data"),l(m)):(n.consume(m),d)}function p(m){if(m===null)return!0;const g=o[m];let v=-1;if(g)for(;++v<g.length;){const b=g[v];if(!b.previous||b.previous.call(i,i.previous))return!0}return!1}}}function KC(e){return t;function t(n,i){let o=-1,l;for(;++o<=n.length;)l===void 0?n[o]&&n[o][1].type==="data"&&(l=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==l+2&&(n[l][1].end=n[o-1][1].end,n.splice(l+2,o-l-2),o=l+2),l=void 0);return e?e(n,i):n}}function o3(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],o=t.sliceStream(i);let l=o.length,u=-1,f=0,d;for(;l--;){const p=o[l];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(p===-2)d=!0,f++;else if(p!==-1){l++;break}}if(f){const p={type:n===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:i.start._bufferIndex+u,_index:i.start._index+l,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(e.splice(n,0,["enter",p,t],["exit",p,t]),n+=2)}n++}return e}const s3={42:Dn,43:Dn,45:Dn,48:Dn,49:Dn,50:Dn,51:Dn,52:Dn,53:Dn,54:Dn,55:Dn,56:Dn,57:Dn,62:$C},l3={91:dI},u3={[-2]:Mh,[-1]:Mh,32:Mh},c3={35:bI,42:Bc,45:[O1,Bc],60:xI,61:O1,95:Bc,96:_1,126:_1},f3={38:UC,92:PC},d3={[-5]:Nh,[-4]:Nh,[-3]:Nh,33:PI,38:UC,42:Em,60:[H4,RI],91:HI,92:[gI,PC],93:$g,95:Em,96:tI},p3={null:[Em,r3]},h3={null:[42,95]},m3={null:[]},g3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:h3,contentInitial:l3,disable:m3,document:s3,flow:c3,flowInitial:u3,insideSpan:p3,string:f3,text:d3},Symbol.toStringTag,{value:"Module"}));function y3(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},l=[];let u=[],f=[];const d={attempt:P(R),check:P(D),consume:O,enter:_,exit:M,interrupt:P(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:S,events:[],now:w,parser:e,previous:null,sliceSerialize:v,sliceStream:b,write:g};let m=t.tokenize.call(p,d);return t.resolveAll&&l.push(t),p;function g(I){return u=fr(u,I),C(),u[u.length-1]!==null?[]:(z(t,0),p.events=jg(l,p.events,p),p.events)}function v(I,U){return v3(b(I),U)}function b(I){return b3(u,I)}function w(){const{_bufferIndex:I,_index:U,line:G,column:Y,offset:V}=i;return{_bufferIndex:I,_index:U,line:G,column:Y,offset:V}}function S(I){o[I.line]=I.column,E()}function C(){let I;for(;i._index<u.length;){const U=u[i._index];if(typeof U=="string")for(I=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===I&&i._bufferIndex<U.length;)A(U.charCodeAt(i._bufferIndex));else A(U)}}function A(I){m=m(I)}function O(I){Le(I)?(i.line++,i.column=1,i.offset+=I===-3?2:1,E()):I!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=I}function _(I,U){const G=U||{};return G.type=I,G.start=w(),p.events.push(["enter",G,p]),f.push(G),G}function M(I){const U=f.pop();return U.end=w(),p.events.push(["exit",U,p]),U}function R(I,U){z(I,U.from)}function D(I,U){U.restore()}function P(I,U){return G;function G(Y,V,H){let Z,ae,J,k;return Array.isArray(Y)?se(Y):"tokenize"in Y?se([Y]):X(Y);function X(le){return Ae;function Ae(ge){const be=ge!==null&&le[ge],ue=ge!==null&&le.null,xe=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(ue)?ue:ue?[ue]:[]];return se(xe)(ge)}}function se(le){return Z=le,ae=0,le.length===0?H:L(le[ae])}function L(le){return Ae;function Ae(ge){return k=$(),J=le,le.partial||(p.currentConstruct=le),le.name&&p.parser.constructs.disable.null.includes(le.name)?fe():le.tokenize.call(U?Object.assign(Object.create(p),U):p,d,re,fe)(ge)}}function re(le){return I(J,k),V}function fe(le){return k.restore(),++ae<Z.length?L(Z[ae]):H}}}function z(I,U){I.resolveAll&&!l.includes(I)&&l.push(I),I.resolve&&Gr(p.events,U,p.events.length-U,I.resolve(p.events.slice(U),p)),I.resolveTo&&(p.events=I.resolveTo(p.events,p))}function $(){const I=w(),U=p.previous,G=p.currentConstruct,Y=p.events.length,V=Array.from(f);return{from:Y,restore:H};function H(){i=I,p.previous=U,p.currentConstruct=G,p.events.length=Y,f=V,E()}}function E(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function b3(e,t){const n=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;let u;if(n===o)u=[e[n].slice(i,l)];else{if(u=e.slice(n,o),i>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(i):u.shift()}l>0&&u.push(e[o].slice(0,l))}return u}function v3(e,t){let n=-1;const i=[];let o;for(;++n<e.length;){const l=e[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=`
`;break}case-3:{u=`\r
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(l)}o=l===-2,i.push(u)}return i.join("")}function S3(e){const i={constructs:A4([g3,...(e||{}).extensions||[]]),content:o(z4),defined:[],document:o(B4),flow:o(t3),lazy:{},string:o(i3),text:o(a3)};return i;function o(l){return u;function u(f){return y3(i,l,f)}}}function w3(e){for(;!HC(e););return e}const M1=/[\0\t\n\r]/g;function x3(){let e=1,t="",n=!0,i;return o;function o(l,u,f){const d=[];let p,m,g,v,b;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),g=0,t="",n&&(l.charCodeAt(0)===65279&&g++,n=void 0);g<l.length;){if(M1.lastIndex=g,p=M1.exec(l),v=p&&p.index!==void 0?p.index:l.length,b=l.charCodeAt(v),!p){t=l.slice(g);break}if(b===10&&g===v&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),g<v&&(d.push(l.slice(g,v)),e+=v-g),b){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}g=v+1}return f&&(i&&d.push(-5),t&&d.push(t),d.push(null)),d}}const C3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function k3(e){return e.replace(C3,E3)}function E3(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),l=o===120||o===88;return jC(n.slice(l?2:1),l?16:10)}return Bg(n)||e}const YC={}.hasOwnProperty;function T3(e,t,n){return typeof t!="string"&&(n=t,t=void 0),A3(n)(w3(S3(n).document().write(x3()(e,t,!0))))}function A3(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(bt),autolinkProtocol:$,autolinkEmail:$,atxHeading:l($e),blockQuote:l(ue),characterEscape:$,characterReference:$,codeFenced:l(xe),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(xe,u),codeText:l(ke,u),codeTextData:$,data:$,codeFlowValue:$,definition:l(je),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(Ce),hardBreakEscape:l(et),hardBreakTrailing:l(et),htmlFlow:l(dt,u),htmlFlowData:$,htmlText:l(dt,u),htmlTextData:$,image:l(Pe),label:u,link:l(bt),listItem:l(it),listItemValue:v,listOrdered:l(Ye,g),listUnordered:l(Ye),paragraph:l(we),reference:L,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l($e),strong:l(pn),thematicBreak:l(Sn)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:be,autolinkProtocol:ge,blockQuote:d(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:le,characterReference:Ae,codeFenced:d(C),codeFencedFence:S,codeFencedFenceInfo:b,codeFencedFenceMeta:w,codeFlowValue:E,codeIndented:d(A),codeText:d(V),codeTextData:E,data:E,definition:d(),definitionDestinationString:M,definitionLabelString:O,definitionTitleString:_,emphasis:d(),hardBreakEscape:d(U),hardBreakTrailing:d(U),htmlFlow:d(G),htmlFlowData:E,htmlText:d(Y),htmlTextData:E,image:d(Z),label:J,labelText:ae,lineEnding:I,link:d(H),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:re,resourceDestinationString:k,resourceTitleString:X,resource:se,setextHeading:d(z),setextHeadingLineSequence:P,setextHeadingText:D,strong:d(),thematicBreak:d()}};XC(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(ee){let de={type:"root",children:[]};const he={stack:[de],tokenStack:[],config:t,enter:f,exit:p,buffer:u,resume:m,data:n},ye=[];let Re=-1;for(;++Re<ee.length;)if(ee[Re][1].type==="listOrdered"||ee[Re][1].type==="listUnordered")if(ee[Re][0]==="enter")ye.push(Re);else{const Me=ye.pop();Re=o(ee,Me,Re)}for(Re=-1;++Re<ee.length;){const Me=t[ee[Re][0]];YC.call(Me,ee[Re][1].type)&&Me[ee[Re][1].type].call(Object.assign({sliceSerialize:ee[Re][2].sliceSerialize},he),ee[Re][1])}if(he.tokenStack.length>0){const Me=he.tokenStack[he.tokenStack.length-1];(Me[1]||N1).call(he,void 0,Me[0])}for(de.position={start:Fi(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Fi(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<t.transforms.length;)de=t.transforms[Re](de)||de;return de}function o(ee,de,he){let ye=de-1,Re=-1,Me=!1,st,nt,At,Ee;for(;++ye<=he;){const Ne=ee[ye];switch(Ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ne[0]==="enter"?Re++:Re--,Ee=void 0;break}case"lineEndingBlank":{Ne[0]==="enter"&&(st&&!Ee&&!Re&&!At&&(At=ye),Ee=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ee=void 0}if(!Re&&Ne[0]==="enter"&&Ne[1].type==="listItemPrefix"||Re===-1&&Ne[0]==="exit"&&(Ne[1].type==="listUnordered"||Ne[1].type==="listOrdered")){if(st){let He=ye;for(nt=void 0;He--;){const Bt=ee[He];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;nt&&(ee[nt][1].type="lineEndingBlank",Me=!0),Bt[1].type="lineEnding",nt=He}else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="blockQuotePrefix"||Bt[1].type==="blockQuotePrefixWhitespace"||Bt[1].type==="blockQuoteMarker"||Bt[1].type==="listItemIndent"))break}At&&(!nt||At<nt)&&(st._spread=!0),st.end=Object.assign({},nt?ee[nt][1].start:Ne[1].end),ee.splice(nt||ye,0,["exit",st,Ne[2]]),ye++,he++}if(Ne[1].type==="listItemPrefix"){const He={type:"listItem",_spread:!1,start:Object.assign({},Ne[1].start),end:void 0};st=He,ee.splice(ye,0,["enter",He,Ne[2]]),ye++,he++,At=void 0,Ee=!0}}}return ee[de][1]._spread=Me,he}function l(ee,de){return he;function he(ye){f.call(this,ee(ye),ye),de&&de.call(this,ye)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(ee,de,he){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([de,he||void 0]),ee.position={start:Fi(de.start),end:void 0}}function d(ee){return de;function de(he){ee&&ee.call(this,he),p.call(this,he)}}function p(ee,de){const he=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==ee.type&&(de?de.call(this,ee,ye[0]):(ye[1]||N1).call(this,ee,ye[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Cl({start:ee.start,end:ee.end})+"): its not open");he.position.end=Fi(ee.end)}function m(){return E4(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(ee){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.lang=ee}function w(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.meta=ee}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/(\r?\n|\r)$/g,"")}function O(ee){const de=this.resume(),he=this.stack[this.stack.length-1];he.label=de,he.identifier=$o(this.sliceSerialize(ee)).toLowerCase()}function _(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function M(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function R(ee){const de=this.stack[this.stack.length-1];if(!de.depth){const he=this.sliceSerialize(ee).length;de.depth=he}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function P(ee){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function $(ee){const he=this.stack[this.stack.length-1].children;let ye=he[he.length-1];(!ye||ye.type!=="text")&&(ye=tt(),ye.position={start:Fi(ee.start),end:void 0},he.push(ye)),this.stack.push(ye)}function E(ee){const de=this.stack.pop();de.value+=this.sliceSerialize(ee),de.position.end=Fi(ee.end)}function I(ee){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=de.children[de.children.length-1];he.position.end=Fi(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&($.call(this,ee),E.call(this,ee))}function U(){this.data.atHardBreak=!0}function G(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function Y(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function V(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function H(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Z(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function ae(ee){const de=this.sliceSerialize(ee),he=this.stack[this.stack.length-2];he.label=k3(de),he.identifier=$o(de).toLowerCase()}function J(){const ee=this.stack[this.stack.length-1],de=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const ye=ee.children;he.children=ye}else he.alt=de}function k(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function X(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function se(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function re(ee){const de=this.resume(),he=this.stack[this.stack.length-1];he.label=de,he.identifier=$o(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function fe(ee){this.data.characterReferenceType=ee.type}function le(ee){const de=this.sliceSerialize(ee),he=this.data.characterReferenceType;let ye;he?(ye=jC(de,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=Bg(de);const Re=this.stack[this.stack.length-1];Re.value+=ye}function Ae(ee){const de=this.stack.pop();de.position.end=Fi(ee.end)}function ge(ee){E.call(this,ee);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ee)}function be(ee){E.call(this,ee);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ee)}function ue(){return{type:"blockquote",children:[]}}function xe(){return{type:"code",lang:null,meta:null,value:""}}function ke(){return{type:"inlineCode",value:""}}function je(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function $e(){return{type:"heading",depth:0,children:[]}}function et(){return{type:"break"}}function dt(){return{type:"html",value:""}}function Pe(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function Ye(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function it(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function we(){return{type:"paragraph",children:[]}}function pn(){return{type:"strong",children:[]}}function tt(){return{type:"text",value:""}}function Sn(){return{type:"thematicBreak"}}}function Fi(e){return{line:e.line,column:e.column,offset:e.offset}}function XC(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?XC(e,i):_3(e,i)}}function _3(e,t){let n;for(n in t)if(YC.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function N1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Cl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Cl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Cl({start:t.start,end:t.end})+") is still open")}function R3(e){const t=this;t.parser=n;function n(i){return T3(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function O3(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function M3(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function N3(e,t){const n=t.value?t.value+`
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function D3(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function L3(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function z3(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=ts(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let u,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=l+1,f+=1,e.footnoteCounts.set(i,f);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,d);const p={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,p),e.applyData(t,p)}function I3(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function B3(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function WC(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const o=e.all(t),l=o[0];l&&l.type==="text"?l.value="["+l.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=i:o.push({type:"text",value:i}),o}function j3(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return WC(e,t);const o={src:ts(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const l={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,l),e.applyData(t,l)}function $3(e,t){const n={src:ts(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function P3(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function U3(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return WC(e,t);const o={href:ts(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const l={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function H3(e,t){const n={href:ts(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function q3(e,t,n){const i=e.all(t),o=n?F3(n):QC(t),l={},u=[];if(typeof t.checked=="boolean"){const m=i[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},i.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const m=i[f];(o||f!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
`}),m.type==="element"&&m.tagName==="p"&&!o?u.push(...m.children):u.push(m)}const d=i[i.length-1];d&&(o||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
`});const p={type:"element",tagName:"li",properties:l,children:u};return e.patch(t,p),e.applyData(t,p)}function F3(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=QC(n[i])}return t}function QC(e){const t=e.spread;return t??e.children.length>1}function V3(e,t){const n={},i=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<i.length;){const u=i[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function G3(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function K3(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Y3(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function X3(e,t){const n=e.all(t),i=n.shift(),o=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),o.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=Dg(t.children[1]),d=MC(t.children[t.children.length-1]);f&&d&&(u.position={start:f,end:d}),o.push(u)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,l),e.applyData(t,l)}function W3(e,t,n){const i=n?n.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let d=-1;const p=[];for(;++d<f;){const g=t.children[d],v={},b=u?u[d]:void 0;b&&(v.align=b);let w={type:"element",tagName:l,properties:v,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),p.push(w)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,m),e.applyData(t,m)}function Q3(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const D1=9,L1=32;function Z3(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),o=0;const l=[];for(;i;)l.push(z1(t.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=n.exec(t);return l.push(z1(t.slice(o),o>0,!1)),l.join("")}function z1(e,t,n){let i=0,o=e.length;if(t){let l=e.codePointAt(i);for(;l===D1||l===L1;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(o-1);for(;l===D1||l===L1;)o--,l=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function J3(e,t){const n={type:"text",value:Z3(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function eB(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const tB={blockquote:O3,break:M3,code:N3,delete:D3,emphasis:L3,footnoteReference:z3,heading:I3,html:B3,imageReference:j3,image:$3,inlineCode:P3,linkReference:U3,link:H3,listItem:q3,list:V3,paragraph:G3,root:K3,strong:Y3,table:X3,tableCell:Q3,tableRow:W3,text:J3,thematicBreak:eB,toml:kc,yaml:kc,definition:kc,footnoteDefinition:kc};function kc(){}const ZC=-1,qf=0,El=1,tf=2,Pg=3,Ug=4,Hg=5,qg=6,JC=7,ek=8,I1=typeof self=="object"?self:globalThis,nB=(e,t)=>{const n=(o,l)=>(e.set(l,o),o),i=o=>{if(e.has(o))return e.get(o);const[l,u]=t[o];switch(l){case qf:case ZC:return n(u,o);case El:{const f=n([],o);for(const d of u)f.push(i(d));return f}case tf:{const f=n({},o);for(const[d,p]of u)f[i(d)]=i(p);return f}case Pg:return n(new Date(u),o);case Ug:{const{source:f,flags:d}=u;return n(new RegExp(f,d),o)}case Hg:{const f=n(new Map,o);for(const[d,p]of u)f.set(i(d),i(p));return f}case qg:{const f=n(new Set,o);for(const d of u)f.add(i(d));return f}case JC:{const{name:f,message:d}=u;return n(new I1[f](d),o)}case ek:return n(BigInt(u),o);case"BigInt":return n(Object(BigInt(u)),o);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new I1[l](u),o)};return i},B1=e=>nB(new Map,e)(0),To="",{toString:rB}={},{keys:iB}=Object,sl=e=>{const t=typeof e;if(t!=="object"||!e)return[qf,t];const n=rB.call(e).slice(8,-1);switch(n){case"Array":return[El,To];case"Object":return[tf,To];case"Date":return[Pg,To];case"RegExp":return[Ug,To];case"Map":return[Hg,To];case"Set":return[qg,To];case"DataView":return[El,n]}return n.includes("Array")?[El,n]:n.includes("Error")?[JC,n]:[tf,n]},Ec=([e,t])=>e===qf&&(t==="function"||t==="symbol"),aB=(e,t,n,i)=>{const o=(u,f)=>{const d=i.push(u)-1;return n.set(f,d),d},l=u=>{if(n.has(u))return n.get(u);let[f,d]=sl(u);switch(f){case qf:{let m=u;switch(d){case"bigint":f=ek,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return o([ZC],u)}return o([f,m],u)}case El:{if(d){let v=u;return d==="DataView"?v=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(v=new Uint8Array(u)),o([d,[...v]],u)}const m=[],g=o([f,m],u);for(const v of u)m.push(l(v));return g}case tf:{if(d)switch(d){case"BigInt":return o([d,u.toString()],u);case"Boolean":case"Number":case"String":return o([d,u.valueOf()],u)}if(t&&"toJSON"in u)return l(u.toJSON());const m=[],g=o([f,m],u);for(const v of iB(u))(e||!Ec(sl(u[v])))&&m.push([l(v),l(u[v])]);return g}case Pg:return o([f,u.toISOString()],u);case Ug:{const{source:m,flags:g}=u;return o([f,{source:m,flags:g}],u)}case Hg:{const m=[],g=o([f,m],u);for(const[v,b]of u)(e||!(Ec(sl(v))||Ec(sl(b))))&&m.push([l(v),l(b)]);return g}case qg:{const m=[],g=o([f,m],u);for(const v of u)(e||!Ec(sl(v)))&&m.push(l(v));return g}}const{message:p}=u;return o([f,{name:d,message:p}],u)};return l},j1=(e,{json:t,lossy:n}={})=>{const i=[];return aB(!(t||n),!!t,new Map,i)(e),i},nf=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?B1(j1(e,t)):structuredClone(e):(e,t)=>B1(j1(e,t));function oB(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function sB(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function lB(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||oB,i=e.options.footnoteBackLabel||sB,o=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[d]);if(!p)continue;const m=e.all(p),g=String(p.identifier).toUpperCase(),v=ts(g.toLowerCase());let b=0;const w=[],S=e.footnoteCounts.get(g);for(;S!==void 0&&++b<=S;){w.length>0&&w.push({type:"text",value:" "});let O=typeof n=="string"?n:n(d,b);typeof O=="string"&&(O={type:"text",value:O}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,b),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const C=m[m.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const O=C.children[C.children.length-1];O&&O.type==="text"?O.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...w)}else m.push(...w);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(m,!0)};e.patch(p,A),f.push(A)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...nf(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
`}]}}const tk=function(e){if(e==null)return dB;if(typeof e=="function")return Ff(e);if(typeof e=="object")return Array.isArray(e)?uB(e):cB(e);if(typeof e=="string")return fB(e);throw new Error("Expected function, string, or object as test")};function uB(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=tk(e[n]);return Ff(i);function i(...o){let l=-1;for(;++l<t.length;)if(t[l].apply(this,o))return!0;return!1}}function cB(e){const t=e;return Ff(n);function n(i){const o=i;let l;for(l in e)if(o[l]!==t[l])return!1;return!0}}function fB(e){return Ff(t);function t(n){return n&&n.type===e}}function Ff(e){return t;function t(n,i,o){return!!(pB(n)&&e.call(this,n,typeof i=="number"?i:void 0,o||void 0))}}function dB(){return!0}function pB(e){return e!==null&&typeof e=="object"&&"type"in e}const nk=[],hB=!0,$1=!1,mB="skip";function gB(e,t,n,i){let o;typeof t=="function"&&typeof n!="function"?(i=n,n=t):o=t;const l=tk(o),u=i?-1:1;f(e,void 0,[])();function f(d,p,m){const g=d&&typeof d=="object"?d:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(d.type+(b?"<"+b+">":""))+")"})}return v;function v(){let b=nk,w,S,C;if((!t||l(d,p,m[m.length-1]||void 0))&&(b=yB(n(d,m)),b[0]===$1))return b;if("children"in d&&d.children){const A=d;if(A.children&&b[0]!==mB)for(S=(i?A.children.length:-1)+u,C=m.concat(A);S>-1&&S<A.children.length;){const O=A.children[S];if(w=f(O,S,C)(),w[0]===$1)return w;S=typeof w[1]=="number"?w[1]:S+u}}return b}}}function yB(e){return Array.isArray(e)?e:typeof e=="number"?[hB,e]:e==null?nk:[e]}function rk(e,t,n,i){let o,l,u;typeof t=="function"?(l=void 0,u=t,o=n):(l=t,u=n,o=i),gB(e,l,f,o);function f(d,p){const m=p[p.length-1],g=m?m.children.indexOf(d):void 0;return u(d,g,m)}}const Tm={}.hasOwnProperty,bB={};function vB(e,t){const n=t||bB,i=new Map,o=new Map,l=new Map,u={...tB,...n.handlers},f={all:p,applyData:wB,definitionById:i,footnoteById:o,footnoteCounts:l,footnoteOrder:[],handlers:u,one:d,options:n,patch:SB,wrap:CB};return rk(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?i:o,v=String(m.identifier).toUpperCase();g.has(v)||g.set(v,m)}}),f;function d(m,g){const v=m.type,b=f.handlers[v];if(Tm.call(f.handlers,v)&&b)return b(f,m,g);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in m){const{children:S,...C}=m,A=nf(C);return A.children=f.all(m),A}return nf(m)}return(f.options.unknownHandler||xB)(f,m,g)}function p(m){const g=[];if("children"in m){const v=m.children;let b=-1;for(;++b<v.length;){const w=f.one(v[b],m);if(w){if(b&&v[b-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=P1(w.value)),!Array.isArray(w)&&w.type==="element")){const S=w.children[0];S&&S.type==="text"&&(S.value=P1(S.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function SB(e,t){e.position&&(t.position=t4(e))}function wB(e,t){let n=t;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,nf(l)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function xB(e,t){const n=t.data||{},i="value"in t&&!(Tm.call(n,"hProperties")||Tm.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function CB(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
`});++i<e.length;)i&&n.push({type:"text",value:`
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function P1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function U1(e,t){const n=vB(e,t),i=n.one(e,void 0),o=lB(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&l.children.push({type:"text",value:`
`},o),l}function kB(e,t){return e&&"run"in e?async function(n,i){const o=U1(n,{file:i,...t});await e.run(o,i)}:function(n,i){return U1(n,{file:i,...e||t})}}function H1(e){if(e)throw e}var Dh,q1;function EB(){if(q1)return Dh;q1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},l=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var m=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!m&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,m){n&&m.name==="__proto__"?n(p,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):p[m.name]=m.newValue},f=function(p,m){if(m==="__proto__")if(e.call(p,m)){if(i)return i(p,m).value}else return;return p[m]};return Dh=function d(){var p,m,g,v,b,w,S=arguments[0],C=1,A=arguments.length,O=!1;for(typeof S=="boolean"&&(O=S,S=arguments[1]||{},C=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});C<A;++C)if(p=arguments[C],p!=null)for(m in p)g=f(S,m),v=f(p,m),S!==v&&(O&&v&&(l(v)||(b=o(v)))?(b?(b=!1,w=g&&o(g)?g:[]):w=g&&l(g)?g:{},u(S,{name:m,newValue:d(O,w,v)})):typeof v<"u"&&u(S,{name:m,newValue:v}));return S},Dh}var TB=EB();const Lh=rf(TB);function Am(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function AB(){const e=[],t={run:n,use:i};return t;function n(...o){let l=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...o);function f(d,...p){const m=e[++l];let g=-1;if(d){u(d);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,m?_B(m,f)(...p):u(null,...p)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function _B(e,t){let n;return i;function i(...u){const f=e.length>u.length;let d;f&&u.push(o);try{d=e.apply(this,u)}catch(p){const m=p;if(f&&n)throw m;return o(m)}f||(d&&d.then&&typeof d.then=="function"?d.then(l,o):d instanceof Error?o(d):l(d))}function o(u,...f){n||(n=!0,t(u,...f))}function l(u){o(null,u)}}const Br={basename:RB,dirname:OB,extname:MB,join:NB,sep:"/"};function RB(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ru(e);let n=0,i=-1,o=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(l){n=o+1;break}}else i<0&&(l=!0,i=o+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,f=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(l){n=o+1;break}}else u<0&&(l=!0,u=o+1),f>-1&&(e.codePointAt(o)===t.codePointAt(f--)?f<0&&(i=o):(f=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function OB(e){if(ru(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function MB(e){ru(e);let t=e.length,n=-1,i=0,o=-1,l=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?o<0?o=t:l!==1&&(l=1):o>-1&&(l=-1)}return o<0||n<0||l===0||l===1&&o===n-1&&o===i+1?"":e.slice(o,n)}function NB(...e){let t=-1,n;for(;++t<e.length;)ru(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":DB(n)}function DB(e){ru(e);const t=e.codePointAt(0)===47;let n=LB(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function LB(e,t){let n="",i=0,o=-1,l=0,u=-1,f,d;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(o===u-1||l===1))if(o!==u-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",i=0):(n=n.slice(0,d),i=n.length-1-n.lastIndexOf("/")),o=u,l=0;continue}}else if(n.length>0){n="",i=0,o=u,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(o+1,u):n=e.slice(o+1,u),i=u-o-1;o=u,l=0}else f===46&&l>-1?l++:l=-1}return n}function ru(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const zB={cwd:IB};function IB(){return"/"}function _m(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function BB(e){if(typeof e=="string")e=new URL(e);else if(!_m(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return jB(e)}function jB(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const zh=["history","path","basename","stem","extname","dirname"];class ik{constructor(t){let n;t?_m(t)?n={path:t}:typeof t=="string"||$B(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":zB.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<zh.length;){const l=zh[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let o;for(o in n)zh.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?Br.basename(this.path):void 0}set basename(t){Bh(t,"basename"),Ih(t,"basename"),this.path=Br.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Br.dirname(this.path):void 0}set dirname(t){F1(this.basename,"dirname"),this.path=Br.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Br.extname(this.path):void 0}set extname(t){if(Ih(t,"extname"),F1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Br.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_m(t)&&(t=BB(t)),Bh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Br.basename(this.path,this.extname):void 0}set stem(t){Bh(t,"stem"),Ih(t,"stem"),this.path=Br.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const o=this.message(t,n,i);throw o.fatal=!0,o}info(t,n,i){const o=this.message(t,n,i);return o.fatal=void 0,o}message(t,n,i){const o=new vn(t,n,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ih(e,t){if(e&&e.includes(Br.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Br.sep+"`")}function Bh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function F1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function $B(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const PB=function(e){const i=this.constructor.prototype,o=i[e],l=function(){return o.apply(l,arguments)};return Object.setPrototypeOf(l,i),l},UB={}.hasOwnProperty;class Fg extends PB{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=AB()}copy(){const t=new Fg;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Lh(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ph("data",this.frozen),this.namespace[t]=n,this):UB.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ph("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=n.call(t,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Tc(t),i=this.parser||this.Parser;return jh("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),jh("process",this.parser||this.Parser),$h("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(l,u){const f=Tc(t),d=i.parse(f);i.run(d,f,function(m,g,v){if(m||!g||!v)return p(m);const b=g,w=i.stringify(b,v);FB(w)?v.value=w:v.result=w,p(m,v)});function p(m,g){m||!g?u(m):l?l(g):n(void 0,g)}}}processSync(t){let n=!1,i;return this.freeze(),jh("processSync",this.parser||this.Parser),$h("processSync",this.compiler||this.Compiler),this.process(t,o),G1("processSync","process",n),i;function o(l,u){n=!0,H1(l),i=u}}run(t,n,i){V1(t),this.freeze();const o=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(u,f){const d=Tc(n);o.run(t,d,p);function p(m,g,v){const b=g||t;m?f(m):u?u(b):i(void 0,b,v)}}}runSync(t,n){let i=!1,o;return this.run(t,n,l),G1("runSync","run",i),o;function l(u,f){H1(u),o=f,i=!0}}stringify(t,n){this.freeze();const i=Tc(n),o=this.compiler||this.Compiler;return $h("stringify",o),V1(t),o(t,i)}use(t,...n){const i=this.attachers,o=this.namespace;if(Ph("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(p){if(typeof p=="function")d(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[m,...g]=p;d(m,g)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))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");f(p.plugins),p.settings&&(o.settings=Lh(!0,o.settings,p.settings))}function f(p){let m=-1;if(p!=null)if(Array.isArray(p))for(;++m<p.length;){const g=p[m];l(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function d(p,m){let g=-1,v=-1;for(;++g<i.length;)if(i[g][0]===p){v=g;break}if(v===-1)i.push([p,...m]);else if(m.length>0){let[b,...w]=m;const S=i[v][1];Am(S)&&Am(b)&&(b=Lh(!0,S,b)),i[v]=[p,b,...w]}}}}const HB=new Fg().freeze();function jh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $h(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ph(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function V1(e){if(!Am(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function G1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Tc(e){return qB(e)?e:new ik(e)}function qB(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function FB(e){return typeof e=="string"||VB(e)}function VB(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const GB="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",K1=[],Y1={allowDangerousHtml:!0},KB=/^(https?|ircs?|mailto|xmpp)$/i,YB=[{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 XB(e){const t=WB(e),n=QB(e);return ZB(t.runSync(t.parse(n),n),e)}function WB(e){const t=e.rehypePlugins||K1,n=e.remarkPlugins||K1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Y1}:Y1;return HB().use(R3).use(n).use(kB,i).use(t)}function QB(e){const t=e.children||"",n=new ik;return typeof t=="string"&&(n.value=t),n}function ZB(e,t){const n=t.allowedElements,i=t.allowElement,o=t.components,l=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,d=t.urlTransform||JB;for(const m of YB)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+GB+m.id,void 0);return rk(e,p),s4(e,{Fragment:B.Fragment,components:o,ignoreInvalidStyle:!0,jsx:B.jsx,jsxs:B.jsxs,passKeys:!0,passNode:!0});function p(m,g,v){if(m.type==="raw"&&v&&typeof g=="number")return u?v.children.splice(g,1):v.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let b;for(b in Oh)if(Object.hasOwn(Oh,b)&&Object.hasOwn(m.properties,b)){const w=m.properties[b],S=Oh[b];(S===null||S.includes(m.tagName))&&(m.properties[b]=d(String(w||""),b,m))}}if(m.type==="element"){let b=n?!n.includes(m.tagName):l?l.includes(m.tagName):!1;if(!b&&i&&typeof g=="number"&&(b=!i(m,g,v)),b&&v&&typeof g=="number")return f&&m.children?v.children.splice(g,1,...m.children):v.children.splice(g,1),g}}}function JB(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||i!==-1&&t>i||KB.test(e.slice(0,t))?e:""}const e6=bi(B.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator"),t6=bi(B.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),n6=bi(B.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),r6=bi(B.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline");String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)};const i6=({type:e,module:t,toggleModule:n,enabledModules:i,configValues:o})=>{const{attributes:l,listeners:u,setNodeRef:f,transform:d,transition:p,isDragging:m}=yL({id:t.name}),g={...wS.style,transform:Xi.Transform.toString(d),transition:p,zIndex:m?"100":"auto",opacity:m?.3:1};let v=t.name;const[b,w]=T.useState(!1),[S,C]=T.useState(!1),A=i[e].find(O=>O[0]===v)[1];return B.jsxs(sx,{ref:f,size:{xs:6,sm:4,md:3},style:g,children:[B.jsxs(wS,{children:[B.jsx(iM,{title:B.jsx(ax,{style:{paddingRight:"0 !important"},control:B.jsx(Qw,{title:"Check to enable this module",sx:{paddingTop:0,paddingBottom:0},id:v,onClick:n,checked:A}),label:t.display_name})}),B.jsx(QO,{children:B.jsxs(Pr,{sx:{justifyContent:"space-between",display:"flex",width:"100%"},children:[B.jsxs(Pr,{children:[B.jsx(rm,{title:"Module information",size:"small",onClick:()=>w(!0),children:B.jsx(r6,{})}),A&&t.configs&&v!="cli_feeder"?B.jsx(om,{size:"small",onClick:()=>C(!0),children:"Configure"}):null]}),B.jsx(rm,{size:"small",title:"Drag to reorder",sx:{cursor:"grab"},...u,...l,children:B.jsx(e6,{})})]})})]}),B.jsxs(tx,{open:b,onClose:()=>w(!1),maxWidth:"lg",children:[B.jsx(rx,{children:t.display_name}),B.jsx(nx,{children:B.jsx(XB,{children:t.manifest.description.split(`
`).map(O=>O.trim()).join(`
`)})})]}),t.configs&&v!="cli_feeder"&&B.jsx(o6,{module:t,open:S,setOpen:C,configValues:o})]})};function a6({config_value:e,module:t,configValues:n}){const[i,o]=T.useState(!1),l=()=>o(C=>!C),u=C=>{C.preventDefault()},f=C=>{C.preventDefault()};function d(C,A){n[t.name][C]=A}const p=t.configs[e],g=e.replace(/_/g," ").capitalize(),v=n[t.name][e]||p.default,b=e.toLowerCase(),w=b.includes("password")||b.includes("secret")||b.includes("token")||b.includes("key")||b.includes("api_hash")||p.type==="password",S=w?"password":p.type==="int"?"number":"text";return B.jsxs(Pr,{children:[B.jsxs(en,{variant:"body1",style:{fontWeight:"bold"},children:[g," ",p.required&&"(required)"," "]}),B.jsxs(ix,{size:"small",children:[p.type==="bool"?B.jsx(ax,{control:B.jsx(Qw,{defaultChecked:v,size:"small",id:`${t}.${e}`,onChange:C=>{d(e,C.target.checked)}}),label:p.help.capitalize()}):p.choices!==void 0?B.jsx(sg,{size:"small",id:`${t}.${e}`,defaultValue:p.default,value:v,onChange:C=>{d(e,C.target.value)},children:p.choices.map(C=>B.jsx(tD,{value:C,children:C},`${t}.${e}.${C}`))}):p.type==="json_loader"?B.jsx($S,{multiline:!0,size:"small",id:`${t}.${e}`,defaultValue:JSON.stringify(v,null,2),rows:6,onChange:C=>{try{let A=JSON.parse(C.target.value);d(e,A)}catch(A){console.log(A)}}}):B.jsx($S,{size:"small",id:`${t}.${e}`,defaultValue:v,type:i?"text":S,onChange:C=>{d(e,C.target.value)},required:p.required,slotProps:w?{input:{endAdornment:B.jsx(RN,{position:"end",children:B.jsx(rm,{"aria-label":"toggle password visibility",onClick:l,onMouseDown:u,onMouseUp:f,children:i?B.jsx(n6,{}):B.jsx(t6,{})})})}}:{}}),p.type!=="bool"&&B.jsx(ox,{children:p.help.capitalize()})]})]})}function o6({module:e,open:t,setOpen:n,configValues:i}){return B.jsx(B.Fragment,{children:B.jsxs(tx,{open:t,onClose:()=>n(!1),maxWidth:"lg",children:[B.jsx(rx,{children:e.display_name}),B.jsx(nx,{children:B.jsx(px,{direction:"column",spacing:1,children:Object.keys(e.configs).map(o=>B.jsx(a6,{config_value:o,module:e,configValues:i},o))})})]})})}function s6({setYamlFile:e}){const[t,n]=T.useState(!1),[i,o]=T.useState(B.jsx(B.Fragment,{children:"Drag and drop your orchestration.yaml file here, or click to select a file."}));T.useRef(null);function l(u){let f=u.target.files[0];if(f.type.indexOf("yaml")===-1){n(!0),o(B.jsx(B.Fragment,{children:"Invalid type, only YAML files are accepted."}));return}let d=new FileReader;d.onload=function(p){let m=p.target?p.target.result:"";try{let g=xC(m);if(g.errors.length>0){n(!0),o(B.jsx(B.Fragment,{children:"Invalid file. Make sure your Orchestration is a valid YAML file with a 'steps' section in it."}));return}else n(!1),o(B.jsx(B.Fragment,{children:"File loaded successfully."}));let v=g.get("steps");if(!v){n(!0),o(B.jsx(B.Fragment,{children:"Invalid file. Your orchestration file must have a 'steps' section in it."}));return}const b={feeder:"feeders",formatter:"formatters",archivers:"extractors"};let w=!1;for(let S of Object.keys(b))if(v.get(S)!==void 0){n(!0),o(B.jsxs(B.Fragment,{children:["Invalid file. Your orchestration file appears to be in the old (v0.12) format with a '",S,"' section.",B.jsx("br",{}),"You should manually update your orchestration file first (hint: ",S," → ",b[S],")"]})),w=!0;return}e(g)}catch(g){console.error(g)}},d.readAsText(f)}return B.jsx(B.Fragment,{children:B.jsxs("div",{style:{position:"relative",width:"100%",border:"dashed",borderRadius:"5px",textAlign:"center",borderWidth:"1px",padding:"20px"},onDragEnter:u=>{u.currentTarget.style.backgroundColor="var(--mui-palette-LinearProgress-infoBg)"},onDragLeave:u=>{u.currentTarget.style.backgroundColor=""},onDrop:u=>{u.currentTarget.style.backgroundColor=""},children:[B.jsx(_D,{style:{fontSize:50}}),B.jsx("input",{style:{opacity:0,position:"absolute",top:0,left:0,width:"100%",height:"100%",cursor:"pointer"},type:"file",id:"file",accept:".yaml",onChange:l}),B.jsx(en,{variant:"body1",color:t?"error":"",children:i})]})})}function l6({stepType:e,setEnabledModules:t,enabledModules:n,configValues:i}){const[o,l]=T.useState(!1),[u,f]=T.useState(),[d,p]=T.useState([]);T.useEffect(()=>{p(n[e].map(([w,S])=>w))},[n]);const m=w=>{let S=w.target.id,C=w.target.checked;(e==="feeders"||e==="formatters")&&n[e].filter(([_,M])=>_!==S&&M||C&&_===S).length>1?l(!0):l(!1);let A={...n};A[e]=n[e].map(([O,_])=>O===S?[O,C]:[O,_]),t(A)},g=qD(US(pg),US(fg,{coordinateGetter:SL})),v=w=>{f(w.active.id)},b=w=>{f(void 0);const{active:S,over:C}=w;if(S.id!==(C==null?void 0:C.id)){const A=d.indexOf(S.id),O=d.indexOf(C==null?void 0:C.id);let _=mg(d,A,O),M={...n};M[e]=n[e].sort((R,D)=>_.indexOf(R[0])-_.indexOf(D[0])),t(M)}};return B.jsxs(B.Fragment,{children:[B.jsxs(Pr,{sx:{my:4},children:[B.jsx(en,{id:e,variant:"h6",style:{textTransform:"capitalize"},children:e}),B.jsxs(en,{variant:"body1",children:["Select the ",B.jsx("a",{href:"<a href={`https://auto-archiver.readthedocs.io/en/latest/modules/${stepType.slice(0,-1)}.html`}",target:"_blank",children:e})," you wish to enable. Drag to reorder."]})]}),o?B.jsxs(en,{variant:"body1",color:"error",children:["Only one ",e.slice(0,-1)," can be enabled at a time."]}):null,B.jsx(U5,{sensors:g,collisionDetection:GD,onDragEnd:b,onDragStart:v,children:B.jsx(sx,{container:!0,spacing:1,children:B.jsxs(cL,{items:d,strategy:gg,children:[d.map(w=>{let S=dl[w];return B.jsx(i6,{type:e,module:S,toggleModule:m,enabledModules:n,configValues:i},w)}),B.jsx(oL,{children:u?B.jsx("div",{style:{width:"100%",height:"100%",backgroundColor:"grey",opacity:.1}}):null})]})},e)})]})}function u6(){const[e,t]=T.useState(new eu),[n,i]=T.useState(Object.fromEntries(Object.keys(il).map(f=>[f,il[f].map(d=>[d,!1])]))),[o,l]=T.useState(Object.keys(dl).reduce((f,d)=>(f[d]={},f),{})),u=function(f=!1){let d=n,p=null;if(!e||e.contents==null?p=xC(xL):p=e,wh.forEach(m=>{let g=m+"s",v=p.getIn(["steps",g]);d[g].forEach(([b,w])=>{var A,O;let S=v.items.findIndex(_=>(_.value||_)===b),C=p.getIn(["steps",g],!0);w&&S===-1?(p.addIn(["steps",g],b),C.commentBefore=(A=C.commentBefore)==null?void 0:A.replace(`
- `+b,""),C.comment=(O=C.comment)==null?void 0:O.replace(`
- `+b,"")):!w&&S!==-1&&(p.deleteIn(["steps",g,S]),C.commentBefore+=`
- `+b,p.setIn(["steps",g],C))}),v.items.sort((b,w)=>d[g].findIndex(S=>S[0]===(b.value||b))-d[g].findIndex(S=>S[0]===(w.value||w))),v.flow=!v.items.length}),Object.keys(o).forEach(m=>{let g=p.get(m,!0);g?(Object.keys(o[m]).forEach(v=>{let b=g.get(v,!0);b?(b.value=o[m][v],g.set(v,b)):g.set(v,o[m][v])}),p.set(m,g)):o[m]&&Object.keys(o[m]).length>0&&p.set(m,o[m])}),f)navigator.clipboard.writeText(String(p)).then(()=>{alert("Settings copied to clipboard.")});else{const m=new Blob([String(p)],{type:"application/x-yaml"}),g=URL.createObjectURL(m),v=document.createElement("a");v.href=g,v.download="orchestration.yaml",v.click()}};return T.useEffect(()=>{let f={};Object.keys(dl).map(d=>{let m=dl[d].configs;m&&(f[d]={},Object.keys(m).map(g=>{let v=m[g];v.default!==void 0&&(f[d][g]=v.default)}))}),l(f)},[]),T.useEffect(()=>{if(!e||e.contents==null)return;let f=e.toJS(),d=f.steps,p=Object.fromEntries(Object.keys(il).map(g=>[g,il[g].map(v=>[v,d[g].indexOf(v)!==-1]).sort((v,b)=>{let w=d[g].indexOf(v[0]),S=d[g].indexOf(b[0]);return w===-1&&S===-1?v-b:S===-1?-1:w===-1?1:w-S})]).sort((g,v)=>wh.indexOf(g[0])-wh.indexOf(v[0])));i(p);let m=f;delete m.steps,l(Object.keys(dl).reduce((g,v)=>(g[v]=m[v]||{},g),{}))},[e]),B.jsx(vM,{maxWidth:"lg",children:B.jsxs(Pr,{sx:{my:4},children:[B.jsxs(Pr,{sx:{my:4},children:[B.jsx(en,{variant:"h5",children:"1. Select your orchestration.yaml settings file."}),B.jsx(en,{variant:"body1",children:"Or skip this step to start from scratch"}),B.jsx(s6,{setYamlFile:t})]}),B.jsxs(Pr,{sx:{my:4},children:[B.jsx(en,{variant:"h5",children:"2. Choose the Modules you wish to enable/disable"}),Object.keys(il).map(f=>B.jsx(Pr,{sx:{my:4},children:B.jsx(l6,{stepType:f,setEnabledModules:i,enabledModules:n,configValues:o})},f))]}),B.jsxs(Pr,{sx:{my:4},children:[B.jsx(en,{variant:"h5",children:"3. Configure your Enabled Modules"}),B.jsx(en,{variant:"body1",children:"Next to each module you've enabled, you can click 'Configure' to set the module's settings."})]}),B.jsxs(Pr,{sx:{my:4},children:[B.jsx(en,{variant:"h5",children:"4. Save your settings"}),B.jsxs(px,{direction:"row",spacing:2,sx:{my:2},children:[B.jsx(om,{variant:"contained",color:"primary",onClick:()=>u(!0),children:"Copy Settings to Clipboard"}),B.jsx(om,{variant:"contained",color:"primary",onClick:()=>u(),children:"Save Settings to File"})]})]})]})})}function c6(){const[e,t]=T.useState("light");T.useEffect(()=>{t(window.localStorage.getItem("theme")||"light")},[]);var n=new MutationObserver(function(o){t(window.localStorage.getItem("theme")||"light")});n.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]});const i=vf({palette:{mode:e=="light"?"light":"dark"},cssVariables:!0});return B.jsxs(kR,{theme:i,children:[B.jsx(kM,{}),B.jsx(u6,{})]})}E2.createRoot(document.getElementById("root")).render(B.jsx(T.StrictMode,{children:B.jsx(c6,{})}));</script>
<div id="root"></div>