ucm/desk/globs/test1/assets/a4e0f2ed22786f63-index.js

286 lines
1.2 MiB
JavaScript
Raw Normal View History

2024-10-06 18:19:22 +00:00
var J7=Object.defineProperty;var T7=(e,n,i)=>n in e?J7(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var be=(e,n,i)=>T7(e,typeof n!="symbol"?n+"":n,i);function v7(e,n){for(var i=0;i<n.length;i++){const t=n[i];if(typeof t!="string"&&!Array.isArray(t)){for(const a in t)if(a!=="default"&&!(a in e)){const r=Object.getOwnPropertyDescriptor(t,a);r&&Object.defineProperty(e,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))t(a);new MutationObserver(a=>{for(const r of a)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&t(s)}).observe(document,{childList:!0,subtree:!0});function i(a){const r={};return a.integrity&&(r.integrity=a.integrity),a.referrerPolicy&&(r.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?r.credentials="include":a.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function t(a){if(a.ep)return;a.ep=!0;const r=i(a);fetch(a.href,r)}})();var Yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z7(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return this instanceof t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}),i}var Jw={exports:{}},pg={},Tw={exports:{}},Ee={};/**
* @license React
* react.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 fl=Symbol.for("react.element"),Y7=Symbol.for("react.portal"),x7=Symbol.for("react.fragment"),H7=Symbol.for("react.strict_mode"),D7=Symbol.for("react.profiler"),P7=Symbol.for("react.provider"),N7=Symbol.for("react.context"),X7=Symbol.for("react.forward_ref"),F7=Symbol.for("react.suspense"),K7=Symbol.for("react.memo"),j7=Symbol.for("react.lazy"),I2=Symbol.iterator;function Q7(e){return e===null||typeof e!="object"?null:(e=I2&&e[I2]||e["@@iterator"],typeof e=="function"?e:null)}var vw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zw=Object.assign,Yw={};function pu(e,n,i){this.props=e,this.context=n,this.refs=Yw,this.updater=i||vw}pu.prototype.isReactComponent={};pu.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};pu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xw(){}xw.prototype=pu.prototype;function Xp(e,n,i){this.props=e,this.context=n,this.refs=Yw,this.updater=i||vw}var Fp=Xp.prototype=new xw;Fp.constructor=Xp;Zw(Fp,pu.prototype);Fp.isPureReactComponent=!0;var $2=Array.isArray,Hw=Object.prototype.hasOwnProperty,Kp={current:null},Dw={key:!0,ref:!0,__self:!0,__source:!0};function Pw(e,n,i){var t,a={},r=null,s=null;if(n!=null)for(t in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(r=""+n.key),n)Hw.call(n,t)&&!Dw.hasOwnProperty(t)&&(a[t]=n[t]);var l=arguments.length-2;if(l===1)a.children=i;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];a.children=c}if(e&&e.defaultProps)for(t in l=e.defaultProps,l)a[t]===void 0&&(a[t]=l[t]);return{$$typeof:fl,type:e,key:r,ref:s,props:a,_owner:Kp.current}}function _7(e,n){return{$$typeof:fl,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function jp(e){return typeof e=="object"&&e!==null&&e.$$typeof===fl}function R7(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(i){return n[i]})}var V2=/\/+/g;function x0(e,n){return typeof e=="object"&&e!==null&&e.key!=null?R7(""+e.key):n.toString(36)}function tc(e,n,i,t,a){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(r){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case fl:case Y7:s=!0}}if(s)return s=e,a=a(s),e=t===""?"."+x0(s,0):t,$2(a)?(i="",e!=null&&(i=e.replace(V2,"$&/")+"/"),tc(a,n,i,"",function(d){return d})):a!=null&&(jp(a)&&(a=_7(a,i+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(V2,"$&/")+"/")+e)),n.push(a)),1;if(s=0,t=t===""?".":t+":",$2(e))for(var l=0;l<e.length;l++){r=e[l];var c=t+x0(r,l);s+=tc(r,n,i,c,a)}else if(c=Q7(e),typeof c=="function")for(e=c.call(e),l=0;!(r=e.next()).done;)r=r.value,c=t+x0(r,l++),s+=tc(r,n,i,c,a);else if(r==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return s}function vh(e,n,i){if(e==null)return e;var t=[],a=0;return tc(e,t,"","",function(r){return n.call(i,r,a++)}),t}function W7(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i)},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Ai={current:null},ac={transition:null},A7={ReactCurrentDispatcher:Ai,ReactCurrentBatchConfig:ac,ReactCurrentOwner:Kp};function Nw(){throw Error("act(...) is not supported in production builds of React.")}Ee.Children={map:vh,forEach:function(e,n,i){vh(e,function(){n.apply(this,arguments)},i)},count:function(e){var n=0;return vh(e,function(){n++}),n},toArray:function(e){return vh(e,function(n){return n})||[]},only:function(e){if(!jp(e))throw Error("React.Children.only expected to receive a sin
* @license React
* react-jsx-runtime.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 E7=X,z7=Symbol.for("react.element"),O7=Symbol.for("react.fragment"),I7=Object.prototype.hasOwnProperty,$7=E7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,V7={key:!0,ref:!0,__self:!0,__source:!0};function Xw(e,n,i){var t,a={},r=null,s=null;i!==void 0&&(r=""+i),n.key!==void 0&&(r=""+n.key),n.ref!==void 0&&(s=n.ref);for(t in n)I7.call(n,t)&&!V7.hasOwnProperty(t)&&(a[t]=n[t]);if(e&&e.defaultProps)for(t in n=e.defaultProps,n)a[t]===void 0&&(a[t]=n[t]);return{$$typeof:z7,type:e,key:r,ref:s,props:a,_owner:$7.current}}pg.Fragment=O7;pg.jsx=Xw;pg.jsxs=Xw;Jw.exports=pg;var v=Jw.exports,Fw={exports:{}},bt={},Kw={exports:{}},jw={};/**
* @license React
* scheduler.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.
*/(function(e){function n(M,j){var R=M.length;M.push(j);e:for(;0<R;){var P=R-1>>>1,y=M[P];if(0<a(y,j))M[P]=j,M[R]=y,R=P;else break e}}function i(M){return M.length===0?null:M[0]}function t(M){if(M.length===0)return null;var j=M[0],R=M.pop();if(R!==j){M[0]=R;e:for(var P=0,y=M.length,F=y>>>1;P<F;){var re=2*(P+1)-1,ue=M[re],le=re+1,Qe=M[le];if(0>a(ue,R))le<y&&0>a(Qe,ue)?(M[P]=Qe,M[le]=R,P=le):(M[P]=ue,M[re]=R,P=re);else if(le<y&&0>a(Qe,R))M[P]=Qe,M[le]=R,P=le;else break e}}return j}function a(M,j){var R=M.sortIndex-j.sortIndex;return R!==0?R:M.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],d=[],p=1,k=null,w=3,L=!1,C=!1,Z=!1,K=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(M){for(var j=i(d);j!==null;){if(j.callback===null)t(d);else if(j.startTime<=M)t(d),j.sortIndex=j.expirationTime,n(c,j);else break;j=i(d)}}function N(M){if(Z=!1,G(M),!C)if(i(c)!==null)C=!0,B(A);else{var j=i(d);j!==null&&x(N,j.startTime-M)}}function A(M,j){C=!1,Z&&(Z=!1,S(I),I=-1),L=!0;var R=w;try{for(G(j),k=i(c);k!==null&&(!(k.expirationTime>j)||M&&!V());){var P=k.callback;if(typeof P=="function"){k.callback=null,w=k.priorityLevel;var y=P(k.expirationTime<=j);j=e.unstable_now(),typeof y=="function"?k.callback=y:k===i(c)&&t(c),G(j)}else t(c);k=i(c)}if(k!==null)var F=!0;else{var re=i(d);re!==null&&x(N,re.startTime-j),F=!1}return F}finally{k=null,w=R,L=!1}}var _=!1,W=null,I=-1,Y=5,O=-1;function V(){return!(e.unstable_now()-O<Y)}function q(){if(W!==null){var M=e.unstable_now();O=M;var j=!0;try{j=W(!0,M)}finally{j?D():(_=!1,W=null)}}else _=!1}var D;if(typeof J=="function")D=function(){J(q)};else if(typeof MessageChannel<"u"){var g=new MessageChannel,m=g.port2;g.port1.onmessage=q,D=function(){m.postMessage(null)}}else D=function(){K(q,0)};function B(M){W=M,_||(_=!0,D())}function x(M,j){I=K(function(){M(e.unstable_now())},j)}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(M){M.callback=null},e.unstable_continueExecution=function(){C||L||(C=!0,B(A))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return i(c)},e.unstable_next=function(M){switch(w){case 1:case 2:case 3:var j=3;break;default:j=w}var R=w;w=j;try{return M()}finally{w=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,j){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var R=w;w=M;try{return j()}finally{w=R}},e.unstable_scheduleCallback=function(M,j,R){var P=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?P+R:P):R=P,M){case 1:var y=-1;break;case 2:y=250;break;case 5:y=1073741823;break;case 4:y=1e4;break;default:y=5e3}return y=R+y,M={id:p++,callback:j,priorityLevel:M,startTime:R,expirationTime:y,sortIndex:-1},R>P?(M.sortIndex=R,n(d,M),i(c)===null&&M===i(d)&&(Z?(S(I),I=-1):Z=!0,x(N,R-P))):(M.sortIndex=y,n(c,M),C||L||(C=!0,B(A))),M},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(M){var j=w;return function(){var R=w;w=j;try{return M.apply(this,arguments)}finally{w=R}}}})(jw);Kw.exports=jw;var U7=Kw.exports;/**
* @license React
* react-dom.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 q7=X,Ct=U7;function oe(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qw=new Set,_s={};function ir(e,n){tu(e,n),tu(e+"Capture",n)}function tu(e,n){for(_s[e]=n,e=0;e<n.length;e++)Qw.add(n[e])}var Xa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cf=Object.prototype.hasOwnProperty,e9=/^[: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]*$/,U2={},q2={};function n9(e){return Cf.call(q2,e)?!0:Cf.call(U2,e)?!1:e9.test(e)?q2[e]=!0:(U2[e]=!0,!1)}function i9(e,n,i,t){if(i!==null&&i.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return t?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function t9(e,n,i,t){if(n===null||typeof n>"u"||i9(e,n,i,t))return!0;if(t)return!1;if(i!==null)switch(i.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function Ei(e,n,i,t,a,r,s){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=t,this.attributeNamespace=a,this.mustUseProperty=i,this.propertyName=e,this.type=n,this.sanitizeURL=r,this.removeEmptyString=s}var vi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vi[e]=new Ei(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];vi[n]=new Ei(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vi[e]=new Ei(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vi[e]=new Ei(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){vi[e]=new Ei(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vi[e]=new Ei(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vi[e]=new Ei(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vi[e]=new Ei(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vi[e]=new Ei(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qp=/[\-:]([a-z])/g;function _p(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin
`+H0+e}var D0=!1;function P0(e,n){if(!e||D0)return"";D0=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(d){var t=d}Reflect.construct(e,[],n)}else{try{n.call()}catch(d){t=d}e.call(n.prototype)}else{try{throw Error()}catch(d){t=d}e()}}catch(d){if(d&&t&&typeof d.stack=="string"){for(var a=d.stack.split(`
`),r=t.stack.split(`
`),s=a.length-1,l=r.length-1;1<=s&&0<=l&&a[s]!==r[l];)l--;for(;1<=s&&0<=l;s--,l--)if(a[s]!==r[l]){if(s!==1||l!==1)do if(s--,l--,0>l||a[s]!==r[l]){var c=`
`+a[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{D0=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?ms(e):""}function a9(e){switch(e.tag){case 5:return ms(e.type);case 16:return ms("Lazy");case 13:return ms("Suspense");case 19:return ms("SuspenseList");case 0:case 2:case 15:return e=P0(e.type,!1),e;case 11:return e=P0(e.type.render,!1),e;case 1:return e=P0(e.type,!0),e;default:return""}}function Lf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dr:return"Fragment";case Hr:return"Portal";case bf:return"Profiler";case Wp:return"StrictMode";case Sf:return"Suspense";case Gf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rw:return(e.displayName||"Context")+".Consumer";case _w:return(e._context.displayName||"Context")+".Provider";case Ap:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ep:return n=e.displayName||null,n!==null?n:Lf(e.type)||"Memo";case oo:n=e._payload,e=e._init;try{return Lf(e(n))}catch{}}return null}function o9(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Lf(n);case 8:return n===Wp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function bo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Aw(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function r9(e){var n=Aw(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),t=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,r=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return a.call(this)},set:function(s){t=""+s,r.call(this,s)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return t},setValue:function(s){t=""+s},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Yh(e){e._valueTracker||(e._valueTracker=r9(e))}function Ew(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),t="";return e&&(t=Aw(e)?e.checked?"true":"false":e.value),e=t,e!==i?(n.setValue(e),!0):!1}function Gc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bf(e,n){var i=n.checked;return An({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function n6(e,n){var i=n.defaultValue==null?"":n.defaultValue,t=n.checked!=null?n.checked:n.defaultChecked;i=bo(n.value!=null?n.value:i),e._wrapperState={initialChecked:t,initialValue:i,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function zw(e,n){n=n.checked,n!=null&&Rp(e,"checked",n,!1)}function Mf(e,n){zw(e,n);var i=bo(n.value),t=n.type;if(i!=null)t==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(t==="submit"||t==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Jf(e,n.type,i):n.hasOwnProperty("defaultValue")&&Jf(e,n.type,bo(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function i6(e,n,i){if(n.hasOwnProperty("val
`).replace(yM,"")}function Kh(e,n,i){if(n=B6(n),B6(e)!==n&&i)throw Error(oe(425))}function Yc(){}var Qf=null,_f=null;function Rf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Wf=typeof setTimeout=="function"?setTimeout:void 0,mM=typeof clearTimeout=="function"?clearTimeout:void 0,M6=typeof Promise=="function"?Promise:void 0,kM=typeof queueMicrotask=="function"?queueMicrotask:typeof M6<"u"?function(e){return M6.resolve(null).then(e).catch(wM)}:Wf;function wM(e){setTimeout(function(){throw e})}function O0(e,n){var i=n,t=0;do{var a=i.nextSibling;if(e.removeChild(i),a&&a.nodeType===8)if(i=a.data,i==="/$"){if(t===0){e.removeChild(a),zs(n);return}t--}else i!=="$"&&i!=="$?"&&i!=="$!"||t++;i=a}while(i);zs(n)}function yo(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function J6(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return e;n--}else i==="/$"&&n++}e=e.previousSibling}return null}var mu=Math.random().toString(36).slice(2),pa="__reactFiber$"+mu,Us="__reactProps$"+mu,Fa="__reactContainer$"+mu,Af="__reactEvents$"+mu,CM="__reactListeners$"+mu,bM="__reactHandles$"+mu;function _o(e){var n=e[pa];if(n)return n;for(var i=e.parentNode;i;){if(n=i[Fa]||i[pa]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=J6(e);e!==null;){if(i=e[pa])return i;e=J6(e)}return n}e=i,i=e.parentNode}return null}function ml(e){return e=e[pa]||e[Fa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(oe(33))}function Cg(e){return e[Us]||null}var Ef=[],Kr=-1;function Bo(e){return{current:e}}function vn(e){0>Kr||(e.current=Ef[Kr],Ef[Kr]=null,Kr--)}function Ln(e,n){Kr++,Ef[Kr]=e.current,e.current=n}var So={},Fi=Bo(So),et=Bo(!1),Oo=So;function au(e,n){var i=e.type.contextTypes;if(!i)return So;var t=e.stateNode;if(t&&t.__reactInternalMemoizedUnmaskedChildContext===n)return t.__reactInternalMemoizedMaskedChildContext;var a={},r;for(r in i)a[r]=n[r];return t&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function nt(e){return e=e.childContextTypes,e!=null}function xc(){vn(et),vn(Fi)}function T6(e,n,i){if(Fi.current!==So)throw Error(oe(168));Ln(Fi,n),Ln(et,i)}function PC(e,n,i){var t=e.stateNode;if(n=n.childContextTypes,typeof t.getChildContext!="function")return i;t=t.getChildContext();for(var a in t)if(!(a in n))throw Error(oe(108,o9(e)||"Unknown",a));return An({},i,t)}function Hc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,Oo=Fi.current,Ln(Fi,e),Ln(et,et.current),!0}function v6(e,n,i){var t=e.stateNode;if(!t)throw Error(oe(169));i?(e=PC(e,n,Oo),t.__reactInternalMemoizedMergedChildContext=e,vn(et),vn(Fi),Ln(Fi,e)):vn(et),Ln(et,i)}var xa=null,bg=!1,I0=!1;function NC(e){xa===null?xa=[e]:xa.push(e)}function SM(e){bg=!0,NC(e)}function Mo(){if(!I0&&xa!==null){I0=!0;var e=0,n=pn;try{var i=xa;for(pn=1;e<i.length;e++){var t=i[e];do t=t(!0);while(t!==null)}xa=null,bg=!1}catch(a){throw xa!==null&&(xa=xa.slice(e+1)),uC(Op,Mo),a}finally{pn=n,I0=!1}}return null}var jr=[],Qr=0,Dc=null,Pc=0,Dt=[],Pt=0,Io=null,Da=1,Pa="";function Fo(e,n){jr[Qr++]=Pc,jr[Qr++]=Dc,Dc=e,Pc=n}function XC(e,n,i){Dt[Pt++]=Da,Dt[Pt++]=Pa,Dt[Pt++]=Io,Io=e;var t=Da;e=Pa;var a=32-ia(t)-1;t&=~(1<<a),i+=1;var r=32-ia(n)+a;if(30<r){var s=a-a%5;r=(t&(1<<s)-1).toString(32),t>>=s,a-=s,Da=1<<32-ia(n)+a|i<<a|t,Pa=r+e}else Da=1<<r|i<<a|t,Pa=e}function t1(e){e.return!==null&&(Fo(e,1),XC(e,1,0))}function a1(e){for(;e===Dc;)Dc=jr[--Qr],jr[Qr]=null,Pc=jr[--Qr],jr[Qr]=null;for(;e===Io;)Io=Dt[--Pt],Dt[Pt]=null,Pa=Dt[--Pt],Dt[Pt]=null,Da=Dt[--Pt],Dt[Pt]=null}var mt=null,yt=null,Dn=!1,ea=null;function FC(e,n){var i=Kt(5,null,null,0);i.elementType="DELETED",i.stateNode=n,i.return=e,n=e.de
Error generating stack: `+r.message+`
`+r.stack}return{value:e,source:n,stack:a,digest:null}}function ef(e,n,i){return{value:e,source:null,stack:i??null,digest:n??null}}function Uf(e,n){try{console.error(n.value)}catch(i){setTimeout(function(){throw i})}}var YM=typeof WeakMap=="function"?WeakMap:Map;function c8(e,n,i){i=Na(-1,i),i.tag=3,i.payload={element:null};var t=n.value;return i.callback=function(){Rc||(Rc=!0,sp=t),Uf(e,n)},i}function g8(e,n,i){i=Na(-1,i),i.tag=3;var t=e.type.getDerivedStateFromError;if(typeof t=="function"){var a=n.value;i.payload=function(){return t(a)},i.callback=function(){Uf(e,n)}}var r=e.stateNode;return r!==null&&typeof r.componentDidCatch=="function"&&(i.callback=function(){Uf(e,n),typeof t!="function"&&(ko===null?ko=new Set([this]):ko.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})}),i}function K6(e,n,i){var t=e.pingCache;if(t===null){t=e.pingCache=new YM;var a=new Set;t.set(n,a)}else a=t.get(n),a===void 0&&(a=new Set,t.set(n,a));a.has(i)||(a.add(i),e=AM.bind(null,e,n,i),n.then(e,e))}function j6(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Q6(e,n,i,t,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===n?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(n=Na(-1,1),n.tag=2,mo(i,n,1))),i.lanes|=1),e)}var xM=Wa.ReactCurrentOwner,qi=!1;function Ri(e,n,i,t){n.child=e===null?QC(n,null,i,t):ru(n,e.child,i,t)}function _6(e,n,i,t,a){i=i.render;var r=n.ref;return $r(n,a),t=p1(e,n,i,t,r,a),i=y1(),e!==null&&!qi?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,ja(e,n,a)):(Dn&&i&&t1(n),n.flags|=1,Ri(e,n,t,a),n.child)}function R6(e,n,i,t,a){if(e===null){var r=i.type;return typeof r=="function"&&!M1(r)&&r.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(n.tag=15,n.type=r,d8(e,n,r,t,a)):(e=fc(i.type,null,t,n,n.mode,a),e.ref=n.ref,e.return=n,n.child=e)}if(r=e.child,!(e.lanes&a)){var s=r.memoizedProps;if(i=i.compare,i=i!==null?i:Is,i(s,t)&&e.ref===n.ref)return ja(e,n,a)}return n.flags|=1,e=Co(r,t),e.ref=n.ref,e.return=n,n.child=e}function d8(e,n,i,t,a){if(e!==null){var r=e.memoizedProps;if(Is(r,t)&&e.ref===n.ref)if(qi=!1,n.pendingProps=t=r,(e.lanes&a)!==0)e.flags&131072&&(qi=!0);else return n.lanes=e.lanes,ja(e,n,a)}return qf(e,n,i,t,a)}function f8(e,n,i){var t=n.pendingProps,a=t.children,r=e!==null?e.memoizedState:null;if(t.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ln(Wr,ct),ct|=i;else{if(!(i&1073741824))return e=r!==null?r.baseLanes|i:i,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Ln(Wr,ct),ct|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},t=r!==null?r.baseLanes:i,Ln(Wr,ct),ct|=t}else r!==null?(t=r.baseLanes|i,n.memoizedState=null):t=i,Ln(Wr,ct),ct|=t;return Ri(e,n,a,i),n.child}function p8(e,n){var i=n.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(n.flags|=512,n.flags|=2097152)}function qf(e,n,i,t,a){var r=nt(i)?Oo:Fi.current;return r=au(n,r),$r(n,a),i=p1(e,n,i,t,r,a),t=y1(),e!==null&&!qi?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,ja(e,n,a)):(Dn&&t&&t1(n),n.flags|=1,Ri(e,n,i,a),n.child)}function W6(e,n,i,t,a){if(nt(i)){var r=!0;Hc(n)}else r=!1;if($r(n,a),n.stateNode===null)cc(e,n),h8(n,i,t),Vf(n,i,t,a),t=!0;else if(e===null){var s=n.stateNode,l=n.memoizedProps;s.props=l;var c=s.context,d=i.contextType;typeof d=="object"&&d!==null?d=Rt(d):(d=nt(i)?Oo:Fi.current,d=au(n,d));var p=i.getDerivedStateFromProps,k=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";k||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==t||c!==d)&&F6(n,s,t,d),ro=!1;var w=n.memoizedState;s.state=w,Fc(n,t,s,a),c=n.memoizedState,l!==t||w!==c||et.current||ro?(typeof p=="function"&&($f(n,i,p,t),c=n.memoizedState),(l=ro||X6(n,i,l,t,w,c,d))?(k||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
`+p:p;break;case"event":t.event=p;break;case"id":n==null||n(t.id=p);break;case"retry":const k=parseInt(p,10);isNaN(k)||i==null||i(t.retry=k);break}}}}function cJ(e,n){const i=new Uint8Array(e.length+n.length);return i.set(e),i.set(n,e.length),i}function ak(){return{data:"",event:"",id:"",retry:void 0}}const gp="text/event-stream",gJ=1e3,ok="last-event-id";function dJ(e,{signal:n,headers:i,onopen:t,onmessage:a,onclose:r,onerror:s,openWhenHidden:l,fetch:c,responseTimeout:d,...p}){return new Promise((k,w)=>{const L={...i};L.accept||(L.accept=gp);let C;function Z(){C.abort(),document.hidden||_()}typeof document<"u"&&!l&&document.addEventListener("visibilitychange",Z);let K=gJ,S;function J(){typeof document<"u"&&!l&&document.removeEventListener("visibilitychange",Z),clearTimeout(S),C.abort()}n==null||n.addEventListener("abort",()=>{J(),k()});const G=c??fetch,N=t??fJ;let A=!1;async function _(){C=new AbortController;try{const W=await Promise.race([G(e,{...p,headers:L,signal:C.signal}),new Promise((I,Y)=>{setTimeout(()=>Y(new Error("fetch timed out")),d)})]);if(W.status===404){s==null||s(new j8("Channel reaped")),J(),k();return}if(W.status<200||W.status>=300)throw new Error(`Invalid server response: ${W.status}`);await N(W,A),A&&(A=!1),await sJ(W.body,lJ(hJ(a,I=>{I?L[ok]=I:delete L[ok]},I=>{K=I})),d),r==null||r(),J(),k()}catch(W){if(!C.signal.aborted)try{A=!0;const I=(s==null?void 0:s(W))??K;clearTimeout(S),C.abort(),S=setTimeout(_,I)}catch(I){J(),w(I)}}}_()})}function fJ(e){const n=e.headers.get("content-type");if(!(n!=null&&n.startsWith(gp)))throw new Error(`Expected content-type to be ${gp}, Actual: ${n}`)}function pc(e){const i=Math.pow(16,Math.min(e,8)-1),t=Math.pow(16,Math.min(e,8))-1;let r=(Math.floor(Math.random()*(t-i+1))+i).toString(16);for(;r.length<e;)r=r+pc(e-8);return r}let pJ=class{constructor(){be(this,"listeners",{})}on(n,i){return this.listeners.hasOwnProperty(n)||(this.listeners[n]=[]),this.listeners[n].push(i),this}emit(n,...i){if(!this.listeners.hasOwnProperty(n))return null;for(let t=0;t<this.listeners[n].length;t++)this.listeners[n][t].call(this,...i)}};class ol{constructor(n,i,t,a){be(this,"url");be(this,"code");be(this,"desk");be(this,"emitter",new pJ);be(this,"uid",`${Math.floor(Date.now()/1e3)}-${pc(6)}`);be(this,"lastEventId",0);be(this,"lastHeardEventId",-1);be(this,"lastAcknowledgedEventId",-1);be(this,"sseClientInitialized",!1);be(this,"cookie");be(this,"outstandingPokes",new Map);be(this,"outstandingSubscriptions",new Map);be(this,"abort",new AbortController);be(this,"ship");be(this,"our");be(this,"verbose");be(this,"errorCount",0);be(this,"fetchFn",(...n)=>fetch(...n));be(this,"onError",null);be(this,"onRetry",null);be(this,"onOpen",null);be(this,"onReconnect",null);return this.url=n,this.code=i,this.desk=t,ss&&window.addEventListener("beforeunload",this.delete),a&&(this.fetchFn=a),this}get channelUrl(){return`${this.url}/~/channel/${this.uid}`}get fetchOptions(){const n={"Content-Type":"application/json"};return ss||(n.Cookie=this.cookie),{credentials:"include",accept:"*",headers:n,signal:this.abort.signal}}static async authenticate({ship:n,url:i,code:t,verbose:a=!1}){const r=new ol(i.startsWith("http")?i:`http://${i}`,t);return r.verbose=a,r.ship=n,await r.connect(),await r.poke({app:"hood",mark:"helm-hi",json:"opening airlock"}),await r.eventSource(),r}emit(n,i){this.verbose&&this.emitter.emit(n,i)}on(n,i){this.emitter.on(n,i),this.verbose&&console.log(n,"listening active"),n==="init"&&this.emitter.emit(n,{uid:this.uid,subscriptions:[...this.outstandingSubscriptions.entries()].map(([t,a])=>({id:t,app:a.app,path:a.path}))})}async getShipName(){if(this.ship)return Promise.resolve();const i=await(await this.fetchFn(`${this.url}/~/host`,{method:"get",credentials:"include"})).text();this.ship=i.substring(1)}async getOurName(){if(this.our)return Promise.resolve();const i=await(await this.fetchFn(`${this.url}/~/name`,{method:"get",credentials:"include"})).text();this.our=i}async connect(){return this.verbose&&console.log(`password=${this.code} `,ss?`Connecting in browser context at ${this.url}/~/lo
* @license React
* use-sync-external-store-shim.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 hu=X;function kJ(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var wJ=typeof Object.is=="function"?Object.is:kJ,CJ=hu.useState,bJ=hu.useEffect,SJ=hu.useLayoutEffect,GJ=hu.useDebugValue;function LJ(e,n){var i=n(),t=CJ({inst:{value:i,getSnapshot:n}}),a=t[0].inst,r=t[1];return SJ(function(){a.value=i,a.getSnapshot=n,of(a)&&r({inst:a})},[e,i,n]),bJ(function(){return of(a)&&r({inst:a}),e(function(){of(a)&&r({inst:a})})},[e]),GJ(i),i}function of(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!wJ(e,i)}catch{return!0}}function BJ(e,n){return n()}var MJ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?BJ:LJ;W8.useSyncExternalStore=hu.useSyncExternalStore!==void 0?hu.useSyncExternalStore:MJ;R8.exports=W8;var A8=R8.exports;/**
* @license React
* use-sync-external-store-shim/with-selector.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 Yg=X,JJ=A8;function TJ(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var vJ=typeof Object.is=="function"?Object.is:TJ,ZJ=JJ.useSyncExternalStore,YJ=Yg.useRef,xJ=Yg.useEffect,HJ=Yg.useMemo,DJ=Yg.useDebugValue;_8.useSyncExternalStoreWithSelector=function(e,n,i,t,a){var r=YJ(null);if(r.current===null){var s={hasValue:!1,value:null};r.current=s}else s=r.current;r=HJ(function(){function c(L){if(!d){if(d=!0,p=L,L=t(L),a!==void 0&&s.hasValue){var C=s.value;if(a(C,L))return k=C}return k=L}if(C=k,vJ(p,L))return C;var Z=t(L);return a!==void 0&&a(C,Z)?C:(p=L,k=Z)}var d=!1,p,k,w=i===void 0?null:i;return[function(){return c(n())},w===null?void 0:function(){return c(w())}]},[n,i,t,a]);var l=ZJ(e,r[0],r[1]);return xJ(function(){s.hasValue=!0,s.value=l},[l]),DJ(l),l};Q8.exports=_8;var PJ=Q8.exports;const NJ=fg(PJ),E8={BASE_URL:"/test1",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:XJ}=na,{useSyncExternalStoreWithSelector:FJ}=NJ;let uk=!1;const KJ=e=>e;function jJ(e,n=KJ,i){(E8?"production":void 0)!=="production"&&i&&!uk&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),uk=!0);const t=FJ(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,i);return XJ(t),t}const QJ=e=>{(E8?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const n=typeof e=="function"?mJ(e):e,i=(t,a)=>jJ(n,t,a);return Object.assign(i,n),i},_J=e=>QJ,bs="ublog",x1="",sk=new RegExp(/urbit:\/\/[a-z0-9-]+\/~[a-z-_]+\/[a-z0-9-_]+/gim),dp=new RegExp(/\B~[a-z-]+/),lk="~holnes",RJ="https://s3.sortug.com/urbit/polwex/2024.9.20..12.25.40..d2b0.20c4.9ba5.e353-image.png";var H1={exports:{}};const WJ={},AJ=Object.freeze(Object.defineProperty({__proto__:null,default:WJ},Symbol.toStringTag,{value:"Module"})),EJ=Z7(AJ);H1.exports;(function(e){(function(n,i){function t(D,g){if(!D)throw new Error(g||"Assertion failed")}function a(D,g){D.super_=g;var m=function(){};m.prototype=g.prototype,D.prototype=new m,D.prototype.constructor=D}function r(D,g,m){if(r.isBN(D))return D;this.negative=0,this.words=null,this.length=0,this.red=null,D!==null&&((g==="le"||g==="be")&&(m=g,g=10),this._init(D||0,g||10,m||"be"))}typeof n=="object"?n.exports=r:i.BN=r,r.BN=r,r.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=EJ.Buffer}catch{}r.isBN=function(g){return g instanceof r?!0:g!==null&&typeof g=="object"&&g.constructor.wordSize===r.wordSize&&Array.isArray(g.words)},r.max=function(g,m){return g.cmp(m)>0?g:m},r.min=function(g,m){return g.cmp(m)<0?g:m},r.prototype._init=function(g,m,B){if(typeof g=="number")return this._initNumber(g,m,B);if(typeof g=="object")return this._initArray(g,m,B);m==="hex"&&(m=16),t(m===(m|0)&&m>=2&&m<=36),g=g.toString().replace(/\s+/g,"");var x=0;g[0]==="-"&&(x++,this.negative=1),x<g.length&&(m===16?this._parseHex(g,x,B):(this._parseBase(g,m,x),B==="le"&&this._initArray(this.toArray(),m,B)))},r.prototype._initNumber=function(g,m,B){g<0&&(this.negative=1,g=-g),g<67108864?(this.words=[g&67108863],this.length=1):g<4503599627370496?(this.words=[g&67108863,g/67108864&67108863],this.length=2):(t(g<9007199254740992),this.words=[g&67108863,g/67108864&67108863,1],this.length=3),B==="le"&&this._initArray(this.toArray(),m,B)},r.prototype._initArray=function(g,m,B){if(t(typeof g.length=="number"),g.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(g.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var M,j,R=0;if(B==="be")for(x=g.length-1,M=0;x>=0;x-=3)j=g[x]|g[x-1]<<8|g[x-2]<<16,this.words[M]|=j<<R&67108863,this.words[M+1]=j>>>26-R&67108863,R+=24,R>=26&&(R-=26,M++);else if(B==="le")for(x=0,M=0;x<g.length;x+=3)j=g[x]|g[x+1]<<8|g[x+2]<<16,this.words[M]|=j<<R&67108863,this.words[M+1]=j>>>26-R&67108863,R+=24,R>=26&&(R-=26,M++);return this._st
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/zc.exports;(function(e,n){(function(){var i,t="4.17.21",a=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",k=1,w=2,L=4,C=1,Z=2,K=1,S=2,J=4,G=8,N=16,A=32,_=64,W=128,I=256,Y=512,O=30,V="...",q=800,D=16,g=1,m=2,B=3,x=1/0,M=9007199254740991,j=17976931348623157e292,R=NaN,P=4294967295,y=P-1,F=P>>>1,re=[["ary",W],["bind",K],["bindKey",S],["curry",G],["curryRight",N],["flip",Y],["partial",A],["partialRight",_],["rearg",I]],ue="[object Arguments]",le="[object Array]",Qe="[object AsyncFunction]",Ze="[object Boolean]",Se="[object Date]",Ne="[object DOMException]",ke="[object Error]",pe="[object Function]",Nn="[object GeneratorFunction]",fe="[object Map]",Ce="[object Number]",Gi="[object Null]",He="[object Object]",Xe="[object Promise]",En="[object Proxy]",We="[object RegExp]",me="[object Set]",ki="[object String]",se="[object Symbol]",Ke="[object Undefined]",zi="[object WeakMap]",tn="[object WeakSet]",Ue="[object ArrayBuffer]",Ki="[object DataView]",en="[object Float32Array]",on="[object Float64Array]",rn="[object Int8Array]",cn="[object Int16Array]",gn="[object Int32Array]",we="[object Uint8Array]",Le="[object Uint8ClampedArray]",Pe="[object Uint16Array]",at="[object Uint32Array]",Mn=/\b__p \+= '';/g,zn=/\b(__p \+=) '' \+/g,Pl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xn=/&(?:amp|lt|gt|quot|#39);/g,Fn=/[&<>"']/g,Nl=RegExp(Xn.source),On=RegExp(Fn.source),In=/<%-([\s\S]+?)%>/g,Xl=/<%([\s\S]+?)%>/g,Kn=/<%=([\s\S]+?)%>/g,$n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fl=/^\w*$/,Vn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zn=/[\\^$.*+?()[\]{}|]/g,Kl=RegExp(Zn.source),Yn=/^\s+/,Un=/\s/,jl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qn=/\{\n\/\* \[wrapped with (.+)\] \*/,ei=/,? & /,Ql=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ni=/[()=,{}\[\]\/\s]/,ii=/\\(\\)?/g,_l=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jn=/\w*$/,ti=/^[-+]0x[0-9a-f]+$/i,Mu=/^0b[01]+$/i,Ju=/^\[object .+?Constructor\]$/,Tu=/^0o[0-7]+$/i,vu=/^(?:0|[1-9]\d*)$/,Zu=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ea=/($^)/,Yu=/['\n\r\u2028\u2029\\]/g,za="\\ud800-\\udfff",xu="\\u0300-\\u036f",Hu="\\ufe20-\\ufe2f",Du="\\u20d0-\\u20ff",or=xu+Hu+Du,rr="\\u2700-\\u27bf",ur="a-z\\xdf-\\xf6\\xf8-\\xff",Pu="\\xac\\xb1\\xd7\\xf7",Nu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xu="\\u2000-\\u206f",Fu=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",sr="A-Z\\xc0-\\xd6\\xd8-\\xde",Ty="\\ufe0e\\ufe0f",vy=Pu+Nu+Xu+Fu,Sd="[']",Jb="["+za+"]",Zy="["+vy+"]",Rl="["+or+"]",Yy="\\d+",Tb="["+rr+"]",xy="["+ur+"]",Hy="[^"+za+vy+Yy+rr+ur+sr+"]",Gd="\\ud83c[\\udffb-\\udfff]",vb="(?:"+Rl+"|"+Gd+")",Dy="[^"+za+"]",Ld="(?:\\ud83c[\\udde6-\\uddff]){2}",Bd="[\\ud800-\\udbff][\\udc00-\\udfff]",lr="["+sr+"]",Py="\\u200d",Ny="(?:"+xy+"|"+Hy+")",Zb="(?:"+lr+"|"+Hy+")",Xy="(?:"+Sd+"(?:d|ll|m|re|s|t|ve))?",Fy="(?:"+Sd+"(?:D|LL|M|RE|S|T|VE))?",Ky=vb+"?",jy="["+Ty+"]?",Yb="(?:"+Py+"(?:"+[Dy,Ld,Bd].join("|")+")"+jy+Ky+")*",xb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qy=jy+Ky+Yb,Db="(?:"+[Tb,Ld,Bd].join("|")+")"+Qy,Pb="(?:"+[Dy+Rl+"?",Rl,Ld,Bd,Jb].join("|")+")",Nb=RegExp(Sd,"g"),Xb=RegExp(Rl,"g"),Md=RegExp(Gd+"(?="+Gd+")|"+Pb+Qy,"g"),Fb=RegExp([lr+"?"+xy+"+"+Xy+"(?="+[Zy,lr,"$"].join("|")+")",Zb+"+"+Fy+"(?="+[Zy,lr+Ny,"$"].join("|")+")",lr+"?"+Ny+"+"+Xy,lr+"+"+Fy,Hb,xb,Yy,Db].join("|"),"g"),Kb=RegExp("["+Py+za+or+Ty+"]"),jb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_b=-1,Jn={};J
/* [wrapped with `+u+`] */
`)}function o3(o){return De(o)||No(o)||!!(hm&&o&&o[hm])}function Ma(o,u){var h=typeof o;return u=u??M,!!u&&(h=="number"||h!="symbol"&&vu.test(o))&&o>-1&&o%1==0&&o<u}function Qi(o,u,h){if(!Qn(h))return!1;var f=typeof u;return(f=="number"?Ii(h)&&Ma(u,h.length):f=="string"&&u in h)?It(h[u],o):!1}function d0(o,u){if(De(o))return!1;var h=typeof o;return h=="number"||h=="symbol"||h=="boolean"||o==null||st(o)?!0:Fl.test(o)||!$n.test(o)||u!=null&&o in wn(u)}function r3(o){var u=typeof o;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?o!=="__proto__":o===null}function f0(o){var u=kh(o),h=T[u];if(typeof h!="function"||!(u in ze.prototype))return!1;if(o===h)return!0;var f=h0(h);return!!f&&o===f[0]}function u3(o){return!!rm&&rm in o}var s3=Ol?Ja:Y0;function Vu(o){var u=o&&o.constructor,h=typeof u=="function"&&u.prototype||fr;return o===h}function r2(o){return o===o&&!Qn(o)}function u2(o,u){return function(h){return h==null?!1:h[o]===u&&(u!==i||o in wn(h))}}function l3(o){var u=Lh(o,function(f){return h.size===d&&h.clear(),f}),h=u.cache;return u}function h3(o,u){var h=o[1],f=u[1],b=h|f,H=b<(K|S|W),Q=f==W&&h==G||f==W&&h==I&&o[7].length<=u[8]||f==(W|I)&&u[7].length<=u[8]&&h==G;if(!(H||Q))return o;f&K&&(o[2]=u[2],b|=h&K?0:J);var E=u[3];if(E){var $=o[3];o[3]=$?Rm($,E,u[4]):E,o[4]=$?$a(o[3],p):u[4]}return E=u[5],E&&($=o[5],o[5]=$?Wm($,E,u[6]):E,o[6]=$?$a(o[5],p):u[6]),E=u[7],E&&(o[7]=E),f&W&&(o[8]=o[8]==null?u[8]:Yi(o[8],u[8])),o[9]==null&&(o[9]=u[9]),o[0]=u[0],o[1]=b,o}function c3(o){var u=[];if(o!=null)for(var h in wn(o))u.push(h);return u}function g3(o){return $l.call(o)}function s2(o,u,h){return u=pi(u===i?o.length-1:u,0),function(){for(var f=arguments,b=-1,H=pi(f.length-u,0),Q=U(H);++b<H;)Q[b]=f[u+b];b=-1;for(var E=U(u+1);++b<u;)E[b]=f[b];return E[u]=h(Q),ot(o,this,E)}}function l2(o,u){return u.length<2?o:Ho(o,Zt(u,0,-1))}function d3(o,u){for(var h=o.length,f=Yi(u.length,h),b=Oi(o);f--;){var H=u[f];o[f]=Ma(H,h)?b[H]:i}return o}function p0(o,u){if(!(u==="constructor"&&typeof o[u]=="function")&&u!="__proto__")return o[u]}var h2=g2(Hm),Uu=TS||function(o,u){return Li.setTimeout(o,u)},y0=g2(N4);function c2(o,u,h){var f=u+"";return y0(o,a3(f,f3(n3(f),h)))}function g2(o){var u=0,h=0;return function(){var f=xS(),b=D-(f-h);if(h=f,b>0){if(++u>=q)return arguments[0]}else u=0;return o.apply(i,arguments)}}function Ch(o,u){var h=-1,f=o.length,b=f-1;for(u=u===i?f:u;++h<u;){var H=Ud(h,b),Q=o[H];o[H]=o[h],o[h]=Q}return o.length=u,o}var d2=l3(function(o){var u=[];return o.charCodeAt(0)===46&&u.push(""),o.replace(Vn,function(h,f,b,H){u.push(b?H.replace(ii,"$1"):f||h)}),u});function sa(o){if(typeof o=="string"||st(o))return o;var u=o+"";return u=="0"&&1/o==-x?"-0":u}function Po(o){if(o!=null){try{return Il.call(o)}catch{}try{return o+""}catch{}}return""}function f3(o,u){return Mt(re,function(h){var f="_."+h[0];u&h[1]&&!Wl(o,f)&&o.push(f)}),o.sort()}function f2(o){if(o instanceof ze)return o.clone();var u=new Tt(o.__wrapped__,o.__chain__);return u.__actions__=Oi(o.__actions__),u.__index__=o.__index__,u.__values__=o.__values__,u}function p3(o,u,h){(h?Qi(o,u,h):u===i)?u=1:u=pi(Fe(u),0);var f=o==null?0:o.length;if(!f||u<1)return[];for(var b=0,H=0,Q=U(ih(f/u));b<f;)Q[H++]=Zt(o,b,b+=u);return Q}function y3(o){for(var u=-1,h=o==null?0:o.length,f=0,b=[];++u<h;){var H=o[u];H&&(b[f++]=H)}return b}function m3(){var o=arguments.length;if(!o)return[];for(var u=U(o-1),h=arguments[0],f=o;f--;)u[f-1]=arguments[f];return Ia(De(h)?Oi(h):[h],Bi(u,1))}var k3=_e(function(o,u){return si(o)?Eu(o,Bi(u,1,si,!0)):[]}),w3=_e(function(o,u){var h=Yt(u);return si(h)&&(h=i),si(o)?Eu(o,Bi(u,1,si,!0),Ge(h,2)):[]}),C3=_e(function(o,u){var h=Yt(u);return si(h)&&(h=i),si(o)?Eu(o,Bi(u,1,si,!0),i,h):[]});function b3(o,u,h){var f=o==null?0:o.length;return f?(u=h||u===i?1:Fe(u),Zt(o,u<0?0:u,f)):[]}function S3(o,u,h){var f=o==null?0:o.length;return f?(u=h||u===i?1:Fe(u),u=f-u,Zt(o,0,u<0?0:u)):[]}function G3(o,u){return o&&o.length?gh(o,Ge(u,3),!0,!0):[]}function L3(o,u){return o&&o.length?gh(o,Ge(u,3),!0):[]}function B3(o,u,h,f){var b=o==null?0:o.length;return b?(h&&typeof h!="numb
`;o.replace(he,function(Me,Ae,$e,lt,_i,ht){return $e||($e=lt),ae+=o.slice(ie,ht).replace(Yu,sS),Ae&&(E=!0,ae+=`' +
__e(`+Ae+`) +
'`),_i&&($=!0,ae+=`';
`+_i+`;
__p += '`),$e&&(ae+=`' +
((__t = (`+$e+`)) == null ? '' : __t) +
'`),ie=ht+Me.length,Me}),ae+=`';
`;var Be=fn.call(u,"variable")&&u.variable;if(!Be)ae=`with (obj) {
`+ae+`
}
`;else if(ni.test(Be))throw new Ye(l);ae=($?ae.replace(Mn,""):ae).replace(zn,"$1").replace(Pl,"$1;"),ae="function("+(Be||"obj")+`) {
`+(Be?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(E?", __e = _.escape":"")+($?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+ae+`return __p
}`;var je=E2(function(){return un(H,ye+"return "+ae).apply(i,Q)});if(je.source=ae,b0(je))throw je;return je}function DB(o){return dn(o).toLowerCase()}function PB(o){return dn(o).toUpperCase()}function NB(o,u,h){if(o=dn(o),o&&(h||u===i))return nm(o);if(!o||!(u=ut(u)))return o;var f=zt(o),b=zt(u),H=im(f,b),Q=tm(f,b)+1;return no(f,H,Q).join("")}function XB(o,u,h){if(o=dn(o),o&&(h||u===i))return o.slice(0,om(o)+1);if(!o||!(u=ut(u)))return o;var f=zt(o),b=tm(f,zt(u))+1;return no(f,0,b).join("")}function FB(o,u,h){if(o=dn(o),o&&(h||u===i))return o.replace(Yn,"");if(!o||!(u=ut(u)))return o;var f=zt(o),b=im(f,zt(u));return no(f,b).join("")}function KB(o,u){var h=O,f=V;if(Qn(u)){var b="separator"in u?u.separator:b;h="length"in u?Fe(u.length):h,f="omission"in u?ut(u.omission):f}o=dn(o);var H=o.length;if(cr(o)){var Q=zt(o);H=Q.length}if(h>=H)return o;var E=h-gr(f);if(E<1)return f;var $=Q?no(Q,0,E).join(""):o.slice(0,E);if(b===i)return $+f;if(Q&&(E+=$.length-E),S0(b)){if(o.slice(E).search(b)){var ie,te=$;for(b.global||(b=Fd(b.source,dn(jn.exec(b))+"g")),b.lastIndex=0;ie=b.exec(te);)var ae=ie.index;$=$.slice(0,ae===i?E:ae)}}else if(o.indexOf(ut(b),E)!=E){var he=$.lastIndexOf(b);he>-1&&($=$.slice(0,he))}return $+f}function jB(o){return o=dn(o),o&&Nl.test(o)?o.replace(Xn,pS):o}var QB=wr(function(o,u,h){return o+(h?" ":"")+u.toUpperCase()}),B0=zm("toUpperCase");function A2(o,u,h){return o=dn(o),u=h?i:u,u===i?hS(o)?kS(o):nS(o):o.match(u)||[]}var E2=_e(function(o,u){try{return ot(o,i,u)}catch(h){return b0(h)?h:new Ye(h)}}),_B=Ba(function(o,u){return Mt(u,function(h){h=sa(h),Ga(o,h,w0(o[h],o))}),o});function RB(o){var u=o==null?0:o.length,h=Ge();return o=u?xn(o,function(f){if(typeof f[1]!="function")throw new Jt(s);return[h(f[0]),f[1]]}):[],_e(function(f){for(var b=-1;++b<u;){var H=o[b];if(ot(H[0],this,f))return ot(H[1],this,f)}})}function WB(o){return p4(vt(o,k))}function M0(o){return function(){return o}}function AB(o,u){return o==null||o!==o?u:o}var EB=Im(),zB=Im(!0);function Vi(o){return o}function J0(o){return Bm(typeof o=="function"?o:vt(o,k))}function OB(o){return Jm(vt(o,k))}function IB(o,u){return Tm(o,vt(u,k))}var $B=_e(function(o,u){return function(h){return zu(h,o,u)}}),VB=_e(function(o,u){return function(h){return zu(o,h,u)}});function T0(o,u,h){var f=wi(u),b=lh(u,f);h==null&&!(Qn(u)&&(b.length||!f.length))&&(h=u,u=o,o=this,b=lh(u,wi(u)));var H=!(Qn(h)&&"chain"in h)||!!h.chain,Q=Ja(o);return Mt(b,function(E){var $=u[E];o[E]=$,Q&&(o.prototype[E]=function(){var ie=this.__chain__;if(H||ie){var te=o(this.__wrapped__),ae=te.__actions__=Oi(this.__actions__);return ae.push({func:$,args:arguments,thisArg:o}),te.__chain__=ie,te}return $.apply(o,Ia([this.value()],arguments))})}),o}function UB(){return Li._===this&&(Li._=LS),this}function v0(){}function qB(o){return o=Fe(o),_e(function(u){return vm(u,o)})}var e7=r0(xn),n7=r0($y),i7=r0(Yd);function z2(o){return d0(o)?xd(sa(o)):x4(o)}function t7(o){return function(u){return o==null?i:Ho(o,u)}}var a7=Vm(),o7=Vm(!0);function Z0(){return[]}function Y0(){return!1}function r7(){return{}}function u7(){return""}function s7(){return!0}function l7(o,u){if(o=Fe(o),o<1||o>M)return[];var h=P,f=Yi(o,P);u=Ge(u),o-=P;for(var b=Pd(f,u);++h<o;)u(h);return b}function h7(o){return De(o)?xn(o,sa):st(o)?[o]:Oi(d2(dn(o)))}function c7(o){var u=++SS;return dn(o)+u}var g7=ph(function(o,u){return o+u},0),d7=u0("ceil"),f7=ph(function(o,u){return o/u},1),p7=u0("floor");function y7(o){return o&&o.length?sh(o,Vi,Ed):i}function m7(o,u){return o&&o.length?sh(o,Ge(u,2),Ed):i}function k7(o){return qy(o,Vi)}function w7(o,u){return qy(o,Ge(u,2))}function C7(o){return o&&o.length?sh(o,Vi,$d):i}function b7(o,u){return o&&o.length?sh(o,Ge(u,2),$d):i}var S7=ph(function(o,u){return o*u},1),G7=u0("round"),L7=ph(function(o,u){return o-u},0);function B7(o){return o&&o.length?Dd(o,Vi):0}function M7(o,u){return o&&o.length?Dd(o,Ge(u,2)):0}return T.after=OG,T.ary=L2,T.assign=PL,T.assignIn=F2,T.assignInWith=Th,T.assignWith=NL,T.at=XL,T.before=B2,T.bind=w0,T.bindAll=_B,T.bindKey=M2,T.castArray=rL,T.chain=b2,T.chunk=p3,T.compact=y3,T.con
dozmarbinwansamlitsighidfidlissogdirwacsabwissibrigsoldopmodfoglidhopdardorlorhodfolrintogsilmirholpaslacrovlivdalsatlibtabhanticpidtorbolfosdotlosdilforpilramtirwintadbicdifrocwidbisdasmidloprilnardapmolsanlocnovsitnidtipsicropwitnatpanminritpodmottamtolsavposnapnopsomfinfonbanmorworsipronnorbotwicsocwatdolmagpicdavbidbaltimtasmalligsivtagpadsaldivdactansidfabtarmonranniswolmispallasdismaprabtobrollatlonnodnavfignomnibpagsopralbilhaddocridmocpacravripfaltodtiltinhapmicfanpattaclabmogsimsonpinlomrictapfirhasbosbatpochactidhavsaplindibhosdabbitbarracparloddosbortochilmactomdigfilfasmithobharmighinradmashalraglagfadtopmophabnilnosmilfopfamdatnoldinhatnacrisfotribhocnimlarfitwalrapsarnalmoslandondanladdovrivbacpollaptalpitnambonrostonfodponsovnocsorlavmatmipfip`,iT=`
zodnecbudwessevpersutletfulpensytdurwepserwylsunrypsyxdyrnuphebpeglupdepdysputlughecryttyvsydnexlunmeplutseppesdelsulpedtemledtulmetwenbynhexfebpyldulhetmevruttylwydtepbesdexsefwycburderneppurrysrebdennutsubpetrulsynregtydsupsemwynrecmegnetsecmulnymtevwebsummutnyxrextebfushepbenmuswyxsymselrucdecwexsyrwetdylmynmesdetbetbeltuxtugmyrpelsyptermebsetdutdegtexsurfeltudnuxruxrenwytnubmedlytdusnebrumtynseglyxpunresredfunrevrefmectedrusbexlebduxrynnumpyxrygryxfeptyrtustyclegnemfermertenlusnussyltecmexpubrymtucfyllepdebbermughuttunbylsudpemdevlurdefbusbeprunmelpexdytbyttyplevmylwedducfurfexnulluclennerlexrupnedlecrydlydfenwelnydhusrelrudneshesfetdesretdunlernyrsebhulrylludremlysfynwerrycsugnysnyllyndyndemluxfedsedbecmunlyrtesmudnytbyrsenwegfyrmurtelreptegpecnelnevfes`,t5=e=>e.replace(/[\^~-]/g,"").match(/.{1,3}/g)||[],P1=nT.match(/.{1,3}/g),Oc=iT.match(/.{1,3}/g),Ic=e=>eT.pow(e),yp=(e,n,i)=>i.div(Ic(Ic(e).mul(n))),mp=(e,n,i=Ps)=>n.eq(Ps)?i:mp(e,yp(e,uo,n),i.add(uo)),hk=(e,n,i)=>i.mod(Ic(Ic(e).mul(n))),tT=e=>{if(a5(e)===!1)throw new Error("patp2hex: not a valid @p");const n=t5(e),i=s=>s.toString(2).padStart(8,"0"),t=n.reduce((s,l,c)=>c%2!==0||n.length===1?s+i(Oc.indexOf(l)):s+i(P1.indexOf(l)),""),a=new Pn.BN(t,2),r=i5.fynd(a).toString("hex");return r.length%2!==0?r.padStart(r.length+1,"0"):r},aT=e=>new Pn.BN(tT(e),"hex"),oT=e=>{let n;try{n=aT(e)}catch{throw new Error("patp2dec: not a valid @p")}return n.toString()},a5=e=>{if(typeof e!="string")throw new Error("isValidPat: non-string input");if(e.slice(0,1)==="~"===!1||e.length<4)return!1;{const i=t5(e),t=i.length%2!==0&&i.length!==1,a=i.reduce((r,s,l)=>r&&(l%2!==0||i.length===1?Oc.includes(s):P1.includes(s)),!0);return!t&&a}},N1=e=>a5(e)&&e===rT(oT(e)),rT=e=>{if(e===null)throw new Error("patp: null input");const n=new Pn.BN(e),i=i5.fein(n),t=mp(zh,i),a=(s,l,c)=>{const d=hk(zh,uo,s),p=P1[yp(rf,uo,d).toNumber()],k=Oc[hk(rf,uo,d).toNumber()],w=l.mod(zh).eq(Ps)?l.eq(Ps)?"":"--":"-",L=p+k+w+c;return l.eq(t)?c:a(yp(zh,uo,s),l.add(uo),L)};return"~"+(mp(rf,i).lte(uo)?Oc[i.toNumber()]:a(i,Ps,""))};function uT(e){switch(e){case 0:return` ! c L $ Y | S " (C) a << ! (R) - deg +- 2 3 ' u P - , 1 o >> 1/4 1/2 3/4 ? A A A A A A Ae C E E E E I I I I D N O O O O O * O U U U U Y Th ss a a a a a a ae c e e e e i i i i d n o o o o o / o u u u u y th y`;case 1:return"A a A a A a C c C c C c C c D d D d E e E e E e E e E e G g G g G g G g H h H h I i I i I i I i I i IJ ij J j K k q L l L l L l L l L l N n N n N n 'n Ng ng O o O o O o Oe oe R r R r R r S s S s S s S s T t T t T t U u U u U u U u U u U u W w Y y Y Z z Z z Z z s b B B b 6 6 O C c D D D d z E E E F f G G hw I I K k l l W N n O O o Gh gh P p R 2 2 Sh sh t T t T U u U V Y y Z z Zh ` ` zh dz 5 5 ts w c x qc q DZ Dz dz LJ Lj lj NJ Nj nj A a I i O o U u U u U u U u U u e A a A a Ae ae G g G g K k O o O o Zh zh j DZ Dz dz G g Hw W N n A a Ae ae O o";case 2:return"A a A a E e E e I i I i O o O o R r R r U u U u S s T t Y y H h N d Ou ou Z z A a E e O o O o O o O o Y y l n t j db qp A C c L T s z ' ' B U A E e J j Q q R r Y y a a a b o c d d e e er e e er o j g g g g u y h h i i i l l l lzh w w m n n n o oe u f r r r r r r i r r s sh j i sh t t u u v a w y y z z zh zh ' ` x q pc b oe g h j k l q ' ` dz dzh dz ts tsh tc fng ls lz ww ]] y y h h j r r r r w y ' '' ` ' ` ' ` ' ` < > ^ v ^ ^ ' - ' ` , _ ` ' : - ' ` + + + - ^ . . , ~ \" r x g l s x ` 5 4 3 2 1 3 7 _ = '' v ^ < > . ` `` '' ~ : ' ' , , _ _ <";case 3:return` a e i o u c d h m r t v x H h S s ' , W w i s s. s. ; J ' "' A ; E I I O Y O i A V G D E Z I Th I K L M N X O P R S T Y F Ch Ps O I Y a e i i y a v g d e z i th i k l m n x o p r s s t y f ch ps o i y o y o & b th Y Y Y ph p & Q q St st W w Q q S s Sh sh F f X x H h J j C c Ti ti k r s j Th e e Sh sh S S s r. S S. S.`;case 4:return"E E Dj G Ie Dz I I J Lj Nj C K I U Dzh
* 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 Si=typeof Symbol=="function"&&Symbol.for,Q1=Si?Symbol.for("react.element"):60103,_1=Si?Symbol.for("react.portal"):60106,Pg=Si?Symbol.for("react.fragment"):60107,Ng=Si?Symbol.for("react.strict_mode"):60108,Xg=Si?Symbol.for("react.profiler"):60114,Fg=Si?Symbol.for("react.provider"):60109,Kg=Si?Symbol.for("react.context"):60110,R1=Si?Symbol.for("react.async_mode"):60111,jg=Si?Symbol.for("react.concurrent_mode"):60111,Qg=Si?Symbol.for("react.forward_ref"):60112,_g=Si?Symbol.for("react.suspense"):60113,ev=Si?Symbol.for("react.suspense_list"):60120,Rg=Si?Symbol.for("react.memo"):60115,Wg=Si?Symbol.for("react.lazy"):60116,nv=Si?Symbol.for("react.block"):60121,iv=Si?Symbol.for("react.fundamental"):60117,tv=Si?Symbol.for("react.responder"):60118,av=Si?Symbol.for("react.scope"):60119;function Lt(e){if(typeof e=="object"&&e!==null){var n=e.$$typeof;switch(n){case Q1:switch(e=e.type,e){case R1:case jg:case Pg:case Xg:case Ng:case _g:return e;default:switch(e=e&&e.$$typeof,e){case Kg:case Qg:case Wg:case Rg:case Fg:return e;default:return n}}case _1:return n}}}function f5(e){return Lt(e)===jg}yn.AsyncMode=R1;yn.ConcurrentMode=jg;yn.ContextConsumer=Kg;yn.ContextProvider=Fg;yn.Element=Q1;yn.ForwardRef=Qg;yn.Fragment=Pg;yn.Lazy=Wg;yn.Memo=Rg;yn.Portal=_1;yn.Profiler=Xg;yn.StrictMode=Ng;yn.Suspense=_g;yn.isAsyncMode=function(e){return f5(e)||Lt(e)===R1};yn.isConcurrentMode=f5;yn.isContextConsumer=function(e){return Lt(e)===Kg};yn.isContextProvider=function(e){return Lt(e)===Fg};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Q1};yn.isForwardRef=function(e){return Lt(e)===Qg};yn.isFragment=function(e){return Lt(e)===Pg};yn.isLazy=function(e){return Lt(e)===Wg};yn.isMemo=function(e){return Lt(e)===Rg};yn.isPortal=function(e){return Lt(e)===_1};yn.isProfiler=function(e){return Lt(e)===Xg};yn.isStrictMode=function(e){return Lt(e)===Ng};yn.isSuspense=function(e){return Lt(e)===_g};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pg||e===jg||e===Xg||e===Ng||e===_g||e===ev||typeof e=="object"&&e!==null&&(e.$$typeof===Wg||e.$$typeof===Rg||e.$$typeof===Fg||e.$$typeof===Kg||e.$$typeof===Qg||e.$$typeof===iv||e.$$typeof===tv||e.$$typeof===av||e.$$typeof===nv)};yn.typeOf=Lt;d5.exports=yn;var ov=d5.exports,p5=ov,rv={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},y5={};y5[p5.ForwardRef]=rv;y5[p5.Memo]=uv;var sv=!0;function lv(e,n,i){var t="";return i.split(" ").forEach(function(a){e[a]!==void 0?n.push(e[a]+";"):t+=a+" "}),t}var m5=function(n,i,t){var a=n.key+"-"+i.name;(t===!1||sv===!1)&&n.registered[a]===void 0&&(n.registered[a]=i.styles)},k5=function(n,i,t){m5(n,i,t);var a=n.key+"-"+i.name;if(n.inserted[i.name]===void 0){var r=i;do n.insert(i===r?"."+a:"",r,n.sheet,!0),r=r.next;while(r!==void 0)}};function hv(e){for(var n=0,i,t=0,a=e.length;a>=4;++t,a-=4)i=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,n=(i&65535)*1540483477+((i>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(a){case 3:n^=(e.charCodeAt(t+2)&255)<<16;case 2:n^=(e.charCodeAt(t+1)&255)<<8;case 1:n^=e.charCodeAt(t)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var cv={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
* @mui/styled-engine v6.1.1
*
* @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 G5(e,n){return Cp(e,n)}const Tv=(e,n)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=n(e.__emotion_styles))};function ya(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function L5(e){if(!ya(e))return e;const n={};return Object.keys(e).forEach(i=>{n[i]=L5(e[i])}),n}function Xi(e,n,i={clone:!0}){const t=i.clone?{...e}:e;return ya(e)&&ya(n)&&Object.keys(n).forEach(a=>{ya(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ya(e[a])?t[a]=Xi(e[a],n[a],i):i.clone?t[a]=ya(n[a])?L5(n[a]):n[a]:t[a]=n[a]}),t}const vv=e=>{const n=Object.keys(e).map(i=>({key:i,val:e[i]}))||[];return n.sort((i,t)=>i.val-t.val),n.reduce((i,t)=>({...i,[t.key]:t.val}),{})};function Zv(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:t=5,...a}=e,r=vv(n),s=Object.keys(r);function l(w){return`@media (min-width:${typeof n[w]=="number"?n[w]:w}${i})`}function c(w){return`@media (max-width:${(typeof n[w]=="number"?n[w]:w)-t/100}${i})`}function d(w,L){const C=s.indexOf(L);return`@media (min-width:${typeof n[w]=="number"?n[w]:w}${i}) and (max-width:${(C!==-1&&typeof n[s[C]]=="number"?n[s[C]]:L)-t/100}${i})`}function p(w){return s.indexOf(w)+1<s.length?d(w,s[s.indexOf(w)+1]):l(w)}function k(w){const L=s.indexOf(w);return L===0?l(s[1]):L===s.length-1?c(s[L]):d(w,s[s.indexOf(w)+1]).replace("@media","@media not all and")}return{keys:s,values:r,up:l,down:c,between:d,only:p,not:k,unit:i,...a}}function Yv(e,n){if(!e.containerQueries)return n;const i=Object.keys(n).filter(t=>t.startsWith("@container")).sort((t,a)=>{var s,l;const r=/min-width:\s*([0-9.]+)/;return+(((s=t.match(r))==null?void 0:s[1])||0)-+(((l=a.match(r))==null?void 0:l[1])||0)});return i.length?i.reduce((t,a)=>{const r=n[a];return delete t[a],t[a]=r,t},{...n}):n}function xv(e,n){return n==="@"||n.startsWith("@")&&(e.some(i=>n.startsWith(`@${i}`))||!!n.match(/^@\d/))}function Hv(e,n){const i=n.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,t,a]=i,r=Number.isNaN(+t)?t||0:+t;return e.containerQueries(a).up(r)}function Dv(e){const n=(r,s)=>r.replace("@media",s?`@container ${s}`:"@container");function i(r,s){r.up=(...l)=>n(e.breakpoints.up(...l),s),r.down=(...l)=>n(e.breakpoints.down(...l),s),r.between=(...l)=>n(e.breakpoints.between(...l),s),r.only=(...l)=>n(e.breakpoints.only(...l),s),r.not=(...l)=>{const c=n(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const t={},a=r=>(i(t,r),t);return i(a),{...e,containerQueries:a}}const Pv={borderRadius:4};function Ns(e,n){return n?Xi(e,n,{clone:!1}):e}const Ag={xs:0,sm:600,md:900,lg:1200,xl:1536},Gk={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ag[e]}px)`},Nv={containerQueries:e=>({up:n=>{let i=typeof n=="number"?n:Ag[n]||n;return typeof i=="number"&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function _a(e,n,i){const t=e.theme||{};if(Array.isArray(n)){const r=t.breakpoints||Gk;return n.reduce((s,l,c)=>(s[r.up(r.keys[c])]=i(n[c]),s),{})}if(typeof n=="object"){const r=t.breakpoints||Gk;return Object.keys(n).reduce((s,l)=>{if(xv(r.keys,l)){const c=Hv(t.containerQueries?t:Nv,l);c&&(s[c]=i(n[l],l))}else if(Object.keys(r.values||Ag).includes(l)){const c=r.up(l);s[c]=i(n[l],l)}else{const c=l;s[c]=n[c]}return s},{})}return i(n)}function Xv(e={}){var i;return((i=e.keys)==null?void 0:i.reduce((t,a)=>{const r=e.up(a);return t[r]={},t},{}))||{}}function Fv(e,n){return e.reduce((i,t)=>{const a=i[t];return(!a||Object.keys(a).length===0)&&delete i[t],i},n)}function ve(e){if(typeof e!="string")throw new Error(Qa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function du(e,n,i=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&i){const t=`vars.${n}`.split(".").reduce((a,r)=>a&&a[r]?a[r]:null,e);if(t!=null)return t}return n.split(".").reduce((t,a)=>t&&t[a]!=null?t[a]:null,e)}function Uc(e,n,i,t=i){let
* @license React
* 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 U1=Symbol.for("react.element"),q1=Symbol.for("react.portal"),Vg=Symbol.for("react.fragment"),Ug=Symbol.for("react.strict_mode"),qg=Symbol.for("react.profiler"),ed=Symbol.for("react.provider"),nd=Symbol.for("react.context"),HZ=Symbol.for("react.server_context"),id=Symbol.for("react.forward_ref"),td=Symbol.for("react.suspense"),ad=Symbol.for("react.suspense_list"),od=Symbol.for("react.memo"),rd=Symbol.for("react.lazy"),DZ=Symbol.for("react.offscreen"),v5;v5=Symbol.for("react.module.reference");function Et(e){if(typeof e=="object"&&e!==null){var n=e.$$typeof;switch(n){case U1:switch(e=e.type,e){case Vg:case qg:case Ug:case td:case ad:return e;default:switch(e=e&&e.$$typeof,e){case HZ:case nd:case id:case rd:case od:case ed:return e;default:return n}}case q1:return n}}}kn.ContextConsumer=nd;kn.ContextProvider=ed;kn.Element=U1;kn.ForwardRef=id;kn.Fragment=Vg;kn.Lazy=rd;kn.Memo=od;kn.Portal=q1;kn.Profiler=qg;kn.StrictMode=Ug;kn.Suspense=td;kn.SuspenseList=ad;kn.isAsyncMode=function(){return!1};kn.isConcurrentMode=function(){return!1};kn.isContextConsumer=function(e){return Et(e)===nd};kn.isContextProvider=function(e){return Et(e)===ed};kn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===U1};kn.isForwardRef=function(e){return Et(e)===id};kn.isFragment=function(e){return Et(e)===Vg};kn.isLazy=function(e){return Et(e)===rd};kn.isMemo=function(e){return Et(e)===od};kn.isPortal=function(e){return Et(e)===q1};kn.isProfiler=function(e){return Et(e)===qg};kn.isStrictMode=function(e){return Et(e)===Ug};kn.isSuspense=function(e){return Et(e)===td};kn.isSuspenseList=function(e){return Et(e)===ad};kn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vg||e===qg||e===Ug||e===td||e===ad||e===DZ||typeof e=="object"&&e!==null&&(e.$$typeof===rd||e.$$typeof===od||e.$$typeof===ed||e.$$typeof===nd||e.$$typeof===id||e.$$typeof===v5||e.getModuleId!==void 0)};kn.typeOf=Et;const PZ=Ml();function lf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function bp(e,n,i){return XZ(n)?i:n[e]||n}const $h=Symbol("mui.processed_props");function Vh(e,n,i){if($h in e)return e[$h];const t={...e,theme:bp(n,e.theme,i)};return e[$h]=t,t[$h]=t,t}function NZ(e){return e?(n,i)=>i[e]:null}function wc(e,n){var t;const i=typeof e=="function"?e(n):e;if(Array.isArray(i))return i.flatMap(a=>wc(a,n));if(Array.isArray(i==null?void 0:i.variants)){const{variants:a,...r}=i;let s=r,l;e:for(let c=0;c<a.length;c+=1){const d=a[c];if(typeof d.props=="function"){if(l??(l={...n,...n.ownerState,ownerState:n.ownerState}),!d.props(l))continue}else for(const p in d.props)if(n[p]!==d.props[p]&&((t=n.ownerState)==null?void 0:t[p])!==d.props[p])continue e;Array.isArray(s)||(s=[s]),typeof d.style=="function"?(l??(l={...n,...n.ownerState,ownerState:n.ownerState}),s.push(d.style(l))):s.push(d.style)}return s}return i}function Z5(e={}){const{themeId:n,defaultTheme:i=PZ,rootShouldForwardProp:t=lf,slotShouldForwardProp:a=lf}=e,r=l=>wu(Vh(l,n,i));return r.__mui_systemSx=!0,(l,c={})=>{Tv(l,_=>_.filter(W=>!(W!=null&&W.__mui_systemSx)));const{name:d,slot:p,skipVariantsResolver:k,skipSx:w,overridesResolver:L=NZ(KZ(p)),...C}=c,Z=k!==void 0?k:p&&p!=="Root"&&p!=="root"||!1,K=w||!1;let S,J=lf;p==="Root"||p==="root"?J=t:p?J=a:FZ(l)&&(J=void 0);const G=G5(l,{shouldForwardProp:J,label:S,...C}),N=_=>typeof _=="function"&&_.__emotion_real!==_||ya(_)?W=>wc(_,Vh(W,n,i)):_,A=(_,...W)=>{let I=N(_);const Y=W?W.map(N):[];d&&L&&Y.push(q=>{const D=bp(n,q.theme,i);if(!D.components||!D.components[d]||!D.components[d].styleOverrides)return null;const g=D.components[d].styleOverrides,m={},B=Vh(q,n,i);for(const x in g)m[x]=wc(g[x],B);return L(q,m)}),d&&!Z&&Y.push(q=>{var m,B;const D=bp(n,q.theme,i),g=(B=(m=D==null?void 0:D.components)==null?void 0:m[d])==null?void 0:B.variants;return g?wc({variants:g},Vh(q,n,i)):null}),K||Y.push(r);const O=Y.length-W.length;if(Array.isArray(_)&&O>0){const q=new Array(O).fill("");I=[..._,...q],I.raw=[..._.raw,...q]}const V=G(I,...Y);return l.muiName&&(V.muiName=l.muiName),V};return G.withConfig&&(A.withConfig=G.withConf
const theme = ${JSON.stringify(n,null,2)};
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});
export default theme;`}function ex(e,n){n.forEach(i=>{e[i]||(e[i]={})})}function ee(e,n,i){!e[n]&&i&&(e[n]=i)}function Gs(e){return!e||!e.startsWith("hsl")?e:x5(e)}function Za(e,n){`${n}Channel`in e||(e[`${n}Channel`]=Ss(Gs(e[n]),`MUI: Can't create \`palette.${n}Channel\` because \`palette.${n}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
To suppress this warning, you need to explicitly provide the \`palette.${n}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function nx(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ha=e=>{try{return e()}catch{}},ix=(e="mui")=>iY(e);function gf(e,n,i,t){if(!n)return;n=n===!0?{}:n;const a=t==="dark"?"dark":"light";if(!i){e[t]=OY({...n,palette:{mode:a,...n==null?void 0:n.palette}});return}const{palette:r,...s}=Lp({...i,palette:{mode:a,...n==null?void 0:n.palette}});return e[t]={...n,palette:r,opacity:{..._5(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||R5(a)},s}function tx(e={},...n){const{colorSchemes:i={light:!0},defaultColorScheme:t,disableCssColorScheme:a=!1,cssVarPrefix:r="mui",shouldSkipGeneratingVar:s=IY,colorSchemeSelector:l=i.light&&i.dark?"media":void 0,...c}=e,d=Object.keys(i)[0],p=t||(i.light&&d!=="light"?"light":d),k=ix(r),{[p]:w,light:L,dark:C,...Z}=i,K={...Z};let S=w;if((p==="dark"&&!("dark"in i)||p==="light"&&!("light"in i))&&(S=!0),!S)throw new Error(Qa(21,p));const J=gf(K,S,c,p);L&&!K.light&&gf(K,L,void 0,"light"),C&&!K.dark&&gf(K,C,void 0,"dark");let G={defaultColorScheme:p,...J,cssVarPrefix:r,colorSchemeSelector:l,getCssVar:k,colorSchemes:K,font:{...DY(J.typography),...J.font},spacing:nx(c.spacing)};Object.keys(G.colorSchemes).forEach(I=>{const Y=G.colorSchemes[I].palette,O=V=>{const q=V.split("-"),D=q[1],g=q[2];return k(V,Y[D][g])};if(Y.mode==="light"&&(ee(Y.common,"background","#fff"),ee(Y.common,"onBackground","#000")),Y.mode==="dark"&&(ee(Y.common,"background","#000"),ee(Y.common,"onBackground","#fff")),ex(Y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),Y.mode==="light"){ee(Y.Alert,"errorColor",Cn(Y.error.light,.6)),ee(Y.Alert,"infoColor",Cn(Y.info.light,.6)),ee(Y.Alert,"successColor",Cn(Y.success.light,.6)),ee(Y.Alert,"warningColor",Cn(Y.warning.light,.6)),ee(Y.Alert,"errorFilledBg",O("palette-error-main")),ee(Y.Alert,"infoFilledBg",O("palette-info-main")),ee(Y.Alert,"successFilledBg",O("palette-success-main")),ee(Y.Alert,"warningFilledBg",O("palette-warning-main")),ee(Y.Alert,"errorFilledColor",ha(()=>Y.getContrastText(Y.error.main))),ee(Y.Alert,"infoFilledColor",ha(()=>Y.getContrastText(Y.info.main))),ee(Y.Alert,"successFilledColor",ha(()=>Y.getContrastText(Y.success.main))),ee(Y.Alert,"warningFilledColor",ha(()=>Y.getContrastText(Y.warning.main))),ee(Y.Alert,"errorStandardBg",bn(Y.error.light,.9)),ee(Y.Alert,"infoStandardBg",bn(Y.info.light,.9)),ee(Y.Alert,"successStandardBg",bn(Y.success.light,.9)),ee(Y.Alert,"warningStandardBg",bn(Y.warning.light,.9)),ee(Y.Alert,"errorIconColor",O("palette-error-main")),ee(Y.Alert,"infoIconColor",O("palette-info-main")),ee(Y.Alert,"successIconColor",O("palette-success-main")),ee(Y.Alert,"warningIconColor",O("palette-warning-main")),ee(Y.AppBar,"defaultBg",O("palette-grey-100")),ee(Y.Avatar,"defaultBg",O("palette-grey-400")),ee(Y.Button,"inheritContainedBg",O("palette-grey-300")),ee(Y.Button,"inheritContainedHoverBg",O("palette-grey-A100")),ee(Y.Chip,"defaultBorder",O("palette-grey-400")),ee(Y.Chip,"defaultAvatarColor",O("palette-grey-700")),ee(Y.Chip,"defaultIconColor",O("palette-grey-700")),ee(Y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(Y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(Y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(Y.LinearProgress,"primaryBg",bn(Y.primary.main,.62)),ee(Y.LinearProgress,"secondaryBg",bn(Y.secondary.main,.62)),ee(Y.LinearProgress,"errorBg",bn(Y.error.main,.62)),ee(Y.LinearProgress,"infoBg",bn(Y.info.main,.62)),ee(Y.LinearProgress,"successBg",bn(Y.success.main,.62)),ee(Y.LinearProgress,"warningBg",bn(Y.warning.main,.62)),ee(Y.Skeleton,"bg",`rgba(${O("palette-text-primaryChannel")} / 0.11)`),ee(Y.Slider,"primaryTrack",bn(Y.primary.main,.62)),ee(Y.Slider,"secondaryTrack",bn(Y.secondary.main,.62)),ee(Y.Slider,"errorTrack",
`)),jk=!0),e}const ld=W5();function hd(){const e=Jl(ld);return e[Cl]||e}function uy({props:e,name:n}){return ey({props:e,name:n,defaultTheme:ld,themeId:Cl})}function A5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oa=e=>A5(e)&&e!=="classes",ce=Z5({themeId:Cl,defaultTheme:ld,rootShouldForwardProp:oa});function ox(e){return v.jsx(TZ,{...e,defaultTheme:ld,themeId:Cl})}function rx(e){return function(i){return v.jsx(ox,{styles:typeof e=="function"?t=>e({theme:t,...i}):e})}}function ux(){return V1}const Qk={theme:void 0};function Sn(e){let n,i;return t=>{let a=n;return(a===void 0||t.theme!==i)&&(Qk.theme=t.theme,a=e(Qk),n=a,i=t.theme),a}}function an(e){return nY(e)}function sx(e){return Oe("MuiSvgIcon",e)}Ie("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lx=e=>{const{color:n,fontSize:i,classes:t}=e,a={root:["root",n!=="inherit"&&`color${ve(n)}`,`fontSize${ve(i)}`]};return Ve(a,sx,t)},hx=ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:i}=e;return[n.root,i.color!=="inherit"&&n[`color${ve(i.color)}`],n[`fontSize${ve(i.fontSize)}`]]}})(Sn(({theme:e})=>{var n,i,t,a,r,s,l,c,d,p,k,w,L,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(n=e.transitions)==null?void 0:n.create)==null?void 0:a.call(n,"fill",{duration:(t=(i=(e.vars??e).transitions)==null?void 0:i.duration)==null?void 0:t.shorter}),variants:[{props:Z=>!Z.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(r=e.typography)==null?void 0:r.pxToRem)==null?void 0:s.call(r,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((p=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,Z])=>Z&&Z.main).map(([Z])=>{var K,S;return{props:{color:Z},style:{color:(S=(K=(e.vars??e).palette)==null?void 0:K[Z])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(w=(k=(e.vars??e).palette)==null?void 0:k.action)==null?void 0:w.active}},{props:{color:"disabled"},style:{color:(C=(L=(e.vars??e).palette)==null?void 0:L.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),eg=X.forwardRef(function(n,i){const t=an({props:n,name:"MuiSvgIcon"}),{children:a,className:r,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:k,viewBox:w="0 0 24 24",...L}=t,C=X.isValidElement(a)&&a.type==="svg",Z={...t,color:s,component:l,fontSize:c,instanceFontSize:n.fontSize,inheritViewBox:p,viewBox:w,hasSvgAsChild:C},K={};p||(K.viewBox=w);const S=lx(Z);return v.jsxs(hx,{as:l,className:Je(S.root,r),focusable:"false",color:d,"aria-hidden":k?void 0:!0,role:k?"img":void 0,ref:i,...K,...L,...C&&a.props,ownerState:Z,children:[C?a.props.children:a,k?v.jsx("title",{children:k}):null]})});eg&&(eg.muiName="SvgIcon");function bu(e,n){function i(t,a){return v.jsx(eg,{"data-testid":`${n}Icon`,ref:a,...t,children:e})}return i.muiName=eg.muiName,X.memo(X.forwardRef(i))}function E5(e,n){if(e==null)return{};var i={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(n.includes(t))continue;i[t]=e[t]}return i}function Mp(e,n){return Mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,t){return i.__proto__=t,i},Mp(e,n)}function z5(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Mp(e,n)}const _k={disabled:!1},ng=na.createContext(null);var cx=function(n){return n.scrollTop},Ls="unmounted",jo="exited",Qo="entering",xr="entered",Jp="exiting",Ca=function(e){z5(n,e);function n(t,a){var r;r=e.call(this,t,a)||this;var s=a,l=s&&!s.isMounting?t.enter:t.appear,c;return r.appearStatus=null,t.in?l?(c=jo,r.appearStatus=Qo):c=xr:t.unmountOnExit||t.mountOnEnter?c=Ls:c=jo,r.state={status:c},r.nextCallback=null,
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`,Mx=Sl`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`,Jx=Sl`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`,Tx=ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),vx=ce(Gx,{name:"MuiTouchRipple",slot:"Ripple"})`
opacity: 0;
position: absolute;
&.${Ht.rippleVisible} {
opacity: 0.3;
transform: scale(1);
animation-name: ${Bx};
animation-duration: ${Tp}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
&.${Ht.ripplePulsate} {
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
}
& .${Ht.child} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${Ht.childLeaving} {
opacity: 0;
animation-name: ${Mx};
animation-duration: ${Tp}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
& .${Ht.childPulsate} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${Jx};
animation-duration: 2500ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`,Zx=X.forwardRef(function(n,i){const t=an({props:n,name:"MuiTouchRipple"}),{center:a=!1,classes:r={},className:s,...l}=t,[c,d]=X.useState([]),p=X.useRef(0),k=X.useRef(null);X.useEffect(()=>{k.current&&(k.current(),k.current=null)},[c]);const w=X.useRef(!1),L=N5(),C=X.useRef(null),Z=X.useRef(null),K=X.useCallback(N=>{const{pulsate:A,rippleX:_,rippleY:W,rippleSize:I,cb:Y}=N;d(O=>[...O,v.jsx(vx,{classes:{ripple:Je(r.ripple,Ht.ripple),rippleVisible:Je(r.rippleVisible,Ht.rippleVisible),ripplePulsate:Je(r.ripplePulsate,Ht.ripplePulsate),child:Je(r.child,Ht.child),childLeaving:Je(r.childLeaving,Ht.childLeaving),childPulsate:Je(r.childPulsate,Ht.childPulsate)},timeout:Tp,pulsate:A,rippleX:_,rippleY:W,rippleSize:I},p.current)]),p.current+=1,k.current=Y},[r]),S=X.useCallback((N={},A={},_=()=>{})=>{const{pulsate:W=!1,center:I=a||A.pulsate,fakeElement:Y=!1}=A;if((N==null?void 0:N.type)==="mousedown"&&w.current){w.current=!1;return}(N==null?void 0:N.type)==="touchstart"&&(w.current=!0);const O=Y?null:Z.current,V=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let q,D,g;if(I||N===void 0||N.clientX===0&&N.clientY===0||!N.clientX&&!N.touches)q=Math.round(V.width/2),D=Math.round(V.height/2);else{const{clientX:m,clientY:B}=N.touches&&N.touches.length>0?N.touches[0]:N;q=Math.round(m-V.left),D=Math.round(B-V.top)}if(I)g=Math.sqrt((2*V.width**2+V.height**2)/3),g%2===0&&(g+=1);else{const m=Math.max(Math.abs((O?O.clientWidth:0)-q),q)*2+2,B=Math.max(Math.abs((O?O.clientHeight:0)-D),D)*2+2;g=Math.sqrt(m**2+B**2)}N!=null&&N.touches?C.current===null&&(C.current=()=>{K({pulsate:W,rippleX:q,rippleY:D,rippleSize:g,cb:_})},L.start(Lx,()=>{C.current&&(C.current(),C.current=null)})):K({pulsate:W,rippleX:q,rippleY:D,rippleSize:g,cb:_})},[a,K,L]),J=X.useCallback(()=>{S({},{pulsate:!0})},[S]),G=X.useCallback((N,A)=>{if(L.clear(),(N==null?void 0:N.type)==="touchend"&&C.current){C.current(),C.current=null,L.start(0,()=>{G(N,A)});return}C.current=null,d(_=>_.length>0?_.slice(1):_),k.current=A},[L]);return X.useImperativeHandle(i,()=>({pulsate:J,start:S,stop:G}),[J,S,G]),v.jsx(Tx,{className:Je(Ht.root,r.root,s),ref:Z,...l,children:v.jsx(ly,{component:null,exit:!0,children:c})})});function Yx(e){return Oe("MuiButtonBase",e)}const xx=Ie("MuiButtonBase",["root","disabled","focusVisible"]),Hx=e=>{const{disabled:n,focusVisible:i,focusVisibleClassName:t,classes:a}=e,s=Ve({root:["root",n&&"disabled",i&&"focusVisible"]},Yx,a);return i&&t&&(s.root+=` ${t}`),s},Dx=ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,n)=>n.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"},[`&.${xx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Px=X.forwardRef(function(n,i){const t=an({props:n,name:"MuiButtonBase"}),{action:a,centerRipple:r=!1,children:s,className:l,component:c="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:k=!1,focusRipple:w=!1,focusVisibleClassName:L,LinkComponent:C="a",onBlur:Z,onClick:K,onContextMenu:S,onDragLeave:J,onFocus:G,onFocusVisible:N,onKeyDown:A,onKeyUp:_,onMouseDown:W,onMouseLeave:I,onMouseUp:Y,onTouchEnd:O,onTouchMove:V,onTouchStart:q,tabIndex:D=0,TouchRippleProps:g,touchRippleRef:m,type:B,...x}=t,M=X.useRef(null),j=bx(),R=Zi(j.ref,m),[P,y]=X.useState(!1);d&&P&&y(!1),X.useImperativeHandle(a,()=>({focusVisible:()=>{y(!0),M.current.focus()}}),[]);const F=j.shouldMount&&!p&&!d;X.useEffect(()=>{P&&w&&!p&&j.pulsate()},[p,w,P,j]);function re(se,Ke,zi=k){return Ar(tn=>(Ke&&Ke(tn),zi||j[se](tn),!0))}const ue=re("start",W),le=re("stop",S),Qe=re("stop",J),Ze=re("stop",Y),Se=re("stop",se=>{P&&se.preventDefault(),I&&I(se)}),Ne=re("start",q),ke=re("stop",O),pe=re("stop",V),Nn=re("stop",se=>{qc(se.target)||y(!1),Z&&Z(se)}
`&&(N.value+=" ");const A=G.boxSizing,_=ec(G.paddingBottom)+ec(G.paddingTop),W=ec(G.borderBottomWidth)+ec(G.borderTopWidth),I=N.scrollHeight;N.value="x";const Y=N.scrollHeight;let O=I;r&&(O=Math.max(Number(r)*Y,O)),a&&(O=Math.min(Number(a)*Y,O)),O=Math.max(O,Y);const V=O+(A==="border-box"?_+W:0),q=Math.abs(O-I)<=1;return{outerHeightStyle:V,overflowing:q}},[a,r,n.placeholder]),Z=X.useCallback(()=>{const S=C();if($x(S))return;const J=S.outerHeightStyle,G=p.current;w.current!==J&&(w.current=J,G.style.height=`${J}px`),G.style.overflow=S.overflowing?"hidden":""},[C]);qo(()=>{const S=()=>{Z()};let J;const G=H5(S),N=p.current,A=er(N);A.addEventListener("resize",G);let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(S),_.observe(N)),()=>{G.clear(),cancelAnimationFrame(J),A.removeEventListener("resize",G),_&&_.disconnect()}},[C,Z]),qo(()=>{Z()});const K=S=>{d||Z(),t&&t(S)};return v.jsxs(X.Fragment,{children:[v.jsx("textarea",{value:l,onChange:K,ref:k,rows:r,style:s,...c}),v.jsx("textarea",{"aria-hidden":!0,className:n.className,readOnly:!0,ref:L,tabIndex:-1,style:{...Ix.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function cl(e){return typeof e=="string"}function Su({props:e,states:n,muiFormControl:i}){return n.reduce((t,a)=>(t[a]=e[a],i&&typeof e[a]>"u"&&(t[a]=i[a]),t),{})}const cy=X.createContext(void 0);function Gu(){return X.useContext(cy)}function Ek(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ag(e,n=!1){return e&&(Ek(e.value)&&e.value!==""||n&&Ek(e.defaultValue)&&e.defaultValue!=="")}function Ux(e){return e.startAdornment}function qx(e){return Oe("MuiInputBase",e)}const fu=Ie("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var zk;const cd=(e,n)=>{const{ownerState:i}=e;return[n.root,i.formControl&&n.formControl,i.startAdornment&&n.adornedStart,i.endAdornment&&n.adornedEnd,i.error&&n.error,i.size==="small"&&n.sizeSmall,i.multiline&&n.multiline,i.color&&n[`color${ve(i.color)}`],i.fullWidth&&n.fullWidth,i.hiddenLabel&&n.hiddenLabel]},gd=(e,n)=>{const{ownerState:i}=e;return[n.input,i.size==="small"&&n.inputSizeSmall,i.multiline&&n.inputMultiline,i.type==="search"&&n.inputTypeSearch,i.startAdornment&&n.inputAdornedStart,i.endAdornment&&n.inputAdornedEnd,i.hiddenLabel&&n.inputHiddenLabel]},eH=e=>{const{classes:n,color:i,disabled:t,error:a,endAdornment:r,focused:s,formControl:l,fullWidth:c,hiddenLabel:d,multiline:p,readOnly:k,size:w,startAdornment:L,type:C}=e,Z={root:["root",`color${ve(i)}`,t&&"disabled",a&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",w&&w!=="medium"&&`size${ve(w)}`,p&&"multiline",L&&"adornedStart",r&&"adornedEnd",d&&"hiddenLabel",k&&"readOnly"],input:["input",t&&"disabled",C==="search"&&"inputTypeSearch",p&&"inputMultiline",w==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",L&&"inputAdornedStart",r&&"inputAdornedEnd",k&&"readOnly"]};return Ve(Z,qx,n)},dd=ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cd})(Sn(({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",[`&.${fu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:n})=>n.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:n,size:i})=>n.multiline&&i==="small",style:{paddingTop:1}},{props:({ownerState:n})=>n.fullWidth,style:{width:"100%"}}]}))),fd=ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:gd})(Sn(({theme:e})=>{const n=e.palette.mode==="light",i={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},t={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return{font:"inherit",letterSpacing:
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`,Zp=Sl`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`,RH=typeof vp!="string"?E1`
animation: ${vp} 1.4s linear infinite;
`:null,WH=typeof Zp!="string"?E1`
animation: ${Zp} 1.4s ease-in-out infinite;
`:null,AH=e=>{const{classes:n,variant:i,color:t,disableShrink:a}=e,r={root:["root",i,`color${ve(t)}`],svg:["svg"],circle:["circle",`circle${ve(i)}`,a&&"circleDisableShrink"]};return Ve(r,_H,n)},EH=ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:i}=e;return[n.root,n[i.variant],n[`color${ve(i.color)}`]]}})(Sn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:RH||{animation:`${vp} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Aa()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}}))]}))),zH=ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,n)=>n.svg})({display:"block"}),OH=ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,n)=>{const{ownerState:i}=e;return[n.circle,n[`circle${ve(i.variant)}`],i.disableShrink&&n.circleDisableShrink]}})(Sn(({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:n})=>n.variant==="indeterminate"&&!n.disableShrink,style:WH||{animation:`${Zp} 1.4s ease-in-out infinite`}}]}))),pd=X.forwardRef(function(n,i){const t=an({props:n,name:"MuiCircularProgress"}),{className:a,color:r="primary",disableShrink:s=!1,size:l=40,style:c,thickness:d=3.6,value:p=0,variant:k="indeterminate",...w}=t,L={...t,color:r,disableShrink:s,size:l,thickness:d,value:p,variant:k},C=AH(L),Z={},K={},S={};if(k==="determinate"){const J=2*Math.PI*((ao-d)/2);Z.strokeDasharray=J.toFixed(3),S["aria-valuenow"]=Math.round(p),Z.strokeDashoffset=`${((100-p)/100*J).toFixed(3)}px`,K.transform="rotate(-90deg)"}return v.jsx(EH,{className:Je(C.root,a),style:{width:l,height:l,...K,...c},ownerState:L,ref:i,role:"progressbar",...S,...w,children:v.jsx(zH,{className:C.svg,ownerState:L,viewBox:`${ao/2} ${ao/2} ${ao} ${ao}`,children:v.jsx(OH,{className:C.circle,style:Z,ownerState:L,cx:ao,cy:ao,r:(ao-d)/2,fill:"none",strokeWidth:d})})})}),Jo=cY({createStyledComponent:ce("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:i}=e;return[n.root,n[`maxWidth${ve(String(i.maxWidth))}`],i.fixed&&n.fixed,i.disableGutters&&n.disableGutters]}}),useThemeProps:e=>uy({props:e,name:"MuiContainer"})});function IH(e){const n=wt(e);return n.body===e?er(e).innerWidth>n.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fs(e,n){n?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ik(e){return parseInt(er(e).getComputedStyle(e).paddingRight,10)||0}function $H(e){const i=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),t=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return i||t}function $k(e,n,i,t,a){const r=[n,i,...t];[].forEach.call(e.children,s=>{const l=!r.includes(s),c=!$H(s);l&&c&&Fs(s,a)})}function df(e,n){let i=-1;return e.some((t,a)=>n(t)?(i=a,!0):!1),i}function VH(e,n){const i=[],t=e.container;if(!n.disableScrollLock){if(IH(t)){const s=X5(wt(t));i.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ik(t)+s}px`;const l=wt(t).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{i.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Ik(c)+s}px`})}let r;if(t.parentNode instanceof DocumentFragment)r=wt(t).body;else{const s=t.parentElement,l=er(t);r=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:t}i.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{i.forEach(({value:r,el:s,property:l})=>{r?s.style.setProperty(l,r):s.style.removeProperty(l)})}}function UH(e){const n=[];return[].forEach.call(e.children,i=>{i.ge
--> `+s+`
`+c+` |
`+r.line+" | "+d+`
`+c+" | "+kf("",a.column-1," ")+kf("",k,"^")}else n+=`
at `+s}return n};kd.buildMessage=function(e,n){var i={literal:function(d){return'"'+a(d.text)+'"'},class:function(d){var p=d.parts.map(function(k){return Array.isArray(k)?r(k[0])+"-"+r(k[1]):r(k)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function t(d){return d.charCodeAt(0).toString(16).toUpperCase()}function a(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+t(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+t(p)})}function r(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+t(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+t(p)})}function s(d){return i[d.type](d)}function l(d){var p=d.map(s),k,w;if(p.sort(),p.length>0){for(k=1,w=1;k<p.length;k++)p[k-1]!==p[k]&&(p[w]=p[k],w++);p.length=w}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function c(d){return d?'"'+a(d)+'"':"end of input"}return"Expected "+l(e)+" but "+c(n)+" found."};var bN=function(e,n,i,t,a,r,s,l){if(!e){var c;if(n===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[i,t,a,r,s,l],p=0;c=new Error(n.replace(/%s/g,function(){return d[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},SN=bN;const wf=fg(SN);var GN={exports:{}};(function(e){(function(){function n(i,t){if(typeof t!="function")return i;var a={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[t(r,i[r])||r]=i[r]);return a}e.exports?e.exports=n:window.rename=n})()})(GN);var fb={exports:{}};(function(e){var n=Object.prototype.hasOwnProperty,i="~";function t(){}Object.create&&(t.prototype=Object.create(null),new t().__proto__||(i=!1));function a(s,l,c){this.fn=s,this.context=l,this.once=c||!1}function r(){this._events=new t,this._eventsCount=0}r.prototype.eventNames=function(){var l=[],c,d;if(this._eventsCount===0)return l;for(d in c=this._events)n.call(c,d)&&l.push(i?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},r.prototype.listeners=function(l,c){var d=i?i+l:l,p=this._events[d];if(c)return!!p;if(!p)return[];if(p.fn)return[p.fn];for(var k=0,w=p.length,L=new Array(w);k<w;k++)L[k]=p[k].fn;return L},r.prototype.emit=function(l,c,d,p,k,w){var L=i?i+l:l;if(!this._events[L])return!1;var C=this._events[L],Z=arguments.length,K,S;if(C.fn){switch(C.once&&this.removeListener(l,C.fn,void 0,!0),Z){case 1:return C.fn.call(C.context),!0;case 2:return C.fn.call(C.context,c),!0;case 3:return C.fn.call(C.context,c,d),!0;case 4:return C.fn.call(C.context,c,d,p),!0;case 5:return C.fn.call(C.context,c,d,p,k),!0;case 6:return C.fn.call(C.context,c,d,p,k,w),!0}for(S=1,K=new Array(Z-1);S<Z;S++)K[S-1]=arguments[S];C.fn.apply(C.context,K)}else{var J=C.length,G;for(S=0;S<J;S++)switch(C[S].once&&this.removeListener(l,C[S].fn,void 0,!0),Z){case 1:C[S].fn.call(C[S].context);break;case 2:C[S].fn.call(C[S].context,c);break;case 3:C[S].fn.call(C[S].context,c,d);break;case 4:C[S].fn.call(C[S].context,c,d,p);break;default:if(!K)for(G=1,K=new Array(Z-1);G<Z;G++)K[G-1]=arguments[G];C[S].fn.apply(C[S].context,K)}}return!0},r.prototype.on=function(l,c,d){var p=new a(c,d||this),k=i?i+l:l;return this._events[k]?this._events[k].fn?this._events[k]=[this._events[k],p]:this._events[k].push(p):(this._events[k]=p,this._eventsCount++),this},r.prototype.once=function(l,c,d){var p=new a(c,d||this,!0),k=i?i+l:l;return this._events[k]?this._events[k].fn?this._events[k]=[this._events[k],p]:this._events[k].push(p):(this._events[k]=p,this._eventsCount++),this},r.prototype.removeListener=function(l,c,d,p){var k=i?i+l:l;if(!this._events[k])
`).map(a=>{const r=a.match(/^\s+/);if(r===null)return a;const[s]=r;return s.length>=t.length?a.slice(t.length):a}).join(`
`)}class cg{constructor(n){be(this,"options");be(this,"rules");be(this,"lexer");this.options=n||ar}space(n){const i=this.rules.block.newline.exec(n);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(n){const i=this.rules.block.code.exec(n);if(i){const t=i[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?t:ps(t,`
`)}}}fences(n){const i=this.rules.block.fences.exec(n);if(i){const t=i[0],a=pE(t,i[3]||"");return{type:"code",raw:t,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:a}}}heading(n){const i=this.rules.block.heading.exec(n);if(i){let t=i[2].trim();if(/#$/.test(t)){const a=ps(t,"#");(this.options.pedantic||!a||/ $/.test(a))&&(t=a.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(n){const i=this.rules.block.hr.exec(n);if(i)return{type:"hr",raw:ps(i[0],`
`)}}blockquote(n){const i=this.rules.block.blockquote.exec(n);if(i){let t=ps(i[0],`
`).split(`
`),a="",r="";const s=[];for(;t.length>0;){let l=!1;const c=[];let d;for(d=0;d<t.length;d++)if(/^ {0,3}>/.test(t[d]))c.push(t[d]),l=!0;else if(!l)c.push(t[d]);else break;t=t.slice(d);const p=c.join(`
`),k=p.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");a=a?`${a}
${p}`:p,r=r?`${r}
${k}`:k;const w=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(k,s,!0),this.lexer.state.top=w,t.length===0)break;const L=s[s.length-1];if((L==null?void 0:L.type)==="code")break;if((L==null?void 0:L.type)==="blockquote"){const C=L,Z=C.raw+`
`+t.join(`
`),K=this.blockquote(Z);s[s.length-1]=K,a=a.substring(0,a.length-C.raw.length)+K.raw,r=r.substring(0,r.length-C.text.length)+K.text;break}else if((L==null?void 0:L.type)==="list"){const C=L,Z=C.raw+`
`+t.join(`
`),K=this.list(Z);s[s.length-1]=K,a=a.substring(0,a.length-L.raw.length)+K.raw,r=r.substring(0,r.length-C.raw.length)+K.raw,t=Z.substring(s[s.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:a,tokens:s,text:r}}}list(n){let i=this.rules.block.list.exec(n);if(i){let t=i[1].trim();const a=t.length>1,r={type:"list",raw:"",ordered:a,start:a?+t.slice(0,-1):"",loose:!1,items:[]};t=a?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=a?t:"[*+-]");const s=new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`);let l=!1;for(;n;){let c=!1,d="",p="";if(!(i=s.exec(n))||this.rules.block.hr.test(n))break;d=i[0],n=n.substring(d.length);let k=i[2].split(`
`,1)[0].replace(/^\t+/,S=>" ".repeat(3*S.length)),w=n.split(`
`,1)[0],L=!k.trim(),C=0;if(this.options.pedantic?(C=2,p=k.trimStart()):L?C=i[1].length+1:(C=i[2].search(/[^ ]/),C=C>4?1:C,p=k.slice(C),C+=i[1].length),L&&/^[ \t]*$/.test(w)&&(d+=w+`
`,n=n.substring(w.length+1),c=!0),!c){const S=new RegExp(`^ {0,${Math.min(3,C-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),J=new RegExp(`^ {0,${Math.min(3,C-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),G=new RegExp(`^ {0,${Math.min(3,C-1)}}(?:\`\`\`|~~~)`),N=new RegExp(`^ {0,${Math.min(3,C-1)}}#`),A=new RegExp(`^ {0,${Math.min(3,C-1)}}<[a-z].*>`,"i");for(;n;){const _=n.split(`
`,1)[0];let W;if(w=_,this.options.pedantic?(w=w.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),W=w):W=w.replace(/\t/g," "),G.test(w)||N.test(w)||A.test(w)||S.test(w)||J.test(w))break;if(W.search(/[^ ]/)>=C||!w.trim())p+=`
`+W.slice(C);else{if(L||k.replace(/\t/g," ").search(/[^ ]/)>=4||G.test(k)||N.test(k)||J.test(k))break;p+=`
`+w}!L&&!w.trim()&&(L=!0),d+=_+`
`,n=n.substring(_.length+1),k=W.slice(C)}}r.loose||(l?r.loose=!0:/\n[ \t]*\n[ \t]*$/.test(d)&&(l=!0));let Z=null,K;this.options.gfm&&(Z=/^\[[ xX]\] /.exec(p),Z&&(K=Z[0]!=="[ ] ",p=p.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:d,task:!!Z,checked:K,loose:!1,text:p,tokens:[]}),r.raw+=d}r.items[r.items.length-1].raw=r.items[r.items.length-1].raw.trimEnd(),r.items[r.items.length-1].text=r.items[r.items.length-1].text.trimEnd(),r.raw=r.raw.trimEnd();for(let c=0;c<r.items.length;c++)if(this.lexer.state.top=!1,r.items[c].tokens=this.lexer.blockTokens(r.items[c].text,[]),!r.loose){const d=r.items[c].tokens.filter(k=>k.type==="space"),p=d.length>0&&d.some(k=>/\n.*\n/.test(k.raw));r.loose=p}if(r.loose)for(let c=0;c<r.items.length;c++)r.items[c].loose=!0;return r}}html(n){const i=this.rules.block.html.exec(n);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(n){const i=this.rules.block.def.exec(n);if(i){const t=i[1].toLowerCase().replace(/\s+/g," "),a=i[2]?i[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:t,raw:i[0],href:a,title:r}}}table(n){const i=this.rules.block.table.exec(n);if(!i||!/[:|]/.test(i[2]))return;const t=bw(i[1]),a=i[2].replace(/^\||\| *$/g,"").split("|"),r=i[3]&&i[3].trim()?i[3].replace(/\n[ \t]*$/,"").split(`
`):[],s={type:"table",raw:i[0],header:[],align:[],rows:[]};if(t.length===a.length){for(const l of a)/^ *-+: *$/.test(l)?s.align.push("right"):/^ *:-+: *$/.test(l)?s.align.push("center"):/^ *:-+ *$/.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<t.length;l++)s.header.push({text:t[l],tokens:this.lexer.inline(t[l]),header:!0,align:s.align[l]});for(const l of r)s.rows.push(bw(l,s.header.length).map((c,d)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:s.align[d]})));return s}}lheading(n){const i=this.rules.block.lheading.exec(n);if(i)return{type:"heading",raw:i[0],depth:i[2].charAt(0)==="="?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}paragraph(n){const i=this.rules.block.paragraph.exec(n);if(i){const t=i[1].charAt(i[1].length-1)===`
`?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:t,tokens:this.lexer.inline(t)}}}text(n){const i=this.rules.block.text.exec(n);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(n){const i=this.rules.inline.escape.exec(n);if(i)return{type:"escape",raw:i[0],text:dt(i[1])}}tag(n){const i=this.rules.inline.tag.exec(n);if(i)return!this.lexer.state.inLink&&/^<a /i.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(n){const i=this.rules.inline.link.exec(n);if(i){const t=i[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;const s=ps(t.slice(0,-1),"\\");if((t.length-s.length)%2===0)return}else{const s=fE(i[2],"()");if(s>-1){const c=(i[0].indexOf("!")===0?5:4)+i[1].length+s;i[2]=i[2].substring(0,s),i[0]=i[0].substring(0,c).trim(),i[3]=""}}let a=i[2],r="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);s&&(a=s[1],r=s[3])}else r=i[3]?i[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(this.options.pedantic&&!/>$/.test(t)?a=a.slice(1):a=a.slice(1,-1)),Sw(i,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer)}}reflink(n,i){let t;if((t=this.rules.inline.reflink.exec(n))||(t=this.rules.inline.nolink.exec(n))){const a=(t[2]||t[1]).replace(/\s+/g," "),r=i[a.toLowerCase()];if(!r){const s=t[0].charAt(0);return{type:"text",raw:s,text:s}}return Sw(t,r,t[0],this.lexer)}}emStrong(n,i,t=""){let a=this.rules.inline.emStrongLDelim.exec(n);if(!a||a[3]&&t.match(/[\p{L}\p{N}]/u))return;if(!(a[1]||a[2]||"")||!t||this.rules.inline.punctuation.exec(t)){const s=[...a[0]].length-1;let l,c,d=s,p=0;const k=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(k.lastIndex=0,i=i.slice(-1*n.length+s);(a=k.exec(i))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(c=[...l].length,a[3]||a[4]){d+=c;continue}else if((a[5]||a[6])&&s%3&&!((s+c)%3)){p+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d+p);const w=[...a[0]][0].length,L=n.slice(0,s+a.index+w+c);if(Math.min(s,c)%2){const Z=L.slice(1,-1);return{type:"em",raw:L,text:Z,tokens:this.lexer.inlineTokens(Z)}}const C=L.slice(2,-2);return{type:"strong",raw:L,text:C,tokens:this.lexer.inlineTokens(C)}}}}codespan(n){const i=this.rules.inline.code.exec(n);if(i){let t=i[2].replace(/\n/g," ");const a=/[^ ]/.test(t),r=/^ /.test(t)&&/ $/.test(t);return a&&r&&(t=t.substring(1,t.length-1)),t=dt(t,!0),{type:"codespan",raw:i[0],text:t}}}br(n){const i=this.rules.inline.br.exec(n);if(i)return{type:"br",raw:i[0]}}del(n){const i=this.rules.inline.del.exec(n);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(n){const i=this.rules.inline.autolink.exec(n);if(i){let t,a;return i[2]==="@"?(t=dt(i[1]),a="mailto:"+t):(t=dt(i[1]),a=t),{type:"link",raw:i[0],text:t,href:a,tokens:[{type:"text",raw:t,text:t}]}}}url(n){var t;let i;if(i=this.rules.inline.url.exec(n)){let a,r;if(i[2]==="@")a=dt(i[0]),r="mailto:"+a;else{let s;do s=i[0],i[0]=((t=this.rules.inline._backpedal.exec(i[0]))==null?void 0:t[0])??"";while(s!==i[0]);a=dt(i[0]),i[1]==="www."?r="http://"+i[0]:r=i[0]}return{type:"link",raw:i[0],text:a,href:r,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(n){const i=this.rules.inline.text.exec(n);if(i){let t;return this.lexer.state.inRawBlock?t=i[0]:t=dt(i[0]),{type:"text",raw:i[0],text:t}}}}const yE=/^(?:[ \t]*(?:\n|$))+/,mE=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,kE=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,wE=/^ {0,3}(#{1,6})(?=\s|$)(.*)
]`).replace("lheading",Cb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Sb=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,JE=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gb=/^( {2,}|\\)\n(?!\s*$)/,TE=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Hl="\\p{P}\\p{S}",vE=mn(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Hl).getRegex(),ZE=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,YE=mn(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Hl).getRegex(),xE=mn("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Hl).getRegex(),HE=mn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Hl).getRegex(),DE=mn(/\\([punct])/,"gu").replace(/punct/g,Hl).getRegex(),PE=mn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),NE=mn(Sy).replace("(?:-->|$)","-->").getRegex(),XE=mn("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",NE).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gg=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,FE=mn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gg).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Lb=mn(/^!?\[(label)\]\[(ref)\]/).replace("label",gg).replace("ref",by).getRegex(),Bb=mn(/^!?\[(ref)\](?:\[\])?/).replace("ref",by).getRegex(),KE=mn("reflink|nolink(?!\\()","g").replace("reflink",Lb).replace("nolink",Bb).getRegex(),Ly={_backpedal:js,anyPunctuation:DE,autolink:PE,blockSkip:ZE,br:Gb,code:JE,del:js,emStrongLDelim:YE,emStrongRDelimAst:xE,emStrongRDelimUnd:HE,escape:Sb,link:FE,nolink:Bb,punctuation:vE,reflink:Lb,reflinkSearch:KE,tag:XE,text:TE,url:js},jE={...Ly,link:mn(/^!?\[(label)\]\((.*?)\)/).replace("label",gg).getRegex(),reflink:mn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gg).getRegex()},Np={...Ly,escape:mn(Sb).replace("])","~|])").getRegex(),url:mn(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},QE={...Np,br:mn(Gb).replace("{2,}","*").getRegex(),text:mn(Np.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},nc={normal:Gy,gfm:BE,pedantic:ME},ys={normal:Ly,gfm:Np,breaks:QE,pedantic:jE};class jt{constructor(n){be(this,"tokens");be(this,"options");be(this,"state");be(this,"tokenizer");be(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=n||ar,this.options.tokenizer=this.options.tokenizer||new cg,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const i={block:nc.normal,inline:ys.normal};this.options.pedantic?(i.block=nc.pedantic,i.inline=ys.pedantic):
`),this.blockTokens(n,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){const t=this.inlineQueue[i];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,i=[],t=!1){this.options.pedantic&&(n=n.replace(/\t/g," ").replace(/^ +$/gm,""));let a,r,s;for(;n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(a=l.call({lexer:this},n,i))?(n=n.substring(a.raw.length),i.push(a),!0):!1))){if(a=this.tokenizer.space(n)){n=n.substring(a.raw.length),a.raw.length===1&&i.length>0?i[i.length-1].raw+=`
`:i.push(a);continue}if(a=this.tokenizer.code(n)){n=n.substring(a.raw.length),r=i[i.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
`+a.raw,r.text+=`
`+a.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(a);continue}if(a=this.tokenizer.fences(n)){n=n.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.heading(n)){n=n.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.hr(n)){n=n.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.blockquote(n)){n=n.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.list(n)){n=n.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.html(n)){n=n.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.def(n)){n=n.substring(a.raw.length),r=i[i.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
`+a.raw,r.text+=`
`+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(n)){n=n.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.lheading(n)){n=n.substring(a.raw.length),i.push(a);continue}if(s=n,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const c=n.slice(1);let d;this.options.extensions.startBlock.forEach(p=>{d=p.call({lexer:this},c),typeof d=="number"&&d>=0&&(l=Math.min(l,d))}),l<1/0&&l>=0&&(s=n.substring(0,l+1))}if(this.state.top&&(a=this.tokenizer.paragraph(s))){r=i[i.length-1],t&&(r==null?void 0:r.type)==="paragraph"?(r.raw+=`
`+a.raw,r.text+=`
`+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(a),t=s.length!==n.length,n=n.substring(a.raw.length);continue}if(a=this.tokenizer.text(n)){n=n.substring(a.raw.length),r=i[i.length-1],r&&r.type==="text"?(r.raw+=`
`+a.raw,r.text+=`
`+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(a);continue}if(n){const l="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,i}inline(n,i=[]){return this.inlineQueue.push({src:n,tokens:i}),i}inlineTokens(n,i=[]){let t,a,r,s=n,l,c,d;if(this.tokens.links){const p=Object.keys(this.tokens.links);if(p.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;n;)if(c||(d=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(p=>(t=p.call({lexer:this},n,i))?(n=n.substring(t.raw.length),i.push(t),!0):!1))){if(t=this.tokenizer.escape(n)){n=n.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.tag(n)){n=n.substring(t.raw.length),a=i[i.length-1],a&&t.type==="text"&&a.type==="text"?(a.raw+=t.raw,a.text+=t.text):i.push(t);continue}if(t=this.tokenizer.link(n)){n=n.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(t.raw.length),a=i[i.length-1],a&&t.type==="text"&&a.type==="text"?(a.raw+=t.raw,a.text+=t.text):i.push(t);continue}if(t=this.tokenizer.emStrong(n,s,d)){n=n.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.codespan(n)){n=n.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.br(n)){n=n.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.del(n)){n=n.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.autolink(n)){n=n.substring(t.raw.length),i.push(t);continue}if(!this.state.inLink&&(t=this.tokenizer.url(n))){n=n.substring(t.raw.length),i.push(t);continue}if(r=n,this.options.extensions&&this.options.extensions.startInline){let p=1/0;const k=n.slice(1);let w;this.options.extensions.startInline.forEach(L=>{w=L.call({lexer:this},k),typeof w=="number"&&w>=0&&(p=Math.min(p,w))}),p<1/0&&p>=0&&(r=n.substring(0,p+1))}if(t=this.tokenizer.inlineText(r)){n=n.substring(t.raw.length),t.raw.slice(-1)!=="_"&&(d=t.raw.slice(-1)),c=!0,a=i[i.length-1],a&&a.type==="text"?(a.raw+=t.raw,a.text+=t.text):i.push(t);continue}if(n){const p="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return i}}class dg{constructor(n){be(this,"options");be(this,"parser");this.options=n||ar}space(n){return""}code({text:n,lang:i,escaped:t}){var s;const a=(s=(i||"").match(/^\S*/))==null?void 0:s[0],r=n.replace(/\n$/,"")+`
`;return a?'<pre><code class="language-'+dt(a)+'">'+(t?r:dt(r,!0))+`</code></pre>
`:"<pre><code>"+(t?r:dt(r,!0))+`</code></pre>
`}blockquote({tokens:n}){return`<blockquote>
${this.parser.parse(n)}</blockquote>
`}html({text:n}){return n}heading({tokens:n,depth:i}){return`<h${i}>${this.parser.parseInline(n)}</h${i}>
`}hr(n){return`<hr>
`}list(n){const i=n.ordered,t=n.start;let a="";for(let l=0;l<n.items.length;l++){const c=n.items[l];a+=this.listitem(c)}const r=i?"ol":"ul",s=i&&t!==1?' start="'+t+'"':"";return"<"+r+s+`>
`+a+"</"+r+`>
`}listitem(n){let i="";if(n.task){const t=this.checkbox({checked:!!n.checked});n.loose?n.tokens.length>0&&n.tokens[0].type==="paragraph"?(n.tokens[0].text=t+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&n.tokens[0].tokens[0].type==="text"&&(n.tokens[0].tokens[0].text=t+" "+n.tokens[0].tokens[0].text)):n.tokens.unshift({type:"text",raw:t+" ",text:t+" "}):i+=t+" "}return i+=this.parser.parse(n.tokens,!!n.loose),`<li>${i}</li>
`}checkbox({checked:n}){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:n}){return`<p>${this.parser.parseInline(n)}</p>
`}table(n){let i="",t="";for(let r=0;r<n.header.length;r++)t+=this.tablecell(n.header[r]);i+=this.tablerow({text:t});let a="";for(let r=0;r<n.rows.length;r++){const s=n.rows[r];t="";for(let l=0;l<s.length;l++)t+=this.tablecell(s[l]);a+=this.tablerow({text:t})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
<thead>
`+i+`</thead>
`+a+`</table>
`}tablerow({text:n}){return`<tr>
${n}</tr>
`}tablecell(n){const i=this.parser.parseInline(n.tokens),t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+i+`</${t}>
`}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${n}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:i,tokens:t}){const a=this.parser.parseInline(t),r=Cw(n);if(r===null)return a;n=r;let s='<a href="'+n+'"';return i&&(s+=' title="'+i+'"'),s+=">"+a+"</a>",s}image({href:n,title:i,text:t}){const a=Cw(n);if(a===null)return t;n=a;let r=`<img src="${n}" alt="${t}"`;return i&&(r+=` title="${i}"`),r+=">",r}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):n.text}}class By{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}}class Qt{constructor(n){be(this,"options");be(this,"renderer");be(this,"textRenderer");this.options=n||ar,this.options.renderer=this.options.renderer||new dg,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new By}static parse(n,i){return new Qt(i).parse(n)}static parseInline(n,i){return new Qt(i).parseInline(n)}parse(n,i=!0){let t="";for(let a=0;a<n.length;a++){const r=n[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const l=r,c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(l.type)){t+=c||"";continue}}const s=r;switch(s.type){case"space":{t+=this.renderer.space(s);continue}case"hr":{t+=this.renderer.hr(s);continue}case"heading":{t+=this.renderer.heading(s);continue}case"code":{t+=this.renderer.code(s);continue}case"table":{t+=this.renderer.table(s);continue}case"blockquote":{t+=this.renderer.blockquote(s);continue}case"list":{t+=this.renderer.list(s);continue}case"html":{t+=this.renderer.html(s);continue}case"paragraph":{t+=this.renderer.paragraph(s);continue}case"text":{let l=s,c=this.renderer.text(l);for(;a+1<n.length&&n[a+1].type==="text";)l=n[++a],c+=`
`+this.renderer.text(l);i?t+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c}]}):t+=c;continue}default:{const l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return t}parseInline(n,i){i=i||this.renderer;let t="";for(let a=0;a<n.length;a++){const r=n[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const l=this.options.extensions.renderers[r.type].call({parser:this},r);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){t+=l||"";continue}}const s=r;switch(s.type){case"escape":{t+=i.text(s);break}case"html":{t+=i.html(s);break}case"link":{t+=i.link(s);break}case"image":{t+=i.image(s);break}case"strong":{t+=i.strong(s);break}case"em":{t+=i.em(s);break}case"codespan":{t+=i.codespan(s);break}case"br":{t+=i.br(s);break}case"del":{t+=i.del(s);break}case"text":{t+=i.text(s);break}default:{const l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return t}}class Qs{constructor(n){be(this,"options");be(this,"block");this.options=n||ar}preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}provideLexer(){return this.block?jt.lex:jt.lexInline}provideParser(){return this.block?Qt.parse:Qt.parseInline}}be(Qs,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class _E{constructor(...n){be(this,"defaults",wy());be(this,"options",this.setOptions);be(this,"parse",this.parseMarkdown(!0));be(this,"parseInline",this.parseMarkdown(!1));be(this,"Parser",Qt);be(this,"Renderer",dg);be(this,"TextRenderer",By);be(this,"Lexer",jt);be(this,"Tokenizer",cg);be(this,"Hooks",Qs);this.use(...n)}walkTokens(n,i){var a,r;let t=[];for(const s of n)switch(t=t.concat(i.call(this,s)),s.type){case"table":{const l=s;for(const c of l.header)t=t.concat(this.walkTokens(c.tokens,i));for(const c of l.rows)for(const d of c)t=t.concat(this.walkTokens(d.tokens,i));break}case"list":{const l=s;t=t.concat(this.walkTokens(l.items,i));break}default:{const l=s;(r=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&r[l.type]?this.defaults.extensions.childTokens[l.type].forEach(c=>{const d=l[c].flat(1/0);t=t.concat(this.walkTokens(d,i))}):l.tokens&&(t=t.concat(this.walkTokens(l.tokens,i)))}}return t}use(...n){const i=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(t=>{const a={...t};if(a.async=this.defaults.async||a.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const s=i.renderers[r.name];s?i.renderers[r.name]=function(...l){let c=r.renderer.apply(this,l);return c===!1&&(c=s.apply(this,l)),c}:i.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=i[r.level];s?s.unshift(r.tokenizer):i[r.level]=[r.tokenizer],r.start&&(r.level==="block"?i.startBlock?i.startBlock.push(r.start):i.startBlock=[r.start]:r.level==="inline"&&(i.startInline?i.startInline.push(r.start):i.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(i.childTokens[r.name]=r.childTokens)}),a.extensions=i),t.renderer){const r=this.defaults.renderer||new dg(this.defaults);for(const s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const l=s,c=t.renderer[l],d=r[l];r[l]=(...p)=>{let k=c.apply(r,p);return k===!1&&(k=d.apply(r,p)),k||""}}a.renderer=r}if(t.tokenizer){const r=this.defaults.tokenizer||new cg(this.defaults);for(const s in t.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,c=t.tokenizer[l],d=r[l];r[l]=(...p)=>{let k=c.apply(r,p);return k===!1&&(k=d.apply(r,p)),k}}a.tokenizer=r}if(t.hooks){const r=this.defaults.hooks||new Qs;for(const s in t.hooks){if(!(s in r))throw new Error(`hook '${
Please report this to https://github.com/markedjs/marked.`,n){const a="<p>An error occurred:</p><pre>"+dt(t.message+"",!0)+"</pre>";return i?Promise.resolve(a):a}if(i)return Promise.reject(t);throw t}}}const nr=new _E;function hn(e,n){return nr.parse(e,n)}hn.options=hn.setOptions=function(e){return nr.setOptions(e),hn.defaults=nr.defaults,yb(hn.defaults),hn};hn.getDefaults=wy;hn.defaults=ar;hn.use=function(...e){return nr.use(...e),hn.defaults=nr.defaults,yb(hn.defaults),hn};hn.walkTokens=function(e,n){return nr.walkTokens(e,n)};hn.parseInline=nr.parseInline;hn.Parser=Qt;hn.parser=Qt.parse;hn.Renderer=dg;hn.TextRenderer=By;hn.Lexer=jt;hn.lexer=jt.lex;hn.Tokenizer=cg;hn.Hooks=Qs;hn.parse=hn;hn.options;hn.setOptions;hn.use;hn.walkTokens;hn.parseInline;Qt.parse;jt.lex;function My(e){return hn.use({breaks:!0}),RE(e).reduce(WE,[])}function RE(e){const n={name:"ref",level:"inline",start(a){var r;return(r=a.match(sk))==null?void 0:r.index},tokenizer(a){const r=a.match(sk);if(!(!r||!r.index||r.index>0))return{type:"ref",raw:a,text:a}}},i={name:"ship",level:"inline",start(a){var r;return(r=a.match(dp))==null?void 0:r.index},tokenizer(a){const r=a.match(dp);if(r&&N1(r[0]))return!r||!r.index||r.index>0?void 0:{type:"ship",raw:r[0],text:r[0].trim()}}};return hn.use({breaks:!0,extensions:[n,i]}),hn.lexer(e)}function WE(e,n){return n.type==="paragraph"?[...e,{inline:n.tokens.map(Ha).flat()}]:n.type==="blockquote"?[...e,{inline:[{blockquote:n.tokens.map(Ha).flat()}]}]:n.type==="code"?[...e,{block:EE(n)}]:n.type==="list"?[...e,{block:{listing:zE(n)}}]:n.type==="heading"?[...e,{block:AE(n)}]:e}function AE(e){return{header:{content:e.tokens.map(Ha).flat(),tag:`h${e.depth}`}}}function EE(e){return{code:{code:e.text,lang:e.lang}}}function zE(e){return{list:{type:e.ordered?"ordered":"unordered",items:e.items.map(OE),contents:[]}}}function OE(e){return{item:e.tokens.map(Ha).flat()}}function IE(e){var n=document.createElement("textarea");return n.innerHTML=e,n.childNodes.length===0?"":n.childNodes[0].nodeValue||""}function Ha(e){return"text"in e&&(e.text=IE(e.text.trim())),e.type==="text"?Lw(e.text.trim()):e.type==="ref"?e.text:e.type==="paragraph"?e.tokens.map(Ha).flat():e.type==="space"?[{break:null}]:e.type==="ship"?[{ship:e.text}]:e.type==="em"?[{italics:e.tokens.map(Ha).flat()}]:e.type==="strong"?[{bold:e.tokens.map(Ha).flat()}]:e.type==="del"?[{strike:e.tokens.map(Ha).flat()}]:e.type==="blockquote"?[{blockquote:e.tokens.map(Ha).flat()}]:e.type==="link"?[{link:{href:e.href,content:e.text}}]:e.type==="image"?[{link:{href:e.href,content:e.text}}]:e.type==="code"?[{code:e.text,lang:e.lang}]:e.type==="codespan"?[{"inline-code":e.text}]:e.type==="br"?[{break:null}]:e.type==="list"?e.items.map($E).flat():e.type==="html"||e.type==="heading"?Lw(e.text):[e.raw]}function $E(e){return[e.raw,{break:null}]}function Lw(e){let n=[e,[]];return n=VE(n),n=qE(n),ez(n)}function VE(e){const n=e[0].match(dp);return n?n.reduce((i,t)=>{const a=`;;${Math.random().toString(36).substring(8)};;`;return N1(t.trim())?[i[0].replace(t,a),[...i[1],[a,{ship:t.trim()}]]]:i},e):e}const UE=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,10}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/g;function qE(e){const n=e[0].match(UE);return n?n.reduce((i,t)=>{const a=`;;${Math.random().toString(36).substring(8)};;`;return[i[0].replace(t,a),[...i[1],[a,{link:{href:t,content:t}}]]]},e):e}function ez(e){const n=e[1].map(t=>t[0].replace(/;/g,""));return e[0].split(";;").map(t=>{if(n.includes(t)){const a=e[1].find(r=>r[0]===`;;${t};;`);return a?a[1]:t}else return t})}BigInt("170141184475152167957503069145530368000");BigInt("18446744073709551616");BigInt("292277024400");function Mb(e){return e.reduce((n,i)=>"block"in i?n+`
`+nz(i.block):n+`
`+Bs(i.inline),"")}function nz(e){return"image"in e?`![](${e.image.src})`:"code"in e?`
\`\`\`
${e.code.code}
\`\`\`
`:"header"in e?`${e.header.tag==="h1"?"#":e.header.tag==="h2"?"##":e.header.tag==="h3"?"###":e.header.tag==="h4"?"####":e.header.tag==="h5"?"#####":e.header.tag==="h6"?"######":""} ${e.header.content}`:("listing"in e||"cite"in e,"")}function Bs(e){return e.reduce((i,t)=>`${i} ${iz(t)}`,"")}function iz(e){return typeof e=="string"?e:"break"in e?`
`:"ship"in e?e.ship:"inline-code"in e?`\`${e["inline-code"]}\``:"code"in e?`\`${e.code}\``:"link"in e?`![${e.link.content}](${e.link.href})`:"italics"in e?`_${Bs(e.italics).trim()}_`:"bold"in e?`*${Bs(e.bold).trim()}*`:"blockquote"in e?`> ${Bs(e.blockquote).trim()}`:"strike"in e?`~~${Bs(e.strike).trim()}~~`:""}function tz({site:e,group:n,chats:i}){const{airlock:t,io:a}=Gt(["airlock","io"]),r=Lu(),[s,l]=X.useState(!1),[c,d]=X.useState(!1),[p,k]=X.useState(),[w,L]=X.useState();X.useEffect(()=>{console.log(r,"using effect"),d(!0);const Z=r.room;Z?C(Z):l(!0)},[r]);async function C(Z){const{scryChat:K}=a(),S=i.find(N=>N.name===Z);S&&L(S);const J=`~${t.ship}`,G=await K(J,Z,300);G&&(d(!1),k(G))}if(s)return v.jsx(Dl,{err:"chat not found"});if(c)return v.jsx(pd,{});if(p&&w)return v.jsx(Cd,{children:v.jsxs(v.Fragment,{children:[v.jsxs(Bn,{sx:dl.chatHeader,children:[v.jsx(qe,{variant:"body1",children:w.title}),v.jsx(qe,{variant:"body1",children:w.description})]}),v.jsx(az,{page:p,meta:w}),v.jsx(uz,{meta:w})]})})}const dl={chatHeader:{display:"flex",justifyContent:"space-between",borderBottom:"2px solid black",padding:"1rem"},chatList:{flexGrow:"1",overflowY:"auto"},chatMessage:{display:"flex",gap:"1rem",minHeight:"4rem"},chatInput:{display:"flex",width:"100%",borderTop:"2px solid black"},textInput:{flexGrow:"1",border:"none",outline:"none",padding:"0.5rem"}};function az({page:e,meta:n}){const{lastChannelUpdate:i}=Gt(["lastChannelUpdate"]),[t,a]=X.useState({});return X.useEffect(()=>{if(!i)return;const[r,s,l]=i.nest.split("/");if(r!=="chat"||s!==n.host||l!==n.name)return;const c=i.response.post["r-post"];if(!("set"in c))return;const d={essay:c.set.essay,seal:c.set.seal},p=X1(d.seal.id,3);a(k=>({...k,[p]:d}))},[i]),v.jsx(oz,{page:{...e,posts:{...e.posts,...t}},meta:n})}function oz({page:e,meta:n}){X.useState([]),X.useLayoutEffect(()=>{i()},[e]);function i(){var a;(a=t==null?void 0:t.current)==null||a.scrollIntoView({behavior:"instant"})}const t=X.useRef(null);return v.jsxs(vl,{sx:dl.chatList,children:[Object.values(e.posts).sort((a,r)=>a.essay.sent-r.essay.sent).map(a=>v.jsx(rz,{post:a},a.seal.id)),v.jsx("div",{id:"br",ref:t})]})}function rz({post:e}){const n=new Date(e.essay.sent).toLocaleTimeString(),i={container:{lineHeight:"unset"},paragraph:{margin:0,fontWeight:600}};return v.jsx(yd,{children:v.jsxs(Bn,{sx:dl.chatMessage,children:[v.jsx(wd,{patp:e.essay.author,size:48}),v.jsxs(Bn,{children:[v.jsxs(Bn,{sx:{display:"flex",gap:"1rem",fontSize:"0.9rem",color:"grey"},children:[v.jsx(qe,{children:e.essay.author}),v.jsx(qe,{children:n})]}),v.jsx(Yl,{content:e.essay.content,style:i})]})]})})}function uz({meta:e}){const{io:n,clientShip:i}=Gt(["io","clientShip"]),[t,a]=X.useState(""),r=X.useRef(null);function s(c){c.key==="Enter"&&c.shiftKey!==!0&&t&&(c.preventDefault(),l())}async function l(){var p;const{sendChatMsg:c}=n();console.log(t);const d=My(t);await c(i,e.host,e.name,d),(p=r==null?void 0:r.current)==null||p.focus(),a("")}return v.jsxs(Bn,{sx:dl.chatInput,children:[v.jsx("input",{onKeyDown:s,ref:r,style:dl.textInput,type:"text",value:t,onChange:c=>a(c.currentTarget.value)}),v.jsx(og,{variant:"contained",onClick:l,children:"Submit"})]})}function sz({site:e,group:n,chats:i}){const[t,a]=Bu();function r(s){a(`/${s}`)}return console.log(i,i),v.jsx(Jo,{children:v.jsx(Bn,{my:3,children:v.jsx(qk,{container:!0,children:i.map(s=>v.jsx(qk,{size:4,children:v.jsx($5,{onClick:()=>r(s.name),children:v.jsx(V5,{title:s.title})})},s.name))})})})}function lz({site:e,group:n,chats:i}){return v.jsxs(my,{children:[v.jsx(Ft,{path:"/:room",nest:!0,component:()=>tz({site:e,group:n,chats:i})}),v.jsx(Ft,{path:"/",component:()=>sz({site:e,group:n,chats:i})})]})}function hz({site:e,group:n,forums:i}){const{airlock:t,io:a}=Gt(["airlock","io"]),r=Lu(),[s,l]=X.useState(!1),[c,d]=X.useState(!1),[p,k]=X.useState(),[w,L]=X.useState();X.useEffect(()=>{console.log(r,"using effect"),d(!0);const Z=r.board;Z?C(Z):l(!0)},[r]);async function C(Z){const{scryDiary:K}=a(),S=`~${t.ship}`,J=i.find(N=>N.name===Z);J&&L(J);const G=await K(S,Z,300);console.log(G,"res"),k(G),d(!1)